@stacksjs/stx 0.2.270 → 0.2.272

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 (53) hide show
  1. package/dist/builtins/stx-image.js +6 -5
  2. package/dist/{chunk-8hpqcwwc.js → chunk-05zkyg7x.js} +2 -2
  3. package/dist/{chunk-mw1szffx.js → chunk-07z7y2a2.js} +1 -1
  4. package/dist/{chunk-v413wmmr.js → chunk-0wqkwhtt.js} +1 -1
  5. package/dist/{chunk-b70jwwhd.js → chunk-11hvcgsk.js} +1 -1
  6. package/dist/{chunk-bkavpp75.js → chunk-1j4251qt.js} +1 -1
  7. package/dist/{chunk-wyhp2hnm.js → chunk-30143e31.js} +1 -1
  8. package/dist/{chunk-f0z8dy89.js → chunk-35kf50cw.js} +1 -1
  9. package/dist/{chunk-kkrg94ay.js → chunk-4qfm583k.js} +1 -1
  10. package/dist/{chunk-bxv3k5w8.js → chunk-51yszp1w.js} +2 -2
  11. package/dist/{chunk-man5awsh.js → chunk-5csxdsgw.js} +1 -1
  12. package/dist/{chunk-eb17vwke.js → chunk-66e09mb8.js} +1 -1
  13. package/dist/{chunk-2a689vdq.js → chunk-7e7m858p.js} +1 -1
  14. package/dist/{chunk-4r06061f.js → chunk-8n0axwzb.js} +1 -1
  15. package/dist/{chunk-ggem4nm2.js → chunk-96140mfb.js} +1 -1
  16. package/dist/{chunk-8ee6xtdz.js → chunk-9bcawqjd.js} +1 -1
  17. package/dist/{chunk-7fs8qzdd.js → chunk-9bmv5hxy.js} +1 -1
  18. package/dist/{chunk-kzj42dav.js → chunk-9tg9p0q0.js} +1 -1
  19. package/dist/{chunk-mjmm6wts.js → chunk-bdp331cr.js} +1 -1
  20. package/dist/{chunk-7x4xbgp7.js → chunk-c0pvdmfs.js} +1 -1
  21. package/dist/{chunk-bab9k1e8.js → chunk-c1xtbxj3.js} +1 -1
  22. package/dist/{chunk-2qddseth.js → chunk-dk3bn44r.js} +1 -1
  23. package/dist/{chunk-zvygp42b.js → chunk-e4eaw8hx.js} +1 -1
  24. package/dist/{chunk-nsf6d5dq.js → chunk-eyrspbb3.js} +1 -1
  25. package/dist/{chunk-v5vqxa3e.js → chunk-fm2sz04y.js} +1 -1
  26. package/dist/{chunk-cvkjsa0m.js → chunk-fyd647kt.js} +1 -1
  27. package/dist/{chunk-g7gr6pvb.js → chunk-h8zkmta2.js} +1 -1
  28. package/dist/{chunk-ntfmdx5n.js → chunk-j8681w5d.js} +240 -240
  29. package/dist/{chunk-xn65rbw3.js → chunk-jg0578yr.js} +1 -1
  30. package/dist/{chunk-yw1yt8b1.js → chunk-m6026skx.js} +1 -1
  31. package/dist/{chunk-dyqh15py.js → chunk-nrhw244y.js} +1 -1
  32. package/dist/{chunk-v2rx1rey.js → chunk-p0cneyek.js} +1 -1
  33. package/dist/{chunk-f9decgn9.js → chunk-pqr402py.js} +1 -1
  34. package/dist/{chunk-sqcpcnyf.js → chunk-pzq1nng4.js} +1 -1
  35. package/dist/{chunk-6sha41vn.js → chunk-t42zxf25.js} +1 -1
  36. package/dist/{chunk-578te43w.js → chunk-tv9jqnnd.js} +8 -8
  37. package/dist/{chunk-ertf9176.js → chunk-tzjdzsed.js} +1 -1
  38. package/dist/{chunk-qhd9ctad.js → chunk-w5c9n99f.js} +1 -1
  39. package/dist/{chunk-11x9r23q.js → chunk-xcde8pyv.js} +1 -1
  40. package/dist/{chunk-qkhw6tdx.js → chunk-xdmqw057.js} +1 -1
  41. package/dist/{chunk-5a07gxnz.js → chunk-xn2zy1gd.js} +1 -1
  42. package/dist/{chunk-1mr82303.js → chunk-xzt8dzgv.js} +1 -1
  43. package/dist/{chunk-kerjvqz9.js → chunk-zvs473zc.js} +1 -1
  44. package/dist/{chunk-dtnfedg1.js → chunk-zztyxerk.js} +1 -1
  45. package/dist/cli.js +7 -7
  46. package/dist/component-renderer.js +8 -2
  47. package/dist/craft-entry.js +1 -1
  48. package/dist/craft.js +1 -1
  49. package/dist/pwa.js +1 -1
  50. package/dist/server-bindings.d.ts +11 -0
  51. package/dist/server-bindings.js +1 -1
  52. package/dist/ssg.js +2 -2
  53. package/package.json +5 -5
@@ -28,6 +28,10 @@ function resolveBoolProp(props, key, defaultVal = !1) {
28
28
  return stat !== "false" && stat !== !1;
29
29
  return defaultVal;
30
30
  }
31
+ function efficientDeliverySources(delivery) {
32
+ const bytesByFormat = (format) => delivery.variants.filter((variant) => variant.format === format).reduce((total, variant) => total + variant.bytes, 0), fallbackBytes = bytesByFormat(delivery.fallback.format);
33
+ return ["avif", "webp"].map((format) => ({ format, srcset: delivery.sources[format] || "", bytes: bytesByFormat(format) })).filter((candidate) => candidate.srcset && candidate.bytes > 0 && candidate.bytes < fallbackBytes).sort((a, b) => a.bytes - b.bytes).map(({ format, srcset }) => ({ format, srcset }));
34
+ }
31
35
  function parseSizes(sizesStr) {
32
36
  if (sizesStr.includes("(") || sizesStr.includes(","))
33
37
  return sizesStr;
@@ -197,11 +201,8 @@ export const StxImageBuiltin = {
197
201
  if (usePicture) {
198
202
  const sources = [];
199
203
  if (delivery)
200
- for (const candidate of ["avif", "webp"]) {
201
- const candidateSrcset = delivery.sources[candidate];
202
- if (candidateSrcset)
203
- sources.push(`<source type="image/${candidate}" srcset="${escapeAttr(candidateSrcset)}"${finalSizes ? ` sizes="${escapeAttr(finalSizes)}"` : ""} />`);
204
- }
204
+ for (const candidate of efficientDeliverySources(delivery))
205
+ sources.push(`<source type="image/${candidate.format}" srcset="${escapeAttr(candidate.srcset)}"${finalSizes ? ` sizes="${escapeAttr(finalSizes)}"` : ""} />`);
205
206
  if (!delivery && (format === "avif" || format === "auto")) {
206
207
  const avifSrc = transformSrc(src, numWidth, numHeight, provider, "avif"), avifSrcset = finalSrcset ? generateSrcset(src, DEFAULT_SRCSET_WIDTHS, provider, "avif") : `${avifSrc}`;
207
208
  sources.push(`<source type="image/avif" srcset="${escapeAttr(avifSrcset)}"${finalSizes ? ` sizes="${escapeAttr(finalSizes)}"` : ""} />`);
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{yp as V}from"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import{Zu as F}from"./chunk-71gwef4q.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
2
+ import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{zp as V}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import{Zu as F}from"./chunk-71gwef4q.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
3
3
  <script>
4
4
  (function() {
5
5
  const ws = new WebSocket('${z}');
@@ -556,7 +556,7 @@ window.__stxPerformance = {
556
556
 
557
557
  window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
558
558
  </script>
559
- `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-v5vqxa3e.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-v5vqxa3e.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
559
+ `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-fm2sz04y.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-fm2sz04y.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
560
560
  `)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
561
561
  `)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
562
562
  <html lang="en" class="${Z.darkClass||"dark"}">
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Kq as X,ym as W}from"./chunk-ntfmdx5n.js";import V from"fs";import M from"path";import*as Y from"readline";var j={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"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
2
+ import{Kq as X,ym as W}from"./chunk-j8681w5d.js";import V from"fs";import M from"path";import*as Y from"readline";var j={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"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
3
3
  ${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
4
4
  `)}else{console.log(`
5
5
  ${j.bold}Available Commands:${j.reset}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-dtnfedg1.js";import"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
2
+ import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-zztyxerk.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as pl,$a as jn,$b as Bo,$c as Bp,$d as Bq,A as $j,Aa as tm,Ab as Vn,Ac as ap,Ad as aq,Ae as gr,B as ak,Ba as um,Bb as Wn,Bc as bp,Bd as bq,Be as hr,C as bk,Ca as Hm,Cb as Xn,Cc as cp,Cd as cq,Ce as ir,D as ck,Da as Im,Db as Yn,Dc as dp,Dd as dq,De as jr,E as Uk,Ea as Jm,Eb as Zn,Ec as ep,Ed as eq,Ee as kr,F as Vk,Fa as Km,Fb as _n,Fc as fp,Fd as fq,Fe as lr,G as Wk,Ga as Lm,Gb as $n,Gc as gp,Gd as gq,Ge as mr,H as Xk,Ha as Mm,Hb as ao,Hc as hp,Hd as hq,He as nr,I as Yk,Ia as Qm,Ib as bo,Ic as ip,Id as iq,Ie as or,J as Zk,Ja as Rm,Jb as co,Jc as jp,Jd as jq,Je as pr,K as _k,Ka as Sm,Kb as eo,Kc as kp,Kd as kq,Ke as qr,L as $k,La as Tm,Lb as fo,Lc as lp,Ld as lq,Le as rr,M as al,Ma as Um,Mb as mo,Mc as mp,Md as mq,Me as sr,N as bl,Na as Vm,Nb as no,Nc as np,Nd as nq,Ne as tr,O as cl,Oa as Wm,Ob as oo,Oc as op,Od as oq,Oe as ur,P as dl,Pa as Xm,Pb as po,Pc as pp,Pd as pq,Pe as vr,Q as el,Qa as Ym,Qb as qo,Qc as qp,Qd as qq,Qe as wr,R as fl,Ra as Zm,Rb as ro,Rc as rp,Rd as rq,Re as xr,S as gl,Sa as _m,Sb as so,Sc as sp,Sd as sq,Se as yr,T as hl,Ta as $m,Tb as to,Tc as tp,Td as tq,Te as zr,U as il,Ua as an,Ub as uo,Uc as up,Ud as uq,Ue as Ar,V as jl,Va as bn,Vb as vo,Vc as vp,Vd as vq,Ve as Br,W as kl,Wa as dn,Wb as wo,Wc as wp,Wd as wq,We as Cr,X as ll,Xa as en,Xb as xo,Xc as xp,Xd as xq,Y as ml,Ya as fn,Yb as yo,Yc as yp,Yd as yq,Z as nl,Za as gn,Zb as zo,Zc as zp,Zd as zq,_ as ol,_a as hn,_b as Ao,_c as Ap,_d as Aq,aa as ql,ab as kn,ac as Co,ad as Cp,ae as Cq,ba as rl,bb as ln,bc as Do,bd as Dp,be as Dq,ca as sl,cb as mn,cc as Eo,cd as Ep,ce as Eq,da as tl,db as nn,dc as Fo,dd as Fp,de as Fq,ea as ul,eb as on,ec as Go,ed as Gp,ee as Gq,fa as vl,fb as pn,fc as Ho,fd as Hp,fe as Hq,ga as wl,gb as qn,gc as Io,gd as Ip,ge as Iq,ha as xl,hb as rn,hc as Jo,hd as Jp,he as Jq,ia as yl,ib as sn,ic as Ko,id as Kp,ie as Kq,ja as zl,jb as tn,jc as Lo,jd as Lp,je as Lq,ka as Al,kb as un,kc as Mo,kd as Mp,ke as Mq,la as Bl,lb as vn,lc as No,ld as Np,le as Nq,ma as Cl,mb as wn,mc as Oo,md as Op,me as Oq,na as Dl,nb as zn,nc as Po,nd as Pp,ne as Vq,o as a,oa as El,ob as An,oc as Qo,od as Qp,oe as Wq,p as Mj,pa as im,pb as Bn,pc as Ro,pd as Rp,pe as Xq,q as Nj,qa as jm,qb as Cn,qc as So,qd as Sp,qe as Yq,r as Oj,ra as km,rb as In,rc as To,rd as Tp,re as Zq,s as Pj,sa as lm,sb as Jn,sc as Uo,sd as Up,se as _q,t as Qj,ta as mm,tb as Kn,tc as Vo,td as Vp,te as $q,u as Rj,ua as nm,ub as Ln,uc as Wo,ud as Wp,ue as ar,v as Sj,va as om,vb as Qn,vc as Xo,vd as Xp,ve as br,w as Tj,wa as pm,wb as Rn,wc as Yo,wd as Yp,we as cr,x as Uj,xa as qm,xb as Sn,xc as Zo,xd as Zp,xe as dr,y as Zj,ya as rm,yb as Tn,yc as _o,yd as _p,ye as er,z as _j,za as sm,zb as Un,zc as $o,zd as $p,ze as fr}from"./chunk-578te43w.js";import{$e as Mk,Xe as Ik,Ye as Jk,Ze as Kk,_e as Lk,af as Nk,bf as Ok,cf as Pk,df as Qk,ef as Rk,ff as Sk,gf as Tk}from"./chunk-s9z3d94k.js";import{hf as go,if as ho,jf as io,kf as jo,lf as ko,mf as lo}from"./chunk-ggem4nm2.js";import{nf as xn,of as yn}from"./chunk-n3ggrhb3.js";import{pf as Dn}from"./chunk-mw1szffx.js";import{Af as Fm,Bf as Gm,qf as vm,rf as wm,sf as xm,tf as ym,uf as zm,vf as Am,wf as Bm,xf as Cm,yf as Dm,zf as Em}from"./chunk-vqxmxgaj.js";import{Cf as Gk,Df as Hk}from"./chunk-5n2g2z63.js";import{Ef as hm}from"./chunk-kkrg94ay.js";import{Ff as Nm,Gf as Om,Hf as Pm,If as cn,Jf as En,Kf as Fn,Lf as Gn,Mf as Hn,Nf as Mn,Of as Nn,Pf as On,Qf as Pn}from"./chunk-6sha41vn.js";import{$f as nk,Rf as dk,Sf as ek,Tf as fk,Uf as gk,Vf as hk,Wf as ik,Xf as jk,Yf as kk,Zf as lk,_f as mk,ag as ok,bg as pk,cg as qk,dg as rk}from"./chunk-nx5qkm8k.js";import{eg as $i,fg as aj,gg as bj,hg as cj,ig as dj,jg as ej,kg as fj,lg as gj,mg as hj,ng as ij,og as jj}from"./chunk-89wwrrpk.js";import{pg as Bj,rg as Cj}from"./chunk-bz820epz.js";import{Ag as vk,Bg as wk,Cg as xk,Dg as yk,Fg as zk,Gg as Ak,Hg as Bk,Ig as Ck,Jg as Dk,Kg as Ek,Ng as Fk,xg as sk,yg as tk,zg as uk}from"./chunk-tvtnf09q.js";import{Og as Yl,Pg as Zl,Qg as _l,Rg as $l,Sg as cm,Tg as gm}from"./chunk-wyhp2hnm.js";import{Ug as am,Xg as bm}from"./chunk-kerjvqz9.js";import{dh as Fl,eh as Gl,fh as Hl,gh as Il,hh as Jl,ih as Kl,jh as Ll,kh as Ml,lh as Nl,mh as Ol,nh as Pl,oh as Ql,ph as Rl,qh as Sl,rh as Tl,sh as dm,th as em,uh as fm}from"./chunk-v2rx1rey.js";import{vh as lh,wh as mh,xh as nh,yh as oh}from"./chunk-49kk0s96.js";import{Dh as ph}from"./chunk-w3ycm4na.js";import{Eh as wh,Fh as xh,Gh as yh,Hh as zh,Ih as Ah,Jh as Bh}from"./chunk-dtnfedg1.js";import{Kh as Qi,Lh as Ri,Mh as Si,Qh as Ti,Rh as Ui,Sh as Vi}from"./chunk-brahft3h.js";import{$h as Ni,Th as Gi,Uh as Hi,Vh as Ii,Wh as Ji,Xh as Ki,Zh as Li,_h as Mi,ai as Oi,bi as Pi}from"./chunk-74cv4ta1.js";import{ci as wg,di as xg,ei as yg,fi as zg,gi as Ag,hi as Bg}from"./chunk-wcm80anz.js";import{ii as Cg,ji as Dg,ki as Eg,li as Fg,mi as Gg}from"./chunk-y7m2dpd3.js";import{ni as Hg,oi as Ig,pi as Jg,qi as Kg,ri as Lg}from"./chunk-9y0g8kzt.js";import{si as Mg,ti as Ng,ui as Og,vi as Pg,wi as Qg,xi as Rg,yi as Sg}from"./chunk-t6nseeb9.js";import{Ai as Ug,Bi as Vg,Ci as Wg,Di as Xg,Ei as Yg,zi as Tg}from"./chunk-xttsqmkm.js";import{Gi as Zg,Hi as _g,Ii as $g,Ji as ah,Ki as bh,Li as ch,Mi as dh,Ni as eh,Oi as fh,Pi as gh,Qi as hh,Ri as ih,Si as jh,Ti as kh}from"./chunk-54st8g2j.js";import{Vi as qg,Wi as rg}from"./chunk-dyqh15py.js";import{Zi as sg}from"./chunk-7x4xbgp7.js";import"./chunk-9n0gvfrg.js";import{bj as tg}from"./chunk-7q9mwh4v.js";import{cj as ug,dj as vg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-kzj42dav.js";import{sj as Te,tj as Ue}from"./chunk-ph0q97r5.js";import{Aj as Fe,Bj as Ge,Cj as He,Dj as Ie,Ej as Je,Fj as Ke,Gj as Le,Hj as Me,Ij as Ne,Jj as Oe,Kj as Pe,Lj as Qe,Mj as Re,Nj as Se}from"./chunk-w95sp0k9.js";import{Oj as Ve,Pj as We,Qj as Xe,Rj as Ye,Sj as Ze,Tj as _e,Uj as $e,Vj as af,Wj as bf,Xj as cf,Yj as df}from"./chunk-nsf6d5dq.js";import{qk as Pq,rk as Qq,sk as Rq,tk as Sq,uk as Tq,vk as Uq}from"./chunk-bxv3k5w8.js";import{Ak as Ul,Bk as Vl,Ck as Wl,Dk as Xl,wk as Vj,xk as Wj,yk as Xj,zk as Yj}from"./chunk-vf4tde50.js";import"./chunk-58f0mthg.js";import"./chunk-sqcpcnyf.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Hf,$q as Nh,$r as vj,Al as J,Am as qb,An as vc,Ao as Ld,Ap as gf,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cp as hf,Cq as ig,Cr as xi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as jf,Dq as jg,Dr as yi,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as kf,Eq as kg,Er as zi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as lf,Fq as lg,Fr as Ai,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as mf,Gq as mg,Gr as Bi,Hm as Db,Hn as Cc,Ho as Sd,Hp as nf,Hq as ng,Hr as Ci,Im as Eb,In as Dc,Io as Td,Ip as of,Iq as og,Ir as Di,Jl as za,Jn as Ec,Jo as Ud,Jp as pf,Jq as pg,Jr as Ei,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as qf,Kq as qh,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rh,Lr as Wi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Xi,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as tf,Nq as th,Nr as Yi,Om as Jb,On as Jc,Oo as Zd,Op as uf,Oq as uh,Or as Zi,Pm as Kb,Pn as Kc,Po as _d,Pp as vf,Pq as vh,Pr as _i,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as wf,Qq as Ch,Qr as kj,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as Dh,Rr as lj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as yf,Sq as Eh,Sr as mj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as zf,Tq as Fh,Tr as nj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Af,Uq as Gh,Ur as oj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Bf,Vq as Hh,Vr as pj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Cf,Wq as Ih,Wr as qj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Df,Xq as Jh,Xr as rj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as xe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Va,Zm as Ub,Zn as Uc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Wa,_m as Vb,_n as Vc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as If,ar as Oh,as as wj,bn as Yb,bo as Yc,bp as Ce,bq as Jf,br as Ph,bs as xj,cn as Zb,co as Zc,cq as Kf,cr as Qh,cs as yj,dn as _b,do as _c,dq as Lf,dr as Rh,ds as zj,en as $b,eo as $c,ep as De,eq as Mf,er as Sh,es as Aj,fm as Za,fn as ac,fo as ad,fp as Ee,fq as Nf,fr as ai,fs as Dj,gm as _a,gn as bc,go as bd,gq as Of,gr as bi,gs as Ej,hm as $a,hn as cc,ho as cd,hp as ef,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,iq as Qf,ir as di,is as Gj,jl as s,jm as bb,jn as ec,jo as ed,jq as Rf,jr as ei,js as Hj,kl as t,km as cb,kn as fc,ko as fd,kq as Sf,kr as fi,ks as Ij,ll as u,ln as gc,lo as gd,lq as Tf,lr as gi,ls as Jj,ml as v,mn as hc,mo as hd,mq as Uf,mr as hi,ms as Kj,nl as w,nm as db,nn as ic,no as id,nq as Vf,nr as ii,ns as Lj,ol as x,om as eb,on as jc,oo as jd,oq as Wf,or as ji,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,ql as z,qm as gb,qn as lc,qo as Bd,qq as Yf,qr as li,rl as A,rm as hb,rn as mc,ro as Cd,rq as Zf,rr as mi,sl as B,sm as ib,sn as nc,so as Dd,sq as _f,sr as ni,tl as C,tm as jb,tn as oc,to as Ed,tq as $f,tr as oi,ul as D,um as kb,un as pc,uo as Fd,uq as ag,ur as pi,vl as E,vm as lb,vn as qc,vo as Gd,vq as bg,vr as qi,wl as F,wm as mb,wn as rc,wo as Hd,wq as cg,wr as ri,xl as G,xm as nb,xn as sc,xo as Id,xq as dg,xr as si,yl as H,ym as ob,yn as tc,yo as Jd,yp as ff,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zq as fg,zr as ui}from"./chunk-ntfmdx5n.js";import{As as p,Bs as q,Cs as r,os as d,ps as e,qs as f,rs as g,ss as h,ts as i,us as j,vs as k,ws as l,xs as m,ys as n,zs as o}from"./chunk-1bwwtctk.js";import{Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h}from"./chunk-q9zsjgpf.js";import{Ms as b,Ns as c}from"./chunk-a6a9djpq.js";import{Os as Ea,Ps as Fa}from"./chunk-txys90mf.js";import{$s as ub,Ys as sb,Zs as tb,jt as vb,kt as wb,lt as xb}from"./chunk-8ee6xtdz.js";import{mt as Ja,nt as Ka,ot as La,pt as Ma,qt as Na,rt as Oa}from"./chunk-1spzqjve.js";import{st as ue,tt as ve,ut as we}from"./chunk-x9s335jt.js";import{At as pd,Bt as qd,Ct as rd,Dt as sd,Et as td,Ft as ud,Gt as vd,Ht as wd,It as xd,Jt as yd,Kt as zd,vt as kd,wt as ld,xt as md,yt as nd,zt as od}from"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import{$t as wa,Ot as ja,Pt as ka,Qt as la,Rt as ma,St as na,Tt as oa,Ut as pa,Vt as qa,Wt as ra,Xt as sa,Yt as ta,Zt as ua,_t as va,au as xa,bu as ya}from"./chunk-yvpagchj.js";import{Au as U,Bu as V,Cu as W,Du as X,Eu as Y,Fu as Z,Gu as _,Hu as $,Iu as aa,Ju as ba,Lu as ca,fu as K,gu as L,ju as M,ou as N,pu as O,vu as P,wu as Q,xu as R,yu as S,zu as T}from"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{nk as writeNetlifyConfig,em as writeManifest,Sk as writeImageManifest,vo as wrapComponentForHMR,pr as withDefaults,Aj as webComponentDirectiveHandler,kp as watermark,mq as watchViews,al as watchMultiple,bl as watchEffect,$k as watch,Be as warmImagePlaceholders,ol as waitForStore,Zd as waitForLocale,ho as virtualPathFor,nj as videoDirective,uc as validators,tr as validated,Ld as validateValueEnhanced,rh as validateTemplate,pp as validateParams,Md as validateFormEnhanced,bq as validateFile,Hd as validateFields,Gd as validateField,th as validateDirective,ed as validateCspDirectives,Ij as validateConfig,jm as validateComponentScripts,Hm as validateComponentProps,pg as validateClientScript,oh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Gh as userComponentFileExists,Wg as useVirtualList,sd as useTitle,nl as useStoreOrThrow,No as useStore,Zj as useStorage,xq as useSlots,$j as useSessionStorage,pd as useSeoMeta,pl as useRouteParams,rl as useRouteParamOrThrow,ql as useRouteParam,sd as usePageTitle,Se as useOptimistic,tl as useMiddlewareValue,sl as useMiddlewareState,_j as useLocalStorage,oo as useLoadingIndicator,nd as useHead,lh as useForm,zq as useAttrs,dq as uploadFiles,cq as uploadFile,kl as updateInstance,Qe as untrack,Wh as unregisterDirective,ll as unmountInstance,rb as unescapeHtml,ko as typecheckStxFiles,Fh as transpileTypeScript,cr as translate,w as transitionDirective,Ta as transformAutoImports,Bm as toUsers,Am as toUser,Vo as thumbnail,Wp as thumbHashToRGBA,Xp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Ve as templateCache,Nb as syncRecordedResponse,so as stxClientHelpers,Af as structuredDataDirective,fr as stripLocalePrefix,Rl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,nn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Uj as stopHmrServer,xm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Fe as state,jg as startsDocument,Pn as startProductionServer,Dn as startInteractive,wm as startBroadcasting,hr as stampLocaleLayoutGroup,D as staggerDirective,np as srcsetUrls,E as springDirective,Dc as splitByPipe,Nl as spaNavVaryHeaders,io as sourcePathFor,up as smartBatchSign,Ih as slotContentHasExpressions,sp as signUrl,Dh as shouldTranspileTypeScript,Rj as shouldReloadOnChange,xp as shouldRefreshSignature,Sj as shouldIgnoreFile,Og as shouldCacheComponent,Zo as sharpen,wr as shape,La as setStateDir,xl as setRouteParams,yl as setMiddlewareState,Ae as setImagePlaceholder,rq as setGlobalProvide,Rb as setErrorLocale,Uk as setCurrentInstance,bj as setCachedVideoResult,Si as setCachedImageResult,Mi as setCached,zr as serveStxFile,Br as serveMultipleStxFiles,Mj as serveMarkdownFile,Zn as serveFile,Cr as serveApp,Yn as serve,yo as serializeState,cn as serializeSetCookie,$o as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,rj as scopeHTML,qj as scopeCSS,Df as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,dp as saturation,qp as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,tf as runPreProcessingMiddleware,uf as runPostProcessingMiddleware,Gn as runPageAction,Le as runMountCallbacks,ba as runMiddleware,il as runHooks,Xq as runDoctor,Me as runDestroyCallbacks,If as runComposers,ep as rotate,ph as rewriteImagesWithSiblings,Ob as responseBindings,Mh as resolveTemplatePath,c as resolveStxTargets,Ej as resolveStxDirectories,br as resolveI18n,To as resize,Za as resetPlaceholders,md as resetHead,xo as resetHMRHandler,cc as resetErrorConfig,rr as required,bb as replacePlaceholders,kq as renderView,kj as renderVideoComponent,Qa as renderVendorStyleTags,Gq as renderToString,Hq as renderToStream,Iq as renderToDOM,Vp as renderThumbhashToCanvas,Uq as renderTemplateString,Sq as renderTemplate,Tq as renderString,je as renderStreamingPage,yh as renderSlot,Eg as renderSSRSuspense,Fp as renderProtectedVideo,Ep as renderProtectedImg,rp as renderMediaUpload,Rq as renderMarkdownView,Wl as renderLayoutTypes,Wi as renderImgComponent,Ik as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,nq as renderEmail,Kh as renderComponentWithSlot,vd as renderBodyAttrs,Io as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Po as registerStoresClient,vl as registerStore,Bf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Th as registerDirective,dd as registerCspDirectives,Km as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Yk as ref,vn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Kj as readMarkdownFile,We as readFileCached,Zk as reactive,ip as quality,Cp as pruneSignatureCache,Pi as pruneCache,pq as provide,Qq as protectCodeBlocks,qr as prop,Mf as processVueTemplate,Ug as processVirtualListDirectives,Yg as processVirtualGridDirectives,jj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,yg as processTransitionDirectives,Bg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,ug as processTeleportDirectives,Cg as processSuspenseDirectives,wf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,jh as processStaticDirectives,rf as processStackReplacements,qf as processStackPushDirectives,zh as processSlots,Pl as processShell,Kf as processServerBindings,xf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Gp as processProtectedMedia,ch as processPartialHydrationDirectives,og as processOnceDirective,sf as processMiddleware,vf as processMetaDirectives,zd as processMetaDirective,Lj as processMarkdownFileDirectives,Rh as processMarkdownDirectives,lf as processLoops,Mg as processKeepAliveDirectives,ng as processJsonDirective,Xg as processInfiniteListDirectives,pf as processIncludes,Yi as processImgComponents,Kk as processImageComponents,xk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,qh as processDirectives,$h as processDirectiveAttributes,tg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,xr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Hg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,no as preloadIslandHandlers,Ce as preloadIconCollection,sm as poolStrings,Cj as pluginManager,ye as placeholdersWarmed,xg as performLeave,wg as performEnter,Ne as pendingLifecycleCounts,Re as peek,mf as partialsCache,lj as parseVideoDirectiveOptions,Ro as parseUrl,Yp as parseThumbhashString,Jc as parseSwitchBlock,wh as parseSlots,xh as parseSlotElement,Oc as parseScriptDeclarations,yj as parseSFCComponent,Hp as parseProtectedArgs,kf as parseLoopBinding,Xi as parseImgComponent,ni as parseImageUrl,Jk as parseImageComponent,En as parseFormBody,Lc as parseExpressionWithFilters,Lm as parseDefaults,sn as parseCookies,Hl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,sr as optional,tm as optimizeTemplate,Pk as optimizeImage,Qk as optimizeDirectory,ur as oneOf,nf as onceStore,fl as onUpdated,yb as onUpdate,hl as onUnmounted,Cl as onServer,dl as onMounted,Je as onMount,ih as onHydrated,vq as onErrorCaptured,Ke as onDestroy,Sg as onDeactivated,Bl as onClient,el as onBeforeUpdate,gl as onBeforeUnmount,cl as onBeforeMount,Rg as onActivated,Rp as observeElement,wn as notFound,Uf as normalizeCriticalHeadOrder,uq as nextTick,Om as negotiateEncoding,P as navigateTo,jl as mountInstance,z as motionDirective,Vc as moderateCspPreset,rm as minifyHtml,zf as metaDirective,cg as metaDedupKey,So as mergeParams,eg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Sh as markdownDirectiveHandler,Jj as markdownCache,b as looksLikeGlob,er as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Fj as loadStxConfig,_ as loadMiddlewareFromDirectory,fm as loadManifest,Np as loadElement,ym as loadChannels,lr as lintStxStrict,Pp as lazyLoadAll,Op as lazyLoad,C as keyframeDirective,Eq as jsxs,Fq as jsxDEV,Dq as jsx,un as jsonResponse,pe as islandDirective,$b as isTest,Sl as isSpaNavigation,Ll as isSpaNavRequest,vp as isSignatureValid,Oe as isSignal,vk as isSharpAvailable,fn as isServerEnvironment,zl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Kp as isNativeLazySupported,Pq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Ch as isJavaScriptScript,Lp as isIntersectionObserverSupported,Dk as isImageFile,wk as isImageBackendAvailable,ce as isICUFormat,hh as isHydrated,Hh as isHydrateTrigger,Hb as isHttpStatus,en as isEdgeEnvironment,mr as isDirectiveKind,_b as isDevelopment,Pe as isDerived,Qj as isCssOnlyChange,Nm as isCompressible,Al as isClient,Jg as isAsyncComponent,Fn as isActionableMethod,ap as invert,Ye as invalidateFileCacheByDir,Xe as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,ar as injectThemeBootstrap,yf as injectSeoTags,Zq as injectSeo,ef as injectRouterScript,Pj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,lg as injectConfigHeadTags,Tf as injectColorModeBootScript,gg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,qq as inject,ul as initStoreRegistry,qk as initNetlify,po as initLoadingIndicator,Mp as initLazyLoading,Cn as initFile,Up as initBlurUp,_p as initAllBlurUp,_i as imgDirective,Nk as imageDirective,Nn as hydrateTemplateStream,Mn as hydrateTemplate,mo as hydrateIslands,eh as hydrateIsland,On as hydrateFragment,fh as hydrateByStrategy,gh as hydrateAll,Fo as hydrate,Xn as htmlResponse,hg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ii as hashString,df as hashFilePath,Gi as hashFile,Hi as hashBuffer,Lf as hasVueTemplateSyntax,jf as hasVariables,Ko as hasStore,cb as hasPlaceholders,ok as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,kg as hasDocumentShell,uh as hasDirectives,h as hasDOMSupport,Gk as handleImageRequest,wq as handleError,Mq as h,Ck as groupVariantsByFormat,_o as grayscale,Qn as gitHash,lm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,jk as getTotalSize,wp as getTimeUntilExpiry,qg as getStoreScript,Lo as getStoreNames,Jo as getStore,ck as getStorageSize,bk as getStorageKeys,Nh as getSourceLineInfo,Eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,sj as getScopeAttribute,Ee as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,sh as getPositionInfo,$a as getPlaceholderRegistry,Fi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,yk as getImageMetadata,ue as getImageDelivery,Eo as getHydrationRuntime,wl as getHydratedStoreState,Tj as getHmrServer,kd as getHead,wo as getHMRHandler,ri as getFormatExtension,Ki as getFileMtime,Bk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Vh as getDirectives,Uh as getDirective,Vk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Qh as getComponentCacheStats,aj as getCachedVideoResult,Ap as getCachedSignature,_e as getCachedSignalsRuntime,$e as getCachedRouterScript,Di as getCachedPlaceholder,Ri as getCachedImageResult,Li as getCached,Oi as getCacheStats,Yf as getBuildId,vm as getBroadcastServer,qi as getBestVariant,gb as getAllFilters,ei as generateWidthSrcset,Vg as generateVirtualListCSS,fq as generateVideoPreview,Nd as generateValidationScript,gq as generateUploadRuntime,mm as generateTreeShakenBundle,Ag as generateTransitionRuntime,zg as generateTransitionCSS,ej as generateThumbnails,wi as generateThumbhashPlaceholder,Xm as generateTemplatesDocs,Gg as generateSuspenseRuntime,Fg as generateSuspenseCSS,zo as generateStateScript,oi as generateSrcsetData,Vi as generateSrcset,zk as generateSrcSet,fj as generateSpriteSheet,oq as generateSpaShell,pi as generateSourceTags,ki as generateSizesFromBreakpoints,ji as generateSizesAttribute,Ak as generateSizes,Cf as generateSitemapIndex,_q as generateSitemap,Jp as generateSimpleMediaPicker,Dp as generateSignatureRuntime,Ue as generateSignalsRuntimeDev,Te as generateSignalsRuntime,Xa as generateServerDataBridge,pj as generateScopeId,zj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ef as generateRobotsTxt,$q as generateRobots,Ui as generateResponsiveVariants,vj as generateReactiveWebComponentTS,uj as generateReactiveWebComponent,xj as generateReactiveRuntime,wj as generateReactiveMixin,dj as generatePoster,Ci as generatePlaceholderStyle,Bi as generatePlaceholderCSS,vi as generatePlaceholder,dh as generatePartialHydrationCSS,Pc as generateNonce,kk as generateNetlifyToml,iq as generateMinifiedMediaRuntime,hq as generateMediaRuntime,Ip as generateMediaManagerEmbed,dm as generateManifest,ro as generateLoadingIndicatorHtml,Tp as generateLazyLoadRuntime,Xl as generateLayoutTypes,yi as generateLQIP,Qg as generateKeepAliveRuntime,Pg as generateKeepAliveCSS,kh as generateIslandManifest,eq as generateImagePreview,Rk as generateImageManifest,Do as generateHydrationScript,te as generateHydrationRuntime,Go as generateHydrationCSS,Zg as generateHydrationBootstrap,Oj as generateHotReloadScript,ea as generateHeatmapScript,uo as generateHMRClientScript,gj as generateHLSManifest,Ao as generateEventBindings,ii as generateDprSrcsetWithVariableQuality,hi as generateDprSrcset,ig as generateDocumentShell,an as generateDocs,Ym as generateDirectivesDocs,_h as generateDirectiveRuntime,Ff as generateDefaultRobotsTxt,hj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Bq as generateCompositionRuntime,Wm as generateComponentsDocs,_g as generateComponentManifest,Um as generateComponentDoc,Ai as generateColorPlaceholder,Sf as generateColorModeBootScript,ml as generateClientRuntime,Ji as generateCacheKey,Va as generateBrowserAutoImportDestructuring,$p as generateBlurUpRuntime,aq as generateBlurUpCSS,Ab as generateBindingsRuntime,fi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Lg as generateAsyncComponentRuntime,Kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,lo as formatTypecheckDiagnostics,fo as formatTypeErrors,zn as formatStxContent,ik as formatSize,O as formatRoutes,An as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Yq as formatDoctorReport,Zm as formatDocsAsMarkdown,$m as formatDocsAsJson,_m as formatDocsAsHtml,hp as format,qm as foldConstants,gp as flipVertical,fp as flipHorizontal,Yl as fingerprint,jo as findRuntimeTypeDeclarations,Wq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,nm as findDeadCode,nm as findDeadBranches,Il as findContainerRegion,Vm as findComponentFiles,Ar as findCommonDir,hk as filterRequiredFiles,Lh as fileExists,ff as extractVariables,bm as extractTemplateExpressions,le as extractStreamBoundaries,Bo as extractState,Ah as extractSlotContent,hf as extractScriptFromTemplate,am as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,zi as extractDominantColor,Nc as extractDirectiveParams,vh as extractDirectiveNames,Tl as extractContainerContent,Sm as extractComponentProps,$g as extractComponentName,Tm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ah as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,tj as extractAndScopeStyles,Ba as extractAndProcessEvents,Xj as externalizeSharedAssets,Yj as externalizeRepeatedAssets,Wj as externalizeHtml,qb as evaluateExpression,pm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,vg as ensureTeleportTargets,mg as ensureDocumentShell,Jd as enhancedValidationRules,Qm as enableDevTools,om as eliminateDeadCode,He as effect,op as dprUrls,bn as docsCommand,Vl as discoverLayoutNames,Sp as disconnectObserver,Rm as disableDevTools,tc as devHelpers,Ol as detectShell,dn as detectRuntime,lk as detectProjectConfig,si as detectFormat,im as detectBuildMode,Ge as derived,pk as deploy,Hj as defineStxConfig,Oo as defineStore,yq as defineSlots,kr as defineSiteConfig,or as definePropsWithValidation,nr as defineProps,Bj as definePlugin,rd as definePageMeta,R as defineMiddleware,mh as defineForm,tq as defineExpose,sq as defineEmits,Xh as defineDirective,Oq as defineCustomElement,Ln as defineConfig,Yh as defineClientDirective,Ig as defineAsyncComponent,jq as defaultMediaConfig,Tk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Dj as defaultConfig,yr as default,sb as deepMergeThemes,Of as dedupeScopedStyles,xi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Zp as crossfadeTransition,Uo as crop,Tg as createVirtualList,mj as createVideoDirective,qn as createVercelHandler,bo as createTypeChecker,fe as createTranslateFilter,mn as createTextEncoderStream,Nq as createStxApp,ln as createStreamingResponse,ne as createStreamRenderer,Mo as createStore,U as createStorageManager,S as createServerCookieManager,Xk as createScope,Dg as createSSRSuspense,De as createRouter,$ as createRouteLocation,$n as createRoute,Yk as createRef,Zk as createReactive,Aq as createProvideContext,Sn as createProject,Kn as createProductionBuild,_a as createPlaceholder,um as createOptimizedBuild,rn as createNetlifyHandler,dk as createNetlifyClient,aa as createMiddlewareContext,_n as createMiddleware,Qp as createLazyObserver,Ng as createKeepAliveCache,hn as createKVNamespace,bh as createIslandRegistry,Zi as createImgDirective,Ok as createImagePlugin,Hk as createImageHandler,Mk as createImageDirective,ia as createHeatmapAggregator,gk as createFileManifest,gn as createEnvAccessor,nc as createEnhancedError,kn as createEdgeHandler,jn as createEdgeCache,Oh as createDetailedErrorMessage,pn as createDenoHandler,mk as createDefaultNetlifyConfig,gd as createCspHeaders,tn as createCookie,_k as createComputed,Wk as createComponentInstance,on as createCloudflareHandler,T as createClientCookieManager,Zh as createBuiltinDirectives,Nq as createApp,F as createAnimationTimeline,Xo as cover,gf as convertToCommonJS,cp as contrast,Wo as contain,mc as consoleError,ac as configureErrorHandling,Gj as config,_k as computed,Pm as compressResponse,Hf as composerPattern,Gf as composer,Ql as composeShellWithPage,Jm as componentDirective,Jh as componentClientSignalNames,cm as compileTemplate,a as collectRepeatedFlag,fk as collectDeployFiles,cj as clearVideoCache,Pd as clearTranslationCache,rg as clearStoreCache,ak as clearStorage,Bp as clearSignatureCache,Ei as clearPlaceholderCache,of as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Lk as clearImageCache,Ub as clearErrorMessages,af as clearDevCaches,hb as clearCustomFilters,Jf as clearComposers,sg as clearComposableCache,Ph as clearComponentCache,Ni as clearCache,qo as cleanupLoadingIndicator,Fl as classifyScript,Gl as classifyAllScripts,co as checkTemplateFile,eo as checkTemplate,bf as checkCache,yp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Em as channel,yn as captureScreenshots,xn as captureScreenshot,$d as cancelPendingLoads,ek as calculateSha1,gi as calculateOptimalWidths,cf as cacheTemplate,oj as buildWebComponents,go as buildVirtualSource,lq as buildViews,Qo as buildUrl,he as buildSuspenseResolveScript,jr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Zl as buildRuntimeAsset,_l as buildRouterAsset,ir as buildLangPickerScript,mi as buildImageUrl,dg as buildHtmlAttrs,gm as buildForProduction,Mm as buildComponentLibrary,zp as buildAuthParams,hm as buildApp,gr as buildAlternateLinks,Jn as build,Cm as broadcastPrivate,Dm as broadcastPresence,zm as broadcast,bp as brightness,Yo as blur,ya as blankInertHtmlRegions,tp as batchSignUrls,Ie as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,jp as auto,e as attributeValue,$l as assetTags,za as asInvocableStatement,vr as arrayOf,dr as applyTranslations,Ti as applyTransformations,Bh as applySlots,Im as applyPropDefaults,mp as applyPreset,fg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ml as appendVary,Xc as apiCspPreset,y as animationGroupDirective,ij as analyzeVideo,km as analyzeUsage,Dl as analyzeTemplate,El as analyzeProject,km as analyzeDirectiveUsage,Eb as analyticsDirective,Vn as addStore,Un as addPage,$c as addNonceToInlineContent,Wn as addLayout,Tn as addComponent,Hn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ze as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,$i as VideoProcessorCache,nh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,ao as TemplateTypeChecker,Bn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Jq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Jl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,In as ProductionBuild,Lq as Portal,Rn as PROJECT_TEMPLATES,lp as PRESETS,na as NON_CLIENT_PRIMITIVES,Ho as MemorySessionStore,di as MIME_TYPES,ai as MEDIA_DEFAULT_WIDTHS,ci as MEDIA_DEFAULT_FORMATS,Ul as LAYOUT_TYPES_FILE,Qi as ImageProcessorCache,Fk as ImageProcessingError,Co as HydrationRuntime,Nj as HotReloadServer,ha as HeatmapAggregator,bg as HTML_CLASS_MARKER,ag as HTML_ATTRS_MARKER,Cq as Fragment,Kq as For,Kl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Vj as EXTERNALIZED_ASSET_DIR,rk as DeployError,sk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,uk as DEFAULT_QUALITY,ti as DEFAULT_PLACEHOLDER_OPTIONS,tk as DEFAULT_FORMATS,bi as DEFAULT_DPR_VALUES,to as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,li as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,$f as CLOAK_STYLE,Gm as BroadcastServer,Fm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ui as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Vq as $path};
2
+ import{$ as pl,$a as jn,$b as Bo,$c as Bp,$d as Bq,A as $j,Aa as tm,Ab as Vn,Ac as ap,Ad as aq,Ae as gr,B as ak,Ba as um,Bb as Wn,Bc as bp,Bd as bq,Be as hr,C as bk,Ca as Hm,Cb as Xn,Cc as cp,Cd as cq,Ce as ir,D as ck,Da as Im,Db as Yn,Dc as dp,Dd as dq,De as jr,E as Uk,Ea as Jm,Eb as Zn,Ec as ep,Ed as eq,Ee as kr,F as Vk,Fa as Km,Fb as _n,Fc as fp,Fd as fq,Fe as lr,G as Wk,Ga as Lm,Gb as $n,Gc as gp,Gd as gq,Ge as mr,H as Xk,Ha as Mm,Hb as ao,Hc as hp,Hd as hq,He as nr,I as Yk,Ia as Qm,Ib as bo,Ic as ip,Id as iq,Ie as or,J as Zk,Ja as Rm,Jb as co,Jc as jp,Jd as jq,Je as pr,K as _k,Ka as Sm,Kb as eo,Kc as kp,Kd as kq,Ke as qr,L as $k,La as Tm,Lb as fo,Lc as lp,Ld as lq,Le as rr,M as al,Ma as Um,Mb as mo,Mc as mp,Md as mq,Me as sr,N as bl,Na as Vm,Nb as no,Nc as np,Nd as nq,Ne as tr,O as cl,Oa as Wm,Ob as oo,Oc as op,Od as oq,Oe as ur,P as dl,Pa as Xm,Pb as po,Pc as pp,Pd as pq,Pe as vr,Q as el,Qa as Ym,Qb as qo,Qc as qp,Qd as qq,Qe as wr,R as fl,Ra as Zm,Rb as ro,Rc as rp,Rd as rq,Re as xr,S as gl,Sa as _m,Sb as so,Sc as sp,Sd as sq,Se as yr,T as hl,Ta as $m,Tb as to,Tc as tp,Td as tq,Te as zr,U as il,Ua as an,Ub as uo,Uc as up,Ud as uq,Ue as Ar,V as jl,Va as bn,Vb as vo,Vc as vp,Vd as vq,Ve as Br,W as kl,Wa as dn,Wb as wo,Wc as wp,Wd as wq,We as Cr,X as ll,Xa as en,Xb as xo,Xc as xp,Xd as xq,Y as ml,Ya as fn,Yb as yo,Yc as yp,Yd as yq,Z as nl,Za as gn,Zb as zo,Zc as zp,Zd as zq,_ as ol,_a as hn,_b as Ao,_c as Ap,_d as Aq,aa as ql,ab as kn,ac as Co,ad as Cp,ae as Cq,ba as rl,bb as ln,bc as Do,bd as Dp,be as Dq,ca as sl,cb as mn,cc as Eo,cd as Ep,ce as Eq,da as tl,db as nn,dc as Fo,dd as Fp,de as Fq,ea as ul,eb as on,ec as Go,ed as Gp,ee as Gq,fa as vl,fb as pn,fc as Ho,fd as Hp,fe as Hq,ga as wl,gb as qn,gc as Io,gd as Ip,ge as Iq,ha as xl,hb as rn,hc as Jo,hd as Jp,he as Jq,ia as yl,ib as sn,ic as Ko,id as Kp,ie as Kq,ja as zl,jb as tn,jc as Lo,jd as Lp,je as Lq,ka as Al,kb as un,kc as Mo,kd as Mp,ke as Mq,la as Bl,lb as vn,lc as No,ld as Np,le as Nq,ma as Cl,mb as wn,mc as Oo,md as Op,me as Oq,na as Dl,nb as zn,nc as Po,nd as Pp,ne as Vq,o as a,oa as El,ob as An,oc as Qo,od as Qp,oe as Wq,p as Mj,pa as im,pb as Bn,pc as Ro,pd as Rp,pe as Xq,q as Nj,qa as jm,qb as Cn,qc as So,qd as Sp,qe as Yq,r as Oj,ra as km,rb as In,rc as To,rd as Tp,re as Zq,s as Pj,sa as lm,sb as Jn,sc as Uo,sd as Up,se as _q,t as Qj,ta as mm,tb as Kn,tc as Vo,td as Vp,te as $q,u as Rj,ua as nm,ub as Ln,uc as Wo,ud as Wp,ue as ar,v as Sj,va as om,vb as Qn,vc as Xo,vd as Xp,ve as br,w as Tj,wa as pm,wb as Rn,wc as Yo,wd as Yp,we as cr,x as Uj,xa as qm,xb as Sn,xc as Zo,xd as Zp,xe as dr,y as Zj,ya as rm,yb as Tn,yc as _o,yd as _p,ye as er,z as _j,za as sm,zb as Un,zc as $o,zd as $p,ze as fr}from"./chunk-tv9jqnnd.js";import{$e as Mk,Xe as Ik,Ye as Jk,Ze as Kk,_e as Lk,af as Nk,bf as Ok,cf as Pk,df as Qk,ef as Rk,ff as Sk,gf as Tk}from"./chunk-s9z3d94k.js";import{hf as go,if as ho,jf as io,kf as jo,lf as ko,mf as lo}from"./chunk-96140mfb.js";import{nf as xn,of as yn}from"./chunk-n3ggrhb3.js";import{pf as Dn}from"./chunk-07z7y2a2.js";import{Af as Fm,Bf as Gm,qf as vm,rf as wm,sf as xm,tf as ym,uf as zm,vf as Am,wf as Bm,xf as Cm,yf as Dm,zf as Em}from"./chunk-vqxmxgaj.js";import{Cf as Gk,Df as Hk}from"./chunk-5n2g2z63.js";import{Ef as hm}from"./chunk-4qfm583k.js";import{Ff as Nm,Gf as Om,Hf as Pm,If as cn,Jf as En,Kf as Fn,Lf as Gn,Mf as Hn,Nf as Mn,Of as Nn,Pf as On,Qf as Pn}from"./chunk-t42zxf25.js";import{$f as nk,Rf as dk,Sf as ek,Tf as fk,Uf as gk,Vf as hk,Wf as ik,Xf as jk,Yf as kk,Zf as lk,_f as mk,ag as ok,bg as pk,cg as qk,dg as rk}from"./chunk-nx5qkm8k.js";import{eg as $i,fg as aj,gg as bj,hg as cj,ig as dj,jg as ej,kg as fj,lg as gj,mg as hj,ng as ij,og as jj}from"./chunk-89wwrrpk.js";import{pg as Bj,rg as Cj}from"./chunk-bz820epz.js";import{Ag as vk,Bg as wk,Cg as xk,Dg as yk,Fg as zk,Gg as Ak,Hg as Bk,Ig as Ck,Jg as Dk,Kg as Ek,Ng as Fk,xg as sk,yg as tk,zg as uk}from"./chunk-tvtnf09q.js";import{Og as Yl,Pg as Zl,Qg as _l,Rg as $l,Sg as cm,Tg as gm}from"./chunk-30143e31.js";import{Ug as am,Xg as bm}from"./chunk-zvs473zc.js";import{dh as Fl,eh as Gl,fh as Hl,gh as Il,hh as Jl,ih as Kl,jh as Ll,kh as Ml,lh as Nl,mh as Ol,nh as Pl,oh as Ql,ph as Rl,qh as Sl,rh as Tl,sh as dm,th as em,uh as fm}from"./chunk-p0cneyek.js";import{vh as lh,wh as mh,xh as nh,yh as oh}from"./chunk-49kk0s96.js";import{Dh as ph}from"./chunk-w3ycm4na.js";import{Eh as wh,Fh as xh,Gh as yh,Hh as zh,Ih as Ah,Jh as Bh}from"./chunk-zztyxerk.js";import{Kh as Qi,Lh as Ri,Mh as Si,Qh as Ti,Rh as Ui,Sh as Vi}from"./chunk-brahft3h.js";import{$h as Ni,Th as Gi,Uh as Hi,Vh as Ii,Wh as Ji,Xh as Ki,Zh as Li,_h as Mi,ai as Oi,bi as Pi}from"./chunk-74cv4ta1.js";import{ci as wg,di as xg,ei as yg,fi as zg,gi as Ag,hi as Bg}from"./chunk-wcm80anz.js";import{ii as Cg,ji as Dg,ki as Eg,li as Fg,mi as Gg}from"./chunk-y7m2dpd3.js";import{ni as Hg,oi as Ig,pi as Jg,qi as Kg,ri as Lg}from"./chunk-9y0g8kzt.js";import{si as Mg,ti as Ng,ui as Og,vi as Pg,wi as Qg,xi as Rg,yi as Sg}from"./chunk-t6nseeb9.js";import{Ai as Ug,Bi as Vg,Ci as Wg,Di as Xg,Ei as Yg,zi as Tg}from"./chunk-xttsqmkm.js";import{Gi as Zg,Hi as _g,Ii as $g,Ji as ah,Ki as bh,Li as ch,Mi as dh,Ni as eh,Oi as fh,Pi as gh,Qi as hh,Ri as ih,Si as jh,Ti as kh}from"./chunk-54st8g2j.js";import{Vi as qg,Wi as rg}from"./chunk-nrhw244y.js";import{Zi as sg}from"./chunk-c0pvdmfs.js";import"./chunk-9n0gvfrg.js";import{bj as tg}from"./chunk-7q9mwh4v.js";import{cj as ug,dj as vg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-9tg9p0q0.js";import{sj as Ue,tj as Ve}from"./chunk-ph0q97r5.js";import{Aj as Ge,Bj as He,Cj as Ie,Dj as Je,Ej as Ke,Fj as Le,Gj as Me,Hj as Ne,Ij as Oe,Jj as Pe,Kj as Qe,Lj as Re,Mj as Se,Nj as Te}from"./chunk-w95sp0k9.js";import{Oj as We,Pj as Xe,Qj as Ye,Rj as Ze,Sj as _e,Tj as $e,Uj as af,Vj as bf,Wj as cf,Xj as df,Yj as ef}from"./chunk-eyrspbb3.js";import{qk as Pq,rk as Qq,sk as Rq,tk as Sq,uk as Tq,vk as Uq}from"./chunk-51yszp1w.js";import{Ak as Ul,Bk as Vl,Ck as Wl,Dk as Xl,wk as Vj,xk as Wj,yk as Xj,zk as Yj}from"./chunk-vf4tde50.js";import"./chunk-58f0mthg.js";import"./chunk-pzq1nng4.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Hf,$q as Nh,$r as vj,Al as J,Am as qb,An as vc,Ao as Ld,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as hf,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cq as ig,Cr as xi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as jf,Dq as jg,Dr as yi,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as kf,Eq as kg,Er as zi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as lf,Fq as lg,Fr as Ai,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as mf,Gq as mg,Gr as Bi,Hm as Db,Hn as Cc,Ho as Sd,Hp as nf,Hq as ng,Hr as Ci,Im as Eb,In as Dc,Io as Td,Ip as of,Iq as og,Ir as Di,Jl as za,Jn as Ec,Jo as Ud,Jp as pf,Jq as pg,Jr as Ei,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as qf,Kq as qh,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rh,Lr as Wi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Xi,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as tf,Nq as th,Nr as Yi,Om as Jb,On as Jc,Oo as Zd,Op as uf,Oq as uh,Or as Zi,Pm as Kb,Pn as Kc,Po as _d,Pp as vf,Pq as vh,Pr as _i,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as wf,Qq as Ch,Qr as kj,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as Dh,Rr as lj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as yf,Sq as Eh,Sr as mj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as zf,Tq as Fh,Tr as nj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Af,Uq as Gh,Ur as oj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Bf,Vq as Hh,Vr as pj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Cf,Wq as Ih,Wr as qj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Df,Xq as Jh,Xr as rj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as xe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Va,Zm as Ub,Zn as Uc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Wa,_m as Vb,_n as Vc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as If,ar as Oh,as as wj,bn as Yb,bo as Yc,bp as Ce,bq as Jf,br as Ph,bs as xj,cn as Zb,co as Zc,cp as De,cq as Kf,cr as Qh,cs as yj,dn as _b,do as _c,dq as Lf,dr as Rh,ds as zj,en as $b,eo as $c,eq as Mf,er as Sh,es as Aj,fm as Za,fn as ac,fo as ad,fp as Ee,fq as Nf,fr as ai,fs as Dj,gm as _a,gn as bc,go as bd,gp as Fe,gq as Of,gr as bi,gs as Ej,hm as $a,hn as cc,ho as cd,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,ip as ff,iq as Qf,ir as di,is as Gj,jl as s,jm as bb,jn as ec,jo as ed,jq as Rf,jr as ei,js as Hj,kl as t,km as cb,kn as fc,ko as fd,kq as Sf,kr as fi,ks as Ij,ll as u,ln as gc,lo as gd,lq as Tf,lr as gi,ls as Jj,ml as v,mn as hc,mo as hd,mq as Uf,mr as hi,ms as Kj,nl as w,nm as db,nn as ic,no as id,nq as Vf,nr as ii,ns as Lj,ol as x,om as eb,on as jc,oo as jd,oq as Wf,or as ji,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,ql as z,qm as gb,qn as lc,qo as Bd,qq as Yf,qr as li,rl as A,rm as hb,rn as mc,ro as Cd,rq as Zf,rr as mi,sl as B,sm as ib,sn as nc,so as Dd,sq as _f,sr as ni,tl as C,tm as jb,tn as oc,to as Ed,tq as $f,tr as oi,ul as D,um as kb,un as pc,uo as Fd,uq as ag,ur as pi,vl as E,vm as lb,vn as qc,vo as Gd,vq as bg,vr as qi,wl as F,wm as mb,wn as rc,wo as Hd,wq as cg,wr as ri,xl as G,xm as nb,xn as sc,xo as Id,xq as dg,xr as si,yl as H,ym as ob,yn as tc,yo as Jd,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as fg,zr as ui}from"./chunk-j8681w5d.js";import{As as p,Bs as q,Cs as r,os as d,ps as e,qs as f,rs as g,ss as h,ts as i,us as j,vs as k,ws as l,xs as m,ys as n,zs as o}from"./chunk-1bwwtctk.js";import{Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h}from"./chunk-q9zsjgpf.js";import{Ms as b,Ns as c}from"./chunk-a6a9djpq.js";import{Os as Ea,Ps as Fa}from"./chunk-txys90mf.js";import{$s as ub,Ys as sb,Zs as tb,jt as vb,kt as wb,lt as xb}from"./chunk-9bcawqjd.js";import{mt as Ja,nt as Ka,ot as La,pt as Ma,qt as Na,rt as Oa}from"./chunk-1spzqjve.js";import{st as ue,tt as ve,ut as we}from"./chunk-x9s335jt.js";import{At as pd,Bt as qd,Ct as rd,Dt as sd,Et as td,Ft as ud,Gt as vd,Ht as wd,It as xd,Jt as yd,Kt as zd,vt as kd,wt as ld,xt as md,yt as nd,zt as od}from"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import{$t as wa,Ot as ja,Pt as ka,Qt as la,Rt as ma,St as na,Tt as oa,Ut as pa,Vt as qa,Wt as ra,Xt as sa,Yt as ta,Zt as ua,_t as va,au as xa,bu as ya}from"./chunk-yvpagchj.js";import{Au as U,Bu as V,Cu as W,Du as X,Eu as Y,Fu as Z,Gu as _,Hu as $,Iu as aa,Ju as ba,Lu as ca,fu as K,gu as L,ju as M,ou as N,pu as O,vu as P,wu as Q,xu as R,yu as S,zu as T}from"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{nk as writeNetlifyConfig,em as writeManifest,Sk as writeImageManifest,vo as wrapComponentForHMR,pr as withDefaults,Aj as webComponentDirectiveHandler,kp as watermark,mq as watchViews,al as watchMultiple,bl as watchEffect,$k as watch,Be as warmImagePlaceholders,ol as waitForStore,Zd as waitForLocale,ho as virtualPathFor,nj as videoDirective,uc as validators,tr as validated,Ld as validateValueEnhanced,rh as validateTemplate,pp as validateParams,Md as validateFormEnhanced,bq as validateFile,Hd as validateFields,Gd as validateField,th as validateDirective,ed as validateCspDirectives,Ij as validateConfig,jm as validateComponentScripts,Hm as validateComponentProps,pg as validateClientScript,oh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Gh as userComponentFileExists,Wg as useVirtualList,sd as useTitle,nl as useStoreOrThrow,No as useStore,Zj as useStorage,xq as useSlots,$j as useSessionStorage,pd as useSeoMeta,pl as useRouteParams,rl as useRouteParamOrThrow,ql as useRouteParam,sd as usePageTitle,Te as useOptimistic,tl as useMiddlewareValue,sl as useMiddlewareState,_j as useLocalStorage,oo as useLoadingIndicator,nd as useHead,lh as useForm,zq as useAttrs,dq as uploadFiles,cq as uploadFile,kl as updateInstance,Re as untrack,Wh as unregisterDirective,ll as unmountInstance,rb as unescapeHtml,ko as typecheckStxFiles,Fh as transpileTypeScript,cr as translate,w as transitionDirective,Ta as transformAutoImports,Bm as toUsers,Am as toUser,Vo as thumbnail,Wp as thumbHashToRGBA,Xp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,We as templateCache,Nb as syncRecordedResponse,so as stxClientHelpers,Bf as structuredDataDirective,fr as stripLocalePrefix,Rl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,nn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Uj as stopHmrServer,xm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ge as state,jg as startsDocument,Pn as startProductionServer,Dn as startInteractive,wm as startBroadcasting,hr as stampLocaleLayoutGroup,D as staggerDirective,np as srcsetUrls,E as springDirective,Dc as splitByPipe,Nl as spaNavVaryHeaders,io as sourcePathFor,up as smartBatchSign,Ih as slotContentHasExpressions,sp as signUrl,Dh as shouldTranspileTypeScript,Rj as shouldReloadOnChange,xp as shouldRefreshSignature,Sj as shouldIgnoreFile,Og as shouldCacheComponent,Zo as sharpen,wr as shape,La as setStateDir,xl as setRouteParams,yl as setMiddlewareState,Ae as setImagePlaceholder,rq as setGlobalProvide,Rb as setErrorLocale,Uk as setCurrentInstance,bj as setCachedVideoResult,Si as setCachedImageResult,Mi as setCached,zr as serveStxFile,Br as serveMultipleStxFiles,Mj as serveMarkdownFile,Zn as serveFile,Cr as serveApp,Yn as serve,yo as serializeState,cn as serializeSetCookie,$o as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,rj as scopeHTML,qj as scopeCSS,Ef as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,dp as saturation,qp as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,uf as runPreProcessingMiddleware,vf as runPostProcessingMiddleware,Gn as runPageAction,Me as runMountCallbacks,ba as runMiddleware,il as runHooks,Xq as runDoctor,Ne as runDestroyCallbacks,Jf as runComposers,ep as rotate,ph as rewriteImagesWithSiblings,Ob as responseBindings,Mh as resolveTemplatePath,c as resolveStxTargets,Ej as resolveStxDirectories,br as resolveI18n,To as resize,Za as resetPlaceholders,md as resetHead,xo as resetHMRHandler,cc as resetErrorConfig,rr as required,bb as replacePlaceholders,kq as renderView,kj as renderVideoComponent,Qa as renderVendorStyleTags,Gq as renderToString,Hq as renderToStream,Iq as renderToDOM,Vp as renderThumbhashToCanvas,Uq as renderTemplateString,Sq as renderTemplate,Tq as renderString,je as renderStreamingPage,yh as renderSlot,Eg as renderSSRSuspense,Fp as renderProtectedVideo,Ep as renderProtectedImg,rp as renderMediaUpload,Rq as renderMarkdownView,Wl as renderLayoutTypes,Wi as renderImgComponent,Ik as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,nq as renderEmail,Kh as renderComponentWithSlot,vd as renderBodyAttrs,Io as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Po as registerStoresClient,vl as registerStore,Cf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Th as registerDirective,dd as registerCspDirectives,Km as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Yk as ref,vn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Kj as readMarkdownFile,Xe as readFileCached,Zk as reactive,ip as quality,Cp as pruneSignatureCache,Pi as pruneCache,pq as provide,Qq as protectCodeBlocks,qr as prop,Mf as processVueTemplate,Ug as processVirtualListDirectives,Yg as processVirtualGridDirectives,jj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,yg as processTransitionDirectives,Bg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,ug as processTeleportDirectives,Cg as processSuspenseDirectives,xf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,jh as processStaticDirectives,sf as processStackReplacements,rf as processStackPushDirectives,zh as processSlots,Pl as processShell,De as processServerBindings,yf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Gp as processProtectedMedia,ch as processPartialHydrationDirectives,og as processOnceDirective,tf as processMiddleware,wf as processMetaDirectives,zd as processMetaDirective,Lj as processMarkdownFileDirectives,Rh as processMarkdownDirectives,mf as processLoops,Mg as processKeepAliveDirectives,ng as processJsonDirective,Xg as processInfiniteListDirectives,qf as processIncludes,Yi as processImgComponents,Kk as processImageComponents,xk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,qh as processDirectives,$h as processDirectiveAttributes,tg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,xr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Hg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,no as preloadIslandHandlers,Ce as preloadIconCollection,sm as poolStrings,Cj as pluginManager,ye as placeholdersWarmed,xg as performLeave,wg as performEnter,Oe as pendingLifecycleCounts,Se as peek,nf as partialsCache,lj as parseVideoDirectiveOptions,Ro as parseUrl,Yp as parseThumbhashString,Jc as parseSwitchBlock,wh as parseSlots,xh as parseSlotElement,Oc as parseScriptDeclarations,yj as parseSFCComponent,Hp as parseProtectedArgs,lf as parseLoopBinding,Xi as parseImgComponent,ni as parseImageUrl,Jk as parseImageComponent,En as parseFormBody,Lc as parseExpressionWithFilters,Lm as parseDefaults,sn as parseCookies,Hl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,sr as optional,tm as optimizeTemplate,Pk as optimizeImage,Qk as optimizeDirectory,ur as oneOf,of as onceStore,fl as onUpdated,yb as onUpdate,hl as onUnmounted,Cl as onServer,dl as onMounted,Ke as onMount,ih as onHydrated,vq as onErrorCaptured,Le as onDestroy,Sg as onDeactivated,Bl as onClient,el as onBeforeUpdate,gl as onBeforeUnmount,cl as onBeforeMount,Rg as onActivated,Rp as observeElement,wn as notFound,Uf as normalizeCriticalHeadOrder,uq as nextTick,Om as negotiateEncoding,P as navigateTo,jl as mountInstance,z as motionDirective,Vc as moderateCspPreset,rm as minifyHtml,Af as metaDirective,cg as metaDedupKey,So as mergeParams,eg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Sh as markdownDirectiveHandler,Jj as markdownCache,b as looksLikeGlob,er as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Fj as loadStxConfig,_ as loadMiddlewareFromDirectory,fm as loadManifest,Np as loadElement,ym as loadChannels,lr as lintStxStrict,Pp as lazyLoadAll,Op as lazyLoad,C as keyframeDirective,Eq as jsxs,Fq as jsxDEV,Dq as jsx,un as jsonResponse,pe as islandDirective,$b as isTest,Sl as isSpaNavigation,Ll as isSpaNavRequest,vp as isSignatureValid,Pe as isSignal,vk as isSharpAvailable,fn as isServerEnvironment,zl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Kp as isNativeLazySupported,Pq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Ch as isJavaScriptScript,Lp as isIntersectionObserverSupported,Dk as isImageFile,wk as isImageBackendAvailable,ce as isICUFormat,hh as isHydrated,Hh as isHydrateTrigger,Hb as isHttpStatus,en as isEdgeEnvironment,mr as isDirectiveKind,_b as isDevelopment,Qe as isDerived,Qj as isCssOnlyChange,Nm as isCompressible,Al as isClient,Jg as isAsyncComponent,Fn as isActionableMethod,ap as invert,Ze as invalidateFileCacheByDir,Ye as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,ar as injectThemeBootstrap,zf as injectSeoTags,Zq as injectSeo,ff as injectRouterScript,Pj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,lg as injectConfigHeadTags,Tf as injectColorModeBootScript,gg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,qq as inject,ul as initStoreRegistry,qk as initNetlify,po as initLoadingIndicator,Mp as initLazyLoading,Cn as initFile,Up as initBlurUp,_p as initAllBlurUp,_i as imgDirective,Nk as imageDirective,Nn as hydrateTemplateStream,Mn as hydrateTemplate,mo as hydrateIslands,eh as hydrateIsland,On as hydrateFragment,fh as hydrateByStrategy,gh as hydrateAll,Fo as hydrate,Xn as htmlResponse,hg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ii as hashString,ef as hashFilePath,Gi as hashFile,Hi as hashBuffer,Lf as hasVueTemplateSyntax,kf as hasVariables,Ko as hasStore,cb as hasPlaceholders,ok as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,kg as hasDocumentShell,uh as hasDirectives,h as hasDOMSupport,Gk as handleImageRequest,wq as handleError,Mq as h,Ck as groupVariantsByFormat,_o as grayscale,Qn as gitHash,lm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,jk as getTotalSize,wp as getTimeUntilExpiry,qg as getStoreScript,Lo as getStoreNames,Jo as getStore,ck as getStorageSize,bk as getStorageKeys,Nh as getSourceLineInfo,Eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,sj as getScopeAttribute,Fe as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,sh as getPositionInfo,$a as getPlaceholderRegistry,Fi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,yk as getImageMetadata,ue as getImageDelivery,Eo as getHydrationRuntime,wl as getHydratedStoreState,Tj as getHmrServer,kd as getHead,wo as getHMRHandler,ri as getFormatExtension,Ki as getFileMtime,Bk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Vh as getDirectives,Uh as getDirective,Vk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Qh as getComponentCacheStats,aj as getCachedVideoResult,Ap as getCachedSignature,$e as getCachedSignalsRuntime,af as getCachedRouterScript,Di as getCachedPlaceholder,Ri as getCachedImageResult,Li as getCached,Oi as getCacheStats,Yf as getBuildId,vm as getBroadcastServer,qi as getBestVariant,gb as getAllFilters,ei as generateWidthSrcset,Vg as generateVirtualListCSS,fq as generateVideoPreview,Nd as generateValidationScript,gq as generateUploadRuntime,mm as generateTreeShakenBundle,Ag as generateTransitionRuntime,zg as generateTransitionCSS,ej as generateThumbnails,wi as generateThumbhashPlaceholder,Xm as generateTemplatesDocs,Gg as generateSuspenseRuntime,Fg as generateSuspenseCSS,zo as generateStateScript,oi as generateSrcsetData,Vi as generateSrcset,zk as generateSrcSet,fj as generateSpriteSheet,oq as generateSpaShell,pi as generateSourceTags,ki as generateSizesFromBreakpoints,ji as generateSizesAttribute,Ak as generateSizes,Df as generateSitemapIndex,_q as generateSitemap,Jp as generateSimpleMediaPicker,Dp as generateSignatureRuntime,Ve as generateSignalsRuntimeDev,Ue as generateSignalsRuntime,Xa as generateServerDataBridge,pj as generateScopeId,zj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ff as generateRobotsTxt,$q as generateRobots,Ui as generateResponsiveVariants,vj as generateReactiveWebComponentTS,uj as generateReactiveWebComponent,xj as generateReactiveRuntime,wj as generateReactiveMixin,dj as generatePoster,Ci as generatePlaceholderStyle,Bi as generatePlaceholderCSS,vi as generatePlaceholder,dh as generatePartialHydrationCSS,Pc as generateNonce,kk as generateNetlifyToml,iq as generateMinifiedMediaRuntime,hq as generateMediaRuntime,Ip as generateMediaManagerEmbed,dm as generateManifest,ro as generateLoadingIndicatorHtml,Tp as generateLazyLoadRuntime,Xl as generateLayoutTypes,yi as generateLQIP,Qg as generateKeepAliveRuntime,Pg as generateKeepAliveCSS,kh as generateIslandManifest,eq as generateImagePreview,Rk as generateImageManifest,Do as generateHydrationScript,te as generateHydrationRuntime,Go as generateHydrationCSS,Zg as generateHydrationBootstrap,Oj as generateHotReloadScript,ea as generateHeatmapScript,uo as generateHMRClientScript,gj as generateHLSManifest,Ao as generateEventBindings,ii as generateDprSrcsetWithVariableQuality,hi as generateDprSrcset,ig as generateDocumentShell,an as generateDocs,Ym as generateDirectivesDocs,_h as generateDirectiveRuntime,Gf as generateDefaultRobotsTxt,hj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Bq as generateCompositionRuntime,Wm as generateComponentsDocs,_g as generateComponentManifest,Um as generateComponentDoc,Ai as generateColorPlaceholder,Sf as generateColorModeBootScript,ml as generateClientRuntime,Ji as generateCacheKey,Va as generateBrowserAutoImportDestructuring,$p as generateBlurUpRuntime,aq as generateBlurUpCSS,Ab as generateBindingsRuntime,fi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Lg as generateAsyncComponentRuntime,Kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,lo as formatTypecheckDiagnostics,fo as formatTypeErrors,zn as formatStxContent,ik as formatSize,O as formatRoutes,An as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Yq as formatDoctorReport,Zm as formatDocsAsMarkdown,$m as formatDocsAsJson,_m as formatDocsAsHtml,hp as format,qm as foldConstants,gp as flipVertical,fp as flipHorizontal,Yl as fingerprint,jo as findRuntimeTypeDeclarations,Wq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,nm as findDeadCode,nm as findDeadBranches,Il as findContainerRegion,Vm as findComponentFiles,Ar as findCommonDir,hk as filterRequiredFiles,Lh as fileExists,gf as extractVariables,bm as extractTemplateExpressions,le as extractStreamBoundaries,Bo as extractState,Ah as extractSlotContent,jf as extractScriptFromTemplate,am as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,zi as extractDominantColor,Nc as extractDirectiveParams,vh as extractDirectiveNames,Tl as extractContainerContent,Sm as extractComponentProps,$g as extractComponentName,Tm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ah as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,tj as extractAndScopeStyles,Ba as extractAndProcessEvents,Xj as externalizeSharedAssets,Yj as externalizeRepeatedAssets,Wj as externalizeHtml,qb as evaluateExpression,pm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,vg as ensureTeleportTargets,mg as ensureDocumentShell,Jd as enhancedValidationRules,Qm as enableDevTools,om as eliminateDeadCode,Ie as effect,op as dprUrls,bn as docsCommand,Vl as discoverLayoutNames,Sp as disconnectObserver,Rm as disableDevTools,tc as devHelpers,Ol as detectShell,dn as detectRuntime,lk as detectProjectConfig,si as detectFormat,im as detectBuildMode,He as derived,pk as deploy,Hj as defineStxConfig,Oo as defineStore,yq as defineSlots,kr as defineSiteConfig,or as definePropsWithValidation,nr as defineProps,Bj as definePlugin,rd as definePageMeta,R as defineMiddleware,mh as defineForm,tq as defineExpose,sq as defineEmits,Xh as defineDirective,Oq as defineCustomElement,Ln as defineConfig,Yh as defineClientDirective,Ig as defineAsyncComponent,jq as defaultMediaConfig,Tk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Dj as defaultConfig,yr as default,sb as deepMergeThemes,Of as dedupeScopedStyles,xi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Zp as crossfadeTransition,Uo as crop,Tg as createVirtualList,mj as createVideoDirective,qn as createVercelHandler,bo as createTypeChecker,fe as createTranslateFilter,mn as createTextEncoderStream,Nq as createStxApp,ln as createStreamingResponse,ne as createStreamRenderer,Mo as createStore,U as createStorageManager,S as createServerCookieManager,Xk as createScope,Dg as createSSRSuspense,Ee as createRouter,$ as createRouteLocation,$n as createRoute,Yk as createRef,Zk as createReactive,Aq as createProvideContext,Sn as createProject,Kn as createProductionBuild,_a as createPlaceholder,um as createOptimizedBuild,rn as createNetlifyHandler,dk as createNetlifyClient,aa as createMiddlewareContext,_n as createMiddleware,Qp as createLazyObserver,Ng as createKeepAliveCache,hn as createKVNamespace,bh as createIslandRegistry,Zi as createImgDirective,Ok as createImagePlugin,Hk as createImageHandler,Mk as createImageDirective,ia as createHeatmapAggregator,gk as createFileManifest,gn as createEnvAccessor,nc as createEnhancedError,kn as createEdgeHandler,jn as createEdgeCache,Oh as createDetailedErrorMessage,pn as createDenoHandler,mk as createDefaultNetlifyConfig,gd as createCspHeaders,tn as createCookie,_k as createComputed,Wk as createComponentInstance,on as createCloudflareHandler,T as createClientCookieManager,Zh as createBuiltinDirectives,Nq as createApp,F as createAnimationTimeline,Xo as cover,hf as convertToCommonJS,cp as contrast,Wo as contain,mc as consoleError,ac as configureErrorHandling,Gj as config,_k as computed,Pm as compressResponse,If as composerPattern,Hf as composer,Ql as composeShellWithPage,Jm as componentDirective,Jh as componentClientSignalNames,cm as compileTemplate,a as collectRepeatedFlag,fk as collectDeployFiles,cj as clearVideoCache,Pd as clearTranslationCache,rg as clearStoreCache,ak as clearStorage,Bp as clearSignatureCache,Ei as clearPlaceholderCache,pf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Lk as clearImageCache,Ub as clearErrorMessages,bf as clearDevCaches,hb as clearCustomFilters,Kf as clearComposers,sg as clearComposableCache,Ph as clearComponentCache,Ni as clearCache,qo as cleanupLoadingIndicator,Fl as classifyScript,Gl as classifyAllScripts,co as checkTemplateFile,eo as checkTemplate,cf as checkCache,yp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Em as channel,yn as captureScreenshots,xn as captureScreenshot,$d as cancelPendingLoads,ek as calculateSha1,gi as calculateOptimalWidths,df as cacheTemplate,oj as buildWebComponents,go as buildVirtualSource,lq as buildViews,Qo as buildUrl,he as buildSuspenseResolveScript,jr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Zl as buildRuntimeAsset,_l as buildRouterAsset,ir as buildLangPickerScript,mi as buildImageUrl,dg as buildHtmlAttrs,gm as buildForProduction,Mm as buildComponentLibrary,zp as buildAuthParams,hm as buildApp,gr as buildAlternateLinks,Jn as build,Cm as broadcastPrivate,Dm as broadcastPresence,zm as broadcast,bp as brightness,Yo as blur,ya as blankInertHtmlRegions,tp as batchSignUrls,Je as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,jp as auto,e as attributeValue,$l as assetTags,za as asInvocableStatement,vr as arrayOf,dr as applyTranslations,Ti as applyTransformations,Bh as applySlots,Im as applyPropDefaults,mp as applyPreset,fg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ml as appendVary,Xc as apiCspPreset,y as animationGroupDirective,ij as analyzeVideo,km as analyzeUsage,Dl as analyzeTemplate,El as analyzeProject,km as analyzeDirectiveUsage,Eb as analyticsDirective,Vn as addStore,Un as addPage,$c as addNonceToInlineContent,Wn as addLayout,Tn as addComponent,Hn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,_e as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,$i as VideoProcessorCache,nh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,ao as TemplateTypeChecker,Bn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Jq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Jl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,In as ProductionBuild,Lq as Portal,Rn as PROJECT_TEMPLATES,lp as PRESETS,na as NON_CLIENT_PRIMITIVES,Ho as MemorySessionStore,di as MIME_TYPES,ai as MEDIA_DEFAULT_WIDTHS,ci as MEDIA_DEFAULT_FORMATS,Ul as LAYOUT_TYPES_FILE,Qi as ImageProcessorCache,Fk as ImageProcessingError,Co as HydrationRuntime,Nj as HotReloadServer,ha as HeatmapAggregator,bg as HTML_CLASS_MARKER,ag as HTML_ATTRS_MARKER,Cq as Fragment,Kq as For,Kl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Vj as EXTERNALIZED_ASSET_DIR,rk as DeployError,sk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,uk as DEFAULT_QUALITY,ti as DEFAULT_PLACEHOLDER_OPTIONS,tk as DEFAULT_FORMATS,bi as DEFAULT_DPR_VALUES,to as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,li as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,$f as CLOAK_STYLE,Gm as BroadcastServer,Fm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ui as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Vq as $path};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{tk as m}from"./chunk-bxv3k5w8.js";import{Zu as z}from"./chunk-71gwef4q.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
2
+ import{tk as m}from"./chunk-51yszp1w.js";import{Zu as z}from"./chunk-71gwef4q.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
3
3
  <script>
4
4
  (function() {
5
5
  'use strict';
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Yg as p}from"./chunk-kerjvqz9.js";import{ph as a,rh as JF,sh as ZF,th as qF}from"./chunk-v2rx1rey.js";import{sj as C,tj as D}from"./chunk-ph0q97r5.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{Gq as FF,Kq as c,Nm as u,ep as o,fm as l,fs as n,hm as d,hs as N,lq as e,zq as t}from"./chunk-ntfmdx5n.js";import{lt as r}from"./chunk-8ee6xtdz.js";import{Nu as S,Pu as WF}from"./chunk-rhbq1var.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
2
+ import{Yg as p}from"./chunk-zvs473zc.js";import{ph as a,rh as JF,sh as ZF,th as qF}from"./chunk-p0cneyek.js";import{sj as C,tj as D}from"./chunk-ph0q97r5.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{Gq as FF,Kq as c,Nm as u,fm as l,fp as o,fs as n,hm as d,hs as N,lq as e,zq as t}from"./chunk-j8681w5d.js";import{lt as r}from"./chunk-9bcawqjd.js";import{Nu as S,Pu as WF}from"./chunk-rhbq1var.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
3
3
  [stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
4
4
  export{g as Og,f as Pg,m as Qg,UF as Rg,i as Sg,lF as Tg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ep as a,Fp as b}from"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as processLoops,a as parseLoopBinding};
2
+ import{Fp as a,Gp as b}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as processLoops,a as parseLoopBinding};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{hs as E}from"./chunk-ntfmdx5n.js";import{Zu as D}from"./chunk-71gwef4q.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-2qddseth.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
2
+ import{hs as E}from"./chunk-j8681w5d.js";import{Zu as D}from"./chunk-71gwef4q.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-dk3bn44r.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
3
3
  export{M as Ef};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Hl as A,Il as D,Kq as k,Sm as T,Tm as y,Xo as x,_l as B,am as F,fs as w,hp as M,yp as R}from"./chunk-ntfmdx5n.js";import{Zu as P}from"./chunk-71gwef4q.js";function b(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,X){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(X?.some((Y)=>q>=Y.start&&N<=Y.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,X)=>J.start-X.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function j(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>D(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as v,resolve as H}from"path";function f(K){let z=K,G=x(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],X=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],Y=$[2],E=$[0],Z=N.includes("server");if(X(Y))J.push(E);else if(Z)Q.push(Y);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,Y,E=[];while((Y=N.exec(q))!==null){let Z=Y.index+Y[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:Y.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
2
+ import{Hl as A,Il as D,Kq as k,Sm as T,Tm as y,Xo as x,_l as B,am as F,fs as w,ip as M,zp as R}from"./chunk-j8681w5d.js";import{Zu as P}from"./chunk-71gwef4q.js";function b(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,X){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(X?.some((Y)=>q>=Y.start&&N<=Y.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,X)=>J.start-X.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function j(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>D(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as v,resolve as H}from"path";function f(K){let z=K,G=x(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],X=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],Y=$[2],E=$[0],Z=N.includes("server");if(X(Y))J.push(E);else if(Z)Q.push(Y);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,Y,E=[];while((Y=N.exec(q))!==null){let Z=Y.index+Y[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:Y.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -14,5 +14,5 @@ ${Q.join(`
14
14
  `)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=X.__stx_event_bindings||[],Y=B(X),Z=(await Promise.all(Q.map(async(V)=>{let W=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return V;return await F(W[1],{eventBindings:N,templateContent:q,serverData:Y,filePath:z})}))).join(`
15
15
  `);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
16
16
  $1`);else q+=`
17
- ${Z}`}q=await M(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCrosswindCSS:N}=await import("./chunk-yw1yt8b1.js");q=await N(q)}catch{}return q}
17
+ ${Z}`}q=await M(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCrosswindCSS:N}=await import("./chunk-m6026skx.js");q=await N(q)}catch{}return q}
18
18
  export{b as qk,C as rk,j as sk,s as tk,i as uk,I as vk};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ap as g,Bp as h,Cp as i,Dp as j,up as a,vp as b,wp as c,xp as d,yp as e,zp as f}from"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
2
+ import{Ap as f,Bp as g,Cp as h,Dp as i,Ep as j,vp as a,wp as b,xp as c,yp as d,zp as e}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ef as a}from"./chunk-kkrg94ay.js";import"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as buildApp};
2
+ import{Ef as a}from"./chunk-4qfm583k.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as buildApp};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{hf as c,if as d,jf as e,kf as f,lf as g,mf as h}from"./chunk-ggem4nm2.js";import{Ug as a,Xg as b}from"./chunk-kerjvqz9.js";import"./chunk-7x4xbgp7.js";import"./chunk-9n0gvfrg.js";import"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
2
+ import{hf as c,if as d,jf as e,kf as f,lf as g,mf as h}from"./chunk-96140mfb.js";import{Ug as a,Xg as b}from"./chunk-zvs473zc.js";import"./chunk-c0pvdmfs.js";import"./chunk-9n0gvfrg.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{fs as a,gs as b,hs as c,is as d,js as e,ks as f}from"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
2
+ import{fs as a,gs as b,hs as c,is as d,js as e,ks as f}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$g as KH,Ug as v,Vg as i,Wg as t,Zg as e,_g as HH,ah as QH,bh as YH,ch as ZH}from"./chunk-kerjvqz9.js";import{Xi as s}from"./chunk-7x4xbgp7.js";import{Ql as a}from"./chunk-ntfmdx5n.js";import{qt as h}from"./chunk-1spzqjve.js";import{Ot as f}from"./chunk-yvpagchj.js";import{existsSync as $H,readFileSync as qH}from"fs";import J from"path";function GH(K,Q="",V=""){let L=K.startLine>1?`
2
+ import{$g as KH,Ug as v,Vg as i,Wg as t,Zg as e,_g as HH,ah as QH,bh as YH,ch as ZH}from"./chunk-zvs473zc.js";import{Xi as s}from"./chunk-c0pvdmfs.js";import{Ql as a}from"./chunk-j8681w5d.js";import{qt as h}from"./chunk-1spzqjve.js";import{Ot as f}from"./chunk-yvpagchj.js";import{existsSync as $H,readFileSync as qH}from"fs";import J from"path";function GH(K,Q="",V=""){let L=K.startLine>1?`
3
3
  `.repeat(K.startLine-1):"",N=t(i(K.code)),X=K.kind==="client"||K.kind==="plain"?HH(Q,K.code):"";return QH(`${L+N}
4
4
  ${X}
5
5
  export {}
@@ -11,7 +11,7 @@ catch (e) {
11
11
  }
12
12
  throw e;
13
13
  }
14
- `),Z.set(X,V)}return V(...W)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:U,context:J.slice()});return U}clear(){this.pool.length=0,this.fnCache.clear()}}var pJ=new qJ;class UJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(Q){this.enabled=Q}isEnabled(){return this.enabled}setBudget(Q,J){this.budgets.set(Q,{warnThreshold:0.8,action:"warn",...J})}setBudgets(Q){for(let[J,Y]of Object.entries(Q))this.setBudget(J,Y)}removeBudget(Q){this.budgets.delete(Q)}getBudgets(){let Q={};for(let[J,Y]of this.budgets.entries())Q[J]=Y;return Q}onViolation(Q){this.violationHandlers.push(Q)}offViolation(Q){let J=this.violationHandlers.indexOf(Q);if(J!==-1)this.violationHandlers.splice(J,1)}time(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}async timeAsync(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=await J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}checkBudget(Q,J){let Y=this.budgets.get(Q);if(!Y)return;let $=J/Y.maxTime*100,Z=Y.warnThreshold!==void 0?J>=Y.maxTime*Y.warnThreshold&&J<Y.maxTime:!1,q=J>=Y.maxTime;if(!Z&&!q)return;let U={label:Q,actualTime:J,budgetTime:Y.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:Z};this.violations.push(U);while(this.violations.length>this.maxViolations)this.violations.shift();for(let G of this.violationHandlers)try{G(U)}catch{}let W=Z?`[Performance Warning] "${Q}" took ${J.toFixed(2)}ms (${$.toFixed(1)}% of ${Y.maxTime}ms budget)`:`[Performance Budget Exceeded] "${Q}" took ${J.toFixed(2)}ms (exceeded ${Y.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Y.action){case"log":console.log(W);break;case"warn":console.warn(W);break;case"error":console.error(W);break;case"throw":if(q)throw Error(W);else console.warn(W);break}}recordTime(Q,J){let Y=this.metrics.get(Q);if(Y)Y.count++,Y.totalTime+=J,Y.maxTime=Math.max(Y.maxTime,J),Y.minTime=Math.min(Y.minTime,J);else this.metrics.set(Q,{count:1,totalTime:J,maxTime:J,minTime:J})}getStats(Q){if(Q){let Y=this.metrics.get(Q);if(!Y)return{};let $=this.budgets.get(Q);return{count:Y.count,avgTime:Y.totalTime/Y.count,totalTime:Y.totalTime,maxTime:Y.maxTime,minTime:Y.minTime,budget:$?.maxTime,budgetUtilization:$?Y.totalTime/Y.count/$.maxTime*100:void 0}}let J={};for(let[Y,$]of this.metrics.entries()){let Z=this.budgets.get(Y);J[Y]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:Z?.maxTime,budgetUtilization:Z?$.totalTime/$.count/Z.maxTime*100:void 0}}return J}getViolations(Q){if(Q)return this.violations.filter((J)=>J.label===Q);return[...this.violations]}getViolationStats(){let Q={},J=0,Y=0;for(let $ of this.violations)if(Q[$.label]=(Q[$.label]||0)+1,$.isWarning)J++;else Y++;return{total:this.violations.length,byLabel:Q,warnings:J,errors:Y}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var h=null;function zJ(){if(!h)h=new UJ;return h}var gJ=new Proxy({},{get(Q,J){return zJ()[J]}});var WJ=[];function FJ(Q){let J=new c(Q);return WJ.push(J),J}function hJ(){for(let Q of WJ)Q.clear()}function i(Q,...J){return`${J.map((Y)=>String(Y??"")).join("\x00")}\x00${Q.length}\x00${Bun.hash(Q)}`}function cJ(Q){let J=[];for(let Y of new Set(Q))try{J.push({path:Y,mtimeMs:OJ.statSync(Y).mtimeMs})}catch{}return J}function iJ(Q){for(let J of Q)try{if(OJ.statSync(J.path).mtimeMs!==J.mtimeMs)return!1}catch{return!1}return!0}var L=null,n=!1,I=null,M="",K=!1,IJ=256,z=new Map,j=new Map,H=null,w=null;function k(Q){return Bun.hash(Q).toString(16).padStart(16,"0").slice(0,16)}function l(Q,J){if(z.has(Q))z.delete(Q);else if(z.size>=IJ)z.delete(z.keys().next().value);z.set(Q,J)}function HJ(Q){let J=k(Q);if(j.has(J))j.delete(J);else if(j.size>=IJ)j.delete(j.keys().next().value);return j.set(J,Q),J}function eJ(Q){let J=j.get(Q);if(J===void 0)return;return j.delete(Q),j.set(Q,J),J}async function TJ(Q){if(!H)return null;try{let J=Bun.file(O.join(H,`cw-${k(Q)}.css`));if(!await J.exists())return null;return await J.text()}catch{return null}}async function BJ(Q,J){if(!H)return;try{if(!fs.existsSync(H))fs.mkdirSync(H,{recursive:!0});await Bun.write(O.join(H,`cw-${k(Q)}.css`),J)}catch{}}async function GJ(Q){try{let J=await import(Q);if(J&&J.CSSGenerator)return{CSSGenerator:J.CSSGenerator,config:J.config,build:J.build,defaultConfig:J.defaultConfig,extractClasses:J.extractClasses}}catch{}return null}function KJ(){let Q=[],J=process.cwd();while(J!==O.dirname(J))Q.push(O.join(J,"node_modules","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"node_modules","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"pantry","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"node_modules","@stacksjs","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@stacksjs","crosswind","dist","index.js")),J=O.dirname(J);return Q}function RJ(){let Q=[],J=process.env.HOME||process.env.USERPROFILE||"";if(J){let Y=[O.join(J,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),O.join(J,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];Q.push(...Y)}return Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),Q}async function XJ(){if(n)return L;n=!0;try{let Q=async(Z)=>{for(let q of Z){if(!await Bun.file(q).exists())continue;let U=await GJ(q);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded from ${O.dirname(O.dirname(q))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Z=O.resolve(process.env.CROSSWIND_SRC),q=await Q([Z]);if(!q)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Z}`);return L=q,L}let J=await Q(KJ());if(J)return L=J,L;let Y=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Z of Y){let q=await GJ(Z);if(q){if(L=q,!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded`);return L}}let $=await Q(RJ());if($)return L=$,L;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${F.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${F.reset}`),console.warn(`${F.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${F.reset}`),null}}function JQ(){x.clear(),z.clear(),j.clear()}function QQ(){x.clear(),L=null,n=!1,I=null,M="",z.clear(),j.clear(),w=null}async function VJ(Q){try{if(!AJ({name:"crosswind",cwd:Q}))return null;let{loadConfigWithResult:J}=await import("bunfig"),Y=await J({name:"crosswind",cwd:Q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Y?.path||!Y.config||Object.keys(Y.config).length===0)return null;let $=O.relative(Q,Y.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} Loaded config from ${$||Y.path}`);return Y.config}catch(J){if(J instanceof Error&&J.name==="ConfigNotFoundError")return null;return console.warn(`${F.yellow}[Crosswind]${F.reset} Failed to load crosswind config:`,J instanceof Error?J.message:J),null}}async function PJ(Q){let J=null;try{let{loadStxConfig:Y}=await import("./chunk-4r06061f.js"),$=await Y(Q);if($.css)if(typeof $.css==="string"){let Z=O.isAbsolute($.css)?$.css:O.resolve(Q,$.css);if(await Bun.file(Z).exists()){let q=await import(Z);J=q.default||q,console.log(`${F.green}[Crosswind]${F.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(J={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let Z=O.isAbsolute($.css.config)?$.css.config:O.resolve(Q,$.css.config);if(await Bun.file(Z).exists()){let q=await import(Z);J={...q.default||q,...J}}}console.log(`${F.green}[Crosswind]${F.reset} Using inline CSS config from stx.config.ts`)}}catch{}return J||await VJ(Q)}function EJ(Q){try{let J=new WeakSet;return k(JSON.stringify(Q??{},(Y,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(J.has($))return"[circular]";J.add($)}return $})??"")}catch{return"unhashable"}}async function DJ(Q){if(K)return M;K=!0;try{let J=await XJ();if(!J||!J.build)return K=!1,"";if(!I)I=await VJ(Q);if(!I)return K=!1,"";let Y=J.defaultConfig?.theme||{},$=I.theme||{},Z={...J.defaultConfig,...I,theme:{...Y,...$,extend:{...Y.extend||{},...$.extend||{}}}},q=performance.now(),U=await J.build(Z),W=performance.now()-q;if(M=U.css,console.log(`${F.cyan}[Crosswind]${F.reset} Built ${U.classes.size} classes in ${W.toFixed(1)}ms`),Z.output){let G=O.isAbsolute(Z.output)?Z.output:O.join(Q,Z.output),X=O.dirname(G);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(G,U.css)}return K=!1,U.css}catch(J){return console.error(`${F.red}[Crosswind]${F.reset} Build error:`,J),K=!1,M}}async function YQ(Q){I=null,await DJ(Q)}function $Q(){return M}function MJ(Q){let J=new Set,Y=/class\s*=\s*["']([^"']+)["']/gi,$=Y.exec(Q);while($!==null){for(let U of $[1].split(/\s+/))if(U.trim())J.add(U.trim());$=Y.exec(Q)}let Z=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,q=Z.exec(Q);while(q!==null){let U=q[1].match(/'([^']+)'/g);if(U){for(let W of U)for(let G of W.slice(1,-1).split(/\s+/))if(G.trim())J.add(G.trim())}q=Z.exec(Q)}return J}var x=FJ(64);async function wJ(Q,J){let Y=x.get(i(Q,J,w));if(Y!==void 0)return Y;let $=await SJ(Q,J);if($)x.set(i(Q,J,w),$);return $}async function SJ(Q,J){try{let Y=await XJ();if(!Y)return"";let $=typeof Y.extractClasses==="function"?Y.extractClasses(Q):MJ(Q);if($.size===0)return"";let Z=J?O.resolve(J):process.cwd();if(!H)H=jJ(Z,"cache");let q=[...$].sort().join(" "),U=`${w||"default"}::${q}`,W=z.get(U);if(W!==void 0)return l(U,W),W;let G=await TJ(U);if(G!==null)return l(U,G),G;if(!I)I=await PJ(Z),w=EJ(I);let X=Y.defaultConfig||Y.config,V=I||{},A=ZJ(X,V),{safelist:T,includePreflight:R,minify:b,tokenCSS:LJ}=A,o=A.config,P=new Y.CSSGenerator(o);for(let N of T)P.generate(N);for(let N of $)P.generate(N);let _=P.toCSS(R,b),r=o.shortcuts||V.shortcuts||{};for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean);for(let D of f)P.generate(D)}_=P.toCSS(R,b);let E=_.split(`
14
+ `),Z.set(X,V)}return V(...W)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:U,context:J.slice()});return U}clear(){this.pool.length=0,this.fnCache.clear()}}var pJ=new qJ;class UJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(Q){this.enabled=Q}isEnabled(){return this.enabled}setBudget(Q,J){this.budgets.set(Q,{warnThreshold:0.8,action:"warn",...J})}setBudgets(Q){for(let[J,Y]of Object.entries(Q))this.setBudget(J,Y)}removeBudget(Q){this.budgets.delete(Q)}getBudgets(){let Q={};for(let[J,Y]of this.budgets.entries())Q[J]=Y;return Q}onViolation(Q){this.violationHandlers.push(Q)}offViolation(Q){let J=this.violationHandlers.indexOf(Q);if(J!==-1)this.violationHandlers.splice(J,1)}time(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}async timeAsync(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=await J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}checkBudget(Q,J){let Y=this.budgets.get(Q);if(!Y)return;let $=J/Y.maxTime*100,Z=Y.warnThreshold!==void 0?J>=Y.maxTime*Y.warnThreshold&&J<Y.maxTime:!1,q=J>=Y.maxTime;if(!Z&&!q)return;let U={label:Q,actualTime:J,budgetTime:Y.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:Z};this.violations.push(U);while(this.violations.length>this.maxViolations)this.violations.shift();for(let G of this.violationHandlers)try{G(U)}catch{}let W=Z?`[Performance Warning] "${Q}" took ${J.toFixed(2)}ms (${$.toFixed(1)}% of ${Y.maxTime}ms budget)`:`[Performance Budget Exceeded] "${Q}" took ${J.toFixed(2)}ms (exceeded ${Y.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Y.action){case"log":console.log(W);break;case"warn":console.warn(W);break;case"error":console.error(W);break;case"throw":if(q)throw Error(W);else console.warn(W);break}}recordTime(Q,J){let Y=this.metrics.get(Q);if(Y)Y.count++,Y.totalTime+=J,Y.maxTime=Math.max(Y.maxTime,J),Y.minTime=Math.min(Y.minTime,J);else this.metrics.set(Q,{count:1,totalTime:J,maxTime:J,minTime:J})}getStats(Q){if(Q){let Y=this.metrics.get(Q);if(!Y)return{};let $=this.budgets.get(Q);return{count:Y.count,avgTime:Y.totalTime/Y.count,totalTime:Y.totalTime,maxTime:Y.maxTime,minTime:Y.minTime,budget:$?.maxTime,budgetUtilization:$?Y.totalTime/Y.count/$.maxTime*100:void 0}}let J={};for(let[Y,$]of this.metrics.entries()){let Z=this.budgets.get(Y);J[Y]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:Z?.maxTime,budgetUtilization:Z?$.totalTime/$.count/Z.maxTime*100:void 0}}return J}getViolations(Q){if(Q)return this.violations.filter((J)=>J.label===Q);return[...this.violations]}getViolationStats(){let Q={},J=0,Y=0;for(let $ of this.violations)if(Q[$.label]=(Q[$.label]||0)+1,$.isWarning)J++;else Y++;return{total:this.violations.length,byLabel:Q,warnings:J,errors:Y}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var h=null;function zJ(){if(!h)h=new UJ;return h}var gJ=new Proxy({},{get(Q,J){return zJ()[J]}});var WJ=[];function FJ(Q){let J=new c(Q);return WJ.push(J),J}function hJ(){for(let Q of WJ)Q.clear()}function i(Q,...J){return`${J.map((Y)=>String(Y??"")).join("\x00")}\x00${Q.length}\x00${Bun.hash(Q)}`}function cJ(Q){let J=[];for(let Y of new Set(Q))try{J.push({path:Y,mtimeMs:OJ.statSync(Y).mtimeMs})}catch{}return J}function iJ(Q){for(let J of Q)try{if(OJ.statSync(J.path).mtimeMs!==J.mtimeMs)return!1}catch{return!1}return!0}var L=null,n=!1,I=null,M="",K=!1,IJ=256,z=new Map,j=new Map,H=null,w=null;function k(Q){return Bun.hash(Q).toString(16).padStart(16,"0").slice(0,16)}function l(Q,J){if(z.has(Q))z.delete(Q);else if(z.size>=IJ)z.delete(z.keys().next().value);z.set(Q,J)}function HJ(Q){let J=k(Q);if(j.has(J))j.delete(J);else if(j.size>=IJ)j.delete(j.keys().next().value);return j.set(J,Q),J}function eJ(Q){let J=j.get(Q);if(J===void 0)return;return j.delete(Q),j.set(Q,J),J}async function TJ(Q){if(!H)return null;try{let J=Bun.file(O.join(H,`cw-${k(Q)}.css`));if(!await J.exists())return null;return await J.text()}catch{return null}}async function BJ(Q,J){if(!H)return;try{if(!fs.existsSync(H))fs.mkdirSync(H,{recursive:!0});await Bun.write(O.join(H,`cw-${k(Q)}.css`),J)}catch{}}async function GJ(Q){try{let J=await import(Q);if(J&&J.CSSGenerator)return{CSSGenerator:J.CSSGenerator,config:J.config,build:J.build,defaultConfig:J.defaultConfig,extractClasses:J.extractClasses}}catch{}return null}function KJ(){let Q=[],J=process.cwd();while(J!==O.dirname(J))Q.push(O.join(J,"node_modules","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"node_modules","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"pantry","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"node_modules","@stacksjs","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@stacksjs","crosswind","dist","index.js")),J=O.dirname(J);return Q}function RJ(){let Q=[],J=process.env.HOME||process.env.USERPROFILE||"";if(J){let Y=[O.join(J,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),O.join(J,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];Q.push(...Y)}return Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),Q}async function XJ(){if(n)return L;n=!0;try{let Q=async(Z)=>{for(let q of Z){if(!await Bun.file(q).exists())continue;let U=await GJ(q);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded from ${O.dirname(O.dirname(q))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Z=O.resolve(process.env.CROSSWIND_SRC),q=await Q([Z]);if(!q)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Z}`);return L=q,L}let J=await Q(KJ());if(J)return L=J,L;let Y=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Z of Y){let q=await GJ(Z);if(q){if(L=q,!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded`);return L}}let $=await Q(RJ());if($)return L=$,L;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${F.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${F.reset}`),console.warn(`${F.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${F.reset}`),null}}function JQ(){x.clear(),z.clear(),j.clear()}function QQ(){x.clear(),L=null,n=!1,I=null,M="",z.clear(),j.clear(),w=null}async function VJ(Q){try{if(!AJ({name:"crosswind",cwd:Q}))return null;let{loadConfigWithResult:J}=await import("bunfig"),Y=await J({name:"crosswind",cwd:Q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Y?.path||!Y.config||Object.keys(Y.config).length===0)return null;let $=O.relative(Q,Y.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} Loaded config from ${$||Y.path}`);return Y.config}catch(J){if(J instanceof Error&&J.name==="ConfigNotFoundError")return null;return console.warn(`${F.yellow}[Crosswind]${F.reset} Failed to load crosswind config:`,J instanceof Error?J.message:J),null}}async function PJ(Q){let J=null;try{let{loadStxConfig:Y}=await import("./chunk-8n0axwzb.js"),$=await Y(Q);if($.css)if(typeof $.css==="string"){let Z=O.isAbsolute($.css)?$.css:O.resolve(Q,$.css);if(await Bun.file(Z).exists()){let q=await import(Z);J=q.default||q,console.log(`${F.green}[Crosswind]${F.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(J={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let Z=O.isAbsolute($.css.config)?$.css.config:O.resolve(Q,$.css.config);if(await Bun.file(Z).exists()){let q=await import(Z);J={...q.default||q,...J}}}console.log(`${F.green}[Crosswind]${F.reset} Using inline CSS config from stx.config.ts`)}}catch{}return J||await VJ(Q)}function EJ(Q){try{let J=new WeakSet;return k(JSON.stringify(Q??{},(Y,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(J.has($))return"[circular]";J.add($)}return $})??"")}catch{return"unhashable"}}async function DJ(Q){if(K)return M;K=!0;try{let J=await XJ();if(!J||!J.build)return K=!1,"";if(!I)I=await VJ(Q);if(!I)return K=!1,"";let Y=J.defaultConfig?.theme||{},$=I.theme||{},Z={...J.defaultConfig,...I,theme:{...Y,...$,extend:{...Y.extend||{},...$.extend||{}}}},q=performance.now(),U=await J.build(Z),W=performance.now()-q;if(M=U.css,console.log(`${F.cyan}[Crosswind]${F.reset} Built ${U.classes.size} classes in ${W.toFixed(1)}ms`),Z.output){let G=O.isAbsolute(Z.output)?Z.output:O.join(Q,Z.output),X=O.dirname(G);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(G,U.css)}return K=!1,U.css}catch(J){return console.error(`${F.red}[Crosswind]${F.reset} Build error:`,J),K=!1,M}}async function YQ(Q){I=null,await DJ(Q)}function $Q(){return M}function MJ(Q){let J=new Set,Y=/class\s*=\s*["']([^"']+)["']/gi,$=Y.exec(Q);while($!==null){for(let U of $[1].split(/\s+/))if(U.trim())J.add(U.trim());$=Y.exec(Q)}let Z=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,q=Z.exec(Q);while(q!==null){let U=q[1].match(/'([^']+)'/g);if(U){for(let W of U)for(let G of W.slice(1,-1).split(/\s+/))if(G.trim())J.add(G.trim())}q=Z.exec(Q)}return J}var x=FJ(64);async function wJ(Q,J){let Y=x.get(i(Q,J,w));if(Y!==void 0)return Y;let $=await SJ(Q,J);if($)x.set(i(Q,J,w),$);return $}async function SJ(Q,J){try{let Y=await XJ();if(!Y)return"";let $=typeof Y.extractClasses==="function"?Y.extractClasses(Q):MJ(Q);if($.size===0)return"";let Z=J?O.resolve(J):process.cwd();if(!H)H=jJ(Z,"cache");let q=[...$].sort().join(" "),U=`${w||"default"}::${q}`,W=z.get(U);if(W!==void 0)return l(U,W),W;let G=await TJ(U);if(G!==null)return l(U,G),G;if(!I)I=await PJ(Z),w=EJ(I);let X=Y.defaultConfig||Y.config,V=I||{},A=ZJ(X,V),{safelist:T,includePreflight:R,minify:b,tokenCSS:LJ}=A,o=A.config,P=new Y.CSSGenerator(o);for(let N of T)P.generate(N);for(let N of $)P.generate(N);let _=P.toCSS(R,b),r=o.shortcuts||V.shortcuts||{};for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean);for(let D of f)P.generate(D)}_=P.toCSS(R,b);let E=_.split(`
15
15
  `);for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean),D=[],C=[];for(let p of f){let a=p.startsWith("dark:"),s=`.${(a?p.slice(5):p).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let S=0;S<E.length;S++){let t=E[S].trim();if(t===`${s} {`||t.startsWith(`${s} {`)){let v=S,e="";while(v<E.length){if(e+=E[v],E[v].includes("}"))break;v++}let g=e.match(/\{([^}]+)\}/);if(g)if(a)C.push(g[1].trim());else D.push(g[1].trim());break}}}if(D.length)_+=`
16
16
  .${N} { ${D.join(" ")} }`;if(C.length)_+=`
17
17
  @media (prefers-color-scheme: dark) { .dark .${N} { ${C.join(" ")} } }`}return _=LJ+_,l(U,_),BJ(U,_),_}catch(Y){return console.warn("Failed to generate Crosswind CSS:",Y),""}}async function ZQ(Q,J,Y=!1){let $=await wJ(Q,J);if(!$)return Q;let Z=Y?`<link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.${HJ($)}.css">`:`<style data-crosswind="generated">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-kzj42dav.js";import"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
2
+ import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-9tg9p0q0.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Kq as H,ar as x,fs as g,sm as O,yp as R}from"./chunk-ntfmdx5n.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
2
+ import{Kq as H,ar as x,fs as g,sm as O,zp as R}from"./chunk-j8681w5d.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
3
3
  <template data-suspense-fallback>Loading...</template>
4
4
  </div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
5
5
  <script>
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{pf as a}from"./chunk-mw1szffx.js";import"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as startInteractive};
2
+ import{pf as a}from"./chunk-07z7y2a2.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as startInteractive};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$i as v,_i as _,aj as U}from"./chunk-9n0gvfrg.js";import{Ol as C,Pl as N,Rl as E,Sq as T,hs as S}from"./chunk-ntfmdx5n.js";import{Ot as y}from"./chunk-yvpagchj.js";import L from"path";var j=new Map,M=new Map,b=["composables","functions"];function K(V){let J=L.basename(V,".ts");return J==="index"||J==="types"||V.endsWith(".d.ts")}async function F(V){if(V)return L.resolve(V);let J=`<default>:${process.cwd()}`,Q=M.get(J);if(Q!==void 0)return Q;let z=await h();if(z!==null)M.set(J,z);return z}async function h(){let V=await S(),J=V.root||process.cwd(),Q=V.composablesDir;if(Q)return L.resolve(J,Q);for(let z of b){let Z=L.resolve(J,z);try{let W=new Bun.Glob("**/*.ts");for await(let Y of W.scan({cwd:Z,absolute:!0}))if(!K(Y))return Z}catch{}}return null}async function s(V){let J=await F(V);if(!J)return[];let Q=[];try{let W=new Bun.Glob("**/*.ts");for await(let Y of W.scan({cwd:J,absolute:!0}))if(!K(Y))Q.push(Y)}catch{return[]}Q.sort();let z=T({loader:"ts",target:"browser",define:E()}),Z=[];for(let W of Q)try{let Y=await Bun.file(W).text(),G=z.scan(Y).exports.filter(($)=>$!=="default");if(G.length>0)Z.push({file:W,names:G})}catch{}return Z}function u(V,J){return new RegExp(`\\b${J.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(V)}function f(V,J,Q){let z=new Map;for(let{file:G,names:$}of V)for(let O of $)if(!z.has(O))z.set(O,G);let Z=(G)=>{let $=[];for(let[O,P]of z)if(u(G,O))$.push(P);return $},W=new Set,Y=Z(Q);while(Y.length>0){let G=[];for(let $ of Y){if(W.has($))continue;W.add($);for(let O of Z(J.get($)??""))if(!W.has(O))G.push(O)}Y=G}return W}async function i(V,J){let Q=await F(V);if(!Q)return null;let z=[];try{let q=new Bun.Glob("**/*.ts");for await(let H of q.scan({cwd:Q,absolute:!0})){if(K(H))continue;z.push(H)}}catch{return U(j,Q,"",""),null}let Z=_(z);if(z.length===0)return U(j,Q,Z,""),null;z.sort();let W=T({loader:"ts",target:"browser",define:E()}),Y=new Map,G=[];for(let q of z)try{let H=await Bun.file(q).text();Y.set(q,H);let w=W.scan(H).exports.filter((X)=>X!=="default");if(w.length>0)G.push({file:q,names:w})}catch{Y.set(q,"")}let $=J===void 0?new Set(z):f(G,Y,J);if($.size===0)return null;let O=z.filter((q)=>$.has(q)),P=`${Q}\x00${O.join("\x00")}`,B=v(j,P,Z);if(B!==void 0)return B||null;let A=[],R=new Set,I=new Set;for(let q of O)try{let H=Y.get(q)??await Bun.file(q).text(),w=L.basename(q,".ts");for(let X of H.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])I.add(X[1]);try{for(let X of W.scan(H).exports)if(X!=="default")R.add(X)}catch{}H=C(H),H=N(H),H=H.replace(/^export\s+(default\s+)?/gm,""),H=W.transformSync(H),A.push(`// Composable: ${w}
2
+ import{$i as v,_i as _,aj as U}from"./chunk-9n0gvfrg.js";import{Ol as C,Pl as N,Rl as E,Sq as T,hs as S}from"./chunk-j8681w5d.js";import{Ot as y}from"./chunk-yvpagchj.js";import L from"path";var j=new Map,M=new Map,b=["composables","functions"];function K(V){let J=L.basename(V,".ts");return J==="index"||J==="types"||V.endsWith(".d.ts")}async function F(V){if(V)return L.resolve(V);let J=`<default>:${process.cwd()}`,Q=M.get(J);if(Q!==void 0)return Q;let z=await h();if(z!==null)M.set(J,z);return z}async function h(){let V=await S(),J=V.root||process.cwd(),Q=V.composablesDir;if(Q)return L.resolve(J,Q);for(let z of b){let Z=L.resolve(J,z);try{let W=new Bun.Glob("**/*.ts");for await(let Y of W.scan({cwd:Z,absolute:!0}))if(!K(Y))return Z}catch{}}return null}async function s(V){let J=await F(V);if(!J)return[];let Q=[];try{let W=new Bun.Glob("**/*.ts");for await(let Y of W.scan({cwd:J,absolute:!0}))if(!K(Y))Q.push(Y)}catch{return[]}Q.sort();let z=T({loader:"ts",target:"browser",define:E()}),Z=[];for(let W of Q)try{let Y=await Bun.file(W).text(),G=z.scan(Y).exports.filter(($)=>$!=="default");if(G.length>0)Z.push({file:W,names:G})}catch{}return Z}function u(V,J){return new RegExp(`\\b${J.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(V)}function f(V,J,Q){let z=new Map;for(let{file:G,names:$}of V)for(let O of $)if(!z.has(O))z.set(O,G);let Z=(G)=>{let $=[];for(let[O,P]of z)if(u(G,O))$.push(P);return $},W=new Set,Y=Z(Q);while(Y.length>0){let G=[];for(let $ of Y){if(W.has($))continue;W.add($);for(let O of Z(J.get($)??""))if(!W.has(O))G.push(O)}Y=G}return W}async function i(V,J){let Q=await F(V);if(!Q)return null;let z=[];try{let q=new Bun.Glob("**/*.ts");for await(let H of q.scan({cwd:Q,absolute:!0})){if(K(H))continue;z.push(H)}}catch{return U(j,Q,"",""),null}let Z=_(z);if(z.length===0)return U(j,Q,Z,""),null;z.sort();let W=T({loader:"ts",target:"browser",define:E()}),Y=new Map,G=[];for(let q of z)try{let H=await Bun.file(q).text();Y.set(q,H);let w=W.scan(H).exports.filter((X)=>X!=="default");if(w.length>0)G.push({file:q,names:w})}catch{Y.set(q,"")}let $=J===void 0?new Set(z):f(G,Y,J);if($.size===0)return null;let O=z.filter((q)=>$.has(q)),P=`${Q}\x00${O.join("\x00")}`,B=v(j,P,Z);if(B!==void 0)return B||null;let A=[],R=new Set,I=new Set;for(let q of O)try{let H=Y.get(q)??await Bun.file(q).text(),w=L.basename(q,".ts");for(let X of H.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])I.add(X[1]);try{for(let X of W.scan(H).exports)if(X!=="default")R.add(X)}catch{}H=C(H),H=N(H),H=H.replace(/^export\s+(default\s+)?/gm,""),H=W.transformSync(H),A.push(`// Composable: ${w}
3
3
  ${H.trim()}`)}catch(H){console.warn(`[stx] Failed to load composable ${q}:`,H)}if(A.length===0||R.size===0)return U(j,P,Z,""),null;let D=[...R].map((q)=>` try { __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
4
4
  `),g=JSON.stringify([...R]),k=A.join(`
5
5
 
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
2
+ import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Tg as a}from"./chunk-wyhp2hnm.js";import"./chunk-kerjvqz9.js";import"./chunk-v2rx1rey.js";import"./chunk-ph0q97r5.js";import"./chunk-w95sp0k9.js";import"./chunk-58f0mthg.js";import"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as buildForProduction};
2
+ import{Tg as a}from"./chunk-30143e31.js";import"./chunk-zvs473zc.js";import"./chunk-p0cneyek.js";import"./chunk-ph0q97r5.js";import"./chunk-w95sp0k9.js";import"./chunk-58f0mthg.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as buildForProduction};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{cp as b,dm as a,dp as c}from"./chunk-ntfmdx5n.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-8ee6xtdz.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
2
+ import{dm as a,dp as b,ep as c}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};