@stacksjs/stx 0.2.336 → 0.2.337
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-06qm6p8r.js +2 -0
- package/dist/{chunk-67bh5vrj.js → chunk-09xhvt5p.js} +1 -1
- package/dist/{chunk-te6qym2g.js → chunk-0dz59qg5.js} +2 -2
- package/dist/chunk-0e8x9jkb.js +2 -0
- package/dist/chunk-0tc5p1ty.js +2 -0
- package/dist/{chunk-vd5xvsnv.js → chunk-18018jkn.js} +1 -1
- package/dist/{chunk-5tefa8qb.js → chunk-1vb2rj09.js} +2 -2
- package/dist/chunk-1xqe92jv.js +2 -0
- package/dist/{chunk-c65yrgck.js → chunk-1ybanbh4.js} +10 -10
- package/dist/chunk-1ybaz0a1.js +2 -0
- package/dist/{chunk-fqq5k9ve.js → chunk-1z1efvtw.js} +1 -1
- package/dist/chunk-20e4pcq1.js +2 -0
- package/dist/chunk-2wn5db49.js +2 -0
- package/dist/chunk-3376d979.js +2 -0
- package/dist/{chunk-71y3bhcw.js → chunk-3405q9eb.js} +123 -37
- package/dist/chunk-3g2j4eh8.js +12 -0
- package/dist/{chunk-q85qp5we.js → chunk-3k4wcezp.js} +1 -1
- package/dist/{chunk-1ebyt1ba.js → chunk-3n9rvrk1.js} +1 -1
- package/dist/{chunk-m8kezfrt.js → chunk-3nv5h7jd.js} +5 -5
- package/dist/{chunk-fr66xp8q.js → chunk-3ys2esa2.js} +1 -1
- package/dist/chunk-42tgak9b.js +2 -0
- package/dist/{chunk-0vv5s039.js → chunk-459qxwp1.js} +1 -1
- package/dist/chunk-45bmthfs.js +2 -0
- package/dist/chunk-4bcax4rv.js +2 -0
- package/dist/{chunk-t8ctvjqe.js → chunk-557n2zx7.js} +1 -1
- package/dist/{chunk-dvvx1wny.js → chunk-57atgbyq.js} +1 -1
- package/dist/{chunk-9kxfz708.js → chunk-58jwsgr1.js} +1 -1
- package/dist/{chunk-hyfjnn7g.js → chunk-5ep11kvc.js} +1 -1
- package/dist/chunk-5sqbd646.js +64 -0
- package/dist/chunk-623b1j9c.js +2 -0
- package/dist/{chunk-08w4gtyf.js → chunk-64kky38b.js} +3 -3
- package/dist/{chunk-2vgkc0kg.js → chunk-6ex0t14b.js} +1 -1
- package/dist/{chunk-ke88kpva.js → chunk-6ym84983.js} +3 -3
- package/dist/{chunk-cr8v8k53.js → chunk-7r9vgzg4.js} +1 -1
- package/dist/{chunk-zsnrcbw1.js → chunk-7rf71ecp.js} +2 -2
- package/dist/{chunk-xwxdwqn9.js → chunk-7we3xfde.js} +1 -1
- package/dist/{chunk-xz3evxqp.js → chunk-8bxtvsgm.js} +1 -1
- package/dist/{chunk-e1sxe3q4.js → chunk-8wqz2s4j.js} +2 -2
- package/dist/chunk-96q01emr.js +2 -0
- package/dist/{chunk-9v0fsdsf.js → chunk-97yd8erh.js} +1 -1
- package/dist/{chunk-fkdnfjc2.js → chunk-994aga02.js} +2 -2
- package/dist/{chunk-kw98dfza.js → chunk-9btdax2s.js} +1 -1
- package/dist/{chunk-q0g5c39d.js → chunk-9kb0qv47.js} +1 -1
- package/dist/{chunk-9368t9jm.js → chunk-a959m68j.js} +1 -1
- package/dist/chunk-akdryjck.js +47 -0
- package/dist/{chunk-cdqx2c2h.js → chunk-apsmgvrk.js} +1 -1
- package/dist/{chunk-ymrxpwr8.js → chunk-as5j2s4h.js} +2 -2
- package/dist/chunk-at9knbt1.js +2 -0
- package/dist/chunk-b1w30x36.js +2 -0
- package/dist/{chunk-mgmn1vxy.js → chunk-b9w95df7.js} +1 -1
- package/dist/chunk-bafd6h7t.js +16 -0
- package/dist/{chunk-ej8mv2k6.js → chunk-bgrkxzr7.js} +1 -1
- package/dist/{chunk-q05eh1n4.js → chunk-bkwg5cgq.js} +2 -2
- package/dist/chunk-btqmqzay.js +2 -0
- package/dist/chunk-bv65tr40.js +2 -0
- package/dist/chunk-c21x8w2q.js +2 -0
- package/dist/chunk-ch06z00p.js +2 -0
- package/dist/chunk-cs9w9kwy.js +2 -0
- package/dist/chunk-czh7agd6.js +2 -0
- package/dist/{chunk-kpeqn5tx.js → chunk-dfymexrx.js} +1 -1
- package/dist/{chunk-eth22r93.js → chunk-dwjcmxez.js} +1 -1
- package/dist/{chunk-t41aaehf.js → chunk-e4g8wz6t.js} +1 -1
- package/dist/{chunk-n66k2v2q.js → chunk-eeg62zy4.js} +2 -2
- package/dist/{chunk-mm59b0gg.js → chunk-er3adkx7.js} +1 -1
- package/dist/{chunk-pbexz0d4.js → chunk-evakht2n.js} +2 -2
- package/dist/chunk-evmc7vhg.js +2 -0
- package/dist/{chunk-pbzdjhp8.js → chunk-f5wernak.js} +1 -1
- package/dist/{chunk-4jdj52c5.js → chunk-f6sejeg3.js} +1 -1
- package/dist/{chunk-xdmb578h.js → chunk-fckan25d.js} +1 -1
- package/dist/{chunk-yxppshfd.js → chunk-g3cyygvf.js} +1 -1
- package/dist/{chunk-mwh3ymwc.js → chunk-g6czgcg4.js} +1 -1
- package/dist/chunk-gab2hnk7.js +2 -0
- package/dist/{chunk-5swem3qy.js → chunk-gwrrs1qh.js} +1 -1
- package/dist/chunk-gy9a83n9.js +4 -0
- package/dist/chunk-h3w1y4q7.js +2 -0
- package/dist/chunk-hphhqwn5.js +2 -0
- package/dist/{chunk-2cm03y4y.js → chunk-hv8j33px.js} +1 -1
- package/dist/{chunk-zz8qgqa1.js → chunk-j3b8cnss.js} +2 -2
- package/dist/{chunk-gptwwv3c.js → chunk-jc3t5y1y.js} +1 -1
- package/dist/{chunk-cdsbxghb.js → chunk-jkyvk4x6.js} +1 -1
- package/dist/chunk-jv70d481.js +2 -0
- package/dist/chunk-jxqf4y2y.js +2 -0
- package/dist/{chunk-4k0ce745.js → chunk-jyq43tp9.js} +2 -2
- package/dist/chunk-k14sz6cz.js +2 -0
- package/dist/chunk-m93qtfxw.js +2 -0
- package/dist/{chunk-dfejgnny.js → chunk-meqcxfpr.js} +1 -1
- package/dist/chunk-mppr5jht.js +2 -0
- package/dist/{chunk-7kw3grq5.js → chunk-nf7k53ap.js} +1 -1
- package/dist/{chunk-kffndzch.js → chunk-nzbdgx7d.js} +3 -3
- package/dist/chunk-p4bmz9x3.js +3 -0
- package/dist/{chunk-4ty8j3xn.js → chunk-peqad61h.js} +1 -1
- package/dist/chunk-pp2ssem6.js +2 -0
- package/dist/{chunk-nat3actx.js → chunk-psazw7p1.js} +1 -1
- package/dist/{chunk-vvd659y4.js → chunk-pt4xht7s.js} +1 -1
- package/dist/{chunk-drqdc0mh.js → chunk-qcf4506g.js} +1 -1
- package/dist/{chunk-q569zmrr.js → chunk-qnx0eb8x.js} +1 -1
- package/dist/{chunk-y4nzmkea.js → chunk-qsbjtp60.js} +1 -1
- package/dist/{chunk-c2ta859c.js → chunk-rb69qb49.js} +1 -1
- package/dist/{chunk-hzfd8cz0.js → chunk-s9hsxhb5.js} +2 -2
- package/dist/chunk-sfaj3res.js +2 -0
- package/dist/{chunk-64djh88a.js → chunk-sqvqwd0p.js} +1 -1
- package/dist/chunk-sy44sx1e.js +3747 -0
- package/dist/{chunk-wx5zf66r.js → chunk-t2h8prxq.js} +1 -1
- package/dist/{chunk-24b4711v.js → chunk-t77fg77q.js} +1 -1
- package/dist/chunk-tbynnx22.js +2 -0
- package/dist/{chunk-amxtypkp.js → chunk-tf3b833n.js} +1 -1
- package/dist/chunk-tgsj4g9k.js +2 -0
- package/dist/chunk-thfpfk45.js +2 -0
- package/dist/{chunk-deqnt1w5.js → chunk-tjhzxbxa.js} +1 -1
- package/dist/{chunk-2tjk867y.js → chunk-tp6wkx7g.js} +1 -1
- package/dist/{chunk-p1hy2bwn.js → chunk-v5d0xj8c.js} +3 -3
- package/dist/chunk-vcdt10ke.js +3 -0
- package/dist/{chunk-ya5m5vbn.js → chunk-vgfd9582.js} +1 -1
- package/dist/{chunk-42en0cxm.js → chunk-vjp1sg5y.js} +1 -1
- package/dist/{chunk-tjag2cmm.js → chunk-w3d5xrdy.js} +1 -1
- package/dist/{chunk-6k8h1fj1.js → chunk-w52p79xs.js} +1 -1
- package/dist/{chunk-yk6446kr.js → chunk-when7sgs.js} +2 -2
- package/dist/chunk-wj8sx4fx.js +2 -0
- package/dist/{chunk-crj19mqr.js → chunk-wmgpb6b6.js} +1 -1
- package/dist/{chunk-9fcq5x2r.js → chunk-wnnv5d1t.js} +1 -1
- package/dist/{chunk-27xfkzks.js → chunk-wv9v9mj9.js} +1 -1
- package/dist/{chunk-1hzgxk2m.js → chunk-wx3kf6tm.js} +1 -1
- package/dist/{chunk-1tva0f8f.js → chunk-wxpwt67g.js} +1 -1
- package/dist/{chunk-r8rbf28v.js → chunk-x5y9r3f2.js} +1 -1
- package/dist/{chunk-d4etph79.js → chunk-xgj1jw4p.js} +1 -1
- package/dist/{chunk-x7yc7e9v.js → chunk-xt7bsyj7.js} +1 -1
- package/dist/chunk-xzhvnk8r.js +2 -0
- package/dist/chunk-y97yx6ap.js +2 -0
- package/dist/{chunk-7r80apc5.js → chunk-yjkaqxtc.js} +1 -1
- package/dist/{chunk-09jdvqhg.js → chunk-yrj8gad9.js} +2 -2
- package/dist/{chunk-c79nfdyj.js → chunk-zk6ghjnj.js} +1 -1
- package/dist/{chunk-k6ky5et7.js → chunk-zp5z8qwy.js} +1 -1
- package/dist/{chunk-j2dj21ay.js → chunk-zyb5gfr0.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/component-contract-checks.d.ts +18 -15
- package/dist/component-contract.d.ts +6 -14
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/expressions.d.ts +45 -0
- package/dist/expressions.js +60 -11
- package/dist/includes.js +4 -0
- package/dist/loops.js +10 -0
- package/dist/pwa.js +2 -2
- package/dist/server-components.js +2 -1
- package/dist/signals.js +121 -35
- package/dist/slots.js +86 -12
- package/dist/ssg.js +2 -2
- package/dist/stx-virtual-ts.d.ts +205 -95
- package/dist/template-syntax-escape.d.ts +36 -0
- package/dist/template-syntax-escape.js +8 -0
- package/dist/utils.js +9 -2
- package/dist/visual-testing.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-046dp691.js +0 -2
- package/dist/chunk-1brnvyhv.js +0 -2
- package/dist/chunk-3ntf8f5e.js +0 -2
- package/dist/chunk-4tnxnzja.js +0 -2
- package/dist/chunk-63yfp05p.js +0 -2
- package/dist/chunk-7y4eqkv4.js +0 -2
- package/dist/chunk-7ywnkv1f.js +0 -2
- package/dist/chunk-80zj5516.js +0 -2
- package/dist/chunk-8730k51r.js +0 -2
- package/dist/chunk-907qxn09.js +0 -2
- package/dist/chunk-a97tp43x.js +0 -2
- package/dist/chunk-atw841yx.js +0 -2
- package/dist/chunk-c1m1gng4.js +0 -2
- package/dist/chunk-caaenc3w.js +0 -60
- package/dist/chunk-cvphepjb.js +0 -2
- package/dist/chunk-dbfq77qe.js +0 -4
- package/dist/chunk-dnesmvvb.js +0 -2
- package/dist/chunk-eg8ksaft.js +0 -2
- package/dist/chunk-ewsx2qxm.js +0 -2
- package/dist/chunk-farwrdr2.js +0 -3
- package/dist/chunk-fcenm8n1.js +0 -2
- package/dist/chunk-gbz6pfs8.js +0 -2
- package/dist/chunk-gdbkqatx.js +0 -43
- package/dist/chunk-jnahcd4d.js +0 -2
- package/dist/chunk-krpkfndf.js +0 -3
- package/dist/chunk-kxtqbrfr.js +0 -3759
- package/dist/chunk-m1yrakpk.js +0 -2
- package/dist/chunk-n9c975db.js +0 -2
- package/dist/chunk-q2hvne0v.js +0 -2
- package/dist/chunk-qpbk50xd.js +0 -2
- package/dist/chunk-rxdd3k6n.js +0 -2
- package/dist/chunk-ssd10kje.js +0 -2
- package/dist/chunk-szx6pxh3.js +0 -2
- package/dist/chunk-tpmgq2dx.js +0 -12
- package/dist/chunk-tte4m2s9.js +0 -2
- package/dist/chunk-v7gjsb3f.js +0 -2
- package/dist/chunk-vv289x82.js +0 -2
- package/dist/chunk-vx6mxybh.js +0 -2
- package/dist/chunk-x510wr8z.js +0 -2
- package/dist/chunk-x95sxapm.js +0 -2
- package/dist/chunk-xjrhzkx2.js +0 -2
- package/dist/chunk-y1x2ebhv.js +0 -2
- package/dist/chunk-yvec3f1c.js +0 -2
- package/dist/chunk-yzxm75jp.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Aj as M,Ej as E,Fj as P,Gj as O,Hj as I,vj as B,wj as R,xj as H,yj as S,zj as F}from"./chunk-e4g8wz6t.js";import{tv as L}from"./chunk-tjhzxbxa.js";var w=null;function j(){return w}function f(z,W){if(w)w.provides.set(z,W);else V.set(z,W)}function k(z,W){let Q=w;while(Q){if(Q.provides.has(z))return Q.provides.get(z);Q=Q.parent}if(V.has(z))return V.get(z);return W}var V=new Map;function v(z,W){V.set(z,W)}function U(z){let W=w,Q=W?.el,Z=Array.isArray(z)?z:z&&typeof z==="object"?Object.keys(z):[];if(Q&&Z.length>0){let $=Q.__stx_component_emits||=Object.create(null);for(let Y of Z)$[Y]=!0}let _=($,...Y)=>{if(typeof document>"u")return;if(Q){let X=Q.__stx_component_emits||=Object.create(null);X[$]=!0,Q.dispatchEvent(new CustomEvent($,{detail:Y.length===1?Y[0]:Y,bubbles:!0,cancelable:!0}))}};if(W)W.emit=_;return _}function g(z){if(w)w.exposed=z}function m(z){let W=Promise.resolve();return z?W.then(z):W}function y(z){if(w)w.errorCapturedHooks.push(z)}function h(z,W,Q){let Z=W?.parent;while(Z){for(let _ of Z.errorCapturedHooks)if(_(z,W,Q)===!1)return;Z=Z.parent}}function p(){return w?.slots??{}}function u(){return w?.slots??{}}function l(){return w?.attrs??{}}function d(z){let W=z.__provides?new Map(Object.entries(z.__provides)):new Map;return{...z,__provides:W,__provide(Q,Z){W.set(Q,Z)},__inject(Q,Z){if(W.has(Q))return W.get(Q);if(z.__provides){let _=z.__provides instanceof Map?z.__provides:new Map(Object.entries(z.__provides));if(_.has(Q))return _.get(Q)}return Z}}}function i(){return`
|
|
3
3
|
// STX Composition API Runtime
|
|
4
4
|
(function() {
|
|
5
5
|
const _provides = new Map();
|
|
@@ -4066,24 +4066,23 @@ catch (e) {
|
|
|
4066
4066
|
// Helper to hide empty state
|
|
4067
4067
|
const hideEmpty = () => {
|
|
4068
4068
|
if (emptyElement) {
|
|
4069
|
-
|
|
4069
|
+
// A string @empty renders a text node, which has no subtree to dispose.
|
|
4070
|
+
if (emptyElement.nodeType === 1) disposeSubtreeEffects(emptyElement);
|
|
4070
4071
|
emptyElement.remove();
|
|
4071
4072
|
emptyElement = null;
|
|
4072
4073
|
}
|
|
4073
4074
|
};
|
|
4074
4075
|
|
|
4075
|
-
// Map of key \u2192 item signal. When a keyed item is reused and its data
|
|
4076
|
-
// changes, we update the signal \u2014 all bindings (:text, :if, :class)
|
|
4077
|
-
// that track it automatically re-evaluate.
|
|
4078
|
-
const itemSignalMap = new Map();
|
|
4079
|
-
|
|
4080
4076
|
// Helper: create DOM element(s) for a single list item.
|
|
4081
|
-
// The item is wrapped in a signal so bindings track it reactively.
|
|
4077
|
+
// The item is wrapped in a signal so bindings track it reactively. The pair
|
|
4078
|
+
// rides on the returned group, so reuse always reaches the signals the
|
|
4079
|
+
// bindings of THAT row actually read. A Map from key to signals could not:
|
|
4080
|
+
// two rows sharing a key overwrote each other in it, and the row that
|
|
4081
|
+
// reused the surviving entry was then bound to a signal nothing updated.
|
|
4082
4082
|
const createItemElements = (item, index, key) => {
|
|
4083
4083
|
const itemSignal = state(item);
|
|
4084
4084
|
itemSignal._isStxLoopItem = true;
|
|
4085
4085
|
const indexSignal = state(index);
|
|
4086
|
-
if (key) itemSignalMap.set(key, { item: itemSignal, index: indexSignal });
|
|
4087
4086
|
|
|
4088
4087
|
const itemScope = { ...globalHelpers, ...passedScope, ...(capturedScope || {}) };
|
|
4089
4088
|
itemScope[itemName] = itemSignal;
|
|
@@ -4111,6 +4110,7 @@ catch (e) {
|
|
|
4111
4110
|
});
|
|
4112
4111
|
}
|
|
4113
4112
|
remapForComponentScopes(elements);
|
|
4113
|
+
elements.__stx_signals = { item: itemSignal, index: indexSignal };
|
|
4114
4114
|
return elements;
|
|
4115
4115
|
};
|
|
4116
4116
|
|
|
@@ -4223,10 +4223,16 @@ catch (e) {
|
|
|
4223
4223
|
clearRenderedItems();
|
|
4224
4224
|
if (emptyExpr) {
|
|
4225
4225
|
const emptyContent = evalLazy(emptyExpr);
|
|
4226
|
+
// Held in the same slot the @for-empty template uses, so hideEmpty
|
|
4227
|
+
// takes it away when the list fills and a second empty render
|
|
4228
|
+
// replaces it instead of stacking another one. It used to go into
|
|
4229
|
+
// currentElements, which teardown does not walk -- it walks
|
|
4230
|
+
// currentGroups -- so the text stayed in the document forever: an
|
|
4231
|
+
// empty list that filled read "Nothing herea".
|
|
4232
|
+
hideEmpty();
|
|
4226
4233
|
if (emptyContent && typeof emptyContent === 'string') {
|
|
4227
|
-
|
|
4228
|
-
parent.insertBefore(
|
|
4229
|
-
currentElements.push(textNode);
|
|
4234
|
+
emptyElement = document.createTextNode(emptyContent);
|
|
4235
|
+
parent.insertBefore(emptyElement, placeholder);
|
|
4230
4236
|
}
|
|
4231
4237
|
} else if (emptyTemplate) {
|
|
4232
4238
|
showEmpty();
|
|
@@ -4260,7 +4266,15 @@ catch (e) {
|
|
|
4260
4266
|
// Build new element list, reusing existing DOM nodes by key
|
|
4261
4267
|
const newElements = [];
|
|
4262
4268
|
const newGroups = [];
|
|
4263
|
-
|
|
4269
|
+
// Keys seen in THIS pass, for the duplicate warning only. Reuse is decided
|
|
4270
|
+
// by whether a group under the key is still unconsumed, not by whether the
|
|
4271
|
+
// key has been seen: gating it on the key made every duplicate occurrence
|
|
4272
|
+
// build a NEW group, while the removal pass below skipped the key as used
|
|
4273
|
+
// and left the old ones in the document. The list grew by one row on every
|
|
4274
|
+
// update, without bound, and the first duplicate stayed bound to a signal
|
|
4275
|
+
// the reconciliation never wrote to.
|
|
4276
|
+
const seenKeys = new Set();
|
|
4277
|
+
let warnedDuplicateKey = false;
|
|
4264
4278
|
|
|
4265
4279
|
// Minimal-move reconciliation.
|
|
4266
4280
|
//
|
|
@@ -4287,7 +4301,13 @@ catch (e) {
|
|
|
4287
4301
|
const key = newKeys[i];
|
|
4288
4302
|
const existing = oldKeyMap.get(key);
|
|
4289
4303
|
|
|
4290
|
-
if (
|
|
4304
|
+
if (seenKeys.has(key) && !warnedDuplicateKey) {
|
|
4305
|
+
warnedDuplicateKey = true;
|
|
4306
|
+
console.warn('[STX] :for has more than one item with the key ' + key + '. Rows are matched in order, so give each item a key of its own.');
|
|
4307
|
+
}
|
|
4308
|
+
seenKeys.add(key);
|
|
4309
|
+
|
|
4310
|
+
if (existing && existing.length > 0) {
|
|
4291
4311
|
// Reuse this item's nodes \u2014 move the whole group into position, in
|
|
4292
4312
|
// order, so a multi-node row stays contiguous and correctly ordered.
|
|
4293
4313
|
// A structural directive may intentionally have detached one of the
|
|
@@ -4311,11 +4331,10 @@ catch (e) {
|
|
|
4311
4331
|
}
|
|
4312
4332
|
newElements.push(...group);
|
|
4313
4333
|
newGroups.push(group);
|
|
4314
|
-
usedKeys.add(key);
|
|
4315
4334
|
// Update the item signal so bindings re-evaluate with new data.
|
|
4316
4335
|
// This is the fix for #1669 \u2014 without this, reused elements show
|
|
4317
4336
|
// stale data because the old bindings captured the old item via closure.
|
|
4318
|
-
const signals =
|
|
4337
|
+
const signals = group.__stx_signals;
|
|
4319
4338
|
if (signals) {
|
|
4320
4339
|
signals.item.set(list[i]);
|
|
4321
4340
|
signals.index.set(i);
|
|
@@ -4354,8 +4373,12 @@ catch (e) {
|
|
|
4354
4373
|
// Remove old elements whose keys are no longer in the list.
|
|
4355
4374
|
// Dispose any scopes registered inside removed items before the
|
|
4356
4375
|
// remove() call (#1727).
|
|
4357
|
-
|
|
4358
|
-
|
|
4376
|
+
// Whatever is still in here was not consumed above -- either the key left
|
|
4377
|
+
// the list, or the list now has fewer rows under that key than it did.
|
|
4378
|
+
// The test used to be "this key was never used", which could not see the
|
|
4379
|
+
// second case, so a duplicate key's leftover rows stayed on screen.
|
|
4380
|
+
for (const groups of oldKeyMap.values()) {
|
|
4381
|
+
if (groups.length > 0) {
|
|
4359
4382
|
// In a transition group, run the leave animation and let it remove the
|
|
4360
4383
|
// node; otherwise remove immediately. Scopes are disposed up-front
|
|
4361
4384
|
// either way (their destroy hooks shouldn't wait on a CSS transition).
|
|
@@ -4380,7 +4403,8 @@ catch (e) {
|
|
|
4380
4403
|
removeGroup(group);
|
|
4381
4404
|
}
|
|
4382
4405
|
});
|
|
4383
|
-
|
|
4406
|
+
// The row's signals went with its group, so there is no key-indexed
|
|
4407
|
+
// map left to prune here.
|
|
4384
4408
|
}
|
|
4385
4409
|
}
|
|
4386
4410
|
|
|
@@ -4474,9 +4498,27 @@ catch (e) {
|
|
|
4474
4498
|
// branch rendered blank the moment the markup was well-formed enough to
|
|
4475
4499
|
// survive as a real <template> (the #1784 markup fix). See #1784.
|
|
4476
4500
|
b.isTemplate = b.el.tagName === 'TEMPLATE';
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4501
|
+
// A template branch renders CLONES, re-cloned on every show, and marks
|
|
4502
|
+
// where they end -- the same contract the single-template :if got in
|
|
4503
|
+
// #1955. Its content was cloned once here and that one node set was
|
|
4504
|
+
// toggled in and out, which broke two ways as soon as the branch held a
|
|
4505
|
+
// structural directive: a :for inside it replaces its own source element
|
|
4506
|
+
// with a placeholder comment and renders rows as SIBLINGS, so hiding
|
|
4507
|
+
// removed neither (the rows were never in this list, and the source node
|
|
4508
|
+
// it did hold was already detached, so the parentNode guard skipped it)
|
|
4509
|
+
// and both branches stayed on screen at once. Re-showing then re-inserted
|
|
4510
|
+
// that source element, painting the literal text of its interpolations.
|
|
4511
|
+
// An element branch still owns exactly the node it was bound to: whatever
|
|
4512
|
+
// a directive inside it renders is inside that element.
|
|
4513
|
+
// Snapshot the content BEFORE anything processes it, and clone each show
|
|
4514
|
+
// from the snapshot rather than from the live template. A nested :for
|
|
4515
|
+
// does not leave content pristine -- processing moves its row source out
|
|
4516
|
+
// and the attributes it consumed (x-model, :id) do not come back -- so a
|
|
4517
|
+
// second clone taken from the element would arrive already stripped, with
|
|
4518
|
+
// no binding and no way to acquire one.
|
|
4519
|
+
b.pristine = b.isTemplate ? b.el.content.cloneNode(true) : null;
|
|
4520
|
+
b.nodes = b.isTemplate ? [] : [b.el];
|
|
4521
|
+
b.endMarker = null;
|
|
4480
4522
|
b.el.remove();
|
|
4481
4523
|
b.childrenProcessed = false;
|
|
4482
4524
|
});
|
|
@@ -4560,17 +4602,53 @@ catch (e2) {
|
|
|
4560
4602
|
// components under reactive conditionals (#1737). Permanent disposal is
|
|
4561
4603
|
// still handled by bindFor (item removal) and cleanupContainer (SPA nav).
|
|
4562
4604
|
if (currentIdx !== -1) {
|
|
4563
|
-
chain[currentIdx]
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
//
|
|
4568
|
-
//
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4605
|
+
var gone = chain[currentIdx];
|
|
4606
|
+
gone.el.__stx_chain_active = false;
|
|
4607
|
+
|
|
4608
|
+
if (gone.isTemplate) {
|
|
4609
|
+
// Everything this branch rendered goes, not just the clones it owns:
|
|
4610
|
+
// a nested :for or :if renders siblings of its own that no clone list
|
|
4611
|
+
// contains. The marker bounds the range, so a sibling that belongs to
|
|
4612
|
+
// a later branch or to ordinary markup is never touched.
|
|
4613
|
+
if (gone.endMarker && gone.endMarker.parentNode) {
|
|
4614
|
+
var host = gone.endMarker.parentNode;
|
|
4615
|
+
var doomed = gone.placeholder.nextSibling;
|
|
4616
|
+
while (doomed && doomed !== gone.endMarker) {
|
|
4617
|
+
var nextDoomed = doomed.nextSibling;
|
|
4618
|
+
disposeSubtreeEffects(doomed);
|
|
4619
|
+
host.removeChild(doomed);
|
|
4620
|
+
doomed = nextDoomed;
|
|
4621
|
+
}
|
|
4622
|
+
gone.endMarker.remove();
|
|
4623
|
+
gone.endMarker = null;
|
|
4624
|
+
}
|
|
4625
|
+
gone.nodes.forEach(function (n) {
|
|
4626
|
+
if (!n.parentNode) return;
|
|
4627
|
+
disposeSubtreeEffects(n);
|
|
4628
|
+
n.parentNode.removeChild(n);
|
|
4629
|
+
});
|
|
4630
|
+
// The next show clones afresh and processes again, so these effects
|
|
4631
|
+
// are finished with; leaving them bound only accumulates work (#1954).
|
|
4632
|
+
if (typeof gone.el.__stx_chain_disposers === 'function') {
|
|
4633
|
+
try { gone.el.__stx_chain_disposers(); }
|
|
4634
|
+
catch (e) { /* a disposer of its own is not this branch's problem */ }
|
|
4635
|
+
gone.el.__stx_chain_disposers = null;
|
|
4636
|
+
}
|
|
4637
|
+
gone.nodes = [];
|
|
4638
|
+
gone.childrenProcessed = false;
|
|
4639
|
+
}
|
|
4640
|
+
else {
|
|
4641
|
+
gone.nodes.forEach(function (n) {
|
|
4642
|
+
if (!n.parentNode) return;
|
|
4643
|
+
// Detached nodes are out of reach of a DOM walk, so a row removed
|
|
4644
|
+
// while this branch is hidden could not dispose the effects it was
|
|
4645
|
+
// processed with (#1954). Same registry the single-element :if uses.
|
|
4646
|
+
var host = n.parentNode;
|
|
4647
|
+
if (!host.__stx_detached_if) host.__stx_detached_if = new Set();
|
|
4648
|
+
host.__stx_detached_if.add(n);
|
|
4649
|
+
host.removeChild(n);
|
|
4650
|
+
});
|
|
4651
|
+
}
|
|
4574
4652
|
}
|
|
4575
4653
|
|
|
4576
4654
|
// Insert + process the newly-picked branch.
|
|
@@ -4580,11 +4658,19 @@ catch (e2) {
|
|
|
4580
4658
|
// Insert this branch's node(s) before the placeholder's next sibling.
|
|
4581
4659
|
// The anchor is captured once so the nodes stack in source order.
|
|
4582
4660
|
var anchor = pick.placeholder.nextSibling;
|
|
4661
|
+
var pickHost = pick.placeholder.parentNode;
|
|
4662
|
+
if (pick.isTemplate && pick.nodes.length === 0)
|
|
4663
|
+
pick.nodes = Array.prototype.slice.call(pick.pristine.cloneNode(true).childNodes);
|
|
4583
4664
|
pick.nodes.forEach(function (n) {
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
host.insertBefore(n, anchor);
|
|
4665
|
+
if (pickHost.__stx_detached_if) pickHost.__stx_detached_if.delete(n);
|
|
4666
|
+
pickHost.insertBefore(n, anchor);
|
|
4587
4667
|
});
|
|
4668
|
+
// Bound AFTER the clones, so hiding can remove whatever a structural
|
|
4669
|
+
// directive inside the branch renders as their sibling.
|
|
4670
|
+
if (pick.isTemplate) {
|
|
4671
|
+
if (!pick.endMarker) pick.endMarker = document.createComment('stx-if-chain-end');
|
|
4672
|
+
pickHost.insertBefore(pick.endMarker, anchor);
|
|
4673
|
+
}
|
|
4588
4674
|
pick.el.__stx_shown_at = performance.now();
|
|
4589
4675
|
if (!pick.childrenProcessed) {
|
|
4590
4676
|
pick.childrenProcessed = true;
|
|
@@ -8492,4 +8578,4 @@ catch (e) { console.warn('[stx] destroy callback error:', e); }
|
|
|
8492
8578
|
}
|
|
8493
8579
|
})();
|
|
8494
8580
|
`}var Yz={state:B,derived:R,effect:H,batch:S,onMount:F,onDestroy:M,isSignal:E,isDerived:P,untrack:O,peek:I,generateSignalsRuntime:C,generateSignalsRuntimeDev:x};
|
|
8495
|
-
export{f as
|
|
8581
|
+
export{f as _i,k as $i,v as aj,U as bj,g as cj,m as dj,y as ej,h as fj,p as gj,u as hj,l as ij,d as jj,i as kj,n as lj,D as mj,C as nj,x as oj,Yz as pj};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$p as M,Yl as x}from"./chunk-sy44sx1e.js";import"./chunk-bafd6h7t.js";import"./chunk-tf3b833n.js";import"./chunk-psazw7p1.js";import"./chunk-x5y9r3f2.js";import"./chunk-9kb0qv47.js";import{Ds as B,Fs as P}from"./chunk-nzbdgx7d.js";import"./chunk-jc3t5y1y.js";import"./chunk-rb69qb49.js";import"./chunk-eeg62zy4.js";import"./chunk-pt4xht7s.js";import"./chunk-5sqbd646.js";import"./chunk-akdryjck.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-s9hsxhb5.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
|
|
3
|
+
${A.transformSync(j).trim()}`);for(let $ of I)C.add($)}catch($){console.warn(`[stx] framework composable ${G.basename(q)} could not be bundled:`,$)}}let Y=Q.filter((q)=>!C.has(q)&&!g(H,q));if(Y.length>0)console.warn(`[stx] could not bundle ${Y.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(W.length===0)return K.set(z,""),null;let k=[...C].map((q)=>` try { if (!(${JSON.stringify(q)} in __s)) { __s[${JSON.stringify(q)}] = ${q}; if (!(${JSON.stringify(q)} in window)) window[${JSON.stringify(q)}] = ${q}; } } catch (e) {}`).join(`
|
|
4
|
+
`),w=`<script data-stx-framework-composables>
|
|
5
|
+
;(function(){
|
|
6
|
+
var __s = window.stx = window.stx || {};
|
|
7
|
+
${W.join(`
|
|
8
|
+
|
|
9
|
+
`)}
|
|
10
|
+
${k}
|
|
11
|
+
})();
|
|
12
|
+
</script>`;return K.set(z,w),w}function l(H){V.clear();for(let J of H)V.add(J);D++}export{S as selectComposableFiles,y as referencedFrameworkComposables,p as getFrameworkComposableScript,f as clearFrameworkComposableCache,l as __setRuntimeOwnedForTest};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{vi as a,wi as b,xi as c,yi as d,zi as e}from"./chunk-zk6ghjnj.js";import"./chunk-5ep11kvc.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-5ep11kvc.js";var Y=null,S=[],F=new WeakMap;function I(z){let K=z,B=new Set,G={get value(){if(Y){let H=F.get(G);if(!H)H=new Set,F.set(G,H);H.add(Y)}return K},set value(H){if(!Object.is(K,H)){K=H,B.forEach((J)=>J(H));let L=F.get(G);if(L)L.forEach((J)=>J())}},subscribe(H){return B.add(H),()=>B.delete(H)},peek(){return K}};return G}function W(z){return z!==null&&typeof z==="object"&&"value"in z&&"subscribe"in z&&"peek"in z}function P(z){return W(z)?z.value:z}function j(z){let K={};for(let B in z)if(Object.prototype.hasOwnProperty.call(z,B))K[B]=I(z[B]);return K}function D(z){return I(z)}function U(z){let K=typeof z==="function",B=K?z:z.get,G=K?void 0:z.set,H=K?Object.is:z.equals||Object.is,L,J=!0,Q=new Set,X=new Set,_=()=>{if(J=!0,X.size>0){let N=T.value;X.forEach(($)=>$(N))}};function Z(){Q.clear();let N=Y;Y=_,S.push(_);try{return B()}finally{S.pop(),Y=N}}let T={get value(){if(Y){let N=F.get(T);if(!N)N=new Set,F.set(T,N);N.add(Y)}if(J){let N=Z();if(!H(L,N))L=N;J=!1}return L},set value(N){if(G)G(N);else console.warn("Computed property is readonly")},subscribe(N){return X.add(N),()=>X.delete(N)},peek(){if(J)L=B(),J=!1;return L},invalidate(){J=!0},get dirty(){return J},get deps(){return Q}};return T}function x(z,K,B={}){let{immediate:G=!1,deep:H=!1,flush:L="pre",once:J=!1}=B,Q,X=!0,_=!1,Z=()=>{if(W(z))return H?q(z.value):z.value;return z()},T=()=>{if(!X||_)return;let M=Z();if(Q!==void 0&&Object.is(Q,M)&&!H)return;let A=()=>{if(K(M,Q),Q=H?q(M):M,J)$()};if(L==="sync")A();else if(L==="post")queueMicrotask(A);else Promise.resolve().then(A)},N=null;if(W(z))N=z.subscribe(()=>T());else N=U(z).subscribe(()=>T());if(G)Q=void 0,T();else Q=Z();let $=()=>{if(X=!1,N)N(),N=null};return $.pause=()=>{_=!0},$.resume=()=>{_=!1},$}function E(z,K,B={}){let{immediate:G=!1,once:H=!1}=B,L=z.map((T)=>W(T)?T.value:void 0),J=!0,Q=!1,X=()=>{if(!J||Q)return;let T=z.map((N)=>W(N)?N.value:void 0);if(K(T,L),L=[...T],H)Z()},_=z.map((T)=>{if(W(T))return T.subscribe(()=>X());return()=>{}});if(G)X();let Z=()=>{J=!1,_.forEach((T)=>T())};return Z.pause=()=>{Q=!0},Z.resume=()=>{Q=!1},Z}function y(z,K={}){let{flush:B="pre"}=K,G,H=!0,L=!1,J=()=>{if(!H||L)return;if(G)G();let X=Y;Y=J,S.push(J);try{G=z()}finally{S.pop(),Y=X}};if(B==="sync")J();else if(B==="post")queueMicrotask(J);else Promise.resolve().then(J);let Q=()=>{if(H=!1,G)G()};return Q.pause=()=>{L=!0},Q.resume=()=>{L=!1},Q}function C(z,K={},B){let G=/@computed\s*\(\s*(\w+)\s*,\s*(.+?)\s*\)/gi;return z.replace(G,(H,L,J)=>{try{let X=Function(...Object.keys(K),`return ${J}`)(...Object.values(K));return K[L]=X,`<!-- computed: ${L} = ${X} -->`}catch(Q){return`<!-- computed error: ${L} - ${Q} -->`}})}function R(z,K={},B){let G=/@watch\s*\(\s*(\w+)\s*\)\s*([\s\S]*?)@endwatch/gi;return z.replace(G,(H,L,J)=>{return`
|
|
3
3
|
<script data-watch="${`watch-${Math.random().toString(36).substring(2,9)}`}">
|
|
4
4
|
(function() {
|
|
5
5
|
// Watch implementation for ${L}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
`.repeat(Q.startLine-1):"",U=
|
|
2
|
+
import{ei as s}from"./chunk-jyq43tp9.js";import{Jp as v,Kp as i,Lp as t,Op as e,Pp as HH,Qp as KH,Rp as QH,Sp as YH,Tp as ZH,Xl as a,qr as $H}from"./chunk-sy44sx1e.js";import{lt as h}from"./chunk-jc3t5y1y.js";import{fv as f}from"./chunk-tjhzxbxa.js";import{existsSync as jH,readFileSync as WH}from"fs";import z from"path";function AH(Q,K="",V=""){let L=Q.startLine>1?`
|
|
3
|
+
`.repeat(Q.startLine-1):"",U=t(i(Q.code)),X=Q.kind==="client"||Q.kind==="plain"?HH(K,Q.code):"";return QH(`${L+U}
|
|
4
4
|
${X}
|
|
5
5
|
export {}
|
|
6
6
|
`,V)}function MH(Q){let K=Q.length>0?z.dirname(z.resolve(Q[0])):process.cwd();try{Bun.resolveSync("@stacksjs/stx",K)}catch{return""}return["// Generated \u2014 `stx` is the virtual specifier client-script.ts strips.","declare module 'stx' {"," export * from '@stacksjs/stx'","}"].join(`
|
|
7
7
|
`)}var UH=new Set(["name","status","length","location","history","origin","closed","close","open","focus","blur","print","scroll","scrollTo","scrollBy","stop","top","parent","self","frames","event","external","menubar","toolbar"]);function IH(Q){if(Q.length===0)return"";let K=["// Generated \u2014 the composables the runtime publishes as bare globals."],V=new Set(f),L=[];for(let{file:U,names:X}of Q){let W=JSON.stringify(U.replace(/\\/g,"/").replace(/\.ts$/,""));L.push(` export * from ${W}`);for(let A of X){if(V.has(A)||UH.has(A))continue;V.add(A),K.push(`declare const ${A}: typeof import(${W})[${JSON.stringify(A)}]`)}}return K.push("declare module '@composables' {",...L,"}"),K.join(`
|
|
8
8
|
`)}function r(Q,K,V){return`${Q}.__stx_${K}${V}.ts`}function SH(Q){return Q.replace(/\.__stx_(?:server|client|plain|template)\d+\.ts$/,"")}function LH(){for(let Q of[z.resolve(import.meta.dir,"..","stx.d.ts"),z.resolve(import.meta.dir,"..","..","stx.d.ts")])if(jH(Q))return Q;return null}var NH=/^(.*?)\((\d+),(\d+)\):\s+(error|warning)\s+TS(\d+):\s+(.*)$/;function RH(Q){return Q>=1000&&Q<2000}function EH(Q){let K=z.resolve(Q),V;for(;;){let Z=z.join(K,"tsconfig.json");if(jH(Z)){V=Z;break}let $=z.dirname(K);if($===K)break;K=$}if(!V)return{};let L=(Z)=>{let $="",M=!1,B=!1;for(let j=0;j<Z.length;j++){let q=Z[j];if(M){if($+=q,B)B=!1;else if(q==="\\")B=!0;else if(q==='"')M=!1;continue}if(q==='"'){M=!0,$+=q;continue}if(q==="/"&&Z[j+1]==="/"){while(j<Z.length&&Z[j]!==`
|
|
9
9
|
`)j++;$+=`
|
|
10
|
-
`;continue}if(q==="/"&&Z[j+1]==="*"){j+=2;while(j<Z.length&&!(Z[j]==="*"&&Z[j+1]==="/"))j++;j++;continue}$+=q}return $.replace(/,(\s*[}\]])/g,"$1")},U=new Set,X=V,W,A,R=V;while(X&&!U.has(X)){U.add(X);let Z;try{Z=JSON.parse(L(WH(X,"utf8")))}catch{break}let $=Z?.compilerOptions??{};if(!W&&$.paths&&typeof $.paths==="object")W=$.paths,R=X;if(!A&&typeof $.baseUrl==="string")A=z.resolve(z.dirname(X),$.baseUrl);if(W&&A)break;X=typeof Z?.extends==="string"?z.resolve(z.dirname(X),Z.extends.endsWith(".json")?Z.extends:`${Z.extends}.json`):void 0}if(!W)return{};let y=A??z.dirname(R),O={};for(let[Z,$]of Object.entries(W)){if(!Array.isArray($))continue;O[Z]=$.map((M)=>typeof M==="string"&&!z.isAbsolute(M)?z.resolve(y,M):M)}return{paths:O}}async function DH(Q,K={}){let V=K.client!==!1,L=K.server!==!1,U=K.templates!==!1,X=K.componentsDir??(U?(await
|
|
11
|
-
`);if(V&&I){let J=G.filter((F)=>F.kind!=="server"),_=[...new Set(J.flatMap((F)=>
|
|
10
|
+
`;continue}if(q==="/"&&Z[j+1]==="*"){j+=2;while(j<Z.length&&!(Z[j]==="*"&&Z[j+1]==="/"))j++;j++;continue}$+=q}return $.replace(/,(\s*[}\]])/g,"$1")},U=new Set,X=V,W,A,R=V;while(X&&!U.has(X)){U.add(X);let Z;try{Z=JSON.parse(L(WH(X,"utf8")))}catch{break}let $=Z?.compilerOptions??{};if(!W&&$.paths&&typeof $.paths==="object")W=$.paths,R=X;if(!A&&typeof $.baseUrl==="string")A=z.resolve(z.dirname(X),$.baseUrl);if(W&&A)break;X=typeof Z?.extends==="string"?z.resolve(z.dirname(X),Z.extends.endsWith(".json")?Z.extends:`${Z.extends}.json`):void 0}if(!W)return{};let y=A??z.dirname(R),O={};for(let[Z,$]of Object.entries(W)){if(!Array.isArray($))continue;O[Z]=$.map((M)=>typeof M==="string"&&!z.isAbsolute(M)?z.resolve(y,M):M)}return{paths:O}}async function DH(Q,K={}){let V=K.client!==!1,L=K.server!==!1,U=K.templates!==!1,X=K.componentsDir??(U?(await $H()).componentsDir:void 0),W=new Map,A=new Map,R=[],y=0,O=0,Z=LH();for(let H of Q){let Y=await Bun.file(H).text(),G=v(Y).filter((J)=>{if(J.kind==="server")return L;return V}),I=v(Y).filter((J)=>J.kind==="server").map((J)=>J.code).join(`
|
|
11
|
+
`);if(V&&I){let J=G.filter((F)=>F.kind!=="server"),_=[...new Set(J.flatMap((F)=>KH(I,F.code)))];if(_.length>0)A.set(H,{names:_,line:J[0].startLine,kind:J[0].kind})}let E=z.dirname(z.resolve(H)),N=U?YH(Y,{runtimeGlobals:!Z,originDir:E,filePath:z.resolve(H),componentsDir:X}):null,C=N?[...N.lineMap.values()].filter((J)=>J.expression).length:0;if(G.length===0&&C===0)continue;if(R.push(H),y+=G.length,O+=C,G.forEach((J,_)=>{W.set(r(H,J.kind,_),{source:AH(J,I,E),origin:H,kind:J.kind})}),N&&C>0)W.set(r(H,"template",0),{source:N.text,origin:H,kind:"template",virtual:N})}if(W.size===0)return{diagnostics:[],checkedFiles:R,blockCount:0,expressionCount:0};let $=(K.extraLibs??[]).map((H)=>z.resolve(H));if(Z)$.push(Z);let M=`${h()}/typecheck/__stx_globals.d.ts`,B=["// Generated \u2014 the context serve.ts injects into <script server> blocks.",e(),...Z?[]:["declare const window: any",...f.map((H)=>`declare const ${H}: any`)],["// Generated \u2014 the names stx auto-imports from @stacksjs/browser.",...a.map((H)=>`declare const ${H}: any`)].join(`
|
|
12
12
|
`),MH(Q),IH(await s())].filter(Boolean).join(`
|
|
13
13
|
`),j=`${h()}/typecheck`;await Bun.$`rm -rf ${j}`.quiet().nothrow(),await Bun.$`mkdir -p ${j}`.quiet().nothrow(),await Bun.write(M,B);let q=new Map,zH=0;for(let[H,Y]of W){let G=`${zH++}_${H.replace(/[^\w.-]+/g,"_")}`;await Bun.write(`${j}/${G}`,Y.source),q.set(G,Y)}let JH={target:"ESNext",module:"ESNext",moduleResolution:"bundler",strict:!0,noEmit:!0,skipLibCheck:!0,allowJs:!0,esModuleInterop:!0,resolveJsonModule:!0,lib:["ESNext","DOM","DOM.Iterable"],types:[],...EH(Q.length>0?z.dirname(z.resolve(Q[0])):process.cwd()),...K.compilerOptions??{}},k=async(H,Y)=>{let G=`${j}/tsconfig${Y===1?"":`.${Y}`}.json`;await Bun.write(G,JSON.stringify({compilerOptions:JH,files:H.map((E)=>`${j}/${E}`).concat(M,...$)},null,2));let I=Bun.spawnSync(["bun","x","tsc","-p",G,"--pretty","false"],{stdout:"pipe",stderr:"pipe"});return{output:new TextDecoder().decode(I.stdout)+new TextDecoder().decode(I.stderr),exitCode:I.exitCode??0}},m=await k([...q.keys()],1),b=m.output,S=[],u=m.exitCode,d=0,VH=new Set($.map((H)=>H.split("/").pop())),p=0,P=new Set,l=(H)=>{for(let Y of H.replace(/\n[\t ]+([^\n]*)/g," $1").split(`
|
|
14
|
-
`)){let G=Y.match(NH);if(!G)continue;if(d++,VH.has(G[1].split("/").pop()))p++;let[,I,E,N,C,J,_]=G,F=I.split("/").pop(),w=q.get(F);if(!w)continue;if(RH(Number(J)))P.add(F);let g=Number(E),x=Number(N),o;if(w.virtual){let T
|
|
14
|
+
`)){let G=Y.match(NH);if(!G)continue;if(d++,VH.has(G[1].split("/").pop()))p++;let[,I,E,N,C,J,_]=G,F=I.split("/").pop(),w=q.get(F);if(!w)continue;if(RH(Number(J)))P.add(F);let g=Number(E),x=Number(N),o;if(w.virtual){let T=ZH(w.virtual,g,x);if(!T?.expression)continue;if(Number(J)===2774)continue;g=T.line,x=T.column,o=T.expression.code.trim()}S.push({file:w.origin,line:g,column:x,code:Number(J),message:_,category:C==="error"?"error":"warning",blockKind:w.kind,expression:o})}};l(b);let XH=d,qH=p;if(P.size>0&&P.size<q.size){let H=[...q.keys()].filter((Y)=>!P.has(Y));l((await k(H,2)).output)}if(V)for(let[H,Y]of A){if(Y.names.length===0)continue;S.push({file:H,line:Y.line,column:1,code:0,message:`${Y.names.length===1?"1 value reaches":`${Y.names.length} values reach`} this block on the implicit bridge and ${Y.names.length===1?"is":"are"} untyped: ${Y.names.join(", ")}. Declare them with defineClientPayload({ ${Y.names.join(", ")} }) in the server block to have them checked.`,category:"warning",blockKind:Y.kind})}let c=new Set,D=S.filter((H)=>{let Y=`${H.file}:${H.line}:${H.column}:${H.code}:${H.message}`;if(c.has(Y))return!1;return c.add(Y),!0});D.sort((H,Y)=>H.file.localeCompare(Y.file)||H.line-Y.line||H.column-Y.column);let n=qH>0&&D.length===0,GH=n||u!==0&&XH===0?`${n?"a file passed with --lib has errors of its own, so nothing in your code was checked":`tsc exited ${u} without reporting any diagnostic, so nothing was checked`}. `+"A syntax error in an ambient declaration file does this \u2014 skipLibCheck suppresses "+`SEMANTIC diagnostics only. tsc said:
|
|
15
15
|
${b.trim().split(`
|
|
16
16
|
`).slice(0,12).join(`
|
|
17
17
|
`)||"(no output)"}`:void 0;return{diagnostics:D,checkedFiles:R,blockCount:y,expressionCount:O,failure:GH}}function gH(Q){return Q.map((K)=>{let V=K.blockKind==="template"?`[template: ${K.expression??""}]`:`[${K.blockKind==="plain"?"<script>":`<script ${K.blockKind}>`}]`;return`${K.file}:${K.line}:${K.column} ${K.category} TS${K.code} ${K.message} ${V}`}).join(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ag as ZJ,cg as g,eg as A,kg as n,ng as GJ,qg as WJ,sg as YJ,ug as jJ}from"./chunk-6ym84983.js";import{xg as $J}from"./chunk-57atgbyq.js";import{pl as XJ}from"./chunk-v5d0xj8c.js";import{ko as h}from"./chunk-sy44sx1e.js";import{As as e}from"./chunk-nzbdgx7d.js";import{Bt as QJ,Ft as i,Ht as p}from"./chunk-pt4xht7s.js";import{Cv as KJ,dw as l,hw as VJ}from"./chunk-s9hsxhb5.js";import{rw as DJ}from"./chunk-5ep11kvc.js";import JJ from"fs";import k from"path";var{serve:wJ}=globalThis.Bun;VJ();import y from"zlib";import{promisify as a}from"util";var IJ=a(y.brotliCompress),OJ=a(y.gzip),UJ=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],BJ=["text/event-stream","multipart/x-mixed-replace"],_J=1024;function zJ(K){if(!K)return!1;let J=K.toLowerCase();if(BJ.some((G)=>J.startsWith(G)))return!1;return UJ.some((G)=>J.startsWith(G))}function FJ(K){let J=new Map;for(let G of K.split(",")){let[Z,...W]=G.trim().split(";"),O=Z.trim().toLowerCase();if(!O)continue;let U=1;for(let B of W){let w=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(B);if(!w)continue;let F=Number.parseFloat(w[1]);if(Number.isFinite(F))U=F}J.set(O,U)}return J}function LJ(K){if(!K)return null;let J=FJ(K),G=J.get("*"),Z=(W)=>J.get(W)??G??0;if(Z("br")>0)return"br";if(Z("gzip")>0)return"gzip";return null}async function t(K,J,G={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!zJ(J.headers.get("content-type")))return J;let Z=LJ(K.headers.get("accept-encoding"));if(!Z)return J;let W;try{W=new Uint8Array(await J.arrayBuffer())}catch{return J}let O=()=>new Response(W,{status:J.status,statusText:J.statusText,headers:s(J.headers)});if(W.length<(G.threshold??_J))return O();try{let U=Z==="br"?await IJ(W,{params:{[y.constants.BROTLI_PARAM_QUALITY]:G.quality??5,[y.constants.BROTLI_PARAM_SIZE_HINT]:W.length}}):await OJ(W);if(U.length>=W.length)return O();let B=s(J.headers);return B.set("Content-Encoding",Z),B.set("Content-Length",String(U.length)),new Response(U,{status:J.status,statusText:J.statusText,headers:B})}catch{return O()}}function s(K){let J=new Headers(K),G=J.get("Vary");if(!G)return J.set("Vary","Accept-Encoding"),J;if(!G.split(",").some((W)=>W.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${G}, Accept-Encoding`);return J}class d{now;entries=new e(1000,{maxBytes:33554432,sizeOf:(K)=>K.body.byteLength+JSON.stringify(K.headers).length*2});pending=new Map;generation=0;constructor(K=Date.now){this.now=K}invalidate(K){this.generation++,this.pending.clear();for(let J of Array.from(this.entries.keys()))if(K===void 0||this.entries.get(J)?.path===K)this.entries.delete(J)}async respond(K,J,G){let Z,W=async()=>{let X=Z??await G();return X.headers.set("Cache-Control","private, no-store"),X.headers.set("Vary",A(X.headers.get("Vary")).Vary),X};if(!J||K.method!=="GET"||K.headers.has("Cookie")||K.headers.has("Authorization")||K.headers.has("Range"))return W();let O=new URL(K.url),U=`${O.origin}${O.pathname}${O.search}|${g(K)?"fragment":"document"}`,B=this.entries.get(U),w=(X)=>{let T=new Headers(X.headers);return T.set("Cache-Control","private, no-store"),T.set("Age",String(Math.max(0,Math.floor((this.now()-X.created)/1000)))),new Response(X.body.slice(0),{headers:T})},F=B?(this.now()-B.created)/1000:1/0;if(B&&F<J.maxAge)return w(B);let S=this.generation,q=async()=>{let X=await G();Z=X;let T=(X.headers.get("Vary")??"").toLowerCase().split(",").map((L)=>L.trim()).filter(Boolean);if(X.status!==200||X.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(X.headers.get("Cache-Control")??"")||T.some((L)=>L!=="x-stx-router"&&L!=="accept-encoding"))return null;let M=await X.clone().arrayBuffer();if(M.byteLength>1048576)return null;X.headers.set("Vary",A(X.headers.get("Vary")).Vary);let Q={body:M,headers:Array.from(X.headers.entries()),created:this.now(),path:O.pathname};if(this.generation===S)this.entries.set(U,Q);return Q},H=this.pending.get(U);if(!H){if(this.pending.size>=1000)return W();H=q().finally(()=>{if(this.pending.get(U)===H)this.pending.delete(U)}),this.pending.set(U,H)}if(B&&F<J.maxAge+(J.swr??0))return H.catch(()=>{}),w(B);let x=await H;return x?w(x):W()}}var HJ={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function uJ(K={}){let J=k.resolve(K.outputDir||".output"),G=K.port??3000,Z=GJ(J);if(!Z)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Z.routes.length} routes...`);let W=$J(Z.routeRules),O=new d,U=XJ(J,Z.apiRoutes??[]),B=Bun.file(k.join(J,"server/runtime-config.json")),w=K.runtimeConfig??(await B.exists()?await B.json():void 0),F=w?i(w):void 0,S=new Map,q=new Map,H=new Map,x=new Map;for(let Q of Z.routes)try{let L=k.join(J,Q.compiledPath),Y=JSON.parse(await Bun.file(L).text());if(F)Y.html=p(Y.html,F);S.set(Q.pattern,Y),H.set(Q.pattern,l(Y.html)),x.set(Q.pattern,h(Y.html));let C=k.join(J,Q.fragmentPath);if(await Bun.file(C).exists()){let P=await Bun.file(C).text();q.set(Q.pattern,F?p(P,F):P)}}catch(L){console.warn(`[stx] Failed to load route ${Q.pattern}:`,L)}let X=new Map,T=[];for(let Q of Z.routes)if(Q.hasParams){let{regex:L,params:Y}=KJ(Q.pattern);T.push({regex:L,route:Q,paramNames:Y})}else X.set(Q.pattern,Q);let M=wJ({port:G,async fetch(Q){return t(Q,await QJ(F??i(),async()=>{let Y=new URL(Q.url).pathname;if(K.onRequest){let j=await K.onRequest(Q);if(j)return j}if(K.apiRouter){let j=await K.apiRouter.handleRequest(Q);if(j.status!==404)return j}if(K.apiRoutes?.[Y])return K.apiRoutes[Y](Q);let C=await U(Q);if(C)return C;if((Q.method==="GET"||Q.method==="HEAD")&&Y!=="/"){let j=k.resolve(J,"public"),_;try{_=decodeURIComponent(Y)}catch{_=Y}if(!_.includes("\x00")){let I=k.resolve(j,`.${_}`);if(I===j||I.startsWith(`${j}${k.sep}`))try{if(JJ.existsSync(I)&&JJ.statSync(I).isFile()){let z=k.extname(I).toLowerCase(),E=HJ[z]||"application/octet-stream",v=Y.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(Y);return new Response(Bun.file(I),{headers:{"Content-Type":E,"Cache-Control":v?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let P=g(Q),D=null,o={};if(D=X.get(Y)||null,!D)for(let{regex:j,route:_,paramNames:I}of T){let $=Y.match(j);if($){D=_,I.forEach((z,E)=>{o[z]=$[E+1]});break}}if(!D){let j=X.get("/404")||null;if(j){let _=S.get(j.pattern);if(_)return new Response(_.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}let R=W(Y),r=Object.keys(R).length>0;return O.respond(Q,R.cache,async()=>{let j=S.get(D.pattern);if(P&&Q.method==="GET"&&j&&!j.hasServerScripts&&Object.keys(j.placeholders).length===0){let $=q.get(D.pattern);if($){let z=H.get(D.pattern);return new Response($,{status:j.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...x.has(D.pattern)?{"X-STX-Runtime":x.get(D.pattern)?"true":"false"}:{},...z?{"X-STX-Layout":z.layout,"X-STX-Layout-Group":z.group}:{},...A(),...R.cache?{}:{"Cache-Control":ZJ}}})}}let _=WJ(Q.method),I=S.get(D.pattern);if(!I){let $=X.get("/500")||null;if($){let z=S.get($.pattern);if(z)return new Response(z.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(D.prerendered&&_)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!_&&!I.hasServerScripts&&Object.keys(I.placeholders).length===0)return new Response(I.html,{status:I.status??200,headers:{"Content-Type":"text/html",...A(),"Cache-Control":"public, max-age=60"}});try{let{html:$,boundaries:z,redirect:E,cookies:v,status:m,headers:c}=await jJ(I,{params:o,request:Q,method:Q.method,__stx_strict_hydration:r,__stx_runtime_config:F});if(E)return YJ(E,v,c);if(z&&z.length>0){let{renderStreamingPage:N,streamToResponse:u}=await import("./chunk-96q01emr.js"),b=new Headers({...A(),...c,"Cache-Control":"private, no-store"});for(let f of v??[])b.append("Set-Cookie",f);if(P&&!_){let f=l($);b.set("X-STX-Fragment","true"),b.set("X-STX-Runtime",h($)?"true":"false"),b.set("X-STX-Layout",f.layout),b.set("X-STX-Layout-Group",f.group)}return u(N(P&&!_?n($,Z.routerContainer||"main"):$,z,{timeoutMs:30000}),{status:m??I.status??200,headers:b})}let V=new Headers({"Content-Type":"text/html",...A(),...R.cache?{}:{"Cache-Control":"private, no-store"}});for(let N of v??[])V.append("Set-Cookie",N);for(let[N,u]of Object.entries(c??{}))V.set(N,u);if(V.set("Vary",A(V.get("Vary")).Vary),P&&!_){let N=l($);return V.set("X-STX-Fragment","true"),V.set("X-STX-Runtime",h($)?"true":"false"),V.set("X-STX-Layout",N.layout),V.set("X-STX-Layout-Group",N.group),new Response(n($,Z.routerContainer||"main"),{status:m??I.status??200,headers:V})}return new Response($,{status:m??I.status??200,headers:V})}catch($){if(console.error(`[stx] Hydration error for ${Y}:`,$),r)return new Response("Internal Server Error",{status:500});return new Response(I.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${M.port}`),console.log(`[stx] Serving ${Z.routes.length} routes (${S.size} pre-loaded)`),{port:M.port,stop:()=>{O.invalidate(),M.stop()},invalidate:(Q)=>O.invalidate(Q)}}
|
|
3
3
|
export{zJ as Ve,LJ as We,t as Xe,uJ as Ye};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Mo as a,No as b,Oo as c}from"./chunk-sy44sx1e.js";import"./chunk-bafd6h7t.js";import"./chunk-tf3b833n.js";import"./chunk-psazw7p1.js";import"./chunk-x5y9r3f2.js";import"./chunk-9kb0qv47.js";import"./chunk-nzbdgx7d.js";import"./chunk-jc3t5y1y.js";import"./chunk-rb69qb49.js";import"./chunk-eeg62zy4.js";import"./chunk-pt4xht7s.js";import"./chunk-5sqbd646.js";import"./chunk-akdryjck.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-s9hsxhb5.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ai as a,Bi as b,Ci as c,Di as d,Ei as e,Fi as f,Gi as g}from"./chunk-bgrkxzr7.js";import"./chunk-5ep11kvc.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as $l,$a as bo,$b as mp,$c as mq,$d as mr,A as Lk,Aa as nn,Ab as Ho,Ac as Np,Ad as Nq,Ae as Tr,B as Mk,Ba as on,Bb as Io,Bc as Op,Bd as Oq,Be as Ur,C as Nk,Ca as Bn,Cb as Jo,Cc as Pp,Cd as Pq,Ce as Vr,D as Ok,Da as Cn,Db as Ko,Dc as Qp,Dd as Qq,De as Wr,E as El,Ea as Dn,Eb as Lo,Ec as Rp,Ed as Rq,Ee as Xr,F as Fl,Fa as En,Fb as Mo,Fc as Sp,Fd as Sq,Fe as Yr,G as Gl,Ga as Fn,Gb as No,Gc as Tp,Gd as Tq,Ge as Zr,H as Hl,Ha as Gn,Hb as Oo,Hc as Up,Hd as Uq,He as _r,I as Il,Ia as Kn,Ib as Po,Ic as Vp,Id as Vq,Ie as $r,J as Jl,Ja as Ln,Jb as Qo,Jc as Wp,Jd as Wq,Je as as,K as Kl,Ka as Mn,Kb as Ro,Kc as Xp,Kd as Xq,Ke as bs,L as Ll,La as Nn,Lb as So,Lc as Yp,Ld as Yq,M as Ml,Ma as On,Mb as To,Mc as Zp,Md as Zq,N as Nl,Na as Pn,Nb as _o,Nc as _p,Nd as _q,O as Ol,Oa as Qn,Ob as $o,Oc as $p,Od as $q,P as Pl,Pa as Rn,Pb as ap,Pc as aq,Pd as ar,Q as Ql,Qa as Sn,Qb as bp,Qc as bq,Qd as br,R as Rl,Ra as Tn,Rb as cp,Rc as cq,Rd as cr,S as Sl,Sa as Un,Sb as dp,Sc as dq,Sd as dr,T as Tl,Ta as Vn,Tb as ep,Tc as eq,Td as er,U as Ul,Ua as Wn,Ub as fp,Uc as fq,Ud as fr,V as Vl,Va as Xn,Vb as gp,Vc as gq,Vd as gr,W as Wl,Wa as Yn,Wb as hp,Wc as hq,Wd as hr,X as Xl,Xa as Zn,Xb as ip,Xc as iq,Xd as ir,Y as Yl,Ya as _n,Yb as jp,Yc as jq,Yd as jr,Z as Zl,Za as $n,Zb as kp,Zc as kq,Zd as kr,_ as _l,_a as ao,_b as lp,_c as lq,_d as lr,aa as am,ab as co,ac as np,ad as nq,ae as nr,ba as bm,bb as eo,bc as op,bd as oq,be as ur,ca as cm,cb as fo,cc as pp,cd as pq,ce as vr,da as dm,db as go,dc as qp,dd as qq,de as wr,ea as em,eb as ho,ec as rp,ed as rq,ee as xr,fa as fm,fb as io,fc as sp,fd as sq,fe as yr,ga as gm,gb as jo,gc as tp,gd as tq,ge as zr,ha as hm,hb as ko,hc as up,hd as uq,he as Ar,ia as im,ib as lo,ic as vp,id as vq,ie as Br,ja as jm,jb as mo,jc as wp,jd as wq,je as Cr,ka as km,kb as no,kc as xp,kd as xq,ke as Dr,la as lm,lb as oo,lc as yp,ld as yq,le as Er,ma as mm,mb as po,mc as zp,md as zq,me as Fr,na as nm,nb as so,nc as Ap,nd as Aq,ne as Gr,o as a,oa as om,ob as to,oc as Bp,od as Bq,oe as Hr,p as wk,pa as bn,pb as uo,pc as Cp,pd as Cq,pe as Ir,q as xk,qa as cn,qb as vo,qc as Dp,qd as Dq,qe as Jr,r as yk,ra as dn,rb as xo,rc as Ep,rd as Eq,re as Kr,s as zk,sa as en,sb as yo,sc as Fp,sd as Fq,se as Lr,t as Ak,ta as fn,tb as zo,tc as Gp,td as Gq,te as Mr,u as Bk,ua as gn,ub as Ao,uc as Hp,ud as Hq,ue as Nr,v as Ck,va as hn,vb as Co,vc as Ip,vd as Iq,ve as Or,w as Dk,wa as jn,wb as Do,wc as Jp,wd as Jq,we as Pr,x as Ek,xa as kn,xb as Eo,xc as Kp,xd as Kq,xe as Qr,y as Jk,ya as ln,yb as Fo,yc as Lp,yd as Lq,ye as Rr,z as Kk,za as mn,zb as Go,zc as Mp,zd as Mq,ze as Sr}from"./chunk-1ybanbh4.js";import{Le as Uo,Me as Vo,Ne as Wo,Oe as Xo,Pe as Yo,Qe as Zo}from"./chunk-3nv5h7jd.js";import{Re as qo,Se as ro}from"./chunk-2ver2s2y.js";import{Te as wo}from"./chunk-w52p79xs.js";import{Ue as an}from"./chunk-b9w95df7.js";import{Ve as Hn,We as In,Xe as Jn,Ye as Bo}from"./chunk-3ys2esa2.js";import{$e as Rk,Ze as Pk,_e as Qk,af as Sk,bf as Tk,cf as Uk,df as Vk,ef as Wk,ff as Xk,gf as Yk,hf as Zk,if as _k,jf as $k,kf as al,lf as bl}from"./chunk-ym3r8ktq.js";import{mf as sl,nf as tl,of as ul,pf as vl,qf as wl,rf as xl,sf as yl,tf as zl,uf as Al,vf as Bl,wf as Cl,xf as Dl}from"./chunk-wmgpb6b6.js";import{yf as ql,zf as rl}from"./chunk-xt7bsyj7.js";import{Af as cl,Bf as dl,Cf as el,Df as fl,Ef as gl,Ff as hl,Gf as il,If as jl,Jf as kl,Kf as ll,Lf as ml,Mf as nl,Nf as ol,Qf as pl}from"./chunk-zyb5gfr0.js";import{Rf as Lm,Sf as Mm,Tf as Nm,Uf as Om,Vf as Pm,Wf as $m}from"./chunk-gy9a83n9.js";import{$f as tm,Xf as pm,Yf as qm,Zf as rm,_f as sm,ag as um,bg as vm,cg as wm,dg as xm,eg as ym,fg as zm,gg as Am,hg as Bm,ig as Cm,jg as Dm,kg as Em,lg as Qm,mg as Rm,ng as Sm,og as Tm,pg as Um,qg as Vm,rg as Wm,sg as Xm,tg as Ym,ug as Zm,vg as _m}from"./chunk-6ym84983.js";import{wg as Fm,xg as Gm}from"./chunk-57atgbyq.js";import{Ag as rn,Bg as sn,Cg as tn,Dg as un,Eg as vn,Fg as wn,Gg as xn,Hg as yn,Ig as zn,Jg as An,yg as pn,zg as qn}from"./chunk-8bxtvsgm.js";import{Kg as gi,Lg as hi,Mg as ii,Ng as ji,Og as ki,Pg as li}from"./chunk-vcdt10ke.js";import{Qg as Aj,Rg as Bj,Sg as Cj,Wg as Dj,Xg as Ej,Yg as Fj}from"./chunk-t2h8prxq.js";import{$g as Nj,Zg as Lj,_g as Mj,ah as Oj,bh as Pj,ch as Qj,dh as Rj,eh as Sj,fh as Tj,gh as Uj,hh as Vj}from"./chunk-when7sgs.js";import{ih as qj,jh as rj,kh as sj,lh as tj,mh as uj,oh as vj,ph as wj,qh as xj,rh as yj,sh as zj}from"./chunk-18018jkn.js";import{th as lk,vh as mk}from"./chunk-sqvqwd0p.js";import{Bh,Ch,Dh,Eh,Fh,Gh}from"./chunk-7r9vgzg4.js";import{Ih as Hh,Jh as Ih,Kh as Jh,Lh as Kh,Mh as Lh,Nh as Mh,Oh as Nh,Ph as Oh,Qh as Ph,Rh as Qh,Sh as Rh,Th as Sh,Uh as Th,Vh as Uh}from"./chunk-a959m68j.js";import{Xh as Vh,Yh as Wh,Zh as Xh,_h as Yh}from"./chunk-1vb2rj09.js";import{di as Zh}from"./chunk-g6czgcg4.js";import{gi as ah}from"./chunk-jyq43tp9.js";import{hi as bh}from"./chunk-1z1efvtw.js";import{ii as ch,ji as dh}from"./chunk-vgfd9582.js";import{ki as eh,li as fh,mi as gh,ni as hh,oi as ih,pi as jh}from"./chunk-qsbjtp60.js";import{qi as kh,ri as lh,si as mh,ti as nh,ui as oh}from"./chunk-nf7k53ap.js";import{vi as ph,wi as qh,xi as rh,yi as sh,zi as th}from"./chunk-zk6ghjnj.js";import{Ai as uh,Bi as vh,Ci as wh,Di as xh,Ei as yh,Fi as zh,Gi as Ah}from"./chunk-bgrkxzr7.js";import{Hi as _g,Ii as $g}from"./chunk-bkwg5cgq.js";import"./chunk-7we3xfde.js";import{Mi as Ge,Ni as He,Oi as Ie,Pi as Je,Qi as Ke,Ri as Le,Si as Me,Ti as Ne,Ui as Oe,Vi as Pe,Wi as Qe,Xi as Re,Yi as Se,Zi as Te}from"./chunk-as5j2s4h.js";import{$i as kf,_i as jf,aj as lf,bj as mf,cj as nf,dj as of,ej as pf,fj as qf,gj as rf,hj as sf,ij as tf,jj as uf,kj as vf,lj as wf,mj as xf,nj as yf,oj as zf}from"./chunk-3405q9eb.js";import{Aj as $e,Bj as af,Cj as bf,Dj as cf,Ej as df,Fj as ef,Gj as ff,Hj as gf,Ij as hf,vj as We,wj as Xe,xj as Ye,yj as Ze,zj as _e}from"./chunk-e4g8wz6t.js";import{Jj as Af,Kj as Bf,Lj as Cf,Mj as Df,Nj as Ef,Oj as Ff,Pj as Gf,Qj as Hf,Rj as If,Sj as Jf,Tj as Kf,Uj as Lf,Vj as Mf}from"./chunk-994aga02.js";import{nk as or,ok as pr,pk as qr,qk as rr,rk as sr,sk as tr}from"./chunk-64kky38b.js";import{Ak as Km,tk as Fk,uk as Gk,vk as Hk,wk as Ik,xk as Hm,yk as Im,zk as Jm}from"./chunk-8wqz2s4j.js";import"./chunk-f6sejeg3.js";import"./chunk-j3b8cnss.js";import{ll as Yb,ml as Zb,ql as _b}from"./chunk-v5d0xj8c.js";import{$l as ac,$m as id,$n as Ae,$o as rg,$p as oi,$q as Yj,Al as Fa,Am as Bc,An as Jd,Ao as Of,Ap as Sg,Aq as Yi,Bl as Ga,Bm as Cc,Bn as Kd,Bp as Tg,Bq as Zi,Cl as Ha,Cm as Dc,Cn as Ld,Cp as Ug,Cq as _i,Dl as Ia,Dm as Ec,Dn as Md,Dp as Vg,Dq as $i,El as Ja,Em as Fc,En as Nd,Ep as Wg,Eq as aj,Fl as Ka,Fm as Gc,Fn as Od,Fp as Xg,Fq as bj,Gl as La,Gm as Hc,Gn as Pd,Go as Pf,Gp as Yg,Gq as cj,Hl as Ma,Hm as Rc,Hn as Qd,Hp as Zg,Hq as dj,Il as Na,Im as Sc,In as Rd,Io as Qf,Ip as _h,Iq as ej,Jl as Oa,Jm as Tc,Jn as Sd,Jp as $h,Jq as fj,Kl as ib,Km as Uc,Kn as Td,Ko as Rf,Kq as gj,Ll as jb,Lm as Vc,Ln as ie,Lo as Sf,Lq as hj,Ml as kb,Mm as Wc,Mn as je,Mo as Tf,Mp as ai,Mq as ij,Nl as lb,Nm as Xc,Nn as ke,No as Uf,Nq as jj,Ol as mb,On as le,Oo as Vf,Oq as kj,Pl as nb,Pm as Yc,Pn as me,Po as fg,Pq as lj,Qm as Zc,Qn as ne,Qo as gg,Qq as mj,Rm as _c,Rn as oe,Ro as hg,Rq as nj,Sl as Fb,Sm as $c,Sn as pe,So as ig,Sq as oj,Tl as Gb,Tm as ad,Tn as qe,To as jg,Tq as pj,Ul as Hb,Um as bd,Un as re,Uo as kg,Up as bi,Uq as Gj,Vl as Ib,Vm as cd,Vn as se,Vo as lg,Vp as ci,Vq as Hj,Wl as Jb,Wm as dd,Wn as te,Wo as mg,Wp as di,Wq as Ij,Xl as Nb,Xm as ed,Xn as ue,Xo as ng,Xp as ei,Xq as Jj,Yl as Ob,Ym as fd,Yn as ve,Yo as og,Yp as fi,Yq as Kj,Zl as Pb,Zm as gd,Zo as pg,Zp as mi,Zq as Wj,_l as $b,_m as hd,_n as ze,_o as qg,_p as ni,_q as Xj,am as bc,an as jd,ao as Be,ap as sg,aq as pi,ar as Zj,bm as cc,bn as kd,bo as Ce,bp as tg,bq as qi,br as _j,cm as dc,cn as ld,co as De,cp as ug,cq as ri,cr as $j,dm as ec,dn as md,do as Ee,dp as vg,dq as si,dr as ak,em as fc,en as nd,eo as Fe,ep as wg,eq as ti,er as bk,fm as gc,fn as od,fp as xg,fq as ui,fr as ck,gm as hc,gn as pd,gp as yg,gq as vi,gr as dk,hm as ic,hn as qd,hp as zg,hq as wi,hr as ek,im as jc,in as rd,io as Ue,ip as Ag,iq as xi,ir as fk,jm as kc,jn as sd,jo as Ve,jp as Bg,jq as yi,jr as gk,km as lc,kn as td,kp as Cg,kq as zi,kr as hk,lm as mc,ln as ud,lo as Nf,lp as Dg,lq as Ai,lr as ik,mm as nc,mn as vd,mp as Eg,mq as Bi,mr as jk,nm as oc,nn as wd,np as Fg,nq as Ci,nr as kk,om as pc,on as xd,op as Gg,oq as Mi,or as nk,pm as qc,pn as yd,pp as Hg,pq as Ni,pr as ok,qm as rc,qn as zd,qp as Ig,qq as Oi,qr as pk,rm as sc,rn as Ad,rp as Jg,rq as Pi,rr as qk,sl as xa,sm as tc,sn as Bd,sp as Kg,sq as Qi,sr as rk,tl as ya,tm as uc,tn as Cd,tp as Lg,tq as Ri,tr as sk,ul as za,um as vc,un as Dd,up as Mg,uq as Si,ur as tk,vl as Aa,vm as wc,vn as Ed,vp as Ng,vq as Ti,vr as uk,wl as Ba,wm as xc,wn as Fd,wp as Og,wq as Ui,wr as vk,xl as Ca,xm as yc,xn as Gd,xp as Pg,xq as Vi,yl as Da,ym as zc,yn as Hd,yp as Qg,yq as Wi,zl as Ea,zm as Ac,zn as Id,zp as Rg,zq as Xi}from"./chunk-sy44sx1e.js";import{$r as qa,Ar as P,Br as Q,Cr as R,Dr as S,Er as T,Fr as U,Gr as V,Hr as W,Ir as X,Jr as Y,Kr as Z,Lr as _,Mr as $,Nr as aa,Or as ba,Pr as ca,Qr as da,Rr as ea,Sr as fa,Tr as ia,Ur as ja,Vr as ka,Wr as la,Xr as ma,Yr as na,Zr as oa,_r as pa,as as ra,bs as sa,cs as ta,ds as ua,es as va,fs as wa,xr as M,yr as N,zr as O}from"./chunk-bafd6h7t.js";import{gs as ga,hs as ha}from"./chunk-tf3b833n.js";import{is as Kb,js as Lb,ks as Mb}from"./chunk-psazw7p1.js";import"./chunk-x5y9r3f2.js";import{rs as Di,ss as Ei,ts as Fi,us as Gi,vs as Hi,ws as Ii,xs as Ji,ys as Ki,zs as Li}from"./chunk-9kb0qv47.js";import{Rs as Ic,Ss as Jc,Ts as Kc,Us as Lc,Vs as Mc,Xs as Nc,et as Oc,ft as Pc,gt as Qc}from"./chunk-nzbdgx7d.js";import{ht as Qb,it as Rb,jt as Sb,kt as Tb,lt as Ub,mt as Vb}from"./chunk-jc3t5y1y.js";import{tt as we,vt as xe,yt as ye}from"./chunk-rb69qb49.js";import"./chunk-eeg62zy4.js";import{Dt as Wb,Et as Xb}from"./chunk-pt4xht7s.js";import{It as Wf,Jt as Xf,Kt as Yf,Lt as Zf,Mt as _f,Nt as $f,Ot as ag,Qt as bg,Rt as cg,St as dg,Tt as eg}from"./chunk-5sqbd646.js";import{$t as i,Au as J,Bu as K,Cu as L,Ut as b,Vt as c,Wt as d,Xt as e,Yt as f,Zt as g,_t as h,au as j,bu as k,cu as l,du as m,eu as n,fu as o,gu as p,hu as q,iu as r,ju as s,ku as t,lu as u,mu as v,nu as w,ou as x,pu as y,qu as z,ru as A,su as B,tu as C,uu as D,vu as E,wu as F,xu as G,yu as H,zu as I}from"./chunk-akdryjck.js";import{$u as he,Mu as Ud,Nu as Vd,Ou as Wd,Pu as Xd,Qu as Yd,Ru as Zd,Su as _d,Tu as $d,Uu as ae,Vu as be,Wu as ce,Xu as de,Yu as ee,Zu as fe,_u as ge}from"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import{fv as ob,gv as pb,hv as qb,iv as rb,jv as sb,kv as tb,lv as ub,mv as vb,nv as wb,ov as xb,pv as yb,qv as zb,rv as Ab,sv as Bb,tv as Cb,uv as Db,vv as Eb}from"./chunk-tjhzxbxa.js";import{$v as eb,Av as Qa,Dv as Ra,Iv as Sa,Jv as Ta,Pv as Ua,Qv as Va,Rv as Wa,Sv as Xa,Tv as Ya,Uv as Za,Vv as _a,Wv as $a,Xv as ab,Yv as bb,Zv as cb,_v as db,aw as fb,bw as gb,dw as hb,zv as Pa}from"./chunk-s9hsxhb5.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{Zk as writeNetlifyConfig,Rm as writeManifest,Cl as writeImageManifest,hp as wrapComponentForHMR,Qr as withDefaults,kk as webComponentDirectiveHandler,Yp as watermark,_q as watchViews,Ml as watchMultiple,Nl as watchEffect,Ll as watch,De as warmImagePlaceholders,_l as waitForStore,X as waitForLocale,Vo as virtualPathFor,Zj as videoDirective,G as validators,Ur as validated,te as validateValueEnhanced,bi as validateTemplate,Fm as validateRouteRules,bq as validateParams,ue as validateFormEnhanced,Pq as validateFile,pe as validateFields,oe as validateField,di as validateDirective,Od as validateCspDirectives,sk as validateConfig,cn as validateComponentScripts,Bn as validateComponentProps,Zg as validateClientScript,Yh as v,zc as usesSignalsInScript,ub as usesReactiveRuntime,qi as userComponentFileExists,Eh as useVirtualList,ae as useTitle,Zl as useStoreOrThrow,zp as useStore,Jk as useStorage,rf as useSlots,Lk as useSessionStorage,Wb as useServerRuntimeConfig,Of as useServerData,Zd as useSeoMeta,Xb as useRuntimeConfig,$l as useRouteParams,bm as useRouteParamOrThrow,am as useRouteParam,ae as usePageTitle,hf as useOptimistic,wf as useModel,dm as useMiddlewareValue,cm as useMiddlewareState,Kk as useLocalStorage,ap as useLoadingIndicator,Xd as useHead,Vh as useForm,tf as useAttrs,Rq as uploadFiles,Qq as uploadFile,Wl as updateInstance,ff as untrack,Gi as unregisterDirective,Xl as unmountInstance,Hc as unescapeHtml,Yo as typecheckStxFiles,pi as transpileTypeScript,Dr as translate,Ba as transitionDirective,dc as transformAutoImports,vn as toUsers,un as toUser,Hp as thumbnail,Iq as thumbHashToRGBA,Jq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Af as templateCache,ed as syncRecordedResponse,ep as stxClientHelpers,$f as structuredDataDirective,Gr as stripLocalePrefix,Cm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,go as stringToStream,Cd as strictCspPreset,Oe as streamingSuspenseDirective,Se as streamToResponse,Me as streamTemplateSimple,Ge as streamTemplate,Ek as stopHmrServer,rn as stopBroadcasting,Tb as stateDirName,Ub as stateDir,We as state,Tg as startsDocument,Bo as startProductionServer,wo as startInteractive,qn as startBroadcasting,Ir as stampLocaleLayoutGroup,Ia as staggerDirective,$p as srcsetUrls,Ja as springDirective,ld as splitByPipe,ym as spaNavVaryHeaders,Wo as sourcePathFor,gq as smartBatchSign,si as slotContentHasExpressions,eq as signUrl,ni as shouldTranspileTypeScript,Bk as shouldReloadOnChange,jq as shouldRefreshSignature,Ck as shouldIgnoreFile,wh as shouldCacheComponent,Lp as sharpen,Xr as shape,Sb as setStateDir,hm as setRouteParams,im as setMiddlewareState,Ce as setImagePlaceholder,lf as setGlobalProvide,b as setErrorLocale,El as setCurrentInstance,Nj as setCachedVideoResult,Cj as setCachedImageResult,wj as setCached,_r as serveStxFile,as as serveMultipleStxFiles,wk as serveMarkdownFile,Mo as serveFile,bs as serveApp,Lo as serve,kp as serializeState,Tm as serializeSetCookie,Np as sepia,_d as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,bk as scopeHTML,ak as scopeCSS,cg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Rp as saturation,cq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,ng as runPreProcessingMiddleware,og as runPostProcessingMiddleware,Wm as runPageAction,af as runMountCallbacks,gb as runMiddleware,Ul as runHooks,wr as runDoctor,bf as runDestroyCallbacks,rg as runComposers,Sp as rotate,Zh as rewriteImagesWithSiblings,fd as responseBindings,wi as resolveTemplatePath,ha as resolveStxTargets,ok as resolveStxDirectories,Cr as resolveI18n,Fp as resize,fg as resetUnscopedSignalWarnings,Fc as resetRejectedExpressionWarnings,kc as resetPlaceholders,Wd as resetHead,jp as resetHMRHandler,o as resetErrorConfig,Sr as required,Uf as reportDeferredLoopWarnings,oc as replacePlaceholders,wc as replaceInterpolations,Yq as renderView,Wj as renderVideoComponent,ac as renderVendorStyleTags,fr as renderToString,gr as renderToStream,hr as renderToDOM,Hq as renderThumbhashToCanvas,tr as renderTemplateString,rr as renderTemplate,sr as renderString,Je as renderStreamingPage,ii as renderSlot,mh as renderSSRSuspense,rq as renderProtectedVideo,qq as renderProtectedImg,dq as renderMediaUpload,qr as renderMarkdownView,Jm as renderLayoutTypes,Gj as renderImgComponent,sl as renderImageComponent,ce as renderHtmlAttrs,be as renderHead,$q as renderEmail,ui as renderComponentWithSlot,de as renderBodyAttrs,up as render,Ed as relaxedCspPreset,ne as registerValidationRule,Qe as registerStreamingDirectives,Bp as registerStoresClient,fm as registerStore,ag as registerSeoDirectives,_a as registerMiddleware,sc as registerFilters,rc as registerFilter,d as registerErrorMessages,se as registerEnhancedValidationRule,Di as registerDirective,Nd as registerCspDirectives,En as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,ec as referencesName,Il as ref,oo as redirect,ad as recordResponseStatus,bd as recordResponseHeader,Vb as rebaseOntoStateDir,cd as readResponseStatus,dd as readResponseHeaders,uk as readMarkdownFile,Bf as readFileCached,Jl as reactive,Wp as quality,oq as pruneSignatureCache,zj as pruneCache,jf as provide,pr as protectCodeBlocks,Rr as prop,ug as processVueTemplate,Ch as processVirtualListDirectives,Gh as processVirtualGridDirectives,Vj as processVideo,qe as processValidateDirective,ea as processTranslateDirective,gh as processTransitionDirectives,jh as processTransitionAttributes,ge as processTitleDirective,Uc as processTemplateBindings,ch as processTeleportDirectives,kh as processSuspenseDirectives,Xf as processStructuredData,Ke as processStreamDirectives,gd as processStatusDirective,Th as processStaticDirectives,lg as processStackReplacements,kg as processStackPushDirectives,ji as processSlots,Am as processShell,Fe as processServerBindings,Yf as processSeoDirective,Re as processSectionDirectives,Mc as processScopedStyles,Sc as processReactiveBindings,sq as processProtectedMedia,Mh as processPartialHydrationDirectives,Yg as processOnceDirective,mg as processMiddleware,Wf as processMetaDirectives,he as processMetaDirective,vk as processMarkdownFileDirectives,Bi as processMarkdownDirectives,Vf as processLoops,uh as processKeepAliveDirectives,Xg as processJsonDirective,Fh as processInfiniteListDirectives,jg as processIncludes,Ij as processImgComponents,ul as processImageComponents,hl as processImage,fe as processHeadDirective,je as processForms,le as processFormInputDirectives,Dc as processExpressions,Ib as processEventDirectives,me as processErrorDirective,vg as processDynamicComponents,_h as processDirectives,Li as processDirectiveAttributes,bh as processDeferDirectives,Sd as processCustomDirectives,Kd as processCspDirectives,Yr as processComponentProps,jc as processClientScript,ke as processBasicFormDirectives,ph as processAsyncDirectives,Td as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ye as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,$o as preloadIslandHandlers,Ee as preloadIconCollection,mn as poolStrings,mk as pluginManager,Ae as placeholdersWarmed,fh as performLeave,eh as performEnter,cf as pendingLifecycleCounts,gf as peek,gg as partialsCache,Xj as parseVideoDirectiveOptions,Dp as parseUrl,Kq as parseThumbhashString,rd as parseSwitchBlock,gi as parseSlots,hi as parseSlotElement,wd as parseScriptDeclarations,ik as parseSFCComponent,tq as parseProtectedArgs,Tf as parseLoopBinding,Hj as parseImgComponent,Zi as parseImageUrl,tl as parseImageComponent,Um as parseFormBody,td as parseExpressionWithFilters,Fn as parseDefaults,lo as parseCookies,rm as parseContainerSelector,od as parseConditionalBlock,ud as parseArguments,Ma as parseAnimationShorthand,Tr as optional,nn as optimizeTemplate,zl as optimizeImage,Al as optimizeDirectory,Vr as oneOf,hg as onceStore,Rl as onUpdated,Rc as onUpdate,Tl as onUnmounted,mm as onServer,Pl as onMounted,_e as onMount,Sh as onHydrated,pf as onErrorCaptured,$e as onDestroy,Ah as onDeactivated,lm as onClient,Ql as onBeforeUpdate,Sl as onBeforeUnmount,Ol as onBeforeMount,zh as onActivated,Dq as observeElement,po as notFound,Ag as normalizeCriticalHeadOrder,of as nextTick,In as negotiateEncoding,Ua as navigateTo,Vl as mountInstance,Ea as motionDirective,Dd as moderateCspPreset,ln as minifyHtml,_f as metaDirective,Lg as metaDedupKey,Ep as mergeParams,Ng as mergeHtmlAttrs,Yd as mergeHeadConfigs,Jc as mergeCssConfig,Hd as mergeCspDirectives,Ra as matchRoute,Ci as markdownDirectiveHandler,tk as markdownCache,ga as looksLikeGlob,Fr as localizePath,U as loadTranslationLazy,_ as loadTranslation,pk as loadStxConfig,db as loadMiddlewareFromDirectory,Sm as loadManifest,zq as loadElement,sn as loadChannels,Mr as lintStxStrict,Bq as lazyLoadAll,Aq as lazyLoad,Ha as keyframeDirective,dr as jsxs,er as jsxDEV,cr as jsx,no as jsonResponse,Pe as islandDirective,l as isTest,Dm as isSpaNavigation,wm as isSpaNavRequest,hq as isSignatureValid,df as isSignal,fl as isSharpAvailable,_n as isServerEnvironment,jm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,wq as isNativeLazySupported,or as isMarkdownPath,Q as isLoading,R as isLoaded,mi as isJavaScriptScript,xq as isIntersectionObserverSupported,nl as isImageFile,gl as isImageBackendAvailable,aa as isICUFormat,Rh as isHydrated,ri as isHydrateTrigger,_c as isHttpStatus,Zn as isEdgeEnvironment,Nr as isDirectiveKind,k as isDevelopment,ef as isDerived,Ak as isCssOnlyChange,Hn as isCompressible,km as isClient,rh as isAsyncComponent,Vm as isActionableMethod,Op as invert,Df as invalidateFileCacheByDir,Cf as invalidateFileCache,Cc as interpolateScriptsInTemplate,Ac as interpolateScriptExpressions,Bc as interpolateScriptAttributes,x as inlineError,Br as injectThemeBootstrap,Zf as injectSeoTags,yr as injectSeo,Nf as injectRouterScript,zk as injectHotReload,kb as injectHeatmap,Qc as injectCss,Id as injectCspMetaTag,Vg as injectConfigHeadTags,zg as injectColorModeBootScript,Pg as injectCloakStyle,Gg as injectBuildId,cc as injectBrowserCoreAutoImports,Wc as injectAnalytics,kf as inject,em as initStoreRegistry,al as initNetlify,bp as initLoadingIndicator,yq as initLazyLoading,vo as initFile,Gq as initBlurUp,Mq as initAllBlurUp,Kj as imgDirective,xl as imageDirective,Zm as hydrateTemplateStream,Ym as hydrateTemplate,_o as hydrateIslands,Oh as hydrateIsland,_m as hydrateFragment,Ph as hydrateByStrategy,Qh as hydrateAll,rp as hydrate,Ko as htmlResponse,Rg as hoistLeadingHeadTags,Bg as hoistColorModeBootScript,lb as heatmapDirective,sj as hashString,Mf as hashFilePath,qj as hashFile,rj as hashBuffer,tg as hasVueTemplateSyntax,Sf as hasVariables,wp as hasStore,pc as hasPlaceholders,_k as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Ug as hasDocumentShell,ei as hasDirectives,ma as hasDOMSupport,ql as handleImageRequest,qf as handleError,lr as h,ml as groupVariantsByFormat,Mp as grayscale,Do as gitHash,en as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Vk as getTotalSize,iq as getTimeUntilExpiry,_g as getStoreScript,xp as getStoreNames,vp as getStore,Ok as getStorageSize,Nk as getStorageKeys,xi as getSourceLineInfo,oi as getSharedTranspiler,Hf as getServeClientAsset,la as getScreenReaderOnlyStyle,ck as getScopeAttribute,Ve as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,ci as getPositionInfo,mc as getPlaceholderRegistry,pj as getPlaceholderCacheStats,Vd as getPageMeta,yd as getNonce,ol as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ze as getImagePlaceholder,il as getImageMetadata,we as getImageDelivery,qp as getHydrationRuntime,gm as getHydratedStoreState,Dk as getHmrServer,Ud as getHead,ip as getHMRHandler,bj as getFormatExtension,uj as getFileMtime,ll as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Fi as getDirectives,Ei as getDirective,Fl as getCurrentInstance,Nc as getCssServeAsset,Gd as getCspPreset,Pd as getCspHeaderName,Ai as getComponentCacheStats,Mj as getCachedVideoResult,mq as getCachedSignature,Ff as getCachedSignalsRuntime,Gf as getCachedRouterScript,nj as getCachedPlaceholder,Bj as getCachedImageResult,vj as getCached,yj as getCacheStats,Eg as getBuildId,pn as getBroadcastServer,aj as getBestVariant,tc as getAllFilters,Qi as generateWidthSrcset,Dh as generateVirtualListCSS,Tq as generateVideoPreview,ve as generateValidationScript,Uq as generateUploadRuntime,fn as generateTreeShakenBundle,ih as generateTransitionRuntime,hh as generateTransitionCSS,Qj as generateThumbnails,gj as generateThumbhashPlaceholder,Rn as generateTemplatesDocs,oh as generateSuspenseRuntime,nh as generateSuspenseCSS,lp as generateStateScript,_i as generateSrcsetData,Fj as generateSrcset,jl as generateSrcSet,Rj as generateSpriteSheet,ar as generateSpaShell,$i as generateSourceTags,Wi as generateSizesFromBreakpoints,Vi as generateSizesAttribute,kl as generateSizes,bg as generateSitemapIndex,zr as generateSitemap,vq as generateSimpleMediaPicker,pq as generateSignatureRuntime,zf as generateSignalsRuntimeDev,yf as generateSignalsRuntime,ic as generateServerDataBridge,$j as generateScopeId,jk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,dg as generateRobotsTxt,Ar as generateRobots,Ej as generateResponsiveVariants,fk as generateReactiveWebComponentTS,ek as generateReactiveWebComponent,hk as generateReactiveRuntime,gk as generateReactiveMixin,Pj as generatePoster,mj as generatePlaceholderStyle,lj as generatePlaceholderCSS,fj as generatePlaceholder,Nh as generatePartialHydrationCSS,xd as generateNonce,Wk as generateNetlifyToml,Wq as generateMinifiedMediaRuntime,Vq as generateMediaRuntime,uq as generateMediaManagerEmbed,Qm as generateManifest,dp as generateLoadingIndicatorHtml,Fq as generateLazyLoadRuntime,Km as generateLayoutTypes,ij as generateLQIP,yh as generateKeepAliveRuntime,xh as generateKeepAliveCSS,Uh as generateIslandManifest,Sq as generateImagePreview,Bl as generateImageManifest,pp as generateHydrationScript,Te as generateHydrationRuntime,sp as generateHydrationCSS,Hh as generateHydrationBootstrap,yk as generateHotReloadScript,jb as generateHeatmapScript,gp as generateHMRClientScript,Sj as generateHLSManifest,mp as generateEventBindings,Ui as generateDprSrcsetWithVariableQuality,Ti as generateDprSrcset,Sg as generateDocumentShell,Wn as generateDocs,Sn as generateDirectivesDocs,Ki as generateDirectiveRuntime,eg as generateDefaultRobotsTxt,Tj as generateDASHManifest,Pc as generateCss,Bd as generateCspMetaTag,Ad as generateCspHeader,vf as generateCompositionRuntime,Qn as generateComponentsDocs,Ih as generateComponentManifest,On as generateComponentDoc,kj as generateColorPlaceholder,yg as generateColorModeBootScript,Yl as generateClientRuntime,tj as generateCacheKey,gc as generateBrowserAutoImportDestructuring,Nq as generateBlurUpRuntime,Oq as generateBlurUpCSS,Tc as generateBindingsRuntime,Ri as generateAutoWidthSrcset,fc as generateAutoImportDestructuring,th as generateAsyncComponentRuntime,sh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Vc as generateAnalyticsScript,Zo as formatTypecheckDiagnostics,To as formatTypeErrors,so as formatStxContent,Uk as formatSize,Ta as formatRoutes,to as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,xr as formatDoctorReport,Tn as formatDocsAsMarkdown,Vn as formatDocsAsJson,Un as formatDocsAsHtml,Vp as format,kn as foldConstants,Up as flipVertical,Tp as flipHorizontal,Lm as fingerprint,Xo as findRuntimeTypeDeclarations,vr as findPantryPackage,vc as findMustacheEnd,nd as findMatchingEndTag,jd as findMatchingDelimiter,Kb as findInterpolationEnd,pd as findIfBlocks,sd as findExpressions,Sa as findErrorPage,Kc as findDuplicateScopedStyleRanges,qd as findDirectiveBlocks,gn as findDeadCode,gn as findDeadBranches,sm as findContainerRegion,Pn as findComponentFiles,$r as findCommonDir,Tk as filterRequiredFiles,vi as fileExists,Pf as extractVariables,ai as extractTemplateExpressions,Le as extractStreamBoundaries,np as extractState,ki as extractSlotContent,Rf as extractScriptFromTemplate,$h as extractScriptBlocks,nc as extractPlaceholders,md as extractParenthesizedExpression,$c as extractPageResponseStatus,hb as extractLayoutMetadata,jj as extractDominantColor,vd as extractDirectiveParams,fi as extractDirectiveNames,Em as extractContainerContent,Mn as extractComponentProps,Jh as extractComponentName,Nn as extractComponentDescription,Oc as extractClassNames,hc as extractBridgeData,Kh as extractBoundProps,kd as extractBalancedExpression,$b as extractAndStripCssImports,dk as extractAndScopeStyles,Hb as extractAndProcessEvents,Hk as externalizeSharedAssets,Ik as externalizeRepeatedAssets,Gk as externalizeHtml,Gc as evaluateExpression,jn as evaluateConstant,hd as evaluateAuthExpression,yc as escapeHtmlValue,xc as escapeHtml,C as errorRecovery,E as errorLogger,dh as ensureTeleportTargets,Wg as ensureDocumentShell,re as enhancedValidationRules,Kn as enableDevTools,hn as eliminateDeadCode,Ye as effect,aq as dprUrls,Xn as docsCommand,Yb as discoverServerApi,Im as discoverLayoutNames,Eq as disconnectObserver,Ln as disableDevTools,F as devHelpers,zm as detectShell,Yn as detectRuntime,Xk as detectProjectConfig,cj as detectFormat,bn as detectBuildMode,Xe as derived,$k as deploy,rk as defineStxConfig,Ap as defineStore,sf as defineSlots,Lr as defineSiteConfig,Pr as definePropsWithValidation,Or as defineProps,lk as definePlugin,$d as definePageMeta,Wa as defineMiddleware,Wh as defineForm,nf as defineExpose,mf as defineEmits,Hi as defineDirective,nr as defineCustomElement,Ao as defineConfig,Ii as defineClientDirective,qh as defineAsyncComponent,Co as defineApiHandler,Xq as defaultMediaConfig,Dl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,ie as defaultFormClasses,qc as defaultFilters,Rd as defaultCspConfig,nk as defaultConfig,Zr as default,Ic as deepMergeThemes,Lc as dedupeScopedStyles,vm as decodeTitleEntities,hj as decodeThumbhash,Md as cspNonceDirective,Ld as cspDirective,Lq as crossfadeTransition,Gp as crop,Bh as createVirtualList,Yj as createVideoDirective,jo as createVercelHandler,Qo as createTypeChecker,fa as createTranslateFilter,fo as createTextEncoderStream,mr as createStxApp,eo as createStreamingResponse,Ne as createStreamRenderer,yp as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,Hl as createScope,lh as createSSRSuspense,Ue as createRouter,Gm as createRouteRuleResolver,eb as createRouteLocation,Oo as createRoute,Il as createRef,Jl as createReactive,uf as createProvideContext,Fo as createProject,zo as createProductionBuild,lc as createPlaceholder,on as createOptimizedBuild,ko as createNetlifyHandler,Pk as createNetlifyClient,fb as createMiddlewareContext,No as createMiddleware,Cq as createLazyObserver,vh as createKeepAliveCache,ao as createKVNamespace,Lh as createIslandRegistry,Jj as createImgDirective,yl as createImagePlugin,rl as createImageHandler,wl as createImageDirective,nb as createHeatmapAggregator,Sk as createFileManifest,$n as createEnvAccessor,z as createEnhancedError,co as createEdgeHandler,bo as createEdgeCache,yi as createDetailedErrorMessage,io as createDenoHandler,Yk as createDefaultNetlifyConfig,Qd as createCspHeaders,mo as createCookie,Kl as createComputed,Gl as createComponentInstance,ho as createCloudflareHandler,Ya as createClientCookieManager,Ji as createBuiltinDirectives,mr as createApp,Ka as createAnimationTimeline,Jp as cover,Qf as convertToCommonJS,Qp as contrast,Ip as contain,y as consoleError,m as configureErrorHandling,qk as config,Kl as computed,Jn as compressResponse,qg as composerPattern,pg as composer,Bm as composeShellWithPage,Dn as componentDirective,ti as componentClientSignalNames,Pm as compileTemplate,a as collectRepeatedFlag,Rk as collectDeployFiles,Qg as cloakStyleFragment,Oj as clearVideoCache,N as clearTranslationCache,$g as clearStoreCache,Mk as clearStorage,nq as clearSignatureCache,xf as clearServerData,oj as clearPlaceholderCache,ig as clearOnceStore,zd as clearNonce,bb as clearMiddleware,Be as clearImagePlaceholders,xe as clearImageDeliveryCatalog,vl as clearImageCache,e as clearErrorMessages,If as clearDevCaches,uc as clearCustomFilters,sg as clearComposers,ah as clearComposableCache,zi as clearComponentCache,xj as clearCache,Db as clearBlankCache,cp as cleanupLoadingIndicator,pm as classifyScript,qm as classifyAllScripts,Ro as checkTemplateFile,So as checkTemplate,Kf as checkCache,kq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,yn as channel,ro as captureScreenshots,qo as captureScreenshot,Z as cancelPendingLoads,Qk as calculateSha1,Si as calculateOptimalWidths,Lf as cacheTemplate,Jf as cacheEngineFingerprint,_j as buildWebComponents,Uo as buildVirtualSource,Zq as buildViews,Cp as buildUrl,He as buildSuspenseResolveScript,Kr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Mm as buildRuntimeAsset,Nm as buildRouterAsset,Jr as buildLangPickerScript,Yi as buildImageUrl,Hg as buildIdFragment,Mg as buildHtmlAttrs,$m as buildForProduction,Gn as buildComponentLibrary,lq as buildAuthParams,an as buildApp,Hr as buildAlternateLinks,yo as build,wn as broadcastPrivate,xn as broadcastPresence,tn as broadcast,Pp as brightness,Mb as bracketDepths,Kp as blur,Eb as blankInertHtmlRegions,fq as batchSignUrls,Ze as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Xp as auto,ja as attributeValue,Om as assetTags,Fb as asInvocableStatement,Wr as arrayOf,Er as applyTranslations,Dj as applyTransformations,li as applySlots,Cn as applyPropDefaults,_p as applyPreset,Og as applyHtmlAttrs,ee as applyHead,Ec as applyFilters,xm as appendVary,Fd as apiCspPreset,Da as animationGroupDirective,Uj as analyzeVideo,dn as analyzeUsage,nm as analyzeTemplate,om as analyzeProject,dn as analyzeDirectiveUsage,Xc as analyticsDirective,Io as addStore,Ho as addPage,Jd as addNonceToInlineContent,Jo as addLayout,Go as addComponent,Xm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Ef as __setSignalsGeneratorsForTest,Fg as __setBuildIdForTest,Lj as VideoProcessorCache,Xh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,id as Tokenizer,Po as TemplateTypeChecker,uo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,ir as Show,Ie as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,tm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Yc as RESPONSE_STATUS_KEY,Zc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,xo as ProductionBuild,kr as Portal,Eo as PROJECT_TEMPLATES,Zp as PRESETS,sb as NON_CLIENT_PRIMITIVES,tp as MemorySessionStore,Pi as MIME_TYPES,Mi as MEDIA_DEFAULT_WIDTHS,Oi as MEDIA_DEFAULT_FORMATS,Hm as LAYOUT_TYPES_FILE,Aj as ImageProcessorCache,pl as ImageProcessingError,op as HydrationRuntime,xk as HotReloadServer,mb as HeatmapAggregator,Kg as HTML_CLASS_MARKER,Jg as HTML_ATTRS_MARKER,br as Fragment,jr as For,um as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Fk as EXTERNALIZED_ASSET_DIR,bl as DeployError,cl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,el as DEFAULT_QUALITY,dj as DEFAULT_PLACEHOLDER_OPTIONS,dl as DEFAULT_FORMATS,Ni as DEFAULT_DPR_VALUES,fp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Xi as COMMON_SIZES,wg as COLOR_MODE_BOOT_MARKER,xg as COLOR_MODE_BOOT_GLOBAL,Ig as CLOAK_STYLE,An as BroadcastServer,zn as Broadcast,Cg as BUILD_ID_META,Dg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,ej as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,ur as $path};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Hi as a,Ii as b}from"./chunk-bkwg5cgq.js";import"./chunk-7we3xfde.js";import"./chunk-j3b8cnss.js";import"./chunk-v5d0xj8c.js";import"./chunk-sy44sx1e.js";import"./chunk-bafd6h7t.js";import"./chunk-tf3b833n.js";import"./chunk-psazw7p1.js";import"./chunk-x5y9r3f2.js";import"./chunk-9kb0qv47.js";import"./chunk-nzbdgx7d.js";import"./chunk-jc3t5y1y.js";import"./chunk-rb69qb49.js";import"./chunk-eeg62zy4.js";import"./chunk-pt4xht7s.js";import"./chunk-5sqbd646.js";import"./chunk-akdryjck.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-s9hsxhb5.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{a as getStoreScript,b as clearStoreCache};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var E=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),N=new Set(["html","head","body","p","li","dt","dd","rt","rp","option","optgroup","thead","tbody","tfoot","tr","td","th","colgroup","caption"]);function X(Q){return Q.replace(/[^\n]/g," ")}function R(Q){let H=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,X).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,X).replace(/<!--[\s\S]*?-->/g,X).replace(/\{\{\{[\s\S]*?\}\}\}/g,X).replace(/\{\{[\s\S]*?\}\}/g,X).replace(/\{!![\s\S]*?!!\}/g,X),F=new Map,J=new Map,Y=/<(\/?)([A-Za-z][\w-]*)\b(?:[^>"']|"[^"]*"|'[^']*')*?(\/?)>/g,z;while((z=Y.exec(H))!==null){let j=z[1]==="/",q=z[2],W=z[3]==="/";if(E.has(q.toLowerCase()))continue;if(W)continue;if(j)J.set(q,(J.get(q)??0)+1);else{let Z=F.get(q);if(Z)Z.count++;else{let B=H.slice(0,z.index).split(`
|
|
3
3
|
`).length;F.set(q,{count:1,firstLine:B})}}}let M=[];for(let j of new Set([...F.keys(),...J.keys()])){if(N.has(j.toLowerCase()))continue;let q=F.get(j)?.count??0,W=J.get(j)??0;if(q!==W)M.push({tag:j,opened:q,closed:W,firstOpenLine:F.get(j)?.firstLine??0})}return M}var $=new Set;function U(Q,H){let F;try{F=R(Q)}catch{return}if(F.length===0)return;let J=`${H}:${Q.length}`;if($.has(J))return;$.add(J);let Y=H?H.split(/[/\\]/).pop()||H:"template";for(let{tag:z,opened:M,closed:j,firstOpenLine:q}of F)if(M>j){let W=q?` (first opened at line ${q})`:"";console.warn(`[stx] ${Y}: <${z}> ${M} opened, ${j} closed \u2014 an unclosed <${z}>${W} may swallow the content that follows it.`)}else console.warn(`[stx] ${Y}: <${z}> ${M} opened, ${j} closed \u2014 ${j-M} stray </${z}>.`)}
|
|
4
|
-
export{R as
|
|
4
|
+
export{R as cv,U as dv};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function E(z){if(!z.startsWith("/")||/[?#\\]/.test(z))throw Error(`Invalid route rule pattern: ${z}`);let w=z==="/"?[]:z.slice(1).split("/");if(w.some((q,j)=>!q||q.includes("*")&&q!=="*"&&q!=="**"||q==="**"&&j!==w.length-1||q.startsWith(":")&&!/^:[\w]+$/.test(q)))throw Error(`Unsupported route rule pattern: ${z}`);return w}function F(z){for(let[w,q]of Object.entries(z)){if(E(w),!q||typeof q!=="object"||Object.keys(q).some((j)=>j!=="rendering"&&j!=="cache"))throw Error(`Unsupported route rule for ${w}`);if(q.rendering!==void 0&&q.rendering!=="prerender"&&q.rendering!=="dynamic")throw Error(`Unsupported rendering mode for ${w}`);if(q.cache!==void 0&&q.cache!==!1){let j=q.cache;if(!j||j.public!==!0||Object.keys(j).some((x)=>!["public","maxAge","swr"].includes(x))||!Number.isFinite(j.maxAge)||j.maxAge<=0||j.swr!==void 0&&(!Number.isFinite(j.swr)||j.swr<0))throw Error(`Route cache for ${w} requires public: true, maxAge > 0 and swr >= 0`);if(q.rendering==="prerender")throw Error(`Prerendered route ${w} cannot revalidate; use dynamic rendering with cache`)}}}function G(z={}){F(z);let w=(j)=>j==="**"?0:j==="*"?1:j.startsWith(":")?2:3,q=Object.entries(z).map(([j,x])=>({pattern:j,parts:E(j),rule:x}));return q.sort((j,x)=>{for(let A=0;A<Math.max(j.parts.length,x.parts.length);A++){let B=(x.parts[A]===void 0?4:w(x.parts[A]))-(j.parts[A]===void 0?4:w(j.parts[A]));if(B)return B}return j.pattern.localeCompare(x.pattern)}),(j)=>{let x=j==="/"?[]:j.replace(/\/$/,"").slice(1).split("/");return q.find(({parts:A})=>A.every((B,D)=>B==="**"||x[D]!==void 0&&(B==="*"||B.startsWith(":")||B===x[D]))&&(A.at(-1)==="**"||A.length===x.length))?.rule??{}}}
|
|
3
|
-
export{F as
|
|
3
|
+
export{F as wg,G as xg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Mh as a,Nh as b,Oh as c,Ph as d,Qh as e,Rh as f,Sh as g,Th as h,Uh as i,Vh as j,Wh as k}from"./chunk-a959m68j.js";import"./chunk-5ep11kvc.js";export{i as processStaticDirectives,b as processPartialHydrationDirectives,h as onHydrated,g as isHydrated,d as hydrateIsland,e as hydrateByStrategy,f as hydrateAll,c as generatePartialHydrationCSS,j as generateIslandManifest,k as default,a as createIslandRegistry};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{defineProperty:e,getOwnPropertyNames:g,getOwnPropertyDescriptor:h}=Object,i=Object.prototype.hasOwnProperty;function j(a){return this[a]}var m=(a)=>{var b=(f??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of g(a))if(!i.call(b,d))e(b,d,{get:j.bind(a,d),enumerable:!(c=h(a,d))||c.enumerable})}return f.set(a,b),b},f;var k=(a)=>a;function l(a,b){this[a]=k.bind(null,b)}var n=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:l.bind(b,c)})};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=import.meta.require;
|
|
3
|
-
export{m as
|
|
3
|
+
export{m as ow,n as pw,o as qw,p as rw};
|