@stacksjs/stx 0.2.319 → 0.2.320

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 (159) hide show
  1. package/dist/builtins/image-delivery.d.ts +14 -0
  2. package/dist/builtins/image-delivery.js +121 -11
  3. package/dist/builtins/image-placeholder.d.ts +5 -0
  4. package/dist/builtins/image-placeholder.js +10 -3
  5. package/dist/builtins/stx-image.js +19 -6
  6. package/dist/chunk-08809py9.js +2 -0
  7. package/dist/{chunk-yzb20ane.js → chunk-19yw8p2h.js} +1 -1
  8. package/dist/{chunk-r3220h2n.js → chunk-1zckawsv.js} +1 -1
  9. package/dist/chunk-273pkk23.js +2 -0
  10. package/dist/{chunk-egr5663e.js → chunk-273xtqav.js} +3 -3
  11. package/dist/{chunk-spzbfqjn.js → chunk-2cey22m2.js} +254 -254
  12. package/dist/{chunk-jg2gbd58.js → chunk-2f0kykg4.js} +1 -1
  13. package/dist/{chunk-ksqba0cq.js → chunk-2q30mata.js} +1 -1
  14. package/dist/{chunk-ybct46zd.js → chunk-2rca15ge.js} +1 -1
  15. package/dist/chunk-2zpf8z9f.js +2 -0
  16. package/dist/{chunk-8q8gj45z.js → chunk-3745eg0d.js} +1 -1
  17. package/dist/chunk-3m34hq6t.js +2 -0
  18. package/dist/{chunk-bbq82jww.js → chunk-3meekwv6.js} +2 -2
  19. package/dist/chunk-3rajeek7.js +2 -0
  20. package/dist/{chunk-3pv0qj5f.js → chunk-456x7xb4.js} +1 -1
  21. package/dist/{chunk-zr1r73p3.js → chunk-45e1wffb.js} +1 -1
  22. package/dist/{chunk-322qz0cj.js → chunk-49129rm8.js} +1 -1
  23. package/dist/{chunk-604qr43v.js → chunk-5mg4ddbx.js} +1 -1
  24. package/dist/chunk-5wep1h8r.js +2 -0
  25. package/dist/chunk-61bmp7rb.js +2 -0
  26. package/dist/chunk-6py5b6p4.js +2 -0
  27. package/dist/{chunk-b73h0vd8.js → chunk-73wmd3vp.js} +1 -1
  28. package/dist/{chunk-ajhrz96a.js → chunk-7vbwm0fg.js} +1 -1
  29. package/dist/{chunk-xcsf7my7.js → chunk-7z2wtxxj.js} +1 -1
  30. package/dist/{chunk-pknc4efv.js → chunk-8s9x1kcg.js} +1 -1
  31. package/dist/chunk-9ef162n1.js +2 -0
  32. package/dist/{chunk-ttny9g8k.js → chunk-9enf3e5m.js} +1 -1
  33. package/dist/{chunk-yzy6e4je.js → chunk-9znajpe5.js} +10 -10
  34. package/dist/{chunk-gpesxpwq.js → chunk-a9az6pen.js} +2 -2
  35. package/dist/chunk-abefheag.js +2 -0
  36. package/dist/{chunk-snmtft92.js → chunk-aqzs1rqe.js} +1 -1
  37. package/dist/{chunk-w6ncyp18.js → chunk-aspvxqzg.js} +1 -1
  38. package/dist/{chunk-b8cteeha.js → chunk-b70m51nc.js} +1 -1
  39. package/dist/{chunk-at84gyvf.js → chunk-b810yw1a.js} +1 -1
  40. package/dist/{chunk-5g39e9ra.js → chunk-b8hj1ena.js} +1 -1
  41. package/dist/chunk-bbad74mr.js +2 -0
  42. package/dist/chunk-bjy23bjm.js +2 -0
  43. package/dist/{chunk-0saq3nwy.js → chunk-brfcence.js} +1 -1
  44. package/dist/chunk-bx9mxc6z.js +2 -0
  45. package/dist/{chunk-gcavh7hk.js → chunk-c84gtc0v.js} +1 -1
  46. package/dist/{chunk-51gea48g.js → chunk-c9m4a26z.js} +1 -1
  47. package/dist/{chunk-y4dd2n2n.js → chunk-ctdmn0az.js} +1 -1
  48. package/dist/{chunk-szkq9s8n.js → chunk-cy6rz73m.js} +1 -1
  49. package/dist/{chunk-85p4dmft.js → chunk-daxm49bn.js} +1 -1
  50. package/dist/{chunk-18p8dqya.js → chunk-dc6z4asx.js} +1 -1
  51. package/dist/chunk-dfewnpk4.js +2 -0
  52. package/dist/{chunk-0mnv8pf5.js → chunk-dt03j5ff.js} +1 -1
  53. package/dist/{chunk-px0hqf1q.js → chunk-ebk6h629.js} +1 -1
  54. package/dist/{chunk-wm86mmgq.js → chunk-f1hfbnxv.js} +1 -1
  55. package/dist/chunk-f1yazmb2.js +2 -0
  56. package/dist/{chunk-n43zq50e.js → chunk-fbb6eaw3.js} +1 -1
  57. package/dist/chunk-fchtzkft.js +2 -0
  58. package/dist/{chunk-acctstj3.js → chunk-fe0pxn8d.js} +1 -1
  59. package/dist/{chunk-ka5wtqmw.js → chunk-fkvg0m44.js} +1 -1
  60. package/dist/{chunk-397rqs12.js → chunk-fvhg6b2b.js} +1 -1
  61. package/dist/{chunk-7c1qq9zq.js → chunk-g786azs5.js} +1 -1
  62. package/dist/chunk-ghvqy1n9.js +2 -0
  63. package/dist/{chunk-nnv8wytm.js → chunk-gvjkh5mv.js} +1 -1
  64. package/dist/chunk-gvyaeytx.js +3 -0
  65. package/dist/{chunk-tqayztkh.js → chunk-hbvxhwvt.js} +1 -1
  66. package/dist/{chunk-s3pvp8qv.js → chunk-hrxdza7v.js} +1 -1
  67. package/dist/chunk-hxk2wkmr.js +2 -0
  68. package/dist/{chunk-tph7b269.js → chunk-j03sjtfs.js} +1 -1
  69. package/dist/{chunk-4ee1aaet.js → chunk-j2d5v745.js} +1 -1
  70. package/dist/{chunk-ry1key0g.js → chunk-j6f8bq12.js} +1 -1
  71. package/dist/chunk-j9vkpac1.js +2 -0
  72. package/dist/{chunk-t5kwx6fa.js → chunk-jk6xwdfb.js} +1 -1
  73. package/dist/{chunk-5qseeh5t.js → chunk-jx6qn384.js} +1 -1
  74. package/dist/chunk-k0rrma2q.js +2 -0
  75. package/dist/{chunk-1ztjv7a4.js → chunk-k1jq596t.js} +1 -1
  76. package/dist/{chunk-wb24hk90.js → chunk-k29v4m21.js} +1 -1
  77. package/dist/{chunk-a50hb40e.js → chunk-k4417q3k.js} +1 -1
  78. package/dist/chunk-k4tbashh.js +2 -0
  79. package/dist/{chunk-s2kxa1tb.js → chunk-k9qd0v7e.js} +1 -1
  80. package/dist/{chunk-jd9nv63q.js → chunk-kbf0xkp1.js} +1 -1
  81. package/dist/{chunk-tzhcjtkr.js → chunk-kep0d46b.js} +1 -1
  82. package/dist/{chunk-djf1p5cy.js → chunk-kpj1tk19.js} +1 -1
  83. package/dist/{chunk-msmhta0w.js → chunk-kz7rzjfd.js} +1 -1
  84. package/dist/{chunk-zdzd2jb4.js → chunk-n9bmagzv.js} +1 -1
  85. package/dist/{chunk-2kv2gnzc.js → chunk-naxteb5j.js} +1 -1
  86. package/dist/{chunk-4hk5ewgp.js → chunk-nevmgfc7.js} +1 -1
  87. package/dist/{chunk-vhan24as.js → chunk-nsavhgg0.js} +1 -1
  88. package/dist/chunk-nwsnjyhg.js +2 -0
  89. package/dist/{chunk-wkcnyv6m.js → chunk-nyfqbqd2.js} +2 -2
  90. package/dist/chunk-pgbhyh3z.js +2 -0
  91. package/dist/{chunk-64ttktzc.js → chunk-pj9zybjf.js} +1 -1
  92. package/dist/chunk-pnp60knr.js +2 -0
  93. package/dist/{chunk-0gbptqh2.js → chunk-pytndzd2.js} +1 -1
  94. package/dist/{chunk-3by4c2g9.js → chunk-qc63mkgk.js} +1 -1
  95. package/dist/{chunk-f044qmn3.js → chunk-qs9bq14j.js} +1 -1
  96. package/dist/chunk-qvc2ddqn.js +2 -0
  97. package/dist/{chunk-6c1ebjat.js → chunk-rhk3w1hf.js} +1 -1
  98. package/dist/{chunk-v02j99gh.js → chunk-rra7n04f.js} +2 -2
  99. package/dist/{chunk-ycgtkfbm.js → chunk-rsjbw0qt.js} +1 -1
  100. package/dist/{chunk-9ebfmdyb.js → chunk-rwcnfdj5.js} +1 -1
  101. package/dist/{chunk-jdcn0ms1.js → chunk-s17bnxws.js} +2 -2
  102. package/dist/chunk-s4c6vvs3.js +2 -0
  103. package/dist/{chunk-prry9kgy.js → chunk-sh9m91w0.js} +1 -1
  104. package/dist/{chunk-aqrp68m6.js → chunk-sqwqyxzx.js} +1 -1
  105. package/dist/{chunk-wwghzbbg.js → chunk-szyc050e.js} +1 -1
  106. package/dist/{chunk-7yzyn9k7.js → chunk-tvvqcwa5.js} +1 -1
  107. package/dist/chunk-v4m87pv6.js +2 -0
  108. package/dist/chunk-v6kvq7ww.js +2 -0
  109. package/dist/chunk-vawmst0v.js +2 -0
  110. package/dist/{chunk-bnq0p4r4.js → chunk-vc506z79.js} +1 -1
  111. package/dist/{chunk-jryjwara.js → chunk-vvds14af.js} +1 -1
  112. package/dist/{chunk-raxr83fs.js → chunk-ws1s0ar4.js} +2 -2
  113. package/dist/chunk-x89acpn9.js +2 -0
  114. package/dist/{chunk-s5wwa0t4.js → chunk-xsd936j5.js} +2 -2
  115. package/dist/chunk-y2htmh35.js +2 -0
  116. package/dist/{chunk-kexk6z9s.js → chunk-y3m051g6.js} +1 -1
  117. package/dist/{chunk-zebypbks.js → chunk-z57k43ad.js} +2 -2
  118. package/dist/cli.js +14 -14
  119. package/dist/craft-entry.js +1 -1
  120. package/dist/craft.js +1 -1
  121. package/dist/database.js +1 -1
  122. package/dist/includes.d.ts +2 -0
  123. package/dist/includes.js +9 -2
  124. package/dist/pwa.js +2 -2
  125. package/dist/ssg.js +2 -2
  126. package/dist/visual-testing.js +1 -1
  127. package/package.json +5 -5
  128. package/dist/chunk-0ggq64sc.js +0 -2
  129. package/dist/chunk-1ppaw4xs.js +0 -2
  130. package/dist/chunk-455m2k1y.js +0 -2
  131. package/dist/chunk-65hqene1.js +0 -2
  132. package/dist/chunk-6vt9ddra.js +0 -2
  133. package/dist/chunk-6xmx6stb.js +0 -2
  134. package/dist/chunk-8618n28z.js +0 -2
  135. package/dist/chunk-8avktqwz.js +0 -2
  136. package/dist/chunk-8z11nkyk.js +0 -2
  137. package/dist/chunk-95jjdgmb.js +0 -2
  138. package/dist/chunk-9aw5d4rr.js +0 -2
  139. package/dist/chunk-9g14542g.js +0 -2
  140. package/dist/chunk-9h4fkwtj.js +0 -2
  141. package/dist/chunk-bxvqqejm.js +0 -2
  142. package/dist/chunk-bzmxbz48.js +0 -2
  143. package/dist/chunk-f9qrz82p.js +0 -2
  144. package/dist/chunk-g8vf2fc7.js +0 -2
  145. package/dist/chunk-h63vszd3.js +0 -2
  146. package/dist/chunk-h78pksyp.js +0 -2
  147. package/dist/chunk-hxf6zg80.js +0 -2
  148. package/dist/chunk-jr79tvvs.js +0 -2
  149. package/dist/chunk-jwnbwemq.js +0 -3
  150. package/dist/chunk-mvj75wef.js +0 -2
  151. package/dist/chunk-n0t2at1c.js +0 -2
  152. package/dist/chunk-v1j4myd8.js +0 -2
  153. package/dist/chunk-v33qvj8y.js +0 -2
  154. package/dist/chunk-vnh668fb.js +0 -2
  155. package/dist/chunk-vpbw6g2t.js +0 -2
  156. package/dist/chunk-w33gx25k.js +0 -2
  157. package/dist/chunk-w3dfvxar.js +0 -2
  158. package/dist/chunk-wcp0dt2c.js +0 -2
  159. package/dist/chunk-z82sc99z.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$m as d,Dm as R,Lm as k,Lo as l,Qo as T,Up as m,an as c,vm as P,wm as D}from"./chunk-spzbfqjn.js";import{Ct as S,Et as v}from"./chunk-egr5663e.js";import{Tv as XJ,Vv as YJ,Wv as ZJ}from"./chunk-bbq82jww.js";import{bw as QJ,ew as q}from"./chunk-jryjwara.js";var n=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function r(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(n.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var s=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function y(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=v(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=s.exec(j);if(F){let K=r(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function a(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function C(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function t(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function e(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=t(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=a(J),Z;while((Z=X.exec(J))!==null){if(C(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||o.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!e(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(C(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var wJ="X-STX-Router",NJ="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function JJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:JJ(J,"X-STX-Router")}}import E from"path";XJ();var $J="stx-page-head:",UJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,O=null;function WJ(){if(O!==null)return O;try{let{getRouterScript:J}=(ZJ(),QJ(YJ));O=`<script>${J()}</script>`}catch{O=""}return O}async function MJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function bJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=y(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:I}=await import("./chunk-w33gx25k.js"),_=await I(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let A=await B(K,z,J,{...N,..._,...Y},new Set),H=A.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:A.substring(0,H),afterSlot:A.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function PJ(J,Y,Q){let X,$="",Z=Y.match(UJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=WJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
2
+ import{$m as d,Dm as R,Lm as k,Lo as l,Qo as T,Vp as m,an as c,vm as P,wm as D}from"./chunk-2cey22m2.js";import{Dt as S,Ft as v}from"./chunk-273xtqav.js";import{Wv as XJ,Yv as YJ,Zv as ZJ}from"./chunk-3meekwv6.js";import{ew as QJ,hw as q}from"./chunk-vvds14af.js";var n=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function r(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(n.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var s=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function y(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=v(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=s.exec(j);if(F){let K=r(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function a(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function C(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function t(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function e(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=t(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=a(J),Z;while((Z=X.exec(J))!==null){if(C(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||o.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!e(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(C(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var wJ="X-STX-Router",NJ="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function JJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:JJ(J,"X-STX-Router")}}import E from"path";XJ();var $J="stx-page-head:",UJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,O=null;function WJ(){if(O!==null)return O;try{let{getRouterScript:J}=(ZJ(),QJ(YJ));O=`<script>${J()}</script>`}catch{O=""}return O}async function MJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function bJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=y(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:I}=await import("./chunk-hxk2wkmr.js"),_=await I(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let A=await B(K,z,J,{...N,..._,...Y},new Set),H=A.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:A.substring(0,H),afterSlot:A.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function PJ(J,Y,Q){let X,$="",Z=Y.match(UJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=WJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -26,5 +26,5 @@ ${W}
26
26
  `));if($.length>0)N.push($.join(`
27
27
  `));if(G.length>0)N.push(G.join(`
28
28
  `));return N.push(K),N.join(`
29
- `)}import M from"fs";import h from"path";function CJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function xJ(J,Y){let Q=h.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function fJ(J){let Y=h.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function FJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function p(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!FJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await KJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=GJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function GJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function hJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function sJ(J,Y={}){return(await i(J,Y)).html}async function oJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await i(J,Y),U=d(X),W=c(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-f9qrz82p.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-9h4fkwtj.js"),{defaultConfig:B}=await import("./chunk-w3dfvxar.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},I=Object.keys(K).map((z)=>({id:z,render:async()=>{let A=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:A},J.sourceFile,N,new Set)}})),_=new Set(I.map((z)=>z.id));F=[...(F||[]).filter((z)=>!_.has(z.id)),...I]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function i(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!D(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await p(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=l(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!D(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?R(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(P(J.html,Z)),context:Q,cookies:X.cookies}}async function aJ(J,Y={}){if(!J.hasServerScripts&&!D(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!D(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?R(String(U)):"")}catch{X.set($,"")}return P(J.fragment,X)}
29
+ `)}import M from"fs";import h from"path";function CJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function xJ(J,Y){let Q=h.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function fJ(J){let Y=h.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function FJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function p(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!FJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await KJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=GJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function GJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function hJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function sJ(J,Y={}){return(await i(J,Y)).html}async function oJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await i(J,Y),U=d(X),W=c(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-vawmst0v.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-x89acpn9.js"),{defaultConfig:B}=await import("./chunk-v6kvq7ww.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},I=Object.keys(K).map((z)=>({id:z,render:async()=>{let A=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:A},J.sourceFile,N,new Set)}})),_=new Set(I.map((z)=>z.id));F=[...(F||[]).filter((z)=>!_.has(z.id)),...I]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function i(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!D(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await p(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=l(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!D(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?R(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(P(J.html,Z)),context:Q,cookies:X.cookies}}async function aJ(J,Y={}){if(!J.hasServerScripts&&!D(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!D(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?R(String(U)):"")}catch{X.set($,"")}return P(J.fragment,X)}
30
30
  export{r as gg,y as hg,t as ig,x as jg,wJ as kg,NJ as lg,AJ as mg,g as ng,JJ as og,IJ as pg,MJ as qg,bJ as rg,PJ as sg,jJ as tg,RJ as ug,kJ as vg,CJ as wg,xJ as xg,fJ as yg,b as zg,KJ as Ag,FJ as Bg,p as Cg,hJ as Dg,sJ as Eg,oJ as Fg,aJ as Gg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{cu as a,du as b,eu as c,fu as d,gu as e}from"./chunk-gvyaeytx.js";import"./chunk-vvds14af.js";export{a as webpHeaderHasAlpha,e as prepareImageDelivery,c as isTransparentImage,b as getImageDelivery,d as clearImageDeliveryCatalog};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Af as a,Bf as b,Cf as c,Df as d,Ef as e,Ff as f,Gf as g,Hf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-zdzd2jb4.js";import"./chunk-jryjwara.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
2
+ import{Af as a,Bf as b,Cf as c,Df as d,Ef as e,Ff as f,Gf as g,Hf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-n9bmagzv.js";import"./chunk-vvds14af.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{fm as x,hq as M}from"./chunk-spzbfqjn.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import{xt as B,zt as P}from"./chunk-egr5663e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-wkcnyv6m.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-bbq82jww.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
2
+ import{fm as x,iq as M}from"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import{At as P,yt as B}from"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
3
3
  ${A.transformSync(j).trim()}`);for(let $ of I)C.add($)}catch($){console.warn(`[stx] framework composable ${G.basename(q)} could not be bundled:`,$)}}let Y=Q.filter((q)=>!C.has(q)&&!g(H,q));if(Y.length>0)console.warn(`[stx] could not bundle ${Y.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(W.length===0)return K.set(z,""),null;let k=[...C].map((q)=>` try { if (!(${JSON.stringify(q)} in __s)) { __s[${JSON.stringify(q)}] = ${q}; if (!(${JSON.stringify(q)} in window)) window[${JSON.stringify(q)}] = ${q}; } } catch (e) {}`).join(`
4
4
  `),w=`<script data-stx-framework-composables>
5
5
  ;(function(){
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{mf as t,nf as u,of as v,pf as w,qf as x,rf as y,sf as z,tf as A,uf as B,vf as C,wf as D,xf as E}from"./chunk-a50hb40e.js";import{yf as r,zf as s}from"./chunk-ka5wtqmw.js";import{Af as b,Bf as c,Cf as d,Df as e,Ef as f,Ff as g,Gf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-zdzd2jb4.js";import{hi as a}from"./chunk-mwh3ymwc.js";import"./chunk-aqrp68m6.js";import"./chunk-jryjwara.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
2
+ import{mf as t,nf as u,of as v,pf as w,qf as x,rf as y,sf as z,tf as A,uf as B,vf as C,wf as D,xf as E}from"./chunk-k4417q3k.js";import{yf as r,zf as s}from"./chunk-fkvg0m44.js";import{Af as b,Bf as c,Cf as d,Df as e,Ef as f,Ff as g,Gf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-n9bmagzv.js";import{hi as a}from"./chunk-mwh3ymwc.js";import"./chunk-sqwqyxzx.js";import"./chunk-vvds14af.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{existsSync as U,statSync as V}from"fs";import z from"path";var W=/[*?[\]{}]/;function X(D){return W.test(D)}async function $(D,E={}){let H=E.cwd??process.cwd(),N=E.recursive!==!1,Q=E.ignorePaths??[],J=globalThis.Bun.Glob,K=new Set,F=(j)=>{if(j.includes(`${z.sep}node_modules${z.sep}`)||j.includes(`${z.sep}dist${z.sep}`))return;if(Q.some((q)=>q&&j.includes(z.normalize(q))))return;K.add(j)},R=async(j)=>{try{for await(let q of new J(j).scan({cwd:H,absolute:!0}))F(q)}catch{}};for(let j of D){if(!j)continue;if(X(j)){await R(j);continue}let q=z.resolve(H,j);if(!U(q))continue;if(V(q).isDirectory()){for await(let T of new J(N?"**/*.stx":"*.stx").scan({cwd:q,absolute:!0}))F(T);continue}F(q)}return[...K].sort()}
3
- export{X as gt,$ as ht};
3
+ export{X as ht,$ as it};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ew as O}from"./chunk-jryjwara.js";import{mkdir as b,writeFile as T}from"fs/promises";import{join as q}from"path";var E="https://api.iconify.design";async function k(){let G=await fetch(`${E}/collections`);if(!G.ok)throw Error(`Failed to fetch collections: ${G.statusText}`);return await G.json()}async function P(G,z){try{let Z=O.resolve("@iconify/json"),X=`${`${Z.substring(0,Z.lastIndexOf("/node_modules/@iconify/json/"))}/node_modules/@iconify/json`}/json/${G}.json`,Q=Bun.file(X);if(await Q.exists()){let $=await Q.json();if(z&&z.length>0){let B={};for(let S of z)if($.icons[S])B[S]=$.icons[S];return{...$,icons:B}}return $}}catch{}let M=z&&z.length>0?`${E}/${G}.json?icons=${z.join(",")}`:`${E}/${G}.json`,U=await fetch(M);if(!U.ok)throw Error(`Failed to fetch icons for ${G}: ${U.statusText}`);return await U.json()}function j(G,z=24,M=24){return{body:G.body,width:G.width||z,height:G.height||M,viewBox:`0 0 ${G.width||z} ${G.height||M}`}}function F(G,z){let M=V(G);return`import type { IconData } from '@stacksjs/iconify-core'
2
+ import{hw as O}from"./chunk-vvds14af.js";import{mkdir as b,writeFile as T}from"fs/promises";import{join as q}from"path";var E="https://api.iconify.design";async function k(){let G=await fetch(`${E}/collections`);if(!G.ok)throw Error(`Failed to fetch collections: ${G.statusText}`);return await G.json()}async function P(G,z){try{let Z=O.resolve("@iconify/json"),X=`${`${Z.substring(0,Z.lastIndexOf("/node_modules/@iconify/json/"))}/node_modules/@iconify/json`}/json/${G}.json`,Q=Bun.file(X);if(await Q.exists()){let $=await Q.json();if(z&&z.length>0){let B={};for(let S of z)if($.icons[S])B[S]=$.icons[S];return{...$,icons:B}}return $}}catch{}let M=z&&z.length>0?`${E}/${G}.json?icons=${z.join(",")}`:`${E}/${G}.json`,U=await fetch(M);if(!U.ok)throw Error(`Failed to fetch icons for ${G}: ${U.statusText}`);return await U.json()}function j(G,z=24,M=24){return{body:G.body,width:G.width||z,height:G.height||M,viewBox:`0 0 ${G.width||z} ${G.height||M}`}}function F(G,z){let M=V(G);return`import type { IconData } from '@stacksjs/iconify-core'
3
3
 
4
4
  export const ${M}: IconData = ${JSON.stringify(z,null,2)}
5
5
 
@@ -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}from"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import{jt as a,kt as b}from"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$o as d,Yo as a,Zo as b,_o as c,ap as e,bp as f,cp as g}from"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{a as resetUnscopedSignalWarnings,g as processStackReplacements,f as processStackPushDirectives,e as processIncludes,b as partialsCache,c as onceStore,d as clearOnceStore};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Wv as y}from"./chunk-bbq82jww.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{Zv as y}from"./chunk-3meekwv6.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
5
  export{Y as Dk,_ as Ek,a as Fk,s as Gk,h as Hk,f as Ik,c as Jk,HM as Kk};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{yf as a,zf as b}from"./chunk-fkvg0m44.js";import"./chunk-n9bmagzv.js";import"./chunk-vvds14af.js";export{a as handleImageRequest,b as createImageHandler};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Am as d,Bm as e,Cm as f,Dm as g,Em as h,Fm as i,Gm as j,Hm as k,Im as l,Jm as m,Km as n,Lm as o,Mm as p,xm as a,ym as b,zm as c}from"./chunk-spzbfqjn.js";import"./chunk-raxr83fs.js";import"./chunk-at84gyvf.js";import"./chunk-397rqs12.js";import"./chunk-aqrp68m6.js";import"./chunk-egr5663e.js";import"./chunk-jwnbwemq.js";import"./chunk-ry1key0g.js";import"./chunk-4ee1aaet.js";import"./chunk-wkcnyv6m.js";import"./chunk-18p8dqya.js";import"./chunk-64ttktzc.js";import"./chunk-xcsf7my7.js";import"./chunk-2kv2gnzc.js";import"./chunk-ttny9g8k.js";import"./chunk-bbq82jww.js";import"./chunk-9ebfmdyb.js";import"./chunk-jryjwara.js";export{h as usesSignalsInScript,p as unescapeHtml,n as resetRejectedExpressionWarnings,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,o as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
2
+ import{Am as d,Bm as e,Cm as f,Dm as g,Em as h,Fm as i,Gm as j,Hm as k,Im as l,Jm as m,Km as n,Lm as o,Mm as p,xm as a,ym as b,zm as c}from"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{h as usesSignalsInScript,p as unescapeHtml,n as resetRejectedExpressionWarnings,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,o as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$g as a,ah as b,bh as c,ch as d,dh as e,eh as f,fh as g,gh as h,hh as i}from"./chunk-0gbptqh2.js";import"./chunk-vd5xvsnv.js";import"./chunk-jryjwara.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
2
+ import{$g as a,ah as b,bh as c,ch as d,dh as e,eh as f,fh as g,gh as h,hh as i}from"./chunk-pytndzd2.js";import"./chunk-vd5xvsnv.js";import"./chunk-vvds14af.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-jryjwara.js";function F(){return`<script data-stx-scoped data-stx-x-element-runtime data-stx-run="always">
2
+ import"./chunk-vvds14af.js";function F(){return`<script data-stx-scoped data-stx-x-element-runtime data-stx-run="always">
3
3
  (function() {
4
4
  'use strict';
5
5
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$p as H,Cm as O,Qo as R,rq as x,wr as g}from"./chunk-spzbfqjn.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
2
+ import{Cm as O,Qo as R,aq as H,sq as x,xr as g}from"./chunk-2cey22m2.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
3
3
  <template data-suspense-fallback>Loading...</template>
4
4
  </div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
5
5
  <script>
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ih as a,jh as b,kh as c,lh as d,mh as e,nh as f,oh as g,ph as h,qh as i,rh as j,sh as k}from"./chunk-f044qmn3.js";import"./chunk-vd5xvsnv.js";import"./chunk-jryjwara.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{ih as a,jh as b,kh as c,lh as d,mh as e,nh as f,oh as g,ph as h,qh as i,rh as j,sh as k}from"./chunk-qs9bq14j.js";import"./chunk-vd5xvsnv.js";import"./chunk-vvds14af.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{AsyncLocalStorage as U}from"async_hooks";var V=Symbol.for("stx.runtime-config.scope"),W=globalThis,Q=W[V]??=new U;function b(x,H){return Q.run(x,H)}function A(){return Q.getStore()}function X(){let x=Q.getStore();if(!x)throw Error("useServerRuntimeConfig requires a server request or template render");return Object.freeze(Object.defineProperty({public:x.public},"private",{value:x.private}))}function N(){return X().public}function O(x={},H=process.env){let I=new Set;function E(j,z){if(z===null)return j===null;if(Array.isArray(z))return Array.isArray(j)&&(!z.length||j.every((B)=>z.some((F)=>E(B,F))));if(typeof z==="object")return j!==null&&typeof j==="object"&&!Array.isArray(j)&&Object.entries(z).every(([B,F])=>Object.hasOwn(j,B)&&E(j[B],F));return typeof j===typeof z}function J(j,z){if(j&&typeof j==="object"&&!Array.isArray(j)){if(Object.getPrototypeOf(j)!==Object.prototype&&Object.getPrototypeOf(j)!==null)throw TypeError(`Runtime config ${z.join(".")} must contain JSON values`);let q=Object.create(null);for(let[G,P]of Object.entries(j)){if(!/^[a-zA-Z][a-zA-Z0-9_]*$/.test(G)||["constructor","prototype","__proto__"].includes(G))throw TypeError(`Invalid runtime config key: ${G}`);q[G]=J(P,[...z,G])}return Object.freeze(q)}let B=`STX_RUNTIME_${z.map((q)=>q.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase()).join("__")}`;if(I.has(B))throw TypeError(`Ambiguous runtime config environment key: ${B}`);I.add(B);let F=H[B],K=j;if(F!==void 0){try{K=typeof j==="string"?F:JSON.parse(F)}catch{throw TypeError(`Invalid runtime config override: ${B}`)}if(!E(K,j))throw TypeError(`Wrong runtime config override type: ${B}`)}function M(q){if(q===null||typeof q==="string"||typeof q==="boolean")return q;if(typeof q==="number"&&Number.isFinite(q))return q;if(Array.isArray(q))return Object.freeze(q.map(M));if(q&&typeof q==="object"&&(Object.getPrototypeOf(q)===Object.prototype||Object.getPrototypeOf(q)===null))return Object.freeze(Object.fromEntries(Object.entries(q).map(([G,P])=>[G,M(P)])));throw TypeError(`Runtime config ${z.join(".")} must contain JSON values`)}return M(K)}return Object.freeze({public:J(x.public??{},["public"]),private:J(x.private??{},["private"])})}function Z(x){return`<script data-stx-scoped data-stx-runtime-config type="application/json">${JSON.stringify(x.public).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}</script>`}function T(x,H){let I=x.replace(/<script\b[^>]*\bdata-stx-runtime-config\b[^>]*>[\s\S]*?<\/script>/gi,""),E=/<head\b[^>]*>/i.exec(I),J=E?E.index+E[0].length:0;return I.slice(0,J)+Z(H)+I.slice(J)}
3
- export{b as su,A as tu,X as uu,N as vu,O as wu,Z as xu,T as yu};
3
+ export{b as vu,A as wu,X as xu,N as yu,O as zu,Z as Au,T as Bu};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Wo as a,Xo as b}from"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{b as processLoops,a as parseLoopBinding};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Re as a,Se as b}from"./chunk-2ver2s2y.js";import"./chunk-jryjwara.js";export{b as captureScreenshots,a as captureScreenshot};
2
+ import{Re as a,Se as b}from"./chunk-2ver2s2y.js";import"./chunk-vvds14af.js";export{b as captureScreenshots,a as captureScreenshot};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Aj as q,yj as o,zj as p}from"./chunk-tph7b269.js";import{Gj as a,Hj as b,Ij as c,Jj as d,Kj as e,Lj as f,Mj as g,Nj as h,Oj as i,Pj as j,Qj as k,Rj as l,Sj as m,Tj as n}from"./chunk-t41aaehf.js";import"./chunk-ttny9g8k.js";import"./chunk-jryjwara.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
2
+ import{Aj as q,yj as o,zj as p}from"./chunk-j03sjtfs.js";import{Gj as a,Hj as b,Ij as c,Jj as d,Kj as e,Lj as f,Mj as g,Nj as h,Oj as i,Pj as j,Qj as k,Rj as l,Sj as m,Tj as n}from"./chunk-t41aaehf.js";import"./chunk-9enf3e5m.js";import"./chunk-vvds14af.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f,Kh as g,Lh as h}from"./chunk-64djh88a.js";import"./chunk-jryjwara.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{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f,Kh as g,Lh as h}from"./chunk-64djh88a.js";import"./chunk-vvds14af.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};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ue as a}from"./chunk-1zckawsv.js";import"./chunk-dvvx1wny.js";import"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{a as buildApp};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-jryjwara.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};
2
+ import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-vvds14af.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Qo as a,So as b,Uo as c,Vo as d,bq as e,cq as f,dq as g,eq as h,fq as i,gq as j,hq as k,iq as l,jq as m,kq as n,lq as o,mq as p,nq as q,oq as r,pq as s,qq as t,rq as u,sq as v,tq as w,uq as x}from"./chunk-2cey22m2.js";import"./chunk-ws1s0ar4.js";import"./chunk-b810yw1a.js";import"./chunk-fvhg6b2b.js";import"./chunk-sqwqyxzx.js";import"./chunk-273xtqav.js";import"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import"./chunk-dc6z4asx.js";import"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import"./chunk-9enf3e5m.js";import"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{e as validateTemplate,g as validateDirective,n as userComponentFileExists,m as transpileTypeScript,p as slotContentHasExpressions,k as shouldTranspileTypeScript,t as resolveTemplatePath,r as renderComponentWithSlot,j as isJavaScriptScript,o as isHydrateTrigger,d as hasVariables,h as hasDirectives,u as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,x as getComponentCacheStats,s as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,v as createDetailedErrorMessage,b as convertToCommonJS,q as componentClientSignalNames,w as clearComponentCache};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ui as x,Vi as F,Wi as R}from"./chunk-xwxdwqn9.js";import{fm as K,hq as T,yr as k}from"./chunk-spzbfqjn.js";import{Pu as y,Qu as N}from"./chunk-xcsf7my7.js";import{Uu as v}from"./chunk-ttny9g8k.js";import j from"path";var P=new Map,E=new Map,h=["composables","functions"];function D(q){let z=j.basename(q,".ts");return z==="index"||z==="types"||q.endsWith(".d.ts")}async function f(q){if(q)return j.resolve(q);let z=`<default>:${process.cwd()}`,W=E.get(z);if(W!==void 0)return W;let H=await u();if(H!==null)E.set(z,H);return H}async function u(){let q=await k(),z=q.root||process.cwd(),W=q.composablesDir;if(W)return j.resolve(z,W);for(let H of h){let Q=j.resolve(z,H);try{let V=new Bun.Glob("**/*.ts");for await(let Z of V.scan({cwd:Q,absolute:!0}))if(!D(Z))return Q}catch{}}return null}async function b(q){let z=Array.isArray(q)?q:q?[j.resolve(q)]:(await k())._layerComposableDirs??[await f()].filter((H)=>!!H),W=new Map;for(let H of z){let Q=new Bun.Glob("**/*.ts");try{for await(let V of Q.scan({cwd:H,absolute:!0})){let Z=j.relative(H,V);if(!D(V)&&!W.has(Z))W.set(Z,V)}}catch{}}return{key:z.join("\x00"),files:[...W.values()].sort()}}async function o(q){let{files:z}=await b(q),W=T({loader:"ts",target:"browser",define:K()}),H=[];for(let Q of z)try{let V=await Bun.file(Q).text(),Z=W.scan(V).exports.filter(($)=>$!=="default");if(Z.length>0)H.push({file:Q,names:Z})}catch{}return H}function p(q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(q)}function m(q,z,W){let H=new Map;for(let{file:$,names:G}of q)for(let O of G)if(!H.has(O))H.set(O,$);let Q=($)=>{let G=[];for(let[O,U]of H)if(p($,O))G.push(U);return G},V=new Set,Z=W.flatMap(Q);while(Z.length>0){let $=[];for(let G of Z){if(V.has(G))continue;V.add(G);for(let O of Q(z.get(G)??""))if(!V.has(O))$.push(O)}Z=$}return V}async function e(q,z,W){let{key:H,files:Q}=await b(q);if(!H)return null;let V=x(Q);if(Q.length===0)return R(P,H,V,""),null;Q.sort();let Z=T({loader:"ts",target:"browser",define:K()}),$=new Map,G=[];for(let J of Q)try{let Y=await Bun.file(J).text();$.set(J,Y);let L=Z.scan(Y).exports.filter((X)=>X!=="default");if(L.length>0)G.push({file:J,names:L})}catch{$.set(J,"")}let O=z===void 0?new Set(Q):m(G,$,W?[z,...W]:[z]);if(O.size===0)return null;let U=Q.filter((J)=>O.has(J)),A=`${H}\x00${U.join("\x00")}`,B=F(P,A,V);if(B!==void 0)return B||null;let M=[],w=new Set,I=new Set;for(let J of U)try{let Y=$.get(J)??await Bun.file(J).text(),L=j.basename(J,".ts");for(let X of Y.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])I.add(X[1]);try{for(let X of Z.scan(Y).exports)if(X!=="default")w.add(X)}catch{}Y=y(Y),Y=N(Y),Y=Y.replace(/^export\s+(default\s+)?/gm,""),Y=Z.transformSync(Y),M.push(`// Composable: ${L}
2
+ import{Ui as x,Vi as F,Wi as R}from"./chunk-xwxdwqn9.js";import{fm as K,iq as T,zr as k}from"./chunk-2cey22m2.js";import{Su as y,Tu as N}from"./chunk-7z2wtxxj.js";import{Xu as v}from"./chunk-9enf3e5m.js";import j from"path";var P=new Map,E=new Map,h=["composables","functions"];function D(q){let z=j.basename(q,".ts");return z==="index"||z==="types"||q.endsWith(".d.ts")}async function f(q){if(q)return j.resolve(q);let z=`<default>:${process.cwd()}`,W=E.get(z);if(W!==void 0)return W;let H=await u();if(H!==null)E.set(z,H);return H}async function u(){let q=await k(),z=q.root||process.cwd(),W=q.composablesDir;if(W)return j.resolve(z,W);for(let H of h){let Q=j.resolve(z,H);try{let V=new Bun.Glob("**/*.ts");for await(let Z of V.scan({cwd:Q,absolute:!0}))if(!D(Z))return Q}catch{}}return null}async function b(q){let z=Array.isArray(q)?q:q?[j.resolve(q)]:(await k())._layerComposableDirs??[await f()].filter((H)=>!!H),W=new Map;for(let H of z){let Q=new Bun.Glob("**/*.ts");try{for await(let V of Q.scan({cwd:H,absolute:!0})){let Z=j.relative(H,V);if(!D(V)&&!W.has(Z))W.set(Z,V)}}catch{}}return{key:z.join("\x00"),files:[...W.values()].sort()}}async function o(q){let{files:z}=await b(q),W=T({loader:"ts",target:"browser",define:K()}),H=[];for(let Q of z)try{let V=await Bun.file(Q).text(),Z=W.scan(V).exports.filter(($)=>$!=="default");if(Z.length>0)H.push({file:Q,names:Z})}catch{}return H}function p(q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(q)}function m(q,z,W){let H=new Map;for(let{file:$,names:G}of q)for(let O of G)if(!H.has(O))H.set(O,$);let Q=($)=>{let G=[];for(let[O,U]of H)if(p($,O))G.push(U);return G},V=new Set,Z=W.flatMap(Q);while(Z.length>0){let $=[];for(let G of Z){if(V.has(G))continue;V.add(G);for(let O of Q(z.get(G)??""))if(!V.has(O))$.push(O)}Z=$}return V}async function e(q,z,W){let{key:H,files:Q}=await b(q);if(!H)return null;let V=x(Q);if(Q.length===0)return R(P,H,V,""),null;Q.sort();let Z=T({loader:"ts",target:"browser",define:K()}),$=new Map,G=[];for(let J of Q)try{let Y=await Bun.file(J).text();$.set(J,Y);let L=Z.scan(Y).exports.filter((X)=>X!=="default");if(L.length>0)G.push({file:J,names:L})}catch{$.set(J,"")}let O=z===void 0?new Set(Q):m(G,$,W?[z,...W]:[z]);if(O.size===0)return null;let U=Q.filter((J)=>O.has(J)),A=`${H}\x00${U.join("\x00")}`,B=F(P,A,V);if(B!==void 0)return B||null;let M=[],w=new Set,I=new Set;for(let J of U)try{let Y=$.get(J)??await Bun.file(J).text(),L=j.basename(J,".ts");for(let X of Y.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])I.add(X[1]);try{for(let X of Z.scan(Y).exports)if(X!=="default")w.add(X)}catch{}Y=y(Y),Y=N(Y),Y=Y.replace(/^export\s+(default\s+)?/gm,""),Y=Z.transformSync(Y),M.push(`// Composable: ${L}
3
3
  ${Y.trim()}`)}catch(Y){console.warn(`[stx] Failed to load composable ${J}:`,Y)}if(M.length===0||w.size===0)return R(P,A,V,""),null;let g=[...w].map((J)=>` try { __c[${JSON.stringify(J)}] = ${J}; } catch (e) {}`).join(`
4
4
  `),S=JSON.stringify([...w]),C=M.join(`
5
5
 
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Nf as T}from"./chunk-zdzd2jb4.js";import{ew as I}from"./chunk-jryjwara.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./chunk-snmtft92.js")}
2
+ import{Nf as T}from"./chunk-n9bmagzv.js";import{hw as I}from"./chunk-vvds14af.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./chunk-aqzs1rqe.js")}
3
3
  export{g as yf,l as zf};
@@ -8,4 +8,4 @@ function N(D,G){let j=D[G],F=G+1;while(F<D.length){if(D[F]==="\\"){F+=2;continue
8
8
  `:" ",j++}G+=" ",j++;continue}if(H==="`"){G+=" ",j++;while(j<D.length&&D[j]!=="`"){if(D[j]==="\\"){G+=" ",j+=2;continue}if(D[j]==="$"&&D[j+1]==="{"){let J=j+2,K=M(D,J);if(G+=" ",G+=R(D.slice(J,K)),K<D.length)G+=" ";j=K+1;continue}G+=D[j]===`
9
9
  `?`
10
10
  `:" ",j++}G+=" ",j++;continue}G+=H,j++}return G}function U(D){let G=new Uint16Array(D.length),j=0,F=!0;for(let H=0;H<D.length;H++){let J=D[H];if(J===")"||J==="]"||J==="}")if(j===0)F=!1;else j--;if(G[H]=j,J==="("||J==="["||J==="{")j++}return{depths:G,balanced:F&&j===0}}
11
- export{M as it,R as jt,U as kt};
11
+ export{M as jt,R as kt,U as lt};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-jryjwara.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
2
+ import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-vvds14af.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Su as a,Tu as b}from"./chunk-7z2wtxxj.js";import"./chunk-vvds14af.js";export{a as transformStoreImports,b as stripModuleImports};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-jryjwara.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
2
+ import"./chunk-vvds14af.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
3
3
  <div class="stx-error-boundary" data-boundary-id="${q}" data-has-error="false">
4
4
  <div class="stx-error-boundary-content" data-boundary-content="${q}">
5
5
  ${z}
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{createHash as I}from"crypto";import M from"fs";import q from"path";import{decode as m,generateThumbHash as D}from"ts-images";import{createImageDeliveryCatalog as R}from"ts-images/delivery";var b=new Set([".avif",".jpeg",".jpg",".png",".webp"]),g=[320,640,960,1280,1920],_="/_stx/images",y=`stx:${_}:alpha-1`,T=new Map,F=new Set,A=new Set;function u(j){return`/${j.split(q.sep).map(encodeURIComponent).join("/")}`}function h(j){let B=q.extname(j),G=j.slice(0,-B.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),K=I("sha256").update(j).digest("hex").slice(0,8);return`${G||"image"}-${K}`}function L(j,B=`stx:${_}`){let G=(K)=>`${_}/${K.split("/").map(encodeURIComponent).join("/")}`;return{cacheNamespace:B,async stat(K){let J=q.join(j,K);try{let Q=await M.promises.stat(J);return Q.size>0?{bytes:Q.size,path:J,url:G(K)}:null}catch{return null}},async write(K,J){let Q=q.join(j,K);await M.promises.mkdir(q.dirname(Q),{recursive:!0});let Z=`${Q}.${process.pid}.tmp`;return await M.promises.writeFile(Z,J),await M.promises.rename(Z,Q),{bytes:J.byteLength,path:Q,url:G(K)}},url:G}}async function S(j,B=j){let G=await M.promises.readdir(B,{withFileTypes:!0});G.sort((J,Q)=>J.name.localeCompare(Q.name));let K=[];for(let J of G){let Q=q.join(B,J.name);if(J.isDirectory()){K.push(...await S(j,Q));continue}if(!J.isFile()||!b.has(q.extname(J.name).toLowerCase()))continue;K.push({absolutePath:Q,relativePath:q.relative(j,Q)})}return K}function C(j,B){return j.map((G)=>({key:u(G.relativePath),input:G.absolutePath,name:h(G.relativePath),...c(G.absolutePath)?{options:{storage:B}}:{}}))}function z(j,B,G){let K=Buffer.alloc(G),J=M.readSync(j,K,0,G,B);return K.subarray(0,J)}function P(j){if(j.length<25)return!1;let B=(K,J)=>String.fromCharCode(...j.subarray(K,J));if(B(0,4)!=="RIFF"||B(8,12)!=="WEBP")return!1;let G=B(12,16);if(G==="VP8X")return(j[20]&16)!==0;if(G==="VP8L")return((j[21]|j[22]<<8|j[23]<<16|j[24]<<24)>>>28&1)===1;return!1}function c(j){let B;try{B=M.openSync(j,"r");let G=z(B,0,33);if(G.length>=26&&G[0]===137&&G.toString("latin1",1,4)==="PNG"){let K=G[25];if(K===4||K===6)return!0;let J=8;for(let Q=0;Q<64;Q++){let Z=z(B,J,8);if(Z.length<8)return!1;let $=Z.toString("latin1",4,8);if($==="tRNS")return!0;if($==="IDAT"||$==="IEND")return!1;J+=12+Z.readUInt32BE(0)}return!1}if(G.length>=25&&G.toString("latin1",0,4)==="RIFF")return P(G);return!1}catch{return!1}finally{if(B!==void 0)M.closeSync(B)}}function p(j){for(let B=3;B<j.length;B+=4)if(j[B]!==255)return!0;return!1}async function f(j){let B=Object.entries(j).filter(([,J])=>J.fallback.format==="png"),G=new Set,K=8;for(let J=0;J<B.length;J+=8)await Promise.all(B.slice(J,J+8).map(async([Q,Z])=>{let $=Z.variants.filter((X)=>X.format==="png").sort((X,x)=>X.width-x.width)[0];try{let X=await m(new Uint8Array(await M.promises.readFile($?.path??Z.fallback.path)));if(p(X.data))G.add(Q)}catch{G.add(Q)}}));return G}function n(j,B){let G=[];for(let K of B){let J=j[K],Q=J?.variants.filter(($)=>$.format==="webp")??[];if(!J||Q.length===0)continue;if(!Q.some(($)=>{let X;try{return X=M.openSync($.path,"r"),!P(z(X,0,32))}catch{return!0}finally{if(X!==void 0)M.closeSync(X)}}))continue;if(J.variants=J.variants.filter(($)=>$.format!=="webp"),delete J.sources.webp,G.push(K),!A.has(K))A.add(K),console.warn(`[stx-images] ${K} is transparent but its WebP variants have no alpha channel; serving PNG instead. Upgrade @stacksjs/ts-webp to 0.1.6 or later.`)}return G}async function d(j){let B=[],G=8;for(let K=0;K<j.length;K+=8){let J=j.slice(K,K+8),Q=await Promise.all(J.map(async(Z)=>{try{return await D(Z.absolutePath),Z}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${Z.relativePath}`),null}}));B.push(...Q.filter((Z)=>Z!==null))}return B}function U(j){return q.join(j,"undecodable.json")}function o(j){try{let B=M.readFileSync(U(j),"utf-8"),G=JSON.parse(B);return G&&typeof G==="object"?G:{}}catch{return{}}}function l(j,B){try{M.mkdirSync(q.dirname(U(j)),{recursive:!0}),M.writeFileSync(U(j),JSON.stringify(B))}catch{}}function E(j){try{let B=M.statSync(j);return{mtimeMs:B.mtimeMs,size:B.size}}catch{return}}function k(j){if(!j||j.startsWith("data:")||j.startsWith("blob:")||/^https?:\/\//i.test(j)||j.startsWith("//"))return;let B=j.split(/[?#]/,1)[0];if(!B)return;try{return`/${B.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function e(j){let B=k(j);return B?T.get(B):void 0}function jj(j){let B=k(j);return B?F.has(B):!1}function W(){T=new Map,F=new Set}async function Bj(j,B){if(!j||!M.existsSync(j))return W(),{count:0,fingerprint:""};let G=await S(j);if(G.length===0)return W(),{count:0,fingerprint:""};let K=o(B),J=G.filter((O)=>{let V=K[O.relativePath];if(!V)return!0;let Y=E(O.absolutePath);return!Y||Y.mtimeMs!==V.mtimeMs||Y.size!==V.size});if(J.length===0)return W(),{count:0,fingerprint:""};let Q=L(q.join(B,"_stx","images"),y),Z={outDir:q.join(B,"_stx","images"),storage:L(q.join(B,"_stx","images")),baseUrl:_,widths:g,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},$=J,X;try{X=await R({...Z,entries:C(J,Q)})}catch(O){if($=await d(J),$.length===J.length)throw O;let V=new Set($.map((N)=>N.relativePath)),Y=!1;for(let N of J){if(V.has(N.relativePath))continue;let H=E(N.absolutePath);if(!H)continue;K[N.relativePath]=H,Y=!0}if(Y)l(B,K);if($.length===0)return W(),{count:0,fingerprint:""};X=await R({...Z,entries:C($,Q)})}let x=await f(X.entries),w=n(X.entries,x);T=new Map(Object.entries(X.entries)),F=x;let v=x.size===0&&w.length===0?X.fingerprint:I("sha256").update(X.fingerprint).update(JSON.stringify({transparent:[...x].sort(),droppedWebp:w.sort()})).digest("hex");return{count:$.length,fingerprint:v}}
3
+ export{P as cu,e as du,jj as eu,W as fu,Bj as gu};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Cm as I}from"./chunk-spzbfqjn.js";import{rs as F,vs as V}from"./chunk-raxr83fs.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
2
+ import{Cm as I}from"./chunk-2cey22m2.js";import{ss as F,ws as V}from"./chunk-ws1s0ar4.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
3
3
  export{w as Vg,C as Wg,N as Xg,A as Yg,E as Zg,M as _g};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ew as y}from"./chunk-jryjwara.js";function S4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function jZ(){return typeof window<"u"&&typeof document<"u"}async function w4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var g=new Map;function B4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function f4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function v4(Z="top-right"){if(!jZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function y4(Z){let{options:Y}=Z,$=f4(Y.type),J=Y.type||"info",Q=Y.duration!==0;return`
2
+ import{hw as y}from"./chunk-vvds14af.js";function S4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function jZ(){return typeof window<"u"&&typeof document<"u"}async function w4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var g=new Map;function B4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function f4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function v4(Z="top-right"){if(!jZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function y4(Z){let{options:Y}=Z,$=f4(Y.type),J=Y.type||"info",Q=Y.duration!==0;return`
3
3
  <div class="stx-toast ${J}" data-alert-id="${Z.id}" role="alert" aria-live="polite">
4
4
  <div class="stx-toast-icon">${$}</div>
5
5
  <div class="stx-toast-content">
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as Ul,$a as Yn,$b as hp,$c as hq,$d as hr,A as Ek,Aa as hn,Ab as Co,Ac as Ip,Ad as Iq,Ae as Or,B as Fk,Ba as jn,Bb as Do,Bc as Jp,Bd as Jq,Be as Pr,C as Gk,Ca as wn,Cb as Eo,Cc as Kp,Cd as Kq,Ce as Qr,D as Hk,Da as xn,Db as Fo,Dc as Lp,Dd as Lq,De as Rr,E as xl,Ea as yn,Eb as Go,Ec as Mp,Ed as Mq,Ee as Sr,F as yl,Fa as zn,Fb as Ho,Fc as Np,Fd as Nq,Fe as Tr,G as zl,Ga as An,Gb as Io,Gc as Op,Gd as Oq,Ge as Ur,H as Al,Ha as Bn,Hb as Jo,Hc as Pp,Hd as Pq,He as Vr,I as Bl,Ia as Fn,Ib as Ko,Ic as Qp,Id as Qq,Ie as Wr,J as Cl,Ja as Gn,Jb as Lo,Jc as Rp,Jd as Rq,Je as Xr,K as Dl,Ka as Hn,Kb as Mo,Kc as Sp,Kd as Sq,Ke as Yr,L as El,La as In,Lb as No,Lc as Tp,Ld as Tq,M as Fl,Ma as Jn,Mb as Oo,Mc as Up,Md as Uq,N as Gl,Na as Kn,Nb as Vo,Nc as Vp,Nd as Vq,O as Hl,Oa as Ln,Ob as Wo,Oc as Wp,Od as Wq,P as Il,Pa as Mn,Pb as Xo,Pc as Xp,Pd as Xq,Q as Jl,Qa as Nn,Qb as Yo,Qc as Yp,Qd as Yq,R as Kl,Ra as On,Rb as Zo,Rc as Zp,Rd as Zq,S as Ll,Sa as Pn,Sb as _o,Sc as _p,Sd as _q,T as Ml,Ta as Qn,Tb as $o,Tc as $p,Td as $q,U as Nl,Ua as Rn,Ub as ap,Uc as aq,Ud as ar,V as Ol,Va as Sn,Vb as bp,Vc as bq,Vd as br,W as Pl,Wa as Tn,Wb as cp,Wc as cq,Wd as cr,X as Ql,Xa as Un,Xb as dp,Xc as dq,Xd as dr,Y as Rl,Ya as Vn,Yb as ep,Yc as eq,Yd as er,Z as Sl,Za as Wn,Zb as fp,Zc as fq,Zd as fr,_ as Tl,_a as Xn,_b as gp,_c as gq,_d as gr,aa as Vl,ab as Zn,ac as ip,ad as iq,ae as ir,ba as Wl,bb as _n,bc as jp,bd as jq,be as pr,ca as Xl,cb as $n,cc as kp,cd as kq,ce as qr,da as Yl,db as ao,dc as lp,dd as lq,de as rr,ea as Zl,eb as bo,ec as mp,ed as mq,ee as sr,fa as _l,fb as co,fc as np,fd as nq,fe as tr,ga as $l,gb as eo,gc as op,gd as oq,ge as ur,ha as am,hb as fo,hc as pp,hd as pq,he as vr,ia as bm,ib as go,ic as qp,id as qq,ie as wr,ja as cm,jb as ho,jc as rp,jd as rq,je as xr,ka as dm,kb as io,kc as sp,kd as sq,ke as yr,la as em,lb as jo,lc as tp,ld as tq,le as zr,ma as fm,mb as ko,mc as up,md as uq,me as Ar,na as gm,nb as no,nc as vp,nd as vq,ne as Br,o as a,oa as hm,ob as oo,oc as wp,od as wq,oe as Cr,p as pk,pa as Ym,pb as po,pc as xp,pd as xq,pe as Dr,q as qk,qa as Zm,qb as qo,qc as yp,qd as yq,qe as Er,r as rk,ra as _m,rb as so,rc as zp,rd as zq,re as Fr,s as sk,sa as $m,sb as to,sc as Ap,sd as Aq,se as Gr,t as tk,ta as an,tb as uo,tc as Bp,td as Bq,te as Hr,u as uk,ua as bn,ub as vo,uc as Cp,ud as Cq,ue as Ir,v as vk,va as cn,vb as xo,vc as Dp,vd as Dq,ve as Jr,w as wk,wa as dn,wb as yo,wc as Ep,wd as Eq,we as Kr,x as xk,xa as en,xb as zo,xc as Fp,xd as Fq,xe as Lr,y as Ck,ya as fn,yb as Ao,yc as Gp,yd as Gq,ye as Mr,z as Dk,za as gn,zb as Bo,zc as Hp,zd as Hq,ze as Nr}from"./chunk-9znajpe5.js";import{Le as Po,Me as Qo,Ne as Ro,Oe as So,Pe as To,Qe as Uo}from"./chunk-jx6qn384.js";import{Re as lo,Se as mo}from"./chunk-2ver2s2y.js";import{Te as ro}from"./chunk-k29v4m21.js";import{Ue as Xm}from"./chunk-1zckawsv.js";import{Ve as Cn,We as Dn,Xe as En,Ye as wo}from"./chunk-sh9m91w0.js";import{$e as Kk,Ze as Ik,_e as Jk,af as Lk,bf as Mk,cf as Nk,df as Ok,ef as Pk,ff as Qk,gf as Rk,hf as Sk,if as Tk,jf as Uk,kf as Vk,lf as Wk}from"./chunk-ym3r8ktq.js";import{mf as ll,nf as ml,of as nl,pf as ol,qf as pl,rf as ql,sf as rl,tf as sl,uf as tl,vf as ul,wf as vl,xf as wl}from"./chunk-k4417q3k.js";import{yf as jl,zf as kl}from"./chunk-fkvg0m44.js";import{Af as Xk,Bf as Yk,Cf as Zk,Df as _k,Ef as $k,Ff as al,Gf as bl,If as cl,Jf as dl,Kf as el,Lf as fl,Mf as gl,Nf as hl,Qf as il}from"./chunk-n9bmagzv.js";import{Rf as Em,Sf as Fm,Tf as Gm,Uf as Hm,Vf as Km,Wf as Wm}from"./chunk-rhk3w1hf.js";import{Xf as Im,_f as Jm}from"./chunk-8s9x1kcg.js";import{Ag as Pm,Bg as Qm,Cg as Rm,Dg as Sm,Eg as Tm,Fg as Um,Gg as Vm,gg as im,hg as jm,ig as km,jg as lm,kg as mm,lg as nm,mg as om,ng as pm,og as qm,pg as rm,qg as sm,rg as tm,sg as um,tg as vm,ug as wm,vg as xm,wg as Lm,xg as Mm,yg as Nm,zg as Om}from"./chunk-a9az6pen.js";import{Hg as ym,Ig as zm}from"./chunk-dvvx1wny.js";import{Jg as kn,Kg as ln,Lg as mn,Mg as nn,Ng as on,Og as pn,Pg as qn,Qg as rn,Rg as sn,Sg as tn,Tg as un,Ug as vn}from"./chunk-xz3evxqp.js";import{Vg as $h,Wg as ai,Xg as bi,Yg as ci,Zg as di,_g as ei}from"./chunk-hbvxhwvt.js";import{$g as tj,ah as uj,bh as vj,fh as wj,gh as xj,hh as yj}from"./chunk-pytndzd2.js";import{ih as Ej,jh as Fj,kh as Gj,lh as Hj,mh as Ij,nh as Jj,oh as Kj,ph as Lj,qh as Mj,rh as Nj,sh as Oj}from"./chunk-qs9bq14j.js";import{Ah as pj,Bh as qj,Ch as rj,Dh as sj,th as jj,uh as kj,vh as lj,wh as mj,xh as nj,zh as oj}from"./chunk-vd5xvsnv.js";import{Eh as ek,Gh as fk}from"./chunk-64djh88a.js";import{Mh as Ch,Nh as Dh,Oh as Eh,Ph as Fh,Qh as Gh,Rh as Hh,Sh as Ih,Th as Jh,Uh as Kh,Vh as Lh,Wh as Mh,Xh as Nh,Yh as Oh,Zh as Ph}from"./chunk-9368t9jm.js";import{$h as Qh,ai as Rh,bi as Sh,ci as Th}from"./chunk-5tefa8qb.js";import{hi as Uh}from"./chunk-mwh3ymwc.js";import{ii as Yg}from"./chunk-fqq5k9ve.js";import{ji as Zg,ki as _g}from"./chunk-ya5m5vbn.js";import{li as $g,mi as ah,ni as bh,oi as ch,pi as dh,qi as eh}from"./chunk-y4nzmkea.js";import{ri as fh,si as gh,ti as hh,ui as ih,vi as jh}from"./chunk-7kw3grq5.js";import{Ai as oh,wi as kh,xi as lh,yi as mh,zi as nh}from"./chunk-c79nfdyj.js";import{Bi as ph,Ci as qh,Di as rh,Ei as sh,Fi as th,Gi as uh,Hi as vh}from"./chunk-ej8mv2k6.js";import{Ii as wh,Ji as xh,Ki as yh,Li as zh,Mi as Ah,Ni as Bh}from"./chunk-cr8v8k53.js";import{Pi as Vg,Qi as Wg}from"./chunk-19yw8p2h.js";import{Ti as Xg}from"./chunk-fe0pxn8d.js";import"./chunk-xwxdwqn9.js";import{$i as He,Xi as De,Yi as Ee,Zi as Fe,_i as Ge,aj as Ie,bj as Je,cj as Ke,dj as Le,ej as Me,fj as Ne,gj as Oe,hj as Pe,ij as Qe}from"./chunk-cy6rz73m.js";import{jj as ff,kj as gf,lj as hf,mj as jf,nj as kf,oj as lf,pj as mf,qj as nf,rj as of,sj as pf,tj as qf,uj as rf,vj as sf,wj as tf,xj as uf,yj as vf,zj as wf}from"./chunk-j03sjtfs.js";import{Gj as Te,Hj as Ue,Ij as Ve,Jj as We,Kj as Xe,Lj as Ye,Mj as Ze,Nj as _e,Oj as $e,Pj as af,Qj as bf,Rj as cf,Sj as df,Tj as ef}from"./chunk-t41aaehf.js";import{$j as Ef,Uj as xf,Vj as yf,Wj as zf,Xj as Af,Yj as Bf,Zj as Cf,_j as Df,ak as Ff,bk as Gf,ck as Hf,dk as If}from"./chunk-2f0kykg4.js";import{Ak as mr,Bk as nr,Ck as or,xk as jr,yk as kr,zk as lr}from"./chunk-xsd936j5.js";import{Dk as yk,Ek as zk,Fk as Ak,Gk as Bk,Hk as Am,Ik as Bm,Jk as Cm,Kk as Dm}from"./chunk-brfcence.js";import"./chunk-09zjty4k.js";import"./chunk-k9qd0v7e.js";import{ul as Yb,vl as Zb,zl as _b}from"./chunk-z57k43ad.js";import{$l as Fb,$m as $c,$n as pe,$o as Uf,$p as Ug,$q as hj,Am as sc,An as Ad,Ap as tg,Aq as Ii,Ar as jk,Bl as xa,Bm as tc,Bn as Bd,Bp as ug,Bq as Ji,Br as kk,Cl as ya,Cm as uc,Cn as Cd,Cp as vg,Cq as Ki,Cr as lk,Dl as za,Dm as vc,Dn as Dd,Dp as wg,Dq as Li,Dr as mk,El as Aa,Em as wc,En as Ed,Ep as xg,Eq as Mi,Er as nk,Fl as Ba,Fm as xc,Fn as Fd,Fp as yg,Fq as Ni,Fr as ok,Gl as Ca,Gm as yc,Gn as Gd,Gp as zg,Gq as Oi,Hl as Da,Hm as zc,Hn as Hd,Hp as Ag,Hq as Pi,Il as Ea,Im as Ac,In as Id,Ip as Bg,Iq as Qi,Jl as Fa,Jm as Bc,Jn as Jd,Jp as Cg,Jq as Ri,Kl as Ga,Km as Cc,Kn as Kd,Ko as Kf,Kp as Dg,Kq as Si,Ll as Ha,Lm as Dc,Ln as Ld,Lp as Eg,Lq as Ti,Ml as Ia,Mm as Ec,Mn as Md,Mp as Fg,Mq as Ui,Nl as Ja,Nm as Oc,Nn as Nd,Np as Gg,Nq as Vi,Ol as Ka,Om as Pc,On as Od,Op as Hg,Oq as Wi,Pl as La,Pm as Qc,Pn as Pd,Pp as Ig,Pq as Xi,Ql as Ma,Qm as Rc,Qn as Qd,Qo as Lf,Qp as Jg,Qq as Yi,Rl as Na,Rm as Sc,Rn as fe,Rp as Kg,Rq as Zi,Sl as Oa,Sm as Tc,Sn as ge,So as Mf,Sp as Lg,Sq as _i,Tl as ib,Tm as Uc,Tn as he,Tp as Mg,Tq as $i,Ul as jb,Un as ie,Uo as Nf,Up as Ng,Uq as aj,Vl as kb,Vm as Vc,Vn as je,Vo as Of,Vp as Og,Vq as bj,Wl as lb,Wm as Wc,Wn as ke,Wo as Pf,Wp as Pg,Wq as cj,Xl as mb,Xm as Xc,Xn as le,Xo as Qf,Xp as Qg,Xq as dj,Yl as nb,Ym as Yc,Yn as me,Yo as Rf,Yp as Rg,Yq as ej,Zm as Zc,Zn as ne,Zo as Sf,Zp as Sg,Zq as fj,_m as _c,_n as oe,_o as Tf,_p as Tg,_q as gj,am as Gb,an as ad,ao as qe,ap as Vf,aq as Vh,ar as ij,bm as Hb,bn as bd,bo as re,bp as Wf,bq as Wh,br as zj,cm as Ib,cn as cd,co as se,cp as Xf,cq as Xh,cr as Aj,dm as Jb,dn as dd,dp as Yf,dq as Yh,dr as Bj,em as Nb,en as ed,ep as Zf,eq as Zh,er as Cj,fm as Ob,fn as fd,fp as _f,fq as _h,fr as Dj,gm as Pb,gn as gd,gp as $f,gq as fi,gr as Pj,hm as $b,hn as hd,hp as ag,hq as gi,hr as Qj,im as ac,in as id,io as we,ip as bg,iq as hi,ir as Rj,jm as bc,jn as jd,jo as xe,jp as cg,jq as ii,jr as Sj,km as cc,kn as kd,ko as ye,kp as dg,kq as ji,kr as Tj,lm as dc,ln as ld,lo as ze,lp as eg,lq as ki,lr as Uj,mm as ec,mn as md,mo as Ae,mp as fg,mq as li,mr as Vj,nm as fc,nn as nd,no as Be,np as gg,nq as mi,nr as Wj,om as gc,on as od,oo as Ce,op as hg,oq as ni,or as Xj,pm as hc,pn as pd,pp as ig,pq as oi,pr as Yj,qm as ic,qn as qd,qp as jg,qq as pi,qr as Zj,rm as jc,rn as rd,rp as kg,rq as qi,rr as _j,sm as kc,sn as sd,so as Re,sp as lg,sq as ri,sr as $j,tm as lc,tn as td,to as Se,tp as mg,tq as si,tr as ak,um as mc,un as ud,up as ng,uq as ti,ur as bk,vm as nc,vn as vd,vo as Jf,vp as og,vq as ui,vr as ck,wm as oc,wn as wd,wp as pg,wq as vi,wr as dk,xm as pc,xn as xd,xp as qg,xq as Fi,xr as gk,ym as qc,yn as yd,yp as rg,yq as Gi,yr as hk,zm as rc,zn as zd,zp as sg,zq as Hi,zr as ik}from"./chunk-2cey22m2.js";import{$r as w,$s as pa,As as O,Bs as P,Cs as Q,Ds as R,Es as S,Fs as T,Gr as b,Gs as U,Hr as c,Hs as V,Ir as d,Is as W,Jr as e,Js as X,Kr as f,Ks as Y,Lr as g,Ls as Z,Mr as h,Ms as _,Nr as i,Ns as $,Or as j,Os as aa,Pr as k,Ps as ba,Qr as l,Qs as ca,Rr as m,Rs as da,Sr as n,Ss as ea,Tr as o,Ts as fa,Ur as p,Us as ia,Vr as q,Vs as ja,Wr as r,Ws as ka,Xr as s,Xs as la,Yr as t,Ys as ma,Zr as u,Zs as na,_r as v,_s as oa,as as x,at as qa,bs as y,bt as ra,cs as z,ct as sa,ds as A,dt as ta,es as B,et as ua,fs as C,ft as va,gs as D,gt as wa,hs as E,is as F,js as G,ks as H,ls as I,ms as J,ns as K,os as L,ys as M,zs as N}from"./chunk-ws1s0ar4.js";import{ht as ga,it as ha}from"./chunk-b810yw1a.js";import{jt as Kb,kt as Lb,lt as Mb}from"./chunk-fvhg6b2b.js";import{mt as wi,nt as xi,ot as yi,pt as zi,qt as Ai,rt as Bi,st as Ci,tt as Di,ut as Ei}from"./chunk-sqwqyxzx.js";import{$t as Lc,Mt as Fc,Nt as Gc,Ot as Hc,Pt as Ic,Qt as Jc,St as Kc,au as Mc,bu as Nc}from"./chunk-273xtqav.js";import{du as te,fu as ue,gu as ve}from"./chunk-gvyaeytx.js";import"./chunk-j6f8bq12.js";import{nu as Qb,ou as Rb,pu as Sb,qu as Tb,ru as Ub,su as Vb}from"./chunk-j2d5v745.js";import"./chunk-nyfqbqd2.js";import{xu as Wb,yu as Xb}from"./chunk-dc6z4asx.js";import{Cu as Rd,Du as Sd,Eu as Td,Fu as Ud,Gu as Vd,Hu as Wd,Iu as Xd,Ju as Yd,Ku as Zd,Lu as _d,Mu as $d,Nu as ae,Ou as be,Pu as ce,Qu as de,Ru as ee}from"./chunk-pj9zybjf.js";import"./chunk-7z2wtxxj.js";import"./chunk-naxteb5j.js";import{$u as sb,Xu as ob,Yu as pb,Zu as qb,_u as rb,av as tb,bv as ub,cv as vb,dv as wb,ev as xb,fv as yb,gv as zb,hv as Ab,iv as Bb,jv as Cb,kv as Db,lv as Eb}from"./chunk-9enf3e5m.js";import{Fv as Ua,Gv as Va,Hv as Wa,Iv as Xa,Jv as Ya,Kv as Za,Lv as _a,Mv as $a,Nv as ab,Ov as bb,Pv as cb,Qv as db,Rv as eb,Sv as fb,Tv as gb,Vv as hb,pv as Pa,qv as Qa,tv as Ra,yv as Sa,zv as Ta}from"./chunk-3meekwv6.js";import"./chunk-rwcnfdj5.js";import"./chunk-vvds14af.js";export{Sk as writeNetlifyConfig,Mm as writeManifest,vl as writeImageManifest,cp as wrapComponentForHMR,Lr as withDefaults,dk as webComponentDirectiveHandler,Tp as watermark,Vq as watchViews,Fl as watchMultiple,Gl as watchEffect,El as watch,Ae as warmImagePlaceholders,Tl as waitForStore,X as waitForLocale,Qo as virtualPathFor,Sj as videoDirective,G as validators,Pr as validated,qe as validateValueEnhanced,Wh as validateTemplate,ym as validateRouteRules,Yp as validateParams,re as validateFormEnhanced,Kq as validateFile,me as validateFields,le as validateField,Yh as validateDirective,Ld as validateCspDirectives,lk as validateConfig,Zm as validateComponentScripts,wn as validateComponentProps,Ug as validateClientScript,Th as v,wc as usesSignalsInScript,ub as usesReactiveRuntime,ji as userComponentFileExists,zh as useVirtualList,Zd as useTitle,Sl as useStoreOrThrow,up as useStore,Ck as useStorage,of as useSlots,Ek as useSessionStorage,Wb as useServerRuntimeConfig,Kf as useServerData,Wd as useSeoMeta,Xb as useRuntimeConfig,Ul as useRouteParams,Wl as useRouteParamOrThrow,Vl as useRouteParam,Zd as usePageTitle,ef as useOptimistic,tf as useModel,Yl as useMiddlewareValue,Xl as useMiddlewareState,Dk as useLocalStorage,Xo as useLoadingIndicator,Ud as useHead,Qh as useForm,qf as useAttrs,Mq as uploadFiles,Lq as uploadFile,Pl as updateInstance,cf as untrack,zi as unregisterDirective,Ql as unmountInstance,Ec as unescapeHtml,To as typecheckStxFiles,ii as transpileTypeScript,yr as translate,Ba as transitionDirective,dc as transformAutoImports,qn as toUsers,pn as toUser,Cp as thumbnail,Dq as thumbHashToRGBA,Eq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,xf as templateCache,bd as syncRecordedResponse,$o as stxClientHelpers,eg as structuredDataDirective,Br as stripLocalePrefix,vm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,ao as stringToStream,zd as strictCspPreset,Le as streamingSuspenseDirective,Pe as streamToResponse,Je as streamTemplateSimple,De as streamTemplate,xk as stopHmrServer,mn as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Te as state,Og as startsDocument,wo as startProductionServer,ro as startInteractive,ln as startBroadcasting,Dr as stampLocaleLayoutGroup,Ia as staggerDirective,Wp as srcsetUrls,Ja as springDirective,id as splitByPipe,rm as spaNavVaryHeaders,Ro as sourcePathFor,bq as smartBatchSign,li as slotContentHasExpressions,$p as signUrl,gi as shouldTranspileTypeScript,uk as shouldReloadOnChange,eq as shouldRefreshSignature,vk as shouldIgnoreFile,rh as shouldCacheComponent,Gp as sharpen,Sr as shape,Sb as setStateDir,am as setRouteParams,bm as setMiddlewareState,ze as setImagePlaceholder,hf as setGlobalProvide,b as setErrorLocale,xl as setCurrentInstance,Gj as setCachedVideoResult,vj as setCachedImageResult,pj as setCached,Vr as serveStxFile,Xr as serveMultipleStxFiles,pk as serveMarkdownFile,Ho as serveFile,Yr as serveApp,Go as serve,fp as serializeState,Om as serializeSetCookie,Ip as sepia,Xd as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Wj as scopeHTML,Vj as scopeCSS,hg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Mp as saturation,Zp 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,Zf as runPreProcessingMiddleware,_f as runPostProcessingMiddleware,Rm as runPageAction,Ze as runMountCallbacks,gb as runMiddleware,Nl as runHooks,rr as runDoctor,_e as runDestroyCallbacks,mg as runComposers,Np as rotate,Uh as rewriteImagesWithSiblings,cd as responseBindings,pi as resolveTemplatePath,ha as resolveStxTargets,hk as resolveStxDirectories,xr as resolveI18n,Ap as resize,Rf as resetUnscopedSignalWarnings,Cc as resetRejectedExpressionWarnings,jc as resetPlaceholders,Td as resetHead,ep as resetHMRHandler,o as resetErrorConfig,Nr as required,nc as replacePlaceholders,Tq as renderView,Pj as renderVideoComponent,ac as renderVendorStyleTags,ar as renderToString,br as renderToStream,cr as renderToDOM,Cq as renderThumbhashToCanvas,or as renderTemplateString,mr as renderTemplate,nr as renderString,Ge as renderStreamingPage,bi as renderSlot,hh as renderSSRSuspense,mq as renderProtectedVideo,lq as renderProtectedImg,_p as renderMediaUpload,lr as renderMarkdownView,Cm as renderLayoutTypes,zj as renderImgComponent,ll as renderImageComponent,$d as renderHtmlAttrs,_d as renderHead,Wq as renderEmail,ni as renderComponentWithSlot,ae as renderBodyAttrs,pp as render,Bd as relaxedCspPreset,ke as registerValidationRule,Ne as registerStreamingDirectives,wp as registerStoresClient,_l as registerStore,fg as registerSeoDirectives,_a as registerMiddleware,rc as registerFilters,qc as registerFilter,d as registerErrorMessages,pe as registerEnhancedValidationRule,wi as registerDirective,Kd as registerCspDirectives,zn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,Bl as ref,jo as redirect,Zc as recordResponseStatus,_c as recordResponseHeader,Vb as rebaseOntoStateDir,$c as readResponseStatus,ad as readResponseHeaders,nk as readMarkdownFile,yf as readFileCached,Cl as reactive,Rp as quality,jq as pruneSignatureCache,sj as pruneCache,ff as provide,kr as protectCodeBlocks,Mr as prop,pg as processVueTemplate,xh as processVirtualListDirectives,Bh as processVirtualGridDirectives,Oj as processVideo,ne as processValidateDirective,ea as processTranslateDirective,bh as processTransitionDirectives,eh as processTransitionAttributes,de as processTitleDirective,Rc as processTemplateBindings,Zg as processTeleportDirectives,fh as processSuspenseDirectives,ag as processStructuredData,He as processStreamDirectives,dd as processStatusDirective,Oh as processStaticDirectives,Xf as processStackReplacements,Wf as processStackPushDirectives,ci as processSlots,tm as processShell,Ce as processServerBindings,bg as processSeoDirective,Oe as processSectionDirectives,Jc as processScopedStyles,Pc as processReactiveBindings,nq as processProtectedMedia,Hh as processPartialHydrationDirectives,Tg as processOnceDirective,Yf as processMiddleware,$f as processMetaDirectives,ee as processMetaDirective,ok as processMarkdownFileDirectives,ui as processMarkdownDirectives,Qf as processLoops,ph as processKeepAliveDirectives,Sg as processJsonDirective,Ah as processInfiniteListDirectives,Vf as processIncludes,Bj as processImgComponents,nl as processImageComponents,al as processImage,ce as processHeadDirective,ge as processForms,ie as processFormInputDirectives,Ac as processExpressions,Ib as processEventDirectives,je as processErrorDirective,qg as processDynamicComponents,Vh as processDirectives,Ei as processDirectiveAttributes,Yg as processDeferDirectives,Pd as processCustomDirectives,Hd as processCspDirectives,Tr as processComponentProps,ic as processClientScript,he as processBasicFormDirectives,kh as processAsyncDirectives,Qd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ve as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,Wo as preloadIslandHandlers,Be as preloadIconCollection,gn as poolStrings,fk as pluginManager,xe as placeholdersWarmed,ah as performLeave,$g as performEnter,$e as pendingLifecycleCounts,df as peek,Sf as partialsCache,Qj as parseVideoDirectiveOptions,yp as parseUrl,Fq as parseThumbhashString,od as parseSwitchBlock,$h as parseSlots,ai as parseSlotElement,td as parseScriptDeclarations,bk as parseSFCComponent,oq as parseProtectedArgs,Pf as parseLoopBinding,Aj as parseImgComponent,Si as parseImageUrl,ml as parseImageComponent,Pm as parseFormBody,qd as parseExpressionWithFilters,An as parseDefaults,go as parseCookies,km as parseContainerSelector,ld as parseConditionalBlock,rd as parseArguments,Ma as parseAnimationShorthand,Or as optional,hn as optimizeTemplate,sl as optimizeImage,tl as optimizeDirectory,Qr as oneOf,Tf as onceStore,Kl as onUpdated,Oc as onUpdate,Ml as onUnmounted,fm as onServer,Il as onMounted,Xe as onMount,Nh as onHydrated,mf as onErrorCaptured,Ye as onDestroy,vh as onDeactivated,em as onClient,Jl as onBeforeUpdate,Ll as onBeforeUnmount,Hl as onBeforeMount,uh as onActivated,yq as observeElement,ko as notFound,vg as normalizeCriticalHeadOrder,lf as nextTick,Dn as negotiateEncoding,Ua as navigateTo,Ol as mountInstance,Ea as motionDirective,Ad as moderateCspPreset,fn as minifyHtml,dg as metaDirective,Gg as metaDedupKey,zp as mergeParams,Ig as mergeHtmlAttrs,Vd as mergeHeadConfigs,Gc as mergeCssConfig,Ed as mergeCspDirectives,Ra as matchRoute,vi as markdownDirectiveHandler,mk as markdownCache,ga as looksLikeGlob,Ar as localizePath,U as loadTranslationLazy,_ as loadTranslation,ik as loadStxConfig,db as loadMiddlewareFromDirectory,Nm as loadManifest,uq as loadElement,nn as loadChannels,Hr as lintStxStrict,wq as lazyLoadAll,vq as lazyLoad,Ha as keyframeDirective,_q as jsxs,$q as jsxDEV,Zq as jsx,io as jsonResponse,Me as islandDirective,l as isTest,wm as isSpaNavigation,pm as isSpaNavRequest,cq as isSignatureValid,af as isSignal,_k as isSharpAvailable,Vn as isServerEnvironment,cm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,rq as isNativeLazySupported,jr as isMarkdownPath,Q as isLoading,R as isLoaded,fi as isJavaScriptScript,sq as isIntersectionObserverSupported,gl as isImageFile,$k as isImageBackendAvailable,aa as isICUFormat,Mh as isHydrated,ki as isHydrateTrigger,Xc as isHttpStatus,Un as isEdgeEnvironment,Ir as isDirectiveKind,k as isDevelopment,bf as isDerived,tk as isCssOnlyChange,Cn as isCompressible,dm as isClient,mh as isAsyncComponent,Qm as isActionableMethod,Jp as invert,Af as invalidateFileCacheByDir,zf as invalidateFileCache,zc as interpolateScriptsInTemplate,xc as interpolateScriptExpressions,yc as interpolateScriptAttributes,x as inlineError,wr as injectThemeBootstrap,cg as injectSeoTags,tr as injectSeo,Jf as injectRouterScript,sk as injectHotReload,kb as injectHeatmap,Nc as injectCss,Fd as injectCspMetaTag,Qg as injectConfigHeadTags,ug as injectColorModeBootScript,Kg as injectCloakStyle,Bg as injectBuildId,cc as injectBrowserCoreAutoImports,Tc as injectAnalytics,gf as inject,Zl as initStoreRegistry,Vk as initNetlify,Yo as initLoadingIndicator,tq as initLazyLoading,qo as initFile,Bq as initBlurUp,Hq as initAllBlurUp,Dj as imgDirective,ql as imageDirective,Um as hydrateTemplateStream,Tm as hydrateTemplate,Vo as hydrateIslands,Jh as hydrateIsland,Vm as hydrateFragment,Kh as hydrateByStrategy,Lh as hydrateAll,mp as hydrate,Fo as htmlResponse,Mg as hoistLeadingHeadTags,wg as hoistColorModeBootScript,lb as heatmapDirective,lj as hashString,If as hashFilePath,jj as hashFile,kj as hashBuffer,og as hasVueTemplateSyntax,Of as hasVariables,rp as hasStore,oc as hasPlaceholders,Tk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Pg as hasDocumentShell,Zh as hasDirectives,ma as hasDOMSupport,jl as handleImageRequest,nf as handleError,gr as h,fl as groupVariantsByFormat,Hp as grayscale,yo as gitHash,$m as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Ok as getTotalSize,dq as getTimeUntilExpiry,Vg as getStoreScript,sp as getStoreNames,qp as getStore,Hk as getStorageSize,Gk as getStorageKeys,qi as getSourceLineInfo,hi as getSharedTranspiler,Ef as getServeClientAsset,la as getScreenReaderOnlyStyle,Xj as getScopeAttribute,Se as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,Xh as getPositionInfo,lc as getPlaceholderRegistry,ij as getPlaceholderCacheStats,Sd as getPageMeta,vd as getNonce,hl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,we as getImagePlaceholder,bl as getImageMetadata,te as getImageDelivery,lp as getHydrationRuntime,$l as getHydratedStoreState,wk as getHmrServer,Rd as getHead,dp as getHMRHandler,Wi as getFormatExtension,nj as getFileMtime,el as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,yi as getDirectives,xi as getDirective,yl as getCurrentInstance,Kc as getCssServeAsset,Dd as getCspPreset,Md as getCspHeaderName,ti as getComponentCacheStats,Fj as getCachedVideoResult,hq as getCachedSignature,Cf as getCachedSignalsRuntime,Df as getCachedRouterScript,gj as getCachedPlaceholder,uj as getCachedImageResult,oj as getCached,rj as getCacheStats,zg as getBuildId,kn as getBroadcastServer,Vi as getBestVariant,sc as getAllFilters,Ji as generateWidthSrcset,yh as generateVirtualListCSS,Oq as generateVideoPreview,se as generateValidationScript,Pq as generateUploadRuntime,an as generateTreeShakenBundle,dh as generateTransitionRuntime,ch as generateTransitionCSS,Jj as generateThumbnails,$i as generateThumbhashPlaceholder,Mn as generateTemplatesDocs,jh as generateSuspenseRuntime,ih as generateSuspenseCSS,gp as generateStateScript,Ti as generateSrcsetData,yj as generateSrcset,cl as generateSrcSet,Kj as generateSpriteSheet,Xq as generateSpaShell,Ui as generateSourceTags,Pi as generateSizesFromBreakpoints,Oi as generateSizesAttribute,dl as generateSizes,gg as generateSitemapIndex,ur as generateSitemap,qq as generateSimpleMediaPicker,kq as generateSignatureRuntime,wf as generateSignalsRuntimeDev,vf as generateSignalsRuntime,hc as generateServerDataBridge,Uj as generateScopeId,ck as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,ig as generateRobotsTxt,vr as generateRobots,xj as generateResponsiveVariants,_j as generateReactiveWebComponentTS,Zj as generateReactiveWebComponent,ak as generateReactiveRuntime,$j as generateReactiveMixin,Ij as generatePoster,fj as generatePlaceholderStyle,ej as generatePlaceholderCSS,_i as generatePlaceholder,Ih as generatePartialHydrationCSS,ud as generateNonce,Pk as generateNetlifyToml,Rq as generateMinifiedMediaRuntime,Qq as generateMediaRuntime,pq as generateMediaManagerEmbed,Lm as generateManifest,_o as generateLoadingIndicatorHtml,Aq as generateLazyLoadRuntime,Dm as generateLayoutTypes,bj as generateLQIP,th as generateKeepAliveRuntime,sh as generateKeepAliveCSS,Ph as generateIslandManifest,Nq as generateImagePreview,ul as generateImageManifest,kp as generateHydrationScript,Qe as generateHydrationRuntime,np as generateHydrationCSS,Ch as generateHydrationBootstrap,rk as generateHotReloadScript,jb as generateHeatmapScript,bp as generateHMRClientScript,Lj as generateHLSManifest,hp as generateEventBindings,Ni as generateDprSrcsetWithVariableQuality,Mi as generateDprSrcset,Ng as generateDocumentShell,Rn as generateDocs,Nn as generateDirectivesDocs,Di as generateDirectiveRuntime,jg as generateDefaultRobotsTxt,Mj as generateDASHManifest,Mc as generateCss,yd as generateCspMetaTag,xd as generateCspHeader,sf as generateCompositionRuntime,Ln as generateComponentsDocs,Dh as generateComponentManifest,Jn as generateComponentDoc,dj as generateColorPlaceholder,tg as generateColorModeBootScript,Rl as generateClientRuntime,mj as generateCacheKey,fc as generateBrowserAutoImportDestructuring,Iq as generateBlurUpRuntime,Jq as generateBlurUpCSS,Qc as generateBindingsRuntime,Ki as generateAutoWidthSrcset,ec as generateAutoImportDestructuring,oh as generateAsyncComponentRuntime,nh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Sc as generateAnalyticsScript,Uo as formatTypecheckDiagnostics,Oo as formatTypeErrors,no as formatStxContent,Nk as formatSize,Ta as formatRoutes,oo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,sr as formatDoctorReport,On as formatDocsAsMarkdown,Qn as formatDocsAsJson,Pn as formatDocsAsHtml,Qp as format,en as foldConstants,Pp as flipVertical,Op as flipHorizontal,Em as fingerprint,So as findRuntimeTypeDeclarations,qr as findPantryPackage,kd as findMatchingEndTag,gd as findMatchingDelimiter,Kb as findInterpolationEnd,md as findIfBlocks,pd as findExpressions,Sa as findErrorPage,Hc as findDuplicateScopedStyleRanges,nd as findDirectiveBlocks,bn as findDeadCode,bn as findDeadBranches,lm as findContainerRegion,Kn as findComponentFiles,Wr as findCommonDir,Mk as filterRequiredFiles,oi as fileExists,Lf as extractVariables,Jm as extractTemplateExpressions,Ie as extractStreamBoundaries,ip as extractState,di as extractSlotContent,Nf as extractScriptFromTemplate,Im as extractScriptBlocks,mc as extractPlaceholders,jd as extractParenthesizedExpression,Yc as extractPageResponseStatus,hb as extractLayoutMetadata,cj as extractDominantColor,sd as extractDirectiveParams,_h as extractDirectiveNames,xm as extractContainerContent,Hn as extractComponentProps,Eh as extractComponentName,In as extractComponentDescription,Lc as extractClassNames,gc as extractBridgeData,Fh as extractBoundProps,hd as extractBalancedExpression,$b as extractAndStripCssImports,Yj as extractAndScopeStyles,Hb as extractAndProcessEvents,Ak as externalizeSharedAssets,Bk as externalizeRepeatedAssets,zk as externalizeHtml,Dc as evaluateExpression,dn as evaluateConstant,ed as evaluateAuthExpression,vc as escapeHtmlValue,uc as escapeHtml,C as errorRecovery,E as errorLogger,_g as ensureTeleportTargets,Rg as ensureDocumentShell,oe as enhancedValidationRules,Fn as enableDevTools,cn as eliminateDeadCode,Ve as effect,Xp as dprUrls,Sn as docsCommand,Yb as discoverServerApi,Bm as discoverLayoutNames,zq as disconnectObserver,Gn as disableDevTools,F as devHelpers,sm as detectShell,Tn as detectRuntime,Qk as detectProjectConfig,Xi as detectFormat,Ym as detectBuildMode,Ue as derived,Uk as deploy,kk as defineStxConfig,vp as defineStore,pf as defineSlots,Gr as defineSiteConfig,Kr as definePropsWithValidation,Jr as defineProps,ek as definePlugin,Yd as definePageMeta,Wa as defineMiddleware,Rh as defineForm,kf as defineExpose,jf as defineEmits,Ai as defineDirective,ir as defineCustomElement,vo as defineConfig,Bi as defineClientDirective,lh as defineAsyncComponent,xo as defineApiHandler,Sq as defaultMediaConfig,wl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,fe as defaultFormClasses,pc as defaultFilters,Od as defaultCspConfig,gk as defaultConfig,Ur as default,Fc as deepMergeThemes,Ic as dedupeScopedStyles,om as decodeTitleEntities,aj as decodeThumbhash,Jd as cspNonceDirective,Id as cspDirective,Gq as crossfadeTransition,Bp as crop,wh as createVirtualList,Rj as createVideoDirective,eo as createVercelHandler,Lo as createTypeChecker,fa as createTranslateFilter,$n as createTextEncoderStream,hr as createStxApp,_n as createStreamingResponse,Ke as createStreamRenderer,tp as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,Al as createScope,gh as createSSRSuspense,Re as createRouter,zm as createRouteRuleResolver,eb as createRouteLocation,Jo as createRoute,Bl as createRef,Cl as createReactive,rf as createProvideContext,Ao as createProject,uo as createProductionBuild,kc as createPlaceholder,jn as createOptimizedBuild,fo as createNetlifyHandler,Ik as createNetlifyClient,fb as createMiddlewareContext,Io as createMiddleware,xq as createLazyObserver,qh as createKeepAliveCache,Xn as createKVNamespace,Gh as createIslandRegistry,Cj as createImgDirective,rl as createImagePlugin,kl as createImageHandler,pl as createImageDirective,nb as createHeatmapAggregator,Lk as createFileManifest,Wn as createEnvAccessor,z as createEnhancedError,Zn as createEdgeHandler,Yn as createEdgeCache,ri as createDetailedErrorMessage,co as createDenoHandler,Rk as createDefaultNetlifyConfig,Nd as createCspHeaders,ho as createCookie,Dl as createComputed,zl as createComponentInstance,bo as createCloudflareHandler,Ya as createClientCookieManager,Ci as createBuiltinDirectives,hr as createApp,Ka as createAnimationTimeline,Ep as cover,Mf as convertToCommonJS,Lp as contrast,Dp as contain,y as consoleError,m as configureErrorHandling,jk as config,Dl as computed,En as compressResponse,lg as composerPattern,kg as composer,um as composeShellWithPage,yn as componentDirective,mi as componentClientSignalNames,Km as compileTemplate,a as collectRepeatedFlag,Kk as collectDeployFiles,Lg as cloakStyleFragment,Hj as clearVideoCache,N as clearTranslationCache,Wg as clearStoreCache,Fk as clearStorage,iq as clearSignatureCache,uf as clearServerData,hj as clearPlaceholderCache,Uf as clearOnceStore,wd as clearNonce,bb as clearMiddleware,ye as clearImagePlaceholders,ue as clearImageDeliveryCatalog,ol as clearImageCache,e as clearErrorMessages,Ff as clearDevCaches,tc as clearCustomFilters,ng as clearComposers,Xg as clearComposableCache,si as clearComponentCache,qj as clearCache,Db as clearBlankCache,Zo as cleanupLoadingIndicator,im as classifyScript,jm as classifyAllScripts,Mo as checkTemplateFile,No as checkTemplate,Gf as checkCache,fq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,tn as channel,mo as captureScreenshots,lo as captureScreenshot,Z as cancelPendingLoads,Jk as calculateSha1,Li as calculateOptimalWidths,Hf as cacheTemplate,Tj as buildWebComponents,Po as buildVirtualSource,Uq as buildViews,xp as buildUrl,Ee as buildSuspenseResolveScript,Fr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Fm as buildRuntimeAsset,Gm as buildRouterAsset,Er as buildLangPickerScript,Ri as buildImageUrl,Cg as buildIdFragment,Hg as buildHtmlAttrs,Wm as buildForProduction,Bn as buildComponentLibrary,gq as buildAuthParams,Xm as buildApp,Cr as buildAlternateLinks,to as build,rn as broadcastPrivate,sn as broadcastPresence,on as broadcast,Kp as brightness,Mb as bracketDepths,Fp as blur,Eb as blankInertHtmlRegions,aq as batchSignUrls,We as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Sp as auto,ja as attributeValue,Hm as assetTags,Fb as asInvocableStatement,Rr as arrayOf,zr as applyTranslations,wj as applyTransformations,ei as applySlots,xn as applyPropDefaults,Vp as applyPreset,Jg as applyHtmlAttrs,be as applyHead,Bc as applyFilters,qm as appendVary,Cd as apiCspPreset,Da as animationGroupDirective,Nj as analyzeVideo,_m as analyzeUsage,gm as analyzeTemplate,hm as analyzeProject,_m as analyzeDirectiveUsage,Uc as analyticsDirective,Do as addStore,Co as addPage,Gd as addNonceToInlineContent,Eo as addLayout,Bo as addComponent,Sm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Bf as __setSignalsGeneratorsForTest,Ag as __setBuildIdForTest,Ej as VideoProcessorCache,Sh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,fd as Tokenizer,Ko as TemplateTypeChecker,po as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,dr as Show,Fe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,mm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Vc as RESPONSE_STATUS_KEY,Wc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,so as ProductionBuild,fr as Portal,zo as PROJECT_TEMPLATES,Up as PRESETS,sb as NON_CLIENT_PRIMITIVES,op as MemorySessionStore,Ii as MIME_TYPES,Fi as MEDIA_DEFAULT_WIDTHS,Hi as MEDIA_DEFAULT_FORMATS,Am as LAYOUT_TYPES_FILE,tj as ImageProcessorCache,il as ImageProcessingError,jp as HydrationRuntime,qk as HotReloadServer,mb as HeatmapAggregator,Fg as HTML_CLASS_MARKER,Eg as HTML_ATTRS_MARKER,Yq as Fragment,er as For,nm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,yk as EXTERNALIZED_ASSET_DIR,Wk as DeployError,Xk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Zk as DEFAULT_QUALITY,Yi as DEFAULT_PLACEHOLDER_OPTIONS,Yk as DEFAULT_FORMATS,Gi as DEFAULT_DPR_VALUES,ap as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Qi as COMMON_SIZES,rg as COLOR_MODE_BOOT_MARKER,sg as COLOR_MODE_BOOT_GLOBAL,Dg as CLOAK_STYLE,vn as BroadcastServer,un as Broadcast,xg as BUILD_ID_META,yg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Zi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,pr as $path};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Gj as B,Hj as R,Ij as H,Jj as S,Kj as F,Lj as M,Pj as E,Qj as P,Rj as O,Sj as I}from"./chunk-t41aaehf.js";import{gv as L}from"./chunk-ttny9g8k.js";var w=null;function j(){return w}function f(z,W){if(w)w.provides.set(z,W);else V.set(z,W)}function k(z,W){let Q=w;while(Q){if(Q.provides.has(z))return Q.provides.get(z);Q=Q.parent}if(V.has(z))return V.get(z);return W}var V=new Map;function v(z,W){V.set(z,W)}function U(z){let W=w,Q=W?.el,Z=Array.isArray(z)?z:z&&typeof z==="object"?Object.keys(z):[];if(Q&&Z.length>0){let $=Q.__stx_component_emits||=Object.create(null);for(let Y of Z)$[Y]=!0}let _=($,...Y)=>{if(typeof document>"u")return;if(Q){let X=Q.__stx_component_emits||=Object.create(null);X[$]=!0,Q.dispatchEvent(new CustomEvent($,{detail:Y.length===1?Y[0]:Y,bubbles:!0,cancelable:!0}))}};if(W)W.emit=_;return _}function g(z){if(w)w.exposed=z}function m(z){let W=Promise.resolve();return z?W.then(z):W}function y(z){if(w)w.errorCapturedHooks.push(z)}function h(z,W,Q){let Z=W?.parent;while(Z){for(let _ of Z.errorCapturedHooks)if(_(z,W,Q)===!1)return;Z=Z.parent}}function p(){return w?.slots??{}}function u(){return w?.slots??{}}function l(){return w?.attrs??{}}function d(z){let W=z.__provides?new Map(Object.entries(z.__provides)):new Map;return{...z,__provides:W,__provide(Q,Z){W.set(Q,Z)},__inject(Q,Z){if(W.has(Q))return W.get(Q);if(z.__provides){let _=z.__provides instanceof Map?z.__provides:new Map(Object.entries(z.__provides));if(_.has(Q))return _.get(Q)}return Z}}}function i(){return`
2
+ import{Gj as B,Hj as R,Ij as H,Jj as S,Kj as F,Lj as M,Pj as E,Qj as P,Rj as O,Sj as I}from"./chunk-t41aaehf.js";import{jv as L}from"./chunk-9enf3e5m.js";var w=null;function j(){return w}function f(z,W){if(w)w.provides.set(z,W);else V.set(z,W)}function k(z,W){let Q=w;while(Q){if(Q.provides.has(z))return Q.provides.get(z);Q=Q.parent}if(V.has(z))return V.get(z);return W}var V=new Map;function v(z,W){V.set(z,W)}function U(z){let W=w,Q=W?.el,Z=Array.isArray(z)?z:z&&typeof z==="object"?Object.keys(z):[];if(Q&&Z.length>0){let $=Q.__stx_component_emits||=Object.create(null);for(let Y of Z)$[Y]=!0}let _=($,...Y)=>{if(typeof document>"u")return;if(Q){let X=Q.__stx_component_emits||=Object.create(null);X[$]=!0,Q.dispatchEvent(new CustomEvent($,{detail:Y.length===1?Y[0]:Y,bubbles:!0,cancelable:!0}))}};if(W)W.emit=_;return _}function g(z){if(w)w.exposed=z}function m(z){let W=Promise.resolve();return z?W.then(z):W}function y(z){if(w)w.errorCapturedHooks.push(z)}function h(z,W,Q){let Z=W?.parent;while(Z){for(let _ of Z.errorCapturedHooks)if(_(z,W,Q)===!1)return;Z=Z.parent}}function p(){return w?.slots??{}}function u(){return w?.slots??{}}function l(){return w?.attrs??{}}function d(z){let W=z.__provides?new Map(Object.entries(z.__provides)):new Map;return{...z,__provides:W,__provide(Q,Z){W.set(Q,Z)},__inject(Q,Z){if(W.has(Q))return W.get(Q);if(z.__provides){let _=z.__provides instanceof Map?z.__provides:new Map(Object.entries(z.__provides));if(_.has(Q))return _.get(Q)}return Z}}}function i(){return`
3
3
  // STX Composition API Runtime
4
4
  (function() {
5
5
  const _provides = new Map();
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import C from"path";var G=".stx",K="STX_DIR",J=null;function O(j){J=j?.trim()||null}function H(){return process.env[K]?.trim()||J||G}function Q(j=process.cwd(),...q){let B=H();return C.isAbsolute(B)?C.join(B,...q):C.join(j,B,...q)}function W(j){if(!j||C.isAbsolute(j))return j;let q=j.replace(/\\/g,"/");if(q!==G&&!q.startsWith(`${G}/`))return j;let B=q.slice(G.length+1);return B?C.join(H(),B):H()}
3
- export{G as ku,K as lu,O as mu,H as nu,Q as ou,W as pu};
3
+ export{G as nu,K as ou,O as pu,H as qu,Q as ru,W as su};