@danielito1996/compose-svelted 0.0.1 → 0.2.1

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 (89) hide show
  1. package/README.md +113 -274
  2. package/dist/compose-svelted.css +2 -0
  3. package/dist/index.d.ts +152 -0
  4. package/dist/index.js +3271 -0
  5. package/package.json +12 -34
  6. package/.vscode/extensions.json +0 -3
  7. package/docs/assets/components/button/button.png +0 -0
  8. package/docs/assets/components/surface/surface_simple.png +0 -0
  9. package/docs/assets/components/text/text.png +0 -0
  10. package/docs/assets/components/textfield/textfield_simple.png +0 -0
  11. package/docs/assets/svelted.png +0 -0
  12. package/docs/assets/svelted.svg +0 -41
  13. package/docs/getting_started.md +0 -116
  14. package/docs/index.md +0 -106
  15. package/index.html +0 -14
  16. package/screenshots/Captura de pantalla 2025-12-20 022710.png +0 -0
  17. package/screenshots/capturas.txt +0 -1
  18. package/src/App.svelte +0 -39
  19. package/src/app.css +0 -23
  20. package/src/assets/img/hav3m.png +0 -0
  21. package/src/assets/img/vessel.jpg +0 -0
  22. package/src/assets/raw/boat.svg +0 -15
  23. package/src/assets/raw/cash.svg +0 -39
  24. package/src/assets/raw/police.json +0 -1
  25. package/src/assets/raw/svelte.svg +0 -1
  26. package/src/lib/Counter.svelte +0 -10
  27. package/src/lib/components/AppRoot.svelte +0 -15
  28. package/src/lib/components/ContentScale.ts +0 -12
  29. package/src/lib/components/Icon.svelte +0 -47
  30. package/src/lib/components/Image.svelte +0 -31
  31. package/src/lib/components/Spacer.svelte +0 -11
  32. package/src/lib/components/Surface.svelte +0 -19
  33. package/src/lib/components/Text.svelte +0 -23
  34. package/src/lib/components/TonalButton.svelte +0 -34
  35. package/src/lib/components/buttons/Button.svelte +0 -34
  36. package/src/lib/components/buttons/ButtonWithIcon.svelte +0 -0
  37. package/src/lib/components/buttons/IconButton.svelte +0 -0
  38. package/src/lib/components/buttons/OutlinedButton.svelte +0 -0
  39. package/src/lib/components/buttons/OutlinedButtonWithIcon.svelte +0 -0
  40. package/src/lib/components/buttons/OutlinedIconButton.svelte +0 -0
  41. package/src/lib/components/buttons/TextButton.svelte +0 -0
  42. package/src/lib/components/cards/Card.svelte +0 -0
  43. package/src/lib/components/cards/OutlinedCard.svelte +0 -0
  44. package/src/lib/components/layouts/Alignment.ts +0 -37
  45. package/src/lib/components/layouts/Arrangement.ts +0 -66
  46. package/src/lib/components/layouts/Box.svelte +0 -25
  47. package/src/lib/components/layouts/Column.svelte +0 -23
  48. package/src/lib/components/layouts/LazyColumn.svelte +0 -0
  49. package/src/lib/components/layouts/LazyRow.svelte +0 -0
  50. package/src/lib/components/layouts/Row.svelte +0 -23
  51. package/src/lib/components/layouts/Scafold.svelte +0 -0
  52. package/src/lib/components/menus/DropdownMenu.svelte +0 -0
  53. package/src/lib/components/menus/DropdownMenuItem.svelte +0 -0
  54. package/src/lib/components/textFields/BaseTextField.svelte +0 -130
  55. package/src/lib/components/textFields/OutlinedTextField.svelte +0 -52
  56. package/src/lib/components/textFields/TextField.svelte +0 -36
  57. package/src/lib/components/textFields/TextFieldColors.ts +0 -11
  58. package/src/lib/components/textFields/TextFieldDefaults.ts +0 -48
  59. package/src/lib/core/helpers/painterResource.ts +0 -26
  60. package/src/lib/core/modifier/Modifier.ts +0 -259
  61. package/src/lib/core/modifier/ModifierImpl.ts +0 -275
  62. package/src/lib/core/shapes/RoundedCornerShape.ts +0 -53
  63. package/src/lib/core/shapes/Shape.ts +0 -3
  64. package/src/lib/core/theme/ColorScheme.ts +0 -25
  65. package/src/lib/core/theme/ComposeTheme.svelte +0 -22
  66. package/src/lib/core/theme/TextStyle.ts +0 -25
  67. package/src/lib/core/theme/colors.ts +0 -21
  68. package/src/lib/core/theme/cssVars.ts +0 -32
  69. package/src/lib/core/theme/defaults/darkColors.ts +0 -17
  70. package/src/lib/core/theme/defaults/defaultTheme.ts +0 -35
  71. package/src/lib/core/theme/defaults/lightColors.ts +0 -17
  72. package/src/lib/core/theme/defaults/typography.ts +0 -128
  73. package/src/lib/core/theme/elevation.ts +0 -7
  74. package/src/lib/core/theme/getCurrentColor.ts +0 -10
  75. package/src/lib/core/theme/resolve.ts +0 -29
  76. package/src/lib/core/theme/shapes.ts +0 -7
  77. package/src/lib/core/theme/spacing.ts +0 -7
  78. package/src/lib/core/theme/store.ts +0 -26
  79. package/src/lib/core/theme/systemTheme.ts +0 -20
  80. package/src/lib/core/theme/theme.ts +0 -15
  81. package/src/lib/core/theme/typography.ts +0 -29
  82. package/src/lib/index.ts +0 -42
  83. package/src/main.ts +0 -9
  84. package/svelte.config.js +0 -8
  85. package/tsconfig.app.json +0 -21
  86. package/tsconfig.json +0 -7
  87. package/tsconfig.node.json +0 -26
  88. package/vite.config.ts +0 -11
  89. /package/{public → dist}/vite.svg +0 -0
package/dist/index.js ADDED
@@ -0,0 +1,3271 @@
1
+ import { onMount, tick } from "svelte";
2
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
3
+ let legacy_mode_flag = !1;
4
+ function enable_legacy_mode_flag() {
5
+ legacy_mode_flag = !0;
6
+ }
7
+ enable_legacy_mode_flag();
8
+ const HYDRATION_ERROR = {}, UNINITIALIZED = Symbol();
9
+ var is_array = Array.isArray, index_of = Array.prototype.indexOf, array_from = Array.from;
10
+ Object.keys;
11
+ var define_property = Object.defineProperty, get_descriptor = Object.getOwnPropertyDescriptor, get_descriptors = Object.getOwnPropertyDescriptors, object_prototype = Object.prototype, array_prototype = Array.prototype, get_prototype_of = Object.getPrototypeOf;
12
+ Object.isExtensible;
13
+ const noop = () => {};
14
+ function run(e) {
15
+ return e();
16
+ }
17
+ function run_all(e) {
18
+ for (var o = 0; o < e.length; o++) e[o]();
19
+ }
20
+ function deferred() {
21
+ var e, o;
22
+ return {
23
+ promise: new Promise((s, c) => {
24
+ e = s, o = c;
25
+ }),
26
+ resolve: e,
27
+ reject: o
28
+ };
29
+ }
30
+ const CLEAN = 1024, DIRTY = 2048, MAYBE_DIRTY = 4096, INERT = 8192, EFFECT_TRANSPARENT = 65536, EFFECT_PRESERVED = 1 << 19, USER_EFFECT = 1 << 20, EFFECT_OFFSCREEN = 1 << 25, WAS_MARKED = 32768, REACTION_IS_UPDATING = 1 << 21, ERROR_VALUE = 1 << 23, STATE_SYMBOL = Symbol("$state"), LEGACY_PROPS = Symbol("legacy props"), LOADING_ATTR_SYMBOL = Symbol(""), STALE_REACTION = new class extends Error {
31
+ name = "StaleReactionError";
32
+ message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
33
+ }();
34
+ function invalid_default_snippet() {
35
+ throw Error("https://svelte.dev/e/invalid_default_snippet");
36
+ }
37
+ function async_derived_orphan() {
38
+ throw Error("https://svelte.dev/e/async_derived_orphan");
39
+ }
40
+ function effect_in_teardown(e) {
41
+ throw Error("https://svelte.dev/e/effect_in_teardown");
42
+ }
43
+ function effect_in_unowned_derived() {
44
+ throw Error("https://svelte.dev/e/effect_in_unowned_derived");
45
+ }
46
+ function effect_orphan(e) {
47
+ throw Error("https://svelte.dev/e/effect_orphan");
48
+ }
49
+ function effect_update_depth_exceeded() {
50
+ throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
51
+ }
52
+ function props_invalid_value(e) {
53
+ throw Error("https://svelte.dev/e/props_invalid_value");
54
+ }
55
+ function state_descriptors_fixed() {
56
+ throw Error("https://svelte.dev/e/state_descriptors_fixed");
57
+ }
58
+ function state_prototype_fixed() {
59
+ throw Error("https://svelte.dev/e/state_prototype_fixed");
60
+ }
61
+ function state_unsafe_mutation() {
62
+ throw Error("https://svelte.dev/e/state_unsafe_mutation");
63
+ }
64
+ function hydration_mismatch(e) {
65
+ console.warn("https://svelte.dev/e/hydration_mismatch");
66
+ }
67
+ let hydrating = !1;
68
+ function set_hydrating(e) {
69
+ hydrating = e;
70
+ }
71
+ let hydrate_node;
72
+ function set_hydrate_node(e) {
73
+ if (e === null) throw hydration_mismatch(), HYDRATION_ERROR;
74
+ return hydrate_node = e;
75
+ }
76
+ function hydrate_next() {
77
+ return set_hydrate_node(/* @__PURE__ */ get_next_sibling(hydrate_node));
78
+ }
79
+ function reset(e) {
80
+ if (hydrating) {
81
+ if (/* @__PURE__ */ get_next_sibling(hydrate_node) !== null) throw hydration_mismatch(), HYDRATION_ERROR;
82
+ hydrate_node = e;
83
+ }
84
+ }
85
+ function next(e = 1) {
86
+ if (hydrating) {
87
+ for (var o = e, s = hydrate_node; o--;) s = /* @__PURE__ */ get_next_sibling(s);
88
+ hydrate_node = s;
89
+ }
90
+ }
91
+ function skip_nodes(e = !0) {
92
+ for (var o = 0, s = hydrate_node;;) {
93
+ if (s.nodeType === 8) {
94
+ var c = s.data;
95
+ if (c === "]") {
96
+ if (o === 0) return s;
97
+ --o;
98
+ } else (c === "[" || c === "[!") && (o += 1);
99
+ }
100
+ var l = /* @__PURE__ */ get_next_sibling(s);
101
+ e && s.remove(), s = l;
102
+ }
103
+ }
104
+ function read_hydration_instruction(e) {
105
+ if (!e || e.nodeType !== 8) throw hydration_mismatch(), HYDRATION_ERROR;
106
+ return e.data;
107
+ }
108
+ function equals(e) {
109
+ return e === this.v;
110
+ }
111
+ function safe_not_equal(e, o) {
112
+ return e == e ? e !== o || typeof e == "object" && !!e || typeof e == "function" : o == o;
113
+ }
114
+ function safe_equals(e) {
115
+ return !safe_not_equal(e, this.v);
116
+ }
117
+ let component_context = null;
118
+ function set_component_context(e) {
119
+ component_context = e;
120
+ }
121
+ function push(e, o = !1, c) {
122
+ component_context = {
123
+ p: component_context,
124
+ i: !1,
125
+ c: null,
126
+ e: null,
127
+ s: e,
128
+ x: null,
129
+ l: legacy_mode_flag && !o ? {
130
+ s: null,
131
+ u: null,
132
+ $: []
133
+ } : null
134
+ };
135
+ }
136
+ function pop(e) {
137
+ var o = component_context, s = o.e;
138
+ if (s !== null) {
139
+ o.e = null;
140
+ for (var c of s) create_user_effect(c);
141
+ }
142
+ return e !== void 0 && (o.x = e), o.i = !0, component_context = o.p, e ?? {};
143
+ }
144
+ function is_runes() {
145
+ return !legacy_mode_flag || component_context !== null && component_context.l === null;
146
+ }
147
+ var micro_tasks = [];
148
+ function run_micro_tasks() {
149
+ var e = micro_tasks;
150
+ micro_tasks = [], run_all(e);
151
+ }
152
+ function queue_micro_task(e) {
153
+ if (micro_tasks.length === 0 && !is_flushing_sync) {
154
+ var o = micro_tasks;
155
+ queueMicrotask(() => {
156
+ o === micro_tasks && run_micro_tasks();
157
+ });
158
+ }
159
+ micro_tasks.push(e);
160
+ }
161
+ function flush_tasks() {
162
+ for (; micro_tasks.length > 0;) run_micro_tasks();
163
+ }
164
+ function handle_error(e) {
165
+ var o = active_effect;
166
+ if (o === null) return active_reaction.f |= ERROR_VALUE, e;
167
+ if (o.f & 32768) invoke_error_boundary(e, o);
168
+ else {
169
+ if (!(o.f & 128)) throw e;
170
+ o.b.error(e);
171
+ }
172
+ }
173
+ function invoke_error_boundary(e, o) {
174
+ for (; o !== null;) {
175
+ if (o.f & 128) try {
176
+ o.b.error(e);
177
+ return;
178
+ } catch (o) {
179
+ e = o;
180
+ }
181
+ o = o.parent;
182
+ }
183
+ throw e;
184
+ }
185
+ var batches = /* @__PURE__ */ new Set();
186
+ let current_batch = null, previous_batch = null, batch_values = null;
187
+ var queued_root_effects = [], last_scheduled_effect = null, is_flushing = !1;
188
+ let is_flushing_sync = !1;
189
+ var Batch = class e {
190
+ committed = !1;
191
+ current = /* @__PURE__ */ new Map();
192
+ previous = /* @__PURE__ */ new Map();
193
+ #e = /* @__PURE__ */ new Set();
194
+ #t = /* @__PURE__ */ new Set();
195
+ #n = 0;
196
+ #r = 0;
197
+ #i = null;
198
+ #a = /* @__PURE__ */ new Set();
199
+ #o = /* @__PURE__ */ new Set();
200
+ skipped_effects = /* @__PURE__ */ new Set();
201
+ is_fork = !1;
202
+ is_deferred() {
203
+ return this.is_fork || this.#r > 0;
204
+ }
205
+ process(e) {
206
+ queued_root_effects = [], previous_batch = null, this.apply();
207
+ var o = {
208
+ parent: null,
209
+ effect: null,
210
+ effects: [],
211
+ render_effects: []
212
+ };
213
+ for (let s of e) this.#s(s, o);
214
+ this.is_fork || this.#u(), this.is_deferred() ? (this.#c(o.effects), this.#c(o.render_effects)) : (previous_batch = this, current_batch = null, flush_queued_effects(o.render_effects), flush_queued_effects(o.effects), previous_batch = null, this.#i?.resolve()), batch_values = null;
215
+ }
216
+ #s(e, o) {
217
+ e.f ^= CLEAN;
218
+ for (var s = e.first; s !== null;) {
219
+ var c = s.f, l = (c & 96) != 0, u = l && (c & 1024) != 0 || (c & 8192) != 0 || this.skipped_effects.has(s);
220
+ if (s.f & 128 && s.b?.is_pending() && (o = {
221
+ parent: o,
222
+ effect: s,
223
+ effects: [],
224
+ render_effects: []
225
+ }), !u && s.fn !== null) {
226
+ l ? s.f ^= CLEAN : c & 4 ? o.effects.push(s) : is_dirty(s) && (s.f & 16 && this.#a.add(s), update_effect(s));
227
+ var d = s.first;
228
+ if (d !== null) {
229
+ s = d;
230
+ continue;
231
+ }
232
+ }
233
+ var f = s.parent;
234
+ for (s = s.next; s === null && f !== null;) f === o.effect && (this.#c(o.effects), this.#c(o.render_effects), o = o.parent), s = f.next, f = f.parent;
235
+ }
236
+ }
237
+ #c(e) {
238
+ for (let o of e) o.f & 2048 ? this.#a.add(o) : o.f & 4096 && this.#o.add(o), this.#l(o.deps), set_signal_status(o, CLEAN);
239
+ }
240
+ #l(e) {
241
+ if (e !== null) for (let o of e) !(o.f & 2) || !(o.f & 32768) || (o.f ^= WAS_MARKED, this.#l(o.deps));
242
+ }
243
+ capture(e, o) {
244
+ this.previous.has(e) || this.previous.set(e, o), e.f & 8388608 || (this.current.set(e, e.v), batch_values?.set(e, e.v));
245
+ }
246
+ activate() {
247
+ current_batch = this, this.apply();
248
+ }
249
+ deactivate() {
250
+ current_batch === this && (current_batch = null, batch_values = null);
251
+ }
252
+ flush() {
253
+ if (this.activate(), queued_root_effects.length > 0) {
254
+ if (flush_effects(), current_batch !== null && current_batch !== this) return;
255
+ } else this.#n === 0 && this.process([]);
256
+ this.deactivate();
257
+ }
258
+ discard() {
259
+ for (let e of this.#t) e(this);
260
+ this.#t.clear();
261
+ }
262
+ #u() {
263
+ if (this.#r === 0) {
264
+ for (let e of this.#e) e();
265
+ this.#e.clear();
266
+ }
267
+ this.#n === 0 && this.#d();
268
+ }
269
+ #d() {
270
+ if (batches.size > 1) {
271
+ this.previous.clear();
272
+ var e = batch_values, o = !0, s = {
273
+ parent: null,
274
+ effect: null,
275
+ effects: [],
276
+ render_effects: []
277
+ };
278
+ for (let e of batches) {
279
+ if (e === this) {
280
+ o = !1;
281
+ continue;
282
+ }
283
+ let l = [];
284
+ for (let [s, c] of this.current) {
285
+ if (e.current.has(s)) if (o && c !== e.current.get(s)) e.current.set(s, c);
286
+ else continue;
287
+ l.push(s);
288
+ }
289
+ if (l.length === 0) continue;
290
+ let u = [...e.current.keys()].filter((e) => !this.current.has(e));
291
+ if (u.length > 0) {
292
+ var c = queued_root_effects;
293
+ queued_root_effects = [];
294
+ let o = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
295
+ for (let e of l) mark_effects(e, u, o, d);
296
+ if (queued_root_effects.length > 0) {
297
+ current_batch = e, e.apply();
298
+ for (let o of queued_root_effects) e.#s(o, s);
299
+ e.deactivate();
300
+ }
301
+ queued_root_effects = c;
302
+ }
303
+ }
304
+ current_batch = null, batch_values = e;
305
+ }
306
+ this.committed = !0, batches.delete(this);
307
+ }
308
+ increment(e) {
309
+ this.#n += 1, e && (this.#r += 1);
310
+ }
311
+ decrement(e) {
312
+ --this.#n, e && --this.#r, this.revive();
313
+ }
314
+ revive() {
315
+ for (let e of this.#a) this.#o.delete(e), set_signal_status(e, DIRTY), schedule_effect(e);
316
+ for (let e of this.#o) set_signal_status(e, MAYBE_DIRTY), schedule_effect(e);
317
+ this.flush();
318
+ }
319
+ oncommit(e) {
320
+ this.#e.add(e);
321
+ }
322
+ ondiscard(e) {
323
+ this.#t.add(e);
324
+ }
325
+ settled() {
326
+ return (this.#i ??= deferred()).promise;
327
+ }
328
+ static ensure() {
329
+ if (current_batch === null) {
330
+ let o = current_batch = new e();
331
+ batches.add(current_batch), is_flushing_sync || e.enqueue(() => {
332
+ current_batch === o && o.flush();
333
+ });
334
+ }
335
+ return current_batch;
336
+ }
337
+ static enqueue(e) {
338
+ queue_micro_task(e);
339
+ }
340
+ apply() {}
341
+ };
342
+ function flushSync(e) {
343
+ var o = is_flushing_sync;
344
+ is_flushing_sync = !0;
345
+ try {
346
+ var s;
347
+ for (e && (current_batch !== null && flush_effects(), s = e());;) {
348
+ if (flush_tasks(), queued_root_effects.length === 0 && (current_batch?.flush(), queued_root_effects.length === 0)) return last_scheduled_effect = null, s;
349
+ flush_effects();
350
+ }
351
+ } finally {
352
+ is_flushing_sync = o;
353
+ }
354
+ }
355
+ function flush_effects() {
356
+ var e = is_updating_effect;
357
+ is_flushing = !0;
358
+ try {
359
+ var o = 0;
360
+ for (set_is_updating_effect(!0); queued_root_effects.length > 0;) {
361
+ var s = Batch.ensure();
362
+ o++ > 1e3 && infinite_loop_guard(), s.process(queued_root_effects), old_values.clear();
363
+ }
364
+ } finally {
365
+ is_flushing = !1, set_is_updating_effect(e), last_scheduled_effect = null;
366
+ }
367
+ }
368
+ function infinite_loop_guard() {
369
+ try {
370
+ effect_update_depth_exceeded();
371
+ } catch (e) {
372
+ invoke_error_boundary(e, last_scheduled_effect);
373
+ }
374
+ }
375
+ let eager_block_effects = null;
376
+ function flush_queued_effects(e) {
377
+ var o = e.length;
378
+ if (o !== 0) {
379
+ for (var s = 0; s < o;) {
380
+ var c = e[s++];
381
+ if (!(c.f & 24576) && is_dirty(c) && (eager_block_effects = /* @__PURE__ */ new Set(), update_effect(c), c.deps === null && c.first === null && c.nodes === null && (c.teardown === null && c.ac === null ? unlink_effect(c) : c.fn = null), eager_block_effects?.size > 0)) {
382
+ old_values.clear();
383
+ for (let e of eager_block_effects) {
384
+ if (e.f & 24576) continue;
385
+ let o = [e], s = e.parent;
386
+ for (; s !== null;) eager_block_effects.has(s) && (eager_block_effects.delete(s), o.push(s)), s = s.parent;
387
+ for (let e = o.length - 1; e >= 0; e--) {
388
+ let s = o[e];
389
+ s.f & 24576 || update_effect(s);
390
+ }
391
+ }
392
+ eager_block_effects.clear();
393
+ }
394
+ }
395
+ eager_block_effects = null;
396
+ }
397
+ }
398
+ function mark_effects(e, o, s, c) {
399
+ if (!s.has(e) && (s.add(e), e.reactions !== null)) for (let l of e.reactions) {
400
+ let e = l.f;
401
+ e & 2 ? mark_effects(l, o, s, c) : e & 4194320 && !(e & 2048) && depends_on(l, o, c) && (set_signal_status(l, DIRTY), schedule_effect(l));
402
+ }
403
+ }
404
+ function depends_on(e, o, s) {
405
+ let c = s.get(e);
406
+ if (c !== void 0) return c;
407
+ if (e.deps !== null) for (let c of e.deps) {
408
+ if (o.includes(c)) return !0;
409
+ if (c.f & 2 && depends_on(c, o, s)) return s.set(c, !0), !0;
410
+ }
411
+ return s.set(e, !1), !1;
412
+ }
413
+ function schedule_effect(e) {
414
+ for (var o = last_scheduled_effect = e; o.parent !== null;) {
415
+ o = o.parent;
416
+ var s = o.f;
417
+ if (is_flushing && o === active_effect && s & 16 && !(s & 262144)) return;
418
+ if (s & 96) {
419
+ if (!(s & 1024)) return;
420
+ o.f ^= CLEAN;
421
+ }
422
+ }
423
+ queued_root_effects.push(o);
424
+ }
425
+ EFFECT_PRESERVED | 65664;
426
+ function flatten(e, o, s, c) {
427
+ let l = is_runes() ? derived$1 : derived_safe_equal;
428
+ if (s.length === 0 && e.length === 0) {
429
+ c(o.map(l));
430
+ return;
431
+ }
432
+ var u = current_batch, d = active_effect, f = capture();
433
+ function p() {
434
+ Promise.all(s.map((e) => /* @__PURE__ */ async_derived(e))).then((e) => {
435
+ f();
436
+ try {
437
+ c([...o.map(l), ...e]);
438
+ } catch (e) {
439
+ d.f & 16384 || invoke_error_boundary(e, d);
440
+ }
441
+ u?.deactivate(), unset_context();
442
+ }).catch((e) => {
443
+ invoke_error_boundary(e, d);
444
+ });
445
+ }
446
+ e.length > 0 ? Promise.all(e).then(() => {
447
+ f();
448
+ try {
449
+ return p();
450
+ } finally {
451
+ u?.deactivate(), unset_context();
452
+ }
453
+ }) : p();
454
+ }
455
+ function capture() {
456
+ var e = active_effect, o = active_reaction, s = component_context, c = current_batch;
457
+ return function(l = !0) {
458
+ set_active_effect(e), set_active_reaction(o), set_component_context(s), l && c?.activate();
459
+ };
460
+ }
461
+ function unset_context() {
462
+ set_active_effect(null), set_active_reaction(null), set_component_context(null);
463
+ }
464
+ /* @__NO_SIDE_EFFECTS__ */
465
+ function derived$1(e) {
466
+ var o = 2 | DIRTY, s = active_reaction !== null && active_reaction.f & 2 ? active_reaction : null;
467
+ return active_effect !== null && (active_effect.f |= EFFECT_PRESERVED), {
468
+ ctx: component_context,
469
+ deps: null,
470
+ effects: null,
471
+ equals,
472
+ f: o,
473
+ fn: e,
474
+ reactions: null,
475
+ rv: 0,
476
+ v: UNINITIALIZED,
477
+ wv: 0,
478
+ parent: s ?? active_effect,
479
+ ac: null
480
+ };
481
+ }
482
+ /* @__NO_SIDE_EFFECTS__ */
483
+ function async_derived(e, o) {
484
+ let s = active_effect;
485
+ s === null && async_derived_orphan();
486
+ var c = s.b, l = void 0, d = source(UNINITIALIZED), f = !active_reaction, p = /* @__PURE__ */ new Map();
487
+ return async_effect(() => {
488
+ var o = deferred();
489
+ l = o.promise;
490
+ try {
491
+ Promise.resolve(e()).then(o.resolve, o.reject).then(() => {
492
+ s === current_batch && s.committed && s.deactivate(), unset_context();
493
+ });
494
+ } catch (e) {
495
+ o.reject(e), unset_context();
496
+ }
497
+ var s = current_batch;
498
+ if (f) {
499
+ var u = !c.is_pending();
500
+ c.update_pending_count(1), s.increment(u), p.get(s)?.reject(STALE_REACTION), p.delete(s), p.set(s, o);
501
+ }
502
+ let m = (e, o = void 0) => {
503
+ if (s.activate(), o) o !== STALE_REACTION && (d.f |= ERROR_VALUE, internal_set(d, o));
504
+ else {
505
+ d.f & 8388608 && (d.f ^= ERROR_VALUE), internal_set(d, e);
506
+ for (let [e, o] of p) {
507
+ if (p.delete(e), e === s) break;
508
+ o.reject(STALE_REACTION);
509
+ }
510
+ }
511
+ f && (c.update_pending_count(-1), s.decrement(u));
512
+ };
513
+ o.promise.then(m, (e) => m(null, e || "unknown"));
514
+ }), teardown(() => {
515
+ for (let e of p.values()) e.reject(STALE_REACTION);
516
+ }), new Promise((e) => {
517
+ function o(s) {
518
+ function c() {
519
+ s === l ? e(d) : o(l);
520
+ }
521
+ s.then(c, c);
522
+ }
523
+ o(l);
524
+ });
525
+ }
526
+ /* @__NO_SIDE_EFFECTS__ */
527
+ function derived_safe_equal(e) {
528
+ let o = /* @__PURE__ */ derived$1(e);
529
+ return o.equals = safe_equals, o;
530
+ }
531
+ function destroy_derived_effects(e) {
532
+ var o = e.effects;
533
+ if (o !== null) {
534
+ e.effects = null;
535
+ for (var s = 0; s < o.length; s += 1) destroy_effect(o[s]);
536
+ }
537
+ }
538
+ function get_derived_parent_effect(e) {
539
+ for (var o = e.parent; o !== null;) {
540
+ if (!(o.f & 2)) return o.f & 16384 ? null : o;
541
+ o = o.parent;
542
+ }
543
+ return null;
544
+ }
545
+ function execute_derived(e) {
546
+ var o, s = active_effect;
547
+ set_active_effect(get_derived_parent_effect(e));
548
+ try {
549
+ e.f &= ~WAS_MARKED, destroy_derived_effects(e), o = update_reaction(e);
550
+ } finally {
551
+ set_active_effect(s);
552
+ }
553
+ return o;
554
+ }
555
+ function update_derived(e) {
556
+ var o = execute_derived(e);
557
+ e.equals(o) || (current_batch?.is_fork || (e.v = o), e.wv = increment_write_version()), !is_destroying_effect && (batch_values === null ? set_signal_status(e, e.f & 512 ? CLEAN : MAYBE_DIRTY) : (effect_tracking() || current_batch?.is_fork) && batch_values.set(e, o));
558
+ }
559
+ let eager_effects = /* @__PURE__ */ new Set();
560
+ const old_values = /* @__PURE__ */ new Map();
561
+ var eager_effects_deferred = !1;
562
+ function source(e, o) {
563
+ return {
564
+ f: 0,
565
+ v: e,
566
+ reactions: null,
567
+ equals,
568
+ rv: 0,
569
+ wv: 0
570
+ };
571
+ }
572
+ /* @__NO_SIDE_EFFECTS__ */
573
+ function state(e, o) {
574
+ let s = source(e, o);
575
+ return push_reaction_value(s), s;
576
+ }
577
+ /* @__NO_SIDE_EFFECTS__ */
578
+ function mutable_source(e, o = !1, c = !0) {
579
+ let l = source(e);
580
+ return o || (l.equals = safe_equals), legacy_mode_flag && c && component_context !== null && component_context.l !== null && (component_context.l.s ??= []).push(l), l;
581
+ }
582
+ function set(e, o, s = !1) {
583
+ return active_reaction !== null && (!untracking || active_reaction.f & 131072) && is_runes() && active_reaction.f & 4325394 && !current_sources?.includes(e) && state_unsafe_mutation(), internal_set(e, s ? proxy(o) : o);
584
+ }
585
+ function internal_set(e, o) {
586
+ if (!e.equals(o)) {
587
+ var s = e.v;
588
+ is_destroying_effect ? old_values.set(e, o) : old_values.set(e, s), e.v = o;
589
+ var c = Batch.ensure();
590
+ c.capture(e, s), e.f & 2 && (e.f & 2048 && execute_derived(e), set_signal_status(e, e.f & 512 ? CLEAN : MAYBE_DIRTY)), e.wv = increment_write_version(), mark_reactions(e, DIRTY), is_runes() && active_effect !== null && active_effect.f & 1024 && !(active_effect.f & 96) && (untracked_writes === null ? set_untracked_writes([e]) : untracked_writes.push(e)), !c.is_fork && eager_effects.size > 0 && !eager_effects_deferred && flush_eager_effects();
591
+ }
592
+ return o;
593
+ }
594
+ function flush_eager_effects() {
595
+ eager_effects_deferred = !1;
596
+ var e = is_updating_effect;
597
+ set_is_updating_effect(!0);
598
+ let o = Array.from(eager_effects);
599
+ try {
600
+ for (let e of o) e.f & 1024 && set_signal_status(e, MAYBE_DIRTY), is_dirty(e) && update_effect(e);
601
+ } finally {
602
+ set_is_updating_effect(e);
603
+ }
604
+ eager_effects.clear();
605
+ }
606
+ function increment(e) {
607
+ set(e, e.v + 1);
608
+ }
609
+ function mark_reactions(e, o) {
610
+ var s = e.reactions;
611
+ if (s !== null) for (var c = is_runes(), l = s.length, u = 0; u < l; u++) {
612
+ var d = s[u], f = d.f;
613
+ if (!(!c && d === active_effect)) {
614
+ var p = (f & DIRTY) === 0;
615
+ if (p && set_signal_status(d, o), f & 2) {
616
+ var m = d;
617
+ batch_values?.delete(m), f & 32768 || (f & 512 && (d.f |= WAS_MARKED), mark_reactions(m, MAYBE_DIRTY));
618
+ } else p && (f & 16 && eager_block_effects !== null && eager_block_effects.add(d), schedule_effect(d));
619
+ }
620
+ }
621
+ }
622
+ function proxy(e) {
623
+ if (typeof e != "object" || !e || STATE_SYMBOL in e) return e;
624
+ let o = get_prototype_of(e);
625
+ if (o !== object_prototype && o !== array_prototype) return e;
626
+ var s = /* @__PURE__ */ new Map(), c = is_array(e), l = /* @__PURE__ */ state(0), f = null, p = update_version, m = (e) => {
627
+ if (update_version === p) return e();
628
+ var o = active_reaction, s = update_version;
629
+ set_active_reaction(null), set_update_version(p);
630
+ var c = e();
631
+ return set_active_reaction(o), set_update_version(s), c;
632
+ };
633
+ return c && s.set("length", /* @__PURE__ */ state(e.length, f)), new Proxy(e, {
634
+ defineProperty(e, o, c) {
635
+ (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && state_descriptors_fixed();
636
+ var l = s.get(o);
637
+ return l === void 0 ? l = m(() => {
638
+ var e = /* @__PURE__ */ state(c.value, f);
639
+ return s.set(o, e), e;
640
+ }) : set(l, c.value, !0), !0;
641
+ },
642
+ deleteProperty(e, o) {
643
+ var c = s.get(o);
644
+ if (c === void 0) {
645
+ if (o in e) {
646
+ let e = m(() => /* @__PURE__ */ state(UNINITIALIZED, f));
647
+ s.set(o, e), increment(l);
648
+ }
649
+ } else set(c, UNINITIALIZED), increment(l);
650
+ return !0;
651
+ },
652
+ get(o, c, l) {
653
+ if (c === STATE_SYMBOL) return e;
654
+ var d = s.get(c), p = c in o;
655
+ if (d === void 0 && (!p || get_descriptor(o, c)?.writable) && (d = m(() => /* @__PURE__ */ state(proxy(p ? o[c] : UNINITIALIZED), f)), s.set(c, d)), d !== void 0) {
656
+ var g = get$1(d);
657
+ return g === UNINITIALIZED ? void 0 : g;
658
+ }
659
+ return Reflect.get(o, c, l);
660
+ },
661
+ getOwnPropertyDescriptor(e, o) {
662
+ var c = Reflect.getOwnPropertyDescriptor(e, o);
663
+ if (c && "value" in c) {
664
+ var l = s.get(o);
665
+ l && (c.value = get$1(l));
666
+ } else if (c === void 0) {
667
+ var d = s.get(o), f = d?.v;
668
+ if (d !== void 0 && f !== UNINITIALIZED) return {
669
+ enumerable: !0,
670
+ configurable: !0,
671
+ value: f,
672
+ writable: !0
673
+ };
674
+ }
675
+ return c;
676
+ },
677
+ has(e, o) {
678
+ if (o === STATE_SYMBOL) return !0;
679
+ var c = s.get(o), l = c !== void 0 && c.v !== UNINITIALIZED || Reflect.has(e, o);
680
+ return (c !== void 0 || active_effect !== null && (!l || get_descriptor(e, o)?.writable)) && (c === void 0 && (c = m(() => /* @__PURE__ */ state(l ? proxy(e[o]) : UNINITIALIZED, f)), s.set(o, c)), get$1(c) === UNINITIALIZED) ? !1 : l;
681
+ },
682
+ set(e, o, d, p) {
683
+ var g = s.get(o), _ = o in e;
684
+ if (c && o === "length") for (var v = d; v < g.v; v += 1) {
685
+ var y = s.get(v + "");
686
+ y === void 0 ? v in e && (y = m(() => /* @__PURE__ */ state(UNINITIALIZED, f)), s.set(v + "", y)) : set(y, UNINITIALIZED);
687
+ }
688
+ if (g === void 0) (!_ || get_descriptor(e, o)?.writable) && (g = m(() => /* @__PURE__ */ state(void 0, f)), set(g, proxy(d)), s.set(o, g));
689
+ else {
690
+ _ = g.v !== UNINITIALIZED;
691
+ var b = m(() => proxy(d));
692
+ set(g, b);
693
+ }
694
+ var x = Reflect.getOwnPropertyDescriptor(e, o);
695
+ if (x?.set && x.set.call(p, d), !_) {
696
+ if (c && typeof o == "string") {
697
+ var S = s.get("length"), C = Number(o);
698
+ Number.isInteger(C) && C >= S.v && set(S, C + 1);
699
+ }
700
+ increment(l);
701
+ }
702
+ return !0;
703
+ },
704
+ ownKeys(e) {
705
+ get$1(l);
706
+ var o = Reflect.ownKeys(e).filter((e) => {
707
+ var o = s.get(e);
708
+ return o === void 0 || o.v !== UNINITIALIZED;
709
+ });
710
+ for (var [c, d] of s) d.v !== UNINITIALIZED && !(c in e) && o.push(c);
711
+ return o;
712
+ },
713
+ setPrototypeOf() {
714
+ state_prototype_fixed();
715
+ }
716
+ });
717
+ }
718
+ var is_firefox, first_child_getter, next_sibling_getter;
719
+ function create_text(e = "") {
720
+ return document.createTextNode(e);
721
+ }
722
+ /* @__NO_SIDE_EFFECTS__ */
723
+ function get_first_child(e) {
724
+ return first_child_getter.call(e);
725
+ }
726
+ /* @__NO_SIDE_EFFECTS__ */
727
+ function get_next_sibling(e) {
728
+ return next_sibling_getter.call(e);
729
+ }
730
+ function child(e, o) {
731
+ if (!hydrating) return /* @__PURE__ */ get_first_child(e);
732
+ var s = /* @__PURE__ */ get_first_child(hydrate_node);
733
+ if (s === null) s = hydrate_node.appendChild(create_text());
734
+ else if (o && s.nodeType !== 3) {
735
+ var c = create_text();
736
+ return s?.before(c), set_hydrate_node(c), c;
737
+ }
738
+ return set_hydrate_node(s), s;
739
+ }
740
+ function first_child(e, o = !1) {
741
+ if (!hydrating) {
742
+ var s = /* @__PURE__ */ get_first_child(e);
743
+ return s instanceof Comment && s.data === "" ? /* @__PURE__ */ get_next_sibling(s) : s;
744
+ }
745
+ if (o && hydrate_node?.nodeType !== 3) {
746
+ var c = create_text();
747
+ return hydrate_node?.before(c), set_hydrate_node(c), c;
748
+ }
749
+ return hydrate_node;
750
+ }
751
+ function sibling(e, o = 1, s = !1) {
752
+ let c = hydrating ? hydrate_node : e;
753
+ for (var l; o--;) l = c, c = /* @__PURE__ */ get_next_sibling(c);
754
+ if (!hydrating) return c;
755
+ if (s && c?.nodeType !== 3) {
756
+ var u = create_text();
757
+ return c === null ? l?.after(u) : c.before(u), set_hydrate_node(u), u;
758
+ }
759
+ return set_hydrate_node(c), c;
760
+ }
761
+ function clear_text_content(e) {
762
+ e.textContent = "";
763
+ }
764
+ function should_defer_append() {
765
+ return !1;
766
+ }
767
+ function remove_textarea_child(e) {
768
+ hydrating && /* @__PURE__ */ get_first_child(e) !== null && clear_text_content(e);
769
+ }
770
+ var listening_to_form_reset = !1;
771
+ function add_form_reset_listener() {
772
+ listening_to_form_reset || (listening_to_form_reset = !0, document.addEventListener("reset", (e) => {
773
+ Promise.resolve().then(() => {
774
+ if (!e.defaultPrevented) for (let o of e.target.elements) o.__on_r?.();
775
+ });
776
+ }, { capture: !0 }));
777
+ }
778
+ function without_reactive_context(e) {
779
+ var o = active_reaction, s = active_effect;
780
+ set_active_reaction(null), set_active_effect(null);
781
+ try {
782
+ return e();
783
+ } finally {
784
+ set_active_reaction(o), set_active_effect(s);
785
+ }
786
+ }
787
+ function listen_to_event_and_reset_event(e, o, s, c = s) {
788
+ e.addEventListener(o, () => without_reactive_context(s));
789
+ let l = e.__on_r;
790
+ l ? e.__on_r = () => {
791
+ l(), c(!0);
792
+ } : e.__on_r = () => c(!0), add_form_reset_listener();
793
+ }
794
+ function validate_effect(e) {
795
+ active_effect === null && (active_reaction === null && effect_orphan(e), effect_in_unowned_derived()), is_destroying_effect && effect_in_teardown(e);
796
+ }
797
+ function push_effect(e, o) {
798
+ var s = o.last;
799
+ s === null ? o.last = o.first = e : (s.next = e, e.prev = s, o.last = e);
800
+ }
801
+ function create_effect(e, o, s) {
802
+ var c = active_effect;
803
+ c !== null && c.f & 8192 && (e |= INERT);
804
+ var l = {
805
+ ctx: component_context,
806
+ deps: null,
807
+ nodes: null,
808
+ f: e | 2560,
809
+ first: null,
810
+ fn: o,
811
+ last: null,
812
+ next: null,
813
+ parent: c,
814
+ b: c && c.b,
815
+ prev: null,
816
+ teardown: null,
817
+ wv: 0,
818
+ ac: null
819
+ };
820
+ if (s) try {
821
+ update_effect(l), l.f |= 32768;
822
+ } catch (e) {
823
+ throw destroy_effect(l), e;
824
+ }
825
+ else o !== null && schedule_effect(l);
826
+ var u = l;
827
+ if (s && u.deps === null && u.teardown === null && u.nodes === null && u.first === u.last && !(u.f & 524288) && (u = u.first, e & 16 && e & 65536 && u !== null && (u.f |= EFFECT_TRANSPARENT)), u !== null && (u.parent = c, c !== null && push_effect(u, c), active_reaction !== null && active_reaction.f & 2 && !(e & 64))) {
828
+ var d = active_reaction;
829
+ (d.effects ??= []).push(u);
830
+ }
831
+ return l;
832
+ }
833
+ function effect_tracking() {
834
+ return active_reaction !== null && !untracking;
835
+ }
836
+ function teardown(e) {
837
+ let o = create_effect(8, null, !1);
838
+ return set_signal_status(o, CLEAN), o.teardown = e, o;
839
+ }
840
+ function user_effect(e) {
841
+ validate_effect("$effect");
842
+ var o = active_effect.f;
843
+ if (!active_reaction && o & 32 && !(o & 32768)) {
844
+ var s = component_context;
845
+ (s.e ??= []).push(e);
846
+ } else return create_user_effect(e);
847
+ }
848
+ function create_user_effect(e) {
849
+ return create_effect(4 | USER_EFFECT, e, !1);
850
+ }
851
+ function user_pre_effect(e) {
852
+ return validate_effect("$effect.pre"), create_effect(8 | USER_EFFECT, e, !0);
853
+ }
854
+ function effect(e) {
855
+ return create_effect(4, e, !1);
856
+ }
857
+ function legacy_pre_effect(e, o) {
858
+ var s = component_context, c = {
859
+ effect: null,
860
+ ran: !1,
861
+ deps: e
862
+ };
863
+ s.l.$.push(c), c.effect = render_effect(() => {
864
+ e(), !c.ran && (c.ran = !0, untrack(o));
865
+ });
866
+ }
867
+ function legacy_pre_effect_reset() {
868
+ var e = component_context;
869
+ render_effect(() => {
870
+ for (var o of e.l.$) {
871
+ o.deps();
872
+ var s = o.effect;
873
+ s.f & 1024 && set_signal_status(s, MAYBE_DIRTY), is_dirty(s) && update_effect(s), o.ran = !1;
874
+ }
875
+ });
876
+ }
877
+ function async_effect(e) {
878
+ return create_effect(4194304 | EFFECT_PRESERVED, e, !0);
879
+ }
880
+ function render_effect(e, o = 0) {
881
+ return create_effect(8 | o, e, !0);
882
+ }
883
+ function template_effect(e, o = [], s = [], c = []) {
884
+ flatten(c, o, s, (o) => {
885
+ create_effect(8, () => e(...o.map(get$1)), !0);
886
+ });
887
+ }
888
+ function block(e, o = 0) {
889
+ return create_effect(16 | o, e, !0);
890
+ }
891
+ function branch(e) {
892
+ return create_effect(32 | EFFECT_PRESERVED, e, !0);
893
+ }
894
+ function execute_effect_teardown(e) {
895
+ var o = e.teardown;
896
+ if (o !== null) {
897
+ let e = is_destroying_effect, s = active_reaction;
898
+ set_is_destroying_effect(!0), set_active_reaction(null);
899
+ try {
900
+ o.call(null);
901
+ } finally {
902
+ set_is_destroying_effect(e), set_active_reaction(s);
903
+ }
904
+ }
905
+ }
906
+ function destroy_effect_children(e, o = !1) {
907
+ var s = e.first;
908
+ for (e.first = e.last = null; s !== null;) {
909
+ let e = s.ac;
910
+ e !== null && without_reactive_context(() => {
911
+ e.abort(STALE_REACTION);
912
+ });
913
+ var c = s.next;
914
+ s.f & 64 ? s.parent = null : destroy_effect(s, o), s = c;
915
+ }
916
+ }
917
+ function destroy_block_effect_children(e) {
918
+ for (var o = e.first; o !== null;) {
919
+ var s = o.next;
920
+ o.f & 32 || destroy_effect(o), o = s;
921
+ }
922
+ }
923
+ function destroy_effect(e, o = !0) {
924
+ var s = !1;
925
+ (o || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (remove_effect_dom(e.nodes.start, e.nodes.end), s = !0), destroy_effect_children(e, o && !s), remove_reactions(e, 0), set_signal_status(e, 16384);
926
+ var c = e.nodes && e.nodes.t;
927
+ if (c !== null) for (let e of c) e.stop();
928
+ execute_effect_teardown(e);
929
+ var l = e.parent;
930
+ l !== null && l.first !== null && unlink_effect(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
931
+ }
932
+ function remove_effect_dom(e, o) {
933
+ for (; e !== null;) {
934
+ var s = e === o ? null : /* @__PURE__ */ get_next_sibling(e);
935
+ e.remove(), e = s;
936
+ }
937
+ }
938
+ function unlink_effect(e) {
939
+ var o = e.parent, s = e.prev, c = e.next;
940
+ s !== null && (s.next = c), c !== null && (c.prev = s), o !== null && (o.first === e && (o.first = c), o.last === e && (o.last = s));
941
+ }
942
+ function pause_effect(e, o, s = !0) {
943
+ var c = [];
944
+ pause_children(e, c, !0);
945
+ var l = () => {
946
+ s && destroy_effect(e), o && o();
947
+ }, u = c.length;
948
+ if (u > 0) {
949
+ var d = () => --u || l();
950
+ for (var f of c) f.out(d);
951
+ } else l();
952
+ }
953
+ function pause_children(e, o, s) {
954
+ if (!(e.f & 8192)) {
955
+ e.f ^= INERT;
956
+ var c = e.nodes && e.nodes.t;
957
+ if (c !== null) for (let e of c) (e.is_global || s) && o.push(e);
958
+ for (var l = e.first; l !== null;) {
959
+ var u = l.next, d = (l.f & 65536) != 0 || (l.f & 32) != 0 && (e.f & 16) != 0;
960
+ pause_children(l, o, d ? s : !1), l = u;
961
+ }
962
+ }
963
+ }
964
+ function resume_effect(e) {
965
+ resume_children(e, !0);
966
+ }
967
+ function resume_children(e, o) {
968
+ if (e.f & 8192) {
969
+ e.f ^= INERT, e.f & 1024 || (set_signal_status(e, DIRTY), schedule_effect(e));
970
+ for (var s = e.first; s !== null;) {
971
+ var c = s.next, l = (s.f & 65536) != 0 || (s.f & 32) != 0;
972
+ resume_children(s, l ? o : !1), s = c;
973
+ }
974
+ var u = e.nodes && e.nodes.t;
975
+ if (u !== null) for (let e of u) (e.is_global || o) && e.in();
976
+ }
977
+ }
978
+ function move_effect(e, o) {
979
+ if (e.nodes) for (var s = e.nodes.start, c = e.nodes.end; s !== null;) {
980
+ var l = s === c ? null : /* @__PURE__ */ get_next_sibling(s);
981
+ o.append(s), s = l;
982
+ }
983
+ }
984
+ let is_updating_effect = !1;
985
+ function set_is_updating_effect(e) {
986
+ is_updating_effect = e;
987
+ }
988
+ let is_destroying_effect = !1;
989
+ function set_is_destroying_effect(e) {
990
+ is_destroying_effect = e;
991
+ }
992
+ let active_reaction = null, untracking = !1;
993
+ function set_active_reaction(e) {
994
+ active_reaction = e;
995
+ }
996
+ let active_effect = null;
997
+ function set_active_effect(e) {
998
+ active_effect = e;
999
+ }
1000
+ let current_sources = null;
1001
+ function push_reaction_value(e) {
1002
+ active_reaction !== null && (current_sources === null ? current_sources = [e] : current_sources.push(e));
1003
+ }
1004
+ var new_deps = null, skipped_deps = 0;
1005
+ let untracked_writes = null;
1006
+ function set_untracked_writes(e) {
1007
+ untracked_writes = e;
1008
+ }
1009
+ let write_version = 1;
1010
+ var read_version = 0;
1011
+ let update_version = read_version;
1012
+ function set_update_version(e) {
1013
+ update_version = e;
1014
+ }
1015
+ function increment_write_version() {
1016
+ return ++write_version;
1017
+ }
1018
+ function is_dirty(e) {
1019
+ var o = e.f;
1020
+ if (o & 2048) return !0;
1021
+ if (o & 2 && (e.f &= ~WAS_MARKED), o & 4096) {
1022
+ var s = e.deps;
1023
+ if (s !== null) for (var c = s.length, l = 0; l < c; l++) {
1024
+ var u = s[l];
1025
+ if (is_dirty(u) && update_derived(u), u.wv > e.wv) return !0;
1026
+ }
1027
+ o & 512 && batch_values === null && set_signal_status(e, CLEAN);
1028
+ }
1029
+ return !1;
1030
+ }
1031
+ function schedule_possible_effect_self_invalidation(e, o, s = !0) {
1032
+ var c = e.reactions;
1033
+ if (c !== null && !current_sources?.includes(e)) for (var l = 0; l < c.length; l++) {
1034
+ var u = c[l];
1035
+ u.f & 2 ? schedule_possible_effect_self_invalidation(u, o, !1) : o === u && (s ? set_signal_status(u, DIRTY) : u.f & 1024 && set_signal_status(u, MAYBE_DIRTY), schedule_effect(u));
1036
+ }
1037
+ }
1038
+ function update_reaction(e) {
1039
+ var o = new_deps, s = skipped_deps, c = untracked_writes, l = active_reaction, u = current_sources, d = component_context, f = untracking, p = update_version, m = e.f;
1040
+ new_deps = null, skipped_deps = 0, untracked_writes = null, active_reaction = m & 96 ? null : e, current_sources = null, set_component_context(e.ctx), untracking = !1, update_version = ++read_version, e.ac !== null && (without_reactive_context(() => {
1041
+ e.ac.abort(STALE_REACTION);
1042
+ }), e.ac = null);
1043
+ try {
1044
+ e.f |= REACTION_IS_UPDATING;
1045
+ var h = e.fn, g = h(), _ = e.deps;
1046
+ if (new_deps !== null) {
1047
+ var v;
1048
+ if (remove_reactions(e, skipped_deps), _ !== null && skipped_deps > 0) for (_.length = skipped_deps + new_deps.length, v = 0; v < new_deps.length; v++) _[skipped_deps + v] = new_deps[v];
1049
+ else e.deps = _ = new_deps;
1050
+ if (effect_tracking() && e.f & 512) for (v = skipped_deps; v < _.length; v++) (_[v].reactions ??= []).push(e);
1051
+ } else _ !== null && skipped_deps < _.length && (remove_reactions(e, skipped_deps), _.length = skipped_deps);
1052
+ if (is_runes() && untracked_writes !== null && !untracking && _ !== null && !(e.f & 6146)) for (v = 0; v < untracked_writes.length; v++) schedule_possible_effect_self_invalidation(untracked_writes[v], e);
1053
+ return l !== null && l !== e && (read_version++, untracked_writes !== null && (c === null ? c = untracked_writes : c.push(...untracked_writes))), e.f & 8388608 && (e.f ^= ERROR_VALUE), g;
1054
+ } catch (e) {
1055
+ return handle_error(e);
1056
+ } finally {
1057
+ e.f ^= REACTION_IS_UPDATING, new_deps = o, skipped_deps = s, untracked_writes = c, active_reaction = l, current_sources = u, set_component_context(d), untracking = f, update_version = p;
1058
+ }
1059
+ }
1060
+ function remove_reaction(e, o) {
1061
+ let s = o.reactions;
1062
+ if (s !== null) {
1063
+ var c = index_of.call(s, e);
1064
+ if (c !== -1) {
1065
+ var l = s.length - 1;
1066
+ l === 0 ? s = o.reactions = null : (s[c] = s[l], s.pop());
1067
+ }
1068
+ }
1069
+ s === null && o.f & 2 && (new_deps === null || !new_deps.includes(o)) && (set_signal_status(o, MAYBE_DIRTY), o.f & 512 && (o.f ^= 512, o.f &= ~WAS_MARKED), destroy_derived_effects(o), remove_reactions(o, 0));
1070
+ }
1071
+ function remove_reactions(e, o) {
1072
+ var s = e.deps;
1073
+ if (s !== null) for (var c = o; c < s.length; c++) remove_reaction(e, s[c]);
1074
+ }
1075
+ function update_effect(e) {
1076
+ var o = e.f;
1077
+ if (!(o & 16384)) {
1078
+ set_signal_status(e, CLEAN);
1079
+ var s = active_effect, c = is_updating_effect;
1080
+ active_effect = e, is_updating_effect = !0;
1081
+ try {
1082
+ o & 16777232 ? destroy_block_effect_children(e) : destroy_effect_children(e), execute_effect_teardown(e);
1083
+ var l = update_reaction(e);
1084
+ e.teardown = typeof l == "function" ? l : null, e.wv = write_version;
1085
+ } finally {
1086
+ is_updating_effect = c, active_effect = s;
1087
+ }
1088
+ }
1089
+ }
1090
+ async function tick$1() {
1091
+ await Promise.resolve(), flushSync();
1092
+ }
1093
+ function get$1(e) {
1094
+ var o = (e.f & 2) != 0;
1095
+ if (null?.add(e), active_reaction !== null && !untracking && !(active_effect !== null && active_effect.f & 16384) && !current_sources?.includes(e)) {
1096
+ var s = active_reaction.deps;
1097
+ if (active_reaction.f & 2097152) e.rv < read_version && (e.rv = read_version, new_deps === null && s !== null && s[skipped_deps] === e ? skipped_deps++ : new_deps === null ? new_deps = [e] : new_deps.includes(e) || new_deps.push(e));
1098
+ else {
1099
+ (active_reaction.deps ??= []).push(e);
1100
+ var c = e.reactions;
1101
+ c === null ? e.reactions = [active_reaction] : c.includes(active_reaction) || c.push(active_reaction);
1102
+ }
1103
+ }
1104
+ if (is_destroying_effect) {
1105
+ if (old_values.has(e)) return old_values.get(e);
1106
+ if (o) {
1107
+ var l = e, u = l.v;
1108
+ return (!(l.f & 1024) && l.reactions !== null || depends_on_old_values(l)) && (u = execute_derived(l)), old_values.set(l, u), u;
1109
+ }
1110
+ } else o && (!batch_values?.has(e) || current_batch?.is_fork && !effect_tracking()) && (l = e, is_dirty(l) && update_derived(l), is_updating_effect && effect_tracking() && !(l.f & 512) && reconnect(l));
1111
+ if (batch_values?.has(e)) return batch_values.get(e);
1112
+ if (e.f & 8388608) throw e.v;
1113
+ return e.v;
1114
+ }
1115
+ function reconnect(e) {
1116
+ if (e.deps !== null) {
1117
+ e.f ^= 512;
1118
+ for (let o of e.deps) (o.reactions ??= []).push(e), o.f & 2 && !(o.f & 512) && reconnect(o);
1119
+ }
1120
+ }
1121
+ function depends_on_old_values(e) {
1122
+ if (e.v === UNINITIALIZED) return !0;
1123
+ if (e.deps === null) return !1;
1124
+ for (let o of e.deps) if (old_values.has(o) || o.f & 2 && depends_on_old_values(o)) return !0;
1125
+ return !1;
1126
+ }
1127
+ function untrack(e) {
1128
+ var o = untracking;
1129
+ try {
1130
+ return untracking = !0, e();
1131
+ } finally {
1132
+ untracking = o;
1133
+ }
1134
+ }
1135
+ var STATUS_MASK = ~(MAYBE_DIRTY | 3072);
1136
+ function set_signal_status(e, o) {
1137
+ e.f = e.f & STATUS_MASK | o;
1138
+ }
1139
+ function deep_read_state(e) {
1140
+ if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1141
+ if (STATE_SYMBOL in e) deep_read(e);
1142
+ else if (!Array.isArray(e)) for (let o in e) {
1143
+ let s = e[o];
1144
+ typeof s == "object" && s && STATE_SYMBOL in s && deep_read(s);
1145
+ }
1146
+ }
1147
+ }
1148
+ function deep_read(e, o = /* @__PURE__ */ new Set()) {
1149
+ if (typeof e == "object" && e && !(e instanceof EventTarget) && !o.has(e)) {
1150
+ for (let s in o.add(e), e instanceof Date && e.getTime(), e) try {
1151
+ deep_read(e[s], o);
1152
+ } catch {}
1153
+ let s = get_prototype_of(e);
1154
+ if (s !== Object.prototype && s !== Array.prototype && s !== Map.prototype && s !== Set.prototype && s !== Date.prototype) {
1155
+ let o = get_descriptors(s);
1156
+ for (let s in o) {
1157
+ let c = o[s].get;
1158
+ if (c) try {
1159
+ c.call(e);
1160
+ } catch {}
1161
+ }
1162
+ }
1163
+ }
1164
+ }
1165
+ function create_event(e, o, s, c = {}) {
1166
+ function l(e) {
1167
+ if (c.capture || handle_event_propagation.call(o, e), !e.cancelBubble) return without_reactive_context(() => s?.call(this, e));
1168
+ }
1169
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? queue_micro_task(() => {
1170
+ o.addEventListener(e, l, c);
1171
+ }) : o.addEventListener(e, l, c), l;
1172
+ }
1173
+ function event(e, o, s, c, l) {
1174
+ var u = {
1175
+ capture: c,
1176
+ passive: l
1177
+ }, d = create_event(e, o, s, u);
1178
+ (o === document.body || o === window || o === document || o instanceof HTMLMediaElement) && teardown(() => {
1179
+ o.removeEventListener(e, d, u);
1180
+ });
1181
+ }
1182
+ var last_propagated_event = null;
1183
+ function handle_event_propagation(e) {
1184
+ var o = this, s = o.ownerDocument, c = e.type, l = e.composedPath?.() || [], u = l[0] || e.target;
1185
+ last_propagated_event = e;
1186
+ var d = 0, f = last_propagated_event === e && e.__root;
1187
+ if (f) {
1188
+ var p = l.indexOf(f);
1189
+ if (p !== -1 && (o === document || o === window)) {
1190
+ e.__root = o;
1191
+ return;
1192
+ }
1193
+ var h = l.indexOf(o);
1194
+ if (h === -1) return;
1195
+ p <= h && (d = p);
1196
+ }
1197
+ if (u = l[d] || e.target, u !== o) {
1198
+ define_property(e, "currentTarget", {
1199
+ configurable: !0,
1200
+ get() {
1201
+ return u || s;
1202
+ }
1203
+ });
1204
+ var g = active_reaction, _ = active_effect;
1205
+ set_active_reaction(null), set_active_effect(null);
1206
+ try {
1207
+ for (var v, y = []; u !== null;) {
1208
+ var b = u.assignedSlot || u.parentNode || u.host || null;
1209
+ try {
1210
+ var x = u["__" + c];
1211
+ x != null && (!u.disabled || e.target === u) && x.call(u, e);
1212
+ } catch (e) {
1213
+ v ? y.push(e) : v = e;
1214
+ }
1215
+ if (e.cancelBubble || b === o || b === null) break;
1216
+ u = b;
1217
+ }
1218
+ if (v) {
1219
+ for (let e of y) queueMicrotask(() => {
1220
+ throw e;
1221
+ });
1222
+ throw v;
1223
+ }
1224
+ } finally {
1225
+ e.__root = o, delete e.currentTarget, set_active_reaction(g), set_active_effect(_);
1226
+ }
1227
+ }
1228
+ }
1229
+ function create_fragment_from_html(e) {
1230
+ var o = document.createElement("template");
1231
+ return o.innerHTML = e.replaceAll("<!>", "<!---->"), o.content;
1232
+ }
1233
+ function assign_nodes(e, o) {
1234
+ var s = active_effect;
1235
+ s.nodes === null && (s.nodes = {
1236
+ start: e,
1237
+ end: o,
1238
+ a: null,
1239
+ t: null
1240
+ });
1241
+ }
1242
+ /* @__NO_SIDE_EFFECTS__ */
1243
+ function from_html(e, o) {
1244
+ var s = (o & 1) != 0, c = (o & 2) != 0, l, u = !e.startsWith("<!>");
1245
+ return () => {
1246
+ if (hydrating) return assign_nodes(hydrate_node, null), hydrate_node;
1247
+ l === void 0 && (l = create_fragment_from_html(u ? e : "<!>" + e), s || (l = /* @__PURE__ */ get_first_child(l)));
1248
+ var o = c || is_firefox ? document.importNode(l, !0) : l.cloneNode(!0);
1249
+ if (s) {
1250
+ var d = /* @__PURE__ */ get_first_child(o), f = o.lastChild;
1251
+ assign_nodes(d, f);
1252
+ } else assign_nodes(o, o);
1253
+ return o;
1254
+ };
1255
+ }
1256
+ function comment() {
1257
+ if (hydrating) return assign_nodes(hydrate_node, null), hydrate_node;
1258
+ var e = document.createDocumentFragment(), o = document.createComment(""), s = create_text();
1259
+ return e.append(o, s), assign_nodes(o, s), e;
1260
+ }
1261
+ function append(e, o) {
1262
+ if (hydrating) {
1263
+ var s = active_effect;
1264
+ (!(s.f & 32768) || s.nodes.end === null) && (s.nodes.end = hydrate_node), hydrate_next();
1265
+ return;
1266
+ }
1267
+ e !== null && e.before(o);
1268
+ }
1269
+ [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
1270
+ function set_text(e, o) {
1271
+ var s = o == null ? "" : typeof o == "object" ? o + "" : o;
1272
+ s !== (e.__t ??= e.nodeValue) && (e.__t = s, e.nodeValue = s + "");
1273
+ }
1274
+ var BranchManager = class {
1275
+ anchor;
1276
+ #e = /* @__PURE__ */ new Map();
1277
+ #t = /* @__PURE__ */ new Map();
1278
+ #n = /* @__PURE__ */ new Map();
1279
+ #r = /* @__PURE__ */ new Set();
1280
+ #i = !0;
1281
+ constructor(e, o = !0) {
1282
+ this.anchor = e, this.#i = o;
1283
+ }
1284
+ #a = () => {
1285
+ var e = current_batch;
1286
+ if (this.#e.has(e)) {
1287
+ var o = this.#e.get(e), s = this.#t.get(o);
1288
+ if (s) resume_effect(s), this.#r.delete(o);
1289
+ else {
1290
+ var c = this.#n.get(o);
1291
+ c && (this.#t.set(o, c.effect), this.#n.delete(o), c.fragment.lastChild.remove(), this.anchor.before(c.fragment), s = c.effect);
1292
+ }
1293
+ for (let [o, s] of this.#e) {
1294
+ if (this.#e.delete(o), o === e) break;
1295
+ let c = this.#n.get(s);
1296
+ c && (destroy_effect(c.effect), this.#n.delete(s));
1297
+ }
1298
+ for (let [e, c] of this.#t) {
1299
+ if (e === o || this.#r.has(e)) continue;
1300
+ let l = () => {
1301
+ if (Array.from(this.#e.values()).includes(e)) {
1302
+ var o = document.createDocumentFragment();
1303
+ move_effect(c, o), o.append(create_text()), this.#n.set(e, {
1304
+ effect: c,
1305
+ fragment: o
1306
+ });
1307
+ } else destroy_effect(c);
1308
+ this.#r.delete(e), this.#t.delete(e);
1309
+ };
1310
+ this.#i || !s ? (this.#r.add(e), pause_effect(c, l, !1)) : l();
1311
+ }
1312
+ }
1313
+ };
1314
+ #o = (e) => {
1315
+ this.#e.delete(e);
1316
+ let o = Array.from(this.#e.values());
1317
+ for (let [e, s] of this.#n) o.includes(e) || (destroy_effect(s.effect), this.#n.delete(e));
1318
+ };
1319
+ ensure(e, o) {
1320
+ var s = current_batch, c = should_defer_append();
1321
+ if (o && !this.#t.has(e) && !this.#n.has(e)) if (c) {
1322
+ var l = document.createDocumentFragment(), u = create_text();
1323
+ l.append(u), this.#n.set(e, {
1324
+ effect: branch(() => o(u)),
1325
+ fragment: l
1326
+ });
1327
+ } else this.#t.set(e, branch(() => o(this.anchor)));
1328
+ if (this.#e.set(s, e), c) {
1329
+ for (let [o, c] of this.#t) o === e ? s.skipped_effects.delete(c) : s.skipped_effects.add(c);
1330
+ for (let [o, c] of this.#n) o === e ? s.skipped_effects.delete(c.effect) : s.skipped_effects.add(c.effect);
1331
+ s.oncommit(this.#a), s.ondiscard(this.#o);
1332
+ } else hydrating && (this.anchor = hydrate_node), this.#a();
1333
+ }
1334
+ };
1335
+ function if_block(e, o, s = !1) {
1336
+ hydrating && hydrate_next();
1337
+ var c = new BranchManager(e), l = s ? EFFECT_TRANSPARENT : 0;
1338
+ function u(o, s) {
1339
+ if (hydrating && o === (read_hydration_instruction(e) === "[!")) {
1340
+ var l = skip_nodes();
1341
+ set_hydrate_node(l), c.anchor = l, set_hydrating(!1), c.ensure(o, s), set_hydrating(!0);
1342
+ return;
1343
+ }
1344
+ c.ensure(o, s);
1345
+ }
1346
+ block(() => {
1347
+ var e = !1;
1348
+ o((o, s = !0) => {
1349
+ e = !0, u(s, o);
1350
+ }), e || u(!1, null);
1351
+ }, l);
1352
+ }
1353
+ function index(e, o) {
1354
+ return o;
1355
+ }
1356
+ function pause_effects(e, o, s) {
1357
+ for (var c = [], l = o.length, u, d = o.length, f = 0; f < l; f++) {
1358
+ let s = o[f];
1359
+ pause_effect(s, () => {
1360
+ if (u) {
1361
+ if (u.pending.delete(s), u.done.add(s), u.pending.size === 0) {
1362
+ var o = e.outrogroups;
1363
+ destroy_effects(array_from(u.done)), o.delete(u), o.size === 0 && (e.outrogroups = null);
1364
+ }
1365
+ } else --d;
1366
+ }, !1);
1367
+ }
1368
+ if (d === 0) {
1369
+ var m = c.length === 0 && s !== null;
1370
+ if (m) {
1371
+ var h = s, g = h.parentNode;
1372
+ clear_text_content(g), g.append(h), e.items.clear();
1373
+ }
1374
+ destroy_effects(o, !m);
1375
+ } else u = {
1376
+ pending: new Set(o),
1377
+ done: /* @__PURE__ */ new Set()
1378
+ }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(u);
1379
+ }
1380
+ function destroy_effects(e, o = !0) {
1381
+ for (var s = 0; s < e.length; s++) destroy_effect(e[s], o);
1382
+ }
1383
+ var offscreen_anchor;
1384
+ function each(e, o, s, c, l, u = null) {
1385
+ var f = e, m = /* @__PURE__ */ new Map();
1386
+ if (o & 4) {
1387
+ var h = e;
1388
+ f = hydrating ? set_hydrate_node(/* @__PURE__ */ get_first_child(h)) : h.appendChild(create_text());
1389
+ }
1390
+ hydrating && hydrate_next();
1391
+ var g = null, _ = /* @__PURE__ */ derived_safe_equal(() => {
1392
+ var e = s();
1393
+ return is_array(e) ? e : e == null ? [] : array_from(e);
1394
+ }), v, y = !0;
1395
+ function b() {
1396
+ x.fallback = g, reconcile(x, v, f, o, c), g !== null && (v.length === 0 ? g.f & 33554432 ? (g.f ^= EFFECT_OFFSCREEN, move(g, null, f)) : resume_effect(g) : pause_effect(g, () => {
1397
+ g = null;
1398
+ }));
1399
+ }
1400
+ var x = {
1401
+ effect: block(() => {
1402
+ v = get$1(_);
1403
+ var e = v.length;
1404
+ let d = !1;
1405
+ hydrating && read_hydration_instruction(f) === "[!" != (e === 0) && (f = skip_nodes(), set_hydrate_node(f), set_hydrating(!1), d = !0);
1406
+ for (var p = /* @__PURE__ */ new Set(), h = current_batch, x = should_defer_append(), S = 0; S < e; S += 1) {
1407
+ hydrating && hydrate_node.nodeType === 8 && hydrate_node.data === "]" && (f = hydrate_node, d = !0, set_hydrating(!1));
1408
+ var C = v[S], w = c(C, S), T = y ? null : m.get(w);
1409
+ T ? (T.v && internal_set(T.v, C), T.i && internal_set(T.i, S), x && h.skipped_effects.delete(T.e)) : (T = create_item(m, y ? f : offscreen_anchor ??= create_text(), C, w, S, l, o, s), y || (T.e.f |= EFFECT_OFFSCREEN), m.set(w, T)), p.add(w);
1410
+ }
1411
+ if (e === 0 && u && !g && (y ? g = branch(() => u(f)) : (g = branch(() => u(offscreen_anchor ??= create_text())), g.f |= EFFECT_OFFSCREEN)), hydrating && e > 0 && set_hydrate_node(skip_nodes()), !y) if (x) {
1412
+ for (let [e, o] of m) p.has(e) || h.skipped_effects.add(o.e);
1413
+ h.oncommit(b), h.ondiscard(() => {});
1414
+ } else b();
1415
+ d && set_hydrating(!0), get$1(_);
1416
+ }),
1417
+ flags: o,
1418
+ items: m,
1419
+ outrogroups: null,
1420
+ fallback: g
1421
+ };
1422
+ y = !1, hydrating && (f = hydrate_node);
1423
+ }
1424
+ function reconcile(e, o, s, c, l) {
1425
+ var u = (c & 8) != 0, d = o.length, f = e.items, m = e.effect.first, h, g = null, _, v = [], y = [], b, x, S, C;
1426
+ if (u) for (C = 0; C < d; C += 1) b = o[C], x = l(b, C), S = f.get(x).e, S.f & 33554432 || (S.nodes?.a?.measure(), (_ ??= /* @__PURE__ */ new Set()).add(S));
1427
+ for (C = 0; C < d; C += 1) {
1428
+ if (b = o[C], x = l(b, C), S = f.get(x).e, e.outrogroups !== null) for (let o of e.outrogroups) o.pending.delete(S), o.done.delete(S);
1429
+ if (S.f & 33554432) if (S.f ^= EFFECT_OFFSCREEN, S === m) move(S, null, s);
1430
+ else {
1431
+ var w = g ? g.next : m;
1432
+ S === e.effect.last && (e.effect.last = S.prev), S.prev && (S.prev.next = S.next), S.next && (S.next.prev = S.prev), link(e, g, S), link(e, S, w), move(S, w, s), g = S, v = [], y = [], m = g.next;
1433
+ continue;
1434
+ }
1435
+ if (S.f & 8192 && (resume_effect(S), u && (S.nodes?.a?.unfix(), (_ ??= /* @__PURE__ */ new Set()).delete(S))), S !== m) {
1436
+ if (h !== void 0 && h.has(S)) {
1437
+ if (v.length < y.length) {
1438
+ var T = y[0], E;
1439
+ g = T.prev;
1440
+ var D = v[0], O = v[v.length - 1];
1441
+ for (E = 0; E < v.length; E += 1) move(v[E], T, s);
1442
+ for (E = 0; E < y.length; E += 1) h.delete(y[E]);
1443
+ link(e, D.prev, O.next), link(e, g, D), link(e, O, T), m = T, g = O, --C, v = [], y = [];
1444
+ } else h.delete(S), move(S, m, s), link(e, S.prev, S.next), link(e, S, g === null ? e.effect.first : g.next), link(e, g, S), g = S;
1445
+ continue;
1446
+ }
1447
+ for (v = [], y = []; m !== null && m !== S;) (h ??= /* @__PURE__ */ new Set()).add(m), y.push(m), m = m.next;
1448
+ if (m === null) continue;
1449
+ }
1450
+ S.f & 33554432 || v.push(S), g = S, m = S.next;
1451
+ }
1452
+ if (e.outrogroups !== null) {
1453
+ for (let o of e.outrogroups) o.pending.size === 0 && (destroy_effects(array_from(o.done)), e.outrogroups?.delete(o));
1454
+ e.outrogroups.size === 0 && (e.outrogroups = null);
1455
+ }
1456
+ if (m !== null || h !== void 0) {
1457
+ var k = [];
1458
+ if (h !== void 0) for (S of h) S.f & 8192 || k.push(S);
1459
+ for (; m !== null;) !(m.f & 8192) && m !== e.fallback && k.push(m), m = m.next;
1460
+ var A = k.length;
1461
+ if (A > 0) {
1462
+ var M = c & 4 && d === 0 ? s : null;
1463
+ if (u) {
1464
+ for (C = 0; C < A; C += 1) k[C].nodes?.a?.measure();
1465
+ for (C = 0; C < A; C += 1) k[C].nodes?.a?.fix();
1466
+ }
1467
+ pause_effects(e, k, M);
1468
+ }
1469
+ }
1470
+ u && queue_micro_task(() => {
1471
+ if (_ !== void 0) for (S of _) S.nodes?.a?.apply();
1472
+ });
1473
+ }
1474
+ function create_item(e, o, s, c, l, u, d, f) {
1475
+ var p = d & 1 ? d & 16 ? source(s) : /* @__PURE__ */ mutable_source(s, !1, !1) : null, m = d & 2 ? source(l) : null;
1476
+ return {
1477
+ v: p,
1478
+ i: m,
1479
+ e: branch(() => (u(o, p ?? s, m ?? l, f), () => {
1480
+ e.delete(c);
1481
+ }))
1482
+ };
1483
+ }
1484
+ function move(e, o, s) {
1485
+ if (e.nodes) for (var c = e.nodes.start, l = e.nodes.end, u = o && !(o.f & 33554432) ? o.nodes.start : s; c !== null;) {
1486
+ var d = /* @__PURE__ */ get_next_sibling(c);
1487
+ if (u.before(c), c === l) return;
1488
+ c = d;
1489
+ }
1490
+ }
1491
+ function link(e, o, s) {
1492
+ o === null ? e.effect.first = s : o.next = s, s === null ? e.effect.last = o : s.prev = o;
1493
+ }
1494
+ function slot(e, o, s, c, l) {
1495
+ hydrating && hydrate_next();
1496
+ var u = o.$$slots?.[s], d = !1;
1497
+ u === !0 && (u = o[s === "default" ? "children" : s], d = !0), u === void 0 ? l !== null && l(e) : u(e, d ? () => c : c);
1498
+ }
1499
+ function sanitize_slots(e) {
1500
+ let o = {};
1501
+ for (let s in e.children && (o.default = !0), e.$$slots) o[s] = !0;
1502
+ return o;
1503
+ }
1504
+ function component(e, o, s) {
1505
+ hydrating && hydrate_next();
1506
+ var c = new BranchManager(e);
1507
+ block(() => {
1508
+ var e = o() ?? null;
1509
+ c.ensure(e, e && ((o) => s(o, e)));
1510
+ }, EFFECT_TRANSPARENT);
1511
+ }
1512
+ function r(e) {
1513
+ var o, s, c = "";
1514
+ if (typeof e == "string" || typeof e == "number") c += e;
1515
+ else if (typeof e == "object") if (Array.isArray(e)) {
1516
+ var l = e.length;
1517
+ for (o = 0; o < l; o++) e[o] && (s = r(e[o])) && (c && (c += " "), c += s);
1518
+ } else for (s in e) e[s] && (c && (c += " "), c += s);
1519
+ return c;
1520
+ }
1521
+ function clsx$1() {
1522
+ for (var e, o, s = 0, c = "", l = arguments.length; s < l; s++) (e = arguments[s]) && (o = r(e)) && (c && (c += " "), c += o);
1523
+ return c;
1524
+ }
1525
+ function clsx(e) {
1526
+ return typeof e == "object" ? clsx$1(e) : e ?? "";
1527
+ }
1528
+ var whitespace = [..." \n\r\f\xA0\v"];
1529
+ function to_class(e, o, s) {
1530
+ var c = e == null ? "" : "" + e;
1531
+ if (o && (c = c ? c + " " + o : o), s) {
1532
+ for (var l in s) if (s[l]) c = c ? c + " " + l : l;
1533
+ else if (c.length) for (var u = l.length, d = 0; (d = c.indexOf(l, d)) >= 0;) {
1534
+ var f = d + u;
1535
+ (d === 0 || whitespace.includes(c[d - 1])) && (f === c.length || whitespace.includes(c[f])) ? c = (d === 0 ? "" : c.substring(0, d)) + c.substring(f + 1) : d = f;
1536
+ }
1537
+ }
1538
+ return c === "" ? null : c;
1539
+ }
1540
+ function append_styles(e, o = !1) {
1541
+ var s = o ? " !important;" : ";", c = "";
1542
+ for (var l in e) {
1543
+ var u = e[l];
1544
+ u != null && u !== "" && (c += " " + l + ": " + u + s);
1545
+ }
1546
+ return c;
1547
+ }
1548
+ function to_css_name(e) {
1549
+ return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1550
+ }
1551
+ function to_style(e, o) {
1552
+ if (o) {
1553
+ var s = "", c, l;
1554
+ if (Array.isArray(o) ? (c = o[0], l = o[1]) : c = o, e) {
1555
+ e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1556
+ var u = !1, d = 0, f = !1, p = [];
1557
+ c && p.push(...Object.keys(c).map(to_css_name)), l && p.push(...Object.keys(l).map(to_css_name));
1558
+ var m = 0, h = -1;
1559
+ let o = e.length;
1560
+ for (var g = 0; g < o; g++) {
1561
+ var _ = e[g];
1562
+ if (f ? _ === "/" && e[g - 1] === "*" && (f = !1) : u ? u === _ && (u = !1) : _ === "/" && e[g + 1] === "*" ? f = !0 : _ === "\"" || _ === "'" ? u = _ : _ === "(" ? d++ : _ === ")" && d--, !f && u === !1 && d === 0) {
1563
+ if (_ === ":" && h === -1) h = g;
1564
+ else if (_ === ";" || g === o - 1) {
1565
+ if (h !== -1) {
1566
+ var v = to_css_name(e.substring(m, h).trim());
1567
+ if (!p.includes(v)) {
1568
+ _ !== ";" && g++;
1569
+ var y = e.substring(m, g).trim();
1570
+ s += " " + y + ";";
1571
+ }
1572
+ }
1573
+ m = g + 1, h = -1;
1574
+ }
1575
+ }
1576
+ }
1577
+ }
1578
+ return c && (s += append_styles(c)), l && (s += append_styles(l, !0)), s = s.trim(), s === "" ? null : s;
1579
+ }
1580
+ return e == null ? null : String(e);
1581
+ }
1582
+ function set_class(e, o, s, c, l, u) {
1583
+ var d = e.__className;
1584
+ if (hydrating || d !== s || d === void 0) {
1585
+ var f = to_class(s, c, u);
1586
+ (!hydrating || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : o ? e.className = f : e.setAttribute("class", f)), e.__className = s;
1587
+ } else if (u && l !== u) for (var p in u) {
1588
+ var m = !!u[p];
1589
+ (l == null || m !== !!l[p]) && e.classList.toggle(p, m);
1590
+ }
1591
+ return u;
1592
+ }
1593
+ function update_styles(e, o = {}, s, c) {
1594
+ for (var l in s) {
1595
+ var u = s[l];
1596
+ o[l] !== u && (s[l] == null ? e.style.removeProperty(l) : e.style.setProperty(l, u, c));
1597
+ }
1598
+ }
1599
+ function set_style(e, o, s, c) {
1600
+ var l = e.__style;
1601
+ if (hydrating || l !== o) {
1602
+ var u = to_style(o, c);
1603
+ (!hydrating || u !== e.getAttribute("style")) && (u == null ? e.removeAttribute("style") : e.style.cssText = u), e.__style = o;
1604
+ } else c && (Array.isArray(c) ? (update_styles(e, s?.[0], c[0]), update_styles(e, s?.[1], c[1], "important")) : update_styles(e, s, c));
1605
+ return c;
1606
+ }
1607
+ var IS_CUSTOM_ELEMENT = Symbol("is custom element"), IS_HTML = Symbol("is html");
1608
+ function remove_input_defaults(e) {
1609
+ if (hydrating) {
1610
+ var o = !1, s = () => {
1611
+ if (!o) {
1612
+ if (o = !0, e.hasAttribute("value")) {
1613
+ var s = e.value;
1614
+ set_attribute(e, "value", null), e.value = s;
1615
+ }
1616
+ if (e.hasAttribute("checked")) {
1617
+ var c = e.checked;
1618
+ set_attribute(e, "checked", null), e.checked = c;
1619
+ }
1620
+ }
1621
+ };
1622
+ e.__on_r = s, queue_micro_task(s), add_form_reset_listener();
1623
+ }
1624
+ }
1625
+ function set_attribute(e, o, s, c) {
1626
+ var l = get_attributes(e);
1627
+ hydrating && (l[o] = e.getAttribute(o), o === "src" || o === "srcset" || o === "href" && e.nodeName === "LINK") || l[o] !== (l[o] = s) && (o === "loading" && (e[LOADING_ATTR_SYMBOL] = s), s == null ? e.removeAttribute(o) : typeof s != "string" && get_setters(e).includes(o) ? e[o] = s : e.setAttribute(o, s));
1628
+ }
1629
+ function get_attributes(e) {
1630
+ return e.__attributes ??= {
1631
+ [IS_CUSTOM_ELEMENT]: e.nodeName.includes("-"),
1632
+ [IS_HTML]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
1633
+ };
1634
+ }
1635
+ var setters_cache = /* @__PURE__ */ new Map();
1636
+ function get_setters(e) {
1637
+ var o = e.getAttribute("is") || e.nodeName, s = setters_cache.get(o);
1638
+ if (s) return s;
1639
+ setters_cache.set(o, s = []);
1640
+ for (var c, l = e, u = Element.prototype; u !== l;) {
1641
+ for (var d in c = get_descriptors(l), c) c[d].set && s.push(d);
1642
+ l = get_prototype_of(l);
1643
+ }
1644
+ return s;
1645
+ }
1646
+ function bind_value(e, o, s = o) {
1647
+ var c = /* @__PURE__ */ new WeakSet();
1648
+ listen_to_event_and_reset_event(e, "input", async (l) => {
1649
+ var u = l ? e.defaultValue : e.value;
1650
+ if (u = is_numberlike_input(e) ? to_number(u) : u, s(u), current_batch !== null && c.add(current_batch), await tick$1(), u !== (u = o())) {
1651
+ var d = e.selectionStart, f = e.selectionEnd, p = e.value.length;
1652
+ if (e.value = u ?? "", f !== null) {
1653
+ var m = e.value.length;
1654
+ d === f && f === p && m > p ? (e.selectionStart = m, e.selectionEnd = m) : (e.selectionStart = d, e.selectionEnd = Math.min(f, m));
1655
+ }
1656
+ }
1657
+ }), (hydrating && e.defaultValue !== e.value || untrack(o) == null && e.value) && (s(is_numberlike_input(e) ? to_number(e.value) : e.value), current_batch !== null && c.add(current_batch)), render_effect(() => {
1658
+ var s = o();
1659
+ if (e === document.activeElement) {
1660
+ var l = previous_batch ?? current_batch;
1661
+ if (c.has(l)) return;
1662
+ }
1663
+ is_numberlike_input(e) && s === to_number(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
1664
+ });
1665
+ }
1666
+ function is_numberlike_input(e) {
1667
+ var o = e.type;
1668
+ return o === "number" || o === "range";
1669
+ }
1670
+ function to_number(e) {
1671
+ return e === "" ? null : +e;
1672
+ }
1673
+ function is_bound_this(e, o) {
1674
+ return e === o || e?.[STATE_SYMBOL] === o;
1675
+ }
1676
+ function bind_this(e = {}, o, s, c) {
1677
+ return effect(() => {
1678
+ var l, u;
1679
+ return render_effect(() => {
1680
+ l = u, u = c?.() || [], untrack(() => {
1681
+ e !== s(...u) && (o(e, ...u), l && is_bound_this(s(...l), e) && o(null, ...l));
1682
+ });
1683
+ }), () => {
1684
+ queue_micro_task(() => {
1685
+ u && is_bound_this(s(...u), e) && o(null, ...u);
1686
+ });
1687
+ };
1688
+ }), e;
1689
+ }
1690
+ function init(e = !1) {
1691
+ let o = component_context, s = o.l.u;
1692
+ if (!s) return;
1693
+ let c = () => deep_read_state(o.s);
1694
+ if (e) {
1695
+ let e = 0, s = {}, l = /* @__PURE__ */ derived$1(() => {
1696
+ let c = !1, l = o.s;
1697
+ for (let e in l) l[e] !== s[e] && (s[e] = l[e], c = !0);
1698
+ return c && e++, e;
1699
+ });
1700
+ c = () => get$1(l);
1701
+ }
1702
+ s.b.length && user_pre_effect(() => {
1703
+ observe_all(o, c), run_all(s.b);
1704
+ }), user_effect(() => {
1705
+ let e = untrack(() => s.m.map(run));
1706
+ return () => {
1707
+ for (let o of e) typeof o == "function" && o();
1708
+ };
1709
+ }), s.a.length && user_effect(() => {
1710
+ observe_all(o, c), run_all(s.a);
1711
+ });
1712
+ }
1713
+ function observe_all(e, o) {
1714
+ if (e.l.s) for (let o of e.l.s) get$1(o);
1715
+ o();
1716
+ }
1717
+ function subscribe_to_store(e, o, s) {
1718
+ if (e == null) return o(void 0), s && s(void 0), noop;
1719
+ let c = untrack(() => e.subscribe(o, s));
1720
+ return c.unsubscribe ? () => c.unsubscribe() : c;
1721
+ }
1722
+ var subscriber_queue = [];
1723
+ function readable(e, o) {
1724
+ return { subscribe: writable(e, o).subscribe };
1725
+ }
1726
+ function writable(e, o = noop) {
1727
+ let s = null, c = /* @__PURE__ */ new Set();
1728
+ function l(o) {
1729
+ if (safe_not_equal(e, o) && (e = o, s)) {
1730
+ let o = !subscriber_queue.length;
1731
+ for (let o of c) o[1](), subscriber_queue.push(o, e);
1732
+ if (o) {
1733
+ for (let e = 0; e < subscriber_queue.length; e += 2) subscriber_queue[e][0](subscriber_queue[e + 1]);
1734
+ subscriber_queue.length = 0;
1735
+ }
1736
+ }
1737
+ }
1738
+ function u(o) {
1739
+ l(o(e));
1740
+ }
1741
+ function d(d, f = noop) {
1742
+ let p = [d, f];
1743
+ return c.add(p), c.size === 1 && (s = o(l, u) || noop), d(e), () => {
1744
+ c.delete(p), c.size === 0 && s && (s(), s = null);
1745
+ };
1746
+ }
1747
+ return {
1748
+ set: l,
1749
+ update: u,
1750
+ subscribe: d
1751
+ };
1752
+ }
1753
+ function derived(e, o, s) {
1754
+ let c = !Array.isArray(e), l = c ? [e] : e;
1755
+ if (!l.every(Boolean)) throw Error("derived() expects stores as input, got a falsy value");
1756
+ let u = o.length < 2;
1757
+ return readable(s, (e, s) => {
1758
+ let d = !1, f = [], p = 0, m = noop, h = () => {
1759
+ if (p) return;
1760
+ m();
1761
+ let l = o(c ? f[0] : f, e, s);
1762
+ u ? e(l) : m = typeof l == "function" ? l : noop;
1763
+ }, g = l.map((e, o) => subscribe_to_store(e, (e) => {
1764
+ f[o] = e, p &= ~(1 << o), d && h();
1765
+ }, () => {
1766
+ p |= 1 << o;
1767
+ }));
1768
+ return d = !0, h(), function() {
1769
+ run_all(g), m(), d = !1;
1770
+ };
1771
+ });
1772
+ }
1773
+ function get(e) {
1774
+ let o;
1775
+ return subscribe_to_store(e, (e) => o = e)(), o;
1776
+ }
1777
+ var is_store_binding = !1, IS_UNMOUNTED = Symbol();
1778
+ function store_get(e, o, s) {
1779
+ let c = s[o] ??= {
1780
+ store: null,
1781
+ source: /* @__PURE__ */ mutable_source(void 0),
1782
+ unsubscribe: noop
1783
+ };
1784
+ if (c.store !== e && !(IS_UNMOUNTED in s)) if (c.unsubscribe(), c.store = e ?? null, e == null) c.source.v = void 0, c.unsubscribe = noop;
1785
+ else {
1786
+ var l = !0;
1787
+ c.unsubscribe = subscribe_to_store(e, (e) => {
1788
+ l ? c.source.v = e : set(c.source, e);
1789
+ }), l = !1;
1790
+ }
1791
+ return e && IS_UNMOUNTED in s ? get(e) : get$1(c.source);
1792
+ }
1793
+ function setup_stores() {
1794
+ let e = {};
1795
+ function o() {
1796
+ teardown(() => {
1797
+ for (var o in e) e[o].unsubscribe();
1798
+ define_property(e, IS_UNMOUNTED, {
1799
+ enumerable: !1,
1800
+ value: !0
1801
+ });
1802
+ });
1803
+ }
1804
+ return [e, o];
1805
+ }
1806
+ function capture_store_binding(e) {
1807
+ var o = is_store_binding;
1808
+ try {
1809
+ return is_store_binding = !1, [e(), is_store_binding];
1810
+ } finally {
1811
+ is_store_binding = o;
1812
+ }
1813
+ }
1814
+ function prop(e, o, c, l) {
1815
+ var u = !legacy_mode_flag || (c & 2) != 0, d = (c & 8) != 0, f = (c & 16) != 0, p = l, m = !0, g = () => (m && (m = !1, p = f ? untrack(l) : l), p), _;
1816
+ if (d) {
1817
+ var v = STATE_SYMBOL in e || LEGACY_PROPS in e;
1818
+ _ = get_descriptor(e, o)?.set ?? (v && o in e ? (s) => e[o] = s : void 0);
1819
+ }
1820
+ var y, b = !1;
1821
+ d ? [y, b] = capture_store_binding(() => e[o]) : y = e[o], y === void 0 && l !== void 0 && (y = g(), _ && (u && props_invalid_value(o), _(y)));
1822
+ var x = u ? () => {
1823
+ var s = e[o];
1824
+ return s === void 0 ? g() : (m = !0, s);
1825
+ } : () => {
1826
+ var s = e[o];
1827
+ return s !== void 0 && (p = void 0), s === void 0 ? p : s;
1828
+ };
1829
+ if (u && !(c & 4)) return x;
1830
+ if (_) {
1831
+ var S = e.$$legacy;
1832
+ return (function(e, o) {
1833
+ return arguments.length > 0 ? ((!u || !o || S || b) && _(o ? x() : e), e) : x();
1834
+ });
1835
+ }
1836
+ var C = !1, w = (c & 1 ? derived$1 : derived_safe_equal)(() => (C = !1, x()));
1837
+ d && get$1(w);
1838
+ var T = active_effect;
1839
+ return (function(e, o) {
1840
+ if (arguments.length > 0) {
1841
+ let s = o ? get$1(w) : u && d ? proxy(e) : e;
1842
+ return set(w, s), C = !0, p !== void 0 && (p = s), e;
1843
+ }
1844
+ return is_destroying_effect && C || T.f & 16384 ? w.v : get$1(w);
1845
+ });
1846
+ }
1847
+ const systemTheme = readable("light", (e) => {
1848
+ if (typeof window > "u") return;
1849
+ let o = window.matchMedia("(prefers-color-scheme: dark)"), s = () => {
1850
+ e(o.matches ? "dark" : "light");
1851
+ };
1852
+ return s(), o.addEventListener("change", s), () => {
1853
+ o.removeEventListener("change", s);
1854
+ };
1855
+ }), themeState = writable(null), resolvedTheme = derived([themeState, systemTheme], ([e, o]) => e ? (e.mode === "system" ? o : e.mode) === "dark" ? e.dark : e.light : null);
1856
+ function themeToCssVars(e) {
1857
+ let o = [];
1858
+ return Object.entries(e.colorScheme).forEach(([e, s]) => o.push(`--md-sys-color-${e}: ${s};`)), Object.entries(e.typography).forEach(([e, s]) => {
1859
+ o.push(`--md-sys-typescale-${e}-font-family: ${s.fontFamily};`), o.push(`--md-sys-typescale-${e}-font-size: ${s.fontSize};`), o.push(`--md-sys-typescale-${e}-line-height: ${s.lineHeight};`), o.push(`--md-sys-typescale-${e}-letter-spacing: ${s.letterSpacing};`), o.push(`--md-sys-typescale-${e}-font-weight: ${s.fontWeight};`);
1860
+ }), Object.entries(e.shapes).forEach(([e, s]) => o.push(`--md-sys-shape-${e}: ${s};`)), Object.entries(e.elevation).forEach(([e, s]) => o.push(`--md-sys-elevation-${e}: ${s};`)), Object.entries(e.spacing).forEach(([e, s]) => o.push(`--md-sys-spacing-${e}: ${s};`)), o.join("\n");
1861
+ }
1862
+ const lightColors = {
1863
+ primary: "#FF732F",
1864
+ onPrimary: "#FFFBF2",
1865
+ secondary: "#3A3E49",
1866
+ onSecondary: "#FFFFFF",
1867
+ background: "#FFFBF2",
1868
+ onBackground: "#1C1B1F",
1869
+ surface: "#FFFFFF",
1870
+ onSurface: "#1C1B1F",
1871
+ surfaceVariant: "#F8F9FA",
1872
+ onSurfaceVariant: "#DEE1E6",
1873
+ outline: "#B0B0B0",
1874
+ error: "#BA1A1A",
1875
+ onError: "#FFFFFF"
1876
+ }, darkColors = {
1877
+ primary: "#FC4B19",
1878
+ onPrimary: "#E6E6E6",
1879
+ secondary: "#3A3E49",
1880
+ onSecondary: "#E6E6E6",
1881
+ background: "#080808",
1882
+ onBackground: "#E6E6E6",
1883
+ surface: "#101010",
1884
+ onSurface: "#E6E6E6",
1885
+ surfaceVariant: "#1E1E1E",
1886
+ onSurfaceVariant: "#CAC4D0",
1887
+ outline: "#4A4A4A",
1888
+ error: "#FF6F61",
1889
+ onError: "#080808"
1890
+ };
1891
+ var fontFamily = "system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif";
1892
+ const defaultLightTheme = {
1893
+ colorScheme: lightColors,
1894
+ typography: {
1895
+ displayLarge: {
1896
+ fontFamily,
1897
+ fontSize: "57px",
1898
+ lineHeight: "64px",
1899
+ letterSpacing: "-0.25px",
1900
+ fontWeight: 400
1901
+ },
1902
+ displayMedium: {
1903
+ fontFamily,
1904
+ fontSize: "45px",
1905
+ lineHeight: "52px",
1906
+ letterSpacing: "0px",
1907
+ fontWeight: 400
1908
+ },
1909
+ displaySmall: {
1910
+ fontFamily,
1911
+ fontSize: "36px",
1912
+ lineHeight: "44px",
1913
+ letterSpacing: "0px",
1914
+ fontWeight: 400
1915
+ },
1916
+ headlineLarge: {
1917
+ fontFamily,
1918
+ fontSize: "32px",
1919
+ lineHeight: "40px",
1920
+ letterSpacing: "0px",
1921
+ fontWeight: 400
1922
+ },
1923
+ headlineMedium: {
1924
+ fontFamily,
1925
+ fontSize: "28px",
1926
+ lineHeight: "36px",
1927
+ letterSpacing: "0px",
1928
+ fontWeight: 400
1929
+ },
1930
+ headlineSmall: {
1931
+ fontFamily,
1932
+ fontSize: "24px",
1933
+ lineHeight: "32px",
1934
+ letterSpacing: "0px",
1935
+ fontWeight: 400
1936
+ },
1937
+ titleLarge: {
1938
+ fontFamily,
1939
+ fontSize: "22px",
1940
+ lineHeight: "28px",
1941
+ letterSpacing: "0px",
1942
+ fontWeight: 400
1943
+ },
1944
+ titleMedium: {
1945
+ fontFamily,
1946
+ fontSize: "16px",
1947
+ lineHeight: "24px",
1948
+ letterSpacing: "0.15px",
1949
+ fontWeight: 500
1950
+ },
1951
+ titleSmall: {
1952
+ fontFamily,
1953
+ fontSize: "14px",
1954
+ lineHeight: "20px",
1955
+ letterSpacing: "0.1px",
1956
+ fontWeight: 500
1957
+ },
1958
+ bodyLarge: {
1959
+ fontFamily,
1960
+ fontSize: "16px",
1961
+ lineHeight: "24px",
1962
+ letterSpacing: "0.5px",
1963
+ fontWeight: 400
1964
+ },
1965
+ bodyMedium: {
1966
+ fontFamily,
1967
+ fontSize: "14px",
1968
+ lineHeight: "20px",
1969
+ letterSpacing: "0.25px",
1970
+ fontWeight: 400
1971
+ },
1972
+ bodySmall: {
1973
+ fontFamily,
1974
+ fontSize: "12px",
1975
+ lineHeight: "16px",
1976
+ letterSpacing: "0.4px",
1977
+ fontWeight: 400
1978
+ },
1979
+ labelLarge: {
1980
+ fontFamily,
1981
+ fontSize: "14px",
1982
+ lineHeight: "20px",
1983
+ letterSpacing: "0.1px",
1984
+ fontWeight: 500
1985
+ },
1986
+ labelMedium: {
1987
+ fontFamily,
1988
+ fontSize: "12px",
1989
+ lineHeight: "16px",
1990
+ letterSpacing: "0.5px",
1991
+ fontWeight: 500
1992
+ },
1993
+ labelSmall: {
1994
+ fontFamily,
1995
+ fontSize: "11px",
1996
+ lineHeight: "16px",
1997
+ letterSpacing: "0.5px",
1998
+ fontWeight: 500
1999
+ }
2000
+ },
2001
+ shapes: {
2002
+ none: "0px",
2003
+ extraSmall: "4px",
2004
+ small: "8px",
2005
+ medium: "12px",
2006
+ large: "16px"
2007
+ },
2008
+ spacing: {
2009
+ xs: "4px",
2010
+ sm: "8px",
2011
+ md: "16px",
2012
+ lg: "24px",
2013
+ xl: "32px"
2014
+ },
2015
+ elevation: {
2016
+ level0: "none",
2017
+ level1: "0 1px 2px rgba(0,0,0,0.2)",
2018
+ level2: "0 2px 6px rgba(0,0,0,0.2)",
2019
+ level3: "0 6px 12px rgba(0,0,0,0.25)",
2020
+ level4: "0 12px 24px rgba(0,0,0,0.3)"
2021
+ }
2022
+ }, defaultDarkTheme = {
2023
+ ...defaultLightTheme,
2024
+ colorScheme: darkColors
2025
+ };
2026
+ var root$20 = /* @__PURE__ */ from_html("<div><!></div>");
2027
+ function ComposeTheme(e, o) {
2028
+ push(o, !1);
2029
+ let s = () => store_get(resolvedTheme, "$resolvedTheme", c), [c, l] = setup_stores(), u = /* @__PURE__ */ mutable_source(), d = prop(o, "light", 8, void 0), f = prop(o, "dark", 8, void 0), p = prop(o, "mode", 8, "system");
2030
+ legacy_pre_effect(() => (deep_read_state(d()), deep_read_state(f()), deep_read_state(p())), () => {
2031
+ themeState.set({
2032
+ light: d() ?? defaultLightTheme,
2033
+ dark: f() ?? defaultDarkTheme,
2034
+ mode: p()
2035
+ });
2036
+ }), legacy_pre_effect(() => (s(), themeToCssVars), () => {
2037
+ set(u, s() ? themeToCssVars(s()) : "");
2038
+ }), legacy_pre_effect_reset(), init();
2039
+ var m = root$20();
2040
+ slot(child(m), o, "default", {}, null), reset(m), template_effect(() => set_style(m, get$1(u))), append(e, m), pop(), l();
2041
+ }
2042
+ const resolveColor = (e) => `var(--md-sys-color-${e})`, resolveTextStyle = (e) => `
2043
+ font-family: var(--md-sys-typescale-${e}-font-family);
2044
+ font-size: var(--md-sys-typescale-${e}-font-size);
2045
+ line-height: var(--md-sys-typescale-${e}-line-height);
2046
+ letter-spacing: var(--md-sys-typescale-${e}-letter-spacing);
2047
+ font-weight: var(--md-sys-typescale-${e}-font-weight);
2048
+ `;
2049
+ var ModifierImpl = class e {
2050
+ constructor(e = []) {
2051
+ this.entries = e;
2052
+ }
2053
+ then(o) {
2054
+ return new e([...this.entries, ...o.entries]);
2055
+ }
2056
+ paddingHorizontal(o) {
2057
+ return this.then(new e([{ style: `padding-left:${o}px;padding-right:${o}px;` }]));
2058
+ }
2059
+ verticalScroll(o = !0) {
2060
+ return this.then(new e([{ style: o ? "overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;" : "" }]));
2061
+ }
2062
+ horizontalScroll(o = !0) {
2063
+ return this.then(new e([{ style: o ? "overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;white-space:nowrap;" : "" }]));
2064
+ }
2065
+ paddingVertical(o) {
2066
+ return this.then(new e([{ style: `padding-top:${o}px;padding-bottom:${o}px;` }]));
2067
+ }
2068
+ fillMaxWidth() {
2069
+ return this.then(new e([{ style: "width:100%;" }]));
2070
+ }
2071
+ fillMaxHeight() {
2072
+ return this.then(new e([{ style: "height:100%;" }]));
2073
+ }
2074
+ fillMaxSize() {
2075
+ return this.then(new e([{ style: "width:100%;height:100%;" }]));
2076
+ }
2077
+ background(o) {
2078
+ let s;
2079
+ return s = typeof o == "string" && (o.startsWith("#") || o.startsWith("rgb") || o.startsWith("hsl") || o === "transparent" || o === "currentColor") ? o : resolveColor(o), this.then(new e([{ style: `background:${s};` }]));
2080
+ }
2081
+ weight(o, s = !0) {
2082
+ if (o <= 0) return console.warn("Modifier.weight() debe ser > 0"), this;
2083
+ let c = [
2084
+ `flex-grow: ${o};`,
2085
+ `flex-shrink: ${s ? 1 : 0};`,
2086
+ "flex-basis: 0%;"
2087
+ ];
2088
+ return this.then(new e([{ style: c.join(" ") }]));
2089
+ }
2090
+ align(o) {
2091
+ let s = o.split(" "), c = s[0], l = s[1] || s[0], u = "position: absolute;";
2092
+ return l === "flex-start" ? u += "top: 0;" : l === "flex-end" ? u += "bottom: 0;" : l === "center" && (u += "top: 50%; transform: translateY(-50%);"), c === "flex-start" ? u += "left: 0;" : c === "flex-end" ? u += "right: 0;" : c === "center" && (u += "left: 50%;", u.includes("translateY") ? u = u.replace("translateY(-50%)", "translate(-50%, -50%)") : u += "transform: translateX(-50%);"), this.then(new e([{ style: u }]));
2093
+ }
2094
+ padding(o = 0, s = "px") {
2095
+ let c = "";
2096
+ if (typeof o == "number") c = `padding:${o}${s};`;
2097
+ else {
2098
+ let { top: e = 0, bottom: l = 0, start: u = 0, end: d = 0 } = o;
2099
+ c = `
2100
+ padding-top:${e}${s};
2101
+ padding-bottom:${l}${s};
2102
+ padding-left:${u}${s};
2103
+ //padding-right:${d}${s};
2104
+ `.trim();
2105
+ }
2106
+ return this.then(new e([{ style: c }]));
2107
+ }
2108
+ width(o, s = "px") {
2109
+ let c = typeof o == "number" ? `${o}${s}` : o;
2110
+ return this.then(new e([{ style: `width:${c};` }]));
2111
+ }
2112
+ height(o, s = "px") {
2113
+ let c = typeof o == "number" ? `${o}${s}` : o;
2114
+ return this.then(new e([{ style: `height:${c};` }]));
2115
+ }
2116
+ marginTop(o, s = "px") {
2117
+ return this.then(new e([{ style: `margin-top:${o}${s};` }]));
2118
+ }
2119
+ clip(o) {
2120
+ return this.then(new e([{ style: `
2121
+ border-radius:${o.toCssBorderRadius()};
2122
+ overflow:hidden;
2123
+ ` }]));
2124
+ }
2125
+ size(o, s = "px") {
2126
+ if (o == null) return this;
2127
+ let c;
2128
+ if (typeof o == "number") {
2129
+ if (isNaN(o)) return this;
2130
+ c = `${o}${s}`;
2131
+ } else {
2132
+ if (o.trim() === "") return this;
2133
+ c = o;
2134
+ }
2135
+ return this.then(new e([{ style: `width:${c};height:${c};` }]));
2136
+ }
2137
+ offset(o, s) {
2138
+ return isNaN(o) || isNaN(s) ? this : this.then(new e([{ style: `transform: translate(${o}px, ${s}px);` }]));
2139
+ }
2140
+ clickable(o) {
2141
+ return this.then(new e([{
2142
+ className: "compose-clickable",
2143
+ style: "\n cursor: pointer;\n user-select: none;\n "
2144
+ }]));
2145
+ }
2146
+ border(o, s, c) {
2147
+ if (o <= 0) return this;
2148
+ let l = c ? c.toCssBorderRadius() : void 0;
2149
+ return this.then(new e([{ style: `
2150
+ border:${o}px solid ${s};
2151
+ ${l ? `border-radius:${l};` : ""}
2152
+ ` }]));
2153
+ }
2154
+ toStyle() {
2155
+ return this.entries.map((e) => e.style ?? "").join("");
2156
+ }
2157
+ toClass() {
2158
+ return this.entries.map((e) => e.className ?? "").join(" ");
2159
+ }
2160
+ };
2161
+ const Modifier = {
2162
+ empty() {
2163
+ return new ModifierImpl();
2164
+ },
2165
+ padding(e = 0, o = "px") {
2166
+ return new ModifierImpl().padding(e, o);
2167
+ },
2168
+ paddingHorizontal(e) {
2169
+ return new ModifierImpl().paddingHorizontal(e);
2170
+ },
2171
+ border(e, o, s) {
2172
+ return new ModifierImpl().border(e, o, s);
2173
+ },
2174
+ clickable(e) {
2175
+ return new ModifierImpl().clickable(e);
2176
+ },
2177
+ offset(e, o) {
2178
+ return new ModifierImpl().offset(e, o);
2179
+ },
2180
+ verticalScroll(e = !0) {
2181
+ return new ModifierImpl().verticalScroll(e);
2182
+ },
2183
+ horizontalScroll(e = !0) {
2184
+ return new ModifierImpl().horizontalScroll(e);
2185
+ },
2186
+ paddingVertical(e) {
2187
+ return new ModifierImpl().paddingVertical(e);
2188
+ },
2189
+ align(e) {
2190
+ return new ModifierImpl().align(e);
2191
+ },
2192
+ fillMaxWidth() {
2193
+ return new ModifierImpl().fillMaxWidth();
2194
+ },
2195
+ fillMaxHeight() {
2196
+ return new ModifierImpl().fillMaxHeight();
2197
+ },
2198
+ fillMaxSize() {
2199
+ return new ModifierImpl().fillMaxSize();
2200
+ },
2201
+ height(e, o = "px") {
2202
+ return new ModifierImpl().height(e, o);
2203
+ },
2204
+ width(e, o = "px") {
2205
+ return new ModifierImpl().width(e, o);
2206
+ },
2207
+ background(e) {
2208
+ return new ModifierImpl().background(e);
2209
+ },
2210
+ weight(e, o = !0) {
2211
+ return new ModifierImpl().weight(e, o);
2212
+ },
2213
+ weightNoFill(e) {
2214
+ return this.weight(e, !1);
2215
+ },
2216
+ marginTop(e, o = "px") {
2217
+ return new ModifierImpl().marginTop(e, o);
2218
+ },
2219
+ clip(e) {
2220
+ return new ModifierImpl().clip(e);
2221
+ },
2222
+ size(e, o = "px") {
2223
+ return new ModifierImpl().size(e, o);
2224
+ }
2225
+ };
2226
+ var root$19 = /* @__PURE__ */ from_html("<div><!></div>");
2227
+ function AppRoot(e, o) {
2228
+ push(o, !1);
2229
+ let s = prop(o, "modifier", 24, () => Modifier.empty());
2230
+ init();
2231
+ var c = root$19();
2232
+ slot(child(c), o, "default", {}, null), reset(c), template_effect((e) => set_style(c, e), [() => (deep_read_state(s()), untrack(() => `
2233
+ width:100vw;
2234
+ height:100vh;
2235
+ ${s().toStyle()}
2236
+ `))]), append(e, c), pop();
2237
+ }
2238
+ var root$18 = /* @__PURE__ */ from_html("<div class=\"block\"><!></div>");
2239
+ function Surface(e, o) {
2240
+ push(o, !1);
2241
+ let s = prop(o, "modifier", 24, () => Modifier.empty()), c = prop(o, "color", 8, "surface");
2242
+ init();
2243
+ var l = root$18();
2244
+ slot(child(l), o, "default", {}, null), reset(l), template_effect((e) => set_style(l, e), [() => (deep_read_state(resolveColor), deep_read_state(c()), deep_read_state(s()), untrack(() => `
2245
+ background:${resolveColor(c())};
2246
+ ${s().toStyle()}
2247
+ `))]), append(e, l), pop();
2248
+ }
2249
+ const ColorScheme = {
2250
+ Primary: "primary",
2251
+ OnPrimary: "onPrimary",
2252
+ Secondary: "secondary",
2253
+ OnSecondary: "onSecondary",
2254
+ Background: "background",
2255
+ OnBackground: "onBackground",
2256
+ Surface: "surface",
2257
+ OnSurface: "onSurface",
2258
+ SurfaceVariant: "surfaceVariant",
2259
+ OnSurfaceVariant: "onSurfaceVariant",
2260
+ Outline: "outline",
2261
+ Error: "error",
2262
+ OnError: "onError"
2263
+ };
2264
+ var root$17 = /* @__PURE__ */ from_html("<p class=\"block m-0\"><!></p>");
2265
+ function Text$1(e, o) {
2266
+ push(o, !1);
2267
+ let s = /* @__PURE__ */ mutable_source(), c = prop(o, "modifier", 24, () => Modifier.empty()), l = prop(o, "textStyle", 8, "bodyMedium"), u = prop(o, "color", 8, "onSurface");
2268
+ legacy_pre_effect(() => (deep_read_state(u()), resolveColor), () => {
2269
+ set(s, typeof u() == "string" ? resolveColor(u()) : u());
2270
+ }), legacy_pre_effect_reset(), init();
2271
+ var d = root$17();
2272
+ slot(child(d), o, "default", {}, null), reset(d), template_effect((e) => set_style(d, e), [() => (deep_read_state(resolveTextStyle), deep_read_state(l()), get$1(s), deep_read_state(c()), untrack(() => `
2273
+ ${resolveTextStyle(l())};
2274
+ color: ${get$1(s)};
2275
+ ${c().toStyle()}
2276
+ `))]), append(e, d), pop();
2277
+ }
2278
+ const Alignment = {
2279
+ Start: "flex-start",
2280
+ CenterHorizontally: "center",
2281
+ End: "flex-end",
2282
+ Top: "flex-start",
2283
+ CenterVertically: "center",
2284
+ Bottom: "flex-end",
2285
+ TopStart: "flex-start flex-start",
2286
+ TopCenter: "center flex-start",
2287
+ TopEnd: "flex-end flex-start",
2288
+ CenterStart: "flex-start center",
2289
+ Center: "center center",
2290
+ CenterEnd: "flex-end center",
2291
+ BottomStart: "flex-start flex-end",
2292
+ BottomCenter: "center flex-end",
2293
+ BottomEnd: "flex-end flex-end"
2294
+ }, Arrangement = {
2295
+ Start: {
2296
+ type: "static",
2297
+ justifyContent: "flex-start"
2298
+ },
2299
+ Center: {
2300
+ type: "static",
2301
+ justifyContent: "center"
2302
+ },
2303
+ End: {
2304
+ type: "static",
2305
+ justifyContent: "flex-end"
2306
+ },
2307
+ Bottom: {
2308
+ type: "static",
2309
+ justifyContent: "flex-end"
2310
+ },
2311
+ Top: {
2312
+ type: "static",
2313
+ justifyContent: "flex-start"
2314
+ },
2315
+ SpaceBetween: {
2316
+ type: "static",
2317
+ justifyContent: "space-between"
2318
+ },
2319
+ SpaceAround: {
2320
+ type: "static",
2321
+ justifyContent: "space-around"
2322
+ },
2323
+ SpaceEvenly: {
2324
+ type: "static",
2325
+ justifyContent: "space-evenly"
2326
+ },
2327
+ spacedBy(e) {
2328
+ return {
2329
+ type: "spaced",
2330
+ gap: e,
2331
+ justifyContent: "flex-start"
2332
+ };
2333
+ }
2334
+ };
2335
+ var root$16 = /* @__PURE__ */ from_html("<div class=\"flex flex-col\"><!></div>");
2336
+ function Column(e, o) {
2337
+ push(o, !1);
2338
+ let s = prop(o, "modifier", 24, () => Modifier.empty()), c = prop(o, "horizontalAlignment", 24, () => Alignment.Start), l = prop(o, "verticalArrangement", 24, () => Arrangement.Start);
2339
+ init();
2340
+ var u = root$16();
2341
+ slot(child(u), o, "default", {}, null), reset(u), template_effect((e) => set_style(u, e), [() => (deep_read_state(c()), deep_read_state(l()), deep_read_state(s()), untrack(() => `
2342
+ align-items: ${c()};
2343
+ justify-content: ${l().justifyContent};
2344
+ ${l().type === "spaced" ? `gap:${l().gap}px;` : ""}
2345
+ ${s().toStyle()}
2346
+ `))]), append(e, u), pop();
2347
+ }
2348
+ var root$15 = /* @__PURE__ */ from_html("<div class=\"flex flex-row\"><!></div>");
2349
+ function Row(e, o) {
2350
+ push(o, !1);
2351
+ let s = prop(o, "modifier", 24, () => Modifier.empty()), c = prop(o, "verticalAlignment", 24, () => Alignment.Top), l = prop(o, "horizontalArrangement", 24, () => Arrangement.Start);
2352
+ init();
2353
+ var u = root$15();
2354
+ slot(child(u), o, "default", {}, null), reset(u), template_effect((e) => set_style(u, e), [() => (deep_read_state(c()), deep_read_state(l()), deep_read_state(s()), untrack(() => `
2355
+ align-items: ${c()};
2356
+ justify-content: ${l().justifyContent};
2357
+ ${l().type === "spaced" ? `gap:${l().gap}px;` : ""}
2358
+ ${s().toStyle()}
2359
+ `))]), append(e, u), pop();
2360
+ }
2361
+ var root$14 = /* @__PURE__ */ from_html("<div class=\"relative\"><!></div>");
2362
+ function Box(e, o) {
2363
+ push(o, !1);
2364
+ let s = /* @__PURE__ */ mutable_source(), c = prop(o, "modifier", 24, () => Modifier.empty()), l = prop(o, "contentAlignment", 8, void 0);
2365
+ function u(e) {
2366
+ let o = e.split(" "), s = o[0] === "flex-start" ? "flex-start" : o[0] === "flex-end" ? "flex-end" : "center", c = o[1] || o[0];
2367
+ return `display:flex; align-items:${c === "flex-start" ? "flex-start" : c === "flex-end" ? "flex-end" : "center"}; justify-content:${s};`;
2368
+ }
2369
+ legacy_pre_effect(() => deep_read_state(l()), () => {
2370
+ set(s, l() ? u(l()) : "");
2371
+ }), legacy_pre_effect_reset(), init();
2372
+ var d = root$14();
2373
+ slot(child(d), o, "default", {}, null), reset(d), template_effect((e) => set_style(d, e), [() => (get$1(s), deep_read_state(c()), untrack(() => `${get$1(s)} ${c().toStyle()}`))]), append(e, d), pop();
2374
+ }
2375
+ var root$13 = /* @__PURE__ */ from_html("<div></div>");
2376
+ function Spacer(e, o) {
2377
+ push(o, !1);
2378
+ let s = prop(o, "modifier", 24, () => Modifier.empty());
2379
+ init();
2380
+ var c = root$13();
2381
+ template_effect((e) => set_style(c, e), [() => (deep_read_state(s()), untrack(() => s().toStyle()))]), append(e, c), pop();
2382
+ }
2383
+ var root$12 = /* @__PURE__ */ from_html("<button class=\"border-0 cursor-pointer inline-flex items-center justify-center gap-8 font-medium tracking-wider transition-all hover:opacity-90 active:scale-95\"><!></button>");
2384
+ function Button(e, o) {
2385
+ push(o, !1);
2386
+ let s = /* @__PURE__ */ mutable_source(), c = /* @__PURE__ */ mutable_source(), l = /* @__PURE__ */ mutable_source(), u = /* @__PURE__ */ mutable_source(), d = prop(o, "onClick", 8, () => {}), f = prop(o, "modifier", 24, () => Modifier.empty()), p = prop(o, "color", 8, "primary"), m = prop(o, "onColor", 8, "onPrimary"), h = prop(o, "shape", 8, "large"), g = prop(o, "elevation", 8, "level1");
2387
+ legacy_pre_effect(() => (deep_read_state(p()), resolveColor), () => {
2388
+ set(s, typeof p() == "string" ? resolveColor(p()) : p());
2389
+ }), legacy_pre_effect(() => (deep_read_state(m()), resolveColor), () => {
2390
+ set(c, typeof m() == "string" ? resolveColor(m()) : m());
2391
+ }), legacy_pre_effect(() => deep_read_state(h()), () => {
2392
+ set(l, `var(--md-sys-shape-${h()})`);
2393
+ }), legacy_pre_effect(() => deep_read_state(g()), () => {
2394
+ set(u, `var(--md-sys-elevation-${g()})`);
2395
+ }), legacy_pre_effect_reset(), init();
2396
+ var _ = root$12();
2397
+ slot(child(_), o, "default", {}, null), reset(_), template_effect((e) => set_style(_, e), [() => (get$1(s), get$1(c), get$1(l), get$1(u), deep_read_state(f()), untrack(() => `
2398
+ background: ${get$1(s)};
2399
+ color: ${get$1(c)};
2400
+ border-radius: ${get$1(l)};
2401
+ box-shadow: ${get$1(u)};
2402
+ padding: 10px 24px; <!-- Padding moderado: vertical 10px, horizontal 24px (como Compose) -->
2403
+ ${f().toStyle()}
2404
+ `))]), event("click", _, function(...e) {
2405
+ d()?.apply(this, e);
2406
+ }), append(e, _), pop();
2407
+ }
2408
+ function IconButton(e) {}
2409
+ function ButtonWithIcon(e) {}
2410
+ function OutlinedButton(e) {}
2411
+ function OutlinedButtonWithIcon(e) {}
2412
+ function toCss(e) {
2413
+ return e === void 0 ? "0px" : typeof e == "number" ? `${e}px` : e;
2414
+ }
2415
+ var RoundedCornerShapeImpl = class {
2416
+ constructor(e) {
2417
+ this.params = e;
2418
+ }
2419
+ toCssBorderRadius() {
2420
+ if (typeof this.params == "number" || typeof this.params == "string") {
2421
+ let e = toCss(this.params);
2422
+ return `${e} ${e} ${e} ${e}`;
2423
+ }
2424
+ let { topStart: e = 0, topEnd: o = 0, bottomEnd: s = 0, bottomStart: c = 0 } = this.params;
2425
+ return `
2426
+ ${toCss(e)}
2427
+ ${toCss(o)}
2428
+ ${toCss(s)}
2429
+ ${toCss(c)}
2430
+ `.trim();
2431
+ }
2432
+ };
2433
+ function RoundedCornerShape(e) {
2434
+ return new RoundedCornerShapeImpl(e);
2435
+ }
2436
+ var defaultEnter = 280, defaultExit = 220;
2437
+ function fadeIn(e = defaultEnter) {
2438
+ return {
2439
+ base: `transition-opacity duration-[${e}ms] ease-out`,
2440
+ from: "opacity-0",
2441
+ to: "opacity-100",
2442
+ duration: e
2443
+ };
2444
+ }
2445
+ function fadeOut(e = defaultExit) {
2446
+ return {
2447
+ base: `transition-opacity duration-[${e}ms] ease-in`,
2448
+ from: "opacity-100",
2449
+ to: "opacity-0",
2450
+ duration: e
2451
+ };
2452
+ }
2453
+ function scaleIn(e = defaultEnter) {
2454
+ return {
2455
+ base: `transition-all duration-[${e}ms] ease-out`,
2456
+ from: "opacity-0 scale-95",
2457
+ to: "opacity-100 scale-100",
2458
+ duration: e
2459
+ };
2460
+ }
2461
+ function scaleOut(e = defaultExit) {
2462
+ return {
2463
+ base: `transition-all duration-[${e}ms] ease-in`,
2464
+ from: "opacity-100 scale-100",
2465
+ to: "opacity-0 scale-95",
2466
+ duration: e
2467
+ };
2468
+ }
2469
+ function slideIn(e = defaultEnter, o = "right") {
2470
+ return {
2471
+ base: `transition-all duration-[${e}ms] ease-out`,
2472
+ from: `opacity-0 ${{
2473
+ left: "-translate-x-4",
2474
+ right: "translate-x-4",
2475
+ up: "-translate-y-4",
2476
+ down: "translate-y-4"
2477
+ }[o]}`,
2478
+ to: "opacity-100 translate-x-0 translate-y-0",
2479
+ duration: e
2480
+ };
2481
+ }
2482
+ function slideOut(e = defaultExit, o = "right") {
2483
+ return {
2484
+ base: `transition-all duration-[${e}ms] ease-in`,
2485
+ from: "opacity-100 translate-x-0 translate-y-0",
2486
+ to: `opacity-0 ${{
2487
+ left: "-translate-x-4",
2488
+ right: "translate-x-4",
2489
+ up: "-translate-y-4",
2490
+ down: "translate-y-4"
2491
+ }[o]}`,
2492
+ duration: e
2493
+ };
2494
+ }
2495
+ var root_1$4 = /* @__PURE__ */ from_html("<div><!></div>");
2496
+ function AnimatedVisibility(e, o) {
2497
+ push(o, !1);
2498
+ let s = prop(o, "visible", 8), c = prop(o, "enter", 24, fadeIn), l = prop(o, "exit", 24, fadeOut), u = /* @__PURE__ */ mutable_source(s()), d = /* @__PURE__ */ mutable_source("");
2499
+ function f() {
2500
+ set(d, `
2501
+ ${c().base}
2502
+ ${c().from}
2503
+ `), requestAnimationFrame(() => {
2504
+ set(d, `
2505
+ ${c().base}
2506
+ ${c().to}
2507
+ `);
2508
+ });
2509
+ }
2510
+ function p() {
2511
+ set(d, `
2512
+ ${l().base}
2513
+ ${l().from}
2514
+ `), requestAnimationFrame(() => {
2515
+ set(d, `
2516
+ ${l().base}
2517
+ ${l().to}
2518
+ `);
2519
+ }), setTimeout(() => {
2520
+ set(u, !1);
2521
+ }, l().duration);
2522
+ }
2523
+ legacy_pre_effect(() => (deep_read_state(s()), get$1(u)), () => {
2524
+ s() ? (set(u, !0), f()) : get$1(u) && p();
2525
+ }), legacy_pre_effect_reset(), init();
2526
+ var m = comment(), h = first_child(m), g = (e) => {
2527
+ var s = root_1$4();
2528
+ slot(child(s), o, "default", {}, null), reset(s), template_effect(() => set_class(s, 1, clsx(get$1(d)))), append(e, s);
2529
+ };
2530
+ if_block(h, (e) => {
2531
+ get$1(u) && e(g);
2532
+ }), append(e, m), pop();
2533
+ }
2534
+ var root_1$3 = /* @__PURE__ */ from_html("<div></div>"), root$11 = /* @__PURE__ */ from_html("<button><div><!></div> <!></button>");
2535
+ function CheckButton(e, o) {
2536
+ push(o, !1);
2537
+ let s = /* @__PURE__ */ mutable_source(), c = /* @__PURE__ */ mutable_source(), l = prop(o, "checked", 8), u = prop(o, "onCheckedChange", 8), d = prop(o, "enabled", 8, !0), f = prop(o, "shape", 24, () => RoundedCornerShape(8)), p = prop(o, "modifier", 24, () => Modifier.empty());
2538
+ function m() {
2539
+ d() && u()(!l());
2540
+ }
2541
+ legacy_pre_effect(() => (deep_read_state(l()), ColorScheme), () => {
2542
+ set(s, l() ? resolveColor(ColorScheme.Primary) : resolveColor(ColorScheme.SurfaceVariant));
2543
+ }), legacy_pre_effect(() => (deep_read_state(l()), ColorScheme), () => {
2544
+ set(c, l() ? resolveColor(ColorScheme.OnPrimary) : resolveColor(ColorScheme.OnSurface));
2545
+ }), legacy_pre_effect_reset(), init();
2546
+ var h = root$11(), g = child(h), _ = child(g);
2547
+ {
2548
+ let e = /* @__PURE__ */ derived_safe_equal(() => (deep_read_state(scaleIn), untrack(scaleIn))), o = /* @__PURE__ */ derived_safe_equal(() => (deep_read_state(scaleOut), untrack(scaleOut)));
2549
+ AnimatedVisibility(_, {
2550
+ get visible() {
2551
+ return l();
2552
+ },
2553
+ get enter() {
2554
+ return get$1(e);
2555
+ },
2556
+ get exit() {
2557
+ return get$1(o);
2558
+ },
2559
+ children: (e, o) => {
2560
+ var c = root_1$3();
2561
+ template_effect(() => set_style(c, `
2562
+ width: 10px;
2563
+ height: 10px;
2564
+ background: ${get$1(s)};
2565
+ border-radius: 2px;
2566
+ `)), append(e, c);
2567
+ },
2568
+ $$slots: { default: !0 }
2569
+ });
2570
+ }
2571
+ reset(g), slot(sibling(g, 2), o, "default", {}, null), reset(h), template_effect((e) => {
2572
+ h.disabled = !d(), set_style(h, e), set_style(g, `
2573
+ width: 20px;
2574
+ height: 20px;
2575
+ border-radius: 4px;
2576
+ background: ${l() ? get$1(c) : "transparent"};
2577
+ display: flex;
2578
+ align-items: center;
2579
+ justify-content: center;
2580
+ `);
2581
+ }, [() => (get$1(s), get$1(c), deep_read_state(f()), deep_read_state(d()), deep_read_state(p()), untrack(() => `
2582
+ display: flex;
2583
+ align-items: center;
2584
+ gap: 12px;
2585
+ padding: 12px 16px;
2586
+ background: ${get$1(s)};
2587
+ color: ${get$1(c)};
2588
+ border-radius: ${f().toCssBorderRadius()};
2589
+ border: none;
2590
+ cursor: ${d() ? "pointer" : "default"};
2591
+ transition: background 200ms ease;
2592
+ ${p().toStyle()}
2593
+ `))]), event("click", h, m), append(e, h), pop();
2594
+ }
2595
+ function TextButton(e) {}
2596
+ var root_1$2 = /* @__PURE__ */ from_html("<div><!></div>");
2597
+ function Card(e, o) {
2598
+ push(o, !1);
2599
+ let s = /* @__PURE__ */ mutable_source(), c = prop(o, "elevation", 8, 1), l = prop(o, "shape", 24, () => RoundedCornerShape(16)), u = prop(o, "modifier", 24, () => Modifier.empty());
2600
+ function d(e) {
2601
+ if (!e || e === 0) return "none";
2602
+ let o = typeof e == "number" ? `${e}px` : e;
2603
+ return `0 ${o} calc(${o} * 3) rgba(0,0,0,0.16)`;
2604
+ }
2605
+ legacy_pre_effect(() => deep_read_state(c()), () => {
2606
+ set(s, d(c()));
2607
+ }), legacy_pre_effect_reset(), init(), Surface(e, {
2608
+ get modifier() {
2609
+ return u();
2610
+ },
2611
+ children: (e, c) => {
2612
+ var u = root_1$2();
2613
+ slot(child(u), o, "default", {}, null), reset(u), template_effect((e) => set_style(u, e), [() => (get$1(s), deep_read_state(l()), untrack(() => `box-shadow: ${get$1(s)}; border-radius: ${l().toCssBorderRadius()};`))]), append(e, u);
2614
+ },
2615
+ $$slots: { default: !0 }
2616
+ }), pop();
2617
+ }
2618
+ function OutlinedCard(e) {}
2619
+ const TextFieldDefaults = {
2620
+ filledColors() {
2621
+ return {
2622
+ container: resolveColor("surfaceVariant"),
2623
+ label: resolveColor("onSurfaceVariant"),
2624
+ placeholder: resolveColor("onSurfaceVariant"),
2625
+ text: resolveColor("onSurface"),
2626
+ cursor: resolveColor("primary"),
2627
+ indicatorFocused: resolveColor("primary"),
2628
+ indicatorUnfocused: resolveColor("onSurfaceVariant"),
2629
+ error: resolveColor("error")
2630
+ };
2631
+ },
2632
+ outlinedColors() {
2633
+ return {
2634
+ container: "transparent",
2635
+ label: resolveColor("onSurfaceVariant"),
2636
+ placeholder: resolveColor("onSurfaceVariant"),
2637
+ text: resolveColor("onSurface"),
2638
+ cursor: resolveColor("primary"),
2639
+ indicatorFocused: resolveColor("primary"),
2640
+ indicatorUnfocused: resolveColor("outline"),
2641
+ borderFocused: resolveColor("primary"),
2642
+ borderUnfocused: resolveColor("outline"),
2643
+ error: resolveColor("error")
2644
+ };
2645
+ }
2646
+ }, Density = {
2647
+ Default: "default",
2648
+ Compact: "compact"
2649
+ };
2650
+ var root_1$1 = /* @__PURE__ */ from_html("<div class=\"flex items-center justify-center\"><!></div>"), root_2$1 = /* @__PURE__ */ from_html("<label class=\"absolute left-0 pointer-events-none origin-left transition-all duration-200\"> </label>"), root_3$1 = /* @__PURE__ */ from_html("<input type=\"text\" class=\"w-full bg-transparent outline-none\"/>"), root_4 = /* @__PURE__ */ from_html("<textarea rows=\"3\" class=\"w-full bg-transparent outline-none resize-none\"></textarea>"), root_5 = /* @__PURE__ */ from_html("<div class=\"flex items-center justify-center\"><!></div>"), root_6 = /* @__PURE__ */ from_html("<div class=\"text-xs px-16\"> </div>"), root$10 = /* @__PURE__ */ from_html("<div class=\"flex flex-col gap-2\"><div class=\"relative overflow-hidden transition-colors duration-150 group\"><div class=\"absolute inset-0 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity\" style=\"background: rgba(0,0,0,0.04);\"></div> <div class=\"grid h-full items-center\"><!> <div class=\"relative h-full flex flex-col justify-center\"><!> <!></div> <!></div> <div class=\"absolute bottom-0 left-0 right-0 h-1 transition-colors\"></div></div> <!></div>");
2651
+ function BaseTextField(e, o) {
2652
+ let s = sanitize_slots(o);
2653
+ push(o, !1);
2654
+ let c = /* @__PURE__ */ mutable_source(), l = /* @__PURE__ */ mutable_source(), u = /* @__PURE__ */ mutable_source(), d = /* @__PURE__ */ mutable_source(), f = /* @__PURE__ */ mutable_source(), p = /* @__PURE__ */ mutable_source(), m = /* @__PURE__ */ mutable_source(), h = /* @__PURE__ */ mutable_source(), g = /* @__PURE__ */ mutable_source(), _ = /* @__PURE__ */ mutable_source(), v = /* @__PURE__ */ mutable_source(), y = /* @__PURE__ */ mutable_source(), b = prop(o, "value", 12, ""), x = prop(o, "onValueChange", 8, (e) => {}), S = prop(o, "label", 8, ""), C = prop(o, "placeholder", 8, ""), w = prop(o, "supportingText", 8), T = prop(o, "singleLine", 8, !0), E = prop(o, "textStyle", 8, "bodyLarge"), D = prop(o, "modifier", 24, () => Modifier.empty()), O = prop(o, "shape", 24, () => RoundedCornerShape(12)), k = prop(o, "colors", 24, () => TextFieldDefaults.filledColors()), A = prop(o, "enabled", 8, !0), j = prop(o, "readOnly", 8, !1), M = prop(o, "isError", 8, !1), N = prop(o, "density", 24, () => Density.Default), P = /* @__PURE__ */ mutable_source(!1), F = `tf-${Math.random().toString(36).slice(2)}`, I = "var(--md-sys-color-error)";
2655
+ function L(e) {
2656
+ if (!A() || j()) return;
2657
+ let o = e.target;
2658
+ x()(o.value);
2659
+ }
2660
+ legacy_pre_effect(() => deep_read_state(b()), () => {
2661
+ set(c, b().length > 0);
2662
+ }), legacy_pre_effect(() => (get$1(P), get$1(c)), () => {
2663
+ set(l, get$1(P) || get$1(c));
2664
+ }), legacy_pre_effect(() => {}, () => {
2665
+ set(u, !!s.leadingIcon);
2666
+ }), legacy_pre_effect(() => {}, () => {
2667
+ set(d, !!s.trailingIcon);
2668
+ }), legacy_pre_effect(() => (deep_read_state(N()), Density), () => {
2669
+ set(f, N() === Density.Compact ? 44 : 56);
2670
+ }), legacy_pre_effect(() => (deep_read_state(N()), Density), () => {
2671
+ set(p, N() === Density.Compact ? 72 : 88);
2672
+ }), legacy_pre_effect(() => (deep_read_state(N()), Density), () => {
2673
+ set(m, N() === Density.Compact ? 14 : 20);
2674
+ }), legacy_pre_effect(() => (deep_read_state(N()), Density), () => {
2675
+ set(h, N() === Density.Compact ? 6 : 8);
2676
+ }), legacy_pre_effect(() => (deep_read_state(M()), get$1(l), deep_read_state(k())), () => {
2677
+ set(g, M() ? I : get$1(l) ? k().cursor : k().label);
2678
+ }), legacy_pre_effect(() => (deep_read_state(A()), deep_read_state(k())), () => {
2679
+ set(_, A() ? k().text : k().label);
2680
+ }), legacy_pre_effect(() => (deep_read_state(M()), get$1(P), deep_read_state(k())), () => {
2681
+ set(v, M() ? I : get$1(P) ? k().indicatorFocused : k().indicatorUnfocused);
2682
+ }), legacy_pre_effect(() => (deep_read_state(M()), deep_read_state(k())), () => {
2683
+ set(y, M() ? I : k().label);
2684
+ }), legacy_pre_effect_reset(), init();
2685
+ var R = root$10(), z = child(R), B = sibling(child(z), 2), V = child(B), H = (e) => {
2686
+ var s = root_1$1();
2687
+ slot(child(s), o, "leadingIcon", {}, null), reset(s), append(e, s);
2688
+ };
2689
+ if_block(V, (e) => {
2690
+ get$1(u) && e(H);
2691
+ });
2692
+ var U = sibling(V, 2), W = child(U), G = (e) => {
2693
+ var o = root_2$1(), s = child(o, !0);
2694
+ reset(o), template_effect(() => {
2695
+ set_attribute(o, "for", F), set_style(o, `
2696
+ top:${get$1(l) ? "2px" : "50%"};
2697
+ transform:
2698
+ translateY(${get$1(l) ? "0" : "-50%"})
2699
+ scale(${get$1(l) ? .72 : 1});
2700
+ color:${get$1(g)};
2701
+ `), set_text(s, S());
2702
+ }), append(e, o);
2703
+ };
2704
+ if_block(W, (e) => {
2705
+ S() && e(G);
2706
+ });
2707
+ var K = sibling(W, 2), q = (e) => {
2708
+ var o = root_3$1();
2709
+ remove_input_defaults(o), template_effect((e) => {
2710
+ set_attribute(o, "id", F), set_attribute(o, "placeholder", get$1(P) ? C() : ""), o.disabled = !A(), o.readOnly = j(), set_style(o, e);
2711
+ }, [() => (deep_read_state(resolveTextStyle), deep_read_state(E()), get$1(l), get$1(_), get$1(m), get$1(h), untrack(() => `
2712
+ font:${resolveTextStyle(E())};
2713
+ font-size:${get$1(l) ? "1.05em" : "1em"};
2714
+ color:${get$1(_)};
2715
+ padding-top:${get$1(m)}px;
2716
+ padding-bottom:${get$1(h)}px;
2717
+ `))]), bind_value(o, b), event("input", o, L), event("focus", o, () => set(P, !0)), event("blur", o, () => set(P, !1)), append(e, o);
2718
+ }, J = (e) => {
2719
+ var o = root_4();
2720
+ remove_textarea_child(o), template_effect((e) => {
2721
+ set_attribute(o, "id", F), set_attribute(o, "placeholder", get$1(P) ? C() : ""), o.disabled = !A(), o.readOnly = j(), set_style(o, e);
2722
+ }, [() => (deep_read_state(resolveTextStyle), deep_read_state(E()), get$1(l), get$1(_), get$1(m), untrack(() => `
2723
+ font:${resolveTextStyle(E())};
2724
+ font-size:${get$1(l) ? "1.05em" : "1em"};
2725
+ color:${get$1(_)};
2726
+ padding-top:${get$1(m)}px;
2727
+ padding-bottom:12px;
2728
+ `))]), bind_value(o, b), event("input", o, L), event("focus", o, () => set(P, !0)), event("blur", o, () => set(P, !1)), append(e, o);
2729
+ };
2730
+ if_block(K, (e) => {
2731
+ T() ? e(q) : e(J, !1);
2732
+ }), reset(U);
2733
+ var Y = sibling(U, 2), X = (e) => {
2734
+ var s = root_5();
2735
+ slot(child(s), o, "trailingIcon", {}, null), reset(s), append(e, s);
2736
+ };
2737
+ if_block(Y, (e) => {
2738
+ get$1(d) && e(X);
2739
+ }), reset(B);
2740
+ var Z = sibling(B, 2);
2741
+ reset(z);
2742
+ var Q = sibling(z, 2), $ = (e) => {
2743
+ var o = root_6(), s = child(o, !0);
2744
+ reset(o), template_effect(() => {
2745
+ set_style(o, `color:${get$1(y)}; margin-top:2px;`), set_text(s, w());
2746
+ }), append(e, o);
2747
+ };
2748
+ if_block(Q, (e) => {
2749
+ w() && e($);
2750
+ }), reset(R), template_effect((e, o) => {
2751
+ set_style(R, e), set_style(z, o), set_style(B, `
2752
+ grid-template-columns: ${get$1(u) ? "auto " : ""}1fr${get$1(d) ? " auto" : ""};
2753
+ padding: 0 16px;
2754
+ column-gap: 12px;
2755
+ `), set_style(Z, `background:${get$1(v)};`);
2756
+ }, [() => (deep_read_state(D()), untrack(() => D().toStyle())), () => (deep_read_state(T()), get$1(f), get$1(p), deep_read_state(k()), deep_read_state(O()), deep_read_state(A()), untrack(() => `
2757
+ ${T() ? `height:${get$1(f)}px;` : `min-height:${get$1(p)}px;`}
2758
+ background:${k().container};
2759
+ border-radius:${O().toCssBorderRadius()};
2760
+ opacity:${A() ? 1 : .6};
2761
+ `))]), append(e, R), pop();
2762
+ }
2763
+ function TextField(e, o) {
2764
+ push(o, !1);
2765
+ let s = prop(o, "value", 8, ""), c = prop(o, "onValueChange", 8, (e) => {}), l = prop(o, "label", 8, ""), u = prop(o, "enabled", 8, !0), d = prop(o, "isError", 8, !1), f = prop(o, "floatingLabelScale", 8, .78), p = prop(o, "placeholder", 8, ""), m = prop(o, "singleLine", 8, !0), h = prop(o, "textStyle", 8, "bodyLarge"), g = prop(o, "modifier", 24, () => Modifier.empty()), _ = prop(o, "shape", 24, () => RoundedCornerShape(12)), v = prop(o, "supportingText", 8, void 0), y = prop(o, "readOnly", 8, !1), b = prop(o, "density", 24, () => Density.Default), x = prop(o, "colors", 24, () => TextFieldDefaults.filledColors());
2766
+ init(), BaseTextField(e, {
2767
+ get value() {
2768
+ return s();
2769
+ },
2770
+ get onValueChange() {
2771
+ return c();
2772
+ },
2773
+ get supportingText() {
2774
+ return v();
2775
+ },
2776
+ get enabled() {
2777
+ return u();
2778
+ },
2779
+ get isError() {
2780
+ return d();
2781
+ },
2782
+ get floatingLabelScale() {
2783
+ return f();
2784
+ },
2785
+ get label() {
2786
+ return l();
2787
+ },
2788
+ get density() {
2789
+ return b();
2790
+ },
2791
+ get readOnly() {
2792
+ return y();
2793
+ },
2794
+ get placeholder() {
2795
+ return p();
2796
+ },
2797
+ get singleLine() {
2798
+ return m();
2799
+ },
2800
+ get textStyle() {
2801
+ return h();
2802
+ },
2803
+ get modifier() {
2804
+ return g();
2805
+ },
2806
+ get shape() {
2807
+ return _();
2808
+ },
2809
+ get colors() {
2810
+ return x();
2811
+ },
2812
+ $$slots: {
2813
+ leadingIcon: (e, s) => {
2814
+ var c = comment();
2815
+ slot(first_child(c), o, "leadingIcon", {}, null), append(e, c);
2816
+ },
2817
+ trailingIcon: (e, s) => {
2818
+ var c = comment();
2819
+ slot(first_child(c), o, "trailingIcon", {}, null), append(e, c);
2820
+ }
2821
+ }
2822
+ }), pop();
2823
+ }
2824
+ var root$9 = /* @__PURE__ */ from_html("<div class=\"relative\"><!></div>");
2825
+ function OutlinedTextField(e, o) {
2826
+ push(o, !1);
2827
+ let s = prop(o, "value", 8, ""), c = prop(o, "onValueChange", 8, (e) => {}), l = prop(o, "label", 8, ""), u = prop(o, "enabled", 8, !0), d = prop(o, "isError", 8, !1), f = prop(o, "readOnly", 8, !1), p = prop(o, "density", 24, () => Density.Default), m = prop(o, "supportingText", 8);
2828
+ prop(o, "floatingLabelScale", 8, .78);
2829
+ let h = prop(o, "placeholder", 8, ""), g = prop(o, "singleLine", 8, !0), _ = prop(o, "textStyle", 8, "bodyLarge"), v = prop(o, "modifier", 24, () => Modifier.empty()), y = prop(o, "shape", 24, () => RoundedCornerShape(12)), b = prop(o, "colors", 24, () => TextFieldDefaults.outlinedColors()), x = /* @__PURE__ */ mutable_source(!1);
2830
+ init();
2831
+ var S = root$9(), C = child(S);
2832
+ {
2833
+ let e = /* @__PURE__ */ derived_safe_equal(() => (deep_read_state(Modifier), untrack(() => Modifier.empty())));
2834
+ BaseTextField(C, {
2835
+ get value() {
2836
+ return s();
2837
+ },
2838
+ get supportingText() {
2839
+ return m();
2840
+ },
2841
+ get density() {
2842
+ return p();
2843
+ },
2844
+ get readOnly() {
2845
+ return f();
2846
+ },
2847
+ get enabled() {
2848
+ return u();
2849
+ },
2850
+ get isError() {
2851
+ return d();
2852
+ },
2853
+ get onValueChange() {
2854
+ return c();
2855
+ },
2856
+ get label() {
2857
+ return l();
2858
+ },
2859
+ get placeholder() {
2860
+ return h();
2861
+ },
2862
+ get singleLine() {
2863
+ return g();
2864
+ },
2865
+ get textStyle() {
2866
+ return _();
2867
+ },
2868
+ get modifier() {
2869
+ return get$1(e);
2870
+ },
2871
+ get shape() {
2872
+ return y();
2873
+ },
2874
+ get colors() {
2875
+ return b();
2876
+ },
2877
+ $$events: {
2878
+ focus: () => set(x, !0),
2879
+ blur: () => set(x, !1)
2880
+ },
2881
+ $$slots: {
2882
+ leadingIcon: (e, s) => {
2883
+ var c = comment();
2884
+ slot(first_child(c), o, "leadingIcon", {}, null), append(e, c);
2885
+ },
2886
+ trailingIcon: (e, s) => {
2887
+ var c = comment();
2888
+ slot(first_child(c), o, "trailingIcon", {}, null), append(e, c);
2889
+ }
2890
+ }
2891
+ });
2892
+ }
2893
+ reset(S), template_effect((e) => set_style(S, e), [() => (get$1(x), deep_read_state(b()), deep_read_state(y()), deep_read_state(v()), untrack(() => `
2894
+ border:1px solid ${get$1(x) ? b().borderFocused : b().borderUnfocused};
2895
+ border-radius:${y().toCssBorderRadius()};
2896
+ transition:border-color 200ms;
2897
+ ${v().toStyle()}
2898
+ `))]), append(e, S), pop();
2899
+ }
2900
+ var root$8 = /* @__PURE__ */ from_html("<button class=\"border-0 cursor-pointer flex items-center justify-center gap-8 px-24 py-12 font-medium tracking-wider transition-all hover:opacity-90 active:scale-95\"><!></button>");
2901
+ function TonalButton(e, o) {
2902
+ push(o, !1);
2903
+ let s = /* @__PURE__ */ mutable_source(), c = /* @__PURE__ */ mutable_source(), l = /* @__PURE__ */ mutable_source(), u = /* @__PURE__ */ mutable_source(), d = prop(o, "onClick", 8, () => {}), f = prop(o, "modifier", 24, () => Modifier.empty()), p = prop(o, "color", 8, "secondaryContainer"), m = prop(o, "onColor", 8, "onSecondaryContainer"), h = prop(o, "shape", 8, "large"), g = prop(o, "elevation", 8, "level0");
2904
+ legacy_pre_effect(() => (deep_read_state(p()), resolveColor), () => {
2905
+ set(s, typeof p() == "string" ? resolveColor(p()) : p());
2906
+ }), legacy_pre_effect(() => (deep_read_state(m()), resolveColor), () => {
2907
+ set(c, typeof m() == "string" ? resolveColor(m()) : m());
2908
+ }), legacy_pre_effect(() => deep_read_state(h()), () => {
2909
+ set(l, `var(--md-sys-shape-${h()})`);
2910
+ }), legacy_pre_effect(() => deep_read_state(g()), () => {
2911
+ set(u, `var(--md-sys-elevation-${g()})`);
2912
+ }), legacy_pre_effect_reset(), init();
2913
+ var _ = root$8();
2914
+ slot(child(_), o, "default", {}, null), reset(_), template_effect((e) => set_style(_, e), [() => (get$1(s), get$1(c), get$1(l), get$1(u), deep_read_state(f()), untrack(() => `
2915
+ background: ${get$1(s)};
2916
+ color: ${get$1(c)};
2917
+ border-radius: ${get$1(l)};
2918
+ box-shadow: ${get$1(u)};
2919
+ ${f().toStyle()}
2920
+ `))]), event("click", _, function(...e) {
2921
+ d()?.apply(this, e);
2922
+ }), append(e, _), pop();
2923
+ }
2924
+ var root_2 = /* @__PURE__ */ from_html("<div><!></div>"), root_3 = /* @__PURE__ */ from_html("<div><!></div>"), root$7 = /* @__PURE__ */ from_html("<div><div><div></div></div></div>");
2925
+ function LazyColumn(s, c) {
2926
+ push(c, !1);
2927
+ let l = /* @__PURE__ */ mutable_source(), u = /* @__PURE__ */ mutable_source(), d = /* @__PURE__ */ mutable_source(), f = /* @__PURE__ */ mutable_source(), p = /* @__PURE__ */ mutable_source(), m = prop(c, "items", 24, () => []), h = prop(c, "modifier", 24, () => Modifier.empty()), g = prop(c, "horizontalAlignment", 24, () => Alignment.Start), _ = prop(c, "verticalArrangement", 24, () => Arrangement.Start), v = /* @__PURE__ */ mutable_source(), y = /* @__PURE__ */ mutable_source(null), b = /* @__PURE__ */ mutable_source(0), x = /* @__PURE__ */ mutable_source(0), S = /* @__PURE__ */ mutable_source(56), C = /* @__PURE__ */ mutable_source(!1);
2928
+ onMount(() => {
2929
+ set(x, get$1(v).clientHeight);
2930
+ });
2931
+ async function w() {
2932
+ await tick(), get$1(y) && (set(S, get$1(y).offsetHeight), set(C, !0));
2933
+ }
2934
+ function T(e) {
2935
+ set(b, e.target.scrollTop);
2936
+ }
2937
+ function E(e) {
2938
+ return e.type === "spaced" ? `${e.gap}px` : "0px";
2939
+ }
2940
+ legacy_pre_effect(() => (get$1(y), get$1(C)), () => {
2941
+ get$1(y) && !get$1(C) && w();
2942
+ }), legacy_pre_effect(() => (deep_read_state(m()), get$1(S)), () => {
2943
+ set(l, m().length * get$1(S));
2944
+ }), legacy_pre_effect(() => (get$1(b), get$1(S)), () => {
2945
+ set(u, Math.max(0, Math.floor(get$1(b) / get$1(S)) - 3));
2946
+ }), legacy_pre_effect(() => (get$1(x), get$1(S)), () => {
2947
+ set(d, Math.ceil(get$1(x) / get$1(S)) + 6);
2948
+ }), legacy_pre_effect(() => (deep_read_state(m()), get$1(u), get$1(d)), () => {
2949
+ set(f, Math.min(m().length, get$1(u) + get$1(d)));
2950
+ }), legacy_pre_effect(() => (deep_read_state(m()), get$1(u), get$1(f)), () => {
2951
+ set(p, m().slice(get$1(u), get$1(f)));
2952
+ }), legacy_pre_effect_reset(), init();
2953
+ var D = root$7(), O = child(D), k = child(O);
2954
+ each(k, 5, () => get$1(p), index, (e, o, s) => {
2955
+ var l = comment(), u = first_child(l), d = (e) => {
2956
+ var s = root_2();
2957
+ slot(child(s), c, "default", { get item() {
2958
+ return get$1(o);
2959
+ } }, null), reset(s), bind_this(s, (e) => set(y, e), () => get$1(y)), append(e, s);
2960
+ }, f = (e) => {
2961
+ var s = root_3();
2962
+ slot(child(s), c, "default", { get item() {
2963
+ return get$1(o);
2964
+ } }, null), reset(s), append(e, s);
2965
+ };
2966
+ if_block(u, (e) => {
2967
+ s === 0 && !get$1(C) ? e(d) : e(f, !1);
2968
+ }), append(e, l);
2969
+ }), reset(k), reset(O), reset(D), bind_this(D, (e) => set(v, e), () => get$1(v)), template_effect((e, o) => {
2970
+ set_style(D, e), set_style(O, `height:${get$1(l)}px; position:relative;`), set_style(k, o);
2971
+ }, [() => (deep_read_state(h()), untrack(() => `
2972
+ overflow-y:auto;
2973
+ position:relative;
2974
+ ${h().toStyle()}
2975
+ `)), () => (get$1(u), get$1(S), deep_read_state(g()), deep_read_state(_()), untrack(() => `
2976
+ position:absolute;
2977
+ top:${get$1(u) * get$1(S)}px;
2978
+ left:0;
2979
+ right:0;
2980
+
2981
+ display:flex;
2982
+ flex-direction:column;
2983
+ align-items:${g()};
2984
+ gap:${E(_())};
2985
+ `))]), event("scroll", D, T), append(s, D), pop();
2986
+ }
2987
+ var root$6 = /* @__PURE__ */ from_html("<div></div>");
2988
+ function LazyRow(e, o) {
2989
+ push(o, !1);
2990
+ let s = prop(o, "items", 24, () => []), c = prop(o, "modifier", 24, () => Modifier.empty()), l = prop(o, "verticalAlignment", 24, () => Alignment.Top), u = prop(o, "horizontalArrangement", 24, () => Arrangement.Start), d = prop(o, "scrollEnabled", 8, !0), f = prop(o, "hideScrollbar", 8, !1), p = prop(o, "horizontalSpacing", 8, null);
2991
+ function m() {
2992
+ return p() === null ? u().type === "spaced" ? `${u().gap}px` : "0px" : `${p()}px`;
2993
+ }
2994
+ function h() {
2995
+ return d() ? "auto" : "hidden";
2996
+ }
2997
+ function g() {
2998
+ return f() ? "\n scrollbar-width: none;\n -ms-overflow-style: none;\n " : "";
2999
+ }
3000
+ init();
3001
+ var _ = root$6();
3002
+ each(_, 5, s, index, (e, s) => {
3003
+ var c = comment();
3004
+ slot(first_child(c), o, "default", { get item() {
3005
+ return get$1(s);
3006
+ } }, null), append(e, c);
3007
+ }), reset(_), template_effect((e) => {
3008
+ set_class(_, 1, clsx(f() ? "lazy-row--hide-scrollbar" : ""), "svelte-t2yd5u"), set_style(_, e);
3009
+ }, [() => (deep_read_state(l()), deep_read_state(u()), deep_read_state(c()), untrack(() => `
3010
+ display: flex;
3011
+ flex-direction: row;
3012
+
3013
+ align-items: ${l()};
3014
+ justify-content: ${u().justifyContent};
3015
+ gap: ${m()};
3016
+
3017
+ overflow-x: ${h()};
3018
+ overflow-y: visible;
3019
+
3020
+ height: fit-content;
3021
+ min-height: fit-content;
3022
+
3023
+ ${g()}
3024
+ ${c().toStyle()}
3025
+ `))]), append(e, _), pop();
3026
+ }
3027
+ var root$5 = /* @__PURE__ */ from_html("<div class=\"block\"></div>");
3028
+ function Icon(e, o) {
3029
+ push(o, !1);
3030
+ let s = /* @__PURE__ */ mutable_source(), c = prop(o, "painter", 8, ""), l = prop(o, "tint", 8, void 0), u = prop(o, "modifier", 24, () => Modifier.empty());
3031
+ legacy_pre_effect(() => (deep_read_state(l()), ColorScheme), () => {
3032
+ set(s, (() => l() ? typeof l() == "string" && (l().startsWith("#") || l().startsWith("rgb") || l().startsWith("hsl") || l() === "transparent") ? l() : typeof l() == "string" ? resolveColor(l()) : "currentColor" : resolveColor(ColorScheme.OnBackground))());
3033
+ }), legacy_pre_effect_reset(), init();
3034
+ var d = root$5();
3035
+ template_effect((e) => set_style(d, e), [() => (deep_read_state(c()), get$1(s), deep_read_state(u()), untrack(() => `
3036
+ -webkit-mask-image: url(${c()});
3037
+ mask-image: url(${c()});
3038
+ -webkit-mask-repeat: no-repeat;
3039
+ mask-repeat: no-repeat;
3040
+ -webkit-mask-size: contain;
3041
+ mask-size: contain;
3042
+ -webkit-mask-position: center;
3043
+ mask-position: center;
3044
+ background-color: ${get$1(s)};
3045
+ ${u().toStyle()}
3046
+ `))]), append(e, d), pop();
3047
+ }
3048
+ const ContentScale = {
3049
+ Crop: "cover",
3050
+ Fit: "contain",
3051
+ FillBounds: "fill",
3052
+ Inside: "contain",
3053
+ FillWidth: "fillWidth",
3054
+ FillHeight: "fillHeight",
3055
+ None: "none"
3056
+ };
3057
+ var root$4 = /* @__PURE__ */ from_html("<div class=\"relative overflow-hidden\"><img class=\"absolute inset-0\"/></div>");
3058
+ function Image(e, o) {
3059
+ push(o, !1);
3060
+ let s = /* @__PURE__ */ mutable_source(), c = /* @__PURE__ */ mutable_source(), l = /* @__PURE__ */ mutable_source(), u = prop(o, "painter", 8, ""), d = prop(o, "contentScale", 24, () => ContentScale.Fit), f = prop(o, "contentDescription", 8, ""), p = prop(o, "modifier", 24, () => Modifier.empty());
3061
+ legacy_pre_effect(() => deep_read_state(d()), () => {
3062
+ set(s, d() === "fillWidth");
3063
+ }), legacy_pre_effect(() => deep_read_state(d()), () => {
3064
+ set(c, d() === "fillHeight");
3065
+ }), legacy_pre_effect(() => (get$1(s), get$1(c), deep_read_state(d())), () => {
3066
+ set(l, get$1(s) || get$1(c) ? "cover" : d());
3067
+ }), legacy_pre_effect_reset(), init();
3068
+ var m = root$4(), h = child(m);
3069
+ reset(m), template_effect((e) => {
3070
+ set_style(m, e), set_attribute(h, "src", u()), set_attribute(h, "alt", f()), set_style(h, `
3071
+ width: ${get$1(c) ? "auto" : "100%"};
3072
+ height: ${get$1(s) ? "auto" : "100%"};
3073
+ object-fit: ${get$1(l)};
3074
+ object-position: center;
3075
+ `);
3076
+ }, [() => (deep_read_state(p()), untrack(() => p().toStyle()))]), append(e, m), pop();
3077
+ }
3078
+ var root$3 = /* @__PURE__ */ from_html("<div><div><!></div> <div><!></div> <div><!></div> <div><div><!></div></div></div>");
3079
+ function Scaffold(e, o) {
3080
+ push(o, !1);
3081
+ let s = prop(o, "modifier", 24, () => Modifier.empty()), c = prop(o, "contentPadding", 8, 16), l = prop(o, "fabAlignment", 8, "bottom-end");
3082
+ init();
3083
+ var u = root$3(), d = child(u);
3084
+ slot(child(d), o, "topBar", {}, null), reset(d);
3085
+ var f = sibling(d, 2);
3086
+ slot(child(f), o, "default", {}, null), reset(f);
3087
+ var p = sibling(f, 2);
3088
+ slot(child(p), o, "bottomBar", {}, null), reset(p);
3089
+ var m = sibling(p, 2);
3090
+ set_style(m, "\n position: absolute;\n pointer-events: none;\n inset: 0;\n ");
3091
+ var h = child(m);
3092
+ slot(child(h), o, "floatingActionButton", {}, null), reset(h), reset(m), reset(u), template_effect((e) => {
3093
+ set_style(u, e), set_style(f, `
3094
+ flex: 1;
3095
+ position: relative;
3096
+ padding: ${c()}px;
3097
+ overflow: auto;
3098
+ `), set_style(h, `
3099
+ position: absolute;
3100
+ pointer-events: auto;
3101
+
3102
+ ${l() === "bottom-end" ? "right: 16px; bottom: 16px;" : l() === "bottom-center" ? "left: 50%; transform: translateX(-50%); bottom: 16px;" : "left: 16px; bottom: 16px;"}
3103
+ `);
3104
+ }, [() => (deep_read_state(s()), untrack(() => `
3105
+ display: flex;
3106
+ flex-direction: column;
3107
+ height: 100%;
3108
+ width: 100%;
3109
+ position: relative;
3110
+ ${s().toStyle()}
3111
+ `))]), append(e, u), pop();
3112
+ }
3113
+ function slideHorizontal() {
3114
+ return {
3115
+ enter: "transition-transform duration-200 ease-out translate-x-0",
3116
+ exit: "transition-transform duration-200 ease-in -translate-x-full",
3117
+ duration: 200
3118
+ };
3119
+ }
3120
+ function scaleFade() {
3121
+ return {
3122
+ enter: "transition-all duration-220 ease-out opacity-100 scale-100",
3123
+ exit: "transition-all duration-180 ease-in opacity-0 scale-95",
3124
+ duration: 220
3125
+ };
3126
+ }
3127
+ function fade(e = 300) {
3128
+ return {
3129
+ enter: "animate-fade-in",
3130
+ exit: "animate-fade-out",
3131
+ duration: e
3132
+ };
3133
+ }
3134
+ var root$2 = /* @__PURE__ */ from_html("<div class=\"relative w-full h-full overflow-hidden\"><div><!></div></div>");
3135
+ function AnimatedContent(e, o) {
3136
+ push(o, !1);
3137
+ let s = prop(o, "targetState", 8), c = prop(o, "transition", 24, fade), l = /* @__PURE__ */ mutable_source(s()), u = /* @__PURE__ */ mutable_source(!1), d = /* @__PURE__ */ mutable_source(null);
3138
+ legacy_pre_effect(() => (deep_read_state(s()), get$1(l), get$1(d), deep_read_state(c())), () => {
3139
+ s() !== get$1(l) && (set(u, !0), get$1(d) && clearTimeout(get$1(d)), set(d, setTimeout(() => {
3140
+ set(l, s()), set(u, !1), set(d, null);
3141
+ }, c().duration)));
3142
+ }), legacy_pre_effect_reset(), init();
3143
+ var f = root$2(), p = child(f);
3144
+ slot(child(p), o, "default", {}, null), reset(p), reset(f), template_effect(() => set_class(p, 1, (get$1(u), deep_read_state(c()), untrack(() => `w-full h-full transition-all ${get$1(u) ? c().exit : c().enter}`)))), append(e, f), pop();
3145
+ }
3146
+ var root_1 = /* @__PURE__ */ from_html("<div class=\"absolute top-2 right-3 text-xs opacity-60 select-none\" style=\"color: var(--md-sys-color-onSurfaceVariant)\"> </div>"), root$1 = /* @__PURE__ */ from_html("<div class=\"relative\"><!> <pre><code><!></code>\n</pre></div>");
3147
+ function CodeBlock(e, o) {
3148
+ push(o, !1);
3149
+ let s = prop(o, "language", 8, void 0), c = prop(o, "modifier", 24, () => Modifier.empty()), l = prop(o, "wrap", 8, !1);
3150
+ init();
3151
+ var u = root$1(), d = child(u), f = (e) => {
3152
+ var o = root_1(), c = child(o, !0);
3153
+ reset(o), template_effect(() => set_text(c, s())), append(e, o);
3154
+ };
3155
+ if_block(d, (e) => {
3156
+ s() && e(f);
3157
+ });
3158
+ var p = sibling(d, 2);
3159
+ set_style(p, "\n margin: 2;\n background: var(--md-sys-color-surfaceVariant);\n color: var(--md-sys-color-onSurface);\n padding: 12px 16px;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.85rem;\n line-height: 1.35;\n ");
3160
+ var m = child(p);
3161
+ slot(child(m), o, "default", {}, null), reset(m), next(), reset(p), reset(u), template_effect((e) => {
3162
+ set_style(u, e), set_class(p, 1, `inline-block max-w-full rounded-xl overflow-x-auto ${l() ? "whitespace-pre-wrap" : "whitespace-pre"}`);
3163
+ }, [() => (deep_read_state(c()), untrack(() => c().toStyle()))]), append(e, u), pop();
3164
+ }
3165
+ var root = /* @__PURE__ */ from_html("<div><!></div>");
3166
+ function NavHost(e, o) {
3167
+ push(o, !1);
3168
+ let s = () => store_get(_, "$stackStore", c), [c, l] = setup_stores(), u = /* @__PURE__ */ mutable_source(), d = /* @__PURE__ */ mutable_source(), f = /* @__PURE__ */ mutable_source(), p = prop(o, "navController", 8), m = prop(o, "routes", 8), h = prop(o, "transition", 24, () => fade(320)), g = prop(o, "modifier", 24, () => Modifier.empty()), _ = p()._getStackStore();
3169
+ legacy_pre_effect(() => s(), () => {
3170
+ set(u, s());
3171
+ }), legacy_pre_effect(() => get$1(u), () => {
3172
+ set(d, get$1(u).at(-1));
3173
+ }), legacy_pre_effect(() => (deep_read_state(m()), get$1(d)), () => {
3174
+ set(f, m().find((e) => e.route.path === get$1(d)?.route));
3175
+ }), legacy_pre_effect_reset(), init();
3176
+ var v = root(), y = child(v);
3177
+ {
3178
+ let e = /* @__PURE__ */ derived_safe_equal(() => (get$1(d), untrack(() => get$1(d)?.route))), o = /* @__PURE__ */ derived_safe_equal(() => (deep_read_state(Modifier), untrack(() => Modifier.fillMaxSize())));
3179
+ AnimatedContent(y, {
3180
+ get targetState() {
3181
+ return get$1(e);
3182
+ },
3183
+ get transition() {
3184
+ return h();
3185
+ },
3186
+ get modifier() {
3187
+ return get$1(o);
3188
+ },
3189
+ children: invalid_default_snippet,
3190
+ $$slots: { default: (e, o) => {
3191
+ var s = comment(), c = first_child(s), l = (e) => {
3192
+ var o = comment();
3193
+ component(first_child(o), () => get$1(f).component, (e, o) => {
3194
+ o(e, {
3195
+ get navController() {
3196
+ return p();
3197
+ },
3198
+ get navBackStackEntry() {
3199
+ return get$1(d);
3200
+ }
3201
+ });
3202
+ }), append(e, o);
3203
+ };
3204
+ if_block(c, (e) => {
3205
+ get$1(f) && e(l);
3206
+ }), append(e, s);
3207
+ } }
3208
+ });
3209
+ }
3210
+ reset(v), template_effect((e) => set_style(v, e), [() => (deep_read_state(g()), untrack(() => g().toStyle()))]), append(e, v), pop(), l();
3211
+ }
3212
+ const TextStyle = {
3213
+ DisplayLarge: "displayLarge",
3214
+ DisplayMedium: "displayMedium",
3215
+ DisplaySmall: "displaySmall",
3216
+ HeadlineLarge: "headlineLarge",
3217
+ HeadlineMedium: "headlineMedium",
3218
+ HeadlineSmall: "headlineSmall",
3219
+ TitleLarge: "titleLarge",
3220
+ TitleMedium: "titleMedium",
3221
+ TitleSmall: "titleSmall",
3222
+ BodyLarge: "bodyLarge",
3223
+ BodyMedium: "bodyMedium",
3224
+ BodySmall: "bodySmall",
3225
+ LabelLarge: "labelLarge",
3226
+ LabelMedium: "labelMedium",
3227
+ LabelSmall: "labelSmall"
3228
+ }, Res = {
3229
+ raw(e) {
3230
+ return "raw/" + e;
3231
+ },
3232
+ image(e) {
3233
+ return "img/" + e;
3234
+ },
3235
+ values(e) {
3236
+ return "values/" + e;
3237
+ },
3238
+ fonts(e) {
3239
+ return "fonts/" + e;
3240
+ }
3241
+ };
3242
+ function painterResource(e) {
3243
+ return "/src/assets/" + e;
3244
+ }
3245
+ var NavController = class {
3246
+ constructor(e) {
3247
+ this.stackStore = writable([{ route: e }]);
3248
+ }
3249
+ _getStackStore() {
3250
+ return this.stackStore;
3251
+ }
3252
+ navigate(e, o) {
3253
+ this.stackStore.update((s) => [...s, {
3254
+ route: e,
3255
+ args: o
3256
+ }]);
3257
+ }
3258
+ popBackStack() {
3259
+ this.stackStore.update((e) => e.length > 1 ? e.slice(0, -1) : e);
3260
+ }
3261
+ };
3262
+ function rememberNavController(e) {
3263
+ return new NavController(e);
3264
+ }
3265
+ function composable(e, o) {
3266
+ return {
3267
+ route: e,
3268
+ component: o()
3269
+ };
3270
+ }
3271
+ export { Alignment, AnimatedContent, AnimatedVisibility, AppRoot, Arrangement, Box, Button, ButtonWithIcon, Card, CheckButton, CodeBlock, ColorScheme, Column, ComposeTheme, ContentScale, Density, Icon, IconButton, Image, LazyColumn, LazyRow, Modifier, NavController, NavHost, OutlinedButton, OutlinedButton as OutlinedIconButton, OutlinedButtonWithIcon, OutlinedCard, OutlinedTextField, Res, RoundedCornerShape, Row, Scaffold, Spacer, Surface, Text$1 as Text, TextButton, TextField, TextStyle, TonalButton, composable, fade, fadeIn, fadeOut, painterResource, rememberNavController, scaleFade, scaleIn, scaleOut, slideHorizontal, slideIn, slideOut };