@lepid-labs/weft-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/LICENSE +21 -0
  2. package/build/client/_app/immutable/assets/0.DFcdP1-P.css +1 -0
  3. package/build/client/_app/immutable/assets/0.DFcdP1-P.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.DFcdP1-P.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/2.VXc__Rgu.css +1 -0
  6. package/build/client/_app/immutable/assets/2.VXc__Rgu.css.br +0 -0
  7. package/build/client/_app/immutable/assets/2.VXc__Rgu.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/butterfly-circuit.BAIUhrxg.png +0 -0
  9. package/build/client/_app/immutable/chunks/51eCCErF.js +2 -0
  10. package/build/client/_app/immutable/chunks/51eCCErF.js.br +0 -0
  11. package/build/client/_app/immutable/chunks/51eCCErF.js.gz +0 -0
  12. package/build/client/_app/immutable/chunks/5PIlt6mm.js +1 -0
  13. package/build/client/_app/immutable/chunks/5PIlt6mm.js.br +0 -0
  14. package/build/client/_app/immutable/chunks/5PIlt6mm.js.gz +0 -0
  15. package/build/client/_app/immutable/chunks/6kxKXbQl.js +1 -0
  16. package/build/client/_app/immutable/chunks/6kxKXbQl.js.br +0 -0
  17. package/build/client/_app/immutable/chunks/6kxKXbQl.js.gz +0 -0
  18. package/build/client/_app/immutable/chunks/BRY3vAV3.js +1 -0
  19. package/build/client/_app/immutable/chunks/BRY3vAV3.js.br +0 -0
  20. package/build/client/_app/immutable/chunks/BRY3vAV3.js.gz +0 -0
  21. package/build/client/_app/immutable/chunks/dXqyDnet.js +2 -0
  22. package/build/client/_app/immutable/chunks/dXqyDnet.js.br +0 -0
  23. package/build/client/_app/immutable/chunks/dXqyDnet.js.gz +0 -0
  24. package/build/client/_app/immutable/chunks/g9tllEqr.js +1 -0
  25. package/build/client/_app/immutable/chunks/g9tllEqr.js.br +0 -0
  26. package/build/client/_app/immutable/chunks/g9tllEqr.js.gz +0 -0
  27. package/build/client/_app/immutable/chunks/qHr9c3CM.js +1 -0
  28. package/build/client/_app/immutable/chunks/qHr9c3CM.js.br +0 -0
  29. package/build/client/_app/immutable/chunks/qHr9c3CM.js.gz +0 -0
  30. package/build/client/_app/immutable/chunks/vftzdY0a.js +1 -0
  31. package/build/client/_app/immutable/chunks/vftzdY0a.js.br +0 -0
  32. package/build/client/_app/immutable/chunks/vftzdY0a.js.gz +0 -0
  33. package/build/client/_app/immutable/chunks/wbPk3Yxo.js +81 -0
  34. package/build/client/_app/immutable/chunks/wbPk3Yxo.js.br +0 -0
  35. package/build/client/_app/immutable/chunks/wbPk3Yxo.js.gz +0 -0
  36. package/build/client/_app/immutable/entry/app.eaMOWprc.js +2 -0
  37. package/build/client/_app/immutable/entry/app.eaMOWprc.js.br +0 -0
  38. package/build/client/_app/immutable/entry/app.eaMOWprc.js.gz +0 -0
  39. package/build/client/_app/immutable/entry/start.BX6-TZm2.js +1 -0
  40. package/build/client/_app/immutable/entry/start.BX6-TZm2.js.br +2 -0
  41. package/build/client/_app/immutable/entry/start.BX6-TZm2.js.gz +0 -0
  42. package/build/client/_app/immutable/nodes/0.CjLabw6I.js +1 -0
  43. package/build/client/_app/immutable/nodes/0.CjLabw6I.js.br +0 -0
  44. package/build/client/_app/immutable/nodes/0.CjLabw6I.js.gz +0 -0
  45. package/build/client/_app/immutable/nodes/1.B2xhDWHH.js +1 -0
  46. package/build/client/_app/immutable/nodes/1.B2xhDWHH.js.br +0 -0
  47. package/build/client/_app/immutable/nodes/1.B2xhDWHH.js.gz +0 -0
  48. package/build/client/_app/immutable/nodes/2.CmUiVD25.js +176 -0
  49. package/build/client/_app/immutable/nodes/2.CmUiVD25.js.br +0 -0
  50. package/build/client/_app/immutable/nodes/2.CmUiVD25.js.gz +0 -0
  51. package/build/client/_app/version.json +1 -0
  52. package/build/client/_app/version.json.br +0 -0
  53. package/build/client/_app/version.json.gz +0 -0
  54. package/build/env.js +94 -0
  55. package/build/handler.js +1494 -0
  56. package/build/index.js +345 -0
  57. package/build/server/chunks/0-Cr4I3w-X.js +30 -0
  58. package/build/server/chunks/0-Cr4I3w-X.js.map +1 -0
  59. package/build/server/chunks/1-3G2Fe4PU.js +9 -0
  60. package/build/server/chunks/1-3G2Fe4PU.js.map +1 -0
  61. package/build/server/chunks/2-BmuTRcLd.js +56 -0
  62. package/build/server/chunks/2-BmuTRcLd.js.map +1 -0
  63. package/build/server/chunks/_layout.svelte-HDeYijPT.js +108 -0
  64. package/build/server/chunks/_layout.svelte-HDeYijPT.js.map +1 -0
  65. package/build/server/chunks/_page.svelte-B6INvDUS.js +7773 -0
  66. package/build/server/chunks/_page.svelte-B6INvDUS.js.map +1 -0
  67. package/build/server/chunks/client-ilndeW4S.js +4 -0
  68. package/build/server/chunks/client-ilndeW4S.js.map +1 -0
  69. package/build/server/chunks/error.svelte-C4Md7Co7.js +41 -0
  70. package/build/server/chunks/error.svelte-C4Md7Co7.js.map +1 -0
  71. package/build/server/chunks/index-DQCuoICC.js +3841 -0
  72. package/build/server/chunks/index-DQCuoICC.js.map +1 -0
  73. package/build/server/chunks/index-NcxaM188.js +236 -0
  74. package/build/server/chunks/index-NcxaM188.js.map +1 -0
  75. package/build/server/chunks/index2-qrVlG2tc.js +58 -0
  76. package/build/server/chunks/index2-qrVlG2tc.js.map +1 -0
  77. package/build/server/chunks/manifest-Bai0HKnE.js +14 -0
  78. package/build/server/chunks/manifest-Bai0HKnE.js.map +1 -0
  79. package/build/server/chunks/root-BmWD7d98.js +1197 -0
  80. package/build/server/chunks/root-BmWD7d98.js.map +1 -0
  81. package/build/server/chunks/state.svelte-CJSsgCOL.js +11 -0
  82. package/build/server/chunks/state.svelte-CJSsgCOL.js.map +1 -0
  83. package/build/server/index.js +5625 -0
  84. package/build/server/index.js.map +1 -0
  85. package/build/server/manifest.js +46 -0
  86. package/build/server/manifest.js.map +1 -0
  87. package/build/shims.js +32 -0
  88. package/package.json +58 -0
@@ -0,0 +1,1197 @@
1
+ import { A as render, C as set, L as LEGACY_PROPS, E as get, F as flushSync, G as define_property, I as mutable_source, J as init_operations, K as get_first_child, O as COMMENT_NODE, Q as HYDRATION_START, R as get_next_sibling, T as HYDRATION_ERROR, V as hydration_failed, W as clear_text_content, X as hydration_mismatch, Y as component_root, Z as create_text, _ as array_from, $ as is_passive_event, a0 as set_active_reaction, a1 as set_active_effect, a2 as active_reaction, a3 as active_effect, h as setContext, a4 as BOUNDARY_EFFECT, a5 as block, a6 as branch, a7 as queue_micro_task, a8 as pause_effect, a9 as current_batch, aa as move_effect, ab as defer_effect, ac as set_component_context, ad as Batch, ae as handle_error, af as component_context, ag as internal_set, ah as destroy_effect, ai as invoke_error_boundary, n as derived, aj as effect_tracking, ak as render_effect, al as svelte_boundary_reset_noop, am as svelte_boundary_reset_onerror, an as HYDRATION_END, ao as HYDRATION_START_ELSE, ap as source, aq as untrack, ar as increment, as as HYDRATION_START_FAILED, at as push$1, au as pop$1, av as EFFECT_TRANSPARENT, aw as EFFECT_PRESERVED } from './index-DQCuoICC.js';
2
+
3
+ const text_encoder = new TextEncoder();
4
+ function get_relative_path(from, to) {
5
+ const from_parts = from.split(/[/\\]/);
6
+ const to_parts = to.split(/[/\\]/);
7
+ from_parts.pop();
8
+ while (from_parts[0] === to_parts[0]) {
9
+ from_parts.shift();
10
+ to_parts.shift();
11
+ }
12
+ let i = from_parts.length;
13
+ while (i--) from_parts[i] = "..";
14
+ return from_parts.concat(to_parts).join("/");
15
+ }
16
+ function base64_encode(bytes) {
17
+ if (globalThis.Buffer) {
18
+ return globalThis.Buffer.from(bytes).toString("base64");
19
+ }
20
+ let binary = "";
21
+ for (let i = 0; i < bytes.length; i++) {
22
+ binary += String.fromCharCode(bytes[i]);
23
+ }
24
+ return btoa(binary);
25
+ }
26
+ function base64_decode(encoded) {
27
+ if (globalThis.Buffer) {
28
+ const buffer = globalThis.Buffer.from(encoded, "base64");
29
+ return new Uint8Array(buffer);
30
+ }
31
+ const binary = atob(encoded);
32
+ const bytes = new Uint8Array(binary.length);
33
+ for (let i = 0; i < binary.length; i++) {
34
+ bytes[i] = binary.charCodeAt(i);
35
+ }
36
+ return bytes;
37
+ }
38
+
39
+ // eslint-disable-next-line n/prefer-global/process
40
+ const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
41
+
42
+ /** @import { RequestEvent } from '@sveltejs/kit' */
43
+ /** @import { RequestStore } from 'types' */
44
+ /** @import { AsyncLocalStorage } from 'node:async_hooks' */
45
+
46
+
47
+ /** @type {RequestStore | null} */
48
+ let sync_store = null;
49
+
50
+ /** @type {AsyncLocalStorage<RequestStore | null> | null} */
51
+ let als;
52
+
53
+ import('node:async_hooks')
54
+ .then((hooks) => (als = new hooks.AsyncLocalStorage()))
55
+ .catch(() => {
56
+ // can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
57
+ // this isn't behind `supports` because it's basically just StackBlitz (i.e.
58
+ // in-browser usage) that doesn't support it AFAICT
59
+ });
60
+
61
+ /**
62
+ * @template T
63
+ * @param {RequestStore | null} store
64
+ * @param {() => T} fn
65
+ */
66
+ function with_request_store(store, fn) {
67
+ try {
68
+ sync_store = store;
69
+ return als ? als.run(store, fn) : fn();
70
+ } finally {
71
+ // Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
72
+ // and handle only one request at a time in `src/runtime/server/index.js`.
73
+ if (!IN_WEBCONTAINER) {
74
+ sync_store = null;
75
+ }
76
+ }
77
+ }
78
+
79
+ const internal = new URL("sveltekit-internal://");
80
+ function resolve(base, path) {
81
+ if (path[0] === "/" && path[1] === "/") return path;
82
+ let url = new URL(base, internal);
83
+ url = new URL(path, url);
84
+ return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
85
+ }
86
+ function normalize_path(path, trailing_slash) {
87
+ if (path === "/" || trailing_slash === "ignore") return path;
88
+ if (trailing_slash === "never") {
89
+ return path.endsWith("/") ? path.slice(0, -1) : path;
90
+ } else if (trailing_slash === "always" && !path.endsWith("/")) {
91
+ return path + "/";
92
+ }
93
+ return path;
94
+ }
95
+ function decode_pathname(pathname) {
96
+ return pathname.split("%25").map(decodeURI).join("%25");
97
+ }
98
+ function decode_params(params) {
99
+ for (const key in params) {
100
+ params[key] = decodeURIComponent(params[key]);
101
+ }
102
+ return params;
103
+ }
104
+ function make_trackable(url, callback, search_params_callback, allow_hash = false) {
105
+ const tracked = new URL(url);
106
+ Object.defineProperty(tracked, "searchParams", {
107
+ value: new Proxy(tracked.searchParams, {
108
+ get(obj, key) {
109
+ if (key === "get" || key === "getAll" || key === "has") {
110
+ return (param, ...rest) => {
111
+ search_params_callback(param);
112
+ return obj[key](param, ...rest);
113
+ };
114
+ }
115
+ callback();
116
+ const value = Reflect.get(obj, key);
117
+ return typeof value === "function" ? value.bind(obj) : value;
118
+ }
119
+ }),
120
+ enumerable: true,
121
+ configurable: true
122
+ });
123
+ const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"];
124
+ if (allow_hash) tracked_url_properties.push("hash");
125
+ for (const property of tracked_url_properties) {
126
+ Object.defineProperty(tracked, property, {
127
+ get() {
128
+ callback();
129
+ return url[property];
130
+ },
131
+ enumerable: true,
132
+ configurable: true
133
+ });
134
+ }
135
+ {
136
+ tracked[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
137
+ return inspect(url, opts);
138
+ };
139
+ tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
140
+ return inspect(url.searchParams, opts);
141
+ };
142
+ }
143
+ if (!allow_hash) {
144
+ disable_hash(tracked);
145
+ }
146
+ return tracked;
147
+ }
148
+ function disable_hash(url) {
149
+ allow_nodejs_console_log(url);
150
+ Object.defineProperty(url, "hash", {
151
+ get() {
152
+ throw new Error(
153
+ "Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead"
154
+ );
155
+ }
156
+ });
157
+ }
158
+ function disable_search(url) {
159
+ allow_nodejs_console_log(url);
160
+ for (const property of ["search", "searchParams"]) {
161
+ Object.defineProperty(url, property, {
162
+ get() {
163
+ throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
164
+ }
165
+ });
166
+ }
167
+ }
168
+ function allow_nodejs_console_log(url) {
169
+ {
170
+ url[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
171
+ return inspect(new URL(url), opts);
172
+ };
173
+ }
174
+ }
175
+ function validator(expected) {
176
+ function validate(module, file) {
177
+ if (!module) return;
178
+ for (const key in module) {
179
+ if (key[0] === "_" || expected.has(key)) continue;
180
+ const values = [...expected.values()];
181
+ const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
182
+ throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
183
+ }
184
+ }
185
+ return validate;
186
+ }
187
+ function hint_for_supported_files(key, ext = ".js") {
188
+ const supported_files = [];
189
+ if (valid_layout_exports.has(key)) {
190
+ supported_files.push(`+layout${ext}`);
191
+ }
192
+ if (valid_page_exports.has(key)) {
193
+ supported_files.push(`+page${ext}`);
194
+ }
195
+ if (valid_layout_server_exports.has(key)) {
196
+ supported_files.push(`+layout.server${ext}`);
197
+ }
198
+ if (valid_page_server_exports.has(key)) {
199
+ supported_files.push(`+page.server${ext}`);
200
+ }
201
+ if (valid_server_exports.has(key)) {
202
+ supported_files.push(`+server${ext}`);
203
+ }
204
+ if (supported_files.length > 0) {
205
+ return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
206
+ }
207
+ }
208
+ const valid_layout_exports = /* @__PURE__ */ new Set([
209
+ "load",
210
+ "prerender",
211
+ "csr",
212
+ "ssr",
213
+ "trailingSlash",
214
+ "config"
215
+ ]);
216
+ const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
217
+ const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
218
+ const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
219
+ const valid_server_exports = /* @__PURE__ */ new Set([
220
+ "GET",
221
+ "POST",
222
+ "PATCH",
223
+ "PUT",
224
+ "DELETE",
225
+ "OPTIONS",
226
+ "HEAD",
227
+ "fallback",
228
+ "prerender",
229
+ "trailingSlash",
230
+ "config",
231
+ "entries"
232
+ ]);
233
+ const validate_layout_exports = validator(valid_layout_exports);
234
+ const validate_page_exports = validator(valid_page_exports);
235
+ const validate_layout_server_exports = validator(valid_layout_server_exports);
236
+ const validate_page_server_exports = validator(valid_page_server_exports);
237
+
238
+ let hydrating = false;
239
+ function set_hydrating(value) {
240
+ hydrating = value;
241
+ }
242
+ let hydrate_node;
243
+ function set_hydrate_node(node) {
244
+ if (node === null) {
245
+ hydration_mismatch();
246
+ throw HYDRATION_ERROR;
247
+ }
248
+ return hydrate_node = node;
249
+ }
250
+ function hydrate_next() {
251
+ return set_hydrate_node(get_next_sibling(hydrate_node));
252
+ }
253
+ function next(count = 1) {
254
+ if (hydrating) {
255
+ var i = count;
256
+ var node = hydrate_node;
257
+ while (i--) {
258
+ node = /** @type {TemplateNode} */
259
+ get_next_sibling(node);
260
+ }
261
+ hydrate_node = node;
262
+ }
263
+ }
264
+ function skip_nodes(remove = true) {
265
+ var depth = 0;
266
+ var node = hydrate_node;
267
+ while (true) {
268
+ if (node.nodeType === COMMENT_NODE) {
269
+ var data = (
270
+ /** @type {Comment} */
271
+ node.data
272
+ );
273
+ if (data === HYDRATION_END) {
274
+ if (depth === 0) return node;
275
+ depth -= 1;
276
+ } else if (data === HYDRATION_START || data === HYDRATION_START_ELSE || // "[1", "[2", etc. for if blocks
277
+ data[0] === "[" && !isNaN(Number(data.slice(1)))) {
278
+ depth += 1;
279
+ }
280
+ }
281
+ var next2 = (
282
+ /** @type {TemplateNode} */
283
+ get_next_sibling(node)
284
+ );
285
+ if (remove) node.remove();
286
+ node = next2;
287
+ }
288
+ }
289
+ function createSubscriber(start) {
290
+ let subscribers = 0;
291
+ let version = source(0);
292
+ let stop;
293
+ return () => {
294
+ if (effect_tracking()) {
295
+ get(version);
296
+ render_effect(() => {
297
+ if (subscribers === 0) {
298
+ stop = untrack(() => start(() => increment(version)));
299
+ }
300
+ subscribers += 1;
301
+ return () => {
302
+ queue_micro_task(() => {
303
+ subscribers -= 1;
304
+ if (subscribers === 0) {
305
+ stop?.();
306
+ stop = void 0;
307
+ increment(version);
308
+ }
309
+ });
310
+ };
311
+ });
312
+ }
313
+ };
314
+ }
315
+ var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
316
+ function boundary(node, props, children, transform_error) {
317
+ new Boundary(node, props, children, transform_error);
318
+ }
319
+ class Boundary {
320
+ /** @type {Boundary | null} */
321
+ parent;
322
+ is_pending = false;
323
+ /**
324
+ * API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
325
+ * Inherited from parent boundary, or defaults to identity.
326
+ * @type {(error: unknown) => unknown}
327
+ */
328
+ transform_error;
329
+ /** @type {TemplateNode} */
330
+ #anchor;
331
+ /** @type {TemplateNode | null} */
332
+ #hydrate_open = hydrating ? hydrate_node : null;
333
+ /** @type {BoundaryProps} */
334
+ #props;
335
+ /** @type {((anchor: Node) => void)} */
336
+ #children;
337
+ /** @type {Effect} */
338
+ #effect;
339
+ /** @type {Effect | null} */
340
+ #main_effect = null;
341
+ /** @type {Effect | null} */
342
+ #pending_effect = null;
343
+ /** @type {Effect | null} */
344
+ #failed_effect = null;
345
+ /** @type {DocumentFragment | null} */
346
+ #offscreen_fragment = null;
347
+ #local_pending_count = 0;
348
+ #pending_count = 0;
349
+ #pending_count_update_queued = false;
350
+ /** @type {Set<Effect>} */
351
+ #dirty_effects = /* @__PURE__ */ new Set();
352
+ /** @type {Set<Effect>} */
353
+ #maybe_dirty_effects = /* @__PURE__ */ new Set();
354
+ /**
355
+ * A source containing the number of pending async deriveds/expressions.
356
+ * Only created if `$effect.pending()` is used inside the boundary,
357
+ * otherwise updating the source results in needless `Batch.ensure()`
358
+ * calls followed by no-op flushes
359
+ * @type {Source<number> | null}
360
+ */
361
+ #effect_pending = null;
362
+ #effect_pending_subscriber = createSubscriber(() => {
363
+ this.#effect_pending = source(this.#local_pending_count);
364
+ return () => {
365
+ this.#effect_pending = null;
366
+ };
367
+ });
368
+ /**
369
+ * @param {TemplateNode} node
370
+ * @param {BoundaryProps} props
371
+ * @param {((anchor: Node) => void)} children
372
+ * @param {((error: unknown) => unknown) | undefined} [transform_error]
373
+ */
374
+ constructor(node, props, children, transform_error) {
375
+ this.#anchor = node;
376
+ this.#props = props;
377
+ this.#children = (anchor) => {
378
+ var effect = (
379
+ /** @type {Effect} */
380
+ active_effect
381
+ );
382
+ effect.b = this;
383
+ effect.f |= BOUNDARY_EFFECT;
384
+ children(anchor);
385
+ };
386
+ this.parent = /** @type {Effect} */
387
+ active_effect.b;
388
+ this.transform_error = transform_error ?? this.parent?.transform_error ?? ((e) => e);
389
+ this.#effect = block(() => {
390
+ if (hydrating) {
391
+ const comment = (
392
+ /** @type {Comment} */
393
+ this.#hydrate_open
394
+ );
395
+ hydrate_next();
396
+ const server_rendered_pending = comment.data === HYDRATION_START_ELSE;
397
+ const server_rendered_failed = comment.data.startsWith(HYDRATION_START_FAILED);
398
+ if (server_rendered_failed) {
399
+ const serialized_error = JSON.parse(comment.data.slice(HYDRATION_START_FAILED.length));
400
+ this.#hydrate_failed_content(serialized_error);
401
+ } else if (server_rendered_pending) {
402
+ this.#hydrate_pending_content();
403
+ } else {
404
+ this.#hydrate_resolved_content();
405
+ }
406
+ } else {
407
+ this.#render();
408
+ }
409
+ }, flags);
410
+ if (hydrating) {
411
+ this.#anchor = hydrate_node;
412
+ }
413
+ }
414
+ #hydrate_resolved_content() {
415
+ try {
416
+ this.#main_effect = branch(() => this.#children(this.#anchor));
417
+ } catch (error) {
418
+ this.error(error);
419
+ }
420
+ }
421
+ /**
422
+ * @param {unknown} error The deserialized error from the server's hydration comment
423
+ */
424
+ #hydrate_failed_content(error) {
425
+ const failed = this.#props.failed;
426
+ const { reset, invoke_onerror } = this.#create_reset(error);
427
+ queue_micro_task(invoke_onerror);
428
+ if (!failed) return;
429
+ this.#failed_effect = branch(() => {
430
+ failed(
431
+ this.#anchor,
432
+ () => error,
433
+ () => reset
434
+ );
435
+ });
436
+ }
437
+ /**
438
+ * Creates the `reset` function for a failed boundary, along with a function
439
+ * that invokes `onerror` with it (if provided)
440
+ * @param {unknown} error
441
+ * @returns {{ reset: () => void, invoke_onerror: () => void }}
442
+ */
443
+ #create_reset(error) {
444
+ var did_reset = false;
445
+ var calling_on_error = false;
446
+ const reset = () => {
447
+ if (did_reset) {
448
+ svelte_boundary_reset_noop();
449
+ return;
450
+ }
451
+ did_reset = true;
452
+ if (calling_on_error) {
453
+ svelte_boundary_reset_onerror();
454
+ }
455
+ if (this.#failed_effect !== null) {
456
+ pause_effect(this.#failed_effect, () => {
457
+ this.#failed_effect = null;
458
+ });
459
+ }
460
+ this.#run(() => {
461
+ this.#render();
462
+ });
463
+ };
464
+ const invoke_onerror = () => {
465
+ try {
466
+ calling_on_error = true;
467
+ this.#props.onerror?.(error, reset);
468
+ calling_on_error = false;
469
+ } catch (err) {
470
+ invoke_error_boundary(err, this.#effect && this.#effect.parent);
471
+ }
472
+ };
473
+ return { reset, invoke_onerror };
474
+ }
475
+ #hydrate_pending_content() {
476
+ const pending = this.#props.pending;
477
+ if (!pending) return;
478
+ this.is_pending = true;
479
+ this.#pending_effect = branch(() => pending(this.#anchor));
480
+ queue_micro_task(() => {
481
+ var fragment = this.#offscreen_fragment = document.createDocumentFragment();
482
+ var anchor = create_text();
483
+ fragment.append(anchor);
484
+ this.#main_effect = this.#run(() => {
485
+ return branch(() => this.#children(anchor));
486
+ });
487
+ if (this.#pending_count === 0) {
488
+ this.#anchor.before(fragment);
489
+ this.#offscreen_fragment = null;
490
+ pause_effect(
491
+ /** @type {Effect} */
492
+ this.#pending_effect,
493
+ () => {
494
+ this.#pending_effect = null;
495
+ }
496
+ );
497
+ this.#resolve(
498
+ /** @type {Batch} */
499
+ current_batch
500
+ );
501
+ }
502
+ });
503
+ }
504
+ #render() {
505
+ try {
506
+ this.is_pending = this.has_pending_snippet();
507
+ this.#pending_count = 0;
508
+ this.#local_pending_count = 0;
509
+ this.#main_effect = branch(() => {
510
+ this.#children(this.#anchor);
511
+ });
512
+ if (this.#pending_count > 0) {
513
+ var fragment = this.#offscreen_fragment = document.createDocumentFragment();
514
+ move_effect(this.#main_effect, fragment);
515
+ const pending = (
516
+ /** @type {(anchor: Node) => void} */
517
+ this.#props.pending
518
+ );
519
+ this.#pending_effect = branch(() => pending(this.#anchor));
520
+ } else {
521
+ this.#resolve(
522
+ /** @type {Batch} */
523
+ current_batch
524
+ );
525
+ }
526
+ } catch (error) {
527
+ this.error(error);
528
+ }
529
+ }
530
+ /**
531
+ * @param {Batch} batch
532
+ */
533
+ #resolve(batch) {
534
+ this.is_pending = false;
535
+ batch.transfer_effects(this.#dirty_effects, this.#maybe_dirty_effects);
536
+ }
537
+ /**
538
+ * Defer an effect inside a pending boundary until the boundary resolves
539
+ * @param {Effect} effect
540
+ */
541
+ defer_effect(effect) {
542
+ defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
543
+ }
544
+ /**
545
+ * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
546
+ * @returns {boolean}
547
+ */
548
+ is_rendered() {
549
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
550
+ }
551
+ has_pending_snippet() {
552
+ return !!this.#props.pending;
553
+ }
554
+ /**
555
+ * @template T
556
+ * @param {() => T} fn
557
+ */
558
+ #run(fn) {
559
+ var previous_effect = active_effect;
560
+ var previous_reaction = active_reaction;
561
+ var previous_ctx = component_context;
562
+ set_active_effect(this.#effect);
563
+ set_active_reaction(this.#effect);
564
+ set_component_context(this.#effect.ctx);
565
+ try {
566
+ Batch.ensure();
567
+ return fn();
568
+ } catch (e) {
569
+ handle_error(e);
570
+ return null;
571
+ } finally {
572
+ set_active_effect(previous_effect);
573
+ set_active_reaction(previous_reaction);
574
+ set_component_context(previous_ctx);
575
+ }
576
+ }
577
+ /**
578
+ * Updates the pending count associated with the currently visible pending snippet,
579
+ * if any, such that we can replace the snippet with content once work is done
580
+ * @param {1 | -1} d
581
+ * @param {Batch} batch
582
+ */
583
+ #update_pending_count(d, batch) {
584
+ if (!this.has_pending_snippet()) {
585
+ if (this.parent) {
586
+ this.parent.#update_pending_count(d, batch);
587
+ }
588
+ return;
589
+ }
590
+ this.#pending_count += d;
591
+ if (this.#pending_count === 0) {
592
+ this.#resolve(batch);
593
+ if (this.#pending_effect) {
594
+ pause_effect(this.#pending_effect, () => {
595
+ this.#pending_effect = null;
596
+ });
597
+ }
598
+ if (this.#offscreen_fragment) {
599
+ this.#anchor.before(this.#offscreen_fragment);
600
+ this.#offscreen_fragment = null;
601
+ }
602
+ }
603
+ }
604
+ /**
605
+ * Update the source that powers `$effect.pending()` inside this boundary,
606
+ * and controls when the current `pending` snippet (if any) is removed.
607
+ * Do not call from inside the class
608
+ * @param {1 | -1} d
609
+ * @param {Batch} batch
610
+ */
611
+ update_pending_count(d, batch) {
612
+ this.#update_pending_count(d, batch);
613
+ this.#local_pending_count += d;
614
+ if (!this.#effect_pending || this.#pending_count_update_queued) return;
615
+ this.#pending_count_update_queued = true;
616
+ queue_micro_task(() => {
617
+ this.#pending_count_update_queued = false;
618
+ if (this.#effect_pending) {
619
+ internal_set(this.#effect_pending, this.#local_pending_count);
620
+ }
621
+ });
622
+ }
623
+ get_effect_pending() {
624
+ this.#effect_pending_subscriber();
625
+ return get(
626
+ /** @type {Source<number>} */
627
+ this.#effect_pending
628
+ );
629
+ }
630
+ /** @param {unknown} error */
631
+ error(error) {
632
+ if (!this.#props.onerror && !this.#props.failed) {
633
+ throw error;
634
+ }
635
+ if (current_batch?.is_fork) {
636
+ if (this.#main_effect) current_batch.skip_effect(this.#main_effect);
637
+ if (this.#pending_effect) current_batch.skip_effect(this.#pending_effect);
638
+ if (this.#failed_effect) current_batch.skip_effect(this.#failed_effect);
639
+ current_batch.oncommit(() => {
640
+ this.#handle_error(error);
641
+ });
642
+ } else {
643
+ this.#handle_error(error);
644
+ }
645
+ }
646
+ /**
647
+ * @param {unknown} error
648
+ */
649
+ #handle_error(error) {
650
+ if (this.#main_effect) {
651
+ destroy_effect(this.#main_effect);
652
+ this.#main_effect = null;
653
+ }
654
+ if (this.#pending_effect) {
655
+ destroy_effect(this.#pending_effect);
656
+ this.#pending_effect = null;
657
+ }
658
+ if (this.#failed_effect) {
659
+ destroy_effect(this.#failed_effect);
660
+ this.#failed_effect = null;
661
+ }
662
+ if (hydrating) {
663
+ set_hydrate_node(
664
+ /** @type {TemplateNode} */
665
+ this.#hydrate_open
666
+ );
667
+ next();
668
+ set_hydrate_node(skip_nodes());
669
+ }
670
+ let failed = this.#props.failed;
671
+ const handle_error_result = (transformed_error) => {
672
+ const { reset, invoke_onerror } = this.#create_reset(transformed_error);
673
+ invoke_onerror();
674
+ if (failed) {
675
+ this.#failed_effect = this.#run(() => {
676
+ try {
677
+ return branch(() => {
678
+ var effect = (
679
+ /** @type {Effect} */
680
+ active_effect
681
+ );
682
+ effect.b = this;
683
+ effect.f |= BOUNDARY_EFFECT;
684
+ failed(
685
+ this.#anchor,
686
+ () => transformed_error,
687
+ () => reset
688
+ );
689
+ });
690
+ } catch (error2) {
691
+ invoke_error_boundary(
692
+ error2,
693
+ /** @type {Effect} */
694
+ this.#effect.parent
695
+ );
696
+ return null;
697
+ }
698
+ });
699
+ }
700
+ };
701
+ queue_micro_task(() => {
702
+ var result;
703
+ try {
704
+ result = this.transform_error(error);
705
+ } catch (e) {
706
+ invoke_error_boundary(e, this.#effect && this.#effect.parent);
707
+ return;
708
+ }
709
+ if (result !== null && typeof result === "object" && typeof /** @type {any} */
710
+ result.then === "function") {
711
+ result.then(
712
+ handle_error_result,
713
+ /** @param {unknown} e */
714
+ (e) => invoke_error_boundary(e, this.#effect && this.#effect.parent)
715
+ );
716
+ } else {
717
+ handle_error_result(result);
718
+ }
719
+ });
720
+ }
721
+ }
722
+ const event_symbol = Symbol("events");
723
+ const all_registered_events = /* @__PURE__ */ new Set();
724
+ const root_event_handles = /* @__PURE__ */ new Set();
725
+ let last_propagated_event = null;
726
+ let last_propagated_event_clear_scheduled = false;
727
+ function handle_event_propagation(event) {
728
+ var handler_element = this;
729
+ var owner_document = (
730
+ /** @type {Node} */
731
+ handler_element.ownerDocument
732
+ );
733
+ var event_name = event.type;
734
+ var path = event.composedPath?.() || [];
735
+ var current_target = (
736
+ /** @type {null | Element} */
737
+ path[0] || event.target
738
+ );
739
+ last_propagated_event = event;
740
+ if (!last_propagated_event_clear_scheduled) {
741
+ last_propagated_event_clear_scheduled = true;
742
+ setTimeout(() => {
743
+ last_propagated_event_clear_scheduled = false;
744
+ last_propagated_event = null;
745
+ });
746
+ }
747
+ var path_idx = 0;
748
+ var handled_at = last_propagated_event === event && event[event_symbol];
749
+ if (handled_at) {
750
+ var at_idx = path.indexOf(handled_at);
751
+ if (at_idx !== -1 && (handler_element === document || handler_element === /** @type {any} */
752
+ window)) {
753
+ event[event_symbol] = handler_element;
754
+ return;
755
+ }
756
+ var handler_idx = path.indexOf(handler_element);
757
+ if (handler_idx === -1) {
758
+ return;
759
+ }
760
+ if (at_idx <= handler_idx) {
761
+ path_idx = at_idx;
762
+ }
763
+ }
764
+ current_target = /** @type {Element} */
765
+ path[path_idx] || event.target;
766
+ if (current_target === handler_element) return;
767
+ define_property(event, "currentTarget", {
768
+ configurable: true,
769
+ get() {
770
+ return current_target || owner_document;
771
+ }
772
+ });
773
+ var previous_reaction = active_reaction;
774
+ var previous_effect = active_effect;
775
+ set_active_reaction(null);
776
+ set_active_effect(null);
777
+ try {
778
+ var throw_error;
779
+ var other_errors = [];
780
+ while (current_target !== null) {
781
+ if (current_target === handler_element) break;
782
+ try {
783
+ var delegated = current_target[event_symbol]?.[event_name];
784
+ if (delegated != null && (!/** @type {any} */
785
+ current_target.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
786
+ // -> the target could not have been disabled because it emits the event in the first place
787
+ event.target === current_target)) {
788
+ delegated.call(current_target, event);
789
+ }
790
+ } catch (error) {
791
+ if (throw_error) {
792
+ other_errors.push(error);
793
+ } else {
794
+ throw_error = error;
795
+ }
796
+ }
797
+ if (event.cancelBubble) break;
798
+ path_idx++;
799
+ current_target = path_idx < path.length ? (
800
+ /** @type {Element} */
801
+ path[path_idx]
802
+ ) : null;
803
+ }
804
+ if (throw_error) {
805
+ for (let error of other_errors) {
806
+ queueMicrotask(() => {
807
+ throw error;
808
+ });
809
+ }
810
+ throw throw_error;
811
+ }
812
+ } finally {
813
+ event[event_symbol] = handler_element;
814
+ delete event.currentTarget;
815
+ set_active_reaction(previous_reaction);
816
+ set_active_effect(previous_effect);
817
+ }
818
+ }
819
+ function assign_nodes(start, end) {
820
+ var effect = (
821
+ /** @type {Effect} */
822
+ active_effect
823
+ );
824
+ if (effect.nodes === null) {
825
+ effect.nodes = { start, end, a: null, t: null };
826
+ }
827
+ }
828
+ function mount(component, options) {
829
+ return _mount(component, options);
830
+ }
831
+ function hydrate(component, options) {
832
+ init_operations();
833
+ options.intro = options.intro ?? false;
834
+ const target = options.target;
835
+ const was_hydrating = hydrating;
836
+ const previous_hydrate_node = hydrate_node;
837
+ try {
838
+ var anchor = get_first_child(target);
839
+ while (anchor && (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */
840
+ anchor.data !== HYDRATION_START)) {
841
+ anchor = get_next_sibling(anchor);
842
+ }
843
+ if (!anchor) {
844
+ throw HYDRATION_ERROR;
845
+ }
846
+ set_hydrating(true);
847
+ set_hydrate_node(
848
+ /** @type {Comment} */
849
+ anchor
850
+ );
851
+ const instance = _mount(component, { ...options, anchor });
852
+ set_hydrating(false);
853
+ return (
854
+ /** @type {Exports} */
855
+ instance
856
+ );
857
+ } catch (error) {
858
+ if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) {
859
+ throw error;
860
+ }
861
+ if (error !== HYDRATION_ERROR) {
862
+ console.warn("Failed to hydrate: ", error);
863
+ }
864
+ if (options.recover === false) {
865
+ hydration_failed();
866
+ }
867
+ init_operations();
868
+ clear_text_content(target);
869
+ set_hydrating(false);
870
+ return mount(component, options);
871
+ } finally {
872
+ set_hydrating(was_hydrating);
873
+ set_hydrate_node(previous_hydrate_node);
874
+ }
875
+ }
876
+ const listeners = /* @__PURE__ */ new Map();
877
+ function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
878
+ init_operations();
879
+ var component = void 0;
880
+ var unmount2 = component_root(() => {
881
+ var anchor_node = anchor ?? target.appendChild(create_text());
882
+ boundary(
883
+ /** @type {TemplateNode} */
884
+ anchor_node,
885
+ {
886
+ pending: () => {
887
+ }
888
+ },
889
+ (anchor_node2) => {
890
+ push$1({});
891
+ var ctx = (
892
+ /** @type {ComponentContext} */
893
+ component_context
894
+ );
895
+ if (context) ctx.c = context;
896
+ if (events) {
897
+ props.$$events = events;
898
+ }
899
+ if (hydrating) {
900
+ assign_nodes(
901
+ /** @type {TemplateNode} */
902
+ anchor_node2,
903
+ null
904
+ );
905
+ }
906
+ component = Component(anchor_node2, props) || {};
907
+ if (hydrating) {
908
+ active_effect.nodes.end = hydrate_node;
909
+ if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || /** @type {Comment} */
910
+ hydrate_node.data !== HYDRATION_END) {
911
+ hydration_mismatch();
912
+ throw HYDRATION_ERROR;
913
+ }
914
+ }
915
+ pop$1();
916
+ },
917
+ transformError
918
+ );
919
+ var registered_events = /* @__PURE__ */ new Set();
920
+ var event_handle = (events2) => {
921
+ for (var i = 0; i < events2.length; i++) {
922
+ var event_name = events2[i];
923
+ if (registered_events.has(event_name)) continue;
924
+ registered_events.add(event_name);
925
+ var passive = is_passive_event(event_name);
926
+ for (const node of [target, document]) {
927
+ var counts = listeners.get(node);
928
+ if (counts === void 0) {
929
+ counts = /* @__PURE__ */ new Map();
930
+ listeners.set(node, counts);
931
+ }
932
+ var count = counts.get(event_name);
933
+ if (count === void 0) {
934
+ node.addEventListener(event_name, handle_event_propagation, { passive });
935
+ counts.set(event_name, 1);
936
+ } else {
937
+ counts.set(event_name, count + 1);
938
+ }
939
+ }
940
+ }
941
+ };
942
+ event_handle(array_from(all_registered_events));
943
+ root_event_handles.add(event_handle);
944
+ return () => {
945
+ for (var event_name of registered_events) {
946
+ for (const node of [target, document]) {
947
+ var counts = (
948
+ /** @type {Map<string, number>} */
949
+ listeners.get(node)
950
+ );
951
+ var count = (
952
+ /** @type {number} */
953
+ counts.get(event_name)
954
+ );
955
+ if (--count == 0) {
956
+ node.removeEventListener(event_name, handle_event_propagation);
957
+ counts.delete(event_name);
958
+ if (counts.size === 0) {
959
+ listeners.delete(node);
960
+ }
961
+ } else {
962
+ counts.set(event_name, count);
963
+ }
964
+ }
965
+ }
966
+ root_event_handles.delete(event_handle);
967
+ if (anchor_node !== anchor) {
968
+ anchor_node.parentNode?.removeChild(anchor_node);
969
+ }
970
+ };
971
+ });
972
+ mounted_components.set(component, unmount2);
973
+ return component;
974
+ }
975
+ let mounted_components = /* @__PURE__ */ new WeakMap();
976
+ function unmount(component, options) {
977
+ const fn = mounted_components.get(component);
978
+ if (fn) {
979
+ mounted_components.delete(component);
980
+ return fn(options);
981
+ }
982
+ return Promise.resolve();
983
+ }
984
+ function asClassComponent$1(component) {
985
+ return class extends Svelte4Component {
986
+ /** @param {any} options */
987
+ constructor(options) {
988
+ super({
989
+ component,
990
+ ...options
991
+ });
992
+ }
993
+ };
994
+ }
995
+ class Svelte4Component {
996
+ /** @type {any} */
997
+ #events;
998
+ /** @type {Record<string, any>} */
999
+ #instance;
1000
+ /**
1001
+ * @param {ComponentConstructorOptions & {
1002
+ * component: any;
1003
+ * }} options
1004
+ */
1005
+ constructor(options) {
1006
+ var sources = /* @__PURE__ */ new Map();
1007
+ var add_source = (key, value) => {
1008
+ var s = mutable_source(value, false, false);
1009
+ sources.set(key, s);
1010
+ return s;
1011
+ };
1012
+ const props = new Proxy(
1013
+ { ...options.props || {}, $$events: {} },
1014
+ {
1015
+ get(target, prop) {
1016
+ return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
1017
+ },
1018
+ has(target, prop) {
1019
+ if (prop === LEGACY_PROPS) return true;
1020
+ get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
1021
+ return Reflect.has(target, prop);
1022
+ },
1023
+ set(target, prop, value) {
1024
+ set(sources.get(prop) ?? add_source(prop, value), value);
1025
+ return Reflect.set(target, prop, value);
1026
+ }
1027
+ }
1028
+ );
1029
+ this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
1030
+ target: options.target,
1031
+ anchor: options.anchor,
1032
+ props,
1033
+ context: options.context,
1034
+ intro: options.intro ?? false,
1035
+ recover: options.recover,
1036
+ transformError: options.transformError
1037
+ });
1038
+ if (!options?.props?.$$host || options.sync === false) {
1039
+ flushSync();
1040
+ }
1041
+ this.#events = props.$$events;
1042
+ for (const key of Object.keys(this.#instance)) {
1043
+ if (key === "$set" || key === "$destroy" || key === "$on") continue;
1044
+ define_property(this, key, {
1045
+ get() {
1046
+ return this.#instance[key];
1047
+ },
1048
+ /** @param {any} value */
1049
+ set(value) {
1050
+ this.#instance[key] = value;
1051
+ },
1052
+ enumerable: true
1053
+ });
1054
+ }
1055
+ this.#instance.$set = /** @param {Record<string, any>} next */
1056
+ (next2) => {
1057
+ Object.assign(props, next2);
1058
+ };
1059
+ this.#instance.$destroy = () => {
1060
+ unmount(this.#instance);
1061
+ };
1062
+ }
1063
+ /** @param {Record<string, any>} props */
1064
+ $set(props) {
1065
+ this.#instance.$set(props);
1066
+ }
1067
+ /**
1068
+ * @param {string} event
1069
+ * @param {(...args: any[]) => any} callback
1070
+ * @returns {any}
1071
+ */
1072
+ $on(event, callback) {
1073
+ this.#events[event] = this.#events[event] || [];
1074
+ const cb = (...args) => callback.call(this, ...args);
1075
+ this.#events[event].push(cb);
1076
+ return () => {
1077
+ this.#events[event] = this.#events[event].filter(
1078
+ /** @param {any} fn */
1079
+ (fn) => fn !== cb
1080
+ );
1081
+ };
1082
+ }
1083
+ $destroy() {
1084
+ this.#instance.$destroy();
1085
+ }
1086
+ }
1087
+ function asClassComponent(component) {
1088
+ const component_constructor = asClassComponent$1(component);
1089
+ const _render = (props, { context, csp, transformError } = {}) => {
1090
+ const result = render(component, { props, context, csp, transformError });
1091
+ const munged = Object.defineProperties(
1092
+ /** @type {LegacyRenderResult & PromiseLike<LegacyRenderResult>} */
1093
+ {},
1094
+ {
1095
+ css: {
1096
+ value: { code: "", map: null }
1097
+ },
1098
+ head: {
1099
+ get: () => result.head
1100
+ },
1101
+ html: {
1102
+ get: () => result.body
1103
+ },
1104
+ then: {
1105
+ /**
1106
+ * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
1107
+ *
1108
+ * @template TResult1
1109
+ * @template [TResult2=never]
1110
+ * @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
1111
+ * @param { (reason: unknown) => TResult2 } onrejected
1112
+ */
1113
+ value: (onfulfilled, onrejected) => {
1114
+ {
1115
+ const user_result = onfulfilled({
1116
+ css: munged.css,
1117
+ head: munged.head,
1118
+ html: munged.html
1119
+ });
1120
+ return Promise.resolve(user_result);
1121
+ }
1122
+ }
1123
+ }
1124
+ }
1125
+ );
1126
+ return munged;
1127
+ };
1128
+ component_constructor.render = _render;
1129
+ return component_constructor;
1130
+ }
1131
+ function Root($$renderer, $$props) {
1132
+ $$renderer.component(($$renderer2) => {
1133
+ let {
1134
+ stores,
1135
+ page,
1136
+ constructors,
1137
+ components = [],
1138
+ form,
1139
+ data_0 = null,
1140
+ data_1 = null
1141
+ } = $$props;
1142
+ {
1143
+ setContext("__svelte__", stores);
1144
+ }
1145
+ {
1146
+ stores.page.set(page);
1147
+ }
1148
+ const Pyramid_1 = derived(() => constructors[1]);
1149
+ if (constructors[1]) {
1150
+ $$renderer2.push("<!--[0-->");
1151
+ const Pyramid_0 = constructors[0];
1152
+ if (Pyramid_0) {
1153
+ $$renderer2.push("<!--[-->");
1154
+ Pyramid_0($$renderer2, {
1155
+ data: data_0,
1156
+ form,
1157
+ params: page.params,
1158
+ children: ($$renderer3) => {
1159
+ if (Pyramid_1()) {
1160
+ $$renderer3.push("<!--[-->");
1161
+ Pyramid_1()($$renderer3, { data: data_1, form, params: page.params });
1162
+ $$renderer3.push("<!--]-->");
1163
+ } else {
1164
+ $$renderer3.push("<!--[!-->");
1165
+ $$renderer3.push("<!--]-->");
1166
+ }
1167
+ },
1168
+ $$slots: { default: true }
1169
+ });
1170
+ $$renderer2.push("<!--]-->");
1171
+ } else {
1172
+ $$renderer2.push("<!--[!-->");
1173
+ $$renderer2.push("<!--]-->");
1174
+ }
1175
+ } else {
1176
+ $$renderer2.push("<!--[-1-->");
1177
+ const Pyramid_0 = constructors[0];
1178
+ if (Pyramid_0) {
1179
+ $$renderer2.push("<!--[-->");
1180
+ Pyramid_0($$renderer2, { data: data_0, form, params: page.params });
1181
+ $$renderer2.push("<!--]-->");
1182
+ } else {
1183
+ $$renderer2.push("<!--[!-->");
1184
+ $$renderer2.push("<!--]-->");
1185
+ }
1186
+ }
1187
+ $$renderer2.push(`<!--]--> `);
1188
+ {
1189
+ $$renderer2.push("<!--[-1-->");
1190
+ }
1191
+ $$renderer2.push(`<!--]-->`);
1192
+ });
1193
+ }
1194
+ const root = asClassComponent(Root);
1195
+
1196
+ export { disable_search as a, base64_decode as b, decode_params as c, decode_pathname as d, validate_layout_exports as e, validate_page_server_exports as f, validate_page_exports as g, resolve as h, get_relative_path as i, base64_encode as j, make_trackable as m, normalize_path as n, root as r, text_encoder as t, validate_layout_server_exports as v, with_request_store as w };
1197
+ //# sourceMappingURL=root-BmWD7d98.js.map