@stacksjs/stx 0.2.403 → 0.2.404

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 (181) hide show
  1. package/dist/app-shell.d.ts +12 -0
  2. package/dist/app-shell.js +13 -1
  3. package/dist/{chunk-4bb28mz5.js → chunk-015p3jq5.js} +1 -1
  4. package/dist/{chunk-saf4xhac.js → chunk-0n054h7w.js} +1 -1
  5. package/dist/{chunk-nn42gs3q.js → chunk-0nhpymyy.js} +1 -1
  6. package/dist/{chunk-msecn1gm.js → chunk-0seyntda.js} +1 -1
  7. package/dist/{chunk-tte381m0.js → chunk-0svp7s94.js} +21 -21
  8. package/dist/{chunk-h7qv6sc5.js → chunk-0tnsyynz.js} +1 -1
  9. package/dist/{chunk-g64qyhhb.js → chunk-1n2ng8nx.js} +1 -1
  10. package/dist/{chunk-9rp8f7jz.js → chunk-1phxzej9.js} +2 -2
  11. package/dist/{chunk-5kzcyx1w.js → chunk-1vrk5y92.js} +1 -1
  12. package/dist/{chunk-szcxpbfn.js → chunk-1x6c4ys1.js} +2 -2
  13. package/dist/{chunk-mnk5mdwp.js → chunk-245ft0zp.js} +1 -1
  14. package/dist/{chunk-cpx2gkpr.js → chunk-2ched9vj.js} +1 -1
  15. package/dist/{chunk-m2z8dygn.js → chunk-2q216yrr.js} +3 -3
  16. package/dist/{chunk-kdqcb0r5.js → chunk-2r399td7.js} +1 -1
  17. package/dist/chunk-31pm3z44.js +2 -0
  18. package/dist/{chunk-j665en0c.js → chunk-36rnwhn2.js} +1 -1
  19. package/dist/{chunk-ddh21d04.js → chunk-3sea73fx.js} +1 -1
  20. package/dist/{chunk-gs67nnfb.js → chunk-46zx4pt8.js} +1 -1
  21. package/dist/chunk-4j9n5z1q.js +2 -0
  22. package/dist/{chunk-683tfkz4.js → chunk-4m4n1sfc.js} +1 -1
  23. package/dist/{chunk-v54tq312.js → chunk-4md4tj27.js} +1 -1
  24. package/dist/{chunk-fj6fbqgb.js → chunk-4n6ekt06.js} +1 -1
  25. package/dist/{chunk-vr5benrm.js → chunk-4qjfwxn2.js} +1 -1
  26. package/dist/{chunk-fpqz7msz.js → chunk-4tsjysng.js} +1 -1
  27. package/dist/{chunk-fwc5p9bn.js → chunk-503wfstj.js} +1 -1
  28. package/dist/{chunk-092qw0ps.js → chunk-55g4qm7m.js} +1 -1
  29. package/dist/{chunk-d6rkgay9.js → chunk-59pakqdv.js} +2 -2
  30. package/dist/chunk-65ddb2cs.js +2 -0
  31. package/dist/chunk-68gspceh.js +2 -0
  32. package/dist/{chunk-mwh3ymwc.js → chunk-6de3hczw.js} +1 -1
  33. package/dist/{chunk-8ghwewek.js → chunk-7ba7x6jt.js} +2 -2
  34. package/dist/{chunk-mjearf0g.js → chunk-7q06md6v.js} +1 -1
  35. package/dist/{chunk-baa5pana.js → chunk-81zw5vw5.js} +1 -1
  36. package/dist/{chunk-x1c4vcds.js → chunk-83tefmh1.js} +1 -1
  37. package/dist/{chunk-eby93tx5.js → chunk-86evvtw4.js} +1 -1
  38. package/dist/{chunk-21adgg8e.js → chunk-8bg1qmhg.js} +1 -1
  39. package/dist/{chunk-1t5vwavd.js → chunk-8mm86z5w.js} +1 -1
  40. package/dist/{chunk-nt03zdme.js → chunk-8t3h7fsk.js} +1 -1
  41. package/dist/{chunk-b89mqprp.js → chunk-971yqxa2.js} +1 -1
  42. package/dist/{chunk-wvhgsjdt.js → chunk-9hxnn16r.js} +2 -2
  43. package/dist/chunk-9vne1mm0.js +2 -0
  44. package/dist/{chunk-4m2e8w2g.js → chunk-a01sf1sc.js} +1 -1
  45. package/dist/{chunk-2n3twnde.js → chunk-aa4ss5pb.js} +1 -1
  46. package/dist/chunk-aa91fsxk.js +2 -0
  47. package/dist/{chunk-cvkty3ha.js → chunk-abs56gdt.js} +1 -1
  48. package/dist/{chunk-ht9rdkf3.js → chunk-afwbqeb2.js} +2 -2
  49. package/dist/{chunk-rk8p4b1z.js → chunk-akzmq0jr.js} +2 -2
  50. package/dist/chunk-arrjqs96.js +2 -0
  51. package/dist/{chunk-cjcttjtx.js → chunk-b6ckn02j.js} +2 -2
  52. package/dist/chunk-b891w7hr.js +2 -0
  53. package/dist/{chunk-3tmnemhq.js → chunk-bds4s9d8.js} +1 -1
  54. package/dist/{chunk-zbwr9zbp.js → chunk-bssgvjge.js} +2 -2
  55. package/dist/{chunk-fpxz25xz.js → chunk-c1f1vtjt.js} +1 -1
  56. package/dist/{chunk-2g3ffsc9.js → chunk-ca57sg6v.js} +2 -2
  57. package/dist/{chunk-bdy1fpqq.js → chunk-dj658wyq.js} +1 -1
  58. package/dist/{chunk-2andsajh.js → chunk-dxjtszaa.js} +1 -1
  59. package/dist/chunk-emx4ey5d.js +2 -0
  60. package/dist/chunk-evba73dn.js +2 -0
  61. package/dist/{chunk-y9f9g2kh.js → chunk-ffdxdgep.js} +2 -2
  62. package/dist/chunk-fy5jfqwe.js +2 -0
  63. package/dist/{chunk-452k8psm.js → chunk-g0w8dyat.js} +1 -1
  64. package/dist/{chunk-dpe25csh.js → chunk-ggymyyx4.js} +3 -3
  65. package/dist/chunk-gxyvpwvn.js +2 -0
  66. package/dist/chunk-h4w5sqg0.js +2 -0
  67. package/dist/{chunk-av7a1sct.js → chunk-jpnja3jy.js} +1 -1
  68. package/dist/{chunk-j6p78bma.js → chunk-jqm6tbtb.js} +1 -1
  69. package/dist/{chunk-e5aqq9ms.js → chunk-jw6s8rkk.js} +2 -2
  70. package/dist/{chunk-st9vrfw7.js → chunk-k4x5we49.js} +2 -2
  71. package/dist/chunk-k8g5feyd.js +2 -0
  72. package/dist/chunk-kjkkh5p6.js +2 -0
  73. package/dist/{chunk-55zcahp8.js → chunk-kzx28zd5.js} +10 -10
  74. package/dist/chunk-m81pxs52.js +2 -0
  75. package/dist/{chunk-ah8gs0q2.js → chunk-m8bdy2wt.js} +1 -1
  76. package/dist/{chunk-6rzwef28.js → chunk-mywrb5fy.js} +1 -1
  77. package/dist/chunk-n1yz08j4.js +2 -0
  78. package/dist/{chunk-9368t9jm.js → chunk-n4197kjq.js} +1 -1
  79. package/dist/chunk-nsese4as.js +2 -0
  80. package/dist/chunk-nxbr6mr1.js +2 -0
  81. package/dist/chunk-p5cs4xsd.js +2 -0
  82. package/dist/{chunk-7vftjm43.js → chunk-pgeh4g3a.js} +1 -1
  83. package/dist/{chunk-3t953qe0.js → chunk-pqhpcxsd.js} +1 -1
  84. package/dist/{chunk-v9jmsv0r.js → chunk-py49bdsq.js} +1 -1
  85. package/dist/{chunk-b1hqgm6j.js → chunk-pyyccs6a.js} +1 -1
  86. package/dist/{chunk-4yc9gx6h.js → chunk-qcpnfw0k.js} +1 -1
  87. package/dist/{chunk-bd0eyzgz.js → chunk-qem2tw9r.js} +1 -1
  88. package/dist/{chunk-65c929m6.js → chunk-qnq99ej3.js} +1 -1
  89. package/dist/chunk-r7g4a7m3.js +2 -0
  90. package/dist/{chunk-vaxepwj5.js → chunk-r909bddf.js} +1 -1
  91. package/dist/chunk-rk40an2d.js +2 -0
  92. package/dist/{chunk-9r2xgf5k.js → chunk-rkzfwgr8.js} +1 -1
  93. package/dist/{chunk-7eea1cse.js → chunk-rqr735w8.js} +1 -1
  94. package/dist/{chunk-qnye902b.js → chunk-rx0cntdm.js} +1 -1
  95. package/dist/{chunk-tft187yn.js → chunk-s6c3ymq1.js} +3 -3
  96. package/dist/{chunk-myy3t2d9.js → chunk-s745a8mb.js} +1 -1
  97. package/dist/{chunk-rb8re2my.js → chunk-s7jkyw9t.js} +8 -8
  98. package/dist/{chunk-cks5rbzt.js → chunk-seqmzr8k.js} +1 -1
  99. package/dist/chunk-sgdp78fr.js +2 -0
  100. package/dist/chunk-sgmqfphy.js +2 -0
  101. package/dist/{chunk-m3s6kzxv.js → chunk-sptvg80e.js} +1 -1
  102. package/dist/{chunk-8e287qw8.js → chunk-stdkw5st.js} +1 -1
  103. package/dist/chunk-sttpb1p4.js +2 -0
  104. package/dist/{chunk-xnnyfxxv.js → chunk-t0p5yhgf.js} +2 -2
  105. package/dist/chunk-t6dhnzwf.js +2 -0
  106. package/dist/{chunk-jct6cs2k.js → chunk-tfy07tmv.js} +1 -1
  107. package/dist/{chunk-kpg48dhw.js → chunk-twg0y6ga.js} +1 -1
  108. package/dist/{chunk-ab9b859e.js → chunk-v1ezqvek.js} +2 -2
  109. package/dist/chunk-v3mqx1pw.js +2 -0
  110. package/dist/{chunk-9vwpf0bk.js → chunk-vtjegbgy.js} +1 -1
  111. package/dist/{chunk-mntzk6ga.js → chunk-vtmhh3dp.js} +1 -1
  112. package/dist/{chunk-hw96m872.js → chunk-vyq86x5c.js} +1 -1
  113. package/dist/chunk-w568cjw6.js +2 -0
  114. package/dist/{chunk-2m17v3yx.js → chunk-w6n5c479.js} +1 -1
  115. package/dist/{chunk-a4fpc5cy.js → chunk-wa32w7h2.js} +2 -2
  116. package/dist/chunk-wawcmcyg.js +2 -0
  117. package/dist/{chunk-13y7rx8s.js → chunk-wgxcemm2.js} +2 -2
  118. package/dist/chunk-wj66sab5.js +2 -0
  119. package/dist/{chunk-wheh08v2.js → chunk-wpsx5avz.js} +1 -1
  120. package/dist/chunk-wqgyb4zb.js +2 -0
  121. package/dist/{chunk-tev79q0a.js → chunk-wxkn47vk.js} +1 -1
  122. package/dist/chunk-wz7ca99x.js +2 -0
  123. package/dist/{chunk-cevkpyn9.js → chunk-x7qyx7vn.js} +1 -1
  124. package/dist/{chunk-egbb8eg8.js → chunk-x8zt0b72.js} +1 -1
  125. package/dist/{chunk-m28xqhyz.js → chunk-xakdgn9h.js} +1 -1
  126. package/dist/chunk-xw23twxw.js +2 -0
  127. package/dist/chunk-y3cz15x3.js +2 -0
  128. package/dist/{chunk-591hdx99.js → chunk-yaegs66r.js} +2 -2
  129. package/dist/{chunk-7sfyczn6.js → chunk-ydemsmqm.js} +2 -2
  130. package/dist/chunk-yf0v44v8.js +2 -0
  131. package/dist/{chunk-111tdjzz.js → chunk-yh9apppb.js} +1 -1
  132. package/dist/{chunk-90zfg77v.js → chunk-ypw4egcv.js} +1 -1
  133. package/dist/chunk-z523bq9b.js +2 -0
  134. package/dist/{chunk-qbc0bebg.js → chunk-z8zmp74b.js} +2 -2
  135. package/dist/{chunk-4azk3jdd.js → chunk-z9a0ft6h.js} +1 -1
  136. package/dist/{chunk-cxq9g7ys.js → chunk-zfh1b1py.js} +2 -2
  137. package/dist/{chunk-9a79ev5a.js → chunk-zwb8wv5p.js} +1 -1
  138. package/dist/cli.js +14 -14
  139. package/dist/craft-entry.js +1 -1
  140. package/dist/craft.js +1 -1
  141. package/dist/database.js +1 -1
  142. package/dist/pwa.js +2 -2
  143. package/dist/ssg.js +2 -2
  144. package/dist/visual-testing.js +1 -1
  145. package/package.json +5 -5
  146. package/dist/chunk-0j5wwmha.js +0 -2
  147. package/dist/chunk-1h9scy70.js +0 -2
  148. package/dist/chunk-1hw8p2g4.js +0 -2
  149. package/dist/chunk-1xtexfat.js +0 -2
  150. package/dist/chunk-50dtatwe.js +0 -2
  151. package/dist/chunk-55d66wh7.js +0 -2
  152. package/dist/chunk-6jns68ee.js +0 -2
  153. package/dist/chunk-6r6vhgvs.js +0 -2
  154. package/dist/chunk-6sjgte7b.js +0 -2
  155. package/dist/chunk-7xfg6y4j.js +0 -2
  156. package/dist/chunk-823mas5p.js +0 -2
  157. package/dist/chunk-8v4jamr6.js +0 -2
  158. package/dist/chunk-8xv6f2y5.js +0 -2
  159. package/dist/chunk-bsjdt7a2.js +0 -2
  160. package/dist/chunk-dggtfj6h.js +0 -2
  161. package/dist/chunk-dhq182fh.js +0 -2
  162. package/dist/chunk-dnew7qmv.js +0 -2
  163. package/dist/chunk-ek069b44.js +0 -2
  164. package/dist/chunk-f4f5dzfg.js +0 -2
  165. package/dist/chunk-gbwqy9py.js +0 -2
  166. package/dist/chunk-gtrn2yht.js +0 -2
  167. package/dist/chunk-hmz9rr5a.js +0 -2
  168. package/dist/chunk-jz8tbpkr.js +0 -2
  169. package/dist/chunk-kvdd2zfn.js +0 -2
  170. package/dist/chunk-nnrddx81.js +0 -2
  171. package/dist/chunk-nxpj3hcz.js +0 -2
  172. package/dist/chunk-nz0kaf2c.js +0 -2
  173. package/dist/chunk-pp8e3t71.js +0 -2
  174. package/dist/chunk-s8kfsq5y.js +0 -2
  175. package/dist/chunk-skzpase5.js +0 -2
  176. package/dist/chunk-sq13nzd0.js +0 -2
  177. package/dist/chunk-tjc1mdsb.js +0 -2
  178. package/dist/chunk-tqrcnb4e.js +0 -2
  179. package/dist/chunk-wm07h8q1.js +0 -2
  180. package/dist/chunk-yzkm9hzf.js +0 -2
  181. package/dist/chunk-zan0j833.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-cevkpyn9.js";var Z=0;function $(){return`eb-${++Z}-${Date.now().toString(36)}`}var U=/<!--stx-render-failed:([a-z-]+)-->/g;function w(q){return q.replace(U,"")}function O(q,z={},J){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(Q,P,T,W)=>{let X=$(),Y=C(P||"");return G(X,T.trim(),W.trim(),Y)})}function C(q){let z={},J=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=J.exec(q))!==null){let Q=j[1],P=j[2]||j[3]||j[4];switch(Q){case"id":z.id=P;break;case"logErrors":z.logErrors=P==="true";break}}return z}function G(q,z,J,j){let Q=j.logErrors!==!1,P=U.test(z);U.lastIndex=0;let T=P?` <div class="stx-error-boundary-fallback" data-boundary-fallback="${q}">
2
+ import"./chunk-x7qyx7vn.js";var Z=0;function $(){return`eb-${++Z}-${Date.now().toString(36)}`}var U=/<!--stx-render-failed:([a-z-]+)-->/g;function w(q){return q.replace(U,"")}function O(q,z={},J){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(Q,P,T,W)=>{let X=$(),Y=C(P||"");return G(X,T.trim(),W.trim(),Y)})}function C(q){let z={},J=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=J.exec(q))!==null){let Q=j[1],P=j[2]||j[3]||j[4];switch(Q){case"id":z.id=P;break;case"logErrors":z.logErrors=P==="true";break}}return z}function G(q,z,J,j){let Q=j.logErrors!==!1,P=U.test(z);U.lastIndex=0;let T=P?` <div class="stx-error-boundary-fallback" data-boundary-fallback="${q}">
3
3
  ${J}
4
4
  </div>`:` <div class="stx-error-boundary-content" data-boundary-content="${q}">
5
5
  ${w(z)}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{mh as x,rh as M,sh as C,th as v,uh as P}from"./chunk-6rzwef28.js";import{ax as y}from"./chunk-cevkpyn9.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Ug,w as Vg,Q as Wg,d as Xg,g as Yg,n as Zg,D as _g,t as $g,KJ as ah};
2
+ import{nh as x,sh as M,th as C,uh as v,vh as P}from"./chunk-mywrb5fy.js";import{bx as y}from"./chunk-x7qyx7vn.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Vg,w as Wg,Q as Xg,d as Yg,g as Zg,n as _g,D as $g,t as ah,KJ as bh};
@@ -0,0 +1,2 @@
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,rm as n}from"./chunk-0svp7s94.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import{As as b,zs as a}from"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-s6c3ymq1.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ah as d,Bh as e,Ch as f,Dh as g,Eh as h,xh as a,yh as b,zh as c}from"./chunk-683tfkz4.js";import"./chunk-cevkpyn9.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
2
+ import{Ah as c,Bh as d,Ch as e,Dh as f,Eh as g,Fh as h,yh as a,zh as b}from"./chunk-4m4n1sfc.js";import"./chunk-x7qyx7vn.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ow as y}from"./chunk-qbc0bebg.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
2
+ import{Pw as y}from"./chunk-z8zmp74b.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
3
3
  `);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
4
4
  `)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
5
- export{Y as yk,_ as zk,a as Ak,s as Bk,h as Ck,f as Dk,c as Ek,HM as Fk};
5
+ export{Y as zk,_ as Ak,a as Bk,s as Ck,h as Dk,f as Ek,c as Fk,HM as Gk};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ww as O,Yw as x}from"./chunk-d6rkgay9.js";import{ax as z}from"./chunk-cevkpyn9.js";var Gq={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},L={},u="en";function Hq(q){u=q}function Bq(){return u}function Wq(q){L={...L,...q}}function Mq(){L={}}function f(q,J={}){let Q=L[q]||Gq[q]||{message:`Unknown error (code: ${q})`},Z=Q.message,$=Q.help;for(let[Y,V]of Object.entries(J)){let X=`{{${Y}}}`;if(Z=Z.replace(new RegExp(X,"g"),V),$)$=$.replace(new RegExp(X,"g"),V)}return{message:Z,help:$}}function Iq(q,J={}){let{message:Q,help:Z}=f(q,J);return Z?`${Q}
2
+ import{Xw as O,Zw as x}from"./chunk-59pakqdv.js";import{bx as z}from"./chunk-x7qyx7vn.js";var Gq={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},L={},u="en";function Hq(q){u=q}function Bq(){return u}function Wq(q){L={...L,...q}}function Mq(){L={}}function f(q,J={}){let Q=L[q]||Gq[q]||{message:`Unknown error (code: ${q})`},Z=Q.message,$=Q.help;for(let[Y,V]of Object.entries(J)){let X=`{{${Y}}}`;if(Z=Z.replace(new RegExp(X,"g"),V),$)$=$.replace(new RegExp(X,"g"),V)}return{message:Z,help:$}}function Iq(q,J={}){let{message:Q,help:Z}=f(q,J);return Z?`${Q}
3
3
  Help: ${Z}`:Q}var w={UNCLOSED_DIRECTIVE:1001,UNCLOSED_EXPRESSION:1002,INVALID_DIRECTIVE_SYNTAX:1003,MALFORMED_EXPRESSION:1004,UNEXPECTED_TOKEN:1005,UNDEFINED_VARIABLE:1101,TYPE_ERROR:1102,EVALUATION_ERROR:1103,INFINITE_LOOP:1104,CIRCULAR_REFERENCE:1105,UNSAFE_EXPRESSION:1201,PATH_TRAVERSAL:1202,XSS_ATTEMPT:1203,CODE_INJECTION:1204,DOM_API_VIOLATION:1205,FILE_NOT_FOUND:1301,FILE_READ_ERROR:1302,INVALID_FILE_PATH:1303,PERMISSION_DENIED:1304,INVALID_CONFIG:1401,MISSING_REQUIRED_CONFIG:1402,DEPRECATED_CONFIG:1403,COMPONENT_NOT_FOUND:1501,INVALID_PROPS:1502,COMPONENT_RENDER_ERROR:1503,FILTER_NOT_FOUND:1601,INVALID_FILTER_ARGS:1602,EXPRESSION_TIMEOUT:1603};function S(q){for(let[J,Q]of Object.entries(w))if(Q===q)return J;return}x();import wq from"path";var m={showRelativePaths:!1,enableAutoRecovery:O(),logRecoveryWarnings:!0},D={...m};function Fq(q){D={...D,...q}}function _(){return{...D}}function jq(){D={...m}}function T(q){if(!D.showRelativePaths||!q)return q;let J=D.baseDir||process.cwd();try{let Q=wq.relative(J,q);return Q.startsWith("..")?q:Q}catch{return q}}class U extends Error{code;filePath;line;column;context;numericCode;constructor(q,J,Q,Z,$,Y,V){super(q);this.code=J;this.filePath=Q;this.line=Z;this.column=$;this.context=Y;if(this.name="StxError",this.numericCode=V||w.EVALUATION_ERROR,this.filePath)this.filePath=T(this.filePath)}}class c extends U{constructor(q,J,Q,Z,$,Y){super(q,"stx_SYNTAX_ERROR",J,Q,Z,$,Y||w.INVALID_DIRECTIVE_SYNTAX);this.name="StxSyntaxError"}}class d extends U{constructor(q,J,Q,Z,$,Y){super(q,"stx_RUNTIME_ERROR",J,Q,Z,$,Y||w.EVALUATION_ERROR);this.name="StxRuntimeError"}}class p extends U{constructor(q,J,Q,Z,$,Y){super(q,"stx_SECURITY_ERROR",J,Q,Z,$,Y||w.UNSAFE_EXPRESSION);this.name="StxSecurityError"}}class l extends U{constructor(q,J,Q,Z,$,Y){super(q,"stx_FILE_ERROR",J,Q,Z,$,Y||w.FILE_NOT_FOUND);this.name="StxFileError"}}class o extends U{isFatal=!0;constructor(q,J,Q,Z,$,Y){super(q,"stx_VALIDATION_ERROR",J,Q,Z,$,Y||w.DOM_API_VIOLATION);this.name="StxValidationError"}}function C(q){let{type:J,message:Q,code:Z,filePath:$,line:Y,column:V,template:X,offset:H,snippet:G,suggestion:B,format:W="text"}=q,M=Y,I=V;if(!M&&X&&H!==void 0){let E=r(X,H);M=E.line,I=E.column}let j=$?T($):void 0,Vq=Z?S(Z):void 0,K={type:J,code:Z,codeName:Vq,message:Q,filePath:j,line:M,column:I,snippet:G,suggestion:B,timestamp:new Date().toISOString()},k;switch(W){case"html":k=Dq(K);break;case"json":k=JSON.stringify(K,null,2);break;case"console":k=Kq(K,X,H);break;case"text":default:k=Uq(K,X,H);break}return{formatted:k,data:K}}function Uq(q,J,Q){let Z=[],$=q.code?` [${q.codeName||q.code}]`:"";if(Z.push(`[${q.type} Error${$}]`),q.filePath){let Y=q.filePath;if(q.line){if(Y+=`:${q.line}`,q.column)Y+=`:${q.column}`}Z.push(`at ${Y}`)}if(Z.push(`
4
4
  ${q.message}`),J&&q.line){let Y=kq(J,q.line,2);if(Y)Z.push(`
5
5
  ${Y}`)}if(q.snippet)Z.push(`
@@ -44,4 +44,4 @@ catch (e) {
44
44
  throw e;
45
45
  }
46
46
  `;return nq(Z?(G)=>{let B=t([b,...Y,...G],X);return(...W)=>B(Yq,...W)}:(G)=>t([...Y,...G],X),Y,J,$,V)}function nq(q,J,Q,Z,$){let Y=q([]),V=Z.every((H,G)=>H.index===G);if(J.length===Q.length&&V)return e(Y,J,q);return e((...H)=>{let G=Array($.length);for(let B=0;B<$.length;B++)G[B]=H[$[B]];return Y(...G)},J,q,(H)=>{Y=q(H)})}function e(q,J,Q,Z){let Y=/^(\w+) is not defined$/,V=q,X=[],H=new Set(J);return(...G)=>{for(let B=0;B<=8;B++)try{return V(...G)}catch(W){let M=W instanceof Error?W.message:"",I=Y.exec(M);if(!(W instanceof ReferenceError)||!I)return;let j=I[1];if(H.has(j)||Xq.has(j))return;if(H.add(j),X.push(j),Z)Z(X);else V=Q(X)}return}}function OJ(q){let J=q.trim(),Q=[/\beval\s*\(/i,/\bFunction\s*\(/i,/\bimport\s*\(/i,/\brequire\s*\(/i,/\bprocess\b/i,/\b__proto__\b/i,/\bconstructor\s*[.(]/i,/\bglobalThis\b/i,/\bwindow\b/i,/\bdocument\b/i,/\bfetch\s*\(/i,/\bBun\b/i,/\bDeno\b/i,/\bconsole\b/i,/\bthis\b/i,/\bReflect\b/i,/\bProxy\b/i,/\bprototype\b/i,/\.(bind|call|apply)\s*\(/i];for(let Z of Q)if(Z.test(J))return!1;return!0}
47
- export{Hq as Lu,Bq as Mu,Wq as Nu,Mq as Ou,f as Pu,Iq as Qu,w as Ru,S as Su,Fq as Tu,_ as Uu,jq as Vu,T as Wu,U as Xu,c as Yu,d as Zu,p as _u,l as $u,o as av,C as bv,zq as cv,Lq as dv,_q as ev,Tq as fv,Nq as gv,Aq as hv,P as iv,Rq as jv,bq as kv,v as lv,N as mv,Cq as nv,Pq as ov,gq as pv,n as qv,UJ as rv,cq as sv,dq as tv,pq as uv,DJ as vv,KJ as wv,kJ as xv,sq as yv,rq as zv,OJ as Av};
47
+ export{Hq as Mu,Bq as Nu,Wq as Ou,Mq as Pu,f as Qu,Iq as Ru,w as Su,S as Tu,Fq as Uu,_ as Vu,jq as Wu,T as Xu,U as Yu,c as Zu,d as _u,p as $u,l as av,o as bv,C as cv,zq as dv,Lq as ev,_q as fv,Tq as gv,Nq as hv,Aq as iv,P as jv,Rq as kv,bq as lv,v as mv,N as nv,Cq as ov,Pq as pv,gq as qv,n as rv,UJ as sv,cq as tv,dq as uv,pq as vv,DJ as wv,KJ as xv,kJ as yv,sq as zv,rq as Av,OJ as Bv};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$i as k,Ri as a,Si as b,Ti as c,Ui as d,Vi as e,Wi as f,Xi as g,Yi as h,Zi as i,_i as j,aj as l,bj as m,cj as n}from"./chunk-yaegs66r.js";import"./chunk-0svp7s94.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-s6c3ymq1.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ni as O,Oi as w,Pi as Z}from"./chunk-452k8psm.js";import{bl as R,il as U,ol as T}from"./chunk-xnnyfxxv.js";import{Eo as W,Gr as C,em as M,oq as k}from"./chunk-tte381m0.js";import{Bv as E,Cv as L}from"./chunk-fpxz25xz.js";import{Gv as B}from"./chunk-v54tq312.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
2
+ import{Oi as O,Pi as w,Qi as Z}from"./chunk-g0w8dyat.js";import{cl as R,jl as U,pl as T}from"./chunk-t0p5yhgf.js";import{Fo as W,Hr as C,fm as M,pq as k}from"./chunk-0svp7s94.js";import{Cv as E,Dv as L}from"./chunk-c1f1vtjt.js";import{Hv as B}from"./chunk-4md4tj27.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
3
  ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
4
 
5
5
  `),x=`;(function(){
@@ -8,4 +8,4 @@ ${B.filter((q)=>!X.has(q)&&new RegExp(`\\b${q}\\b`).test(j)).map((q)=>`var ${q}
8
8
  `)}
9
9
  ${j}
10
10
  })();`;return K=O(V()),Z(Y,z,K,x),x}function a(){Y.clear()}
11
- export{l as Li,a as Mi};
11
+ export{l as Mi,a as Ni};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$j as o,Oj as b,Pj as c,Qj as d,Rj as e,Sj as f,Tj as g,Uj as h,Vj as i,Wj as j,Xj as k,Yj as l,Zj as m,_j as n}from"./chunk-wa32w7h2.js";import{yl as a}from"./chunk-dxjtszaa.js";import"./chunk-0svp7s94.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-s6c3ymq1.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ai as b,Bi as c,Ci as d,Di as e,zi as a}from"./chunk-4bb28mz5.js";import"./chunk-cevkpyn9.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
2
+ import{Ai as a,Bi as b,Ci as c,Di as d,Ei as e}from"./chunk-015p3jq5.js";import"./chunk-x7qyx7vn.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ni as T,Oi as u,Pi as A}from"./chunk-452k8psm.js";import{bl as g,il as h,ol as b}from"./chunk-xnnyfxxv.js";import{Eo as f,Gr as I,em as k,oq as B}from"./chunk-tte381m0.js";import{Bv as D,Cv as S}from"./chunk-fpxz25xz.js";import{Gv as F}from"./chunk-v54tq312.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
2
+ import{Oi as T,Pi as u,Qi as A}from"./chunk-g0w8dyat.js";import{cl as g,jl as h,pl as b}from"./chunk-t0p5yhgf.js";import{Fo as f,Hr as I,fm as k,pq as B}from"./chunk-0svp7s94.js";import{Cv as D,Dv as S}from"./chunk-c1f1vtjt.js";import{Hv as F}from"./chunk-4md4tj27.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
3
3
  ${Q.trim()}`)}catch(Q){console.warn(`[stx] Failed to load composable ${q}:`,Q)}if(R.length===0||L.size===0)return A(j,M,W,""),null;let t=[...L].map((q)=>` try { if (!(${JSON.stringify(q)} in __c)) __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
4
4
  `),N=JSON.stringify([...L]),E=R.join(`
5
5
 
@@ -30,4 +30,4 @@ ${t}
30
30
  __published[__n] = true;
31
31
  }
32
32
  })();`;return W=T(Z()),A(j,M,W,x),x}function Zq(){j.clear(),K.clear()}
33
- export{Wq as ii,Yq as ji,Zq as ki};
33
+ export{Wq as ji,Yq as ki,Zq as li};
@@ -2,4 +2,4 @@
2
2
  function A(h){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;h=h.replace(q,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
3
3
  `});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return h=h.replace(v,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__composables
4
4
  `}),h}function B(h){return h.replace(/^import\s+[^'"]*?from\s*['"][^'"]+['"]\s*;?[ \t]*$/gm,"").replace(/^import\s+['"][^'"]+['"]\s*;?[ \t]*$/gm,"")}
5
- export{A as Bv,B as Cv};
5
+ export{A as Cv,B as Dv};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{mh as x,rh as B,sh as c,th as u,uh as n}from"./chunk-6rzwef28.js";import{ax as v}from"./chunk-cevkpyn9.js";import{resolve as JJ,basename as WJ,extname as _J,join as LJ}from"path";import{mkdir as QJ}from"fs/promises";var ZJ={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:2000,cacheTranscoded:!0,cacheThumbnails:!0,cacheManifests:!0};class V{config;constructor(K={}){this.config={...ZJ,...K}}async get(K,J){return c(K,J,"video",this.config)}async set(K,J,X){return u(K,J,X,"video",this.config)}async clear(){return n("video",this.config)}updateConfig(K){this.config={...this.config,...K}}}var S=null;function D(K){if(!S)S=new V(K);else if(K)S.updateConfig(K);return S}async function q(K,J,X){let N=X?{directory:`${X.outputDir}/../.cache`}:{};return D(N).get(K,J)}async function b(K,J,X,N){let Z=N?{directory:`${N.outputDir}/../.cache`}:{};return D(Z).set(K,J,X)}async function $J(){return D().clear()}import{resolve as y,basename as P,extname as f,join as U}from"path";import{mkdir as g}from"fs/promises";async function m(){try{return await import("ts-videos")}catch{return null}}async function h(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate poster"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",M=J.timestamp||0,E=`${z}-poster-${Y}.${G}`,W=U(X,E),Q=await Z.extractThumbnails($,{timestamps:[M],width:J.width||1280,height:J.height,format:G,quality:J.quality||85,outputDir:X,outputPattern:E.replace(`.${G}`,"")});if(Q&&Q.length>0){let _=Q[0];return{path:W,url:`${N}/${E}`,width:_.width||J.width||1280,height:_.height||720,timestamp:M,size:_.size||0}}return null}catch($){return console.warn(`[stx-media] Failed to generate poster: ${$}`),null}}async function d(K,J,X,N){let Z=await m();if(!Z)return[];try{let $=y(K);if(!await B($))return[];await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",W=(await new Z.Input($).getInfo()).duration||60,Q=J.count||10,_=J.interval||W/Q,O=[];for(let w=0;w<Q&&w*_<W;w++)O.push(w*_);let L=await Z.extractThumbnails($,{timestamps:O,width:J.width||320,format:G,quality:J.quality||80,outputDir:X,outputPattern:`${z}-thumb-${Y}`});if(L&&L.length>0)return L.map((w,j)=>({path:w.path||U(X,`${z}-thumb-${Y}-${j}.${G}`),url:`${N}/${z}-thumb-${Y}-${j}.${G}`,width:w.width||J.width||320,height:w.height||180,timestamp:O[j],size:w.size||0}));return[]}catch($){return console.warn(`[stx-media] Failed to generate thumbnails: ${$}`),[]}}async function zJ(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate sprite sheet"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),E=(await new Z.Input($).getInfo()).duration||60,W=J.columns||10,Q=J.interval||5,_=J.thumbnailWidth||160,O=J.thumbnailHeight||90,L=J.format||"jpeg",w=Math.ceil(E/Q),j=Math.ceil(w/W),F=`${z}-sprite-${Y}.${L}`,k=U(X,F),T=[];for(let I=0;I<w;I++)T.push(I*Q);let A=await Z.extractThumbnails($,{timestamps:T,width:_,height:O,format:L,quality:J.quality||70,outputDir:U(X,".temp")});if(!A||A.length===0)return null;try{let I=await import("ts-images"),H=W*_,kJ=j*O,jJ=await I.createSprite({images:A.map((YJ)=>YJ.path),columns:W,padding:0,outputPath:k,format:L,quality:J.quality||70});return{url:`${N}/${F}`,path:k,columns:W,rows:j,thumbnailWidth:_,thumbnailHeight:O,interval:Q,totalFrames:w}}catch{return console.warn("[stx-media] ts-images not installed, sprite sheet generation skipped"),null}}catch($){return console.warn(`[stx-media] Failed to generate sprite sheet: ${$}`),null}}import{resolve as r,basename as e,extname as i,join as C}from"path";import{mkdir as R,writeFile as o}from"fs/promises";async function t(){try{return await import("ts-videos")}catch{return null}}var s=[{label:"1080p",width:1920,height:1080,bitrate:5000000,audioBitrate:192000},{label:"720p",width:1280,height:720,bitrate:2500000,audioBitrate:128000},{label:"480p",width:854,height:480,bitrate:1e6,audioBitrate:96000},{label:"360p",width:640,height:360,bitrate:600000,audioBitrate:64000}];async function p(K,J,X,N,Z){let $=await t();if(!$)return console.warn("[stx-media] ts-videos not installed, cannot generate HLS manifest"),null;try{let Y=r(K);if(!await B(Y))return null;let z=await x(Y),G=e(K,i(K)),M=C(X,`${G}-${z}-hls`);await R(M,{recursive:!0});let E=J.length>0?J:s,W=Z?.segmentDuration||6,O=(await new $.Input(Y).getInfo()).duration||0,L=[],w=0;for(let k of E){let T=C(M,k.label);await R(T,{recursive:!0});let A=`${k.label}.m3u8`,I=C(T,A);try{let H=await $.generateHLS(Y,{outputDir:T,segmentDuration:W,width:k.width,height:k.height,videoBitrate:k.bitrate,audioBitrate:k.audioBitrate,playlistName:k.label});if(H)L.push({quality:k,url:`${N}/${G}-${z}-hls/${k.label}/${A}`,path:I}),w+=H.segmentCount||Math.ceil(O/W)}catch(H){console.warn(`[stx-media] Failed to generate HLS for ${k.label}: ${H}`)}}if(L.length===0)return null;let j=C(M,"master.m3u8"),F=GJ(L,N,G,z);return await o(j,F),{manifestUrl:`${N}/${G}-${z}-hls/master.m3u8`,manifestPath:j,playlists:L,segmentCount:w,duration:O}}catch(Y){return console.warn(`[stx-media] Failed to generate HLS manifest: ${Y}`),null}}function GJ(K,J,X,N){let Z=["#EXTM3U","#EXT-X-VERSION:3"];for(let $ of K){let{quality:Y}=$,z=Y.bitrate+(Y.audioBitrate||128000),G=`${Y.width}x${Y.height||Math.round(Y.width*9/16)}`;Z.push(`#EXT-X-STREAM-INF:BANDWIDTH=${z},RESOLUTION=${G},NAME="${Y.label}"`,`${Y.label}/${Y.label}.m3u8`)}return Z.join(`
2
+ import{nh as x,sh as B,th as c,uh as u,vh as n}from"./chunk-mywrb5fy.js";import{bx as v}from"./chunk-x7qyx7vn.js";import{resolve as JJ,basename as WJ,extname as _J,join as LJ}from"path";import{mkdir as QJ}from"fs/promises";var ZJ={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:2000,cacheTranscoded:!0,cacheThumbnails:!0,cacheManifests:!0};class V{config;constructor(K={}){this.config={...ZJ,...K}}async get(K,J){return c(K,J,"video",this.config)}async set(K,J,X){return u(K,J,X,"video",this.config)}async clear(){return n("video",this.config)}updateConfig(K){this.config={...this.config,...K}}}var S=null;function D(K){if(!S)S=new V(K);else if(K)S.updateConfig(K);return S}async function q(K,J,X){let N=X?{directory:`${X.outputDir}/../.cache`}:{};return D(N).get(K,J)}async function b(K,J,X,N){let Z=N?{directory:`${N.outputDir}/../.cache`}:{};return D(Z).set(K,J,X)}async function $J(){return D().clear()}import{resolve as y,basename as P,extname as f,join as U}from"path";import{mkdir as g}from"fs/promises";async function m(){try{return await import("ts-videos")}catch{return null}}async function h(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate poster"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",M=J.timestamp||0,E=`${z}-poster-${Y}.${G}`,W=U(X,E),Q=await Z.extractThumbnails($,{timestamps:[M],width:J.width||1280,height:J.height,format:G,quality:J.quality||85,outputDir:X,outputPattern:E.replace(`.${G}`,"")});if(Q&&Q.length>0){let _=Q[0];return{path:W,url:`${N}/${E}`,width:_.width||J.width||1280,height:_.height||720,timestamp:M,size:_.size||0}}return null}catch($){return console.warn(`[stx-media] Failed to generate poster: ${$}`),null}}async function d(K,J,X,N){let Z=await m();if(!Z)return[];try{let $=y(K);if(!await B($))return[];await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",W=(await new Z.Input($).getInfo()).duration||60,Q=J.count||10,_=J.interval||W/Q,O=[];for(let w=0;w<Q&&w*_<W;w++)O.push(w*_);let L=await Z.extractThumbnails($,{timestamps:O,width:J.width||320,format:G,quality:J.quality||80,outputDir:X,outputPattern:`${z}-thumb-${Y}`});if(L&&L.length>0)return L.map((w,j)=>({path:w.path||U(X,`${z}-thumb-${Y}-${j}.${G}`),url:`${N}/${z}-thumb-${Y}-${j}.${G}`,width:w.width||J.width||320,height:w.height||180,timestamp:O[j],size:w.size||0}));return[]}catch($){return console.warn(`[stx-media] Failed to generate thumbnails: ${$}`),[]}}async function zJ(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate sprite sheet"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),E=(await new Z.Input($).getInfo()).duration||60,W=J.columns||10,Q=J.interval||5,_=J.thumbnailWidth||160,O=J.thumbnailHeight||90,L=J.format||"jpeg",w=Math.ceil(E/Q),j=Math.ceil(w/W),F=`${z}-sprite-${Y}.${L}`,k=U(X,F),T=[];for(let I=0;I<w;I++)T.push(I*Q);let A=await Z.extractThumbnails($,{timestamps:T,width:_,height:O,format:L,quality:J.quality||70,outputDir:U(X,".temp")});if(!A||A.length===0)return null;try{let I=await import("ts-images"),H=W*_,kJ=j*O,jJ=await I.createSprite({images:A.map((YJ)=>YJ.path),columns:W,padding:0,outputPath:k,format:L,quality:J.quality||70});return{url:`${N}/${F}`,path:k,columns:W,rows:j,thumbnailWidth:_,thumbnailHeight:O,interval:Q,totalFrames:w}}catch{return console.warn("[stx-media] ts-images not installed, sprite sheet generation skipped"),null}}catch($){return console.warn(`[stx-media] Failed to generate sprite sheet: ${$}`),null}}import{resolve as r,basename as e,extname as i,join as C}from"path";import{mkdir as R,writeFile as o}from"fs/promises";async function t(){try{return await import("ts-videos")}catch{return null}}var s=[{label:"1080p",width:1920,height:1080,bitrate:5000000,audioBitrate:192000},{label:"720p",width:1280,height:720,bitrate:2500000,audioBitrate:128000},{label:"480p",width:854,height:480,bitrate:1e6,audioBitrate:96000},{label:"360p",width:640,height:360,bitrate:600000,audioBitrate:64000}];async function p(K,J,X,N,Z){let $=await t();if(!$)return console.warn("[stx-media] ts-videos not installed, cannot generate HLS manifest"),null;try{let Y=r(K);if(!await B(Y))return null;let z=await x(Y),G=e(K,i(K)),M=C(X,`${G}-${z}-hls`);await R(M,{recursive:!0});let E=J.length>0?J:s,W=Z?.segmentDuration||6,O=(await new $.Input(Y).getInfo()).duration||0,L=[],w=0;for(let k of E){let T=C(M,k.label);await R(T,{recursive:!0});let A=`${k.label}.m3u8`,I=C(T,A);try{let H=await $.generateHLS(Y,{outputDir:T,segmentDuration:W,width:k.width,height:k.height,videoBitrate:k.bitrate,audioBitrate:k.audioBitrate,playlistName:k.label});if(H)L.push({quality:k,url:`${N}/${G}-${z}-hls/${k.label}/${A}`,path:I}),w+=H.segmentCount||Math.ceil(O/W)}catch(H){console.warn(`[stx-media] Failed to generate HLS for ${k.label}: ${H}`)}}if(L.length===0)return null;let j=C(M,"master.m3u8"),F=GJ(L,N,G,z);return await o(j,F),{manifestUrl:`${N}/${G}-${z}-hls/master.m3u8`,manifestPath:j,playlists:L,segmentCount:w,duration:O}}catch(Y){return console.warn(`[stx-media] Failed to generate HLS manifest: ${Y}`),null}}function GJ(K,J,X,N){let Z=["#EXTM3U","#EXT-X-VERSION:3"];for(let $ of K){let{quality:Y}=$,z=Y.bitrate+(Y.audioBitrate||128000),G=`${Y.width}x${Y.height||Math.round(Y.width*9/16)}`;Z.push(`#EXT-X-STREAM-INF:BANDWIDTH=${z},RESOLUTION=${G},NAME="${Y.label}"`,`${Y.label}/${Y.label}.m3u8`)}return Z.join(`
3
3
  `)}async function l(K,J,X,N,Z){let $=await t();if(!$)return console.warn("[stx-media] ts-videos not installed, cannot generate DASH manifest"),null;try{let Y=r(K);if(!await B(Y))return null;let z=await x(Y),G=e(K,i(K)),M=C(X,`${G}-${z}-dash`);await R(M,{recursive:!0});let E=J.length>0?J:s,W=Z?.segmentDuration||4,Q=Z?.minBufferTime||2,L=(await new $.Input(Y).getInfo()).duration||0,w=[],j=[];for(let A of E){let I=C(M,A.label);await R(I,{recursive:!0});try{if(await $.generateDASH(Y,{outputDir:I,segmentDuration:W,width:A.width,height:A.height,videoBitrate:A.bitrate,audioBitrate:A.audioBitrate})){if(w.push({bandwidth:A.bitrate,width:A.width,height:A.height||Math.round(A.width*9/16),url:`${N}/${G}-${z}-dash/${A.label}/video`}),A.audioBitrate)j.push({bandwidth:A.audioBitrate,url:`${N}/${G}-${z}-dash/${A.label}/audio`})}}catch(H){console.warn(`[stx-media] Failed to generate DASH for ${A.label}: ${H}`)}}if(w.length===0)return null;let F=C(M,"manifest.mpd"),k=NJ(w,j,L,W,Q);await o(F,k);let T=[{type:"video",representations:w}];if(j.length>0)T.push({type:"audio",representations:j});return{manifestUrl:`${N}/${G}-${z}-dash/manifest.mpd`,manifestPath:F,adaptationSets:T,duration:L}}catch(Y){return console.warn(`[stx-media] Failed to generate DASH manifest: ${Y}`),null}}function NJ(K,J,X,N,Z){let $=a(X),Y=a(Z),z=`<?xml version="1.0" encoding="UTF-8"?>
4
4
  <MPD xmlns="urn:mpeg:dash:schema:mpd:2011"
5
5
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -26,4 +26,4 @@ import{mh as x,rh as B,sh as c,th as u,uh as n}from"./chunk-6rzwef28.js";import{
26
26
  </Representation>
27
27
  `}z+=` </AdaptationSet>
28
28
  `}return z+=` </Period>
29
- </MPD>`,z}function a(K){let J=Math.floor(K/3600),X=Math.floor(K%3600/60),N=Math.floor(K%60),Z="PT";if(J>0)Z+=`${J}H`;if(X>0)Z+=`${X}M`;return Z+=`${N}S`,Z}async function KJ(){try{return await import("ts-videos")}catch{return null}}function MJ(K){switch(K){case"very-low":return 500000;case"low":return 1e6;case"medium":return 2500000;case"high":return 5000000;case"very-high":return 1e7;case"lossless":return 0;default:return 2500000}}function OJ(K){switch(K){case"youtube":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};case"twitter":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"instagram-feed":return{codec:"h264",maxWidth:1080,maxHeight:1080,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"instagram-story":case"instagram-reels":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"tiktok":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"discord":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:60,bitrate:8000000,audioCodec:"aac",audioBitrate:192000};case"linkedin":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"facebook":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"web-progressive":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000,twoPass:!0};case"web-streaming":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};default:return{}}}async function XJ(K){let J=await KJ();if(!J)return null;try{let X=JJ(K),Z=await new J.Input(X).getInfo();return{duration:Z.duration||0,width:Z.width||0,height:Z.height||0,frameRate:Z.frameRate||0,bitrate:Z.bitrate||0,codec:Z.videoCodec||"",audioCodec:Z.audioCodec}}catch(X){return console.warn(`[stx-media] Failed to analyze video: ${X}`),null}}async function wJ(K,J,X,N){let Z=await KJ();if(!Z)return console.warn("[stx-media] ts-videos not installed, skipping processing"),{src:K,processed:!1};let $=await q(K,J,X);if($)return $;try{let Y=JJ(K);if(!await B(Y))return{src:K,processed:!1,errors:[`Source file not found: ${K}`]};let z=X.outputDir||"dist/videos",G=X.baseUrl||"/videos";await QJ(z,{recursive:!0});let M=await x(Y),E=WJ(K,_J(K)),W={src:K,processed:!0,hash:M};N?.({percentage:5,stage:"analyzing"}),W.metadata=await XJ(Y)||void 0;let Q={};if(J.quality)Q.bitrate=MJ(J.quality);if(J.platform)Object.assign(Q,OJ(J.platform));if(J.transcode)Object.assign(Q,J.transcode);if(Object.keys(Q).length>0||J.process){N?.({percentage:10,stage:"transcoding"});let _=`${E}-${M}.mp4`,O=LJ(z,_);try{let L=await AJ(Y,O,Q,Z,(w)=>N?.({percentage:10+w*0.5,stage:"transcoding"}));if(L)W.transcoded={path:O,url:`${G}/${_}`,duration:L.duration,size:L.size,video:{codec:Q.codec||"h264",width:L.width,height:L.height,bitrate:L.bitrate,frameRate:L.frameRate},audio:L.audioCodec?{codec:Q.audioCodec||"aac",bitrate:Q.audioBitrate||128000,sampleRate:Q.sampleRate||48000,channels:Q.channels||2}:void 0}}catch(L){W.errors=W.errors||[],W.errors.push(`Transcoding failed: ${L}`)}}if(J.generatePoster){N?.({percentage:65,stage:"generating-poster"});let _=typeof J.generatePoster==="object"?J.generatePoster:{timestamp:0},O=await h(Y,_,z,G);if(O)W.poster=O}if(X.thumbnails?.enabled){N?.({percentage:70,stage:"generating-thumbnails"});let _=await d(Y,X.thumbnails,z,G);if(_.length>0)W.thumbnails=_}if(J.streaming){N?.({percentage:80,stage:"generating-manifests"});let _=typeof J.streaming==="object"?J.streaming:X.streaming||{format:"hls"};if(_.format==="hls"||_.format===void 0){let O=await p(Y,_.qualities||X.streaming?.defaultQualities||[],z,G);if(O)W.streaming={...W.streaming,hls:O}}if(_.format==="dash"){let O=await l(Y,_.qualities||X.streaming?.defaultQualities||[],z,G);if(O)W.streaming={...W.streaming,dash:O}}}if(J.spriteSheet)N?.({percentage:90,stage:"generating-sprite-sheet"});return N?.({percentage:100,stage:"complete"}),await b(K,J,W,X),W}catch(Y){return{src:K,processed:!1,errors:[`Processing failed: ${Y}`]}}}async function AJ(K,J,X,N,Z){try{let Y=await new N.Conversion(K,J,{videoCodec:X.codec,videoBitrate:X.bitrate,width:X.maxWidth,height:X.maxHeight,frameRate:X.frameRate,audioCodec:X.audioCodec,audioBitrate:X.audioBitrate,sampleRate:X.sampleRate,channels:X.channels}).run((z)=>{Z?.(z.percentage/100)});return{duration:Y.duration||0,size:Y.size||0,width:Y.width||X.maxWidth||0,height:Y.height||X.maxHeight||0,bitrate:Y.bitrate||X.bitrate||0,frameRate:Y.frameRate||X.frameRate||30,audioCodec:Y.audioCodec}}catch($){return console.error(`[stx-media] Transcoding failed: ${$}`),null}}export{V as bh,q as ch,b as dh,$J as eh,h as fh,d as gh,zJ as hh,p as ih,l as jh,XJ as kh,wJ as lh};
29
+ </MPD>`,z}function a(K){let J=Math.floor(K/3600),X=Math.floor(K%3600/60),N=Math.floor(K%60),Z="PT";if(J>0)Z+=`${J}H`;if(X>0)Z+=`${X}M`;return Z+=`${N}S`,Z}async function KJ(){try{return await import("ts-videos")}catch{return null}}function MJ(K){switch(K){case"very-low":return 500000;case"low":return 1e6;case"medium":return 2500000;case"high":return 5000000;case"very-high":return 1e7;case"lossless":return 0;default:return 2500000}}function OJ(K){switch(K){case"youtube":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};case"twitter":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"instagram-feed":return{codec:"h264",maxWidth:1080,maxHeight:1080,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"instagram-story":case"instagram-reels":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"tiktok":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"discord":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:60,bitrate:8000000,audioCodec:"aac",audioBitrate:192000};case"linkedin":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"facebook":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"web-progressive":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000,twoPass:!0};case"web-streaming":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};default:return{}}}async function XJ(K){let J=await KJ();if(!J)return null;try{let X=JJ(K),Z=await new J.Input(X).getInfo();return{duration:Z.duration||0,width:Z.width||0,height:Z.height||0,frameRate:Z.frameRate||0,bitrate:Z.bitrate||0,codec:Z.videoCodec||"",audioCodec:Z.audioCodec}}catch(X){return console.warn(`[stx-media] Failed to analyze video: ${X}`),null}}async function wJ(K,J,X,N){let Z=await KJ();if(!Z)return console.warn("[stx-media] ts-videos not installed, skipping processing"),{src:K,processed:!1};let $=await q(K,J,X);if($)return $;try{let Y=JJ(K);if(!await B(Y))return{src:K,processed:!1,errors:[`Source file not found: ${K}`]};let z=X.outputDir||"dist/videos",G=X.baseUrl||"/videos";await QJ(z,{recursive:!0});let M=await x(Y),E=WJ(K,_J(K)),W={src:K,processed:!0,hash:M};N?.({percentage:5,stage:"analyzing"}),W.metadata=await XJ(Y)||void 0;let Q={};if(J.quality)Q.bitrate=MJ(J.quality);if(J.platform)Object.assign(Q,OJ(J.platform));if(J.transcode)Object.assign(Q,J.transcode);if(Object.keys(Q).length>0||J.process){N?.({percentage:10,stage:"transcoding"});let _=`${E}-${M}.mp4`,O=LJ(z,_);try{let L=await AJ(Y,O,Q,Z,(w)=>N?.({percentage:10+w*0.5,stage:"transcoding"}));if(L)W.transcoded={path:O,url:`${G}/${_}`,duration:L.duration,size:L.size,video:{codec:Q.codec||"h264",width:L.width,height:L.height,bitrate:L.bitrate,frameRate:L.frameRate},audio:L.audioCodec?{codec:Q.audioCodec||"aac",bitrate:Q.audioBitrate||128000,sampleRate:Q.sampleRate||48000,channels:Q.channels||2}:void 0}}catch(L){W.errors=W.errors||[],W.errors.push(`Transcoding failed: ${L}`)}}if(J.generatePoster){N?.({percentage:65,stage:"generating-poster"});let _=typeof J.generatePoster==="object"?J.generatePoster:{timestamp:0},O=await h(Y,_,z,G);if(O)W.poster=O}if(X.thumbnails?.enabled){N?.({percentage:70,stage:"generating-thumbnails"});let _=await d(Y,X.thumbnails,z,G);if(_.length>0)W.thumbnails=_}if(J.streaming){N?.({percentage:80,stage:"generating-manifests"});let _=typeof J.streaming==="object"?J.streaming:X.streaming||{format:"hls"};if(_.format==="hls"||_.format===void 0){let O=await p(Y,_.qualities||X.streaming?.defaultQualities||[],z,G);if(O)W.streaming={...W.streaming,hls:O}}if(_.format==="dash"){let O=await l(Y,_.qualities||X.streaming?.defaultQualities||[],z,G);if(O)W.streaming={...W.streaming,dash:O}}}if(J.spriteSheet)N?.({percentage:90,stage:"generating-sprite-sheet"});return N?.({percentage:100,stage:"complete"}),await b(K,J,W,X),W}catch(Y){return{src:K,processed:!1,errors:[`Processing failed: ${Y}`]}}}async function AJ(K,J,X,N,Z){try{let Y=await new N.Conversion(K,J,{videoCodec:X.codec,videoBitrate:X.bitrate,width:X.maxWidth,height:X.maxHeight,frameRate:X.frameRate,audioCodec:X.audioCodec,audioBitrate:X.audioBitrate,sampleRate:X.sampleRate,channels:X.channels}).run((z)=>{Z?.(z.percentage/100)});return{duration:Y.duration||0,size:Y.size||0,width:Y.width||X.maxWidth||0,height:Y.height||X.maxHeight||0,bitrate:Y.bitrate||X.bitrate||0,frameRate:Y.frameRate||X.frameRate||30,audioCodec:Y.audioCodec}}catch($){return console.error(`[stx-media] Transcoding failed: ${$}`),null}}export{V as ch,q as dh,b as eh,$J as fh,h as gh,d as hh,zJ as ih,p as jh,l as kh,XJ as lh,wJ as mh};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{bh as a,ch as b,dh as c,eh as d,fh as e,gh as f,hh as g,ih as h,jh as i,kh as j,lh as k}from"./chunk-2g3ffsc9.js";import"./chunk-6rzwef28.js";import"./chunk-cevkpyn9.js";export{c as setCachedVideoResult,k as processVideo,b as getCachedVideoResult,f as generateThumbnails,g as generateSpriteSheet,e as generatePoster,h as generateHLSManifest,i as generateDASHManifest,d as clearVideoCache,j as analyzeVideo,a as VideoProcessorCache};
2
+ import{ch as a,dh as b,eh as c,fh as d,gh as e,hh as f,ih as g,jh as h,kh as i,lh as j,mh as k}from"./chunk-ca57sg6v.js";import"./chunk-mywrb5fy.js";import"./chunk-x7qyx7vn.js";export{c as setCachedVideoResult,k as processVideo,b as getCachedVideoResult,f as generateThumbnails,g as generateSpriteSheet,e as generatePoster,h as generateHLSManifest,i as generateDASHManifest,d as clearVideoCache,j as analyzeVideo,a as VideoProcessorCache};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import v from"fs";import z from"path";import{fileURLToPath as B}from"url";var x;function G(){if(x)return x;let j="unknown";try{j=String(JSON.parse(v.readFileSync(new URL("../package.json",import.meta.url),"utf8")).version)}catch{}if(import.meta.url.endsWith(".ts"))try{let A=z.dirname(B(import.meta.url)),q=0;for(let k of v.readdirSync(A,{recursive:!0,withFileTypes:!0}))if(k.isFile()&&k.name.endsWith(".ts"))q=Math.max(q,v.statSync(z.join(k.parentPath,k.name)).mtimeMs);j+=`+src.${Math.trunc(q)}`}catch{}return x=j,j}
3
- export{G as xl};
3
+ export{G as yl};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ai as a,bi as b,ci as c,di as d,ei as e,fi as f,gi as g,hi as h}from"./chunk-k4x5we49.js";import"./chunk-245ft0zp.js";import"./chunk-x7qyx7vn.js";export{d as v,a as useForm,g as processHasErrorsDirective,h as processFormValidationDirectives,f as processErrorsDirective,e as processErrorDirective,b as defineForm,c as Validator};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Vo as a,Wo as b,Xo as c,Yo as d}from"./chunk-0svp7s94.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-s6c3ymq1.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding,d as declareBareLoopHead};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{xs as i}from"./chunk-ah8gs0q2.js";import{Ru as R,cv as T,wv as S}from"./chunk-rk8p4b1z.js";import{ax as g}from"./chunk-cevkpyn9.js";import k from"path";var O;async function t(){if(O!==void 0)return O;try{O=(await import("@stacksjs/ts-i18n")).loadLocale??null}catch{O=null}return O}var y={defaultLocale:"en",locale:"en",translationsDir:"translations",format:"yaml",fallbackToKey:!0,cache:!0},F={},V={},E={};function vq(q){if(q)delete F[q];else for(let X of Object.keys(F))delete F[X]}function fq(){let q=Object.entries(F).map(([X,Q])=>({locale:X,loadedAt:new Date(Q.loadedAt),keyCount:p(Q.translations)}));return{size:Object.keys(F).length,locales:Object.keys(F),entries:q}}function p(q,X=0){for(let Q of Object.values(q))if(X++,Q&&typeof Q==="object"&&!Array.isArray(Q))X=p(Q,X);return X}function e(q,X=0){if(X<=0)return!1;return Date.now()-q.loadedAt>X}function dq(q){if(F[q])return"loaded";return E[q]||"idle"}function gq(q){return E[q]==="loading"}function uq(q){return!!F[q]}async function qq(q,X){let{locales:Q,parallel:H=!0,priority:J={},onLocaleLoaded:Y,onComplete:W,onError:$}=q,Z=H?Q:[...Q].sort((_,z)=>(J[z]||0)-(J[_]||0));if(H){let _=Z.map(async(z)=>{try{await P(z,X),Y?.(z)}catch(G){$?.(z,G instanceof Error?G:Error(String(G)))}});await Promise.all(_)}else for(let _ of Z)try{await P(_,X),Y?.(_)}catch(z){$?.(_,z instanceof Error?z:Error(String(z)))}W?.()}function hq(q,X){queueMicrotask(()=>{qq(q,X).catch((Q)=>{if(X.debug)console.error("Background preload error:",Q)})})}async function P(q,X){if({...y,...X.i18n}.cache&&F[q]){let J=F[q],Y=X.i18n?.cacheMaxAge??0;if(!e(J,Y))return J.translations}if(V[q]?.state==="loading")return V[q].promise;E[q]="loading";let H=b(q,X).then((J)=>{return E[q]="loaded",delete V[q],J}).catch((J)=>{throw E[q]="error",V[q]={promise:H,state:"error",error:J instanceof Error?J:Error(String(J))},J});return V[q]={promise:H,state:"loading"},H}function Hq(q){return F[q]?.translations}async function pq(q,X){let Q=Hq(q);if(Q)return Q;return P(q,X)}async function mq(q,X){if(F[q])return F[q].translations;if(V[q]){if(X)return Promise.race([V[q].promise,new Promise((Q,H)=>setTimeout(()=>H(Error(`Timeout waiting for locale: ${q}`)),X))]);return V[q].promise}throw Error(`Locale "${q}" is not loading. Call loadTranslationLazy first.`)}function cq(){return Object.entries(E).filter(([q,X])=>X==="loading").map(([q])=>q)}function iq(q){if(q)delete V[q],delete E[q];else{for(let X of Object.keys(V))delete V[X];for(let X of Object.keys(E))delete E[X]}}async function b(q,X){let Q={...y,...X.i18n},H=k.isAbsolute(Q.translationsDir)?Q.translationsDir:k.resolve(X.root||process.cwd(),Q.translationsDir);try{let J=await t(),Y=J?await J(q,{translationsDir:H,defaultLocale:Q.defaultLocale,sources:$q(Q.format)}):await Jq(q,Q,H);if(Y===void 0){if(q!==Q.defaultLocale)return b(Q.defaultLocale,X);return{}}let W=Y;if(Q.cache)F[q]={translations:W,loadedAt:Date.now(),locale:q};return W}catch(J){if(X.debug)console.error(`Error loading translation file for locale "${q}":`,J);if(q!==Q.defaultLocale)return b(Q.defaultLocale,X);return{}}}async function Jq(q,X,Q){let H=k.join(Q,`${q}${Qq(X.format)}`);try{let J=await import(H);return J.default||J}catch(J){try{let Y=await Bun.file(H).text();if(X.format==="yaml"||X.format==="yml")return Xq(Y);if(X.format==="json")return JSON.parse(Y);throw J}catch{return}}}function Qq(q){switch(q){case"yaml":return".yaml";case"yml":return".yml";case"js":return".js";case"ts":return".ts";case"json":default:return".json"}}function Xq(q){let X={},Q=q.split(`
2
+ import{ys as i}from"./chunk-m8bdy2wt.js";import{Su as R,dv as T,xv as S}from"./chunk-akzmq0jr.js";import{bx as g}from"./chunk-x7qyx7vn.js";import k from"path";var O;async function t(){if(O!==void 0)return O;try{O=(await import("@stacksjs/ts-i18n")).loadLocale??null}catch{O=null}return O}var y={defaultLocale:"en",locale:"en",translationsDir:"translations",format:"yaml",fallbackToKey:!0,cache:!0},F={},V={},E={};function vq(q){if(q)delete F[q];else for(let X of Object.keys(F))delete F[X]}function fq(){let q=Object.entries(F).map(([X,Q])=>({locale:X,loadedAt:new Date(Q.loadedAt),keyCount:p(Q.translations)}));return{size:Object.keys(F).length,locales:Object.keys(F),entries:q}}function p(q,X=0){for(let Q of Object.values(q))if(X++,Q&&typeof Q==="object"&&!Array.isArray(Q))X=p(Q,X);return X}function e(q,X=0){if(X<=0)return!1;return Date.now()-q.loadedAt>X}function dq(q){if(F[q])return"loaded";return E[q]||"idle"}function gq(q){return E[q]==="loading"}function uq(q){return!!F[q]}async function qq(q,X){let{locales:Q,parallel:H=!0,priority:J={},onLocaleLoaded:Y,onComplete:W,onError:$}=q,Z=H?Q:[...Q].sort((_,z)=>(J[z]||0)-(J[_]||0));if(H){let _=Z.map(async(z)=>{try{await P(z,X),Y?.(z)}catch(G){$?.(z,G instanceof Error?G:Error(String(G)))}});await Promise.all(_)}else for(let _ of Z)try{await P(_,X),Y?.(_)}catch(z){$?.(_,z instanceof Error?z:Error(String(z)))}W?.()}function hq(q,X){queueMicrotask(()=>{qq(q,X).catch((Q)=>{if(X.debug)console.error("Background preload error:",Q)})})}async function P(q,X){if({...y,...X.i18n}.cache&&F[q]){let J=F[q],Y=X.i18n?.cacheMaxAge??0;if(!e(J,Y))return J.translations}if(V[q]?.state==="loading")return V[q].promise;E[q]="loading";let H=b(q,X).then((J)=>{return E[q]="loaded",delete V[q],J}).catch((J)=>{throw E[q]="error",V[q]={promise:H,state:"error",error:J instanceof Error?J:Error(String(J))},J});return V[q]={promise:H,state:"loading"},H}function Hq(q){return F[q]?.translations}async function pq(q,X){let Q=Hq(q);if(Q)return Q;return P(q,X)}async function mq(q,X){if(F[q])return F[q].translations;if(V[q]){if(X)return Promise.race([V[q].promise,new Promise((Q,H)=>setTimeout(()=>H(Error(`Timeout waiting for locale: ${q}`)),X))]);return V[q].promise}throw Error(`Locale "${q}" is not loading. Call loadTranslationLazy first.`)}function cq(){return Object.entries(E).filter(([q,X])=>X==="loading").map(([q])=>q)}function iq(q){if(q)delete V[q],delete E[q];else{for(let X of Object.keys(V))delete V[X];for(let X of Object.keys(E))delete E[X]}}async function b(q,X){let Q={...y,...X.i18n},H=k.isAbsolute(Q.translationsDir)?Q.translationsDir:k.resolve(X.root||process.cwd(),Q.translationsDir);try{let J=await t(),Y=J?await J(q,{translationsDir:H,defaultLocale:Q.defaultLocale,sources:$q(Q.format)}):await Jq(q,Q,H);if(Y===void 0){if(q!==Q.defaultLocale)return b(Q.defaultLocale,X);return{}}let W=Y;if(Q.cache)F[q]={translations:W,loadedAt:Date.now(),locale:q};return W}catch(J){if(X.debug)console.error(`Error loading translation file for locale "${q}":`,J);if(q!==Q.defaultLocale)return b(Q.defaultLocale,X);return{}}}async function Jq(q,X,Q){let H=k.join(Q,`${q}${Qq(X.format)}`);try{let J=await import(H);return J.default||J}catch(J){try{let Y=await Bun.file(H).text();if(X.format==="yaml"||X.format==="yml")return Xq(Y);if(X.format==="json")return JSON.parse(Y);throw J}catch{return}}}function Qq(q){switch(q){case"yaml":return".yaml";case"yml":return".yml";case"js":return".js";case"ts":return".ts";case"json":default:return".json"}}function Xq(q){let X={},Q=q.split(`
3
3
  `),H=[{obj:X,indent:-1}];for(let J of Q){let Y=J.replace(/#.*$/,"").trimEnd();if(!Y.trim())continue;let W=Y.search(/\S/);if(W===-1)continue;while(H.length>1&&H[H.length-1].indent>=W)H.pop();let $=H[H.length-1].obj,Z=Y.match(/^(\s*)(\S[^:]*):\s*(.*)$/);if(Z){let[,,_,z]=Z,G=_.trim(),w=z.trim();if(w==="")$[G]={},H.push({obj:$[G],indent:W});else $[G]=Zq(w)}}return X}function Zq(q){if(q.startsWith("'")&&q.endsWith("'")||q.startsWith('"')&&q.endsWith('"'))return q.slice(1,-1);let X=q.toLowerCase();if(X==="true"||X==="yes")return!0;if(X==="false"||X==="no")return!1;if(X==="null"||X==="~")return null;let Q=Number(q);if(!Number.isNaN(Q)&&q!=="")return Q;return q}function $q(q){switch(q){case"yaml":case"yml":return["yaml"];case"js":case"ts":return["ts"];case"json":default:return["json"]}}async function Wq(q,X){return P(q,X)}function Yq(q,X){for(let Q of q){let H=Q.trim(),J=H.match(/^\{(\d+)\}\s*(.*)$/);if(J){let W=Number.parseInt(J[1],10);if(X===W)return J[2];continue}let Y=H.match(/^\[(\d+),(\d+|\*)\]\s*(.*)$/);if(Y){let W=Number.parseInt(Y[1],10),$=Y[2]==="*"?Number.POSITIVE_INFINITY:Number.parseInt(Y[2],10);if(X>=W&&X<=$)return Y[3];continue}}if(q.length===2)return X===1?q[0].trim():q[1].trim();if(X<q.length)return q[X].trim();return q[q.length-1].trim()}function _q(q,X={}){return m(q,X)}function m(q,X){let Q="",H=0;while(H<q.length)if(q[H]==="{"){let J=zq(q,H);if(J===-1){Q+=q[H],H++;continue}let Y=q.slice(H+1,J);Q+=Gq(Y,X),H=J+1}else if(q[H]==="'"&&H+1<q.length)if(q[H+1]==="'")Q+="'",H+=2;else if(q[H+1]==="{"||q[H+1]==="}")Q+=q[H+1],H+=2;else Q+=q[H],H++;else Q+=q[H],H++;return Q}function zq(q,X){let Q=0;for(let H=X;H<q.length;H++)if(q[H]==="{")Q++;else if(q[H]==="}"){if(Q--,Q===0)return H}return-1}function Gq(q,X){let Q=Bq(q);if(Q.length===0)return`{${q}}`;let H=Q[0].trim(),J=X[H];if(Q.length===1)return J!==void 0?String(J):`{${H}}`;switch(Q[1].trim().toLowerCase()){case"plural":return wq(J,Q.slice(2).join(","),X);case"select":return Dq(J,Q.slice(2).join(","));case"selectordinal":return Kq(J,Q.slice(2).join(","));case"number":return Vq(J,Q[2]?.trim());case"date":return Eq(J,Q[2]?.trim());case"time":return Aq(J,Q[2]?.trim());default:return J!==void 0?String(J):`{${q}}`}}function Bq(q){let X=[],Q="",H=0;for(let J=0;J<q.length;J++){let Y=q[J];if(Y==="{")H++,Q+=Y;else if(Y==="}")H--,Q+=Y;else if(Y===","&&H===0)X.push(Q),Q="";else Q+=Y}if(Q)X.push(Q);return X}function wq(q,X,Q){let H=Number(q)||0,J=C(X),Y=`=${H}`;if(J[Y])return I(J[Y],H,Q);let W=jq(H);if(J[W])return I(J[W],H,Q);if(J.other)return I(J.other,H,Q);return String(H)}function I(q,X,Q){let H=q.replace(/#/g,String(X));return m(H,Q)}function jq(q){let X=Math.abs(q),Q=Math.floor(X),H=String(q).includes(".")?String(q).split(".")[1].length:0;if(Q===1&&H===0)return"one";return"other"}function Dq(q,X){let Q=String(q||""),H=C(X);if(H[Q])return H[Q];return H.other||String(q)}function Kq(q,X){let Q=Number(q)||0,H=C(X),J=Fq(Q);if(H[J])return H[J].replace(/#/g,String(Q));if(H.other)return H.other.replace(/#/g,String(Q));return String(Q)}function Fq(q){let X=Math.abs(q),Q=X%10,H=X%100;if(Q===1&&H!==11)return"one";if(Q===2&&H!==12)return"two";if(Q===3&&H!==13)return"few";return"other"}function C(q){let X={},Q=/(\w+|=\d+)\s*\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g,H=Q.exec(q);while(H!==null)X[H[1]]=H[2],H=Q.exec(q);return X}function Vq(q,X){let Q=Number(q);if(Number.isNaN(Q))return String(q);switch(X){case"integer":return Math.floor(Q).toLocaleString();case"percent":return`${(Q*100).toFixed(0)}%`;case"currency":return Q.toLocaleString(void 0,{style:"currency",currency:"USD"});default:return Q.toLocaleString()}}function Eq(q,X){let Q=q instanceof Date?q:new Date(String(q));if(Number.isNaN(Q.getTime()))return String(q);let H={};switch(X){case"short":H.dateStyle="short";break;case"medium":H.dateStyle="medium";break;case"long":H.dateStyle="long";break;case"full":H.dateStyle="full";break;default:H.dateStyle="medium"}return Q.toLocaleDateString(void 0,H)}function Aq(q,X){let Q=q instanceof Date?q:new Date(String(q));if(Number.isNaN(Q.getTime()))return String(q);let H={};switch(X){case"short":H.timeStyle="short";break;case"medium":H.timeStyle="medium";break;case"long":H.timeStyle="long";break;case"full":H.timeStyle="full";break;default:H.timeStyle="short"}return Q.toLocaleTimeString(void 0,H)}function Uq(q){return/\{[^}]+,\s*(?:plural|select|selectordinal|number|date|time)\s*,/.test(q)}function L(q,X,Q=!0,H={}){let J=q.split("."),Y=X;for(let $ of J){if(Y===void 0||Y===null)break;Y=Y[$]}if(Y===void 0||Y===null)return Q?q:"";let W=String(Y);if(Uq(W))return _q(W,H);if(W.includes("|")&&"count"in H){let $=Number(H.count),Z=W.split("|");W=Yq(Z,$)}for(let[$,Z]of Object.entries(H)){let _=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");W=W.replace(new RegExp(`:${_}`,"g"),String(Z))}return W}var u=new Set(["ar","arc","ckb","dv","fa","he","khw","ks","nqo","prs","ps","sd","syr","ug","ur","uz-af","yi"]),Mq=new Set(["adlm","arab","aran","hebr","nkoo","rohg","syrc","thaa","yezi"]);function x(q){if(!q)return"ltr";let X=q.trim().toLowerCase().replace(/_/g,"-").split("-"),Q=X[0];if(!Q)return"ltr";let H=X[1]?.length===4?X[1]:void 0;if(H)return Mq.has(H)?"rtl":"ltr";if(X.length>1&&u.has(`${Q}-${X[1]}`))return"rtl";return u.has(Q)?"rtl":"ltr"}function nq(q){return x(q)==="rtl"}async function sq(q,X,Q,H){let J=q,Y=/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]*\})\s*)?\)([\s\S]*?)@endtranslate/g,W={...y,...H.i18n},$=await Wq(W.locale,H);X.__translations=$,X.__locale=W.locale,X.__i18nConfig=W,J=await h(J,Y,async(z,G,w,K,j)=>{try{let D={};if(w)try{let B=[()=>JSON.parse(w),()=>{let U=`{"data":${w}}`,M=JSON.parse(U);return typeof M.data==="object"?M.data:{}},()=>{return S(w,X)}];for(let U of B)try{if(D=U(),Object.keys(D).length>0)break}catch{}}catch(B){if(H.debug)console.error("Error parsing parameters for @translate directive:",B)}return L(G,$,W.fallbackToKey,D)||K.trim()}catch(D){if(H.debug)console.error("Error processing @translate directive:",D);return T("Translate",`Error in @translate('${G}'): ${D instanceof Error?D.message:String(D)}`,R.EVALUATION_ERROR)}});let Z=/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]+\})\s*)?\)/g;if(H.debug){console.warn(`Processing translations in template. Sections: ${J.includes("<h2>Translation with Parameters</h2>")?"Parameters section found":"Parameters section missing"}`);let z=[...J.matchAll(Z)];console.warn(`Found ${z.length} @translate matches`),z.forEach((G,w)=>console.warn(`Match ${w}: ${G[0]}, Key: ${G[1]}, Params: ${G[2]||"none"}`))}return J=await h(J,/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]*\})\s*)?\)/g,async(z,G,w,K)=>{try{let j={};if(w)try{let D=[()=>JSON.parse(w),()=>{let A=`{"data":${w}}`,B=JSON.parse(A);return typeof B.data==="object"?B.data:{}},()=>{return S(w,X)}];for(let A of D)try{if(j=A(),Object.keys(j).length>0)break}catch{}}catch(D){if(H.debug)console.error("Error parsing parameters for @translate directive:",D)}return L(G,$,W.fallbackToKey,j)}catch(j){if(H.debug)console.error("Error processing @translate directive:",j);return T("Translate",`Error in @translate('${G}'): ${j instanceof Error?j.message:String(j)}`,R.EVALUATION_ERROR)}}),J}async function h(q,X,Q){let H=[];return q.replace(X,(Y,...W)=>{let $=Q(Y,...W).then((Z)=>({match:Y,replacement:Z}));return H.push($),Y}),(await Promise.all(H)).reduce((Y,{match:W,replacement:$})=>Y.replace(W,$),q)}function rq(q,X=!0){return(Q,H={})=>{return L(Q,q,X,H)}}import c from"path";function v(q,X){if(!q||x(q)!=="rtl")return!1;return!X||X.trim().toLowerCase()!=="rtl"}function n(q){if(!q)return!1;return q.trim().split(/\s+/)[0]?.toLowerCase()==="presentation"||q.trim().split(/\s+/)[0]?.toLowerCase()==="none"}function N(q,X){let Q=new RegExp(`\\b${X}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i").exec(q);if(!Q)return null;return Q[2]??Q[3]??Q[4]??null}function eq(q,X,Q,H){let J=q;J=J.replace(/@a11y\(\s*['"]([^'"]+)['"]\s*(?:,\s*['"]([^'"]+)['"]\s*)?\)/g,(W,$,Z)=>{let z={"aria-label":"Ensure interactive elements have accessible labels","alt-text":"Provide alternative text for images",focus:"Ensure the element can receive keyboard focus",landmark:"Use appropriate landmark roles","heading-order":"Maintain proper heading hierarchy","color-contrast":"Ensure sufficient color contrast","keyboard-nav":"Make sure element is keyboard navigable","screen-reader":"Optimize for screen reader users"}[$]||"Make this element accessible";return`<!-- a11y-hint: ${Z||z} -->`});let Y=/@screenReader\(([^@]*)\)@endScreenReader/g;return J=J.replace(Y,(W,$)=>{return`<span class="sr-only">${$.trim()}</span>`}),J=J.replace(/@ariaDescribe\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)/g,(W,$,Z)=>{return`<span id="${`desc-${$}`}" class="sr-only">${Z}</span>`}),J}function qH(){return`
4
4
  .sr-only {
5
5
  position: absolute;
@@ -13,4 +13,4 @@ import{xs as i}from"./chunk-ah8gs0q2.js";import{Ru as R,cv as T,wv as S}from"./c
13
13
  border-width: 0;
14
14
  }
15
15
  `.trim()}function Oq(){return typeof globalThis.document<"u"&&typeof globalThis.document.createElement==="function"}function s(q){let X=new Map,Q=q.replace(/<(\/?)([A-Z][\w:.-]*)(?=[\s/>])/g,(J,Y,W)=>{let $=X.get(W);if(!$)$=`stx-a11y-component-${X.size}`,X.set(W,$);return`<${Y}${$}`}),H=new Map([...X.entries()].map(([J,Y])=>[Y,J]));return{protectedSource:Q,restore:(J)=>J.replace(/<(\/?)(stx-a11y-component-\d+)(?=[\s/>])/g,(Y,W,$)=>{let Z=H.get($);return Z?`<${W}${Z}`:Y})}}function Nq(q,X){let Q=[],H=/<img\s+([^>]*)>/gi,J;J=H.exec(q);while(J!==null){let B=J[1];if(!/\balt\s*=/i.test(B))Q.push({type:"missing-alt",element:J[0].substring(0,100),message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"});J=H.exec(q)}let Y=/<button([^>]*)>\s*<\/button>/gi;J=Y.exec(q);while(J!==null){let B=J[1];if(!/\baria-label\s*=/i.test(B)&&!/\btitle\s*=/i.test(B))Q.push({type:"missing-accessible-name",element:J[0].substring(0,100),message:"Empty button missing accessible name",impact:"critical",help:"Add text content, aria-label, or title",helpUrl:"https://web.dev/learn/accessibility/aria-html/"});J=Y.exec(q)}let W=/<a\s+([^>]*)>\s*<\/a>/gi;J=W.exec(q);while(J!==null){let B=J[1];if(!/\baria-label\s*=/i.test(B)&&!/\btitle\s*=/i.test(B))Q.push({type:"link-missing-text",element:J[0].substring(0,100),message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"});J=W.exec(q)}let $=/<(input|select|textarea)\s+([^>]*)>/gi;J=$.exec(q);while(J!==null){let B=J[2];if(/\btype\s*=\s*["']hidden["']/i.test(B)){J=$.exec(q);continue}let U=/\baria-label\s*=/i.test(B)||/\baria-labelledby\s*=/i.test(B),M=B.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!U){let r=M&&new RegExp(`<label[^>]*\\bfor\\s*=\\s*["']${M[1]}["']`,"i").test(q),f=J.index,d=q.substring(0,f),Lq=q.substring(f),l=(d.match(/<label\b/gi)||[]).length,o=(d.match(/<\/label>/gi)||[]).length,a=l>o;if(!r&&!a)Q.push({type:"input-missing-label",element:J[0].substring(0,100),message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})}J=$.exec(q)}let Z=/<h([1-6])[^>]*>/gi,_=[];J=Z.exec(q);while(J!==null)_.push(Number.parseInt(J[1],10)),J=Z.exec(q);let z=0;for(let B of _){if(z>0&&B>z+1)Q.push({type:"heading-skip",element:`<h${B}>`,message:`Heading level skipped from h${z} to h${B}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});z=B}if(/<html\b/i.test(q)&&!/<html[^>]*\slang\s*=/i.test(q))Q.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});let G=q.match(/<html\b([^>]*)>/i);if(G&&v(N(G[1],"lang"),N(G[1],"dir")))Q.push({type:"missing-dir",element:G[0].substring(0,100),message:'Document language is right-to-left but dir="rtl" is not set',impact:"serious",help:'Add dir="rtl" to the html element so the layout mirrors the text',helpUrl:"https://www.w3.org/International/questions/qa-html-dir"});let w=/<table([^>]*)>([\s\S]*?)<\/table>/gi;J=w.exec(q);while(J!==null){let B=J[2];if(!n(N(J[1],"role"))&&!/<th\b/i.test(B))Q.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});J=w.exec(q)}let K=/<(video|audio)[^>]*\sautoplay\s[^>]*>/gi;J=K.exec(q);while(J!==null){if(!/\bmuted\b/i.test(J[0]))Q.push({type:"autoplay-audio",element:`<${J[1]}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"});J=K.exec(q)}let j=/\btabindex\s*=\s*["']([1-9]\d*)["']/gi;J=j.exec(q);while(J!==null)Q.push({type:"positive-tabindex",element:`tabindex="${J[1]}"`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"}),J=j.exec(q);let D=/<iframe\s+([^>]*)>/gi;J=D.exec(q);while(J!==null){let B=J[1];if(!/\btitle\s*=/i.test(B)&&!/\baria-label\s*=/i.test(B))Q.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"});J=D.exec(q)}let A=/<([a-z]+)\s+([^>]*role\s*=\s*["']button["'][^>]*)>/gi;J=A.exec(q);while(J!==null){let B=J[1].toLowerCase(),U=J[2];if(B!=="button"&&!/\btabindex\s*=/i.test(U))Q.push({type:"button-not-focusable",element:J[0].substring(0,100),message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"});J=A.exec(q)}return Q}async function Pq(q,X){let{protectedSource:Q}=s(q);if(!Oq())return Nq(Q,X);let H=[];try{let J=globalThis.document.createElement("div");J.innerHTML=Q,J.querySelectorAll("img").forEach((Z)=>{if(!Z.hasAttribute("alt"))H.push({type:"missing-alt",element:`<${Z.outerHTML}>`,message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"})}),J.querySelectorAll('button, a, [role="button"]').forEach((Z)=>{if(!(Z.hasAttribute("aria-label")||Z.hasAttribute("aria-labelledby")||Z.textContent&&Z.textContent.trim().length>0))H.push({type:"missing-accessible-name",element:`<${Z.outerHTML}>`,message:"Interactive element missing accessible name",impact:"critical",help:"Add text content, aria-label, or aria-labelledby",helpUrl:"https://web.dev/learn/accessibility/aria-html/"})}),J.querySelectorAll("input, select, textarea").forEach((Z)=>{let _=Z.getAttribute("id"),z=_&&J.querySelector(`label[for="${_}"]`),G=Z.hasAttribute("aria-label")||Z.hasAttribute("aria-labelledby"),w=Z.closest("label")!==null;if(!z&&!G&&!w)H.push({type:"input-missing-label",element:`<${Z.outerHTML}>`,message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})});let Y=Array.from(J.querySelectorAll("h1, h2, h3, h4, h5, h6")),W=0;for(let Z of Y){let _=Number.parseInt(Z.tagName.charAt(1));if(W>0&&_>W+1)H.push({type:"heading-skip",element:`<${Z.outerHTML}>`,message:`Heading level skipped from h${W} to h${_}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});W=_}let $=J.querySelector("html");if(Q.includes("<html")&&$&&!$.hasAttribute("lang"))H.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});if($&&v($.getAttribute("lang"),$.getAttribute("dir")))H.push({type:"missing-dir",element:"<html>",message:'Document language is right-to-left but dir="rtl" is not set',impact:"serious",help:'Add dir="rtl" to the html element so the layout mirrors the text',helpUrl:"https://www.w3.org/International/questions/qa-html-dir"});if(J.querySelectorAll("a").forEach((Z)=>{let _=Z.textContent&&Z.textContent.trim().length>0,z=Z.hasAttribute("aria-label")||Z.hasAttribute("aria-labelledby"),G=Z.hasAttribute("title"),w=Z.querySelector("img[alt]");if(!_&&!z&&!G&&!w)H.push({type:"link-missing-text",element:`<${Z.outerHTML}>`,message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"})}),Q.includes("<nav")||Q.includes("<header")){if(!J.querySelector('a[href="#main"], a[href="#content"], .skip-link, [class*="skip"]')&&J.querySelectorAll("a").length>5)H.push({type:"missing-skip-link",element:"<nav>",message:"Consider adding a skip navigation link",impact:"minor",help:"Add a skip link to allow keyboard users to bypass navigation",helpUrl:"https://web.dev/learn/accessibility/focus/#skip-links"})}if(J.querySelectorAll("table").forEach((Z)=>{if(n(Z.getAttribute("role")))return;let _=Z.querySelector("caption");if(!Z.querySelector("th"))H.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});if(!_&&!Z.hasAttribute("aria-label")&&!Z.hasAttribute("aria-labelledby"))H.push({type:"table-missing-caption",element:"<table>",message:"Table missing caption or accessible name",impact:"minor",help:"Add a caption element or aria-label to describe the table",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"})}),J.querySelectorAll('[style*="color"]').forEach((Z)=>{let _=Z.getAttribute("style")||"";if(_.includes("color:")&&!_.includes("background"))H.push({type:"potential-contrast-issue",element:`<${Z.tagName.toLowerCase()}>`,message:"Element has inline color style - verify contrast ratio",impact:"minor",help:"Ensure text has sufficient contrast ratio (4.5:1 for normal text)",helpUrl:"https://web.dev/learn/accessibility/color-contrast/"})}),J.querySelectorAll("video[autoplay], audio[autoplay]").forEach((Z)=>{if(!Z.hasAttribute("muted"))H.push({type:"autoplay-audio",element:`<${Z.tagName.toLowerCase()}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"})}),J.querySelectorAll("[tabindex]").forEach((Z)=>{if(Number.parseInt(Z.getAttribute("tabindex")||"0")>0)H.push({type:"positive-tabindex",element:`<${Z.tagName.toLowerCase()}>`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"})}),J.querySelectorAll('[role="button"]').forEach((Z)=>{if(!Z.hasAttribute("tabindex"))H.push({type:"button-not-focusable",element:`<${Z.outerHTML}>`,message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"})}),Q.includes("<body")&&!J.querySelector('main, [role="main"]'))H.push({type:"missing-main-landmark",element:"<body>",message:"Document missing main landmark region",impact:"moderate",help:"Add a main element to identify the primary content",helpUrl:"https://web.dev/learn/accessibility/structure/#landmarks"});J.querySelectorAll("iframe").forEach((Z)=>{if(!Z.hasAttribute("title")&&!Z.hasAttribute("aria-label"))H.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"})})}catch(J){console.error(`Error checking accessibility in ${X}:`,J)}return H}async function Iq(q,X={}){let Q={},{recursive:H=!0,ignorePaths:J=[]}=X,Y=Array.isArray(q)?q:[q],W=await i(Y,{recursive:H,ignorePaths:J}),$=[];for(let Z of W)try{let _=await Bun.file(Z).text();if(Z.endsWith("good-a11y.stx"))continue;let z=await Pq(_,Z);if($.push(Z),z.length>0)Q[Z]=z}catch(_){console.error(`Error scanning ${Z}:`,_)}return{results:Q,scannedFiles:$}}async function HH(q,X={}){return(await Iq(q,X)).results}var Rq={fixMissingAlt:!0,fixMissingLabels:!0,fixMissingFormLabels:!0,fixTableHeaders:!0,fixMissingLang:!0,fixMissingDir:!0,fixPositiveTabindex:!0,fixButtonFocusable:!0,defaultLang:"en"};function Tq(q,X={}){let Q={...Rq,...X},H=[],{protectedSource:J,restore:Y}=s(q),W=J;if(Q.fixMissingAlt)W=W.replace(/<img([^>]*?)(?<!\balt\s*=\s*["'][^"']*["'])(\s*\/?>)/gi,($,Z,_)=>{if(/\balt\s*=/i.test(Z))return $;let z=$,G=`<img${Z} alt=""${_}`;return H.push({type:"missing-alt",description:"Added empty alt attribute to image",before:z,after:G}),G});if(Q.fixMissingLabels)W=W.replace(/<button([^>]*)>\s*<\/button>/gi,($,Z)=>{if(/\baria-label\s*=/i.test(Z)||/\btitle\s*=/i.test(Z))return $;let _=$,z=`<button${Z} aria-label="Button"></button>`;return H.push({type:"missing-accessible-name",description:"Added aria-label to empty button",before:_,after:z}),z}),W=W.replace(/<a([^>]*)>\s*(<(?:i|span|svg)[^>]*(?:class="[^"]*icon[^"]*")?[^>]*>.*?<\/(?:i|span|svg)>)?\s*<\/a>/gi,($,Z,_)=>{if(/\baria-label\s*=/i.test(Z)||/\btitle\s*=/i.test(Z))return $;if(!_&&$.replace(/<a[^>]*>|<\/a>/gi,"").trim())return $;let z=$,G=`<a${Z} aria-label="Link">${_||""}</a>`;return H.push({type:"missing-accessible-name",description:"Added aria-label to link without text",before:z,after:G}),G});if(Q.fixMissingFormLabels)W=W.replace(/<(input|select|textarea)([^>]*)>/gi,($,Z,_)=>{if(/\baria-label\s*=/i.test(_)||/\baria-labelledby\s*=/i.test(_))return $;if(/\btype\s*=\s*["']hidden["']/i.test(_))return $;let z=_.match(/\bname\s*=\s*["']([^"']+)["']/i),G=_.match(/\bid\s*=\s*["']([^"']+)["']/i),w=z?.[1]||G?.[1]||Z,K=$,j=`<${Z}${_} aria-label="${w}">`;return H.push({type:"input-missing-label",description:`Added aria-label to ${Z} element`,before:K,after:j}),j});if(Q.fixMissingLang)W=W.replace(/<html([^>]*)>/gi,($,Z)=>{if(/\blang\s*=/i.test(Z))return $;let _=$,z=`<html${Z} lang="${Q.defaultLang}">`;return H.push({type:"missing-lang",description:`Added lang="${Q.defaultLang}" to html element`,before:_,after:z}),z});if(Q.fixMissingDir)W=W.replace(/<html([^>]*)>/gi,($,Z)=>{let _=N(Z,"lang");if(!v(_,N(Z,"dir")))return $;let z=/\bdir\s*=/i.test(Z)?`<html${Z.replace(/\bdir\s*=\s*(["'])[^"']*\1/i,'dir="rtl"')}>`:`<html${Z} dir="rtl">`;return H.push({type:"missing-dir",description:`Added dir="rtl" to html element (lang="${_}" is right-to-left)`,before:$,after:z}),z});if(Q.fixPositiveTabindex)W=W.replace(/\btabindex\s*=\s*["']([1-9]\d*)["']/gi,($,Z)=>{let _=$,z='tabindex="0"';return H.push({type:"positive-tabindex",description:`Changed tabindex="${Z}" to tabindex="0"`,before:_,after:'tabindex="0"'}),'tabindex="0"'});if(Q.fixButtonFocusable)W=W.replace(/<([a-z]+)(\s[^>]*role\s*=\s*["']button["'][^>]*)>/gi,($,Z,_)=>{if(/\btabindex\s*=/i.test(_))return $;if(Z.toLowerCase()==="button")return $;let z=$,G=`<${Z}${_} tabindex="0">`;return H.push({type:"button-not-focusable",description:'Added tabindex="0" to element with role="button"',before:z,after:G}),G});if(Q.fixTableHeaders)W=W.replace(/<th([^>]*)>/gi,($,Z)=>{if(/\bscope\s*=/i.test(Z))return $;let _=$,z=`<th${Z} scope="col">`;return H.push({type:"table-missing-scope",description:'Added scope="col" to table header',before:_,after:z}),z});return{original:q,fixed:Y(W),fixCount:H.length,fixes:H}}async function Sq(q,X={},Q=!1){let H=await Bun.file(q).text(),J=Tq(H,X);if(Q&&J.fixCount>0)await Bun.write(q,J.fixed);return J}async function JH(q,X={},Q={}){let H={},{recursive:J=!0,ignorePaths:Y=[],writeBack:W=!1,extensions:$=[".stx",".html",".htm"]}=Q,Z=$.length===1?`*${$[0]}`:`*{${$.join(",")}}`,_=c.join(q,J?`**/${Z}`:Z),z=new Bun.Glob(_);for await(let G of z.scan()){if(Y.some((K)=>G.includes(c.normalize(K))))continue;try{let K=await Sq(G,X,W);if(K.fixCount>0)H[G]=K}catch(K){console.error(`Error fixing ${G}:`,K)}}return H}var kq={name:"a11y",handler:(q,X,Q,H)=>{if(!X.length)return q;let J=X[0].replace(/['"]/g,""),Y=X.length>1?X[1].replace(/['"]/g,""):"",$={"aria-label":"Ensure interactive elements have accessible labels","alt-text":"Provide alternative text for images",focus:"Ensure the element can receive keyboard focus",landmark:"Use appropriate landmark roles","heading-order":"Maintain proper heading hierarchy","color-contrast":"Ensure sufficient color contrast","keyboard-nav":"Make sure element is keyboard navigable","screen-reader":"Optimize for screen reader users"}[J]||"Make this element accessible";return`<!-- a11y-hint: ${Y||$} -->${q}`},hasEndTag:!1},bq={name:"screenReader",handler:(q)=>{return`<span class="sr-only">${q}</span>`},hasEndTag:!0};function QH(){return[kq,bq]}
16
- export{y as Nr,vq as Or,fq as Pr,dq as Qr,gq as Rr,uq as Sr,qq as Tr,hq as Ur,P as Vr,Hq as Wr,pq as Xr,mq as Yr,cq as Zr,iq as _r,Wq as $r,_q as as,Uq as bs,L as cs,x as ds,nq as es,sq as fs,rq as gs,n as hs,N as is,eq as js,qH as ks,Oq as ls,Nq as ms,Pq as ns,Iq as os,HH as ps,Tq as qs,Sq as rs,JH as ss,kq as ts,bq as us,QH as vs};
16
+ export{y as Or,vq as Pr,fq as Qr,dq as Rr,gq as Sr,uq as Tr,qq as Ur,hq as Vr,P as Wr,Hq as Xr,pq as Yr,mq as Zr,cq as _r,iq as $r,Wq as as,_q as bs,Uq as cs,L as ds,x as es,nq as fs,sq as gs,rq as hs,n as is,N as js,eq as ks,qH as ls,Oq as ms,Nq as ns,Pq as os,Iq as ps,HH as qs,Tq as rs,Sq as ss,JH as ts,kq as us,bq as vs,QH as ws};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ao as i,Bo as j,Co as k,Do as l,Eo as m,Fo as n,so as a,to as b,uo as c,vo as d,wo as e,xo as f,yo as g,zo as h}from"./chunk-0svp7s94.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-s6c3ymq1.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{n as stripStxRuntimeImports,b as scanScriptTags,m as rewriteStxImportSpecifiers,k as processSignals,i as processScriptSetup,f as preEvalLiteralReactiveIfs,c as parseLoopExpression,d as hasSignalsSyntax,l as findMarkupIndexOutsideScripts,j as extractExports,h as convertSignalLoopsToAttributes,e as convertSignalDirectivesToAttributes,g as convertServerLoopAttributesToDirectives,a as clearScriptScanCache};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  import z from"fs";function B(x){return[...x].sort().map((b)=>{try{let j=z.statSync(b);return`${b}:${j.size}:${j.mtimeMs}`}catch{return`${b}:missing`}}).join(`
3
3
  `)}function C(x,b,j){let q=x.get(b);return q!==void 0&&q.signature===j?q.value:void 0}function D(x,b,j,q){return x.set(b,{signature:j,value:q}),q}
4
- export{B as Ni,C as Oi,D as Pi};
4
+ export{B as Oi,C as Pi,D as Qi};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Er as P,Fo as x,Oo as k,Up as w,Wl as A,Xl as b,co as M,en as T,fn as y,om as B,qm as F,qo as R}from"./chunk-tte381m0.js";import{ax as v}from"./chunk-cevkpyn9.js";function j(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,Y){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(Y?.some((X)=>q>=X.start&&N<=X.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,Y)=>J.start-Y.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function D(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>b(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as f,resolve as H}from"path";function S(K){let z=K,G=M(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],Y=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],X=$[2],E=$[0],Z=N.includes("server");if(Y(X))J.push(E);else if(Z)Q.push(X);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,X,E=[];while((X=N.exec(q))!==null){let Z=X.index+X[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:X.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
2
+ import{Fr as P,Go as x,Po as k,Vp as w,Xl as A,Yl as b,do as M,fn as T,gn as y,pm as B,rm as F,ro as R}from"./chunk-0svp7s94.js";import{bx as v}from"./chunk-x7qyx7vn.js";function j(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,Y){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(Y?.some((X)=>q>=X.start&&N<=X.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,Y)=>J.start-Y.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function D(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>b(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as f,resolve as H}from"path";function S(K){let z=K,G=M(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],Y=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],X=$[2],E=$[0],Z=N.includes("server");if(Y(X))J.push(E);else if(Z)Q.push(X);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,X,E=[];while((X=N.exec(q))!==null){let Z=X.index+X[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:X.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -14,5 +14,5 @@ ${Q.join(`
14
14
  `)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=Y.__stx_event_bindings||[],X=B(Y),Z=(await Promise.all(Q.map(async(I)=>{let W=I.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return I;return await F(W[1],{eventBindings:N,templateContent:q,serverData:X,filePath:z})}))).join(`
15
15
  `);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
16
16
  $1`);else q+=`
17
- ${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-65c929m6.js");q=await N(q)}catch{}return q}
18
- export{j as sk,C as tk,D as uk,o as vk,r as wk,V as xk};
17
+ ${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-qnq99ej3.js");q=await N(q)}catch{}return q}
18
+ export{j as tk,C as uk,D as vk,o as wk,r as xk,V as yk};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as om,$a as so,$b as Dp,$c as Dq,$d as Dr,A as _k,Aa as Dn,Ab as Xo,Ac as cq,Ad as cr,Ae as is,B as $k,Ba as En,Bb as Yo,Bc as dq,Bd as dr,Be as js,C as al,Ca as Fn,Cb as Zo,Cc as eq,Cd as er,Ce as ks,D as bl,Da as Gn,Db as _o,Dc as fq,Dd as fr,De as ls,E as cl,Ea as Hn,Eb as $o,Ec as gq,Ed as gr,Ee as ms,F as dl,Fa as Un,Fb as ap,Fc as hq,Fd as hr,Fe as ns,G as el,Ga as Vn,Gb as bp,Gc as iq,Gd as ir,Ge as os,H as Wl,Ha as Wn,Hb as cp,Hc as jq,Hd as jr,He as ps,I as Xl,Ia as Xn,Ib as dp,Ic as kq,Id as kr,Ie as qs,J as Yl,Ja as Yn,Jb as ep,Jc as lq,Jd as lr,Je as rs,K as Zl,Ka as Zn,Kb as fp,Kc as mq,Kd as mr,Ke as ss,L as _l,La as bo,Lb as gp,Lc as nq,Ld as nr,Le as ts,M as $l,Ma as co,Mb as hp,Mc as oq,Md as or,Me as us,N as am,Na as eo,Nb as ip,Nc as pq,Nd as pr,Ne as vs,O as bm,Oa as fo,Ob as jp,Oc as qq,Od as qr,P as cm,Pa as go,Pb as kp,Pc as rq,Pd as rr,Q as dm,Qa as ho,Qb as sp,Qc as sq,Qd as sr,R as em,Ra as io,Rb as tp,Rc as tq,Rd as tr,S as fm,Sa as jo,Sb as up,Sc as uq,Sd as ur,T as gm,Ta as ko,Tb as vp,Tc as vq,Td as vr,U as hm,Ua as lo,Ub as wp,Uc as wq,Ud as wr,V as im,Va as mo,Vb as xp,Vc as xq,Vd as xr,W as jm,Wa as no,Wb as yp,Wc as yq,Wd as yr,X as km,Xa as oo,Xb as zp,Xc as zq,Xd as zr,Y as lm,Ya as po,Yb as Ap,Yc as Aq,Yd as Ar,Z as mm,Za as qo,Zb as Bp,Zc as Bq,Zd as Br,_ as nm,_a as ro,_b as Cp,_c as Cq,_d as Cr,aa as pm,ab as to,ac as Ep,ad as Eq,ae as Er,ba as qm,bb as uo,bc as Fp,bd as Fq,be as Fr,ca as rm,cb as vo,cc as Gp,cd as Gq,ce as Gr,da as sm,db as wo,dc as Hp,dd as Hq,de as Hr,ea as tm,eb as xo,ec as Ip,ed as Iq,ee as Or,fa as um,fb as yo,fc as Jp,fd as Jq,fe as Pr,ga as vm,gb as zo,gc as Kp,gd as Kq,ge as Qr,ha as wm,hb as Ao,hc as Lp,hd as Lq,he as Rr,ia as xm,ib as Bo,ic as Mp,id as Mq,ie as Sr,ja as ym,jb as Co,jc as Np,jd as Nq,je as Tr,ka as zm,kb as Do,kc as Op,kd as Oq,ke as Ur,la as Am,lb as Eo,lc as Pp,ld as Pq,le as Vr,ma as Bm,mb as Fo,mc as Qp,md as Qq,me as Wr,na as Cm,nb as Go,nc as Rp,nd as Rq,ne as Xr,o as a,oa as Dm,ob as Ho,oc as Sp,od as Sq,oe as Yr,p as Lk,pa as Em,pb as Io,pc as Tp,pd as Tq,pe as Zr,q as Mk,qa as Fm,qb as Lo,qc as Up,qd as Uq,qe as _r,r as Nk,ra as Gm,rb as Mo,rc as Vp,rd as Vq,re as $r,s as Ok,sa as vn,sb as No,sc as Wp,sd as Wq,se as as,t as Pk,ta as wn,tb as Oo,tc as Xp,td as Xq,te as bs,u as Qk,ua as xn,ub as Qo,uc as Yp,ud as Yq,ue as cs,v as Rk,va as yn,vb as Ro,vc as Zp,vd as Zq,ve as ds,w as Sk,wa as zn,wb as So,wc as _p,wd as _q,we as es,x as Tk,xa as An,xb as To,xc as $p,xd as $q,xe as fs,y as Yk,ya as Bn,yb as Vo,yc as aq,yd as ar,ye as gs,z as Zk,za as Cn,zb as Wo,zc as bq,zd as br,ze as hs}from"./chunk-kzx28zd5.js";import{Oe as lp,Pe as mp,Qe as np,Re as op,Se as pp,Te as qp,Ue as rp}from"./chunk-4qjfwxn2.js";import{Ve as Jo,We as Ko}from"./chunk-pkspqh0m.js";import{Xe as Po}from"./chunk-2ched9vj.js";import{Ye as un}from"./chunk-86evvtw4.js";import{$e as ao,Ze as _n,_e as $n,af as Uo}from"./chunk-x8zt0b72.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-0tnsyynz.js";import{Cf as Il,Df as Jl}from"./chunk-rx0cntdm.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-vtmhh3dp.js";import{Vf as cn,Wf as dn,Xf as en,Yf as fn,Zf as gn,_f as tn}from"./chunk-py49bdsq.js";import{$f as Hm,Ag as sn,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as Xm,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-s7jkyw9t.js";import{Bg as Ym,Cg as Zm}from"./chunk-1n2ng8nx.js";import{Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn,Og as Tn}from"./chunk-vtjegbgy.js";import{Pg as ui,Qg as vi,Rg as wi,Sg as xi,Tg as yi,Ug as zi}from"./chunk-ydemsmqm.js";import{$g as Sj,Vg as Pj,Wg as Qj,Xg as Rj,ah as Tj,bh as Uj}from"./chunk-aa4ss5pb.js";import{ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk,ih as ek,jh as fk,kh as gk,lh as hk,mh as ik}from"./chunk-ca57sg6v.js";import{nh as Fj,oh as Gj,ph as Hj,qh as Ij,rh as Jj,th as Kj,uh as Lj,vh as Mj,wh as Nj,xh as Oj}from"./chunk-mywrb5fy.js";import{Ah as Bk,yh as Ak}from"./chunk-4m4n1sfc.js";import{Gh as Ph,Hh as Qh,Ih as Rh,Jh as Sh,Kh as Th,Lh as Uh}from"./chunk-rkzfwgr8.js";import{Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi,Wh as ci,Xh as di,Yh as ei,Zh as fi,_h as gi}from"./chunk-n4197kjq.js";import{ai as hi,bi as ii,ci as ji,di as ki}from"./chunk-k4x5we49.js";import{ii as li}from"./chunk-6de3hczw.js";import{li as oh}from"./chunk-bssgvjge.js";import{mi as ph}from"./chunk-8mm86z5w.js";import{ni as qh,oi as rh}from"./chunk-seqmzr8k.js";import{pi as sh,qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-55g4qm7m.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-twg0y6ga.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh}from"./chunk-015p3jq5.js";import{Fi as Ih,Gi as Jh,Hi as Kh,Ii as Lh,Ji as Mh,Ki as Nh,Li as Oh}from"./chunk-ypw4egcv.js";import{Mi as mh,Ni as nh}from"./chunk-b6ckn02j.js";import"./chunk-g0w8dyat.js";import{$i as Ze,Ri as Pe,Si as Qe,Ti as Re,Ui as Se,Vi as Te,Wi as Ue,Xi as Ve,Yi as We,Zi as Xe,_i as Ye,aj as _e,bj as $e,cj as af}from"./chunk-yaegs66r.js";import{dj as sf,ej as tf,fj as uf,gj as vf,hj as wf,ij as xf,jj as yf,kj as zf,lj as Af,mj as Bf,nj as Cf,oj as Df,pj as Ef,qj as Ff,rj as Gf,sj as Hf,tj as If}from"./chunk-1x6c4ys1.js";import{Aj as df,Bj as ef,Cj as ff,Dj as gf,Ej as hf,Fj as jf,Gj as kf,Hj as lf,Ij as mf,Jj as nf,Kj as of,Lj as pf,Mj as qf,Nj as rf}from"./chunk-245ft0zp.js";import{$j as Wf,Oj as Jf,Pj as Kf,Qj as Lf,Rj as Mf,Sj as Nf,Tj as Of,Uj as Pf,Vj as Qf,Wj as Rf,Xj as Sf,Yj as Tf,Zj as Uf,_j as Vf}from"./chunk-wa32w7h2.js";import{tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr,yk as Nr}from"./chunk-ggymyyx4.js";import{Ak as Vk,Bk as Wk,Ck as Xk,Dk as _m,Ek as $m,Fk as an,Gk as bn,zk as Uk}from"./chunk-afwbqeb2.js";import"./chunk-rqr735w8.js";import"./chunk-t0p5yhgf.js";import{rl as ec,sl as fc,wl as gc}from"./chunk-2q216yrr.js";import{yl as bc}from"./chunk-dxjtszaa.js";import{$l as Mb,$m as hd,$n as Be,$o as sg,$q as vj,Al as ya,Am as Ac,An as Md,Ap as Tg,Aq as Ni,Ar as vk,Bl as za,Bm as Bc,Bn as Nd,Bp as Ug,Bq as Oi,Br as wk,Cl as Aa,Cm as Cc,Cn as Od,Cp as Vg,Cq as Pi,Cr as xk,Dl as Ba,Dm as Dc,Dn as Pd,Dp as Wg,Dq as Qi,Dr as yk,El as Ca,Em as Ec,En as Qd,Ep as Xg,Eq as Ri,Er as zk,Fl as Da,Fm as Fc,Fn as Rd,Fp as Yg,Fq as $i,Fr as Ck,Gl as Ea,Gm as Gc,Gn as Sd,Gp as Zg,Gq as aj,Gr as Dk,Hl as Fa,Hm as Hc,Hn as Td,Ho as Yf,Hp as _g,Hq as bj,Hr as Ek,Il as Ga,Im as Ic,In as Ud,Ip as $g,Iq as cj,Ir as Fk,Jl as Ha,Jm as Jc,Jn as Vd,Jp as ah,Jq as dj,Jr as Gk,Kl as Ia,Km as Kc,Kn as Wd,Kp as bh,Kq as ej,Kr as Hk,Ll as Ja,Lm as Lc,Ln as Xd,Lp as ch,Lq as fj,Lr as Ik,Ml as Ka,Mm as Mc,Mn as Yd,Mp as dh,Mq as gj,Mr as Jk,Nl as La,Nm as Nc,Nn as Zd,Np as eh,Nq as hj,Nr as Kk,Ol as Ma,Om as Oc,On as _d,Op as fh,Oq as ij,Pl as Na,Pm as Pc,Pn as $d,Po as Zf,Pp as gh,Pq as jj,Ql as Oa,Qm as Qc,Qn as ae,Qp as hh,Qq as kj,Rl as ib,Rm as _c,Rn as re,Ro as _f,Rp as ih,Rq as lj,Sl as jb,Sm as $c,Sn as se,Sp as jh,Sq as mj,Tl as kb,Tm as ad,Tn as te,To as $f,Tp as kh,Tq as nj,Ul as lb,Um as bd,Un as ue,Uo as ag,Up as lh,Uq as oj,Vl as mb,Vm as cd,Vn as ve,Vo as bg,Vp as mi,Vq as pj,Wl as nb,Wm as dd,Wn as we,Wo as cg,Wp as ni,Wq as qj,Xm as ed,Xn as xe,Xo as dg,Xq as rj,Yn as ye,Yo as eg,Yq as sj,Zl as Kb,Zm as fd,Zn as ze,Zo as qg,Zp as oi,Zq as tj,_l as Lb,_m as gd,_n as Ae,_o as rg,_q as uj,am as Nb,an as id,ao as Ce,ap as tg,ar as wj,bm as Ob,bn as jd,bo as De,bp as ug,br as xj,cm as Pb,cn as kd,co as Ee,cp as vg,cr as yj,dm as Qb,dn as ld,dp as wg,dr as zj,em as Ub,en as md,eo as Ie,ep as xg,er as Aj,fm as Vb,fn as nd,fo as Je,fp as yg,fr as Bj,gm as Wb,gn as od,go as Ke,gp as zg,gr as Cj,hm as hc,hn as pd,ho as Le,hp as Ag,hr as Dj,im as ic,in as qd,io as Me,ip as Bg,iq as pi,ir as Ej,jm as jc,jn as vd,jo as Ne,jp as Cg,jq as qi,jr as Vj,km as kc,kn as wd,ko as Oe,kp as Dg,kq as ri,kr as Wj,lm as lc,ln as xd,lp as Eg,lq as si,lr as Xj,mm as mc,mn as yd,mp as Fg,mq as ti,mr as Yj,nm as nc,nn as zd,np as Gg,nq as Ai,nr as Zj,om as oc,on as Ad,oo as bf,op as Hg,oq as Bi,or as jk,pm as pc,pn as Bd,po as cf,pp as Ig,pq as Ci,pr as kk,qm as qc,qn as Cd,qp as Jg,qq as Di,qr as lk,rm as rc,rn as Dd,ro as Xf,rp as Kg,rq as Ei,rr as mk,sm as sc,sn as Ed,sp as Lg,sq as Fi,sr as nk,tm as tc,tn as Fd,tp as Mg,tq as Gi,tr as ok,um as uc,un as Gd,up as Ng,uq as Hi,ur as pk,vm as vc,vn as Hd,vp as Og,vq as Ii,vr as qk,wm as wc,wn as Id,wp as Pg,wq as Ji,wr as rk,xm as xc,xn as Jd,xp as Qg,xq as Ki,xr as sk,ym as yc,yn as Kd,yp as Rg,yq as Li,yr as tk,zl as xa,zm as zc,zn as Ld,zp as Sg,zq as Mi,zr as uk}from"./chunk-0svp7s94.js";import{$r as Z,Or as M,Pr as N,Qr as O,Rr as P,Sr as Q,Tr as R,Ur as S,Vr as T,Wr as U,Xr as V,Yr as W,Zr as X,_r as Y,as as _,bs as $,cs as aa,ds as ba,es as ca,fs as da,gs as ea,hs as fa,is as ia,js as ja,ks as ka,ls as la,ms as ma,ns as na,os as oa,ps as pa,qs as qa,rs as ra,ss as sa,ts as ta,us as ua,vs as va,ws as wa}from"./chunk-ffdxdgep.js";import{xs as ga,ys as ha}from"./chunk-m8bdy2wt.js";import{As as Sb,Bs as Tb,zs as Rb}from"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import{Is as Si,Js as Ti,Ks as Ui,Ls as Vi,Ms as Wi,Ns as Xi,Os as Yi,Ps as Zi,Qs as _i}from"./chunk-tfy07tmv.js";import{gt as Rc,ht as Sc,it as Tc,jt as Uc,kt as Vc,mt as Wc,vt as Xc,wt as Yc,xt as Zc}from"./chunk-s6c3ymq1.js";import{At as Zb,Bt as _b,Ct as $b,Dt as ac,yt as Xb,zt as Yb}from"./chunk-pgeh4g3a.js";import{Kt as Fe,Mt as Ge,Pt as He}from"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import{Ut as cc,Vt as dc}from"./chunk-7q06md6v.js";import{$t as hg,Zt as fg,_t as gg,au as ig,bu as jg,cu as kg,du as lg,fu as mg,gu as ng,hu as og,iu as pg}from"./chunk-1phxzej9.js";import{Au as fe,Bu as ge,Cu as he,Du as ie,Eu as je,Fu as ke,Gu as le,Hu as me,Iu as ne,Ju as oe,Ku as pe,Lu as qe,ju as rd,ku as sd,lu as td,mu as ud,wu as be,xu as ce,yu as de,zu as ee}from"./chunk-7ba7x6jt.js";import{$u as t,Mu as b,Nu as c,Ou as d,Pu as e,Qu as f,Ru as g,Su as h,Tu as i,Uu as m,Vu as n,Wu as o,Xu as p,Yu as q,Zu as r,_u as s,av as u,bv as v,cv as w,dv as x,ev as y,fv as z,gv as A,hv as B,iv as C,jv as D,kv as E,lv as F,mv as G,nv as H,ov as I,pv as J,qv as K,rv as L}from"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import{$v as Ib,Hv as ob,Iv as pb,Jv as qb,Kv as rb,Lv as sb,Mv as tb,Nv as ub,Ov as vb,Pv as wb,Qv as xb,Rv as yb,Sv as zb,Tv as Ab,Uv as Bb,Vv as Cb,Wv as Db,Xv as Eb,Yv as Fb,Zv as Gb,_v as Hb,aw as Jb}from"./chunk-4md4tj27.js";import{Aw as _a,Bw as $a,Cw as ab,Dw as bb,Ew as cb,Fw as db,Gw as eb,Hw as fb,Iw as gb,Kw as hb,ew as Pa,fw as Qa,iw as Ra,nw as Sa,ow as Ta,uw as Ua,vw as Va,ww as Wa,xw as Xa,yw as Ya,zw as Za}from"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import{Ww as j,Xw as k,Yw as l}from"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{pl as writeNetlifyConfig,jn as writeManifest,Ul as writeImageManifest,Bp as wrapComponentForHMR,is as withDefaults,zk as webComponentDirectiveHandler,qq as watermark,sr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,mp as virtualPathFor,mk as videoDirective,G as validators,ms as validated,Ce as validateValueEnhanced,pi as validateTemplate,Ym as validateRouteRules,vq as validateParams,De as validateFormEnhanced,hr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,wn as validateComponentScripts,Un as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Tp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,up as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,jr as uploadFiles,ir as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,qp as typecheckStxFiles,Di as transpileTypeScript,Xr as translate,Ba as transitionDirective,lc as transformAutoImports,On as toUsers,Nn as toUser,$p as thumbnail,ar as thumbHashToRGBA,br as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,yp as stxClientHelpers,kg as structuredDataDirective,_r as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,zo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Kn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Uo as startProductionServer,Po as startInteractive,Jn as startBroadcasting,as as stampLocaleLayoutGroup,Ia as staggerDirective,tq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,np as sourcePathFor,Aq as smartBatchSign,Hi as slotContentHasExpressions,yq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Dq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,dq as sharpen,ps as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,ss as serveStxFile,us as serveMultipleStxFiles,Lk as serveMarkdownFile,dp as serveFile,vs as serveApp,cp as serve,Ep as serializeState,ln as serializeSetCookie,fq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,jq as saturation,wq 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,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,on as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Qr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,kq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Wr as resolveI18n,Zp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Dp as resetHMRHandler,o as resetErrorConfig,ks as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,qr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,zr as renderToString,Ar as renderToStream,Br as renderToDOM,$q as renderThumbhashToCanvas,Nr as renderTemplateString,Lr as renderTemplate,Mr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Lq as renderProtectedVideo,Kq as renderProtectedImg,xq as renderMediaUpload,Kr as renderMarkdownView,an as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,tr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Op as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Vp as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Xn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Ho as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,oq as quality,Iq as pruneSignatureCache,Oj as pruneCache,sf as provide,Jr as protectCodeBlocks,js as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Mq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,qs as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,tp as preloadIslandHandlers,Ne as preloadIconCollection,Fn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Xp as parseUrl,cr as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Nq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,mn as parseFormBody,Cd as parseExpressionWithFilters,Yn as parseDefaults,Eo as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ls as optional,Gn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ns as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Xq as observeElement,Io as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,$n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,En as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Yp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Zr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,kn as loadManifest,Tq as loadElement,Ln as loadChannels,Lb as listensPassively,es as lintStxStrict,Vq as lazyLoadAll,Uq as lazyLoad,Ha as keyframeDirective,dl as keptState,xr as jsxs,yr as jsxDEV,wr as jsx,Go as jsonResponse,Ye as islandDirective,l as isTest,Wm as isSpaNavigation,Om as isSpaNavRequest,Bq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,so as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Qq as isNativeLazySupported,Ir as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Rq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,ro as isEdgeEnvironment,fs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,_n as isCompressible,Cm as isClient,Vm as isChromeInstanceScript,Fh as isAsyncComponent,nn as isActionableMethod,gq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Vr as injectThemeBootstrap,ig as injectSeoTags,Sr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,vp as initLoadingIndicator,Sq as initLazyLoading,Oo as initFile,_q as initBlurUp,er as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,rn as hydrateTemplateStream,qn as hydrateTemplate,sp as hydrateIslands,ai as hydrateIsland,sn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Lp as hydrate,bp as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Qp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Fr as h,El as groupVariantsByFormat,eq as grayscale,Wo as gitHash,yn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Cq as getTimeUntilExpiry,mh as getStoreScript,Rp as getStoreNames,Pp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Kp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Cp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Gq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,In as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,lr as generateVideoPreview,Ee as generateValidationScript,mr as generateUploadRuntime,zn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,jo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Fp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,ur as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Tr as generateSitemap,Pq as generateSimpleMediaPicker,Jq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Ur as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,or as generateMinifiedMediaRuntime,nr as generateMediaRuntime,Oq as generateMediaManagerEmbed,hn as generateManifest,xp as generateLoadingIndicatorHtml,Zq as generateLazyLoadRuntime,bn as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,kr as generateImagePreview,Tl as generateImageManifest,Jp as generateHydrationScript,af as generateHydrationRuntime,Mp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,Ap as generateHMRClientScript,fk as generateHLSManifest,Gp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,oo as generateDocs,ko as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,io as generateComponentsDocs,Wh as generateComponentManifest,go as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,fr as generateBlurUpRuntime,gr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,rp as formatTypecheckDiagnostics,kp as formatTypeErrors,Lo as formatStxContent,kl as formatSize,Ta as formatRoutes,Mo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Rr as formatDoctorReport,lo as formatDocsAsMarkdown,no as formatDocsAsJson,mo as formatDocsAsHtml,nq as format,el as forgetKeptState,Dn as foldConstants,mq as flipVertical,lq as flipHorizontal,cn as fingerprint,pp as findStxModuleDeclarations,op as findRuntimeTypeDeclarations,Pr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,An as findDeadCode,An as findDeadBranches,Km as findContainerRegion,ho as findComponentFiles,ts as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Hp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Xm as extractContainerContent,eo as extractComponentProps,Xh as extractComponentName,fo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Cn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,bo as enableDevTools,Bn as eliminateDeadCode,ff as effect,uq as dprUrls,po as docsCommand,ec as discoverServerApi,$m as discoverLayoutNames,Yq as disconnectObserver,co as disableDevTools,F as devHelpers,Rm as detectShell,qo as detectRuntime,nl as detectProjectConfig,rj as detectFormat,vn as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Up as defineStore,Bf as defineSlots,ds as defineSiteConfig,hs as definePropsWithValidation,gs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Hr as defineCustomElement,To as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Vo as defineApiHandler,pr as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,rs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,dr as crossfadeTransition,_p as crop,Ph as createVirtualList,lk as createVideoDirective,Co as createVercelHandler,hp as createTypeChecker,fa as createTranslateFilter,yo as createTextEncoderStream,Gr as createStxApp,xo as createStreamingResponse,We as createStreamRenderer,Sp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Zm as createRouteRuleResolver,eb as createRouteLocation,fp as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Yo as createProject,So as createProductionBuild,tc as createPlaceholder,Hn as createOptimizedBuild,Do as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,ep as createMiddleware,Wq as createLazyObserver,Jh as createKeepAliveCache,uo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,to as createEnvAccessor,z as createEnhancedError,wo as createEdgeHandler,vo as createEdgeCache,Ni as createDetailedErrorMessage,Bo as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Fo as createCookie,am as createComputed,Yl as createComponentInstance,Ao as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Gr as createApp,Ka as createAnimationTimeline,bq as cover,_f as convertToCommonJS,iq as contrast,aq as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,ao as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Wn as componentDirective,Ii as componentClientSignalNames,gn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Hq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,wp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,ip as checkTemplateFile,jp as checkTemplate,Uf as checkCache,Eq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Rn as channel,Ko as captureScreenshots,Jo as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,lp as buildVirtualSource,rr as buildViews,Wp as buildUrl,Qe as buildSuspenseResolveScript,cs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,dn as buildRuntimeAsset,en as buildRouterAsset,bs as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,tn as buildForProduction,Zn as buildComponentLibrary,Fq as buildAuthParams,un as buildApp,$r as buildAlternateLinks,Ro as build,Pn as broadcastPrivate,Qn as broadcastPresence,Mn as broadcast,hq as brightness,Tb as bracketDepths,cq as blur,Jb as blankInertHtmlRegions,zq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,pq as auto,ja as attributeValue,fn as assetTags,Mb as asInvocableStatement,os as arrayOf,Yr as applyTranslations,Sj as applyTransformations,zi as applySlots,Vn as applyPropDefaults,sq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,xn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,xn as analyzeDirectiveUsage,ed as analyticsDirective,$o as addStore,_o as addPage,Sd as addNonceToInlineContent,ap as addLayout,Zo as addComponent,pn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,gp as TemplateTypeChecker,No as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Cr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Qo as ProductionBuild,Er as Portal,Xo as PROJECT_TEMPLATES,rq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Np as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,_m as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Ip as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,vr as Fragment,Dr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,zp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Tn as BroadcastServer,Sn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Or as $path};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Mi as a,Ni as b}from"./chunk-b6ckn02j.js";import"./chunk-g0w8dyat.js";import"./chunk-t0p5yhgf.js";import"./chunk-2q216yrr.js";import"./chunk-dxjtszaa.js";import"./chunk-0svp7s94.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-s6c3ymq1.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-v1ezqvek.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Dt as a,Ht as b,It as c,Jt as d,Kt as e,Lt as f,Mt as g,Nt as h,Ot as i}from"./chunk-4azk3jdd.js";import"./chunk-cevkpyn9.js";export{a as webpHeaderHasAlpha,g as snapshotImageDelivery,b as setImageEncoderIdentity,i as prepareImageDelivery,e as isTransparentImage,h as installImageDelivery,c as imageEncoderIdentity,d as getImageDelivery,f as clearImageDeliveryCatalog};
2
+ import{Et as a,It as b,Jt as c,Kt as d,Lt as e,Mt as f,Nt as g,Ot as h,Pt as i}from"./chunk-z9a0ft6h.js";import"./chunk-x7qyx7vn.js";export{a as webpHeaderHasAlpha,g as snapshotImageDelivery,b as setImageEncoderIdentity,i as prepareImageDelivery,e as isTransparentImage,h as installImageDelivery,c as imageEncoderIdentity,d as getImageDelivery,f as clearImageDeliveryCatalog};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ve as a,We as b}from"./chunk-pkspqh0m.js";import"./chunk-cevkpyn9.js";export{b as captureScreenshots,a as captureScreenshot};
2
+ import{Ve as a,We as b}from"./chunk-pkspqh0m.js";import"./chunk-x7qyx7vn.js";export{b as captureScreenshots,a as captureScreenshot};