@stacksjs/stx 0.2.338 → 0.2.340
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.
- package/dist/builtins/stx-image.js +3 -2
- package/dist/builtins/stx-link.js +2 -1
- package/dist/caching.d.ts +1 -18
- package/dist/caching.js +2 -21
- package/dist/chunk-0pje0pjq.js +2 -0
- package/dist/{chunk-95t7pked.js → chunk-1w8bpytb.js} +1 -1
- package/dist/{chunk-wakb8z5q.js → chunk-284ag6fs.js} +9 -9
- package/dist/{chunk-9btdax2s.js → chunk-28q3vycz.js} +1 -1
- package/dist/{chunk-nhbc464j.js → chunk-3agx4hyd.js} +1 -1
- package/dist/{chunk-fjrkyhm7.js → chunk-3b9sxnty.js} +1 -1
- package/dist/{chunk-8cg15rr7.js → chunk-5ggt2ryn.js} +1 -1
- package/dist/{chunk-46tmg3k4.js → chunk-5t8ersrw.js} +1 -1
- package/dist/{chunk-x01sw9wy.js → chunk-605955nh.js} +1 -1
- package/dist/{chunk-3cjvqa0s.js → chunk-64qg8jes.js} +1 -1
- package/dist/{chunk-gz539gk6.js → chunk-6av24ywm.js} +1 -1
- package/dist/chunk-6es5r4az.js +3 -0
- package/dist/chunk-6j6ek3j1.js +2 -0
- package/dist/{chunk-zye9r15n.js → chunk-6nde3nmc.js} +1 -1
- package/dist/{chunk-vm5jbgb1.js → chunk-6zsc0z5a.js} +3 -3
- package/dist/{chunk-5r7gfwpj.js → chunk-756dqqn1.js} +1 -1
- package/dist/{chunk-m1p2n3nf.js → chunk-7xjm1zqa.js} +1 -1
- package/dist/{chunk-9m5sxaen.js → chunk-82h5rp34.js} +1 -1
- package/dist/{chunk-mnyehz4t.js → chunk-8de19dmw.js} +1 -1
- package/dist/{chunk-hfzv07az.js → chunk-95e1m9p8.js} +1 -1
- package/dist/{chunk-qhdp0ycf.js → chunk-9pv7gcey.js} +1 -1
- package/dist/{chunk-kawdj1j7.js → chunk-a2mj88c6.js} +1 -1
- package/dist/{chunk-39xtzfzf.js → chunk-apa2v787.js} +1 -1
- package/dist/{chunk-f6sejeg3.js → chunk-axqfm9b4.js} +1 -1
- package/dist/{chunk-4pcjt99d.js → chunk-cjcj2gsq.js} +1 -1
- package/dist/{chunk-w0hzaka3.js → chunk-d6yyzpsv.js} +98 -7
- package/dist/{chunk-e3rgky2r.js → chunk-d964bsxm.js} +283 -283
- package/dist/chunk-dy9xs2q0.js +2 -0
- package/dist/chunk-eb1v7f55.js +2 -0
- package/dist/{chunk-1yj4xd6n.js → chunk-f476c9fb.js} +3 -3
- package/dist/{chunk-4904n5v0.js → chunk-fa2mg49t.js} +2 -2
- package/dist/{chunk-4cw0s9f4.js → chunk-fx07kyz7.js} +1 -1
- package/dist/chunk-g0059g3p.js +2 -0
- package/dist/{chunk-meqz313r.js → chunk-gf6t4419.js} +1 -1
- package/dist/{chunk-yj1dxdfr.js → chunk-h7hnzwd0.js} +1 -1
- package/dist/chunk-hkgnpf6v.js +2 -0
- package/dist/{chunk-9jc2z17q.js → chunk-hq9fa4pe.js} +2 -2
- package/dist/chunk-hvw4mwee.js +2 -0
- package/dist/chunk-jwa2jhd8.js +2 -0
- package/dist/{chunk-kdwerx8e.js → chunk-kwxcertb.js} +1 -1
- package/dist/{chunk-gtfcw1gc.js → chunk-mb7rn0bf.js} +1 -1
- package/dist/chunk-mjf3xmxn.js +3 -0
- package/dist/{chunk-vgfnre7b.js → chunk-nwz43t6d.js} +1 -1
- package/dist/{chunk-823h67tv.js → chunk-p7ntrtaj.js} +1 -1
- package/dist/{chunk-fw56y3cb.js → chunk-ppp84wry.js} +2 -2
- package/dist/{chunk-qtc28zy1.js → chunk-pxw0cpxe.js} +1 -1
- package/dist/chunk-r5kr6jk4.js +17 -0
- package/dist/chunk-rceawm7w.js +2 -0
- package/dist/{chunk-kermxyfe.js → chunk-shtg7kah.js} +1 -1
- package/dist/{chunk-dvafkj8w.js → chunk-t3mh10z3.js} +1 -1
- package/dist/chunk-vz0ebk4j.js +2 -0
- package/dist/{chunk-fha0nyet.js → chunk-wjcrcbd1.js} +1 -1
- package/dist/{chunk-3sgdth20.js → chunk-x80ahcnw.js} +1 -1
- package/dist/{chunk-41dfsdy9.js → chunk-x81z8m6a.js} +1 -1
- package/dist/{chunk-jkyvk4x6.js → chunk-xy4jt4ek.js} +1 -1
- package/dist/{chunk-4np12rj1.js → chunk-y07fna67.js} +1 -1
- package/dist/{chunk-9bvgzqw1.js → chunk-yxpr7h26.js} +2 -2
- package/dist/{chunk-7d74am4w.js → chunk-yz0d60px.js} +1 -1
- package/dist/{chunk-7ngnyy5k.js → chunk-z19pk2pn.js} +1 -1
- package/dist/{chunk-4jj4kk18.js → chunk-z7vb3mgn.js} +1 -1
- package/dist/{chunk-tsmdmf5h.js → chunk-zg2hvb1j.js} +28 -1
- package/dist/cli.js +8 -8
- package/dist/client-script-bundler.js +10 -8
- package/dist/config.js +1 -0
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/engine-fingerprint.d.ts +17 -0
- package/dist/engine-fingerprint.js +23 -0
- package/dist/expressions.js +9 -4
- package/dist/pwa.js +2 -2
- package/dist/runtime-injection.js +2 -0
- package/dist/signals.js +28 -1
- package/dist/ssg.js +2 -2
- package/dist/types/config-types.d.ts +8 -0
- package/dist/url-safety.d.ts +67 -0
- package/dist/url-safety.js +40 -0
- package/package.json +5 -5
- package/dist/chunk-1wsewc5h.js +0 -2
- package/dist/chunk-a3m7mgjc.js +0 -2
- package/dist/chunk-aftqqqcg.js +0 -3
- package/dist/chunk-e9y48d60.js +0 -2
- package/dist/chunk-f08ttkqr.js +0 -2
- package/dist/chunk-n0a55zv2.js +0 -2
- package/dist/chunk-q3g4yf5r.js +0 -2
- package/dist/chunk-szfk6pw6.js +0 -2
- package/dist/chunk-temapbqe.js +0 -2
- package/dist/chunk-ypzm47q3.js +0 -17
- package/dist/chunk-z07knk3p.js +0 -2
- package/dist/chunk-zt4pf776.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Hi as a,Ii as b}from"./chunk-8de19dmw.js";import"./chunk-7we3xfde.js";import"./chunk-r5kr6jk4.js";import"./chunk-f476c9fb.js";import"./chunk-mjf3xmxn.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{a as getStoreScript,b as clearStoreCache};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ms as x}from"./chunk-7r79j1hs.js";import{mt as A}from"./chunk-vaggjvsm.js";import{Ct as T,Gt as q}from"./chunk-k3dtvay1.js";import{Dv as C,jw as y}from"./chunk-
|
|
2
|
+
import{ms as x}from"./chunk-7r79j1hs.js";import{mt as A}from"./chunk-vaggjvsm.js";import{Ct as T,Gt as q}from"./chunk-k3dtvay1.js";import{Dv as C,jw as y}from"./chunk-d6yyzpsv.js";import{tw as P}from"./chunk-5g6rprcy.js";y();import H from"fs";import $ from"path";import{pathToFileURL as b}from"url";var R=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],O=new Set;function N(J,Y={}){let K=$.resolve(J,Y.dir??"server/api"),Q=[],Z=new Map;if(!H.existsSync(K))return Q;let B=Array.from(new Bun.Glob("**/*.{ts,js,mts,mjs}").scanSync({cwd:K})).sort();for(let z of B){if(z.endsWith(".d.ts"))continue;let W=z.replace(/\.(?:ts|js|mts|mjs)$/,"").split("/"),I=W.pop(),X=I.lastIndexOf("."),_=X>=0?I.slice(X+1):"get",F=_.toUpperCase();if(!R.includes(F)||_!==_.toLowerCase())throw Error(`Unsupported API method suffix in ${z}; use ${R.map((k)=>k.toLowerCase()).join(", ")}`);if(X>=0)I=I.slice(0,X);if(I!=="index")W.push(I);let G=new Set,j=W.map((k,S)=>{let E=/^\[(\.\.\.)?([A-Za-z_]\w*)\]$/.exec(k);if(E){if(G.has(E[2])||E[1]&&S!==W.length-1)throw Error(`Invalid API parameter in ${z}`);return G.add(E[2]),`:${E[2]}${E[1]?"*":""}`}if(!/^[\w-]+$/.test(k))throw Error(`Unsupported API path segment ${k} in ${z}`);return k}),U=`/api${j.length?`/${j.join("/")}`:""}`,L=`${F} ${U.replace(/:\w+/g,":param")}`;if(Z.has(L))throw Error(`Ambiguous API route ${F} ${U}: ${Z.get(L)} and ${z}`);Z.set(L,z);let M=$.join(K,z);O.add($.resolve(M)),O.add(H.realpathSync(M)),Q.push({pattern:U,method:F,filePath:M})}return Q.sort((z,V)=>{let W=z.pattern.split("/"),I=V.pattern.split("/"),X=(_)=>_?.endsWith("*")?0:_?.startsWith(":")?1:2;for(let _=0;_<Math.max(W.length,I.length);_++){let F=X(I[_])-X(W[_]);if(F)return F}return z.pattern.localeCompare(V.pattern)||z.method.localeCompare(V.method)})}async function w(J,Y){let K=A(J,"api-types.d.ts"),Q=["// Generated by stx. Include this file in tsconfig.json.","declare module '@stacksjs/stx/api-client' {"," interface KnownApiRoutes {"];for(let B of Y){let z=`./${$.relative($.dirname(K),B.filePath).replace(/\\/g,"/")}`,{params:V}=C(B.pattern);Q.push(` ${JSON.stringify(`${B.method} ${B.pattern}`)}: { params: { ${V.map((W)=>`${JSON.stringify(W)}: string`).join("; ")} }; response: Awaited<ReturnType<typeof import(${JSON.stringify(z)}).default>> }`)}Q.push(" }","}","export {}","");let Z=Q.join(`
|
|
3
3
|
`);if(!await Bun.file(K).exists()||await Bun.file(K).text()!==Z)await Bun.write(K,Z);return K}async function p(J,Y,K={}){let Q=N(J,K);await w(J,Q);let Z=[];for(let B of Q){let z=await Bun.build({entrypoints:[B.filePath],target:"bun",format:"esm",minify:!1,splitting:!1});if(!z.success)throw Error(`API build failed for ${B.filePath}: ${z.logs.join(`
|
|
4
|
-
`)}`);let V=z.outputs.find((X)=>X.kind==="entry-point");if(!V)throw Error(`No API bundle for ${B.filePath}`);if(z.outputs.length!==1)throw Error(`API endpoint ${B.filePath} emits assets; package those explicitly instead`);let I=`server/api/endpoint-${new Bun.CryptoHasher("sha256").update(await V.arrayBuffer()).digest("hex").slice(0,20)}.mjs`;await Bun.write($.join(Y,I),V),Z.push({...B,filePath:I})}return Z}function D(J,Y){let K=J.map((Q)=>({route:Q,...C(Q.pattern)}));return async(Q)=>{let Z=new URL(Q.url).pathname,B=K.filter((G)=>G.regex.test(Z));if(!B.length)return null;let z=B[0].route.pattern,V=(G)=>G.replace(/:\w+/g,":param"),W=B.filter((G)=>V(G.route.pattern)===V(z)),I=Q.method,X=W.find((G)=>G.route.method===I)??(I==="HEAD"?W.find((G)=>G.route.method==="GET"):void 0);if(!X){let G=new Set(W.map((j)=>j.route.method));if(G.has("GET"))G.add("HEAD");return G.add("OPTIONS"),new Response(null,{status:I==="OPTIONS"?204:405,headers:{Allow:Array.from(G).sort().join(", ")}})}let _=X.regex.exec(Z),F=Object.create(null);try{X.params.forEach((G,j)=>{F[G]=decodeURIComponent(_[j+1])})}catch{return new Response("Invalid URL parameter encoding",{status:400})}try{let G=await Y(X.route);if(typeof G!=="function")throw Error(`API endpoint ${X.route.filePath} must default-export a handler`);let j=await G(Q,{params:F}),U=j instanceof Response?j:j===void 0?new Response(null,{status:204}):Response.json(j);if(I==="HEAD")return new Response(null,{status:U.status,headers:U.headers});return U}catch(G){return console.error(`[stx] API error for ${I} ${z}:`,G),Response.json({error:"Internal Server Error"},{status:500})}}}function l(J,Y){return D(Y,async(K)=>(await import(b($.resolve(J,K.filePath)).href)).default)}async function s(J,Y){if(!Y)return async()=>null;let K=Y===!0?{}:Y,Q=N(J,K);return await w(J,Q),async(Z)=>{if(!new URL(Z.url).pathname.match(/^\/api(?:\/|$)/))return null;try{let B=N(J,K);await w(J,B);let{loadStxConfig:z}=await import("./chunk-
|
|
4
|
+
`)}`);let V=z.outputs.find((X)=>X.kind==="entry-point");if(!V)throw Error(`No API bundle for ${B.filePath}`);if(z.outputs.length!==1)throw Error(`API endpoint ${B.filePath} emits assets; package those explicitly instead`);let I=`server/api/endpoint-${new Bun.CryptoHasher("sha256").update(await V.arrayBuffer()).digest("hex").slice(0,20)}.mjs`;await Bun.write($.join(Y,I),V),Z.push({...B,filePath:I})}return Z}function D(J,Y){let K=J.map((Q)=>({route:Q,...C(Q.pattern)}));return async(Q)=>{let Z=new URL(Q.url).pathname,B=K.filter((G)=>G.regex.test(Z));if(!B.length)return null;let z=B[0].route.pattern,V=(G)=>G.replace(/:\w+/g,":param"),W=B.filter((G)=>V(G.route.pattern)===V(z)),I=Q.method,X=W.find((G)=>G.route.method===I)??(I==="HEAD"?W.find((G)=>G.route.method==="GET"):void 0);if(!X){let G=new Set(W.map((j)=>j.route.method));if(G.has("GET"))G.add("HEAD");return G.add("OPTIONS"),new Response(null,{status:I==="OPTIONS"?204:405,headers:{Allow:Array.from(G).sort().join(", ")}})}let _=X.regex.exec(Z),F=Object.create(null);try{X.params.forEach((G,j)=>{F[G]=decodeURIComponent(_[j+1])})}catch{return new Response("Invalid URL parameter encoding",{status:400})}try{let G=await Y(X.route);if(typeof G!=="function")throw Error(`API endpoint ${X.route.filePath} must default-export a handler`);let j=await G(Q,{params:F}),U=j instanceof Response?j:j===void 0?new Response(null,{status:204}):Response.json(j);if(I==="HEAD")return new Response(null,{status:U.status,headers:U.headers});return U}catch(G){return console.error(`[stx] API error for ${I} ${z}:`,G),Response.json({error:"Internal Server Error"},{status:500})}}}function l(J,Y){return D(Y,async(K)=>(await import(b($.resolve(J,K.filePath)).href)).default)}async function s(J,Y){if(!Y)return async()=>null;let K=Y===!0?{}:Y,Q=N(J,K);return await w(J,Q),async(Z)=>{if(!new URL(Z.url).pathname.match(/^\/api(?:\/|$)/))return null;try{let B=N(J,K);await w(J,B);let{loadStxConfig:z}=await import("./chunk-yz0d60px.js"),V=q((await z(J)).runtimeConfig);return await T(V,()=>D(B,async(W)=>{let I=await Bun.build({entrypoints:[W.filePath],target:"bun",format:"esm",splitting:!1});if(!I.success)throw Error(I.logs.join(`
|
|
5
5
|
`));let X=I.outputs.find((_)=>_.kind==="entry-point");if(!X||I.outputs.length!==1)throw Error(`Unsupported API bundle output: ${W.filePath}`);return(await import(`data:text/javascript;base64,${Buffer.from(await X.text()).toString("base64")}`)).default})(Z))}catch(B){return console.error("[stx] API discovery failed:",B),Response.json({error:"API discovery failed; check the server log"},{status:500})}}}function u(J,Y,K){if(x(J))return!0;let Q=/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/;if(Q.test($.basename(J)))return!0;try{if(Q.test($.basename(H.realpathSync(J))))return!0}catch{}if(O.has($.resolve(J)))return!0;if(!K)return!1;let Z=$.resolve(Y,typeof K==="object"?K.dir??"server/api":"server/api"),B=(V)=>{try{return H.realpathSync(V)}catch{return $.resolve(V)}},z=B(J);return[Z,$.resolve(Y,"server"),$.resolve(Y,".output/server")].some((V)=>{let W=B(V);return z===W||z.startsWith(`${W}${$.sep}`)})}
|
|
6
|
-
export{N as
|
|
6
|
+
export{N as kl,w as ll,p as ml,D as nl,l as ol,s as pl,u as ql};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{jw as y}from"./chunk-
|
|
2
|
+
import{jw as y}from"./chunk-d6yyzpsv.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
|
|
3
3
|
`);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
|
|
4
4
|
`)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
|
|
5
|
-
export{Y as
|
|
5
|
+
export{Y as sk,_ as tk,a as uk,s as vk,h as wk,f as xk,c as yk,HM as zk};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ig as e,kg as kF,lg as UF,mg as wF,ug as EF}from"./chunk-
|
|
2
|
+
import{ig as e,kg as kF,lg as UF,mg as wF,ug as EF}from"./chunk-ppp84wry.js";import{xg as BF}from"./chunk-57atgbyq.js";import{nj as l,oj as d}from"./chunk-zg2hvb1j.js";import{Ak as HF,Bk as IF,Ck as KF}from"./chunk-axqfm9b4.js";import{kl as YF,ml as ZF}from"./chunk-f476c9fb.js";import{Fp as VF,Jp as r,Op as o,Sm as s,io as zF,ip as $F,jm as p,lm as i,pr as t,rr as M,xp as GF}from"./chunk-d964bsxm.js";import{rs as XF}from"./chunk-7r79j1hs.js";import{ht as qF}from"./chunk-3agx4hyd.js";import{Bt as WF}from"./chunk-shtg7kah.js";import{Gt as QF}from"./chunk-k3dtvay1.js";import{gw as h,jw as _F}from"./chunk-d6yyzpsv.js";import G from"fs";import q from"path";import{createHash as NF}from"crypto";_F();function u(Q){return NF("sha256").update(Q).digest("hex").slice(0,8)}function c(Q=!1){let z=Q?d():l(),Z=u(z);return{content:z,filename:`runtime.${Z}.js`,hash:Z}}function a(){let Q=h(),z=u(Q);return{content:Q,filename:`router.${z}.js`,hash:z}}function bF(Q){return{runtimeTag:Q.runtime?`<script src="/__stx/${Q.runtime.filename}"></script>`:"",routerTag:Q.router?`<script src="/__stx/${Q.router.filename}"></script>`:"",cssTag:Q.css?`<link rel="stylesheet" href="/__stx/${Q.css.filename}">`:""}}import n from"path";import{createHash as OF}from"crypto";function TF(Q={}){let z=new Set;return{context:new Proxy(Q,{get(X,F){if(F in X)return X[F];if(typeof F==="string"&&!F.startsWith("__"))z.add(F);return},has(X,F){if(F in X)return!0;if(typeof F==="string"&&!F.startsWith("__"))z.add(F);return!1}}),accessedKeys:z}}async function FF(Q,z,Z={}){let X=n.resolve(Q),F=await Bun.file(X).text(),U=OF("sha256").update(F).digest("hex").slice(0,16);p();let w={};try{w=await M(Z.configDir)}catch{}let H=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(F))!==null){let E=k[1];if(/\bserver\b/.test(E))H.push(k[2])}let W=new Set(H.flatMap((E)=>o(E))),{context:_}=TF({__filename:X,__dirname:n.dirname(X),__stx_serverDeclared:W}),N=new Set,x={...t,...w,...Z,buildMode:"compile",strict:!1},I=await r(F,_,X,x,N),O=e(I),j=i();return{route:z,sourceFile:Q,html:I,fragment:O,placeholders:j,hasServerScripts:H.length>0,serverScriptContent:H,dependencies:Array.from(N),contentHash:U,status:s(F),streamTemplates:_.__streamTemplates}}var MF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function JF(Q,z){let Z=0,X=0;if(!G.existsSync(Q))return{copied:Z,bytes:X};G.mkdirSync(z,{recursive:!0});function F(U,w){let H=G.readdirSync(U,{withFileTypes:!0});for(let V of H){if(MF.has(V.name))continue;let k=q.join(U,V.name),W=q.join(w,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),F(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),Z++,X+=G.statSync(W).size}}}return F(Q,z),{copied:Z,bytes:X}}async function qJ(Q={}){let z=Date.now(),Z=q.resolve(Q.root||process.cwd()),X=q.resolve(Z,Q.outputDir||".output");console.log("[stx build] Starting production build...");let F=await M(Z),U=q.resolve(Z,Q.componentsDir??F.componentsDir??"components"),w=q.resolve(Z,Q.partialsDir??F.partialsDir??"partials"),H=q.resolve(Z,Q.layoutsDir??F.layoutsDir??"layouts"),V=Q.publicDir??F.publicDir??"public",k=F.app?.head||{},W=F.app?.colorMode,_=F.router?.container||"main",N=Q.routeRules??F.routeRules??{},x=BF(N),I=Q.serverApi??F.serverApi,O=typeof I==="object"?I:{};if(I)YF(Z,O);if(F.runtimeConfig)QF(F.runtimeConfig,{});if(G.existsSync(X))G.rmSync(X,{recursive:!0});let j=[q.join(X,"public","__stx"),q.join(X,"public","assets"),q.join(X,"server","pages"),q.join(X,"server","fragments")];for(let Y of j)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let E=zF(Z,{pagesDirs:F._layerPageDirs}),LF=["components","layouts","partials"],y=E.filter((Y)=>{return!LF.some((B)=>Y.pattern.startsWith(`/${B}/`)||Y.pattern===`/${B}`)});console.log(`[stx build] Found ${y.length} page routes (${E.length-y.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let L=c(Q.debug),K=a();await Bun.write(q.join(X,"public","__stx",L.filename),L.content),await Bun.write(q.join(X,"public","__stx",K.filename),K.content),console.log(`[stx build] Runtime: ${L.filename} (${(L.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${K.filename} (${(K.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let R=[],v=[];for(let Y of y){let B=x(Y.pattern),b=B.rendering==="prerender";if(b&&(Y.pattern.includes(":")||Y.pattern.includes("[")))throw Error(`Cannot prerender parameter route ${Y.pattern}; use dynamic rendering (explicit path enumeration is not supported here)`);try{let J=await FF(Y.filePath,Y.pattern,{configDir:Z,componentsDir:U,partialsDir:w,layoutsDir:H,debug:Q.debug});if(R.push(J),J.html=J.html.replace(/runtime\.__STX_HASH__\.js/g,L.filename).replace(/router\.__STX_HASH__\.js/g,K.filename),J.html=VF(J.html,k,{bodyScripts:[`<script src="/__stx/${K.filename}"></script>`],...W&&{colorMode:W}}),W)J.html=$F(J.html,W);if(k.htmlAttrs)J.html=GF(J.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(J.html)){let $=J.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if($&&$[1]){let m=$[1];J.html=J.html.replace(" "+m,""),J.html=J.html.replace(/<body([^>]*)>/,`<body$1 ${m}>`)}}if(J.html=J.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),J.html=await qF(J.html),b){let $=await EF(J,{params:{},request:new Request(`http://stx.build${Y.pattern}`),method:"GET",__stx_strict_hydration:!0});if($.redirect||$.cookies?.length||$.boundaries?.length||$.headers&&Object.keys($.headers).length)throw Error(`Prerendered route ${Y.pattern} cannot set response headers/cookies, redirect or stream`);J.html=$.html,J.status=$.status??J.status,J.hasServerScripts=!1,J.serverScriptContent=[],J.placeholders={}}J.fragment=kF(J.html,_);let C=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),g=q.join("server","pages",`${C}.compiled.json`),f=q.join("server","fragments",`${C}.html`);await Bun.write(q.join(X,g),JSON.stringify(J,null,2)),await Bun.write(q.join(X,f),J.fragment),v.push({pattern:Y.pattern,compiledPath:g,fragmentPath:f,isDynamic:J.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("["),prerendered:b}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(J){if(Object.keys(B).length)throw J;console.error(`[stx build] \u2717 ${Y.pattern}:`,J instanceof Error?J.message:J)}}let P=q.resolve(Z,V);if(G.existsSync(P)){let{copied:Y,bytes:B}=JF(P,q.join(X,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(B/1024).toFixed(1)}KB) from ${V}/`)}let A=KF(Z);if(A){let{copied:Y,bytes:B}=JF(A,q.join(X,"public",IF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(B/1024).toFixed(1)}KB) from ${HF}/`)}let S={runtime:L.filename,router:K.filename},T=UF(v,S,X);if(T.routeRules=N,T.routerContainer=_,I)T.apiRoutes=await ZF(Z,X,O);if(F.runtimeConfig)await Bun.write(q.join(X,"server/runtime-config.json"),JSON.stringify(F.runtimeConfig)),await WF(Z,F.runtimeConfig);if(F._layerGraph)await Bun.write(q.join(X,"server/layers.json"),JSON.stringify(XF(F._layerGraph),null,2));wF(T,X);let D=Date.now()-z;return console.log(`
|
|
3
3
|
[stx build] Done in ${D}ms \u2014 ${R.length} pages compiled`),{pageCount:R.length,assets:S,outputDir:X,duration:D}}
|
|
4
4
|
export{u as Rf,c as Sf,a as Tf,bF as Uf,FF as Vf,qJ as Wf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ye as a}from"./chunk-p7ntrtaj.js";import"./chunk-ppp84wry.js";import"./chunk-57atgbyq.js";import"./chunk-f476c9fb.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{a as startProductionServer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Te as a}from"./chunk-
|
|
2
|
+
import{Te as a}from"./chunk-3b9sxnty.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{a as startInteractive};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h}from"./chunk-
|
|
2
|
+
import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h}from"./chunk-756dqqn1.js";import"./chunk-6nde3nmc.js";import"./chunk-7we3xfde.js";import{Kp as a,Np as b}from"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Jj as b,Kj as c,Lj as d,Mj as e,Nj as f,Oj as g,Pj as h,Qj as i,Rj as j,Sj as k,Tj as l,Uj as m}from"./chunk-6es5r4az.js";import{rl as a}from"./chunk-mjf3xmxn.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{b as templateCache,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,m as hashFilePath,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,j as clearDevCaches,k as checkCache,l as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pk as m}from"./chunk-6zsc0z5a.js";import{tw as z}from"./chunk-5g6rprcy.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -3019,4 +3019,4 @@ Terminal=false
|
|
|
3019
3019
|
Categories=Utility;
|
|
3020
3020
|
Icon=${$.toLowerCase()}
|
|
3021
3021
|
`;z("fs").writeFileSync(Z(Y,`${$.toLowerCase()}.desktop`),_);let E=Buffer.from([137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,1,0,0,0,1,8,2,0,0,0,144,119,83,222,0,0,0,12,73,68,65,84,8,215,99,248,255,255,63,0,5,254,2,254,220,204,89,231,0,0,0,0,73,69,78,68,174,66,96,130]);if(z("fs").writeFileSync(Z(Y,`${$.toLowerCase()}.png`),E),J.icon&&s(J.icon))F(J.icon,Z(Y,`${$.toLowerCase()}.png`));let H=j("appimagetool",[Y,U],{env:{...process.env,ARCH:"x86_64"}});H.on("close",(x)=>{if(z("fs").rmSync(K,{recursive:!0,force:!0}),x===0)A(U,493),W({success:!0});else W({success:!1,error:`appimagetool exited with code ${x}. Install from https://appimage.github.io/appimagetool/`})}),H.on("error",(x)=>{z("fs").rmSync(K,{recursive:!0,force:!0}),W({success:!1,error:`appimagetool not found: ${x.message}`})})}catch(K){W({success:!1,error:K.message})}})}function Vq(){return[I()]}function Fq(q){switch(q){case"macos":return["app","dmg","pkg"];case"windows":return["app","zip","msi"];case"linux":return["app","deb","rpm","appimage"];case"ios":return["ipa"];case"android":return["apk"];default:return["app"]}}var Aq={buildNative:Qq,getAvailableTargets:Vq,getAvailableFormats:Fq,detectPlatform:I},cq=Aq;
|
|
3022
|
-
export{Iq as
|
|
3022
|
+
export{Iq as Zj,D as _j,Cq as $j,yq as ak,N as bk,b as ck,h as dk,bq as ek,u as fk,Pq as gk,vq as hk,Qq as ik,Vq as jk,Fq as kk,cq as lk};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{kl as a,ll as b,ml as c,nl as d,ol as e,pl as f,ql as g}from"./chunk-f476c9fb.js";import"./chunk-7r79j1hs.js";import"./chunk-vaggjvsm.js";import"./chunk-k3dtvay1.js";import"./chunk-d6yyzpsv.js";import"./chunk-5g6rprcy.js";export{e as productionApiDispatcher,g as isServerApiSource,b as generateApiTypes,a as discoverServerApi,f as createServerApi,d as createApiDispatcher,c as buildServerApi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{mo as a,no as b,oo as c,po as d,qo as e,ro as f,so as g,to as h,uo as i,vo as j,wo as k,xo as l,yo as m}from"./chunk-
|
|
2
|
+
import{mo as a,no as b,oo as c,po as d,qo as e,ro as f,so as g,to as h,uo as i,vo as j,wo as k,xo as l,yo as m}from"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{m as stripStxRuntimeImports,b as scanScriptTags,l as rewriteStxImportSpecifiers,j as processSignals,h as processScriptSetup,f as preEvalLiteralReactiveIfs,c as parseLoopExpression,d as hasSignalsSyntax,k as findMarkupIndexOutsideScripts,i as extractExports,g as convertSignalLoopsToAttributes,e as convertSignalDirectivesToAttributes,a as clearScriptScanCache};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Yl as x,aq as M}from"./chunk-
|
|
2
|
+
import{Yl as x,aq as M}from"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import{Es as B,Gs as P}from"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.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(){
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import v from"fs";import z from"path";import{fileURLToPath as B}from"url";var x;function G(){if(x)return x;let j="unknown";try{j=String(JSON.parse(v.readFileSync(new URL("../package.json",import.meta.url),"utf8")).version)}catch{}if(import.meta.url.endsWith(".ts"))try{let A=z.dirname(B(import.meta.url)),q=0;for(let k of v.readdirSync(A,{recursive:!0,withFileTypes:!0}))if(k.isFile()&&k.name.endsWith(".ts"))q=Math.max(q,v.statSync(z.join(k.parentPath,k.name)).mtimeMs);j+=`+src.${Math.trunc(q)}`}catch{}return x=j,j}
|
|
3
|
+
export{G as rl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Vj as a,Wj as b,Xj as c,Yj as d}from"./chunk-xy4jt4ek.js";import"./chunk-5g6rprcy.js";export{d as default,c as createHotReloadServer,b as compileToNative,a as NATIVE_COMPONENTS};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ag as ZJ,cg as g,eg as A,kg as n,ng as GJ,qg as WJ,sg as YJ,ug as jJ}from"./chunk-
|
|
2
|
+
import{ag as ZJ,cg as g,eg as A,kg as n,ng as GJ,qg as WJ,sg as YJ,ug as jJ}from"./chunk-ppp84wry.js";import{xg as $J}from"./chunk-57atgbyq.js";import{ol as XJ}from"./chunk-f476c9fb.js";import{ko as h}from"./chunk-d964bsxm.js";import{Bs as e}from"./chunk-3agx4hyd.js";import{Ct as QJ,Gt as i,It as p}from"./chunk-k3dtvay1.js";import{Dv as KJ,ew as l,jw as VJ}from"./chunk-d6yyzpsv.js";import{tw as DJ}from"./chunk-5g6rprcy.js";import JJ from"fs";import k from"path";var{serve:wJ}=globalThis.Bun;VJ();import y from"zlib";import{promisify as a}from"util";var IJ=a(y.brotliCompress),OJ=a(y.gzip),UJ=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],BJ=["text/event-stream","multipart/x-mixed-replace"],_J=1024;function zJ(K){if(!K)return!1;let J=K.toLowerCase();if(BJ.some((G)=>J.startsWith(G)))return!1;return UJ.some((G)=>J.startsWith(G))}function FJ(K){let J=new Map;for(let G of K.split(",")){let[Z,...W]=G.trim().split(";"),O=Z.trim().toLowerCase();if(!O)continue;let U=1;for(let B of W){let w=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(B);if(!w)continue;let F=Number.parseFloat(w[1]);if(Number.isFinite(F))U=F}J.set(O,U)}return J}function LJ(K){if(!K)return null;let J=FJ(K),G=J.get("*"),Z=(W)=>J.get(W)??G??0;if(Z("br")>0)return"br";if(Z("gzip")>0)return"gzip";return null}async function t(K,J,G={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!zJ(J.headers.get("content-type")))return J;let Z=LJ(K.headers.get("accept-encoding"));if(!Z)return J;let W;try{W=new Uint8Array(await J.arrayBuffer())}catch{return J}let O=()=>new Response(W,{status:J.status,statusText:J.statusText,headers:s(J.headers)});if(W.length<(G.threshold??_J))return O();try{let U=Z==="br"?await IJ(W,{params:{[y.constants.BROTLI_PARAM_QUALITY]:G.quality??5,[y.constants.BROTLI_PARAM_SIZE_HINT]:W.length}}):await OJ(W);if(U.length>=W.length)return O();let B=s(J.headers);return B.set("Content-Encoding",Z),B.set("Content-Length",String(U.length)),new Response(U,{status:J.status,statusText:J.statusText,headers:B})}catch{return O()}}function s(K){let J=new Headers(K),G=J.get("Vary");if(!G)return J.set("Vary","Accept-Encoding"),J;if(!G.split(",").some((W)=>W.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${G}, Accept-Encoding`);return J}class d{now;entries=new e(1000,{maxBytes:33554432,sizeOf:(K)=>K.body.byteLength+JSON.stringify(K.headers).length*2});pending=new Map;generation=0;constructor(K=Date.now){this.now=K}invalidate(K){this.generation++,this.pending.clear();for(let J of Array.from(this.entries.keys()))if(K===void 0||this.entries.get(J)?.path===K)this.entries.delete(J)}async respond(K,J,G){let Z,W=async()=>{let X=Z??await G();return X.headers.set("Cache-Control","private, no-store"),X.headers.set("Vary",A(X.headers.get("Vary")).Vary),X};if(!J||K.method!=="GET"||K.headers.has("Cookie")||K.headers.has("Authorization")||K.headers.has("Range"))return W();let O=new URL(K.url),U=`${O.origin}${O.pathname}${O.search}|${g(K)?"fragment":"document"}`,B=this.entries.get(U),w=(X)=>{let T=new Headers(X.headers);return T.set("Cache-Control","private, no-store"),T.set("Age",String(Math.max(0,Math.floor((this.now()-X.created)/1000)))),new Response(X.body.slice(0),{headers:T})},F=B?(this.now()-B.created)/1000:1/0;if(B&&F<J.maxAge)return w(B);let S=this.generation,q=async()=>{let X=await G();Z=X;let T=(X.headers.get("Vary")??"").toLowerCase().split(",").map((L)=>L.trim()).filter(Boolean);if(X.status!==200||X.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(X.headers.get("Cache-Control")??"")||T.some((L)=>L!=="x-stx-router"&&L!=="accept-encoding"))return null;let M=await X.clone().arrayBuffer();if(M.byteLength>1048576)return null;X.headers.set("Vary",A(X.headers.get("Vary")).Vary);let Q={body:M,headers:Array.from(X.headers.entries()),created:this.now(),path:O.pathname};if(this.generation===S)this.entries.set(U,Q);return Q},H=this.pending.get(U);if(!H){if(this.pending.size>=1000)return W();H=q().finally(()=>{if(this.pending.get(U)===H)this.pending.delete(U)}),this.pending.set(U,H)}if(B&&F<J.maxAge+(J.swr??0))return H.catch(()=>{}),w(B);let x=await H;return x?w(x):W()}}var HJ={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function uJ(K={}){let J=k.resolve(K.outputDir||".output"),G=K.port??3000,Z=GJ(J);if(!Z)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Z.routes.length} routes...`);let W=$J(Z.routeRules),O=new d,U=XJ(J,Z.apiRoutes??[]),B=Bun.file(k.join(J,"server/runtime-config.json")),w=K.runtimeConfig??(await B.exists()?await B.json():void 0),F=w?i(w):void 0,S=new Map,q=new Map,H=new Map,x=new Map;for(let Q of Z.routes)try{let L=k.join(J,Q.compiledPath),Y=JSON.parse(await Bun.file(L).text());if(F)Y.html=p(Y.html,F);S.set(Q.pattern,Y),H.set(Q.pattern,l(Y.html)),x.set(Q.pattern,h(Y.html));let C=k.join(J,Q.fragmentPath);if(await Bun.file(C).exists()){let P=await Bun.file(C).text();q.set(Q.pattern,F?p(P,F):P)}}catch(L){console.warn(`[stx] Failed to load route ${Q.pattern}:`,L)}let X=new Map,T=[];for(let Q of Z.routes)if(Q.hasParams){let{regex:L,params:Y}=KJ(Q.pattern);T.push({regex:L,route:Q,paramNames:Y})}else X.set(Q.pattern,Q);let M=wJ({port:G,async fetch(Q){return t(Q,await QJ(F??i(),async()=>{let Y=new URL(Q.url).pathname;if(K.onRequest){let j=await K.onRequest(Q);if(j)return j}if(K.apiRouter){let j=await K.apiRouter.handleRequest(Q);if(j.status!==404)return j}if(K.apiRoutes?.[Y])return K.apiRoutes[Y](Q);let C=await U(Q);if(C)return C;if((Q.method==="GET"||Q.method==="HEAD")&&Y!=="/"){let j=k.resolve(J,"public"),_;try{_=decodeURIComponent(Y)}catch{_=Y}if(!_.includes("\x00")){let I=k.resolve(j,`.${_}`);if(I===j||I.startsWith(`${j}${k.sep}`))try{if(JJ.existsSync(I)&&JJ.statSync(I).isFile()){let z=k.extname(I).toLowerCase(),E=HJ[z]||"application/octet-stream",v=Y.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(Y);return new Response(Bun.file(I),{headers:{"Content-Type":E,"Cache-Control":v?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let P=g(Q),D=null,o={};if(D=X.get(Y)||null,!D)for(let{regex:j,route:_,paramNames:I}of T){let $=Y.match(j);if($){D=_,I.forEach((z,E)=>{o[z]=$[E+1]});break}}if(!D){let j=X.get("/404")||null;if(j){let _=S.get(j.pattern);if(_)return new Response(_.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}let R=W(Y),r=Object.keys(R).length>0;return O.respond(Q,R.cache,async()=>{let j=S.get(D.pattern);if(P&&Q.method==="GET"&&j&&!j.hasServerScripts&&Object.keys(j.placeholders).length===0){let $=q.get(D.pattern);if($){let z=H.get(D.pattern);return new Response($,{status:j.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...x.has(D.pattern)?{"X-STX-Runtime":x.get(D.pattern)?"true":"false"}:{},...z?{"X-STX-Layout":z.layout,"X-STX-Layout-Group":z.group}:{},...A(),...R.cache?{}:{"Cache-Control":ZJ}}})}}let _=WJ(Q.method),I=S.get(D.pattern);if(!I){let $=X.get("/500")||null;if($){let z=S.get($.pattern);if(z)return new Response(z.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(D.prerendered&&_)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!_&&!I.hasServerScripts&&Object.keys(I.placeholders).length===0)return new Response(I.html,{status:I.status??200,headers:{"Content-Type":"text/html",...A(),"Cache-Control":"public, max-age=60"}});try{let{html:$,boundaries:z,redirect:E,cookies:v,status:m,headers:c}=await jJ(I,{params:o,request:Q,method:Q.method,__stx_strict_hydration:r,__stx_runtime_config:F});if(E)return YJ(E,v,c);if(z&&z.length>0){let{renderStreamingPage:N,streamToResponse:u}=await import("./chunk-wjcrcbd1.js"),b=new Headers({...A(),...c,"Cache-Control":"private, no-store"});for(let f of v??[])b.append("Set-Cookie",f);if(P&&!_){let f=l($);b.set("X-STX-Fragment","true"),b.set("X-STX-Runtime",h($)?"true":"false"),b.set("X-STX-Layout",f.layout),b.set("X-STX-Layout-Group",f.group)}return u(N(P&&!_?n($,Z.routerContainer||"main"):$,z,{timeoutMs:30000}),{status:m??I.status??200,headers:b})}let V=new Headers({"Content-Type":"text/html",...A(),...R.cache?{}:{"Cache-Control":"private, no-store"}});for(let N of v??[])V.append("Set-Cookie",N);for(let[N,u]of Object.entries(c??{}))V.set(N,u);if(V.set("Vary",A(V.get("Vary")).Vary),P&&!_){let N=l($);return V.set("X-STX-Fragment","true"),V.set("X-STX-Runtime",h($)?"true":"false"),V.set("X-STX-Layout",N.layout),V.set("X-STX-Layout-Group",N.group),new Response(n($,Z.routerContainer||"main"),{status:m??I.status??200,headers:V})}return new Response($,{status:m??I.status??200,headers:V})}catch($){if(console.error(`[stx] Hydration error for ${Y}:`,$),r)return new Response("Internal Server Error",{status:500});return new Response(I.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${M.port}`),console.log(`[stx] Serving ${Z.routes.length} routes (${S.size} pre-loaded)`),{port:M.port,stop:()=>{O.invalidate(),M.stop()},invalidate:(Q)=>O.invalidate(Q)}}
|
|
3
3
|
export{zJ as Ve,LJ as We,t as Xe,uJ as Ye};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bo as i,Cp as h,Fm as k,Ho as T,Vm as c,Wm as l,nm as R,om as O,xm as P}from"./chunk-
|
|
2
|
+
import{Bo as i,Cp as h,Fm as k,Ho as T,Vm as c,Wm as l,nm as R,om as O,xm as P}from"./chunk-d964bsxm.js";import{Js as S,Ls as y}from"./chunk-3agx4hyd.js";import{cu as m}from"./chunk-799s9mwc.js";import{fw as YJ,iw as ZJ,jw as $J}from"./chunk-d6yyzpsv.js";import{qw as XJ,tw as q}from"./chunk-5g6rprcy.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(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(r.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 o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function C(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(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 a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(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 v(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(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 JJ(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=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(v(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(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(v(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 NJ="X-STX-Router",_J="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(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/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 QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:QJ(J,"X-STX-Router")}}import E from"path";YJ();var UJ="stx-page-head:",WJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function jJ(){let J=m()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=($J(),XJ(ZJ)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function RJ(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 PJ(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=C(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:A}=await import("./chunk-vz0ebk4j.js"),I=await A(),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 _=await B(K,z,J,{...N,...I,...Y},new Set),H=_.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,H),afterSlot:_.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function kJ(J,Y,Q){let X,$="",Z=Y.match(WJ);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=jJ(),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 p from"path";function fJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function gJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function uJ(J){let Y=p.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 FJ(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 GJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!GJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await FJ(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=zJ(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 zJ(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 dJ(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 aJ(J,Y={}){return(await n(J,Y)).html}async function tJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-
|
|
29
|
+
`)}import M from"fs";import p from"path";function fJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function gJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function uJ(J){let Y=p.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 FJ(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 GJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!GJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await FJ(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=zJ(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 zJ(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 dJ(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 aJ(J,Y={}){return(await n(J,Y)).html}async function tJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-wjcrcbd1.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-605955nh.js"),{defaultConfig:B}=await import("./chunk-yz0d60px.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,N,new Set)}})),I=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!I.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(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 d(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=i(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(!O(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?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function eJ(J,Y={}){if(!J.hasServerScripts&&!O(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(!O(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?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
|
|
30
30
|
export{s as Xf,C as Yf,e as Zf,x as _f,NJ as $f,_J as ag,AJ as bg,g as cg,QJ as dg,IJ as eg,RJ as fg,PJ as gg,kJ as hg,KJ as ig,TJ as jg,SJ as kg,fJ as lg,gJ as mg,uJ as ng,b as og,FJ as pg,GJ as qg,d as rg,dJ as sg,aJ as tg,tJ as ug,eJ as vg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{nj as o,oj as p,pj as q}from"./chunk-
|
|
2
|
+
import{nj as o,oj as p,pj as q}from"./chunk-zg2hvb1j.js";import{Aj as f,Bj as g,Cj as h,Dj as i,Ej as j,Fj as k,Gj as l,Hj as m,Ij as n,vj as a,wj as b,xj as c,yj as d,zj as e}from"./chunk-e4g8wz6t.js";import"./chunk-deqnt1w5.js";import"./chunk-5g6rprcy.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};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ql as QJ}from"./chunk-f476c9fb.js";import{rl as WJ}from"./chunk-mjf3xmxn.js";import{Yl as GJ,rr as XJ,sr as qJ}from"./chunk-d964bsxm.js";import{ks as ZJ,ls as $J}from"./chunk-hrdd26r4.js";import{Es as YJ,Is as u}from"./chunk-3agx4hyd.js";import{mt as c}from"./chunk-vaggjvsm.js";import X from"path";import O from"fs";function UJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function LJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function b(J,K){let $=[];for(let W of LJ(J)){if(UJ(W)){let Y=W.position||void 0;$.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}$.push({file:K,message:W instanceof Error?W.message:String(W)})}return $}function t(J,K){return b(J,K).map(($)=>{let W=$.file?`${$.file}${$.line?`:${$.line}${$.column?`:${$.column}`:""}`:""}`:"",Y=$.lineText?`
|
|
3
|
+
${$.lineText.trim()}`:"";return W?`${W}: ${$.message}${Y}`:`${$.message}${Y}`}).join(`
|
|
4
|
+
`)}var TJ=9;function P(J,K,$){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(X.basename(J))||QJ(J,K,$)}var HJ=1,zJ=new Map,f=600,AJ=100,g=new Map;async function MJ(J){let K=g.get(J)??0;if(K>0&&K<AJ){g.set(J,K+1);return}g.set(J,1);try{let $=(await O.promises.readdir(J)).filter((z)=>z.endsWith(".js"));if($.length<=f)return;let Y=(await Promise.all($.map(async(z)=>{try{return{name:z,at:(await O.promises.stat(X.join(J,z))).mtimeMs}}catch{return null}}))).filter((z)=>z!==null);Y.sort((z,H)=>H.at-z.at);for(let z of Y.slice(f)){let H=z.name.slice(0,-3);await O.promises.rm(X.join(J,`${H}.js`),{force:!0}),await O.promises.rm(X.join(J,`${H}.deps.json`),{force:!0})}x("pruned bundle cache to",f,"entries")}catch{}}function nJ(J){return zJ.get(J)??[]}function h(J,K){if(J)zJ.set(J,K)}function CJ(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function x(...J){if(CJ())console.log("[stx:bundler]",...J)}var n=[];function r(J,K,$){n.push({filePath:J||"<inline>",message:K,details:$})}function oJ(){return n.slice()}function lJ(){n.length=0}var p;function dJ(J){p=J}function a(){if(p)return p;try{let J=qJ.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var e=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function sJ(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let Y=$[1];if(!e.some((H)=>H.test(Y)))return x("detected user import:",Y),!0}let W=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=W.exec(J))!==null){let Y=$[1];if(/\.css(?:\?.*)?$/.test(Y))continue;if(!e.some((H)=>H.test(Y)))return x("detected side-effect import:",Y),!0}return!1}var v="stx-module:",xJ=/\.(?:[cm]?[jt]sx?|json)$/i;function IJ(J,K){return X.relative(J,K).split(X.sep).join("/")}function _J(J,K){if(K.size===0)return J;return J.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,($,W,Y,z)=>{let H=K.get(z);return H&&!z.startsWith(v)?`${W}${Y}${H}${Y}`:$})}function NJ(J,K){let $=0,W=(z)=>{let H=`__stxMod${$++}`,j=JSON.stringify(z);return K.push(`var ${H} = globalThis.__stxModules && globalThis.__stxModules[${j}];`,`if (${H} === undefined) throw new Error("[stx] module " + ${JSON.stringify(j)} + " is not registered on this page (#1957)");`),H},Y=(z,H)=>{for(let j of z.split(",")){let T=j.trim();if(!T)continue;let Q=T.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!Q)continue;let Z=Q[1].startsWith('"')?JSON.parse(Q[1]):Q[1],G=Q[2]??Z;K.push(`var ${G} = ${H}[${JSON.stringify(Z)}];`)}};return J=J.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,H,j)=>{let T=j.slice(v.length),Q=W(T),Z=H.trim(),G=Z.match(/^([\w$]+)\s*(?:,\s*|$)/);if(G&&!Z.startsWith("{")&&!Z.startsWith("*"))K.push(`var ${G[1]} = ${Q}.default;`),Z=Z.slice(G[0].length).trim();let q=Z.match(/^\*\s*as\s+([\w$]+)$/);if(q)K.push(`var ${q[1]} = ${Q};`);else if(Z.startsWith("{"))Y(Z.replace(/^\{|\}$/g,""),Q);return""}),J=J.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,H)=>{return W(H.slice(v.length)),""}),J}function JJ(J){let K=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,X.join(J,"index.ts"),X.join(J,"index.tsx"),X.join(J,"index.js"),X.join(J,"index.mjs")];for(let $ of K)try{if(O.existsSync($)&&O.statSync($,{throwIfNoEntry:!1})?.isFile())return $}catch{}return}function SJ(J,K,$,W,Y,z=new Map,H){let j=(Q,Z,G)=>{if(P(Z,J,H))return null;if(!Y||Q!==$||!xJ.test(Z))return null;try{if(!O.statSync(Z,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}W.add(Z);let q=`${v}${IJ(process.cwd(),Z)}`;return z.set(G,q),{path:q,external:!0}},T=(Q,Z)=>{let G=Q===$?K:X.dirname(Q),q=X.resolve(G,Z);return JJ(q)??q};return{name:"stx-client-bundle",setup(Q){if(Q.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^\//},(Z)=>{let G=JJ(Z.path);if(G){let q=j(Z.importer,G,Z.path);if(q)return q;if(G!==$)W.add(G);return{path:G}}return{path:Z.path,external:!0}}),Q.onResolve({filter:/^\.\.?\//},(Z)=>{let G=T(Z.importer,Z.path),q=j(Z.importer,G,Z.path);if(q)return q;return W.add(G),{path:G}}),Q.onResolve({filter:/^[@~]\//},(Z)=>{let G=X.resolve(J,Z.path.slice(2)),q=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,X.join(G,"index.ts"),X.join(G,"index.tsx"),X.join(G,"index.js"),X.join(G,"index.mjs")];for(let w of q)if(O.existsSync(w)&&O.statSync(w,{throwIfNoEntry:!1})?.isFile()){let y=j(Z.importer,w,Z.path);if(y)return y;return x(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",w),W.add(w),{path:w}}return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:G}}),Y)Q.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(Z)=>{if(Z.importer!==$)return;let G=`${v}npm:${Z.path}`;return z.set(Z.path,G),{path:G,external:!0}});Q.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{if(P(Z.path,J,H))throw Error(`Server-only API source cannot be imported by a client script: ${Z.path}`);let G=X.extname(Z.path).toLowerCase(),q=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(Z.path!==$)W.add(Z.path);return{contents:O.readFileSync(Z.path,"utf8"),loader:q}})}}}var m=new Map,D=YJ(64),KJ=Symbol.for("stx.client-bundle-build-queue");function yJ(J){let K=globalThis,W=(K[KJ]??Promise.resolve()).then(J,J);return K[KJ]=W.then(()=>{return},()=>{return}),W}async function iJ(J,K,$={}){let W=$.projectRoot||process.cwd(),Y=(await XJ(W)).serverApi,z=$.minify??!1,H=$.externalizeUserModules??!0,j=$.cacheDir||c(W,"bundle-cache"),T=new Bun.CryptoHasher("md5");T.update(`${TJ}\x00${WJ()}\x00${JSON.stringify(Y??!1)}\x00${H?"registry":"inline"}\x00${J}\x00${K}`);let Q=T.digest("hex").slice(0,12),Z=X.join(j,`${Q}.js`),G=D.get(Z);if(G){if(u(G.files)&&G.files.every((A)=>!P(A.path,W,Y))){x("memo hit:",Q);let A=G.files.map((M)=>M.path);return h(K,A),$.collectInputs?.push(...A),G.code}D.delete(Z),x("memo invalidated by dep change:",Q)}let q=X.join(j,`${Q}.deps.json`),w=Bun.file(Z);if(await w.exists()){let A=Bun.file(q),M=!1,U=null;if(await A.exists())try{let N=JSON.parse(await A.text());if(N.metadataVersion!==HJ||!Array.isArray(N.files))M=!1;else U=N.files,M=!0;if(U&&(!u(U)||U.some((B)=>P(B.path,W,Y))))M=!1}catch{M=!1}if(M){if(x("cache hit:",Q),U)h(K,U.map((B)=>B.path)),$.collectInputs?.push(...U.map((B)=>B.path));let N=await w.text();if(U)D.set(Z,{code:N,files:U});return N}x("cache invalidated by dep change:",Q)}let y=m.get(Q);if(y){let A=await y;if($.collectInputs)$.collectInputs.push(...(D.get(Z)?.files??[]).map((M)=>M.path));return A}let I=yJ(()=>FJ(J,K,{projectRoot:W,minify:z,cacheDir:j,hash:Q,cachePath:Z,depsPath:q,collectInputs:$.collectInputs,externalizeUserModules:H,serverApi:Y}));m.set(Q,I);try{return await I}finally{m.delete(Q)}}var BJ=0;function RJ(J){return`${J}-${process.pid}-${++BJ}`}async function FJ(J,K,$){let{projectRoot:W,minify:Y,cacheDir:z,hash:H,cachePath:j,depsPath:T,externalizeUserModules:Q}=$,Z=c(W,"bundle-tmp"),G=RJ(H),q=X.join(Z,`${G}.ts`),w=X.join(Z,"out",G);O.mkdirSync(Z,{recursive:!0}),O.mkdirSync(w,{recursive:!0});let y=X.dirname(K),I=new Set,A=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,M=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,U=ZJ(J),{depths:N,balanced:B}=$J(U),o=(L)=>!B||N[L]===0,C;while((C=A.exec(U))!==null){if(C[1])continue;if(!o(C.index))continue;if(C[2])C[2].split(",").forEach((L)=>{let k=DJ(L);if(k)I.add(k)});else if(C[3])I.add(C[3])}while((C=M.exec(U))!==null){if(C[1])continue;if(!o(C.index))continue;I.add(C[2])}let VJ=I.size>0?`
|
|
5
|
+
export { ${[...I].join(", ")} }`:"";await Bun.write(q,J+VJ),x("bundling:",H,"from:",X.basename(K));let l=new Set,d=new Map;try{let L=await Bun.build({entrypoints:[q],outdir:w,target:"browser",format:"esm",minify:Y,plugins:[SJ(W,y,q,l,Q,d,$.serverApi)],define:{"process.env.NODE_ENV":Y?'"production"':'"development"',...GJ()},root:W});if(!L.success){let S=L.logs.filter((R)=>R.level==="error").map((R)=>R.message).join(", ")||`Unable to bundle ${X.basename(K)}`,F=b(L.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",S),r(K||"",S,F),a()==="error")throw Error(S);return J}let k="";for(let V of L.outputs){k=await V.text();break}let _=[];for(let V of k.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let S of V[1].split(",")){let F=S.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(F){_.push([F[2],F[1]]);continue}let R=S.trim();if(/^[A-Za-z_$][\w$]*$/.test(R))_.push([R,R])}let s=[];k=NJ(_J(k,d),s);let kJ=k.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];k=k.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let i=`__stxBundle_${H}`,jJ=_.map(([V,S])=>`${JSON.stringify(V)}: ${S}`).join(", "),OJ=_.map(([V])=>`var ${V} = undefined;`).join(`
|
|
6
|
+
`),wJ=_.map(([V])=>`${V} = ${i}[${JSON.stringify(V)}];`).join(`
|
|
7
|
+
`);if(k=`${kJ.join(`
|
|
8
|
+
`)}
|
|
9
|
+
${OJ}
|
|
10
|
+
var ${i} = (function() {
|
|
11
|
+
${s.join(`
|
|
12
|
+
`)}
|
|
13
|
+
${k}
|
|
14
|
+
return { ${jJ} };
|
|
15
|
+
})();
|
|
16
|
+
${wJ}`.trim(),x("bundled:",H,"output:",k.length,"bytes"),I.size>0&&_.length===0)return console.warn(`[stx:bundler] dropped every binding for ${X.basename(K)} (${H}); serving the unbundled source and not caching this result`),J;O.mkdirSync(z,{recursive:!0}),await Bun.write(j,k);let E=Array.from(l).map((V)=>{try{return{path:V,mtimeMs:O.statSync(V).mtimeMs}}catch{return null}}).filter((V)=>V!==null);return await Bun.write(T,JSON.stringify({metadataVersion:HJ,files:E})),h(K,E.map((V)=>V.path)),$.collectInputs?.push(...E.map((V)=>V.path)),D.set(j,{code:k,files:E}),await MJ(z),k}catch(L){let k=b(L,K||void 0),_=t(L,K||void 0);if(console.warn(`[stx:bundler] error: ${_}`),r(K||"",_,k),a()==="error")throw L;return J}finally{try{O.rmSync(q,{force:!0}),O.rmSync(w,{recursive:!0,force:!0})}catch{}}}function DJ(J){let K=J.trim();if(!K)return null;let $=K.indexOf("=");if($!==-1)K=K.slice(0,$).trim();let W=K.indexOf(":");if(W!==-1)K=K.slice(W+1).trim();if(K.startsWith("..."))K=K.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(K)?K:null}
|
|
17
|
+
export{t as Wk,nJ as Xk,CJ as Yk,r as Zk,oJ as _k,lJ as $k,dJ as al,a as bl,sJ as cl,v as dl,IJ as el,_J as fl,NJ as gl,yJ as hl,iJ as il,RJ as jl};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Wf as a}from"./chunk-fx07kyz7.js";import"./chunk-ppp84wry.js";import"./chunk-57atgbyq.js";import"./chunk-zg2hvb1j.js";import"./chunk-e4g8wz6t.js";import"./chunk-axqfm9b4.js";import"./chunk-f476c9fb.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{a as buildForProduction};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dt as H,Gt as F}from"./chunk-k3dtvay1.js";import{tw as I}from"./chunk-5g6rprcy.js";import J from"fs";import z from"path";async function N(w,A,j){if(w.__stx_runtime_config)return;let b=H();if(b||j){w.__stx_runtime_config=b??F(j);return}let q=z.dirname(z.resolve(A));while(!0){if(["stx.config.ts","stx.config.js",".config/stx.config.ts",".config/stx.config.js"].some((D)=>J.existsSync(z.join(q,D)))){let{loadStxConfig:D}=await import("./chunk-
|
|
2
|
+
import{Dt as H,Gt as F}from"./chunk-k3dtvay1.js";import{tw as I}from"./chunk-5g6rprcy.js";import J from"fs";import z from"path";async function N(w,A,j){if(w.__stx_runtime_config)return;let b=H();if(b||j){w.__stx_runtime_config=b??F(j);return}let q=z.dirname(z.resolve(A));while(!0){if(["stx.config.ts","stx.config.js",".config/stx.config.ts",".config/stx.config.js"].some((D)=>J.existsSync(z.join(q,D)))){let{loadStxConfig:D}=await import("./chunk-yz0d60px.js"),G=await D(q);if(G.runtimeConfig)w.__stx_runtime_config=F(G.runtimeConfig);return}let B=z.dirname(q);if(B===q)return;q=B}}async function O(w,A){function j(b){if(b===null)return"null";if(Array.isArray(b))return`Array<${b.length?[...new Set(b.map(j))].join(" | "):"unknown"}>`;if(typeof b==="object")return`{ ${Object.entries(b).map(([q,B])=>`readonly ${JSON.stringify(q)}: ${j(B)}`).join("; ")} }`;return typeof b}await Bun.write(z.join(w,".stx/runtime-config.d.ts"),`import '@stacksjs/stx/runtime-config'
|
|
3
3
|
declare module '@stacksjs/stx/runtime-config' { interface PublicRuntimeConfig ${j(A.public??{})} }
|
|
4
4
|
`),await Bun.write(z.join(w,".stx/runtime-config-server.d.ts"),`import '@stacksjs/stx/runtime-config-server'
|
|
5
5
|
declare module '@stacksjs/stx/runtime-config-server' { interface PrivateRuntimeConfig ${j(A.private??{})} }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fo as b,go as c,ho as d}from"./chunk-
|
|
2
|
+
import{fo as b,go as c,ho as d}from"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import{Ju as a}from"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as $l,$a as bo,$b as mp,$c as mq,$d as mr,A as Lk,Aa as nn,Ab as Ho,Ac as Np,Ad as Nq,Ae as Tr,B as Mk,Ba as on,Bb as Io,Bc as Op,Bd as Oq,Be as Ur,C as Nk,Ca as Bn,Cb as Jo,Cc as Pp,Cd as Pq,Ce as Vr,D as Ok,Da as Cn,Db as Ko,Dc as Qp,Dd as Qq,De as Wr,E as El,Ea as Dn,Eb as Lo,Ec as Rp,Ed as Rq,Ee as Xr,F as Fl,Fa as En,Fb as Mo,Fc as Sp,Fd as Sq,Fe as Yr,G as Gl,Ga as Fn,Gb as No,Gc as Tp,Gd as Tq,Ge as Zr,H as Hl,Ha as Gn,Hb as Oo,Hc as Up,Hd as Uq,He as _r,I as Il,Ia as Kn,Ib as Po,Ic as Vp,Id as Vq,Ie as $r,J as Jl,Ja as Ln,Jb as Qo,Jc as Wp,Jd as Wq,Je as as,K as Kl,Ka as Mn,Kb as Ro,Kc as Xp,Kd as Xq,Ke as bs,L as Ll,La as Nn,Lb as So,Lc as Yp,Ld as Yq,M as Ml,Ma as On,Mb as To,Mc as Zp,Md as Zq,N as Nl,Na as Pn,Nb as _o,Nc as _p,Nd as _q,O as Ol,Oa as Qn,Ob as $o,Oc as $p,Od as $q,P as Pl,Pa as Rn,Pb as ap,Pc as aq,Pd as ar,Q as Ql,Qa as Sn,Qb as bp,Qc as bq,Qd as br,R as Rl,Ra as Tn,Rb as cp,Rc as cq,Rd as cr,S as Sl,Sa as Un,Sb as dp,Sc as dq,Sd as dr,T as Tl,Ta as Vn,Tb as ep,Tc as eq,Td as er,U as Ul,Ua as Wn,Ub as fp,Uc as fq,Ud as fr,V as Vl,Va as Xn,Vb as gp,Vc as gq,Vd as gr,W as Wl,Wa as Yn,Wb as hp,Wc as hq,Wd as hr,X as Xl,Xa as Zn,Xb as ip,Xc as iq,Xd as ir,Y as Yl,Ya as _n,Yb as jp,Yc as jq,Yd as jr,Z as Zl,Za as $n,Zb as kp,Zc as kq,Zd as kr,_ as _l,_a as ao,_b as lp,_c as lq,_d as lr,aa as am,ab as co,ac as np,ad as nq,ae as nr,ba as bm,bb as eo,bc as op,bd as oq,be as ur,ca as cm,cb as fo,cc as pp,cd as pq,ce as vr,da as dm,db as go,dc as qp,dd as qq,de as wr,ea as em,eb as ho,ec as rp,ed as rq,ee as xr,fa as fm,fb as io,fc as sp,fd as sq,fe as yr,ga as gm,gb as jo,gc as tp,gd as tq,ge as zr,ha as hm,hb as ko,hc as up,hd as uq,he as Ar,ia as im,ib as lo,ic as vp,id as vq,ie as Br,ja as jm,jb as mo,jc as wp,jd as wq,je as Cr,ka as km,kb as no,kc as xp,kd as xq,ke as Dr,la as lm,lb as oo,lc as yp,ld as yq,le as Er,ma as mm,mb as po,mc as zp,md as zq,me as Fr,na as nm,nb as so,nc as Ap,nd as Aq,ne as Gr,o as a,oa as om,ob as to,oc as Bp,od as Bq,oe as Hr,p as wk,pa as bn,pb as uo,pc as Cp,pd as Cq,pe as Ir,q as xk,qa as cn,qb as vo,qc as Dp,qd as Dq,qe as Jr,r as yk,ra as dn,rb as xo,rc as Ep,rd as Eq,re as Kr,s as zk,sa as en,sb as yo,sc as Fp,sd as Fq,se as Lr,t as Ak,ta as fn,tb as zo,tc as Gp,td as Gq,te as Mr,u as Bk,ua as gn,ub as Ao,uc as Hp,ud as Hq,ue as Nr,v as Ck,va as hn,vb as Co,vc as Ip,vd as Iq,ve as Or,w as Dk,wa as jn,wb as Do,wc as Jp,wd as Jq,we as Pr,x as Ek,xa as kn,xb as Eo,xc as Kp,xd as Kq,xe as Qr,y as Jk,ya as ln,yb as Fo,yc as Lp,yd as Lq,ye as Rr,z as Kk,za as mn,zb as Go,zc as Mp,zd as Mq,ze as Sr}from"./chunk-284ag6fs.js";import{Le as Uo,Me as Vo,Ne as Wo,Oe as Xo,Pe as Yo,Qe as Zo}from"./chunk-756dqqn1.js";import{Re as qo,Se as ro}from"./chunk-2ver2s2y.js";import{Te as wo}from"./chunk-3b9sxnty.js";import{Ue as an}from"./chunk-apa2v787.js";import{Ve as Hn,We as In,Xe as Jn,Ye as Bo}from"./chunk-p7ntrtaj.js";import{$e as Rk,Ze as Pk,_e as Qk,af as Sk,bf as Tk,cf as Uk,df as Vk,ef as Wk,ff as Xk,gf as Yk,hf as Zk,if as _k,jf as $k,kf as al,lf as bl}from"./chunk-ym3r8ktq.js";import{mf as sl,nf as tl,of as ul,pf as vl,qf as wl,rf as xl,sf as yl,tf as zl,uf as Al,vf as Bl,wf as Cl,xf as Dl}from"./chunk-tr9ynxdw.js";import{yf as ql,zf as rl}from"./chunk-m11pb9cx.js";import{Af as cl,Bf as dl,Cf as el,Df as fl,Ef as gl,Ff as hl,Gf as il,If as jl,Jf as kl,Kf as ll,Lf as ml,Mf as nl,Nf as ol,Qf as pl}from"./chunk-xe6zmdfq.js";import{Rf as Lm,Sf as Mm,Tf as Nm,Uf as Om,Vf as Pm,Wf as $m}from"./chunk-fx07kyz7.js";import{$f as tm,Xf as pm,Yf as qm,Zf as rm,_f as sm,ag as um,bg as vm,cg as wm,dg as xm,eg as ym,fg as zm,gg as Am,hg as Bm,ig as Cm,jg as Dm,kg as Em,lg as Qm,mg as Rm,ng as Sm,og as Tm,pg as Um,qg as Vm,rg as Wm,sg as Xm,tg as Ym,ug as Zm,vg as _m}from"./chunk-ppp84wry.js";import{wg as Fm,xg as Gm}from"./chunk-57atgbyq.js";import{Ag as rn,Bg as sn,Cg as tn,Dg as un,Eg as vn,Fg as wn,Gg as xn,Hg as yn,Ig as zn,Jg as An,yg as pn,zg as qn}from"./chunk-8bxtvsgm.js";import{Kg as gi,Lg as hi,Mg as ii,Ng as ji,Og as ki,Pg as li}from"./chunk-95e1m9p8.js";import{Qg as Aj,Rg as Bj,Sg as Cj,Wg as Dj,Xg as Ej,Yg as Fj}from"./chunk-yne23w3c.js";import{$g as Nj,Zg as Lj,_g as Mj,ah as Oj,bh as Pj,ch as Qj,dh as Rj,eh as Sj,fh as Tj,gh as Uj,hh as Vj}from"./chunk-w72v0ab1.js";import{ih as qj,jh as rj,kh as sj,lh as tj,mh as uj,oh as vj,ph as wj,qh as xj,rh as yj,sh as zj}from"./chunk-18018jkn.js";import{th as lk,vh as mk}from"./chunk-sqvqwd0p.js";import{Bh,Ch,Dh,Eh,Fh,Gh}from"./chunk-7r9vgzg4.js";import{Ih as Hh,Jh as Ih,Kh as Jh,Lh as Kh,Mh as Lh,Nh as Mh,Oh as Nh,Ph as Oh,Qh as Ph,Rh as Qh,Sh as Rh,Th as Sh,Uh as Th,Vh as Uh}from"./chunk-a959m68j.js";import{Xh as Vh,Yh as Wh,Zh as Xh,_h as Yh}from"./chunk-1vb2rj09.js";import{di as Zh}from"./chunk-g6czgcg4.js";import{gi as ah}from"./chunk-6nde3nmc.js";import{hi as bh}from"./chunk-1z1efvtw.js";import{ii as ch,ji as dh}from"./chunk-vgfd9582.js";import{ki as eh,li as fh,mi as gh,ni as hh,oi as ih,pi as jh}from"./chunk-qsbjtp60.js";import{qi as kh,ri as lh,si as mh,ti as nh,ui as oh}from"./chunk-nf7k53ap.js";import{vi as ph,wi as qh,xi as rh,yi as sh,zi as th}from"./chunk-zk6ghjnj.js";import{Ai as uh,Bi as vh,Ci as wh,Di as xh,Ei as yh,Fi as zh,Gi as Ah}from"./chunk-bgrkxzr7.js";import{Hi as _g,Ii as $g}from"./chunk-8de19dmw.js";import"./chunk-7we3xfde.js";import{Mi as He,Ni as Ie,Oi as Je,Pi as Ke,Qi as Le,Ri as Me,Si as Ne,Ti as Oe,Ui as Pe,Vi as Qe,Wi as Re,Xi as Se,Yi as Te,Zi as Ue}from"./chunk-5t8ersrw.js";import{$i as lf,_i as kf,aj as mf,bj as nf,cj as of,dj as pf,ej as qf,fj as rf,gj as sf,hj as tf,ij as uf,jj as vf,kj as wf,lj as xf,mj as yf,nj as zf,oj as Af}from"./chunk-zg2hvb1j.js";import{Aj as af,Bj as bf,Cj as cf,Dj as df,Ej as ef,Fj as ff,Gj as gf,Hj as hf,Ij as jf,vj as Xe,wj as Ye,xj as Ze,yj as _e,zj as $e}from"./chunk-e4g8wz6t.js";import{Jj as Bf,Kj as Cf,Lj as Df,Mj as Ef,Nj as Ff,Oj as Gf,Pj as Hf,Qj as If,Rj as Jf,Sj as Kf,Tj as Lf,Uj as Mf}from"./chunk-6es5r4az.js";import{mk as or,nk as pr,ok as qr,pk as rr,qk as sr,rk as tr}from"./chunk-6zsc0z5a.js";import{sk as Fk,tk as Gk,uk as Hk,vk as Ik,wk as Hm,xk as Im,yk as Jm,zk as Km}from"./chunk-fa2mg49t.js";import"./chunk-axqfm9b4.js";import"./chunk-r5kr6jk4.js";import{kl as Zb,ll as _b,pl as $b}from"./chunk-f476c9fb.js";import{rl as Wb}from"./chunk-mjf3xmxn.js";import{$l as bc,$m as jd,$n as Be,$o as qg,$p as ni,$q as Xj,Al as Fa,Am as Cc,An as Kd,Ao as Of,Ap as Rg,Aq as Xi,Bl as Ga,Bm as Dc,Bn as Ld,Bp as Sg,Bq as Yi,Cl as Ha,Cm as Ec,Cn as Md,Cp as Tg,Cq as Zi,Dl as Ia,Dm as Fc,Dn as Nd,Dp as Ug,Dq as _i,El as Ja,Em as Gc,En as Od,Ep as Vg,Eq as $i,Fl as Ka,Fm as Hc,Fn as Pd,Fp as Wg,Fq as aj,Gl as La,Gm as Ic,Gn as Qd,Gp as Xg,Gq as bj,Hl as Ma,Hm as Sc,Hn as Rd,Ho as Pf,Hp as Yg,Hq as cj,Il as Na,Im as Tc,In as Sd,Ip as Zg,Iq as dj,Jl as Oa,Jm as Uc,Jn as Td,Jo as Qf,Jp as _h,Jq as ej,Kl as ib,Km as Vc,Kn as Ud,Kp as $h,Kq as fj,Ll as jb,Lm as Wc,Ln as je,Lo as Rf,Lq as gj,Ml as kb,Mm as Xc,Mn as ke,Mo as Sf,Mq as hj,Nl as lb,Nm as Yc,Nn as le,No as Tf,Np as ai,Nq as ij,Ol as mb,On as me,Oo as Uf,Oq as jj,Pl as nb,Pm as Zc,Pn as ne,Po as Vf,Pq as kj,Qm as _c,Qn as oe,Qo as fg,Qq as lj,Rm as $c,Rn as pe,Ro as gg,Rq as mj,Sl as Fb,Sm as ad,Sn as qe,So as hg,Sq as nj,Tl as Gb,Tm as bd,Tn as re,To as ig,Tq as oj,Ul as Hb,Um as cd,Un as se,Uo as jg,Uq as pj,Vl as Ib,Vm as dd,Vn as te,Vo as kg,Vp as bi,Vq as Gj,Wl as Jb,Wm as ed,Wn as ue,Wo as lg,Wp as ci,Wq as Hj,Xl as Nb,Xm as fd,Xn as ve,Xo as mg,Xp as di,Xq as Ij,Yl as Ob,Ym as gd,Yn as we,Yo as ng,Yp as ei,Yq as Jj,Zl as Pb,Zm as hd,Zo as og,Zp as fi,Zq as Kj,_l as ac,_m as id,_n as Ae,_o as pg,_p as mi,_q as Wj,am as cc,an as kd,ao as Ce,ap as rg,aq as oi,ar as Yj,bm as dc,bn as ld,bo as De,bp as sg,bq as pi,br as Zj,cm as ec,cn as md,co as Ee,cp as tg,cq as qi,cr as _j,dm as fc,dn as nd,do as Fe,dp as ug,dq as ri,dr as $j,em as gc,en as od,eo as Ge,ep as vg,eq as si,er as ak,fm as hc,fn as pd,fp as wg,fq as ti,fr as bk,gm as ic,gn as qd,gp as xg,gq as ui,gr as ck,hm as jc,hn as rd,hp as yg,hq as vi,hr as dk,im as kc,in as sd,io as Ve,ip as zg,iq as wi,ir as ek,jm as lc,jn as td,jo as We,jp as Ag,jq as xi,jr as fk,km as mc,kn as ud,kp as Bg,kq as yi,kr as gk,lm as nc,ln as vd,lo as Nf,lp as Cg,lq as zi,lr as hk,mm as oc,mn as wd,mp as Dg,mq as Ai,mr as ik,nm as pc,nn as xd,np as Eg,nq as Bi,nr as jk,om as qc,on as yd,op as Fg,oq as Ci,or as kk,pm as rc,pn as zd,pp as Gg,pq as Mi,pr as nk,qm as sc,qn as Ad,qp as Hg,qq as Ni,qr as ok,rm as tc,rn as Bd,rp as Ig,rq as Oi,rr as pk,sl as xa,sm as uc,sn as Cd,sp as Jg,sq as Pi,sr as qk,tl as ya,tm as vc,tn as Dd,tp as Kg,tq as Qi,tr as rk,ul as za,um as wc,un as Ed,up as Lg,uq as Ri,ur as sk,vl as Aa,vm as xc,vn as Fd,vp as Mg,vq as Si,vr as tk,wl as Ba,wm as yc,wn as Gd,wp as Ng,wq as Ti,wr as uk,xl as Ca,xm as zc,xn as Hd,xp as Og,xq as Ui,xr as vk,yl as Da,ym as Ac,yn as Id,yp as Pg,yq as Vi,zl as Ea,zm as Bc,zn as Jd,zp as Qg,zq as Wi}from"./chunk-d964bsxm.js";import{$r as pa,Ar as O,Br as P,Cr as Q,Dr as R,Er as S,Fr as T,Gr as U,Hr as V,Ir as W,Jr as X,Kr as Y,Lr as Z,Mr as _,Nr as $,Or as aa,Pr as ba,Qr as ca,Rr as da,Sr as ea,Tr as fa,Ur as ia,Vr as ja,Wr as ka,Xr as la,Yr as ma,Zr as na,_r as oa,as as qa,bs as ra,cs as sa,ds as ta,es as ua,fs as va,gs as wa,yr as M,zr as N}from"./chunk-d7zxg9bp.js";import{hs as ga,is as ha}from"./chunk-t00ga194.js";import{js as Kb,ks as Lb,ls as Mb}from"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import{As as Li,ss as Di,ts as Ei,us as Fi,vs as Gi,ws as Hi,xs as Ii,ys as Ji,zs as Ki}from"./chunk-ay336sqb.js";import{Ss as Jc,Ts as Kc,Us as Lc,Vs as Mc,Ws as Nc,Ys as Oc,ft as Pc,gt as Qc,ht as Rc}from"./chunk-3agx4hyd.js";import{it as Qb,jt as Rb,kt as Sb,lt as Tb,mt as Ub,nt as Vb}from"./chunk-vaggjvsm.js";import{ut as xe,wt as ye,zt as ze}from"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import{Et as Xb,Ft as Yb}from"./chunk-k3dtvay1.js";import{Jt as Wf,Kt as Xf,Lt as Yf,Mt as Zf,Nt as _f,Ot as $f,Pt as ag,Rt as bg,St as cg,Tt as dg,Ut as eg}from"./chunk-aved735s.js";import{$t as h,Au as I,Bu as J,Cu as K,Du as L,Vt as b,Wt as c,Xt as d,Yt as e,Zt as f,_t as g,au as i,bu as j,cu as k,du as l,eu as m,fu as n,gu as o,hu as p,iu as q,ju as r,ku as s,lu as t,mu as u,nu as v,ou as w,pu as x,qu as y,ru as z,su as A,tu as B,uu as C,vu as D,wu as E,xu as F,yu as G,zu as H}from"./chunk-799s9mwc.js";import{$u as he,Nu as Vd,Ou as Wd,Pu as Xd,Qu as Yd,Ru as Zd,Su as _d,Tu as $d,Uu as ae,Vu as be,Wu as ce,Xu as de,Yu as ee,Zu as fe,_u as ge,av as ie}from"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import{gv as ob,hv as pb,iv as qb,jv as rb,kv as sb,lv as tb,mv as ub,nv as vb,ov as wb,pv as xb,qv as yb,rv as zb,sv as Ab,tv as Bb,uv as Cb,vv as Db,wv as Eb}from"./chunk-deqnt1w5.js";import{$v as db,Av as Pa,Bv as Qa,Ev as Ra,Jv as Sa,Kv as Ta,Qv as Ua,Rv as Va,Sv as Wa,Tv as Xa,Uv as Ya,Vv as Za,Wv as _a,Xv as $a,Yv as ab,Zv as bb,_v as cb,aw as eb,bw as fb,cw as gb,ew as hb}from"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{Zk as writeNetlifyConfig,Rm as writeManifest,Cl as writeImageManifest,hp as wrapComponentForHMR,Qr as withDefaults,kk as webComponentDirectiveHandler,Yp as watermark,_q as watchViews,Ml as watchMultiple,Nl as watchEffect,Ll as watch,Ee as warmImagePlaceholders,_l as waitForStore,X as waitForLocale,Vo as virtualPathFor,Zj as videoDirective,G as validators,Ur as validated,ue as validateValueEnhanced,bi as validateTemplate,Fm as validateRouteRules,bq as validateParams,ve as validateFormEnhanced,Pq as validateFile,qe as validateFields,pe as validateField,di as validateDirective,Pd as validateCspDirectives,sk as validateConfig,cn as validateComponentScripts,Bn as validateComponentProps,Zg as validateClientScript,Yh as v,Ac as usesSignalsInScript,ub as usesReactiveRuntime,qi as userComponentFileExists,Eh as useVirtualList,be as useTitle,Zl as useStoreOrThrow,zp as useStore,Jk as useStorage,sf as useSlots,Lk as useSessionStorage,Xb as useServerRuntimeConfig,Of as useServerData,_d as useSeoMeta,Yb as useRuntimeConfig,$l as useRouteParams,bm as useRouteParamOrThrow,am as useRouteParam,be as usePageTitle,jf as useOptimistic,xf as useModel,dm as useMiddlewareValue,cm as useMiddlewareState,Kk as useLocalStorage,ap as useLoadingIndicator,Yd as useHead,Vh as useForm,uf as useAttrs,Rq as uploadFiles,Qq as uploadFile,Wl as updateInstance,gf as untrack,Gi as unregisterDirective,Xl as unmountInstance,Ic as unescapeHtml,Yo as typecheckStxFiles,pi as transpileTypeScript,Dr as translate,Ba as transitionDirective,ec as transformAutoImports,vn as toUsers,un as toUser,Hp as thumbnail,Iq as thumbHashToRGBA,Jq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Bf as templateCache,fd as syncRecordedResponse,ep as stxClientHelpers,$f as structuredDataDirective,Gr as stripLocalePrefix,Cm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,go as stringToStream,Dd as strictCspPreset,Pe as streamingSuspenseDirective,Te as streamToResponse,Ne as streamTemplateSimple,He as streamTemplate,Ek as stopHmrServer,rn as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Xe as state,Tg as startsDocument,Bo as startProductionServer,wo as startInteractive,qn as startBroadcasting,Ir as stampLocaleLayoutGroup,Ia as staggerDirective,$p as srcsetUrls,Ja as springDirective,md as splitByPipe,ym as spaNavVaryHeaders,Wo as sourcePathFor,gq as smartBatchSign,si as slotContentHasExpressions,eq as signUrl,ni as shouldTranspileTypeScript,Bk as shouldReloadOnChange,jq as shouldRefreshSignature,Ck as shouldIgnoreFile,wh as shouldCacheComponent,Lp as sharpen,Xr as shape,Sb as setStateDir,hm as setRouteParams,im as setMiddlewareState,De as setImagePlaceholder,mf as setGlobalProvide,b as setErrorLocale,El as setCurrentInstance,Nj as setCachedVideoResult,Cj as setCachedImageResult,wj as setCached,_r as serveStxFile,as as serveMultipleStxFiles,wk as serveMarkdownFile,Mo as serveFile,bs as serveApp,Lo as serve,kp as serializeState,Tm as serializeSetCookie,Np as sepia,$d as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,bk as scopeHTML,ak as scopeCSS,cg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Rp as saturation,cq 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,ng as runPreProcessingMiddleware,og as runPostProcessingMiddleware,Wm as runPageAction,bf as runMountCallbacks,gb as runMiddleware,Ul as runHooks,wr as runDoctor,cf as runDestroyCallbacks,rg as runComposers,Sp as rotate,Zh as rewriteImagesWithSiblings,gd as responseBindings,wi as resolveTemplatePath,ha as resolveStxTargets,ok as resolveStxDirectories,Cr as resolveI18n,Fp as resize,fg as resetUnscopedSignalWarnings,Gc as resetRejectedExpressionWarnings,lc as resetPlaceholders,Xd as resetHead,jp as resetHMRHandler,o as resetErrorConfig,Sr as required,Uf as reportDeferredLoopWarnings,pc as replacePlaceholders,xc as replaceInterpolations,Yq as renderView,Wj as renderVideoComponent,bc as renderVendorStyleTags,fr as renderToString,gr as renderToStream,hr as renderToDOM,Hq as renderThumbhashToCanvas,tr as renderTemplateString,rr as renderTemplate,sr as renderString,Ke as renderStreamingPage,ii as renderSlot,mh as renderSSRSuspense,rq as renderProtectedVideo,qq as renderProtectedImg,dq as renderMediaUpload,qr as renderMarkdownView,Jm as renderLayoutTypes,Gj as renderImgComponent,sl as renderImageComponent,de as renderHtmlAttrs,ce as renderHead,$q as renderEmail,ui as renderComponentWithSlot,ee as renderBodyAttrs,up as render,Fd as relaxedCspPreset,oe as registerValidationRule,Re as registerStreamingDirectives,Bp as registerStoresClient,fm as registerStore,ag as registerSeoDirectives,_a as registerMiddleware,tc as registerFilters,sc as registerFilter,d as registerErrorMessages,te as registerEnhancedValidationRule,Di as registerDirective,Od as registerCspDirectives,En as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,fc as referencesName,Il as ref,oo as redirect,bd as recordResponseStatus,cd as recordResponseHeader,Vb as rebaseOntoStateDir,dd as readResponseStatus,ed as readResponseHeaders,uk as readMarkdownFile,Cf as readFileCached,Jl as reactive,Wp as quality,oq as pruneSignatureCache,zj as pruneCache,kf as provide,pr as protectCodeBlocks,Rr as prop,ug as processVueTemplate,Ch as processVirtualListDirectives,Gh as processVirtualGridDirectives,Vj as processVideo,re as processValidateDirective,ea as processTranslateDirective,gh as processTransitionDirectives,jh as processTransitionAttributes,he as processTitleDirective,Vc as processTemplateBindings,ch as processTeleportDirectives,kh as processSuspenseDirectives,Xf as processStructuredData,Le as processStreamDirectives,hd as processStatusDirective,Th as processStaticDirectives,lg as processStackReplacements,kg as processStackPushDirectives,ji as processSlots,Am as processShell,Ge as processServerBindings,Yf as processSeoDirective,Se as processSectionDirectives,Nc as processScopedStyles,Tc as processReactiveBindings,sq as processProtectedMedia,Mh as processPartialHydrationDirectives,Yg as processOnceDirective,mg as processMiddleware,Wf as processMetaDirectives,ie as processMetaDirective,vk as processMarkdownFileDirectives,Bi as processMarkdownDirectives,Vf as processLoops,uh as processKeepAliveDirectives,Xg as processJsonDirective,Fh as processInfiniteListDirectives,jg as processIncludes,Ij as processImgComponents,ul as processImageComponents,hl as processImage,ge as processHeadDirective,ke as processForms,me as processFormInputDirectives,Ec as processExpressions,Ib as processEventDirectives,ne as processErrorDirective,vg as processDynamicComponents,_h as processDirectives,Li as processDirectiveAttributes,bh as processDeferDirectives,Td as processCustomDirectives,Ld as processCspDirectives,Yr as processComponentProps,kc as processClientScript,le as processBasicFormDirectives,ph as processAsyncDirectives,Ud as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ze as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,$o as preloadIslandHandlers,Fe as preloadIconCollection,mn as poolStrings,mk as pluginManager,Be as placeholdersWarmed,fh as performLeave,eh as performEnter,df as pendingLifecycleCounts,hf as peek,gg as partialsCache,Xj as parseVideoDirectiveOptions,Dp as parseUrl,Kq as parseThumbhashString,sd as parseSwitchBlock,gi as parseSlots,hi as parseSlotElement,xd as parseScriptDeclarations,ik as parseSFCComponent,tq as parseProtectedArgs,Tf as parseLoopBinding,Hj as parseImgComponent,Zi as parseImageUrl,tl as parseImageComponent,Um as parseFormBody,ud as parseExpressionWithFilters,Fn as parseDefaults,lo as parseCookies,rm as parseContainerSelector,pd as parseConditionalBlock,vd as parseArguments,Ma as parseAnimationShorthand,Tr as optional,nn as optimizeTemplate,zl as optimizeImage,Al as optimizeDirectory,Vr as oneOf,hg as onceStore,Rl as onUpdated,Sc as onUpdate,Tl as onUnmounted,mm as onServer,Pl as onMounted,$e as onMount,Sh as onHydrated,qf as onErrorCaptured,af as onDestroy,Ah as onDeactivated,lm as onClient,Ql as onBeforeUpdate,Sl as onBeforeUnmount,Ol as onBeforeMount,zh as onActivated,Dq as observeElement,po as notFound,Ag as normalizeCriticalHeadOrder,pf as nextTick,In as negotiateEncoding,Ua as navigateTo,Vl as mountInstance,Ea as motionDirective,Ed as moderateCspPreset,ln as minifyHtml,_f as metaDirective,Lg as metaDedupKey,Ep as mergeParams,Ng as mergeHtmlAttrs,Zd as mergeHeadConfigs,Kc as mergeCssConfig,Id as mergeCspDirectives,Ra as matchRoute,Ci as markdownDirectiveHandler,tk as markdownCache,ga as looksLikeGlob,Fr as localizePath,U as loadTranslationLazy,_ as loadTranslation,pk as loadStxConfig,db as loadMiddlewareFromDirectory,Sm as loadManifest,zq as loadElement,sn as loadChannels,Mr as lintStxStrict,Bq as lazyLoadAll,Aq as lazyLoad,Ha as keyframeDirective,dr as jsxs,er as jsxDEV,cr as jsx,no as jsonResponse,Qe as islandDirective,l as isTest,Dm as isSpaNavigation,wm as isSpaNavRequest,hq as isSignatureValid,ef as isSignal,fl as isSharpAvailable,_n as isServerEnvironment,jm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,wq as isNativeLazySupported,or as isMarkdownPath,Q as isLoading,R as isLoaded,mi as isJavaScriptScript,xq as isIntersectionObserverSupported,nl as isImageFile,gl as isImageBackendAvailable,aa as isICUFormat,Rh as isHydrated,ri as isHydrateTrigger,$c as isHttpStatus,Zn as isEdgeEnvironment,Nr as isDirectiveKind,k as isDevelopment,ff as isDerived,Ak as isCssOnlyChange,Hn as isCompressible,km as isClient,rh as isAsyncComponent,Vm as isActionableMethod,Op as invert,Ef as invalidateFileCacheByDir,Df as invalidateFileCache,Dc as interpolateScriptsInTemplate,Bc as interpolateScriptExpressions,Cc as interpolateScriptAttributes,x as inlineError,Br as injectThemeBootstrap,Zf as injectSeoTags,yr as injectSeo,Nf as injectRouterScript,zk as injectHotReload,kb as injectHeatmap,Rc as injectCss,Jd as injectCspMetaTag,Vg as injectConfigHeadTags,zg as injectColorModeBootScript,Pg as injectCloakStyle,Gg as injectBuildId,dc as injectBrowserCoreAutoImports,Xc as injectAnalytics,lf as inject,em as initStoreRegistry,al as initNetlify,bp as initLoadingIndicator,yq as initLazyLoading,vo as initFile,Gq as initBlurUp,Mq as initAllBlurUp,Kj as imgDirective,xl as imageDirective,Zm as hydrateTemplateStream,Ym as hydrateTemplate,_o as hydrateIslands,Oh as hydrateIsland,_m as hydrateFragment,Ph as hydrateByStrategy,Qh as hydrateAll,rp as hydrate,Ko as htmlResponse,Rg as hoistLeadingHeadTags,Bg as hoistColorModeBootScript,lb as heatmapDirective,sj as hashString,Mf as hashFilePath,qj as hashFile,rj as hashBuffer,tg as hasVueTemplateSyntax,Sf as hasVariables,wp as hasStore,qc as hasPlaceholders,_k as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Ug as hasDocumentShell,ei as hasDirectives,ma as hasDOMSupport,ql as handleImageRequest,rf as handleError,lr as h,ml as groupVariantsByFormat,Mp as grayscale,Do as gitHash,en as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Vk as getTotalSize,iq as getTimeUntilExpiry,_g as getStoreScript,xp as getStoreNames,vp as getStore,Ok as getStorageSize,Nk as getStorageKeys,xi as getSourceLineInfo,oi as getSharedTranspiler,If as getServeClientAsset,la as getScreenReaderOnlyStyle,ck as getScopeAttribute,We as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,ci as getPositionInfo,nc as getPlaceholderRegistry,pj as getPlaceholderCacheStats,Wd as getPageMeta,zd as getNonce,ol as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ae as getImagePlaceholder,il as getImageMetadata,xe as getImageDelivery,qp as getHydrationRuntime,gm as getHydratedStoreState,Dk as getHmrServer,Vd as getHead,ip as getHMRHandler,bj as getFormatExtension,uj as getFileMtime,ll as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Fi as getDirectives,Ei as getDirective,Fl as getCurrentInstance,Oc as getCssServeAsset,Hd as getCspPreset,Qd as getCspHeaderName,Ai as getComponentCacheStats,Mj as getCachedVideoResult,mq as getCachedSignature,Gf as getCachedSignalsRuntime,Hf as getCachedRouterScript,nj as getCachedPlaceholder,Bj as getCachedImageResult,vj as getCached,yj as getCacheStats,Eg as getBuildId,pn as getBroadcastServer,aj as getBestVariant,uc as getAllFilters,Qi as generateWidthSrcset,Dh as generateVirtualListCSS,Tq as generateVideoPreview,we as generateValidationScript,Uq as generateUploadRuntime,fn as generateTreeShakenBundle,ih as generateTransitionRuntime,hh as generateTransitionCSS,Qj as generateThumbnails,gj as generateThumbhashPlaceholder,Rn as generateTemplatesDocs,oh as generateSuspenseRuntime,nh as generateSuspenseCSS,lp as generateStateScript,_i as generateSrcsetData,Fj as generateSrcset,jl as generateSrcSet,Rj as generateSpriteSheet,ar as generateSpaShell,$i as generateSourceTags,Wi as generateSizesFromBreakpoints,Vi as generateSizesAttribute,kl as generateSizes,bg as generateSitemapIndex,zr as generateSitemap,vq as generateSimpleMediaPicker,pq as generateSignatureRuntime,Af as generateSignalsRuntimeDev,zf as generateSignalsRuntime,jc as generateServerDataBridge,$j as generateScopeId,jk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,dg as generateRobotsTxt,Ar as generateRobots,Ej as generateResponsiveVariants,fk as generateReactiveWebComponentTS,ek as generateReactiveWebComponent,hk as generateReactiveRuntime,gk as generateReactiveMixin,Pj as generatePoster,mj as generatePlaceholderStyle,lj as generatePlaceholderCSS,fj as generatePlaceholder,Nh as generatePartialHydrationCSS,yd as generateNonce,Wk as generateNetlifyToml,Wq as generateMinifiedMediaRuntime,Vq as generateMediaRuntime,uq as generateMediaManagerEmbed,Qm as generateManifest,dp as generateLoadingIndicatorHtml,Fq as generateLazyLoadRuntime,Km as generateLayoutTypes,ij as generateLQIP,yh as generateKeepAliveRuntime,xh as generateKeepAliveCSS,Uh as generateIslandManifest,Sq as generateImagePreview,Bl as generateImageManifest,pp as generateHydrationScript,Ue as generateHydrationRuntime,sp as generateHydrationCSS,Hh as generateHydrationBootstrap,yk as generateHotReloadScript,jb as generateHeatmapScript,gp as generateHMRClientScript,Sj as generateHLSManifest,mp as generateEventBindings,Ui as generateDprSrcsetWithVariableQuality,Ti as generateDprSrcset,Sg as generateDocumentShell,Wn as generateDocs,Sn as generateDirectivesDocs,Ki as generateDirectiveRuntime,eg as generateDefaultRobotsTxt,Tj as generateDASHManifest,Qc as generateCss,Cd as generateCspMetaTag,Bd as generateCspHeader,wf as generateCompositionRuntime,Qn as generateComponentsDocs,Ih as generateComponentManifest,On as generateComponentDoc,kj as generateColorPlaceholder,yg as generateColorModeBootScript,Yl as generateClientRuntime,tj as generateCacheKey,hc as generateBrowserAutoImportDestructuring,Nq as generateBlurUpRuntime,Oq as generateBlurUpCSS,Uc as generateBindingsRuntime,Ri as generateAutoWidthSrcset,gc as generateAutoImportDestructuring,th as generateAsyncComponentRuntime,sh as generateAsyncComponentCSS,_b as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Wc as generateAnalyticsScript,Zo as formatTypecheckDiagnostics,To as formatTypeErrors,so as formatStxContent,Uk as formatSize,Ta as formatRoutes,to as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,xr as formatDoctorReport,Tn as formatDocsAsMarkdown,Vn as formatDocsAsJson,Un as formatDocsAsHtml,Vp as format,kn as foldConstants,Up as flipVertical,Tp as flipHorizontal,Lm as fingerprint,Xo as findRuntimeTypeDeclarations,vr as findPantryPackage,wc as findMustacheEnd,od as findMatchingEndTag,kd as findMatchingDelimiter,Kb as findInterpolationEnd,qd as findIfBlocks,td as findExpressions,Sa as findErrorPage,Lc as findDuplicateScopedStyleRanges,rd as findDirectiveBlocks,gn as findDeadCode,gn as findDeadBranches,sm as findContainerRegion,Pn as findComponentFiles,$r as findCommonDir,Tk as filterRequiredFiles,vi as fileExists,Pf as extractVariables,ai as extractTemplateExpressions,Me as extractStreamBoundaries,np as extractState,ki as extractSlotContent,Rf as extractScriptFromTemplate,$h as extractScriptBlocks,oc as extractPlaceholders,nd as extractParenthesizedExpression,ad as extractPageResponseStatus,hb as extractLayoutMetadata,jj as extractDominantColor,wd as extractDirectiveParams,fi as extractDirectiveNames,Em as extractContainerContent,Mn as extractComponentProps,Jh as extractComponentName,Nn as extractComponentDescription,Pc as extractClassNames,ic as extractBridgeData,Kh as extractBoundProps,ld as extractBalancedExpression,ac as extractAndStripCssImports,dk as extractAndScopeStyles,Hb as extractAndProcessEvents,Hk as externalizeSharedAssets,Ik as externalizeRepeatedAssets,Gk as externalizeHtml,Hc as evaluateExpression,jn as evaluateConstant,id as evaluateAuthExpression,zc as escapeHtmlValue,yc as escapeHtml,C as errorRecovery,E as errorLogger,dh as ensureTeleportTargets,Wg as ensureDocumentShell,se as enhancedValidationRules,Kn as enableDevTools,hn as eliminateDeadCode,Ze as effect,aq as dprUrls,Xn as docsCommand,Zb as discoverServerApi,Im as discoverLayoutNames,Eq as disconnectObserver,Ln as disableDevTools,F as devHelpers,zm as detectShell,Yn as detectRuntime,Xk as detectProjectConfig,cj as detectFormat,bn as detectBuildMode,Ye as derived,$k as deploy,rk as defineStxConfig,Ap as defineStore,tf as defineSlots,Lr as defineSiteConfig,Pr as definePropsWithValidation,Or as defineProps,lk as definePlugin,ae as definePageMeta,Wa as defineMiddleware,Wh as defineForm,of as defineExpose,nf as defineEmits,Hi as defineDirective,nr as defineCustomElement,Ao as defineConfig,Ii as defineClientDirective,qh as defineAsyncComponent,Co as defineApiHandler,Xq as defaultMediaConfig,Dl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,je as defaultFormClasses,rc as defaultFilters,Sd as defaultCspConfig,nk as defaultConfig,Zr as default,Jc as deepMergeThemes,Mc as dedupeScopedStyles,vm as decodeTitleEntities,hj as decodeThumbhash,Nd as cspNonceDirective,Md as cspDirective,Lq as crossfadeTransition,Gp as crop,Bh as createVirtualList,Yj as createVideoDirective,jo as createVercelHandler,Qo as createTypeChecker,fa as createTranslateFilter,fo as createTextEncoderStream,mr as createStxApp,eo as createStreamingResponse,Oe as createStreamRenderer,yp as createStore,Za as createStorageManager,Xa as createServerCookieManager,$b as createServerApi,Hl as createScope,lh as createSSRSuspense,Ve as createRouter,Gm as createRouteRuleResolver,eb as createRouteLocation,Oo as createRoute,Il as createRef,Jl as createReactive,vf as createProvideContext,Fo as createProject,zo as createProductionBuild,mc as createPlaceholder,on as createOptimizedBuild,ko as createNetlifyHandler,Pk as createNetlifyClient,fb as createMiddlewareContext,No as createMiddleware,Cq as createLazyObserver,vh as createKeepAliveCache,ao as createKVNamespace,Lh as createIslandRegistry,Jj as createImgDirective,yl as createImagePlugin,rl as createImageHandler,wl as createImageDirective,nb as createHeatmapAggregator,Sk as createFileManifest,$n as createEnvAccessor,z as createEnhancedError,co as createEdgeHandler,bo as createEdgeCache,yi as createDetailedErrorMessage,io as createDenoHandler,Yk as createDefaultNetlifyConfig,Rd as createCspHeaders,mo as createCookie,Kl as createComputed,Gl as createComponentInstance,ho as createCloudflareHandler,Ya as createClientCookieManager,Ji as createBuiltinDirectives,mr as createApp,Ka as createAnimationTimeline,Jp as cover,Qf as convertToCommonJS,Qp as contrast,Ip as contain,y as consoleError,m as configureErrorHandling,qk as config,Kl as computed,Jn as compressResponse,qg as composerPattern,pg as composer,Bm as composeShellWithPage,Dn as componentDirective,ti as componentClientSignalNames,Pm as compileTemplate,a as collectRepeatedFlag,Rk as collectDeployFiles,Qg as cloakStyleFragment,Oj as clearVideoCache,N as clearTranslationCache,$g as clearStoreCache,Mk as clearStorage,nq as clearSignatureCache,yf as clearServerData,oj as clearPlaceholderCache,ig as clearOnceStore,Ad as clearNonce,bb as clearMiddleware,Ce as clearImagePlaceholders,ye as clearImageDeliveryCatalog,vl as clearImageCache,e as clearErrorMessages,Jf as clearDevCaches,vc as clearCustomFilters,sg as clearComposers,ah as clearComposableCache,zi as clearComponentCache,xj as clearCache,Db as clearBlankCache,cp as cleanupLoadingIndicator,pm as classifyScript,qm as classifyAllScripts,Ro as checkTemplateFile,So as checkTemplate,Kf as checkCache,kq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,yn as channel,ro as captureScreenshots,qo as captureScreenshot,Z as cancelPendingLoads,Qk as calculateSha1,Si as calculateOptimalWidths,Lf as cacheTemplate,Wb as cacheEngineFingerprint,_j as buildWebComponents,Uo as buildVirtualSource,Zq as buildViews,Cp as buildUrl,Ie as buildSuspenseResolveScript,Kr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Mm as buildRuntimeAsset,Nm as buildRouterAsset,Jr as buildLangPickerScript,Yi as buildImageUrl,Hg as buildIdFragment,Mg as buildHtmlAttrs,$m as buildForProduction,Gn as buildComponentLibrary,lq as buildAuthParams,an as buildApp,Hr as buildAlternateLinks,yo as build,wn as broadcastPrivate,xn as broadcastPresence,tn as broadcast,Pp as brightness,Mb as bracketDepths,Kp as blur,Eb as blankInertHtmlRegions,fq as batchSignUrls,_e as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Xp as auto,ja as attributeValue,Om as assetTags,Fb as asInvocableStatement,Wr as arrayOf,Er as applyTranslations,Dj as applyTransformations,li as applySlots,Cn as applyPropDefaults,_p as applyPreset,Og as applyHtmlAttrs,fe as applyHead,Fc as applyFilters,xm as appendVary,Gd as apiCspPreset,Da as animationGroupDirective,Uj as analyzeVideo,dn as analyzeUsage,nm as analyzeTemplate,om as analyzeProject,dn as analyzeDirectiveUsage,Yc as analyticsDirective,Io as addStore,Ho as addPage,Kd as addNonceToInlineContent,Jo as addLayout,Go as addComponent,Xm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Ff as __setSignalsGeneratorsForTest,Fg as __setBuildIdForTest,Lj as VideoProcessorCache,Xh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,jd as Tokenizer,Po as TemplateTypeChecker,uo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,ir as Show,Je as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,cc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,tm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Zc as RESPONSE_STATUS_KEY,_c as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,xo as ProductionBuild,kr as Portal,Eo as PROJECT_TEMPLATES,Zp as PRESETS,sb as NON_CLIENT_PRIMITIVES,tp as MemorySessionStore,Pi as MIME_TYPES,Mi as MEDIA_DEFAULT_WIDTHS,Oi as MEDIA_DEFAULT_FORMATS,Hm as LAYOUT_TYPES_FILE,Aj as ImageProcessorCache,pl as ImageProcessingError,op as HydrationRuntime,xk as HotReloadServer,mb as HeatmapAggregator,Kg as HTML_CLASS_MARKER,Jg as HTML_ATTRS_MARKER,br as Fragment,jr as For,um as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Fk as EXTERNALIZED_ASSET_DIR,bl as DeployError,cl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,el as DEFAULT_QUALITY,dj as DEFAULT_PLACEHOLDER_OPTIONS,dl as DEFAULT_FORMATS,Ni as DEFAULT_DPR_VALUES,fp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Xi as COMMON_SIZES,wg as COLOR_MODE_BOOT_MARKER,xg as COLOR_MODE_BOOT_GLOBAL,Ig as CLOAK_STYLE,An as BroadcastServer,zn as Broadcast,Cg as BUILD_ID_META,Dg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,ej as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,ur as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Mi as a,Ni as b,Oi as c,Pi as d,Qi as e,Ri as f,Si as g,Ti as h,Ui as i,Vi as j,Wi as k,Xi as l,Yi as m,Zi as n}from"./chunk-
|
|
2
|
+
import{Mi as a,Ni as b,Oi as c,Pi as d,Qi as e,Ri as f,Si as g,Ti as h,Ui as i,Vi as j,Wi as k,Xi as l,Yi as m,Zi as n}from"./chunk-5t8ersrw.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ik as a,jk as b,kk as c,lk as d}from"./chunk-hq9fa4pe.js";import"./chunk-6zsc0z5a.js";import"./chunk-d964bsxm.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-3agx4hyd.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-shtg7kah.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-d6yyzpsv.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
|