@stacksjs/stx 0.2.311 → 0.2.313

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 (61) hide show
  1. package/dist/{chunk-jb6j6122.js → chunk-03kxmbb3.js} +1 -1
  2. package/dist/{chunk-mykdtj36.js → chunk-1233k4y4.js} +1 -1
  3. package/dist/{chunk-enzg869a.js → chunk-29vx193k.js} +1 -1
  4. package/dist/{chunk-cv5tytw6.js → chunk-2vxmgj67.js} +1 -1
  5. package/dist/{chunk-v0xgmthk.js → chunk-34yzcb00.js} +2 -2
  6. package/dist/{chunk-xkz3h3x7.js → chunk-3h5z1eby.js} +1 -1
  7. package/dist/chunk-3j7y8yen.js +2 -0
  8. package/dist/{chunk-t0dn85n4.js → chunk-4mftgf8s.js} +1 -1
  9. package/dist/{chunk-e2e5jcs7.js → chunk-4xgsb361.js} +1 -1
  10. package/dist/{chunk-nnftws3h.js → chunk-54a8kxqj.js} +1 -1
  11. package/dist/{chunk-ecxqf48z.js → chunk-5n5ejg0x.js} +1 -1
  12. package/dist/{chunk-bvwdqy95.js → chunk-5pm4w6ef.js} +1 -1
  13. package/dist/{chunk-rjdkq7m0.js → chunk-6aqsmree.js} +1 -1
  14. package/dist/{chunk-ret70p2w.js → chunk-81jx0c3x.js} +1 -1
  15. package/dist/{chunk-3fmhmjn8.js → chunk-87qbq45v.js} +1 -1
  16. package/dist/{chunk-fh9hezm1.js → chunk-8bnpdtjh.js} +1 -1
  17. package/dist/{chunk-jtnds1cn.js → chunk-92g4qya5.js} +8 -8
  18. package/dist/{chunk-j116kxpt.js → chunk-97bbr767.js} +1 -1
  19. package/dist/{chunk-86n4pb90.js → chunk-9ewg41dm.js} +1 -1
  20. package/dist/{chunk-1jjq691b.js → chunk-9wtpnaps.js} +2 -2
  21. package/dist/{chunk-s914ftr4.js → chunk-9xfx5q8b.js} +1 -1
  22. package/dist/{chunk-6rzvmr1r.js → chunk-avqacmvp.js} +1 -1
  23. package/dist/{chunk-py39p4eq.js → chunk-awwkfzyy.js} +1 -1
  24. package/dist/{chunk-m9rfkx0e.js → chunk-bcx36g1n.js} +1 -1
  25. package/dist/{chunk-xf8yngv7.js → chunk-c0edxvn0.js} +2 -2
  26. package/dist/{chunk-8bzys3wq.js → chunk-cdayqb5c.js} +1 -1
  27. package/dist/{chunk-e71dfj7e.js → chunk-cjdjhtc9.js} +1 -1
  28. package/dist/{chunk-yeqa5wxm.js → chunk-df1mx1s1.js} +1 -1
  29. package/dist/{chunk-ewvnfjjy.js → chunk-e7dse3cf.js} +1 -1
  30. package/dist/{chunk-9rr42vhz.js → chunk-hnb6kzpe.js} +1 -1
  31. package/dist/{chunk-1r1zryb8.js → chunk-k8p54eqr.js} +1 -1
  32. package/dist/{chunk-6f96hrzr.js → chunk-kvarrr2y.js} +1 -1
  33. package/dist/{chunk-an5g7bse.js → chunk-mbkjkg12.js} +1 -1
  34. package/dist/{chunk-yj4hxfbg.js → chunk-mq9f910z.js} +1 -1
  35. package/dist/{chunk-mv2v975p.js → chunk-n4g9p5td.js} +1 -1
  36. package/dist/{chunk-5vbbkvrm.js → chunk-px0hqf1q.js} +1 -1
  37. package/dist/{chunk-h5x4924h.js → chunk-s5wevejz.js} +1 -1
  38. package/dist/{chunk-zn0vav45.js → chunk-se9jfhzq.js} +1 -1
  39. package/dist/{chunk-ae8z01wm.js → chunk-sr1xxzye.js} +1 -1
  40. package/dist/{chunk-wk7ypmcq.js → chunk-tph7b269.js} +33 -7
  41. package/dist/{chunk-8b7sxbfd.js → chunk-tt0rww6h.js} +1 -1
  42. package/dist/{chunk-8s2av1rm.js → chunk-w62chvwb.js} +1 -1
  43. package/dist/{chunk-v98h3x05.js → chunk-wcftvmk4.js} +1 -1
  44. package/dist/{chunk-wwc3d7fw.js → chunk-wrngf5nq.js} +1 -1
  45. package/dist/{chunk-27bqmj3d.js → chunk-ws7d1krp.js} +1 -1
  46. package/dist/{chunk-m7tp5wzv.js → chunk-xdnsxn2f.js} +1 -1
  47. package/dist/{chunk-91paqn7h.js → chunk-xtn6zwr8.js} +1 -1
  48. package/dist/{chunk-zpkmfpe3.js → chunk-y1b6y022.js} +1 -1
  49. package/dist/{chunk-7fkm76ny.js → chunk-ycvxjxhz.js} +1 -1
  50. package/dist/{chunk-53zp6y74.js → chunk-yyy5mk7b.js} +1 -1
  51. package/dist/{chunk-hyab7cw0.js → chunk-zqd4nrqt.js} +17 -17
  52. package/dist/cli.js +8 -8
  53. package/dist/craft-entry.js +1 -1
  54. package/dist/craft.js +1 -1
  55. package/dist/pwa.js +1 -1
  56. package/dist/signals.js +33 -7
  57. package/dist/ssg.js +2 -2
  58. package/dist/stx.d.ts +10 -1
  59. package/package.json +5 -5
  60. package/stx.d.ts +10 -1
  61. package/dist/chunk-gyzp3cr6.js +0 -2
@@ -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{Qo as V}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import{ew as F}from"./chunk-jryjwara.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{Qo as V}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import{ew as F}from"./chunk-jryjwara.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-zn0vav45.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-zn0vav45.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-se9jfhzq.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-se9jfhzq.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,2 +1,2 @@
1
1
  // @bun
2
- import{$t as k,Rt as a,St as b,Tt as c,Ut as d,Vt as e,Wt as f,Xt as g,Yt as h,Zt as i,_t as j,au as l}from"./chunk-m9rfkx0e.js";import"./chunk-4ee1aaet.js";import"./chunk-jryjwara.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
2
+ import{$t as k,Rt as a,St as b,Tt as c,Ut as d,Vt as e,Wt as f,Xt as g,Yt as h,Zt as i,_t as j,au as l}from"./chunk-bcx36g1n.js";import"./chunk-4ee1aaet.js";import"./chunk-jryjwara.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{tk as a,uk as b,vk as c,wk as d}from"./chunk-nnftws3h.js";import"./chunk-1jjq691b.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
2
+ import{tk as a,uk as b,vk as c,wk as d}from"./chunk-54a8kxqj.js";import"./chunk-9wtpnaps.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{tu as H,wu as F}from"./chunk-18p8dqya.js";import{ew as I}from"./chunk-jryjwara.js";import J from"fs";import z from"path";async function N(w,A,j){if(w.__stx_runtime_config)return;let b=H();if(b||j){w.__stx_runtime_config=b??F(j);return}let q=z.dirname(z.resolve(A));while(!0){if(["stx.config.ts","stx.config.js",".config/stx.config.ts",".config/stx.config.js"].some((D)=>J.existsSync(z.join(q,D)))){let{loadStxConfig:D}=await import("./chunk-ae8z01wm.js"),G=await D(q);if(G.runtimeConfig)w.__stx_runtime_config=F(G.runtimeConfig);return}let B=z.dirname(q);if(B===q)return;q=B}}async function O(w,A){function j(b){if(b===null)return"null";if(Array.isArray(b))return`Array<${b.length?[...new Set(b.map(j))].join(" | "):"unknown"}>`;if(typeof b==="object")return`{ ${Object.entries(b).map(([q,B])=>`readonly ${JSON.stringify(q)}: ${j(B)}`).join("; ")} }`;return typeof b}await Bun.write(z.join(w,".stx/runtime-config.d.ts"),`import '@stacksjs/stx/runtime-config'
2
+ import{tu as H,wu as F}from"./chunk-18p8dqya.js";import{ew as I}from"./chunk-jryjwara.js";import J from"fs";import z from"path";async function N(w,A,j){if(w.__stx_runtime_config)return;let b=H();if(b||j){w.__stx_runtime_config=b??F(j);return}let q=z.dirname(z.resolve(A));while(!0){if(["stx.config.ts","stx.config.js",".config/stx.config.ts",".config/stx.config.js"].some((D)=>J.existsSync(z.join(q,D)))){let{loadStxConfig:D}=await import("./chunk-sr1xxzye.js"),G=await D(q);if(G.runtimeConfig)w.__stx_runtime_config=F(G.runtimeConfig);return}let B=z.dirname(q);if(B===q)return;q=B}}async function O(w,A){function j(b){if(b===null)return"null";if(Array.isArray(b))return`Array<${b.length?[...new Set(b.map(j))].join(" | "):"unknown"}>`;if(typeof b==="object")return`{ ${Object.entries(b).map(([q,B])=>`readonly ${JSON.stringify(q)}: ${j(B)}`).join("; ")} }`;return typeof b}await Bun.write(z.join(w,".stx/runtime-config.d.ts"),`import '@stacksjs/stx/runtime-config'
3
3
  declare module '@stacksjs/stx/runtime-config' { interface PublicRuntimeConfig ${j(A.public??{})} }
4
4
  `),await Bun.write(z.join(w,".stx/runtime-config-server.d.ts"),`import '@stacksjs/stx/runtime-config-server'
5
5
  declare module '@stacksjs/stx/runtime-config-server' { interface PrivateRuntimeConfig ${j(A.private??{})} }
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ri as a,Si as b,Ti as c}from"./chunk-m7tp5wzv.js";import"./chunk-xwxdwqn9.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
2
+ import{Ri as a,Si as b,Ti as c}from"./chunk-xdnsxn2f.js";import"./chunk-xwxdwqn9.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$p as X,Im as W}from"./chunk-hyab7cw0.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{$p as X,Im as W}from"./chunk-zqd4nrqt.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{em as c,hm as d,im as e,jm as f,km as g,lm as h,mm as i,nm as j,om as k,pm as l,qm as m}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import{it as a,jt as b}from"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
2
+ import{em as c,hm as d,im as e,jm as f,km as g,lm as h,mm as i,nm as j,om as k,pm as l,qm as m}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import{it as a,jt as b}from"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$i as e,Xi as a,Yi as b,Zi as c,_i as d,aj as f,bj as g,cj as h,dj as i,ej as j,fj as k,gj as l,hj as m,ij as n}from"./chunk-j116kxpt.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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{$i as e,Xi as a,Yi as b,Zi as c,_i as d,aj as f,bj as g,cj as h,dj as i,ej as j,fj as k,gj as l,hj as m,ij as n}from"./chunk-97bbr767.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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,2 +1,2 @@
1
1
  // @bun
2
- import{$j as h,Uj as a,Vj as b,Wj as c,Xj as d,Yj as e,Zj as f,_j as g,ak as i,bk as j,ck as k,dk as l}from"./chunk-t0dn85n4.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,l as hashFilePath,h as getServeClientAsset,f as getCachedSignalsRuntime,g as getCachedRouterScript,i as clearDevCaches,j as checkCache,k as cacheTemplate,e as __setSignalsGeneratorsForTest};
2
+ import{$j as h,Uj as a,Vj as b,Wj as c,Xj as d,Yj as e,Zj as f,_j as g,ak as i,bk as j,ck as k,dk as l}from"./chunk-4mftgf8s.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,l as hashFilePath,h as getServeClientAsset,f as getCachedSignalsRuntime,g as getCachedRouterScript,i as clearDevCaches,j as checkCache,k as cacheTemplate,e as __setSignalsGeneratorsForTest};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h}from"./chunk-e2e5jcs7.js";import{Xf as a,_f as b}from"./chunk-53zp6y74.js";import"./chunk-m7tp5wzv.js";import"./chunk-xwxdwqn9.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h}from"./chunk-4xgsb361.js";import{Xf as a,_f as b}from"./chunk-yyy5mk7b.js";import"./chunk-xdnsxn2f.js";import"./chunk-xwxdwqn9.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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{Wo as a,Xo as b}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{b as processLoops,a as parseLoopBinding};
2
+ import{Wo as a,Xo as b}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{b as processLoops,a as parseLoopBinding};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Aj as q,yj as o,zj as p}from"./chunk-wk7ypmcq.js";import{Gj as a,Hj as b,Ij as c,Jj as d,Kj as e,Lj as f,Mj as g,Nj as h,Oj as i,Pj as j,Qj as k,Rj as l,Sj as m,Tj as n}from"./chunk-t41aaehf.js";import"./chunk-ttny9g8k.js";import"./chunk-jryjwara.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
2
+ import{Aj as q,yj as o,zj as p}from"./chunk-tph7b269.js";import{Gj as a,Hj as b,Ij as c,Jj as d,Kj as e,Lj as f,Mj as g,Nj as h,Oj as i,Pj as j,Qj as k,Rj as l,Sj as m,Tj as n}from"./chunk-t41aaehf.js";import"./chunk-ttny9g8k.js";import"./chunk-jryjwara.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Vg as a,Wg as b,Xg as c,Yg as d,Zg as e,_g as f}from"./chunk-7fkm76ny.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
2
+ import{Vg as a,Wg as b,Xg as c,Yg as d,Zg as e,_g as f}from"./chunk-ycvxjxhz.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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{$p as e,Yp as b,Zp as c,_p as d,vo as a}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
2
+ import{$p as e,Yp as b,Zp as c,_p as d,vo as a}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ar as e,Br as f,wr as a,xr as b,yr as c,zr as d}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
2
+ import{Ar as e,Br as f,wr as a,xr as b,yr as c,zr as d}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
@@ -196,19 +196,44 @@ console.log('[stx] entering IIFE');
196
196
  return null;
197
197
  }
198
198
 
199
- function __stxApplyCsrf(url, opts) {
200
- if (!__stxCsrf) return;
199
+ // Whether this request should carry the token: unsafe, and same-origin.
200
+ function __stxWantsCsrf(url, opts) {
201
+ if (!__stxCsrf) return false;
201
202
  var method = String((opts && opts.method) || 'GET').toUpperCase();
202
- if (method === 'GET' || method === 'HEAD' || method === 'OPTIONS') return;
203
+ if (method === 'GET' || method === 'HEAD' || method === 'OPTIONS') return false;
203
204
  // A path is same-origin by definition; only an absolute URL needs its
204
205
  // origin compared, and one that cannot be parsed is not trusted.
205
206
  var target = String(url);
206
207
  if (/^[a-z][a-z0-9+.-]*:/i.test(target) || target.slice(0, 2) === '//') {
207
- if (typeof location === 'undefined') return;
208
+ if (typeof location === 'undefined') return false;
208
209
  try {
209
- if (new URL(target).origin !== location.origin) return;
210
- } catch (e) { return; }
210
+ if (new URL(target).origin !== location.origin) return false;
211
+ } catch (e) { return false; }
212
+ }
213
+ return true;
214
+ }
215
+
216
+ // Fetch the cookie before the first unsafe request, when the page did not
217
+ // bring one. A page served from a CDN cache cannot: the edge strips
218
+ // Set-Cookie from a cached response, or it would hand one visitor's token to
219
+ // everyone. So the only pages that could post a form were the ones nobody
220
+ // cached. \`csrf.prime\` names a same-origin GET that sets the cookie (any
221
+ // safe Stacks route does); one request, shared by concurrent callers, and
222
+ // only when the cookie is missing.
223
+ var __stxCsrfPriming = null;
224
+ async function __stxPrimeCsrf(url, opts) {
225
+ if (!__stxCsrf || !__stxCsrf.prime || !__stxWantsCsrf(url, opts)) return;
226
+ if (__stxCookie(__stxCsrf.cookie)) return;
227
+ if (!__stxCsrfPriming) {
228
+ __stxCsrfPriming = fetch(__stxCsrf.prime, { credentials: 'same-origin', headers: { Accept: 'application/json' } })
229
+ .then(function () {}, function () {})
230
+ .then(function () { __stxCsrfPriming = null; });
211
231
  }
232
+ await __stxCsrfPriming;
233
+ }
234
+
235
+ function __stxApplyCsrf(url, opts) {
236
+ if (!__stxWantsCsrf(url, opts)) return;
212
237
  var token = __stxCookie(__stxCsrf.cookie);
213
238
  if (!token) return;
214
239
  var headers = __stxHeaders(opts.headers);
@@ -229,7 +254,7 @@ console.log('[stx] entering IIFE');
229
254
  if (Object.prototype.hasOwnProperty.call(cfg, 'csrf')) {
230
255
  __stxCsrf = cfg.csrf === false || cfg.csrf === null
231
256
  ? null
232
- : { cookie: (cfg.csrf && cfg.csrf.cookie) || 'X-CSRF-Token', header: (cfg.csrf && (cfg.csrf.header || cfg.csrf.cookie)) || 'X-CSRF-Token' };
257
+ : { cookie: (cfg.csrf && cfg.csrf.cookie) || 'X-CSRF-Token', header: (cfg.csrf && (cfg.csrf.header || cfg.csrf.cookie)) || 'X-CSRF-Token', prime: (cfg.csrf && typeof cfg.csrf.prime === 'string' && cfg.csrf.prime) || null };
233
258
  }
234
259
  // Replace rather than stack: a module re-evaluated by hot reload or by a
235
260
  // SPA script re-run must not end up with the same interceptor installed
@@ -257,6 +282,7 @@ console.log('[stx] entering IIFE');
257
282
  var t0 = __stxDevtoolsNow();
258
283
  opts = opts || {};
259
284
  // Before the hooks, so an onRequest hook sees (and may override) it.
285
+ await __stxPrimeCsrf(url, opts);
260
286
  __stxApplyCsrf(url, opts);
261
287
  if (__stxFetchHooks.onRequest) {
262
288
  // Normalised first so a hook can write ctx.options.headers.Authorization
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  import{ew as H}from"./chunk-jryjwara.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...v){let w=new Set;for(let q of v){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{w.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...w].sort()}async function T(v,w={}){if(v.length===0)return null;let q=process.cwd(),z=[],J=[];v.forEach((j,X)=>{let Z=j.startsWith("npm:")?j.slice(4):P.resolve(q,j),N=`__stxRegistered${X}`,O=JSON.stringify(j);z.push(`import * as ${N} from ${JSON.stringify(Z)};`),J.push(`if (!globalThis.__stxModules[${O}]) globalThis.__stxModules[${O}] = ${N};`)});let L=[...z,"globalThis.__stxModules = globalThis.__stxModules || {};",...J].join(`
3
- `),B;try{let{bundleClientScript:j}=await import("./chunk-xkz3h3x7.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-1r1zryb8.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-9aw5d4rr.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
3
+ `),B;try{let{bundleClientScript:j}=await import("./chunk-3h5z1eby.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-k8p54eqr.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-9aw5d4rr.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
4
4
  `)}export{G as registeredModuleIdsIn,T as buildModuleRegistryScript};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as Tl,$a as Xn,$b as gp,$c as gq,$d as gr,A as Dk,Aa as gn,Ab as Bo,Ac as Hp,Ad as Hq,Ae as Nr,B as Ek,Ba as hn,Bb as Co,Bc as Ip,Bd as Iq,Be as Or,C as Fk,Ca as vn,Cb as Do,Cc as Jp,Cd as Jq,Ce as Pr,D as Gk,Da as wn,Db as Eo,Dc as Kp,Dd as Kq,De as Qr,E as wl,Ea as xn,Eb as Fo,Ec as Lp,Ed as Lq,Ee as Rr,F as xl,Fa as yn,Fb as Go,Fc as Mp,Fd as Mq,Fe as Sr,G as yl,Ga as zn,Gb as Ho,Gc as Np,Gd as Nq,Ge as Tr,H as zl,Ha as An,Hb as Io,Hc as Op,Hd as Oq,He as Ur,I as Al,Ia as En,Ib as Jo,Ic as Pp,Id as Pq,Ie as Vr,J as Bl,Ja as Fn,Jb as Ko,Jc as Qp,Jd as Qq,Je as Wr,K as Cl,Ka as Gn,Kb as Lo,Kc as Rp,Kd as Rq,Ke as Xr,L as Dl,La as Hn,Lb as Mo,Lc as Sp,Ld as Sq,M as El,Ma as In,Mb as No,Mc as Tp,Md as Tq,N as Fl,Na as Jn,Nb as Uo,Nc as Up,Nd as Uq,O as Gl,Oa as Kn,Ob as Vo,Oc as Vp,Od as Vq,P as Hl,Pa as Ln,Pb as Wo,Pc as Wp,Pd as Wq,Q as Il,Qa as Mn,Qb as Xo,Qc as Xp,Qd as Xq,R as Jl,Ra as Nn,Rb as Yo,Rc as Yp,Rd as Yq,S as Kl,Sa as On,Sb as Zo,Sc as Zp,Sd as Zq,T as Ll,Ta as Pn,Tb as _o,Tc as _p,Td as _q,U as Ml,Ua as Qn,Ub as $o,Uc as $p,Ud as $q,V as Nl,Va as Rn,Vb as ap,Vc as aq,Vd as ar,W as Ol,Wa as Sn,Wb as bp,Wc as bq,Wd as br,X as Pl,Xa as Tn,Xb as cp,Xc as cq,Xd as cr,Y as Ql,Ya as Un,Yb as dp,Yc as dq,Yd as dr,Z as Rl,Za as Vn,Zb as ep,Zc as eq,Zd as er,_ as Sl,_a as Wn,_b as fp,_c as fq,_d as fr,aa as Ul,ab as Yn,ac as hp,ad as hq,ae as hr,ba as Vl,bb as Zn,bc as ip,bd as iq,be as or,ca as Wl,cb as _n,cc as jp,cd as jq,ce as pr,da as Xl,db as $n,dc as kp,dd as kq,de as qr,ea as Yl,eb as ao,ec as lp,ed as lq,ee as rr,fa as Zl,fb as bo,fc as mp,fd as mq,fe as sr,ga as _l,gb as co,gc as np,gd as nq,ge as tr,ha as $l,hb as eo,hc as op,hd as oq,he as ur,ia as am,ib as fo,ic as pp,id as pq,ie as vr,ja as bm,jb as go,jc as qp,jd as qq,je as wr,ka as cm,kb as ho,kc as rp,kd as rq,ke as xr,la as dm,lb as io,lc as sp,ld as sq,le as yr,ma as em,mb as jo,mc as tp,md as tq,me as zr,na as fm,nb as mo,nc as up,nd as uq,ne as Ar,o as a,oa as gm,ob as no,oc as vp,od as vq,oe as Br,p as ok,pa as Xm,pb as oo,pc as wp,pd as wq,pe as Cr,q as pk,qa as Ym,qb as po,qc as xp,qd as xq,qe as Dr,r as qk,ra as Zm,rb as ro,rc as yp,rd as yq,re as Er,s as rk,sa as _m,sb as so,sc as zp,sd as zq,se as Fr,t as sk,ta as $m,tb as to,tc as Ap,td as Aq,te as Gr,u as tk,ua as an,ub as uo,uc as Bp,ud as Bq,ue as Hr,v as uk,va as bn,vb as wo,vc as Cp,vd as Cq,ve as Ir,w as vk,wa as cn,wb as xo,wc as Dp,wd as Dq,we as Jr,x as wk,xa as dn,xb as yo,xc as Ep,xd as Eq,xe as Kr,y as Bk,ya as en,yb as zo,yc as Fp,yd as Fq,ye as Lr,z as Ck,za as fn,zb as Ao,zc as Gp,zd as Gq,ze as Mr}from"./chunk-jtnds1cn.js";import{Le as Oo,Me as Po,Ne as Qo,Oe as Ro,Pe as So,Qe as To}from"./chunk-e2e5jcs7.js";import{Re as ko,Se as lo}from"./chunk-2ver2s2y.js";import{Te as qo}from"./chunk-9rr42vhz.js";import{Ue as Wm}from"./chunk-ret70p2w.js";import{Ve as Bn,We as Cn,Xe as Dn,Ye as vo}from"./chunk-zpkmfpe3.js";import{$e as Jk,Ze as Hk,_e as Ik,af as Kk,bf as Lk,cf as Mk,df as Nk,ef as Ok,ff as Pk,gf as Qk,hf as Rk,if as Sk,jf as Tk,kf as Uk,lf as Vk}from"./chunk-ym3r8ktq.js";import{mf as kl,nf as ll,of as ml,pf as nl,qf as ol,rf as pl,sf as ql,tf as rl,uf as sl,vf as tl,wf as ul,xf as vl}from"./chunk-a50hb40e.js";import{yf as il,zf as jl}from"./chunk-ka5wtqmw.js";import{Af as Wk,Bf as Xk,Cf as Yk,Df as Zk,Ef as _k,Ff as $k,Gf as al,If as bl,Jf as cl,Kf as dl,Lf as el,Mf as fl,Nf as gl,Qf as hl}from"./chunk-zdzd2jb4.js";import{Rf as Dm,Sf as Em,Tf as Fm,Uf as Gm,Vf as Jm,Wf as Vm}from"./chunk-86n4pb90.js";import{Xf as Hm,_f as Im}from"./chunk-53zp6y74.js";import{Ag as Om,Bg as Pm,Cg as Qm,Dg as Rm,Eg as Sm,Fg as Tm,Gg as Um,gg as hm,hg as im,ig as jm,jg as km,kg as lm,lg as mm,mg as nm,ng as om,og as pm,pg as qm,qg as rm,rg as sm,sg as tm,tg as um,ug as vm,vg as wm,wg as Km,xg as Lm,yg as Mm,zg as Nm}from"./chunk-v0xgmthk.js";import{Hg as xm,Ig as ym}from"./chunk-dvvx1wny.js";import{Jg as jn,Kg as kn,Lg as ln,Mg as mn,Ng as nn,Og as on,Pg as pn,Qg as qn,Rg as rn,Sg as sn,Tg as tn,Ug as un}from"./chunk-xz3evxqp.js";import{Vg as _h,Wg as $h,Xg as ai,Yg as bi,Zg as ci,_g as di}from"./chunk-7fkm76ny.js";import{$g as sj,ah as tj,bh as uj,fh as vj,gh as wj,hh as xj}from"./chunk-0gbptqh2.js";import{ih as Dj,jh as Ej,kh as Fj,lh as Gj,mh as Hj,nh as Ij,oh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj}from"./chunk-f044qmn3.js";import{Ah as oj,Bh as pj,Ch as qj,Dh as rj,th as ij,uh as jj,vh as kj,wh as lj,xh as mj,zh as nj}from"./chunk-vd5xvsnv.js";import{Eh as dk,Gh as ek}from"./chunk-64djh88a.js";import{Mh as Bh,Nh as Ch,Oh as Dh,Ph as Eh,Qh as Fh,Rh as Gh,Sh as Hh,Th as Ih,Uh as Jh,Vh as Kh,Wh as Lh,Xh as Mh,Yh as Nh,Zh as Oh}from"./chunk-9368t9jm.js";import{$h as Ph,ai as Qh,bi as Rh,ci as Sh}from"./chunk-5tefa8qb.js";import{hi as Th}from"./chunk-mwh3ymwc.js";import{ii as Xg}from"./chunk-fqq5k9ve.js";import{ji as Yg,ki as Zg}from"./chunk-ya5m5vbn.js";import{li as _g,mi as $g,ni as ah,oi as bh,pi as ch,qi as dh}from"./chunk-y4nzmkea.js";import{ri as eh,si as fh,ti as gh,ui as hh,vi as ih}from"./chunk-7kw3grq5.js";import{Ai as nh,wi as jh,xi as kh,yi as lh,zi as mh}from"./chunk-c79nfdyj.js";import{Bi as oh,Ci as ph,Di as qh,Ei as rh,Fi as sh,Gi as th,Hi as uh}from"./chunk-ej8mv2k6.js";import{Ii as vh,Ji as wh,Ki as xh,Li as yh,Mi as zh,Ni as Ah}from"./chunk-cr8v8k53.js";import{Pi as Ug,Qi as Vg}from"./chunk-fh9hezm1.js";import{Ti as Wg}from"./chunk-m7tp5wzv.js";import"./chunk-xwxdwqn9.js";import{$i as He,Xi as De,Yi as Ee,Zi as Fe,_i as Ge,aj as Ie,bj as Je,cj as Ke,dj as Le,ej as Me,fj as Ne,gj as Oe,hj as Pe,ij as Qe}from"./chunk-j116kxpt.js";import{jj as ff,kj as gf,lj as hf,mj as jf,nj as kf,oj as lf,pj as mf,qj as nf,rj as of,sj as pf,tj as qf,uj as rf,vj as sf,wj as tf,xj as uf,yj as vf,zj as wf}from"./chunk-wk7ypmcq.js";import{Gj as Te,Hj as Ue,Ij as Ve,Jj as We,Kj as Xe,Lj as Ye,Mj as Ze,Nj as _e,Oj as $e,Pj as af,Qj as bf,Rj as cf,Sj as df,Tj as ef}from"./chunk-t41aaehf.js";import{$j as Ef,Uj as xf,Vj as yf,Wj as zf,Xj as Af,Yj as Bf,Zj as Cf,_j as Df,ak as Ff,bk as Gf,ck as Hf,dk as If}from"./chunk-t0dn85n4.js";import{Ak as lr,Bk as mr,Ck as nr,xk as ir,yk as jr,zk as kr}from"./chunk-1jjq691b.js";import{Dk as xk,Ek as yk,Fk as zk,Gk as Ak,Hk as zm,Ik as Am,Jk as Bm,Kk as Cm}from"./chunk-9ksr8sjy.js";import"./chunk-09zjty4k.js";import"./chunk-rjdkq7m0.js";import{ul as Yb,vl as Zb,zl as _b}from"./chunk-6rzvmr1r.js";import{$l as Fb,$m as $c,$n as pe,$o as Uf,$p as Uh,$q as hj,Am as sc,An as Ad,Ap as tg,Aq as Ii,Ar as jk,Bl as xa,Bm as tc,Bn as Bd,Bp as ug,Bq as Ji,Br as kk,Cl as ya,Cm as uc,Cn as Cd,Cp as vg,Cq as Ki,Cr as lk,Dl as za,Dm as vc,Dn as Dd,Dp as wg,Dq as Li,Dr as mk,El as Aa,Em as wc,En as Ed,Ep as xg,Eq as Mi,Er as nk,Fl as Ba,Fm as xc,Fn as Fd,Fp as yg,Fq as Ni,Gl as Ca,Gm as yc,Gn as Gd,Gp as zg,Gq as Oi,Hl as Da,Hm as zc,Hn as Hd,Hp as Ag,Hq as Pi,Il as Ea,Im as Ac,In as Id,Ip as Bg,Iq as Qi,Jl as Fa,Jm as Bc,Jn as Jd,Jp as Cg,Jq as Ri,Kl as Ga,Km as Cc,Kn as Kd,Ko as Kf,Kp as Dg,Kq as Si,Ll as Ha,Lm as Dc,Ln as Ld,Lp as Eg,Lq as Ti,Ml as Ia,Mm as Ec,Mn as Md,Mp as Fg,Mq as Ui,Nl as Ja,Nm as Oc,Nn as Nd,Np as Gg,Nq as Vi,Ol as Ka,Om as Pc,On as Od,Op as Hg,Oq as Wi,Pl as La,Pm as Qc,Pn as Pd,Pp as Ig,Pq as Xi,Ql as Ma,Qm as Rc,Qn as Qd,Qo as Lf,Qp as Jg,Qq as Yi,Rl as Na,Rm as Sc,Rn as fe,Rp as Kg,Rq as Zi,Sl as Oa,Sm as Tc,Sn as ge,So as Mf,Sp as Lg,Sq as _i,Tl as ib,Tm as Uc,Tn as he,Tp as Mg,Tq as $i,Ul as jb,Un as ie,Uo as Nf,Up as Ng,Uq as aj,Vl as kb,Vm as Vc,Vn as je,Vo as Of,Vp as Og,Vq as bj,Wl as lb,Wm as Wc,Wn as ke,Wo as Pf,Wp as Pg,Wq as cj,Xl as mb,Xm as Xc,Xn as le,Xo as Qf,Xp as Qg,Xq as dj,Yl as nb,Ym as Yc,Yn as me,Yo as Rf,Yp as Rg,Yq as ej,Zm as Zc,Zn as ne,Zo as Sf,Zp as Sg,Zq as fj,_m as _c,_n as oe,_o as Tf,_p as Tg,_q as gj,am as Gb,an as ad,ao as qe,ap as Vf,aq as Vh,ar as yj,bm as Hb,bn as bd,bo as re,bp as Wf,bq as Wh,br as zj,cm as Ib,cn as cd,co as se,cp as Xf,cq as Xh,cr as Aj,dm as Jb,dn as dd,dp as Yf,dq as Yh,dr as Bj,em as Nb,en as ed,ep as Zf,eq as Zh,er as Cj,fm as Ob,fn as fd,fp as _f,fq as ei,fr as Oj,gm as Pb,gn as gd,gp as $f,gq as fi,gr as Pj,hm as $b,hn as hd,hp as ag,hq as gi,hr as Qj,im as ac,in as id,io as we,ip as bg,iq as hi,ir as Rj,jm as bc,jn as jd,jo as xe,jp as cg,jq as ii,jr as Sj,km as cc,kn as kd,ko as ye,kp as dg,kq as ji,kr as Tj,lm as dc,ln as ld,lo as ze,lp as eg,lq as ki,lr as Uj,mm as ec,mn as md,mo as Ae,mp as fg,mq as li,mr as Vj,nm as fc,nn as nd,no as Be,np as gg,nq as mi,nr as Wj,om as gc,on as od,oo as Ce,op as hg,oq as ni,or as Xj,pm as hc,pn as pd,pp as ig,pq as oi,pr as Yj,qm as ic,qn as qd,qp as jg,qq as pi,qr as Zj,rm as jc,rn as rd,rp as kg,rq as qi,rr as _j,sm as kc,sn as sd,so as Re,sp as lg,sq as ri,sr as $j,tm as lc,tn as td,to as Se,tp as mg,tq as si,tr as ak,um as mc,un as ud,up as ng,uq as ti,ur as bk,vm as nc,vn as vd,vo as Jf,vp as og,vq as ui,vr as ck,wm as oc,wn as wd,wp as pg,wq as Ei,wr as fk,xm as pc,xn as xd,xp as qg,xq as Fi,xr as gk,ym as qc,yn as yd,yp as rg,yq as Gi,yr as hk,zm as rc,zn as zd,zp as sg,zq as Hi,zr as ik}from"./chunk-hyab7cw0.js";import{$r as x,$s as qa,As as P,Bs as Q,Cs as R,Ds as S,Es as T,Fr as b,Fs as U,Gr as c,Gs as V,Hr as d,Hs as W,Ir as e,Is as X,Jr as f,Js as Y,Kr as g,Ks as Z,Lr as h,Ls as _,Mr as i,Ms as $,Nr as j,Ns as aa,Or as k,Os as ba,Pr as l,Ps as ca,Qr as m,Qs as da,Rr as n,Rs as ea,Sr as o,Ss as fa,Tr as p,Ts as ia,Ur as q,Us as ja,Vr as r,Vs as ka,Wr as s,Ws as la,Xr as t,Xs as ma,Yr as u,Ys as na,Zr as v,Zs as oa,_r as w,_s as pa,as as y,at as ra,bs as z,bt as sa,cs as A,ct as ta,ds as B,dt as ua,es as C,et as va,fs as D,ft as wa,gs as E,hs as F,is as G,js as H,ks as I,ls as J,ms as K,ns as L,xs as M,ys as N,zs as O}from"./chunk-raxr83fs.js";import{gt as ga,ht as ha}from"./chunk-at84gyvf.js";import{it as Kb,jt as Lb,kt as Mb}from"./chunk-397rqs12.js";import{lt as vi,mt as wi,nt as xi,ot as yi,pt as zi,qt as Ai,rt as Bi,st as Ci,tt as Di}from"./chunk-aqrp68m6.js";import{$t as Mc,Lt as Fc,Mt as Gc,Nt as Hc,Ot as Ic,Pt as Jc,Rt as Kc,_t as Lc,au as Nc}from"./chunk-m9rfkx0e.js";import{bu as te,cu as ue,du as ve}from"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import{ku as Qb,lu as Rb,mu as Sb,nu as Tb,ou as Ub,pu as Vb}from"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import{uu as Wb,vu as Xb}from"./chunk-18p8dqya.js";import{Au as Sd,Bu as Td,Cu as Ud,Du as Vd,Eu as Wd,Fu as Xd,Gu as Yd,Hu as Zd,Iu as _d,Ju as $d,Ku as ae,Lu as be,Mu as ce,Nu as de,Ou as ee,zu as Rd}from"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import{$u as vb,Uu as ob,Vu as pb,Wu as qb,Xu as rb,Yu as sb,Zu as tb,_u as ub,av as wb,bv as xb,cv as yb,dv as zb,ev as Ab,fv as Bb,gv as Cb,hv as Db,iv as Eb}from"./chunk-ttny9g8k.js";import{Cv as Ua,Dv as Va,Ev as Wa,Fv as Xa,Gv as Ya,Hv as Za,Iv as _a,Jv as $a,Kv as ab,Lv as bb,Mv as cb,Nv as db,Ov as eb,Pv as fb,Qv as gb,Sv as hb,mv as Pa,nv as Qa,qv as Ra,vv as Sa,wv as Ta}from"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{Rk as writeNetlifyConfig,Lm as writeManifest,ul as writeImageManifest,bp as wrapComponentForHMR,Kr as withDefaults,ck as webComponentDirectiveHandler,Sp as watermark,Uq as watchViews,El as watchMultiple,Fl as watchEffect,Dl as watch,Ae as warmImagePlaceholders,Sl as waitForStore,X as waitForLocale,Po as virtualPathFor,Rj as videoDirective,G as validators,Or as validated,qe as validateValueEnhanced,Vh as validateTemplate,xm as validateRouteRules,Xp as validateParams,re as validateFormEnhanced,Jq as validateFile,me as validateFields,le as validateField,Xh as validateDirective,Ld as validateCspDirectives,kk as validateConfig,Ym as validateComponentScripts,vn as validateComponentProps,Tg as validateClientScript,Sh as v,wc as usesSignalsInScript,ub as usesReactiveRuntime,ii as userComponentFileExists,yh as useVirtualList,Zd as useTitle,Rl as useStoreOrThrow,tp as useStore,Bk as useStorage,of as useSlots,Dk as useSessionStorage,Wb as useServerRuntimeConfig,Kf as useServerData,Wd as useSeoMeta,Xb as useRuntimeConfig,Tl as useRouteParams,Vl as useRouteParamOrThrow,Ul as useRouteParam,Zd as usePageTitle,ef as useOptimistic,tf as useModel,Xl as useMiddlewareValue,Wl as useMiddlewareState,Ck as useLocalStorage,Wo as useLoadingIndicator,Ud as useHead,Ph as useForm,qf as useAttrs,Lq as uploadFiles,Kq as uploadFile,Ol as updateInstance,cf as untrack,yi as unregisterDirective,Pl as unmountInstance,Ec as unescapeHtml,So as typecheckStxFiles,hi as transpileTypeScript,xr as translate,Ba as transitionDirective,dc as transformAutoImports,pn as toUsers,on as toUser,Bp as thumbnail,Cq as thumbHashToRGBA,Dq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,xf as templateCache,bd as syncRecordedResponse,_o as stxClientHelpers,dg as structuredDataDirective,Ar as stripLocalePrefix,um as stripDocumentWrapper,Lb as stripCommentsAndLiterals,$n as stringToStream,zd as strictCspPreset,Le as streamingSuspenseDirective,Pe as streamToResponse,Je as streamTemplateSimple,De as streamTemplate,wk as stopHmrServer,ln as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Te as state,Ng as startsDocument,vo as startProductionServer,qo as startInteractive,kn as startBroadcasting,Cr as stampLocaleLayoutGroup,Ia as staggerDirective,Vp as srcsetUrls,Ja as springDirective,id as splitByPipe,qm as spaNavVaryHeaders,Qo as sourcePathFor,aq as smartBatchSign,ki as slotContentHasExpressions,_p as signUrl,fi as shouldTranspileTypeScript,tk as shouldReloadOnChange,dq as shouldRefreshSignature,uk as shouldIgnoreFile,qh as shouldCacheComponent,Fp as sharpen,Rr as shape,Sb as setStateDir,$l as setRouteParams,am as setMiddlewareState,ze as setImagePlaceholder,hf as setGlobalProvide,b as setErrorLocale,wl as setCurrentInstance,Fj as setCachedVideoResult,uj as setCachedImageResult,oj as setCached,Ur as serveStxFile,Wr as serveMultipleStxFiles,ok as serveMarkdownFile,Go as serveFile,Xr as serveApp,Fo as serve,ep as serializeState,Nm as serializeSetCookie,Hp as sepia,Xd as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Vj as scopeHTML,Uj as scopeCSS,gg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Lp as saturation,Yp as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Yf as runPreProcessingMiddleware,Zf as runPostProcessingMiddleware,Qm as runPageAction,Ze as runMountCallbacks,gb as runMiddleware,Ml as runHooks,qr as runDoctor,_e as runDestroyCallbacks,lg as runComposers,Mp as rotate,Th as rewriteImagesWithSiblings,cd as responseBindings,oi as resolveTemplatePath,ha as resolveStxTargets,gk as resolveStxDirectories,wr as resolveI18n,zp as resize,Cc as resetRejectedExpressionWarnings,jc as resetPlaceholders,Td as resetHead,dp as resetHMRHandler,o as resetErrorConfig,Mr as required,nc as replacePlaceholders,Sq as renderView,Oj as renderVideoComponent,ac as renderVendorStyleTags,$q as renderToString,ar as renderToStream,br as renderToDOM,Bq as renderThumbhashToCanvas,nr as renderTemplateString,lr as renderTemplate,mr as renderString,Ge as renderStreamingPage,ai as renderSlot,gh as renderSSRSuspense,lq as renderProtectedVideo,kq as renderProtectedImg,Zp as renderMediaUpload,kr as renderMarkdownView,Bm as renderLayoutTypes,yj as renderImgComponent,kl as renderImageComponent,$d as renderHtmlAttrs,_d as renderHead,Vq as renderEmail,mi as renderComponentWithSlot,ae as renderBodyAttrs,op as render,Bd as relaxedCspPreset,ke as registerValidationRule,Ne as registerStreamingDirectives,vp as registerStoresClient,Zl as registerStore,eg as registerSeoDirectives,_a as registerMiddleware,rc as registerFilters,qc as registerFilter,d as registerErrorMessages,pe as registerEnhancedValidationRule,vi as registerDirective,Kd as registerCspDirectives,yn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,Al as ref,io as redirect,Zc as recordResponseStatus,_c as recordResponseHeader,Vb as rebaseOntoStateDir,$c as readResponseStatus,ad as readResponseHeaders,mk as readMarkdownFile,yf as readFileCached,Bl as reactive,Qp as quality,iq as pruneSignatureCache,rj as pruneCache,ff as provide,jr as protectCodeBlocks,Lr as prop,og as processVueTemplate,wh as processVirtualListDirectives,Ah as processVirtualGridDirectives,Nj as processVideo,ne as processValidateDirective,ea as processTranslateDirective,ah as processTransitionDirectives,dh as processTransitionAttributes,de as processTitleDirective,Rc as processTemplateBindings,Yg as processTeleportDirectives,eh as processSuspenseDirectives,$f as processStructuredData,He as processStreamDirectives,dd as processStatusDirective,Nh as processStaticDirectives,Wf as processStackReplacements,Vf as processStackPushDirectives,bi as processSlots,sm as processShell,Ce as processServerBindings,ag as processSeoDirective,Oe as processSectionDirectives,Jc as processScopedStyles,Pc as processReactiveBindings,mq as processProtectedMedia,Gh as processPartialHydrationDirectives,Sg as processOnceDirective,Xf as processMiddleware,_f as processMetaDirectives,ee as processMetaDirective,nk as processMarkdownFileDirectives,ti as processMarkdownDirectives,Qf as processLoops,oh as processKeepAliveDirectives,Rg as processJsonDirective,zh as processInfiniteListDirectives,Uf as processIncludes,Aj as processImgComponents,ml as processImageComponents,$k as processImage,ce as processHeadDirective,ge as processForms,ie as processFormInputDirectives,Ac as processExpressions,Ib as processEventDirectives,je as processErrorDirective,pg as processDynamicComponents,Uh as processDirectives,Di as processDirectiveAttributes,Xg as processDeferDirectives,Pd as processCustomDirectives,Hd as processCspDirectives,Sr as processComponentProps,ic as processClientScript,he as processBasicFormDirectives,jh as processAsyncDirectives,Qd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ve as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,Vo as preloadIslandHandlers,Be as preloadIconCollection,fn as poolStrings,ek as pluginManager,xe as placeholdersWarmed,$g as performLeave,_g as performEnter,$e as pendingLifecycleCounts,df as peek,Rf as partialsCache,Pj as parseVideoDirectiveOptions,xp as parseUrl,Eq as parseThumbhashString,od as parseSwitchBlock,_h as parseSlots,$h as parseSlotElement,td as parseScriptDeclarations,ak as parseSFCComponent,nq as parseProtectedArgs,Pf as parseLoopBinding,zj as parseImgComponent,Ri as parseImageUrl,ll as parseImageComponent,Om as parseFormBody,qd as parseExpressionWithFilters,zn as parseDefaults,fo as parseCookies,jm as parseContainerSelector,ld as parseConditionalBlock,rd as parseArguments,Ma as parseAnimationShorthand,Nr as optional,gn as optimizeTemplate,rl as optimizeImage,sl as optimizeDirectory,Pr as oneOf,Sf as onceStore,Jl as onUpdated,Oc as onUpdate,Ll as onUnmounted,em as onServer,Hl as onMounted,Xe as onMount,Mh as onHydrated,mf as onErrorCaptured,Ye as onDestroy,uh as onDeactivated,dm as onClient,Il as onBeforeUpdate,Kl as onBeforeUnmount,Gl as onBeforeMount,th as onActivated,xq as observeElement,jo as notFound,ug as normalizeCriticalHeadOrder,lf as nextTick,Cn as negotiateEncoding,Ua as navigateTo,Nl as mountInstance,Ea as motionDirective,Ad as moderateCspPreset,en as minifyHtml,cg as metaDirective,Fg as metaDedupKey,yp as mergeParams,Hg as mergeHtmlAttrs,Vd as mergeHeadConfigs,Gc as mergeCssConfig,Ed as mergeCspDirectives,Ra as matchRoute,ui as markdownDirectiveHandler,lk as markdownCache,ga as looksLikeGlob,zr as localizePath,U as loadTranslationLazy,_ as loadTranslation,hk as loadStxConfig,db as loadMiddlewareFromDirectory,Mm as loadManifest,tq as loadElement,mn as loadChannels,Gr as lintStxStrict,vq as lazyLoadAll,uq as lazyLoad,Ha as keyframeDirective,Zq as jsxs,_q as jsxDEV,Yq as jsx,ho as jsonResponse,Me as islandDirective,l as isTest,vm as isSpaNavigation,om as isSpaNavRequest,bq as isSignatureValid,af as isSignal,Zk as isSharpAvailable,Un as isServerEnvironment,bm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,qq as isNativeLazySupported,ir as isMarkdownPath,Q as isLoading,R as isLoaded,ei as isJavaScriptScript,rq as isIntersectionObserverSupported,fl as isImageFile,_k as isImageBackendAvailable,aa as isICUFormat,Lh as isHydrated,ji as isHydrateTrigger,Xc as isHttpStatus,Tn as isEdgeEnvironment,Hr as isDirectiveKind,k as isDevelopment,bf as isDerived,sk as isCssOnlyChange,Bn as isCompressible,cm as isClient,lh as isAsyncComponent,Pm as isActionableMethod,Ip as invert,Af as invalidateFileCacheByDir,zf as invalidateFileCache,zc as interpolateScriptsInTemplate,xc as interpolateScriptExpressions,yc as interpolateScriptAttributes,x as inlineError,vr as injectThemeBootstrap,bg as injectSeoTags,sr as injectSeo,Jf as injectRouterScript,rk as injectHotReload,kb as injectHeatmap,Nc as injectCss,Fd as injectCspMetaTag,Pg as injectConfigHeadTags,tg as injectColorModeBootScript,Jg as injectCloakStyle,Ag as injectBuildId,cc as injectBrowserCoreAutoImports,Tc as injectAnalytics,gf as inject,Yl as initStoreRegistry,Uk as initNetlify,Xo as initLoadingIndicator,sq as initLazyLoading,po as initFile,Aq as initBlurUp,Gq as initAllBlurUp,Cj as imgDirective,pl as imageDirective,Tm as hydrateTemplateStream,Sm as hydrateTemplate,Uo as hydrateIslands,Ih as hydrateIsland,Um as hydrateFragment,Jh as hydrateByStrategy,Kh as hydrateAll,lp as hydrate,Eo as htmlResponse,Lg as hoistLeadingHeadTags,vg as hoistColorModeBootScript,lb as heatmapDirective,kj as hashString,If as hashFilePath,ij as hashFile,jj as hashBuffer,ng as hasVueTemplateSyntax,Of as hasVariables,qp as hasStore,oc as hasPlaceholders,Sk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Og as hasDocumentShell,Yh as hasDirectives,ma as hasDOMSupport,il as handleImageRequest,nf as handleError,fr as h,el as groupVariantsByFormat,Gp as grayscale,xo as gitHash,_m as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Nk as getTotalSize,cq as getTimeUntilExpiry,Ug as getStoreScript,rp as getStoreNames,pp as getStore,Gk as getStorageSize,Fk as getStorageKeys,pi as getSourceLineInfo,gi as getSharedTranspiler,Ef as getServeClientAsset,la as getScreenReaderOnlyStyle,Wj as getScopeAttribute,Se as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,Wh as getPositionInfo,lc as getPlaceholderRegistry,hj as getPlaceholderCacheStats,Sd as getPageMeta,vd as getNonce,gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,we as getImagePlaceholder,al as getImageMetadata,te as getImageDelivery,kp as getHydrationRuntime,_l as getHydratedStoreState,vk as getHmrServer,Rd as getHead,cp as getHMRHandler,Vi as getFormatExtension,mj as getFileMtime,dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,xi as getDirectives,wi as getDirective,xl as getCurrentInstance,Kc as getCssServeAsset,Dd as getCspPreset,Md as getCspHeaderName,si as getComponentCacheStats,Ej as getCachedVideoResult,gq as getCachedSignature,Cf as getCachedSignalsRuntime,Df as getCachedRouterScript,fj as getCachedPlaceholder,tj as getCachedImageResult,nj as getCached,qj as getCacheStats,yg as getBuildId,jn as getBroadcastServer,Ui as getBestVariant,sc as getAllFilters,Ii as generateWidthSrcset,xh as generateVirtualListCSS,Nq as generateVideoPreview,se as generateValidationScript,Oq as generateUploadRuntime,$m as generateTreeShakenBundle,ch as generateTransitionRuntime,bh as generateTransitionCSS,Ij as generateThumbnails,_i as generateThumbhashPlaceholder,Ln as generateTemplatesDocs,ih as generateSuspenseRuntime,hh as generateSuspenseCSS,fp as generateStateScript,Si as generateSrcsetData,xj as generateSrcset,bl as generateSrcSet,Jj as generateSpriteSheet,Wq as generateSpaShell,Ti as generateSourceTags,Oi as generateSizesFromBreakpoints,Ni as generateSizesAttribute,cl as generateSizes,fg as generateSitemapIndex,tr as generateSitemap,pq as generateSimpleMediaPicker,jq as generateSignatureRuntime,wf as generateSignalsRuntimeDev,vf as generateSignalsRuntime,hc as generateServerDataBridge,Tj as generateScopeId,bk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,hg as generateRobotsTxt,ur as generateRobots,wj as generateResponsiveVariants,Zj as generateReactiveWebComponentTS,Yj as generateReactiveWebComponent,$j as generateReactiveRuntime,_j as generateReactiveMixin,Hj as generatePoster,ej as generatePlaceholderStyle,dj as generatePlaceholderCSS,Zi as generatePlaceholder,Hh as generatePartialHydrationCSS,ud as generateNonce,Ok as generateNetlifyToml,Qq as generateMinifiedMediaRuntime,Pq as generateMediaRuntime,oq as generateMediaManagerEmbed,Km as generateManifest,Zo as generateLoadingIndicatorHtml,zq as generateLazyLoadRuntime,Cm as generateLayoutTypes,aj as generateLQIP,sh as generateKeepAliveRuntime,rh as generateKeepAliveCSS,Oh as generateIslandManifest,Mq as generateImagePreview,tl as generateImageManifest,jp as generateHydrationScript,Qe as generateHydrationRuntime,mp as generateHydrationCSS,Bh as generateHydrationBootstrap,qk as generateHotReloadScript,jb as generateHeatmapScript,ap as generateHMRClientScript,Kj as generateHLSManifest,gp as generateEventBindings,Mi as generateDprSrcsetWithVariableQuality,Li as generateDprSrcset,Mg as generateDocumentShell,Qn as generateDocs,Mn as generateDirectivesDocs,Ci as generateDirectiveRuntime,ig as generateDefaultRobotsTxt,Lj as generateDASHManifest,Mc as generateCss,yd as generateCspMetaTag,xd as generateCspHeader,sf as generateCompositionRuntime,Kn as generateComponentsDocs,Ch as generateComponentManifest,In as generateComponentDoc,cj as generateColorPlaceholder,sg as generateColorModeBootScript,Ql as generateClientRuntime,lj as generateCacheKey,fc as generateBrowserAutoImportDestructuring,Hq as generateBlurUpRuntime,Iq as generateBlurUpCSS,Qc as generateBindingsRuntime,Ji as generateAutoWidthSrcset,ec as generateAutoImportDestructuring,nh as generateAsyncComponentRuntime,mh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Sc as generateAnalyticsScript,To as formatTypecheckDiagnostics,No as formatTypeErrors,mo as formatStxContent,Mk as formatSize,Ta as formatRoutes,no as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,rr as formatDoctorReport,Nn as formatDocsAsMarkdown,Pn as formatDocsAsJson,On as formatDocsAsHtml,Pp as format,dn as foldConstants,Op as flipVertical,Np as flipHorizontal,Dm as fingerprint,Ro as findRuntimeTypeDeclarations,pr as findPantryPackage,kd as findMatchingEndTag,gd as findMatchingDelimiter,Kb as findInterpolationEnd,md as findIfBlocks,pd as findExpressions,Sa as findErrorPage,Hc as findDuplicateScopedStyleRanges,nd as findDirectiveBlocks,an as findDeadCode,an as findDeadBranches,km as findContainerRegion,Jn as findComponentFiles,Vr as findCommonDir,Lk as filterRequiredFiles,ni as fileExists,Lf as extractVariables,Im as extractTemplateExpressions,Ie as extractStreamBoundaries,hp as extractState,ci as extractSlotContent,Nf as extractScriptFromTemplate,Hm as extractScriptBlocks,mc as extractPlaceholders,jd as extractParenthesizedExpression,Yc as extractPageResponseStatus,hb as extractLayoutMetadata,bj as extractDominantColor,sd as extractDirectiveParams,Zh as extractDirectiveNames,wm as extractContainerContent,Gn as extractComponentProps,Dh as extractComponentName,Hn as extractComponentDescription,Lc as extractClassNames,gc as extractBridgeData,Eh as extractBoundProps,hd as extractBalancedExpression,$b as extractAndStripCssImports,Xj as extractAndScopeStyles,Hb as extractAndProcessEvents,zk as externalizeSharedAssets,Ak as externalizeRepeatedAssets,yk as externalizeHtml,Dc as evaluateExpression,cn as evaluateConstant,ed as evaluateAuthExpression,vc as escapeHtmlValue,uc as escapeHtml,C as errorRecovery,E as errorLogger,Zg as ensureTeleportTargets,Qg as ensureDocumentShell,oe as enhancedValidationRules,En as enableDevTools,bn as eliminateDeadCode,Ve as effect,Wp as dprUrls,Rn as docsCommand,Yb as discoverServerApi,Am as discoverLayoutNames,yq as disconnectObserver,Fn as disableDevTools,F as devHelpers,rm as detectShell,Sn as detectRuntime,Pk as detectProjectConfig,Wi as detectFormat,Xm as detectBuildMode,Ue as derived,Tk as deploy,jk as defineStxConfig,up as defineStore,pf as defineSlots,Fr as defineSiteConfig,Jr as definePropsWithValidation,Ir as defineProps,dk as definePlugin,Yd as definePageMeta,Wa as defineMiddleware,Qh as defineForm,kf as defineExpose,jf as defineEmits,zi as defineDirective,hr as defineCustomElement,uo as defineConfig,Ai as defineClientDirective,kh as defineAsyncComponent,wo as defineApiHandler,Rq as defaultMediaConfig,vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,fe as defaultFormClasses,pc as defaultFilters,Od as defaultCspConfig,fk as defaultConfig,Tr as default,Fc as deepMergeThemes,Ic as dedupeScopedStyles,nm as decodeTitleEntities,$i as decodeThumbhash,Jd as cspNonceDirective,Id as cspDirective,Fq as crossfadeTransition,Ap as crop,vh as createVirtualList,Qj as createVideoDirective,co as createVercelHandler,Ko as createTypeChecker,fa as createTranslateFilter,_n as createTextEncoderStream,gr as createStxApp,Zn as createStreamingResponse,Ke as createStreamRenderer,sp as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,zl as createScope,fh as createSSRSuspense,Re as createRouter,ym as createRouteRuleResolver,eb as createRouteLocation,Io as createRoute,Al as createRef,Bl as createReactive,rf as createProvideContext,zo as createProject,to as createProductionBuild,kc as createPlaceholder,hn as createOptimizedBuild,eo as createNetlifyHandler,Hk as createNetlifyClient,fb as createMiddlewareContext,Ho as createMiddleware,wq as createLazyObserver,ph as createKeepAliveCache,Wn as createKVNamespace,Fh as createIslandRegistry,Bj as createImgDirective,ql as createImagePlugin,jl as createImageHandler,ol as createImageDirective,nb as createHeatmapAggregator,Kk as createFileManifest,Vn as createEnvAccessor,z as createEnhancedError,Yn as createEdgeHandler,Xn as createEdgeCache,qi as createDetailedErrorMessage,bo as createDenoHandler,Qk as createDefaultNetlifyConfig,Nd as createCspHeaders,go as createCookie,Cl as createComputed,yl as createComponentInstance,ao as createCloudflareHandler,Ya as createClientCookieManager,Bi as createBuiltinDirectives,gr as createApp,Ka as createAnimationTimeline,Dp as cover,Mf as convertToCommonJS,Kp as contrast,Cp as contain,y as consoleError,m as configureErrorHandling,ik as config,Cl as computed,Dn as compressResponse,kg as composerPattern,jg as composer,tm as composeShellWithPage,xn as componentDirective,li as componentClientSignalNames,Jm as compileTemplate,a as collectRepeatedFlag,Jk as collectDeployFiles,Kg as cloakStyleFragment,Gj as clearVideoCache,N as clearTranslationCache,Vg as clearStoreCache,Ek as clearStorage,hq as clearSignatureCache,uf as clearServerData,gj as clearPlaceholderCache,Tf as clearOnceStore,wd as clearNonce,bb as clearMiddleware,ye as clearImagePlaceholders,ue as clearImageDeliveryCatalog,nl as clearImageCache,e as clearErrorMessages,Ff as clearDevCaches,tc as clearCustomFilters,mg as clearComposers,Wg as clearComposableCache,ri as clearComponentCache,pj as clearCache,Db as clearBlankCache,Yo as cleanupLoadingIndicator,hm as classifyScript,im as classifyAllScripts,Lo as checkTemplateFile,Mo as checkTemplate,Gf as checkCache,eq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,sn as channel,lo as captureScreenshots,ko as captureScreenshot,Z as cancelPendingLoads,Ik as calculateSha1,Ki as calculateOptimalWidths,Hf as cacheTemplate,Sj as buildWebComponents,Oo as buildVirtualSource,Tq as buildViews,wp as buildUrl,Ee as buildSuspenseResolveScript,Er as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Em as buildRuntimeAsset,Fm as buildRouterAsset,Dr as buildLangPickerScript,Qi as buildImageUrl,Bg as buildIdFragment,Gg as buildHtmlAttrs,Vm as buildForProduction,An as buildComponentLibrary,fq as buildAuthParams,Wm as buildApp,Br as buildAlternateLinks,so as build,qn as broadcastPrivate,rn as broadcastPresence,nn as broadcast,Jp as brightness,Mb as bracketDepths,Ep as blur,Eb as blankInertHtmlRegions,$p as batchSignUrls,We as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Rp as auto,ja as attributeValue,Gm as assetTags,Fb as asInvocableStatement,Qr as arrayOf,yr as applyTranslations,vj as applyTransformations,di as applySlots,wn as applyPropDefaults,Up as applyPreset,Ig as applyHtmlAttrs,be as applyHead,Bc as applyFilters,pm as appendVary,Cd as apiCspPreset,Da as animationGroupDirective,Mj as analyzeVideo,Zm as analyzeUsage,fm as analyzeTemplate,gm as analyzeProject,Zm as analyzeDirectiveUsage,Uc as analyticsDirective,Co as addStore,Bo as addPage,Gd as addNonceToInlineContent,Do as addLayout,Ao as addComponent,Rm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Bf as __setSignalsGeneratorsForTest,zg as __setBuildIdForTest,Dj as VideoProcessorCache,Rh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,fd as Tokenizer,Jo as TemplateTypeChecker,oo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,cr as Show,Fe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,lm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Vc as RESPONSE_STATUS_KEY,Wc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,ro as ProductionBuild,er as Portal,yo as PROJECT_TEMPLATES,Tp as PRESETS,sb as NON_CLIENT_PRIMITIVES,np as MemorySessionStore,Hi as MIME_TYPES,Ei as MEDIA_DEFAULT_WIDTHS,Gi as MEDIA_DEFAULT_FORMATS,zm as LAYOUT_TYPES_FILE,sj as ImageProcessorCache,hl as ImageProcessingError,ip as HydrationRuntime,pk as HotReloadServer,mb as HeatmapAggregator,Eg as HTML_CLASS_MARKER,Dg as HTML_ATTRS_MARKER,Xq as Fragment,dr as For,mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,xk as EXTERNALIZED_ASSET_DIR,Vk as DeployError,Wk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Yk as DEFAULT_QUALITY,Xi as DEFAULT_PLACEHOLDER_OPTIONS,Xk as DEFAULT_FORMATS,Fi as DEFAULT_DPR_VALUES,$o as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Pi as COMMON_SIZES,qg as COLOR_MODE_BOOT_MARKER,rg as COLOR_MODE_BOOT_GLOBAL,Cg as CLOAK_STYLE,un as BroadcastServer,tn as Broadcast,wg as BUILD_ID_META,xg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Yi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,or as $path};
2
+ import{$ as Tl,$a as Xn,$b as gp,$c as gq,$d as gr,A as Dk,Aa as gn,Ab as Bo,Ac as Hp,Ad as Hq,Ae as Nr,B as Ek,Ba as hn,Bb as Co,Bc as Ip,Bd as Iq,Be as Or,C as Fk,Ca as vn,Cb as Do,Cc as Jp,Cd as Jq,Ce as Pr,D as Gk,Da as wn,Db as Eo,Dc as Kp,Dd as Kq,De as Qr,E as wl,Ea as xn,Eb as Fo,Ec as Lp,Ed as Lq,Ee as Rr,F as xl,Fa as yn,Fb as Go,Fc as Mp,Fd as Mq,Fe as Sr,G as yl,Ga as zn,Gb as Ho,Gc as Np,Gd as Nq,Ge as Tr,H as zl,Ha as An,Hb as Io,Hc as Op,Hd as Oq,He as Ur,I as Al,Ia as En,Ib as Jo,Ic as Pp,Id as Pq,Ie as Vr,J as Bl,Ja as Fn,Jb as Ko,Jc as Qp,Jd as Qq,Je as Wr,K as Cl,Ka as Gn,Kb as Lo,Kc as Rp,Kd as Rq,Ke as Xr,L as Dl,La as Hn,Lb as Mo,Lc as Sp,Ld as Sq,M as El,Ma as In,Mb as No,Mc as Tp,Md as Tq,N as Fl,Na as Jn,Nb as Uo,Nc as Up,Nd as Uq,O as Gl,Oa as Kn,Ob as Vo,Oc as Vp,Od as Vq,P as Hl,Pa as Ln,Pb as Wo,Pc as Wp,Pd as Wq,Q as Il,Qa as Mn,Qb as Xo,Qc as Xp,Qd as Xq,R as Jl,Ra as Nn,Rb as Yo,Rc as Yp,Rd as Yq,S as Kl,Sa as On,Sb as Zo,Sc as Zp,Sd as Zq,T as Ll,Ta as Pn,Tb as _o,Tc as _p,Td as _q,U as Ml,Ua as Qn,Ub as $o,Uc as $p,Ud as $q,V as Nl,Va as Rn,Vb as ap,Vc as aq,Vd as ar,W as Ol,Wa as Sn,Wb as bp,Wc as bq,Wd as br,X as Pl,Xa as Tn,Xb as cp,Xc as cq,Xd as cr,Y as Ql,Ya as Un,Yb as dp,Yc as dq,Yd as dr,Z as Rl,Za as Vn,Zb as ep,Zc as eq,Zd as er,_ as Sl,_a as Wn,_b as fp,_c as fq,_d as fr,aa as Ul,ab as Yn,ac as hp,ad as hq,ae as hr,ba as Vl,bb as Zn,bc as ip,bd as iq,be as or,ca as Wl,cb as _n,cc as jp,cd as jq,ce as pr,da as Xl,db as $n,dc as kp,dd as kq,de as qr,ea as Yl,eb as ao,ec as lp,ed as lq,ee as rr,fa as Zl,fb as bo,fc as mp,fd as mq,fe as sr,ga as _l,gb as co,gc as np,gd as nq,ge as tr,ha as $l,hb as eo,hc as op,hd as oq,he as ur,ia as am,ib as fo,ic as pp,id as pq,ie as vr,ja as bm,jb as go,jc as qp,jd as qq,je as wr,ka as cm,kb as ho,kc as rp,kd as rq,ke as xr,la as dm,lb as io,lc as sp,ld as sq,le as yr,ma as em,mb as jo,mc as tp,md as tq,me as zr,na as fm,nb as mo,nc as up,nd as uq,ne as Ar,o as a,oa as gm,ob as no,oc as vp,od as vq,oe as Br,p as ok,pa as Xm,pb as oo,pc as wp,pd as wq,pe as Cr,q as pk,qa as Ym,qb as po,qc as xp,qd as xq,qe as Dr,r as qk,ra as Zm,rb as ro,rc as yp,rd as yq,re as Er,s as rk,sa as _m,sb as so,sc as zp,sd as zq,se as Fr,t as sk,ta as $m,tb as to,tc as Ap,td as Aq,te as Gr,u as tk,ua as an,ub as uo,uc as Bp,ud as Bq,ue as Hr,v as uk,va as bn,vb as wo,vc as Cp,vd as Cq,ve as Ir,w as vk,wa as cn,wb as xo,wc as Dp,wd as Dq,we as Jr,x as wk,xa as dn,xb as yo,xc as Ep,xd as Eq,xe as Kr,y as Bk,ya as en,yb as zo,yc as Fp,yd as Fq,ye as Lr,z as Ck,za as fn,zb as Ao,zc as Gp,zd as Gq,ze as Mr}from"./chunk-92g4qya5.js";import{Le as Oo,Me as Po,Ne as Qo,Oe as Ro,Pe as So,Qe as To}from"./chunk-4xgsb361.js";import{Re as ko,Se as lo}from"./chunk-2ver2s2y.js";import{Te as qo}from"./chunk-hnb6kzpe.js";import{Ue as Wm}from"./chunk-81jx0c3x.js";import{Ve as Bn,We as Cn,Xe as Dn,Ye as vo}from"./chunk-y1b6y022.js";import{$e as Jk,Ze as Hk,_e as Ik,af as Kk,bf as Lk,cf as Mk,df as Nk,ef as Ok,ff as Pk,gf as Qk,hf as Rk,if as Sk,jf as Tk,kf as Uk,lf as Vk}from"./chunk-ym3r8ktq.js";import{mf as kl,nf as ll,of as ml,pf as nl,qf as ol,rf as pl,sf as ql,tf as rl,uf as sl,vf as tl,wf as ul,xf as vl}from"./chunk-a50hb40e.js";import{yf as il,zf as jl}from"./chunk-ka5wtqmw.js";import{Af as Wk,Bf as Xk,Cf as Yk,Df as Zk,Ef as _k,Ff as $k,Gf as al,If as bl,Jf as cl,Kf as dl,Lf as el,Mf as fl,Nf as gl,Qf as hl}from"./chunk-zdzd2jb4.js";import{Rf as Dm,Sf as Em,Tf as Fm,Uf as Gm,Vf as Jm,Wf as Vm}from"./chunk-9ewg41dm.js";import{Xf as Hm,_f as Im}from"./chunk-yyy5mk7b.js";import{Ag as Om,Bg as Pm,Cg as Qm,Dg as Rm,Eg as Sm,Fg as Tm,Gg as Um,gg as hm,hg as im,ig as jm,jg as km,kg as lm,lg as mm,mg as nm,ng as om,og as pm,pg as qm,qg as rm,rg as sm,sg as tm,tg as um,ug as vm,vg as wm,wg as Km,xg as Lm,yg as Mm,zg as Nm}from"./chunk-34yzcb00.js";import{Hg as xm,Ig as ym}from"./chunk-dvvx1wny.js";import{Jg as jn,Kg as kn,Lg as ln,Mg as mn,Ng as nn,Og as on,Pg as pn,Qg as qn,Rg as rn,Sg as sn,Tg as tn,Ug as un}from"./chunk-xz3evxqp.js";import{Vg as _h,Wg as $h,Xg as ai,Yg as bi,Zg as ci,_g as di}from"./chunk-ycvxjxhz.js";import{$g as sj,ah as tj,bh as uj,fh as vj,gh as wj,hh as xj}from"./chunk-0gbptqh2.js";import{ih as Dj,jh as Ej,kh as Fj,lh as Gj,mh as Hj,nh as Ij,oh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj}from"./chunk-f044qmn3.js";import{Ah as oj,Bh as pj,Ch as qj,Dh as rj,th as ij,uh as jj,vh as kj,wh as lj,xh as mj,zh as nj}from"./chunk-vd5xvsnv.js";import{Eh as dk,Gh as ek}from"./chunk-64djh88a.js";import{Mh as Bh,Nh as Ch,Oh as Dh,Ph as Eh,Qh as Fh,Rh as Gh,Sh as Hh,Th as Ih,Uh as Jh,Vh as Kh,Wh as Lh,Xh as Mh,Yh as Nh,Zh as Oh}from"./chunk-9368t9jm.js";import{$h as Ph,ai as Qh,bi as Rh,ci as Sh}from"./chunk-5tefa8qb.js";import{hi as Th}from"./chunk-mwh3ymwc.js";import{ii as Xg}from"./chunk-fqq5k9ve.js";import{ji as Yg,ki as Zg}from"./chunk-ya5m5vbn.js";import{li as _g,mi as $g,ni as ah,oi as bh,pi as ch,qi as dh}from"./chunk-y4nzmkea.js";import{ri as eh,si as fh,ti as gh,ui as hh,vi as ih}from"./chunk-7kw3grq5.js";import{Ai as nh,wi as jh,xi as kh,yi as lh,zi as mh}from"./chunk-c79nfdyj.js";import{Bi as oh,Ci as ph,Di as qh,Ei as rh,Fi as sh,Gi as th,Hi as uh}from"./chunk-ej8mv2k6.js";import{Ii as vh,Ji as wh,Ki as xh,Li as yh,Mi as zh,Ni as Ah}from"./chunk-cr8v8k53.js";import{Pi as Ug,Qi as Vg}from"./chunk-8bnpdtjh.js";import{Ti as Wg}from"./chunk-xdnsxn2f.js";import"./chunk-xwxdwqn9.js";import{$i as He,Xi as De,Yi as Ee,Zi as Fe,_i as Ge,aj as Ie,bj as Je,cj as Ke,dj as Le,ej as Me,fj as Ne,gj as Oe,hj as Pe,ij as Qe}from"./chunk-97bbr767.js";import{jj as ff,kj as gf,lj as hf,mj as jf,nj as kf,oj as lf,pj as mf,qj as nf,rj as of,sj as pf,tj as qf,uj as rf,vj as sf,wj as tf,xj as uf,yj as vf,zj as wf}from"./chunk-tph7b269.js";import{Gj as Te,Hj as Ue,Ij as Ve,Jj as We,Kj as Xe,Lj as Ye,Mj as Ze,Nj as _e,Oj as $e,Pj as af,Qj as bf,Rj as cf,Sj as df,Tj as ef}from"./chunk-t41aaehf.js";import{$j as Ef,Uj as xf,Vj as yf,Wj as zf,Xj as Af,Yj as Bf,Zj as Cf,_j as Df,ak as Ff,bk as Gf,ck as Hf,dk as If}from"./chunk-4mftgf8s.js";import{Ak as lr,Bk as mr,Ck as nr,xk as ir,yk as jr,zk as kr}from"./chunk-9wtpnaps.js";import{Dk as xk,Ek as yk,Fk as zk,Gk as Ak,Hk as zm,Ik as Am,Jk as Bm,Kk as Cm}from"./chunk-9ksr8sjy.js";import"./chunk-09zjty4k.js";import"./chunk-6aqsmree.js";import{ul as Yb,vl as Zb,zl as _b}from"./chunk-avqacmvp.js";import{$l as Fb,$m as $c,$n as pe,$o as Uf,$p as Uh,$q as hj,Am as sc,An as Ad,Ap as tg,Aq as Ii,Ar as jk,Bl as xa,Bm as tc,Bn as Bd,Bp as ug,Bq as Ji,Br as kk,Cl as ya,Cm as uc,Cn as Cd,Cp as vg,Cq as Ki,Cr as lk,Dl as za,Dm as vc,Dn as Dd,Dp as wg,Dq as Li,Dr as mk,El as Aa,Em as wc,En as Ed,Ep as xg,Eq as Mi,Er as nk,Fl as Ba,Fm as xc,Fn as Fd,Fp as yg,Fq as Ni,Gl as Ca,Gm as yc,Gn as Gd,Gp as zg,Gq as Oi,Hl as Da,Hm as zc,Hn as Hd,Hp as Ag,Hq as Pi,Il as Ea,Im as Ac,In as Id,Ip as Bg,Iq as Qi,Jl as Fa,Jm as Bc,Jn as Jd,Jp as Cg,Jq as Ri,Kl as Ga,Km as Cc,Kn as Kd,Ko as Kf,Kp as Dg,Kq as Si,Ll as Ha,Lm as Dc,Ln as Ld,Lp as Eg,Lq as Ti,Ml as Ia,Mm as Ec,Mn as Md,Mp as Fg,Mq as Ui,Nl as Ja,Nm as Oc,Nn as Nd,Np as Gg,Nq as Vi,Ol as Ka,Om as Pc,On as Od,Op as Hg,Oq as Wi,Pl as La,Pm as Qc,Pn as Pd,Pp as Ig,Pq as Xi,Ql as Ma,Qm as Rc,Qn as Qd,Qo as Lf,Qp as Jg,Qq as Yi,Rl as Na,Rm as Sc,Rn as fe,Rp as Kg,Rq as Zi,Sl as Oa,Sm as Tc,Sn as ge,So as Mf,Sp as Lg,Sq as _i,Tl as ib,Tm as Uc,Tn as he,Tp as Mg,Tq as $i,Ul as jb,Un as ie,Uo as Nf,Up as Ng,Uq as aj,Vl as kb,Vm as Vc,Vn as je,Vo as Of,Vp as Og,Vq as bj,Wl as lb,Wm as Wc,Wn as ke,Wo as Pf,Wp as Pg,Wq as cj,Xl as mb,Xm as Xc,Xn as le,Xo as Qf,Xp as Qg,Xq as dj,Yl as nb,Ym as Yc,Yn as me,Yo as Rf,Yp as Rg,Yq as ej,Zm as Zc,Zn as ne,Zo as Sf,Zp as Sg,Zq as fj,_m as _c,_n as oe,_o as Tf,_p as Tg,_q as gj,am as Gb,an as ad,ao as qe,ap as Vf,aq as Vh,ar as yj,bm as Hb,bn as bd,bo as re,bp as Wf,bq as Wh,br as zj,cm as Ib,cn as cd,co as se,cp as Xf,cq as Xh,cr as Aj,dm as Jb,dn as dd,dp as Yf,dq as Yh,dr as Bj,em as Nb,en as ed,ep as Zf,eq as Zh,er as Cj,fm as Ob,fn as fd,fp as _f,fq as ei,fr as Oj,gm as Pb,gn as gd,gp as $f,gq as fi,gr as Pj,hm as $b,hn as hd,hp as ag,hq as gi,hr as Qj,im as ac,in as id,io as we,ip as bg,iq as hi,ir as Rj,jm as bc,jn as jd,jo as xe,jp as cg,jq as ii,jr as Sj,km as cc,kn as kd,ko as ye,kp as dg,kq as ji,kr as Tj,lm as dc,ln as ld,lo as ze,lp as eg,lq as ki,lr as Uj,mm as ec,mn as md,mo as Ae,mp as fg,mq as li,mr as Vj,nm as fc,nn as nd,no as Be,np as gg,nq as mi,nr as Wj,om as gc,on as od,oo as Ce,op as hg,oq as ni,or as Xj,pm as hc,pn as pd,pp as ig,pq as oi,pr as Yj,qm as ic,qn as qd,qp as jg,qq as pi,qr as Zj,rm as jc,rn as rd,rp as kg,rq as qi,rr as _j,sm as kc,sn as sd,so as Re,sp as lg,sq as ri,sr as $j,tm as lc,tn as td,to as Se,tp as mg,tq as si,tr as ak,um as mc,un as ud,up as ng,uq as ti,ur as bk,vm as nc,vn as vd,vo as Jf,vp as og,vq as ui,vr as ck,wm as oc,wn as wd,wp as pg,wq as Ei,wr as fk,xm as pc,xn as xd,xp as qg,xq as Fi,xr as gk,ym as qc,yn as yd,yp as rg,yq as Gi,yr as hk,zm as rc,zn as zd,zp as sg,zq as Hi,zr as ik}from"./chunk-zqd4nrqt.js";import{$r as x,$s as qa,As as P,Bs as Q,Cs as R,Ds as S,Es as T,Fr as b,Fs as U,Gr as c,Gs as V,Hr as d,Hs as W,Ir as e,Is as X,Jr as f,Js as Y,Kr as g,Ks as Z,Lr as h,Ls as _,Mr as i,Ms as $,Nr as j,Ns as aa,Or as k,Os as ba,Pr as l,Ps as ca,Qr as m,Qs as da,Rr as n,Rs as ea,Sr as o,Ss as fa,Tr as p,Ts as ia,Ur as q,Us as ja,Vr as r,Vs as ka,Wr as s,Ws as la,Xr as t,Xs as ma,Yr as u,Ys as na,Zr as v,Zs as oa,_r as w,_s as pa,as as y,at as ra,bs as z,bt as sa,cs as A,ct as ta,ds as B,dt as ua,es as C,et as va,fs as D,ft as wa,gs as E,hs as F,is as G,js as H,ks as I,ls as J,ms as K,ns as L,xs as M,ys as N,zs as O}from"./chunk-raxr83fs.js";import{gt as ga,ht as ha}from"./chunk-at84gyvf.js";import{it as Kb,jt as Lb,kt as Mb}from"./chunk-397rqs12.js";import{lt as vi,mt as wi,nt as xi,ot as yi,pt as zi,qt as Ai,rt as Bi,st as Ci,tt as Di}from"./chunk-aqrp68m6.js";import{$t as Mc,Lt as Fc,Mt as Gc,Nt as Hc,Ot as Ic,Pt as Jc,Rt as Kc,_t as Lc,au as Nc}from"./chunk-bcx36g1n.js";import{bu as te,cu as ue,du as ve}from"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import{ku as Qb,lu as Rb,mu as Sb,nu as Tb,ou as Ub,pu as Vb}from"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import{uu as Wb,vu as Xb}from"./chunk-18p8dqya.js";import{Au as Sd,Bu as Td,Cu as Ud,Du as Vd,Eu as Wd,Fu as Xd,Gu as Yd,Hu as Zd,Iu as _d,Ju as $d,Ku as ae,Lu as be,Mu as ce,Nu as de,Ou as ee,zu as Rd}from"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import{$u as vb,Uu as ob,Vu as pb,Wu as qb,Xu as rb,Yu as sb,Zu as tb,_u as ub,av as wb,bv as xb,cv as yb,dv as zb,ev as Ab,fv as Bb,gv as Cb,hv as Db,iv as Eb}from"./chunk-ttny9g8k.js";import{Cv as Ua,Dv as Va,Ev as Wa,Fv as Xa,Gv as Ya,Hv as Za,Iv as _a,Jv as $a,Kv as ab,Lv as bb,Mv as cb,Nv as db,Ov as eb,Pv as fb,Qv as gb,Sv as hb,mv as Pa,nv as Qa,qv as Ra,vv as Sa,wv as Ta}from"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{Rk as writeNetlifyConfig,Lm as writeManifest,ul as writeImageManifest,bp as wrapComponentForHMR,Kr as withDefaults,ck as webComponentDirectiveHandler,Sp as watermark,Uq as watchViews,El as watchMultiple,Fl as watchEffect,Dl as watch,Ae as warmImagePlaceholders,Sl as waitForStore,X as waitForLocale,Po as virtualPathFor,Rj as videoDirective,G as validators,Or as validated,qe as validateValueEnhanced,Vh as validateTemplate,xm as validateRouteRules,Xp as validateParams,re as validateFormEnhanced,Jq as validateFile,me as validateFields,le as validateField,Xh as validateDirective,Ld as validateCspDirectives,kk as validateConfig,Ym as validateComponentScripts,vn as validateComponentProps,Tg as validateClientScript,Sh as v,wc as usesSignalsInScript,ub as usesReactiveRuntime,ii as userComponentFileExists,yh as useVirtualList,Zd as useTitle,Rl as useStoreOrThrow,tp as useStore,Bk as useStorage,of as useSlots,Dk as useSessionStorage,Wb as useServerRuntimeConfig,Kf as useServerData,Wd as useSeoMeta,Xb as useRuntimeConfig,Tl as useRouteParams,Vl as useRouteParamOrThrow,Ul as useRouteParam,Zd as usePageTitle,ef as useOptimistic,tf as useModel,Xl as useMiddlewareValue,Wl as useMiddlewareState,Ck as useLocalStorage,Wo as useLoadingIndicator,Ud as useHead,Ph as useForm,qf as useAttrs,Lq as uploadFiles,Kq as uploadFile,Ol as updateInstance,cf as untrack,yi as unregisterDirective,Pl as unmountInstance,Ec as unescapeHtml,So as typecheckStxFiles,hi as transpileTypeScript,xr as translate,Ba as transitionDirective,dc as transformAutoImports,pn as toUsers,on as toUser,Bp as thumbnail,Cq as thumbHashToRGBA,Dq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,xf as templateCache,bd as syncRecordedResponse,_o as stxClientHelpers,dg as structuredDataDirective,Ar as stripLocalePrefix,um as stripDocumentWrapper,Lb as stripCommentsAndLiterals,$n as stringToStream,zd as strictCspPreset,Le as streamingSuspenseDirective,Pe as streamToResponse,Je as streamTemplateSimple,De as streamTemplate,wk as stopHmrServer,ln as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Te as state,Ng as startsDocument,vo as startProductionServer,qo as startInteractive,kn as startBroadcasting,Cr as stampLocaleLayoutGroup,Ia as staggerDirective,Vp as srcsetUrls,Ja as springDirective,id as splitByPipe,qm as spaNavVaryHeaders,Qo as sourcePathFor,aq as smartBatchSign,ki as slotContentHasExpressions,_p as signUrl,fi as shouldTranspileTypeScript,tk as shouldReloadOnChange,dq as shouldRefreshSignature,uk as shouldIgnoreFile,qh as shouldCacheComponent,Fp as sharpen,Rr as shape,Sb as setStateDir,$l as setRouteParams,am as setMiddlewareState,ze as setImagePlaceholder,hf as setGlobalProvide,b as setErrorLocale,wl as setCurrentInstance,Fj as setCachedVideoResult,uj as setCachedImageResult,oj as setCached,Ur as serveStxFile,Wr as serveMultipleStxFiles,ok as serveMarkdownFile,Go as serveFile,Xr as serveApp,Fo as serve,ep as serializeState,Nm as serializeSetCookie,Hp as sepia,Xd as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Vj as scopeHTML,Uj as scopeCSS,gg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Lp as saturation,Yp as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Yf as runPreProcessingMiddleware,Zf as runPostProcessingMiddleware,Qm as runPageAction,Ze as runMountCallbacks,gb as runMiddleware,Ml as runHooks,qr as runDoctor,_e as runDestroyCallbacks,lg as runComposers,Mp as rotate,Th as rewriteImagesWithSiblings,cd as responseBindings,oi as resolveTemplatePath,ha as resolveStxTargets,gk as resolveStxDirectories,wr as resolveI18n,zp as resize,Cc as resetRejectedExpressionWarnings,jc as resetPlaceholders,Td as resetHead,dp as resetHMRHandler,o as resetErrorConfig,Mr as required,nc as replacePlaceholders,Sq as renderView,Oj as renderVideoComponent,ac as renderVendorStyleTags,$q as renderToString,ar as renderToStream,br as renderToDOM,Bq as renderThumbhashToCanvas,nr as renderTemplateString,lr as renderTemplate,mr as renderString,Ge as renderStreamingPage,ai as renderSlot,gh as renderSSRSuspense,lq as renderProtectedVideo,kq as renderProtectedImg,Zp as renderMediaUpload,kr as renderMarkdownView,Bm as renderLayoutTypes,yj as renderImgComponent,kl as renderImageComponent,$d as renderHtmlAttrs,_d as renderHead,Vq as renderEmail,mi as renderComponentWithSlot,ae as renderBodyAttrs,op as render,Bd as relaxedCspPreset,ke as registerValidationRule,Ne as registerStreamingDirectives,vp as registerStoresClient,Zl as registerStore,eg as registerSeoDirectives,_a as registerMiddleware,rc as registerFilters,qc as registerFilter,d as registerErrorMessages,pe as registerEnhancedValidationRule,vi as registerDirective,Kd as registerCspDirectives,yn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,Al as ref,io as redirect,Zc as recordResponseStatus,_c as recordResponseHeader,Vb as rebaseOntoStateDir,$c as readResponseStatus,ad as readResponseHeaders,mk as readMarkdownFile,yf as readFileCached,Bl as reactive,Qp as quality,iq as pruneSignatureCache,rj as pruneCache,ff as provide,jr as protectCodeBlocks,Lr as prop,og as processVueTemplate,wh as processVirtualListDirectives,Ah as processVirtualGridDirectives,Nj as processVideo,ne as processValidateDirective,ea as processTranslateDirective,ah as processTransitionDirectives,dh as processTransitionAttributes,de as processTitleDirective,Rc as processTemplateBindings,Yg as processTeleportDirectives,eh as processSuspenseDirectives,$f as processStructuredData,He as processStreamDirectives,dd as processStatusDirective,Nh as processStaticDirectives,Wf as processStackReplacements,Vf as processStackPushDirectives,bi as processSlots,sm as processShell,Ce as processServerBindings,ag as processSeoDirective,Oe as processSectionDirectives,Jc as processScopedStyles,Pc as processReactiveBindings,mq as processProtectedMedia,Gh as processPartialHydrationDirectives,Sg as processOnceDirective,Xf as processMiddleware,_f as processMetaDirectives,ee as processMetaDirective,nk as processMarkdownFileDirectives,ti as processMarkdownDirectives,Qf as processLoops,oh as processKeepAliveDirectives,Rg as processJsonDirective,zh as processInfiniteListDirectives,Uf as processIncludes,Aj as processImgComponents,ml as processImageComponents,$k as processImage,ce as processHeadDirective,ge as processForms,ie as processFormInputDirectives,Ac as processExpressions,Ib as processEventDirectives,je as processErrorDirective,pg as processDynamicComponents,Uh as processDirectives,Di as processDirectiveAttributes,Xg as processDeferDirectives,Pd as processCustomDirectives,Hd as processCspDirectives,Sr as processComponentProps,ic as processClientScript,he as processBasicFormDirectives,jh as processAsyncDirectives,Qd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ve as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,Vo as preloadIslandHandlers,Be as preloadIconCollection,fn as poolStrings,ek as pluginManager,xe as placeholdersWarmed,$g as performLeave,_g as performEnter,$e as pendingLifecycleCounts,df as peek,Rf as partialsCache,Pj as parseVideoDirectiveOptions,xp as parseUrl,Eq as parseThumbhashString,od as parseSwitchBlock,_h as parseSlots,$h as parseSlotElement,td as parseScriptDeclarations,ak as parseSFCComponent,nq as parseProtectedArgs,Pf as parseLoopBinding,zj as parseImgComponent,Ri as parseImageUrl,ll as parseImageComponent,Om as parseFormBody,qd as parseExpressionWithFilters,zn as parseDefaults,fo as parseCookies,jm as parseContainerSelector,ld as parseConditionalBlock,rd as parseArguments,Ma as parseAnimationShorthand,Nr as optional,gn as optimizeTemplate,rl as optimizeImage,sl as optimizeDirectory,Pr as oneOf,Sf as onceStore,Jl as onUpdated,Oc as onUpdate,Ll as onUnmounted,em as onServer,Hl as onMounted,Xe as onMount,Mh as onHydrated,mf as onErrorCaptured,Ye as onDestroy,uh as onDeactivated,dm as onClient,Il as onBeforeUpdate,Kl as onBeforeUnmount,Gl as onBeforeMount,th as onActivated,xq as observeElement,jo as notFound,ug as normalizeCriticalHeadOrder,lf as nextTick,Cn as negotiateEncoding,Ua as navigateTo,Nl as mountInstance,Ea as motionDirective,Ad as moderateCspPreset,en as minifyHtml,cg as metaDirective,Fg as metaDedupKey,yp as mergeParams,Hg as mergeHtmlAttrs,Vd as mergeHeadConfigs,Gc as mergeCssConfig,Ed as mergeCspDirectives,Ra as matchRoute,ui as markdownDirectiveHandler,lk as markdownCache,ga as looksLikeGlob,zr as localizePath,U as loadTranslationLazy,_ as loadTranslation,hk as loadStxConfig,db as loadMiddlewareFromDirectory,Mm as loadManifest,tq as loadElement,mn as loadChannels,Gr as lintStxStrict,vq as lazyLoadAll,uq as lazyLoad,Ha as keyframeDirective,Zq as jsxs,_q as jsxDEV,Yq as jsx,ho as jsonResponse,Me as islandDirective,l as isTest,vm as isSpaNavigation,om as isSpaNavRequest,bq as isSignatureValid,af as isSignal,Zk as isSharpAvailable,Un as isServerEnvironment,bm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,qq as isNativeLazySupported,ir as isMarkdownPath,Q as isLoading,R as isLoaded,ei as isJavaScriptScript,rq as isIntersectionObserverSupported,fl as isImageFile,_k as isImageBackendAvailable,aa as isICUFormat,Lh as isHydrated,ji as isHydrateTrigger,Xc as isHttpStatus,Tn as isEdgeEnvironment,Hr as isDirectiveKind,k as isDevelopment,bf as isDerived,sk as isCssOnlyChange,Bn as isCompressible,cm as isClient,lh as isAsyncComponent,Pm as isActionableMethod,Ip as invert,Af as invalidateFileCacheByDir,zf as invalidateFileCache,zc as interpolateScriptsInTemplate,xc as interpolateScriptExpressions,yc as interpolateScriptAttributes,x as inlineError,vr as injectThemeBootstrap,bg as injectSeoTags,sr as injectSeo,Jf as injectRouterScript,rk as injectHotReload,kb as injectHeatmap,Nc as injectCss,Fd as injectCspMetaTag,Pg as injectConfigHeadTags,tg as injectColorModeBootScript,Jg as injectCloakStyle,Ag as injectBuildId,cc as injectBrowserCoreAutoImports,Tc as injectAnalytics,gf as inject,Yl as initStoreRegistry,Uk as initNetlify,Xo as initLoadingIndicator,sq as initLazyLoading,po as initFile,Aq as initBlurUp,Gq as initAllBlurUp,Cj as imgDirective,pl as imageDirective,Tm as hydrateTemplateStream,Sm as hydrateTemplate,Uo as hydrateIslands,Ih as hydrateIsland,Um as hydrateFragment,Jh as hydrateByStrategy,Kh as hydrateAll,lp as hydrate,Eo as htmlResponse,Lg as hoistLeadingHeadTags,vg as hoistColorModeBootScript,lb as heatmapDirective,kj as hashString,If as hashFilePath,ij as hashFile,jj as hashBuffer,ng as hasVueTemplateSyntax,Of as hasVariables,qp as hasStore,oc as hasPlaceholders,Sk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Og as hasDocumentShell,Yh as hasDirectives,ma as hasDOMSupport,il as handleImageRequest,nf as handleError,fr as h,el as groupVariantsByFormat,Gp as grayscale,xo as gitHash,_m as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Nk as getTotalSize,cq as getTimeUntilExpiry,Ug as getStoreScript,rp as getStoreNames,pp as getStore,Gk as getStorageSize,Fk as getStorageKeys,pi as getSourceLineInfo,gi as getSharedTranspiler,Ef as getServeClientAsset,la as getScreenReaderOnlyStyle,Wj as getScopeAttribute,Se as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,Wh as getPositionInfo,lc as getPlaceholderRegistry,hj as getPlaceholderCacheStats,Sd as getPageMeta,vd as getNonce,gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,we as getImagePlaceholder,al as getImageMetadata,te as getImageDelivery,kp as getHydrationRuntime,_l as getHydratedStoreState,vk as getHmrServer,Rd as getHead,cp as getHMRHandler,Vi as getFormatExtension,mj as getFileMtime,dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,xi as getDirectives,wi as getDirective,xl as getCurrentInstance,Kc as getCssServeAsset,Dd as getCspPreset,Md as getCspHeaderName,si as getComponentCacheStats,Ej as getCachedVideoResult,gq as getCachedSignature,Cf as getCachedSignalsRuntime,Df as getCachedRouterScript,fj as getCachedPlaceholder,tj as getCachedImageResult,nj as getCached,qj as getCacheStats,yg as getBuildId,jn as getBroadcastServer,Ui as getBestVariant,sc as getAllFilters,Ii as generateWidthSrcset,xh as generateVirtualListCSS,Nq as generateVideoPreview,se as generateValidationScript,Oq as generateUploadRuntime,$m as generateTreeShakenBundle,ch as generateTransitionRuntime,bh as generateTransitionCSS,Ij as generateThumbnails,_i as generateThumbhashPlaceholder,Ln as generateTemplatesDocs,ih as generateSuspenseRuntime,hh as generateSuspenseCSS,fp as generateStateScript,Si as generateSrcsetData,xj as generateSrcset,bl as generateSrcSet,Jj as generateSpriteSheet,Wq as generateSpaShell,Ti as generateSourceTags,Oi as generateSizesFromBreakpoints,Ni as generateSizesAttribute,cl as generateSizes,fg as generateSitemapIndex,tr as generateSitemap,pq as generateSimpleMediaPicker,jq as generateSignatureRuntime,wf as generateSignalsRuntimeDev,vf as generateSignalsRuntime,hc as generateServerDataBridge,Tj as generateScopeId,bk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,hg as generateRobotsTxt,ur as generateRobots,wj as generateResponsiveVariants,Zj as generateReactiveWebComponentTS,Yj as generateReactiveWebComponent,$j as generateReactiveRuntime,_j as generateReactiveMixin,Hj as generatePoster,ej as generatePlaceholderStyle,dj as generatePlaceholderCSS,Zi as generatePlaceholder,Hh as generatePartialHydrationCSS,ud as generateNonce,Ok as generateNetlifyToml,Qq as generateMinifiedMediaRuntime,Pq as generateMediaRuntime,oq as generateMediaManagerEmbed,Km as generateManifest,Zo as generateLoadingIndicatorHtml,zq as generateLazyLoadRuntime,Cm as generateLayoutTypes,aj as generateLQIP,sh as generateKeepAliveRuntime,rh as generateKeepAliveCSS,Oh as generateIslandManifest,Mq as generateImagePreview,tl as generateImageManifest,jp as generateHydrationScript,Qe as generateHydrationRuntime,mp as generateHydrationCSS,Bh as generateHydrationBootstrap,qk as generateHotReloadScript,jb as generateHeatmapScript,ap as generateHMRClientScript,Kj as generateHLSManifest,gp as generateEventBindings,Mi as generateDprSrcsetWithVariableQuality,Li as generateDprSrcset,Mg as generateDocumentShell,Qn as generateDocs,Mn as generateDirectivesDocs,Ci as generateDirectiveRuntime,ig as generateDefaultRobotsTxt,Lj as generateDASHManifest,Mc as generateCss,yd as generateCspMetaTag,xd as generateCspHeader,sf as generateCompositionRuntime,Kn as generateComponentsDocs,Ch as generateComponentManifest,In as generateComponentDoc,cj as generateColorPlaceholder,sg as generateColorModeBootScript,Ql as generateClientRuntime,lj as generateCacheKey,fc as generateBrowserAutoImportDestructuring,Hq as generateBlurUpRuntime,Iq as generateBlurUpCSS,Qc as generateBindingsRuntime,Ji as generateAutoWidthSrcset,ec as generateAutoImportDestructuring,nh as generateAsyncComponentRuntime,mh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Sc as generateAnalyticsScript,To as formatTypecheckDiagnostics,No as formatTypeErrors,mo as formatStxContent,Mk as formatSize,Ta as formatRoutes,no as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,rr as formatDoctorReport,Nn as formatDocsAsMarkdown,Pn as formatDocsAsJson,On as formatDocsAsHtml,Pp as format,dn as foldConstants,Op as flipVertical,Np as flipHorizontal,Dm as fingerprint,Ro as findRuntimeTypeDeclarations,pr as findPantryPackage,kd as findMatchingEndTag,gd as findMatchingDelimiter,Kb as findInterpolationEnd,md as findIfBlocks,pd as findExpressions,Sa as findErrorPage,Hc as findDuplicateScopedStyleRanges,nd as findDirectiveBlocks,an as findDeadCode,an as findDeadBranches,km as findContainerRegion,Jn as findComponentFiles,Vr as findCommonDir,Lk as filterRequiredFiles,ni as fileExists,Lf as extractVariables,Im as extractTemplateExpressions,Ie as extractStreamBoundaries,hp as extractState,ci as extractSlotContent,Nf as extractScriptFromTemplate,Hm as extractScriptBlocks,mc as extractPlaceholders,jd as extractParenthesizedExpression,Yc as extractPageResponseStatus,hb as extractLayoutMetadata,bj as extractDominantColor,sd as extractDirectiveParams,Zh as extractDirectiveNames,wm as extractContainerContent,Gn as extractComponentProps,Dh as extractComponentName,Hn as extractComponentDescription,Lc as extractClassNames,gc as extractBridgeData,Eh as extractBoundProps,hd as extractBalancedExpression,$b as extractAndStripCssImports,Xj as extractAndScopeStyles,Hb as extractAndProcessEvents,zk as externalizeSharedAssets,Ak as externalizeRepeatedAssets,yk as externalizeHtml,Dc as evaluateExpression,cn as evaluateConstant,ed as evaluateAuthExpression,vc as escapeHtmlValue,uc as escapeHtml,C as errorRecovery,E as errorLogger,Zg as ensureTeleportTargets,Qg as ensureDocumentShell,oe as enhancedValidationRules,En as enableDevTools,bn as eliminateDeadCode,Ve as effect,Wp as dprUrls,Rn as docsCommand,Yb as discoverServerApi,Am as discoverLayoutNames,yq as disconnectObserver,Fn as disableDevTools,F as devHelpers,rm as detectShell,Sn as detectRuntime,Pk as detectProjectConfig,Wi as detectFormat,Xm as detectBuildMode,Ue as derived,Tk as deploy,jk as defineStxConfig,up as defineStore,pf as defineSlots,Fr as defineSiteConfig,Jr as definePropsWithValidation,Ir as defineProps,dk as definePlugin,Yd as definePageMeta,Wa as defineMiddleware,Qh as defineForm,kf as defineExpose,jf as defineEmits,zi as defineDirective,hr as defineCustomElement,uo as defineConfig,Ai as defineClientDirective,kh as defineAsyncComponent,wo as defineApiHandler,Rq as defaultMediaConfig,vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,fe as defaultFormClasses,pc as defaultFilters,Od as defaultCspConfig,fk as defaultConfig,Tr as default,Fc as deepMergeThemes,Ic as dedupeScopedStyles,nm as decodeTitleEntities,$i as decodeThumbhash,Jd as cspNonceDirective,Id as cspDirective,Fq as crossfadeTransition,Ap as crop,vh as createVirtualList,Qj as createVideoDirective,co as createVercelHandler,Ko as createTypeChecker,fa as createTranslateFilter,_n as createTextEncoderStream,gr as createStxApp,Zn as createStreamingResponse,Ke as createStreamRenderer,sp as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,zl as createScope,fh as createSSRSuspense,Re as createRouter,ym as createRouteRuleResolver,eb as createRouteLocation,Io as createRoute,Al as createRef,Bl as createReactive,rf as createProvideContext,zo as createProject,to as createProductionBuild,kc as createPlaceholder,hn as createOptimizedBuild,eo as createNetlifyHandler,Hk as createNetlifyClient,fb as createMiddlewareContext,Ho as createMiddleware,wq as createLazyObserver,ph as createKeepAliveCache,Wn as createKVNamespace,Fh as createIslandRegistry,Bj as createImgDirective,ql as createImagePlugin,jl as createImageHandler,ol as createImageDirective,nb as createHeatmapAggregator,Kk as createFileManifest,Vn as createEnvAccessor,z as createEnhancedError,Yn as createEdgeHandler,Xn as createEdgeCache,qi as createDetailedErrorMessage,bo as createDenoHandler,Qk as createDefaultNetlifyConfig,Nd as createCspHeaders,go as createCookie,Cl as createComputed,yl as createComponentInstance,ao as createCloudflareHandler,Ya as createClientCookieManager,Bi as createBuiltinDirectives,gr as createApp,Ka as createAnimationTimeline,Dp as cover,Mf as convertToCommonJS,Kp as contrast,Cp as contain,y as consoleError,m as configureErrorHandling,ik as config,Cl as computed,Dn as compressResponse,kg as composerPattern,jg as composer,tm as composeShellWithPage,xn as componentDirective,li as componentClientSignalNames,Jm as compileTemplate,a as collectRepeatedFlag,Jk as collectDeployFiles,Kg as cloakStyleFragment,Gj as clearVideoCache,N as clearTranslationCache,Vg as clearStoreCache,Ek as clearStorage,hq as clearSignatureCache,uf as clearServerData,gj as clearPlaceholderCache,Tf as clearOnceStore,wd as clearNonce,bb as clearMiddleware,ye as clearImagePlaceholders,ue as clearImageDeliveryCatalog,nl as clearImageCache,e as clearErrorMessages,Ff as clearDevCaches,tc as clearCustomFilters,mg as clearComposers,Wg as clearComposableCache,ri as clearComponentCache,pj as clearCache,Db as clearBlankCache,Yo as cleanupLoadingIndicator,hm as classifyScript,im as classifyAllScripts,Lo as checkTemplateFile,Mo as checkTemplate,Gf as checkCache,eq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,sn as channel,lo as captureScreenshots,ko as captureScreenshot,Z as cancelPendingLoads,Ik as calculateSha1,Ki as calculateOptimalWidths,Hf as cacheTemplate,Sj as buildWebComponents,Oo as buildVirtualSource,Tq as buildViews,wp as buildUrl,Ee as buildSuspenseResolveScript,Er as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Em as buildRuntimeAsset,Fm as buildRouterAsset,Dr as buildLangPickerScript,Qi as buildImageUrl,Bg as buildIdFragment,Gg as buildHtmlAttrs,Vm as buildForProduction,An as buildComponentLibrary,fq as buildAuthParams,Wm as buildApp,Br as buildAlternateLinks,so as build,qn as broadcastPrivate,rn as broadcastPresence,nn as broadcast,Jp as brightness,Mb as bracketDepths,Ep as blur,Eb as blankInertHtmlRegions,$p as batchSignUrls,We as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Rp as auto,ja as attributeValue,Gm as assetTags,Fb as asInvocableStatement,Qr as arrayOf,yr as applyTranslations,vj as applyTransformations,di as applySlots,wn as applyPropDefaults,Up as applyPreset,Ig as applyHtmlAttrs,be as applyHead,Bc as applyFilters,pm as appendVary,Cd as apiCspPreset,Da as animationGroupDirective,Mj as analyzeVideo,Zm as analyzeUsage,fm as analyzeTemplate,gm as analyzeProject,Zm as analyzeDirectiveUsage,Uc as analyticsDirective,Co as addStore,Bo as addPage,Gd as addNonceToInlineContent,Do as addLayout,Ao as addComponent,Rm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Bf as __setSignalsGeneratorsForTest,zg as __setBuildIdForTest,Dj as VideoProcessorCache,Rh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,fd as Tokenizer,Jo as TemplateTypeChecker,oo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,cr as Show,Fe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,lm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Vc as RESPONSE_STATUS_KEY,Wc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,ro as ProductionBuild,er as Portal,yo as PROJECT_TEMPLATES,Tp as PRESETS,sb as NON_CLIENT_PRIMITIVES,np as MemorySessionStore,Hi as MIME_TYPES,Ei as MEDIA_DEFAULT_WIDTHS,Gi as MEDIA_DEFAULT_FORMATS,zm as LAYOUT_TYPES_FILE,sj as ImageProcessorCache,hl as ImageProcessingError,ip as HydrationRuntime,pk as HotReloadServer,mb as HeatmapAggregator,Eg as HTML_CLASS_MARKER,Dg as HTML_ATTRS_MARKER,Xq as Fragment,dr as For,mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,xk as EXTERNALIZED_ASSET_DIR,Vk as DeployError,Wk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Yk as DEFAULT_QUALITY,Xi as DEFAULT_PLACEHOLDER_OPTIONS,Xk as DEFAULT_FORMATS,Fi as DEFAULT_DPR_VALUES,$o as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Pi as COMMON_SIZES,qg as COLOR_MODE_BOOT_MARKER,rg as COLOR_MODE_BOOT_GLOBAL,Cg as CLOAK_STYLE,un as BroadcastServer,tn as Broadcast,wg as BUILD_ID_META,xg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Yi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,or as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Mo as a,No as b,Oo as c,Po as d,Qo as e,Ro as f,So as g,To as h,Uo as i,Vo as j}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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{Mo as a,No as b,Oo as c,Po as d,Qo as e,Ro as f,So as g,To as h,Uo as i,Vo as j}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.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{Qo as a,So as b,Uo as c,Vo as d,aq as e,bq as f,cq as g,dq as h,eq as i,fq as j,gq as k,hq as l,iq as m,jq as n,kq as o,lq as p,mq as q,nq as r,oq as s,pq as t,qq as u,rq as v,sq as w,tq as x}from"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{e as validateTemplate,g as validateDirective,n as userComponentFileExists,m as transpileTypeScript,p as slotContentHasExpressions,k as shouldTranspileTypeScript,t as resolveTemplatePath,r as renderComponentWithSlot,j as isJavaScriptScript,o as isHydrateTrigger,d as hasVariables,h as hasDirectives,u as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,x as getComponentCacheStats,s as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,v as createDetailedErrorMessage,b as convertToCommonJS,q as componentClientSignalNames,w as clearComponentCache};
2
+ import{Qo as a,So as b,Uo as c,Vo as d,aq as e,bq as f,cq as g,dq as h,eq as i,fq as j,gq as k,hq as l,iq as m,jq as n,kq as o,lq as p,mq as q,nq as r,oq as s,pq as t,qq as u,rq as v,sq as w,tq as x}from"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{e as validateTemplate,g as validateDirective,n as userComponentFileExists,m as transpileTypeScript,p as slotContentHasExpressions,k as shouldTranspileTypeScript,t as resolveTemplatePath,r as renderComponentWithSlot,j as isJavaScriptScript,o as isHydrateTrigger,d as hasVariables,h as hasDirectives,u as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,x as getComponentCacheStats,s as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,v as createDetailedErrorMessage,b as convertToCommonJS,q as componentClientSignalNames,w as clearComponentCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{qu as a,ru as b}from"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-jryjwara.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
2
+ import{qu as a,ru as b}from"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-jryjwara.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ui as x,Vi as F,Wi as R}from"./chunk-xwxdwqn9.js";import{fm as K,hq as T,yr as k}from"./chunk-hyab7cw0.js";import{Pu as y,Qu as N}from"./chunk-xcsf7my7.js";import{Uu as v}from"./chunk-ttny9g8k.js";import j from"path";var P=new Map,E=new Map,h=["composables","functions"];function D(q){let z=j.basename(q,".ts");return z==="index"||z==="types"||q.endsWith(".d.ts")}async function f(q){if(q)return j.resolve(q);let z=`<default>:${process.cwd()}`,W=E.get(z);if(W!==void 0)return W;let H=await u();if(H!==null)E.set(z,H);return H}async function u(){let q=await k(),z=q.root||process.cwd(),W=q.composablesDir;if(W)return j.resolve(z,W);for(let H of h){let Q=j.resolve(z,H);try{let V=new Bun.Glob("**/*.ts");for await(let Z of V.scan({cwd:Q,absolute:!0}))if(!D(Z))return Q}catch{}}return null}async function b(q){let z=Array.isArray(q)?q:q?[j.resolve(q)]:(await k())._layerComposableDirs??[await f()].filter((H)=>!!H),W=new Map;for(let H of z){let Q=new Bun.Glob("**/*.ts");try{for await(let V of Q.scan({cwd:H,absolute:!0})){let Z=j.relative(H,V);if(!D(V)&&!W.has(Z))W.set(Z,V)}}catch{}}return{key:z.join("\x00"),files:[...W.values()].sort()}}async function o(q){let{files:z}=await b(q),W=T({loader:"ts",target:"browser",define:K()}),H=[];for(let Q of z)try{let V=await Bun.file(Q).text(),Z=W.scan(V).exports.filter(($)=>$!=="default");if(Z.length>0)H.push({file:Q,names:Z})}catch{}return H}function p(q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(q)}function m(q,z,W){let H=new Map;for(let{file:$,names:G}of q)for(let O of G)if(!H.has(O))H.set(O,$);let Q=($)=>{let G=[];for(let[O,U]of H)if(p($,O))G.push(U);return G},V=new Set,Z=W.flatMap(Q);while(Z.length>0){let $=[];for(let G of Z){if(V.has(G))continue;V.add(G);for(let O of Q(z.get(G)??""))if(!V.has(O))$.push(O)}Z=$}return V}async function e(q,z,W){let{key:H,files:Q}=await b(q);if(!H)return null;let V=x(Q);if(Q.length===0)return R(P,H,V,""),null;Q.sort();let Z=T({loader:"ts",target:"browser",define:K()}),$=new Map,G=[];for(let J of Q)try{let Y=await Bun.file(J).text();$.set(J,Y);let L=Z.scan(Y).exports.filter((X)=>X!=="default");if(L.length>0)G.push({file:J,names:L})}catch{$.set(J,"")}let O=z===void 0?new Set(Q):m(G,$,W?[z,...W]:[z]);if(O.size===0)return null;let U=Q.filter((J)=>O.has(J)),A=`${H}\x00${U.join("\x00")}`,B=F(P,A,V);if(B!==void 0)return B||null;let M=[],w=new Set,I=new Set;for(let J of U)try{let Y=$.get(J)??await Bun.file(J).text(),L=j.basename(J,".ts");for(let X of Y.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 Z.scan(Y).exports)if(X!=="default")w.add(X)}catch{}Y=y(Y),Y=N(Y),Y=Y.replace(/^export\s+(default\s+)?/gm,""),Y=Z.transformSync(Y),M.push(`// Composable: ${L}
2
+ import{Ui as x,Vi as F,Wi as R}from"./chunk-xwxdwqn9.js";import{fm as K,hq as T,yr as k}from"./chunk-zqd4nrqt.js";import{Pu as y,Qu as N}from"./chunk-xcsf7my7.js";import{Uu as v}from"./chunk-ttny9g8k.js";import j from"path";var P=new Map,E=new Map,h=["composables","functions"];function D(q){let z=j.basename(q,".ts");return z==="index"||z==="types"||q.endsWith(".d.ts")}async function f(q){if(q)return j.resolve(q);let z=`<default>:${process.cwd()}`,W=E.get(z);if(W!==void 0)return W;let H=await u();if(H!==null)E.set(z,H);return H}async function u(){let q=await k(),z=q.root||process.cwd(),W=q.composablesDir;if(W)return j.resolve(z,W);for(let H of h){let Q=j.resolve(z,H);try{let V=new Bun.Glob("**/*.ts");for await(let Z of V.scan({cwd:Q,absolute:!0}))if(!D(Z))return Q}catch{}}return null}async function b(q){let z=Array.isArray(q)?q:q?[j.resolve(q)]:(await k())._layerComposableDirs??[await f()].filter((H)=>!!H),W=new Map;for(let H of z){let Q=new Bun.Glob("**/*.ts");try{for await(let V of Q.scan({cwd:H,absolute:!0})){let Z=j.relative(H,V);if(!D(V)&&!W.has(Z))W.set(Z,V)}}catch{}}return{key:z.join("\x00"),files:[...W.values()].sort()}}async function o(q){let{files:z}=await b(q),W=T({loader:"ts",target:"browser",define:K()}),H=[];for(let Q of z)try{let V=await Bun.file(Q).text(),Z=W.scan(V).exports.filter(($)=>$!=="default");if(Z.length>0)H.push({file:Q,names:Z})}catch{}return H}function p(q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(q)}function m(q,z,W){let H=new Map;for(let{file:$,names:G}of q)for(let O of G)if(!H.has(O))H.set(O,$);let Q=($)=>{let G=[];for(let[O,U]of H)if(p($,O))G.push(U);return G},V=new Set,Z=W.flatMap(Q);while(Z.length>0){let $=[];for(let G of Z){if(V.has(G))continue;V.add(G);for(let O of Q(z.get(G)??""))if(!V.has(O))$.push(O)}Z=$}return V}async function e(q,z,W){let{key:H,files:Q}=await b(q);if(!H)return null;let V=x(Q);if(Q.length===0)return R(P,H,V,""),null;Q.sort();let Z=T({loader:"ts",target:"browser",define:K()}),$=new Map,G=[];for(let J of Q)try{let Y=await Bun.file(J).text();$.set(J,Y);let L=Z.scan(Y).exports.filter((X)=>X!=="default");if(L.length>0)G.push({file:J,names:L})}catch{$.set(J,"")}let O=z===void 0?new Set(Q):m(G,$,W?[z,...W]:[z]);if(O.size===0)return null;let U=Q.filter((J)=>O.has(J)),A=`${H}\x00${U.join("\x00")}`,B=F(P,A,V);if(B!==void 0)return B||null;let M=[],w=new Set,I=new Set;for(let J of U)try{let Y=$.get(J)??await Bun.file(J).text(),L=j.basename(J,".ts");for(let X of Y.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 Z.scan(Y).exports)if(X!=="default")w.add(X)}catch{}Y=y(Y),Y=N(Y),Y=Y.replace(/^export\s+(default\s+)?/gm,""),Y=Z.transformSync(Y),M.push(`// Composable: ${L}
3
3
  ${Y.trim()}`)}catch(Y){console.warn(`[stx] Failed to load composable ${J}:`,Y)}if(M.length===0||w.size===0)return R(P,A,V,""),null;let g=[...w].map((J)=>` try { __c[${JSON.stringify(J)}] = ${J}; } catch (e) {}`).join(`
4
4
  `),S=JSON.stringify([...w]),C=M.join(`
5
5
 
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Pi as a,Qi as b}from"./chunk-fh9hezm1.js";import"./chunk-xwxdwqn9.js";import"./chunk-rjdkq7m0.js";import"./chunk-6rzvmr1r.js";import"./chunk-hyab7cw0.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-m9rfkx0e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-yeqa5wxm.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{a as getStoreScript,b as clearStoreCache};
2
+ import{Pi as a,Qi as b}from"./chunk-8bnpdtjh.js";import"./chunk-xwxdwqn9.js";import"./chunk-6aqsmree.js";import"./chunk-avqacmvp.js";import"./chunk-zqd4nrqt.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-bcx36g1n.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-df1mx1s1.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-5kh5dr9k.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{a as getStoreScript,b as clearStoreCache};