@noego/forge 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.mjs CHANGED
@@ -1,14 +1,14 @@
1
- var tt = Object.defineProperty;
2
- var rt = (e, t, r) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var oe = (e, t, r) => rt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { p as nt, a as k } from "./page.svelte-4uv4nQ2i.js";
5
- import { s as Pr } from "./page.svelte-4uv4nQ2i.js";
1
+ var rt = Object.defineProperty;
2
+ var nt = (e, t, r) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var oe = (e, t, r) => nt(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { p as ot, a as k } from "./page.svelte-4uv4nQ2i.js";
5
+ import { s as Cr } from "./page.svelte-4uv4nQ2i.js";
6
6
  import "svelte/internal/client";
7
- import { hydrate as ot } from "svelte";
8
- import it from "../src/components/RecursiveRender.svelte";
9
- import { writable as Ce, get as R } from "svelte/store";
10
- function at(e) {
11
- const t = new nt(e);
7
+ import { hydrate as it } from "svelte";
8
+ import at from "../src/components/RecursiveRender.svelte";
9
+ import { writable as Re, get as C } from "svelte/store";
10
+ function st(e) {
11
+ const t = new ot(e);
12
12
  return (r) => {
13
13
  const n = t.match(r);
14
14
  if (!n) return null;
@@ -18,9 +18,9 @@ function at(e) {
18
18
  return i;
19
19
  };
20
20
  }
21
- function st(e) {
21
+ function ut(e) {
22
22
  return e.map((t) => {
23
- const r = t.path, n = at(r);
23
+ const r = t.path, n = st(r);
24
24
  return { pattern: r, parser: n };
25
25
  });
26
26
  }
@@ -40,7 +40,7 @@ function G(e, t) {
40
40
  }
41
41
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
42
42
  }
43
- function ut(e, t, r, n) {
43
+ function ct(e, t, r, n) {
44
44
  function i(o) {
45
45
  return o instanceof r ? o : new r(function(a) {
46
46
  a(o);
@@ -50,15 +50,15 @@ function ut(e, t, r, n) {
50
50
  function c(l) {
51
51
  try {
52
52
  s(n.next(l));
53
- } catch (p) {
54
- a(p);
53
+ } catch (h) {
54
+ a(h);
55
55
  }
56
56
  }
57
57
  function u(l) {
58
58
  try {
59
59
  s(n.throw(l));
60
- } catch (p) {
61
- a(p);
60
+ } catch (h) {
61
+ a(h);
62
62
  }
63
63
  }
64
64
  function s(l) {
@@ -162,7 +162,7 @@ function Y(e, t, r) {
162
162
  function W(e) {
163
163
  return this instanceof W ? (this.v = e, this) : new W(e);
164
164
  }
165
- function ct(e, t, r) {
165
+ function lt(e, t, r) {
166
166
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
167
167
  var n = r.apply(e, t || []), i, o = [];
168
168
  return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), c("next"), c("throw"), c("return", a), i[Symbol.asyncIterator] = function() {
@@ -170,7 +170,7 @@ function ct(e, t, r) {
170
170
  }, i;
171
171
  function a(d) {
172
172
  return function(v) {
173
- return Promise.resolve(v).then(d, p);
173
+ return Promise.resolve(v).then(d, h);
174
174
  };
175
175
  }
176
176
  function c(d, v) {
@@ -184,23 +184,23 @@ function ct(e, t, r) {
184
184
  try {
185
185
  s(n[d](v));
186
186
  } catch (f) {
187
- h(o[0][3], f);
187
+ p(o[0][3], f);
188
188
  }
189
189
  }
190
190
  function s(d) {
191
- d.value instanceof W ? Promise.resolve(d.value.v).then(l, p) : h(o[0][2], d);
191
+ d.value instanceof W ? Promise.resolve(d.value.v).then(l, h) : p(o[0][2], d);
192
192
  }
193
193
  function l(d) {
194
194
  u("next", d);
195
195
  }
196
- function p(d) {
196
+ function h(d) {
197
197
  u("throw", d);
198
198
  }
199
- function h(d, v) {
199
+ function p(d, v) {
200
200
  d(v), o.shift(), o.length && u(o[0][0], o[0][1]);
201
201
  }
202
202
  }
203
- function lt(e) {
203
+ function ft(e) {
204
204
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
205
205
  var t = e[Symbol.asyncIterator], r;
206
206
  return t ? t.call(e) : (e = typeof q == "function" ? q(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
@@ -277,11 +277,11 @@ var te = (function() {
277
277
  } catch (f) {
278
278
  o = f instanceof ie ? f.errors : [f];
279
279
  }
280
- var p = this._finalizers;
281
- if (p) {
280
+ var h = this._finalizers;
281
+ if (h) {
282
282
  this._finalizers = null;
283
283
  try {
284
- for (var h = q(p), d = h.next(); !d.done; d = h.next()) {
284
+ for (var p = q(h), d = p.next(); !d.done; d = p.next()) {
285
285
  var v = d.value;
286
286
  try {
287
287
  Ee(v);
@@ -293,7 +293,7 @@ var te = (function() {
293
293
  n = { error: f };
294
294
  } finally {
295
295
  try {
296
- d && !d.done && (i = h.return) && i.call(h);
296
+ d && !d.done && (i = p.return) && i.call(p);
297
297
  } finally {
298
298
  if (n) throw n.error;
299
299
  }
@@ -338,9 +338,9 @@ function Ne(e) {
338
338
  function Ee(e) {
339
339
  w(e) ? e() : e.unsubscribe();
340
340
  }
341
- var ft = {
341
+ var dt = {
342
342
  Promise: void 0
343
- }, dt = {
343
+ }, ht = {
344
344
  setTimeout: function(e, t) {
345
345
  for (var r = [], n = 2; n < arguments.length; n++)
346
346
  r[n - 2] = arguments[n];
@@ -352,7 +352,7 @@ var ft = {
352
352
  delegate: void 0
353
353
  };
354
354
  function Fe(e) {
355
- dt.setTimeout(function() {
355
+ ht.setTimeout(function() {
356
356
  throw e;
357
357
  });
358
358
  }
@@ -365,7 +365,7 @@ var ye = (function(e) {
365
365
  G(t, e);
366
366
  function t(r) {
367
367
  var n = e.call(this) || this;
368
- return n.isStopped = !1, r ? (n.destination = r, Ne(r) && r.add(n)) : n.destination = vt, n;
368
+ return n.isStopped = !1, r ? (n.destination = r, Ne(r) && r.add(n)) : n.destination = mt, n;
369
369
  }
370
370
  return t.create = function(r, n, i) {
371
371
  return new B(r, n, i);
@@ -392,7 +392,7 @@ var ye = (function(e) {
392
392
  this.unsubscribe();
393
393
  }
394
394
  }, t;
395
- })(te), ht = (function() {
395
+ })(te), pt = (function() {
396
396
  function e(t) {
397
397
  this.partialObserver = t;
398
398
  }
@@ -431,20 +431,20 @@ var ye = (function(e) {
431
431
  next: r ?? void 0,
432
432
  error: n ?? void 0,
433
433
  complete: i ?? void 0
434
- } : a = r, o.destination = new ht(a), o;
434
+ } : a = r, o.destination = new pt(a), o;
435
435
  }
436
436
  return t;
437
437
  })(ye);
438
438
  function K(e) {
439
439
  Fe(e);
440
440
  }
441
- function pt(e) {
441
+ function vt(e) {
442
442
  throw e;
443
443
  }
444
- var vt = {
444
+ var mt = {
445
445
  closed: !0,
446
446
  next: Oe,
447
- error: pt,
447
+ error: vt,
448
448
  complete: Oe
449
449
  }, be = (function() {
450
450
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
@@ -452,7 +452,7 @@ var vt = {
452
452
  function we(e) {
453
453
  return e;
454
454
  }
455
- function mt(e) {
455
+ function yt(e) {
456
456
  return e.length === 0 ? we : e.length === 1 ? e[0] : function(r) {
457
457
  return e.reduce(function(n, i) {
458
458
  return i(n);
@@ -467,7 +467,7 @@ var x = (function() {
467
467
  var r = new e();
468
468
  return r.source = this, r.operator = t, r;
469
469
  }, e.prototype.subscribe = function(t, r, n) {
470
- var i = this, o = bt(t) ? t : new B(t, r, n);
470
+ var i = this, o = wt(t) ? t : new B(t, r, n);
471
471
  return Z(function() {
472
472
  var a = i, c = a.operator, u = a.source;
473
473
  o.add(c ? c.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
@@ -502,7 +502,7 @@ var x = (function() {
502
502
  }, e.prototype.pipe = function() {
503
503
  for (var t = [], r = 0; r < arguments.length; r++)
504
504
  t[r] = arguments[r];
505
- return mt(t)(this);
505
+ return yt(t)(this);
506
506
  }, e.prototype.toPromise = function(t) {
507
507
  var r = this;
508
508
  return t = xe(t), new t(function(n, i) {
@@ -521,20 +521,20 @@ var x = (function() {
521
521
  })();
522
522
  function xe(e) {
523
523
  var t;
524
- return (t = e ?? ft.Promise) !== null && t !== void 0 ? t : Promise;
525
- }
526
- function yt(e) {
527
- return e && w(e.next) && w(e.error) && w(e.complete);
524
+ return (t = e ?? dt.Promise) !== null && t !== void 0 ? t : Promise;
528
525
  }
529
526
  function bt(e) {
530
- return e && e instanceof ye || yt(e) && Ne(e);
527
+ return e && w(e.next) && w(e.error) && w(e.complete);
531
528
  }
532
529
  function wt(e) {
530
+ return e && e instanceof ye || bt(e) && Ne(e);
531
+ }
532
+ function gt(e) {
533
533
  return w(e == null ? void 0 : e.lift);
534
534
  }
535
535
  function j(e) {
536
536
  return function(t) {
537
- if (wt(t))
537
+ if (gt(t))
538
538
  return t.lift(function(r) {
539
539
  try {
540
540
  return e(r, this);
@@ -545,10 +545,10 @@ function j(e) {
545
545
  throw new TypeError("Unable to lift unknown Observable type");
546
546
  };
547
547
  }
548
- function C(e, t, r, n, i) {
549
- return new gt(e, t, r, n, i);
548
+ function R(e, t, r, n, i) {
549
+ return new St(e, t, r, n, i);
550
550
  }
551
- var gt = (function(e) {
551
+ var St = (function(e) {
552
552
  G(t, e);
553
553
  function t(r, n, i, o, a, c) {
554
554
  var u = e.call(this, r) || this;
@@ -583,7 +583,7 @@ var gt = (function(e) {
583
583
  e.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this));
584
584
  }
585
585
  }, t;
586
- })(ye), St = me(function(e) {
586
+ })(ye), _t = me(function(e) {
587
587
  return function() {
588
588
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
589
589
  };
@@ -598,7 +598,7 @@ var gt = (function(e) {
598
598
  return n.operator = r, n;
599
599
  }, t.prototype._throwIfClosed = function() {
600
600
  if (this.closed)
601
- throw new St();
601
+ throw new _t();
602
602
  }, t.prototype.next = function(r) {
603
603
  var n = this;
604
604
  Z(function() {
@@ -690,7 +690,7 @@ var gt = (function(e) {
690
690
  return (Ue.delegate || Date).now();
691
691
  },
692
692
  delegate: void 0
693
- }, _t = (function(e) {
693
+ }, Et = (function(e) {
694
694
  G(t, e);
695
695
  function t(r, n, i) {
696
696
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ue);
@@ -728,15 +728,15 @@ function Me(e) {
728
728
  function De(e) {
729
729
  return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
730
730
  }
731
- function Et() {
731
+ function Ot() {
732
732
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
733
733
  }
734
- var We = Et();
734
+ var We = Ot();
735
735
  function qe(e) {
736
736
  return w(e == null ? void 0 : e[We]);
737
737
  }
738
738
  function ze(e) {
739
- return ct(this, arguments, function() {
739
+ return lt(this, arguments, function() {
740
740
  var r, n, i, o;
741
741
  return je(this, function(a) {
742
742
  switch (a.label) {
@@ -774,21 +774,21 @@ function L(e) {
774
774
  return e;
775
775
  if (e != null) {
776
776
  if ($e(e))
777
- return Ot(e);
778
- if (ge(e))
779
777
  return xt(e);
780
- if (ke(e))
778
+ if (ge(e))
781
779
  return At(e);
780
+ if (ke(e))
781
+ return Tt(e);
782
782
  if (Me(e))
783
783
  return Ge(e);
784
784
  if (qe(e))
785
- return Tt(e);
786
- if (Be(e))
787
785
  return It(e);
786
+ if (Be(e))
787
+ return Pt(e);
788
788
  }
789
789
  throw De(e);
790
790
  }
791
- function Ot(e) {
791
+ function xt(e) {
792
792
  return new x(function(t) {
793
793
  var r = e[be]();
794
794
  if (w(r.subscribe))
@@ -796,14 +796,14 @@ function Ot(e) {
796
796
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
797
797
  });
798
798
  }
799
- function xt(e) {
799
+ function At(e) {
800
800
  return new x(function(t) {
801
801
  for (var r = 0; r < e.length && !t.closed; r++)
802
802
  t.next(e[r]);
803
803
  t.complete();
804
804
  });
805
805
  }
806
- function At(e) {
806
+ function Tt(e) {
807
807
  return new x(function(t) {
808
808
  e.then(function(r) {
809
809
  t.closed || (t.next(r), t.complete());
@@ -812,7 +812,7 @@ function At(e) {
812
812
  }).then(null, Fe);
813
813
  });
814
814
  }
815
- function Tt(e) {
815
+ function It(e) {
816
816
  return new x(function(t) {
817
817
  var r, n;
818
818
  try {
@@ -835,22 +835,22 @@ function Tt(e) {
835
835
  }
836
836
  function Ge(e) {
837
837
  return new x(function(t) {
838
- Pt(e, t).catch(function(r) {
838
+ Ct(e, t).catch(function(r) {
839
839
  return t.error(r);
840
840
  });
841
841
  });
842
842
  }
843
- function It(e) {
843
+ function Pt(e) {
844
844
  return Ge(ze(e));
845
845
  }
846
- function Pt(e, t) {
846
+ function Ct(e, t) {
847
847
  var r, n, i, o;
848
- return ut(this, void 0, void 0, function() {
848
+ return ct(this, void 0, void 0, function() {
849
849
  var a, c;
850
850
  return je(this, function(u) {
851
851
  switch (u.label) {
852
852
  case 0:
853
- u.trys.push([0, 5, 6, 11]), r = lt(e), u.label = 1;
853
+ u.trys.push([0, 5, 6, 11]), r = ft(e), u.label = 1;
854
854
  case 1:
855
855
  return [4, r.next()];
856
856
  case 2:
@@ -891,7 +891,7 @@ function $(e, t, r, n, i) {
891
891
  }
892
892
  function Ve(e, t) {
893
893
  return t === void 0 && (t = 0), j(function(r, n) {
894
- r.subscribe(C(n, function(i) {
894
+ r.subscribe(R(n, function(i) {
895
895
  return $(n, e, function() {
896
896
  return n.next(i);
897
897
  }, t);
@@ -916,10 +916,10 @@ function He(e, t) {
916
916
  function Rt(e, t) {
917
917
  return L(e).pipe(He(t), Ve(t));
918
918
  }
919
- function Ct(e, t) {
919
+ function jt(e, t) {
920
920
  return L(e).pipe(He(t), Ve(t));
921
921
  }
922
- function jt(e, t) {
922
+ function Lt(e, t) {
923
923
  return new x(function(r) {
924
924
  var n = 0;
925
925
  return t.schedule(function() {
@@ -927,7 +927,7 @@ function jt(e, t) {
927
927
  });
928
928
  });
929
929
  }
930
- function Lt(e, t) {
930
+ function Nt(e, t) {
931
931
  return new x(function(r) {
932
932
  var n;
933
933
  return $(r, t, function() {
@@ -960,35 +960,35 @@ function Ye(e, t) {
960
960
  });
961
961
  });
962
962
  }
963
- function Nt(e, t) {
963
+ function Ft(e, t) {
964
964
  return Ye(ze(e), t);
965
965
  }
966
- function Ft(e, t) {
966
+ function Ut(e, t) {
967
967
  if (e != null) {
968
968
  if ($e(e))
969
969
  return Rt(e, t);
970
970
  if (ge(e))
971
- return jt(e, t);
971
+ return Lt(e, t);
972
972
  if (ke(e))
973
- return Ct(e, t);
973
+ return jt(e, t);
974
974
  if (Me(e))
975
975
  return Ye(e, t);
976
976
  if (qe(e))
977
- return Lt(e, t);
978
- if (Be(e))
979
977
  return Nt(e, t);
978
+ if (Be(e))
979
+ return Ft(e, t);
980
980
  }
981
981
  throw De(e);
982
982
  }
983
983
  function Je(e, t) {
984
- return t ? Ft(e, t) : L(e);
984
+ return t ? Ut(e, t) : L(e);
985
985
  }
986
- var Ut = me(function(e) {
986
+ var kt = me(function(e) {
987
987
  return function() {
988
988
  e(this), this.name = "EmptyError", this.message = "no elements in sequence";
989
989
  };
990
990
  });
991
- function kt(e, t) {
991
+ function $t(e, t) {
992
992
  return new Promise(function(r, n) {
993
993
  var i = new B({
994
994
  next: function(o) {
@@ -996,7 +996,7 @@ function kt(e, t) {
996
996
  },
997
997
  error: n,
998
998
  complete: function() {
999
- n(new Ut());
999
+ n(new kt());
1000
1000
  }
1001
1001
  });
1002
1002
  e.subscribe(i);
@@ -1005,29 +1005,29 @@ function kt(e, t) {
1005
1005
  function Se(e, t) {
1006
1006
  return j(function(r, n) {
1007
1007
  var i = 0;
1008
- r.subscribe(C(n, function(o) {
1008
+ r.subscribe(R(n, function(o) {
1009
1009
  n.next(e.call(t, o, i++));
1010
1010
  }));
1011
1011
  });
1012
1012
  }
1013
- var $t = Array.isArray;
1014
- function Mt(e, t) {
1015
- return $t(t) ? e.apply(void 0, Y([], z(t))) : e(t);
1013
+ var Mt = Array.isArray;
1014
+ function Dt(e, t) {
1015
+ return Mt(t) ? e.apply(void 0, Y([], z(t))) : e(t);
1016
1016
  }
1017
- function Dt(e) {
1017
+ function Wt(e) {
1018
1018
  return Se(function(t) {
1019
- return Mt(e, t);
1019
+ return Dt(e, t);
1020
1020
  });
1021
1021
  }
1022
- function Wt(e, t, r, n, i, o, a, c) {
1023
- var u = [], s = 0, l = 0, p = !1, h = function() {
1024
- p && !u.length && !s && t.complete();
1022
+ function qt(e, t, r, n, i, o, a, c) {
1023
+ var u = [], s = 0, l = 0, h = !1, p = function() {
1024
+ h && !u.length && !s && t.complete();
1025
1025
  }, d = function(f) {
1026
1026
  return s < n ? v(f) : u.push(f);
1027
1027
  }, v = function(f) {
1028
1028
  s++;
1029
1029
  var S = !1;
1030
- L(r(f, l++)).subscribe(C(t, function(_) {
1030
+ L(r(f, l++)).subscribe(R(t, function(_) {
1031
1031
  t.next(_);
1032
1032
  }, function() {
1033
1033
  S = !0;
@@ -1040,14 +1040,14 @@ function Wt(e, t, r, n, i, o, a, c) {
1040
1040
  a || v(g);
1041
1041
  }; u.length && s < n; )
1042
1042
  _();
1043
- h();
1043
+ p();
1044
1044
  } catch (g) {
1045
1045
  t.error(g);
1046
1046
  }
1047
1047
  }));
1048
1048
  };
1049
- return e.subscribe(C(t, d, function() {
1050
- p = !0, h();
1049
+ return e.subscribe(R(t, d, function() {
1050
+ h = !0, p();
1051
1051
  })), function() {
1052
1052
  };
1053
1053
  }
@@ -1057,18 +1057,18 @@ function Ke(e, t, r) {
1057
1057
  return t(n, o, i, a);
1058
1058
  })(L(e(n, i)));
1059
1059
  }, r) : (typeof t == "number" && (r = t), j(function(n, i) {
1060
- return Wt(n, i, e, r);
1060
+ return qt(n, i, e, r);
1061
1061
  }));
1062
1062
  }
1063
- var qt = ["addListener", "removeListener"], zt = ["addEventListener", "removeEventListener"], Bt = ["on", "off"];
1063
+ var zt = ["addListener", "removeListener"], Bt = ["addEventListener", "removeEventListener"], Gt = ["on", "off"];
1064
1064
  function he(e, t, r, n) {
1065
1065
  if (w(r) && (n = r, r = void 0), n)
1066
- return he(e, t, r).pipe(Dt(n));
1067
- var i = z(Ht(e) ? zt.map(function(c) {
1066
+ return he(e, t, r).pipe(Wt(n));
1067
+ var i = z(Yt(e) ? Bt.map(function(c) {
1068
1068
  return function(u) {
1069
1069
  return e[c](t, u, r);
1070
1070
  };
1071
- }) : Gt(e) ? qt.map(Te(e, t)) : Vt(e) ? Bt.map(Te(e, t)) : [], 2), o = i[0], a = i[1];
1071
+ }) : Vt(e) ? zt.map(Te(e, t)) : Ht(e) ? Gt.map(Te(e, t)) : [], 2), o = i[0], a = i[1];
1072
1072
  if (!o && ge(e))
1073
1073
  return Ke(function(c) {
1074
1074
  return he(c, t, r);
@@ -1093,63 +1093,63 @@ function Te(e, t) {
1093
1093
  };
1094
1094
  };
1095
1095
  }
1096
- function Gt(e) {
1096
+ function Vt(e) {
1097
1097
  return w(e.addListener) && w(e.removeListener);
1098
1098
  }
1099
- function Vt(e) {
1099
+ function Ht(e) {
1100
1100
  return w(e.on) && w(e.off);
1101
1101
  }
1102
- function Ht(e) {
1102
+ function Yt(e) {
1103
1103
  return w(e.addEventListener) && w(e.removeEventListener);
1104
1104
  }
1105
1105
  function ae(e, t) {
1106
1106
  return j(function(r, n) {
1107
1107
  var i = 0;
1108
- r.subscribe(C(n, function(o) {
1108
+ r.subscribe(R(n, function(o) {
1109
1109
  return e.call(t, o, i++) && n.next(o);
1110
1110
  }));
1111
1111
  });
1112
1112
  }
1113
- function Yt(e, t) {
1114
- return t === void 0 && (t = we), e = e ?? Jt, j(function(r, n) {
1113
+ function Jt(e, t) {
1114
+ return t === void 0 && (t = we), e = e ?? Kt, j(function(r, n) {
1115
1115
  var i, o = !0;
1116
- r.subscribe(C(n, function(a) {
1116
+ r.subscribe(R(n, function(a) {
1117
1117
  var c = t(a);
1118
1118
  (o || !e(i, c)) && (o = !1, i = c, n.next(a));
1119
1119
  }));
1120
1120
  });
1121
1121
  }
1122
- function Jt(e, t) {
1122
+ function Kt(e, t) {
1123
1123
  return e === t;
1124
1124
  }
1125
- function Kt(e) {
1125
+ function Xt(e) {
1126
1126
  e === void 0 && (e = {});
1127
1127
  var t = e.connector, r = t === void 0 ? function() {
1128
1128
  return new re();
1129
1129
  } : t, n = e.resetOnError, i = n === void 0 ? !0 : n, o = e.resetOnComplete, a = o === void 0 ? !0 : o, c = e.resetOnRefCountZero, u = c === void 0 ? !0 : c;
1130
1130
  return function(s) {
1131
- var l, p, h, d = 0, v = !1, f = !1, S = function() {
1132
- p == null || p.unsubscribe(), p = void 0;
1131
+ var l, h, p, d = 0, v = !1, f = !1, S = function() {
1132
+ h == null || h.unsubscribe(), h = void 0;
1133
1133
  }, _ = function() {
1134
- S(), l = h = void 0, v = f = !1;
1134
+ S(), l = p = void 0, v = f = !1;
1135
1135
  }, g = function() {
1136
1136
  var b = l;
1137
1137
  _(), b == null || b.unsubscribe();
1138
1138
  };
1139
1139
  return j(function(b, T) {
1140
1140
  d++, !f && !v && S();
1141
- var I = h = h ?? r();
1141
+ var I = p = p ?? r();
1142
1142
  T.add(function() {
1143
- d--, d === 0 && !f && !v && (p = se(g, u));
1143
+ d--, d === 0 && !f && !v && (h = se(g, u));
1144
1144
  }), I.subscribe(T), !l && d > 0 && (l = new B({
1145
1145
  next: function(P) {
1146
1146
  return I.next(P);
1147
1147
  },
1148
1148
  error: function(P) {
1149
- f = !0, S(), p = se(_, i, P), I.error(P);
1149
+ f = !0, S(), h = se(_, i, P), I.error(P);
1150
1150
  },
1151
1151
  complete: function() {
1152
- v = !0, S(), p = se(_, a), I.complete();
1152
+ v = !0, S(), h = se(_, a), I.complete();
1153
1153
  }
1154
1154
  }), L(b).subscribe(l));
1155
1155
  })(s);
@@ -1176,11 +1176,11 @@ function Xe(e, t) {
1176
1176
  var i = null, o = 0, a = !1, c = function() {
1177
1177
  return a && !i && n.complete();
1178
1178
  };
1179
- r.subscribe(C(n, function(u) {
1179
+ r.subscribe(R(n, function(u) {
1180
1180
  i == null || i.unsubscribe();
1181
1181
  var s = 0, l = o++;
1182
- L(e(u, l)).subscribe(i = C(n, function(p) {
1183
- return n.next(t ? t(u, p, l, s++) : p);
1182
+ L(e(u, l)).subscribe(i = R(n, function(h) {
1183
+ return n.next(t ? t(u, h, l, s++) : h);
1184
1184
  }, function() {
1185
1185
  i = null, c();
1186
1186
  }));
@@ -1189,13 +1189,13 @@ function Xe(e, t) {
1189
1189
  }));
1190
1190
  });
1191
1191
  }
1192
- function Xt(e, t, r) {
1192
+ function Zt(e, t, r) {
1193
1193
  var n = w(e) || t || r ? { next: e, error: t, complete: r } : e;
1194
1194
  return n ? j(function(i, o) {
1195
1195
  var a;
1196
1196
  (a = n.subscribe) === null || a === void 0 || a.call(n);
1197
1197
  var c = !0;
1198
- i.subscribe(C(o, function(u) {
1198
+ i.subscribe(R(o, function(u) {
1199
1199
  var s;
1200
1200
  (s = n.next) === null || s === void 0 || s.call(n, u), o.next(u);
1201
1201
  }, function() {
@@ -1210,17 +1210,17 @@ function Xt(e, t, r) {
1210
1210
  }));
1211
1211
  }) : we;
1212
1212
  }
1213
- const V = Ce({});
1214
- async function Zt() {
1213
+ const V = Re({});
1214
+ async function Qt() {
1215
1215
  V.update((e) => (Object.assign(e, window.__MANIFEST__), e));
1216
1216
  }
1217
1217
  const N = /* @__PURE__ */ new Map(), Q = 5e3;
1218
- function Qt(e) {
1218
+ function er(e) {
1219
1219
  const t = N.get(e);
1220
1220
  return t ? (N.delete(e), Date.now() - t.createdAt > Q ? (t.abortController.abort(), null) : t.response$) : null;
1221
1221
  }
1222
- function er(e, t) {
1223
- he(document, "mouseover").pipe(Kt()).pipe(
1222
+ function tr(e, t) {
1223
+ he(document, "mouseover").pipe(Xt()).pipe(
1224
1224
  // Extract <a> element from hover target
1225
1225
  Se((i) => {
1226
1226
  const o = i.target, a = (o == null ? void 0 : o.tagName) === "A" ? o : o == null ? void 0 : o.closest("A");
@@ -1233,22 +1233,22 @@ function er(e, t) {
1233
1233
  // Drop if same URL as current page
1234
1234
  ae((i) => i !== window.location.pathname),
1235
1235
  // Deduplicate consecutive hovers to same URL
1236
- Yt(),
1236
+ Jt(),
1237
1237
  // Check that route requires server data
1238
1238
  ae((i) => {
1239
1239
  const o = i.split("?")[0], a = "get", c = e.find(
1240
- (l) => l.method.toLowerCase() === a && t.find((p) => p.parser(o) && p.pattern === l.path)
1240
+ (l) => l.method.toLowerCase() === a && t.find((h) => h.parser(o) && h.pattern === l.path)
1241
1241
  );
1242
1242
  if (!c) return !1;
1243
1243
  const u = t.find((l) => l.parser(o) && l.pattern === c.path);
1244
- return !!R(V)[u == null ? void 0 : u.pattern];
1244
+ return !!C(V)[u == null ? void 0 : u.pattern];
1245
1245
  }),
1246
1246
  // switchMap cancels prior prefetch when hovering a new link
1247
1247
  Xe((i) => {
1248
1248
  const o = N.get(i);
1249
1249
  if (o && Date.now() - o.createdAt < Q)
1250
1250
  return [];
1251
- const a = new AbortController(), c = new _t(1), u = {
1251
+ const a = new AbortController(), c = new Et(1), u = {
1252
1252
  response$: c,
1253
1253
  createdAt: Date.now(),
1254
1254
  abortController: a
@@ -1268,7 +1268,7 @@ function er(e, t) {
1268
1268
  (l) => (c.error(l), N.delete(i), null)
1269
1269
  )
1270
1270
  ).pipe(
1271
- Xt({
1271
+ Zt({
1272
1272
  unsubscribe: () => {
1273
1273
  a.abort(), N.delete(i);
1274
1274
  }
@@ -1282,7 +1282,7 @@ function er(e, t) {
1282
1282
  }, Q);
1283
1283
  }
1284
1284
  var U = /* @__PURE__ */ ((e) => (e[e.TRACE = 0] = "TRACE", e[e.DEBUG = 1] = "DEBUG", e[e.INFO = 2] = "INFO", e[e.WARN = 3] = "WARN", e[e.ERROR = 4] = "ERROR", e[e.FATAL = 5] = "FATAL", e))(U || {});
1285
- const tr = {
1285
+ const rr = {
1286
1286
  trace: 0,
1287
1287
  debug: 1,
1288
1288
  info: 2,
@@ -1291,9 +1291,9 @@ const tr = {
1291
1291
  fatal: 5
1292
1292
  /* FATAL */
1293
1293
  };
1294
- function rr(e) {
1294
+ function nr(e) {
1295
1295
  if (!e) return 2;
1296
- const t = e.trim().toLowerCase(), r = tr[t];
1296
+ const t = e.trim().toLowerCase(), r = rr[t];
1297
1297
  if (typeof r == "number") return r;
1298
1298
  const n = Number(t);
1299
1299
  return Number.isFinite(n) && n >= 0 && n <= 5 ? n : 2;
@@ -1336,7 +1336,7 @@ function Ie(e) {
1336
1336
  return e;
1337
1337
  }
1338
1338
  }
1339
- class nr {
1339
+ class or {
1340
1340
  constructor(t, r, n) {
1341
1341
  this.name = t, this.manager = r, this.contextData = n;
1342
1342
  }
@@ -1388,12 +1388,12 @@ class nr {
1388
1388
  });
1389
1389
  }
1390
1390
  }
1391
- class pe extends nr {
1391
+ class pe extends or {
1392
1392
  constructor(t, r, n) {
1393
1393
  super(t, r, n);
1394
1394
  }
1395
1395
  }
1396
- class or {
1396
+ class ir {
1397
1397
  log(t) {
1398
1398
  const r = t.context !== void 0 ? ` ${JSON.stringify(t.context)}` : "", n = `[${t.timestamp}] [${t.logger}] [${t.level}] ${t.message}${r}`;
1399
1399
  switch (t.level) {
@@ -1411,12 +1411,12 @@ class or {
1411
1411
  }
1412
1412
  }
1413
1413
  const ue = /* @__PURE__ */ Symbol.for("@noego/logger");
1414
- class ir {
1414
+ class ar {
1415
1415
  constructor() {
1416
1416
  var i, o, a;
1417
1417
  this.transports = [], this.loggerLevels = /* @__PURE__ */ new Map();
1418
1418
  const t = typeof process < "u" ? (i = process.env) == null ? void 0 : i.LOG_LEVEL : void 0, r = typeof process < "u" ? (o = process.env) == null ? void 0 : o.SERVICE_NAME : void 0, n = typeof process < "u" ? (a = process.env) == null ? void 0 : a.NODE_ENV : void 0;
1419
- this.level = rr(t), this.service = r ?? "noego", this.environment = n ?? "development";
1419
+ this.level = nr(t), this.service = r ?? "noego", this.environment = n ?? "development";
1420
1420
  }
1421
1421
  getLevel() {
1422
1422
  return this.level;
@@ -1467,16 +1467,16 @@ class ir {
1467
1467
  function Qe() {
1468
1468
  const e = globalThis;
1469
1469
  if (!e[ue]) {
1470
- const t = new ir();
1471
- t.addTransport(new or()), e[ue] = t;
1470
+ const t = new ar();
1471
+ t.addTransport(new ir()), e[ue] = t;
1472
1472
  }
1473
1473
  return e[ue];
1474
1474
  }
1475
1475
  function _e(e) {
1476
1476
  return new pe(e, Qe());
1477
1477
  }
1478
- const m = _e("forge:nav"), ar = 1e4;
1479
- function sr(e, t, r) {
1478
+ const m = _e("forge:nav"), sr = 1e4;
1479
+ function ur(e, t, r) {
1480
1480
  let n = null, i = !1;
1481
1481
  const o = new Promise((a, c) => {
1482
1482
  n = setTimeout(
@@ -1494,8 +1494,8 @@ function sr(e, t, r) {
1494
1494
  ]);
1495
1495
  }
1496
1496
  const ve = new re();
1497
- let E = 0, H = null;
1498
- function ur(e) {
1497
+ let E = 0, H = null, et;
1498
+ function cr(e) {
1499
1499
  e && e.redirectPath && (m.debug("Handling redirect to", e.redirectPath), setTimeout(
1500
1500
  () => {
1501
1501
  window.dispatchEvent(new CustomEvent("forge-redirect", { detail: { path: e.redirectPath } }));
@@ -1503,17 +1503,17 @@ function ur(e) {
1503
1503
  0
1504
1504
  ));
1505
1505
  }
1506
- ve.pipe(Xe((e) => Je(sr(dr(e), ar, () => {
1506
+ ve.pipe(Xe((e) => Je(ur(hr(e), sr, () => {
1507
1507
  m.error("Navigation timed out"), E++, H && (H.abort(), H = null);
1508
1508
  }).catch((t) => {
1509
1509
  m.error("Navigation failed:", t);
1510
1510
  })))).subscribe({
1511
- next: ur,
1511
+ next: cr,
1512
1512
  error: (e) => {
1513
1513
  m.error("Stream error:", e);
1514
1514
  }
1515
1515
  });
1516
- function cr(e) {
1516
+ function lr(e) {
1517
1517
  var t;
1518
1518
  m.debug("Pushing navigation event to stream", {
1519
1519
  url: e.url,
@@ -1521,7 +1521,7 @@ function cr(e) {
1521
1521
  subscriberCount: ((t = ve.observers) == null ? void 0 : t.length) || 0
1522
1522
  }), ve.next(e);
1523
1523
  }
1524
- const A = Ce({
1524
+ const A = Re({
1525
1525
  active: {
1526
1526
  layouts: [],
1527
1527
  view: null,
@@ -1535,8 +1535,8 @@ const A = Ce({
1535
1535
  phase: "idle",
1536
1536
  navigationId: 0,
1537
1537
  page: k
1538
- }), lr = async () => {
1539
- const e = R(A).navigationId;
1538
+ }), fr = async () => {
1539
+ const e = C(A).navigationId;
1540
1540
  try {
1541
1541
  const t = window.location.pathname + window.location.search, r = {
1542
1542
  method: "GET",
@@ -1548,7 +1548,7 @@ const A = Ce({
1548
1548
  r[ne] = !0;
1549
1549
  const n = await fetch(t, r);
1550
1550
  if (!n.ok) return !1;
1551
- const i = await n.json(), o = R(A).navigationId;
1551
+ const i = await n.json(), o = C(A).navigationId;
1552
1552
  return e !== o ? (m.debug("Discarding stale poll response", { pollNavigationId: e, currentNavigationId: o }), !1) : (A.update((a) => {
1553
1553
  var c;
1554
1554
  return a.active.data = { layout: ((c = a.active.data) == null ? void 0 : c.layout) || [], view: i.view }, a;
@@ -1557,22 +1557,23 @@ const A = Ce({
1557
1557
  return !1;
1558
1558
  }
1559
1559
  };
1560
- k.update((e) => (e.poll = lr, e));
1561
- async function et(e, t, r, n, i, o) {
1560
+ k.update((e) => (e.poll = fr, e));
1561
+ async function tt(e, t, r, n, i, o) {
1562
1562
  if (!t.controller) return;
1563
1563
  let a = J(e, t.controller).toString();
1564
1564
  i && (a = a.replace(/\.svelte\.ts$/, ".js").replace(/\.ts$/, ".js"), /\.[a-z]+$/.test(a) || (a += ".js")), a.startsWith("/") || (a = "/" + a);
1565
1565
  const u = (await import(
1566
1566
  /* @vite-ignore */
1567
1567
  a
1568
- )).default, s = o ? await Promise.resolve(o(u)) : new u();
1569
- return typeof s.initialize == "function" && await Promise.resolve(s.initialize(r, n)), s;
1568
+ )).default, l = o ? await Promise.resolve(o(u)) : new u(), h = l.initialize;
1569
+ return typeof h == "function" && await Promise.resolve(h.call(l, r, n)), l;
1570
1570
  }
1571
1571
  function J(...e) {
1572
1572
  let t = e.map((r, n) => n === 0 ? r.replace(/\/+$/, "") : r.replace(/^\/+|\/+$/g, "")).join("/");
1573
1573
  return t.startsWith("/") || (t = "/" + t), t.split("?")[0];
1574
1574
  }
1575
- async function fr(e, t, r, n, i, o, a) {
1575
+ async function dr(e, t, r, n, i, o, a) {
1576
+ et = a;
1576
1577
  try {
1577
1578
  const c = typeof t == "string" && t.indexOf("assets") !== -1, u = (r.layout || []).map((g) => {
1578
1579
  let b = J(t, g).toString();
@@ -1585,29 +1586,29 @@ async function fr(e, t, r, n, i, o, a) {
1585
1586
  g
1586
1587
  ).then((b) => b.default)));
1587
1588
  s.startsWith("/") || (s = "/" + s);
1588
- const p = await import(
1589
+ const h = await import(
1589
1590
  /* @vite-ignore */
1590
1591
  s
1591
- ).then((g) => g.default), h = window.__INITIAL_DATA__ || { layout: [], view: {} }, d = typeof t == "string" && t.indexOf("assets") !== -1, v = R(k), f = { params: n, urlParams: i, query: o, page: v }, S = await et(t, r, h.view, f, d, a), _ = {
1592
+ ).then((g) => g.default), p = window.__INITIAL_DATA__ || { layout: [], view: {} }, d = typeof t == "string" && t.indexOf("assets") !== -1, v = C(k), f = { params: n, urlParams: i, query: o, page: v }, S = await tt(t, r, p.view, f, d, a), _ = {
1592
1593
  layouts: l,
1593
- view: p,
1594
+ view: h,
1594
1595
  viewPath: r.view || null,
1595
1596
  // Store original path for debugging
1596
1597
  layoutPaths: r.layout || [],
1597
1598
  // Store original paths for debugging
1598
- data: h,
1599
+ data: p,
1599
1600
  params: n,
1600
1601
  urlParams: i,
1601
1602
  query: o,
1602
1603
  controller: S
1603
1604
  };
1604
- A.update((g) => (g.active = _, g.phase = "idle", g)), ot(it, { target: e, props: { root: A } });
1605
+ A.update((g) => (g.active = _, g.phase = "idle", g)), it(at, { target: e, props: { root: A } });
1605
1606
  } catch (c) {
1606
1607
  m.error("Client-side route loading failed:", c);
1607
1608
  }
1608
1609
  }
1609
1610
  function ce(e, t, r, n, i, o, a = !1, c = !0) {
1610
- cr({
1611
+ lr({
1611
1612
  url: e,
1612
1613
  base_path: t,
1613
1614
  route: r,
@@ -1618,8 +1619,8 @@ function ce(e, t, r, n, i, o, a = !1, c = !0) {
1618
1619
  updateUrl: c
1619
1620
  });
1620
1621
  }
1621
- async function dr(e) {
1622
- var p;
1622
+ async function hr(e) {
1623
+ var h;
1623
1624
  const {
1624
1625
  url: t,
1625
1626
  base_path: r,
@@ -1637,16 +1638,16 @@ async function dr(e) {
1637
1638
  server_loading: c,
1638
1639
  currentNavigationId: E,
1639
1640
  hasAbortController: !!H
1640
- }), A.update((h) => (h.phase = "loading", h.navigationId = s, h));
1641
+ }), A.update((p) => (p.phase = "loading", p.navigationId = s, p));
1641
1642
  try {
1642
- let h = { layout: [], view: {} };
1643
+ let p = { layout: [], view: {} };
1643
1644
  if (c) {
1644
1645
  m.debug("Fetching server data", { navigationId: s, url: t });
1645
1646
  let y = null;
1646
- const O = Qt(t);
1647
+ const O = er(t);
1647
1648
  if (O)
1648
1649
  try {
1649
- m.debug("Using prefetched response for", t), y = await kt(O);
1650
+ m.debug("Using prefetched response for", t), y = await $t(O);
1650
1651
  } catch {
1651
1652
  m.debug("Prefetch failed, falling back to fetch", t), y = null;
1652
1653
  }
@@ -1674,7 +1675,7 @@ async function dr(e) {
1674
1675
  };
1675
1676
  if (!y.ok)
1676
1677
  throw new Error(`Network response was not ok: ${y.status}`);
1677
- h = await y.json(), m.debug("Server data received:", h);
1678
+ p = await y.json(), m.debug("Server data received:", p);
1678
1679
  }
1679
1680
  if (s !== E) {
1680
1681
  m.debug("Stale navigation after fetch, aborting", { navigationId: s, currentNavigationId: E });
@@ -1703,12 +1704,12 @@ async function dr(e) {
1703
1704
  m.debug("Stale navigation after component load, aborting", { navigationId: s, currentNavigationId: E });
1704
1705
  return;
1705
1706
  }
1706
- const g = R(k), b = { params: i, urlParams: o, query: a, page: g }, T = await et(r, n, h.view, b, d, controllerFactory);
1707
+ const g = C(k), b = { params: i, urlParams: o, query: a, page: g }, T = await tt(r, n, p.view, b, d, et);
1707
1708
  if (s !== E) {
1708
- m.debug("Stale navigation after controller resolution, aborting", { navigationId: s, currentNavigationId: E }), (p = T == null ? void 0 : T.destroy) == null || p.call(T);
1709
+ m.debug("Stale navigation after controller resolution, aborting", { navigationId: s, currentNavigationId: E }), (h = T == null ? void 0 : T.destroy) == null || h.call(T);
1709
1710
  return;
1710
1711
  }
1711
- const I = R(A).active.controller;
1712
+ const I = C(A).active.controller;
1712
1713
  I != null && I.destroy && I.destroy();
1713
1714
  const P = {
1714
1715
  layouts: S,
@@ -1717,7 +1718,7 @@ async function dr(e) {
1717
1718
  // Store original path for debugging
1718
1719
  layoutPaths: n.layout || [],
1719
1720
  // Store original paths for debugging
1720
- data: h,
1721
+ data: p,
1721
1722
  params: i,
1722
1723
  urlParams: o,
1723
1724
  query: a,
@@ -1736,21 +1737,21 @@ async function dr(e) {
1736
1737
  dataKeys: Object.keys(y.active.data || {}),
1737
1738
  paramsKeys: Object.keys(y.active.params || {})
1738
1739
  }), y)), typeof window < "u" && window.scroll(0, 0), u && (m.debug("Updating browser URL", { url: t }), window.history.pushState({}, "", t)), m.debug("Navigation complete", { navigationId: s, url: t });
1739
- } catch (h) {
1740
+ } catch (p) {
1740
1741
  if (m.error("Navigation failed", {
1741
1742
  navigationId: s,
1742
1743
  currentNavigationId: E,
1743
1744
  url: t,
1744
- error: h instanceof Error ? h.message : String(h)
1745
- }), A.update((d) => (d.phase = "idle", d)), h.name === "AbortError") {
1745
+ error: p instanceof Error ? p.message : String(p)
1746
+ }), A.update((d) => (d.phase = "idle", d)), p.name === "AbortError") {
1746
1747
  m.debug("Navigation aborted");
1747
1748
  return;
1748
1749
  }
1749
- throw h;
1750
+ throw p;
1750
1751
  }
1751
1752
  }
1752
1753
  const F = _e("forge:events");
1753
- function hr(e, t, r) {
1754
+ function pr(e, t, r) {
1754
1755
  if (!document) {
1755
1756
  F.error("Document not found");
1756
1757
  return;
@@ -1765,11 +1766,11 @@ function hr(e, t, r) {
1765
1766
  return;
1766
1767
  }
1767
1768
  if (u && u.startsWith("/") || u.startsWith(".")) {
1768
- const s = u.split("?")[0], l = o.getAttribute("method") || "get", p = t.find((h) => h.method.toLowerCase() === l && r.find((d) => d.parser(s) && d.pattern === h.path));
1769
- if (p) {
1769
+ const s = u.split("?")[0], l = o.getAttribute("method") || "get", h = t.find((p) => p.method.toLowerCase() === l && r.find((d) => d.parser(s) && d.pattern === p.path));
1770
+ if (h) {
1770
1771
  n.preventDefault();
1771
- const h = r.find((b) => b.parser(s) && b.pattern === p.path), d = (h == null ? void 0 : h.parser(s)) || {}, v = new URLSearchParams(u.split("?")[1] || ""), f = Object.fromEntries(v.entries()) || {}, S = { ...d, ...f }, g = R(V)[h == null ? void 0 : h.pattern];
1772
- k.update((b) => (b.url = u, b.pathname = s, b.params = d, b.query = f, b)), F.debug("Click navigation to", u), ce(u, e, p, S, d, f, g, !0);
1772
+ const p = r.find((b) => b.parser(s) && b.pattern === h.path), d = (p == null ? void 0 : p.parser(s)) || {}, v = new URLSearchParams(u.split("?")[1] || ""), f = Object.fromEntries(v.entries()) || {}, S = { ...d, ...f }, g = C(V)[p == null ? void 0 : p.pattern];
1773
+ k.update((b) => (b.url = u, b.pathname = s, b.params = d, b.query = f, b)), F.debug("Click navigation to", u), ce(u, e, h, S, d, f, g, !0);
1773
1774
  } else
1774
1775
  F.warn("No matching route found", u, "- using fallback navigation");
1775
1776
  }
@@ -1777,10 +1778,10 @@ function hr(e, t, r) {
1777
1778
  }), window.addEventListener("popstate", (n) => {
1778
1779
  const i = window.location.pathname, o = window.location.pathname + window.location.search, a = "get", c = t.find((u) => u.method.toLowerCase() === a && r.find((s) => s.parser(i) && s.pattern === u.path));
1779
1780
  if (c) {
1780
- const u = r.find((f) => f.parser(i) && f.pattern === c.path), s = (u == null ? void 0 : u.parser(i)) || {}, l = new URLSearchParams(window.location.search), p = Object.fromEntries(l.entries()) || {};
1781
- k.update((f) => (f.url = o, f.pathname = window.location.pathname, f.params = s, f.query = p, f));
1782
- const h = { ...s, ...p }, v = R(V)[u == null ? void 0 : u.pattern];
1783
- F.debug("Popstate navigation to", o), ce(o, e, c, h, s, p, v, !1);
1781
+ const u = r.find((f) => f.parser(i) && f.pattern === c.path), s = (u == null ? void 0 : u.parser(i)) || {}, l = new URLSearchParams(window.location.search), h = Object.fromEntries(l.entries()) || {};
1782
+ k.update((f) => (f.url = o, f.pathname = window.location.pathname, f.params = s, f.query = h, f));
1783
+ const p = { ...s, ...h }, v = C(V)[u == null ? void 0 : u.pattern];
1784
+ F.debug("Popstate navigation to", o), ce(o, e, c, p, s, h, v, !1);
1784
1785
  } else
1785
1786
  F.warn("No matching route found", i, "- using fallback navigation"), window.location.href = i;
1786
1787
  }), window.addEventListener("forge-redirect", ((n) => {
@@ -1788,14 +1789,14 @@ function hr(e, t, r) {
1788
1789
  F.debug("Handling forge-redirect to:", i);
1789
1790
  const a = "get", c = t.find((u) => u.method.toLowerCase() === a && r.find((s) => s.parser(o) && s.pattern === u.path));
1790
1791
  if (c) {
1791
- const u = r.find((f) => f.parser(o) && f.pattern === c.path), s = (u == null ? void 0 : u.parser(o)) || {}, l = new URLSearchParams(i.split("?")[1] || ""), p = Object.fromEntries(l.entries()) || {}, h = { ...s, ...p }, v = R(V)[u == null ? void 0 : u.pattern];
1792
- k.update((f) => (f.url = i, f.pathname = o, f.params = s, f.query = p, f)), ce(i, e, c, h, s, p, v, !0);
1792
+ const u = r.find((f) => f.parser(o) && f.pattern === c.path), s = (u == null ? void 0 : u.parser(o)) || {}, l = new URLSearchParams(i.split("?")[1] || ""), h = Object.fromEntries(l.entries()) || {}, p = { ...s, ...h }, v = C(V)[u == null ? void 0 : u.pattern];
1793
+ k.update((f) => (f.url = i, f.pathname = o, f.params = s, f.query = h, f)), ce(i, e, c, p, s, h, v, !0);
1793
1794
  } else
1794
1795
  F.warn("No matching route found", o, "- using fallback navigation"), window.location.href = o;
1795
- })), er(t, r);
1796
+ })), tr(t, r);
1796
1797
  }
1797
- const Pe = "/__forge/dev-logs", pr = 100, vr = 20;
1798
- class mr {
1798
+ const Pe = "/__forge/dev-logs", vr = 100, mr = 20;
1799
+ class yr {
1799
1800
  constructor() {
1800
1801
  oe(this, "buffer", []);
1801
1802
  oe(this, "timer", null);
@@ -1804,11 +1805,11 @@ class mr {
1804
1805
  });
1805
1806
  }
1806
1807
  log(t) {
1807
- if (this.buffer.push(t), this.buffer.length >= vr) {
1808
+ if (this.buffer.push(t), this.buffer.length >= mr) {
1808
1809
  this.flush();
1809
1810
  return;
1810
1811
  }
1811
- this.timer || (this.timer = setTimeout(() => this.flush(), pr));
1812
+ this.timer || (this.timer = setTimeout(() => this.flush(), vr));
1812
1813
  }
1813
1814
  flush() {
1814
1815
  if (this.timer && (clearTimeout(this.timer), this.timer = null), this.buffer.length === 0) return;
@@ -1837,7 +1838,7 @@ class mr {
1837
1838
  }
1838
1839
  const D = _e("forge:client"), ne = Symbol("forge-load-function");
1839
1840
  let ee = [], X = null;
1840
- function yr(e) {
1841
+ function br(e) {
1841
1842
  try {
1842
1843
  const t = new URL(e, window.location.origin);
1843
1844
  return t.origin === window.location.origin && !t.pathname.startsWith("/api/");
@@ -1845,7 +1846,7 @@ function yr(e) {
1845
1846
  return !e.startsWith("/api/");
1846
1847
  }
1847
1848
  }
1848
- function br() {
1849
+ function wr() {
1849
1850
  typeof window < "u" && !X && (X = window.fetch, window.fetch = async function(e, t = {}) {
1850
1851
  if ((typeof e == "string" ? e : e instanceof URL ? e.toString() : e.url) === "/__forge/dev-logs")
1851
1852
  return X(e, t);
@@ -1856,18 +1857,18 @@ function br() {
1856
1857
  const c = new Headers(n.headers), u = Object.fromEntries(c.entries());
1857
1858
  await new Promise((s, l) => {
1858
1859
  try {
1859
- a(u, (p) => {
1860
- if (p)
1861
- l(p);
1860
+ a(u, (h) => {
1861
+ if (h)
1862
+ l(h);
1862
1863
  else {
1863
- const h = new Headers();
1864
+ const p = new Headers();
1864
1865
  Object.entries(u).forEach(([d, v]) => {
1865
- v !== void 0 && h.set(d, v);
1866
- }), n.headers = h, s();
1866
+ v !== void 0 && p.set(d, v);
1867
+ }), n.headers = p, s();
1867
1868
  }
1868
1869
  });
1869
- } catch (p) {
1870
- l(p);
1870
+ } catch (h) {
1871
+ l(h);
1871
1872
  }
1872
1873
  });
1873
1874
  } else {
@@ -1897,7 +1898,7 @@ function br() {
1897
1898
  requested: a,
1898
1899
  final: c,
1899
1900
  redirected: o.redirected
1900
- }), yr(c)) {
1901
+ }), br(c)) {
1901
1902
  const u = new URL(c), s = u.pathname + u.search;
1902
1903
  return D.debug("Redirect detected to:", s, "- will navigate after current request completes"), new Response(JSON.stringify({ layout: [], view: {} }), {
1903
1904
  status: 200,
@@ -1912,13 +1913,13 @@ function br() {
1912
1913
  return o;
1913
1914
  });
1914
1915
  }
1915
- br();
1916
- var Re;
1916
+ wr();
1917
+ var Ce;
1917
1918
  if (typeof window < "u") {
1918
1919
  const e = window.__CONFIGURATION__;
1919
- (Re = e == null ? void 0 : e.dev) != null && Re.enable_debug_log && Qe().addTransport(new mr());
1920
+ (Ce = e == null ? void 0 : e.dev) != null && Ce.enable_debug_log && Qe().addTransport(new yr());
1920
1921
  }
1921
- const xr = {
1922
+ const Ar = {
1922
1923
  /**
1923
1924
  * Add middleware to the fetch pipeline
1924
1925
  */
@@ -1941,17 +1942,17 @@ const xr = {
1941
1942
  }
1942
1943
  };
1943
1944
  let le;
1944
- async function Ar(e, t) {
1945
+ async function Tr(e, t) {
1945
1946
  let r = window.__COMPONENT_DIR__ || t.component_dir;
1946
1947
  if (!r && typeof r != "string")
1947
1948
  throw new Error("No component directory provided");
1948
1949
  let n = window.__ROUTING__;
1949
- if (le = st(n), window && window.location) {
1950
+ if (le = ut(n), window && window.location) {
1950
1951
  const i = (window.location.pathname || "/").split("?")[0], o = le.find((c) => c.parser(i));
1951
1952
  let a = o ? n.find((c) => c.path === o.pattern) : null;
1952
1953
  if (o && a) {
1953
1954
  const c = o.parser(i) || {}, u = new URLSearchParams(window.location.search), s = Object.fromEntries(u.entries()) || {}, l = { ...c, ...s };
1954
- Zt(), fr(
1955
+ Qt(), dr(
1955
1956
  e,
1956
1957
  r,
1957
1958
  a,
@@ -1959,20 +1960,20 @@ async function Ar(e, t) {
1959
1960
  c,
1960
1961
  s,
1961
1962
  t.controller_factory
1962
- ), hr(r, n, le);
1963
+ ), pr(r, n, le);
1963
1964
  } else
1964
1965
  D.warn("No matching route", i);
1965
1966
  }
1966
1967
  }
1967
1968
  export {
1968
1969
  V as MANIFEST_STORE,
1969
- hr as bootstrap_events,
1970
- Ar as createApp,
1971
- xr as fetch,
1972
- fr as loadRoute,
1970
+ pr as bootstrap_events,
1971
+ Tr as createApp,
1972
+ Ar as fetch,
1973
+ dr as loadRoute,
1973
1974
  k as page,
1974
- Pr as shadowUrl,
1975
- Zt as updateManifestStore,
1975
+ Cr as shadowUrl,
1976
+ Qt as updateManifestStore,
1976
1977
  ce as updateRoute
1977
1978
  };
1978
1979
  //# sourceMappingURL=client.mjs.map