@stacksjs/stx 0.2.528 → 0.2.530

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 (66) hide show
  1. package/dist/chunk-088jh5zy.js +2 -0
  2. package/dist/{chunk-t3mg529n.js → chunk-089x96rp.js} +1 -1
  3. package/dist/{chunk-j7615qvy.js → chunk-1h4z3xpy.js} +1 -1
  4. package/dist/{chunk-52mjjszq.js → chunk-1te1s9fa.js} +1 -1
  5. package/dist/{chunk-kpns3659.js → chunk-37nybpw1.js} +8 -4
  6. package/dist/chunk-3bsnte2s.js +2 -0
  7. package/dist/{chunk-j19b6d9m.js → chunk-3x9d58f4.js} +1 -1
  8. package/dist/{chunk-1r5zd4a9.js → chunk-619j0mnz.js} +1 -1
  9. package/dist/{chunk-gkzvxt62.js → chunk-62ry3ta3.js} +1 -1
  10. package/dist/{chunk-vfc4fg8v.js → chunk-6dd0zr74.js} +1 -1
  11. package/dist/{chunk-e0p7p7p2.js → chunk-87zse67b.js} +1 -1
  12. package/dist/{chunk-cen7wkv8.js → chunk-8g1fx4mg.js} +1 -1
  13. package/dist/chunk-9hx4s11k.js +2 -0
  14. package/dist/chunk-a0pq8xg4.js +2 -0
  15. package/dist/{chunk-wv9es0ra.js → chunk-b0zz4dbx.js} +1 -1
  16. package/dist/{chunk-bqah6yhk.js → chunk-bday3eyq.js} +1 -1
  17. package/dist/chunk-c2243par.js +2 -0
  18. package/dist/chunk-csy2m03w.js +2 -0
  19. package/dist/{chunk-h80p2gkn.js → chunk-d3qdcdz9.js} +1 -1
  20. package/dist/{chunk-wg7jz0ta.js → chunk-eadr1eph.js} +1 -1
  21. package/dist/{chunk-2kjxd3v1.js → chunk-f3nxd8z8.js} +1 -1
  22. package/dist/{chunk-44e5tk5g.js → chunk-fd795e6s.js} +1 -1
  23. package/dist/{chunk-zfct5zbe.js → chunk-g25n9e8z.js} +1 -1
  24. package/dist/{chunk-dx23ntmm.js → chunk-gvngrxvb.js} +1 -1
  25. package/dist/{chunk-n48v0cma.js → chunk-hhys3aaa.js} +1 -1
  26. package/dist/{chunk-4bfdyf1s.js → chunk-jftv278d.js} +1 -1
  27. package/dist/{chunk-nc1wcdfs.js → chunk-jw536pve.js} +1 -1
  28. package/dist/{chunk-rypj5y6d.js → chunk-kpvr93cb.js} +1 -1
  29. package/dist/{chunk-kg4navnh.js → chunk-kxa069d6.js} +1 -1
  30. package/dist/{chunk-4625sykb.js → chunk-kzztmawd.js} +1 -1
  31. package/dist/{chunk-7e7mcrf9.js → chunk-nzk14k6w.js} +1 -1
  32. package/dist/{chunk-xw45r9b5.js → chunk-pq5nywkf.js} +1 -1
  33. package/dist/{chunk-byr1derh.js → chunk-qfm2gy40.js} +1 -1
  34. package/dist/{chunk-he404gbh.js → chunk-qhg55cvv.js} +2 -2
  35. package/dist/{chunk-qtvth7eg.js → chunk-r37sf7ys.js} +2 -2
  36. package/dist/{chunk-etdx3fye.js → chunk-raqbqt1r.js} +41 -9
  37. package/dist/{chunk-xg08g7xd.js → chunk-ravc60z0.js} +2 -2
  38. package/dist/{chunk-jya4r00e.js → chunk-s19r6qe3.js} +1 -1
  39. package/dist/{chunk-kpbpmmdk.js → chunk-szbvewf8.js} +1 -1
  40. package/dist/{chunk-6ywr110f.js → chunk-t2yrb7pt.js} +1 -1
  41. package/dist/{chunk-fdbtr4my.js → chunk-tjjvphx3.js} +1 -1
  42. package/dist/{chunk-vrdg365w.js → chunk-tsdjwe93.js} +1 -1
  43. package/dist/{chunk-0gzm7em2.js → chunk-vp37585y.js} +1 -1
  44. package/dist/{chunk-8rxammgf.js → chunk-vrrqnp5k.js} +2 -2
  45. package/dist/{chunk-my4s7k0x.js → chunk-w6ys6eq4.js} +5 -5
  46. package/dist/{chunk-w9srfsfk.js → chunk-wm5b2y65.js} +1 -1
  47. package/dist/{chunk-mh7k2ps4.js → chunk-wyxjsx4k.js} +18 -18
  48. package/dist/{chunk-gmx73f50.js → chunk-x7a4c0x1.js} +1 -1
  49. package/dist/{chunk-93cf01s9.js → chunk-x9mzfq3p.js} +2 -2
  50. package/dist/{chunk-jnpyzq5m.js → chunk-y0a89hgw.js} +1 -1
  51. package/dist/{chunk-fhsy7dc5.js → chunk-z4f2msjp.js} +1 -1
  52. package/dist/{chunk-mftzhj7x.js → chunk-zmdyr321.js} +1 -1
  53. package/dist/cli.js +8 -8
  54. package/dist/craft-entry.js +1 -1
  55. package/dist/craft.js +1 -1
  56. package/dist/framework-composables.js +1 -1
  57. package/dist/pwa.js +1 -1
  58. package/dist/signals.js +39 -7
  59. package/dist/ssg.js +2 -2
  60. package/package.json +5 -5
  61. package/dist/chunk-0d9rx3n4.js +0 -2
  62. package/dist/chunk-70cr8xzz.js +0 -2
  63. package/dist/chunk-gbb8dze1.js +0 -2
  64. package/dist/chunk-r0n937ex.js +0 -2
  65. package/dist/chunk-syde729h.js +0 -2
  66. package/dist/chunk-zw2xxaza.js +0 -2
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Wi,qi}from"./chunk-w6ys6eq4.js";import"./chunk-619j0mnz.js";import"./chunk-fd795e6s.js";import"./chunk-xpvvne6r.js";import"./chunk-fk45zc1b.js";import"./chunk-3x9d58f4.js";import"./chunk-2twfqcxm.js";import"./chunk-8g1fx4mg.js";import{io}from"./chunk-ravc60z0.js";import"./chunk-yh3p86qa.js";import"./chunk-21rm5kv6.js";import"./chunk-hhys3aaa.js";import"./chunk-346zc43s.js";import"./chunk-jj8ssn0d.js";import"./chunk-zmdyr321.js";import"./chunk-2m5mx0x8.js";import"./chunk-wn5zjs5m.js";import"./chunk-y0c1srgj.js";import"./chunk-v2zxxjqn.js";import"./chunk-869wyw0j.js";import"./chunk-1s7qdv2h.js";import"./chunk-d8ramz4s.js";import"./chunk-1h4z3xpy.js";import"./chunk-hbwmmt91.js";import"./chunk-35j1evvy.js";import"./chunk-f5pmyxtn.js";import"./chunk-p8c5g5n2.js";import"./chunk-x1tzt7yc.js";import"./chunk-b0zz4dbx.js";import"./chunk-raqbqt1r.js";import"./chunk-nzk14k6w.js";import"./chunk-r37sf7ys.js";import"./chunk-1v6yyvxf.js";import"./chunk-kzztmawd.js";import"./chunk-qhg55cvv.js";import"./chunk-2hc5mbw8.js";import{he,nn,rn,K,u,n,Jn,R,o,le}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{Jn as buildWebComponents,rn as cacheTemplate,nn as checkCache,io as classifyAllScripts,Wi as createMiddleware,qi as createRoute,R as defaultConfig,u as extractVariables,K as injectRouterScript,o as loadStxConfig,he as processClientScript,n as processDirectives,le as readMarkdownFile};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{W,Gr,Jr,Qa,vt,Vo,Yr,Uo,Ad,Le,Zr,he}from"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import{xi,s}from"./chunk-zw029e7n.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{W as BROWSER_CORE_IMPORTS,Qa as STX_AUTO_IMPORTS,Gr as extractAndStripCssImports,Le as extractBridgeData,xi as findInterpolationEnd,Uo as generateAutoImportDestructuring,Ad as generateBrowserAutoImportDestructuring,Zr as generateServerDataBridge,vt as injectBrowserCoreAutoImports,he as processClientScript,Yr as referencesName,Jr as renderVendorStyleTags,s as stripCommentsAndLiterals,Vo as transformAutoImports};
2
+ import{W,Gr,Jr,Qa,vt,Vo,Yr,Uo,Ad,Le,Zr,he}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import{xi,s}from"./chunk-zw029e7n.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{W as BROWSER_CORE_IMPORTS,Qa as STX_AUTO_IMPORTS,Gr as extractAndStripCssImports,Le as extractBridgeData,xi as findInterpolationEnd,Uo as generateAutoImportDestructuring,Ad as generateBrowserAutoImportDestructuring,Zr as generateServerDataBridge,vt as injectBrowserCoreAutoImports,he as processClientScript,Yr as referencesName,Jr as renderVendorStyleTags,s as stripCommentsAndLiterals,Vo as transformAutoImports};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{y}from"./chunk-5tyes97j.js";import{I,At}from"./chunk-ba88n1j7.js";import{Ho,m,h,w,Ve,L,o}from"./chunk-mh7k2ps4.js";import{ie,yt,bt}from"./chunk-4625sykb.js";import{Ie,qt,pt,H}from"./chunk-2fb4yx25.js";import S from"path";var C=new Map,D=new Map,k=m(64),A=new Map,X=["composables","functions"];function U(t){let n=S.basename(t,".ts");return n==="index"||n==="types"||t.endsWith(".d.ts")}async function Z(t){if(t)return S.resolve(t);let n=`<default>:${process.cwd()}`,a=A.get(n);if(a!==void 0)return a;let e=await q();if(e!==null)A.set(n,e);return e}async function q(){let t=await o(),n=t.root||process.cwd(),a=t.composablesDir;if(a)return S.resolve(n,a);for(let e of X){let s=S.resolve(n,e);try{let d=new Bun.Glob("**/*.ts");for await(let c of d.scan({cwd:s,absolute:!0}))if(!U(c))return s}catch{}}return null}async function z(t){let n=Array.isArray(t)?t:t?[S.resolve(t)]:(await o())._layerComposableDirs??[await Z()].filter((e)=>!!e),a=new Map;for(let e of n){let s=new Bun.Glob("**/*.ts");try{for await(let d of s.scan({cwd:e,absolute:!0})){let c=S.relative(e,d);if(!U(d)&&!a.has(c))a.set(c,d)}}catch{}}return{key:n.join("\x00"),files:[...a.values()].sort()}}async function Lr(t){let{files:n}=await z(t),a=L({loader:"ts",target:"browser",define:w()}),e=[];for(let s of n)try{let d=await Bun.file(s).text(),c=a.scan(d).exports.filter((p)=>p!=="default");if(c.length>0)e.push({file:s,names:c})}catch{}return e}function Q(t,n){return new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(t)}function G(t,n){let a=new Set(t.match(/\w+/g)),e=new Set;for(let s of n)if(/^\w+$/.test(s)?a.has(s):Q(t,s))e.add(s);return e}var T=m(64);function V(t,n){let a=h(t,n.size),e=T.get(a);if(e)return e;let s;try{s=Ho(t,n)}catch{s=G(t,n)}let d=[...t.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...t.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let c of d)for(let p of c[1].split(",")){let g=p.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(g&&n.has(g))s.add(g)}return T.set(a,s),s}function Y(t,n,a){let e=new Map;for(let{file:u,names:l}of t)for(let f of l)if(!e.has(f))e.set(f,u);let s=(u)=>{let l=[];for(let f of G(u,e.keys()))l.push(e.get(f));return l},d=new Set(e.keys()),c=(u)=>{let l=[];for(let f of V(u,d))l.push(e.get(f));return l},p=new Set,g=a.flatMap((u,l)=>l===0?s(u):c(u));while(g.length>0){let u=[];for(let l of g){if(p.has(l))continue;p.add(l);for(let f of c(n.get(l)??""))if(!p.has(f))u.push(f)}g=u}return p}async function Nl(t,n,a){let{key:e,files:s}=await z(t);if(!e)return null;let d=()=>[...new Set([...s,...s.flatMap((r)=>ie(r))])],c=Ie(d());if(s.length===0)return H(C,e,c,""),null;s.sort();let p=L({loader:"ts",target:"browser",define:w()}),g=pt(D,e,c);if(!g){let r=new Map,i=[];for(let _ of s)try{let x=await Bun.file(_).text();r.set(_,x);let b=p.scan(x).exports.filter((W)=>W!=="default");if(b.length>0)i.push({file:_,names:b})}catch{r.set(_,"")}g=H(D,e,c,{codeByFile:r,modules:i})}let{codeByFile:u,modules:l}=g,f;if(n===void 0)f=new Set(s);else{let r=a?[n,...a]:[n],i=h(r.join("\x00"),e,r.length,c),_=k.get(i);if(f=_??Y(l,u,r),!_)k.set(i,f)}if(f.size===0)return null;let E=s.filter((r)=>f.has(r)),B=`${e}\x00${E.join("\x00")}`,F=pt(C,B,c);if(F!==void 0)return F||null;let M=[],v=new Set,R=new Set;for(let r of E)try{let i=u.get(r)??await Bun.file(r).text(),_=S.basename(r,".ts");for(let b of i.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(b[1])R.add(b[1]);let x=[];try{for(let b of p.scan(i).exports)if(b!=="default")v.add(b),x.push(b)}catch{}if(i=I(i),yt(i))i=await bt(i,r,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),i=Ve(i);i=At(i),i=i.replace(/^export\s+(default\s+)?/gm,""),i=p.transformSync(i),M.push(`// Composable: ${_}
2
+ import{y}from"./chunk-5tyes97j.js";import{I,At}from"./chunk-ba88n1j7.js";import{Ho,m,h,w,Ve,L,o}from"./chunk-wyxjsx4k.js";import{ie,yt,bt}from"./chunk-kzztmawd.js";import{Ie,qt,pt,H}from"./chunk-2fb4yx25.js";import S from"path";var C=new Map,D=new Map,k=m(64),A=new Map,X=["composables","functions"];function U(t){let n=S.basename(t,".ts");return n==="index"||n==="types"||t.endsWith(".d.ts")}async function Z(t){if(t)return S.resolve(t);let n=`<default>:${process.cwd()}`,a=A.get(n);if(a!==void 0)return a;let e=await q();if(e!==null)A.set(n,e);return e}async function q(){let t=await o(),n=t.root||process.cwd(),a=t.composablesDir;if(a)return S.resolve(n,a);for(let e of X){let s=S.resolve(n,e);try{let d=new Bun.Glob("**/*.ts");for await(let c of d.scan({cwd:s,absolute:!0}))if(!U(c))return s}catch{}}return null}async function z(t){let n=Array.isArray(t)?t:t?[S.resolve(t)]:(await o())._layerComposableDirs??[await Z()].filter((e)=>!!e),a=new Map;for(let e of n){let s=new Bun.Glob("**/*.ts");try{for await(let d of s.scan({cwd:e,absolute:!0})){let c=S.relative(e,d);if(!U(d)&&!a.has(c))a.set(c,d)}}catch{}}return{key:n.join("\x00"),files:[...a.values()].sort()}}async function Lr(t){let{files:n}=await z(t),a=L({loader:"ts",target:"browser",define:w()}),e=[];for(let s of n)try{let d=await Bun.file(s).text(),c=a.scan(d).exports.filter((p)=>p!=="default");if(c.length>0)e.push({file:s,names:c})}catch{}return e}function Q(t,n){return new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(t)}function G(t,n){let a=new Set(t.match(/\w+/g)),e=new Set;for(let s of n)if(/^\w+$/.test(s)?a.has(s):Q(t,s))e.add(s);return e}var T=m(64);function V(t,n){let a=h(t,n.size),e=T.get(a);if(e)return e;let s;try{s=Ho(t,n)}catch{s=G(t,n)}let d=[...t.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...t.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let c of d)for(let p of c[1].split(",")){let g=p.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(g&&n.has(g))s.add(g)}return T.set(a,s),s}function Y(t,n,a){let e=new Map;for(let{file:u,names:l}of t)for(let f of l)if(!e.has(f))e.set(f,u);let s=(u)=>{let l=[];for(let f of G(u,e.keys()))l.push(e.get(f));return l},d=new Set(e.keys()),c=(u)=>{let l=[];for(let f of V(u,d))l.push(e.get(f));return l},p=new Set,g=a.flatMap((u,l)=>l===0?s(u):c(u));while(g.length>0){let u=[];for(let l of g){if(p.has(l))continue;p.add(l);for(let f of c(n.get(l)??""))if(!p.has(f))u.push(f)}g=u}return p}async function Nl(t,n,a){let{key:e,files:s}=await z(t);if(!e)return null;let d=()=>[...new Set([...s,...s.flatMap((r)=>ie(r))])],c=Ie(d());if(s.length===0)return H(C,e,c,""),null;s.sort();let p=L({loader:"ts",target:"browser",define:w()}),g=pt(D,e,c);if(!g){let r=new Map,i=[];for(let _ of s)try{let x=await Bun.file(_).text();r.set(_,x);let b=p.scan(x).exports.filter((W)=>W!=="default");if(b.length>0)i.push({file:_,names:b})}catch{r.set(_,"")}g=H(D,e,c,{codeByFile:r,modules:i})}let{codeByFile:u,modules:l}=g,f;if(n===void 0)f=new Set(s);else{let r=a?[n,...a]:[n],i=h(r.join("\x00"),e,r.length,c),_=k.get(i);if(f=_??Y(l,u,r),!_)k.set(i,f)}if(f.size===0)return null;let E=s.filter((r)=>f.has(r)),B=`${e}\x00${E.join("\x00")}`,F=pt(C,B,c);if(F!==void 0)return F||null;let M=[],v=new Set,R=new Set;for(let r of E)try{let i=u.get(r)??await Bun.file(r).text(),_=S.basename(r,".ts");for(let b of i.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(b[1])R.add(b[1]);let x=[];try{for(let b of p.scan(i).exports)if(b!=="default")v.add(b),x.push(b)}catch{}if(i=I(i),yt(i))i=await bt(i,r,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),i=Ve(i);i=At(i),i=i.replace(/^export\s+(default\s+)?/gm,""),i=p.transformSync(i),M.push(`// Composable: ${_}
3
3
  ${i.trim()}`)}catch(i){console.warn(`[stx] Failed to load composable ${r}:`,i)}if(M.length===0||v.size===0)return H(C,B,c,""),null;let J=[...v].map((r)=>` try { if (!(${JSON.stringify(r)} in __c)) __c[${JSON.stringify(r)}] = ${r}; } catch (e) {}`).join(`
4
4
  `),j=JSON.stringify([...v]),N=M.join(`
5
5
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-0ytm2ecf.js";import"./chunk-9mjy16pw.js";import"./chunk-kpns3659.js";import{cr,js,Fi}from"./chunk-5tyes97j.js";import"./chunk-ba88n1j7.js";import{Hn,qn,n,o}from"./chunk-mh7k2ps4.js";import"./chunk-7p0zerfj.js";import"./chunk-8m3k43d3.js";import"./chunk-6k4f583z.js";import"./chunk-w9srfsfk.js";import"./chunk-e6y6s7q8.js";import"./chunk-299xbyhn.js";import{Oe}from"./chunk-etdx3fye.js";import"./chunk-58jyc7kp.js";import{existsSync as ee,mkdirSync as rn,readFileSync as on}from"fs";import C from"path";import{existsSync as Ye,mkdirSync as en}from"fs";import D from"path";import{existsSync as Jt}from"fs";import H from"path";var tt="data-stx-b",Ne=new Set(js),nt=new Set(cr);function rt(r){if(r==="ref"||r==="data-stx-ref")return"ref";if(r.startsWith("::"))return null;if(r.startsWith("@bind:")||r.startsWith("x-bind:"))return"attr";if(r.startsWith("@")||r.startsWith(":")){let e=r.slice(1).split(".")[0];if(Ne.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(Fi(e))return"event";if(r.startsWith("@"))return"event";return"attr"}if(r.startsWith("x-")){let e=r.split(".")[0];if(!nt.has(e))return"attr";let t=e.slice(2);if(t==="cloak"||t==="data"||t==="bind")return null;if(t==="tooltip"||t==="tooltip-position")return null;return Ne.has(t)?t==="if"?"if":t:"attr"}return null}function it(r){let e=[];for(let[t,i]of r){let s=rt(t);if(s)e.push({name:t,value:i,kind:s})}return e}var ot=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,re=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function ke(r){let e=[],t=0;return{html:r.replace(ot,(s,a,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];re.lastIndex=0;for(let h=re.exec(l);h;h=re.exec(l))u.push([h[1],h[2]??h[3]??h[4]??""]);let c=it(u);if(!c.length)return s;let g={id:t++,bindings:c};if(c.some((h)=>h.kind==="for"))g.template=!0;e.push(g);let p=s.endsWith("/>");return`${s.slice(0,p?-2:-1).trimEnd()} ${tt}="${g.id}"${p?"/>":">"}`}),manifest:{entries:e}}}var oe={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText"},se=new Set(Object.values(oe));var Ee=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),Ae=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight"];function T(r){let e=typeof r==="number"?r:Number.parseFloat(String(r??""));return Number.isFinite(e)?e:0}function V(r){return Math.round(r*1000)/1000}function ae(r){if(Array.isArray(r)&&r.length===4&&r.every((t)=>Number.isFinite(Number(t))))return r.map(Number);let e=String(r??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((t)=>!Number.isFinite(t))||e[2]<=0||e[3]<=0)return null;return e}function st(r){let e=String(r??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var Te=/[MLHVCSQTAZ]/i,ie=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function at(r){let e=[],t=r,i=Te.exec(t);while(i){let s=i.index;t=t.slice(s);let a=t[0];t=t.slice(1);let l=Te.exec(t),u=l?t.slice(0,l.index):t,c;if(a==="A"||a==="a"){c=[];let g=0,p=u.trim(),d=0;while(d<p.length){let h=g%7,b=p.slice(d).replace(/^[\s,]+/,"");if(d=p.length-b.length,!b)break;if(h===3||h===4)c.push(b[0]==="1"?1:0),d+=1;else{ie.lastIndex=0;let v=ie.exec(b);if(!v||v.index!==0)break;c.push(Number.parseFloat(v[0])),d+=v[0].length}g++}}else c=(u.match(ie)||[]).map(Number.parseFloat);e.push({command:a,args:c}),i=l}return e}function ct(r,e,t,i,s,a,l,u,c){if(r===u&&e===c)return[];let g=Math.abs(t),p=Math.abs(i);if(!g||!p)return[1,u,c];let d=s*Math.PI/180,h=Math.cos(d),b=Math.sin(d),v=(r-u)/2,S=(e-c)/2,f=h*v+b*S,y=-b*v+h*S,w=f*f/(g*g)+y*y/(p*p);if(w>1)g*=Math.sqrt(w),p*=Math.sqrt(w);let R=g*g*p*p-g*g*y*y-p*p*f*f,m=g*g*y*y+p*p*f*f,E=Math.sqrt(Math.max(0,R/m));if(a===l)E=-E;let k=E*(g*y)/p,x=E*-(p*f)/g,I=h*k-b*x+(r+u)/2,O=b*k+h*x+(e+c)/2,P=(A,_,B,X)=>{let te=A*X-_*B<0?-1:1,ne=(A*B+_*X)/(Math.hypot(A,_)*Math.hypot(B,X));return te*Math.acos(Math.min(1,Math.max(-1,ne)))},z=P(1,0,(f-k)/g,(y-x)/p),L=P((f-k)/g,(y-x)/p,(-f-k)/g,(-y-x)/p);if(!l&&L>0)L-=2*Math.PI;if(l&&L<0)L+=2*Math.PI;let q=Math.max(1,Math.ceil(Math.abs(L)/(Math.PI/2))),be=L/q,U=1.3333333333333333*Math.tan(be/4),ye=[],Se=(A)=>{let _=g*Math.cos(A),B=p*Math.sin(A);return[h*_-b*B+I,b*_+h*B+O]},ve=(A)=>{let _=-g*Math.sin(A),B=p*Math.cos(A);return[h*_-b*B,b*_+h*B]},G=z;for(let A=0;A<q;A++){let _=G+be,[B,X]=Se(G),[te,ne]=ve(G),[we,xe]=Se(_),[Ze,et]=ve(_);ye.push(2,B+U*te,X+U*ne,we-U*Ze,xe-U*et,A===q-1?u:we,A===q-1?c:xe),G=_}return ye}function lt(r){let e=[],t=0,i=0,s=0,a=0,l=0,u=0,c=0,g=0,p="";for(let{command:d,args:h}of at(String(r??""))){let b=d===d.toLowerCase(),v=d.toUpperCase(),S=()=>b?t:0,f=()=>b?i:0,y=0,w=(m)=>{if(y+m>h.length)return null;let E=h.slice(y,y+m);return y+=m,E};if(v==="Z"){e.push(4),t=s,i=a,p="Z";continue}let R=!0;while(y<h.length||R&&v==="Z"){switch(v){case"M":{let m=w(2);if(!m)return e;if(t=m[0]+S(),i=m[1]+f(),R)e.push(0,t,i),s=t,a=i;else e.push(1,t,i);p=R?"M":"L";break}case"L":{let m=w(2);if(!m)return e;t=m[0]+S(),i=m[1]+f(),e.push(1,t,i),p="L";break}case"H":{let m=w(1);if(!m)return e;t=m[0]+S(),e.push(1,t,i),p="L";break}case"V":{let m=w(1);if(!m)return e;i=m[0]+f(),e.push(1,t,i),p="L";break}case"C":{let m=w(6);if(!m)return e;let E=m[0]+S(),k=m[1]+f();l=m[2]+S(),u=m[3]+f(),t=m[4]+S(),i=m[5]+f(),e.push(2,E,k,l,u,t,i),p="C";break}case"S":{let m=w(4);if(!m)return e;let E=p==="C"?2*t-l:t,k=p==="C"?2*i-u:i;l=m[0]+S(),u=m[1]+f(),t=m[2]+S(),i=m[3]+f(),e.push(2,E,k,l,u,t,i),p="C";break}case"Q":{let m=w(4);if(!m)return e;c=m[0]+S(),g=m[1]+f(),t=m[2]+S(),i=m[3]+f(),e.push(3,c,g,t,i),p="Q";break}case"T":{let m=w(2);if(!m)return e;c=p==="Q"?2*t-c:t,g=p==="Q"?2*i-g:i,t=m[0]+S(),i=m[1]+f(),e.push(3,c,g,t,i),p="Q";break}case"A":{let m=w(7);if(!m)return e;let E=m[5]+S(),k=m[6]+f();e.push(...ct(t,i,m[0],m[1],m[2],m[3],m[4],E,k)),t=E,i=k,p="A";break}default:return e}R=!1}}return e.map((d)=>V(d))}function Re(r,e,t,i){if(t<=0||i<=0)return[];let s=0.5522847498;return[0,r+t,e,2,r+t,e+s*i,r+s*t,e+i,r,e+i,2,r-s*t,e+i,r-t,e+s*i,r-t,e,2,r-t,e-s*i,r-s*t,e-i,r,e-i,2,r+s*t,e-i,r+t,e-s*i,r+t,e,4].map(V)}function ce(r,e){switch(r){case"Path":return lt(String(e.d??""));case"Line":return[0,T(e.x1),T(e.y1),1,T(e.x2),T(e.y2)].map(V);case"Rect":{let t=T(e.x),i=T(e.y),s=T(e.width),a=T(e.height);if(s<=0||a<=0)return[];let l=e.rx===void 0?T(e.ry):T(e.rx),u=e.ry===void 0?l:T(e.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),a/2),!l||!u)return[0,t,i,1,t+s,i,1,t+s,i+a,1,t,i+a,4].map(V);let c=0.5522847498;return[0,t+l,i,1,t+s-l,i,2,t+s-l+c*l,i,t+s,i+u-c*u,t+s,i+u,1,t+s,i+a-u,2,t+s,i+a-u+c*u,t+s-l+c*l,i+a,t+s-l,i+a,1,t+l,i+a,2,t+l-c*l,i+a,t,i+a-u+c*u,t,i+a-u,1,t,i+u,2,t,i+u-c*u,t+l-c*l,i,t+l,i,4].map(V)}case"Circle":return Re(T(e.cx),T(e.cy),T(e.r),T(e.r));case"Ellipse":return Re(T(e.cx),T(e.cy),T(e.rx),T(e.ry));case"Polyline":case"Polygon":{let t=st(e.points);if(t.length<4)return[];let i=[0,t[0],t[1]];for(let s=2;s<t.length;s+=2)i.push(1,t[s],t[s+1]);if(r==="Polygon")i.push(4);return i.map(V)}default:return null}}var dt=[...Ae,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","blurRadius","contentContainerStyle","defaultSource","defaultValue","ellipsizeMode","fadeDuration","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","iosBackgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","maxLength","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","statusBarTranslucent","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","mapType","strokeColor","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],_e=new Set(["animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pictureInPicture"]),ut=new Map(dt.map((r)=>[Ie(r),r]));function Ie(r){return r.replace(/[-_]/g,"").toLowerCase()}function le(r){return ut.get(Ie(r))??r}var ft={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",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",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 Pe(r){return ft[r.toLowerCase()]||r}var pt={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",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",bed:"bed.double",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",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","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-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"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",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal","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",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",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",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",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",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function de(r,e=!1){let t=String(r??"").trim();if(!t)return{symbol:"circle",known:!1};if(e)return{symbol:t,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(t)??/^([a-z0-9]+):(.+)$/.exec(t),s=i?i[1]:"lucide",a=i?i[2]:t;if(s==="lucide"){let l=pt[a];if(l)return{symbol:l,iconify:`i-lucide-${a}`,known:!0};if(!i&&t.includes("."))return{symbol:t,known:!0}}return{symbol:"circle",iconify:i?t:`i-lucide-${a}`,known:!1}}var gt={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},Ce={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},M={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function W(r){let e=r.lastIndexOf("/");if(e>0&&!r.endsWith("]")){let i=W(r.slice(0,e)),s=r.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return ht(i,a/100)}if(r==="transparent")return"transparent";if(r==="current")return"currentColor";if(r==="black")return"#000000";if(r==="white")return"#ffffff";let t=r.split("-");if(t.length===2){let[i,s]=t,a=gt[i];if(a&&typeof a==="object")return a[s]}if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function ht(r,e){if(r==="transparent")return r;let t=r.startsWith("#")?r.slice(1):"";if(t.length===3)t=t.split("").map((s)=>s+s).join("");if(t.length===8)t=t.slice(0,6);if(t.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${t}${i.toString(16).padStart(2,"0")}`}function ue(r,e=16){if(!r.startsWith("[")||!r.endsWith("]"))return;let t=r.slice(1,-1),i=Number.parseFloat(t);if(!Number.isFinite(i))return;if(t.endsWith("rem"))return i*16;if(t.endsWith("em"))return i*e;return i}function N(r){if(r.startsWith("[")&&r.endsWith("]")){let e=r.slice(1,-1);if(e.endsWith("%"))return;let t=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(t)?t:void 0}return Me[r]}function K(r){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(r);if(e)return`${Number.parseFloat(e[1])}%`;return N(r)}var mt={flex:(r,e)=>(e.display="flex",!0),hidden:(r,e)=>(e.display="none",!0),grid:(r,e)=>(e.display="grid",!0),"flex-row":(r,e)=>(e.flexDirection="row",!0),"flex-col":(r,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(r,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(r,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(r,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(r,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(r,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(r,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(r,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(r,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(r,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(r,e)=>(e.flexGrow=1,!0),"grow-0":(r,e)=>(e.flexGrow=0,!0),shrink:(r,e)=>(e.flexShrink=1,!0),"shrink-0":(r,e)=>(e.flexShrink=0,!0),"justify-start":(r,e)=>(e.justifyContent="flex-start",!0),"justify-center":(r,e)=>(e.justifyContent="center",!0),"justify-end":(r,e)=>(e.justifyContent="flex-end",!0),"justify-between":(r,e)=>(e.justifyContent="space-between",!0),"justify-around":(r,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(r,e)=>(e.justifyContent="space-evenly",!0),"items-start":(r,e)=>(e.alignItems="flex-start",!0),"items-center":(r,e)=>(e.alignItems="center",!0),"items-end":(r,e)=>(e.alignItems="flex-end",!0),"items-stretch":(r,e)=>(e.alignItems="stretch",!0),"items-baseline":(r,e)=>(e.alignItems="baseline",!0),"self-auto":(r,e)=>(e.alignSelf="auto",!0),"self-start":(r,e)=>(e.alignSelf="flex-start",!0),"self-center":(r,e)=>(e.alignSelf="center",!0),"self-end":(r,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(r,e)=>(e.alignSelf="stretch",!0),"self-baseline":(r,e)=>(e.alignSelf="baseline",!0),"min-w-0":(r,e)=>(e.minWidth=0,!0),"aspect-square":(r,e)=>(e.aspectRatio=1,!0),"inset-0":(r,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(r,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(r,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(r,e)=>(e.letterSpacing=0,!0),"tracking-wide":(r,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(r,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(r,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(r,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(r,e)=>(e.position="relative",!0),absolute:(r,e)=>(e.position="absolute",!0),"overflow-visible":(r,e)=>(e.overflow="visible",!0),"overflow-hidden":(r,e)=>(e.overflow="hidden",!0),"overflow-scroll":(r,e)=>(e.overflow="scroll",!0),"font-thin":(r,e)=>(e.fontWeight="100",!0),"font-extralight":(r,e)=>(e.fontWeight="200",!0),"font-light":(r,e)=>(e.fontWeight="300",!0),"font-normal":(r,e)=>(e.fontWeight="400",!0),"font-medium":(r,e)=>(e.fontWeight="500",!0),"font-semibold":(r,e)=>(e.fontWeight="600",!0),"font-bold":(r,e)=>(e.fontWeight="bold",!0),"font-extrabold":(r,e)=>(e.fontWeight="800",!0),"font-black":(r,e)=>(e.fontWeight="900",!0),italic:(r,e)=>(e.fontStyle="italic",!0),"not-italic":(r,e)=>(e.fontStyle="normal",!0),"text-left":(r,e)=>(e.textAlign="left",!0),"text-center":(r,e)=>(e.textAlign="center",!0),"text-right":(r,e)=>(e.textAlign="right",!0),"text-justify":(r,e)=>(e.textAlign="justify",!0),uppercase:(r,e)=>(e.textTransform="uppercase",!0),lowercase:(r,e)=>(e.textTransform="lowercase",!0),capitalize:(r,e)=>(e.textTransform="capitalize",!0),"normal-case":(r,e)=>(e.textTransform="none",!0),underline:(r,e)=>(e.textDecorationLine="underline",!0),"line-through":(r,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(r,e)=>(e.textDecorationLine="none",!0)};function bt(r,e){if(!r.startsWith("bg-"))return!1;let t=r.slice(3),i=W(t);if(i)return e.backgroundColor=i,!0;return!1}function yt(r,e){if(!r.startsWith("text-"))return!1;let t=r.slice(5);if(Ce[t])return e.fontSize=Ce[t],!0;if(t.startsWith("[")&&t.endsWith("]")){let s=t.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(s)){let a=s.endsWith("rem")||s.endsWith("em")?Number.parseFloat(s)*16:Number.parseFloat(s);if(Number.isFinite(a))return e.fontSize=a,!0}}let i=W(t);if(i)return e.color=i,!0;return!1}var St=new Set(["t","tr","r","br","b","bl","l","tl"]);function vt(r,e){let t=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(r);if(t&&St.has(t[1]))return e.gradientDirection=`to-${t[1]}`,!0;let i=/^(from|via|to)-(.+)$/.exec(r);if(!i)return!1;let s=W(i[2]);if(!s)return!1;if(i[1]==="from")e.gradientFrom=s;else if(i[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function wt(r,e){for(let t of["fill","stroke"]){let i=`${t}-`;if(!r.startsWith(i))continue;let s=r.slice(i.length);if(s==="none")return e[t]="none",!0;if(t==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(t==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=W(s);if(a)return e[t]=a,!0}return!1}function xt(r,e){if(r.startsWith("p-")){let t=N(r.slice(2));if(t!==void 0)return e.padding=t,!0}if(r.startsWith("px-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingHorizontal=t,!0}if(r.startsWith("py-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingVertical=t,!0}if(r.startsWith("pt-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingTop=t,!0}if(r.startsWith("pr-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingRight=t,!0}if(r.startsWith("pb-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingBottom=t,!0}if(r.startsWith("pl-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingLeft=t,!0}return!1}function Nt(r,e){if(r.startsWith("m-")){let t=N(r.slice(2));if(t!==void 0)return e.margin=t,!0}if(r.startsWith("mx-")){let t=N(r.slice(3));if(t!==void 0)return e.marginHorizontal=t,!0}if(r.startsWith("my-")){let t=N(r.slice(3));if(t!==void 0)return e.marginVertical=t,!0}if(r.startsWith("mt-")){let t=N(r.slice(3));if(t!==void 0)return e.marginTop=t,!0}if(r.startsWith("mr-")){let t=N(r.slice(3));if(t!==void 0)return e.marginRight=t,!0}if(r.startsWith("mb-")){let t=N(r.slice(3));if(t!==void 0)return e.marginBottom=t,!0}if(r.startsWith("ml-")){let t=N(r.slice(3));if(t!==void 0)return e.marginLeft=t,!0}return!1}function kt(r,e){if(!r.startsWith("w-"))return!1;let t=r.slice(2);if(t==="full")return e.width="100%",!0;if(t==="screen")return e.width="100%",!0;if(t==="auto")return e.width="auto",!0;if(t.includes("/")){let[s,a]=t.split("/"),l=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${l}%`,!0}let i=K(t);if(i!==void 0)return e.width=i,!0;return!1}function Tt(r,e){if(!r.startsWith("h-"))return!1;let t=r.slice(2);if(t==="full")return e.height="100%",!0;if(t==="screen")return e.height="100%",!0;if(t==="auto")return e.height="auto",!0;let i=K(t);if(i!==void 0)return e.height=i,!0;return!1}function Rt(r,e){if(!r.startsWith("rounded"))return!1;if(r==="rounded")return e.borderRadius=M.DEFAULT,!0;let t=r.slice(8);if(t==="")return!1;let i=/^(?:(t|b|l|r)-)?(\[[^\]]+\])$/.exec(t);if(i){let a=ue(i[2]);if(a===void 0)return!1;let l={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"]};for(let u of i[1]?l[i[1]]:["borderRadius"])e[u]=a;return!0}if(t.startsWith("t-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopLeftRadius=a,e.borderTopRightRadius=a,!0}if(t.startsWith("b-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderBottomLeftRadius=a,e.borderBottomRightRadius=a,!0}if(t.startsWith("l-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopLeftRadius=a,e.borderBottomLeftRadius=a,!0}if(t.startsWith("r-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopRightRadius=a,e.borderBottomRightRadius=a,!0}let s=M[t];if(s!==void 0)return e.borderRadius=s,!0;return!1}function Et(r,e){if(!r.startsWith("border"))return!1;if(r==="border")return e.borderWidth=1,!0;let t=r.match(/^border-(\d+)$/);if(t)return e.borderWidth=Number.parseInt(t[1]),!0;let i=r.match(/^border-(t|r|b|l)-?(\d*)$/);if(i){let[,s,a]=i,l=a?Number.parseInt(a):1;switch(s){case"t":e.borderTopWidth=l;break;case"r":e.borderRightWidth=l;break;case"b":e.borderBottomWidth=l;break;case"l":e.borderLeftWidth=l;break}return!0}return!1}function At(r,e){if(!r.startsWith("border-"))return!1;let t=r.slice(7),i=W(t);if(i)return e.borderColor=i,!0;return!1}function _t(r,e){if(!r.startsWith("opacity-"))return!1;let t=Number.parseInt(r.slice(8));if(!Number.isNaN(t))return e.opacity=t/100,!0;return!1}function It(r,e){if(r.startsWith("tracking-[")){let t=ue(r.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(t===void 0)return!1;return e.letterSpacing=t,!0}if(r.startsWith("leading-")){let t=r.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=t.startsWith("[")?/^\[[\d.]+\]$/.test(t)?Number.parseFloat(t.slice(1,-1))*i:ue(t,i):s[t]!==void 0?s[t]*i:Me[t];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Pt(r,e){let t=/^grid-cols-(\d+)$/.exec(r);if(!t)return!1;return e.gridColumns=Number(t[1]),!0}function Ct(r,e){if(!r.startsWith("size-"))return!1;let t=r.slice(5),i=t==="full"?"100%":K(t);if(i===void 0)return!1;return e.width=i,e.height=i,!0}var Bt={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function Ot(r,e){let t=/^(min|max)-(w|h)-(.+)$/.exec(r);if(!t)return!1;let[,i,s,a]=t,l=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&i==="max"&&Bt[a]||K(a);if(l===void 0&&a!=="none")return!1;let u=`${i}${s==="w"?"Width":"Height"}`;if(l===void 0)delete e[u];else e[u]=l;return!0}function Mt(r,e){let t=/^(-?)(top|right|bottom|left)-(.+)$/.exec(r);if(!t)return!1;let i=t[3]==="full"?"100%":N(t[3]);if(i===void 0)return!1;return e[t[2]]=typeof i==="number"&&t[1]?-i:i,!0}function Lt(r,e){let t=/^space-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=N(t[2]);if(i===void 0)return!1;return e.gap=i,!0}function Dt(r,e){if(r.startsWith("gap-")){let t=N(r.slice(4));if(t!==void 0)return e.gap=t,!0}if(r.startsWith("gap-x-")){let t=N(r.slice(6));if(t!==void 0)return e.columnGap=t,!0}if(r.startsWith("gap-y-")){let t=N(r.slice(6));if(t!==void 0)return e.rowGap=t,!0}return!1}function Y(r){let e=[],t=[],i=[];function s(c,g){let p=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(c),d=p&&Hn[p[2]];return d?`${p[1]}-${d[g]}${p[3]||""}`:c}for(let c of r.split(/\s+/).filter(Boolean))if(c.startsWith("dark:"))t.push(s(c.slice(5),"dark"));else if(!c.includes(":")||c.startsWith("[")){if(e.push(s(c,"light")),s(c,"dark")!==c)i.push(s(c,"dark"))}let a=[],u={style:Be(e.join(" "),a),unknown:a};if(t.length||i.length)u.dark=Be([...i,...t].join(" "),a);for(let c of e){if(c==="truncate")u.numberOfLines=1;let g=/^line-clamp-(\d+)$/.exec(c);if(g)u.numberOfLines=Number(g[1]);if(!u.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(c))u.icon=c}return u.unknown=a.filter((c)=>!/^line-clamp-\d+$/.test(c)),u}function Be(r,e){let t={},i=r.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=mt[s];if(a){a("",t);continue}if(vt(s,t))continue;if(bt(s,t))continue;if(wt(s,t))continue;if(yt(s,t))continue;if(xt(s,t))continue;if(Nt(s,t))continue;if(kt(s,t))continue;if(Tt(s,t))continue;if(Rt(s,t))continue;if(Et(s,t))continue;if(At(s,t))continue;if(_t(s,t))continue;if(Dt(s,t))continue;if(It(s,t))continue;if(Ct(s,t))continue;if(Ot(s,t))continue;if(Pt(s,t))continue;if(Mt(s,t))continue;if(Lt(s,t))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return t}function F(r,e={},t={},i={},s=[]){return{type:r,props:e,style:t,events:i,children:s}}function Le(r,e,t={}){return{version:"1.0.0",root:r,script:e,meta:{source:t.source||"unknown",compiledAt:t.compiledAt||Date.now(),headwindConfig:t.headwindConfig}}}var De=new Set(["script","style","head","meta","link","title","base","noscript"]),Ve=new Set(["template","body","html","main","fragment"]),J=new Set,Vt={click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",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",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"},Wt=new Set(["onBlur","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),fe=new Set(["display","gridColumns","gridTemplateColumns","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","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","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Ft=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),$t=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"]),We=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...se]),zt=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"],["listrole","listRole"]]),Fe=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Xt={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function j(r){return r.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,t)=>{let i=Xt[t.toLowerCase()];if(i!==void 0)return i;if(t[0]==="#"){let s=t[1]==="x"||t[1]==="X"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function $e(r){return r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function ze(r){let e=/^(-?[\d.]+)px$/.exec(r);if(e)return Number.parseFloat(e[1]);let t=/^(-?[\d.]+)r?em$/.exec(r);if(t)return Number.parseFloat(t[1])*16;if(/^-?[\d.]+$/.test(r))return Number.parseFloat(r);return r}function Xe(r,e,t){let i={},s={},a={},l="",u={};for(let[g,p]of e){let d=g.toLowerCase();if(d==="class"||d==="classname"){l=l?`${l} ${p}`:p;continue}if(d==="style"){u={...u,...Ht(r,p,t)};continue}if(d.startsWith(":")||d.startsWith("x-")&&d!=="x-cloak"){a[d.startsWith(":")?d.slice(1):d.slice(2)]=j(p);continue}if(d==="x-cloak")continue;if(d.startsWith("@")||d.startsWith("v-on:")){let v=d.startsWith("@")?d.slice(1):d.slice(5),[S]=v.split("."),f=Vt[S]??(S.startsWith("on")?S:"");if(!f||!Wt.has(f)){t.push({kind:"unread-event",tag:r,name:g});continue}s[f]=j(p);continue}if(d==="key"){i.key=p;continue}let h=j(p),b=le(g);if(h===""&&_e.has(b)){i[b]=!0;continue}try{i[b]=JSON.parse(h)}catch{i[b]=h}}let c={...l?Y(l).style:{},...u};return{props:i,style:c,events:s,bindings:a,classes:l,inline:u}}function jt(r,e){if(r==="shadowOffset"){if(!e||typeof e!=="object"||Array.isArray(e))return;let{width:t,height:i}=e;return typeof t==="number"&&typeof i==="number"?{width:t,height:i}:void 0}if(r==="transform"){if(!Array.isArray(e))return;let t=e.filter((i)=>Boolean(i)&&typeof i==="object"&&!Array.isArray(i)&&Object.keys(i).length===1).filter((i)=>["number","string"].includes(typeof Object.values(i)[0]));return t.length?t:void 0}return}function je(r,e){if(Ft.has(r))return!1;if($t.has(r))return/^-?[\d.]+%$/.test(e);return!0}function Ht(r,e,t){let i={},s=j(e);try{let a=JSON.parse(s);if(a&&typeof a==="object"&&!Array.isArray(a)){for(let[l,u]of Object.entries(a)){let c=fe.has(l)?l:$e(l.trim().toLowerCase());if(!fe.has(c)){t.push({kind:"unknown-style",tag:r,name:c});continue}if(u===null||u===void 0)continue;let g=typeof u==="string"?ze(u):u;if(typeof g==="object"){let p=jt(c,g);if(p===void 0)t.push({kind:"non-numeric-style",tag:r,name:c});else i[c]=p;continue}if(typeof g!=="string"&&typeof g!=="number")continue;if(typeof g==="string"&&!je(c,g)){t.push({kind:"non-numeric-style",tag:r,name:c});continue}i[c]=g}return i}}catch{}for(let a of s.split(";")){let l=a.indexOf(":");if(l===-1)continue;let u=$e(a.slice(0,l).trim().toLowerCase()),c=a.slice(l+1).trim();if(!u||!c)continue;if(!fe.has(u)){t.push({kind:"unknown-style",tag:r,name:u});continue}let g=ze(c);if(typeof g==="string"&&!je(u,g)){t.push({kind:"non-numeric-style",tag:r,name:u});continue}i[u]=g}return i}function pe(r){return r.children.map((e)=>typeof e==="string"?e:pe(e)).join("").replace(/\s+/g," ").trim()}function qt(r,e){let t=r.node,i=t.children.filter((a)=>typeof a!=="string"),s=t.children.filter((a)=>typeof a==="string").join("").trim();if(t.type==="Svg"||t.type==="G")return t.children=i,t;if(t.type==="SvgText"){let a=pe(t);return t.children=a?[a]:[],t}if(Fe.has(t.type)&&i.length===0&&s)return t.type="Text",t.children=[s],t;if(t.type==="Text"&&!s&&i.length===0&&typeof t.props.text==="string")return t.children=t.props.text?[t.props.text]:[],delete t.props.text,t;if(t.type==="Text"&&i.length>0){let a=pe(t);return e.push({kind:"flattened-text",tag:r.tag}),t.children=a?[a]:[],t}if(Fe.has(t.type)&&i.length>0)t.children=i;return t}async function Ut(r,e={}){let t=[],i=[],s=[],a=new Set;function l(d){let h=s[s.length-1];if(!h)i.push(d);else if(!h.dropped)h.node.children.push(d)}function u(d){if(d.node.bindings&&Object.keys(d.node.bindings).length>0){let b=d.node.children,v=b.filter((f)=>typeof f!=="string"),S=v.length===1&&v.length===b.length?v[0]:F("View",{},{},{},b);if(S.bindings={...d.node.bindings,...S.bindings},S.bindingId===void 0&&d.node.bindingId!==void 0)S.bindingId=d.node.bindingId;l(S);return}let h=s[s.length-1];for(let b of d.node.children){if(typeof b==="string"){if(h&&!h.dropped)h.node.children.push(b);continue}if(!h)i.push(b);else if(!h.dropped)h.node.children.push(b)}}function c(d,h){let b=s[s.length-1];if(d==="svg"||b?.svg)return g(d,h,b);let v=De.has(d)&&!J.has(d),S=s[s.length-1]?.dropped??!1,{props:f,style:y,events:w,bindings:R,classes:m,inline:E}=v||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:Xe(d,h,t),k=f["data-native"],x;if(typeof k==="string"&&We.has(k))x=k,delete f["data-native"];else x=J.has(d)?"View":Pe(d);if(x===d&&!We.has(x)&&!De.has(d)&&!Ve.has(d)&&!a.has(d))a.add(d),t.push({kind:"unmapped-tag",tag:d});if((v||J.has(d))&&!a.has(`drop:${d}`))a.add(`drop:${d}`),t.push({kind:"dropped-subtree",tag:d});if(x==="Video"&&f.source===void 0&&f.src!==void 0)f.source=f.src,delete f.src;if(x==="Icon"){let P=Y(m).icon;f.symbol=de(String(f.symbol||f.name||P||""),Boolean(f.symbol)).symbol}if(x==="FlatList"||x==="SectionList"){let P=new Set([...Object.keys(f),...Object.keys(R)].map((z)=>z.toLowerCase()));for(let[z,L]of zt)if(P.has(z))t.push({kind:"unsupported-list-prop",tag:x,name:L})}let I=F(x,f,y,w);I._inlineStyle=E;let O=f["data-stx-b"];if(typeof O==="number"&&Number.isInteger(O))I.bindingId=O;if(delete f["data-stx-b"],m)I._classes=m;if(Object.keys(R).length>0)I.bindings=R;if(typeof f.key==="string")I.key=f.key,delete f.key;return{tag:d,node:I,dropped:v||S||J.has(d),discard:v||S,unwrap:Ve.has(d)}}function g(d,h,b){let v=b?.dropped??!1,S=oe[d];if(v||!S){if(!v&&!a.has(`drop:${d}`))a.add(`drop:${d}`),t.push({kind:Ee.has(d)?"dropped-subtree":"unmapped-tag",tag:d});return{tag:d,node:F("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let{props:f,style:y,events:w,bindings:R,classes:m,inline:E}=Xe(d,h,t);if(S==="Svg"){let O=ae(f.viewBox);if(O)f.viewBox=O;else delete f.viewBox;for(let P of["width","height"]){if(typeof f[P]==="number"&&y[P]===void 0)y[P]=f[P];delete f[P]}}if(typeof f.strokeDasharray==="string"||typeof f.strokeDasharray==="number"){let O=String(f.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);f.strokeDasharray=O}let k=ce(S,f);if(k)f.geometry=k;let x=F(S,f,y,w);x._inlineStyle=E;let I=f["data-stx-b"];if(typeof I==="number"&&Number.isInteger(I))x.bindingId=I;if(delete f["data-stx-b"],m)x._classes=m;if(Object.keys(R).length>0)x.bindings=R;if(typeof f.key==="string")x.key=f.key,delete f.key;return{tag:d,node:x,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(d){let h=d.tagName.toLowerCase(),b=c(h,[...d.attributes]),v=!0;try{d.onEndTag(()=>{if(s.pop(),b.discard)return;if(b.unwrap)u(b);else l(qt(b,t))})}catch{v=!1}if(v)s.push(b);else if(!b.discard)l(b.node)},text(d){let h=s[s.length-1];if(!h||h.dropped)return;let b=j(d.text).replace(/\s+/g," ");if(!b.trim())return;h.node.children.push(b)}}).transform(new Response(r)).text(),i.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);return{root:i.length===1?i[0]:F("View",{},{},{},i),diagnostics:t}}async function He(r,e={}){let{root:t,diagnostics:i}=await Ut(r,e),s=e.script??{exports:{},functions:[],code:""};return{document:Le(t,s,{source:e.source??"unknown"}),diagnostics:i}}var qe=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Gt=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Kt=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Ue=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function ge(r){let e=[];qe.lastIndex=0;for(let a of r.matchAll(qe)){let l=a[1]??"";if(/\bserver\b/.test(l))continue;e.push(a[2].trim())}let t=e.filter(Boolean).join(`
2
+ import"./chunk-0ytm2ecf.js";import"./chunk-9mjy16pw.js";import"./chunk-37nybpw1.js";import{cr,js,Fi}from"./chunk-5tyes97j.js";import"./chunk-ba88n1j7.js";import{Hn,qn,n,o}from"./chunk-wyxjsx4k.js";import"./chunk-7p0zerfj.js";import"./chunk-8m3k43d3.js";import"./chunk-6k4f583z.js";import"./chunk-wm5b2y65.js";import"./chunk-e6y6s7q8.js";import"./chunk-299xbyhn.js";import{Oe}from"./chunk-raqbqt1r.js";import"./chunk-58jyc7kp.js";import{existsSync as ee,mkdirSync as rn,readFileSync as on}from"fs";import C from"path";import{existsSync as Ye,mkdirSync as en}from"fs";import D from"path";import{existsSync as Jt}from"fs";import H from"path";var tt="data-stx-b",Ne=new Set(js),nt=new Set(cr);function rt(r){if(r==="ref"||r==="data-stx-ref")return"ref";if(r.startsWith("::"))return null;if(r.startsWith("@bind:")||r.startsWith("x-bind:"))return"attr";if(r.startsWith("@")||r.startsWith(":")){let e=r.slice(1).split(".")[0];if(Ne.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(Fi(e))return"event";if(r.startsWith("@"))return"event";return"attr"}if(r.startsWith("x-")){let e=r.split(".")[0];if(!nt.has(e))return"attr";let t=e.slice(2);if(t==="cloak"||t==="data"||t==="bind")return null;if(t==="tooltip"||t==="tooltip-position")return null;return Ne.has(t)?t==="if"?"if":t:"attr"}return null}function it(r){let e=[];for(let[t,i]of r){let s=rt(t);if(s)e.push({name:t,value:i,kind:s})}return e}var ot=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,re=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function ke(r){let e=[],t=0;return{html:r.replace(ot,(s,a,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];re.lastIndex=0;for(let h=re.exec(l);h;h=re.exec(l))u.push([h[1],h[2]??h[3]??h[4]??""]);let c=it(u);if(!c.length)return s;let g={id:t++,bindings:c};if(c.some((h)=>h.kind==="for"))g.template=!0;e.push(g);let p=s.endsWith("/>");return`${s.slice(0,p?-2:-1).trimEnd()} ${tt}="${g.id}"${p?"/>":">"}`}),manifest:{entries:e}}}var oe={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText"},se=new Set(Object.values(oe));var Ee=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),Ae=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight"];function T(r){let e=typeof r==="number"?r:Number.parseFloat(String(r??""));return Number.isFinite(e)?e:0}function V(r){return Math.round(r*1000)/1000}function ae(r){if(Array.isArray(r)&&r.length===4&&r.every((t)=>Number.isFinite(Number(t))))return r.map(Number);let e=String(r??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((t)=>!Number.isFinite(t))||e[2]<=0||e[3]<=0)return null;return e}function st(r){let e=String(r??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var Te=/[MLHVCSQTAZ]/i,ie=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function at(r){let e=[],t=r,i=Te.exec(t);while(i){let s=i.index;t=t.slice(s);let a=t[0];t=t.slice(1);let l=Te.exec(t),u=l?t.slice(0,l.index):t,c;if(a==="A"||a==="a"){c=[];let g=0,p=u.trim(),d=0;while(d<p.length){let h=g%7,b=p.slice(d).replace(/^[\s,]+/,"");if(d=p.length-b.length,!b)break;if(h===3||h===4)c.push(b[0]==="1"?1:0),d+=1;else{ie.lastIndex=0;let v=ie.exec(b);if(!v||v.index!==0)break;c.push(Number.parseFloat(v[0])),d+=v[0].length}g++}}else c=(u.match(ie)||[]).map(Number.parseFloat);e.push({command:a,args:c}),i=l}return e}function ct(r,e,t,i,s,a,l,u,c){if(r===u&&e===c)return[];let g=Math.abs(t),p=Math.abs(i);if(!g||!p)return[1,u,c];let d=s*Math.PI/180,h=Math.cos(d),b=Math.sin(d),v=(r-u)/2,S=(e-c)/2,f=h*v+b*S,y=-b*v+h*S,w=f*f/(g*g)+y*y/(p*p);if(w>1)g*=Math.sqrt(w),p*=Math.sqrt(w);let R=g*g*p*p-g*g*y*y-p*p*f*f,m=g*g*y*y+p*p*f*f,E=Math.sqrt(Math.max(0,R/m));if(a===l)E=-E;let k=E*(g*y)/p,x=E*-(p*f)/g,I=h*k-b*x+(r+u)/2,O=b*k+h*x+(e+c)/2,P=(A,_,B,X)=>{let te=A*X-_*B<0?-1:1,ne=(A*B+_*X)/(Math.hypot(A,_)*Math.hypot(B,X));return te*Math.acos(Math.min(1,Math.max(-1,ne)))},z=P(1,0,(f-k)/g,(y-x)/p),L=P((f-k)/g,(y-x)/p,(-f-k)/g,(-y-x)/p);if(!l&&L>0)L-=2*Math.PI;if(l&&L<0)L+=2*Math.PI;let q=Math.max(1,Math.ceil(Math.abs(L)/(Math.PI/2))),be=L/q,U=1.3333333333333333*Math.tan(be/4),ye=[],Se=(A)=>{let _=g*Math.cos(A),B=p*Math.sin(A);return[h*_-b*B+I,b*_+h*B+O]},ve=(A)=>{let _=-g*Math.sin(A),B=p*Math.cos(A);return[h*_-b*B,b*_+h*B]},G=z;for(let A=0;A<q;A++){let _=G+be,[B,X]=Se(G),[te,ne]=ve(G),[we,xe]=Se(_),[Ze,et]=ve(_);ye.push(2,B+U*te,X+U*ne,we-U*Ze,xe-U*et,A===q-1?u:we,A===q-1?c:xe),G=_}return ye}function lt(r){let e=[],t=0,i=0,s=0,a=0,l=0,u=0,c=0,g=0,p="";for(let{command:d,args:h}of at(String(r??""))){let b=d===d.toLowerCase(),v=d.toUpperCase(),S=()=>b?t:0,f=()=>b?i:0,y=0,w=(m)=>{if(y+m>h.length)return null;let E=h.slice(y,y+m);return y+=m,E};if(v==="Z"){e.push(4),t=s,i=a,p="Z";continue}let R=!0;while(y<h.length||R&&v==="Z"){switch(v){case"M":{let m=w(2);if(!m)return e;if(t=m[0]+S(),i=m[1]+f(),R)e.push(0,t,i),s=t,a=i;else e.push(1,t,i);p=R?"M":"L";break}case"L":{let m=w(2);if(!m)return e;t=m[0]+S(),i=m[1]+f(),e.push(1,t,i),p="L";break}case"H":{let m=w(1);if(!m)return e;t=m[0]+S(),e.push(1,t,i),p="L";break}case"V":{let m=w(1);if(!m)return e;i=m[0]+f(),e.push(1,t,i),p="L";break}case"C":{let m=w(6);if(!m)return e;let E=m[0]+S(),k=m[1]+f();l=m[2]+S(),u=m[3]+f(),t=m[4]+S(),i=m[5]+f(),e.push(2,E,k,l,u,t,i),p="C";break}case"S":{let m=w(4);if(!m)return e;let E=p==="C"?2*t-l:t,k=p==="C"?2*i-u:i;l=m[0]+S(),u=m[1]+f(),t=m[2]+S(),i=m[3]+f(),e.push(2,E,k,l,u,t,i),p="C";break}case"Q":{let m=w(4);if(!m)return e;c=m[0]+S(),g=m[1]+f(),t=m[2]+S(),i=m[3]+f(),e.push(3,c,g,t,i),p="Q";break}case"T":{let m=w(2);if(!m)return e;c=p==="Q"?2*t-c:t,g=p==="Q"?2*i-g:i,t=m[0]+S(),i=m[1]+f(),e.push(3,c,g,t,i),p="Q";break}case"A":{let m=w(7);if(!m)return e;let E=m[5]+S(),k=m[6]+f();e.push(...ct(t,i,m[0],m[1],m[2],m[3],m[4],E,k)),t=E,i=k,p="A";break}default:return e}R=!1}}return e.map((d)=>V(d))}function Re(r,e,t,i){if(t<=0||i<=0)return[];let s=0.5522847498;return[0,r+t,e,2,r+t,e+s*i,r+s*t,e+i,r,e+i,2,r-s*t,e+i,r-t,e+s*i,r-t,e,2,r-t,e-s*i,r-s*t,e-i,r,e-i,2,r+s*t,e-i,r+t,e-s*i,r+t,e,4].map(V)}function ce(r,e){switch(r){case"Path":return lt(String(e.d??""));case"Line":return[0,T(e.x1),T(e.y1),1,T(e.x2),T(e.y2)].map(V);case"Rect":{let t=T(e.x),i=T(e.y),s=T(e.width),a=T(e.height);if(s<=0||a<=0)return[];let l=e.rx===void 0?T(e.ry):T(e.rx),u=e.ry===void 0?l:T(e.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),a/2),!l||!u)return[0,t,i,1,t+s,i,1,t+s,i+a,1,t,i+a,4].map(V);let c=0.5522847498;return[0,t+l,i,1,t+s-l,i,2,t+s-l+c*l,i,t+s,i+u-c*u,t+s,i+u,1,t+s,i+a-u,2,t+s,i+a-u+c*u,t+s-l+c*l,i+a,t+s-l,i+a,1,t+l,i+a,2,t+l-c*l,i+a,t,i+a-u+c*u,t,i+a-u,1,t,i+u,2,t,i+u-c*u,t+l-c*l,i,t+l,i,4].map(V)}case"Circle":return Re(T(e.cx),T(e.cy),T(e.r),T(e.r));case"Ellipse":return Re(T(e.cx),T(e.cy),T(e.rx),T(e.ry));case"Polyline":case"Polygon":{let t=st(e.points);if(t.length<4)return[];let i=[0,t[0],t[1]];for(let s=2;s<t.length;s+=2)i.push(1,t[s],t[s+1]);if(r==="Polygon")i.push(4);return i.map(V)}default:return null}}var dt=[...Ae,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","blurRadius","contentContainerStyle","defaultSource","defaultValue","ellipsizeMode","fadeDuration","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","iosBackgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","maxLength","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","statusBarTranslucent","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","mapType","strokeColor","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],_e=new Set(["animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pictureInPicture"]),ut=new Map(dt.map((r)=>[Ie(r),r]));function Ie(r){return r.replace(/[-_]/g,"").toLowerCase()}function le(r){return ut.get(Ie(r))??r}var ft={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",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",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 Pe(r){return ft[r.toLowerCase()]||r}var pt={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",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",bed:"bed.double",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",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","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-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"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",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal","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",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",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",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",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",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function de(r,e=!1){let t=String(r??"").trim();if(!t)return{symbol:"circle",known:!1};if(e)return{symbol:t,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(t)??/^([a-z0-9]+):(.+)$/.exec(t),s=i?i[1]:"lucide",a=i?i[2]:t;if(s==="lucide"){let l=pt[a];if(l)return{symbol:l,iconify:`i-lucide-${a}`,known:!0};if(!i&&t.includes("."))return{symbol:t,known:!0}}return{symbol:"circle",iconify:i?t:`i-lucide-${a}`,known:!1}}var gt={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},Ce={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},M={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function W(r){let e=r.lastIndexOf("/");if(e>0&&!r.endsWith("]")){let i=W(r.slice(0,e)),s=r.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return ht(i,a/100)}if(r==="transparent")return"transparent";if(r==="current")return"currentColor";if(r==="black")return"#000000";if(r==="white")return"#ffffff";let t=r.split("-");if(t.length===2){let[i,s]=t,a=gt[i];if(a&&typeof a==="object")return a[s]}if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function ht(r,e){if(r==="transparent")return r;let t=r.startsWith("#")?r.slice(1):"";if(t.length===3)t=t.split("").map((s)=>s+s).join("");if(t.length===8)t=t.slice(0,6);if(t.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${t}${i.toString(16).padStart(2,"0")}`}function ue(r,e=16){if(!r.startsWith("[")||!r.endsWith("]"))return;let t=r.slice(1,-1),i=Number.parseFloat(t);if(!Number.isFinite(i))return;if(t.endsWith("rem"))return i*16;if(t.endsWith("em"))return i*e;return i}function N(r){if(r.startsWith("[")&&r.endsWith("]")){let e=r.slice(1,-1);if(e.endsWith("%"))return;let t=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(t)?t:void 0}return Me[r]}function K(r){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(r);if(e)return`${Number.parseFloat(e[1])}%`;return N(r)}var mt={flex:(r,e)=>(e.display="flex",!0),hidden:(r,e)=>(e.display="none",!0),grid:(r,e)=>(e.display="grid",!0),"flex-row":(r,e)=>(e.flexDirection="row",!0),"flex-col":(r,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(r,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(r,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(r,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(r,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(r,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(r,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(r,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(r,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(r,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(r,e)=>(e.flexGrow=1,!0),"grow-0":(r,e)=>(e.flexGrow=0,!0),shrink:(r,e)=>(e.flexShrink=1,!0),"shrink-0":(r,e)=>(e.flexShrink=0,!0),"justify-start":(r,e)=>(e.justifyContent="flex-start",!0),"justify-center":(r,e)=>(e.justifyContent="center",!0),"justify-end":(r,e)=>(e.justifyContent="flex-end",!0),"justify-between":(r,e)=>(e.justifyContent="space-between",!0),"justify-around":(r,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(r,e)=>(e.justifyContent="space-evenly",!0),"items-start":(r,e)=>(e.alignItems="flex-start",!0),"items-center":(r,e)=>(e.alignItems="center",!0),"items-end":(r,e)=>(e.alignItems="flex-end",!0),"items-stretch":(r,e)=>(e.alignItems="stretch",!0),"items-baseline":(r,e)=>(e.alignItems="baseline",!0),"self-auto":(r,e)=>(e.alignSelf="auto",!0),"self-start":(r,e)=>(e.alignSelf="flex-start",!0),"self-center":(r,e)=>(e.alignSelf="center",!0),"self-end":(r,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(r,e)=>(e.alignSelf="stretch",!0),"self-baseline":(r,e)=>(e.alignSelf="baseline",!0),"min-w-0":(r,e)=>(e.minWidth=0,!0),"aspect-square":(r,e)=>(e.aspectRatio=1,!0),"inset-0":(r,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(r,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(r,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(r,e)=>(e.letterSpacing=0,!0),"tracking-wide":(r,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(r,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(r,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(r,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(r,e)=>(e.position="relative",!0),absolute:(r,e)=>(e.position="absolute",!0),"overflow-visible":(r,e)=>(e.overflow="visible",!0),"overflow-hidden":(r,e)=>(e.overflow="hidden",!0),"overflow-scroll":(r,e)=>(e.overflow="scroll",!0),"font-thin":(r,e)=>(e.fontWeight="100",!0),"font-extralight":(r,e)=>(e.fontWeight="200",!0),"font-light":(r,e)=>(e.fontWeight="300",!0),"font-normal":(r,e)=>(e.fontWeight="400",!0),"font-medium":(r,e)=>(e.fontWeight="500",!0),"font-semibold":(r,e)=>(e.fontWeight="600",!0),"font-bold":(r,e)=>(e.fontWeight="bold",!0),"font-extrabold":(r,e)=>(e.fontWeight="800",!0),"font-black":(r,e)=>(e.fontWeight="900",!0),italic:(r,e)=>(e.fontStyle="italic",!0),"not-italic":(r,e)=>(e.fontStyle="normal",!0),"text-left":(r,e)=>(e.textAlign="left",!0),"text-center":(r,e)=>(e.textAlign="center",!0),"text-right":(r,e)=>(e.textAlign="right",!0),"text-justify":(r,e)=>(e.textAlign="justify",!0),uppercase:(r,e)=>(e.textTransform="uppercase",!0),lowercase:(r,e)=>(e.textTransform="lowercase",!0),capitalize:(r,e)=>(e.textTransform="capitalize",!0),"normal-case":(r,e)=>(e.textTransform="none",!0),underline:(r,e)=>(e.textDecorationLine="underline",!0),"line-through":(r,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(r,e)=>(e.textDecorationLine="none",!0)};function bt(r,e){if(!r.startsWith("bg-"))return!1;let t=r.slice(3),i=W(t);if(i)return e.backgroundColor=i,!0;return!1}function yt(r,e){if(!r.startsWith("text-"))return!1;let t=r.slice(5);if(Ce[t])return e.fontSize=Ce[t],!0;if(t.startsWith("[")&&t.endsWith("]")){let s=t.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(s)){let a=s.endsWith("rem")||s.endsWith("em")?Number.parseFloat(s)*16:Number.parseFloat(s);if(Number.isFinite(a))return e.fontSize=a,!0}}let i=W(t);if(i)return e.color=i,!0;return!1}var St=new Set(["t","tr","r","br","b","bl","l","tl"]);function vt(r,e){let t=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(r);if(t&&St.has(t[1]))return e.gradientDirection=`to-${t[1]}`,!0;let i=/^(from|via|to)-(.+)$/.exec(r);if(!i)return!1;let s=W(i[2]);if(!s)return!1;if(i[1]==="from")e.gradientFrom=s;else if(i[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function wt(r,e){for(let t of["fill","stroke"]){let i=`${t}-`;if(!r.startsWith(i))continue;let s=r.slice(i.length);if(s==="none")return e[t]="none",!0;if(t==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(t==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=W(s);if(a)return e[t]=a,!0}return!1}function xt(r,e){if(r.startsWith("p-")){let t=N(r.slice(2));if(t!==void 0)return e.padding=t,!0}if(r.startsWith("px-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingHorizontal=t,!0}if(r.startsWith("py-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingVertical=t,!0}if(r.startsWith("pt-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingTop=t,!0}if(r.startsWith("pr-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingRight=t,!0}if(r.startsWith("pb-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingBottom=t,!0}if(r.startsWith("pl-")){let t=N(r.slice(3));if(t!==void 0)return e.paddingLeft=t,!0}return!1}function Nt(r,e){if(r.startsWith("m-")){let t=N(r.slice(2));if(t!==void 0)return e.margin=t,!0}if(r.startsWith("mx-")){let t=N(r.slice(3));if(t!==void 0)return e.marginHorizontal=t,!0}if(r.startsWith("my-")){let t=N(r.slice(3));if(t!==void 0)return e.marginVertical=t,!0}if(r.startsWith("mt-")){let t=N(r.slice(3));if(t!==void 0)return e.marginTop=t,!0}if(r.startsWith("mr-")){let t=N(r.slice(3));if(t!==void 0)return e.marginRight=t,!0}if(r.startsWith("mb-")){let t=N(r.slice(3));if(t!==void 0)return e.marginBottom=t,!0}if(r.startsWith("ml-")){let t=N(r.slice(3));if(t!==void 0)return e.marginLeft=t,!0}return!1}function kt(r,e){if(!r.startsWith("w-"))return!1;let t=r.slice(2);if(t==="full")return e.width="100%",!0;if(t==="screen")return e.width="100%",!0;if(t==="auto")return e.width="auto",!0;if(t.includes("/")){let[s,a]=t.split("/"),l=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${l}%`,!0}let i=K(t);if(i!==void 0)return e.width=i,!0;return!1}function Tt(r,e){if(!r.startsWith("h-"))return!1;let t=r.slice(2);if(t==="full")return e.height="100%",!0;if(t==="screen")return e.height="100%",!0;if(t==="auto")return e.height="auto",!0;let i=K(t);if(i!==void 0)return e.height=i,!0;return!1}function Rt(r,e){if(!r.startsWith("rounded"))return!1;if(r==="rounded")return e.borderRadius=M.DEFAULT,!0;let t=r.slice(8);if(t==="")return!1;let i=/^(?:(t|b|l|r)-)?(\[[^\]]+\])$/.exec(t);if(i){let a=ue(i[2]);if(a===void 0)return!1;let l={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"]};for(let u of i[1]?l[i[1]]:["borderRadius"])e[u]=a;return!0}if(t.startsWith("t-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopLeftRadius=a,e.borderTopRightRadius=a,!0}if(t.startsWith("b-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderBottomLeftRadius=a,e.borderBottomRightRadius=a,!0}if(t.startsWith("l-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopLeftRadius=a,e.borderBottomLeftRadius=a,!0}if(t.startsWith("r-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopRightRadius=a,e.borderBottomRightRadius=a,!0}let s=M[t];if(s!==void 0)return e.borderRadius=s,!0;return!1}function Et(r,e){if(!r.startsWith("border"))return!1;if(r==="border")return e.borderWidth=1,!0;let t=r.match(/^border-(\d+)$/);if(t)return e.borderWidth=Number.parseInt(t[1]),!0;let i=r.match(/^border-(t|r|b|l)-?(\d*)$/);if(i){let[,s,a]=i,l=a?Number.parseInt(a):1;switch(s){case"t":e.borderTopWidth=l;break;case"r":e.borderRightWidth=l;break;case"b":e.borderBottomWidth=l;break;case"l":e.borderLeftWidth=l;break}return!0}return!1}function At(r,e){if(!r.startsWith("border-"))return!1;let t=r.slice(7),i=W(t);if(i)return e.borderColor=i,!0;return!1}function _t(r,e){if(!r.startsWith("opacity-"))return!1;let t=Number.parseInt(r.slice(8));if(!Number.isNaN(t))return e.opacity=t/100,!0;return!1}function It(r,e){if(r.startsWith("tracking-[")){let t=ue(r.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(t===void 0)return!1;return e.letterSpacing=t,!0}if(r.startsWith("leading-")){let t=r.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=t.startsWith("[")?/^\[[\d.]+\]$/.test(t)?Number.parseFloat(t.slice(1,-1))*i:ue(t,i):s[t]!==void 0?s[t]*i:Me[t];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Pt(r,e){let t=/^grid-cols-(\d+)$/.exec(r);if(!t)return!1;return e.gridColumns=Number(t[1]),!0}function Ct(r,e){if(!r.startsWith("size-"))return!1;let t=r.slice(5),i=t==="full"?"100%":K(t);if(i===void 0)return!1;return e.width=i,e.height=i,!0}var Bt={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function Ot(r,e){let t=/^(min|max)-(w|h)-(.+)$/.exec(r);if(!t)return!1;let[,i,s,a]=t,l=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&i==="max"&&Bt[a]||K(a);if(l===void 0&&a!=="none")return!1;let u=`${i}${s==="w"?"Width":"Height"}`;if(l===void 0)delete e[u];else e[u]=l;return!0}function Mt(r,e){let t=/^(-?)(top|right|bottom|left)-(.+)$/.exec(r);if(!t)return!1;let i=t[3]==="full"?"100%":N(t[3]);if(i===void 0)return!1;return e[t[2]]=typeof i==="number"&&t[1]?-i:i,!0}function Lt(r,e){let t=/^space-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=N(t[2]);if(i===void 0)return!1;return e.gap=i,!0}function Dt(r,e){if(r.startsWith("gap-")){let t=N(r.slice(4));if(t!==void 0)return e.gap=t,!0}if(r.startsWith("gap-x-")){let t=N(r.slice(6));if(t!==void 0)return e.columnGap=t,!0}if(r.startsWith("gap-y-")){let t=N(r.slice(6));if(t!==void 0)return e.rowGap=t,!0}return!1}function Y(r){let e=[],t=[],i=[];function s(c,g){let p=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(c),d=p&&Hn[p[2]];return d?`${p[1]}-${d[g]}${p[3]||""}`:c}for(let c of r.split(/\s+/).filter(Boolean))if(c.startsWith("dark:"))t.push(s(c.slice(5),"dark"));else if(!c.includes(":")||c.startsWith("[")){if(e.push(s(c,"light")),s(c,"dark")!==c)i.push(s(c,"dark"))}let a=[],u={style:Be(e.join(" "),a),unknown:a};if(t.length||i.length)u.dark=Be([...i,...t].join(" "),a);for(let c of e){if(c==="truncate")u.numberOfLines=1;let g=/^line-clamp-(\d+)$/.exec(c);if(g)u.numberOfLines=Number(g[1]);if(!u.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(c))u.icon=c}return u.unknown=a.filter((c)=>!/^line-clamp-\d+$/.test(c)),u}function Be(r,e){let t={},i=r.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=mt[s];if(a){a("",t);continue}if(vt(s,t))continue;if(bt(s,t))continue;if(wt(s,t))continue;if(yt(s,t))continue;if(xt(s,t))continue;if(Nt(s,t))continue;if(kt(s,t))continue;if(Tt(s,t))continue;if(Rt(s,t))continue;if(Et(s,t))continue;if(At(s,t))continue;if(_t(s,t))continue;if(Dt(s,t))continue;if(It(s,t))continue;if(Ct(s,t))continue;if(Ot(s,t))continue;if(Pt(s,t))continue;if(Mt(s,t))continue;if(Lt(s,t))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return t}function F(r,e={},t={},i={},s=[]){return{type:r,props:e,style:t,events:i,children:s}}function Le(r,e,t={}){return{version:"1.0.0",root:r,script:e,meta:{source:t.source||"unknown",compiledAt:t.compiledAt||Date.now(),headwindConfig:t.headwindConfig}}}var De=new Set(["script","style","head","meta","link","title","base","noscript"]),Ve=new Set(["template","body","html","main","fragment"]),J=new Set,Vt={click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",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",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"},Wt=new Set(["onBlur","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),fe=new Set(["display","gridColumns","gridTemplateColumns","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","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","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Ft=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),$t=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"]),We=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...se]),zt=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"],["listrole","listRole"]]),Fe=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Xt={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function j(r){return r.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,t)=>{let i=Xt[t.toLowerCase()];if(i!==void 0)return i;if(t[0]==="#"){let s=t[1]==="x"||t[1]==="X"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function $e(r){return r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function ze(r){let e=/^(-?[\d.]+)px$/.exec(r);if(e)return Number.parseFloat(e[1]);let t=/^(-?[\d.]+)r?em$/.exec(r);if(t)return Number.parseFloat(t[1])*16;if(/^-?[\d.]+$/.test(r))return Number.parseFloat(r);return r}function Xe(r,e,t){let i={},s={},a={},l="",u={};for(let[g,p]of e){let d=g.toLowerCase();if(d==="class"||d==="classname"){l=l?`${l} ${p}`:p;continue}if(d==="style"){u={...u,...Ht(r,p,t)};continue}if(d.startsWith(":")||d.startsWith("x-")&&d!=="x-cloak"){a[d.startsWith(":")?d.slice(1):d.slice(2)]=j(p);continue}if(d==="x-cloak")continue;if(d.startsWith("@")||d.startsWith("v-on:")){let v=d.startsWith("@")?d.slice(1):d.slice(5),[S]=v.split("."),f=Vt[S]??(S.startsWith("on")?S:"");if(!f||!Wt.has(f)){t.push({kind:"unread-event",tag:r,name:g});continue}s[f]=j(p);continue}if(d==="key"){i.key=p;continue}let h=j(p),b=le(g);if(h===""&&_e.has(b)){i[b]=!0;continue}try{i[b]=JSON.parse(h)}catch{i[b]=h}}let c={...l?Y(l).style:{},...u};return{props:i,style:c,events:s,bindings:a,classes:l,inline:u}}function jt(r,e){if(r==="shadowOffset"){if(!e||typeof e!=="object"||Array.isArray(e))return;let{width:t,height:i}=e;return typeof t==="number"&&typeof i==="number"?{width:t,height:i}:void 0}if(r==="transform"){if(!Array.isArray(e))return;let t=e.filter((i)=>Boolean(i)&&typeof i==="object"&&!Array.isArray(i)&&Object.keys(i).length===1).filter((i)=>["number","string"].includes(typeof Object.values(i)[0]));return t.length?t:void 0}return}function je(r,e){if(Ft.has(r))return!1;if($t.has(r))return/^-?[\d.]+%$/.test(e);return!0}function Ht(r,e,t){let i={},s=j(e);try{let a=JSON.parse(s);if(a&&typeof a==="object"&&!Array.isArray(a)){for(let[l,u]of Object.entries(a)){let c=fe.has(l)?l:$e(l.trim().toLowerCase());if(!fe.has(c)){t.push({kind:"unknown-style",tag:r,name:c});continue}if(u===null||u===void 0)continue;let g=typeof u==="string"?ze(u):u;if(typeof g==="object"){let p=jt(c,g);if(p===void 0)t.push({kind:"non-numeric-style",tag:r,name:c});else i[c]=p;continue}if(typeof g!=="string"&&typeof g!=="number")continue;if(typeof g==="string"&&!je(c,g)){t.push({kind:"non-numeric-style",tag:r,name:c});continue}i[c]=g}return i}}catch{}for(let a of s.split(";")){let l=a.indexOf(":");if(l===-1)continue;let u=$e(a.slice(0,l).trim().toLowerCase()),c=a.slice(l+1).trim();if(!u||!c)continue;if(!fe.has(u)){t.push({kind:"unknown-style",tag:r,name:u});continue}let g=ze(c);if(typeof g==="string"&&!je(u,g)){t.push({kind:"non-numeric-style",tag:r,name:u});continue}i[u]=g}return i}function pe(r){return r.children.map((e)=>typeof e==="string"?e:pe(e)).join("").replace(/\s+/g," ").trim()}function qt(r,e){let t=r.node,i=t.children.filter((a)=>typeof a!=="string"),s=t.children.filter((a)=>typeof a==="string").join("").trim();if(t.type==="Svg"||t.type==="G")return t.children=i,t;if(t.type==="SvgText"){let a=pe(t);return t.children=a?[a]:[],t}if(Fe.has(t.type)&&i.length===0&&s)return t.type="Text",t.children=[s],t;if(t.type==="Text"&&!s&&i.length===0&&typeof t.props.text==="string")return t.children=t.props.text?[t.props.text]:[],delete t.props.text,t;if(t.type==="Text"&&i.length>0){let a=pe(t);return e.push({kind:"flattened-text",tag:r.tag}),t.children=a?[a]:[],t}if(Fe.has(t.type)&&i.length>0)t.children=i;return t}async function Ut(r,e={}){let t=[],i=[],s=[],a=new Set;function l(d){let h=s[s.length-1];if(!h)i.push(d);else if(!h.dropped)h.node.children.push(d)}function u(d){if(d.node.bindings&&Object.keys(d.node.bindings).length>0){let b=d.node.children,v=b.filter((f)=>typeof f!=="string"),S=v.length===1&&v.length===b.length?v[0]:F("View",{},{},{},b);if(S.bindings={...d.node.bindings,...S.bindings},S.bindingId===void 0&&d.node.bindingId!==void 0)S.bindingId=d.node.bindingId;l(S);return}let h=s[s.length-1];for(let b of d.node.children){if(typeof b==="string"){if(h&&!h.dropped)h.node.children.push(b);continue}if(!h)i.push(b);else if(!h.dropped)h.node.children.push(b)}}function c(d,h){let b=s[s.length-1];if(d==="svg"||b?.svg)return g(d,h,b);let v=De.has(d)&&!J.has(d),S=s[s.length-1]?.dropped??!1,{props:f,style:y,events:w,bindings:R,classes:m,inline:E}=v||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:Xe(d,h,t),k=f["data-native"],x;if(typeof k==="string"&&We.has(k))x=k,delete f["data-native"];else x=J.has(d)?"View":Pe(d);if(x===d&&!We.has(x)&&!De.has(d)&&!Ve.has(d)&&!a.has(d))a.add(d),t.push({kind:"unmapped-tag",tag:d});if((v||J.has(d))&&!a.has(`drop:${d}`))a.add(`drop:${d}`),t.push({kind:"dropped-subtree",tag:d});if(x==="Video"&&f.source===void 0&&f.src!==void 0)f.source=f.src,delete f.src;if(x==="Icon"){let P=Y(m).icon;f.symbol=de(String(f.symbol||f.name||P||""),Boolean(f.symbol)).symbol}if(x==="FlatList"||x==="SectionList"){let P=new Set([...Object.keys(f),...Object.keys(R)].map((z)=>z.toLowerCase()));for(let[z,L]of zt)if(P.has(z))t.push({kind:"unsupported-list-prop",tag:x,name:L})}let I=F(x,f,y,w);I._inlineStyle=E;let O=f["data-stx-b"];if(typeof O==="number"&&Number.isInteger(O))I.bindingId=O;if(delete f["data-stx-b"],m)I._classes=m;if(Object.keys(R).length>0)I.bindings=R;if(typeof f.key==="string")I.key=f.key,delete f.key;return{tag:d,node:I,dropped:v||S||J.has(d),discard:v||S,unwrap:Ve.has(d)}}function g(d,h,b){let v=b?.dropped??!1,S=oe[d];if(v||!S){if(!v&&!a.has(`drop:${d}`))a.add(`drop:${d}`),t.push({kind:Ee.has(d)?"dropped-subtree":"unmapped-tag",tag:d});return{tag:d,node:F("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let{props:f,style:y,events:w,bindings:R,classes:m,inline:E}=Xe(d,h,t);if(S==="Svg"){let O=ae(f.viewBox);if(O)f.viewBox=O;else delete f.viewBox;for(let P of["width","height"]){if(typeof f[P]==="number"&&y[P]===void 0)y[P]=f[P];delete f[P]}}if(typeof f.strokeDasharray==="string"||typeof f.strokeDasharray==="number"){let O=String(f.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);f.strokeDasharray=O}let k=ce(S,f);if(k)f.geometry=k;let x=F(S,f,y,w);x._inlineStyle=E;let I=f["data-stx-b"];if(typeof I==="number"&&Number.isInteger(I))x.bindingId=I;if(delete f["data-stx-b"],m)x._classes=m;if(Object.keys(R).length>0)x.bindings=R;if(typeof f.key==="string")x.key=f.key,delete f.key;return{tag:d,node:x,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(d){let h=d.tagName.toLowerCase(),b=c(h,[...d.attributes]),v=!0;try{d.onEndTag(()=>{if(s.pop(),b.discard)return;if(b.unwrap)u(b);else l(qt(b,t))})}catch{v=!1}if(v)s.push(b);else if(!b.discard)l(b.node)},text(d){let h=s[s.length-1];if(!h||h.dropped)return;let b=j(d.text).replace(/\s+/g," ");if(!b.trim())return;h.node.children.push(b)}}).transform(new Response(r)).text(),i.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);return{root:i.length===1?i[0]:F("View",{},{},{},i),diagnostics:t}}async function He(r,e={}){let{root:t,diagnostics:i}=await Ut(r,e),s=e.script??{exports:{},functions:[],code:""};return{document:Le(t,s,{source:e.source??"unknown"}),diagnostics:i}}var qe=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Gt=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Kt=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Ue=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function ge(r){let e=[];qe.lastIndex=0;for(let a of r.matchAll(qe)){let l=a[1]??"";if(/\bserver\b/.test(l))continue;e.push(a[2].trim())}let t=e.filter(Boolean).join(`
3
3
 
4
4
  `),i=[];for(let a of[Gt,Kt]){a.lastIndex=0;for(let l of t.matchAll(a))if(!i.includes(l[1]))i.push(l[1])}let s={};Ue.lastIndex=0;for(let a of t.matchAll(Ue)){let l=a[2];try{s[a[1]]=JSON.parse(l.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=l}}return{exports:s,functions:i,code:t}}var Ge=/<script\b[^>]*\bdata-stx-scoped\b[^>]*>([\s\S]*?)<\/script>/gi,Yt=/function\s+(__stx_setup_[\w$]+)\s*\(/;function he(r){Ge.lastIndex=0;for(let e of r.matchAll(Ge)){let t=e[1].trim(),i=Yt.exec(t)?.[1];if(i)return{name:i,code:t}}return null}function Qt(){let r=[H.join(import.meta.dir,"..","primitives"),H.join(import.meta.dir,"native","primitives")];for(let e of r)if(Jt(H.join(e,"View.stx")))return e;return r[0]}async function Zt(r,e,t={}){let i=t.root??H.dirname(e),s=await o(i),a={root:i,componentsDir:t.componentsDir??H.join(i,"components"),buildMode:"serve",cache:!1,_targetComponentDirs:[Qt()],_pluginComponentDirs:s._pluginComponentDirs??[]},l={...t.context??{},__stx_inject_css:!1},u=await n(r,l,e,a,new Set),{html:c,manifest:g}=ke(u),{document:p,diagnostics:d}=await He(c,{source:e,script:ge(r)}),h=he(c);if(ge(r).code.trim()){let b=await qn(r,e,t.context,{forceClientSetup:!0});h=he(b.setupCode??"")??h}return{document:p,manifest:g,setup:h,diagnostics:d,html:c}}async function Q(r,e={}){return Zt(await Bun.file(r).text(),r,e)}var Z="__app";function Ke(r){let t=[D.join(import.meta.dir,"..","runtime",`${r}.ts`),D.join(import.meta.dir,"..","runtime",`${r}.js`),D.join(import.meta.dir,"native","runtime",`${r}.js`)].find((i)=>Ye(i));if(!t)throw Error(`Native runtime module ${r} is missing`);return t}async function tn(r,e,t){let i=await Bun.build({entrypoints:[r],target:"browser",format:"iife",minify:t,plugins:e,define:{"process.env.NODE_ENV":JSON.stringify(t?"production":"development")}});if(!i.success){let s=i.logs.map((a)=>String(a.message??a)).join(`
5
5
  `);throw Error(`Could not bundle ${r}:
@@ -675,10 +675,12 @@ import x from"fs";import u from"path";import p from"fs";import w from"path";var
675
675
  // globals its templates call. Each page ships the ones it reaches, so the
676
676
  // next page can need one the first never loaded: it runs right after the
677
677
  // registry, before anything that calls into it. Guarded per bundle, so a
678
- // repeat is a no-op.
678
+ // repeat is a no-op. The framework's composables (useOnline, useForm, \u2026,
679
+ // data-stx-framework-composables) are the same kind of script and run in
680
+ // the same place: after a component that calls one, it was too late.
679
681
  var COMPOSABLES_TEXT=/__stxComposableBundles/;
680
682
  function isComposablesScript(s){
681
- return !!s&&((s.hasAttribute&&s.hasAttribute('data-stx-composables'))||COMPOSABLES_TEXT.test(s.textContent||''));
683
+ return !!s&&((s.hasAttribute&&(s.hasAttribute('data-stx-composables')||s.hasAttribute('data-stx-framework-composables')))||COMPOSABLES_TEXT.test(s.textContent||''));
682
684
  }
683
685
  /*
684
686
  * What the block wrap below would otherwise hide (stacksjs/stx#2041).
@@ -1436,7 +1438,9 @@ else {
1436
1438
  var seq=++announceSeq,started=Date.now(),bound=!awaitBind,timer=null;
1437
1439
  function onLoad(){bound=true;schedule(20)}
1438
1440
  function stop(){if(timer)clearTimeout(timer);timer=null;window.removeEventListener('stx:load',onLoad)}
1439
- function schedule(ms){if(timer)clearTimeout(timer);timer=setTimeout(attempt,ms)}
1441
+ // Guarded: it runs on a timer, so it can outlive the document it was
1442
+ // scheduled for (a test's window torn down, a whole-document swap).
1443
+ function schedule(ms){if(timer)clearTimeout(timer);timer=setTimeout(function(){try{attempt()}catch(e){stop()}},ms)}
1440
1444
  function attempt(){
1441
1445
  timer=null;
1442
1446
  if(seq!==announceSeq){stop();return}
@@ -1655,7 +1659,7 @@ else {
1655
1659
  var runDecl=(attrs.match(/data-stx-run\\s*=\\s*["']?(always|once)["']?/i)||[])[1];
1656
1660
  var ownerDecl=(attrs.match(/data-stx-owner\\s*=\\s*["']([^"']+)["']/i)||[])[1]||'';
1657
1661
  var registry=/(?:^|\\s)data-stx-modules(?:\\s|=|$)/i.test(attrs)||REGISTRY_TEXT.test(code);
1658
- var composables=/(?:^|\\s)data-stx-composables(?:\\s|=|$)/i.test(attrs)||COMPOSABLES_TEXT.test(code);
1662
+ var composables=/(?:^|\\s)data-stx-(?:framework-)?composables(?:\\s|=|$)/i.test(attrs)||COMPOSABLES_TEXT.test(code);
1659
1663
  fragScripts.push({text:code,slot:slot,setupName:generatedSetupName(code),scoped:scoped,run:runDecl?runDecl.toLowerCase():'',owner:ownerDecl,registry:registry,composables:composables});
1660
1664
  // Retain scoped setup code in its inert placeholder. A placeholder
1661
1665
  // inside template.content is unreachable through document, so the
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{wt,Wr,qr,Kr,Rd,Xr}from"./chunk-qhg55cvv.js";import"./chunk-299xbyhn.js";import"./chunk-6k4f583z.js";import"./chunk-37nybpw1.js";export{qr as buildServerApi,Rd as createServerApi,wt as discoverServerApi,Wr as generateApiTypes,Xr as isServerApiSource,Kr as productionApiDispatcher};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{y}from"./chunk-5tyes97j.js";import{W,He,ss,os,Zo,Qo,ei,ti,Wn,is,ni,ri,si,Et,o}from"./chunk-mh7k2ps4.js";import{Lr}from"./chunk-j7615qvy.js";import{a}from"./chunk-2y82wf9d.js";import{existsSync as M,readFileSync as K}from"fs";import h from"path";var me=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),te=Et.filter((e)=>!me.has(e)).sort(),ne=[...y].sort(),he=[...new Set([...te,...ne])].sort(),be=new Set(te),ye=new Set(ne),xe=new Set(he),ee=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function Se(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ie(e,t){let s=[];for(let u of t){if(u.offset===void 0)continue;let i=u.kind==="server"?be:ye;ee.lastIndex=0;for(let l of u.code.matchAll(ee)){let g=l.index+l[0].indexOf("{")+1;for(let m of l[1].matchAll(/[^,]+/g)){let S=m[0];if(/^\s*type\s/.test(S))continue;let x=/^\s*([A-Za-z_$][\w$]*)/.exec(S);if(!x)continue;let r=x[1];if(!xe.has(r)||i.has(r))continue;let f=u.offset+g+m.index+x[0].length-r.length,p=e.slice(0,f),w=p.split(`
2
+ import{y}from"./chunk-5tyes97j.js";import{W,He,ss,os,Zo,Qo,ei,ti,Wn,is,ni,ri,si,Et,o}from"./chunk-wyxjsx4k.js";import{Lr}from"./chunk-1h4z3xpy.js";import{a}from"./chunk-2y82wf9d.js";import{existsSync as M,readFileSync as K}from"fs";import h from"path";var me=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),te=Et.filter((e)=>!me.has(e)).sort(),ne=[...y].sort(),he=[...new Set([...te,...ne])].sort(),be=new Set(te),ye=new Set(ne),xe=new Set(he),ee=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function Se(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ie(e,t){let s=[];for(let u of t){if(u.offset===void 0)continue;let i=u.kind==="server"?be:ye;ee.lastIndex=0;for(let l of u.code.matchAll(ee)){let g=l.index+l[0].indexOf("{")+1;for(let m of l[1].matchAll(/[^,]+/g)){let S=m[0];if(/^\s*type\s/.test(S))continue;let x=/^\s*([A-Za-z_$][\w$]*)/.exec(S);if(!x)continue;let r=x[1];if(!xe.has(r)||i.has(r))continue;let f=u.offset+g+m.index+x[0].length-r.length,p=e.slice(0,f),w=p.split(`
3
3
  `).length;s.push({line:w,column:f-(p.lastIndexOf(`
4
4
  `)+1)+1,offset:f,length:r.length,name:r,kind:u.kind,message:Se(r,u.kind)})}}}return s}import T from"path";var ke="@stacksjs/stx-typescript-plugin";function we(e,t){let s=T.resolve(e);for(;;){let u=T.join(s,"tsconfig.json");if(t(u))return u;let i=T.dirname(s);if(i===s)return;s=i}}function se(e,t,s){let u=we(e,s);if(!u)return;let i=new Set,l=(g)=>{if(i.has(g))return;i.add(g);let m=t(g);if(!m)return;let S=m.compilerOptions?.plugins;if(Array.isArray(S)){let r=S.find((p)=>p?.name===ke),f=Array.isArray(r?.libs)?r.libs.filter((p)=>typeof p==="string"):[];return r?{configPath:g,libs:f.map((p)=>T.resolve(T.dirname(g),p))}:null}let x=typeof m.extends==="string"?[m.extends]:Array.isArray(m.extends)?m.extends:[];for(let r of[...x].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let f=T.resolve(T.dirname(g),r.endsWith(".json")?r:`${r}.json`),p=l(f);if(p!==void 0)return p}return};return l(u)??void 0}function ta(e,t="",s=""){let u=e.startLine>1?`
5
5
  `.repeat(e.startLine-1):"",i=is(e)+os(ss(e.code)),l=e.kind==="client"||e.kind==="plain"?ei(t,e.code):"";return Wn(`${u+i}
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{q,n}from"./chunk-mh7k2ps4.js";import p from"fs";import g from"path";import*as y from"readline";var e={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},u={help:{description:"Show available commands",usage:"help [command]",handler:async(t,o)=>{if(t[0]&&u[t[0]]){let r=u[t[0]];console.log(`
2
+ import{q,n}from"./chunk-wyxjsx4k.js";import p from"fs";import g from"path";import*as y from"readline";var e={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},u={help:{description:"Show available commands",usage:"help [command]",handler:async(t,o)=>{if(t[0]&&u[t[0]]){let r=u[t[0]];console.log(`
3
3
  ${e.bold}${t[0]}${e.reset} - ${r.description}`),console.log(` Usage: ${e.cyan}${r.usage}${e.reset}
4
4
  `)}else{console.log(`
5
5
  ${e.bold}Available Commands:${e.reset}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{on,mc,as}from"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import{Se}from"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{Se as freeIdentifiers,as as processComponents,mc as processESImports,on as rendersAsElement};
2
+ import{on,mc,as}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import{Se}from"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{Se as freeIdentifiers,as as processComponents,mc as processESImports,on as rendersAsElement};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{R,Lc,o,A,Zd,Qd}from"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{A as config,R as defaultConfig,Zd as defineStxConfig,o as loadStxConfig,Lc as resolveStxDirectories,Qd as validateConfig};
2
+ import{R,Lc,o,A,Zd,Qd}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{A as config,R as defaultConfig,Zd as defineStxConfig,o as loadStxConfig,Lc as resolveStxDirectories,Qd as validateConfig};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ta,oo,sl,na,ra,ol,il}from"./chunk-j19b6d9m.js";import"./chunk-j7615qvy.js";import"./chunk-4625sykb.js";import"./chunk-he404gbh.js";import"./chunk-2hc5mbw8.js";import{He,gc}from"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{ta as buildVirtualSource,He as extractScriptBlocks,gc as extractTemplateExpressions,na as findRuntimeTypeDeclarations,ra as findStxModuleDeclarations,il as formatTypecheckDiagnostics,sl as sourcePathFor,ol as typecheckStxFiles,oo as virtualPathFor};
2
+ import{ta,oo,sl,na,ra,ol,il}from"./chunk-3x9d58f4.js";import"./chunk-1h4z3xpy.js";import"./chunk-kzztmawd.js";import"./chunk-qhg55cvv.js";import"./chunk-2hc5mbw8.js";import{He,gc}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{ta as buildVirtualSource,He as extractScriptBlocks,gc as extractTemplateExpressions,na as findRuntimeTypeDeclarations,ra as findStxModuleDeclarations,il as formatTypecheckDiagnostics,sl as sourcePathFor,ol as typecheckStxFiles,oo as virtualPathFor};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Oe,Kt}from"./chunk-etdx3fye.js";import{Ce}from"./chunk-kpns3659.js";import{Wo,qo,f,Ct,Q,N,n,R,o}from"./chunk-mh7k2ps4.js";import{C}from"./chunk-6k4f583z.js";import{Cs}from"./chunk-w9srfsfk.js";import{pn,fn,gn,hn,pe}from"./chunk-7p0zerfj.js";import{Ci}from"./chunk-299xbyhn.js";import{me,re,uo,po,Dt}from"./chunk-xg08g7xd.js";import{wt,qr}from"./chunk-he404gbh.js";import{Mt}from"./chunk-2etevws0.js";import{ft,Yt,Zt}from"./chunk-g7ey7mtw.js";import{createHash as ee}from"crypto";function J(i){return ee("sha256").update(i).digest("hex").slice(0,8)}function U(i=!1){let l=i?Kt():Oe(),a=J(l);return{content:l,filename:`runtime.${a}.js`,hash:a}}function V(){let i=Ce(),l=J(i);return{content:i,filename:`router.${l}.js`,hash:l}}import m from"fs";import c from"path";import q from"path";import{createHash as te}from"crypto";function se(i={}){let l=new Set;return{context:new Proxy(i,{get(r,e){if(e in r)return r[e];if(typeof e==="string"&&!e.startsWith("__"))l.add(e);return},has(r,e){if(e in r)return!0;if(typeof e==="string"&&!e.startsWith("__"))l.add(e);return!1}}),accessedKeys:l}}async function X(i,l,a={}){let r=q.resolve(i),e=await Bun.file(r).text(),S=te("sha256").update(e).digest("hex").slice(0,16);Wo();let _={};try{_=await o(a.configDir)}catch{}let y=[],d=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,g;while((g=d.exec(e))!==null){let v=g[1];if(/\bserver\b/.test(v))y.push(g[2])}let u=new Set(y.flatMap((v)=>Q(v))),{context:A}=se({__filename:r,__dirname:q.dirname(r),__stx_serverDeclared:u}),w=new Set,P={...R,..._,...a,buildMode:"compile",strict:!1},b=await n(e,A,r,P,w),T=me(b),B=qo();return{route:l,sourceFile:i,html:b,fragment:T,placeholders:B,hasServerScripts:y.length>0,serverScriptContent:y,dependencies:Array.from(w),contentHash:S,status:Ct(e),streamTemplates:A.__streamTemplates}}var ne=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function Z(i,l){let a=0,r=0;if(!m.existsSync(i))return{copied:a,bytes:r};m.mkdirSync(l,{recursive:!0});function e(S,_){let y=m.readdirSync(S,{withFileTypes:!0});for(let d of y){if(ne.has(d.name))continue;let g=c.join(S,d.name),u=c.join(_,d.name);if(d.isDirectory())m.mkdirSync(u,{recursive:!0}),e(g,u);else if(d.isFile()){if(m.existsSync(u))continue;m.copyFileSync(g,u),a++,r+=m.statSync(u).size}}}return e(i,l),{copied:a,bytes:r}}async function cl(i={}){let l=Date.now(),a=c.resolve(i.root||process.cwd()),r=c.resolve(a,i.outputDir||".output");console.log("[stx build] Starting production build...");let e=await o(a),S=c.resolve(a,i.componentsDir??e.componentsDir??"components"),_=c.resolve(a,i.partialsDir??e.partialsDir??"partials"),y=c.resolve(a,i.layoutsDir??e.layoutsDir??"layouts"),d=i.publicDir??e.publicDir??"public",g=pe(e.app?.head,{known:hn,source:"app.head"}),u=e.app?.colorMode,A=e.router?.container||"main",w=i.routeRules??e.routeRules??{},P=Mt(w),b=i.serverApi??e.serverApi,T=typeof b==="object"?b:{};if(b)wt(a,T);if(e.runtimeConfig)C(e.runtimeConfig,{});if(m.existsSync(r))m.rmSync(r,{recursive:!0});let B=[c.join(r,"public","__stx"),c.join(r,"public","assets"),c.join(r,"server","pages"),c.join(r,"server","fragments")];for(let s of B)m.mkdirSync(s,{recursive:!0});console.log("[stx build] Discovering routes...");let v=N(a,{pagesDirs:e._layerPageDirs}),Y=["components","layouts","partials"],M=v.filter((s)=>!Y.some((h)=>s.pattern.startsWith(`/${h}/`)||s.pattern===`/${h}`));console.log(`[stx build] Found ${M.length} page routes (${v.length-M.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let D=U(i.debug),x=V();await Bun.write(c.join(r,"public","__stx",D.filename),D.content),await Bun.write(c.join(r,"public","__stx",x.filename),x.content),console.log(`[stx build] Runtime: ${D.filename} (${(D.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${x.filename} (${(x.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],E=[];for(let s of M){let h=P(s.pattern),k=h.rendering==="prerender";if(k&&(s.pattern.includes(":")||s.pattern.includes("[")))throw Error(`Cannot prerender parameter route ${s.pattern}; use dynamic rendering (explicit path enumeration is not supported here)`);try{let t=await X(s.filePath,s.pattern,{configDir:a,componentsDir:S,partialsDir:_,layoutsDir:y,debug:i.debug});if(O.push(t),t.html=t.html.replace(/runtime\.__STX_HASH__\.js/g,D.filename).replace(/router\.__STX_HASH__\.js/g,x.filename),t.html=gn(t.html,g,{bodyScripts:[`<script src="/__stx/${x.filename}"></script>`],...u&&{colorMode:u}}),u)t.html=pn(t.html,u);if(g.htmlAttrs)t.html=fn(t.html,g.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(t.html)){let p=t.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(p&&p[1]){let W=p[1];t.html=t.html.replace(" "+W,""),t.html=t.html.replace(/<body([^>]*)>/,`<body$1 ${W}>`)}}if(t.html=t.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),t.html=await f(t.html),k){let p=await Dt(t,{params:{},request:new Request(`http://stx.build${s.pattern}`),method:"GET",__stx_strict_hydration:!0});if(p.redirect||p.cookies?.length||p.boundaries?.length||p.headers&&Object.keys(p.headers).length)throw Error(`Prerendered route ${s.pattern} cannot set response headers/cookies, redirect or stream`);t.html=p.html,t.status=p.status??t.status,t.hasServerScripts=!1,t.serverScriptContent=[],t.placeholders={}}t.fragment=re(t.html,A);let z=s.pattern==="/"?"index":s.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),G=c.join("server","pages",`${z}.compiled.json`),I=c.join("server","fragments",`${z}.html`);await Bun.write(c.join(r,G),JSON.stringify(t,null,2)),await Bun.write(c.join(r,I),t.fragment),E.push({pattern:s.pattern,compiledPath:G,fragmentPath:I,isDynamic:t.hasServerScripts,hasParams:s.pattern.includes(":")||s.pattern.includes("["),prerendered:k}),console.log(`[stx build] \u2713 ${s.pattern}`)}catch(t){if(Object.keys(h).length)throw t;console.error(`[stx build] \u2717 ${s.pattern}:`,t instanceof Error?t.message:t)}}let H=c.resolve(a,d);if(m.existsSync(H)){let{copied:s,bytes:h}=Z(H,c.join(r,"public"));if(s>0)console.log(`[stx build] Copied ${s} public asset${s===1?"":"s"} (${(h/1024).toFixed(1)}KB) from ${d}/`)}let F=Zt(a);if(F){let{copied:s,bytes:h}=Z(F,c.join(r,"public",Yt));if(s>0)console.log(`[stx build] Copied ${s} asset${s===1?"":"s"} (${(h/1024).toFixed(1)}KB) from ${ft}/`)}let K={runtime:D.filename,router:x.filename},j=uo(E,K,r);if(j.routeRules=w,j.routerContainer=A,b)j.apiRoutes=await qr(a,r,T);if(e.runtimeConfig)await Bun.write(c.join(r,"server/runtime-config.json"),JSON.stringify(e.runtimeConfig)),await Cs(a,e.runtimeConfig);if(e._layerGraph)await Bun.write(c.join(r,"server/layers.json"),JSON.stringify(Ci(e._layerGraph),null,2));po(j,r);let L=Date.now()-l;return console.log(`
2
+ import{Oe,Kt}from"./chunk-raqbqt1r.js";import{Ce}from"./chunk-37nybpw1.js";import{Wo,qo,f,Ct,Q,N,n,R,o}from"./chunk-wyxjsx4k.js";import{C}from"./chunk-6k4f583z.js";import{Cs}from"./chunk-wm5b2y65.js";import{pn,fn,gn,hn,pe}from"./chunk-7p0zerfj.js";import{Ci}from"./chunk-299xbyhn.js";import{me,re,uo,po,Dt}from"./chunk-ravc60z0.js";import{wt,qr}from"./chunk-qhg55cvv.js";import{Mt}from"./chunk-2etevws0.js";import{ft,Yt,Zt}from"./chunk-g7ey7mtw.js";import{createHash as ee}from"crypto";function J(i){return ee("sha256").update(i).digest("hex").slice(0,8)}function U(i=!1){let l=i?Kt():Oe(),a=J(l);return{content:l,filename:`runtime.${a}.js`,hash:a}}function V(){let i=Ce(),l=J(i);return{content:i,filename:`router.${l}.js`,hash:l}}import m from"fs";import c from"path";import q from"path";import{createHash as te}from"crypto";function se(i={}){let l=new Set;return{context:new Proxy(i,{get(r,e){if(e in r)return r[e];if(typeof e==="string"&&!e.startsWith("__"))l.add(e);return},has(r,e){if(e in r)return!0;if(typeof e==="string"&&!e.startsWith("__"))l.add(e);return!1}}),accessedKeys:l}}async function X(i,l,a={}){let r=q.resolve(i),e=await Bun.file(r).text(),S=te("sha256").update(e).digest("hex").slice(0,16);Wo();let _={};try{_=await o(a.configDir)}catch{}let y=[],d=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,g;while((g=d.exec(e))!==null){let v=g[1];if(/\bserver\b/.test(v))y.push(g[2])}let u=new Set(y.flatMap((v)=>Q(v))),{context:A}=se({__filename:r,__dirname:q.dirname(r),__stx_serverDeclared:u}),w=new Set,P={...R,..._,...a,buildMode:"compile",strict:!1},b=await n(e,A,r,P,w),T=me(b),B=qo();return{route:l,sourceFile:i,html:b,fragment:T,placeholders:B,hasServerScripts:y.length>0,serverScriptContent:y,dependencies:Array.from(w),contentHash:S,status:Ct(e),streamTemplates:A.__streamTemplates}}var ne=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function Z(i,l){let a=0,r=0;if(!m.existsSync(i))return{copied:a,bytes:r};m.mkdirSync(l,{recursive:!0});function e(S,_){let y=m.readdirSync(S,{withFileTypes:!0});for(let d of y){if(ne.has(d.name))continue;let g=c.join(S,d.name),u=c.join(_,d.name);if(d.isDirectory())m.mkdirSync(u,{recursive:!0}),e(g,u);else if(d.isFile()){if(m.existsSync(u))continue;m.copyFileSync(g,u),a++,r+=m.statSync(u).size}}}return e(i,l),{copied:a,bytes:r}}async function cl(i={}){let l=Date.now(),a=c.resolve(i.root||process.cwd()),r=c.resolve(a,i.outputDir||".output");console.log("[stx build] Starting production build...");let e=await o(a),S=c.resolve(a,i.componentsDir??e.componentsDir??"components"),_=c.resolve(a,i.partialsDir??e.partialsDir??"partials"),y=c.resolve(a,i.layoutsDir??e.layoutsDir??"layouts"),d=i.publicDir??e.publicDir??"public",g=pe(e.app?.head,{known:hn,source:"app.head"}),u=e.app?.colorMode,A=e.router?.container||"main",w=i.routeRules??e.routeRules??{},P=Mt(w),b=i.serverApi??e.serverApi,T=typeof b==="object"?b:{};if(b)wt(a,T);if(e.runtimeConfig)C(e.runtimeConfig,{});if(m.existsSync(r))m.rmSync(r,{recursive:!0});let B=[c.join(r,"public","__stx"),c.join(r,"public","assets"),c.join(r,"server","pages"),c.join(r,"server","fragments")];for(let s of B)m.mkdirSync(s,{recursive:!0});console.log("[stx build] Discovering routes...");let v=N(a,{pagesDirs:e._layerPageDirs}),Y=["components","layouts","partials"],M=v.filter((s)=>!Y.some((h)=>s.pattern.startsWith(`/${h}/`)||s.pattern===`/${h}`));console.log(`[stx build] Found ${M.length} page routes (${v.length-M.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let D=U(i.debug),x=V();await Bun.write(c.join(r,"public","__stx",D.filename),D.content),await Bun.write(c.join(r,"public","__stx",x.filename),x.content),console.log(`[stx build] Runtime: ${D.filename} (${(D.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${x.filename} (${(x.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],E=[];for(let s of M){let h=P(s.pattern),k=h.rendering==="prerender";if(k&&(s.pattern.includes(":")||s.pattern.includes("[")))throw Error(`Cannot prerender parameter route ${s.pattern}; use dynamic rendering (explicit path enumeration is not supported here)`);try{let t=await X(s.filePath,s.pattern,{configDir:a,componentsDir:S,partialsDir:_,layoutsDir:y,debug:i.debug});if(O.push(t),t.html=t.html.replace(/runtime\.__STX_HASH__\.js/g,D.filename).replace(/router\.__STX_HASH__\.js/g,x.filename),t.html=gn(t.html,g,{bodyScripts:[`<script src="/__stx/${x.filename}"></script>`],...u&&{colorMode:u}}),u)t.html=pn(t.html,u);if(g.htmlAttrs)t.html=fn(t.html,g.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(t.html)){let p=t.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(p&&p[1]){let W=p[1];t.html=t.html.replace(" "+W,""),t.html=t.html.replace(/<body([^>]*)>/,`<body$1 ${W}>`)}}if(t.html=t.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),t.html=await f(t.html),k){let p=await Dt(t,{params:{},request:new Request(`http://stx.build${s.pattern}`),method:"GET",__stx_strict_hydration:!0});if(p.redirect||p.cookies?.length||p.boundaries?.length||p.headers&&Object.keys(p.headers).length)throw Error(`Prerendered route ${s.pattern} cannot set response headers/cookies, redirect or stream`);t.html=p.html,t.status=p.status??t.status,t.hasServerScripts=!1,t.serverScriptContent=[],t.placeholders={}}t.fragment=re(t.html,A);let z=s.pattern==="/"?"index":s.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),G=c.join("server","pages",`${z}.compiled.json`),I=c.join("server","fragments",`${z}.html`);await Bun.write(c.join(r,G),JSON.stringify(t,null,2)),await Bun.write(c.join(r,I),t.fragment),E.push({pattern:s.pattern,compiledPath:G,fragmentPath:I,isDynamic:t.hasServerScripts,hasParams:s.pattern.includes(":")||s.pattern.includes("["),prerendered:k}),console.log(`[stx build] \u2713 ${s.pattern}`)}catch(t){if(Object.keys(h).length)throw t;console.error(`[stx build] \u2717 ${s.pattern}:`,t instanceof Error?t.message:t)}}let H=c.resolve(a,d);if(m.existsSync(H)){let{copied:s,bytes:h}=Z(H,c.join(r,"public"));if(s>0)console.log(`[stx build] Copied ${s} public asset${s===1?"":"s"} (${(h/1024).toFixed(1)}KB) from ${d}/`)}let F=Zt(a);if(F){let{copied:s,bytes:h}=Z(F,c.join(r,"public",Yt));if(s>0)console.log(`[stx build] Copied ${s} asset${s===1?"":"s"} (${(h/1024).toFixed(1)}KB) from ${ft}/`)}let K={runtime:D.filename,router:x.filename},j=uo(E,K,r);if(j.routeRules=w,j.routerContainer=A,b)j.apiRoutes=await qr(a,r,T);if(e.runtimeConfig)await Bun.write(c.join(r,"server/runtime-config.json"),JSON.stringify(e.runtimeConfig)),await Cs(a,e.runtimeConfig);if(e._layerGraph)await Bun.write(c.join(r,"server/layers.json"),JSON.stringify(Ci(e._layerGraph),null,2));po(j,r);let L=Date.now()-l;return console.log(`
3
3
  [stx build] Done in ${L}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:K,outputDir:r,duration:L}}
4
4
  export{cl};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{rd,sd}from"./chunk-b0zz4dbx.js";import"./chunk-kzztmawd.js";import"./chunk-qhg55cvv.js";import"./chunk-2hc5mbw8.js";import"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{sd as clearStoreCache,rd as getStoreScript};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{cl}from"./chunk-8g1fx4mg.js";import"./chunk-ravc60z0.js";import"./chunk-raqbqt1r.js";import"./chunk-qhg55cvv.js";import"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{cl as buildForProduction};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{y}from"./chunk-5tyes97j.js";import{I,At}from"./chunk-ba88n1j7.js";import{w,Ve,L,o}from"./chunk-mh7k2ps4.js";import{ie,yt,bt}from"./chunk-4625sykb.js";import{Ie,qt,pt,H}from"./chunk-2fb4yx25.js";import f from"path";var l=new Map;function v(a,s){for(let n of a.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(n[1])s.add(n[1]);for(let n of a.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let r of(n[1]??"").split(",")){let i=((r.includes(":")?r.split(":").pop():r)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(i))s.add(i)}for(let n of a.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let r of(n[1]??"").split(",")){let c=r.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(c))s.add(c)}}async function rd(a){let s;if(a)s=f.resolve(a);else{let t=await o();s=f.resolve(t.root||process.cwd(),t.storesDir||"stores")}let n=new Bun.Glob("*.ts"),r=[];try{for await(let t of n.scan({cwd:s,absolute:!0})){let e=f.basename(t,".ts");if(["index","types"].includes(e))continue;if(t.includes(".d.ts"))continue;r.push(t)}}catch{return H(l,s,"",""),null}let c=()=>[...new Set([...r,...r.flatMap((t)=>ie(t))])],i=Ie(c()),d=pt(l,s,i);if(d!==void 0)return d||null;if(r.length===0)return H(l,s,i,""),null;let p=[];for(let t of r){let e=await Bun.file(t).text();p.push({file:t,hasUseStore:/useStore\s*\(/.test(e)})}p.sort((t,e)=>{if(t.hasUseStore===e.hasUseStore)return 0;return t.hasUseStore?1:-1});let h=p.map((t)=>t.file),u=[],m=new Set,b=L({loader:"ts",target:"browser",define:w()});for(let t of h)try{let e=await Bun.file(t).text(),x=f.basename(t,".ts");if(v(e,m),yt(e))e=await bt(e,t,{projectRoot:process.cwd(),externalizeUserModules:!1});e=Ve(e),e=I(e),e=At(e),e=e.replace(/^export\s+(default\s+)?/gm,""),e=b.transformSync(e),u.push(`// Store: ${x}
2
+ import{y}from"./chunk-5tyes97j.js";import{I,At}from"./chunk-ba88n1j7.js";import{w,Ve,L,o}from"./chunk-wyxjsx4k.js";import{ie,yt,bt}from"./chunk-kzztmawd.js";import{Ie,qt,pt,H}from"./chunk-2fb4yx25.js";import f from"path";var l=new Map;function v(a,s){for(let n of a.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(n[1])s.add(n[1]);for(let n of a.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let r of(n[1]??"").split(",")){let i=((r.includes(":")?r.split(":").pop():r)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(i))s.add(i)}for(let n of a.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let r of(n[1]??"").split(",")){let c=r.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(c))s.add(c)}}async function rd(a){let s;if(a)s=f.resolve(a);else{let t=await o();s=f.resolve(t.root||process.cwd(),t.storesDir||"stores")}let n=new Bun.Glob("*.ts"),r=[];try{for await(let t of n.scan({cwd:s,absolute:!0})){let e=f.basename(t,".ts");if(["index","types"].includes(e))continue;if(t.includes(".d.ts"))continue;r.push(t)}}catch{return H(l,s,"",""),null}let c=()=>[...new Set([...r,...r.flatMap((t)=>ie(t))])],i=Ie(c()),d=pt(l,s,i);if(d!==void 0)return d||null;if(r.length===0)return H(l,s,i,""),null;let p=[];for(let t of r){let e=await Bun.file(t).text();p.push({file:t,hasUseStore:/useStore\s*\(/.test(e)})}p.sort((t,e)=>{if(t.hasUseStore===e.hasUseStore)return 0;return t.hasUseStore?1:-1});let h=p.map((t)=>t.file),u=[],m=new Set,b=L({loader:"ts",target:"browser",define:w()});for(let t of h)try{let e=await Bun.file(t).text(),x=f.basename(t,".ts");if(v(e,m),yt(e))e=await bt(e,t,{projectRoot:process.cwd(),externalizeUserModules:!1});e=Ve(e),e=I(e),e=At(e),e=e.replace(/^export\s+(default\s+)?/gm,""),e=b.transformSync(e),u.push(`// Store: ${x}
3
3
  ${e.trim()}`)}catch(e){console.warn(`[stx] Failed to load store ${t}:`,e)}if(u.length===0)return H(l,s,i,""),null;let g=u.join(`
4
4
 
5
5
  `),S=`;(function(){
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{K,ws,vs,xs,n}from"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{K as injectRouterScript,n as processDirectives,ws as processJsonDirective,vs as processOnceDirective,xs as validateClientScript};
2
+ import{K,ws,vs,xs,n}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{K as injectRouterScript,n as processDirectives,ws as processJsonDirective,vs as processOnceDirective,xs as validateClientScript};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Lr,Nl,Ll}from"./chunk-1h4z3xpy.js";import"./chunk-kzztmawd.js";import"./chunk-qhg55cvv.js";import"./chunk-2hc5mbw8.js";import"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{Ll as clearComposableCache,Nl as getComposableScript,Lr as listComposableModules};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{el}from"./chunk-fd795e6s.js";import"./chunk-ravc60z0.js";import"./chunk-qhg55cvv.js";import"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{el as startProductionServer};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Vd,Go,Ud,Jo,lc,dc,kt,sn,Wd,uc,pc,fc,f}from"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{kt as buildCss,uc as extractClassNames,dc as fingerprintConfig,pc as generateCss,Wd as getCachedCSS,Vd as getCssServeAsset,f as injectCss,Go as loadCssEngine,Jo as loadCssEngineConfig,sn as rebuildCss,Ud as resetCssCache,lc as resolveUserCssConfig,fc as withLinkedModuleBundles};
2
+ import{Vd,Go,Ud,Jo,lc,dc,kt,sn,Wd,uc,pc,fc,f}from"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{kt as buildCss,uc as extractClassNames,dc as fingerprintConfig,pc as generateCss,Wd as getCachedCSS,Vd as getCssServeAsset,f as injectCss,Go as loadCssEngine,Jo as loadCssEngineConfig,sn as rebuildCss,Ud as resetCssCache,lc as resolveUserCssConfig,fc as withLinkedModuleBundles};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Oe,Kt,od}from"./chunk-etdx3fye.js";import{V,On,Xt,jr,Br,Dn,id,ad,cd,Gt,Jt,Fr,Mn,ld}from"./chunk-f1n4e4jy.js";import"./chunk-5tyes97j.js";export{jr as batch,od as default,On as derived,Xt as effect,Oe as generateSignalsRuntime,Kt as generateSignalsRuntimeDev,Jt as isDerived,Gt as isSignal,Dn as onDestroy,Br as onMount,Mn as peek,cd as pendingLifecycleCounts,ad as runDestroyCallbacks,id as runMountCallbacks,V as state,Fr as untrack,ld as useOptimistic};
2
+ import{Oe,Kt,od}from"./chunk-raqbqt1r.js";import{V,On,Xt,jr,Br,Dn,id,ad,cd,Gt,Jt,Fr,Mn,ld}from"./chunk-f1n4e4jy.js";import"./chunk-5tyes97j.js";export{jr as batch,od as default,On as derived,Xt as effect,Oe as generateSignalsRuntime,Kt as generateSignalsRuntimeDev,Jt as isDerived,Gt as isSignal,Dn as onDestroy,Br as onMount,Mn as peek,cd as pendingLifecycleCounts,ad as runDestroyCallbacks,id as runMountCallbacks,V as state,Fr as untrack,ld as useOptimistic};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ca,Sl,la,da,kl,Cl}from"./chunk-mftzhj7x.js";import"./chunk-mh7k2ps4.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-w9srfsfk.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-kpns3659.js";import"./chunk-e6y6s7q8.js";export{Cl as applySlots,kl as extractSlotContent,Sl as parseSlotElement,ca as parseSlots,da as processSlots,la as renderSlot};
2
+ import{ca,Sl,la,da,kl,Cl}from"./chunk-zmdyr321.js";import"./chunk-wyxjsx4k.js";import"./chunk-58jyc7kp.js";import"./chunk-9mjy16pw.js";import"./chunk-299xbyhn.js";import"./chunk-wm5b2y65.js";import"./chunk-6k4f583z.js";import"./chunk-8m3k43d3.js";import"./chunk-7p0zerfj.js";import"./chunk-0ytm2ecf.js";import"./chunk-ba88n1j7.js";import"./chunk-5tyes97j.js";import"./chunk-37nybpw1.js";import"./chunk-e6y6s7q8.js";export{Cl as applySlots,kl as extractSlotContent,Sl as parseSlotElement,ca as parseSlots,da as processSlots,la as renderSlot};