@stacksjs/stx 0.2.299 → 0.2.300
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/{chunk-2d9yq3m4.js → chunk-01x1p6ek.js} +1 -1
- package/dist/{chunk-fc7dc3f6.js → chunk-18a38e8t.js} +1 -1
- package/dist/{chunk-y33hd9x7.js → chunk-19v7ftwt.js} +1 -1
- package/dist/{chunk-yvnx05f6.js → chunk-2j8hgkeb.js} +1 -1
- package/dist/{chunk-geyrsxc0.js → chunk-3cgyqcze.js} +1 -1
- package/dist/{chunk-snsb8nm6.js → chunk-4bct6m06.js} +1 -1
- package/dist/{chunk-yft2a2bf.js → chunk-53fbj4xk.js} +1 -1
- package/dist/{chunk-7g37nv98.js → chunk-5jsssr3k.js} +1 -1
- package/dist/{chunk-rn2nsn9e.js → chunk-5p0eexgt.js} +1 -1
- package/dist/{chunk-vk57tj7y.js → chunk-69kf0b4q.js} +1 -1
- package/dist/{chunk-cp60r9ck.js → chunk-6s1v9snm.js} +1 -1
- package/dist/{chunk-yq903p32.js → chunk-7t90r4dr.js} +1 -1
- package/dist/{chunk-5fmpyxwr.js → chunk-8cdnh5w1.js} +1 -1
- package/dist/{chunk-dg5mhg7t.js → chunk-9fsremeg.js} +1 -1
- package/dist/{chunk-18kcg747.js → chunk-9tecjny7.js} +1 -1
- package/dist/{chunk-17389q0t.js → chunk-a5gkg0a5.js} +150 -150
- package/dist/{chunk-p2aa1ak4.js → chunk-a9em3zm4.js} +1 -1
- package/dist/{chunk-sqqwas4j.js → chunk-abb34awq.js} +1 -1
- package/dist/{chunk-0dz7yme0.js → chunk-afyfe868.js} +1 -1
- package/dist/{chunk-8xzcfg5w.js → chunk-bz32kj1x.js} +2 -2
- package/dist/{chunk-9k5p10e4.js → chunk-d7fd2wrb.js} +1 -1
- package/dist/{chunk-0hjsgddy.js → chunk-dr5q6kpc.js} +1 -1
- package/dist/{chunk-k4v9k7vj.js → chunk-dsbpsmqg.js} +1 -1
- package/dist/{chunk-7wh0eyz9.js → chunk-ejvftzg7.js} +2 -2
- package/dist/{chunk-ky8g0n1e.js → chunk-emx0n4yh.js} +1 -1
- package/dist/{chunk-ykgj5w4g.js → chunk-gfyfkxk6.js} +1 -1
- package/dist/{chunk-gfrznj5v.js → chunk-gp3e2xbc.js} +8 -8
- package/dist/{chunk-xjnx0ms8.js → chunk-h386tf3w.js} +1 -1
- package/dist/{chunk-yjvd2p32.js → chunk-jrqrbvx9.js} +1 -1
- package/dist/{chunk-cgw60tse.js → chunk-kd25rwsv.js} +1 -1
- package/dist/{chunk-q1pqkc22.js → chunk-mcn6cpkm.js} +1 -1
- package/dist/{chunk-1vzgt63y.js → chunk-mksxv28s.js} +1 -1
- package/dist/{chunk-trpmf02p.js → chunk-n2s7qj9d.js} +1 -1
- package/dist/{chunk-sprn2n68.js → chunk-nkq9xwmy.js} +1 -1
- package/dist/{chunk-pt902dd9.js → chunk-p2gd0pcc.js} +1 -1
- package/dist/{chunk-23jg0x9d.js → chunk-qya63wjh.js} +1 -1
- package/dist/{chunk-vw5zxsc1.js → chunk-rwqg3tnk.js} +1 -1
- package/dist/{chunk-812p93m2.js → chunk-s723t6p6.js} +1 -1
- package/dist/{chunk-b24h02ck.js → chunk-tt7rdn02.js} +1 -1
- package/dist/{chunk-c1jkpd5e.js → chunk-vpgzr79n.js} +1 -1
- package/dist/{chunk-gn6m4f5p.js → chunk-vy9hqeyq.js} +1 -1
- package/dist/{chunk-r19ajkwr.js → chunk-wd9fww03.js} +1 -1
- package/dist/{chunk-h58zg4p4.js → chunk-yvgqs82c.js} +1 -1
- package/dist/{chunk-k8j9bt64.js → chunk-zpfbwcyk.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/dist/utils.js +10 -0
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ho as a,io as b,jo as c,ko as d,lo as e,mo as f,no as g,oo as h,po as i,qo as j,ro as k,so as l,to as m}from"./chunk-
|
|
2
|
+
import{ho as a,io as b,jo as c,ko as d,lo as e,mo as f,no as g,oo as h,po as i,qo as j,ro as k,so as l,to as m}from"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.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{Ep as T,lm as D,mm as O}from"./chunk-
|
|
2
|
+
import{Ep as T,lm as D,mm as O}from"./chunk-a5gkg0a5.js";import{bv as h,dv as i,ev as o}from"./chunk-54fnvfp1.js";import{lv as d,ov as c}from"./chunk-6bcw8twx.js";var C=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function y(z,J,F){let Q={fullTag:F,content:J,attrs:z};if(/\bserver\b/.test(z))return{...Q,type:"server"};if(/\bdata-stx-scoped\b/.test(z))return{...Q,type:"client"};if(C.test(J))return{...Q,type:"signals"};if(/\bclient\b/.test(z)||/\btype\s*=\s*["']module["']/.test(z)||/\bsrc\s*=/.test(z))return{...Q,type:"client"};return{...Q,type:"server"}}var S=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function b(z){let J=[],F=[],Q=[],$=0;while($<z.length){let X=z.indexOf("<",$);if(X===-1)break;let j=O(z,X);if(j>X){$=j;continue}let Z=D(z,X);if(Z>X){let U=z.slice(X,Z),B=S.exec(U);if(B){let Y=y(B[1],B[2],U);switch(Y.type){case"signals":J.push(Y);break;case"client":F.push(Y);break;case"server":Q.push(Y);break}}$=Z;continue}$=X+(z.startsWith("<!--",X)?4:1)}return{signals:J,client:F,server:Q}}var f=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function u(z){let J=[],F=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,Q;while((Q=F.exec(z))!==null)J.push({start:Q.index,end:Q.index+Q[0].length});return J}function x(z,J){return J.some((F)=>z>=F.start&&z<F.end)}function g(z){let J=(z||"").trim();if(!J)return null;if(/[\s>+~,:]/.test(J))return null;let F={},Q=J,$=Q.match(/^[a-z][\w-]*/i);if($)F.tag=$[0].toLowerCase(),Q=Q.slice($[0].length);while(Q.length>0){let X=Q.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(X){if(F.attr=X[1],X[3]!==void 0&&X[3]!=="")F.attrValue=X[3];Q=Q.slice(X[0].length);continue}let j=Q.match(/^#([\w-]+)/);if(j){F.id=j[1],Q=Q.slice(j[0].length);continue}let Z=Q.match(/^\.([\w-]+)/);if(Z){F.className=Z[1],Q=Q.slice(Z[0].length);continue}return null}if(!F.tag&&!F.attr&&!F.id&&!F.className)return null;return F}function m(z,J){if(J.attr){if(!(J.attrValue===void 0?new RegExp(`\\b${J.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${J.attr}\\s*=\\s*(["'])\\s*${J.attrValue}\\s*\\1`,"i")).test(z))return!1}if(J.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${J.id}\\s*\\1`,"i").test(z))return!1}if(J.className){let F=z.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!F)return!1;if(!F[2].split(/\s+/).includes(J.className))return!1}return!0}function E(z,J="main"){let F=g(J);if(!F)return null;let Q=/<([a-z][\w-]*)\b([^>]*)>/gi,$=u(z),X;while((X=Q.exec(z))!==null){if(x(X.index,$))continue;let j=X[1].toLowerCase(),Z=X[2]||"";if(Z.trimEnd().endsWith("/")||f.has(j))continue;if(F.tag&&F.tag!==j)continue;if(!m(Z,F))continue;let U=X[0],B=X.index+U.length,Y=new RegExp(`<(/?)${j}\\b([^>]*)>`,"gi");Y.lastIndex=B;let W=1,G;while((G=Y.exec(z))!==null){if(x(G.index,$))continue;let w=G[1]==="/";if(!w&&(G[2]||"").trimEnd().endsWith("/"))continue;if(W+=w?-1:1,W===0)return{openTag:U,openIndex:X.index,start:B,end:G.index,tagName:j}}return null}return null}var Fz="X-STX-Router",Jz="private, no-store";function Qz(z){return z.replace(/&#(\d+);/g,(J,F)=>M(Number(F),J)).replace(/&#x([0-9a-f]+);/gi,(J,F)=>M(Number.parseInt(F,16),J)).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")}function M(z,J){if(!Number.isInteger(z)||z<0||z>1114111)return J;try{return String.fromCodePoint(z)}catch{return J}}function P(z){return z.headers.get("X-STX-Router")==="true"}function p(z,J){if(!z)return J;return z.split(",").some((Q)=>Q.trim().toLowerCase()===J.toLowerCase())?z:`${z}, ${J}`}function Xz(z){return{Vary:p(z,"X-STX-Router")}}import L from"path";h();var n="stx-page-head:",l=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,I=null;function r(){if(I!==null)return I;try{let{getRouterScript:z}=(o(),d(i));I=`<script>${z()}</script>`}catch{I=""}return I}async function Kz(z,J){if(J===!1)return null;if(J&&typeof J==="string"){let Q=L.resolve(z,J);if(await Bun.file(Q).exists())return Q;return null}let F=L.join(z,"app.stx");if(await Bun.file(F).exists())return F;return null}async function Gz(z,J){try{let F=await Bun.file(z).text(),Q=F,$=F.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)Q=$[1].trim();let X=b(F),j=[...X.client.map((K)=>K.fullTag),...X.signals.map((K)=>K.fullTag)],Z=[],U=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,B;while((B=U.exec(F))!==null)Z.push(B[0]);let Y=Q;for(let K of X.server)Y=Y.replace(K.fullTag,"");for(let K of X.client)Y=Y.replace(K.fullTag,"");Y=Y.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let W="<!--__STX_PAGE_SLOT__-->";if(Y=Y.replace(/<slot\s*\/>/gi,W).replace(/<slot\s*>\s*<\/slot>/gi,W),!Y.includes(W))return console.warn(`[stx] Shell ${z} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:G,extractVariables:w,defaultConfig:q,loadStxConfig:A}=await import("./chunk-vpgzr79n.js"),v=await A(),V={__filename:z,__dirname:L.dirname(z)};for(let K of j){let N=K.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(N&&!K.includes("client")&&!K.includes('type="module"'))await w(N[1],V,z)}let k=await G(Y,V,z,{...q,...v,...J},new Set),H=k.indexOf(W);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:k.substring(0,H),afterSlot:k.substring(H+W.length),filePath:z,shellScripts:j,shellStyles:Z}}catch(F){return console.error(`[stx] Error processing shell ${z}:`,F),null}}function Vz(z,J,F){let Q,$="",X=J.match(l);if(X){J=J.replace(X[0],"");try{let Y=Buffer.from(X[1],"base64").toString("utf8"),W=Y.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(W)Q=W[1].trim();$=Y.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let j=F||Q||"stx App",Z=r(),U="<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">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fj as a,gj as b,hj as c,ij as d,jj as e,kj as f,lj as g,mj as h,nj as i,oj as j,pj as k,qj as l,rj as m,sj as n}from"./chunk-
|
|
2
|
+
import{fj as a,gj as b,hj as c,ij as d,jj as e,kj as f,lj as g,mj as h,nj as i,oj as j,pj as k,qj as l,rj as m,sj as n}from"./chunk-9tecjny7.js";import"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.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,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ag as t,cg as e,eg as b,ng as JJ}from"./chunk-trpmf02p.js";import{Am as v,Qm as u,Rm as l,fo as o,jm as y,km as P,tm as x,yo as g}from"./chunk-17389q0t.js";import{av as s,ev as OJ,zu as a}from"./chunk-54fnvfp1.js";import{ov as R}from"./chunk-6bcw8twx.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-sprn2n68.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-ky8g0n1e.js"),{defaultConfig:z}=await import("./chunk-h58zg4p4.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".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 mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-sprn2n68.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
|
|
2
|
+
import{ag as t,cg as e,eg as b,ng as JJ}from"./chunk-n2s7qj9d.js";import{Am as v,Qm as u,Rm as l,fo as o,jm as y,km as P,tm as x,yo as g}from"./chunk-a5gkg0a5.js";import{av as s,ev as OJ,zu as a}from"./chunk-54fnvfp1.js";import{ov as R}from"./chunk-6bcw8twx.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-nkq9xwmy.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-emx0n4yh.js"),{defaultConfig:z}=await import("./chunk-yvgqs82c.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".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 mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-nkq9xwmy.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
|
|
3
3
|
export{WJ as Ye,YJ as Ze,i as _e,q as $e,KJ as af,f as bf,h as cf,m as df,wJ as ef,d as ff,AJ as gf,mJ as hf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$i as a,aj as b,bj as c}from"./chunk-
|
|
2
|
+
import{$i as a,aj as b,bj as c}from"./chunk-d7fd2wrb.js";import"./chunk-91007tan.js";import"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-
|
|
2
|
+
import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Zi as a,_i as b}from"./chunk-
|
|
2
|
+
import{Zi as a,_i as b}from"./chunk-5p0eexgt.js";import"./chunk-91007tan.js";import"./chunk-wd9fww03.js";import"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.js";export{a as getStoreScript,b as clearStoreCache};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{ov as H}from"./chunk-6bcw8twx.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...v){let w=new Set;for(let q of v){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{w.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...w].sort()}async function T(v,w={}){if(v.length===0)return null;let q=process.cwd(),z=[],J=[];v.forEach((j,X)=>{let Z=j.startsWith("npm:")?j.slice(4):P.resolve(q,j),N=`__stxRegistered${X}`,O=JSON.stringify(j);z.push(`import * as ${N} from ${JSON.stringify(Z)};`),J.push(`if (!globalThis.__stxModules[${O}]) globalThis.__stxModules[${O}] = ${N};`)});let L=[...z,"globalThis.__stxModules = globalThis.__stxModules || {};",...J].join(`
|
|
3
|
-
`),B;try{let{bundleClientScript:j}=await import("./chunk-
|
|
3
|
+
`),B;try{let{bundleClientScript:j}=await import("./chunk-dr5q6kpc.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-kd25rwsv.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-jv41s3xp.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
|
|
4
4
|
`)}export{G as registeredModuleIdsIn,T as buildModuleRegistryScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as wl,$a as rn,$b as Jo,$c as Jp,$d as Jq,A as gk,Aa as Bm,Ab as bo,Ac as ip,Ad as iq,Ae as or,B as hk,Ba as Cm,Bb as co,Bc as jp,Bd as jq,Be as pr,C as ik,Ca as Pm,Cb as eo,Cc as kp,Cd as kq,Ce as qr,D as jk,Da as Qm,Db as fo,Dc as lp,Dd as lq,De as rr,E as $k,Ea as Rm,Eb as go,Ec as mp,Ed as mq,Ee as sr,F as al,Fa as Sm,Fb as ho,Fc as np,Fd as nq,Fe as tr,G as bl,Ga as Tm,Gb as io,Gc as op,Gd as oq,Ge as ur,H as cl,Ha as Um,Hb as jo,Hc as pp,Hd as pq,He as vr,I as dl,Ia as Ym,Ib as ko,Ic as qp,Id as qq,Ie as wr,J as el,Ja as Zm,Jb as lo,Jc as rp,Jd as rq,Je as xr,K as fl,Ka as _m,Kb as mo,Kc as sp,Kd as sq,Ke as yr,L as gl,La as $m,Lb as no,Lc as tp,Ld as tq,Le as zr,M as hl,Ma as an,Mb as uo,Mc as up,Md as uq,Me as Ar,N as il,Na as bn,Nb as vo,Nc as vp,Nd as vq,Ne as Br,O as jl,Oa as cn,Ob as wo,Oc as wp,Od as wq,Oe as Cr,P as kl,Pa as dn,Pb as xo,Pc as xp,Pd as xq,Pe as Dr,Q as ll,Qa as en,Qb as yo,Qc as yp,Qd as yq,Qe as Er,R as ml,Ra as fn,Rb as zo,Rc as zp,Rd as zq,Re as Fr,S as nl,Sa as gn,Sb as Ao,Sc as Ap,Sd as Aq,Se as Gr,T as ol,Ta as hn,Tb as Bo,Tc as Bp,Td as Bq,Te as Hr,U as pl,Ua as jn,Ub as Co,Uc as Cp,Ud as Cq,Ue as Ir,V as ql,Va as kn,Vb as Do,Vc as Dp,Vd as Dq,Ve as Jr,W as rl,Wa as mn,Wb as Eo,Wc as Ep,Wd as Eq,We as Kr,X as sl,Xa as nn,Xb as Fo,Xc as Fp,Xd as Fq,Y as tl,Ya as on,Yb as Go,Yc as Gp,Yd as Gq,Z as ul,Za as pn,Zb as Ho,Zc as Hp,Zd as Hq,_ as vl,_a as qn,_b as Io,_c as Ip,_d as Iq,aa as xl,ab as sn,ac as Ko,ad as Kp,ae as Kq,ba as yl,bb as tn,bc as Lo,bd as Lp,be as Lq,ca as zl,cb as un,cc as Mo,cd as Mp,ce as Mq,da as Al,db as vn,dc as No,dd as Np,de as Nq,ea as Bl,eb as wn,ec as Oo,ed as Op,ee as Oq,fa as Cl,fb as xn,fc as Po,fd as Pp,fe as Pq,ga as Dl,gb as yn,gc as Qo,gd as Qp,ge as Qq,ha as El,hb as zn,hc as Ro,hd as Rp,he as Rq,ia as Fl,ib as An,ic as So,id as Sp,ie as Sq,ja as Gl,jb as Bn,jc as To,jd as Tp,je as Tq,ka as Hl,kb as Cn,kc as Uo,kd as Up,ke as Uq,la as Il,lb as Dn,lc as Vo,ld as Vp,le as Vq,ma as Jl,mb as En,mc as Wo,md as Wp,me as Wq,na as Kl,nb as Hn,nc as Xo,nd as Xp,ne as br,o as a,oa as Ll,ob as In,oc as Yo,od as Yp,oe as cr,p as Tj,pa as qm,pb as Jn,pc as Zo,pd as Zp,pe as dr,q as Uj,qa as rm,qb as Kn,qc as _o,qd as _p,qe as er,r as Vj,ra as sm,rb as Qn,rc as $o,rd as $p,re as fr,s as Wj,sa as tm,sb as Rn,sc as ap,sd as aq,se as gr,t as Xj,ta as um,tb as Sn,tc as bp,td as bq,te as hr,u as Yj,ua as vm,ub as Tn,uc as cp,ud as cq,ue as ir,v as Zj,va as wm,vb as Yn,vc as dp,vd as dq,ve as jr,w as _j,wa as xm,wb as Zn,wc as ep,wd as eq,we as kr,x as $j,xa as ym,xb as _n,xc as fp,xd as fq,xe as lr,y as ek,ya as zm,yb as $n,yc as gp,yd as gq,ye as mr,z as fk,za as Am,zb as ao,zc as hp,zd as hq,ze as nr}from"./chunk-gfrznj5v.js";import{Xe as Ln}from"./chunk-sqqwas4j.js";import{$e as ln,Ye as Vm,Ze as Wm,_e as Xm,af as Mn,bf as Nn,cf as On,df as Pn,ef as Un,ff as Vn,gf as Wn,hf as Xn}from"./chunk-pt902dd9.js";import{if as kk,jf as lk,kf as mk,lf as nk,mf as ok,nf as pk,of as qk,pf as rk,qf as sk,rf as tk,sf as uk,tf as vk,uf as wk,vf as xk,wf as yk}from"./chunk-ps20v1ah.js";import{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,xf as Pk,yf as Qk,zf as Rk}from"./chunk-kpgvx2p1.js";import{Jf as oo,Kf as po,Lf as qo,Mf as ro,Nf as so,Of as to}from"./chunk-2d9yq3m4.js";import{Pf as Fn,Qf as Gn}from"./chunk-mjpqz66q.js";import{Rf as em,Sf as fm,Tf as gm,Uf as hm,Vf as km,Wf as om}from"./chunk-k4v9k7vj.js";import{$f as Ql,Xf as Ml,Yf as Nl,Zf as Ol,_f as Pl,ag as Rl,bg as Sl,cg as Tl,dg as Ul,eg as Vl,fg as Wl,gg as Xl,hg as Yl,ig as Zl,jg as _l,kg as $l,lg as lm,mg as mm,ng as nm}from"./chunk-trpmf02p.js";import{og as im,rg as jm}from"./chunk-yq903p32.js";import{Ag as Em,Bg as Fm,Cg as Gm,Dg as Hm,Eg as Im,Fg as Jm,Gg as Km,Hg as Lm,Ig as Mm,Jg as Nm,Kg as Om,zg as Dm}from"./chunk-634gaa9d.js";import{Lg as Nk,Mg as Ok}from"./chunk-mzbnczgk.js";import{Ng as pm}from"./chunk-ykgj5w4g.js";import{Og as Dh,Pg as Eh,Qg as Fh,Rg as Gh,Sg as Hh,Tg as Ih}from"./chunk-p2aa1ak4.js";import{$g as $i,Ug as Xi,Vg as Yi,Wg as Zi,_g as _i,ah as aj}from"./chunk-shem708r.js";import{bh as gj,ch as hj,dh as ij,eh as jj,fh as kj,gh as lj,hh as mj,ih as nj,jh as oj,kh as pj,lh as qj}from"./chunk-5c8f2rt7.js";import{mh as Ni,nh as Oi,oh as Pi,ph as Qi,qh as Ri,sh as Si,th as Ti,uh as Ui,vh as Vi,wh as Wi}from"./chunk-6rzwef28.js";import{xh as Ij,zh as Jj}from"./chunk-683tfkz4.js";import{Fh as zk,Gh as Ak,Hh as Bk,Ih as Ck,Jh as Dk,Kh as Ek,Lh as Fk,Nh as Gk,Oh as Hk,Ph as Ik,Qh as Jk,Rh as Kk,Sh as Lk,Vh as Mk}from"./chunk-x14vvxfh.js";import{$h as jh,Wh as eh,Xh as fh,Yh as gh,Zh as hh,_h as ih,ai as kh,bi as lh,ci as mh,di as nh,ei as oh,fi as ph,gi as qh,hi as rh}from"./chunk-3bc8bqw2.js";import{ji as sh,ki as th,li as uh,mi as vh}from"./chunk-7eg7ep8f.js";import{ri as wh}from"./chunk-y9nyqcha.js";import{si as Ag}from"./chunk-qg6pg6ze.js";import{ti as Bg,ui as Cg}from"./chunk-6w8fa3b8.js";import{Ai as Ig,vi as Dg,wi as Eg,xi as Fg,yi as Gg,zi as Hg}from"./chunk-v8474ah4.js";import{Bi as Jg,Ci as Kg,Di as Lg,Ei as Mg,Fi as Ng}from"./chunk-x4prtyjs.js";import{Gi as Og,Hi as Pg,Ii as Qg,Ji as Rg,Ki as Sg}from"./chunk-6btbgxh1.js";import{Li as Tg,Mi as Ug,Ni as Vg,Oi as Wg,Pi as Xg,Qi as Yg,Ri as Zg}from"./chunk-ctz53mbz.js";import{Si as _g,Ti as $g,Ui as ah,Vi as bh,Wi as ch,Xi as dh}from"./chunk-weqpt9nt.js";import{Zi as xg,_i as yg}from"./chunk-rn2nsn9e.js";import{bj as zg}from"./chunk-9k5p10e4.js";import"./chunk-91007tan.js";import{fj as ue,gj as ve,hj as we,ij as xe,jj as ye,kj as ze,lj as Ae,mj as Be,nj as Ce,oj as De,pj as Ee,qj as Fe,rj as Ge,sj as He}from"./chunk-18kcg747.js";import{tj as Ye,uj as Ze}from"./chunk-mq0vtxe6.js";import{Bj as Ke,Cj as Le,Dj as Me,Ej as Ne,Fj as Oe,Gj as Pe,Hj as Qe,Ij as Re,Jj as Se,Kj as Te,Lj as Ue,Mj as Ve,Nj as We,Oj as Xe}from"./chunk-w8yac9xp.js";import{Pj as _e,Qj as $e,Rj as af,Sj as bf,Tj as cf,Uj as df,Vj as ef,Wj as ff,Xj as gf,Yj as hf,Zj as jf,_j as kf}from"./chunk-gn6m4f5p.js";import{sk as Xq,tk as Yq,uk as Zq,vk as _q,wk as $q,xk as ar}from"./chunk-7wh0eyz9.js";import{Ak as ck,Bk as dk,Ck as am,Dk as bm,Ek as cm,Fk as dm,yk as ak,zk as bk}from"./chunk-m8qcap5h.js";import"./chunk-7eea1cse.js";import"./chunk-r19ajkwr.js";import{$l as _b,$m as bd,$n as te,$o as Nf,$p as Th,$q as Bj,Al as Ia,Am as xc,An as Cd,Ao as nf,Ap as mg,Aq as Bi,Bl as Ja,Bm as yc,Bn as Dd,Bp as ng,Bq as Ci,Cl as Ka,Cm as Fc,Cn as Ed,Co as of,Cp as og,Cq as Di,Dl as La,Dm as Gc,Dn as Fd,Do as pf,Dp as pg,Dq as Ei,El as Ma,Em as Hc,En as Gd,Eo as qf,Ep as qg,Eq as Fi,Fl as Na,Fm as Ic,Fn as Hd,Fo as rf,Fp as rg,Fq as Gi,Gl as Oa,Gm as Jc,Gn as Yd,Go as sf,Gp as sg,Gq as Hi,Hl as ib,Hm as Kc,Hn as Zd,Ho as tf,Hp as tg,Hq as Ii,Il as jb,Im as Lc,In as _d,Io as uf,Ip as ug,Iq as Ji,Jl as kb,Jn as $d,Jo as vf,Jp as vg,Jq as Ki,Kl as lb,Km as Mc,Kn as ae,Ko as wf,Kp as wg,Kq as Li,Ll as mb,Lm as Nc,Ln as be,Lo as xf,Lp as xh,Lq as Mi,Ml as nb,Mm as Oc,Mn as ce,Mo as yf,Mp as yh,Mq as bj,Nm as Pc,Nn as de,No as zf,Np as zh,Nq as cj,Om as Qc,On as ee,Oo as Af,Op as Ah,Oq as dj,Pl as Fb,Pm as Rc,Pn as fe,Po as Bf,Pp as Bh,Pq as ej,Ql as Gb,Qm as Sc,Qn as ge,Qo as Cf,Qp as Ch,Qq as fj,Rl as Hb,Rm as Tc,Rn as he,Ro as Df,Rp as Jh,Rq as rj,Sl as Ib,Sm as Uc,Sn as ie,So as Ef,Sp as Kh,Sq as sj,Tl as Jb,Tm as Vc,Tn as je,To as Ff,Tp as Lh,Tq as tj,Ul as Nb,Um as Wc,Uo as Gf,Up as Mh,Uq as uj,Vl as Ob,Vm as Xc,Vn as ne,Vo as Hf,Vp as Nh,Vq as vj,Wl as Pb,Wm as Yc,Wn as oe,Wo as If,Wp as Oh,Wq as wj,Xl as Wb,Xm as Zc,Xn as pe,Xo as Jf,Xp as Ph,Xq as xj,Yl as Xb,Ym as _c,Yn as qe,Yo as Kf,Yp as Qh,Yq as yj,Zl as Yb,Zm as $c,Zn as re,Zo as Lf,Zp as Rh,Zq as zj,_l as Zb,_m as ad,_n as se,_o as Mf,_p as Sh,_q as Aj,am as $b,an as cd,ap as Of,aq as Uh,ar as Cj,bm as ac,bn as dd,bp as Pf,bq as Vh,br as Dj,cm as bc,cn as ed,cp as Qf,cq as Wh,cr as Ej,dm as cc,dn as fd,do as Ie,dp as Rf,dq as Xh,dr as Fj,em as dc,en as gd,eo as Je,ep as Sf,eq as Yh,er as Gj,fm as ec,fn as hd,fp as Tf,fq as Zh,fr as Hj,gm as fc,gn as id,go as lf,gp as Uf,gq as hi,gr as Kj,hm as gc,hn as jd,hp as Vf,hq as ii,hr as Lj,im as hc,in as kd,ip as Wf,iq as ji,ir as Mj,jm as ic,jn as ld,jp as Xf,jq as ki,jr as Nj,km as jc,kn as md,kp as Yf,kq as li,kr as Oj,ln as nd,lp as Zf,lq as mi,lr as Pj,mn as od,mp as _f,mq as ni,mr as Qj,nm as kc,nn as pd,np as $f,nq as oi,nr as Rj,om as lc,on as qd,op as ag,oq as pi,or as Sj,pl as xa,pm as mc,pn as rd,pp as bg,pq as qi,ql as ya,qm as nc,qn as sd,qp as cg,qq as ri,rl as za,rm as oc,rn as td,rp as dg,rq as si,sl as Aa,sm as pc,sn as ud,sp as eg,sq as ti,tl as Ba,tm as qc,tn as vd,tp as fg,tq as ui,ul as Ca,um as rc,un as wd,up as gg,uq as vi,vl as Da,vm as sc,vn as xd,vp as hg,vq as wi,wl as Ea,wm as tc,wn as yd,wp as ig,wq as xi,xl as Fa,xm as uc,xn as zd,xp as jg,xq as yi,yl as Ga,ym as vc,yn as Ad,yo as mf,yp as kg,yq as zi,zl as Ha,zm as wc,zn as Bd,zp as lg,zq as Ai}from"./chunk-17389q0t.js";import{Ar as m,As as ea,Br as n,Bs as fa,Cr as o,Cs as ia,Dr as p,Ds as ja,Er as q,Es as ka,Fr as r,Fs as la,Gr as s,Gs as ma,Hr as t,Hs as na,Ir as u,Is as oa,Jr as v,Js as pa,Kr as w,Ks as qa,Lr as x,Ls as ra,Mr as y,Ms as sa,Nr as z,Ns as ta,Or as A,Os as ua,Pr as B,Ps as va,Qr as C,Qs as wa,Rr as D,Sr as E,Tr as F,Ur as G,Vr as H,Wr as I,Xr as J,Yr as K,Zr as L,gs as M,hs as N,is as O,js as P,ks as Q,ls as R,ms as S,ns as T,os as U,pr as b,ps as V,qr as c,qs as W,rr as d,rs as X,sr as e,ss as Y,tr as f,ts as Z,ur as g,us as _,vr as h,vs as $,wr as i,ws as aa,xr as j,xs as ba,yr as k,ys as ca,zr as l,zs as da}from"./chunk-6xbscz34.js";import{Rs as _h,Ss as $h,Ts as ai,Us as bi,Vs as ci,Ws as di,Xs as ei,Ys as fi,Zs as gi}from"./chunk-bkbr9yz2.js";import{$s as ha,_s as ga}from"./chunk-nn4k6hvv.js";import{at as Kb,bt as Lb,ct as Mb}from"./chunk-1zyqv8p8.js";import{dt as ke,et as le,ft as me}from"./chunk-1zvyq6jj.js";import{At as Cc,Bt as Dc,Ct as Ec,ot as zc,pt as Ac,rt as Bc}from"./chunk-snsb8nm6.js";import{Dt as Qb,Et as Rb,Ft as Sb,Gt as Tb,Ht as Ub,It as Vb}from"./chunk-v4vvm7mz.js";import{Jt as Id,Kt as Jd,Lt as Kd,Mt as Ld,Nt as Md,Ot as Nd,Pt as Od,Qt as Pd,Rt as Qd,St as Rd,Tt as Sd,Ut as Td,Vt as Ud,Wt as Vd,Xt as Wd,Yt as Xd}from"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import{cu as ob,du as pb,eu as qb,fu as rb,gu as sb,hu as tb,iu as ub,ju as vb,ku as wb,lu as xb,mu as yb,nu as zb,ou as Ab,pu as Bb,qu as Cb,ru as Db,su as Eb}from"./chunk-ze3qgdaf.js";import{Au as Ra,Fu as Sa,Gu as Ta,Mu as Ua,Nu as Va,Ou as Wa,Pu as Xa,Qu as Ya,Ru as Za,Su as _a,Tu as $a,Uu as ab,Vu as bb,Wu as cb,Xu as db,Yu as eb,Zu as fb,_u as gb,av as hb,wu as Pa,xu as Qa}from"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.js";export{uk as writeNetlifyConfig,mm as writeManifest,Zk as writeImageManifest,Do as wrapComponentForHMR,xr as withDefaults,Hj as webComponentDirectiveHandler,sp as watermark,uq as watchViews,hl as watchMultiple,il as watchEffect,gl as watch,re as warmImagePlaceholders,vl as waitForStore,X as waitForLocale,po as virtualPathFor,uj as videoDirective,G as validators,Br as validated,he as validateValueEnhanced,yh as validateTemplate,xp as validateParams,ie as validateFormEnhanced,jq as validateFile,de as validateFields,ce as validateField,Ah as validateDirective,Cd as validateCspDirectives,Pj as validateConfig,rm as validateComponentScripts,Pm as validateComponentProps,wg as validateClientScript,vh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Nh as userComponentFileExists,bh as useVirtualList,Qd as useTitle,ul as useStoreOrThrow,Vo as useStore,ek as useStorage,Fq as useSlots,gk as useSessionStorage,Nd as useSeoMeta,wl as useRouteParams,yl as useRouteParamOrThrow,xl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,Al as useMiddlewareValue,zl as useMiddlewareState,fk as useLocalStorage,wo as useLoadingIndicator,Ld as useHead,sh as useForm,Hq as useAttrs,lq as uploadFiles,kq as uploadFile,rl as updateInstance,Ve as untrack,bi as unregisterDirective,sl as unmountInstance,yc as unescapeHtml,so as typecheckStxFiles,Mh as transpileTypeScript,kr as translate,Ba as transitionDirective,_b as transformAutoImports,Jm as toUsers,Im as toUser,bp as thumbnail,cq as thumbHashToRGBA,dq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,Ao as stxClientHelpers,Gf as structuredDataDirective,nr as stripLocalePrefix,Zl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,vn as stringToStream,qd as strictCspPreset,Ce as streamingSuspenseDirective,Ge as streamToResponse,Ae as streamTemplateSimple,ue as streamTemplate,$j as stopHmrServer,Fm as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,qg as startsDocument,Xn as startProductionServer,Ln as startInteractive,Em as startBroadcasting,pr as stampLocaleLayoutGroup,Ia as staggerDirective,vp as srcsetUrls,Ja as springDirective,$c as splitByPipe,Vl as spaNavVaryHeaders,qo as sourcePathFor,Cp as smartBatchSign,Ph as slotContentHasExpressions,Ap as signUrl,Kh as shouldTranspileTypeScript,Yj as shouldReloadOnChange,Fp as shouldRefreshSignature,Zj as shouldIgnoreFile,Vg as shouldCacheComponent,fp as sharpen,Er as shape,Sb as setStateDir,El as setRouteParams,Fl as setMiddlewareState,qe as setImagePlaceholder,zq as setGlobalProvide,b as setErrorLocale,$k as setCurrentInstance,ij as setCachedVideoResult,Zi as setCachedImageResult,Ti as setCached,Hr as serveStxFile,Jr as serveMultipleStxFiles,Tj as serveMarkdownFile,go as serveFile,Kr as serveApp,fo as serve,Go as serializeState,ln as serializeSetCookie,hp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,yj as scopeHTML,xj as scopeCSS,Jf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,lp as saturation,yp as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,zf as runPreProcessingMiddleware,Af as runPostProcessingMiddleware,On as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,pl as runHooks,dr as runDoctor,Re as runDestroyCallbacks,Of as runComposers,mp as rotate,wh as rewriteImagesWithSiblings,Vc as responseBindings,Th as resolveTemplatePath,ha as resolveStxTargets,Lj as resolveStxDirectories,jr as resolveI18n,$o as resize,ec as resetPlaceholders,Kd as resetHead,Fo as resetHMRHandler,o as resetErrorConfig,zr as required,ic as replacePlaceholders,sq as renderView,rj as renderVideoComponent,Xb as renderVendorStyleTags,Oq as renderToString,Pq as renderToStream,Qq as renderToDOM,bq as renderThumbhashToCanvas,ar as renderTemplateString,_q as renderTemplate,$q as renderString,xe as renderStreamingPage,Fh as renderSlot,Lg as renderSSRSuspense,Np as renderProtectedVideo,Mp as renderProtectedImg,zp as renderMediaUpload,Zq as renderMarkdownView,cm as renderLayoutTypes,bj as renderImgComponent,Pk as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,vq as renderEmail,Rh as renderComponentWithSlot,Td as renderBodyAttrs,Qo as render,sd as relaxedCspPreset,be as registerValidationRule,Ee as registerStreamingDirectives,Xo as registerStoresClient,Cl as registerStore,Hf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,_h as registerDirective,Bd as registerCspDirectives,Sm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,dl as ref,Dn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Rj as readMarkdownFile,$e as readFileCached,el as reactive,qp as quality,Kp as pruneSignatureCache,Wi as pruneCache,xq as provide,Yq as protectCodeBlocks,yr as prop,Rf as processVueTemplate,$g as processVirtualListDirectives,dh as processVirtualGridDirectives,qj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Fg as processTransitionDirectives,Ig as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Bg as processTeleportDirectives,Jg as processSuspenseDirectives,Cf as processStructuredData,ye as processStreamDirectives,Wc as processStatusDirective,qh as processStaticDirectives,xf as processStackReplacements,wf as processStackPushDirectives,Gh as processSlots,Xl as processShell,te as processServerBindings,Df as processSeoDirective,Fe as processSectionDirectives,Uf as processScopedStyles,Gc as processReactiveBindings,Op as processProtectedMedia,jh as processPartialHydrationDirectives,vg as processOnceDirective,yf as processMiddleware,Bf as processMetaDirectives,Xd as processMetaDirective,Sj as processMarkdownFileDirectives,Yh as processMarkdownDirectives,rf as processLoops,Tg as processKeepAliveDirectives,ug as processJsonDirective,ch as processInfiniteListDirectives,vf as processIncludes,dj as processImgComponents,Rk as processImageComponents,Ek as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Sf as processDynamicComponents,xh as processDirectives,gi as processDirectiveAttributes,Ag as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Fr as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Og as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,me as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,vo as preloadIslandHandlers,se as preloadIconCollection,Am as poolStrings,Jj as pluginManager,oe as placeholdersWarmed,Eg as performLeave,Dg as performEnter,Se as pendingLifecycleCounts,We as peek,sf as partialsCache,sj as parseVideoDirectiveOptions,Zo as parseUrl,eq as parseThumbhashString,fd as parseSwitchBlock,Dh as parseSlots,Eh as parseSlotElement,kd as parseScriptDeclarations,Fj as parseSFCComponent,Pp as parseProtectedArgs,qf as parseLoopBinding,cj as parseImgComponent,ui as parseImageUrl,Qk as parseImageComponent,Mn as parseFormBody,hd as parseExpressionWithFilters,Tm as parseDefaults,An as parseCookies,Ol as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,Ar as optional,Bm as optimizeTemplate,Wk as optimizeImage,Xk as optimizeDirectory,Cr as oneOf,tf as onceStore,ml as onUpdated,Fc as onUpdate,ol as onUnmounted,Jl as onServer,kl as onMounted,Oe as onMount,ph as onHydrated,Dq as onErrorCaptured,Pe as onDestroy,Zg as onDeactivated,Il as onClient,ll as onBeforeUpdate,nl as onBeforeUnmount,jl as onBeforeMount,Yg as onActivated,Zp as observeElement,En as notFound,Zf as normalizeCriticalHeadOrder,Cq as nextTick,Wm as negotiateEncoding,Ua as navigateTo,ql as mountInstance,Ea as motionDirective,rd as moderateCspPreset,zm as minifyHtml,Ff as metaDirective,ig as metaDedupKey,_o as mergeParams,kg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Zh as markdownDirectiveHandler,Qj as markdownCache,ga as looksLikeGlob,mr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Mj as loadStxConfig,db as loadMiddlewareFromDirectory,nm as loadManifest,Vp as loadElement,Gm as loadChannels,tr as lintStxStrict,Xp as lazyLoadAll,Wp as lazyLoad,Ha as keyframeDirective,Mq as jsxs,Nq as jsxDEV,Lq as jsx,Cn as jsonResponse,De as islandDirective,l as isTest,_l as isSpaNavigation,Tl as isSpaNavRequest,Dp as isSignatureValid,Te as isSignal,Ck as isSharpAvailable,on as isServerEnvironment,Gl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Sp as isNativeLazySupported,Xq as isMarkdownPath,Q as isLoading,R as isLoaded,Jh as isJavaScriptScript,Tp as isIntersectionObserverSupported,Kk as isImageFile,Dk as isImageBackendAvailable,aa as isICUFormat,oh as isHydrated,Oh as isHydrateTrigger,Oc as isHttpStatus,nn as isEdgeEnvironment,ur as isDirectiveKind,k as isDevelopment,Ue as isDerived,Xj as isCssOnlyChange,Vm as isCompressible,Hl as isClient,Qg as isAsyncComponent,Nn as isActionableMethod,ip as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,ir as injectThemeBootstrap,Ef as injectSeoTags,fr as injectSeo,lf as injectRouterScript,Wj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,sg as injectConfigHeadTags,Yf as injectColorModeBootScript,mg as injectCloakStyle,dg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,yq as inject,Bl as initStoreRegistry,xk as initNetlify,xo as initLoadingIndicator,Up as initLazyLoading,Kn as initFile,aq as initBlurUp,gq as initAllBlurUp,fj as imgDirective,Uk as imageDirective,Vn as hydrateTemplateStream,Un as hydrateTemplate,uo as hydrateIslands,lh as hydrateIsland,Wn as hydrateFragment,mh as hydrateByStrategy,nh as hydrateAll,No as hydrate,eo as htmlResponse,og as hoistLeadingHeadTags,_f as hoistColorModeBootScript,lb as heatmapDirective,Pi as hashString,kf as hashFilePath,Ni as hashFile,Oi as hashBuffer,Qf as hasVueTemplateSyntax,pf as hasVariables,So as hasStore,jc as hasPlaceholders,vk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,rg as hasDocumentShell,Bh as hasDirectives,ma as hasDOMSupport,Nk as handleImageRequest,Eq as handleError,Uq as h,Jk as groupVariantsByFormat,gp as grayscale,Yn as gitHash,tm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,qk as getTotalSize,Ep as getTimeUntilExpiry,xg as getStoreScript,To as getStoreNames,Ro as getStore,jk as getStorageSize,ik as getStorageKeys,Uh as getSourceLineInfo,Lh as getSharedTranspiler,ff as getServeClientAsset,la as getScreenReaderOnlyStyle,zj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,zh as getPositionInfo,gc as getPlaceholderRegistry,Mi as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Lk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ne as getImagePlaceholder,Fk as getImageMetadata,ke as getImageDelivery,Mo as getHydrationRuntime,Dl as getHydratedStoreState,_j as getHmrServer,Id as getHead,Eo as getHMRHandler,yi as getFormatExtension,Ri as getFileMtime,Ik as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,ai as getDirectives,$h as getDirective,al as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Xh as getComponentCacheStats,hj as getCachedVideoResult,Ip as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ki as getCachedPlaceholder,Yi as getCachedImageResult,Si as getCached,Vi as getCacheStats,bg as getBuildId,Dm as getBroadcastServer,xi as getBestVariant,nc as getAllFilters,li as generateWidthSrcset,ah as generateVirtualListCSS,nq as generateVideoPreview,je as generateValidationScript,oq as generateUploadRuntime,um as generateTreeShakenBundle,Hg as generateTransitionRuntime,Gg as generateTransitionCSS,lj as generateThumbnails,Di as generateThumbhashPlaceholder,dn as generateTemplatesDocs,Ng as generateSuspenseRuntime,Mg as generateSuspenseCSS,Ho as generateStateScript,vi as generateSrcsetData,aj as generateSrcset,Gk as generateSrcSet,mj as generateSpriteSheet,wq as generateSpaShell,wi as generateSourceTags,ri as generateSizesFromBreakpoints,qi as generateSizesAttribute,Hk as generateSizes,If as generateSitemapIndex,gr as generateSitemap,Rp as generateSimpleMediaPicker,Lp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,wj as generateScopeId,Gj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Kf as generateRobotsTxt,hr as generateRobots,$i as generateResponsiveVariants,Cj as generateReactiveWebComponentTS,Bj as generateReactiveWebComponent,Ej as generateReactiveRuntime,Dj as generateReactiveMixin,kj as generatePoster,Ji as generatePlaceholderStyle,Ii as generatePlaceholderCSS,Ci as generatePlaceholder,kh as generatePartialHydrationCSS,ld as generateNonce,rk as generateNetlifyToml,qq as generateMinifiedMediaRuntime,pq as generateMediaRuntime,Qp as generateMediaManagerEmbed,lm as generateManifest,zo as generateLoadingIndicatorHtml,$p as generateLazyLoadRuntime,dm as generateLayoutTypes,Fi as generateLQIP,Xg as generateKeepAliveRuntime,Wg as generateKeepAliveCSS,rh as generateIslandManifest,mq as generateImagePreview,Yk as generateImageManifest,Lo as generateHydrationScript,He as generateHydrationRuntime,Oo as generateHydrationCSS,eh as generateHydrationBootstrap,Vj as generateHotReloadScript,jb as generateHeatmapScript,Co as generateHMRClientScript,nj as generateHLSManifest,Io as generateEventBindings,pi as generateDprSrcsetWithVariableQuality,oi as generateDprSrcset,pg as generateDocumentShell,jn as generateDocs,en as generateDirectivesDocs,fi as generateDirectiveRuntime,Lf as generateDefaultRobotsTxt,oj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Jq as generateCompositionRuntime,cn as generateComponentsDocs,fh as generateComponentManifest,an as generateComponentDoc,Hi as generateColorPlaceholder,Xf as generateColorModeBootScript,tl as generateClientRuntime,Qi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,hq as generateBlurUpRuntime,iq as generateBlurUpCSS,Hc as generateBindingsRuntime,mi as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Sg as generateAsyncComponentRuntime,Rg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,to as formatTypecheckDiagnostics,no as formatTypeErrors,Hn as formatStxContent,pk as formatSize,Ta as formatRoutes,In as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,er as formatDoctorReport,fn as formatDocsAsMarkdown,hn as formatDocsAsJson,gn as formatDocsAsHtml,pp as format,ym as foldConstants,op as flipVertical,np as flipHorizontal,em as fingerprint,ro as findRuntimeTypeDeclarations,cr as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,vm as findDeadCode,vm as findDeadBranches,Pl as findContainerRegion,bn as findComponentFiles,Ir as findCommonDir,ok as filterRequiredFiles,Sh as fileExists,mf as extractVariables,jm as extractTemplateExpressions,ze as extractStreamBoundaries,Jo as extractState,Hh as extractSlotContent,of as extractScriptFromTemplate,im as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Gi as extractDominantColor,jd as extractDirectiveParams,Ch as extractDirectiveNames,$l as extractContainerContent,_m as extractComponentProps,gh as extractComponentName,$m as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,hh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,Aj as extractAndScopeStyles,Hb as extractAndProcessEvents,ck as externalizeSharedAssets,dk as externalizeRepeatedAssets,bk as externalizeHtml,xc as evaluateExpression,xm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Cg as ensureTeleportTargets,tg as ensureDocumentShell,fe as enhancedValidationRules,Ym as enableDevTools,wm as eliminateDeadCode,Me as effect,wp as dprUrls,kn as docsCommand,bm as discoverLayoutNames,_p as disconnectObserver,Zm as disableDevTools,F as devHelpers,Wl as detectShell,mn as detectRuntime,sk as detectProjectConfig,zi as detectFormat,qm as detectBuildMode,Le as derived,wk as deploy,Oj as defineStxConfig,Wo as defineStore,Gq as defineSlots,sr as defineSiteConfig,wr as definePropsWithValidation,vr as defineProps,Ij as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,th as defineForm,Bq as defineExpose,Aq as defineEmits,ci as defineDirective,Wq as defineCustomElement,Tn as defineConfig,di as defineClientDirective,Pg as defineAsyncComponent,rq as defaultMediaConfig,_k as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Kj as defaultConfig,Gr as default,zc as deepMergeThemes,Tf as dedupeScopedStyles,Sl as decodeTitleEntities,Ei as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,fq as crossfadeTransition,ap as crop,_g as createVirtualList,tj as createVideoDirective,yn as createVercelHandler,ko as createTypeChecker,fa as createTranslateFilter,un as createTextEncoderStream,Vq as createStxApp,tn as createStreamingResponse,Be as createStreamRenderer,Uo as createStore,Za as createStorageManager,Xa as createServerCookieManager,cl as createScope,Kg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,io as createRoute,dl as createRef,el as createReactive,Iq as createProvideContext,_n as createProject,Sn as createProductionBuild,fc as createPlaceholder,Cm as createOptimizedBuild,zn as createNetlifyHandler,kk as createNetlifyClient,fb as createMiddlewareContext,ho as createMiddleware,Yp as createLazyObserver,Ug as createKeepAliveCache,qn as createKVNamespace,ih as createIslandRegistry,ej as createImgDirective,Vk as createImagePlugin,Ok as createImageHandler,Tk as createImageDirective,nb as createHeatmapAggregator,nk as createFileManifest,pn as createEnvAccessor,z as createEnhancedError,sn as createEdgeHandler,rn as createEdgeCache,Vh as createDetailedErrorMessage,xn as createDenoHandler,tk as createDefaultNetlifyConfig,Ed as createCspHeaders,Bn as createCookie,fl as createComputed,bl as createComponentInstance,wn as createCloudflareHandler,Ya as createClientCookieManager,ei as createBuiltinDirectives,Vq as createApp,Ka as createAnimationTimeline,dp as cover,nf as convertToCommonJS,kp as contrast,cp as contain,y as consoleError,m as configureErrorHandling,Nj as config,fl as computed,Xm as compressResponse,Nf as composerPattern,Mf as composer,Yl as composeShellWithPage,Rm as componentDirective,Qh as componentClientSignalNames,km as compileTemplate,a as collectRepeatedFlag,mk as collectDeployFiles,ng as cloakStyleFragment,jj as clearVideoCache,N as clearTranslationCache,yg as clearStoreCache,hk as clearStorage,Jp as clearSignatureCache,Li as clearPlaceholderCache,uf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,pe as clearImagePlaceholders,le as clearImageDeliveryCatalog,Sk as clearImageCache,e as clearErrorMessages,gf as clearDevCaches,oc as clearCustomFilters,Pf as clearComposers,zg as clearComposableCache,Wh as clearComponentCache,Ui as clearCache,Db as clearBlankCache,yo as cleanupLoadingIndicator,Ml as classifyScript,Nl as classifyAllScripts,lo as checkTemplateFile,mo as checkTemplate,hf as checkCache,Gp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Mm as channel,Gn as captureScreenshots,Fn as captureScreenshot,Z as cancelPendingLoads,lk as calculateSha1,ni as calculateOptimalWidths,jf as cacheTemplate,vj as buildWebComponents,oo as buildVirtualSource,tq as buildViews,Yo as buildUrl,ve as buildSuspenseResolveScript,rr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,fm as buildRuntimeAsset,gm as buildRouterAsset,qr as buildLangPickerScript,ti as buildImageUrl,eg as buildIdFragment,jg as buildHtmlAttrs,om as buildForProduction,Um as buildComponentLibrary,Hp as buildAuthParams,pm as buildApp,or as buildAlternateLinks,Rn as build,Km as broadcastPrivate,Lm as broadcastPresence,Hm as broadcast,jp as brightness,Mb as bracketDepths,ep as blur,Eb as blankInertHtmlRegions,Bp as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,rp as auto,ja as attributeValue,hm as assetTags,Fb as asInvocableStatement,Dr as arrayOf,lr as applyTranslations,_i as applyTransformations,Ih as applySlots,Qm as applyPropDefaults,up as applyPreset,lg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Ul as appendVary,td as apiCspPreset,Da as animationGroupDirective,pj as analyzeVideo,sm as analyzeUsage,Kl as analyzeTemplate,Ll as analyzeProject,sm as analyzeDirectiveUsage,Lc as analyticsDirective,bo as addStore,ao as addPage,xd as addNonceToInlineContent,co as addLayout,$n as addComponent,Pn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,cg as __setBuildIdForTest,gj as VideoProcessorCache,uh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,jo as TemplateTypeChecker,Jn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Rq as Show,we as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Ql as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Mc as RESPONSE_STATUS_KEY,Nc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Qn as ProductionBuild,Tq as Portal,Zn as PROJECT_TEMPLATES,tp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Po as MemorySessionStore,ki as MIME_TYPES,hi as MEDIA_DEFAULT_WIDTHS,ji as MEDIA_DEFAULT_FORMATS,am as LAYOUT_TYPES_FILE,Xi as ImageProcessorCache,Mk as ImageProcessingError,Ko as HydrationRuntime,Uj as HotReloadServer,mb as HeatmapAggregator,hg as HTML_CLASS_MARKER,gg as HTML_ATTRS_MARKER,Kq as Fragment,Sq as For,Rl as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,ak as EXTERNALIZED_ASSET_DIR,yk as DeployError,zk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Bk as DEFAULT_QUALITY,Ai as DEFAULT_PLACEHOLDER_OPTIONS,Ak as DEFAULT_FORMATS,ii as DEFAULT_DPR_VALUES,Bo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,si as COMMON_SIZES,Vf as COLOR_MODE_BOOT_MARKER,Wf as COLOR_MODE_BOOT_GLOBAL,fg as CLOAK_STYLE,Om as BroadcastServer,Nm as Broadcast,$f as BUILD_ID_META,ag as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Bi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,br as $path};
|
|
2
|
+
import{$ as wl,$a as rn,$b as Jo,$c as Jp,$d as Jq,A as gk,Aa as Bm,Ab as bo,Ac as ip,Ad as iq,Ae as or,B as hk,Ba as Cm,Bb as co,Bc as jp,Bd as jq,Be as pr,C as ik,Ca as Pm,Cb as eo,Cc as kp,Cd as kq,Ce as qr,D as jk,Da as Qm,Db as fo,Dc as lp,Dd as lq,De as rr,E as $k,Ea as Rm,Eb as go,Ec as mp,Ed as mq,Ee as sr,F as al,Fa as Sm,Fb as ho,Fc as np,Fd as nq,Fe as tr,G as bl,Ga as Tm,Gb as io,Gc as op,Gd as oq,Ge as ur,H as cl,Ha as Um,Hb as jo,Hc as pp,Hd as pq,He as vr,I as dl,Ia as Ym,Ib as ko,Ic as qp,Id as qq,Ie as wr,J as el,Ja as Zm,Jb as lo,Jc as rp,Jd as rq,Je as xr,K as fl,Ka as _m,Kb as mo,Kc as sp,Kd as sq,Ke as yr,L as gl,La as $m,Lb as no,Lc as tp,Ld as tq,Le as zr,M as hl,Ma as an,Mb as uo,Mc as up,Md as uq,Me as Ar,N as il,Na as bn,Nb as vo,Nc as vp,Nd as vq,Ne as Br,O as jl,Oa as cn,Ob as wo,Oc as wp,Od as wq,Oe as Cr,P as kl,Pa as dn,Pb as xo,Pc as xp,Pd as xq,Pe as Dr,Q as ll,Qa as en,Qb as yo,Qc as yp,Qd as yq,Qe as Er,R as ml,Ra as fn,Rb as zo,Rc as zp,Rd as zq,Re as Fr,S as nl,Sa as gn,Sb as Ao,Sc as Ap,Sd as Aq,Se as Gr,T as ol,Ta as hn,Tb as Bo,Tc as Bp,Td as Bq,Te as Hr,U as pl,Ua as jn,Ub as Co,Uc as Cp,Ud as Cq,Ue as Ir,V as ql,Va as kn,Vb as Do,Vc as Dp,Vd as Dq,Ve as Jr,W as rl,Wa as mn,Wb as Eo,Wc as Ep,Wd as Eq,We as Kr,X as sl,Xa as nn,Xb as Fo,Xc as Fp,Xd as Fq,Y as tl,Ya as on,Yb as Go,Yc as Gp,Yd as Gq,Z as ul,Za as pn,Zb as Ho,Zc as Hp,Zd as Hq,_ as vl,_a as qn,_b as Io,_c as Ip,_d as Iq,aa as xl,ab as sn,ac as Ko,ad as Kp,ae as Kq,ba as yl,bb as tn,bc as Lo,bd as Lp,be as Lq,ca as zl,cb as un,cc as Mo,cd as Mp,ce as Mq,da as Al,db as vn,dc as No,dd as Np,de as Nq,ea as Bl,eb as wn,ec as Oo,ed as Op,ee as Oq,fa as Cl,fb as xn,fc as Po,fd as Pp,fe as Pq,ga as Dl,gb as yn,gc as Qo,gd as Qp,ge as Qq,ha as El,hb as zn,hc as Ro,hd as Rp,he as Rq,ia as Fl,ib as An,ic as So,id as Sp,ie as Sq,ja as Gl,jb as Bn,jc as To,jd as Tp,je as Tq,ka as Hl,kb as Cn,kc as Uo,kd as Up,ke as Uq,la as Il,lb as Dn,lc as Vo,ld as Vp,le as Vq,ma as Jl,mb as En,mc as Wo,md as Wp,me as Wq,na as Kl,nb as Hn,nc as Xo,nd as Xp,ne as br,o as a,oa as Ll,ob as In,oc as Yo,od as Yp,oe as cr,p as Tj,pa as qm,pb as Jn,pc as Zo,pd as Zp,pe as dr,q as Uj,qa as rm,qb as Kn,qc as _o,qd as _p,qe as er,r as Vj,ra as sm,rb as Qn,rc as $o,rd as $p,re as fr,s as Wj,sa as tm,sb as Rn,sc as ap,sd as aq,se as gr,t as Xj,ta as um,tb as Sn,tc as bp,td as bq,te as hr,u as Yj,ua as vm,ub as Tn,uc as cp,ud as cq,ue as ir,v as Zj,va as wm,vb as Yn,vc as dp,vd as dq,ve as jr,w as _j,wa as xm,wb as Zn,wc as ep,wd as eq,we as kr,x as $j,xa as ym,xb as _n,xc as fp,xd as fq,xe as lr,y as ek,ya as zm,yb as $n,yc as gp,yd as gq,ye as mr,z as fk,za as Am,zb as ao,zc as hp,zd as hq,ze as nr}from"./chunk-gp3e2xbc.js";import{Xe as Ln}from"./chunk-abb34awq.js";import{$e as ln,Ye as Vm,Ze as Wm,_e as Xm,af as Mn,bf as Nn,cf as On,df as Pn,ef as Un,ff as Vn,gf as Wn,hf as Xn}from"./chunk-p2gd0pcc.js";import{if as kk,jf as lk,kf as mk,lf as nk,mf as ok,nf as pk,of as qk,pf as rk,qf as sk,rf as tk,sf as uk,tf as vk,uf as wk,vf as xk,wf as yk}from"./chunk-ps20v1ah.js";import{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,xf as Pk,yf as Qk,zf as Rk}from"./chunk-kpgvx2p1.js";import{Jf as oo,Kf as po,Lf as qo,Mf as ro,Nf as so,Of as to}from"./chunk-01x1p6ek.js";import{Pf as Fn,Qf as Gn}from"./chunk-mjpqz66q.js";import{Rf as em,Sf as fm,Tf as gm,Uf as hm,Vf as km,Wf as om}from"./chunk-dsbpsmqg.js";import{$f as Ql,Xf as Ml,Yf as Nl,Zf as Ol,_f as Pl,ag as Rl,bg as Sl,cg as Tl,dg as Ul,eg as Vl,fg as Wl,gg as Xl,hg as Yl,ig as Zl,jg as _l,kg as $l,lg as lm,mg as mm,ng as nm}from"./chunk-n2s7qj9d.js";import{og as im,rg as jm}from"./chunk-7t90r4dr.js";import{Ag as Em,Bg as Fm,Cg as Gm,Dg as Hm,Eg as Im,Fg as Jm,Gg as Km,Hg as Lm,Ig as Mm,Jg as Nm,Kg as Om,zg as Dm}from"./chunk-634gaa9d.js";import{Lg as Nk,Mg as Ok}from"./chunk-mzbnczgk.js";import{Ng as pm}from"./chunk-gfyfkxk6.js";import{Og as Dh,Pg as Eh,Qg as Fh,Rg as Gh,Sg as Hh,Tg as Ih}from"./chunk-a9em3zm4.js";import{$g as $i,Ug as Xi,Vg as Yi,Wg as Zi,_g as _i,ah as aj}from"./chunk-shem708r.js";import{bh as gj,ch as hj,dh as ij,eh as jj,fh as kj,gh as lj,hh as mj,ih as nj,jh as oj,kh as pj,lh as qj}from"./chunk-5c8f2rt7.js";import{mh as Ni,nh as Oi,oh as Pi,ph as Qi,qh as Ri,sh as Si,th as Ti,uh as Ui,vh as Vi,wh as Wi}from"./chunk-6rzwef28.js";import{xh as Ij,zh as Jj}from"./chunk-683tfkz4.js";import{Fh as zk,Gh as Ak,Hh as Bk,Ih as Ck,Jh as Dk,Kh as Ek,Lh as Fk,Nh as Gk,Oh as Hk,Ph as Ik,Qh as Jk,Rh as Kk,Sh as Lk,Vh as Mk}from"./chunk-x14vvxfh.js";import{$h as jh,Wh as eh,Xh as fh,Yh as gh,Zh as hh,_h as ih,ai as kh,bi as lh,ci as mh,di as nh,ei as oh,fi as ph,gi as qh,hi as rh}from"./chunk-3bc8bqw2.js";import{ji as sh,ki as th,li as uh,mi as vh}from"./chunk-7eg7ep8f.js";import{ri as wh}from"./chunk-y9nyqcha.js";import{si as Ag}from"./chunk-qg6pg6ze.js";import{ti as Bg,ui as Cg}from"./chunk-6w8fa3b8.js";import{Ai as Ig,vi as Dg,wi as Eg,xi as Fg,yi as Gg,zi as Hg}from"./chunk-v8474ah4.js";import{Bi as Jg,Ci as Kg,Di as Lg,Ei as Mg,Fi as Ng}from"./chunk-x4prtyjs.js";import{Gi as Og,Hi as Pg,Ii as Qg,Ji as Rg,Ki as Sg}from"./chunk-6btbgxh1.js";import{Li as Tg,Mi as Ug,Ni as Vg,Oi as Wg,Pi as Xg,Qi as Yg,Ri as Zg}from"./chunk-ctz53mbz.js";import{Si as _g,Ti as $g,Ui as ah,Vi as bh,Wi as ch,Xi as dh}from"./chunk-weqpt9nt.js";import{Zi as xg,_i as yg}from"./chunk-5p0eexgt.js";import{bj as zg}from"./chunk-d7fd2wrb.js";import"./chunk-91007tan.js";import{fj as ue,gj as ve,hj as we,ij as xe,jj as ye,kj as ze,lj as Ae,mj as Be,nj as Ce,oj as De,pj as Ee,qj as Fe,rj as Ge,sj as He}from"./chunk-9tecjny7.js";import{tj as Ye,uj as Ze}from"./chunk-mq0vtxe6.js";import{Bj as Ke,Cj as Le,Dj as Me,Ej as Ne,Fj as Oe,Gj as Pe,Hj as Qe,Ij as Re,Jj as Se,Kj as Te,Lj as Ue,Mj as Ve,Nj as We,Oj as Xe}from"./chunk-w8yac9xp.js";import{Pj as _e,Qj as $e,Rj as af,Sj as bf,Tj as cf,Uj as df,Vj as ef,Wj as ff,Xj as gf,Yj as hf,Zj as jf,_j as kf}from"./chunk-vy9hqeyq.js";import{sk as Xq,tk as Yq,uk as Zq,vk as _q,wk as $q,xk as ar}from"./chunk-ejvftzg7.js";import{Ak as ck,Bk as dk,Ck as am,Dk as bm,Ek as cm,Fk as dm,yk as ak,zk as bk}from"./chunk-m8qcap5h.js";import"./chunk-7eea1cse.js";import"./chunk-wd9fww03.js";import{$l as _b,$m as bd,$n as te,$o as Nf,$p as Th,$q as Bj,Al as Ia,Am as xc,An as Cd,Ao as nf,Ap as mg,Aq as Bi,Bl as Ja,Bm as yc,Bn as Dd,Bp as ng,Bq as Ci,Cl as Ka,Cm as Fc,Cn as Ed,Co as of,Cp as og,Cq as Di,Dl as La,Dm as Gc,Dn as Fd,Do as pf,Dp as pg,Dq as Ei,El as Ma,Em as Hc,En as Gd,Eo as qf,Ep as qg,Eq as Fi,Fl as Na,Fm as Ic,Fn as Hd,Fo as rf,Fp as rg,Fq as Gi,Gl as Oa,Gm as Jc,Gn as Yd,Go as sf,Gp as sg,Gq as Hi,Hl as ib,Hm as Kc,Hn as Zd,Ho as tf,Hp as tg,Hq as Ii,Il as jb,Im as Lc,In as _d,Io as uf,Ip as ug,Iq as Ji,Jl as kb,Jn as $d,Jo as vf,Jp as vg,Jq as Ki,Kl as lb,Km as Mc,Kn as ae,Ko as wf,Kp as wg,Kq as Li,Ll as mb,Lm as Nc,Ln as be,Lo as xf,Lp as xh,Lq as Mi,Ml as nb,Mm as Oc,Mn as ce,Mo as yf,Mp as yh,Mq as bj,Nm as Pc,Nn as de,No as zf,Np as zh,Nq as cj,Om as Qc,On as ee,Oo as Af,Op as Ah,Oq as dj,Pl as Fb,Pm as Rc,Pn as fe,Po as Bf,Pp as Bh,Pq as ej,Ql as Gb,Qm as Sc,Qn as ge,Qo as Cf,Qp as Ch,Qq as fj,Rl as Hb,Rm as Tc,Rn as he,Ro as Df,Rp as Jh,Rq as rj,Sl as Ib,Sm as Uc,Sn as ie,So as Ef,Sp as Kh,Sq as sj,Tl as Jb,Tm as Vc,Tn as je,To as Ff,Tp as Lh,Tq as tj,Ul as Nb,Um as Wc,Uo as Gf,Up as Mh,Uq as uj,Vl as Ob,Vm as Xc,Vn as ne,Vo as Hf,Vp as Nh,Vq as vj,Wl as Pb,Wm as Yc,Wn as oe,Wo as If,Wp as Oh,Wq as wj,Xl as Wb,Xm as Zc,Xn as pe,Xo as Jf,Xp as Ph,Xq as xj,Yl as Xb,Ym as _c,Yn as qe,Yo as Kf,Yp as Qh,Yq as yj,Zl as Yb,Zm as $c,Zn as re,Zo as Lf,Zp as Rh,Zq as zj,_l as Zb,_m as ad,_n as se,_o as Mf,_p as Sh,_q as Aj,am as $b,an as cd,ap as Of,aq as Uh,ar as Cj,bm as ac,bn as dd,bp as Pf,bq as Vh,br as Dj,cm as bc,cn as ed,cp as Qf,cq as Wh,cr as Ej,dm as cc,dn as fd,do as Ie,dp as Rf,dq as Xh,dr as Fj,em as dc,en as gd,eo as Je,ep as Sf,eq as Yh,er as Gj,fm as ec,fn as hd,fp as Tf,fq as Zh,fr as Hj,gm as fc,gn as id,go as lf,gp as Uf,gq as hi,gr as Kj,hm as gc,hn as jd,hp as Vf,hq as ii,hr as Lj,im as hc,in as kd,ip as Wf,iq as ji,ir as Mj,jm as ic,jn as ld,jp as Xf,jq as ki,jr as Nj,km as jc,kn as md,kp as Yf,kq as li,kr as Oj,ln as nd,lp as Zf,lq as mi,lr as Pj,mn as od,mp as _f,mq as ni,mr as Qj,nm as kc,nn as pd,np as $f,nq as oi,nr as Rj,om as lc,on as qd,op as ag,oq as pi,or as Sj,pl as xa,pm as mc,pn as rd,pp as bg,pq as qi,ql as ya,qm as nc,qn as sd,qp as cg,qq as ri,rl as za,rm as oc,rn as td,rp as dg,rq as si,sl as Aa,sm as pc,sn as ud,sp as eg,sq as ti,tl as Ba,tm as qc,tn as vd,tp as fg,tq as ui,ul as Ca,um as rc,un as wd,up as gg,uq as vi,vl as Da,vm as sc,vn as xd,vp as hg,vq as wi,wl as Ea,wm as tc,wn as yd,wp as ig,wq as xi,xl as Fa,xm as uc,xn as zd,xp as jg,xq as yi,yl as Ga,ym as vc,yn as Ad,yo as mf,yp as kg,yq as zi,zl as Ha,zm as wc,zn as Bd,zp as lg,zq as Ai}from"./chunk-a5gkg0a5.js";import{Ar as m,As as ea,Br as n,Bs as fa,Cr as o,Cs as ia,Dr as p,Ds as ja,Er as q,Es as ka,Fr as r,Fs as la,Gr as s,Gs as ma,Hr as t,Hs as na,Ir as u,Is as oa,Jr as v,Js as pa,Kr as w,Ks as qa,Lr as x,Ls as ra,Mr as y,Ms as sa,Nr as z,Ns as ta,Or as A,Os as ua,Pr as B,Ps as va,Qr as C,Qs as wa,Rr as D,Sr as E,Tr as F,Ur as G,Vr as H,Wr as I,Xr as J,Yr as K,Zr as L,gs as M,hs as N,is as O,js as P,ks as Q,ls as R,ms as S,ns as T,os as U,pr as b,ps as V,qr as c,qs as W,rr as d,rs as X,sr as e,ss as Y,tr as f,ts as Z,ur as g,us as _,vr as h,vs as $,wr as i,ws as aa,xr as j,xs as ba,yr as k,ys as ca,zr as l,zs as da}from"./chunk-6xbscz34.js";import{Rs as _h,Ss as $h,Ts as ai,Us as bi,Vs as ci,Ws as di,Xs as ei,Ys as fi,Zs as gi}from"./chunk-bkbr9yz2.js";import{$s as ha,_s as ga}from"./chunk-nn4k6hvv.js";import{at as Kb,bt as Lb,ct as Mb}from"./chunk-1zyqv8p8.js";import{dt as ke,et as le,ft as me}from"./chunk-1zvyq6jj.js";import{At as Cc,Bt as Dc,Ct as Ec,ot as zc,pt as Ac,rt as Bc}from"./chunk-4bct6m06.js";import{Dt as Qb,Et as Rb,Ft as Sb,Gt as Tb,Ht as Ub,It as Vb}from"./chunk-v4vvm7mz.js";import{Jt as Id,Kt as Jd,Lt as Kd,Mt as Ld,Nt as Md,Ot as Nd,Pt as Od,Qt as Pd,Rt as Qd,St as Rd,Tt as Sd,Ut as Td,Vt as Ud,Wt as Vd,Xt as Wd,Yt as Xd}from"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import{cu as ob,du as pb,eu as qb,fu as rb,gu as sb,hu as tb,iu as ub,ju as vb,ku as wb,lu as xb,mu as yb,nu as zb,ou as Ab,pu as Bb,qu as Cb,ru as Db,su as Eb}from"./chunk-ze3qgdaf.js";import{Au as Ra,Fu as Sa,Gu as Ta,Mu as Ua,Nu as Va,Ou as Wa,Pu as Xa,Qu as Ya,Ru as Za,Su as _a,Tu as $a,Uu as ab,Vu as bb,Wu as cb,Xu as db,Yu as eb,Zu as fb,_u as gb,av as hb,wu as Pa,xu as Qa}from"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.js";export{uk as writeNetlifyConfig,mm as writeManifest,Zk as writeImageManifest,Do as wrapComponentForHMR,xr as withDefaults,Hj as webComponentDirectiveHandler,sp as watermark,uq as watchViews,hl as watchMultiple,il as watchEffect,gl as watch,re as warmImagePlaceholders,vl as waitForStore,X as waitForLocale,po as virtualPathFor,uj as videoDirective,G as validators,Br as validated,he as validateValueEnhanced,yh as validateTemplate,xp as validateParams,ie as validateFormEnhanced,jq as validateFile,de as validateFields,ce as validateField,Ah as validateDirective,Cd as validateCspDirectives,Pj as validateConfig,rm as validateComponentScripts,Pm as validateComponentProps,wg as validateClientScript,vh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Nh as userComponentFileExists,bh as useVirtualList,Qd as useTitle,ul as useStoreOrThrow,Vo as useStore,ek as useStorage,Fq as useSlots,gk as useSessionStorage,Nd as useSeoMeta,wl as useRouteParams,yl as useRouteParamOrThrow,xl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,Al as useMiddlewareValue,zl as useMiddlewareState,fk as useLocalStorage,wo as useLoadingIndicator,Ld as useHead,sh as useForm,Hq as useAttrs,lq as uploadFiles,kq as uploadFile,rl as updateInstance,Ve as untrack,bi as unregisterDirective,sl as unmountInstance,yc as unescapeHtml,so as typecheckStxFiles,Mh as transpileTypeScript,kr as translate,Ba as transitionDirective,_b as transformAutoImports,Jm as toUsers,Im as toUser,bp as thumbnail,cq as thumbHashToRGBA,dq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,Ao as stxClientHelpers,Gf as structuredDataDirective,nr as stripLocalePrefix,Zl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,vn as stringToStream,qd as strictCspPreset,Ce as streamingSuspenseDirective,Ge as streamToResponse,Ae as streamTemplateSimple,ue as streamTemplate,$j as stopHmrServer,Fm as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,qg as startsDocument,Xn as startProductionServer,Ln as startInteractive,Em as startBroadcasting,pr as stampLocaleLayoutGroup,Ia as staggerDirective,vp as srcsetUrls,Ja as springDirective,$c as splitByPipe,Vl as spaNavVaryHeaders,qo as sourcePathFor,Cp as smartBatchSign,Ph as slotContentHasExpressions,Ap as signUrl,Kh as shouldTranspileTypeScript,Yj as shouldReloadOnChange,Fp as shouldRefreshSignature,Zj as shouldIgnoreFile,Vg as shouldCacheComponent,fp as sharpen,Er as shape,Sb as setStateDir,El as setRouteParams,Fl as setMiddlewareState,qe as setImagePlaceholder,zq as setGlobalProvide,b as setErrorLocale,$k as setCurrentInstance,ij as setCachedVideoResult,Zi as setCachedImageResult,Ti as setCached,Hr as serveStxFile,Jr as serveMultipleStxFiles,Tj as serveMarkdownFile,go as serveFile,Kr as serveApp,fo as serve,Go as serializeState,ln as serializeSetCookie,hp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,yj as scopeHTML,xj as scopeCSS,Jf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,lp as saturation,yp as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,zf as runPreProcessingMiddleware,Af as runPostProcessingMiddleware,On as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,pl as runHooks,dr as runDoctor,Re as runDestroyCallbacks,Of as runComposers,mp as rotate,wh as rewriteImagesWithSiblings,Vc as responseBindings,Th as resolveTemplatePath,ha as resolveStxTargets,Lj as resolveStxDirectories,jr as resolveI18n,$o as resize,ec as resetPlaceholders,Kd as resetHead,Fo as resetHMRHandler,o as resetErrorConfig,zr as required,ic as replacePlaceholders,sq as renderView,rj as renderVideoComponent,Xb as renderVendorStyleTags,Oq as renderToString,Pq as renderToStream,Qq as renderToDOM,bq as renderThumbhashToCanvas,ar as renderTemplateString,_q as renderTemplate,$q as renderString,xe as renderStreamingPage,Fh as renderSlot,Lg as renderSSRSuspense,Np as renderProtectedVideo,Mp as renderProtectedImg,zp as renderMediaUpload,Zq as renderMarkdownView,cm as renderLayoutTypes,bj as renderImgComponent,Pk as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,vq as renderEmail,Rh as renderComponentWithSlot,Td as renderBodyAttrs,Qo as render,sd as relaxedCspPreset,be as registerValidationRule,Ee as registerStreamingDirectives,Xo as registerStoresClient,Cl as registerStore,Hf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,_h as registerDirective,Bd as registerCspDirectives,Sm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,dl as ref,Dn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Rj as readMarkdownFile,$e as readFileCached,el as reactive,qp as quality,Kp as pruneSignatureCache,Wi as pruneCache,xq as provide,Yq as protectCodeBlocks,yr as prop,Rf as processVueTemplate,$g as processVirtualListDirectives,dh as processVirtualGridDirectives,qj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Fg as processTransitionDirectives,Ig as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Bg as processTeleportDirectives,Jg as processSuspenseDirectives,Cf as processStructuredData,ye as processStreamDirectives,Wc as processStatusDirective,qh as processStaticDirectives,xf as processStackReplacements,wf as processStackPushDirectives,Gh as processSlots,Xl as processShell,te as processServerBindings,Df as processSeoDirective,Fe as processSectionDirectives,Uf as processScopedStyles,Gc as processReactiveBindings,Op as processProtectedMedia,jh as processPartialHydrationDirectives,vg as processOnceDirective,yf as processMiddleware,Bf as processMetaDirectives,Xd as processMetaDirective,Sj as processMarkdownFileDirectives,Yh as processMarkdownDirectives,rf as processLoops,Tg as processKeepAliveDirectives,ug as processJsonDirective,ch as processInfiniteListDirectives,vf as processIncludes,dj as processImgComponents,Rk as processImageComponents,Ek as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Sf as processDynamicComponents,xh as processDirectives,gi as processDirectiveAttributes,Ag as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Fr as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Og as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,me as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,vo as preloadIslandHandlers,se as preloadIconCollection,Am as poolStrings,Jj as pluginManager,oe as placeholdersWarmed,Eg as performLeave,Dg as performEnter,Se as pendingLifecycleCounts,We as peek,sf as partialsCache,sj as parseVideoDirectiveOptions,Zo as parseUrl,eq as parseThumbhashString,fd as parseSwitchBlock,Dh as parseSlots,Eh as parseSlotElement,kd as parseScriptDeclarations,Fj as parseSFCComponent,Pp as parseProtectedArgs,qf as parseLoopBinding,cj as parseImgComponent,ui as parseImageUrl,Qk as parseImageComponent,Mn as parseFormBody,hd as parseExpressionWithFilters,Tm as parseDefaults,An as parseCookies,Ol as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,Ar as optional,Bm as optimizeTemplate,Wk as optimizeImage,Xk as optimizeDirectory,Cr as oneOf,tf as onceStore,ml as onUpdated,Fc as onUpdate,ol as onUnmounted,Jl as onServer,kl as onMounted,Oe as onMount,ph as onHydrated,Dq as onErrorCaptured,Pe as onDestroy,Zg as onDeactivated,Il as onClient,ll as onBeforeUpdate,nl as onBeforeUnmount,jl as onBeforeMount,Yg as onActivated,Zp as observeElement,En as notFound,Zf as normalizeCriticalHeadOrder,Cq as nextTick,Wm as negotiateEncoding,Ua as navigateTo,ql as mountInstance,Ea as motionDirective,rd as moderateCspPreset,zm as minifyHtml,Ff as metaDirective,ig as metaDedupKey,_o as mergeParams,kg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Zh as markdownDirectiveHandler,Qj as markdownCache,ga as looksLikeGlob,mr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Mj as loadStxConfig,db as loadMiddlewareFromDirectory,nm as loadManifest,Vp as loadElement,Gm as loadChannels,tr as lintStxStrict,Xp as lazyLoadAll,Wp as lazyLoad,Ha as keyframeDirective,Mq as jsxs,Nq as jsxDEV,Lq as jsx,Cn as jsonResponse,De as islandDirective,l as isTest,_l as isSpaNavigation,Tl as isSpaNavRequest,Dp as isSignatureValid,Te as isSignal,Ck as isSharpAvailable,on as isServerEnvironment,Gl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Sp as isNativeLazySupported,Xq as isMarkdownPath,Q as isLoading,R as isLoaded,Jh as isJavaScriptScript,Tp as isIntersectionObserverSupported,Kk as isImageFile,Dk as isImageBackendAvailable,aa as isICUFormat,oh as isHydrated,Oh as isHydrateTrigger,Oc as isHttpStatus,nn as isEdgeEnvironment,ur as isDirectiveKind,k as isDevelopment,Ue as isDerived,Xj as isCssOnlyChange,Vm as isCompressible,Hl as isClient,Qg as isAsyncComponent,Nn as isActionableMethod,ip as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,ir as injectThemeBootstrap,Ef as injectSeoTags,fr as injectSeo,lf as injectRouterScript,Wj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,sg as injectConfigHeadTags,Yf as injectColorModeBootScript,mg as injectCloakStyle,dg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,yq as inject,Bl as initStoreRegistry,xk as initNetlify,xo as initLoadingIndicator,Up as initLazyLoading,Kn as initFile,aq as initBlurUp,gq as initAllBlurUp,fj as imgDirective,Uk as imageDirective,Vn as hydrateTemplateStream,Un as hydrateTemplate,uo as hydrateIslands,lh as hydrateIsland,Wn as hydrateFragment,mh as hydrateByStrategy,nh as hydrateAll,No as hydrate,eo as htmlResponse,og as hoistLeadingHeadTags,_f as hoistColorModeBootScript,lb as heatmapDirective,Pi as hashString,kf as hashFilePath,Ni as hashFile,Oi as hashBuffer,Qf as hasVueTemplateSyntax,pf as hasVariables,So as hasStore,jc as hasPlaceholders,vk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,rg as hasDocumentShell,Bh as hasDirectives,ma as hasDOMSupport,Nk as handleImageRequest,Eq as handleError,Uq as h,Jk as groupVariantsByFormat,gp as grayscale,Yn as gitHash,tm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,qk as getTotalSize,Ep as getTimeUntilExpiry,xg as getStoreScript,To as getStoreNames,Ro as getStore,jk as getStorageSize,ik as getStorageKeys,Uh as getSourceLineInfo,Lh as getSharedTranspiler,ff as getServeClientAsset,la as getScreenReaderOnlyStyle,zj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,zh as getPositionInfo,gc as getPlaceholderRegistry,Mi as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Lk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ne as getImagePlaceholder,Fk as getImageMetadata,ke as getImageDelivery,Mo as getHydrationRuntime,Dl as getHydratedStoreState,_j as getHmrServer,Id as getHead,Eo as getHMRHandler,yi as getFormatExtension,Ri as getFileMtime,Ik as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,ai as getDirectives,$h as getDirective,al as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Xh as getComponentCacheStats,hj as getCachedVideoResult,Ip as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ki as getCachedPlaceholder,Yi as getCachedImageResult,Si as getCached,Vi as getCacheStats,bg as getBuildId,Dm as getBroadcastServer,xi as getBestVariant,nc as getAllFilters,li as generateWidthSrcset,ah as generateVirtualListCSS,nq as generateVideoPreview,je as generateValidationScript,oq as generateUploadRuntime,um as generateTreeShakenBundle,Hg as generateTransitionRuntime,Gg as generateTransitionCSS,lj as generateThumbnails,Di as generateThumbhashPlaceholder,dn as generateTemplatesDocs,Ng as generateSuspenseRuntime,Mg as generateSuspenseCSS,Ho as generateStateScript,vi as generateSrcsetData,aj as generateSrcset,Gk as generateSrcSet,mj as generateSpriteSheet,wq as generateSpaShell,wi as generateSourceTags,ri as generateSizesFromBreakpoints,qi as generateSizesAttribute,Hk as generateSizes,If as generateSitemapIndex,gr as generateSitemap,Rp as generateSimpleMediaPicker,Lp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,wj as generateScopeId,Gj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Kf as generateRobotsTxt,hr as generateRobots,$i as generateResponsiveVariants,Cj as generateReactiveWebComponentTS,Bj as generateReactiveWebComponent,Ej as generateReactiveRuntime,Dj as generateReactiveMixin,kj as generatePoster,Ji as generatePlaceholderStyle,Ii as generatePlaceholderCSS,Ci as generatePlaceholder,kh as generatePartialHydrationCSS,ld as generateNonce,rk as generateNetlifyToml,qq as generateMinifiedMediaRuntime,pq as generateMediaRuntime,Qp as generateMediaManagerEmbed,lm as generateManifest,zo as generateLoadingIndicatorHtml,$p as generateLazyLoadRuntime,dm as generateLayoutTypes,Fi as generateLQIP,Xg as generateKeepAliveRuntime,Wg as generateKeepAliveCSS,rh as generateIslandManifest,mq as generateImagePreview,Yk as generateImageManifest,Lo as generateHydrationScript,He as generateHydrationRuntime,Oo as generateHydrationCSS,eh as generateHydrationBootstrap,Vj as generateHotReloadScript,jb as generateHeatmapScript,Co as generateHMRClientScript,nj as generateHLSManifest,Io as generateEventBindings,pi as generateDprSrcsetWithVariableQuality,oi as generateDprSrcset,pg as generateDocumentShell,jn as generateDocs,en as generateDirectivesDocs,fi as generateDirectiveRuntime,Lf as generateDefaultRobotsTxt,oj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Jq as generateCompositionRuntime,cn as generateComponentsDocs,fh as generateComponentManifest,an as generateComponentDoc,Hi as generateColorPlaceholder,Xf as generateColorModeBootScript,tl as generateClientRuntime,Qi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,hq as generateBlurUpRuntime,iq as generateBlurUpCSS,Hc as generateBindingsRuntime,mi as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Sg as generateAsyncComponentRuntime,Rg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,to as formatTypecheckDiagnostics,no as formatTypeErrors,Hn as formatStxContent,pk as formatSize,Ta as formatRoutes,In as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,er as formatDoctorReport,fn as formatDocsAsMarkdown,hn as formatDocsAsJson,gn as formatDocsAsHtml,pp as format,ym as foldConstants,op as flipVertical,np as flipHorizontal,em as fingerprint,ro as findRuntimeTypeDeclarations,cr as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,vm as findDeadCode,vm as findDeadBranches,Pl as findContainerRegion,bn as findComponentFiles,Ir as findCommonDir,ok as filterRequiredFiles,Sh as fileExists,mf as extractVariables,jm as extractTemplateExpressions,ze as extractStreamBoundaries,Jo as extractState,Hh as extractSlotContent,of as extractScriptFromTemplate,im as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Gi as extractDominantColor,jd as extractDirectiveParams,Ch as extractDirectiveNames,$l as extractContainerContent,_m as extractComponentProps,gh as extractComponentName,$m as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,hh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,Aj as extractAndScopeStyles,Hb as extractAndProcessEvents,ck as externalizeSharedAssets,dk as externalizeRepeatedAssets,bk as externalizeHtml,xc as evaluateExpression,xm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Cg as ensureTeleportTargets,tg as ensureDocumentShell,fe as enhancedValidationRules,Ym as enableDevTools,wm as eliminateDeadCode,Me as effect,wp as dprUrls,kn as docsCommand,bm as discoverLayoutNames,_p as disconnectObserver,Zm as disableDevTools,F as devHelpers,Wl as detectShell,mn as detectRuntime,sk as detectProjectConfig,zi as detectFormat,qm as detectBuildMode,Le as derived,wk as deploy,Oj as defineStxConfig,Wo as defineStore,Gq as defineSlots,sr as defineSiteConfig,wr as definePropsWithValidation,vr as defineProps,Ij as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,th as defineForm,Bq as defineExpose,Aq as defineEmits,ci as defineDirective,Wq as defineCustomElement,Tn as defineConfig,di as defineClientDirective,Pg as defineAsyncComponent,rq as defaultMediaConfig,_k as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Kj as defaultConfig,Gr as default,zc as deepMergeThemes,Tf as dedupeScopedStyles,Sl as decodeTitleEntities,Ei as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,fq as crossfadeTransition,ap as crop,_g as createVirtualList,tj as createVideoDirective,yn as createVercelHandler,ko as createTypeChecker,fa as createTranslateFilter,un as createTextEncoderStream,Vq as createStxApp,tn as createStreamingResponse,Be as createStreamRenderer,Uo as createStore,Za as createStorageManager,Xa as createServerCookieManager,cl as createScope,Kg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,io as createRoute,dl as createRef,el as createReactive,Iq as createProvideContext,_n as createProject,Sn as createProductionBuild,fc as createPlaceholder,Cm as createOptimizedBuild,zn as createNetlifyHandler,kk as createNetlifyClient,fb as createMiddlewareContext,ho as createMiddleware,Yp as createLazyObserver,Ug as createKeepAliveCache,qn as createKVNamespace,ih as createIslandRegistry,ej as createImgDirective,Vk as createImagePlugin,Ok as createImageHandler,Tk as createImageDirective,nb as createHeatmapAggregator,nk as createFileManifest,pn as createEnvAccessor,z as createEnhancedError,sn as createEdgeHandler,rn as createEdgeCache,Vh as createDetailedErrorMessage,xn as createDenoHandler,tk as createDefaultNetlifyConfig,Ed as createCspHeaders,Bn as createCookie,fl as createComputed,bl as createComponentInstance,wn as createCloudflareHandler,Ya as createClientCookieManager,ei as createBuiltinDirectives,Vq as createApp,Ka as createAnimationTimeline,dp as cover,nf as convertToCommonJS,kp as contrast,cp as contain,y as consoleError,m as configureErrorHandling,Nj as config,fl as computed,Xm as compressResponse,Nf as composerPattern,Mf as composer,Yl as composeShellWithPage,Rm as componentDirective,Qh as componentClientSignalNames,km as compileTemplate,a as collectRepeatedFlag,mk as collectDeployFiles,ng as cloakStyleFragment,jj as clearVideoCache,N as clearTranslationCache,yg as clearStoreCache,hk as clearStorage,Jp as clearSignatureCache,Li as clearPlaceholderCache,uf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,pe as clearImagePlaceholders,le as clearImageDeliveryCatalog,Sk as clearImageCache,e as clearErrorMessages,gf as clearDevCaches,oc as clearCustomFilters,Pf as clearComposers,zg as clearComposableCache,Wh as clearComponentCache,Ui as clearCache,Db as clearBlankCache,yo as cleanupLoadingIndicator,Ml as classifyScript,Nl as classifyAllScripts,lo as checkTemplateFile,mo as checkTemplate,hf as checkCache,Gp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Mm as channel,Gn as captureScreenshots,Fn as captureScreenshot,Z as cancelPendingLoads,lk as calculateSha1,ni as calculateOptimalWidths,jf as cacheTemplate,vj as buildWebComponents,oo as buildVirtualSource,tq as buildViews,Yo as buildUrl,ve as buildSuspenseResolveScript,rr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,fm as buildRuntimeAsset,gm as buildRouterAsset,qr as buildLangPickerScript,ti as buildImageUrl,eg as buildIdFragment,jg as buildHtmlAttrs,om as buildForProduction,Um as buildComponentLibrary,Hp as buildAuthParams,pm as buildApp,or as buildAlternateLinks,Rn as build,Km as broadcastPrivate,Lm as broadcastPresence,Hm as broadcast,jp as brightness,Mb as bracketDepths,ep as blur,Eb as blankInertHtmlRegions,Bp as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,rp as auto,ja as attributeValue,hm as assetTags,Fb as asInvocableStatement,Dr as arrayOf,lr as applyTranslations,_i as applyTransformations,Ih as applySlots,Qm as applyPropDefaults,up as applyPreset,lg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Ul as appendVary,td as apiCspPreset,Da as animationGroupDirective,pj as analyzeVideo,sm as analyzeUsage,Kl as analyzeTemplate,Ll as analyzeProject,sm as analyzeDirectiveUsage,Lc as analyticsDirective,bo as addStore,ao as addPage,xd as addNonceToInlineContent,co as addLayout,$n as addComponent,Pn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,cg as __setBuildIdForTest,gj as VideoProcessorCache,uh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,jo as TemplateTypeChecker,Jn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Rq as Show,we as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Ql as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Mc as RESPONSE_STATUS_KEY,Nc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Qn as ProductionBuild,Tq as Portal,Zn as PROJECT_TEMPLATES,tp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Po as MemorySessionStore,ki as MIME_TYPES,hi as MEDIA_DEFAULT_WIDTHS,ji as MEDIA_DEFAULT_FORMATS,am as LAYOUT_TYPES_FILE,Xi as ImageProcessorCache,Mk as ImageProcessingError,Ko as HydrationRuntime,Uj as HotReloadServer,mb as HeatmapAggregator,hg as HTML_CLASS_MARKER,gg as HTML_ATTRS_MARKER,Kq as Fragment,Sq as For,Rl as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,ak as EXTERNALIZED_ASSET_DIR,yk as DeployError,zk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Bk as DEFAULT_QUALITY,Ai as DEFAULT_PLACEHOLDER_OPTIONS,Ak as DEFAULT_FORMATS,ii as DEFAULT_DPR_VALUES,Bo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,si as COMMON_SIZES,Vf as COLOR_MODE_BOOT_MARKER,Wf as COLOR_MODE_BOOT_GLOBAL,fg as CLOAK_STYLE,Om as BroadcastServer,Nm as Broadcast,$f as BUILD_ID_META,ag as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Bi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,br as $path};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{_p as M,cq as x}from"./chunk-
|
|
2
|
+
import{_p as M,cq as x}from"./chunk-a5gkg0a5.js";import{kt as T}from"./chunk-4bct6m06.js";import{ov as N}from"./chunk-6bcw8twx.js";import V from"fs";import Z from"path";var y=new Map,W=new Map;async function R(j){let z;for(let J=0;J<3;J++)try{let X=(await V.promises.stat(j)).mtime.getTime(),Q=W.get(j);if(Q&&Q.mtime===X)return Q.content;let Y=await Bun.file(j).text(),K=(await V.promises.stat(j)).mtime.getTime();if(K!==X)continue;return W.set(j,{content:Y,mtime:K}),Y}catch(I){z=I;break}throw W.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function S(j){W.delete(j)}function _(j){for(let B of W.keys())if(B.startsWith(j))W.delete(B)}var q=null,w=null,G=null;function C(j){G=j}async function b(j=!1){let B=G??await import("./chunk-qga8gyr7.js");if(j)return B.generateSignalsRuntimeDev();if(q===null)q=B.generateSignalsRuntime();return q}var D=null;async function A(){if(D===null){let{getRouterScript:j}=await import("./chunk-gmfcddcw.js");D=j()}return D}var L={};async function g(j,B=!1){let z=j==="runtime"?await b(B):await A(),J=j==="runtime"&&B?"runtime-debug":j,I=L[J];if(!I||I.content!==z)I={content:z,hash:Bun.hash(z).toString(16).padStart(16,"0").slice(0,16)},L[J]=I;return{content:z,hash:I.hash,url:`/_stx/${j}.${I.hash}.js`}}function u(){W.clear(),x(),T(),q=null,w=null,D=null}function O(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function P(j,B){try{if(!B.cachePath)return null;let z=Z.resolve(B.cachePath),J=Z.join(z,`${U(j)}.html`),I=Z.join(z,`${U(j)}.meta.json`);if(!await M(J)||!await M(I))return null;let X=await Bun.file(I).text(),Q=JSON.parse(X);if(Q.cacheVersion!==B.cacheVersion)return null;if(Q.optionsSignature!==O(B))return null;if((await V.promises.stat(j)).mtime.getTime()>Q.mtime)return null;for(let $ of Q.dependencies)if(await M($)){if((await V.promises.stat($)).mtime.getTime()>Q.mtime)return null}else return null;return await Bun.file(J).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function p(j,B,z,J){try{if(!J.cachePath)return;let I=Z.resolve(J.cachePath);await V.promises.mkdir(I,{recursive:!0});let X=Z.join(I,`${U(j)}.html`),Q=Z.join(I,`${U(j)}.meta.json`),Y=await V.promises.stat(j);await Bun.write(X,B);let $={sourcePath:j,mtime:Y.mtime.getTime(),dependencies:Array.from(z),cacheVersion:J.cacheVersion,optionsSignature:O(J),generatedAt:Date.now()};await Bun.write(Q,JSON.stringify($,null,2)),y.set(j,{output:B,mtime:Y.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var v=16;function U(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,v)}
|
|
3
3
|
export{y as Pj,R as Qj,S as Rj,_ as Sj,C as Tj,b as Uj,A as Vj,g as Wj,u as Xj,P as Yj,p as Zj,U as _j};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Vl as ZJ,jr as QJ}from"./chunk-
|
|
2
|
+
import{Vl as ZJ,jr as QJ}from"./chunk-a5gkg0a5.js";import{bt as JJ,ct as KJ}from"./chunk-1zyqv8p8.js";import{jt as $J,nt as g}from"./chunk-4bct6m06.js";import{Ht as h}from"./chunk-v4vvm7mz.js";import j from"path";import O from"fs";function qJ(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 VJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function E(J,K){let G=[];for(let W of VJ(J)){if(qJ(W)){let Y=W.position||void 0;G.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}G.push({file:K,message:W instanceof Error?W.message:String(W)})}return G}function i(J,K){return E(J,K).map((G)=>{let W=G.file?`${G.file}${G.line?`:${G.line}${G.column?`:${G.column}`:""}`:""}`:"",Y=G.lineText?`
|
|
3
3
|
${G.lineText.trim()}`:"";return W?`${W}: ${G.message}${Y}`:`${G.message}${Y}`}).join(`
|
|
4
4
|
`)}var kJ=7,GJ=1,WJ=new Map,b=600,OJ=100,P=new Map;async function AJ(J){let K=P.get(J)??0;if(K>0&&K<OJ){P.set(J,K+1);return}P.set(J,1);try{let G=(await O.promises.readdir(J)).filter((H)=>H.endsWith(".js"));if(G.length<=b)return;let Y=(await Promise.all(G.map(async(H)=>{try{return{name:H,at:(await O.promises.stat(j.join(J,H))).mtimeMs}}catch{return null}}))).filter((H)=>H!==null);Y.sort((H,Q)=>Q.at-H.at);for(let H of Y.slice(b)){let Q=H.name.slice(0,-3);await O.promises.rm(j.join(J,`${Q}.js`),{force:!0}),await O.promises.rm(j.join(J,`${Q}.deps.json`),{force:!0})}T("pruned bundle cache to",b,"entries")}catch{}}function bJ(J){return WJ.get(J)??[]}function m(J,K){if(J)WJ.set(J,K)}function wJ(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function T(...J){if(wJ())console.log("[stx:bundler]",...J)}var p=[];function r(J,K,G){p.push({filePath:J||"<inline>",message:K,details:G})}function PJ(){return p.slice()}function fJ(){p.length=0}var u;function gJ(J){u=J}function s(){if(u)return u;try{let J=QJ.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var t=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function mJ(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,G;while((G=K.exec(J))!==null){let Y=G[1];if(!t.some((Q)=>Q.test(Y)))return T("detected user import:",Y),!0}let W=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((G=W.exec(J))!==null){let Y=G[1];if(/\.css(?:\?.*)?$/.test(Y))continue;if(!t.some((Q)=>Q.test(Y)))return T("detected side-effect import:",Y),!0}return!1}var v="stx-module:",UJ=/\.(?:[cm]?[jt]sx?|json)$/i;function CJ(J,K){return j.relative(J,K).split(j.sep).join("/")}function LJ(J,K){if(K.size===0)return J;return J.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,(G,W,Y,H)=>{let Q=K.get(H);return Q&&!H.startsWith(v)?`${W}${Y}${Q}${Y}`:G})}function TJ(J,K){let G=0,W=(H)=>{let Q=`__stxMod${G++}`,A=JSON.stringify(H);return K.push(`var ${Q} = globalThis.__stxModules && globalThis.__stxModules[${A}];`,`if (${Q} === undefined) throw new Error("[stx] module " + ${JSON.stringify(A)} + " is not registered on this page (#1957)");`),Q},Y=(H,Q)=>{for(let A of H.split(",")){let z=A.trim();if(!z)continue;let Z=z.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!Z)continue;let $=Z[1].startsWith('"')?JSON.parse(Z[1]):Z[1],X=Z[2]??$;K.push(`var ${X} = ${Q}[${JSON.stringify($)}];`)}};return J=J.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(H,Q,A)=>{let z=A.slice(v.length),Z=W(z),$=Q.trim(),X=$.match(/^([\w$]+)\s*(?:,\s*|$)/);if(X&&!$.startsWith("{")&&!$.startsWith("*"))K.push(`var ${X[1]} = ${Z}.default;`),$=$.slice(X[0].length).trim();let k=$.match(/^\*\s*as\s+([\w$]+)$/);if(k)K.push(`var ${k[1]} = ${Z};`);else if($.startsWith("{"))Y($.replace(/^\{|\}$/g,""),Z);return""}),J=J.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(H,Q)=>{return W(Q.slice(v.length)),""}),J}function a(J){let K=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,j.join(J,"index.ts"),j.join(J,"index.tsx"),j.join(J,"index.js"),j.join(J,"index.mjs")];for(let G of K)try{if(O.existsSync(G)&&O.statSync(G,{throwIfNoEntry:!1})?.isFile())return G}catch{}return}function MJ(J,K,G,W,Y,H=new Map){let Q=(z,Z,$)=>{if(!Y||z!==G||!UJ.test(Z))return null;try{if(!O.statSync(Z,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}W.add(Z);let X=`${v}${CJ(process.cwd(),Z)}`;return H.set($,X),{path:X,external:!0}},A=(z,Z)=>{let $=z===G?K:j.dirname(z),X=j.resolve($,Z);return a(X)??X};return{name:"stx-client-bundle",setup(z){z.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),z.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),z.onResolve({filter:/^\//},(Z)=>{let $=a(Z.path);if($){let X=Q(Z.importer,$,Z.path);if(X)return X;if($!==G)W.add($);return{path:$}}return{path:Z.path,external:!0}}),z.onResolve({filter:/^\.\.?\//},(Z)=>{let $=A(Z.importer,Z.path),X=Q(Z.importer,$,Z.path);if(X)return X;return W.add($),{path:$}}),z.onResolve({filter:/^[@~]\//},(Z)=>{let $=j.resolve(J,Z.path.slice(2)),X=[$,`${$}.ts`,`${$}.tsx`,`${$}.js`,`${$}.mjs`,`${$}.jsx`,j.join($,"index.ts"),j.join($,"index.tsx"),j.join($,"index.js"),j.join($,"index.mjs")];for(let k of X)if(O.existsSync(k)&&O.statSync(k,{throwIfNoEntry:!1})?.isFile()){let _=Q(Z.importer,k,Z.path);if(_)return _;return T(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",k),W.add(k),{path:k}}return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:$}}),z.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(Z)=>{if(!Y||Z.importer!==G)return;let $=`${v}npm:${Z.path}`;return H.set(Z.path,$),{path:$,external:!0}}),z.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{let $=j.extname(Z.path).toLowerCase(),X=$===".json"?"json":$===".tsx"?"tsx":$===".jsx"?"jsx":$===".ts"||$===".mts"||$===".cts"?"ts":"js";if(Z.path!==G)W.add(Z.path);return{contents:O.readFileSync(Z.path,"utf8"),loader:X}})}}}var f=new Map,F=$J(64),e=Symbol.for("stx.client-bundle-build-queue");function SJ(J){let K=globalThis,W=(K[e]??Promise.resolve()).then(J,J);return K[e]=W.then(()=>{return},()=>{return}),W}async function uJ(J,K,G={}){let W=G.projectRoot||process.cwd(),Y=G.minify??!1,H=G.externalizeUserModules??!0,Q=G.cacheDir||h(W,"bundle-cache"),A=new Bun.CryptoHasher("md5");A.update(`${kJ}\x00${H?"registry":"inline"}\x00${J}\x00${K}`);let z=A.digest("hex").slice(0,12),Z=j.join(Q,`${z}.js`),$=F.get(Z);if($){if(g($.files)){T("memo hit:",z);let S=$.files.map((L)=>L.path);return m(K,S),G.collectInputs?.push(...S),$.code}F.delete(Z),T("memo invalidated by dep change:",z)}let X=j.join(Q,`${z}.deps.json`),k=Bun.file(Z);if(await k.exists()){let S=Bun.file(X),L=!0,w=null;if(await S.exists())try{let I=JSON.parse(await S.text());if(I.metadataVersion!==GJ||!Array.isArray(I.files))L=!1;else w=I.files;if(w&&!g(w))L=!1}catch{L=!1}if(L){if(T("cache hit:",z),w)m(K,w.map((y)=>y.path)),G.collectInputs?.push(...w.map((y)=>y.path));let I=await k.text();if(w)F.set(Z,{code:I,files:w});return I}T("cache invalidated by dep change:",z)}let _=f.get(z);if(_){let S=await _;if(G.collectInputs)G.collectInputs.push(...(F.get(Z)?.files??[]).map((L)=>L.path));return S}let M=SJ(()=>xJ(J,K,{projectRoot:W,minify:Y,cacheDir:Q,hash:z,cachePath:Z,depsPath:X,collectInputs:G.collectInputs,externalizeUserModules:H}));f.set(z,M);try{return await M}finally{f.delete(z)}}async function xJ(J,K,G){let{projectRoot:W,minify:Y,cacheDir:H,hash:Q,cachePath:A,depsPath:z,externalizeUserModules:Z}=G,$=h(W,"bundle-tmp"),X=j.join($,`${Q}.ts`),k=j.join($,"out",Q);O.mkdirSync($,{recursive:!0}),O.mkdirSync(k,{recursive:!0});let _=j.dirname(K),M=new Set,S=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,L=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,w=JJ(J),{depths:I,balanced:y}=KJ(w),c=(U)=>!y||I[U]===0,C;while((C=S.exec(w))!==null){if(C[1])continue;if(!c(C.index))continue;if(C[2])C[2].split(",").forEach((U)=>{let V=IJ(U);if(V)M.add(V)});else if(C[3])M.add(C[3])}while((C=L.exec(w))!==null){if(C[1])continue;if(!c(C.index))continue;M.add(C[2])}let YJ=M.size>0?`
|
|
5
5
|
export { ${[...M].join(", ")} }`:"";await Bun.write(X,J+YJ),T("bundling:",Q,"from:",j.basename(K));let o=new Set,n=new Map;try{let U=await Bun.build({entrypoints:[X],outdir:k,target:"browser",format:"esm",minify:Y,plugins:[MJ(W,_,X,o,Z,n)],define:{"process.env.NODE_ENV":Y?'"production"':'"development"',...ZJ()},root:W});if(!U.success){let N=U.logs.filter((B)=>B.level==="error").map((B)=>B.message).join(", ")||`Unable to bundle ${j.basename(K)}`,R=E(U.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",N),r(K||"",N,R),s()==="error")throw Error(N);return J}let V="";for(let q of U.outputs){V=await q.text();break}let x=[];for(let q of V.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let N of q[1].split(",")){let R=N.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(R){x.push([R[2],R[1]]);continue}let B=N.trim();if(/^[A-Za-z_$][\w$]*$/.test(B))x.push([B,B])}let l=[];V=TJ(LJ(V,n),l);let HJ=V.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];V=V.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let d=`__stxBundle_${Q}`,zJ=x.map(([q,N])=>`${JSON.stringify(q)}: ${N}`).join(", "),XJ=x.map(([q])=>`var ${q} = undefined;`).join(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{gr as a,hr as b,ir as c,jr as d,kr as e,lr as f}from"./chunk-
|
|
2
|
+
import{gr as a,hr as b,ir as c,jr as d,kr as e,lr as f}from"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Jf as c,Kf as d,Lf as e,Mf as f,Nf as g,Of as h}from"./chunk-
|
|
2
|
+
import{Jf as c,Kf as d,Lf as e,Mf as f,Nf as g,Of as h}from"./chunk-01x1p6ek.js";import{og as a,rg as b}from"./chunk-7t90r4dr.js";import"./chunk-d7fd2wrb.js";import"./chunk-91007tan.js";import"./chunk-a5gkg0a5.js";import"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import"./chunk-6bcw8twx.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};
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{Ha as a,Te as F,Va as r,Ve as v,We as P,nb as n,o as m,oa as l,ob as p,pe as s,qb as i,qe as t,vb as e}from"./chunk-
|
|
3
|
+
import{Ha as a,Te as F,Va as r,Ve as v,We as P,nb as n,o as m,oa as l,ob as p,pe as s,qb as i,qe as t,vb as e}from"./chunk-gp3e2xbc.js";import"./chunk-abb34awq.js";import"./chunk-p2gd0pcc.js";import"./chunk-ps20v1ah.js";import"./chunk-kpgvx2p1.js";import"./chunk-01x1p6ek.js";import"./chunk-mjpqz66q.js";import"./chunk-dsbpsmqg.js";import"./chunk-n2s7qj9d.js";import"./chunk-7t90r4dr.js";import"./chunk-634gaa9d.js";import"./chunk-mzbnczgk.js";import"./chunk-gfyfkxk6.js";import"./chunk-a9em3zm4.js";import"./chunk-shem708r.js";import"./chunk-5c8f2rt7.js";import"./chunk-6rzwef28.js";import"./chunk-683tfkz4.js";import"./chunk-x14vvxfh.js";import"./chunk-3bc8bqw2.js";import"./chunk-7eg7ep8f.js";import"./chunk-y9nyqcha.js";import"./chunk-qg6pg6ze.js";import"./chunk-6w8fa3b8.js";import"./chunk-v8474ah4.js";import"./chunk-x4prtyjs.js";import"./chunk-6btbgxh1.js";import"./chunk-ctz53mbz.js";import"./chunk-weqpt9nt.js";import"./chunk-5p0eexgt.js";import"./chunk-d7fd2wrb.js";import"./chunk-91007tan.js";import"./chunk-9tecjny7.js";import"./chunk-mq0vtxe6.js";import"./chunk-w8yac9xp.js";import"./chunk-vy9hqeyq.js";import"./chunk-ejvftzg7.js";import"./chunk-m8qcap5h.js";import"./chunk-7eea1cse.js";import{el as u,fl as c}from"./chunk-wd9fww03.js";import"./chunk-a5gkg0a5.js";import{Js as f}from"./chunk-6xbscz34.js";import"./chunk-bkbr9yz2.js";import"./chunk-nn4k6hvv.js";import"./chunk-1zyqv8p8.js";import"./chunk-1zvyq6jj.js";import{it as A}from"./chunk-4bct6m06.js";import"./chunk-v4vvm7mz.js";import"./chunk-s710wybv.js";import"./chunk-00mag1n0.js";import"./chunk-d3r5pdz7.js";import"./chunk-ze3qgdaf.js";import"./chunk-54fnvfp1.js";import"./chunk-42b81qv3.js";import{ov as B}from"./chunk-6bcw8twx.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.300";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
|
|
4
4
|
Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-q0h9kdms.js");if(x==="list"){console.log(`
|
|
5
5
|
\uD83D\uDCDA Fetching available icon collections...
|
|
6
6
|
`);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
|
|
7
7
|
`);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
|
|
8
8
|
Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
|
|
9
9
|
\u2713 Package generated successfully!`),console.log(`
|
|
10
|
-
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-v54vyt8g.js"),{loadConfig:j}=await import("./chunk-
|
|
10
|
+
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-v54vyt8g.js"),{loadConfig:j}=await import("./chunk-yvgqs82c.js");console.log(`
|
|
11
11
|
\uD83D\uDD0D Running PWA audit...
|
|
12
12
|
`);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
|
|
13
13
|
No .stx files matched ${x}
|
|
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
69
69
|
File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
|
|
70
70
|
File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
|
|
71
71
|
Pages directory not found: ${k}`),console.log(`
|
|
72
|
-
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-
|
|
72
|
+
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-9fsremeg.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
|
|
73
73
|
Build complete! (SSR)
|
|
74
74
|
`),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
|
|
75
75
|
`);else if(H.ssg){if(console.log(`
|
|
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
84
84
|
Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
|
|
85
85
|
`),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
|
|
86
86
|
`)}}catch(z){console.error(`
|
|
87
|
-
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-
|
|
87
|
+
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-mcn6cpkm.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
|
|
88
88
|
Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-wbq4srvy.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
|
|
89
89
|
\uD83D\uDCDD Initializing Netlify configuration...
|
|
90
90
|
`);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
|
|
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
|
|
|
124
124
|
\uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
|
|
125
125
|
${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
|
|
126
126
|
\uD83D\uDCCA STX Performance Statistics
|
|
127
|
-
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-
|
|
127
|
+
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-zpfbwcyk.js"),{resolveStxTargets:j}=await import("./chunk-zv2hvn7r.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
|
|
128
128
|
No .stx files matched ${H.join(", ")}
|
|
129
129
|
`);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
|
|
130
130
|
Type-check did not run.
|
|
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
|
|
|
160
160
|
\uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
|
|
161
161
|
\uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
|
|
162
162
|
\u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-dfnevxkj.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
|
|
163
|
-
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-
|
|
163
|
+
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-afyfe868.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-3cgyqcze.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
|
|
164
164
|
\uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
|
|
165
165
|
`);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
|
|
166
166
|
\uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
|
|
167
|
-
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-
|
|
167
|
+
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-bz32kj1x.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-9vft4bjw.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-tn1za8mt.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-vdzv694w.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-v5jtjp8t.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
|
|
168
168
|
\uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
|
|
169
169
|
`);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
|
|
170
170
|
\uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
|