@stacksjs/stx 0.2.251 → 0.2.252
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-4c0p295t.js → chunk-0na9rn3e.js} +1 -1
- package/dist/{chunk-gbm3bd0j.js → chunk-0sj6nj4d.js} +1 -1
- package/dist/{chunk-kpxrbw2n.js → chunk-1b1fwf1e.js} +1 -1
- package/dist/{chunk-crtwmac9.js → chunk-1b3pey4n.js} +1 -1
- package/dist/{chunk-t46gp6zh.js → chunk-3ej56pch.js} +1 -1
- package/dist/{chunk-cysn9vr0.js → chunk-4zpmg5ct.js} +1 -1
- package/dist/{chunk-5ct1qbxq.js → chunk-5qy49drk.js} +1 -1
- package/dist/{chunk-52rn1jwe.js → chunk-6jay0ejd.js} +1 -1
- package/dist/{chunk-z0smbvq9.js → chunk-7hrttzad.js} +16 -16
- package/dist/{chunk-tqs4v0hc.js → chunk-81e0mjtz.js} +1 -1
- package/dist/{chunk-t7rna4kn.js → chunk-95t702td.js} +1 -1
- package/dist/{chunk-s6ky5k5w.js → chunk-9dagx91q.js} +1 -1
- package/dist/{chunk-cv5w1fkv.js → chunk-a8yc5svy.js} +1 -1
- package/dist/{chunk-dnz8044v.js → chunk-ay40p1k6.js} +1 -1
- package/dist/{chunk-t60sskkr.js → chunk-bmxqkast.js} +46 -5
- package/dist/{chunk-a0b1zd34.js → chunk-bs3n1zt2.js} +1 -1
- package/dist/{chunk-kaaskzaj.js → chunk-c06970qq.js} +8 -8
- package/dist/{chunk-6p5k801j.js → chunk-c6k8yfwa.js} +1 -1
- package/dist/{chunk-xvx1zzw1.js → chunk-cg6v2ff1.js} +1 -1
- package/dist/{chunk-xtmt4549.js → chunk-cjk6zcgz.js} +1 -1
- package/dist/{chunk-c56z9y36.js → chunk-ck11f0w4.js} +1 -1
- package/dist/{chunk-cexbvwfh.js → chunk-cxvmws79.js} +1 -1
- package/dist/{chunk-0j6zhj0f.js → chunk-dde4fvwg.js} +1 -1
- package/dist/{chunk-ncnevn5e.js → chunk-djkwdpcb.js} +1 -1
- package/dist/{chunk-8w35y6ye.js → chunk-dkrgh8gv.js} +1 -1
- package/dist/{chunk-mjt2ga29.js → chunk-f1m5a48z.js} +1 -1
- package/dist/{chunk-rzbgxrk3.js → chunk-f7ye3z1y.js} +1 -1
- package/dist/{chunk-ssdxwkpn.js → chunk-fcgewg4k.js} +1 -1
- package/dist/{chunk-8xpbqqam.js → chunk-fmj97bm8.js} +2 -2
- package/dist/{chunk-cnrpg4gc.js → chunk-gn21yx6c.js} +1 -1
- package/dist/{chunk-5gyfr3ry.js → chunk-kwz1hy66.js} +1 -1
- package/dist/{chunk-c3nj877g.js → chunk-m1qf02qz.js} +1 -1
- package/dist/{chunk-616a6xf0.js → chunk-m8y2hnqk.js} +1 -1
- package/dist/{chunk-qx2bkryn.js → chunk-nm1mh7ay.js} +1 -1
- package/dist/{chunk-ktj5sfax.js → chunk-nrkkxkzb.js} +1 -1
- package/dist/{chunk-krmh1xsd.js → chunk-pctsgktp.js} +1 -1
- package/dist/{chunk-f3va9snb.js → chunk-pt25jgqd.js} +1 -1
- package/dist/{chunk-9z5cbn7k.js → chunk-sd0rmt49.js} +1 -1
- package/dist/{chunk-1p3rxd4t.js → chunk-t0dq8bsd.js} +1 -1
- package/dist/{chunk-cwpndk2c.js → chunk-thermrhq.js} +1 -1
- package/dist/{chunk-8rnqqt1c.js → chunk-v0tdgxs9.js} +2 -2
- package/dist/{chunk-j67zcaxq.js → chunk-vn7stdg9.js} +1 -1
- package/dist/{chunk-qedw3aa8.js → chunk-xsze8fa2.js} +1 -1
- package/dist/{chunk-g7cxh760.js → chunk-xw1x7nkg.js} +1 -1
- package/dist/{chunk-gsv6mckp.js → chunk-zrhbc7jj.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/signals.js +46 -5
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
|
@@ -6859,8 +6859,39 @@ else {
|
|
|
6859
6859
|
// Only use fallback when we genuinely couldn't find a suitable root element.
|
|
6860
6860
|
// Do NOT fallback just because the script is in body> \u2014 layout scripts in body>
|
|
6861
6861
|
// with valid siblings (e.g. sidebar <aside>) should use those siblings as root.
|
|
6862
|
+
|
|
6863
|
+
// An x-data root that initScope has not claimed yet is not ours to mount.
|
|
6864
|
+
//
|
|
6865
|
+
// The element carries its own state expression and the reactive runtime
|
|
6866
|
+
// owns it; data-stx-scope is on it from the server, but the id is not
|
|
6867
|
+
// in stx._scopes until initScope runs, which on a navigation happens
|
|
6868
|
+
// later in the stx:load handler. Mounting it in the meantime binds its
|
|
6869
|
+
// whole subtree against whatever scope the mounting script brought.
|
|
6870
|
+
//
|
|
6871
|
+
// That is what a layout script did after every SPA navigation. Its own
|
|
6872
|
+
// re-executed script now lands inside the content container next to the
|
|
6873
|
+
// incoming page, so previousElementSibling resolved to the *page's*
|
|
6874
|
+
// x-data root; mount() adopted it and ran processElement over it with the
|
|
6875
|
+
// sidebar's scope. Every :for template inside was consumed against a
|
|
6876
|
+
// scope holding none of the page's data, and bindFor replaces each
|
|
6877
|
+
// template with its stx-for anchor on that single pass \u2014 so the markup a
|
|
6878
|
+
// retry needed was gone, and the effect had read no signal to re-run on.
|
|
6879
|
+
// The list stayed empty for the life of the page while its state sat
|
|
6880
|
+
// fully populated beside it. Cold loads never hit it: there the page's
|
|
6881
|
+
// own script mounts first, with the right scope.
|
|
6882
|
+
//
|
|
6883
|
+
// Registered scopes are left alone, so an element the reactive runtime
|
|
6884
|
+
// has already initialised keeps whatever behaviour it had.
|
|
6885
|
+
function awaitingReactiveInit(el) {
|
|
6886
|
+
if (!el || !el.hasAttribute || !el.hasAttribute('data-stx-xdata'))
|
|
6887
|
+
return false;
|
|
6888
|
+
var id = el.getAttribute('data-stx-scope');
|
|
6889
|
+
return !(id && window.stx && window.stx._scopes && window.stx._scopes[id]);
|
|
6890
|
+
}
|
|
6891
|
+
|
|
6862
6892
|
var needsFallback = !root || root === document.body
|
|
6863
|
-
|| (root && root.tagName === 'SCRIPT')
|
|
6893
|
+
|| (root && root.tagName === 'SCRIPT')
|
|
6894
|
+
|| awaitingReactiveInit(root);
|
|
6864
6895
|
if (needsFallback) {
|
|
6865
6896
|
var routerOpts = window.STX_ROUTER_OPTIONS || window.__stxRouterConfig || {};
|
|
6866
6897
|
var container = document.querySelector('[data-stx-content]')
|
|
@@ -6878,14 +6909,24 @@ else {
|
|
|
6878
6909
|
if (children[ci].__stx_scope) { hasMount = true; break; }
|
|
6879
6910
|
}
|
|
6880
6911
|
if (hasMount) for (var ci = 0; ci < children.length; ci++) {
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6912
|
+
var candidate = children[ci];
|
|
6913
|
+
if (candidate.__stx_scope || candidate.tagName === 'SCRIPT') continue;
|
|
6914
|
+
if (awaitingReactiveInit(candidate)) continue;
|
|
6915
|
+
root = candidate;
|
|
6916
|
+
break;
|
|
6885
6917
|
}
|
|
6886
6918
|
}
|
|
6887
6919
|
}
|
|
6888
6920
|
|
|
6921
|
+
// The fallback can still land on one (a container whose only unmounted
|
|
6922
|
+
// child is the incoming page). Processing the container instead is safe:
|
|
6923
|
+
// processElement skips [data-stx-scope] children, so the reactive
|
|
6924
|
+
// runtime keeps its subtree and binds it with the right scope.
|
|
6925
|
+
if (awaitingReactiveInit(root)) {
|
|
6926
|
+
var reactiveOwnerParent = root.parentElement;
|
|
6927
|
+
root = reactiveOwnerParent && reactiveOwnerParent !== document.body ? reactiveOwnerParent : null;
|
|
6928
|
+
}
|
|
6929
|
+
|
|
6889
6930
|
if (!root) { console.warn('[stx] mount: no root element found'); return; }
|
|
6890
6931
|
|
|
6891
6932
|
// Set component context for defineProps/defineEmits (Phase 4)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j}from"./chunk-
|
|
2
|
+
import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j}from"./chunk-4zpmg5ct.js";import"./chunk-0ha9e1wt.js";import"./chunk-7hrttzad.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-pctsgktp.js";import"./chunk-q0sgqw4m.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-rrxm5s7d.js";import"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ng as _$,og as K5}from"./chunk-
|
|
2
|
+
import{ng as _$,og as K5}from"./chunk-t0dq8bsd.js";import{Ag as U$,Bg as q6,Dg as Z1,Eg as y6,Fg as Q5,Gg as B$,Hg as L$,Ig as v6,Jg as g6,yg as y7}from"./chunk-m1qf02qz.js";import{Aj as p5,Cj as c5,vj as u1,wj as O1,xj as H1,yj as m$,zj as p$}from"./chunk-w95sp0k9.js";import{Wj as Y$,Xj as J$}from"./chunk-xsze8fa2.js";import{yk as g5,zk as f5}from"./chunk-h3cvkas0.js";import{Fk as l7,Gk as i7}from"./chunk-58f0mthg.js";import{jl as Q1}from"./chunk-0ha9e1wt.js";import{Cm as s$,Cp as m0,Gq as O0,Km as x6,Om as Z5,Qr as G$,Rm as N1,Sm as M1,Uq as Q6,Vq as E1,Yo as Z$,Zq as p0,am as b7,ap as X5,bn as c1,bs as E$,cm as X6,cp as S6,dp as z6,ds as d0,en as L6,eq as g7,es as M0,is as V0,lq as P6,mn as n$,mq as b6,on as o$,rn as l1,sm as u0,up as j0,vn as t$,yn as Q$,zn as F6}from"./chunk-7hrttzad.js";import{$s as o,Os as B,Ws as W$,Xs as K$}from"./chunk-pctsgktp.js";import{lt as S0}from"./chunk-ecncwde8.js";import{Au as C6,Cu as k6,Gu as A6,au as $5,bu as H6,fu as V6,gu as E6,vu as I6,wu as R6,xu as D6,yu as w6,zu as T6}from"./chunk-9qn3f7tp.js";import{Qu as p}from"./chunk-b9691w0f.js";var l5={read:($)=>{try{return JSON.parse($)}catch{return $}},write:($)=>{return JSON.stringify($)}};function e7($,X,Q={}){let{storage:Z="local",serializer:Y=l5,mergeDefaults:J=!1,listenToStorageChanges:G=!0}=Q,W=new Set,K=typeof window<"u",_=()=>{if(!K)return null;return Z==="session"?sessionStorage:localStorage},U=()=>{let L=_();if(!L)return X;try{let H=L.getItem($);if(H===null)return X;let q=Y.read(H);if(J&&typeof X==="object"&&X!==null)return{...X,...q};return q}catch{return X}},F=(L)=>{let H=_();if(!H)return;try{if(L===null||L===void 0)H.removeItem($);else H.setItem($,Y.write(L))}catch(q){console.warn(`[useStorage] Failed to write key "${$}":`,q)}},z=U(),j=(L,H)=>{for(let q of W)try{q(L,H)}catch(A){console.error("[useStorage] Subscriber error:",A)}};if(K&&G){let L=(q)=>{if(q.key===$&&q.storageArea===_()){let A=z;try{z=q.newValue?Y.read(q.newValue):X}catch(N){console.warn(`[useStorage] Failed to read key "${$}" from a cross-tab update:`,N);return}j(z,A)}};window.addEventListener("storage",L);let H=globalThis.onDestroy;if(typeof H==="function")H(()=>window.removeEventListener("storage",L))}let O={get value(){return z},set value(L){let H=z;z=L,F(L),j(L,H)},get:()=>z,set:(L)=>{O.value=L},remove:()=>{let L=_();if(L){L.removeItem($);let H=z;z=X,j(X,H)}},subscribe:(L)=>{return W.add(L),L(z,void 0),()=>W.delete(L)}};return O}function i5($,X,Q,Z,Y={}){let{serializer:J=l5,mergeDefaults:G=!1,listenToStorageChanges:W=!0}=Y,K=typeof window<"u",_=()=>{if(!K)return null;return $==="session"?sessionStorage:localStorage},U=(j)=>{if(j===null||j===void 0)return Z;try{let O=J.read(j);if(G&&typeof Z==="object"&&Z!==null)return{...Z,...O};return O}catch(O){return console.warn(`[${X}] Failed to read key "${Q}":`,O),Z}},z=p5((()=>{let j=_();if(!j)return Z;try{return U(j.getItem(Q))}catch(O){return console.warn(`[${X}] Cannot read "${Q}":`,O),Z}})());if(c5(()=>{let j=z(),O=_();if(!O)return;try{if(j===null||j===void 0)O.removeItem(Q);else O.setItem(Q,J.write(j))}catch(L){console.warn(`[${X}] Cannot persist "${Q}":`,L)}}),K&&W){let j=(L)=>{if(L.key!==Q)return;if(L.storageArea&&L.storageArea!==_())return;z.set(U(L.newValue))};window.addEventListener("storage",j);let O=globalThis.onDestroy;if(typeof O==="function")O(()=>window.removeEventListener("storage",j))}return z}function $3($,X,Q){return i5("local","useLocalStorage",$,X,Q)}function X3($,X,Q){return i5("session","useSessionStorage",$,X,Q)}function Q3($="local"){if(typeof window>"u")return;($==="session"?sessionStorage:localStorage).clear()}function Z3($="local"){if(typeof window>"u")return[];let X=$==="session"?sessionStorage:localStorage;return Object.keys(X)}function Y3($="local"){if(typeof window>"u")return 0;let X=$==="session"?sessionStorage:localStorage,Q=0;for(let Z in X)if(Object.prototype.hasOwnProperty.call(X,Z))Q+=(Z.length+(X.getItem(Z)?.length||0))*2;return Q}var l=null;function d1($,X,Q=new WeakSet){if(Object.is($,X))return!0;if(typeof $!=="object"||typeof X!=="object"||$===null||X===null)return!1;if(Q.has($))return!0;if(Q.add($),$ instanceof Date&&X instanceof Date)return $.getTime()===X.getTime();if($ instanceof RegExp&&X instanceof RegExp)return $.source===X.source&&$.flags===X.flags;if(Array.isArray($)){if(!Array.isArray(X)||$.length!==X.length)return!1;for(let J=0;J<$.length;J++)if(!d1($[J],X[J],Q))return!1;return!0}if(Array.isArray(X))return!1;if($ instanceof Map){if(!(X instanceof Map)||$.size!==X.size)return!1;for(let[J,G]of $)if(!X.has(J)||!d1(G,X.get(J),Q))return!1;return!0}if(X instanceof Map)return!1;if($ instanceof Set){if(!(X instanceof Set)||$.size!==X.size)return!1;for(let J of $)if(!X.has(J))return!1;return!0}if(X instanceof Set)return!1;let Z=Object.keys($),Y=Object.keys(X);if(Z.length!==Y.length)return!1;for(let J of Z){if(!Object.prototype.hasOwnProperty.call(X,J))return!1;if(!d1($[J],X[J],Q))return!1}return!0}function BJ($){l=$}function LJ(){return l}function FJ(){return{isMounted:!1,isUnmounted:!1,hooks:{beforeMount:[],mounted:[],beforeUpdate:[],updated:[],beforeUnmount:[],unmounted:[]},effects:[],scope:J3()}}function J3(){return{refs:new Map,effects:new Set,cleanups:[]}}function zJ($){let X=new Set,Q=new Set,Z=$,Y=Symbol("ref"),J={get value(){let G=u1();if(G)Q.add(G);return Z},set value(G){if(!Object.is(G,Z)){let W=Z;Z=G;for(let K of X)K(G,W);for(let K of Q)if(m$())p$(K);else K()}},subscribe(G){return X.add(G),()=>{X.delete(G)}}};if(l)l.scope.refs.set(Y,J);return J}var a5=new WeakMap;function G3($){let X=a5.get($);if(X)return X;let Q=new Map,Z=(G)=>{let W=Q.get(G);if(!W)return;for(let K of[...W])if(m$())p$(K);else K()},Y=(G,W)=>{if(!Q.has(G))Q.set(G,new Set);return Q.get(G).add(W),()=>{Q.get(G)?.delete(W)}},J=new Proxy($,{get(G,W,K){let _=Reflect.get(G,W,K),U=u1();if(U)Y(W,U);if(_!==null&&typeof _==="object"&&!Array.isArray(_)){let F=Object.getPrototypeOf(_);if(F===Object.prototype||F===null)return G3(_)}return _},set(G,W,K,_){let U=Reflect.get(G,W,_),F=Reflect.set(G,W,K,_);if(!Object.is(K,U))Z(W);return F},deleteProperty(G,W){let K=Reflect.deleteProperty(G,W);return Z(W),K}});return a5.set($,J),J}function jJ($){let X,Q=!0,Z=new Set,Y=new Set,J=()=>{Q=!0,G()},G=()=>{if(Q){let K=X,_=O1(J);if(X=$(),H1(_),Q=!1,!Object.is(X,K)){for(let U of Z)U(X,K);for(let U of Y)U()}}},W=O1(J);return X=$(),Q=!1,H1(W),{get value(){let K=u1();if(K)Y.add(K);return G(),X},set value(K){console.warn("[stx] Computed properties are readonly")},subscribe(K){return Z.add(K),()=>{Z.delete(K)}}}}function W3($){if(typeof requestAnimationFrame==="function"){requestAnimationFrame(()=>{requestAnimationFrame($)});return}setTimeout($,0)}function OJ($,X,Q={}){let{immediate:Z=!1,deep:Y=!1,flush:J="post"}=Q,G,W,K=!1,_=()=>{if(K)return;let O=j();if((Y?!d1(O,G):!Object.is(O,G))||Z)if(X(O,G),Y&&O!==null&&typeof O==="object")try{G=structuredClone(O)}catch{G=O}else G=O},U=(O)=>{if(J==="sync")O();else if(J==="pre")Promise.resolve().then(O);else W3(O)},F=!1,z=()=>{if(K||F)return;F=!0,U(()=>{F=!1,_()})},j=()=>{if(typeof $==="function"){let O=O1(z);try{return $()}finally{H1(O)}}return $.value};if(typeof $!=="function"){let O=$.subscribe(()=>{U(_)});W=()=>{K=!0,O()}}else W=()=>{K=!0};if(G=j(),Z)U(_);if(l)l.scope.cleanups.push(()=>W?.());return()=>W?.()}function HJ($,X,Q={}){let Z=[],Y=$.map((J)=>J.value);for(let J of $){let G=J.subscribe(()=>{let W=$.map((K)=>K.value);X(W,Y),Y=[...W]});Z.push(G)}if(Q.immediate){let J=$.map((G)=>G.value);X(J,Y)}return()=>{for(let J of Z)J()}}function AJ($){let X,Q=!1,Z=()=>{if(Q)return;if(X)X();let Y=O1(Z);X=$(),H1(Y)};if(Z(),l)l.scope.cleanups.push(()=>{if(Q=!0,X)X()});return()=>{if(Q=!0,X)X()}}function qJ($){if(l)l.hooks.beforeMount.push($);else console.warn("[stx] onBeforeMount called outside of component setup")}function NJ($){if(l)l.hooks.mounted.push($);else console.warn("[stx] onMounted called outside of component setup")}function MJ($){if(l)l.hooks.beforeUpdate.push($);else console.warn("[stx] onBeforeUpdate called outside of component setup")}function VJ($){if(l)l.hooks.updated.push($);else console.warn("[stx] onUpdated called outside of component setup")}function EJ($){if(l)l.hooks.beforeUnmount.push($);else console.warn("[stx] onBeforeUnmount called outside of component setup")}function IJ($){if(l)l.hooks.unmounted.push($);else console.warn("[stx] onUnmounted called outside of component setup")}async function n0($,X){let Q=$.hooks[X];for(let Z of Q)await Z()}async function RJ($){await n0($,"beforeMount"),$.isMounted=!0,await n0($,"mounted")}async function DJ($){if(!$.isMounted||$.isUnmounted)return;await n0($,"beforeUpdate"),await n0($,"updated")}async function wJ($){if($.isUnmounted)return;await n0($,"beforeUnmount");for(let X of $.scope.cleanups)X();$.isUnmounted=!0,await n0($,"unmounted")}function TJ(){return`
|
|
3
3
|
<script data-stx-client-runtime>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1057,7 +1057,7 @@ else {
|
|
|
1057
1057
|
};
|
|
1058
1058
|
})();
|
|
1059
1059
|
</script>
|
|
1060
|
-
`}function D0($,X,Q={}){let Z=j4(X,Q),Y=$.lastIndexOf("</body>");if(Y!==-1)return $.slice(0,Y)+Z+$.slice(Y);if($.includes("</html>"))return $.replace("</html>",`${Z}</html>`);return $+Z}function t1($){let X=$.toLowerCase();return X.endsWith(".css")||X.endsWith(".scss")||X.endsWith(".sass")||X.endsWith(".less")}function e1($){let X=$.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((Z)=>X.endsWith(Z))}function $$($){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((Q)=>Q.test($))}var $1=null;function X$($){if(!$1)$1=new B6($);return $1}function A1(){if($1)$1.stop(),$1=null}import q1 from"path";var X1={name:"bun-plugin-stx",async setup($){let Q={...await d0(),...$.config?.stx},Z=new Set,Y=Q.webComponents?.enabled?`./${q1.relative(q1.dirname($.config?.outdir||"dist"),Q.webComponents.outputDir||"dist/web-components")}`:"/web-components",J=[];if(Q.webComponents?.enabled)try{let G=await G$(Q,Z);if(J.push(...G),Q.debug&&G.length>0)console.log(`Successfully built ${G.length} web components`)}catch(G){console.error("Failed to build web components:",G)}$.onLoad({filter:/\.stx$/},async({path:G})=>{try{let W=new Set;if(Q.cache&&Q.cachePath){let L=await Y$(G,Q);if(L){if(Q.debug)console.log(`Using cached version of ${G}`);return{contents:L,loader:"html"}}}let K=await t$(()=>Bun.file(G).text(),"",(L)=>{throw new o$(`Failed to read stx file: ${G}`,G,void 0,void 0,`File read error: ${L.message}`)});if(!K)throw new o$(`stx file is empty: ${G}`,G);let{scriptContent:_,templateContent:U,allScripts:F}=s$.time("script-extraction",()=>{let L=K,H=Z$(K);if(H)L=H.content.trim();let q=K.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],A="",N=[];for(let M of q){let I=M.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",w=M.match(/<script\b([^>]*)>/i),C=w?w[1]:"";if(/\bserver\b/i.test(C))A=I;else N.push(M)}let V=L.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:A,templateContent:V,allScripts:N}}),z={__filename:G,__dirname:q1.dirname(G),__stx:{webComponentsPath:Y,builtComponents:J}};await t$(()=>j0(_,z,G),void 0,(L)=>{let H=new n$(`Script execution failed in ${G}: ${L.message}`,G,void 0,void 0,_.substring(0,100));if(Q$.log(H,{filePath:G,scriptContent:_}),Q.debug)throw H});let O=await s$.timeAsync("directive-processing",async()=>{return await O0(U,z,G,Q,W)});if(F.length>0){let{interpolateScriptsInTemplate:L}=await import("./chunk-
|
|
1060
|
+
`}function D0($,X,Q={}){let Z=j4(X,Q),Y=$.lastIndexOf("</body>");if(Y!==-1)return $.slice(0,Y)+Z+$.slice(Y);if($.includes("</html>"))return $.replace("</html>",`${Z}</html>`);return $+Z}function t1($){let X=$.toLowerCase();return X.endsWith(".css")||X.endsWith(".scss")||X.endsWith(".sass")||X.endsWith(".less")}function e1($){let X=$.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((Z)=>X.endsWith(Z))}function $$($){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((Q)=>Q.test($))}var $1=null;function X$($){if(!$1)$1=new B6($);return $1}function A1(){if($1)$1.stop(),$1=null}import q1 from"path";var X1={name:"bun-plugin-stx",async setup($){let Q={...await d0(),...$.config?.stx},Z=new Set,Y=Q.webComponents?.enabled?`./${q1.relative(q1.dirname($.config?.outdir||"dist"),Q.webComponents.outputDir||"dist/web-components")}`:"/web-components",J=[];if(Q.webComponents?.enabled)try{let G=await G$(Q,Z);if(J.push(...G),Q.debug&&G.length>0)console.log(`Successfully built ${G.length} web components`)}catch(G){console.error("Failed to build web components:",G)}$.onLoad({filter:/\.stx$/},async({path:G})=>{try{let W=new Set;if(Q.cache&&Q.cachePath){let L=await Y$(G,Q);if(L){if(Q.debug)console.log(`Using cached version of ${G}`);return{contents:L,loader:"html"}}}let K=await t$(()=>Bun.file(G).text(),"",(L)=>{throw new o$(`Failed to read stx file: ${G}`,G,void 0,void 0,`File read error: ${L.message}`)});if(!K)throw new o$(`stx file is empty: ${G}`,G);let{scriptContent:_,templateContent:U,allScripts:F}=s$.time("script-extraction",()=>{let L=K,H=Z$(K);if(H)L=H.content.trim();let q=K.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],A="",N=[];for(let M of q){let I=M.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",w=M.match(/<script\b([^>]*)>/i),C=w?w[1]:"";if(/\bserver\b/i.test(C))A=I;else N.push(M)}let V=L.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:A,templateContent:V,allScripts:N}}),z={__filename:G,__dirname:q1.dirname(G),__stx:{webComponentsPath:Y,builtComponents:J}};await t$(()=>j0(_,z,G),void 0,(L)=>{let H=new n$(`Script execution failed in ${G}: ${L.message}`,G,void 0,void 0,_.substring(0,100));if(Q$.log(H,{filePath:G,scriptContent:_}),Q.debug)throw H});let O=await s$.timeAsync("directive-processing",async()=>{return await O0(U,z,G,Q,W)});if(F.length>0){let{interpolateScriptsInTemplate:L}=await import("./chunk-zrhbc7jj.js"),H=L(F.join(`
|
|
1061
1061
|
`),z),q=O.search(/<\/body>/i);if(q!==-1)O=O.slice(0,q)+H+`
|
|
1062
1062
|
`+O.slice(q);else O+=`
|
|
1063
1063
|
${H}`}if(O=await z6(O),W.forEach((L)=>Z.add(L)),Q.cache&&Q.cachePath){if(await J$(G,O,W,Q),Q.debug)console.log(`Cached template ${G} with ${W.size} dependencies`)}return{contents:O,loader:"html"}}catch(W){let K=W instanceof Error?W:new n$(`Plugin processing failed: ${String(W)}`,G);if(Q$.log(K,{filePath:G,buildConfig:$.config}),F6.logDetailedError(K,{filePath:G,plugin:"bun-plugin-stx"}),Q.debug)console.error("stx Plugin Error:",K);let _=K,U=_.line||null,F=_.context||null;return{contents:Q.debug||L6()?`<!DOCTYPE html>
|
|
@@ -1120,7 +1120,7 @@ ${H}`}if(O=await z6(O),W.forEach((L)=>Z.add(L)),Q.cache&&Q.cachePath){if(await J
|
|
|
1120
1120
|
<h1>Something went wrong</h1>
|
|
1121
1121
|
<p>An internal error occurred. Please try again later.</p>
|
|
1122
1122
|
</body>
|
|
1123
|
-
</html>`,loader:"html"}}})}};async function H4($,X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=Y0.resolve($);if(!H0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return r$(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=S0(process.cwd(),"output");H0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let A={name:"public-assets",setup(I){I.onResolve({filter:/^\/(images|fonts|assets|public)\//},(w)=>{return{path:w.path,external:!0}})}},N=await Bun.build({entrypoints:[W],outdir:K,plugins:[A,X1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!N.success)return console.error(`${B.red}Build failed:${B.reset}`,N.logs),!1;let V=N.outputs.find((I)=>I.path.endsWith(".html"));if(!V)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(V.path).text(),!0}catch(A){return console.error(`${B.red}Error building stx file:${B.reset}`,A),!1}};if(!await U())return!1;let z=Y0.dirname(W);await W$(z);let j=Q;try{if(j=await k0(Q),j!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${j} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let A=X.hmrPort||j+1;J=X$({wsPort:A,verbose:!1}),G=J.start(A)}let O={},L=null;try{let{loadStxConfig:A}=await import("./chunk-
|
|
1123
|
+
</html>`,loader:"html"}}})}};async function H4($,X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=Y0.resolve($);if(!H0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return r$(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=S0(process.cwd(),"output");H0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let A={name:"public-assets",setup(I){I.onResolve({filter:/^\/(images|fonts|assets|public)\//},(w)=>{return{path:w.path,external:!0}})}},N=await Bun.build({entrypoints:[W],outdir:K,plugins:[A,X1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!N.success)return console.error(`${B.red}Build failed:${B.reset}`,N.logs),!1;let V=N.outputs.find((I)=>I.path.endsWith(".html"));if(!V)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(V.path).text(),!0}catch(A){return console.error(`${B.red}Error building stx file:${B.reset}`,A),!1}};if(!await U())return!1;let z=Y0.dirname(W);await W$(z);let j=Q;try{if(j=await k0(Q),j!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${j} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let A=X.hmrPort||j+1;J=X$({wsPort:A,verbose:!1}),G=J.start(A)}let O={},L=null;try{let{loadStxConfig:A}=await import("./chunk-cxvmws79.js"),N=await A();if(N?.apiRouter)L=N?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(N?.apiRoutes){O=N.apiRoutes;let V=Object.keys(O).length;if(V>0)console.log(`${B.blue}Loaded ${B.bright}${V} API route${V>1?"s":""}${B.reset}`)}if(N?.broadcasting?.enabled)try{let{startBroadcasting:V,loadChannels:M}=await import("./chunk-vbhn2vkt.js"),I=N.broadcasting;await V(I);let w=I.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${w}/ws${B.reset}`);let C=Y0.join(process.cwd(),"channels.ts");if(H0.existsSync(C))try{let R=await M(C);console.log(`${B.blue}Loaded ${B.bright}${R} broadcast channel${R!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(R){console.warn(`${B.yellow}Failed to load channels.ts: ${R.message}${B.reset}`)}}catch(V){console.warn(`${B.yellow}Broadcasting failed to start: ${V.message}${B.reset}`)}}catch{}if(console.log(`${B.blue}Starting server on ${B.cyan}http://localhost:${j}/${B.reset}...`),Y)console.log(`${B.magenta}Hot reload enabled on ws://localhost:${G}${B.reset}`);let H=O4({port:j,async fetch(A){return _$(A,await(async()=>{let N=new URL(A.url);if(L)try{let C=await L.handleRequest(A);if(C.status!==404)return C}catch{}if(O[N.pathname])try{return await O[N.pathname](A)}catch(C){return new Response(JSON.stringify({error:C.message}),{status:500,headers:{"Content-Type":"application/json"}})}if(N.pathname==="/")return(async()=>{let R=await o(_||"");if(Y)R=D0(R,G);if(X.native)if(R.includes("<head>"))R=R.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else if(R.includes("<html"))R=R.replace(/(<html[^>]*>)/,"$1<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>");else R="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+R;if(X.titlebarHidden)if(R.includes("<head>"))R=R.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else if(R.includes("<html"))R=R.replace(/(<html[^>]*>)/,"$1<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>");else R=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${R}`;return R})().then((R)=>new Response(R,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}}));let V=Y0.join(K,N.pathname);if(H0.existsSync(V)&&H0.statSync(V).isFile()){let C=Bun.file(V),R=Y0.extname(V).toLowerCase(),E="text/plain";if(R===".ts"||R===".tsx"){let h=new Bun.Transpiler({loader:R===".tsx"?"tsx":"ts"}),u=await C.text(),t=h.transformSync(u);return new Response(t,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(R){case".html":E="text/html";break;case".css":E="text/css";break;case".js":E="text/javascript";break;case".json":E="application/json";break;case".png":E="image/png";break;case".jpg":case".jpeg":E="image/jpeg";break;case".gif":E="image/gif";break;case".woff":E="font/woff";break;case".woff2":E="font/woff2";break;case".ttf":E="font/ttf";break;case".otf":E="font/otf";break;case".eot":E="application/vnd.ms-fontobject";break}return new Response(C,{headers:{"Content-Type":E}})}let M=Y0.dirname(W),I=Y0.join(M,N.pathname);if(H0.existsSync(I)&&H0.statSync(I).isFile()){let C=Bun.file(I),R=Y0.extname(I).toLowerCase(),E="text/plain";if(R===".ts"||R===".tsx"){let h=new Bun.Transpiler({loader:R===".tsx"?"tsx":"ts"}),u=await C.text(),t=h.transformSync(u);return new Response(t,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(R){case".html":E="text/html";break;case".css":E="text/css";break;case".js":E="text/javascript";break;case".json":E="application/json";break;case".png":E="image/png";break;case".jpg":case".jpeg":E="image/jpeg";break;case".gif":E="image/gif";break;case".svg":E="image/svg+xml";break;case".ico":E="image/x-icon";break;case".woff":E="font/woff";break;case".woff2":E="font/woff2";break;case".ttf":E="font/ttf";break;case".otf":E="font/otf";break;case".eot":E="application/vnd.ms-fontobject";break}return new Response(C,{headers:{"Content-Type":E}})}let w=Y0.join(process.cwd(),"public",N.pathname);if(H0.existsSync(w)&&H0.statSync(w).isFile()){let C=Bun.file(w),R=Y0.extname(w).toLowerCase(),E="application/octet-stream";if(R===".ts"||R===".tsx"){let h=new Bun.Transpiler({loader:R===".tsx"?"tsx":"ts"}),u=await C.text(),t=h.transformSync(u);return new Response(t,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(R){case".html":E="text/html";break;case".css":E="text/css";break;case".js":E="text/javascript";break;case".json":E="application/json";break;case".png":E="image/png";break;case".jpg":case".jpeg":E="image/jpeg";break;case".gif":E="image/gif";break;case".svg":E="image/svg+xml";break;case".ico":E="image/x-icon";break;case".woff":E="font/woff";break;case".woff2":E="font/woff2";break;case".ttf":E="font/ttf";break;case".otf":E="font/otf";break;case".eot":E="application/vnd.ms-fontobject";break}return new Response(C,{headers:{"Content-Type":E}})}return new Response("Not Found",{status:404})})())},error(A){return new Response(`<pre>${A}
|
|
1124
1124
|
${A.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),console.log(`
|
|
1125
1125
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1126
1126
|
${B.bright}\u2192 ${B.cyan}http://localhost:${j}/${B.reset}`),console.log(`
|
|
@@ -1607,12 +1607,12 @@ ${O.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),con
|
|
|
1607
1607
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1608
1608
|
${B.bright}\u2192 ${B.cyan}http://localhost:${U}/${B.reset}`),console.log(`
|
|
1609
1609
|
${B.yellow}Routes:${B.reset}`);let z=new Set(W.map((O)=>O.routeTemplate)),j=Object.entries(G).filter(([O])=>!z.has(O)).sort(([O],[L])=>O.localeCompare(L)).map(([O,L])=>({route:O==="/"?"/":O,filePath:Q0.relative(process.cwd(),L.filePath),fileType:L.fileType}));for(let O of W){let L=O.routeTemplate.replace(/\[([^\]]+)\]/g,":$1");j.push({route:L,filePath:Q0.relative(process.cwd(),O.filePath),fileType:"stx"})}if(j.sort((O,L)=>O.route.localeCompare(L.route)),j.forEach((O,L)=>{let q=L===j.length-1?"\u2514\u2500 ":"\u251C\u2500 ",A=O.fileType==="md"?`${B.magenta}(markdown)${B.reset}`:"";console.log(` ${B.green}${q}${O.route}${B.reset} \u2192 ${B.bright}${O.filePath}${B.reset} ${A}`)}),console.log(`
|
|
1610
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),x0(F.url.toString(),()=>{if(Z)P0.watch(J,{recursive:!0}).close();F.stop()}),Z){console.log(`${B.blue}Watching for changes...${B.reset}`);let O=P0.watch(J,{recursive:!0},async(L,H)=>{if(!H)return;if(H.endsWith(".stx")||H.endsWith(".js")||H.endsWith(".ts")||H.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${H}${B.yellow} changed, rebuilding...${B.reset}`),m0.clear(),p0(),await K()});process.on("SIGINT",()=>{O.close(),F.stop(),process.exit(0)})}return!0}function O6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:N4}=globalThis.Bun;import J0 from"fs";import g from"path";async function M6($){try{return Z5(await Bun.file($).text())}catch{return}}function e$($){let X=Bun.file($),Q=g.extname($).toLowerCase(),Z={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Q)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Z[Q]||"application/octet-stream",...J}})}async function M4($=".",X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=g.resolve($),{loadStxConfig:K}=await import("./chunk-cexbvwfh.js"),_=await K(W),U=_.root&&_.root!=="."?g.join(W,_.root):W,F=X.pagesDir||_.pagesDir||"pages",z=g.join(U,F);if(!J0.existsSync(z))return console.error(`${B.red}Error: No '${F}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${z}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${F}/index.stx for the homepage.${B.reset}`),!1;let j=X5(U,{pagesDir:F});if(j.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${z}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${j.length}${B.blue} routes${B.reset}`);let O=_?._pluginPageDirs||[],L=[];for(let{dir:D,prefix:T}of O)if(J0.existsSync(D)){let x=X5(g.dirname(D),{pagesDir:g.basename(D)});for(let S of x){let b=T==="/"?S.pattern:`${T}${S.pattern==="/"?"":S.pattern}`;L.push({route:{...S,pattern:b},prefix:T})}if(x.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${x.length}${B.blue} routes at ${B.cyan}${T}${B.reset}`)}let H=new Map,q=null,A=null;if(X.stxOptions?.shell!==!1){if(A=await y6(W,X.stxOptions?.shell),A){if(q=await Q5(A,X.stxOptions||{}),q)console.log(`${B.blue}Using app shell: ${B.bright}${g.relative(W,A)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}I6(),await D6(W);let N=R6();if(N.length>0)console.log(`${B.blue}Loaded ${B.bright}${N.length}${B.blue} middleware: ${B.dim}${N.join(", ")}${B.reset}`);let V={},M=null;try{let{loadStxConfig:D}=await import("./chunk-cexbvwfh.js"),T=await D(W);if(T?.apiRouter)M=T?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(T?.apiRoutes){V=T.apiRoutes;let x=Object.keys(V).length;if(x>0)console.log(`${B.blue}Loaded ${B.bright}${x} API route${x>1?"s":""}${B.reset}`)}if(T?.broadcasting?.enabled)try{let{startBroadcasting:x,loadChannels:S}=await import("./chunk-vbhn2vkt.js"),b=T.broadcasting;await x(b);let _0=b.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${_0}/ws${B.reset}`);let K0=g.join(process.cwd(),"channels.ts");if(J0.existsSync(K0))try{let C0=await S(K0);console.log(`${B.blue}Loaded ${B.bright}${C0} broadcast channel${C0!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(C0){console.warn(`${B.yellow}Failed to load channels.ts: ${C0.message}${B.reset}`)}}catch(x){console.warn(`${B.yellow}Broadcasting failed to start: ${x.message}${B.reset}`)}}catch{}let I=S0(W,"output");J0.mkdirSync(I,{recursive:!0});let w=new Map,C=new Set,R=async(D)=>{let T=V6(z,D);if(!T)return null;try{let x=await Bun.build({entrypoints:[T],outdir:I,plugins:[X1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!x.success)return null;let S=x.outputs.find((b)=>b.path.endsWith(".html"));if(!S)return null;return await Bun.file(S.path).text()}catch{return null}},E=new Map,h=async(D,T)=>{try{let{processDirectives:x,extractVariables:S,defaultConfig:b,loadStxConfig:_0,injectRouterScript:K0}=await import("./chunk-cexbvwfh.js"),{checkCache:C0,cacheTemplate:u$,readFileCached:r,templateCache:f1}=await import("./chunk-kpxrbw2n.js"),h1=await _0(W),k=(d)=>{if(!d)return d;if(g.isAbsolute(d))return d;return g.resolve(W,d)},y={...b,...h1,...X.stxOptions,autoShell:!0};if(X.debugDirectives)y.debug=!0;y.partialsDir=k(y.partialsDir),y.componentsDir=k(y.componentsDir),y.layoutsDir=k(y.layoutsDir),y.storesDir=k(y.storesDir||"stores"),y.cachePath=k(y.cachePath)??S0(W,"cache");let m=!T&&!X.profile,c=y.cache!==!1;if(c&&m){let d=f1.get(D.filePath);if(d)try{if((await J0.promises.stat(D.filePath)).mtime.getTime()<=d.mtime){let z0=!0;for(let $0 of d.dependencies){if(!J0.existsSync($0)){z0=!1;break}if((await J0.promises.stat($0)).mtime.getTime()>d.mtime){z0=!1;break}}if(z0){let $0=d.output;if(q)$0=L$($0,{preserveHead:!0});let j1=E.get(D.filePath);return{route:D,content:$0,status:j1?.status??await M6(D.filePath),headers:j1?.headers}}}}catch{}let L0=await C0(D.filePath,y);if(L0){let F0=L0;if(q)F0=L$(F0,{preserveHead:!0});let z0=E.get(D.filePath);return{route:D,content:F0,status:z0?.status??await M6(D.filePath),headers:z0?.headers}}}let s=c?await r(D.filePath):await Bun.file(D.filePath).text(),v=Z5(s),{classifyAllScripts:U0}=await import("./chunk-cexbvwfh.js"),B0=U0(s),a=B0.server.map((d)=>d.content),e=s;for(let d of B0.server)e=e.replace(d.fullTag,"");let n={__filename:D.filePath,__dirname:g.dirname(D.filePath),params:T??{},__stx_runtime_head:{}};for(let d of a)try{await S(d,n,D.filePath)}catch(L0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",D.filePath,L0?.message||L0)}let r0=new Set,N0;if(X.profile){let d=performance.now();N0=await x(e,n,D.filePath,y,r0);let L0=performance.now()-d,F0=g.relative(W,D.filePath)||D.filePath;console.log(`[stx:profile] ${F0} \u2192 ${L0.toFixed(2)}ms`)}else N0=await x(e,n,D.filePath,y,r0);if(!q)N0=await K0(N0,{router:y.router});{let{interpolateScriptExpressions:d}=await import("./chunk-gsv6mckp.js");N0=N0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(L0,F0,z0)=>{if(!/function\s+__stx_setup_/.test(z0))return L0;return`<script${F0}>${d(z0,n)}</script>`})}if(q)N0=L$(N0,{preserveHead:!0});if(c&&m)await u$(D.filePath,N0,r0,y);let{extractStreamBoundaries:t7}=await import("./chunk-6p5k801j.js"),s0=t7(n),z1=n.__streamTemplates;if(z1&&typeof z1==="object"&&Object.keys(z1).length>0){let d=n.streamBoundaries||{},L0={...y,autoShell:!1},F0=Object.keys(z1).map(($0)=>({id:$0,render:async()=>{let j1=typeof d[$0]==="function"?await d[$0]():void 0;return x(z1[$0],{...n,$boundary:j1},D.filePath,L0,new Set)}})),z0=new Set(F0.map(($0)=>$0.id));s0=[...(s0||[]).filter(($0)=>!z0.has($0.id)),...F0]}if(s0&&s0.length>0)C.add(D.pattern);else s0=void 0;let u5=N1(n),m5=M1(n);if(m)E.set(D.filePath,{status:u5,headers:m5});return{route:D,content:N0,status:u5??v,headers:m5,boundaries:s0}}catch(x){return console.error(`${B.red}Error building ${B.bright}${D.pattern}${B.reset}:`,x),null}},u=8,t=async()=>{w.clear(),H.clear();for(let D=0;D<j.length;D+=u){let T=j.slice(D,D+u),x=await Promise.all(T.map((S)=>h(S)));for(let S of x)if(S)w.set(S.route.pattern,S)}for(let D=0;D<L.length;D+=u){let T=L.slice(D,D+u),x=await Promise.all(T.map(({route:S})=>h(S)));for(let S of x)if(S)H.set(S.route.pattern,S)}return w.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await t())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await W$(W);let W0=Q;try{if(W0=await k0(Q),W0!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${W0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let D=X.hmrPort||W0+1;J=X$({wsPort:D,verbose:!1}),G=J.start(D)}let v1=(D,T)=>{let S=`<script data-stx-route-params>(function(){var p=${JSON.stringify(T).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(D.includes("</head>"))return D.replace("</head>",`${S}</head>`);if(D.includes("<body"))return D.replace(/<body([^>]*)>/,`<body$1>${S}`);return S+D};console.log(`${B.blue}Starting server...${B.reset}`);let g1=N4({port:W0,async fetch(D){let T=new URL(D.url),x=_?.publicDir||"public",S=g.join(W,x,T.pathname),b=g.join(W,T.pathname),_0=g.join(I,T.pathname),[K0,C0,u$]=await Promise.all([J0.promises.stat(S).catch(()=>null),J0.promises.stat(b).catch(()=>null),J0.promises.stat(_0).catch(()=>null)]);if(K0?.isFile())return e$(S);if(C0?.isFile())return e$(b);if(u$?.isFile())return e$(_0);if(T.pathname.startsWith("/_stx/component/")){let k=decodeURIComponent(T.pathname.slice(16));if(k)try{let y=`<${k} />`,m={...buildConfig,autoShell:!1},c=await processDirectives(y,{},g.join(W,"components",`${k}.stx`),m,new Set);return new Response(c,{headers:{"Content-Type":"text/html"}})}catch(y){return new Response(`<div class="stx-async-error">${y.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(T.pathname==="/_stx/img"){let{handleImageRequest:k}=await import("./chunk-zz62s52f.js"),y=await k(D,{publicDir:g.join(W,x),cacheDir:S0(W,"cache","img")});if(y)return y}if(M)try{let k=await M.handleRequest(D);if(k.status!==404)return k}catch{}if(V[T.pathname])try{return await V[T.pathname](D)}catch(k){return new Response(JSON.stringify({error:k.message}),{status:500,headers:{"Content-Type":"application/json"}})}let r=$5(T.pathname,j);if(r){let k=w.get(r.route.pattern),y=C.has(r.route.pattern);if(r.route.isDynamic&&Object.keys(r.params).length>0||y){let m=await h(r.route,r.params);if(m)k=m}if(k){let m=k.status??200,c=k.headers??{},s=(r.route.filePath?x6(await Bun.file(r.route.filePath).text().catch(()=>"")):null)??{};if(s.validate){if(!await s.validate({params:r.params})){let B0=await R(404);if(B0){let a=B0;if(a=await o(a,W),Y)a=D0(a,G);return new Response(a,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(s.middleware){let U0=w6(T.pathname,r.params,s,T.search),B0=T6(U0,null,D,{isServer:!0}),a=await C6(s.middleware,B0);if(a.redirect){let e=a.redirect.path,n=a.redirect.options.redirectCode||302,r0=new Headers(a.responseHeaders);return r0.set("Location",e),new Response(null,{status:n,headers:r0})}if(a.abort){let{statusCode:e,message:n}=a.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${e}</title></head><body><h1>Error ${e}</h1><p>${n}</p></body></html>`,{status:e,headers:{"Content-Type":"text/html"}})}if(Object.keys(a.state).length>0){let e=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(a.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;k.content=k.content.replace("</head>",`${e}</head>`)}}let v=k.content;if(q&&v6(D)){let U0=k6(v),B0=S6(v),a=v.match(/<title[^>]*>([\s\S]*?)<\/title>/i),e=a?a[1].trim():"";if(Object.keys(r.params).length>0)v=v1(v,r.params);v=await o(v,W);let n=_?.router?.container||"main";return v=g6(v,n),new Response(v,{status:m,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":U0.layout,"X-STX-Layout-Group":U0.group,"X-STX-Runtime":B0?"true":"false",...e&&{"X-STX-Title":encodeURIComponent(e)},[P6]:b6(),...Z1(),"Cache-Control":U$}})}if(q)v=B$(q,v);if(Object.keys(r.params).length>0)v=v1(v,r.params);if(v=await o(v,W),Y)v=D0(v,G);if(X.native)if(v.includes("<head>"))v=v.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else v="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+v;if(X.titlebarHidden)if(v.includes("<head>"))v=v.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else v=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${v}`;if(k.boundaries&&k.boundaries.length>0){let{renderStreamingPage:U0,streamToResponse:B0}=await import("./chunk-6p5k801j.js");return B0(U0(v,k.boundaries,{timeoutMs:30000}),{status:m,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(v,{status:m,headers:{"Content-Type":"text/html",...Z1(),"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0",...c}})}}if(L.length>0){let k=L.map((m)=>m.route),y=$5(T.pathname,k);if(y){let m=H.get(y.route.pattern);if(m){let c=m.content;if(q)c=B$(q,c);if(Object.keys(y.params).length>0)c=v1(c,y.params);if(c=await o(c,W),Y)c=D0(c,G);return new Response(c,{status:m.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:m}of O)if(m!=="/"&&T.pathname.startsWith(m)){let c=H.get(m)||H.get(m+"/");if(c){let s=c.content;if(q)s=B$(q,s);if(s=await o(s,W),Y)s=D0(s,G);return new Response(s,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let f1=w.get("/");if(f1){let k=f1.content;if(k=await o(k,W),Y)k=D0(k,G);if(X.native)if(k.includes("<head>"))k=k.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else k="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+k;return new Response(k,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let h1=await R(404);if(h1){let k=h1;if(k=await o(k,W),Y)k=D0(k,G);return new Response(k,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(D){let T=await R(500);if(T)return new Response(T,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${D}
|
|
1610
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),x0(F.url.toString(),()=>{if(Z)P0.watch(J,{recursive:!0}).close();F.stop()}),Z){console.log(`${B.blue}Watching for changes...${B.reset}`);let O=P0.watch(J,{recursive:!0},async(L,H)=>{if(!H)return;if(H.endsWith(".stx")||H.endsWith(".js")||H.endsWith(".ts")||H.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${H}${B.yellow} changed, rebuilding...${B.reset}`),m0.clear(),p0(),await K()});process.on("SIGINT",()=>{O.close(),F.stop(),process.exit(0)})}return!0}function O6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:N4}=globalThis.Bun;import J0 from"fs";import g from"path";async function M6($){try{return Z5(await Bun.file($).text())}catch{return}}function e$($){let X=Bun.file($),Q=g.extname($).toLowerCase(),Z={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Q)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Z[Q]||"application/octet-stream",...J}})}async function M4($=".",X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=g.resolve($),{loadStxConfig:K}=await import("./chunk-cxvmws79.js"),_=await K(W),U=_.root&&_.root!=="."?g.join(W,_.root):W,F=X.pagesDir||_.pagesDir||"pages",z=g.join(U,F);if(!J0.existsSync(z))return console.error(`${B.red}Error: No '${F}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${z}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${F}/index.stx for the homepage.${B.reset}`),!1;let j=X5(U,{pagesDir:F});if(j.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${z}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${j.length}${B.blue} routes${B.reset}`);let O=_?._pluginPageDirs||[],L=[];for(let{dir:D,prefix:T}of O)if(J0.existsSync(D)){let x=X5(g.dirname(D),{pagesDir:g.basename(D)});for(let S of x){let b=T==="/"?S.pattern:`${T}${S.pattern==="/"?"":S.pattern}`;L.push({route:{...S,pattern:b},prefix:T})}if(x.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${x.length}${B.blue} routes at ${B.cyan}${T}${B.reset}`)}let H=new Map,q=null,A=null;if(X.stxOptions?.shell!==!1){if(A=await y6(W,X.stxOptions?.shell),A){if(q=await Q5(A,X.stxOptions||{}),q)console.log(`${B.blue}Using app shell: ${B.bright}${g.relative(W,A)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}I6(),await D6(W);let N=R6();if(N.length>0)console.log(`${B.blue}Loaded ${B.bright}${N.length}${B.blue} middleware: ${B.dim}${N.join(", ")}${B.reset}`);let V={},M=null;try{let{loadStxConfig:D}=await import("./chunk-cxvmws79.js"),T=await D(W);if(T?.apiRouter)M=T?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(T?.apiRoutes){V=T.apiRoutes;let x=Object.keys(V).length;if(x>0)console.log(`${B.blue}Loaded ${B.bright}${x} API route${x>1?"s":""}${B.reset}`)}if(T?.broadcasting?.enabled)try{let{startBroadcasting:x,loadChannels:S}=await import("./chunk-vbhn2vkt.js"),b=T.broadcasting;await x(b);let _0=b.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${_0}/ws${B.reset}`);let K0=g.join(process.cwd(),"channels.ts");if(J0.existsSync(K0))try{let C0=await S(K0);console.log(`${B.blue}Loaded ${B.bright}${C0} broadcast channel${C0!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(C0){console.warn(`${B.yellow}Failed to load channels.ts: ${C0.message}${B.reset}`)}}catch(x){console.warn(`${B.yellow}Broadcasting failed to start: ${x.message}${B.reset}`)}}catch{}let I=S0(W,"output");J0.mkdirSync(I,{recursive:!0});let w=new Map,C=new Set,R=async(D)=>{let T=V6(z,D);if(!T)return null;try{let x=await Bun.build({entrypoints:[T],outdir:I,plugins:[X1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!x.success)return null;let S=x.outputs.find((b)=>b.path.endsWith(".html"));if(!S)return null;return await Bun.file(S.path).text()}catch{return null}},E=new Map,h=async(D,T)=>{try{let{processDirectives:x,extractVariables:S,defaultConfig:b,loadStxConfig:_0,injectRouterScript:K0}=await import("./chunk-cxvmws79.js"),{checkCache:C0,cacheTemplate:u$,readFileCached:r,templateCache:f1}=await import("./chunk-1b1fwf1e.js"),h1=await _0(W),k=(d)=>{if(!d)return d;if(g.isAbsolute(d))return d;return g.resolve(W,d)},y={...b,...h1,...X.stxOptions,autoShell:!0};if(X.debugDirectives)y.debug=!0;y.partialsDir=k(y.partialsDir),y.componentsDir=k(y.componentsDir),y.layoutsDir=k(y.layoutsDir),y.storesDir=k(y.storesDir||"stores"),y.cachePath=k(y.cachePath)??S0(W,"cache");let m=!T&&!X.profile,c=y.cache!==!1;if(c&&m){let d=f1.get(D.filePath);if(d)try{if((await J0.promises.stat(D.filePath)).mtime.getTime()<=d.mtime){let z0=!0;for(let $0 of d.dependencies){if(!J0.existsSync($0)){z0=!1;break}if((await J0.promises.stat($0)).mtime.getTime()>d.mtime){z0=!1;break}}if(z0){let $0=d.output;if(q)$0=L$($0,{preserveHead:!0});let j1=E.get(D.filePath);return{route:D,content:$0,status:j1?.status??await M6(D.filePath),headers:j1?.headers}}}}catch{}let L0=await C0(D.filePath,y);if(L0){let F0=L0;if(q)F0=L$(F0,{preserveHead:!0});let z0=E.get(D.filePath);return{route:D,content:F0,status:z0?.status??await M6(D.filePath),headers:z0?.headers}}}let s=c?await r(D.filePath):await Bun.file(D.filePath).text(),v=Z5(s),{classifyAllScripts:U0}=await import("./chunk-cxvmws79.js"),B0=U0(s),a=B0.server.map((d)=>d.content),e=s;for(let d of B0.server)e=e.replace(d.fullTag,"");let n={__filename:D.filePath,__dirname:g.dirname(D.filePath),params:T??{},__stx_runtime_head:{}};for(let d of a)try{await S(d,n,D.filePath)}catch(L0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",D.filePath,L0?.message||L0)}let r0=new Set,N0;if(X.profile){let d=performance.now();N0=await x(e,n,D.filePath,y,r0);let L0=performance.now()-d,F0=g.relative(W,D.filePath)||D.filePath;console.log(`[stx:profile] ${F0} \u2192 ${L0.toFixed(2)}ms`)}else N0=await x(e,n,D.filePath,y,r0);if(!q)N0=await K0(N0,{router:y.router});{let{interpolateScriptExpressions:d}=await import("./chunk-zrhbc7jj.js");N0=N0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(L0,F0,z0)=>{if(!/function\s+__stx_setup_/.test(z0))return L0;return`<script${F0}>${d(z0,n)}</script>`})}if(q)N0=L$(N0,{preserveHead:!0});if(c&&m)await u$(D.filePath,N0,r0,y);let{extractStreamBoundaries:t7}=await import("./chunk-c6k8yfwa.js"),s0=t7(n),z1=n.__streamTemplates;if(z1&&typeof z1==="object"&&Object.keys(z1).length>0){let d=n.streamBoundaries||{},L0={...y,autoShell:!1},F0=Object.keys(z1).map(($0)=>({id:$0,render:async()=>{let j1=typeof d[$0]==="function"?await d[$0]():void 0;return x(z1[$0],{...n,$boundary:j1},D.filePath,L0,new Set)}})),z0=new Set(F0.map(($0)=>$0.id));s0=[...(s0||[]).filter(($0)=>!z0.has($0.id)),...F0]}if(s0&&s0.length>0)C.add(D.pattern);else s0=void 0;let u5=N1(n),m5=M1(n);if(m)E.set(D.filePath,{status:u5,headers:m5});return{route:D,content:N0,status:u5??v,headers:m5,boundaries:s0}}catch(x){return console.error(`${B.red}Error building ${B.bright}${D.pattern}${B.reset}:`,x),null}},u=8,t=async()=>{w.clear(),H.clear();for(let D=0;D<j.length;D+=u){let T=j.slice(D,D+u),x=await Promise.all(T.map((S)=>h(S)));for(let S of x)if(S)w.set(S.route.pattern,S)}for(let D=0;D<L.length;D+=u){let T=L.slice(D,D+u),x=await Promise.all(T.map(({route:S})=>h(S)));for(let S of x)if(S)H.set(S.route.pattern,S)}return w.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await t())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await W$(W);let W0=Q;try{if(W0=await k0(Q),W0!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${W0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let D=X.hmrPort||W0+1;J=X$({wsPort:D,verbose:!1}),G=J.start(D)}let v1=(D,T)=>{let S=`<script data-stx-route-params>(function(){var p=${JSON.stringify(T).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(D.includes("</head>"))return D.replace("</head>",`${S}</head>`);if(D.includes("<body"))return D.replace(/<body([^>]*)>/,`<body$1>${S}`);return S+D};console.log(`${B.blue}Starting server...${B.reset}`);let g1=N4({port:W0,async fetch(D){let T=new URL(D.url),x=_?.publicDir||"public",S=g.join(W,x,T.pathname),b=g.join(W,T.pathname),_0=g.join(I,T.pathname),[K0,C0,u$]=await Promise.all([J0.promises.stat(S).catch(()=>null),J0.promises.stat(b).catch(()=>null),J0.promises.stat(_0).catch(()=>null)]);if(K0?.isFile())return e$(S);if(C0?.isFile())return e$(b);if(u$?.isFile())return e$(_0);if(T.pathname.startsWith("/_stx/component/")){let k=decodeURIComponent(T.pathname.slice(16));if(k)try{let y=`<${k} />`,m={...buildConfig,autoShell:!1},c=await processDirectives(y,{},g.join(W,"components",`${k}.stx`),m,new Set);return new Response(c,{headers:{"Content-Type":"text/html"}})}catch(y){return new Response(`<div class="stx-async-error">${y.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(T.pathname==="/_stx/img"){let{handleImageRequest:k}=await import("./chunk-zz62s52f.js"),y=await k(D,{publicDir:g.join(W,x),cacheDir:S0(W,"cache","img")});if(y)return y}if(M)try{let k=await M.handleRequest(D);if(k.status!==404)return k}catch{}if(V[T.pathname])try{return await V[T.pathname](D)}catch(k){return new Response(JSON.stringify({error:k.message}),{status:500,headers:{"Content-Type":"application/json"}})}let r=$5(T.pathname,j);if(r){let k=w.get(r.route.pattern),y=C.has(r.route.pattern);if(r.route.isDynamic&&Object.keys(r.params).length>0||y){let m=await h(r.route,r.params);if(m)k=m}if(k){let m=k.status??200,c=k.headers??{},s=(r.route.filePath?x6(await Bun.file(r.route.filePath).text().catch(()=>"")):null)??{};if(s.validate){if(!await s.validate({params:r.params})){let B0=await R(404);if(B0){let a=B0;if(a=await o(a,W),Y)a=D0(a,G);return new Response(a,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(s.middleware){let U0=w6(T.pathname,r.params,s,T.search),B0=T6(U0,null,D,{isServer:!0}),a=await C6(s.middleware,B0);if(a.redirect){let e=a.redirect.path,n=a.redirect.options.redirectCode||302,r0=new Headers(a.responseHeaders);return r0.set("Location",e),new Response(null,{status:n,headers:r0})}if(a.abort){let{statusCode:e,message:n}=a.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${e}</title></head><body><h1>Error ${e}</h1><p>${n}</p></body></html>`,{status:e,headers:{"Content-Type":"text/html"}})}if(Object.keys(a.state).length>0){let e=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(a.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;k.content=k.content.replace("</head>",`${e}</head>`)}}let v=k.content;if(q&&v6(D)){let U0=k6(v),B0=S6(v),a=v.match(/<title[^>]*>([\s\S]*?)<\/title>/i),e=a?a[1].trim():"";if(Object.keys(r.params).length>0)v=v1(v,r.params);v=await o(v,W);let n=_?.router?.container||"main";return v=g6(v,n),new Response(v,{status:m,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":U0.layout,"X-STX-Layout-Group":U0.group,"X-STX-Runtime":B0?"true":"false",...e&&{"X-STX-Title":encodeURIComponent(e)},[P6]:b6(),...Z1(),"Cache-Control":U$}})}if(q)v=B$(q,v);if(Object.keys(r.params).length>0)v=v1(v,r.params);if(v=await o(v,W),Y)v=D0(v,G);if(X.native)if(v.includes("<head>"))v=v.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else v="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+v;if(X.titlebarHidden)if(v.includes("<head>"))v=v.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else v=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${v}`;if(k.boundaries&&k.boundaries.length>0){let{renderStreamingPage:U0,streamToResponse:B0}=await import("./chunk-c6k8yfwa.js");return B0(U0(v,k.boundaries,{timeoutMs:30000}),{status:m,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(v,{status:m,headers:{"Content-Type":"text/html",...Z1(),"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0",...c}})}}if(L.length>0){let k=L.map((m)=>m.route),y=$5(T.pathname,k);if(y){let m=H.get(y.route.pattern);if(m){let c=m.content;if(q)c=B$(q,c);if(Object.keys(y.params).length>0)c=v1(c,y.params);if(c=await o(c,W),Y)c=D0(c,G);return new Response(c,{status:m.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:m}of O)if(m!=="/"&&T.pathname.startsWith(m)){let c=H.get(m)||H.get(m+"/");if(c){let s=c.content;if(q)s=B$(q,s);if(s=await o(s,W),Y)s=D0(s,G);return new Response(s,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let f1=w.get("/");if(f1){let k=f1.content;if(k=await o(k,W),Y)k=D0(k,G);if(X.native)if(k.includes("<head>"))k=k.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else k="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+k;return new Response(k,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let h1=await R(404);if(h1){let k=h1;if(k=await o(k,W),Y)k=D0(k,G);return new Response(k,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(D){let T=await R(500);if(T)return new Response(T,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${D}
|
|
1611
1611
|
${D.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});if(console.clear(),console.log(`
|
|
1612
1612
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1613
1613
|
${B.bright}\u2192 ${B.cyan}http://localhost:${W0}/${B.reset}`),Y)console.log(`${B.dim} HMR: ws://localhost:${G}${B.reset}`);console.log(`
|
|
1614
1614
|
${B.yellow}Routes:${B.reset}`);let a0=[...E6(j,W)];for(let{route:D}of L)a0.push(`${D.pattern}`);if(a0.forEach((D,T)=>{let S=T===a0.length-1?"\u2514\u2500 ":"\u251C\u2500 ";console.log(` ${B.green}${S}${B.reset}${D}`)}),console.log(`
|
|
1615
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),x0(g1.url.toString(),()=>{if(J)A1();g1.stop()}),X.native){let D,T=g.join(z,"index.stx");if(J0.existsSync(T)){let S=await Bun.file(T).text();D=o1(S)}let x=_?.app?.window??{};await t0(W0,{title:_?.app?.head?.title||g.basename(W)||"stx App",width:x.width,height:x.height,darkMode:x.darkMode,hotReload:x.hotReload,titlebarHidden:x.titlebarHidden??X.titlebarHidden===!0,nativeSidebar:!!D,sidebarConfig:D})}if(Z){console.log(`${B.blue}Watching for changes...${B.reset}`);let D=(S)=>{return S.startsWith("public/")||S.startsWith("public\\")},T=(S)=>{let b=S.toLowerCase();return b.endsWith(".stx")||b.endsWith(".html")||b.endsWith(".md")},x=J0.watch(W,{recursive:!0},async(S,b)=>{if(!b||$$(b))return;if(e1(b))if(D(b)){if(console.log(`${B.cyan}${b} changed${B.reset}`),Y&&J)J.reload(b)}else if(T(b)){console.log(`${B.yellow}${b} changed, rebuilding...${B.reset}`),m0.clear(),p0();try{let{invalidateFileCache:_0,templateCache:K0}=await import("./chunk-
|
|
1615
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),x0(g1.url.toString(),()=>{if(J)A1();g1.stop()}),X.native){let D,T=g.join(z,"index.stx");if(J0.existsSync(T)){let S=await Bun.file(T).text();D=o1(S)}let x=_?.app?.window??{};await t0(W0,{title:_?.app?.head?.title||g.basename(W)||"stx App",width:x.width,height:x.height,darkMode:x.darkMode,hotReload:x.hotReload,titlebarHidden:x.titlebarHidden??X.titlebarHidden===!0,nativeSidebar:!!D,sidebarConfig:D})}if(Z){console.log(`${B.blue}Watching for changes...${B.reset}`);let D=(S)=>{return S.startsWith("public/")||S.startsWith("public\\")},T=(S)=>{let b=S.toLowerCase();return b.endsWith(".stx")||b.endsWith(".html")||b.endsWith(".md")},x=J0.watch(W,{recursive:!0},async(S,b)=>{if(!b||$$(b))return;if(e1(b))if(D(b)){if(console.log(`${B.cyan}${b} changed${B.reset}`),Y&&J)J.reload(b)}else if(T(b)){console.log(`${B.yellow}${b} changed, rebuilding...${B.reset}`),m0.clear(),p0();try{let{invalidateFileCache:_0,templateCache:K0}=await import("./chunk-1b1fwf1e.js");_0(g.resolve(W,b)),K0.delete(g.resolve(W,b))}catch{}if(A&&b){if(g.resolve(W,b)===A||g.basename(A)===b){let K0=await Q5(A,X.stxOptions||{});if(K0)q=K0}}if(await t(),await K$(W),Y&&J)J.reload(b)}else{console.log(`${B.yellow}${b} changed, rebuilding...${B.reset}`),m0.clear(),p0();try{let{invalidateFileCache:_0,templateCache:K0}=await import("./chunk-1b1fwf1e.js");_0(g.resolve(W,b)),K0.delete(g.resolve(W,b))}catch{}if(await t(),Y&&J)J.reload(b)}else if(t1(b)){if(console.log(`${B.cyan}CSS ${b} changed${B.reset}`),Y&&J)J.updateCss(b)}});process.on("SIGINT",()=>{if(x.close(),J)A1();g1.stop(),process.exit(0)})}return!0}var V4=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function E4($){let X=($||"").trim();if(!X)return null;if(/[\s>+~,:]/.test(X))return null;let Q={},Z=X,Y=Z.match(/^[a-z][\w-]*/i);if(Y)Q.tag=Y[0].toLowerCase(),Z=Z.slice(Y[0].length);while(Z.length>0){let J=Z.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(J){if(Q.attr=J[1],J[3]!==void 0&&J[3]!=="")Q.attrValue=J[3];Z=Z.slice(J[0].length);continue}let G=Z.match(/^#([\w-]+)/);if(G){Q.id=G[1],Z=Z.slice(G[0].length);continue}let W=Z.match(/^\.([\w-]+)/);if(W){Q.className=W[1],Z=Z.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function I4($,X){if(X.attr){if(!(X.attrValue===void 0?new RegExp(`\\b${X.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${X.attr}\\s*=\\s*(["'])\\s*${X.attrValue}\\s*\\1`,"i")).test($))return!1}if(X.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${X.id}\\s*\\1`,"i").test($))return!1}if(X.className){let Q=$.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(X.className))return!1}return!0}function fW($,X="main"){let Q=E4(X);if(!Q)return null;let Z=/<([a-z][\w-]*)\b([^>]*)>/gi,Y;while((Y=Z.exec($))!==null){let J=Y[1].toLowerCase(),G=Y[2]||"";if(G.trimEnd().endsWith("/")||V4.has(J))continue;if(Q.tag&&Q.tag!==J)continue;if(!I4(G,Q))continue;let W=Y[0],K=Y.index+W.length,_=new RegExp(`<(/?)${J}\\b([^>]*)>`,"gi");_.lastIndex=K;let U=1,F;while((F=_.exec($))!==null){let z=F[1]==="/";if(!z&&(F[2]||"").trimEnd().endsWith("/"))continue;if(U+=z?-1:1,U===0)return{openTag:W,openIndex:Y.index,start:K,end:F.index,tagName:J}}return null}return null}var P={enabled:!1,components:new Map,stores:new Map,events:[],performance:[],selectedComponent:null,selectedStore:null,maxEvents:1000,maxPerformance:500};function R4($={}){if(typeof window>"u")return;P.enabled=!0,P.maxEvents=$.maxEvents||1000,P.maxPerformance=$.maxPerformance||500,window.__STX_DEVTOOLS__={getState:()=>P,getComponents:()=>Array.from(P.components.values()),getComponent:(X)=>P.components.get(X),getStores:()=>Array.from(P.stores.values()),getStore:(X)=>P.stores.get(X),getEvents:()=>P.events,getPerformance:()=>P.performance,selectComponent:(X)=>J5(X),selectStore:(X)=>w4(X),inspectElement:(X)=>T4(X),highlightComponent:(X)=>m6(X),clearHighlight:()=>p6(),logComponentTree:()=>C4(),logStoreState:(X)=>k4(X),timeTravel:(X,Q)=>x4(X,Q)},P4(),S4(),console.log("%c[STX DevTools] Enabled","color: #10b981; font-weight: bold;")}function D4(){P.enabled=!1,delete window.__STX_DEVTOOLS__;let $=document.getElementById("stx-devtools-panel");if($)$.remove();console.log("%c[STX DevTools] Disabled","color: #ef4444;")}function f6($){if(!P.enabled)return;let X=P.components.get($);if(X){if(X.parentId){let Q=P.components.get(X.parentId);if(Q)Q.children=Q.children.filter((Z)=>Z!==$)}P.components.delete($),Y5({timestamp:Date.now(),type:"component:unmounted",componentId:$,payload:{name:X.name}})}}function d6($,X,Q={},Z=[]){if(!P.enabled)return;let Y={id:$,state:X,getters:Q,actions:Z,history:[{timestamp:Date.now(),type:"state",name:"__init__",newValue:X}]};P.stores.set($,Y),Y5({timestamp:Date.now(),type:"store:registered",payload:{id:$,state:X}})}function u6($,X,Q,Z,Y="state"){if(!P.enabled)return;let J=P.stores.get($);if(J){let G={timestamp:Date.now(),type:Y,name:X,oldValue:Q,newValue:Z,stack:Error().stack};if(J.history.push(G),J.history.length>100)J.history=J.history.slice(-100);if(Y==="state")J.state={...J.state,[X]:Z};Y5({timestamp:Date.now(),type:`store:${Y}`,payload:{storeId:$,name:X,oldValue:Q,newValue:Z}})}}function Y5($){if(!P.enabled)return;if(P.events.push($),P.events.length>P.maxEvents)P.events=P.events.slice(-P.maxEvents);if(typeof window<"u")window.dispatchEvent(new CustomEvent("stx:devtools:event",{detail:$}))}function J5($){P.selectedComponent=$;let X=P.components.get($);if(X)m6($),console.log("%c[STX DevTools] Selected component:","color: #3b82f6;",X);return X}function w4($){P.selectedStore=$;let X=P.stores.get($);if(X)console.log("%c[STX DevTools] Selected store:","color: #8b5cf6;",X);return X}function T4($){let X=$;while(X){let Q=X.getAttribute("data-stx-component-id");if(Q)return J5(Q);X=X.parentElement}console.log("%c[STX DevTools] No component found for element","color: #f59e0b;");return}function m6($){p6();let X=P.components.get($);if(X?.element){let Q=document.createElement("div");Q.id="stx-devtools-highlight",Q.style.cssText=`
|
|
1616
1616
|
position: absolute;
|
|
1617
1617
|
background: rgba(59, 130, 246, 0.2);
|
|
1618
1618
|
border: 2px solid #3b82f6;
|
|
@@ -2881,9 +2881,9 @@ describe('Example', () => {
|
|
|
2881
2881
|
</footer>
|
|
2882
2882
|
@yield('scripts')
|
|
2883
2883
|
</body>
|
|
2884
|
-
</html>`}function sX(){return"<!-- Hero section -->"}function nX(){return"<!-- Features -->"}function oX(){return"<!-- Pricing -->"}function tX(){return"<!-- Button -->"}function C1($){if(!T1($))L5($,{recursive:!0})}function eX(){if(T1("bun.lockb"))return"bun";if(T1("pnpm-lock.yaml"))return"pnpm";if(T1("yarn.lock"))return"yarn";return"bun"}function F5($){return $.replace(/[-_\s]+(.)?/g,(X,Q)=>Q?Q.toUpperCase():"").replace(/^./,(X)=>X.toUpperCase())}function $Q($){return $.replace(/[-_\s]+(.)?/g,(X,Q)=>Q?Q.toUpperCase():"").replace(/^./,(X)=>X.toLowerCase())}function c0($){return $.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}var{serve:XQ}=globalThis.Bun;import k1 from"fs";import y0 from"path";function r2($,X=200,Q={}){return new Response($,{status:X,headers:{"Content-Type":"text/html; charset=utf-8",...Q}})}async function J8($){let{loadStxConfig:X}=await import("./chunk-
|
|
2884
|
+
</html>`}function sX(){return"<!-- Hero section -->"}function nX(){return"<!-- Features -->"}function oX(){return"<!-- Pricing -->"}function tX(){return"<!-- Button -->"}function C1($){if(!T1($))L5($,{recursive:!0})}function eX(){if(T1("bun.lockb"))return"bun";if(T1("pnpm-lock.yaml"))return"pnpm";if(T1("yarn.lock"))return"yarn";return"bun"}function F5($){return $.replace(/[-_\s]+(.)?/g,(X,Q)=>Q?Q.toUpperCase():"").replace(/^./,(X)=>X.toUpperCase())}function $Q($){return $.replace(/[-_\s]+(.)?/g,(X,Q)=>Q?Q.toUpperCase():"").replace(/^./,(X)=>X.toLowerCase())}function c0($){return $.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}var{serve:XQ}=globalThis.Bun;import k1 from"fs";import y0 from"path";function r2($,X=200,Q={}){return new Response($,{status:X,headers:{"Content-Type":"text/html; charset=utf-8",...Q}})}async function J8($){let{loadStxConfig:X}=await import("./chunk-f1m5a48z.js");return{...await X($.configDir??process.cwd()).catch(()=>({})),...$.stxOptions??{}}}async function QQ($={}){let{port:X=3000,root:Q=".",watch:Z=!0,onRequest:Y,routes:J={},middleware:G=[],on404:W,onError:K}=$,_=y0.resolve(Q),U=await J8($),F=new Map;async function z(A){let N=k1.statSync(A),V=`${A}:${N.mtimeMs}`,M=F.get(V);if(M)return{content:M.content,status:M.status,headers:M.headers};for(let T of F.keys())if(T.startsWith(`${A}:`)&&T!==V)F.delete(T);let I=await Bun.file(A).text(),w=I,C=Z$(I);if(C)w=C.content.trim();let R=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,E=[],h=[],u;while((u=R.exec(I))!==null){let T=u[1],x=u[2],S=u[0];if(T.includes("server"))h.push(x);else E.push(S)}let t=I.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],d5=w.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),W0={__filename:A,__dirname:y0.dirname(A)};for(let T of h)await j0(T,W0,A);let q0=await O0(d5,W0,A,U,new Set);if(t.length>0){let T=t.join(`
|
|
2885
2885
|
`);if(q0.match(/(<\/head>)/i))q0=q0.replace(/(<\/head>)/i,`${T}
|
|
2886
|
-
$1`)}if(E.length>0){let{interpolateScriptsInTemplate:T}=await import("./chunk-
|
|
2886
|
+
$1`)}if(E.length>0){let{interpolateScriptsInTemplate:T}=await import("./chunk-zrhbc7jj.js"),x=T(E.join(`
|
|
2887
2887
|
`),W0);if(q0.match(/(<\/body>)/i))q0=q0.replace(/(<\/body>)/i,`${x}
|
|
2888
2888
|
$1`);else q0+=`
|
|
2889
2889
|
${x}`}let a0=N1(W0),D=M1(W0);return F.set(V,{content:q0,mtime:N.mtimeMs,status:a0,headers:D}),{content:q0,status:a0,headers:D}}async function j(A){let N=k1.statSync(A),V=`${A}:${N.mtimeMs}`,M=F.get(V);if(M)return M.content;let{content:I}=await V0(A,U);return F.set(V,{content:I,mtime:N.mtimeMs}),I}function O(A){let N=A.startsWith("/")?A.slice(1):A,V=[N,`${N}.stx`,`${N}.md`,`${N}.html`,y0.join(N,"index.stx"),y0.join(N,"index.md"),y0.join(N,"index.html")];for(let M of V){let I=y0.join(_,M);if(k1.existsSync(I)&&k1.statSync(I).isFile())return I}return null}async function L(A){let N=new URL(A.url),V=async()=>{if(J[N.pathname])return await J[N.pathname](A);if(Y){let I=await Y(A);if(I)return I}let M=O(N.pathname);if(!M){if(W)return await W(A);return new Response("Not Found",{status:404})}try{let I,w="text/html",C,R;if(M.endsWith(".stx")){let E=await z(M);I=E.content,C=E.status,R=E.headers}else if(M.endsWith(".md"))I=await j(M);else if(M.endsWith(".html"))I=await Bun.file(M).text();else if(M.endsWith(".css"))I=await Bun.file(M).text(),w="text/css";else if(M.endsWith(".js"))I=await Bun.file(M).text(),w="text/javascript";else if(M.endsWith(".json"))I=await Bun.file(M).text(),w="application/json";else return new Response(Bun.file(M));return new Response(I,{status:C??200,headers:{"Content-Type":w,...R}})}catch(I){if(K)return await K(I,A);let w=I instanceof Error?I.message:String(I),R=U?.debug===!0?`<h1>Error</h1><pre>${w}
|
|
@@ -4315,7 +4315,7 @@ else {
|
|
|
4315
4315
|
\u26A0\uFE0F Built ${Q.views.length} views with ${Q.errors.length} errors`);return Q}function K9($,X){let Q=V$.watch($.viewsDir,{recursive:!0},async(Z,Y)=>{if(!Y)return;if(Y.endsWith(".stx")||Y.endsWith(".ts")||Y.endsWith(".js")){if($.debug)console.log(`
|
|
4316
4316
|
File changed: ${Y}, rebuilding...`);let J=await RZ($);X?.(J)}});return{close:()=>Q.close()}}async function _9($,X={},Q={}){let Z={...Q,skipDefaultSeoTags:!0,skipSignalsRuntime:!0},Y=await V7($,X,Z);Y=await DZ(Y),Y=Y.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),Y=Y.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),Y=Y.replace(/<!--\s*stx SEO Tags\s*-->/gi,""),Y=Y.replace(/\n\s*\n\s*\n/g,`
|
|
4317
4317
|
|
|
4318
|
-
`).trim();let J=TZ(Y);return{html:Y,text:J}}async function DZ($){try{let{generateCrosswindCSS:X,extractClassNames:Q}=await import("./chunk-
|
|
4318
|
+
`).trim();let J=TZ(Y);return{html:Y,text:J}}async function DZ($){try{let{generateCrosswindCSS:X,extractClassNames:Q}=await import("./chunk-f7ye3z1y.js");if(Q($).size===0)return $;let Y=await X($);if(!Y)return $;let J=wZ(Y);if(J.size===0)return $;return $.replace(/(<[a-z][a-z0-9]*)((?:\s+[a-z][a-z0-9-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s+)class\s*=\s*"([^"]*)"((?:\s+[a-z][a-z0-9-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s*)(\/?>)/gi,(G,W,K,_,U,F)=>{let z=_.split(/\s+/).filter(Boolean),j=[];for(let q of z){let A=J.get(q);if(A)j.push(A)}if(j.length===0)return`${W}${K}class="${_}"${U}${F}`;let O=j.join("; "),H=`${K}${U}`.match(/style\s*=\s*"([^"]*)"/);if(H){let q=`${O}; ${H[1]}`,A=K.replace(/style\s*=\s*"[^"]*"/,`style="${q}"`),N=U.replace(/style\s*=\s*"[^"]*"/,`style="${q}"`);return`${W}${A}class="${_}"${N}${F}`}return`${W}${K}class="${_}" style="${O}"${U}${F}`})}catch{return $}}function wZ($){let X=new Map,Q=/\.([a-zA-Z0-9_-]+(?:\\:[a-zA-Z0-9_-]+)*)\s*\{([^}]+)\}/g,Z=Q.exec($);while(Z!==null){let Y=Z[1].replace(/\\/g,""),J=Z[2].split(";").map((G)=>G.trim()).filter(Boolean).join("; ");if(J)X.set(Y,J);Z=Q.exec($)}return X}function TZ($){return $.replace(/<br\s*\/?>/gi,`
|
|
4319
4319
|
`).replace(/<\/(p|div|h[1-6]|li|tr)>/gi,`
|
|
4320
4320
|
`).replace(/<\/td>/gi,"\t").replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/©/g,"(c)").replace(/·/g,"-").replace(/\n\s*\n\s*\n/g,`
|
|
4321
4321
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-
|
|
2
|
+
import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-cjk6zcgz.js";import"./chunk-7hrttzad.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-pctsgktp.js";import"./chunk-q0sgqw4m.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-rrxm5s7d.js";import"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Xi as a,Yi as b,Zi as c}from"./chunk-
|
|
2
|
+
import{Xi as a,Yi as b,Zi as c}from"./chunk-thermrhq.js";import"./chunk-9n0gvfrg.js";import"./chunk-7hrttzad.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-pctsgktp.js";import"./chunk-q0sgqw4m.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-rrxm5s7d.js";import"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Gq as H,Yq as x,bs as g,sm as O,up as R}from"./chunk-
|
|
2
|
+
import{Gq as H,Yq as x,bs as g,sm as O,up as R}from"./chunk-7hrttzad.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-
|
|
2
|
+
import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-xw1x7nkg.js";import"./chunk-7hrttzad.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-pctsgktp.js";import"./chunk-q0sgqw4m.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-rrxm5s7d.js";import"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as ll,$a as cn,$b as vo,$c as vp,$d as vq,A as Xj,Aa as nm,Ab as Pn,Ac as Wo,Ad as Wp,Ae as ar,B as Yj,Ba as om,Bb as Qn,Bc as Xo,Bd as Xp,Be as br,C as Zj,Ca as Bm,Cb as Rn,Cc as Yo,Cd as Yp,Ce as cr,D as _j,Da as Cm,Db as Sn,Dc as Zo,Dd as Zp,De as dr,E as Qk,Ea as Dm,Eb as Tn,Ec as _o,Ed as _p,Ee as er,F as Rk,Fa as Em,Fb as Un,Fc as $o,Fd as $p,Fe as fr,G as Sk,Ga as Fm,Gb as Vn,Gc as ap,Gd as aq,Ge as gr,H as Tk,Ha as Gm,Hb as Wn,Hc as bp,Hd as bq,He as hr,I as Uk,Ia as Km,Ib as Xn,Ic as cp,Id as cq,Ie as ir,J as Vk,Ja as Lm,Jb as Yn,Jc as dp,Jd as dq,Je as jr,K as Wk,Ka as Mm,Kb as Zn,Kc as ep,Kd as eq,Ke as kr,L as Xk,La as Nm,Lb as _n,Lc as fp,Ld as fq,Le as lr,M as Yk,Ma as Om,Mb as $n,Mc as gp,Md as gq,Me as mr,N as Zk,Na as Pm,Nb as ao,Nc as hp,Nd as hq,Ne as nr,O as _k,Oa as Qm,Ob as io,Oc as ip,Od as iq,Oe as or,P as $k,Pa as Rm,Pb as jo,Pc as jp,Pd as jq,Pe as pr,Q as al,Qa as Sm,Qb as ko,Qc as kp,Qd as kq,Qe as qr,R as bl,Ra as Tm,Rb as lo,Rc as lp,Rd as lq,Re as rr,S as cl,Sa as Um,Sb as mo,Sc as mp,Sd as mq,Se as sr,T as dl,Ta as Vm,Tb as no,Tc as np,Td as nq,Te as tr,U as el,Ua as Wm,Ub as oo,Uc as op,Ud as oq,Ue as ur,V as fl,Va as Xm,Vb as po,Vc as pp,Vd as pq,Ve as vr,W as gl,Wa as Ym,Wb as qo,Wc as qp,Wd as qq,We as wr,X as hl,Xa as Zm,Xb as ro,Xc as rp,Xd as rq,Xe as xr,Y as il,Ya as $m,Yb as so,Yc as sp,Yd as sq,Ye as yr,Z as jl,Za as an,Zb as to,Zc as tp,Zd as tq,_ as kl,_a as bn,_b as uo,_c as up,_d as uq,aa as ml,ab as dn,ac as wo,ad as wp,ae as wq,ba as nl,bb as en,bc as xo,bd as xp,be as xq,ca as ol,cb as fn,cc as yo,cd as yp,ce as yq,da as pl,db as gn,dc as zo,dd as zp,de as zq,ea as ql,eb as hn,ec as Ao,ed as Ap,ee as Aq,fa as rl,fb as jn,fc as Bo,fd as Bp,fe as Bq,ga as sl,gb as kn,gc as Co,gd as Cp,ge as Cq,ha as tl,hb as ln,hc as Do,hd as Dp,he as Dq,ia as ul,ib as mn,ic as Eo,id as Ep,ie as Eq,ja as vl,jb as nn,jc as Fo,jd as Fp,je as Fq,ka as wl,kb as on,kc as Go,kd as Gp,ke as Gq,la as xl,lb as pn,lc as Ho,ld as Hp,le as Hq,ma as yl,mb as qn,mc as Io,md as Ip,me as Iq,na as zl,nb as rn,nc as Jo,nd as Jp,ne as Jq,o as a,oa as Al,ob as sn,oc as Ko,od as Kp,oe as Kq,p as Ij,pa as cm,pb as vn,pc as Lo,pd as Lp,pe as Rq,q as Jj,qa as dm,qb as wn,qc as Mo,qd as Mp,qe as Sq,r as Kj,ra as em,rb as xn,rc as No,rd as Np,re as Tq,s as Lj,sa as fm,sb as yn,sc as Oo,sd as Op,se as Uq,t as Mj,ta as gm,tb as En,tc as Po,td as Pp,te as Vq,u as Nj,ua as hm,ub as Fn,uc as Qo,ud as Qp,ue as Wq,v as Oj,va as im,vb as Gn,vc as Ro,vd as Rp,ve as Xq,w as Pj,wa as jm,wb as Hn,wc as So,wd as Sp,we as Yq,x as Qj,xa as km,xb as Mn,xc as To,xd as Tp,xe as Zq,y as Vj,ya as lm,yb as Nn,yc as Uo,yd as Up,ye as _q,z as Wj,za as mm,zb as On,zc as Vo,zd as Vp,ze as $q}from"./chunk-kaaskzaj.js";import{$e as bk,Ze as $j,_e as ak,af as ck,bf as dk,cf as ek,df as fk,ef as gk,ff as hk,gf as ik,hf as jk,if as kk,jf as lk,kf as mk,lf as nk}from"./chunk-ym3r8ktq.js";import{mf as Ek,nf as Fk,of as Gk,pf as Hk,qf as Ik,rf as Jk,sf as Kk,tf as Lk,uf as Mk,vf as Nk,wf as Ok,xf as Pk}from"./chunk-hd8mg5q5.js";import{Af as eo,Bf as fo,Cf as go,Df as ho,yf as bo,zf as co}from"./chunk-5ct1qbxq.js";import{Ef as tn,Ff as un}from"./chunk-pbsfbgx7.js";import{Gf as zn}from"./chunk-t46gp6zh.js";import{Hf as Sl,If as Tl,Jf as Ul,Kf as Vl,Lf as Yl,Mf as am}from"./chunk-ssdxwkpn.js";import{Nf as Wl,Qf as Xl}from"./chunk-t7rna4kn.js";import{$f as sm,Yf as pm,Zf as qm,_f as rm,ag as tm,bg as um,cg as vm,dg as wm,eg as xm,fg as ym,gg as zm,hg as Am}from"./chunk-0j9hrzjj.js";import{ig as Ck,jg as Dk}from"./chunk-ptzfbj3s.js";import{kg as bm}from"./chunk-ncnevn5e.js";import{lg as Hm,mg as Im,ng as Jm,og as _m,pg as An,qg as Bn,rg as Cn,sg as Dn,tg as In,ug as Jn,vg as Kn,wg as Ln}from"./chunk-1p3rxd4t.js";import{Ag as El,Bg as Fl,Cg as Gl,Dg as Hl,Eg as Il,Fg as Jl,Gg as Kl,Hg as Ll,Ig as Ml,Jg as Nl,Kg as Zl,Lg as _l,Mg as $l,xg as Bl,yg as Cl,zg as Dl}from"./chunk-c3nj877g.js";import{Ng as Xi,Og as Yi,Pg as Zi,Qg as _i,Rg as $i,Sg as aj,Tg as bj,Ug as cj,Vg as dj,Wg as ej,Xg as fj}from"./chunk-2yhd8t93.js";import{Yg as xj,_g as yj}from"./chunk-f5v2qf95.js";import{eh as ok,fh as pk,gh as qk,hh as rk,ih as sk,jh as tk,kh as uk,mh as vk,nh as wk,oh as xk,ph as yk,qh as zk,rh as Ak,uh as Bk}from"./chunk-0kxqfy8p.js";import{vh as hh,wh as ih,xh as jh,yh as kh}from"./chunk-49kk0s96.js";import{Dh as lh}from"./chunk-w3ycm4na.js";import{Eh as sh,Fh as th,Gh as uh,Hh as vh,Ih as wh,Jh as xh}from"./chunk-g7cxh760.js";import{Kh as Mi,Lh as Ni,Mh as Oi,Qh as Pi,Rh as Qi,Sh as Ri}from"./chunk-v936h01r.js";import{$h as Ji,Th as Ci,Uh as Di,Vh as Ei,Wh as Fi,Xh as Gi,Zh as Hi,_h as Ii,ai as Ki,bi as Li}from"./chunk-74cv4ta1.js";import{ci as sg,di as tg,ei as ug,fi as vg,gi as wg,hi as xg}from"./chunk-wcm80anz.js";import{ii as yg,ji as zg,ki as Ag,li as Bg,mi as Cg}from"./chunk-y7m2dpd3.js";import{ni as Dg,oi as Eg,pi as Fg,qi as Gg,ri as Hg}from"./chunk-9y0g8kzt.js";import{si as Ig,ti as Jg,ui as Kg,vi as Lg,wi as Mg,xi as Ng,yi as Og}from"./chunk-t6nseeb9.js";import{Ai as Qg,Bi as Rg,Ci as Sg,Di as Tg,Ei as Ug,zi as Pg}from"./chunk-xttsqmkm.js";import{Gi as Vg,Hi as Wg,Ii as Xg,Ji as Yg,Ki as Zg,Li as _g,Mi as $g,Ni as ah,Oi as bh,Pi as ch,Qi as dh,Ri as eh,Si as fh,Ti as gh}from"./chunk-54st8g2j.js";import{Vi as mg,Wi as ng}from"./chunk-8w35y6ye.js";import{Zi as og}from"./chunk-cwpndk2c.js";import"./chunk-9n0gvfrg.js";import{bj as pg}from"./chunk-7q9mwh4v.js";import{cj as qg,dj as rg}from"./chunk-refwkt87.js";import{ej as fe,fj as ge,gj as he,hj as ie,ij as je,jj as ke,kj as le,lj as me,mj as ne,nj as oe,oj as pe,pj as qe,qj as re,rj as se}from"./chunk-xtmt4549.js";import{sj as Pe,tj as Qe}from"./chunk-t60sskkr.js";import{Aj as Be,Bj as Ce,Cj as De,Dj as Ee,Ej as Fe,Fj as Ge,Gj as He,Hj as Ie,Ij as Je,Jj as Ke,Kj as Le,Lj as Me,Mj as Ne,Nj as Oe}from"./chunk-w95sp0k9.js";import{Oj as Re,Pj as Se,Qj as Te,Rj as Ue,Sj as Ve,Tj as We,Uj as Xe,Vj as Ye,Wj as Ze,Xj as _e,Yj as $e}from"./chunk-qedw3aa8.js";import{qk as Lq,rk as Mq,sk as Nq,tk as Oq,uk as Pq,vk as Qq}from"./chunk-8xpbqqam.js";import{Ak as Ol,Bk as Pl,Ck as Ql,Dk as Rl,wk as Rj,xk as Sj,yk as Tj,zk as Uj}from"./chunk-h3cvkas0.js";import"./chunk-58f0mthg.js";import"./chunk-0ha9e1wt.js";import{$l as Wa,$m as Ub,$n as Uc,$p as Hf,$q as Nh,$r as vj,Al as I,Am as pb,An as tc,Ao as Jd,Ap as ff,Aq as gg,Ar as vi,Bl as J,Bm as qb,Bn as uc,Bo as Kd,Bp as gf,Bq as hg,Br as wi,Cl as da,Cn as vc,Co as Ld,Cp as hf,Cq as ig,Cr as xi,Dl as ea,Dm as xb,Dn as wc,Do as Md,Dp as jf,Dq as jg,Dr as yi,El as fa,Em as yb,En as xc,Eo as Nd,Ep as kf,Eq as kg,Er as zi,Fl as ga,Fm as zb,Fn as yc,Fo as Od,Fp as lf,Fq as lg,Fr as Ai,Gl as ha,Gm as Ab,Gn as zc,Go as Pd,Gp as mf,Gq as mh,Gr as Bi,Hl as ia,Hm as Bb,Hn as Ac,Ho as Qd,Hp as nf,Hq as nh,Hr as Si,Im as Cb,In as Bc,Io as Rd,Ip as of,Iq as oh,Ir as Ti,Jm as Db,Jn as Cc,Jo as Sd,Jp as pf,Jq as ph,Jr as Ui,Kl as za,Kn as Dc,Ko as Td,Kp as qf,Kq as qh,Kr as Vi,Ll as Aa,Lm as Eb,Ln as Ec,Lo as Ud,Lp as rf,Lq as rh,Lr as Wi,Ml as Ba,Mm as Fb,Mn as Fc,Mo as Vd,Mp as sf,Mq as yh,Mr as gj,Nl as Ca,Nm as Gb,Nn as Gc,No as Wd,Np as tf,Nq as zh,Nr as hj,Ol as Da,Om as Hb,On as Hc,Oo as Xd,Op as uf,Oq as Ah,Or as ij,Pm as Ib,Pn as Ic,Po as Yd,Pp as vf,Pq as Bh,Pr as jj,Qm as Jb,Qn as Jc,Qo as Zd,Qp as wf,Qq as Ch,Qr as kj,Rl as Ga,Rm as Kb,Rn as Kc,Ro as _d,Rp as xf,Rq as Dh,Rr as lj,Sl as Ha,Sm as Lb,Sn as Lc,So as $d,Sp as yf,Sq as Eh,Sr as mj,Tl as Ia,Tm as Mb,Tn as Mc,To as ae,Tp as zf,Tq as Fh,Tr as nj,Ul as Pa,Um as Nb,Un as Nc,Uo as be,Up as Af,Uq as Gh,Ur as oj,Vl as Qa,Vm as Ob,Vn as Oc,Vo as ce,Vp as Bf,Vq as Hh,Vr as pj,Wl as Ra,Wm as Pb,Wn as Pc,Wo as de,Wp as Cf,Wq as Ih,Wr as qj,Xl as Sa,Xm as Qb,Xn as Qc,Xo as ee,Xp as Df,Xq as Jh,Xr as rj,Yl as Ta,Ym as Rb,Yn as Rc,Yp as Ef,Yq as Kh,Yr as sj,Zl as Ua,Zm as Sb,Zn as Sc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Va,_m as Tb,_n as Tc,_p as Gf,_q as Mh,_r as uj,am as Xa,an as Vb,ao as Vc,ap as ze,aq as If,ar as Oh,as as wj,bn as Wb,bo as Wc,bp as Ae,bq as Jf,br as Yh,bs as zj,cn as Xb,co as Xc,cq as Kf,cr as Zh,cs as Aj,dn as Yb,do as Yc,dp as af,dq as Lf,dr as _h,ds as Bj,en as Zb,eo as Zc,eq as Mf,er as $h,es as Cj,fm as Ya,fn as _b,fo as _c,fq as Nf,fr as ai,fs as Dj,gm as Za,gn as $b,go as $c,gq as Of,gr as bi,gs as Ej,hm as _a,hn as ac,ho as ad,hq as Pf,hr as ci,hs as Fj,im as $a,in as bc,io as bd,iq as Qf,ir as di,is as Gj,jm as ab,jn as cc,jo as cd,jq as Rf,jr as ei,js as Hj,kl as s,km as bb,kn as dc,ko as dd,kq as Sf,kr as fi,ll as t,ln as ec,lo as ed,lq as Tf,lr as gi,ml as u,mn as fc,mo as fd,mq as Uf,mr as hi,nl as v,nm as cb,nn as gc,no as gd,nq as Vf,nr as ii,ol as w,om as db,on as hc,oo as hd,oq as Wf,or as ji,pl as x,pm as eb,pn as ic,po as id,pq as Xf,pr as ki,ql as y,qm as fb,qn as jc,qo as zd,qq as Yf,qr as li,rl as z,rm as gb,rn as kc,ro as Ad,rq as Zf,rr as mi,sl as A,sm as hb,sn as lc,so as Bd,sq as _f,sr as ni,tl as B,tm as ib,tn as mc,to as Cd,tq as $f,tr as oi,ul as C,um as jb,un as nc,uo as Dd,up as bf,uq as ag,ur as pi,vl as D,vm as kb,vn as oc,vo as Ed,vq as bg,vr as qi,wl as E,wm as lb,wn as pc,wo as Fd,wp as cf,wq as cg,wr as ri,xl as F,xm as mb,xn as qc,xo as Gd,xq as dg,xr as si,yl as G,ym as nb,yn as rc,yo as Hd,yp as df,yq as eg,yr as ti,zl as H,zm as ob,zn as sc,zo as Id,zp as ef,zq as fg,zr as ui}from"./chunk-z0smbvq9.js";import{ks as d,ls as e,ms as f,ns as g,os as h,ps as i,qs as j,rs as k,ss as l,ts as m,us as n,vs as o,ws as p,xs as q,ys as r}from"./chunk-vr4ycjqv.js";import{As as Qh,Bs as Rh,Cs as Sh,Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,zs as Ph}from"./chunk-cbj5a2tk.js";import{Is as b,Js as c}from"./chunk-fmw1mscr.js";import{Ks as Ea,Ls as Fa}from"./chunk-wfsf3vmh.js";import{$s as wb,Ms as rb,Ns as sb,Ps as tb,Zs as ub,_s as vb}from"./chunk-krmh1xsd.js";import{at as te,bt as ue,ct as ve,dt as we,gt as xe}from"./chunk-q0sgqw4m.js";import{ht as Ja,it as Ka,jt as La,kt as Ma,lt as Na,mt as Oa}from"./chunk-ecncwde8.js";import{At as wd,Bt as xd,Ct as yd,nt as jd,ot as kd,pt as ld,qt as md,rt as nd,st as od,tt as pd,ut as qd,vt as rd,wt as sd,xt as td,yt as ud,zt as vd}from"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import{Ft as ja,Gt as ka,Ht as la,It as ma,Jt as na,Kt as oa,Lt as pa,Mt as qa,Nt as ra,Ot as sa,Pt as ta,Qt as ua,Rt as va,St as wa,Tt as xa,Ut as ya}from"./chunk-rrxm5s7d.js";import{Au as ba,Cu as ca,Yt as K,Zt as L,au as M,fu as N,gu as O,mu as P,nu as Q,ou as R,pu as S,qu as T,ru as U,su as V,tu as W,uu as X,vu as Y,wu as Z,xu as _,yu as $,zu as aa}from"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{jk as writeNetlifyConfig,_l as writeManifest,Ok as writeImageManifest,ro as wrapComponentForHMR,lr as withDefaults,wj as webComponentDirectiveHandler,gp as watermark,iq as watchViews,Yk as watchMultiple,Zk as watchEffect,Xk as watch,xe as warmImagePlaceholders,kl as waitForStore,Yd as waitForLocale,co as virtualPathFor,jj as videoDirective,tc as validators,pr as validated,Kd as validateValueEnhanced,nh as validateTemplate,lp as validateParams,Ld as validateFormEnhanced,Zp as validateFile,Gd as validateFields,Fd as validateField,ph as validateDirective,dd as validateCspDirectives,Ej as validateConfig,dm as validateComponentScripts,Bm as validateComponentProps,lg as validateClientScript,kh as v,jb as usesSignalsInScript,pa as usesReactiveRuntime,Ch as userComponentFileExists,Sg as useVirtualList,rd as useTitle,jl as useStoreOrThrow,Jo as useStore,Vj as useStorage,tq as useSlots,Xj as useSessionStorage,od as useSeoMeta,ll as useRouteParams,nl as useRouteParamOrThrow,ml as useRouteParam,rd as usePageTitle,Oe as useOptimistic,pl as useMiddlewareValue,ol as useMiddlewareState,Wj as useLocalStorage,ko as useLoadingIndicator,md as useHead,hh as useForm,vq as useAttrs,$p as uploadFiles,_p as uploadFile,gl as updateInstance,Me as untrack,Sh as unregisterDirective,hl as unmountInstance,qb as unescapeHtml,go as typecheckStxFiles,Bh as transpileTypeScript,_q as translate,w as transitionDirective,vm as toUsers,um as toUser,Ro as thumbnail,Sp as thumbHashToRGBA,Tp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Re as templateCache,Mb as syncRecordedResponse,oo as stxClientHelpers,wf as structuredDataDirective,br as stripLocalePrefix,Ll as stripDocumentWrapper,Fa as stripCommentsAndLiterals,jn as stringToStream,Tc as strictCspPreset,ne as streamingSuspenseDirective,re as streamToResponse,le as streamTemplateSimple,fe as streamTemplate,Qj as stopHmrServer,rm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Be as state,fg as startsDocument,Ln as startProductionServer,zn as startInteractive,qm as startBroadcasting,dr as stampLocaleLayoutGroup,D as staggerDirective,jp as srcsetUrls,E as springDirective,Cc as splitByPipe,Hl as spaNavVaryHeaders,eo as sourcePathFor,qp as smartBatchSign,Eh as slotContentHasExpressions,op as signUrl,zh as shouldTranspileTypeScript,Nj as shouldReloadOnChange,tp as shouldRefreshSignature,Oj as shouldIgnoreFile,Kg as shouldCacheComponent,Vo as sharpen,sr as shape,La as setStateDir,tl as setRouteParams,ul as setMiddlewareState,we as setImagePlaceholder,nq as setGlobalProvide,Qb as setErrorLocale,Qk as setCurrentInstance,Zi as setCachedVideoResult,Oi as setCachedImageResult,Ii as setCached,vr as serveStxFile,xr as serveMultipleStxFiles,Ij as serveMarkdownFile,Vn as serveFile,yr as serveApp,Un as serve,uo as serializeState,_m as serializeSetCookie,Xo as sepia,pd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,nj as scopeHTML,mj as scopeCSS,zf as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,$o as saturation,mp as sanitizeParams,vc as sanitizeFilePath,wc as sanitizeExpression,xc as sanitizeDirectiveParams,uc as sanitizeDirectiveParam,yc as sanitizeComponentProps,oc as safeExecuteAsync,nc as safeExecute,xa as runtimeHandledXAttrsLiteral,pf as runPreProcessingMiddleware,qf as runPostProcessingMiddleware,Cn as runPageAction,He as runMountCallbacks,ba as runMiddleware,el as runHooks,Tq as runDoctor,Ie as runDestroyCallbacks,Ef as runComposers,ap as rotate,lh as rewriteImagesWithSiblings,Nb as responseBindings,Ih as resolveTemplatePath,c as resolveStxTargets,Aj as resolveStxDirectories,Zq as resolveI18n,Po as resize,Ya as resetPlaceholders,ld as resetHead,to as resetHMRHandler,bc as resetErrorConfig,nr as required,ab as replacePlaceholders,gq as renderView,gj as renderVideoComponent,Qa as renderVendorStyleTags,Cq as renderToString,Dq as renderToStream,Eq as renderToDOM,Rp as renderThumbhashToCanvas,Qq as renderTemplateString,Oq as renderTemplate,Pq as renderString,ie as renderStreamingPage,uh as renderSlot,Ag as renderSSRSuspense,Bp as renderProtectedVideo,Ap as renderProtectedImg,np as renderMediaUpload,Nq as renderMarkdownView,Ql as renderLayoutTypes,Si as renderImgComponent,Ek as renderImageComponent,td as renderHtmlAttrs,sd as renderHead,jq as renderEmail,Gh as renderComponentWithSlot,ud as renderBodyAttrs,Eo as render,Vc as relaxedCspPreset,Ed as registerValidationRule,pe as registerStreamingDirectives,Lo as registerStoresClient,rl as registerStore,xf as registerSeoDirectives,V as registerMiddleware,eb as registerFilters,db as registerFilter,Sb as registerErrorMessages,Jd as registerEnhancedValidationRule,Ph as registerDirective,cd as registerCspDirectives,Em as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Uk as ref,rn as redirect,Ib as recordResponseStatus,Jb as recordResponseHeader,Oa as rebaseOntoStateDir,Kb as readResponseStatus,Lb as readResponseHeaders,Gj as readMarkdownFile,Se as readFileCached,Vk as reactive,ep as quality,yp as pruneSignatureCache,Li as pruneCache,lq as provide,Mq as protectCodeBlocks,mr as prop,If as processVueTemplate,Qg as processVirtualListDirectives,Ug as processVirtualGridDirectives,fj as processVideo,Hd as processValidateDirective,de as processTranslateDirective,ug as processTransitionDirectives,xg as processTransitionAttributes,xd as processTitleDirective,Ab as processTemplateBindings,qg as processTeleportDirectives,yg as processSuspenseDirectives,sf as processStructuredData,je as processStreamDirectives,Ob as processStatusDirective,fh as processStaticDirectives,nf as processStackReplacements,mf as processStackPushDirectives,vh as processSlots,Jl as processShell,Gf as processServerBindings,tf as processSeoDirective,qe as processSectionDirectives,Lf as processScopedStyles,yb as processReactiveBindings,Cp as processProtectedMedia,_g as processPartialHydrationDirectives,kg as processOnceDirective,of as processMiddleware,rf as processMetaDirectives,yd as processMetaDirective,Hj as processMarkdownFileDirectives,Nh as processMarkdownDirectives,gf as processLoops,Ig as processKeepAliveDirectives,jg as processJsonDirective,Tg as processInfiniteListDirectives,lf as processIncludes,Ui as processImgComponents,Gk as processImageComponents,tk as processImage,wd as processHeadDirective,Ad as processForms,Cd as processFormInputDirectives,nb as processExpressions,Ca as processEventDirectives,Dd as processErrorDirective,Jf as processDynamicComponents,mh as processDirectives,Xh as processDirectiveAttributes,pg as processDeferDirectives,hd as processCustomDirectives,$c as processCspDirectives,tr as processComponentProps,Xa as processClientScript,Bd as processBasicFormDirectives,Dg as processAsyncDirectives,id as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Ud as preloadTranslationsBackground,Td as preloadTranslations,jo as preloadIslandHandlers,ye as preloadIconCollection,mm as poolStrings,yj as pluginManager,ue as placeholdersWarmed,tg as performLeave,sg as performEnter,Je as pendingLifecycleCounts,Ne as peek,hf as partialsCache,hj as parseVideoDirectiveOptions,No as parseUrl,Up as parseThumbhashString,Ic as parseSwitchBlock,sh as parseSlots,th as parseSlotElement,Nc as parseScriptDeclarations,uj as parseSFCComponent,Dp as parseProtectedArgs,ff as parseLoopBinding,Ti as parseImgComponent,ji as parseImageUrl,Fk as parseImageComponent,An as parseFormBody,Kc as parseExpressionWithFilters,Fm as parseDefaults,on as parseCookies,Km as parseContainerSelector,Fc as parseConditionalBlock,Lc as parseArguments,H as parseAnimationShorthand,or as optional,nm as optimizeTemplate,Lk as optimizeImage,Mk as optimizeDirectory,qr as oneOf,jf as onceStore,bl as onUpdated,xb as onUpdate,dl as onUnmounted,yl as onServer,$k as onMounted,Fe as onMount,eh as onHydrated,rq as onErrorCaptured,Ge as onDestroy,Og as onDeactivated,xl as onClient,al as onBeforeUpdate,cl as onBeforeUnmount,_k as onBeforeMount,Ng as onActivated,Np as observeElement,sn as notFound,Qf as normalizeCriticalHeadOrder,qq as nextTick,Im as negotiateEncoding,P as navigateTo,fl as mountInstance,z as motionDirective,Uc as moderateCspPreset,lm as minifyHtml,vf as metaDirective,_f as metaDedupKey,Oo as mergeParams,ag as mergeHtmlAttrs,nd as mergeHeadConfigs,Yc as mergeCspDirectives,sb as mergeCrosswindConfig,M as matchRoute,Oh as markdownDirectiveHandler,Fj as markdownCache,b as looksLikeGlob,ar as localizePath,Vd as loadTranslationLazy,$d as loadTranslation,Bj as loadStxConfig,_ as loadMiddlewareFromDirectory,$l as loadManifest,Jp as loadElement,sm as loadChannels,hr as lintStxStrict,Lp as lazyLoadAll,Kp as lazyLoad,C as keyframeDirective,Aq as jsxs,Bq as jsxDEV,zq as jsx,qn as jsonResponse,oe as islandDirective,_b as isTest,Ml as isSpaNavigation,Fl as isSpaNavRequest,rp as isSignatureValid,Ke as isSignal,rk as isSharpAvailable,bn as isServerEnvironment,vl as isServer,ta as isRuntimeOwnedColonAttr,Yb as isProduction,d as isPresentationalRole,Gp as isNativeLazySupported,Lq as isMarkdownPath,Rd as isLoading,Sd as isLoaded,yh as isJavaScriptScript,Hp as isIntersectionObserverSupported,zk as isImageFile,sk as isImageBackendAvailable,be as isICUFormat,dh as isHydrated,Dh as isHydrateTrigger,Gb as isHttpStatus,an as isEdgeEnvironment,ir as isDirectiveKind,Zb as isDevelopment,Le as isDerived,Mj as isCssOnlyChange,Hm as isCompressible,wl as isClient,Fg as isAsyncComponent,Bn as isActionableMethod,Yo as invert,Ue as invalidateFileCacheByDir,Te as invalidateFileCache,mb as interpolateScriptsInTemplate,kb as interpolateScriptExpressions,lb as interpolateScriptAttributes,kc as inlineError,Yq as injectThemeBootstrap,uf as injectSeoTags,Vq as injectSeo,af as injectRouterScript,Lj as injectHotReload,fa as injectHeatmap,Zc as injectCspMetaTag,wb as injectCrosswindCSS,hg as injectConfigHeadTags,Pf as injectColorModeBootScript,cg as injectCloakStyle,Wf as injectBuildId,Sa as injectBrowserCoreAutoImports,Cb as injectAnalytics,mq as inject,ql as initStoreRegistry,mk as initNetlify,lo as initLoadingIndicator,Ip as initLazyLoading,yn as initFile,Qp as initBlurUp,Wp as initAllBlurUp,Wi as imgDirective,Jk as imageDirective,Jn as hydrateTemplateStream,In as hydrateTemplate,io as hydrateIslands,ah as hydrateIsland,Kn as hydrateFragment,bh as hydrateByStrategy,ch as hydrateAll,Bo as hydrate,Tn as htmlResponse,dg as hoistLeadingHeadTags,Rf as hoistColorModeBootScript,ga as heatmapDirective,Ei as hashString,$e as hashFilePath,Ci as hashFile,Di as hashBuffer,Hf as hasVueTemplateSyntax,ef as hasVariables,Go as hasStore,bb as hasPlaceholders,kk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,gg as hasDocumentShell,qh as hasDirectives,h as hasDOMSupport,Ck as handleImageRequest,sq as handleError,Iq as h,yk as groupVariantsByFormat,Wo as grayscale,Mn as gitHash,fm as getUnusedDirectives,Wd as getTranslationSync,Pd as getTranslationCacheStats,Xd as getTranslationAsync,ce as getTranslation,fk as getTotalSize,sp as getTimeUntilExpiry,mg as getStoreScript,Ho as getStoreNames,Fo as getStore,_j as getStorageSize,Zj as getStorageKeys,Jh as getSourceLineInfo,Ah as getSharedTranspiler,g as getScreenReaderOnlyStyle,oj as getScopeAttribute,Ae as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,oh as getPositionInfo,_a as getPlaceholderRegistry,Bi as getPlaceholderCacheStats,kd as getPageMeta,Pc as getNonce,Ak as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Qd as getLoadingState,Zd as getLoadingLocales,te as getImagePlaceholder,uk as getImageMetadata,Ao as getHydrationRuntime,sl as getHydratedStoreState,Pj as getHmrServer,jd as getHead,so as getHMRHandler,ni as getFormatExtension,Gi as getFileMtime,xk as getFallbackVariant,Ub as getErrorMessage,Rb as getErrorLocale,ac as getErrorConfig,Xb as getErrorCodeName,Rh as getDirectives,Qh as getDirective,Rk as getCurrentInstance,Xc as getCspPreset,ed as getCspHeaderName,tb as getCrosswindServeAsset,Mh as getComponentCacheStats,Yi as getCachedVideoResult,wp as getCachedSignature,We as getCachedSignalsRuntime,Xe as getCachedRouterScript,zi as getCachedPlaceholder,Ni as getCachedImageResult,Hi as getCached,Ki as getCacheStats,Uf as getBuildId,pm as getBroadcastServer,mi as getBestVariant,fb as getAllFilters,ai as generateWidthSrcset,Rg as generateVirtualListCSS,bq as generateVideoPreview,Md as generateValidationScript,cq as generateUploadRuntime,gm as generateTreeShakenBundle,wg as generateTransitionRuntime,vg as generateTransitionCSS,aj as generateThumbnails,si as generateThumbhashPlaceholder,Tm as generateTemplatesDocs,Cg as generateSuspenseRuntime,Bg as generateSuspenseCSS,vo as generateStateScript,ki as generateSrcsetData,Ri as generateSrcset,vk as generateSrcSet,bj as generateSpriteSheet,kq as generateSpaShell,li as generateSourceTags,gi as generateSizesFromBreakpoints,fi as generateSizesAttribute,wk as generateSizes,yf as generateSitemapIndex,Wq as generateSitemap,Fp as generateSimpleMediaPicker,zp as generateSignatureRuntime,Qe as generateSignalsRuntimeDev,Pe as generateSignalsRuntime,Wa as generateServerDataBridge,lj as generateScopeId,vj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Af as generateRobotsTxt,Xq as generateRobots,Qi as generateResponsiveVariants,rj as generateReactiveWebComponentTS,qj as generateReactiveWebComponent,tj as generateReactiveRuntime,sj as generateReactiveMixin,$i as generatePoster,yi as generatePlaceholderStyle,xi as generatePlaceholderCSS,ri as generatePlaceholder,$g as generatePartialHydrationCSS,Oc as generateNonce,gk as generateNetlifyToml,eq as generateMinifiedMediaRuntime,dq as generateMediaRuntime,Ep as generateMediaManagerEmbed,Zl as generateManifest,no as generateLoadingIndicatorHtml,Pp as generateLazyLoadRuntime,Rl as generateLayoutTypes,ui as generateLQIP,Mg as generateKeepAliveRuntime,Lg as generateKeepAliveCSS,gh as generateIslandManifest,aq as generateImagePreview,Nk as generateImageManifest,zo as generateHydrationScript,se as generateHydrationRuntime,Co as generateHydrationCSS,Vg as generateHydrationBootstrap,Kj as generateHotReloadScript,ea as generateHeatmapScript,qo as generateHMRClientScript,cj as generateHLSManifest,wo as generateEventBindings,ei as generateDprSrcsetWithVariableQuality,di as generateDprSrcset,eg as generateDocumentShell,Ym as generateDocs,Um as generateDirectivesDocs,Wh as generateDirectiveRuntime,Bf as generateDefaultRobotsTxt,dj as generateDASHManifest,Sc as generateCspMetaTag,Rc as generateCspHeader,vb as generateCrosswindCSS,xq as generateCompositionRuntime,Sm as generateComponentsDocs,Wg as generateComponentManifest,Qm as generateComponentDoc,wi as generateColorPlaceholder,Of as generateColorModeBootScript,il as generateClientRuntime,Fi as generateCacheKey,Ua as generateBrowserAutoImportDestructuring,Xp as generateBlurUpRuntime,Yp as generateBlurUpCSS,zb as generateBindingsRuntime,bi as generateAutoWidthSrcset,Ta as generateAutoImportDestructuring,Hg as generateAsyncComponentRuntime,Gg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Bb as generateAnalyticsScript,ho as formatTypecheckDiagnostics,ao as formatTypeErrors,vn as formatStxContent,ek as formatSize,O as formatRoutes,wn as formatMarkdownContent,Vb as formatLocalizedError,ae as formatICU,cc as formatFilePath,jc as formatError,Uq as formatDoctorReport,Vm as formatDocsAsMarkdown,Xm as formatDocsAsJson,Wm as formatDocsAsHtml,dp as format,km as foldConstants,cp as flipVertical,bp as flipHorizontal,Sl as fingerprint,fo as findRuntimeTypeDeclarations,Sq as findPantryPackage,Ec as findMatchingEndTag,Ac as findMatchingDelimiter,Ea as findInterpolationEnd,Gc as findIfBlocks,Jc as findExpressions,N as findErrorPage,Hc as findDirectiveBlocks,hm as findDeadCode,hm as findDeadBranches,Lm as findContainerRegion,Rm as findComponentFiles,wr as findCommonDir,dk as filterRequiredFiles,Hh as fileExists,bf as extractVariables,Xl as extractTemplateExpressions,ke as extractStreamBoundaries,xo as extractState,wh as extractSlotContent,df as extractScriptFromTemplate,Wl as extractScriptBlocks,$a as extractPlaceholders,Dc as extractParenthesizedExpression,Hb as extractPageResponseStatus,ca as extractLayoutMetadata,vi as extractDominantColor,Mc as extractDirectiveParams,rh as extractDirectiveNames,Nl as extractContainerContent,Om as extractComponentProps,Xg as extractComponentName,Pm as extractComponentDescription,ub as extractClassNames,Va as extractBridgeData,Yg as extractBoundProps,Bc as extractBalancedExpression,Pa as extractAndStripCssImports,pj as extractAndScopeStyles,Ba as extractAndProcessEvents,Tj as externalizeSharedAssets,Uj as externalizeRepeatedAssets,Sj as externalizeHtml,pb as evaluateExpression,jm as evaluateConstant,Pb as evaluateAuthExpression,ib as escapeHtmlValue,hb as escapeHtml,pc as errorRecovery,rc as errorLogger,rg as ensureTeleportTargets,ig as ensureDocumentShell,Id as enhancedValidationRules,Mm as enableDevTools,im as eliminateDeadCode,De as effect,kp as dprUrls,Zm as docsCommand,Pl as discoverLayoutNames,Op as disconnectObserver,Nm as disableDevTools,sc as devHelpers,Il as detectShell,$m as detectRuntime,hk as detectProjectConfig,oi as detectFormat,cm as detectBuildMode,Ce as derived,lk as deploy,Dj as defineStxConfig,Ko as defineStore,uq as defineSlots,gr as defineSiteConfig,kr as definePropsWithValidation,jr as defineProps,xj as definePlugin,qd as definePageMeta,R as defineMiddleware,ih as defineForm,pq as defineExpose,oq as defineEmits,Th as defineDirective,Kq as defineCustomElement,Hn as defineConfig,Uh as defineClientDirective,Eg as defineAsyncComponent,fq as defaultMediaConfig,Pk as defaultImageConfig,Nd as defaultI18nConfig,da as defaultHeatmapConfig,zd as defaultFormClasses,cb as defaultFilters,gd as defaultCspConfig,zj as defaultConfig,ur as default,rb as deepMergeThemes,Kf as dedupeScopedStyles,ti as decodeThumbhash,bd as cspNonceDirective,ad as cspDirective,Vp as crossfadeTransition,Qo as crop,Pg as createVirtualList,ij as createVideoDirective,mn as createVercelHandler,Zn as createTypeChecker,ee as createTranslateFilter,hn as createTextEncoderStream,Jq as createStxApp,gn as createStreamingResponse,me as createStreamRenderer,Io as createStore,U as createStorageManager,S as createServerCookieManager,Tk as createScope,zg as createSSRSuspense,ze as createRouter,$ as createRouteLocation,Xn as createRoute,Uk as createRef,Vk as createReactive,wq as createProvideContext,On as createProject,Gn as createProductionBuild,Za as createPlaceholder,om as createOptimizedBuild,nn as createNetlifyHandler,$j as createNetlifyClient,aa as createMiddlewareContext,Wn as createMiddleware,Mp as createLazyObserver,Jg as createKeepAliveCache,dn as createKVNamespace,Zg as createIslandRegistry,Vi as createImgDirective,Kk as createImagePlugin,Dk as createImageHandler,Ik as createImageDirective,ia as createHeatmapAggregator,ck as createFileManifest,cn as createEnvAccessor,mc as createEnhancedError,fn as createEdgeHandler,en as createEdgeCache,Kh as createDetailedErrorMessage,ln as createDenoHandler,ik as createDefaultNetlifyConfig,fd as createCspHeaders,pn as createCookie,Wk as createComputed,Sk as createComponentInstance,kn as createCloudflareHandler,T as createClientCookieManager,Vh as createBuiltinDirectives,Jq as createApp,F as createAnimationTimeline,To as cover,cf as convertToCommonJS,_o as contrast,So as contain,lc as consoleError,$b as configureErrorHandling,Cj as config,Wk as computed,Jm as compressResponse,Df as composerPattern,Cf as composer,Kl as composeShellWithPage,Dm as componentDirective,Fh as componentClientSignalNames,Yl as compileTemplate,a as collectRepeatedFlag,bk as collectDeployFiles,_i as clearVideoCache,Od as clearTranslationCache,ng as clearStoreCache,Yj as clearStorage,xp as clearSignatureCache,Ai as clearPlaceholderCache,kf as clearOnceStore,Qc as clearNonce,Y as clearMiddleware,ve as clearImagePlaceholders,Hk as clearImageCache,Tb as clearErrorMessages,Ye as clearDevCaches,gb as clearCustomFilters,Ff as clearComposers,og as clearComposableCache,Lh as clearComponentCache,Ji as clearCache,mo as cleanupLoadingIndicator,Bl as classifyScript,Cl as classifyAllScripts,_n as checkTemplateFile,$n as checkTemplate,Ze as checkCache,up as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,ym as channel,un as captureScreenshots,tn as captureScreenshot,_d as cancelPendingLoads,ak as calculateSha1,ci as calculateOptimalWidths,_e as cacheTemplate,kj as buildWebComponents,bo as buildVirtualSource,hq as buildViews,Mo as buildUrl,ge as buildSuspenseResolveScript,fr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Tl as buildRuntimeAsset,Ul as buildRouterAsset,er as buildLangPickerScript,ii as buildImageUrl,$f as buildHtmlAttrs,am as buildForProduction,Gm as buildComponentLibrary,vp as buildAuthParams,bm as buildApp,cr as buildAlternateLinks,Fn as build,wm as broadcastPrivate,xm as broadcastPresence,tm as broadcast,Zo as brightness,Uo as blur,ya as blankInertHtmlRegions,pp as batchSignUrls,Ee as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,fp as auto,e as attributeValue,Vl as assetTags,za as asInvocableStatement,rr as arrayOf,$q as applyTranslations,Pi as applyTransformations,xh as applySlots,Cm as applyPropDefaults,ip as applyPreset,bg as applyHtmlAttrs,vd as applyHead,ob as applyFilters,Gl as appendVary,Wc as apiCspPreset,y as animationGroupDirective,ej as analyzeVideo,em as analyzeUsage,zl as analyzeTemplate,Al as analyzeProject,em as analyzeDirectiveUsage,Db as analyticsDirective,Rn as addStore,Qn as addPage,_c as addNonceToInlineContent,Sn as addLayout,Pn as addComponent,Dn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ve as __setSignalsGeneratorsForTest,Vf as __setBuildIdForTest,Xi as VideoProcessorCache,jh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,zc as Tokenizer,Yn as TemplateTypeChecker,xn as TEMPLATE_PRESETS,ic as StxValidationError,ec as StxSyntaxError,gc as StxSecurityError,fc as StxRuntimeError,hc as StxFileError,dc as StxError,Fq as Show,he as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Dl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Eb as RESPONSE_STATUS_KEY,Fb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,En as ProductionBuild,Hq as Portal,Nn as PROJECT_TEMPLATES,hp as PRESETS,na as NON_CLIENT_PRIMITIVES,Do as MemorySessionStore,$h as MIME_TYPES,Yh as MEDIA_DEFAULT_WIDTHS,_h as MEDIA_DEFAULT_FORMATS,Ol as LAYOUT_TYPES_FILE,Mi as ImageProcessorCache,Bk as ImageProcessingError,yo as HydrationRuntime,Jj as HotReloadServer,ha as HeatmapAggregator,Zf as HTML_CLASS_MARKER,Yf as HTML_ATTRS_MARKER,yq as Fragment,Gq as For,El as FRAGMENT_CACHE_CONTROL,qc as ErrorLogger,Wb as ErrorCodes,Rj as EXTERNALIZED_ASSET_DIR,nk as DeployError,ok as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,qk as DEFAULT_QUALITY,pi as DEFAULT_PLACEHOLDER_OPTIONS,pk as DEFAULT_FORMATS,Zh as DEFAULT_DPR_VALUES,po as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,hi as COMMON_SIZES,Mf as COLOR_MODE_BOOT_MARKER,Nf as COLOR_MODE_BOOT_GLOBAL,Xf as CLOAK_STYLE,Am as BroadcastServer,zm as Broadcast,Sf as BUILD_ID_META,Tf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,qi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Rq as $path};
|
|
2
|
+
import{$ as ll,$a as cn,$b as vo,$c as vp,$d as vq,A as Xj,Aa as nm,Ab as Pn,Ac as Wo,Ad as Wp,Ae as ar,B as Yj,Ba as om,Bb as Qn,Bc as Xo,Bd as Xp,Be as br,C as Zj,Ca as Bm,Cb as Rn,Cc as Yo,Cd as Yp,Ce as cr,D as _j,Da as Cm,Db as Sn,Dc as Zo,Dd as Zp,De as dr,E as Qk,Ea as Dm,Eb as Tn,Ec as _o,Ed as _p,Ee as er,F as Rk,Fa as Em,Fb as Un,Fc as $o,Fd as $p,Fe as fr,G as Sk,Ga as Fm,Gb as Vn,Gc as ap,Gd as aq,Ge as gr,H as Tk,Ha as Gm,Hb as Wn,Hc as bp,Hd as bq,He as hr,I as Uk,Ia as Km,Ib as Xn,Ic as cp,Id as cq,Ie as ir,J as Vk,Ja as Lm,Jb as Yn,Jc as dp,Jd as dq,Je as jr,K as Wk,Ka as Mm,Kb as Zn,Kc as ep,Kd as eq,Ke as kr,L as Xk,La as Nm,Lb as _n,Lc as fp,Ld as fq,Le as lr,M as Yk,Ma as Om,Mb as $n,Mc as gp,Md as gq,Me as mr,N as Zk,Na as Pm,Nb as ao,Nc as hp,Nd as hq,Ne as nr,O as _k,Oa as Qm,Ob as io,Oc as ip,Od as iq,Oe as or,P as $k,Pa as Rm,Pb as jo,Pc as jp,Pd as jq,Pe as pr,Q as al,Qa as Sm,Qb as ko,Qc as kp,Qd as kq,Qe as qr,R as bl,Ra as Tm,Rb as lo,Rc as lp,Rd as lq,Re as rr,S as cl,Sa as Um,Sb as mo,Sc as mp,Sd as mq,Se as sr,T as dl,Ta as Vm,Tb as no,Tc as np,Td as nq,Te as tr,U as el,Ua as Wm,Ub as oo,Uc as op,Ud as oq,Ue as ur,V as fl,Va as Xm,Vb as po,Vc as pp,Vd as pq,Ve as vr,W as gl,Wa as Ym,Wb as qo,Wc as qp,Wd as qq,We as wr,X as hl,Xa as Zm,Xb as ro,Xc as rp,Xd as rq,Xe as xr,Y as il,Ya as $m,Yb as so,Yc as sp,Yd as sq,Ye as yr,Z as jl,Za as an,Zb as to,Zc as tp,Zd as tq,_ as kl,_a as bn,_b as uo,_c as up,_d as uq,aa as ml,ab as dn,ac as wo,ad as wp,ae as wq,ba as nl,bb as en,bc as xo,bd as xp,be as xq,ca as ol,cb as fn,cc as yo,cd as yp,ce as yq,da as pl,db as gn,dc as zo,dd as zp,de as zq,ea as ql,eb as hn,ec as Ao,ed as Ap,ee as Aq,fa as rl,fb as jn,fc as Bo,fd as Bp,fe as Bq,ga as sl,gb as kn,gc as Co,gd as Cp,ge as Cq,ha as tl,hb as ln,hc as Do,hd as Dp,he as Dq,ia as ul,ib as mn,ic as Eo,id as Ep,ie as Eq,ja as vl,jb as nn,jc as Fo,jd as Fp,je as Fq,ka as wl,kb as on,kc as Go,kd as Gp,ke as Gq,la as xl,lb as pn,lc as Ho,ld as Hp,le as Hq,ma as yl,mb as qn,mc as Io,md as Ip,me as Iq,na as zl,nb as rn,nc as Jo,nd as Jp,ne as Jq,o as a,oa as Al,ob as sn,oc as Ko,od as Kp,oe as Kq,p as Ij,pa as cm,pb as vn,pc as Lo,pd as Lp,pe as Rq,q as Jj,qa as dm,qb as wn,qc as Mo,qd as Mp,qe as Sq,r as Kj,ra as em,rb as xn,rc as No,rd as Np,re as Tq,s as Lj,sa as fm,sb as yn,sc as Oo,sd as Op,se as Uq,t as Mj,ta as gm,tb as En,tc as Po,td as Pp,te as Vq,u as Nj,ua as hm,ub as Fn,uc as Qo,ud as Qp,ue as Wq,v as Oj,va as im,vb as Gn,vc as Ro,vd as Rp,ve as Xq,w as Pj,wa as jm,wb as Hn,wc as So,wd as Sp,we as Yq,x as Qj,xa as km,xb as Mn,xc as To,xd as Tp,xe as Zq,y as Vj,ya as lm,yb as Nn,yc as Uo,yd as Up,ye as _q,z as Wj,za as mm,zb as On,zc as Vo,zd as Vp,ze as $q}from"./chunk-c06970qq.js";import{$e as bk,Ze as $j,_e as ak,af as ck,bf as dk,cf as ek,df as fk,ef as gk,ff as hk,gf as ik,hf as jk,if as kk,jf as lk,kf as mk,lf as nk}from"./chunk-ym3r8ktq.js";import{mf as Ek,nf as Fk,of as Gk,pf as Hk,qf as Ik,rf as Jk,sf as Kk,tf as Lk,uf as Mk,vf as Nk,wf as Ok,xf as Pk}from"./chunk-hd8mg5q5.js";import{Af as eo,Bf as fo,Cf as go,Df as ho,yf as bo,zf as co}from"./chunk-5qy49drk.js";import{Ef as tn,Ff as un}from"./chunk-pbsfbgx7.js";import{Gf as zn}from"./chunk-3ej56pch.js";import{Hf as Sl,If as Tl,Jf as Ul,Kf as Vl,Lf as Yl,Mf as am}from"./chunk-fcgewg4k.js";import{Nf as Wl,Qf as Xl}from"./chunk-95t702td.js";import{$f as sm,Yf as pm,Zf as qm,_f as rm,ag as tm,bg as um,cg as vm,dg as wm,eg as xm,fg as ym,gg as zm,hg as Am}from"./chunk-0j9hrzjj.js";import{ig as Ck,jg as Dk}from"./chunk-ptzfbj3s.js";import{kg as bm}from"./chunk-djkwdpcb.js";import{lg as Hm,mg as Im,ng as Jm,og as _m,pg as An,qg as Bn,rg as Cn,sg as Dn,tg as In,ug as Jn,vg as Kn,wg as Ln}from"./chunk-t0dq8bsd.js";import{Ag as El,Bg as Fl,Cg as Gl,Dg as Hl,Eg as Il,Fg as Jl,Gg as Kl,Hg as Ll,Ig as Ml,Jg as Nl,Kg as Zl,Lg as _l,Mg as $l,xg as Bl,yg as Cl,zg as Dl}from"./chunk-m1qf02qz.js";import{Ng as Xi,Og as Yi,Pg as Zi,Qg as _i,Rg as $i,Sg as aj,Tg as bj,Ug as cj,Vg as dj,Wg as ej,Xg as fj}from"./chunk-2yhd8t93.js";import{Yg as xj,_g as yj}from"./chunk-f5v2qf95.js";import{eh as ok,fh as pk,gh as qk,hh as rk,ih as sk,jh as tk,kh as uk,mh as vk,nh as wk,oh as xk,ph as yk,qh as zk,rh as Ak,uh as Bk}from"./chunk-0kxqfy8p.js";import{vh as hh,wh as ih,xh as jh,yh as kh}from"./chunk-49kk0s96.js";import{Dh as lh}from"./chunk-w3ycm4na.js";import{Eh as sh,Fh as th,Gh as uh,Hh as vh,Ih as wh,Jh as xh}from"./chunk-xw1x7nkg.js";import{Kh as Mi,Lh as Ni,Mh as Oi,Qh as Pi,Rh as Qi,Sh as Ri}from"./chunk-v936h01r.js";import{$h as Ji,Th as Ci,Uh as Di,Vh as Ei,Wh as Fi,Xh as Gi,Zh as Hi,_h as Ii,ai as Ki,bi as Li}from"./chunk-74cv4ta1.js";import{ci as sg,di as tg,ei as ug,fi as vg,gi as wg,hi as xg}from"./chunk-wcm80anz.js";import{ii as yg,ji as zg,ki as Ag,li as Bg,mi as Cg}from"./chunk-y7m2dpd3.js";import{ni as Dg,oi as Eg,pi as Fg,qi as Gg,ri as Hg}from"./chunk-9y0g8kzt.js";import{si as Ig,ti as Jg,ui as Kg,vi as Lg,wi as Mg,xi as Ng,yi as Og}from"./chunk-t6nseeb9.js";import{Ai as Qg,Bi as Rg,Ci as Sg,Di as Tg,Ei as Ug,zi as Pg}from"./chunk-xttsqmkm.js";import{Gi as Vg,Hi as Wg,Ii as Xg,Ji as Yg,Ki as Zg,Li as _g,Mi as $g,Ni as ah,Oi as bh,Pi as ch,Qi as dh,Ri as eh,Si as fh,Ti as gh}from"./chunk-54st8g2j.js";import{Vi as mg,Wi as ng}from"./chunk-dkrgh8gv.js";import{Zi as og}from"./chunk-thermrhq.js";import"./chunk-9n0gvfrg.js";import{bj as pg}from"./chunk-7q9mwh4v.js";import{cj as qg,dj as rg}from"./chunk-refwkt87.js";import{ej as fe,fj as ge,gj as he,hj as ie,ij as je,jj as ke,kj as le,lj as me,mj as ne,nj as oe,oj as pe,pj as qe,qj as re,rj as se}from"./chunk-cjk6zcgz.js";import{sj as Pe,tj as Qe}from"./chunk-bmxqkast.js";import{Aj as Be,Bj as Ce,Cj as De,Dj as Ee,Ej as Fe,Fj as Ge,Gj as He,Hj as Ie,Ij as Je,Jj as Ke,Kj as Le,Lj as Me,Mj as Ne,Nj as Oe}from"./chunk-w95sp0k9.js";import{Oj as Re,Pj as Se,Qj as Te,Rj as Ue,Sj as Ve,Tj as We,Uj as Xe,Vj as Ye,Wj as Ze,Xj as _e,Yj as $e}from"./chunk-xsze8fa2.js";import{qk as Lq,rk as Mq,sk as Nq,tk as Oq,uk as Pq,vk as Qq}from"./chunk-fmj97bm8.js";import{Ak as Ol,Bk as Pl,Ck as Ql,Dk as Rl,wk as Rj,xk as Sj,yk as Tj,zk as Uj}from"./chunk-h3cvkas0.js";import"./chunk-58f0mthg.js";import"./chunk-0ha9e1wt.js";import{$l as Wa,$m as Ub,$n as Uc,$p as Hf,$q as Nh,$r as vj,Al as I,Am as pb,An as tc,Ao as Jd,Ap as ff,Aq as gg,Ar as vi,Bl as J,Bm as qb,Bn as uc,Bo as Kd,Bp as gf,Bq as hg,Br as wi,Cl as da,Cn as vc,Co as Ld,Cp as hf,Cq as ig,Cr as xi,Dl as ea,Dm as xb,Dn as wc,Do as Md,Dp as jf,Dq as jg,Dr as yi,El as fa,Em as yb,En as xc,Eo as Nd,Ep as kf,Eq as kg,Er as zi,Fl as ga,Fm as zb,Fn as yc,Fo as Od,Fp as lf,Fq as lg,Fr as Ai,Gl as ha,Gm as Ab,Gn as zc,Go as Pd,Gp as mf,Gq as mh,Gr as Bi,Hl as ia,Hm as Bb,Hn as Ac,Ho as Qd,Hp as nf,Hq as nh,Hr as Si,Im as Cb,In as Bc,Io as Rd,Ip as of,Iq as oh,Ir as Ti,Jm as Db,Jn as Cc,Jo as Sd,Jp as pf,Jq as ph,Jr as Ui,Kl as za,Kn as Dc,Ko as Td,Kp as qf,Kq as qh,Kr as Vi,Ll as Aa,Lm as Eb,Ln as Ec,Lo as Ud,Lp as rf,Lq as rh,Lr as Wi,Ml as Ba,Mm as Fb,Mn as Fc,Mo as Vd,Mp as sf,Mq as yh,Mr as gj,Nl as Ca,Nm as Gb,Nn as Gc,No as Wd,Np as tf,Nq as zh,Nr as hj,Ol as Da,Om as Hb,On as Hc,Oo as Xd,Op as uf,Oq as Ah,Or as ij,Pm as Ib,Pn as Ic,Po as Yd,Pp as vf,Pq as Bh,Pr as jj,Qm as Jb,Qn as Jc,Qo as Zd,Qp as wf,Qq as Ch,Qr as kj,Rl as Ga,Rm as Kb,Rn as Kc,Ro as _d,Rp as xf,Rq as Dh,Rr as lj,Sl as Ha,Sm as Lb,Sn as Lc,So as $d,Sp as yf,Sq as Eh,Sr as mj,Tl as Ia,Tm as Mb,Tn as Mc,To as ae,Tp as zf,Tq as Fh,Tr as nj,Ul as Pa,Um as Nb,Un as Nc,Uo as be,Up as Af,Uq as Gh,Ur as oj,Vl as Qa,Vm as Ob,Vn as Oc,Vo as ce,Vp as Bf,Vq as Hh,Vr as pj,Wl as Ra,Wm as Pb,Wn as Pc,Wo as de,Wp as Cf,Wq as Ih,Wr as qj,Xl as Sa,Xm as Qb,Xn as Qc,Xo as ee,Xp as Df,Xq as Jh,Xr as rj,Yl as Ta,Ym as Rb,Yn as Rc,Yp as Ef,Yq as Kh,Yr as sj,Zl as Ua,Zm as Sb,Zn as Sc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Va,_m as Tb,_n as Tc,_p as Gf,_q as Mh,_r as uj,am as Xa,an as Vb,ao as Vc,ap as ze,aq as If,ar as Oh,as as wj,bn as Wb,bo as Wc,bp as Ae,bq as Jf,br as Yh,bs as zj,cn as Xb,co as Xc,cq as Kf,cr as Zh,cs as Aj,dn as Yb,do as Yc,dp as af,dq as Lf,dr as _h,ds as Bj,en as Zb,eo as Zc,eq as Mf,er as $h,es as Cj,fm as Ya,fn as _b,fo as _c,fq as Nf,fr as ai,fs as Dj,gm as Za,gn as $b,go as $c,gq as Of,gr as bi,gs as Ej,hm as _a,hn as ac,ho as ad,hq as Pf,hr as ci,hs as Fj,im as $a,in as bc,io as bd,iq as Qf,ir as di,is as Gj,jm as ab,jn as cc,jo as cd,jq as Rf,jr as ei,js as Hj,kl as s,km as bb,kn as dc,ko as dd,kq as Sf,kr as fi,ll as t,ln as ec,lo as ed,lq as Tf,lr as gi,ml as u,mn as fc,mo as fd,mq as Uf,mr as hi,nl as v,nm as cb,nn as gc,no as gd,nq as Vf,nr as ii,ol as w,om as db,on as hc,oo as hd,oq as Wf,or as ji,pl as x,pm as eb,pn as ic,po as id,pq as Xf,pr as ki,ql as y,qm as fb,qn as jc,qo as zd,qq as Yf,qr as li,rl as z,rm as gb,rn as kc,ro as Ad,rq as Zf,rr as mi,sl as A,sm as hb,sn as lc,so as Bd,sq as _f,sr as ni,tl as B,tm as ib,tn as mc,to as Cd,tq as $f,tr as oi,ul as C,um as jb,un as nc,uo as Dd,up as bf,uq as ag,ur as pi,vl as D,vm as kb,vn as oc,vo as Ed,vq as bg,vr as qi,wl as E,wm as lb,wn as pc,wo as Fd,wp as cf,wq as cg,wr as ri,xl as F,xm as mb,xn as qc,xo as Gd,xq as dg,xr as si,yl as G,ym as nb,yn as rc,yo as Hd,yp as df,yq as eg,yr as ti,zl as H,zm as ob,zn as sc,zo as Id,zp as ef,zq as fg,zr as ui}from"./chunk-7hrttzad.js";import{ks as d,ls as e,ms as f,ns as g,os as h,ps as i,qs as j,rs as k,ss as l,ts as m,us as n,vs as o,ws as p,xs as q,ys as r}from"./chunk-vr4ycjqv.js";import{As as Qh,Bs as Rh,Cs as Sh,Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,zs as Ph}from"./chunk-cbj5a2tk.js";import{Is as b,Js as c}from"./chunk-fmw1mscr.js";import{Ks as Ea,Ls as Fa}from"./chunk-wfsf3vmh.js";import{$s as wb,Ms as rb,Ns as sb,Ps as tb,Zs as ub,_s as vb}from"./chunk-pctsgktp.js";import{at as te,bt as ue,ct as ve,dt as we,gt as xe}from"./chunk-q0sgqw4m.js";import{ht as Ja,it as Ka,jt as La,kt as Ma,lt as Na,mt as Oa}from"./chunk-ecncwde8.js";import{At as wd,Bt as xd,Ct as yd,nt as jd,ot as kd,pt as ld,qt as md,rt as nd,st as od,tt as pd,ut as qd,vt as rd,wt as sd,xt as td,yt as ud,zt as vd}from"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import{Ft as ja,Gt as ka,Ht as la,It as ma,Jt as na,Kt as oa,Lt as pa,Mt as qa,Nt as ra,Ot as sa,Pt as ta,Qt as ua,Rt as va,St as wa,Tt as xa,Ut as ya}from"./chunk-rrxm5s7d.js";import{Au as ba,Cu as ca,Yt as K,Zt as L,au as M,fu as N,gu as O,mu as P,nu as Q,ou as R,pu as S,qu as T,ru as U,su as V,tu as W,uu as X,vu as Y,wu as Z,xu as _,yu as $,zu as aa}from"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{jk as writeNetlifyConfig,_l as writeManifest,Ok as writeImageManifest,ro as wrapComponentForHMR,lr as withDefaults,wj as webComponentDirectiveHandler,gp as watermark,iq as watchViews,Yk as watchMultiple,Zk as watchEffect,Xk as watch,xe as warmImagePlaceholders,kl as waitForStore,Yd as waitForLocale,co as virtualPathFor,jj as videoDirective,tc as validators,pr as validated,Kd as validateValueEnhanced,nh as validateTemplate,lp as validateParams,Ld as validateFormEnhanced,Zp as validateFile,Gd as validateFields,Fd as validateField,ph as validateDirective,dd as validateCspDirectives,Ej as validateConfig,dm as validateComponentScripts,Bm as validateComponentProps,lg as validateClientScript,kh as v,jb as usesSignalsInScript,pa as usesReactiveRuntime,Ch as userComponentFileExists,Sg as useVirtualList,rd as useTitle,jl as useStoreOrThrow,Jo as useStore,Vj as useStorage,tq as useSlots,Xj as useSessionStorage,od as useSeoMeta,ll as useRouteParams,nl as useRouteParamOrThrow,ml as useRouteParam,rd as usePageTitle,Oe as useOptimistic,pl as useMiddlewareValue,ol as useMiddlewareState,Wj as useLocalStorage,ko as useLoadingIndicator,md as useHead,hh as useForm,vq as useAttrs,$p as uploadFiles,_p as uploadFile,gl as updateInstance,Me as untrack,Sh as unregisterDirective,hl as unmountInstance,qb as unescapeHtml,go as typecheckStxFiles,Bh as transpileTypeScript,_q as translate,w as transitionDirective,vm as toUsers,um as toUser,Ro as thumbnail,Sp as thumbHashToRGBA,Tp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Re as templateCache,Mb as syncRecordedResponse,oo as stxClientHelpers,wf as structuredDataDirective,br as stripLocalePrefix,Ll as stripDocumentWrapper,Fa as stripCommentsAndLiterals,jn as stringToStream,Tc as strictCspPreset,ne as streamingSuspenseDirective,re as streamToResponse,le as streamTemplateSimple,fe as streamTemplate,Qj as stopHmrServer,rm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Be as state,fg as startsDocument,Ln as startProductionServer,zn as startInteractive,qm as startBroadcasting,dr as stampLocaleLayoutGroup,D as staggerDirective,jp as srcsetUrls,E as springDirective,Cc as splitByPipe,Hl as spaNavVaryHeaders,eo as sourcePathFor,qp as smartBatchSign,Eh as slotContentHasExpressions,op as signUrl,zh as shouldTranspileTypeScript,Nj as shouldReloadOnChange,tp as shouldRefreshSignature,Oj as shouldIgnoreFile,Kg as shouldCacheComponent,Vo as sharpen,sr as shape,La as setStateDir,tl as setRouteParams,ul as setMiddlewareState,we as setImagePlaceholder,nq as setGlobalProvide,Qb as setErrorLocale,Qk as setCurrentInstance,Zi as setCachedVideoResult,Oi as setCachedImageResult,Ii as setCached,vr as serveStxFile,xr as serveMultipleStxFiles,Ij as serveMarkdownFile,Vn as serveFile,yr as serveApp,Un as serve,uo as serializeState,_m as serializeSetCookie,Xo as sepia,pd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,nj as scopeHTML,mj as scopeCSS,zf as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,$o as saturation,mp as sanitizeParams,vc as sanitizeFilePath,wc as sanitizeExpression,xc as sanitizeDirectiveParams,uc as sanitizeDirectiveParam,yc as sanitizeComponentProps,oc as safeExecuteAsync,nc as safeExecute,xa as runtimeHandledXAttrsLiteral,pf as runPreProcessingMiddleware,qf as runPostProcessingMiddleware,Cn as runPageAction,He as runMountCallbacks,ba as runMiddleware,el as runHooks,Tq as runDoctor,Ie as runDestroyCallbacks,Ef as runComposers,ap as rotate,lh as rewriteImagesWithSiblings,Nb as responseBindings,Ih as resolveTemplatePath,c as resolveStxTargets,Aj as resolveStxDirectories,Zq as resolveI18n,Po as resize,Ya as resetPlaceholders,ld as resetHead,to as resetHMRHandler,bc as resetErrorConfig,nr as required,ab as replacePlaceholders,gq as renderView,gj as renderVideoComponent,Qa as renderVendorStyleTags,Cq as renderToString,Dq as renderToStream,Eq as renderToDOM,Rp as renderThumbhashToCanvas,Qq as renderTemplateString,Oq as renderTemplate,Pq as renderString,ie as renderStreamingPage,uh as renderSlot,Ag as renderSSRSuspense,Bp as renderProtectedVideo,Ap as renderProtectedImg,np as renderMediaUpload,Nq as renderMarkdownView,Ql as renderLayoutTypes,Si as renderImgComponent,Ek as renderImageComponent,td as renderHtmlAttrs,sd as renderHead,jq as renderEmail,Gh as renderComponentWithSlot,ud as renderBodyAttrs,Eo as render,Vc as relaxedCspPreset,Ed as registerValidationRule,pe as registerStreamingDirectives,Lo as registerStoresClient,rl as registerStore,xf as registerSeoDirectives,V as registerMiddleware,eb as registerFilters,db as registerFilter,Sb as registerErrorMessages,Jd as registerEnhancedValidationRule,Ph as registerDirective,cd as registerCspDirectives,Em as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Uk as ref,rn as redirect,Ib as recordResponseStatus,Jb as recordResponseHeader,Oa as rebaseOntoStateDir,Kb as readResponseStatus,Lb as readResponseHeaders,Gj as readMarkdownFile,Se as readFileCached,Vk as reactive,ep as quality,yp as pruneSignatureCache,Li as pruneCache,lq as provide,Mq as protectCodeBlocks,mr as prop,If as processVueTemplate,Qg as processVirtualListDirectives,Ug as processVirtualGridDirectives,fj as processVideo,Hd as processValidateDirective,de as processTranslateDirective,ug as processTransitionDirectives,xg as processTransitionAttributes,xd as processTitleDirective,Ab as processTemplateBindings,qg as processTeleportDirectives,yg as processSuspenseDirectives,sf as processStructuredData,je as processStreamDirectives,Ob as processStatusDirective,fh as processStaticDirectives,nf as processStackReplacements,mf as processStackPushDirectives,vh as processSlots,Jl as processShell,Gf as processServerBindings,tf as processSeoDirective,qe as processSectionDirectives,Lf as processScopedStyles,yb as processReactiveBindings,Cp as processProtectedMedia,_g as processPartialHydrationDirectives,kg as processOnceDirective,of as processMiddleware,rf as processMetaDirectives,yd as processMetaDirective,Hj as processMarkdownFileDirectives,Nh as processMarkdownDirectives,gf as processLoops,Ig as processKeepAliveDirectives,jg as processJsonDirective,Tg as processInfiniteListDirectives,lf as processIncludes,Ui as processImgComponents,Gk as processImageComponents,tk as processImage,wd as processHeadDirective,Ad as processForms,Cd as processFormInputDirectives,nb as processExpressions,Ca as processEventDirectives,Dd as processErrorDirective,Jf as processDynamicComponents,mh as processDirectives,Xh as processDirectiveAttributes,pg as processDeferDirectives,hd as processCustomDirectives,$c as processCspDirectives,tr as processComponentProps,Xa as processClientScript,Bd as processBasicFormDirectives,Dg as processAsyncDirectives,id as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Ud as preloadTranslationsBackground,Td as preloadTranslations,jo as preloadIslandHandlers,ye as preloadIconCollection,mm as poolStrings,yj as pluginManager,ue as placeholdersWarmed,tg as performLeave,sg as performEnter,Je as pendingLifecycleCounts,Ne as peek,hf as partialsCache,hj as parseVideoDirectiveOptions,No as parseUrl,Up as parseThumbhashString,Ic as parseSwitchBlock,sh as parseSlots,th as parseSlotElement,Nc as parseScriptDeclarations,uj as parseSFCComponent,Dp as parseProtectedArgs,ff as parseLoopBinding,Ti as parseImgComponent,ji as parseImageUrl,Fk as parseImageComponent,An as parseFormBody,Kc as parseExpressionWithFilters,Fm as parseDefaults,on as parseCookies,Km as parseContainerSelector,Fc as parseConditionalBlock,Lc as parseArguments,H as parseAnimationShorthand,or as optional,nm as optimizeTemplate,Lk as optimizeImage,Mk as optimizeDirectory,qr as oneOf,jf as onceStore,bl as onUpdated,xb as onUpdate,dl as onUnmounted,yl as onServer,$k as onMounted,Fe as onMount,eh as onHydrated,rq as onErrorCaptured,Ge as onDestroy,Og as onDeactivated,xl as onClient,al as onBeforeUpdate,cl as onBeforeUnmount,_k as onBeforeMount,Ng as onActivated,Np as observeElement,sn as notFound,Qf as normalizeCriticalHeadOrder,qq as nextTick,Im as negotiateEncoding,P as navigateTo,fl as mountInstance,z as motionDirective,Uc as moderateCspPreset,lm as minifyHtml,vf as metaDirective,_f as metaDedupKey,Oo as mergeParams,ag as mergeHtmlAttrs,nd as mergeHeadConfigs,Yc as mergeCspDirectives,sb as mergeCrosswindConfig,M as matchRoute,Oh as markdownDirectiveHandler,Fj as markdownCache,b as looksLikeGlob,ar as localizePath,Vd as loadTranslationLazy,$d as loadTranslation,Bj as loadStxConfig,_ as loadMiddlewareFromDirectory,$l as loadManifest,Jp as loadElement,sm as loadChannels,hr as lintStxStrict,Lp as lazyLoadAll,Kp as lazyLoad,C as keyframeDirective,Aq as jsxs,Bq as jsxDEV,zq as jsx,qn as jsonResponse,oe as islandDirective,_b as isTest,Ml as isSpaNavigation,Fl as isSpaNavRequest,rp as isSignatureValid,Ke as isSignal,rk as isSharpAvailable,bn as isServerEnvironment,vl as isServer,ta as isRuntimeOwnedColonAttr,Yb as isProduction,d as isPresentationalRole,Gp as isNativeLazySupported,Lq as isMarkdownPath,Rd as isLoading,Sd as isLoaded,yh as isJavaScriptScript,Hp as isIntersectionObserverSupported,zk as isImageFile,sk as isImageBackendAvailable,be as isICUFormat,dh as isHydrated,Dh as isHydrateTrigger,Gb as isHttpStatus,an as isEdgeEnvironment,ir as isDirectiveKind,Zb as isDevelopment,Le as isDerived,Mj as isCssOnlyChange,Hm as isCompressible,wl as isClient,Fg as isAsyncComponent,Bn as isActionableMethod,Yo as invert,Ue as invalidateFileCacheByDir,Te as invalidateFileCache,mb as interpolateScriptsInTemplate,kb as interpolateScriptExpressions,lb as interpolateScriptAttributes,kc as inlineError,Yq as injectThemeBootstrap,uf as injectSeoTags,Vq as injectSeo,af as injectRouterScript,Lj as injectHotReload,fa as injectHeatmap,Zc as injectCspMetaTag,wb as injectCrosswindCSS,hg as injectConfigHeadTags,Pf as injectColorModeBootScript,cg as injectCloakStyle,Wf as injectBuildId,Sa as injectBrowserCoreAutoImports,Cb as injectAnalytics,mq as inject,ql as initStoreRegistry,mk as initNetlify,lo as initLoadingIndicator,Ip as initLazyLoading,yn as initFile,Qp as initBlurUp,Wp as initAllBlurUp,Wi as imgDirective,Jk as imageDirective,Jn as hydrateTemplateStream,In as hydrateTemplate,io as hydrateIslands,ah as hydrateIsland,Kn as hydrateFragment,bh as hydrateByStrategy,ch as hydrateAll,Bo as hydrate,Tn as htmlResponse,dg as hoistLeadingHeadTags,Rf as hoistColorModeBootScript,ga as heatmapDirective,Ei as hashString,$e as hashFilePath,Ci as hashFile,Di as hashBuffer,Hf as hasVueTemplateSyntax,ef as hasVariables,Go as hasStore,bb as hasPlaceholders,kk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,gg as hasDocumentShell,qh as hasDirectives,h as hasDOMSupport,Ck as handleImageRequest,sq as handleError,Iq as h,yk as groupVariantsByFormat,Wo as grayscale,Mn as gitHash,fm as getUnusedDirectives,Wd as getTranslationSync,Pd as getTranslationCacheStats,Xd as getTranslationAsync,ce as getTranslation,fk as getTotalSize,sp as getTimeUntilExpiry,mg as getStoreScript,Ho as getStoreNames,Fo as getStore,_j as getStorageSize,Zj as getStorageKeys,Jh as getSourceLineInfo,Ah as getSharedTranspiler,g as getScreenReaderOnlyStyle,oj as getScopeAttribute,Ae as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,oh as getPositionInfo,_a as getPlaceholderRegistry,Bi as getPlaceholderCacheStats,kd as getPageMeta,Pc as getNonce,Ak as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Qd as getLoadingState,Zd as getLoadingLocales,te as getImagePlaceholder,uk as getImageMetadata,Ao as getHydrationRuntime,sl as getHydratedStoreState,Pj as getHmrServer,jd as getHead,so as getHMRHandler,ni as getFormatExtension,Gi as getFileMtime,xk as getFallbackVariant,Ub as getErrorMessage,Rb as getErrorLocale,ac as getErrorConfig,Xb as getErrorCodeName,Rh as getDirectives,Qh as getDirective,Rk as getCurrentInstance,Xc as getCspPreset,ed as getCspHeaderName,tb as getCrosswindServeAsset,Mh as getComponentCacheStats,Yi as getCachedVideoResult,wp as getCachedSignature,We as getCachedSignalsRuntime,Xe as getCachedRouterScript,zi as getCachedPlaceholder,Ni as getCachedImageResult,Hi as getCached,Ki as getCacheStats,Uf as getBuildId,pm as getBroadcastServer,mi as getBestVariant,fb as getAllFilters,ai as generateWidthSrcset,Rg as generateVirtualListCSS,bq as generateVideoPreview,Md as generateValidationScript,cq as generateUploadRuntime,gm as generateTreeShakenBundle,wg as generateTransitionRuntime,vg as generateTransitionCSS,aj as generateThumbnails,si as generateThumbhashPlaceholder,Tm as generateTemplatesDocs,Cg as generateSuspenseRuntime,Bg as generateSuspenseCSS,vo as generateStateScript,ki as generateSrcsetData,Ri as generateSrcset,vk as generateSrcSet,bj as generateSpriteSheet,kq as generateSpaShell,li as generateSourceTags,gi as generateSizesFromBreakpoints,fi as generateSizesAttribute,wk as generateSizes,yf as generateSitemapIndex,Wq as generateSitemap,Fp as generateSimpleMediaPicker,zp as generateSignatureRuntime,Qe as generateSignalsRuntimeDev,Pe as generateSignalsRuntime,Wa as generateServerDataBridge,lj as generateScopeId,vj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Af as generateRobotsTxt,Xq as generateRobots,Qi as generateResponsiveVariants,rj as generateReactiveWebComponentTS,qj as generateReactiveWebComponent,tj as generateReactiveRuntime,sj as generateReactiveMixin,$i as generatePoster,yi as generatePlaceholderStyle,xi as generatePlaceholderCSS,ri as generatePlaceholder,$g as generatePartialHydrationCSS,Oc as generateNonce,gk as generateNetlifyToml,eq as generateMinifiedMediaRuntime,dq as generateMediaRuntime,Ep as generateMediaManagerEmbed,Zl as generateManifest,no as generateLoadingIndicatorHtml,Pp as generateLazyLoadRuntime,Rl as generateLayoutTypes,ui as generateLQIP,Mg as generateKeepAliveRuntime,Lg as generateKeepAliveCSS,gh as generateIslandManifest,aq as generateImagePreview,Nk as generateImageManifest,zo as generateHydrationScript,se as generateHydrationRuntime,Co as generateHydrationCSS,Vg as generateHydrationBootstrap,Kj as generateHotReloadScript,ea as generateHeatmapScript,qo as generateHMRClientScript,cj as generateHLSManifest,wo as generateEventBindings,ei as generateDprSrcsetWithVariableQuality,di as generateDprSrcset,eg as generateDocumentShell,Ym as generateDocs,Um as generateDirectivesDocs,Wh as generateDirectiveRuntime,Bf as generateDefaultRobotsTxt,dj as generateDASHManifest,Sc as generateCspMetaTag,Rc as generateCspHeader,vb as generateCrosswindCSS,xq as generateCompositionRuntime,Sm as generateComponentsDocs,Wg as generateComponentManifest,Qm as generateComponentDoc,wi as generateColorPlaceholder,Of as generateColorModeBootScript,il as generateClientRuntime,Fi as generateCacheKey,Ua as generateBrowserAutoImportDestructuring,Xp as generateBlurUpRuntime,Yp as generateBlurUpCSS,zb as generateBindingsRuntime,bi as generateAutoWidthSrcset,Ta as generateAutoImportDestructuring,Hg as generateAsyncComponentRuntime,Gg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Bb as generateAnalyticsScript,ho as formatTypecheckDiagnostics,ao as formatTypeErrors,vn as formatStxContent,ek as formatSize,O as formatRoutes,wn as formatMarkdownContent,Vb as formatLocalizedError,ae as formatICU,cc as formatFilePath,jc as formatError,Uq as formatDoctorReport,Vm as formatDocsAsMarkdown,Xm as formatDocsAsJson,Wm as formatDocsAsHtml,dp as format,km as foldConstants,cp as flipVertical,bp as flipHorizontal,Sl as fingerprint,fo as findRuntimeTypeDeclarations,Sq as findPantryPackage,Ec as findMatchingEndTag,Ac as findMatchingDelimiter,Ea as findInterpolationEnd,Gc as findIfBlocks,Jc as findExpressions,N as findErrorPage,Hc as findDirectiveBlocks,hm as findDeadCode,hm as findDeadBranches,Lm as findContainerRegion,Rm as findComponentFiles,wr as findCommonDir,dk as filterRequiredFiles,Hh as fileExists,bf as extractVariables,Xl as extractTemplateExpressions,ke as extractStreamBoundaries,xo as extractState,wh as extractSlotContent,df as extractScriptFromTemplate,Wl as extractScriptBlocks,$a as extractPlaceholders,Dc as extractParenthesizedExpression,Hb as extractPageResponseStatus,ca as extractLayoutMetadata,vi as extractDominantColor,Mc as extractDirectiveParams,rh as extractDirectiveNames,Nl as extractContainerContent,Om as extractComponentProps,Xg as extractComponentName,Pm as extractComponentDescription,ub as extractClassNames,Va as extractBridgeData,Yg as extractBoundProps,Bc as extractBalancedExpression,Pa as extractAndStripCssImports,pj as extractAndScopeStyles,Ba as extractAndProcessEvents,Tj as externalizeSharedAssets,Uj as externalizeRepeatedAssets,Sj as externalizeHtml,pb as evaluateExpression,jm as evaluateConstant,Pb as evaluateAuthExpression,ib as escapeHtmlValue,hb as escapeHtml,pc as errorRecovery,rc as errorLogger,rg as ensureTeleportTargets,ig as ensureDocumentShell,Id as enhancedValidationRules,Mm as enableDevTools,im as eliminateDeadCode,De as effect,kp as dprUrls,Zm as docsCommand,Pl as discoverLayoutNames,Op as disconnectObserver,Nm as disableDevTools,sc as devHelpers,Il as detectShell,$m as detectRuntime,hk as detectProjectConfig,oi as detectFormat,cm as detectBuildMode,Ce as derived,lk as deploy,Dj as defineStxConfig,Ko as defineStore,uq as defineSlots,gr as defineSiteConfig,kr as definePropsWithValidation,jr as defineProps,xj as definePlugin,qd as definePageMeta,R as defineMiddleware,ih as defineForm,pq as defineExpose,oq as defineEmits,Th as defineDirective,Kq as defineCustomElement,Hn as defineConfig,Uh as defineClientDirective,Eg as defineAsyncComponent,fq as defaultMediaConfig,Pk as defaultImageConfig,Nd as defaultI18nConfig,da as defaultHeatmapConfig,zd as defaultFormClasses,cb as defaultFilters,gd as defaultCspConfig,zj as defaultConfig,ur as default,rb as deepMergeThemes,Kf as dedupeScopedStyles,ti as decodeThumbhash,bd as cspNonceDirective,ad as cspDirective,Vp as crossfadeTransition,Qo as crop,Pg as createVirtualList,ij as createVideoDirective,mn as createVercelHandler,Zn as createTypeChecker,ee as createTranslateFilter,hn as createTextEncoderStream,Jq as createStxApp,gn as createStreamingResponse,me as createStreamRenderer,Io as createStore,U as createStorageManager,S as createServerCookieManager,Tk as createScope,zg as createSSRSuspense,ze as createRouter,$ as createRouteLocation,Xn as createRoute,Uk as createRef,Vk as createReactive,wq as createProvideContext,On as createProject,Gn as createProductionBuild,Za as createPlaceholder,om as createOptimizedBuild,nn as createNetlifyHandler,$j as createNetlifyClient,aa as createMiddlewareContext,Wn as createMiddleware,Mp as createLazyObserver,Jg as createKeepAliveCache,dn as createKVNamespace,Zg as createIslandRegistry,Vi as createImgDirective,Kk as createImagePlugin,Dk as createImageHandler,Ik as createImageDirective,ia as createHeatmapAggregator,ck as createFileManifest,cn as createEnvAccessor,mc as createEnhancedError,fn as createEdgeHandler,en as createEdgeCache,Kh as createDetailedErrorMessage,ln as createDenoHandler,ik as createDefaultNetlifyConfig,fd as createCspHeaders,pn as createCookie,Wk as createComputed,Sk as createComponentInstance,kn as createCloudflareHandler,T as createClientCookieManager,Vh as createBuiltinDirectives,Jq as createApp,F as createAnimationTimeline,To as cover,cf as convertToCommonJS,_o as contrast,So as contain,lc as consoleError,$b as configureErrorHandling,Cj as config,Wk as computed,Jm as compressResponse,Df as composerPattern,Cf as composer,Kl as composeShellWithPage,Dm as componentDirective,Fh as componentClientSignalNames,Yl as compileTemplate,a as collectRepeatedFlag,bk as collectDeployFiles,_i as clearVideoCache,Od as clearTranslationCache,ng as clearStoreCache,Yj as clearStorage,xp as clearSignatureCache,Ai as clearPlaceholderCache,kf as clearOnceStore,Qc as clearNonce,Y as clearMiddleware,ve as clearImagePlaceholders,Hk as clearImageCache,Tb as clearErrorMessages,Ye as clearDevCaches,gb as clearCustomFilters,Ff as clearComposers,og as clearComposableCache,Lh as clearComponentCache,Ji as clearCache,mo as cleanupLoadingIndicator,Bl as classifyScript,Cl as classifyAllScripts,_n as checkTemplateFile,$n as checkTemplate,Ze as checkCache,up as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,ym as channel,un as captureScreenshots,tn as captureScreenshot,_d as cancelPendingLoads,ak as calculateSha1,ci as calculateOptimalWidths,_e as cacheTemplate,kj as buildWebComponents,bo as buildVirtualSource,hq as buildViews,Mo as buildUrl,ge as buildSuspenseResolveScript,fr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Tl as buildRuntimeAsset,Ul as buildRouterAsset,er as buildLangPickerScript,ii as buildImageUrl,$f as buildHtmlAttrs,am as buildForProduction,Gm as buildComponentLibrary,vp as buildAuthParams,bm as buildApp,cr as buildAlternateLinks,Fn as build,wm as broadcastPrivate,xm as broadcastPresence,tm as broadcast,Zo as brightness,Uo as blur,ya as blankInertHtmlRegions,pp as batchSignUrls,Ee as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,fp as auto,e as attributeValue,Vl as assetTags,za as asInvocableStatement,rr as arrayOf,$q as applyTranslations,Pi as applyTransformations,xh as applySlots,Cm as applyPropDefaults,ip as applyPreset,bg as applyHtmlAttrs,vd as applyHead,ob as applyFilters,Gl as appendVary,Wc as apiCspPreset,y as animationGroupDirective,ej as analyzeVideo,em as analyzeUsage,zl as analyzeTemplate,Al as analyzeProject,em as analyzeDirectiveUsage,Db as analyticsDirective,Rn as addStore,Qn as addPage,_c as addNonceToInlineContent,Sn as addLayout,Pn as addComponent,Dn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ve as __setSignalsGeneratorsForTest,Vf as __setBuildIdForTest,Xi as VideoProcessorCache,jh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,zc as Tokenizer,Yn as TemplateTypeChecker,xn as TEMPLATE_PRESETS,ic as StxValidationError,ec as StxSyntaxError,gc as StxSecurityError,fc as StxRuntimeError,hc as StxFileError,dc as StxError,Fq as Show,he as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Dl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Eb as RESPONSE_STATUS_KEY,Fb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,En as ProductionBuild,Hq as Portal,Nn as PROJECT_TEMPLATES,hp as PRESETS,na as NON_CLIENT_PRIMITIVES,Do as MemorySessionStore,$h as MIME_TYPES,Yh as MEDIA_DEFAULT_WIDTHS,_h as MEDIA_DEFAULT_FORMATS,Ol as LAYOUT_TYPES_FILE,Mi as ImageProcessorCache,Bk as ImageProcessingError,yo as HydrationRuntime,Jj as HotReloadServer,ha as HeatmapAggregator,Zf as HTML_CLASS_MARKER,Yf as HTML_ATTRS_MARKER,yq as Fragment,Gq as For,El as FRAGMENT_CACHE_CONTROL,qc as ErrorLogger,Wb as ErrorCodes,Rj as EXTERNALIZED_ASSET_DIR,nk as DeployError,ok as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,qk as DEFAULT_QUALITY,pi as DEFAULT_PLACEHOLDER_OPTIONS,pk as DEFAULT_FORMATS,Zh as DEFAULT_DPR_VALUES,po as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,hi as COMMON_SIZES,Mf as COLOR_MODE_BOOT_MARKER,Nf as COLOR_MODE_BOOT_GLOBAL,Xf as CLOAK_STYLE,Am as BroadcastServer,zm as Broadcast,Sf as BUILD_ID_META,Tf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,qi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Rq as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dq as b,Eq as c,Fq as d,Gq as e,dp as a}from"./chunk-
|
|
2
|
+
import{Dq as b,Eq as c,Fq as d,Gq as e,dp as a}from"./chunk-7hrttzad.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-pctsgktp.js";import"./chunk-q0sgqw4m.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-rrxm5s7d.js";import"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|