@paroicms/content-loading-plugin 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,54 +1,54 @@
1
- const yt = (e, t) => e === t, me = Symbol("solid-proxy"), z = {
2
- equals: yt
1
+ const mt = (e, t) => e === t, me = Symbol("solid-proxy"), z = {
2
+ equals: mt
3
3
  };
4
- let Be = Qe;
5
- const T = 1, ee = 2, Me = {
4
+ let je = Xe;
5
+ const T = 1, ee = 2, Be = {
6
6
  owned: null,
7
7
  cleanups: null,
8
8
  context: null,
9
9
  owner: null
10
10
  };
11
11
  var w = null;
12
- let fe = null, wt = null, b = null, R = null, k = null, oe = 0;
13
- function De(e, t) {
14
- const n = b, r = w, o = e.length === 0, i = t === void 0 ? r : t, a = o ? Me : {
12
+ let fe = null, yt = null, b = null, R = null, k = null, se = 0;
13
+ function Me(e, t) {
14
+ const n = b, r = w, s = e.length === 0, i = t === void 0 ? r : t, a = s ? Be : {
15
15
  owned: null,
16
16
  cleanups: null,
17
17
  context: i ? i.context : null,
18
18
  owner: i
19
- }, s = o ? e : () => e(() => I(() => se(a)));
19
+ }, o = s ? e : () => e(() => I(() => oe(a)));
20
20
  w = a, b = null;
21
21
  try {
22
- return N(s, !0);
22
+ return N(o, !0);
23
23
  } finally {
24
24
  b = n, w = r;
25
25
  }
26
26
  }
27
- function x(e, t) {
27
+ function P(e, t) {
28
28
  t = t ? Object.assign({}, z, t) : z;
29
29
  const n = {
30
30
  value: e,
31
31
  observers: null,
32
32
  observerSlots: null,
33
33
  comparator: t.equals || void 0
34
- }, r = (o) => (typeof o == "function" && (o = o(n.value)), Xe(n, o));
35
- return [He.bind(n), r];
34
+ }, r = (s) => (typeof s == "function" && (s = s(n.value)), He(n, s));
35
+ return [Ke.bind(n), r];
36
36
  }
37
37
  function _(e, t, n) {
38
38
  const r = Ae(e, t, !1, T);
39
- H(r);
39
+ K(r);
40
40
  }
41
41
  function Se(e, t, n) {
42
- Be = At;
42
+ je = $t;
43
43
  const r = Ae(e, t, !1, T);
44
- r.user = !0, k ? k.push(r) : H(r);
44
+ r.user = !0, k ? k.push(r) : K(r);
45
45
  }
46
46
  function E(e, t, n) {
47
47
  n = n ? Object.assign({}, z, n) : z;
48
48
  const r = Ae(e, t, !0, 0);
49
- return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, H(r), He.bind(r);
49
+ return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, K(r), Ke.bind(r);
50
50
  }
51
- function vt(e) {
51
+ function wt(e) {
52
52
  return N(e, !1);
53
53
  }
54
54
  function I(e) {
@@ -61,39 +61,39 @@ function I(e) {
61
61
  b = t;
62
62
  }
63
63
  }
64
- function K(e, t, n) {
64
+ function G(e, t, n) {
65
65
  const r = Array.isArray(e);
66
- let o, i = n && n.defer;
66
+ let s, i = n && n.defer;
67
67
  return (a) => {
68
- let s;
68
+ let o;
69
69
  if (r) {
70
- s = Array(e.length);
71
- for (let l = 0; l < e.length; l++) s[l] = e[l]();
72
- } else s = e();
70
+ o = Array(e.length);
71
+ for (let l = 0; l < e.length; l++) o[l] = e[l]();
72
+ } else o = e();
73
73
  if (i)
74
74
  return i = !1, a;
75
- const c = I(() => t(s, o, a));
76
- return o = s, c;
75
+ const c = I(() => t(o, s, a));
76
+ return s = o, c;
77
77
  };
78
78
  }
79
- function qe(e) {
79
+ function De(e) {
80
80
  return w === null || (w.cleanups === null ? w.cleanups = [e] : w.cleanups.push(e)), e;
81
81
  }
82
- function Ve() {
82
+ function qe() {
83
83
  return w;
84
84
  }
85
- function We(e, t) {
85
+ function Ve(e, t) {
86
86
  const n = w, r = b;
87
87
  w = e, b = null;
88
88
  try {
89
89
  return N(t, !0);
90
- } catch (o) {
91
- Ee(o);
90
+ } catch (s) {
91
+ Ee(s);
92
92
  } finally {
93
93
  w = n, b = r;
94
94
  }
95
95
  }
96
- function bt(e) {
96
+ function vt(e) {
97
97
  const t = b, n = w;
98
98
  return Promise.resolve().then(() => {
99
99
  b = t, w = n;
@@ -101,15 +101,15 @@ function bt(e) {
101
101
  return N(e, !1), b = w = null, r ? r.done : void 0;
102
102
  });
103
103
  }
104
- function Ge(e, t) {
104
+ function We(e, t) {
105
105
  const n = Symbol("context");
106
106
  return {
107
107
  id: n,
108
- Provider: Rt(n),
108
+ Provider: Et(n),
109
109
  defaultValue: e
110
110
  };
111
111
  }
112
- function Ke(e) {
112
+ function Ge(e) {
113
113
  let t;
114
114
  return w && w.context && (t = w.context[e.id]) !== void 0 ? t : e.defaultValue;
115
115
  }
@@ -120,9 +120,9 @@ function $e(e) {
120
120
  return Array.isArray(r) ? r : r != null ? [r] : [];
121
121
  }, n;
122
122
  }
123
- function He() {
123
+ function Ke() {
124
124
  if (this.sources && this.state)
125
- if (this.state === T) H(this);
125
+ if (this.state === T) K(this);
126
126
  else {
127
127
  const e = R;
128
128
  R = null, N(() => ne(this), !1), R = e;
@@ -133,41 +133,41 @@ function He() {
133
133
  }
134
134
  return this.value;
135
135
  }
136
- function Xe(e, t, n) {
136
+ function He(e, t, n) {
137
137
  let r = e.value;
138
138
  return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && N(() => {
139
- for (let o = 0; o < e.observers.length; o += 1) {
140
- const i = e.observers[o], a = fe && fe.running;
141
- a && fe.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? R.push(i) : k.push(i), i.observers && Je(i)), a || (i.state = T);
139
+ for (let s = 0; s < e.observers.length; s += 1) {
140
+ const i = e.observers[s], a = fe && fe.running;
141
+ a && fe.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? R.push(i) : k.push(i), i.observers && Qe(i)), a || (i.state = T);
142
142
  }
143
143
  if (R.length > 1e6)
144
144
  throw R = [], new Error();
145
145
  }, !1)), t;
146
146
  }
147
- function H(e) {
147
+ function K(e) {
148
148
  if (!e.fn) return;
149
- se(e);
150
- const t = oe;
151
- St(
149
+ oe(e);
150
+ const t = se;
151
+ bt(
152
152
  e,
153
153
  e.value,
154
154
  t
155
155
  );
156
156
  }
157
- function St(e, t, n) {
157
+ function bt(e, t, n) {
158
158
  let r;
159
- const o = w, i = b;
159
+ const s = w, i = b;
160
160
  b = w = e;
161
161
  try {
162
162
  r = e.fn(t);
163
163
  } catch (a) {
164
- return e.pure && (e.state = T, e.owned && e.owned.forEach(se), e.owned = null), e.updatedAt = n + 1, Ee(a);
164
+ return e.pure && (e.state = T, e.owned && e.owned.forEach(oe), e.owned = null), e.updatedAt = n + 1, Ee(a);
165
165
  } finally {
166
- b = i, w = o;
166
+ b = i, w = s;
167
167
  }
168
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Xe(e, r) : e.value = r, e.updatedAt = n);
168
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? He(e, r) : e.value = r, e.updatedAt = n);
169
169
  }
170
- function Ae(e, t, n, r = T, o) {
170
+ function Ae(e, t, n, r = T, s) {
171
171
  const i = {
172
172
  fn: e,
173
173
  state: r,
@@ -181,18 +181,18 @@ function Ae(e, t, n, r = T, o) {
181
181
  context: w ? w.context : null,
182
182
  pure: n
183
183
  };
184
- return w === null || w !== Me && (w.owned ? w.owned.push(i) : w.owned = [i]), i;
184
+ return w === null || w !== Be && (w.owned ? w.owned.push(i) : w.owned = [i]), i;
185
185
  }
186
186
  function te(e) {
187
187
  if (e.state === 0) return;
188
188
  if (e.state === ee) return ne(e);
189
189
  if (e.suspense && I(e.suspense.inFallback)) return e.suspense.effects.push(e);
190
190
  const t = [e];
191
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < oe); )
191
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < se); )
192
192
  e.state && t.push(e);
193
193
  for (let n = t.length - 1; n >= 0; n--)
194
194
  if (e = t[n], e.state === T)
195
- H(e);
195
+ K(e);
196
196
  else if (e.state === ee) {
197
197
  const r = R;
198
198
  R = null, N(() => ne(e, t[0]), !1), R = r;
@@ -201,23 +201,23 @@ function te(e) {
201
201
  function N(e, t) {
202
202
  if (R) return e();
203
203
  let n = !1;
204
- t || (R = []), k ? n = !0 : k = [], oe++;
204
+ t || (R = []), k ? n = !0 : k = [], se++;
205
205
  try {
206
206
  const r = e();
207
- return $t(n), r;
207
+ return St(n), r;
208
208
  } catch (r) {
209
209
  n || (k = null), R = null, Ee(r);
210
210
  }
211
211
  }
212
- function $t(e) {
213
- if (R && (Qe(R), R = null), e) return;
212
+ function St(e) {
213
+ if (R && (Xe(R), R = null), e) return;
214
214
  const t = k;
215
- k = null, t.length && N(() => Be(t), !1);
215
+ k = null, t.length && N(() => je(t), !1);
216
216
  }
217
- function Qe(e) {
217
+ function Xe(e) {
218
218
  for (let t = 0; t < e.length; t++) te(e[t]);
219
219
  }
220
- function At(e) {
220
+ function $t(e) {
221
221
  let t, n = 0;
222
222
  for (t = 0; t < e.length; t++) {
223
223
  const r = e[t];
@@ -230,29 +230,29 @@ function ne(e, t) {
230
230
  for (let n = 0; n < e.sources.length; n += 1) {
231
231
  const r = e.sources[n];
232
232
  if (r.sources) {
233
- const o = r.state;
234
- o === T ? r !== t && (!r.updatedAt || r.updatedAt < oe) && te(r) : o === ee && ne(r, t);
233
+ const s = r.state;
234
+ s === T ? r !== t && (!r.updatedAt || r.updatedAt < se) && te(r) : s === ee && ne(r, t);
235
235
  }
236
236
  }
237
237
  }
238
- function Je(e) {
238
+ function Qe(e) {
239
239
  for (let t = 0; t < e.observers.length; t += 1) {
240
240
  const n = e.observers[t];
241
- n.state || (n.state = ee, n.pure ? R.push(n) : k.push(n), n.observers && Je(n));
241
+ n.state || (n.state = ee, n.pure ? R.push(n) : k.push(n), n.observers && Qe(n));
242
242
  }
243
243
  }
244
- function se(e) {
244
+ function oe(e) {
245
245
  let t;
246
246
  if (e.sources)
247
247
  for (; e.sources.length; ) {
248
- const n = e.sources.pop(), r = e.sourceSlots.pop(), o = n.observers;
249
- if (o && o.length) {
250
- const i = o.pop(), a = n.observerSlots.pop();
251
- r < o.length && (i.sourceSlots[a] = r, o[r] = i, n.observerSlots[r] = a);
248
+ const n = e.sources.pop(), r = e.sourceSlots.pop(), s = n.observers;
249
+ if (s && s.length) {
250
+ const i = s.pop(), a = n.observerSlots.pop();
251
+ r < s.length && (i.sourceSlots[a] = r, s[r] = i, n.observerSlots[r] = a);
252
252
  }
253
253
  }
254
254
  if (e.owned) {
255
- for (t = e.owned.length - 1; t >= 0; t--) se(e.owned[t]);
255
+ for (t = e.owned.length - 1; t >= 0; t--) oe(e.owned[t]);
256
256
  e.owned = null;
257
257
  }
258
258
  if (e.cleanups) {
@@ -261,13 +261,13 @@ function se(e) {
261
261
  }
262
262
  e.state = 0;
263
263
  }
264
- function Et(e) {
264
+ function At(e) {
265
265
  return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
266
266
  cause: e
267
267
  });
268
268
  }
269
269
  function Ee(e, t = w) {
270
- throw Et(e);
270
+ throw At(e);
271
271
  }
272
272
  function ye(e) {
273
273
  if (typeof e == "function" && !e.length) return ye(e());
@@ -281,33 +281,33 @@ function ye(e) {
281
281
  }
282
282
  return e;
283
283
  }
284
- function Rt(e, t) {
284
+ function Et(e, t) {
285
285
  return function(r) {
286
- let o;
286
+ let s;
287
287
  return _(
288
- () => o = I(() => (w.context = {
288
+ () => s = I(() => (w.context = {
289
289
  ...w.context,
290
290
  [e]: r.value
291
291
  }, $e(() => r.children))),
292
292
  void 0
293
- ), o;
293
+ ), s;
294
294
  };
295
295
  }
296
296
  function A(e, t) {
297
297
  return I(() => e(t || {}));
298
298
  }
299
- function J() {
299
+ function Q() {
300
300
  return !0;
301
301
  }
302
- const Ct = {
302
+ const Rt = {
303
303
  get(e, t, n) {
304
304
  return t === me ? n : e.get(t);
305
305
  },
306
306
  has(e, t) {
307
307
  return t === me ? !0 : e.has(t);
308
308
  },
309
- set: J,
310
- deleteProperty: J,
309
+ set: Q,
310
+ deleteProperty: Q,
311
311
  getOwnPropertyDescriptor(e, t) {
312
312
  return {
313
313
  configurable: !0,
@@ -315,8 +315,8 @@ const Ct = {
315
315
  get() {
316
316
  return e.get(t);
317
317
  },
318
- set: J,
319
- deleteProperty: J
318
+ set: Q,
319
+ deleteProperty: Q
320
320
  };
321
321
  },
322
322
  ownKeys(e) {
@@ -326,87 +326,87 @@ const Ct = {
326
326
  function he(e) {
327
327
  return (e = typeof e == "function" ? e() : e) ? e : {};
328
328
  }
329
- function Lt() {
329
+ function xt() {
330
330
  for (let e = 0, t = this.length; e < t; ++e) {
331
331
  const n = this[e]();
332
332
  if (n !== void 0) return n;
333
333
  }
334
334
  }
335
- function Pt(...e) {
335
+ function Ct(...e) {
336
336
  let t = !1;
337
337
  for (let a = 0; a < e.length; a++) {
338
- const s = e[a];
339
- t = t || !!s && me in s, e[a] = typeof s == "function" ? (t = !0, E(s)) : s;
338
+ const o = e[a];
339
+ t = t || !!o && me in o, e[a] = typeof o == "function" ? (t = !0, E(o)) : o;
340
340
  }
341
341
  if (t)
342
342
  return new Proxy(
343
343
  {
344
344
  get(a) {
345
- for (let s = e.length - 1; s >= 0; s--) {
346
- const c = he(e[s])[a];
345
+ for (let o = e.length - 1; o >= 0; o--) {
346
+ const c = he(e[o])[a];
347
347
  if (c !== void 0) return c;
348
348
  }
349
349
  },
350
350
  has(a) {
351
- for (let s = e.length - 1; s >= 0; s--)
352
- if (a in he(e[s])) return !0;
351
+ for (let o = e.length - 1; o >= 0; o--)
352
+ if (a in he(e[o])) return !0;
353
353
  return !1;
354
354
  },
355
355
  keys() {
356
356
  const a = [];
357
- for (let s = 0; s < e.length; s++)
358
- a.push(...Object.keys(he(e[s])));
357
+ for (let o = 0; o < e.length; o++)
358
+ a.push(...Object.keys(he(e[o])));
359
359
  return [...new Set(a)];
360
360
  }
361
361
  },
362
- Ct
362
+ Rt
363
363
  );
364
364
  const n = {}, r = /* @__PURE__ */ Object.create(null);
365
365
  for (let a = e.length - 1; a >= 0; a--) {
366
- const s = e[a];
367
- if (!s) continue;
368
- const c = Object.getOwnPropertyNames(s);
366
+ const o = e[a];
367
+ if (!o) continue;
368
+ const c = Object.getOwnPropertyNames(o);
369
369
  for (let l = c.length - 1; l >= 0; l--) {
370
370
  const u = c[l];
371
371
  if (u === "__proto__" || u === "constructor") continue;
372
- const h = Object.getOwnPropertyDescriptor(s, u);
372
+ const h = Object.getOwnPropertyDescriptor(o, u);
373
373
  if (!r[u])
374
374
  r[u] = h.get ? {
375
375
  enumerable: !0,
376
376
  configurable: !0,
377
- get: Lt.bind(n[u] = [h.get.bind(s)])
377
+ get: xt.bind(n[u] = [h.get.bind(o)])
378
378
  } : h.value !== void 0 ? h : void 0;
379
379
  else {
380
380
  const p = n[u];
381
- p && (h.get ? p.push(h.get.bind(s)) : h.value !== void 0 && p.push(() => h.value));
381
+ p && (h.get ? p.push(h.get.bind(o)) : h.value !== void 0 && p.push(() => h.value));
382
382
  }
383
383
  }
384
384
  }
385
- const o = {}, i = Object.keys(r);
385
+ const s = {}, i = Object.keys(r);
386
386
  for (let a = i.length - 1; a >= 0; a--) {
387
- const s = i[a], c = r[s];
388
- c && c.get ? Object.defineProperty(o, s, c) : o[s] = c ? c.value : void 0;
387
+ const o = i[a], c = r[o];
388
+ c && c.get ? Object.defineProperty(s, o, c) : s[o] = c ? c.value : void 0;
389
389
  }
390
- return o;
390
+ return s;
391
391
  }
392
- const xt = (e) => `Stale read from <${e}>.`;
392
+ const Lt = (e) => `Stale read from <${e}>.`;
393
393
  function D(e) {
394
394
  const t = e.keyed, n = E(() => e.when, void 0, {
395
- equals: (r, o) => t ? r === o : !r == !o
395
+ equals: (r, s) => t ? r === s : !r == !s
396
396
  });
397
397
  return E(
398
398
  () => {
399
399
  const r = n();
400
400
  if (r) {
401
- const o = e.children;
402
- return typeof o == "function" && o.length > 0 ? I(
403
- () => o(
401
+ const s = e.children;
402
+ return typeof s == "function" && s.length > 0 ? I(
403
+ () => s(
404
404
  t ? r : () => {
405
- if (!I(n)) throw xt("Show");
405
+ if (!I(n)) throw Lt("Show");
406
406
  return e.when;
407
407
  }
408
408
  )
409
- ) : o;
409
+ ) : s;
410
410
  }
411
411
  return e.fallback;
412
412
  },
@@ -414,40 +414,40 @@ function D(e) {
414
414
  void 0
415
415
  );
416
416
  }
417
- function Ot(e, t, n) {
418
- let r = n.length, o = t.length, i = r, a = 0, s = 0, c = t[o - 1].nextSibling, l = null;
419
- for (; a < o || s < i; ) {
420
- if (t[a] === n[s]) {
421
- a++, s++;
417
+ function Pt(e, t, n) {
418
+ let r = n.length, s = t.length, i = r, a = 0, o = 0, c = t[s - 1].nextSibling, l = null;
419
+ for (; a < s || o < i; ) {
420
+ if (t[a] === n[o]) {
421
+ a++, o++;
422
422
  continue;
423
423
  }
424
- for (; t[o - 1] === n[i - 1]; )
425
- o--, i--;
426
- if (o === a) {
427
- const u = i < r ? s ? n[s - 1].nextSibling : n[i - s] : c;
428
- for (; s < i; ) e.insertBefore(n[s++], u);
429
- } else if (i === s)
430
- for (; a < o; )
424
+ for (; t[s - 1] === n[i - 1]; )
425
+ s--, i--;
426
+ if (s === a) {
427
+ const u = i < r ? o ? n[o - 1].nextSibling : n[i - o] : c;
428
+ for (; o < i; ) e.insertBefore(n[o++], u);
429
+ } else if (i === o)
430
+ for (; a < s; )
431
431
  (!l || !l.has(t[a])) && t[a].remove(), a++;
432
- else if (t[a] === n[i - 1] && n[s] === t[o - 1]) {
433
- const u = t[--o].nextSibling;
434
- e.insertBefore(n[s++], t[a++].nextSibling), e.insertBefore(n[--i], u), t[o] = n[i];
432
+ else if (t[a] === n[i - 1] && n[o] === t[s - 1]) {
433
+ const u = t[--s].nextSibling;
434
+ e.insertBefore(n[o++], t[a++].nextSibling), e.insertBefore(n[--i], u), t[s] = n[i];
435
435
  } else {
436
436
  if (!l) {
437
437
  l = /* @__PURE__ */ new Map();
438
- let h = s;
438
+ let h = o;
439
439
  for (; h < i; ) l.set(n[h], h++);
440
440
  }
441
441
  const u = l.get(t[a]);
442
442
  if (u != null)
443
- if (s < u && u < i) {
443
+ if (o < u && u < i) {
444
444
  let h = a, p = 1, m;
445
- for (; ++h < o && h < i && !((m = l.get(t[h])) == null || m !== u + p); )
445
+ for (; ++h < s && h < i && !((m = l.get(t[h])) == null || m !== u + p); )
446
446
  p++;
447
- if (p > u - s) {
447
+ if (p > u - o) {
448
448
  const y = t[a];
449
- for (; s < u; ) e.insertBefore(n[s++], y);
450
- } else e.replaceChild(n[s++], t[a++]);
449
+ for (; o < u; ) e.insertBefore(n[o++], y);
450
+ } else e.replaceChild(n[o++], t[a++]);
451
451
  } else a++;
452
452
  else t[a++].remove();
453
453
  }
@@ -455,42 +455,42 @@ function Ot(e, t, n) {
455
455
  }
456
456
  const _e = "_$DX_DELEGATE";
457
457
  function Re(e, t, n, r = {}) {
458
- let o;
459
- return De((i) => {
460
- o = i, t === document ? e() : P(t, e(), t.firstChild ? null : void 0, n);
458
+ let s;
459
+ return Me((i) => {
460
+ s = i, t === document ? e() : L(t, e(), t.firstChild ? null : void 0, n);
461
461
  }, r.owner), () => {
462
- o(), t.textContent = "";
462
+ s(), t.textContent = "";
463
463
  };
464
464
  }
465
- function C(e, t, n) {
465
+ function x(e, t, n) {
466
466
  let r;
467
- const o = () => {
467
+ const s = () => {
468
468
  const a = document.createElement("template");
469
469
  return a.innerHTML = e, a.content.firstChild;
470
- }, i = () => (r || (r = o())).cloneNode(!0);
470
+ }, i = () => (r || (r = s())).cloneNode(!0);
471
471
  return i.cloneNode = i, i;
472
472
  }
473
473
  function ie(e, t = window.document) {
474
474
  const n = t[_e] || (t[_e] = /* @__PURE__ */ new Set());
475
- for (let r = 0, o = e.length; r < o; r++) {
475
+ for (let r = 0, s = e.length; r < s; r++) {
476
476
  const i = e[r];
477
- n.has(i) || (n.add(i), t.addEventListener(i, It));
477
+ n.has(i) || (n.add(i), t.addEventListener(i, _t));
478
478
  }
479
479
  }
480
480
  function ae(e, t, n) {
481
481
  n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
482
482
  }
483
- function Ye(e, t) {
483
+ function Je(e, t) {
484
484
  t == null ? e.removeAttribute("class") : e.className = t;
485
485
  }
486
- function _t(e, t, n) {
486
+ function Ot(e, t, n) {
487
487
  return I(() => e(t, n));
488
488
  }
489
- function P(e, t, n, r) {
489
+ function L(e, t, n, r) {
490
490
  if (n !== void 0 && !r && (r = []), typeof t != "function") return re(e, t, r, n);
491
- _((o) => re(e, t(), o, n), r);
491
+ _((s) => re(e, t(), s, n), r);
492
492
  }
493
- function It(e) {
493
+ function _t(e) {
494
494
  const t = `$$${e.type}`;
495
495
  let n = e.composedPath && e.composedPath()[0] || e.target;
496
496
  for (e.target !== n && Object.defineProperty(e, "target", {
@@ -504,13 +504,13 @@ function It(e) {
504
504
  }); n; ) {
505
505
  const r = n[t];
506
506
  if (r && !n.disabled) {
507
- const o = n[`${t}Data`];
508
- if (o !== void 0 ? r.call(n, o, e) : r.call(n, e), e.cancelBubble) return;
507
+ const s = n[`${t}Data`];
508
+ if (s !== void 0 ? r.call(n, s, e) : r.call(n, e), e.cancelBubble) return;
509
509
  }
510
510
  n = n._$host || n.parentNode || n.host;
511
511
  }
512
512
  }
513
- function re(e, t, n, r, o) {
513
+ function re(e, t, n, r, s) {
514
514
  for (; typeof n == "function"; ) n = n();
515
515
  if (t === n) return n;
516
516
  const i = typeof t, a = r !== void 0;
@@ -518,8 +518,8 @@ function re(e, t, n, r, o) {
518
518
  if (i === "number" && (t = t.toString(), t === n))
519
519
  return n;
520
520
  if (a) {
521
- let s = n[0];
522
- s && s.nodeType === 3 ? s.data !== t && (s.data = t) : s = document.createTextNode(t), n = M(e, n, r, s);
521
+ let o = n[0];
522
+ o && o.nodeType === 3 ? o.data !== t && (o.data = t) : o = document.createTextNode(t), n = M(e, n, r, o);
523
523
  } else
524
524
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
525
525
  } else if (t == null || i === "boolean")
@@ -527,18 +527,18 @@ function re(e, t, n, r, o) {
527
527
  else {
528
528
  if (i === "function")
529
529
  return _(() => {
530
- let s = t();
531
- for (; typeof s == "function"; ) s = s();
532
- n = re(e, s, n, r);
530
+ let o = t();
531
+ for (; typeof o == "function"; ) o = o();
532
+ n = re(e, o, n, r);
533
533
  }), () => n;
534
534
  if (Array.isArray(t)) {
535
- const s = [], c = n && Array.isArray(n);
536
- if (we(s, t, n, o))
537
- return _(() => n = re(e, s, n, r, !0)), () => n;
538
- if (s.length === 0) {
535
+ const o = [], c = n && Array.isArray(n);
536
+ if (we(o, t, n, s))
537
+ return _(() => n = re(e, o, n, r, !0)), () => n;
538
+ if (o.length === 0) {
539
539
  if (n = M(e, n, r), a) return n;
540
- } else c ? n.length === 0 ? Ie(e, s, r) : Ot(e, n, s) : (n && M(e), Ie(e, s));
541
- n = s;
540
+ } else c ? n.length === 0 ? Ie(e, o, r) : Pt(e, n, o) : (n && M(e), Ie(e, o));
541
+ n = o;
542
542
  } else if (t.nodeType) {
543
543
  if (Array.isArray(n)) {
544
544
  if (a) return n = M(e, n, r, t);
@@ -550,95 +550,104 @@ function re(e, t, n, r, o) {
550
550
  return n;
551
551
  }
552
552
  function we(e, t, n, r) {
553
- let o = !1;
553
+ let s = !1;
554
554
  for (let i = 0, a = t.length; i < a; i++) {
555
- let s = t[i], c = n && n[e.length], l;
556
- if (!(s == null || s === !0 || s === !1)) if ((l = typeof s) == "object" && s.nodeType)
557
- e.push(s);
558
- else if (Array.isArray(s))
559
- o = we(e, s, c) || o;
555
+ let o = t[i], c = n && n[e.length], l;
556
+ if (!(o == null || o === !0 || o === !1)) if ((l = typeof o) == "object" && o.nodeType)
557
+ e.push(o);
558
+ else if (Array.isArray(o))
559
+ s = we(e, o, c) || s;
560
560
  else if (l === "function")
561
561
  if (r) {
562
- for (; typeof s == "function"; ) s = s();
563
- o = we(
562
+ for (; typeof o == "function"; ) o = o();
563
+ s = we(
564
564
  e,
565
- Array.isArray(s) ? s : [s],
565
+ Array.isArray(o) ? o : [o],
566
566
  Array.isArray(c) ? c : [c]
567
- ) || o;
567
+ ) || s;
568
568
  } else
569
- e.push(s), o = !0;
569
+ e.push(o), s = !0;
570
570
  else {
571
- const u = String(s);
571
+ const u = String(o);
572
572
  c && c.nodeType === 3 && c.data === u ? e.push(c) : e.push(document.createTextNode(u));
573
573
  }
574
574
  }
575
- return o;
575
+ return s;
576
576
  }
577
577
  function Ie(e, t, n = null) {
578
- for (let r = 0, o = t.length; r < o; r++) e.insertBefore(t[r], n);
578
+ for (let r = 0, s = t.length; r < s; r++) e.insertBefore(t[r], n);
579
579
  }
580
580
  function M(e, t, n, r) {
581
581
  if (n === void 0) return e.textContent = "";
582
- const o = r || document.createTextNode("");
582
+ const s = r || document.createTextNode("");
583
583
  if (t.length) {
584
584
  let i = !1;
585
585
  for (let a = t.length - 1; a >= 0; a--) {
586
- const s = t[a];
587
- if (o !== s) {
588
- const c = s.parentNode === e;
589
- !i && !a ? c ? e.replaceChild(o, s) : e.insertBefore(o, n) : c && s.remove();
586
+ const o = t[a];
587
+ if (s !== o) {
588
+ const c = o.parentNode === e;
589
+ !i && !a ? c ? e.replaceChild(s, o) : e.insertBefore(s, n) : c && o.remove();
590
590
  } else i = !0;
591
591
  }
592
- } else e.insertBefore(o, n);
593
- return [o];
592
+ } else e.insertBefore(s, n);
593
+ return [s];
594
594
  }
595
- const Ut = !1;
595
+ const It = !1;
596
596
  function ve(e) {
597
597
  return e.varName ? ` for '${e.varName}'` : "";
598
598
  }
599
- function kt(e) {
599
+ function Ut(e) {
600
600
  return (
601
601
  // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
602
602
  !isNaN(e) && !isNaN(parseFloat(e))
603
603
  );
604
604
  }
605
- function Tt(e, t = {}) {
605
+ function kt(e, t = {}) {
606
606
  if (e == null || e === "" && !t.allowEmpty)
607
607
  throw new Error(`Missing string value${ve(t)}`);
608
608
  return typeof e == "string" ? e : e.toString();
609
609
  }
610
- function W(e, t = {}) {
611
- return e == null || e === "" && !t.allowEmpty ? void 0 : Tt(e, t);
610
+ function J(e, t = {}) {
611
+ return e == null || e === "" && !t.allowEmpty ? void 0 : kt(e, t);
612
612
  }
613
- function Nt(e, t = {}) {
613
+ function Tt(e, t = {}) {
614
614
  if (typeof e == "number")
615
615
  return e;
616
616
  if (e == null)
617
617
  throw new Error(`Missing number value${ve(t)}`);
618
- if (typeof e == "string" && kt(e))
618
+ if (typeof e == "string" && Ut(e))
619
619
  return Number(e);
620
620
  throw new Error(`Cannot convert to number the value of type '${typeof e}'${ve(t)}`);
621
621
  }
622
622
  function Y(e, t = {}) {
623
- return e == null ? void 0 : Nt(e, t);
624
- }
625
- const Ue = W(void 0, { varName: "VITE_API_PORT" }), Ze = Ue ? `//${document.location.hostname}:${Ue}/api/plugin/content-loading` : `//${document.location.host}/api/plugin/content-loading`, ze = "/assets/plugin/content-loading/0.1.2";
623
+ return e == null ? void 0 : Tt(e, t);
624
+ }
625
+ function Nt(e) {
626
+ let t = e;
627
+ const n = t.indexOf("?");
628
+ n !== -1 && (t = t.substring(0, n));
629
+ const r = t.indexOf("#");
630
+ r !== -1 && (t = t.substring(0, r));
631
+ const s = t.lastIndexOf("/");
632
+ return s === -1 ? void 0 : t.slice(0, s);
633
+ }
634
+ const Ye = "/api/plugin/content-loading", Ze = Nt(import.meta.url);
626
635
  async function Ft(e) {
627
- const t = `${Ze}${e}`, n = await fetch(t);
636
+ const t = `${Ye}${e}`, n = await fetch(t);
628
637
  if (n.status !== 200) throw new Error(`api error ${n.status}`);
629
638
  return await n.text();
630
639
  }
631
- var et = (e) => e != null && (e = Object.getPrototypeOf(e), e === Array.prototype || e === Object.prototype);
632
- function tt(e, t, n) {
633
- for (const [r, o] of Object.entries(t)) {
640
+ var ze = (e) => e != null && (e = Object.getPrototypeOf(e), e === Array.prototype || e === Object.prototype);
641
+ function et(e, t, n) {
642
+ for (const [r, s] of Object.entries(t)) {
634
643
  const i = `${n}.${r}`;
635
- e[i] = o, et(o) && tt(e, o, i);
644
+ e[i] = s, ze(s) && et(e, s, i);
636
645
  }
637
646
  }
638
647
  function jt(e) {
639
648
  const t = { ...e };
640
649
  for (const [n, r] of Object.entries(e))
641
- et(r) && tt(t, r, n);
650
+ ze(r) && et(t, r, n);
642
651
  return t;
643
652
  }
644
653
  var Bt = (e, t) => {
@@ -650,14 +659,14 @@ var Bt = (e, t) => {
650
659
  function Dt(e, t = Mt) {
651
660
  return (n, ...r) => {
652
661
  n[0] === "." && (n = n.slice(1));
653
- const o = e()?.[n];
654
- switch (typeof o) {
662
+ const s = e()?.[n];
663
+ switch (typeof s) {
655
664
  case "function":
656
- return o(...r);
665
+ return s(...r);
657
666
  case "string":
658
- return t(o, r[0]);
667
+ return t(s, r[0]);
659
668
  default:
660
- return o;
669
+ return s;
661
670
  }
662
671
  };
663
672
  }
@@ -677,30 +686,30 @@ const qt = {
677
686
  }, Ht = {
678
687
  searchApp: Gt,
679
688
  infiniteLoading: Kt
680
- }, ke = { en: Wt, fr: Ht };
689
+ }, Ue = { en: Wt, fr: Ht };
681
690
  function le(e) {
682
691
  const t = E(() => {
683
- const r = e in ke ? e : "en";
684
- return jt(ke[r]);
692
+ const r = e in Ue ? e : "en";
693
+ return jt(Ue[r]);
685
694
  });
686
695
  return { t: Dt(t, Bt) };
687
696
  }
688
- var Xt = /* @__PURE__ */ C("<button class=InfiniteLoading-btn type=button>"), Qt = /* @__PURE__ */ C("<div class=InfiniteLoading-actionArea>"), Jt = /* @__PURE__ */ C("<img class=InfiniteLoading-spinner width=50 height=50 alt=…>");
697
+ var Xt = /* @__PURE__ */ x("<button class=InfiniteLoading-btn type=button>"), Qt = /* @__PURE__ */ x("<div class=InfiniteLoading-actionArea>"), Jt = /* @__PURE__ */ x("<img class=InfiniteLoading-spinner width=50 height=50 alt=…>");
689
698
  function Yt(e, {
690
699
  language: t
691
700
  }) {
692
- const n = Y(e.dataset.start), r = Y(e.dataset.total), o = Y(e.dataset.limit), i = W(e.dataset.parentId), a = W(e.dataset.template), s = W(e.dataset.labeledById);
693
- if (!(n === void 0 || r === void 0 || i === void 0 || o === void 0 || a === void 0)) {
701
+ const n = Y(e.dataset.start), r = Y(e.dataset.total), s = Y(e.dataset.limit), i = J(e.dataset.parentId), a = J(e.dataset.template), o = J(e.dataset.labeledById);
702
+ if (!(n === void 0 || r === void 0 || i === void 0 || s === void 0 || a === void 0)) {
694
703
  if (!t) throw new Error("Missing language");
695
704
  Zt({
696
705
  language: t,
697
- limit: o,
706
+ limit: s,
698
707
  parentId: i,
699
708
  root: e,
700
709
  start: n,
701
710
  total: r,
702
711
  templateName: a,
703
- labeledById: s
712
+ labeledById: o
704
713
  });
705
714
  }
706
715
  }
@@ -709,25 +718,25 @@ function Zt({
709
718
  limit: t,
710
719
  root: n,
711
720
  start: r,
712
- total: o,
721
+ total: s,
713
722
  parentId: i,
714
723
  templateName: a,
715
- labeledById: s
724
+ labeledById: o
716
725
  }) {
717
726
  const {
718
727
  t: c
719
728
  } = le(e);
720
729
  let l = r;
721
- if (l >= o) return;
730
+ if (l >= s) return;
722
731
  const u = (() => {
723
732
  var y = Xt();
724
- return y.$$click = m, P(y, () => c("infiniteLoading.loadMore")), y;
733
+ return y.$$click = m, L(y, () => c("infiniteLoading.loadMore")), y;
725
734
  })(), h = (() => {
726
735
  var y = Qt();
727
- return P(y, u), y;
736
+ return L(y, u), y;
728
737
  })(), p = (() => {
729
738
  var y = Jt();
730
- return ae(y, "src", `${ze}/spinner.svg`), y;
739
+ return ae(y, "src", `${Ze}/spinner.svg`), y;
731
740
  })();
732
741
  n.appendChild(h);
733
742
  async function m() {
@@ -737,11 +746,11 @@ function Zt({
737
746
  newStart: l,
738
747
  parentId: i,
739
748
  templateName: a,
740
- labeledById: s
749
+ labeledById: o
741
750
  });
742
751
  for (const f of y)
743
752
  n.insertBefore(f, h);
744
- l += t, l >= o && h.remove(), p.remove();
753
+ l += t, l >= s && h.remove(), p.remove();
745
754
  }
746
755
  }
747
756
  async function zt({
@@ -749,33 +758,33 @@ async function zt({
749
758
  newStart: t,
750
759
  parentId: n,
751
760
  templateName: r,
752
- labeledById: o
761
+ labeledById: s
753
762
  }) {
754
- const i = o ? `?labeled=${encodeURIComponent(o)}` : "", a = `/partials?templateName=${encodeURIComponent(r)}&children-of=${encodeURIComponent(n)}&start=${encodeURIComponent(t)}&limit=${encodeURIComponent(e)}${i}`, s = await Ft(a), c = document.createElement("div");
755
- return c.innerHTML = s, [...c.children];
763
+ const i = s ? `?labeled=${encodeURIComponent(s)}` : "", a = `/partials?templateName=${encodeURIComponent(r)}&children-of=${encodeURIComponent(n)}&start=${encodeURIComponent(t)}&limit=${encodeURIComponent(e)}${i}`, o = await Ft(a), c = document.createElement("div");
764
+ return c.innerHTML = o, [...c.children];
756
765
  }
757
766
  ie(["click"]);
758
- function nt() {
767
+ function tt() {
759
768
  let e = /* @__PURE__ */ new Set();
760
- function t(o) {
761
- return e.add(o), () => e.delete(o);
769
+ function t(s) {
770
+ return e.add(s), () => e.delete(s);
762
771
  }
763
772
  let n = !1;
764
- function r(o, i) {
773
+ function r(s, i) {
765
774
  if (n)
766
775
  return !(n = !1);
767
776
  const a = {
768
- to: o,
777
+ to: s,
769
778
  options: i,
770
779
  defaultPrevented: !1,
771
780
  preventDefault: () => a.defaultPrevented = !0
772
781
  };
773
- for (const s of e)
774
- s.listener({
782
+ for (const o of e)
783
+ o.listener({
775
784
  ...a,
776
- from: s.location,
785
+ from: o.location,
777
786
  retry: (c) => {
778
- c && (n = !0), s.navigate(o, { ...i, resolve: !1 });
787
+ c && (n = !0), o.navigate(s, { ...i, resolve: !1 });
779
788
  }
780
789
  });
781
790
  return !a.defaultPrevented;
@@ -786,10 +795,10 @@ function nt() {
786
795
  };
787
796
  }
788
797
  let be;
789
- function Ce() {
798
+ function xe() {
790
799
  (!window.history.state || window.history.state._depth == null) && window.history.replaceState({ ...window.history.state, _depth: window.history.length - 1 }, ""), be = window.history.state._depth;
791
800
  }
792
- Ce();
801
+ xe();
793
802
  function en(e) {
794
803
  return {
795
804
  ...e,
@@ -800,46 +809,46 @@ function tn(e, t) {
800
809
  let n = !1;
801
810
  return () => {
802
811
  const r = be;
803
- Ce();
804
- const o = r == null ? null : be - r;
812
+ xe();
813
+ const s = r == null ? null : be - r;
805
814
  if (n) {
806
815
  n = !1;
807
816
  return;
808
817
  }
809
- o && t(o) ? (n = !0, window.history.go(-o)) : e();
818
+ s && t(s) ? (n = !0, window.history.go(-s)) : e();
810
819
  };
811
820
  }
812
- const nn = /^(?:[a-z0-9]+:)?\/\//i, rn = /^\/+|(\/)\/+$/g, rt = "http://sr";
813
- function G(e, t = !1) {
821
+ const nn = /^(?:[a-z0-9]+:)?\/\//i, rn = /^\/+|(\/)\/+$/g, nt = "http://sr";
822
+ function W(e, t = !1) {
814
823
  const n = e.replace(rn, "$1");
815
824
  return n ? t || /^[?#]/.test(n) ? n : "/" + n : "";
816
825
  }
817
826
  function Z(e, t, n) {
818
827
  if (nn.test(t))
819
828
  return;
820
- const r = G(e), o = n && G(n);
829
+ const r = W(e), s = n && W(n);
821
830
  let i = "";
822
- return !o || t.startsWith("/") ? i = r : o.toLowerCase().indexOf(r.toLowerCase()) !== 0 ? i = r + o : i = o, (i || "/") + G(t, !i);
831
+ return !s || t.startsWith("/") ? i = r : s.toLowerCase().indexOf(r.toLowerCase()) !== 0 ? i = r + s : i = s, (i || "/") + W(t, !i);
823
832
  }
824
- function on(e, t) {
833
+ function sn(e, t) {
825
834
  if (e == null)
826
835
  throw new Error(t);
827
836
  return e;
828
837
  }
829
- function sn(e, t) {
830
- return G(e).replace(/\/*(\*.*)?$/g, "") + G(t);
838
+ function on(e, t) {
839
+ return W(e).replace(/\/*(\*.*)?$/g, "") + W(t);
831
840
  }
832
- function ot(e) {
841
+ function rt(e) {
833
842
  const t = {};
834
843
  return e.searchParams.forEach((n, r) => {
835
844
  t[r] = n;
836
845
  }), t;
837
846
  }
838
847
  function an(e, t, n) {
839
- const [r, o] = e.split("/*", 2), i = r.split("/").filter(Boolean), a = i.length;
840
- return (s) => {
841
- const c = s.split("/").filter(Boolean), l = c.length - a;
842
- if (l < 0 || l > 0 && o === void 0 && !t)
848
+ const [r, s] = e.split("/*", 2), i = r.split("/").filter(Boolean), a = i.length;
849
+ return (o) => {
850
+ const c = o.split("/").filter(Boolean), l = c.length - a;
851
+ if (l < 0 || l > 0 && s === void 0 && !t)
843
852
  return null;
844
853
  const u = {
845
854
  path: a ? "" : "/",
@@ -853,10 +862,10 @@ function an(e, t, n) {
853
862
  return null;
854
863
  u.path += `/${y}`;
855
864
  }
856
- if (o) {
865
+ if (s) {
857
866
  const p = l ? c.slice(-l).join("/") : "";
858
- if (de(p, h(o)))
859
- u.params[o] = p;
867
+ if (de(p, h(s)))
868
+ u.params[s] = p;
860
869
  else
861
870
  return null;
862
871
  }
@@ -869,13 +878,13 @@ function de(e, t) {
869
878
  }
870
879
  function ln(e) {
871
880
  const [t, n] = e.pattern.split("/*", 2), r = t.split("/").filter(Boolean);
872
- return r.reduce((o, i) => o + (i.startsWith(":") ? 2 : 3), r.length - (n === void 0 ? 0 : 1));
881
+ return r.reduce((s, i) => s + (i.startsWith(":") ? 2 : 3), r.length - (n === void 0 ? 0 : 1));
873
882
  }
874
883
  function st(e) {
875
- const t = /* @__PURE__ */ new Map(), n = Ve();
884
+ const t = /* @__PURE__ */ new Map(), n = qe();
876
885
  return new Proxy({}, {
877
- get(r, o) {
878
- return t.has(o) || We(n, () => t.set(o, E(() => e()[o]))), t.get(o)();
886
+ get(r, s) {
887
+ return t.has(s) || Ve(n, () => t.set(s, E(() => e()[s]))), t.get(s)();
879
888
  },
880
889
  getOwnPropertyDescriptor() {
881
890
  return {
@@ -888,33 +897,33 @@ function st(e) {
888
897
  }
889
898
  });
890
899
  }
891
- function it(e) {
900
+ function ot(e) {
892
901
  let t = /(\/?\:[^\/]+)\?/.exec(e);
893
902
  if (!t)
894
903
  return [e];
895
904
  let n = e.slice(0, t.index), r = e.slice(t.index + t[0].length);
896
- const o = [n, n += t[1]];
905
+ const s = [n, n += t[1]];
897
906
  for (; t = /^(\/\:[^\/]+)\?/.exec(r); )
898
- o.push(n += t[1]), r = r.slice(t[0].length);
899
- return it(r).reduce((i, a) => [...i, ...o.map((s) => s + a)], []);
907
+ s.push(n += t[1]), r = r.slice(t[0].length);
908
+ return ot(r).reduce((i, a) => [...i, ...s.map((o) => o + a)], []);
900
909
  }
901
- const cn = 100, at = Ge(), lt = Ge(), Le = () => on(Ke(at), "<A> and 'use' router primitives can be only used inside a Route."), ct = () => Le().navigatorFactory(), un = () => Le().location, fn = () => Le().params;
910
+ const cn = 100, it = We(), at = We(), Ce = () => sn(Ge(it), "<A> and 'use' router primitives can be only used inside a Route."), lt = () => Ce().navigatorFactory(), un = () => Ce().location, fn = () => Ce().params;
902
911
  function hn(e, t = "") {
903
- const { component: n, preload: r, load: o, children: i, info: a } = e, s = !i || Array.isArray(i) && !i.length, c = {
912
+ const { component: n, preload: r, load: s, children: i, info: a } = e, o = !i || Array.isArray(i) && !i.length, c = {
904
913
  key: e,
905
914
  component: n,
906
- preload: r || o,
915
+ preload: r || s,
907
916
  info: a
908
917
  };
909
- return ut(e.path).reduce((l, u) => {
910
- for (const h of it(u)) {
911
- const p = sn(t, h);
912
- let m = s ? p : p.split("/*", 1)[0];
918
+ return ct(e.path).reduce((l, u) => {
919
+ for (const h of ot(u)) {
920
+ const p = on(t, h);
921
+ let m = o ? p : p.split("/*", 1)[0];
913
922
  m = m.split("/").map((y) => y.startsWith(":") || y.startsWith("*") ? y : encodeURIComponent(y)).join("/"), l.push({
914
923
  ...c,
915
924
  originalPath: u,
916
925
  pattern: m,
917
- matcher: an(m, !s, e.matchFilters)
926
+ matcher: an(m, !o, e.matchFilters)
918
927
  });
919
928
  }
920
929
  return l;
@@ -926,8 +935,8 @@ function dn(e, t = 0) {
926
935
  score: ln(e[e.length - 1]) * 1e4 - t,
927
936
  matcher(n) {
928
937
  const r = [];
929
- for (let o = e.length - 1; o >= 0; o--) {
930
- const i = e[o], a = i.matcher(n);
938
+ for (let s = e.length - 1; s >= 0; s--) {
939
+ const i = e[s], a = i.matcher(n);
931
940
  if (!a)
932
941
  return null;
933
942
  r.unshift({
@@ -939,21 +948,21 @@ function dn(e, t = 0) {
939
948
  }
940
949
  };
941
950
  }
942
- function ut(e) {
951
+ function ct(e) {
943
952
  return Array.isArray(e) ? e : [e];
944
953
  }
945
- function ft(e, t = "", n = [], r = []) {
946
- const o = ut(e);
947
- for (let i = 0, a = o.length; i < a; i++) {
948
- const s = o[i];
949
- if (s && typeof s == "object") {
950
- s.hasOwnProperty("path") || (s.path = "");
951
- const c = hn(s, t);
954
+ function ut(e, t = "", n = [], r = []) {
955
+ const s = ct(e);
956
+ for (let i = 0, a = s.length; i < a; i++) {
957
+ const o = s[i];
958
+ if (o && typeof o == "object") {
959
+ o.hasOwnProperty("path") || (o.path = "");
960
+ const c = hn(o, t);
952
961
  for (const l of c) {
953
962
  n.push(l);
954
- const u = Array.isArray(s.children) && s.children.length === 0;
955
- if (s.children && !u)
956
- ft(s.children, l.pattern, n, r);
963
+ const u = Array.isArray(o.children) && o.children.length === 0;
964
+ if (o.children && !u)
965
+ ut(o.children, l.pattern, n, r);
957
966
  else {
958
967
  const h = dn([...n], r.length);
959
968
  r.push(h);
@@ -966,14 +975,14 @@ function ft(e, t = "", n = [], r = []) {
966
975
  }
967
976
  function pe(e, t) {
968
977
  for (let n = 0, r = e.length; n < r; n++) {
969
- const o = e[n].matcher(t);
970
- if (o)
971
- return o;
978
+ const s = e[n].matcher(t);
979
+ if (s)
980
+ return s;
972
981
  }
973
982
  return [];
974
983
  }
975
984
  function pn(e, t) {
976
- const n = new URL(rt), r = E((c) => {
985
+ const n = new URL(nt), r = E((c) => {
977
986
  const l = e();
978
987
  try {
979
988
  return new URL(l, n);
@@ -982,10 +991,10 @@ function pn(e, t) {
982
991
  }
983
992
  }, n, {
984
993
  equals: (c, l) => c.href === l.href
985
- }), o = E(() => r().pathname), i = E(() => r().search, !0), a = E(() => r().hash), s = () => "";
994
+ }), s = E(() => r().pathname), i = E(() => r().search, !0), a = E(() => r().hash), o = () => "";
986
995
  return {
987
996
  get pathname() {
988
- return o();
997
+ return s();
989
998
  },
990
999
  get search() {
991
1000
  return i();
@@ -997,9 +1006,9 @@ function pn(e, t) {
997
1006
  return t();
998
1007
  },
999
1008
  get key() {
1000
- return s();
1009
+ return o();
1001
1010
  },
1002
- query: st(K(i, () => ot(r())))
1011
+ query: st(G(i, () => rt(r())))
1003
1012
  };
1004
1013
  }
1005
1014
  let j;
@@ -1007,26 +1016,26 @@ function gn() {
1007
1016
  return j;
1008
1017
  }
1009
1018
  function mn(e, t, n, r = {}) {
1010
- const { signal: [o, i], utils: a = {} } = e, s = a.parsePath || ((v) => v), c = a.renderPath || ((v) => v), l = a.beforeLeave || nt(), u = Z("", r.base || "");
1019
+ const { signal: [s, i], utils: a = {} } = e, o = a.parsePath || ((v) => v), c = a.renderPath || ((v) => v), l = a.beforeLeave || tt(), u = Z("", r.base || "");
1011
1020
  if (u === void 0)
1012
1021
  throw new Error(`${u} is not a valid base path`);
1013
- u && !o().value && i({ value: u, replace: !0, scroll: !1 });
1014
- const [h, p] = x(!1);
1022
+ u && !s().value && i({ value: u, replace: !0, scroll: !1 });
1023
+ const [h, p] = P(!1);
1015
1024
  let m;
1016
1025
  const y = (v, $) => {
1017
- $.value === f() && $.state === S() || (m === void 0 && p(!0), j = v, m = $, bt(() => {
1026
+ $.value === f() && $.state === S() || (m === void 0 && p(!0), j = v, m = $, vt(() => {
1018
1027
  m === $ && (d(m.value), g(m.state), F[1]([]));
1019
1028
  }).finally(() => {
1020
- m === $ && vt(() => {
1021
- j = void 0, v === "navigate" && gt(m), p(!1), m = void 0;
1029
+ m === $ && wt(() => {
1030
+ j = void 0, v === "navigate" && pt(m), p(!1), m = void 0;
1022
1031
  });
1023
1032
  }));
1024
- }, [f, d] = x(o().value), [S, g] = x(o().state), U = pn(f, S), L = [], F = x([]), q = E(() => typeof r.transformUrl == "function" ? pe(t(), r.transformUrl(U.pathname)) : pe(t(), U.pathname)), ht = st(() => {
1033
+ }, [f, d] = P(s().value), [S, g] = P(s().state), U = pn(f, S), C = [], F = P([]), q = E(() => typeof r.transformUrl == "function" ? pe(t(), r.transformUrl(U.pathname)) : pe(t(), U.pathname)), ft = st(() => {
1025
1034
  const v = q(), $ = {};
1026
1035
  for (let O = 0; O < v.length; O++)
1027
1036
  Object.assign($, v[O].params);
1028
1037
  return $;
1029
- }), Pe = {
1038
+ }), Le = {
1030
1039
  pattern: u,
1031
1040
  path: () => u,
1032
1041
  outlet: () => null,
@@ -1034,86 +1043,86 @@ function mn(e, t, n, r = {}) {
1034
1043
  return Z(u, v);
1035
1044
  }
1036
1045
  };
1037
- return _(K(o, (v) => y("native", v), { defer: !0 })), {
1038
- base: Pe,
1046
+ return _(G(s, (v) => y("native", v), { defer: !0 })), {
1047
+ base: Le,
1039
1048
  location: U,
1040
- params: ht,
1049
+ params: ft,
1041
1050
  isRouting: h,
1042
1051
  renderPath: c,
1043
- parsePath: s,
1044
- navigatorFactory: pt,
1052
+ parsePath: o,
1053
+ navigatorFactory: dt,
1045
1054
  matches: q,
1046
1055
  beforeLeave: l,
1047
- preloadRoute: mt,
1056
+ preloadRoute: gt,
1048
1057
  singleFlight: r.singleFlight === void 0 ? !0 : r.singleFlight,
1049
1058
  submissions: F
1050
1059
  };
1051
- function dt(v, $, O) {
1060
+ function ht(v, $, O) {
1052
1061
  I(() => {
1053
1062
  if (typeof $ == "number") {
1054
1063
  $ && (a.go ? a.go($) : console.warn("Router integration does not support relative routing"));
1055
1064
  return;
1056
1065
  }
1057
- const X = !$ || $[0] === "?", { replace: ce, resolve: B, scroll: ue, state: V } = {
1066
+ const H = !$ || $[0] === "?", { replace: ce, resolve: B, scroll: ue, state: V } = {
1058
1067
  replace: !1,
1059
- resolve: !X,
1068
+ resolve: !H,
1060
1069
  scroll: !0,
1061
1070
  ...O
1062
1071
  };
1063
- let xe;
1064
- const Q = B ? v.resolvePath($) : Z(X && (xe = o().value) && xe.split("?")[0] || "", $);
1065
- if (Q === void 0)
1072
+ let Pe;
1073
+ const X = B ? v.resolvePath($) : Z(H && (Pe = s().value) && Pe.split("?")[0] || "", $);
1074
+ if (X === void 0)
1066
1075
  throw new Error(`Path '${$}' is not a routable path`);
1067
- if (L.length >= cn)
1076
+ if (C.length >= cn)
1068
1077
  throw new Error("Too many redirects");
1069
1078
  const Oe = f();
1070
- (Q !== Oe || V !== S()) && (Ut || l.confirm(Q, O) && (L.push({ value: Oe, replace: ce, scroll: ue, state: S() }), y("navigate", {
1071
- value: Q,
1079
+ (X !== Oe || V !== S()) && (It || l.confirm(X, O) && (C.push({ value: Oe, replace: ce, scroll: ue, state: S() }), y("navigate", {
1080
+ value: X,
1072
1081
  state: V
1073
1082
  })));
1074
1083
  });
1075
1084
  }
1076
- function pt(v) {
1077
- return v = v || Ke(lt) || Pe, ($, O) => dt(v, $, O);
1085
+ function dt(v) {
1086
+ return v = v || Ge(at) || Le, ($, O) => ht(v, $, O);
1078
1087
  }
1079
- function gt(v) {
1080
- const $ = L[0];
1088
+ function pt(v) {
1089
+ const $ = C[0];
1081
1090
  $ && (i({
1082
1091
  ...v,
1083
1092
  replace: $.replace,
1084
1093
  scroll: $.scroll
1085
- }), L.length = 0);
1094
+ }), C.length = 0);
1086
1095
  }
1087
- function mt(v, $ = {}) {
1088
- const O = pe(t(), v.pathname), X = j;
1096
+ function gt(v, $ = {}) {
1097
+ const O = pe(t(), v.pathname), H = j;
1089
1098
  j = "preload";
1090
1099
  for (let ce in O) {
1091
1100
  const { route: B, params: ue } = O[ce];
1092
1101
  B.component && B.component.preload && B.component.preload();
1093
1102
  const { preload: V } = B;
1094
- $.preloadData && V && We(n(), () => V({
1103
+ $.preloadData && V && Ve(n(), () => V({
1095
1104
  params: ue,
1096
1105
  location: {
1097
1106
  pathname: v.pathname,
1098
1107
  search: v.search,
1099
1108
  hash: v.hash,
1100
- query: ot(v),
1109
+ query: rt(v),
1101
1110
  state: null,
1102
1111
  key: ""
1103
1112
  },
1104
1113
  intent: "preload"
1105
1114
  }));
1106
1115
  }
1107
- j = X;
1116
+ j = H;
1108
1117
  }
1109
1118
  }
1110
1119
  function yn(e, t, n, r) {
1111
- const { base: o, location: i, params: a } = e, { pattern: s, component: c, preload: l } = r().route, u = E(() => r().path);
1120
+ const { base: s, location: i, params: a } = e, { pattern: o, component: c, preload: l } = r().route, u = E(() => r().path);
1112
1121
  c && c.preload && c.preload();
1113
1122
  const h = l ? l({ params: a, location: i, intent: j || "initial" }) : void 0;
1114
1123
  return {
1115
1124
  parent: t,
1116
- pattern: s,
1125
+ pattern: o,
1117
1126
  path: u,
1118
1127
  outlet: () => c ? A(c, {
1119
1128
  params: a,
@@ -1124,21 +1133,21 @@ function yn(e, t, n, r) {
1124
1133
  }
1125
1134
  }) : n(),
1126
1135
  resolvePath(m) {
1127
- return Z(o.path(), m, u());
1136
+ return Z(s.path(), m, u());
1128
1137
  }
1129
1138
  };
1130
1139
  }
1131
1140
  const wn = (e) => (t) => {
1132
1141
  const {
1133
1142
  base: n
1134
- } = t, r = $e(() => t.children), o = E(() => ft(r(), t.base || ""));
1143
+ } = t, r = $e(() => t.children), s = E(() => ut(r(), t.base || ""));
1135
1144
  let i;
1136
- const a = mn(e, o, () => i, {
1145
+ const a = mn(e, s, () => i, {
1137
1146
  base: n,
1138
1147
  singleFlight: t.singleFlight,
1139
1148
  transformUrl: t.transformUrl
1140
1149
  });
1141
- return e.create && e.create(a), A(at.Provider, {
1150
+ return e.create && e.create(a), A(it.Provider, {
1142
1151
  value: a,
1143
1152
  get children() {
1144
1153
  return A(vn, {
@@ -1150,10 +1159,10 @@ const wn = (e) => (t) => {
1150
1159
  return t.rootPreload || t.rootLoad;
1151
1160
  },
1152
1161
  get children() {
1153
- return [E(() => (i = Ve()) && null), A(bn, {
1162
+ return [E(() => (i = qe()) && null), A(bn, {
1154
1163
  routerState: a,
1155
1164
  get branches() {
1156
- return o();
1165
+ return s();
1157
1166
  }
1158
1167
  })];
1159
1168
  }
@@ -1177,7 +1186,7 @@ function vn(e) {
1177
1186
  get fallback() {
1178
1187
  return e.children;
1179
1188
  },
1180
- children: (o) => A(o, {
1189
+ children: (s) => A(s, {
1181
1190
  params: n,
1182
1191
  location: t,
1183
1192
  get data() {
@@ -1192,25 +1201,25 @@ function vn(e) {
1192
1201
  function bn(e) {
1193
1202
  const t = [];
1194
1203
  let n;
1195
- const r = E(K(e.routerState.matches, (o, i, a) => {
1196
- let s = i && o.length === i.length;
1204
+ const r = E(G(e.routerState.matches, (s, i, a) => {
1205
+ let o = i && s.length === i.length;
1197
1206
  const c = [];
1198
- for (let l = 0, u = o.length; l < u; l++) {
1199
- const h = i && i[l], p = o[l];
1200
- a && h && p.route.key === h.route.key ? c[l] = a[l] : (s = !1, t[l] && t[l](), De((m) => {
1201
- t[l] = m, c[l] = yn(e.routerState, c[l - 1] || e.routerState.base, Te(() => r()[l + 1]), () => e.routerState.matches()[l]);
1207
+ for (let l = 0, u = s.length; l < u; l++) {
1208
+ const h = i && i[l], p = s[l];
1209
+ a && h && p.route.key === h.route.key ? c[l] = a[l] : (o = !1, t[l] && t[l](), Me((m) => {
1210
+ t[l] = m, c[l] = yn(e.routerState, c[l - 1] || e.routerState.base, ke(() => r()[l + 1]), () => e.routerState.matches()[l]);
1202
1211
  }));
1203
1212
  }
1204
- return t.splice(o.length).forEach((l) => l()), a && s ? a : (n = c[0], c);
1213
+ return t.splice(s.length).forEach((l) => l()), a && o ? a : (n = c[0], c);
1205
1214
  }));
1206
- return Te(() => r() && n)();
1215
+ return ke(() => r() && n)();
1207
1216
  }
1208
- const Te = (e) => () => A(D, {
1217
+ const ke = (e) => () => A(D, {
1209
1218
  get when() {
1210
1219
  return e();
1211
1220
  },
1212
1221
  keyed: !0,
1213
- children: (t) => A(lt.Provider, {
1222
+ children: (t) => A(at.Provider, {
1214
1223
  value: t,
1215
1224
  get children() {
1216
1225
  return t.outlet();
@@ -1218,14 +1227,14 @@ const Te = (e) => () => A(D, {
1218
1227
  })
1219
1228
  }), ge = (e) => {
1220
1229
  const t = $e(() => e.children);
1221
- return Pt(e, {
1230
+ return Ct(e, {
1222
1231
  get children() {
1223
1232
  return t();
1224
1233
  }
1225
1234
  });
1226
1235
  };
1227
1236
  function Sn([e, t], n, r) {
1228
- return [e, r ? (o) => t(r(o)) : t];
1237
+ return [e, r ? (s) => t(r(s)) : t];
1229
1238
  }
1230
1239
  function $n(e) {
1231
1240
  if (e === "#")
@@ -1238,11 +1247,11 @@ function $n(e) {
1238
1247
  }
1239
1248
  function An(e) {
1240
1249
  let t = !1;
1241
- const n = (o) => typeof o == "string" ? { value: o } : o, r = Sn(x(n(e.get()), {
1242
- equals: (o, i) => o.value === i.value && o.state === i.state
1243
- }), void 0, (o) => (!t && e.set(o), o));
1244
- return e.init && qe(e.init((o = e.get()) => {
1245
- t = !0, r[1](n(o)), t = !1;
1250
+ const n = (s) => typeof s == "string" ? { value: s } : s, r = Sn(P(n(e.get()), {
1251
+ equals: (s, i) => s.value === i.value && s.state === i.state
1252
+ }), void 0, (s) => (!t && e.set(s), s));
1253
+ return e.init && De(e.init((s = e.get()) => {
1254
+ t = !0, r[1](n(s)), t = !1;
1246
1255
  })), wn({
1247
1256
  signal: r,
1248
1257
  create: e.create,
@@ -1256,11 +1265,11 @@ function Rn(e, t) {
1256
1265
  const n = $n(`#${e}`);
1257
1266
  n ? n.scrollIntoView() : t && window.scrollTo(0, 0);
1258
1267
  }
1259
- const Cn = /* @__PURE__ */ new Map();
1260
- function Ln(e = !0, t = !1, n = "/_server", r) {
1261
- return (o) => {
1262
- const i = o.base.path(), a = o.navigatorFactory(o.base);
1263
- let s = {};
1268
+ const xn = /* @__PURE__ */ new Map();
1269
+ function Cn(e = !0, t = !1, n = "/_server", r) {
1270
+ return (s) => {
1271
+ const i = s.base.path(), a = s.navigatorFactory(s.base);
1272
+ let o = {};
1264
1273
  function c(f) {
1265
1274
  return f.namespaceURI === "http://www.w3.org/2000/svg";
1266
1275
  }
@@ -1273,8 +1282,8 @@ function Ln(e = !0, t = !1, n = "/_server", r) {
1273
1282
  const S = c(d), g = S ? d.href.baseVal : d.href;
1274
1283
  if ((S ? d.target.baseVal : d.target) || !g && !d.hasAttribute("state"))
1275
1284
  return;
1276
- const L = (d.getAttribute("rel") || "").split(/\s+/);
1277
- if (d.hasAttribute("download") || L && L.includes("external"))
1285
+ const C = (d.getAttribute("rel") || "").split(/\s+/);
1286
+ if (d.hasAttribute("download") || C && C.includes("external"))
1278
1287
  return;
1279
1288
  const F = S ? new URL(g, document.baseURI) : new URL(g);
1280
1289
  if (!(F.origin !== window.location.origin || i && F.pathname && !F.pathname.toLowerCase().startsWith(i.toLowerCase())))
@@ -1284,12 +1293,12 @@ function Ln(e = !0, t = !1, n = "/_server", r) {
1284
1293
  const d = l(f);
1285
1294
  if (!d)
1286
1295
  return;
1287
- const [S, g] = d, U = o.parsePath(g.pathname + g.search + g.hash), L = S.getAttribute("state");
1296
+ const [S, g] = d, U = s.parsePath(g.pathname + g.search + g.hash), C = S.getAttribute("state");
1288
1297
  f.preventDefault(), a(U, {
1289
1298
  resolve: !1,
1290
1299
  replace: S.hasAttribute("replace"),
1291
1300
  scroll: !S.hasAttribute("noscroll"),
1292
- state: L && JSON.parse(L)
1301
+ state: C && JSON.parse(C)
1293
1302
  });
1294
1303
  }
1295
1304
  function h(f) {
@@ -1297,15 +1306,15 @@ function Ln(e = !0, t = !1, n = "/_server", r) {
1297
1306
  if (!d)
1298
1307
  return;
1299
1308
  const [S, g] = d;
1300
- s[g.pathname] || o.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" });
1309
+ o[g.pathname] || s.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" });
1301
1310
  }
1302
1311
  function p(f) {
1303
1312
  const d = l(f);
1304
1313
  if (!d)
1305
1314
  return;
1306
1315
  const [S, g] = d;
1307
- s[g.pathname] || (s[g.pathname] = setTimeout(() => {
1308
- o.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" }), delete s[g.pathname];
1316
+ o[g.pathname] || (o[g.pathname] = setTimeout(() => {
1317
+ s.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" }), delete o[g.pathname];
1309
1318
  }, 200));
1310
1319
  }
1311
1320
  function m(f) {
@@ -1313,7 +1322,7 @@ function Ln(e = !0, t = !1, n = "/_server", r) {
1313
1322
  if (!d)
1314
1323
  return;
1315
1324
  const [, S] = d;
1316
- s[S.pathname] && (clearTimeout(s[S.pathname]), delete s[S.pathname]);
1325
+ o[S.pathname] && (clearTimeout(o[S.pathname]), delete o[S.pathname]);
1317
1326
  }
1318
1327
  function y(f) {
1319
1328
  if (f.defaultPrevented)
@@ -1322,25 +1331,25 @@ function Ln(e = !0, t = !1, n = "/_server", r) {
1322
1331
  if (!d)
1323
1332
  return;
1324
1333
  if (!d.startsWith("https://action/")) {
1325
- const g = new URL(d, rt);
1326
- if (d = o.parsePath(g.pathname + g.search), !d.startsWith(n))
1334
+ const g = new URL(d, nt);
1335
+ if (d = s.parsePath(g.pathname + g.search), !d.startsWith(n))
1327
1336
  return;
1328
1337
  }
1329
1338
  if (f.target.method.toUpperCase() !== "POST")
1330
1339
  throw new Error("Only POST forms are supported for Actions");
1331
- const S = Cn.get(d);
1340
+ const S = xn.get(d);
1332
1341
  if (S) {
1333
1342
  f.preventDefault();
1334
1343
  const g = new FormData(f.target, f.submitter);
1335
- S.call({ r: o, f: f.target }, f.target.enctype === "multipart/form-data" ? g : new URLSearchParams(g));
1344
+ S.call({ r: s, f: f.target }, f.target.enctype === "multipart/form-data" ? g : new URLSearchParams(g));
1336
1345
  }
1337
1346
  }
1338
- ie(["click", "submit"]), document.addEventListener("click", u), e && (document.addEventListener("mouseover", p), document.addEventListener("mouseout", m), document.addEventListener("focusin", h), document.addEventListener("touchstart", h)), document.addEventListener("submit", y), qe(() => {
1347
+ ie(["click", "submit"]), document.addEventListener("click", u), e && (document.addEventListener("mouseover", p), document.addEventListener("mouseout", m), document.addEventListener("focusin", h), document.addEventListener("touchstart", h)), document.addEventListener("submit", y), De(() => {
1339
1348
  document.removeEventListener("click", u), e && (document.removeEventListener("mouseover", p), document.removeEventListener("mouseout", m), document.removeEventListener("focusin", h), document.removeEventListener("touchstart", h)), document.removeEventListener("submit", y);
1340
1349
  });
1341
1350
  };
1342
1351
  }
1343
- function Pn(e) {
1352
+ function Ln(e) {
1344
1353
  const t = e.replace(/^.*?#/, "");
1345
1354
  if (!t.startsWith("/")) {
1346
1355
  const [, n = "/"] = window.location.hash.split("#", 2);
@@ -1348,51 +1357,51 @@ function Pn(e) {
1348
1357
  }
1349
1358
  return t;
1350
1359
  }
1351
- function xn(e) {
1352
- const t = () => window.location.hash.slice(1), n = nt();
1360
+ function Pn(e) {
1361
+ const t = () => window.location.hash.slice(1), n = tt();
1353
1362
  return An({
1354
1363
  get: t,
1355
- set({ value: r, replace: o, scroll: i, state: a }) {
1356
- o ? window.history.replaceState(en(a), "", "#" + r) : window.history.pushState(a, "", "#" + r);
1357
- const s = r.indexOf("#"), c = s >= 0 ? r.slice(s + 1) : "";
1358
- Rn(c, i), Ce();
1364
+ set({ value: r, replace: s, scroll: i, state: a }) {
1365
+ s ? window.history.replaceState(en(a), "", "#" + r) : window.history.pushState(a, "", "#" + r);
1366
+ const o = r.indexOf("#"), c = o >= 0 ? r.slice(o + 1) : "";
1367
+ Rn(c, i), xe();
1359
1368
  },
1360
- init: (r) => En(window, "hashchange", tn(r, (o) => !n.confirm(o && o < 0 ? o : t()))),
1361
- create: Ln(e.preload, e.explicitLinks, e.actionBase),
1369
+ init: (r) => En(window, "hashchange", tn(r, (s) => !n.confirm(s && s < 0 ? s : t()))),
1370
+ create: Cn(e.preload, e.explicitLinks, e.actionBase),
1362
1371
  utils: {
1363
1372
  go: (r) => window.history.go(r),
1364
1373
  renderPath: (r) => `#${r}`,
1365
- parsePath: Pn,
1374
+ parsePath: Ln,
1366
1375
  beforeLeave: n
1367
1376
  }
1368
1377
  })(e);
1369
1378
  }
1370
1379
  function On(e) {
1371
- const t = ct(), n = un(), {
1380
+ const t = lt(), n = un(), {
1372
1381
  href: r,
1373
- state: o
1382
+ state: s
1374
1383
  } = e, i = typeof r == "function" ? r({
1375
1384
  navigate: t,
1376
1385
  location: n
1377
1386
  }) : r;
1378
1387
  return t(i, {
1379
1388
  replace: !0,
1380
- state: o
1389
+ state: s
1381
1390
  }), null;
1382
1391
  }
1383
1392
  const _n = {};
1384
- async function Ne({
1393
+ async function Te({
1385
1394
  language: e,
1386
1395
  text: t,
1387
1396
  limit: n,
1388
1397
  start: r,
1389
- templateName: o
1398
+ templateName: s
1390
1399
  }) {
1391
- const i = `${Ze}/search?language=${encodeURIComponent(
1400
+ const i = `${Ye}/search?language=${encodeURIComponent(
1392
1401
  e
1393
1402
  )}&q=${encodeURIComponent(t)}&limit=${encodeURIComponent(
1394
1403
  n
1395
- )}&start=${encodeURIComponent(r)}&tpl=${encodeURIComponent(o)}`, a = await fetch(i, {
1404
+ )}&start=${encodeURIComponent(r)}&tpl=${encodeURIComponent(s)}`, a = await fetch(i, {
1396
1405
  method: "GET"
1397
1406
  });
1398
1407
  if (a.status !== 200) {
@@ -1404,44 +1413,44 @@ async function Ne({
1404
1413
  const In = "_SearchForm_1a5n6_1", Un = {
1405
1414
  SearchForm: In
1406
1415
  };
1407
- var kn = /* @__PURE__ */ C("<form><input type=search><button type=submit>");
1416
+ var kn = /* @__PURE__ */ x("<form><input type=search><button type=submit>");
1408
1417
  const Tn = (e) => {
1409
- const t = ct(), [n, r] = x(e.value ?? ""), {
1410
- t: o
1418
+ const t = lt(), [n, r] = P(e.value ?? ""), {
1419
+ t: s
1411
1420
  } = le(e.language);
1412
- Se(K(() => e.value, () => r(e.value ?? "")));
1421
+ Se(G(() => e.value, () => r(e.value ?? "")));
1413
1422
  const i = async (a) => {
1414
1423
  a.preventDefault(), t(`/q/${encodeURIComponent(n())}`);
1415
1424
  };
1416
1425
  return (() => {
1417
- var a = kn(), s = a.firstChild, c = s.nextSibling;
1418
- return a.addEventListener("submit", i), s.addEventListener("change", (l) => r(l.currentTarget.value)), P(c, () => o("searchApp.search")), _((l) => {
1419
- var u = Un.SearchForm, h = o("searchApp.search");
1420
- return u !== l.e && Ye(a, l.e = u), h !== l.t && ae(s, "placeholder", l.t = h), l;
1426
+ var a = kn(), o = a.firstChild, c = o.nextSibling;
1427
+ return a.addEventListener("submit", i), o.addEventListener("change", (l) => r(l.currentTarget.value)), L(c, () => s("searchApp.search")), _((l) => {
1428
+ var u = Un.SearchForm, h = s("searchApp.search");
1429
+ return u !== l.e && Je(a, l.e = u), h !== l.t && ae(o, "placeholder", l.t = h), l;
1421
1430
  }, {
1422
1431
  e: void 0,
1423
1432
  t: void 0
1424
- }), _(() => s.value = n()), a;
1433
+ }), _(() => o.value = n()), a;
1425
1434
  })();
1426
1435
  };
1427
- var Nn = /* @__PURE__ */ C("<div class=SearchPageResponse>"), Fe = /* @__PURE__ */ C("<div>"), Fn = /* @__PURE__ */ C("<img class=SearchPageResponse-spinner width=80 height=80 alt=…>"), jn = /* @__PURE__ */ C("<button type=button>"), Bn = /* @__PURE__ */ C("<div class=SearchPageResponse-noResultMessage> <span>");
1428
- function je({
1436
+ var Nn = /* @__PURE__ */ x("<div class=SearchPageResponse>"), Ne = /* @__PURE__ */ x("<div>"), Fn = /* @__PURE__ */ x("<img class=SearchPageResponse-spinner width=80 height=80 alt=…>"), jn = /* @__PURE__ */ x("<button type=button>"), Bn = /* @__PURE__ */ x("<div class=SearchPageResponse-noResultMessage> <span>");
1437
+ function Fe({
1429
1438
  language: e,
1430
1439
  limit: t,
1431
1440
  templateName: n
1432
1441
  }) {
1433
1442
  const {
1434
1443
  t: r
1435
- } = le(e), o = fn(), [i, a] = x(""), [s, c] = x(0), [l, u] = x(0), [h, p] = x(!1);
1436
- Se(K(() => o.searchString, m));
1444
+ } = le(e), s = fn(), [i, a] = P(""), [o, c] = P(0), [l, u] = P(0), [h, p] = P(!1);
1445
+ Se(G(() => s.searchString, m));
1437
1446
  async function m() {
1438
- if (o.searchString) {
1447
+ if (s.searchString) {
1439
1448
  p(!0);
1440
1449
  try {
1441
1450
  a(""), u(0);
1442
- const f = await Ne({
1451
+ const f = await Te({
1443
1452
  language: e,
1444
- text: decodeURIComponent(o.searchString),
1453
+ text: decodeURIComponent(s.searchString),
1445
1454
  limit: t,
1446
1455
  start: l(),
1447
1456
  templateName: n
@@ -1454,12 +1463,12 @@ function je({
1454
1463
  }
1455
1464
  }
1456
1465
  async function y() {
1457
- if (!o.searchString) return;
1458
- const f = s();
1466
+ if (!s.searchString) return;
1467
+ const f = o();
1459
1468
  if (f === void 0 || l() >= f) return;
1460
- const d = await Ne({
1469
+ const d = await Te({
1461
1470
  language: e,
1462
- text: decodeURIComponent(o.searchString),
1471
+ text: decodeURIComponent(s.searchString),
1463
1472
  limit: t,
1464
1473
  start: l(),
1465
1474
  templateName: n
@@ -1467,51 +1476,51 @@ function je({
1467
1476
  d.html && (a(`${i()}${d.html}`), u(l() + t));
1468
1477
  }
1469
1478
  return (() => {
1470
- var f = Fe();
1471
- return P(f, A(Tn, {
1479
+ var f = Ne();
1480
+ return L(f, A(Tn, {
1472
1481
  language: e,
1473
1482
  get value() {
1474
- return E(() => !!o.searchString)() ? decodeURIComponent(o.searchString) : void 0;
1483
+ return E(() => !!s.searchString)() ? decodeURIComponent(s.searchString) : void 0;
1475
1484
  }
1476
- }), null), P(f, A(D, {
1485
+ }), null), L(f, A(D, {
1477
1486
  get when() {
1478
- return o.searchString;
1487
+ return s.searchString;
1479
1488
  },
1480
1489
  get children() {
1481
1490
  var d = Nn();
1482
- return P(d, (() => {
1491
+ return L(d, (() => {
1483
1492
  var S = E(() => !!h());
1484
1493
  return () => S() ? (() => {
1485
1494
  var g = Fn();
1486
- return ae(g, "src", `${ze}/spinner.svg`), g;
1495
+ return ae(g, "src", `${Ze}/spinner.svg`), g;
1487
1496
  })() : A(D, {
1488
1497
  get when() {
1489
1498
  return i();
1490
1499
  },
1491
1500
  get fallback() {
1492
1501
  return (() => {
1493
- var g = Bn(), U = g.firstChild, L = U.nextSibling;
1494
- return P(g, () => r("searchApp.nothingGet"), U), P(L, () => o.searchString), g;
1502
+ var g = Bn(), U = g.firstChild, C = U.nextSibling;
1503
+ return L(g, () => r("searchApp.nothingGet"), U), L(C, () => s.searchString), g;
1495
1504
  })();
1496
1505
  },
1497
1506
  get children() {
1498
1507
  return [(() => {
1499
- var g = Fe();
1508
+ var g = Ne();
1500
1509
  return _(() => g.innerHTML = i()), g;
1501
1510
  })(), A(D, {
1502
1511
  get when() {
1503
- return l() < s();
1512
+ return l() < o();
1504
1513
  },
1505
1514
  get children() {
1506
1515
  var g = jn();
1507
- return g.$$click = y, P(g, () => r("infiniteLoading.loadMore")), g;
1516
+ return g.$$click = y, L(g, () => r("infiniteLoading.loadMore")), g;
1508
1517
  }
1509
1518
  })];
1510
1519
  }
1511
1520
  });
1512
1521
  })()), d;
1513
1522
  }
1514
- }), null), _(() => Ye(f, _n.SiteApp)), f;
1523
+ }), null), _(() => Je(f, _n.SiteApp)), f;
1515
1524
  })();
1516
1525
  }
1517
1526
  ie(["click"]);
@@ -1519,8 +1528,8 @@ function Mn(e, {
1519
1528
  language: t
1520
1529
  }) {
1521
1530
  if (!t) throw new Error("Missing language");
1522
- const n = Y(e.dataset.limit), r = W(e.dataset.template);
1523
- n === void 0 || r === void 0 || Re(() => A(xn, {
1531
+ const n = Y(e.dataset.limit), r = J(e.dataset.template);
1532
+ n === void 0 || r === void 0 || Re(() => A(Pn, {
1524
1533
  explicitLinks: !0,
1525
1534
  get children() {
1526
1535
  return [A(ge, {
@@ -1530,14 +1539,14 @@ function Mn(e, {
1530
1539
  })
1531
1540
  }), A(ge, {
1532
1541
  path: "/q",
1533
- component: () => A(je, {
1542
+ component: () => A(Fe, {
1534
1543
  language: t,
1535
1544
  templateName: r,
1536
1545
  limit: n
1537
1546
  })
1538
1547
  }), A(ge, {
1539
1548
  path: "/q/:searchString",
1540
- component: () => A(je, {
1549
+ component: () => A(Fe, {
1541
1550
  language: t,
1542
1551
  templateName: r,
1543
1552
  limit: n
@@ -1546,44 +1555,44 @@ function Mn(e, {
1546
1555
  }
1547
1556
  }), e);
1548
1557
  }
1549
- var Dn = /* @__PURE__ */ C("<input class=SearchOpenerOverlay-input type=search required>"), qn = /* @__PURE__ */ C("<div class=SearchOpenerOverlay><form class=SearchOpenerOverlay-form><button class=SearchOpenerOverlay-btn type=submit>");
1558
+ var Dn = /* @__PURE__ */ x("<input class=SearchOpenerOverlay-input type=search required>"), qn = /* @__PURE__ */ x("<div class=SearchOpenerOverlay><form class=SearchOpenerOverlay-form><button class=SearchOpenerOverlay-btn type=submit>");
1550
1559
  function Vn({
1551
1560
  searchURL: e,
1552
1561
  language: t,
1553
1562
  setSearchFormOverlayIsOpen: n
1554
1563
  }) {
1555
1564
  let r;
1556
- const [o, i] = x(""), {
1565
+ const [s, i] = P(""), {
1557
1566
  t: a
1558
- } = le(t), s = (() => {
1567
+ } = le(t), o = (() => {
1559
1568
  var l = Dn();
1560
- return l.addEventListener("change", (u) => i(u.currentTarget.value)), _(() => ae(l, "placeholder", a("searchApp.search"))), _(() => l.value = o()), l;
1569
+ return l.addEventListener("change", (u) => i(u.currentTarget.value)), _(() => ae(l, "placeholder", a("searchApp.search"))), _(() => l.value = s()), l;
1561
1570
  })(), c = (l) => {
1562
- l.preventDefault(), window.location.href = `${e}#/q/${encodeURIComponent(o())}`, n(!1);
1571
+ l.preventDefault(), window.location.href = `${e}#/q/${encodeURIComponent(s())}`, n(!1);
1563
1572
  };
1564
1573
  return Se(() => {
1565
- s.focus();
1574
+ o.focus();
1566
1575
  }), (() => {
1567
1576
  var l = qn(), u = l.firstChild, h = u.firstChild;
1568
1577
  l.$$click = (m) => {
1569
1578
  m.target === r && n(!1);
1570
1579
  };
1571
1580
  var p = r;
1572
- return typeof p == "function" ? _t(p, l) : r = l, u.addEventListener("submit", c), P(u, s, h), P(h, () => a("searchApp.search")), l;
1581
+ return typeof p == "function" ? Ot(p, l) : r = l, u.addEventListener("submit", c), L(u, o, h), L(h, () => a("searchApp.search")), l;
1573
1582
  })();
1574
1583
  }
1575
1584
  ie(["click"]);
1576
- var Wn = /* @__PURE__ */ C('<button type=button class=SearchOpenerBtn><svg class=SearchOpenerBtn-svg width=20 height=20 version=1.1 id=Capa_1 xmlns=http://www.w3.org/2000/svg viewBox="0 0 490.4 490.4"><title>Search Icon</title><g id=SVGRepo_bgCarrier stroke-width=0></g><g id=SVGRepo_tracerCarrier stroke-linecap=round stroke-linejoin=round></g><g id=SVGRepo_iconCarrier><g><path d="M484.1,454.796l-110.5-110.6c29.8-36.3,47.6-82.8,47.6-133.4c0-116.3-94.3-210.6-210.6-210.6S0,94.496,0,210.796 s94.3,210.6,210.6,210.6c50.8,0,97.4-18,133.8-48l110.5,110.5c12.9,11.8,25,4.2,29.2,0C492.5,475.596,492.5,463.096,484.1,454.796z M41.1,210.796c0-93.6,75.9-169.5,169.5-169.5s169.6,75.9,169.6,169.5s-75.9,169.5-169.5,169.5S41.1,304.396,41.1,210.796z"></path> '), Gn = /* @__PURE__ */ C("<div>");
1585
+ var Wn = /* @__PURE__ */ x('<button type=button class=SearchOpenerBtn><svg class=SearchOpenerBtn-svg width=20 height=20 version=1.1 id=Capa_1 xmlns=http://www.w3.org/2000/svg viewBox="0 0 490.4 490.4"><title>Search Icon</title><g id=SVGRepo_bgCarrier stroke-width=0></g><g id=SVGRepo_tracerCarrier stroke-linecap=round stroke-linejoin=round></g><g id=SVGRepo_iconCarrier><g><path d="M484.1,454.796l-110.5-110.6c29.8-36.3,47.6-82.8,47.6-133.4c0-116.3-94.3-210.6-210.6-210.6S0,94.496,0,210.796 s94.3,210.6,210.6,210.6c50.8,0,97.4-18,133.8-48l110.5,110.5c12.9,11.8,25,4.2,29.2,0C492.5,475.596,492.5,463.096,484.1,454.796z M41.1,210.796c0-93.6,75.9-169.5,169.5-169.5s169.6,75.9,169.6,169.5s-75.9,169.5-169.5,169.5S41.1,304.396,41.1,210.796z"></path> '), Gn = /* @__PURE__ */ x("<div>");
1577
1586
  function Kn({
1578
1587
  searchIconColor: e,
1579
1588
  language: t,
1580
1589
  searchURL: n
1581
1590
  }) {
1582
- const [r, o] = x(!1), i = (() => {
1583
- var s = Wn(), c = s.firstChild;
1584
- return e != null ? c.style.setProperty("fill", e) : c.style.removeProperty("fill"), s;
1591
+ const [r, s] = P(!1), i = (() => {
1592
+ var o = Wn(), c = o.firstChild;
1593
+ return e != null ? c.style.setProperty("fill", e) : c.style.removeProperty("fill"), o;
1585
1594
  })(), a = Gn();
1586
- return document.body.appendChild(a), i.addEventListener("click", () => o(!0)), Re(() => A(D, {
1595
+ return document.body.appendChild(a), i.addEventListener("click", () => s(!0)), Re(() => A(D, {
1587
1596
  get when() {
1588
1597
  return r();
1589
1598
  },
@@ -1591,7 +1600,7 @@ function Kn({
1591
1600
  return A(Vn, {
1592
1601
  searchURL: n,
1593
1602
  language: t,
1594
- setSearchFormOverlayIsOpen: o
1603
+ setSearchFormOverlayIsOpen: s
1595
1604
  });
1596
1605
  }
1597
1606
  }), a), i;
@@ -1615,9 +1624,9 @@ document.addEventListener("DOMContentLoaded", () => {
1615
1624
  infiniteLoading: Yt
1616
1625
  }, n = document.querySelectorAll("[data-effect]");
1617
1626
  for (const r of n) {
1618
- const o = r.dataset.effect;
1619
- if (!o) continue;
1620
- const i = t[o];
1627
+ const s = r.dataset.effect;
1628
+ if (!s) continue;
1629
+ const i = t[s];
1621
1630
  i && i(r, {
1622
1631
  language: e
1623
1632
  });