@attraccess/plugins-frontend-ui 1.8.1 → 1.10.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.
package/index.js CHANGED
@@ -1,19 +1,37 @@
1
1
  import * as e from "react";
2
- import t, { createContext as n, createElement as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
3
- import { Avatar as d, AvatarFallback as f, AvatarImage as p, Button as m, Checkbox as h, ComboBox as g, Input as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, Popover as S, Spinner as C, TableBody as w, TableCell as T, TableColumn as E, TableContent as ee, TableHeader as te, TableRoot as ne, TableRow as re, TableScrollContainer as ie, TextField as ae } from "@heroui/react";
4
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
5
- import { useResourcesServiceGetAllResources as oe, useUsersServiceFindMany as se, useUsersServiceGetOneUserById as ce } from "@attraccess/react-query-client";
2
+ import t, { createContext as n, createElement as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
3
+ import { Avatar as f, AvatarFallback as p, AvatarImage as m, Button as h, Checkbox as g, Header as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, ListBoxSection as S, Modal as C, ModalBackdrop as w, ModalBody as T, ModalContainer as E, ModalDialog as D, ModalHeader as O, ModalHeading as ee, Popover as k, Spinner as te, TableBody as ne, TableCell as A, TableColumn as j, TableContent as M, TableHeader as N, TableRoot as re, TableRow as P, TableScrollContainer as ie, TextField as ae, useOverlayState as F } from "@heroui/react";
4
+ import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
5
+ import { useResourcesServiceGetAllResources as oe, useUsersServiceFindManyInfinite as z } from "@attraccess/react-query-client";
6
6
  //#region \0rolldown/runtime.js
7
- var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.getPrototypeOf, me = Object.prototype.hasOwnProperty, k = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), he = (e, t, n, r) => {
8
- if (t && typeof t == "object" || typeof t == "function") for (var i = fe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !me.call(e, s) && s !== n && ue(e, s, {
7
+ var B = Object.create, V = Object.defineProperty, H = Object.getOwnPropertyDescriptor, U = Object.getOwnPropertyNames, W = Object.getPrototypeOf, se = Object.prototype.hasOwnProperty, G = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ce = (e, t, n, r) => {
8
+ if (t && typeof t == "object" || typeof t == "function") for (var i = U(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !se.call(e, s) && s !== n && V(e, s, {
9
9
  get: ((e) => t[e]).bind(null, s),
10
- enumerable: !(r = de(t, s)) || r.enumerable
10
+ enumerable: !(r = H(t, s)) || r.enumerable
11
11
  });
12
12
  return e;
13
- }, ge = (e, t, n) => (n = e == null ? {} : le(pe(e)), he(t || !e || !e.__esModule ? ue(n, "default", {
13
+ }, le = (e, t, n) => (n = e == null ? {} : B(W(e)), ce(t || !e || !e.__esModule || !se.call(e, "default") ? V(n, "default", {
14
14
  value: e,
15
15
  enumerable: !0
16
- }) : n, e)), _e = (e) => {
16
+ }) : n, e)), K = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
17
+ if (typeof require < "u") return require.apply(this, arguments);
18
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
19
+ }), ue = /* @__PURE__ */ G(((e) => {
20
+ var t = K("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
21
+ e.c = function(e) {
22
+ return t.H.useMemoCache(e);
23
+ };
24
+ })), de = /* @__PURE__ */ G(((e) => {
25
+ process.env.NODE_ENV !== "production" && (function() {
26
+ var t = K("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
27
+ e.c = function(e) {
28
+ var n = t.H;
29
+ return n === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), n.useMemoCache(e);
30
+ };
31
+ })();
32
+ })), q = /* @__PURE__ */ G(((e, t) => {
33
+ t.exports = process.env.NODE_ENV === "production" ? ue() : de();
34
+ })), fe = (e) => {
17
35
  let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
18
36
  let i = typeof e == "function" ? e(t) : e;
19
37
  if (!Object.is(i, t)) {
@@ -27,93 +45,93 @@ var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDe
27
45
  subscribe: (e) => (n.add(e), () => n.delete(e))
28
46
  }, o = t = e(r, i, a);
29
47
  return a;
30
- }, ve = ((e) => e ? _e(e) : _e), ye = (e) => e;
31
- function be(e, n = ye) {
48
+ }, pe = ((e) => e ? fe(e) : fe), J = (e) => e;
49
+ function me(e, n = J) {
32
50
  let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
33
51
  return t.useDebugValue(r), r;
34
52
  }
35
- var xe = (e) => {
36
- let t = ve(e), n = (e) => be(t, e);
53
+ var he = (e) => {
54
+ let t = pe(e), n = (e) => me(t, e);
37
55
  return Object.assign(n, t), n;
38
- }, Se = ((e) => e ? xe(e) : xe), Ce = typeof global == "object" && global && global.Object === Object && global, we = typeof self == "object" && self && self.Object === Object && self, Te = Ce || we || Function("return this")(), A = Te.Symbol, Ee = Object.prototype, De = Ee.hasOwnProperty, Oe = Ee.toString, j = A ? A.toStringTag : void 0;
39
- function ke(e) {
40
- var t = De.call(e, j), n = e[j];
56
+ }, ge = ((e) => e ? he(e) : he), _e = typeof global == "object" && global && global.Object === Object && global, ve = typeof self == "object" && self && self.Object === Object && self, ye = _e || ve || Function("return this")(), be = ye.Symbol, xe = Object.prototype, Se = xe.hasOwnProperty, Ce = xe.toString, we = be ? be.toStringTag : void 0;
57
+ function Te(e) {
58
+ var t = Se.call(e, we), n = e[we];
41
59
  try {
42
- e[j] = void 0;
60
+ e[we] = void 0;
43
61
  var r = !0;
44
62
  } catch {}
45
- var i = Oe.call(e);
46
- return r && (t ? e[j] = n : delete e[j]), i;
63
+ var i = Ce.call(e);
64
+ return r && (t ? e[we] = n : delete e[we]), i;
47
65
  }
48
66
  //#endregion
49
67
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
50
- var Ae = Object.prototype.toString;
51
- function je(e) {
52
- return Ae.call(e);
68
+ var Ee = Object.prototype.toString;
69
+ function De(e) {
70
+ return Ee.call(e);
53
71
  }
54
72
  //#endregion
55
73
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
56
- var Me = "[object Null]", Ne = "[object Undefined]", Pe = A ? A.toStringTag : void 0;
57
- function Fe(e) {
58
- return e == null ? e === void 0 ? Ne : Me : Pe && Pe in Object(e) ? ke(e) : je(e);
74
+ var Oe = "[object Null]", ke = "[object Undefined]", Ae = be ? be.toStringTag : void 0;
75
+ function je(e) {
76
+ return e == null ? e === void 0 ? ke : Oe : Ae && Ae in Object(e) ? Te(e) : De(e);
59
77
  }
60
78
  //#endregion
61
79
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
62
- function Ie(e) {
80
+ function Me(e) {
63
81
  return typeof e == "object" && !!e;
64
82
  }
65
83
  //#endregion
66
84
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
67
- var Le = "[object Symbol]";
68
- function Re(e) {
69
- return typeof e == "symbol" || Ie(e) && Fe(e) == Le;
85
+ var Ne = "[object Symbol]";
86
+ function Pe(e) {
87
+ return typeof e == "symbol" || Me(e) && je(e) == Ne;
70
88
  }
71
89
  //#endregion
72
90
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
73
- function ze(e, t) {
91
+ function Fe(e, t) {
74
92
  for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
75
93
  return i;
76
94
  }
77
95
  //#endregion
78
96
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
79
- var Be = Array.isArray, Ve = Infinity, He = A ? A.prototype : void 0, Ue = He ? He.toString : void 0;
80
- function We(e) {
97
+ var Ie = Array.isArray, Le = 1 / 0, Re = be ? be.prototype : void 0, ze = Re ? Re.toString : void 0;
98
+ function Be(e) {
81
99
  if (typeof e == "string") return e;
82
- if (Be(e)) return ze(e, We) + "";
83
- if (Re(e)) return Ue ? Ue.call(e) : "";
100
+ if (Ie(e)) return Fe(e, Be) + "";
101
+ if (Pe(e)) return ze ? ze.call(e) : "";
84
102
  var t = e + "";
85
- return t == "0" && 1 / e == -Ve ? "-0" : t;
103
+ return t == "0" && 1 / e == -Le ? "-0" : t;
86
104
  }
87
105
  //#endregion
88
106
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
89
- function Ge(e) {
107
+ function Ve(e) {
90
108
  var t = typeof e;
91
109
  return e != null && (t == "object" || t == "function");
92
110
  }
93
111
  //#endregion
94
112
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
95
- var Ke = "[object AsyncFunction]", qe = "[object Function]", Je = "[object GeneratorFunction]", Ye = "[object Proxy]";
96
- function Xe(e) {
97
- if (!Ge(e)) return !1;
98
- var t = Fe(e);
99
- return t == qe || t == Je || t == Ke || t == Ye;
113
+ var He = "[object AsyncFunction]", Ue = "[object Function]", We = "[object GeneratorFunction]", Ge = "[object Proxy]";
114
+ function Ke(e) {
115
+ if (!Ve(e)) return !1;
116
+ var t = je(e);
117
+ return t == Ue || t == We || t == He || t == Ge;
100
118
  }
101
119
  //#endregion
102
120
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
103
- var Ze = Te["__core-js_shared__"], Qe = function() {
104
- var e = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
121
+ var qe = ye["__core-js_shared__"], Je = function() {
122
+ var e = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
105
123
  return e ? "Symbol(src)_1." + e : "";
106
124
  }();
107
- function $e(e) {
108
- return !!Qe && Qe in e;
125
+ function Ye(e) {
126
+ return !!Je && Je in e;
109
127
  }
110
128
  //#endregion
111
129
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
112
- var et = Function.prototype.toString;
113
- function tt(e) {
130
+ var Xe = Function.prototype.toString;
131
+ function Ze(e) {
114
132
  if (e != null) {
115
133
  try {
116
- return et.call(e);
134
+ return Xe.call(e);
117
135
  } catch {}
118
136
  try {
119
137
  return e + "";
@@ -123,184 +141,184 @@ function tt(e) {
123
141
  }
124
142
  //#endregion
125
143
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
126
- var nt = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, it = Function.prototype, at = Object.prototype, ot = it.toString, st = at.hasOwnProperty, ct = RegExp("^" + ot.call(st).replace(nt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
127
- function lt(e) {
128
- return !Ge(e) || $e(e) ? !1 : (Xe(e) ? ct : rt).test(tt(e));
144
+ var Qe = /[\\^$.*+?()[\]{}|]/g, $e = /^\[object .+?Constructor\]$/, et = Function.prototype, tt = Object.prototype, nt = et.toString, rt = tt.hasOwnProperty, it = RegExp("^" + nt.call(rt).replace(Qe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
145
+ function at(e) {
146
+ return !Ve(e) || Ye(e) ? !1 : (Ke(e) ? it : $e).test(Ze(e));
129
147
  }
130
148
  //#endregion
131
149
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
132
- function ut(e, t) {
150
+ function ot(e, t) {
133
151
  return e?.[t];
134
152
  }
135
153
  //#endregion
136
154
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
137
- function dt(e, t) {
138
- var n = ut(e, t);
139
- return lt(n) ? n : void 0;
155
+ function st(e, t) {
156
+ var n = ot(e, t);
157
+ return at(n) ? n : void 0;
140
158
  }
141
159
  //#endregion
142
160
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
143
- function ft(e, t) {
161
+ function ct(e, t) {
144
162
  return e === t || e !== e && t !== t;
145
163
  }
146
164
  //#endregion
147
165
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
148
- var pt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mt = /^\w*$/;
149
- function ht(e, t) {
150
- if (Be(e)) return !1;
166
+ var lt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ut = /^\w*$/;
167
+ function dt(e, t) {
168
+ if (Ie(e)) return !1;
151
169
  var n = typeof e;
152
- return n == "number" || n == "symbol" || n == "boolean" || e == null || Re(e) ? !0 : mt.test(e) || !pt.test(e) || t != null && e in Object(t);
170
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || Pe(e) ? !0 : ut.test(e) || !lt.test(e) || t != null && e in Object(t);
153
171
  }
154
172
  //#endregion
155
173
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
156
- var M = dt(Object, "create");
174
+ var ft = st(Object, "create");
157
175
  //#endregion
158
176
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
159
- function gt() {
160
- this.__data__ = M ? M(null) : {}, this.size = 0;
177
+ function pt() {
178
+ this.__data__ = ft ? ft(null) : {}, this.size = 0;
161
179
  }
162
180
  //#endregion
163
181
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
164
- function _t(e) {
182
+ function mt(e) {
165
183
  var t = this.has(e) && delete this.__data__[e];
166
184
  return this.size -= +!!t, t;
167
185
  }
168
186
  //#endregion
169
187
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
170
- var vt = "__lodash_hash_undefined__", yt = Object.prototype.hasOwnProperty;
171
- function bt(e) {
188
+ var ht = "__lodash_hash_undefined__", gt = Object.prototype.hasOwnProperty;
189
+ function _t(e) {
172
190
  var t = this.__data__;
173
- if (M) {
191
+ if (ft) {
174
192
  var n = t[e];
175
- return n === vt ? void 0 : n;
193
+ return n === ht ? void 0 : n;
176
194
  }
177
- return yt.call(t, e) ? t[e] : void 0;
195
+ return gt.call(t, e) ? t[e] : void 0;
178
196
  }
179
197
  //#endregion
180
198
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
181
- var xt = Object.prototype.hasOwnProperty;
182
- function St(e) {
199
+ var vt = Object.prototype.hasOwnProperty;
200
+ function yt(e) {
183
201
  var t = this.__data__;
184
- return M ? t[e] !== void 0 : xt.call(t, e);
202
+ return ft ? t[e] !== void 0 : vt.call(t, e);
185
203
  }
186
204
  //#endregion
187
205
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
188
- var Ct = "__lodash_hash_undefined__";
189
- function wt(e, t) {
206
+ var bt = "__lodash_hash_undefined__";
207
+ function xt(e, t) {
190
208
  var n = this.__data__;
191
- return this.size += +!this.has(e), n[e] = M && t === void 0 ? Ct : t, this;
209
+ return this.size += +!this.has(e), n[e] = ft && t === void 0 ? bt : t, this;
192
210
  }
193
211
  //#endregion
194
212
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
195
- function N(e) {
213
+ function St(e) {
196
214
  var t = -1, n = e == null ? 0 : e.length;
197
215
  for (this.clear(); ++t < n;) {
198
216
  var r = e[t];
199
217
  this.set(r[0], r[1]);
200
218
  }
201
219
  }
202
- N.prototype.clear = gt, N.prototype.delete = _t, N.prototype.get = bt, N.prototype.has = St, N.prototype.set = wt;
220
+ St.prototype.clear = pt, St.prototype.delete = mt, St.prototype.get = _t, St.prototype.has = yt, St.prototype.set = xt;
203
221
  //#endregion
204
222
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
205
- function Tt() {
223
+ function Ct() {
206
224
  this.__data__ = [], this.size = 0;
207
225
  }
208
226
  //#endregion
209
227
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
210
- function Et(e, t) {
211
- for (var n = e.length; n--;) if (ft(e[n][0], t)) return n;
228
+ function wt(e, t) {
229
+ for (var n = e.length; n--;) if (ct(e[n][0], t)) return n;
212
230
  return -1;
213
231
  }
214
232
  //#endregion
215
233
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
216
- var Dt = Array.prototype.splice;
217
- function Ot(e) {
218
- var t = this.__data__, n = Et(t, e);
219
- return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Dt.call(t, n, 1), --this.size, !0);
234
+ var Tt = Array.prototype.splice;
235
+ function Et(e) {
236
+ var t = this.__data__, n = wt(t, e);
237
+ return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Tt.call(t, n, 1), --this.size, !0);
220
238
  }
221
239
  //#endregion
222
240
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
223
- function kt(e) {
224
- var t = this.__data__, n = Et(t, e);
241
+ function Dt(e) {
242
+ var t = this.__data__, n = wt(t, e);
225
243
  return n < 0 ? void 0 : t[n][1];
226
244
  }
227
245
  //#endregion
228
246
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
229
- function At(e) {
230
- return Et(this.__data__, e) > -1;
247
+ function Ot(e) {
248
+ return wt(this.__data__, e) > -1;
231
249
  }
232
250
  //#endregion
233
251
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
234
- function jt(e, t) {
235
- var n = this.__data__, r = Et(n, e);
252
+ function kt(e, t) {
253
+ var n = this.__data__, r = wt(n, e);
236
254
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
237
255
  }
238
256
  //#endregion
239
257
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
240
- function P(e) {
258
+ function At(e) {
241
259
  var t = -1, n = e == null ? 0 : e.length;
242
260
  for (this.clear(); ++t < n;) {
243
261
  var r = e[t];
244
262
  this.set(r[0], r[1]);
245
263
  }
246
264
  }
247
- P.prototype.clear = Tt, P.prototype.delete = Ot, P.prototype.get = kt, P.prototype.has = At, P.prototype.set = jt;
265
+ At.prototype.clear = Ct, At.prototype.delete = Et, At.prototype.get = Dt, At.prototype.has = Ot, At.prototype.set = kt;
248
266
  //#endregion
249
267
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
250
- var Mt = dt(Te, "Map");
268
+ var jt = st(ye, "Map");
251
269
  //#endregion
252
270
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
253
- function Nt() {
271
+ function Mt() {
254
272
  this.size = 0, this.__data__ = {
255
- hash: new N(),
256
- map: new (Mt || P)(),
257
- string: new N()
273
+ hash: new St(),
274
+ map: new (jt || At)(),
275
+ string: new St()
258
276
  };
259
277
  }
260
278
  //#endregion
261
279
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
262
- function Pt(e) {
280
+ function Nt(e) {
263
281
  var t = typeof e;
264
282
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
265
283
  }
266
284
  //#endregion
267
285
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
268
- function Ft(e, t) {
286
+ function Pt(e, t) {
269
287
  var n = e.__data__;
270
- return Pt(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
288
+ return Nt(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
271
289
  }
272
290
  //#endregion
273
291
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
274
- function It(e) {
275
- var t = Ft(this, e).delete(e);
292
+ function Ft(e) {
293
+ var t = Pt(this, e).delete(e);
276
294
  return this.size -= +!!t, t;
277
295
  }
278
296
  //#endregion
279
297
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
280
- function Lt(e) {
281
- return Ft(this, e).get(e);
298
+ function It(e) {
299
+ return Pt(this, e).get(e);
282
300
  }
283
301
  //#endregion
284
302
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
285
- function Rt(e) {
286
- return Ft(this, e).has(e);
303
+ function Lt(e) {
304
+ return Pt(this, e).has(e);
287
305
  }
288
306
  //#endregion
289
307
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
290
- function zt(e, t) {
291
- var n = Ft(this, e), r = n.size;
308
+ function Rt(e, t) {
309
+ var n = Pt(this, e), r = n.size;
292
310
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
293
311
  }
294
312
  //#endregion
295
313
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
296
- function F(e) {
314
+ function zt(e) {
297
315
  var t = -1, n = e == null ? 0 : e.length;
298
316
  for (this.clear(); ++t < n;) {
299
317
  var r = e[t];
300
318
  this.set(r[0], r[1]);
301
319
  }
302
320
  }
303
- F.prototype.clear = Nt, F.prototype.delete = It, F.prototype.get = Lt, F.prototype.has = Rt, F.prototype.set = zt;
321
+ zt.prototype.clear = Mt, zt.prototype.delete = Ft, zt.prototype.get = It, zt.prototype.has = Lt, zt.prototype.set = Rt;
304
322
  //#endregion
305
323
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
306
324
  var Bt = "Expected a function";
@@ -312,9 +330,9 @@ function Vt(e, t) {
312
330
  var o = e.apply(this, r);
313
331
  return n.cache = a.set(i, o) || a, o;
314
332
  };
315
- return n.cache = new (Vt.Cache || F)(), n;
333
+ return n.cache = new (Vt.Cache || zt)(), n;
316
334
  }
317
- Vt.Cache = F;
335
+ Vt.Cache = zt;
318
336
  //#endregion
319
337
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
320
338
  var Ht = 500;
@@ -335,18 +353,18 @@ var Wt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
335
353
  //#endregion
336
354
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
337
355
  function qt(e) {
338
- return e == null ? "" : We(e);
356
+ return e == null ? "" : Be(e);
339
357
  }
340
358
  //#endregion
341
359
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
342
360
  function Jt(e, t) {
343
- return Be(e) ? e : ht(e, t) ? [e] : Kt(qt(e));
361
+ return Ie(e) ? e : dt(e, t) ? [e] : Kt(qt(e));
344
362
  }
345
363
  //#endregion
346
364
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
347
- var Yt = Infinity;
365
+ var Yt = 1 / 0;
348
366
  function Xt(e) {
349
- if (typeof e == "string" || Re(e)) return e;
367
+ if (typeof e == "string" || Pe(e)) return e;
350
368
  var t = e + "";
351
369
  return t == "0" && 1 / e == -Yt ? "-0" : t;
352
370
  }
@@ -365,7 +383,7 @@ function Qt(e, t, n) {
365
383
  }
366
384
  //#endregion
367
385
  //#region ../../node_modules/.pnpm/handlebars@4.7.9/node_modules/handlebars/dist/cjs/handlebars/utils.js
368
- var I = /* @__PURE__ */ k(((e) => {
386
+ var Y = /* @__PURE__ */ G(((e) => {
369
387
  e.__esModule = !0, e.extend = a, e.indexOf = l, e.escapeExpression = u, e.isEmpty = d, e.createFrame = f, e.blockParams = p, e.appendContextPath = m;
370
388
  var t = {
371
389
  "&": "&amp;",
@@ -410,7 +428,7 @@ var I = /* @__PURE__ */ k(((e) => {
410
428
  return r.test(e) ? e.replace(n, i) : e;
411
429
  }
412
430
  function d(e) {
413
- return !e && e !== 0 ? !0 : !!(c(e) && e.length === 0);
431
+ return !e && e !== 0 || !!(c(e) && e.length === 0);
414
432
  }
415
433
  function f(e) {
416
434
  var t = a({}, e);
@@ -422,7 +440,7 @@ var I = /* @__PURE__ */ k(((e) => {
422
440
  function m(e, t) {
423
441
  return (e ? e + "." : "") + t;
424
442
  }
425
- })), L = /* @__PURE__ */ k(((e, t) => {
443
+ })), X = /* @__PURE__ */ G(((e, t) => {
426
444
  e.__esModule = !0;
427
445
  var n = [
428
446
  "description",
@@ -451,15 +469,15 @@ var I = /* @__PURE__ */ k(((e) => {
451
469
  } catch {}
452
470
  }
453
471
  r.prototype = /* @__PURE__ */ Error(), e.default = r, t.exports = e.default;
454
- })), $t = /* @__PURE__ */ k(((e, t) => {
472
+ })), $t = /* @__PURE__ */ G(((e, t) => {
455
473
  e.__esModule = !0;
456
- var n = I();
474
+ var n = Y();
457
475
  e.default = function(e) {
458
476
  e.registerHelper("blockHelperMissing", function(t, r) {
459
477
  var i = r.inverse, a = r.fn;
460
478
  if (t === !0) return a(this);
461
479
  if (t === !1 || t == null) return i(this);
462
- if (n.isArray(t)) return t.length > 0 ? (r.ids &&= [r.name], e.helpers.each(t, r)) : i(this);
480
+ if (n.isArray(t)) return t.length > 0 ? (r.ids && (r.ids = [r.name]), e.helpers.each(t, r)) : i(this);
463
481
  if (r.data && r.ids) {
464
482
  var o = n.createFrame(r.data);
465
483
  o.contextPath = n.appendContextPath(r.data.contextPath, r.name), r = { data: o };
@@ -467,13 +485,13 @@ var I = /* @__PURE__ */ k(((e) => {
467
485
  return a(t, r);
468
486
  });
469
487
  }, t.exports = e.default;
470
- })), en = /* @__PURE__ */ k(((e, t) => {
488
+ })), en = /* @__PURE__ */ G(((e, t) => {
471
489
  e.__esModule = !0;
472
490
  // istanbul ignore next
473
491
  function n(e) {
474
492
  return e && e.__esModule ? e : { default: e };
475
493
  }
476
- var r = I(), i = n(L());
494
+ var r = Y(), i = n(X());
477
495
  e.default = function(e) {
478
496
  e.registerHelper("each", function(e, t) {
479
497
  if (!t) throw new i.default("Must pass iterator to #each");
@@ -485,39 +503,41 @@ var I = /* @__PURE__ */ k(((e) => {
485
503
  blockParams: r.blockParams([e[t], t], [l + t, null])
486
504
  });
487
505
  }
488
- if (e && typeof e == "object") if (r.isArray(e)) for (var d = e.length; o < d; o++) o in e && u(o, o, o === e.length - 1);
489
- else if (typeof Symbol == "function" && e[Symbol.iterator]) {
490
- for (var f = [], p = e[Symbol.iterator](), m = p.next(); !m.done; m = p.next()) f.push(m.value);
491
- e = f;
492
- for (var d = e.length; o < d; o++) u(o, o, o === e.length - 1);
493
- } else (function() {
494
- var t = void 0;
495
- Object.keys(e).forEach(function(e) {
496
- t !== void 0 && u(t, o - 1), t = e, o++;
497
- }), t !== void 0 && u(t, o - 1, !0);
498
- })();
506
+ if (e && typeof e == "object") {
507
+ if (r.isArray(e)) for (var d = e.length; o < d; o++) o in e && u(o, o, o === e.length - 1);
508
+ else if (typeof Symbol == "function" && e[Symbol.iterator]) {
509
+ for (var f = [], p = e[Symbol.iterator](), m = p.next(); !m.done; m = p.next()) f.push(m.value);
510
+ e = f;
511
+ for (var d = e.length; o < d; o++) u(o, o, o === e.length - 1);
512
+ } else (function() {
513
+ var t = void 0;
514
+ Object.keys(e).forEach(function(e) {
515
+ t !== void 0 && u(t, o - 1), t = e, o++;
516
+ }), t !== void 0 && u(t, o - 1, !0);
517
+ })();
518
+ }
499
519
  return o === 0 && (s = a(this)), s;
500
520
  });
501
521
  }, t.exports = e.default;
502
- })), tn = /* @__PURE__ */ k(((e, t) => {
522
+ })), tn = /* @__PURE__ */ G(((e, t) => {
503
523
  e.__esModule = !0;
504
524
  // istanbul ignore next
505
525
  function n(e) {
506
526
  return e && e.__esModule ? e : { default: e };
507
527
  }
508
- var r = n(L());
528
+ var r = n(X());
509
529
  e.default = function(e) {
510
530
  e.registerHelper("helperMissing", function() {
511
531
  if (arguments.length !== 1) throw new r.default("Missing helper: \"" + arguments[arguments.length - 1].name + "\"");
512
532
  });
513
533
  }, t.exports = e.default;
514
- })), nn = /* @__PURE__ */ k(((e, t) => {
534
+ })), nn = /* @__PURE__ */ G(((e, t) => {
515
535
  e.__esModule = !0;
516
536
  // istanbul ignore next
517
537
  function n(e) {
518
538
  return e && e.__esModule ? e : { default: e };
519
539
  }
520
- var r = I(), i = n(L());
540
+ var r = Y(), i = n(X());
521
541
  e.default = function(e) {
522
542
  e.registerHelper("if", function(e, t) {
523
543
  if (arguments.length != 2) throw new i.default("#if requires exactly one argument");
@@ -531,7 +551,7 @@ var I = /* @__PURE__ */ k(((e) => {
531
551
  });
532
552
  });
533
553
  }, t.exports = e.default;
534
- })), rn = /* @__PURE__ */ k(((e, t) => {
554
+ })), rn = /* @__PURE__ */ G(((e, t) => {
535
555
  e.__esModule = !0, e.default = function(e) {
536
556
  e.registerHelper("log", function() {
537
557
  for (var t = [void 0], n = arguments[arguments.length - 1], r = 0; r < arguments.length - 1; r++) t.push(arguments[r]);
@@ -539,19 +559,19 @@ var I = /* @__PURE__ */ k(((e) => {
539
559
  n.hash.level == null ? n.data && n.data.level != null && (i = n.data.level) : i = n.hash.level, t[0] = i, e.log.apply(e, t);
540
560
  });
541
561
  }, t.exports = e.default;
542
- })), an = /* @__PURE__ */ k(((e, t) => {
562
+ })), an = /* @__PURE__ */ G(((e, t) => {
543
563
  e.__esModule = !0, e.default = function(e) {
544
564
  e.registerHelper("lookup", function(e, t, n) {
545
565
  return e && n.lookupProperty(e, t);
546
566
  });
547
567
  }, t.exports = e.default;
548
- })), on = /* @__PURE__ */ k(((e, t) => {
568
+ })), on = /* @__PURE__ */ G(((e, t) => {
549
569
  e.__esModule = !0;
550
570
  // istanbul ignore next
551
571
  function n(e) {
552
572
  return e && e.__esModule ? e : { default: e };
553
573
  }
554
- var r = I(), i = n(L());
574
+ var r = Y(), i = n(X());
555
575
  e.default = function(e) {
556
576
  e.registerHelper("with", function(e, t) {
557
577
  if (arguments.length != 2) throw new i.default("#with requires exactly one argument");
@@ -565,7 +585,7 @@ var I = /* @__PURE__ */ k(((e) => {
565
585
  });
566
586
  });
567
587
  }, t.exports = e.default;
568
- })), sn = /* @__PURE__ */ k(((e) => {
588
+ })), sn = /* @__PURE__ */ G(((e) => {
569
589
  e.__esModule = !0, e.registerDefaultHelpers = l, e.moveHelperToHooks = u;
570
590
  // istanbul ignore next
571
591
  function t(e) {
@@ -578,9 +598,9 @@ var I = /* @__PURE__ */ k(((e) => {
578
598
  function u(e, t, n) {
579
599
  e.helpers[t] && (e.hooks[t] = e.helpers[t], n || (e.helpers[t] = void 0));
580
600
  }
581
- })), cn = /* @__PURE__ */ k(((e, t) => {
601
+ })), cn = /* @__PURE__ */ G(((e, t) => {
582
602
  e.__esModule = !0;
583
- var n = I();
603
+ var n = Y();
584
604
  e.default = function(e) {
585
605
  e.registerDecorator("inline", function(e, t, r, i) {
586
606
  var a = e;
@@ -592,7 +612,7 @@ var I = /* @__PURE__ */ k(((e) => {
592
612
  }), t.partials[i.args[0]] = i.fn, a;
593
613
  });
594
614
  }, t.exports = e.default;
595
- })), ln = /* @__PURE__ */ k(((e) => {
615
+ })), ln = /* @__PURE__ */ G(((e) => {
596
616
  e.__esModule = !0, e.registerDefaultDecorators = r;
597
617
  // istanbul ignore next
598
618
  function t(e) {
@@ -602,9 +622,9 @@ var I = /* @__PURE__ */ k(((e) => {
602
622
  function r(e) {
603
623
  n.default(e);
604
624
  }
605
- })), un = /* @__PURE__ */ k(((e, t) => {
625
+ })), un = /* @__PURE__ */ G(((e, t) => {
606
626
  e.__esModule = !0;
607
- var n = I(), r = {
627
+ var n = Y(), r = {
608
628
  methodMap: [
609
629
  "debug",
610
630
  "info",
@@ -629,13 +649,13 @@ var I = /* @__PURE__ */ k(((e) => {
629
649
  }
630
650
  };
631
651
  e.default = r, t.exports = e.default;
632
- })), dn = /* @__PURE__ */ k(((e) => {
652
+ })), dn = /* @__PURE__ */ G(((e) => {
633
653
  e.__esModule = !0, e.createProtoAccessControl = a, e.resultIsAllowed = o, e.resetLoggedProperties = l;
634
654
  // istanbul ignore next
635
655
  function t(e) {
636
656
  return e && e.__esModule ? e : { default: e };
637
657
  }
638
- var n = I(), r = t(un()), i = Object.create(null);
658
+ var n = Y(), r = t(un()), i = Object.create(null);
639
659
  function a(e) {
640
660
  var t = Object.create(null);
641
661
  t.__proto__ = !1, n.extend(t, e.allowedProtoProperties);
@@ -665,13 +685,13 @@ var I = /* @__PURE__ */ k(((e) => {
665
685
  delete i[e];
666
686
  });
667
687
  }
668
- })), fn = /* @__PURE__ */ k(((e) => {
688
+ })), fn = /* @__PURE__ */ G(((e) => {
669
689
  e.__esModule = !0, e.HandlebarsEnvironment = l;
670
690
  // istanbul ignore next
671
691
  function t(e) {
672
692
  return e && e.__esModule ? e : { default: e };
673
693
  }
674
- var n = I(), r = t(L()), i = sn(), a = ln(), o = t(un()), s = dn();
694
+ var n = Y(), r = t(X()), i = sn(), a = ln(), o = t(un()), s = dn();
675
695
  e.VERSION = "4.7.9", e.COMPILER_REVISION = 8, e.LAST_COMPATIBLE_COMPILER_REVISION = 7, e.REVISION_CHANGES = {
676
696
  1: "<= 1.0.rc.2",
677
697
  2: "== 1.0.0-rc.3",
@@ -722,7 +742,7 @@ var I = /* @__PURE__ */ k(((e) => {
722
742
  s.resetLoggedProperties();
723
743
  }
724
744
  }, e.log = o.default.log, e.createFrame = n.createFrame, e.logger = o.default;
725
- })), pn = /* @__PURE__ */ k(((e, t) => {
745
+ })), pn = /* @__PURE__ */ G(((e, t) => {
726
746
  e.__esModule = !0;
727
747
  function n(e) {
728
748
  this.string = e;
@@ -730,7 +750,7 @@ var I = /* @__PURE__ */ k(((e) => {
730
750
  n.prototype.toString = n.prototype.toHTML = function() {
731
751
  return "" + this.string;
732
752
  }, e.default = n, t.exports = e.default;
733
- })), mn = /* @__PURE__ */ k(((e) => {
753
+ })), mn = /* @__PURE__ */ G(((e) => {
734
754
  e.__esModule = !0, e.wrapHelper = t;
735
755
  function t(e, t) {
736
756
  return typeof e == "function" ? function() {
@@ -738,7 +758,7 @@ var I = /* @__PURE__ */ k(((e) => {
738
758
  return arguments[arguments.length - 1] = t(n), e.apply(this, arguments);
739
759
  } : e;
740
760
  }
741
- })), hn = /* @__PURE__ */ k(((e) => {
761
+ })), hn = /* @__PURE__ */ G(((e) => {
742
762
  e.__esModule = !0, e.checkRevision = l, e.template = u, e.wrapProgram = d, e.resolvePartial = f, e.invokePartial = p, e.noop = m;
743
763
  // istanbul ignore next
744
764
  function t(e) {
@@ -751,13 +771,16 @@ var I = /* @__PURE__ */ k(((e) => {
751
771
  if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
752
772
  return t.default = e, t;
753
773
  }
754
- var r = n(I()), i = t(L()), a = fn(), o = sn(), s = mn(), c = dn();
774
+ var r = n(Y()), i = t(X()), a = fn(), o = sn(), s = mn(), c = dn();
755
775
  function l(e) {
756
776
  var t = e && e[0] || 1, n = a.COMPILER_REVISION;
757
- if (!(t >= a.LAST_COMPATIBLE_COMPILER_REVISION && t <= a.COMPILER_REVISION)) if (t < a.LAST_COMPATIBLE_COMPILER_REVISION) {
758
- var r = a.REVISION_CHANGES[n], o = a.REVISION_CHANGES[t];
759
- throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + r + ") or downgrade your runtime to an older version (" + o + ").");
760
- } else throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + e[1] + ").");
777
+ if (!(t >= a.LAST_COMPATIBLE_COMPILER_REVISION && t <= a.COMPILER_REVISION)) {
778
+ if (t < a.LAST_COMPATIBLE_COMPILER_REVISION) {
779
+ var r = a.REVISION_CHANGES[n], o = a.REVISION_CHANGES[t];
780
+ throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + r + ") or downgrade your runtime to an older version (" + o + ").");
781
+ }
782
+ throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + e[1] + ").");
783
+ }
761
784
  }
762
785
  function u(e, t) {
763
786
  /* istanbul ignore next */
@@ -774,7 +797,8 @@ var I = /* @__PURE__ */ k(((e) => {
774
797
  s = c.join("\n");
775
798
  }
776
799
  return s;
777
- } else throw new i.default("The partial " + o.name + " could not be compiled when running in runtime-only mode");
800
+ }
801
+ throw new i.default("The partial " + o.name + " could not be compiled when running in runtime-only mode");
778
802
  }
779
803
  var s = {
780
804
  strict: function(e, t, n) {
@@ -844,7 +868,7 @@ var I = /* @__PURE__ */ k(((e) => {
844
868
  function d(e, t, n, r, i, a, o) {
845
869
  function s(t) {
846
870
  var i = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], s = o;
847
- return o && t != o[0] && !(t === e.nullContext && o[0] === null) && (s = [t].concat(o)), n(e, t, e.helpers, e.partials, i.data || r, a && [i.blockParams].concat(a), s);
871
+ return o && t != o[0] && (t !== e.nullContext || o[0] !== null) && (s = [t].concat(o)), n(e, t, e.helpers, e.partials, i.data || r, a && [i.blockParams].concat(a), s);
848
872
  }
849
873
  return s = _(n, s, e, o, r, a), s.program = t, s.depth = o ? o.length : 0, s.blockParams = i || 0, s;
850
874
  }
@@ -893,7 +917,7 @@ var I = /* @__PURE__ */ k(((e) => {
893
917
  return e.lookupProperty = n, e;
894
918
  });
895
919
  }
896
- })), gn = /* @__PURE__ */ k(((e, t) => {
920
+ })), gn = /* @__PURE__ */ G(((e, t) => {
897
921
  e.__esModule = !0, e.default = function(e) {
898
922
  /* istanbul ignore next */
899
923
  (function() {
@@ -907,7 +931,7 @@ var I = /* @__PURE__ */ k(((e) => {
907
931
  return globalThis.Handlebars === e && (globalThis.Handlebars = t), e;
908
932
  };
909
933
  }, t.exports = e.default;
910
- })), _n = /* @__PURE__ */ k(((e, t) => {
934
+ })), _n = /* @__PURE__ */ G(((e, t) => {
911
935
  e.__esModule = !0;
912
936
  // istanbul ignore next
913
937
  function n(e) {
@@ -920,7 +944,7 @@ var I = /* @__PURE__ */ k(((e) => {
920
944
  if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
921
945
  return t.default = e, t;
922
946
  }
923
- var i = r(fn()), a = n(pn()), o = n(L()), s = r(I()), c = r(hn()), l = n(gn());
947
+ var i = r(fn()), a = n(pn()), o = n(X()), s = r(Y()), c = r(hn()), l = n(gn());
924
948
  function u() {
925
949
  var e = new i.HandlebarsEnvironment();
926
950
  return s.extend(e, i), e.SafeString = a.default, e.Exception = o.default, e.Utils = s, e.escapeExpression = s.escapeExpression, e.VM = c, e.template = function(t) {
@@ -929,7 +953,7 @@ var I = /* @__PURE__ */ k(((e) => {
929
953
  }
930
954
  var d = u();
931
955
  d.create = u, l.default(d), d.default = d, e.default = d, t.exports = e.default;
932
- })), vn = /* @__PURE__ */ k(((e, t) => {
956
+ })), vn = /* @__PURE__ */ G(((e, t) => {
933
957
  e.__esModule = !0;
934
958
  var n = { helpers: {
935
959
  helperExpression: function(e) {
@@ -943,7 +967,7 @@ var I = /* @__PURE__ */ k(((e) => {
943
967
  }
944
968
  } };
945
969
  e.default = n, t.exports = e.default;
946
- })), yn = /* @__PURE__ */ k(((e, t) => {
970
+ })), yn = /* @__PURE__ */ G(((e, t) => {
947
971
  e.__esModule = !0, e.default = (function() {
948
972
  var e = {
949
973
  trace: function() {},
@@ -1490,9 +1514,7 @@ var I = /* @__PURE__ */ k(((e) => {
1490
1514
  case 100:
1491
1515
  this.$ = [a[s]];
1492
1516
  break;
1493
- case 101:
1494
- a[s - 1].push(a[s]);
1495
- break;
1517
+ case 101: a[s - 1].push(a[s]);
1496
1518
  }
1497
1519
  },
1498
1520
  table: [
@@ -3230,13 +3252,13 @@ var I = /* @__PURE__ */ k(((e) => {
3230
3252
  }
3231
3253
  return t.prototype = e, e.Parser = t, new t();
3232
3254
  })(), t.exports = e.default;
3233
- })), bn = /* @__PURE__ */ k(((e, t) => {
3255
+ })), bn = /* @__PURE__ */ G(((e, t) => {
3234
3256
  e.__esModule = !0;
3235
3257
  // istanbul ignore next
3236
3258
  function n(e) {
3237
3259
  return e && e.__esModule ? e : { default: e };
3238
3260
  }
3239
- var r = n(L());
3261
+ var r = n(X());
3240
3262
  function i() {
3241
3263
  this.parents = [];
3242
3264
  }
@@ -3303,7 +3325,7 @@ var I = /* @__PURE__ */ k(((e) => {
3303
3325
  this.acceptRequired(e, "name"), this.acceptArray(e.params), this.acceptKey(e, "hash");
3304
3326
  }
3305
3327
  e.default = i, t.exports = e.default;
3306
- })), xn = /* @__PURE__ */ k(((e, t) => {
3328
+ })), xn = /* @__PURE__ */ G(((e, t) => {
3307
3329
  e.__esModule = !0;
3308
3330
  // istanbul ignore next
3309
3331
  function n(e) {
@@ -3378,13 +3400,13 @@ var I = /* @__PURE__ */ k(((e) => {
3378
3400
  }
3379
3401
  }
3380
3402
  e.default = i, t.exports = e.default;
3381
- })), Sn = /* @__PURE__ */ k(((e) => {
3403
+ })), Sn = /* @__PURE__ */ G(((e) => {
3382
3404
  e.__esModule = !0, e.SourceLocation = i, e.id = a, e.stripFlags = o, e.stripComment = s, e.preparePath = c, e.prepareMustache = l, e.prepareRawBlock = u, e.prepareBlock = d, e.prepareProgram = f, e.preparePartialBlock = p;
3383
3405
  // istanbul ignore next
3384
3406
  function t(e) {
3385
3407
  return e && e.__esModule ? e : { default: e };
3386
3408
  }
3387
- var n = t(L());
3409
+ var n = t(X());
3388
3410
  function r(e, t) {
3389
3411
  if (t = t.path ? t.path.original : t, e.path.original !== t) {
3390
3412
  var r = { loc: e.path.loc };
@@ -3519,7 +3541,7 @@ var I = /* @__PURE__ */ k(((e) => {
3519
3541
  loc: this.locInfo(i)
3520
3542
  };
3521
3543
  }
3522
- })), Cn = /* @__PURE__ */ k(((e) => {
3544
+ })), Cn = /* @__PURE__ */ G(((e) => {
3523
3545
  e.__esModule = !0, e.parseWithoutProcessing = l, e.parse = u;
3524
3546
  // istanbul ignore next
3525
3547
  function t(e) {
@@ -3532,7 +3554,7 @@ var I = /* @__PURE__ */ k(((e) => {
3532
3554
  function n(e) {
3533
3555
  return e && e.__esModule ? e : { default: e };
3534
3556
  }
3535
- var r = n(yn()), i = n(xn()), a = t(Sn()), o = n(L()), s = I();
3557
+ var r = n(yn()), i = n(xn()), a = t(Sn()), o = n(X()), s = Y();
3536
3558
  e.parser = r.default;
3537
3559
  var c = {};
3538
3560
  s.extend(c, a);
@@ -3571,13 +3593,13 @@ var I = /* @__PURE__ */ k(((e) => {
3571
3593
  function p(e) {
3572
3594
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && e >= 0;
3573
3595
  }
3574
- })), wn = /* @__PURE__ */ k(((e) => {
3596
+ })), wn = /* @__PURE__ */ G(((e) => {
3575
3597
  e.__esModule = !0, e.Compiler = o, e.precompile = s, e.compile = c;
3576
3598
  // istanbul ignore next
3577
3599
  function t(e) {
3578
3600
  return e && e.__esModule ? e : { default: e };
3579
3601
  }
3580
- var n = t(L()), r = I(), i = t(vn()), a = [].slice;
3602
+ var n = t(X()), r = Y(), i = t(vn()), a = [].slice;
3581
3603
  function o() {}
3582
3604
  o.prototype = {
3583
3605
  compiler: o,
@@ -3795,7 +3817,7 @@ var I = /* @__PURE__ */ k(((e) => {
3795
3817
  };
3796
3818
  }
3797
3819
  }
3798
- })), Tn = /* @__PURE__ */ k(((e) => {
3820
+ })), Tn = /* @__PURE__ */ G(((e) => {
3799
3821
  var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
3800
3822
  e.encode = function(e) {
3801
3823
  if (0 <= e && e < t.length) return t[e];
@@ -3804,7 +3826,7 @@ var I = /* @__PURE__ */ k(((e) => {
3804
3826
  var t = 65, n = 90, r = 97, i = 122, a = 48;
3805
3827
  return t <= e && e <= n ? e - t : r <= e && e <= i ? e - r + 26 : a <= e && e <= 57 ? e - a + 52 : e == 43 ? 62 : e == 47 ? 63 : -1;
3806
3828
  };
3807
- })), En = /* @__PURE__ */ k(((e) => {
3829
+ })), En = /* @__PURE__ */ G(((e) => {
3808
3830
  var t = Tn(), n = 5, r = 1 << n, i = r - 1, a = r;
3809
3831
  function o(e) {
3810
3832
  return e < 0 ? (-e << 1) + 1 : (e << 1) + 0;
@@ -3828,7 +3850,7 @@ var I = /* @__PURE__ */ k(((e) => {
3828
3850
  } while (d);
3829
3851
  o.value = s(l), o.rest = r;
3830
3852
  };
3831
- })), R = /* @__PURE__ */ k(((e) => {
3853
+ })), Dn = /* @__PURE__ */ G(((e) => {
3832
3854
  function t(e, t, n) {
3833
3855
  if (t in e) return e[t];
3834
3856
  if (arguments.length === 3) return n;
@@ -3940,8 +3962,8 @@ var I = /* @__PURE__ */ k(((e) => {
3940
3962
  return o(t);
3941
3963
  }
3942
3964
  e.computeSourceURL = y;
3943
- })), Dn = /* @__PURE__ */ k(((e) => {
3944
- var t = R(), n = Object.prototype.hasOwnProperty, r = typeof Map < "u";
3965
+ })), On = /* @__PURE__ */ G(((e) => {
3966
+ var t = Dn(), n = Object.prototype.hasOwnProperty, r = typeof Map < "u";
3945
3967
  function i() {
3946
3968
  this._array = [], this._set = r ? /* @__PURE__ */ new Map() : Object.create(null);
3947
3969
  }
@@ -3972,8 +3994,8 @@ var I = /* @__PURE__ */ k(((e) => {
3972
3994
  }, i.prototype.toArray = function() {
3973
3995
  return this._array.slice();
3974
3996
  }, e.ArraySet = i;
3975
- })), On = /* @__PURE__ */ k(((e) => {
3976
- var t = R();
3997
+ })), kn = /* @__PURE__ */ G(((e) => {
3998
+ var t = Dn();
3977
3999
  function n(e, n) {
3978
4000
  var r = e.generatedLine, i = n.generatedLine, a = e.generatedColumn, o = n.generatedColumn;
3979
4001
  return i > r || i == r && o >= a || t.compareByGeneratedPositionsInflated(e, n) <= 0;
@@ -3991,8 +4013,8 @@ var I = /* @__PURE__ */ k(((e) => {
3991
4013
  }, r.prototype.toArray = function() {
3992
4014
  return this._sorted ||= (this._array.sort(t.compareByGeneratedPositionsInflated), !0), this._array;
3993
4015
  }, e.MappingList = r;
3994
- })), kn = /* @__PURE__ */ k(((e) => {
3995
- var t = En(), n = R(), r = Dn().ArraySet, i = On().MappingList;
4016
+ })), An = /* @__PURE__ */ G(((e) => {
4017
+ var t = En(), n = Dn(), r = On().ArraySet, i = kn().MappingList;
3996
4018
  function a(e) {
3997
4019
  e ||= {}, this._file = n.getArg(e, "file", null), this._sourceRoot = n.getArg(e, "sourceRoot", null), this._skipValidation = n.getArg(e, "skipValidation", !1), this._sources = new r(), this._names = new r(), this._mappings = new i(), this._sourcesContents = null;
3998
4020
  }
@@ -4090,7 +4112,7 @@ var I = /* @__PURE__ */ k(((e) => {
4090
4112
  }, a.prototype.toString = function() {
4091
4113
  return JSON.stringify(this.toJSON());
4092
4114
  }, e.SourceMapGenerator = a;
4093
- })), An = /* @__PURE__ */ k(((e) => {
4115
+ })), jn = /* @__PURE__ */ G(((e) => {
4094
4116
  e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2;
4095
4117
  function t(n, r, i, a, o, s) {
4096
4118
  var c = Math.floor((r - n) / 2) + n, l = o(i, a[c], !0);
@@ -4103,7 +4125,7 @@ var I = /* @__PURE__ */ k(((e) => {
4103
4125
  for (; o - 1 >= 0 && i(r[o], r[o - 1], !0) === 0;) --o;
4104
4126
  return o;
4105
4127
  };
4106
- })), jn = /* @__PURE__ */ k(((e) => {
4128
+ })), Mn = /* @__PURE__ */ G(((e) => {
4107
4129
  function t(e, t, n) {
4108
4130
  var r = e[t];
4109
4131
  e[t] = e[n], e[n] = r;
@@ -4124,8 +4146,8 @@ var I = /* @__PURE__ */ k(((e) => {
4124
4146
  e.quickSort = function(e, t) {
4125
4147
  r(e, t, 0, e.length - 1);
4126
4148
  };
4127
- })), Mn = /* @__PURE__ */ k(((e) => {
4128
- var t = R(), n = An(), r = Dn().ArraySet, i = En(), a = jn().quickSort;
4149
+ })), Nn = /* @__PURE__ */ G(((e) => {
4150
+ var t = Dn(), n = jn(), r = On().ArraySet, i = En(), a = Mn().quickSort;
4129
4151
  function o(e, n) {
4130
4152
  var r = e;
4131
4153
  return typeof e == "string" && (r = t.parseSourceMapInput(e)), r.sections == null ? new s(r, n) : new l(r, n);
@@ -4416,8 +4438,8 @@ var I = /* @__PURE__ */ k(((e) => {
4416
4438
  }
4417
4439
  a(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), a(this.__originalMappings, t.compareByOriginalPositions);
4418
4440
  }, e.IndexedSourceMapConsumer = l;
4419
- })), Nn = /* @__PURE__ */ k(((e) => {
4420
- var t = kn().SourceMapGenerator, n = R(), r = /(\r?\n)/, i = 10, a = "$$$isSourceNode$$$";
4441
+ })), Pn = /* @__PURE__ */ G(((e) => {
4442
+ var t = An().SourceMapGenerator, n = Dn(), r = /(\r?\n)/, i = 10, a = "$$$isSourceNode$$$";
4421
4443
  function o(e, t, n, r, i) {
4422
4444
  this.children = [], this.sourceContents = {}, this.line = e ?? null, this.column = t ?? null, this.source = n ?? null, this.name = i ?? null, this[a] = !0, r != null && this.add(r);
4423
4445
  }
@@ -4429,11 +4451,13 @@ var I = /* @__PURE__ */ k(((e) => {
4429
4451
  }
4430
4452
  }, u = 1, d = 0, f = null;
4431
4453
  return t.eachMapping(function(e) {
4432
- if (f !== null) if (u < e.generatedLine) p(f, l()), u++, d = 0;
4433
- else {
4434
- var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
4435
- s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
4436
- return;
4454
+ if (f !== null) {
4455
+ if (u < e.generatedLine) p(f, l()), u++, d = 0;
4456
+ else {
4457
+ var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
4458
+ s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
4459
+ return;
4460
+ }
4437
4461
  }
4438
4462
  for (; u < e.generatedLine;) a.add(l()), u++;
4439
4463
  if (d < e.generatedColumn) {
@@ -4532,14 +4556,14 @@ var I = /* @__PURE__ */ k(((e) => {
4532
4556
  map: r
4533
4557
  };
4534
4558
  }, e.SourceNode = o;
4535
- })), Pn = /* @__PURE__ */ k(((e) => {
4536
- e.SourceMapGenerator = kn().SourceMapGenerator, e.SourceMapConsumer = Mn().SourceMapConsumer, e.SourceNode = Nn().SourceNode;
4537
- })), Fn = /* @__PURE__ */ k(((e, t) => {
4559
+ })), Fn = /* @__PURE__ */ G(((e) => {
4560
+ e.SourceMapGenerator = An().SourceMapGenerator, e.SourceMapConsumer = Nn().SourceMapConsumer, e.SourceNode = Pn().SourceNode;
4561
+ })), In = /* @__PURE__ */ G(((e, t) => {
4538
4562
  e.__esModule = !0;
4539
- var n = I(), r = void 0;
4563
+ var n = Y(), r = void 0;
4540
4564
  try {
4541
4565
  /* istanbul ignore next */
4542
- (typeof define != "function" || !define.amd) && (r = Pn().SourceNode);
4566
+ (typeof define != "function" || !define.amd) && (r = Fn().SourceNode);
4543
4567
  } catch {}
4544
4568
  /* istanbul ignore if: tested but not covered in istanbul due to dist build */
4545
4569
  r || (r = function(e, t, n, r) {
@@ -4562,8 +4586,8 @@ var I = /* @__PURE__ */ k(((e) => {
4562
4586
  if (n.isArray(e)) {
4563
4587
  for (var i = [], a = 0, o = e.length; a < o; a++) i.push(t.wrap(e[a], r));
4564
4588
  return i;
4565
- } else if (typeof e == "boolean" || typeof e == "number") return e + "";
4566
- return e;
4589
+ }
4590
+ return typeof e == "boolean" || typeof e == "number" ? e + "" : e;
4567
4591
  }
4568
4592
  function a(e) {
4569
4593
  this.srcFile = e, this.source = [];
@@ -4633,13 +4657,13 @@ var I = /* @__PURE__ */ k(((e) => {
4633
4657
  return t.prepend("["), t.add("]"), t;
4634
4658
  }
4635
4659
  }, e.default = a, t.exports = e.default;
4636
- })), In = /* @__PURE__ */ k(((e, t) => {
4660
+ })), Ln = /* @__PURE__ */ G(((e, t) => {
4637
4661
  e.__esModule = !0;
4638
4662
  // istanbul ignore next
4639
4663
  function n(e) {
4640
4664
  return e && e.__esModule ? e : { default: e };
4641
4665
  }
4642
- var r = fn(), i = n(L()), a = I(), o = n(Fn());
4666
+ var r = fn(), i = n(X()), a = Y(), o = n(In());
4643
4667
  function s(e) {
4644
4668
  this.value = e;
4645
4669
  }
@@ -5123,13 +5147,13 @@ var I = /* @__PURE__ */ k(((e) => {
5123
5147
  ] : a;
5124
5148
  }
5125
5149
  e.default = c, t.exports = e.default;
5126
- })), Ln = /* @__PURE__ */ ge((/* @__PURE__ */ k(((e, t) => {
5150
+ })), Rn = /* @__PURE__ */ G(((e, t) => {
5127
5151
  e.__esModule = !0;
5128
5152
  // istanbul ignore next
5129
5153
  function n(e) {
5130
5154
  return e && e.__esModule ? e : { default: e };
5131
5155
  }
5132
- var r = n(_n()), i = n(vn()), a = Cn(), o = wn(), s = n(In()), c = n(bn()), l = n(gn()), u = r.default.create;
5156
+ var r = n(_n()), i = n(vn()), a = Cn(), o = wn(), s = n(Ln()), c = n(bn()), l = n(gn()), u = r.default.create;
5133
5157
  function d() {
5134
5158
  var e = u();
5135
5159
  return e.compile = function(t, n) {
@@ -5140,70 +5164,83 @@ var I = /* @__PURE__ */ k(((e) => {
5140
5164
  }
5141
5165
  var f = d();
5142
5166
  f.create = d, l.default(f), f.Visitor = c.default, f.default = f, e.default = f, t.exports = e.default;
5143
- })))(), 1);
5144
- Ln.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5145
- var Rn = "language", z = Se((e) => ({
5167
+ })), Z = q(), zn = /* @__PURE__ */ le(Rn(), 1);
5168
+ zn.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5169
+ var Bn = "language", Vn = ge((e) => ({
5146
5170
  language: "en",
5147
5171
  setLanguage: (t) => {
5148
- e({ language: t }), localStorage.setItem(Rn, t);
5149
- }
5150
- })), zn = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Bn = (e, t) => t === 1 ? e.one : e.many;
5151
- function Vn(e) {
5152
- let { language: t, setLanguage: n } = z(), r = l(e), i = c(() => r.current[t], [t]), o = c(() => r.current.en, []), u = a((e) => Qt(i, e, Qt(o, e)), [i, o]), d = a((e, t) => {
5153
- let n = `!!! ${e} !!!`, r = u(e);
5154
- return zn(r) && t && typeof t.count == "number" && (r = Bn(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : Ln.compile(r)(t);
5155
- }, [u]), f = a((e, t) => {
5156
- let n = u(e);
5157
- return n !== void 0 && (typeof n == "string" || zn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
5158
- }, [u]), p = (e) => {
5159
- let t = [], n = (e, r) => {
5160
- Object.entries(e).forEach(([e, i]) => {
5161
- let a = r ? `${r}.${e}` : e;
5162
- typeof i == "object" && i && !Array.isArray(i) && !zn(i) ? n(i, a) : t.push(a);
5163
- });
5164
- };
5165
- return n(e, ""), t;
5166
- };
5167
- return s(() => {
5172
+ e({ language: t }), localStorage.setItem(Bn, t);
5173
+ }
5174
+ })), Hn = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Un = (e, t) => t === 1 ? e.one : e.many;
5175
+ function Wn(e) {
5176
+ let t = (0, Z.c)(15), { language: n, setLanguage: r } = Vn(), [i] = d(e), a = i[n], o = i.en, c;
5177
+ t[0] !== a || t[1] !== o ? (c = (e) => {
5178
+ let t = Qt(o, e);
5179
+ return Qt(a, e, t);
5180
+ }, t[0] = a, t[1] = o, t[2] = c) : c = t[2];
5181
+ let l = c, u;
5182
+ t[3] === l ? u = t[4] : (u = (e, t) => {
5183
+ let n = `!!! ${e} !!!`, r = l(e);
5184
+ return Hn(r) && t && typeof t.count == "number" && (r = Un(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : zn.compile(r)(t);
5185
+ }, t[3] = l, t[4] = u);
5186
+ let f = u, p;
5187
+ t[5] === l ? p = t[6] : (p = (e, t) => {
5188
+ let n = l(e);
5189
+ return n !== void 0 && (typeof n == "string" || Hn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
5190
+ }, t[5] = l, t[6] = p);
5191
+ let m = p, h = Gn, g, _;
5192
+ t[7] === i ? (g = t[8], _ = t[9]) : (g = () => {
5168
5193
  if (process.env.NODE_ENV !== "development") return;
5169
5194
  let e = /* @__PURE__ */ new Map();
5170
- Object.entries(r.current).forEach(([t, n]) => {
5171
- p(n).forEach((n) => {
5172
- let r = e.get(n);
5173
- r || (r = /* @__PURE__ */ new Set(), e.set(n, r)), r.add(t);
5195
+ Object.entries(i).forEach((t) => {
5196
+ let [n, r] = t;
5197
+ h(r).forEach((t) => {
5198
+ let r = e.get(t);
5199
+ r || (r = /* @__PURE__ */ new Set(), e.set(t, r)), r.add(n);
5174
5200
  });
5175
5201
  });
5176
- let t = Object.keys(r.current);
5202
+ let t = Object.keys(i);
5177
5203
  e.forEach((e, n) => {
5178
5204
  if (e.size === t.length) return;
5179
5205
  let r = t.filter((t) => !e.has(t));
5180
5206
  console.error("Missing i18n Translation Key:", n, "in languages:", r);
5181
5207
  });
5182
- }, []), {
5183
- t: d,
5184
- tExists: f,
5185
- language: t,
5186
- setLanguage: n
5208
+ }, _ = [i], t[7] = i, t[8] = g, t[9] = _), s(g, _);
5209
+ let v;
5210
+ return t[10] !== n || t[11] !== r || t[12] !== f || t[13] !== m ? (v = {
5211
+ t: f,
5212
+ tExists: m,
5213
+ language: n,
5214
+ setLanguage: r
5215
+ }, t[10] = n, t[11] = r, t[12] = f, t[13] = m, t[14] = v) : v = t[14], v;
5216
+ }
5217
+ function Gn(e) {
5218
+ let t = [], n = (e, r) => {
5219
+ Object.entries(e).forEach((e) => {
5220
+ let [i, a] = e, o = r ? `${r}.${i}` : i;
5221
+ typeof a == "object" && a && !Array.isArray(a) && !Hn(a) ? n(a, o) : t.push(o);
5222
+ });
5187
5223
  };
5224
+ return n(e, ""), t;
5188
5225
  }
5189
- function Hn() {
5190
- let e = localStorage.getItem(Rn), t = sessionStorage.getItem(Rn), n = navigator.language;
5226
+ function Kn() {
5227
+ let e = localStorage.getItem(Bn), t = sessionStorage.getItem(Bn), n = navigator.language;
5191
5228
  n.includes("-") && (n = n.split("-")[0]);
5192
5229
  let r = e || t || n;
5193
- z.getState().setLanguage(r);
5230
+ Vn.getState().setLanguage(r);
5194
5231
  }
5195
5232
  //#endregion
5196
5233
  //#region ../../node_modules/.pnpm/jdenticon@3.3.0/node_modules/jdenticon/dist/jdenticon-module.mjs
5197
- function B(e, t, n) {
5234
+ function qn(e, t, n) {
5198
5235
  return parseInt(e.substr(t, n), 16);
5199
5236
  }
5200
- function Un(e) {
5237
+ function Jn(e) {
5201
5238
  return e |= 0, e < 0 ? "00" : e < 16 ? "0" + e.toString(16) : e < 256 ? e.toString(16) : "ff";
5202
5239
  }
5203
- function Wn(e, t, n) {
5204
- return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Un(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
5240
+ function Yn(e, t, n) {
5241
+ return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Jn(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
5205
5242
  }
5206
- function Gn(e) {
5243
+ function Xn(e) {
5207
5244
  if (/^#[0-9a-f]{3,8}$/i.test(e)) {
5208
5245
  let t, n = e.length;
5209
5246
  if (n < 6) {
@@ -5213,18 +5250,18 @@ function Gn(e) {
5213
5250
  return (n == 7 || n > 8) && (t = e), t;
5214
5251
  }
5215
5252
  }
5216
- function Kn(e, t, n) {
5253
+ function Zn(e, t, n) {
5217
5254
  let r;
5218
5255
  if (t == 0) {
5219
- let e = Un(n * 255);
5256
+ let e = Jn(n * 255);
5220
5257
  r = e + e + e;
5221
5258
  } else {
5222
5259
  let i = n <= .5 ? n * (t + 1) : n + t - n * t, a = n * 2 - i;
5223
- r = Wn(a, i, e * 6 + 2) + Wn(a, i, e * 6) + Wn(a, i, e * 6 - 2);
5260
+ r = Yn(a, i, e * 6 + 2) + Yn(a, i, e * 6) + Yn(a, i, e * 6 - 2);
5224
5261
  }
5225
5262
  return "#" + r;
5226
5263
  }
5227
- function V(e, t, n) {
5264
+ function Qn(e, t, n) {
5228
5265
  let r = [
5229
5266
  .55,
5230
5267
  .5,
@@ -5234,14 +5271,14 @@ function V(e, t, n) {
5234
5271
  .55,
5235
5272
  .55
5236
5273
  ][e * 6 + .5 | 0];
5237
- return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, Kn(e, t, n);
5274
+ return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, Zn(e, t, n);
5238
5275
  }
5239
- var qn = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, Jn = {
5276
+ var $n = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, er = {
5240
5277
  V: "jdenticon_config",
5241
5278
  n: "config"
5242
- }, Yn = {};
5243
- function Xn(e, t) {
5244
- let n = typeof e == "object" && e || Yn[Jn.n] || qn[Jn.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
5279
+ }, tr = {};
5280
+ function nr(e, t) {
5281
+ let n = typeof e == "object" && e || tr[er.n] || $n[er.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
5245
5282
  function l(e, t) {
5246
5283
  let n = r[e];
5247
5284
  return n && n.length > 1 || (n = t), function(e) {
@@ -5258,25 +5295,25 @@ function Xn(e, t) {
5258
5295
  D: typeof o == "number" ? o : 0,
5259
5296
  p: l("color", [.4, .8]),
5260
5297
  F: l("grayscale", [.3, .9]),
5261
- G: Gn(s),
5298
+ G: Xn(s),
5262
5299
  X: typeof e == "number" ? e : typeof c == "number" ? c : t
5263
5300
  };
5264
5301
  }
5265
- var Zn = class {
5302
+ var rr = class {
5266
5303
  constructor(e, t) {
5267
5304
  this.x = e, this.y = t;
5268
5305
  }
5269
- }, Qn = class {
5306
+ }, ir = class {
5270
5307
  constructor(e, t, n, r) {
5271
5308
  this.q = e, this.t = t, this.H = n, this.Y = r;
5272
5309
  }
5273
5310
  I(e, t, n, r) {
5274
5311
  let i = this.q + this.H, a = this.t + this.H, o = this.Y;
5275
- return o === 1 ? new Zn(i - t - (r || 0), this.t + e) : o === 2 ? new Zn(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new Zn(this.q + t, a - e - (n || 0)) : new Zn(this.q + e, this.t + t);
5312
+ return o === 1 ? new rr(i - t - (r || 0), this.t + e) : o === 2 ? new rr(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new rr(this.q + t, a - e - (n || 0)) : new rr(this.q + e, this.t + t);
5276
5313
  }
5277
- }, $n = new Qn(0, 0, 0, 0), er = class {
5314
+ }, ar = new ir(0, 0, 0, 0), or = class {
5278
5315
  constructor(e) {
5279
- this.J = e, this.u = $n;
5316
+ this.J = e, this.u = ar;
5280
5317
  }
5281
5318
  g(e, t) {
5282
5319
  let n = t ? -2 : 2, r = [];
@@ -5325,7 +5362,7 @@ var Zn = class {
5325
5362
  ], i);
5326
5363
  }
5327
5364
  };
5328
- function tr(e, t, n, r) {
5365
+ function sr(e, t, n, r) {
5329
5366
  e %= 14;
5330
5367
  let i, a, o, s, c, l;
5331
5368
  e ? e == 1 ? (o = 0 | n * .5, s = 0 | n * .8, t.j(n - o, 0, o, s, 2)) : e == 2 ? (o = 0 | n / 3, t.i(o, o, n - o, n - o)) : e == 3 ? (c = n * .1, l = n < 6 ? 1 : n < 8 ? 2 : 0 | n * .25, c = c > 1 ? 0 | c : c > .5 ? 1 : c, t.i(l, l, n - c - l, n - c - l)) : e == 4 ? (a = 0 | n * .15, o = 0 | n * .5, t.h(n - o - a, n - o - a, o)) : e == 5 ? (c = n * .1, l = c * 4, l > 3 && (l = 0 | l), t.i(0, 0, n, n), t.g([
@@ -5361,40 +5398,40 @@ function tr(e, t, n, r) {
5361
5398
  n
5362
5399
  ]));
5363
5400
  }
5364
- function nr(e, t, n) {
5401
+ function cr(e, t, n) {
5365
5402
  e %= 4;
5366
5403
  let r;
5367
5404
  e ? e == 1 ? t.j(0, n / 2, n, n / 2, 0) : e == 2 ? t.K(0, 0, n, n) : (r = n / 6, t.h(r, r, n - 2 * r)) : t.j(0, 0, n, n, 0);
5368
5405
  }
5369
- function rr(e, t) {
5406
+ function lr(e, t) {
5370
5407
  return e = t.W(e), [
5371
- V(e, t.D, t.F(0)),
5372
- V(e, t.o, t.p(.5)),
5373
- V(e, t.D, t.F(1)),
5374
- V(e, t.o, t.p(1)),
5375
- V(e, t.o, t.p(0))
5408
+ Qn(e, t.D, t.F(0)),
5409
+ Qn(e, t.o, t.p(.5)),
5410
+ Qn(e, t.D, t.F(1)),
5411
+ Qn(e, t.o, t.p(1)),
5412
+ Qn(e, t.o, t.p(0))
5376
5413
  ];
5377
5414
  }
5378
- function ir(e, t, n) {
5379
- let r = Xn(n, .08);
5415
+ function ur(e, t, n) {
5416
+ let r = nr(n, .08);
5380
5417
  r.G && e.m(r.G);
5381
5418
  let i = e.k, a = .5 + i * r.X | 0;
5382
5419
  i -= a * 2;
5383
- let o = new er(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
5420
+ let o = new or(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
5384
5421
  function u(n, r, i, a, u) {
5385
- let p = B(t, i, 1), m = a ? B(t, a, 1) : 0;
5422
+ let p = qn(t, i, 1), m = a ? qn(t, a, 1) : 0;
5386
5423
  e.L(d[f[n]]);
5387
- for (let e = 0; e < u.length; e++) o.u = new Qn(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
5424
+ for (let e = 0; e < u.length; e++) o.u = new ir(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
5388
5425
  e.M();
5389
5426
  }
5390
- let d = rr(B(t, -7) / 268435455, r), f = [], p;
5427
+ let d = lr(qn(t, -7) / 268435455, r), f = [], p;
5391
5428
  function m(e) {
5392
5429
  if (e.indexOf(p) >= 0) {
5393
5430
  for (let t = 0; t < e.length; t++) if (f.indexOf(e[t]) >= 0) return !0;
5394
5431
  }
5395
5432
  }
5396
- for (let e = 0; e < 3; e++) p = B(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
5397
- u(0, nr, 2, 3, [
5433
+ for (let e = 0; e < 3; e++) p = qn(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
5434
+ u(0, cr, 2, 3, [
5398
5435
  [1, 0],
5399
5436
  [2, 0],
5400
5437
  [2, 3],
@@ -5403,19 +5440,19 @@ function ir(e, t, n) {
5403
5440
  [3, 1],
5404
5441
  [3, 2],
5405
5442
  [0, 2]
5406
- ]), u(1, nr, 4, 5, [
5443
+ ]), u(1, cr, 4, 5, [
5407
5444
  [0, 0],
5408
5445
  [3, 0],
5409
5446
  [3, 3],
5410
5447
  [0, 3]
5411
- ]), u(2, tr, 1, null, [
5448
+ ]), u(2, sr, 1, null, [
5412
5449
  [1, 1],
5413
5450
  [2, 1],
5414
5451
  [2, 2],
5415
5452
  [1, 2]
5416
5453
  ]), e.finish();
5417
5454
  }
5418
- function ar(e) {
5455
+ function dr(e) {
5419
5456
  var t = 0, n = 0, r = encodeURI(e) + "%80", i = [], a, o = [], s = 1732584193, c = 4023233417, l = ~s, u = ~c, d = 3285377520, f = [
5420
5457
  s,
5421
5458
  c,
@@ -5434,39 +5471,39 @@ function ar(e) {
5434
5471
  for (t = 0; t < 40; t++) m += (f[t >> 3] >>> (7 - (t & 7)) * 4 & 15).toString(16);
5435
5472
  return m;
5436
5473
  }
5437
- function or(e) {
5474
+ function fr(e) {
5438
5475
  return /^[0-9a-f]{11,}$/i.test(e) && e;
5439
5476
  }
5440
- function sr(e) {
5441
- return ar(e == null ? "" : "" + e);
5477
+ function pr(e) {
5478
+ return dr(e == null ? "" : "" + e);
5442
5479
  }
5443
5480
  typeof document < "u" && document.querySelectorAll.bind(document);
5444
- function H(e) {
5481
+ function mr(e) {
5445
5482
  return (e * 10 + .5 | 0) / 10;
5446
5483
  }
5447
- var cr = class {
5484
+ var hr = class {
5448
5485
  constructor() {
5449
5486
  this.v = "";
5450
5487
  }
5451
5488
  g(e) {
5452
5489
  let t = "";
5453
- for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") + H(e[n].x) + " " + H(e[n].y);
5490
+ for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") + mr(e[n].x) + " " + mr(e[n].y);
5454
5491
  this.v += t + "Z";
5455
5492
  }
5456
5493
  h(e, t, n) {
5457
- let r = +!n, i = H(t / 2), a = H(t), o = "a" + i + "," + i + " 0 1," + r + " ";
5458
- this.v += "M" + H(e.x) + " " + H(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
5494
+ let r = +!n, i = mr(t / 2), a = mr(t), o = "a" + i + "," + i + " 0 1," + r + " ";
5495
+ this.v += "M" + mr(e.x) + " " + mr(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
5459
5496
  }
5460
- }, lr = class {
5497
+ }, gr = class {
5461
5498
  constructor(e) {
5462
5499
  this.A, this.B = {}, this.O = e, this.k = e.k;
5463
5500
  }
5464
5501
  m(e) {
5465
- let t = /^(#......)(..)?/.exec(e), n = t[2] ? B(t[2], 0) / 255 : 1;
5502
+ let t = /^(#......)(..)?/.exec(e), n = t[2] ? qn(t[2], 0) / 255 : 1;
5466
5503
  this.O.m(t[1], n);
5467
5504
  }
5468
5505
  L(e) {
5469
- this.A = this.B[e] || (this.B[e] = new cr());
5506
+ this.A = this.B[e] || (this.B[e] = new hr());
5470
5507
  }
5471
5508
  M() {}
5472
5509
  g(e) {
@@ -5479,13 +5516,13 @@ var cr = class {
5479
5516
  let e = this.B;
5480
5517
  for (let t in e) e.hasOwnProperty(t) && this.O.P(t, e[t].v);
5481
5518
  }
5482
- }, ur = {
5519
+ }, _r = {
5483
5520
  R: "http://www.w3.org/2000/svg",
5484
5521
  S: "width",
5485
5522
  T: "height"
5486
- }, dr = class {
5523
+ }, vr = class {
5487
5524
  constructor(e) {
5488
- this.k = e, this.C = "<svg xmlns=\"" + ur.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
5525
+ this.k = e, this.C = "<svg xmlns=\"" + _r.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
5489
5526
  }
5490
5527
  m(e, t) {
5491
5528
  t && (this.C += "<rect width=\"100%\" height=\"100%\" fill=\"" + e + "\" opacity=\"" + t.toFixed(2) + "\"/>");
@@ -5497,16 +5534,16 @@ var cr = class {
5497
5534
  return this.C + "</svg>";
5498
5535
  }
5499
5536
  };
5500
- function fr(e, t, n) {
5501
- let r = new dr(t);
5502
- return ir(new lr(r), or(e) || sr(e), n), r.toString();
5537
+ function yr(e, t, n) {
5538
+ let r = new vr(t);
5539
+ return ur(new gr(r), fr(e) || pr(e), n), r.toString();
5503
5540
  }
5504
5541
  //#endregion
5505
- //#region ../../node_modules/.pnpm/lucide-react@1.14.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
5506
- var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), mr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), gr = (e) => {
5507
- let t = hr(e);
5542
+ //#region ../../node_modules/.pnpm/lucide-react@1.30.0_react@19.2.8/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
5543
+ var br = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), xr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Cr = (e) => {
5544
+ let t = Sr(e);
5508
5545
  return t.charAt(0).toUpperCase() + t.slice(1);
5509
- }, _r = {
5546
+ }, wr = {
5510
5547
  xmlns: "http://www.w3.org/2000/svg",
5511
5548
  width: 24,
5512
5549
  height: 24,
@@ -5516,34 +5553,37 @@ var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
5516
5553
  strokeWidth: 2,
5517
5554
  strokeLinecap: "round",
5518
5555
  strokeLinejoin: "round"
5519
- }, vr = (e) => {
5556
+ }, Tr = (e) => {
5520
5557
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
5521
5558
  return !1;
5522
- }, yr = n({}), br = () => o(yr), xr = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
5523
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = br() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
5559
+ }, Er = n({}), Dr = () => o(Er), Or = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
5560
+ let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Dr() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
5524
5561
  return r("svg", {
5525
5562
  ref: l,
5526
- ..._r,
5527
- width: t ?? u ?? _r.width,
5528
- height: t ?? u ?? _r.height,
5563
+ ...wr,
5564
+ width: t ?? u ?? wr.width,
5565
+ height: t ?? u ?? wr.height,
5529
5566
  stroke: e ?? p,
5530
5567
  strokeWidth: h,
5531
- className: pr("lucide", m, a),
5532
- ...!o && !vr(c) && { "aria-hidden": "true" },
5568
+ className: br("lucide", m, a),
5569
+ ...!o && !Tr(c) && { "aria-hidden": "true" },
5533
5570
  ...c
5534
5571
  }, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
5535
- }), Sr = (e, t) => {
5536
- let n = i(({ className: n, ...i }, a) => r(xr, {
5572
+ }), kr = (e, t) => {
5573
+ let n = i(({ className: n, ...i }, a) => r(Or, {
5537
5574
  ref: a,
5538
5575
  iconNode: t,
5539
- className: pr(`lucide-${mr(gr(e))}`, `lucide-${e}`, n),
5576
+ className: br(`lucide-${xr(Cr(e))}`, `lucide-${e}`, n),
5540
5577
  ...i
5541
5578
  }));
5542
- return n.displayName = gr(e), n;
5543
- }, Cr = Sr("message-circle", [["path", {
5579
+ return n.displayName = Cr(e), n;
5580
+ }, Ar = kr("chevron-down", [["path", {
5581
+ d: "m6 9 6 6 6-6",
5582
+ key: "qrunsl"
5583
+ }]]), jr = kr("message-circle", [["path", {
5544
5584
  d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
5545
5585
  key: "1sd12s"
5546
- }]]), wr = Sr("search", [["path", {
5586
+ }]]), Mr = kr("search", [["path", {
5547
5587
  d: "m21 21-4.34-4.34",
5548
5588
  key: "14j7rj"
5549
5589
  }], ["circle", {
@@ -5551,7 +5591,7 @@ var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
5551
5591
  cy: "11",
5552
5592
  r: "8",
5553
5593
  key: "4ej97u"
5554
- }]]), Tr = Sr("triangle-alert", [
5594
+ }]]), Nr = kr("triangle-alert", [
5555
5595
  ["path", {
5556
5596
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
5557
5597
  key: "wmoenq"
@@ -5564,22 +5604,56 @@ var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
5564
5604
  d: "M12 17h.01",
5565
5605
  key: "p32p05"
5566
5606
  }]
5567
- ]), Er = n({});
5568
- function Dr({ children: e, onStartDirectMessage: t }) {
5569
- return /* @__PURE__ */ D(Er.Provider, {
5570
- value: { onStartDirectMessage: t },
5571
- children: e
5572
- });
5573
- }
5574
- function Or() {
5575
- return o(Er);
5576
- }
5577
- var kr = {
5607
+ ]), Pr = kr("user-plus", [
5608
+ ["path", {
5609
+ d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
5610
+ key: "1yyitq"
5611
+ }],
5612
+ ["circle", {
5613
+ cx: "9",
5614
+ cy: "7",
5615
+ r: "4",
5616
+ key: "nufk8"
5617
+ }],
5618
+ ["line", {
5619
+ x1: "19",
5620
+ x2: "19",
5621
+ y1: "8",
5622
+ y2: "14",
5623
+ key: "1bvyxn"
5624
+ }],
5625
+ ["line", {
5626
+ x1: "22",
5627
+ x2: "16",
5628
+ y1: "11",
5629
+ y2: "11",
5630
+ key: "1shjgl"
5631
+ }]
5632
+ ]), Fr = kr("x", [["path", {
5633
+ d: "M18 6 6 18",
5634
+ key: "1bl5f8"
5635
+ }], ["path", {
5636
+ d: "m6 6 12 12",
5637
+ key: "d8bk6v"
5638
+ }]]), Ir = n({});
5639
+ function Lr(e) {
5640
+ let t = (0, Z.c)(5), { children: n, onStartDirectMessage: r } = e, i;
5641
+ t[0] === r ? i = t[1] : (i = { onStartDirectMessage: r }, t[0] = r, t[1] = i);
5642
+ let a;
5643
+ return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ L(Ir.Provider, {
5644
+ value: i,
5645
+ children: n
5646
+ }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
5647
+ }
5648
+ function Rr() {
5649
+ return o(Ir);
5650
+ }
5651
+ var zr = {
5578
5652
  unknown: "Unknown",
5579
5653
  startDirectMessage: "Start direct message",
5580
5654
  emailVerified: "Email verified",
5581
5655
  emailUnverified: "Email not verified"
5582
- }, Ar = {
5656
+ }, Br = {
5583
5657
  unknown: "Gelöscht",
5584
5658
  startDirectMessage: "Direktnachricht starten",
5585
5659
  emailVerified: "E-Mail bestätigt",
@@ -5587,87 +5661,137 @@ var kr = {
5587
5661
  };
5588
5662
  //#endregion
5589
5663
  //#region src/lib/components/attraccess-user/AttraccessUser.tsx
5590
- function jr({ user: e, description: t, className: n, onStartDirectMessage: r, variant: i = "full" }) {
5591
- let { t: o } = Vn({
5592
- en: kr,
5593
- de: Ar
5594
- }), s = Or(), l = !e || !!e?.deletedAt, u = c(() => {
5595
- if (l) return;
5596
- let t = fr(e?.id || "unknown", 100);
5597
- return `data:image/svg+xml;base64,${btoa(t)}`;
5598
- }, [l, e]), h = e?.username || o("unknown"), g = a(() => {
5599
- r ? r(e) : s.onStartDirectMessage(e);
5600
- }, [
5601
- e,
5602
- r,
5603
- s
5604
- ]), _ = !!e && !!g, v = /* @__PURE__ */ O(d, { children: [u ? /* @__PURE__ */ D(p, {
5605
- src: u,
5606
- alt: h
5607
- }) : null, /* @__PURE__ */ D(f, {
5608
- color: l ? "warning" : void 0,
5609
- children: l ? /* @__PURE__ */ D(Tr, { className: "w-4 h-4" }) : h.slice(0, 2).toUpperCase()
5610
- })] }), y = /* @__PURE__ */ O("div", {
5611
- className: `flex items-center gap-2 ${n ?? ""}`,
5612
- children: [v, /* @__PURE__ */ O("div", {
5613
- className: "flex flex-col",
5614
- children: [/* @__PURE__ */ O("div", {
5615
- className: "flex flex-row items-center",
5616
- children: [/* @__PURE__ */ D("span", {
5617
- className: "text-sm font-medium",
5618
- children: l ? /* @__PURE__ */ D("del", { children: h }) : h
5619
- }), /* @__PURE__ */ D(m, {
5620
- isIconOnly: !0,
5621
- variant: "ghost",
5622
- size: "sm",
5623
- onPress: g,
5624
- children: /* @__PURE__ */ D(Cr, {})
5625
- })]
5626
- }), t && /* @__PURE__ */ D("span", {
5627
- className: "text-xs text-muted-foreground",
5628
- children: l ? /* @__PURE__ */ D("del", { children: t }) : t
5629
- })]
5630
- })]
5631
- }), b = i === "mini" ? v : y;
5632
- return _ ? /* @__PURE__ */ O(S, { children: [/* @__PURE__ */ D(S.Trigger, {
5633
- className: "inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
5634
- children: b
5635
- }), /* @__PURE__ */ D(S.Content, { children: /* @__PURE__ */ O(S.Dialog, {
5664
+ function Vr(e) {
5665
+ let t = (0, Z.c)(62), { user: n, description: r, className: i, onStartDirectMessage: a, variant: o, interactive: s } = e, c = o === void 0 ? "full" : o, l = s === void 0 || s, u;
5666
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
5667
+ en: zr,
5668
+ de: Br
5669
+ }, t[0] = u) : u = t[0];
5670
+ let { t: d } = Wn(u), g = Rr(), _ = !n || !!n?.deletedAt, v;
5671
+ bb0: {
5672
+ if (_) {
5673
+ v = void 0;
5674
+ break bb0;
5675
+ }
5676
+ let e;
5677
+ if (t[1] !== n?.id) {
5678
+ let r = yr(n?.id || "unknown", 100);
5679
+ e = btoa(r), t[1] = n?.id, t[2] = e;
5680
+ } else e = t[2];
5681
+ v = `data:image/svg+xml;base64,${e}`;
5682
+ }
5683
+ let y = v, b, x, S, C, w, T, E, D;
5684
+ if (t[3] !== g || t[4] !== y || t[5] !== l || t[6] !== _ || t[7] !== a || t[8] !== d || t[9] !== n) {
5685
+ C = n?.username || d("unknown");
5686
+ let e;
5687
+ t[18] !== g || t[19] !== a || t[20] !== n ? (e = () => {
5688
+ a ? a(n) : g.onStartDirectMessage(n);
5689
+ }, t[18] = g, t[19] = a, t[20] = n, t[21] = e) : e = t[21], w = e, S = l && !!n && !!w, x = f, D = y ? /* @__PURE__ */ L(m, {
5690
+ src: y,
5691
+ alt: C
5692
+ }) : null, b = p, T = _ ? "warning" : void 0, E = _ ? /* @__PURE__ */ L(Nr, { className: "w-4 h-4" }) : C.slice(0, 2).toUpperCase(), t[3] = g, t[4] = y, t[5] = l, t[6] = _, t[7] = a, t[8] = d, t[9] = n, t[10] = b, t[11] = x, t[12] = S, t[13] = C, t[14] = w, t[15] = T, t[16] = E, t[17] = D;
5693
+ } else b = t[10], x = t[11], S = t[12], C = t[13], w = t[14], T = t[15], E = t[16], D = t[17];
5694
+ let O;
5695
+ t[22] !== b || t[23] !== T || t[24] !== E ? (O = /* @__PURE__ */ L(b, {
5696
+ color: T,
5697
+ children: E
5698
+ }), t[22] = b, t[23] = T, t[24] = E, t[25] = O) : O = t[25];
5699
+ let ee;
5700
+ t[26] !== x || t[27] !== D || t[28] !== O ? (ee = /* @__PURE__ */ R(x, { children: [D, O] }), t[26] = x, t[27] = D, t[28] = O, t[29] = ee) : ee = t[29];
5701
+ let te = ee, ne = `flex items-center gap-2 ${i ?? ""}`, A;
5702
+ t[30] !== _ || t[31] !== C ? (A = _ ? /* @__PURE__ */ L("del", { children: C }) : C, t[30] = _, t[31] = C, t[32] = A) : A = t[32];
5703
+ let j;
5704
+ t[33] === A ? j = t[34] : (j = /* @__PURE__ */ L("span", {
5705
+ className: "text-sm font-medium group-hover:underline",
5706
+ children: A
5707
+ }), t[33] = A, t[34] = j);
5708
+ let M;
5709
+ t[35] === S ? M = t[36] : (M = S && /* @__PURE__ */ L(Ar, {
5710
+ className: "h-3 w-3 text-muted-foreground shrink-0",
5711
+ "aria-hidden": "true",
5712
+ focusable: "false"
5713
+ }), t[35] = S, t[36] = M);
5714
+ let N;
5715
+ t[37] !== j || t[38] !== M ? (N = /* @__PURE__ */ R("div", {
5716
+ className: "flex flex-row items-center gap-1",
5717
+ children: [j, M]
5718
+ }), t[37] = j, t[38] = M, t[39] = N) : N = t[39];
5719
+ let re;
5720
+ t[40] !== r || t[41] !== _ ? (re = r && /* @__PURE__ */ L("span", {
5721
+ className: "text-xs text-muted-foreground",
5722
+ children: _ ? /* @__PURE__ */ L("del", { children: r }) : r
5723
+ }), t[40] = r, t[41] = _, t[42] = re) : re = t[42];
5724
+ let P;
5725
+ t[43] !== N || t[44] !== re ? (P = /* @__PURE__ */ R("div", {
5726
+ className: "flex flex-col",
5727
+ children: [N, re]
5728
+ }), t[43] = N, t[44] = re, t[45] = P) : P = t[45];
5729
+ let ie;
5730
+ t[46] !== te || t[47] !== ne || t[48] !== P ? (ie = /* @__PURE__ */ R("div", {
5731
+ className: ne,
5732
+ children: [te, P]
5733
+ }), t[46] = te, t[47] = ne, t[48] = P, t[49] = ie) : ie = t[49];
5734
+ let ae = ie, F = c === "mini" ? te : ae;
5735
+ if (!S) return F;
5736
+ let I;
5737
+ t[50] === F ? I = t[51] : (I = /* @__PURE__ */ L(k.Trigger, {
5738
+ className: "group inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
5739
+ children: F
5740
+ }), t[50] = F, t[51] = I);
5741
+ let oe;
5742
+ t[52] !== _ || t[53] !== w || t[54] !== d ? (oe = !_ && /* @__PURE__ */ R(h, {
5743
+ variant: "primary",
5744
+ size: "sm",
5745
+ className: "w-full",
5746
+ onPress: w,
5747
+ children: [/* @__PURE__ */ L(jr, { className: "h-4 w-4" }), d("startDirectMessage")]
5748
+ }), t[52] = _, t[53] = w, t[54] = d, t[55] = oe) : oe = t[55];
5749
+ let z;
5750
+ t[56] !== oe || t[57] !== ae ? (z = /* @__PURE__ */ L(k.Content, { children: /* @__PURE__ */ R(k.Dialog, {
5636
5751
  className: "flex w-64 flex-col gap-3 p-4",
5637
- children: [y, !l && /* @__PURE__ */ O(m, {
5638
- variant: "primary",
5639
- size: "sm",
5640
- className: "w-full",
5641
- onPress: g,
5642
- children: [/* @__PURE__ */ D(Cr, { className: "h-4 w-4" }), o("startDirectMessage")]
5643
- })]
5644
- }) })] }) : b;
5752
+ children: [ae, oe]
5753
+ }) }), t[56] = oe, t[57] = ae, t[58] = z) : z = t[58];
5754
+ let B;
5755
+ return t[59] !== I || t[60] !== z ? (B = /* @__PURE__ */ R(k, { children: [I, z] }), t[59] = I, t[60] = z, t[61] = B) : B = t[61], B;
5756
+ }
5757
+ //#endregion
5758
+ //#region src/lib/hooks/useDebounce.ts
5759
+ function Hr(e, t) {
5760
+ let n = (0, Z.c)(4), [r, i] = d(e), a, o;
5761
+ return n[0] !== t || n[1] !== e ? (a = () => {
5762
+ let n = setTimeout(() => {
5763
+ i(e);
5764
+ }, t);
5765
+ return () => {
5766
+ clearTimeout(n);
5767
+ };
5768
+ }, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), s(a, o), r;
5645
5769
  }
5646
5770
  //#endregion
5647
5771
  //#region src/lib/hooks/useFormatDateTime.tsx
5648
- function Mr(e) {
5649
- let { showTime: t = !0, showDate: n = !0, showSeconds: r = !1 } = e ?? {}, { language: i } = z(), o = c(() => {
5772
+ function Ur(e) {
5773
+ let t = (0, Z.c)(9), n;
5774
+ t[0] === e ? n = t[1] : (n = e ?? {}, t[0] = e, t[1] = n);
5775
+ let { showTime: r, showDate: i, showSeconds: a } = n, o = r === void 0 || r, s = i === void 0 || i, c = a !== void 0 && a, { language: l } = Vn(), u;
5776
+ if (t[2] !== l || t[3] !== s || t[4] !== c || t[5] !== o) {
5650
5777
  let e = {};
5651
- return t && (e.hour12 = !1, e.hour = "2-digit", e.minute = "2-digit", r && (e.second = "2-digit")), n && (e.day = "2-digit", e.month = "2-digit", e.year = "numeric"), new Intl.DateTimeFormat(i, e);
5652
- }, [
5653
- n,
5654
- t,
5655
- r,
5656
- i
5657
- ]);
5658
- return a((e, t) => {
5778
+ o && (e.hour12 = !1, e.hour = "2-digit", e.minute = "2-digit", c && (e.second = "2-digit")), s && (e.day = "2-digit", e.month = "2-digit", e.year = "numeric"), u = new Intl.DateTimeFormat(l, e), t[2] = l, t[3] = s, t[4] = c, t[5] = o, t[6] = u;
5779
+ } else u = t[6];
5780
+ let d = u, f;
5781
+ return t[7] === d ? f = t[8] : (f = (e, t) => {
5659
5782
  if (e == null) return t ?? "-";
5660
5783
  let n = new Date(e);
5661
- return isNaN(n.getTime()) ? t ?? "-" : o.format(n);
5662
- }, [o]);
5784
+ return isNaN(n.getTime()) ? t ?? "-" : d.format(n);
5785
+ }, t[7] = d, t[8] = f), f;
5663
5786
  }
5664
- function Nr(e, t) {
5665
- return Mr(t)(e);
5787
+ function Wr(e, t) {
5788
+ let n = (0, Z.c)(3), r = Ur(t), i;
5789
+ return n[0] !== e || n[1] !== r ? (i = r(e), n[0] = e, n[1] = r, n[2] = i) : i = n[2], i;
5666
5790
  }
5667
5791
  //#endregion
5668
5792
  //#region src/lib/hooks/useFormatDuration.ts
5669
- function Pr(e) {
5670
- let { language: t } = z(), n = a((e) => {
5793
+ function Gr(e) {
5794
+ let { language: t } = Vn(), n = a((e) => {
5671
5795
  let n = 1440, r = Math.floor(e / n), i = Math.floor((e - r * n) / 60), a = e - r * n - i * 60;
5672
5796
  try {
5673
5797
  if (typeof Intl.DurationFormat == "function") {
@@ -5687,14 +5811,18 @@ function Pr(e) {
5687
5811
  return console.warn("Intl.DurationFormat not supported", e), t.startsWith("de") ? `${r}T ${i}Std. ${a}Min.` : `${r}T ${i}h ${a}m`;
5688
5812
  }
5689
5813
  }, [t]);
5690
- return c(() => n(e), [e, n]);
5814
+ return l(() => n(e), [e, n]);
5691
5815
  }
5692
5816
  //#endregion
5693
- //#region ../../node_modules/.pnpm/react-router@7.15.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-router/dist/development/chunk-4N6VE7H7.mjs
5694
- function U(e, t) {
5817
+ //#region ../../node_modules/.pnpm/react-router@7.18.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs
5818
+ var Kr = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, qr = /^[\\/]{2}/;
5819
+ function Jr(e, t) {
5820
+ return t + e.replace(/\\/g, "/");
5821
+ }
5822
+ function Q(e, t) {
5695
5823
  if (e === !1 || e == null) throw Error(t);
5696
5824
  }
5697
- function W(e, t) {
5825
+ function Yr(e, t) {
5698
5826
  if (!e) {
5699
5827
  typeof console < "u" && console.warn(t);
5700
5828
  try {
@@ -5702,10 +5830,10 @@ function W(e, t) {
5702
5830
  } catch {}
5703
5831
  }
5704
5832
  }
5705
- function Fr({ pathname: e = "/", search: t = "", hash: n = "" }) {
5833
+ function Xr({ pathname: e = "/", search: t = "", hash: n = "" }) {
5706
5834
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
5707
5835
  }
5708
- function G(e) {
5836
+ function Zr(e) {
5709
5837
  let t = {};
5710
5838
  if (e) {
5711
5839
  let n = e.indexOf("#");
@@ -5715,32 +5843,21 @@ function G(e) {
5715
5843
  }
5716
5844
  return t;
5717
5845
  }
5718
- function Ir(e, t, n = "/") {
5719
- return Lr(e, t, n, !1);
5846
+ function Qr(e, t, n = "/") {
5847
+ return $r(e, t, n, !1);
5720
5848
  }
5721
- function Lr(e, t, n, r, i) {
5722
- let a = K((typeof t == "string" ? G(t) : t).pathname || "/", n);
5849
+ function $r(e, t, n, r, i) {
5850
+ let a = vi((typeof t == "string" ? Zr(t) : t).pathname || "/", n);
5723
5851
  if (a == null) return null;
5724
- let o = i ?? zr(e), s = null, c = ti(a);
5725
- for (let e = 0; s == null && e < o.length; ++e) s = Qr(o[e], c, r);
5852
+ let o = i ?? ei(e), s = null, c = _i(a);
5853
+ for (let e = 0; s == null && e < o.length; ++e) s = pi(o[e], c, r);
5726
5854
  return s;
5727
5855
  }
5728
- function Rr(e, t) {
5729
- let { route: n, pathname: r, params: i } = e;
5730
- return {
5731
- id: n.id,
5732
- pathname: r,
5733
- params: i,
5734
- data: t[n.id],
5735
- loaderData: t[n.id],
5736
- handle: n.handle
5737
- };
5738
- }
5739
- function zr(e) {
5740
- let t = Br(e);
5741
- return Hr(t), t;
5856
+ function ei(e) {
5857
+ let t = ti(e);
5858
+ return ri(t), t;
5742
5859
  }
5743
- function Br(e, t = [], n = [], r = "", i = !1) {
5860
+ function ti(e, t = [], n = [], r = "", i = !1) {
5744
5861
  let a = (e, a, o = i, s) => {
5745
5862
  let c = {
5746
5863
  relativePath: s === void 0 ? e.path || "" : s,
@@ -5750,68 +5867,79 @@ function Br(e, t = [], n = [], r = "", i = !1) {
5750
5867
  };
5751
5868
  if (c.relativePath.startsWith("/")) {
5752
5869
  if (!c.relativePath.startsWith(r) && o) return;
5753
- U(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
5870
+ Q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
5754
5871
  }
5755
- let l = q([r, c.relativePath]), u = n.concat(c);
5756
- e.children && e.children.length > 0 && (U(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Br(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
5872
+ let l = $([r, c.relativePath]), u = n.concat(c);
5873
+ e.children && e.children.length > 0 && (Q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), ti(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
5757
5874
  path: l,
5758
- score: Xr(l, e.index),
5759
- routesMeta: u
5875
+ score: di(l, e.index),
5876
+ routesMeta: u.map((e, t) => {
5877
+ let [n, r] = gi(e.relativePath, e.caseSensitive, t === u.length - 1);
5878
+ return {
5879
+ ...e,
5880
+ matcher: n,
5881
+ compiledParams: r
5882
+ };
5883
+ })
5760
5884
  });
5761
5885
  };
5762
5886
  return e.forEach((e, t) => {
5763
5887
  if (e.path === "" || !e.path?.includes("?")) a(e, t);
5764
- else for (let n of Vr(e.path)) a(e, t, !0, n);
5888
+ else for (let n of ni(e.path)) a(e, t, !0, n);
5765
5889
  }), t;
5766
5890
  }
5767
- function Vr(e) {
5891
+ function ni(e) {
5768
5892
  let t = e.split("/");
5769
5893
  if (t.length === 0) return [];
5770
5894
  let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
5771
5895
  if (r.length === 0) return i ? [a, ""] : [a];
5772
- let o = Vr(r.join("/")), s = [];
5896
+ let o = ni(r.join("/")), s = [];
5773
5897
  return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
5774
5898
  }
5775
- function Hr(e) {
5776
- e.sort((e, t) => e.score === t.score ? Zr(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
5899
+ function ri(e) {
5900
+ e.sort((e, t) => e.score === t.score ? fi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
5777
5901
  }
5778
- var Ur = /^:[\w-]+$/, Wr = 3, Gr = 2, Kr = 1, qr = 10, Jr = -2, Yr = (e) => e === "*";
5779
- function Xr(e, t) {
5902
+ var ii = /^:[\w-]+$/, ai = 3, oi = 2, si = 1, ci = 10, li = -2, ui = (e) => e === "*";
5903
+ function di(e, t) {
5780
5904
  let n = e.split("/"), r = n.length;
5781
- return n.some(Yr) && (r += Jr), t && (r += Gr), n.filter((e) => !Yr(e)).reduce((e, t) => e + (Ur.test(t) ? Wr : t === "" ? Kr : qr), r);
5905
+ return n.some(ui) && (r += li), t && (r += oi), n.filter((e) => !ui(e)).reduce((e, t) => e + (ii.test(t) ? ai : t === "" ? si : ci), r);
5782
5906
  }
5783
- function Zr(e, t) {
5907
+ function fi(e, t) {
5784
5908
  return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
5785
5909
  }
5786
- function Qr(e, t, n = !1) {
5910
+ function pi(e, t, n = !1) {
5787
5911
  let { routesMeta: r } = e, i = {}, a = "/", o = [];
5788
5912
  for (let e = 0; e < r.length; ++e) {
5789
- let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = $r({
5913
+ let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
5790
5914
  path: s.relativePath,
5791
5915
  caseSensitive: s.caseSensitive,
5792
5916
  end: c
5793
- }, l), d = s.route;
5794
- if (!u && c && n && !r[r.length - 1].route.index && (u = $r({
5917
+ }, d = s.matcher && s.compiledParams ? hi(u, l, s.matcher, s.compiledParams) : mi(u, l), f = s.route;
5918
+ if (!d && c && n && !r[r.length - 1].route.index && (d = mi({
5795
5919
  path: s.relativePath,
5796
5920
  caseSensitive: s.caseSensitive,
5797
5921
  end: !1
5798
- }, l)), !u) return null;
5799
- Object.assign(i, u.params), o.push({
5922
+ }, l)), !d) return null;
5923
+ Object.assign(i, d.params), o.push({
5800
5924
  params: i,
5801
- pathname: q([a, u.pathname]),
5802
- pathnameBase: di(q([a, u.pathnameBase])),
5803
- route: d
5804
- }), u.pathnameBase !== "/" && (a = q([a, u.pathnameBase]));
5925
+ pathname: $([a, d.pathname]),
5926
+ pathnameBase: Di($([a, d.pathnameBase])),
5927
+ route: f
5928
+ }), d.pathnameBase !== "/" && (a = $([a, d.pathnameBase]));
5805
5929
  }
5806
5930
  return o;
5807
5931
  }
5808
- function $r(e, t) {
5932
+ function mi(e, t) {
5809
5933
  typeof e == "string" && (e = {
5810
5934
  path: e,
5811
5935
  caseSensitive: !1,
5812
5936
  end: !0
5813
5937
  });
5814
- let [n, r] = ei(e.path, e.caseSensitive, e.end), i = t.match(n);
5938
+ let [n, r] = gi(e.path, e.caseSensitive, e.end);
5939
+ return hi(e, t, n, r);
5940
+ }
5941
+ function hi(e, t, n, r) {
5942
+ let i = t.match(n);
5815
5943
  if (!i) return null;
5816
5944
  let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
5817
5945
  return {
@@ -5821,15 +5949,15 @@ function $r(e, t) {
5821
5949
  o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
5822
5950
  }
5823
5951
  let i = s[r];
5824
- return n && !i ? e[t] = void 0 : e[t] = (i || "").replace(/%2F/g, "/"), e;
5952
+ return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
5825
5953
  }, {}),
5826
5954
  pathname: a,
5827
5955
  pathnameBase: o,
5828
5956
  pattern: e
5829
5957
  };
5830
5958
  }
5831
- function ei(e, t = !1, n = !0) {
5832
- W(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
5959
+ function gi(e, t = !1, n = !0) {
5960
+ Yr(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
5833
5961
  let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
5834
5962
  if (r.push({
5835
5963
  paramName: t,
@@ -5842,47 +5970,46 @@ function ei(e, t = !1, n = !0) {
5842
5970
  }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
5843
5971
  return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
5844
5972
  }
5845
- function ti(e) {
5973
+ function _i(e) {
5846
5974
  try {
5847
5975
  return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
5848
5976
  } catch (t) {
5849
- return W(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
5977
+ return Yr(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
5850
5978
  }
5851
5979
  }
5852
- function K(e, t) {
5980
+ function vi(e, t) {
5853
5981
  if (t === "/") return e;
5854
5982
  if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
5855
5983
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
5856
5984
  return r && r !== "/" ? null : e.slice(n) || "/";
5857
5985
  }
5858
- var ni = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
5859
- function ri(e, t = "/") {
5860
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? G(e) : e, a;
5861
- return n ? (n = li(n), a = n.startsWith("/") ? ii(n.substring(1), "/") : ii(n, t)) : a = t, {
5986
+ function yi(e, t = "/") {
5987
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Zr(e) : e, a;
5988
+ return n ? (n = Ti(n), a = n.startsWith("/") ? bi(n.substring(1), "/") : bi(n, t)) : a = t, {
5862
5989
  pathname: a,
5863
- search: fi(r),
5864
- hash: pi(i)
5990
+ search: Oi(r),
5991
+ hash: ki(i)
5865
5992
  };
5866
5993
  }
5867
- function ii(e, t) {
5868
- let n = ui(t).split("/");
5994
+ function bi(e, t) {
5995
+ let n = Ei(t).split("/");
5869
5996
  return e.split("/").forEach((e) => {
5870
5997
  e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
5871
5998
  }), n.length > 1 ? n.join("/") : "/";
5872
5999
  }
5873
- function ai(e, t, n, r) {
6000
+ function xi(e, t, n, r) {
5874
6001
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
5875
6002
  }
5876
- function oi(e) {
6003
+ function Si(e) {
5877
6004
  return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
5878
6005
  }
5879
- function si(e) {
5880
- let t = oi(e);
6006
+ function Ci(e) {
6007
+ let t = Si(e);
5881
6008
  return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
5882
6009
  }
5883
- function ci(e, t, n, r = !1) {
6010
+ function wi(e, t, n, r = !1) {
5884
6011
  let i;
5885
- typeof e == "string" ? i = G(e) : (i = { ...e }, U(!i.pathname || !i.pathname.includes("?"), ai("?", "pathname", "search", i)), U(!i.pathname || !i.pathname.includes("#"), ai("#", "pathname", "hash", i)), U(!i.search || !i.search.includes("#"), ai("#", "search", "hash", i)));
6012
+ typeof e == "string" ? i = Zr(e) : (i = { ...e }, Q(!i.pathname || !i.pathname.includes("?"), xi("?", "pathname", "search", i)), Q(!i.pathname || !i.pathname.includes("#"), xi("#", "pathname", "hash", i)), Q(!i.search || !i.search.includes("#"), xi("#", "search", "hash", i)));
5886
6013
  let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
5887
6014
  if (o == null) s = n;
5888
6015
  else {
@@ -5894,34 +6021,34 @@ function ci(e, t, n, r = !1) {
5894
6021
  }
5895
6022
  s = e >= 0 ? t[e] : "/";
5896
6023
  }
5897
- let c = ri(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
6024
+ let c = yi(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
5898
6025
  return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
5899
6026
  }
5900
- var li = (e) => e.replace(/\/\/+/g, "/"), q = (e) => li(e.join("/")), ui = (e) => e.replace(/\/+$/, ""), di = (e) => ui(e).replace(/^\/*/, "/"), fi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, pi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, mi = class {
6027
+ var Ti = (e) => e.replace(/[\\/]{2,}/g, "/"), $ = (e) => Ti(e.join("/")), Ei = (e) => e.replace(/\/+$/, ""), Di = (e) => Ei(e).replace(/^\/*/, "/"), Oi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ki = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ai = class {
5901
6028
  constructor(e, t, n, r = !1) {
5902
6029
  this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
5903
6030
  }
5904
6031
  };
5905
- function hi(e) {
6032
+ function ji(e) {
5906
6033
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
5907
6034
  }
5908
- function gi(e) {
5909
- return q(e.map((e) => e.route.path).filter(Boolean)) || "/";
6035
+ function Mi(e) {
6036
+ return $(e.map((e) => e.route.path).filter(Boolean)) || "/";
5910
6037
  }
5911
- var _i = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
5912
- function vi(e, t) {
6038
+ var Ni = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
6039
+ function Pi(e, t) {
5913
6040
  let n = e;
5914
- if (typeof n != "string" || !ni.test(n)) return {
6041
+ if (typeof n != "string" || !Kr.test(n)) return {
5915
6042
  absoluteURL: void 0,
5916
6043
  isExternal: !1,
5917
6044
  to: n
5918
6045
  };
5919
6046
  let r = n, i = !1;
5920
- if (_i) try {
5921
- let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a = K(r.pathname, t);
6047
+ if (Ni) try {
6048
+ let e = new URL(window.location.href), r = qr.test(n) ? new URL(Jr(n, e.protocol)) : new URL(n), a = vi(r.pathname, t);
5922
6049
  r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
5923
6050
  } catch {
5924
- W(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
6051
+ Yr(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
5925
6052
  }
5926
6053
  return {
5927
6054
  absoluteURL: r,
@@ -5930,90 +6057,109 @@ function vi(e, t) {
5930
6057
  };
5931
6058
  }
5932
6059
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
5933
- var yi = [
6060
+ var Fi = [
5934
6061
  "POST",
5935
6062
  "PUT",
5936
6063
  "PATCH",
5937
6064
  "DELETE"
5938
6065
  ];
5939
- new Set(yi);
5940
- var bi = ["GET", ...yi];
5941
- new Set(bi);
5942
- var J = e.createContext(null);
5943
- J.displayName = "DataRouter";
5944
- var Y = e.createContext(null);
5945
- Y.displayName = "DataRouterState";
5946
- var xi = e.createContext(!1);
5947
- function Si() {
5948
- return e.useContext(xi);
5949
- }
5950
- var Ci = e.createContext({ isTransitioning: !1 });
5951
- Ci.displayName = "ViewTransition";
5952
- var wi = e.createContext(/* @__PURE__ */ new Map());
5953
- wi.displayName = "Fetchers";
5954
- var Ti = e.createContext(null);
5955
- Ti.displayName = "Await";
5956
- var X = e.createContext(null);
5957
- X.displayName = "Navigation";
5958
- var Z = e.createContext(null);
5959
- Z.displayName = "Location";
5960
- var Q = e.createContext({
6066
+ new Set(Fi);
6067
+ var Ii = ["GET", ...Fi];
6068
+ new Set(Ii);
6069
+ var Li = [
6070
+ "about:",
6071
+ "blob:",
6072
+ "chrome:",
6073
+ "chrome-untrusted:",
6074
+ "content:",
6075
+ "data:",
6076
+ "devtools:",
6077
+ "file:",
6078
+ "filesystem:",
6079
+ "javascript:"
6080
+ ];
6081
+ function Ri(e) {
6082
+ try {
6083
+ return Li.includes(new URL(e).protocol);
6084
+ } catch {
6085
+ return !1;
6086
+ }
6087
+ }
6088
+ var zi = e.createContext(null);
6089
+ zi.displayName = "DataRouter";
6090
+ var Bi = e.createContext(null);
6091
+ Bi.displayName = "DataRouterState";
6092
+ var Vi = e.createContext(!1);
6093
+ function Hi() {
6094
+ return e.useContext(Vi);
6095
+ }
6096
+ var Ui = e.createContext({ isTransitioning: !1 });
6097
+ Ui.displayName = "ViewTransition";
6098
+ var Wi = e.createContext(/* @__PURE__ */ new Map());
6099
+ Wi.displayName = "Fetchers";
6100
+ var Gi = e.createContext(null);
6101
+ Gi.displayName = "Await";
6102
+ var Ki = e.createContext(null);
6103
+ Ki.displayName = "Navigation";
6104
+ var qi = e.createContext(null);
6105
+ qi.displayName = "Location";
6106
+ var Ji = e.createContext({
5961
6107
  outlet: null,
5962
6108
  matches: [],
5963
6109
  isDataRoute: !1
5964
6110
  });
5965
- Q.displayName = "Route";
5966
- var Ei = e.createContext(null);
5967
- Ei.displayName = "RouteError";
5968
- var Di = "REACT_ROUTER_ERROR", Oi = "REDIRECT", ki = "ROUTE_ERROR_RESPONSE";
5969
- function Ai(e) {
5970
- if (e.startsWith(`${Di}:${Oi}:{`)) try {
6111
+ Ji.displayName = "Route";
6112
+ var Yi = e.createContext(null);
6113
+ Yi.displayName = "RouteError";
6114
+ var Xi = "REACT_ROUTER_ERROR", Zi = "REDIRECT", Qi = "ROUTE_ERROR_RESPONSE";
6115
+ function $i(e) {
6116
+ if (e.startsWith(`${Xi}:${Zi}:{`)) try {
5971
6117
  let t = JSON.parse(e.slice(28));
5972
6118
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
5973
6119
  } catch {}
5974
6120
  }
5975
- function ji(e) {
5976
- if (e.startsWith(`${Di}:${ki}:{`)) try {
6121
+ function ea(e) {
6122
+ if (e.startsWith(`${Xi}:${Qi}:{`)) try {
5977
6123
  let t = JSON.parse(e.slice(40));
5978
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new mi(t.status, t.statusText, t.data);
6124
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ai(t.status, t.statusText, t.data);
5979
6125
  } catch {}
5980
6126
  }
5981
- function Mi(t, { relative: n } = {}) {
5982
- U(Ni(), "useHref() may be used only in the context of a <Router> component.");
5983
- let { basename: r, navigator: i } = e.useContext(X), { hash: a, pathname: o, search: s } = Ri(t, { relative: n }), c = o;
5984
- return r !== "/" && (c = o === "/" ? r : q([r, o])), i.createHref({
6127
+ function ta(t, { relative: n } = {}) {
6128
+ Q(na(), "useHref() may be used only in the context of a <Router> component.");
6129
+ let { basename: r, navigator: i } = e.useContext(Ki), { hash: a, pathname: o, search: s } = ca(t, { relative: n }), c = o;
6130
+ return r !== "/" && (c = o === "/" ? r : $([r, o])), i.createHref({
5985
6131
  pathname: c,
5986
6132
  search: s,
5987
6133
  hash: a
5988
6134
  });
5989
6135
  }
5990
- function Ni() {
5991
- return e.useContext(Z) != null;
6136
+ function na() {
6137
+ return e.useContext(qi) != null;
5992
6138
  }
5993
- function $() {
5994
- return U(Ni(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(Z).location;
6139
+ function ra() {
6140
+ return Q(na(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(qi).location;
5995
6141
  }
5996
- var Pi = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
5997
- function Fi(t) {
5998
- e.useContext(X).static || e.useLayoutEffect(t);
6142
+ var ia = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
6143
+ function aa(t) {
6144
+ e.useContext(Ki).static || e.useLayoutEffect(t);
5999
6145
  }
6000
- function Ii() {
6001
- let { isDataRoute: t } = e.useContext(Q);
6002
- return t ? na() : Li();
6146
+ function oa() {
6147
+ let { isDataRoute: t } = e.useContext(Ji);
6148
+ return t ? wa() : sa();
6003
6149
  }
6004
- function Li() {
6005
- U(Ni(), "useNavigate() may be used only in the context of a <Router> component.");
6006
- let t = e.useContext(J), { basename: n, navigator: r } = e.useContext(X), { matches: i } = e.useContext(Q), { pathname: a } = $(), o = JSON.stringify(si(i)), s = e.useRef(!1);
6007
- return Fi(() => {
6150
+ function sa() {
6151
+ Q(na(), "useNavigate() may be used only in the context of a <Router> component.");
6152
+ let t = e.useContext(zi), { basename: n, navigator: r } = e.useContext(Ki), { matches: i } = e.useContext(Ji), { pathname: a } = ra(), o = JSON.stringify(Ci(i)), s = e.useRef(!1);
6153
+ return aa(() => {
6008
6154
  s.current = !0;
6009
6155
  }), e.useCallback((e, i = {}) => {
6010
- if (W(s.current, Pi), !s.current) return;
6156
+ if (Yr(s.current, ia), !s.current) return;
6011
6157
  if (typeof e == "number") {
6012
6158
  r.go(e);
6013
6159
  return;
6014
6160
  }
6015
- let c = ci(e, JSON.parse(o), a, i.relative === "path");
6016
- t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : q([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
6161
+ let c = wi(e, JSON.parse(o), a, i.relative === "path");
6162
+ t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : $([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
6017
6163
  }, [
6018
6164
  n,
6019
6165
  r,
@@ -6023,42 +6169,42 @@ function Li() {
6023
6169
  ]);
6024
6170
  }
6025
6171
  e.createContext(null);
6026
- function Ri(t, { relative: n } = {}) {
6027
- let { matches: r } = e.useContext(Q), { pathname: i } = $(), a = JSON.stringify(si(r));
6028
- return e.useMemo(() => ci(t, JSON.parse(a), i, n === "path"), [
6172
+ function ca(t, { relative: n } = {}) {
6173
+ let { matches: r } = e.useContext(Ji), { pathname: i } = ra(), a = JSON.stringify(Ci(r));
6174
+ return e.useMemo(() => wi(t, JSON.parse(a), i, n === "path"), [
6029
6175
  t,
6030
6176
  a,
6031
6177
  i,
6032
6178
  n
6033
6179
  ]);
6034
6180
  }
6035
- function zi(t, n, r) {
6036
- U(Ni(), "useRoutes() may be used only in the context of a <Router> component.");
6037
- let { navigator: i } = e.useContext(X), { matches: a } = e.useContext(Q), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
6181
+ function la(t, n, r) {
6182
+ Q(na(), "useRoutes() may be used only in the context of a <Router> component.");
6183
+ let { navigator: i } = e.useContext(Ki), { matches: a } = e.useContext(Ji), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
6038
6184
  {
6039
6185
  let e = u && u.path || "";
6040
- ia(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
6186
+ Ea(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
6041
6187
 
6042
6188
  Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
6043
6189
  }
6044
- let d = $(), f;
6190
+ let d = ra(), f;
6045
6191
  if (n) {
6046
- let e = typeof n == "string" ? G(n) : n;
6047
- U(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
6192
+ let e = typeof n == "string" ? Zr(n) : n;
6193
+ Q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
6048
6194
  } else f = d;
6049
6195
  let p = f.pathname || "/", m = p;
6050
6196
  if (l !== "/") {
6051
6197
  let e = l.replace(/^\//, "").split("/");
6052
6198
  m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
6053
6199
  }
6054
- let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Ir(t, { pathname: m });
6055
- W(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), W(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
6056
- let g = Ki(h && h.map((e) => Object.assign({}, e, {
6200
+ let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Qr(t, { pathname: m });
6201
+ Yr(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), Yr(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
6202
+ let g = ga(h && h.map((e) => Object.assign({}, e, {
6057
6203
  params: Object.assign({}, s, e.params),
6058
- pathname: q([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
6059
- pathnameBase: e.pathnameBase === "/" ? l : q([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
6204
+ pathname: $([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
6205
+ pathnameBase: e.pathnameBase === "/" ? l : $([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
6060
6206
  })), a, r);
6061
- return n && g ? /* @__PURE__ */ e.createElement(Z.Provider, { value: {
6207
+ return n && g ? /* @__PURE__ */ e.createElement(qi.Provider, { value: {
6062
6208
  location: {
6063
6209
  pathname: "/",
6064
6210
  search: "",
@@ -6071,8 +6217,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
6071
6217
  navigationType: "POP"
6072
6218
  } }, g) : g;
6073
6219
  }
6074
- function Bi() {
6075
- let t = ta(), n = hi(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
6220
+ function ua() {
6221
+ let t = Ca(), n = ji(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
6076
6222
  padding: "0.5rem",
6077
6223
  backgroundColor: i
6078
6224
  }, o = {
@@ -6081,7 +6227,7 @@ function Bi() {
6081
6227
  }, s = null;
6082
6228
  return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
6083
6229
  }
6084
- var Vi = /* @__PURE__ */ e.createElement(Bi, null), Hi = class extends e.Component {
6230
+ var da = /* @__PURE__ */ e.createElement(ua, null), fa = class extends e.Component {
6085
6231
  constructor(e) {
6086
6232
  super(e), this.state = {
6087
6233
  location: e.location,
@@ -6109,44 +6255,47 @@ var Vi = /* @__PURE__ */ e.createElement(Bi, null), Hi = class extends e.Compone
6109
6255
  render() {
6110
6256
  let t = this.state.error;
6111
6257
  if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
6112
- let e = ji(t.digest);
6258
+ let e = ea(t.digest);
6113
6259
  e && (t = e);
6114
6260
  }
6115
- let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Ei.Provider, {
6261
+ let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Ji.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Yi.Provider, {
6116
6262
  value: t,
6117
6263
  children: this.props.component
6118
6264
  }));
6119
- return this.context ? /* @__PURE__ */ e.createElement(Wi, { error: t }, n) : n;
6265
+ return this.context ? /* @__PURE__ */ e.createElement(ma, { error: t }, n) : n;
6120
6266
  }
6121
6267
  };
6122
- Hi.contextType = xi;
6123
- var Ui = /* @__PURE__ */ new WeakMap();
6124
- function Wi({ children: t, error: n }) {
6125
- let { basename: r } = e.useContext(X);
6268
+ fa.contextType = Vi;
6269
+ var pa = /* @__PURE__ */ new WeakMap();
6270
+ function ma({ children: t, error: n }) {
6271
+ let { basename: r } = e.useContext(Ki);
6126
6272
  if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
6127
- let t = Ai(n.digest);
6273
+ let t = $i(n.digest);
6128
6274
  if (t) {
6129
- let i = Ui.get(n);
6275
+ let i = pa.get(n);
6130
6276
  if (i) throw i;
6131
- let a = vi(t.location, r);
6132
- if (_i && !Ui.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = a.absoluteURL || a.to;
6133
- else {
6134
- let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
6135
- throw Ui.set(n, e), e;
6277
+ let a = Pi(t.location, r), o = a.absoluteURL || a.to;
6278
+ if (Ri(o)) throw Error("Invalid redirect location");
6279
+ if (Ni && !pa.get(n)) {
6280
+ if (a.isExternal || t.reloadDocument) window.location.href = o;
6281
+ else {
6282
+ let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
6283
+ throw pa.set(n, e), e;
6284
+ }
6136
6285
  }
6137
6286
  return /* @__PURE__ */ e.createElement("meta", {
6138
6287
  httpEquiv: "refresh",
6139
- content: `0;url=${a.absoluteURL || a.to}`
6288
+ content: `0;url=${o}`
6140
6289
  });
6141
6290
  }
6142
6291
  }
6143
6292
  return t;
6144
6293
  }
6145
- function Gi({ routeContext: t, match: n, children: r }) {
6146
- let i = e.useContext(J);
6147
- return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Q.Provider, { value: t }, r);
6294
+ function ha({ routeContext: t, match: n, children: r }) {
6295
+ let i = e.useContext(zi);
6296
+ return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Ji.Provider, { value: t }, r);
6148
6297
  }
6149
- function Ki(t, n = [], r) {
6298
+ function ga(t, n = [], r) {
6150
6299
  let i = r?.state;
6151
6300
  if (t == null) {
6152
6301
  if (!i) return null;
@@ -6157,7 +6306,7 @@ function Ki(t, n = [], r) {
6157
6306
  let a = t, o = i?.errors;
6158
6307
  if (o != null) {
6159
6308
  let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
6160
- U(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
6309
+ Q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
6161
6310
  }
6162
6311
  let s = !1, c = -1;
6163
6312
  if (r && i) {
@@ -6177,16 +6326,16 @@ function Ki(t, n = [], r) {
6177
6326
  l(e, {
6178
6327
  location: i.location,
6179
6328
  params: i.matches?.[0]?.params ?? {},
6180
- pattern: gi(i.matches),
6329
+ pattern: Mi(i.matches),
6181
6330
  errorInfo: t
6182
6331
  });
6183
6332
  } : void 0;
6184
6333
  return a.reduceRight((t, r, l) => {
6185
6334
  let d, f = !1, p = null, m = null;
6186
- i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Vi, s && (c < 0 && l === 0 ? (ia("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
6335
+ i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || da, s && (c < 0 && l === 0 ? (Ea("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
6187
6336
  let h = n.concat(a.slice(0, l + 1)), g = () => {
6188
6337
  let n;
6189
- return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Gi, {
6338
+ return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(ha, {
6190
6339
  match: r,
6191
6340
  routeContext: {
6192
6341
  outlet: t,
@@ -6196,7 +6345,7 @@ function Ki(t, n = [], r) {
6196
6345
  children: n
6197
6346
  });
6198
6347
  };
6199
- return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(Hi, {
6348
+ return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(fa, {
6200
6349
  location: i.location,
6201
6350
  revalidation: i.revalidation,
6202
6351
  component: p,
@@ -6211,61 +6360,50 @@ function Ki(t, n = [], r) {
6211
6360
  }) : g();
6212
6361
  }, null);
6213
6362
  }
6214
- function qi(e) {
6363
+ function _a(e) {
6215
6364
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
6216
6365
  }
6217
- function Ji(t) {
6218
- let n = e.useContext(J);
6219
- return U(n, qi(t)), n;
6366
+ function va(t) {
6367
+ let n = e.useContext(zi);
6368
+ return Q(n, _a(t)), n;
6220
6369
  }
6221
- function Yi(t) {
6222
- let n = e.useContext(Y);
6223
- return U(n, qi(t)), n;
6370
+ function ya(t) {
6371
+ let n = e.useContext(Bi);
6372
+ return Q(n, _a(t)), n;
6224
6373
  }
6225
- function Xi(t) {
6226
- let n = e.useContext(Q);
6227
- return U(n, qi(t)), n;
6374
+ function ba(t) {
6375
+ let n = e.useContext(Ji);
6376
+ return Q(n, _a(t)), n;
6228
6377
  }
6229
- function Zi(e) {
6230
- let t = Xi(e), n = t.matches[t.matches.length - 1];
6231
- return U(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
6378
+ function xa(e) {
6379
+ let t = ba(e), n = t.matches[t.matches.length - 1];
6380
+ return Q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
6232
6381
  }
6233
- function Qi() {
6234
- return Zi("useRouteId");
6382
+ function Sa() {
6383
+ return xa("useRouteId");
6235
6384
  }
6236
- function $i() {
6237
- let t = Yi("useNavigation");
6238
- return e.useMemo(() => {
6239
- let { matches: e, historyAction: n, ...r } = t.navigation;
6240
- return r;
6241
- }, [t.navigation]);
6242
- }
6243
- function ea() {
6244
- let { matches: t, loaderData: n } = Yi("useMatches");
6245
- return e.useMemo(() => t.map((e) => Rr(e, n)), [t, n]);
6246
- }
6247
- function ta() {
6248
- let t = e.useContext(Ei), n = Yi("useRouteError"), r = Zi("useRouteError");
6385
+ function Ca() {
6386
+ let t = e.useContext(Yi), n = ya("useRouteError"), r = xa("useRouteError");
6249
6387
  return t === void 0 ? n.errors?.[r] : t;
6250
6388
  }
6251
- function na() {
6252
- let { router: t } = Ji("useNavigate"), n = Zi("useNavigate"), r = e.useRef(!1);
6253
- return Fi(() => {
6389
+ function wa() {
6390
+ let { router: t } = va("useNavigate"), n = xa("useNavigate"), r = e.useRef(!1);
6391
+ return aa(() => {
6254
6392
  r.current = !0;
6255
6393
  }), e.useCallback(async (e, i = {}) => {
6256
- W(r.current, Pi), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
6394
+ Yr(r.current, ia), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
6257
6395
  fromRouteId: n,
6258
6396
  ...i
6259
6397
  }));
6260
6398
  }, [t, n]);
6261
6399
  }
6262
- var ra = {};
6263
- function ia(e, t, n) {
6264
- !t && !ra[e] && (ra[e] = !0, W(!1, n));
6400
+ var Ta = {};
6401
+ function Ea(e, t, n) {
6402
+ !t && !Ta[e] && (Ta[e] = !0, Yr(!1, n));
6265
6403
  }
6266
- e.memo(aa);
6267
- function aa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
6268
- return zi(e, void 0, {
6404
+ e.memo(Da);
6405
+ function Da({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
6406
+ return la(e, void 0, {
6269
6407
  manifest: t,
6270
6408
  state: r,
6271
6409
  isStatic: i,
@@ -6273,104 +6411,61 @@ function aa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
6273
6411
  future: n
6274
6412
  });
6275
6413
  }
6276
- function oa({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
6277
- U(!Ni(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
6278
- let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
6279
- basename: c,
6280
- navigator: a,
6281
- static: o,
6282
- useTransitions: s,
6283
- future: {}
6284
- }), [
6285
- c,
6286
- a,
6287
- o,
6288
- s
6289
- ]);
6290
- typeof r == "string" && (r = G(r));
6291
- let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
6292
- let e = K(u, c);
6293
- return e == null ? null : {
6294
- location: {
6295
- pathname: e,
6296
- search: d,
6297
- hash: f,
6298
- state: p,
6299
- key: m,
6300
- mask: h
6301
- },
6302
- navigationType: i
6303
- };
6304
- }, [
6305
- c,
6306
- u,
6307
- d,
6308
- f,
6309
- p,
6310
- m,
6311
- i,
6312
- h
6313
- ]);
6314
- return W(g != null, `<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ e.createElement(X.Provider, { value: l }, /* @__PURE__ */ e.createElement(Z.Provider, {
6315
- children: n,
6316
- value: g
6317
- }));
6318
- }
6319
6414
  e.Component;
6320
- var sa = "get", ca = "application/x-www-form-urlencoded";
6321
- function la(e) {
6415
+ var Oa = "get", ka = "application/x-www-form-urlencoded";
6416
+ function Aa(e) {
6322
6417
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
6323
6418
  }
6324
- function ua(e) {
6325
- return la(e) && e.tagName.toLowerCase() === "button";
6419
+ function ja(e) {
6420
+ return Aa(e) && e.tagName.toLowerCase() === "button";
6326
6421
  }
6327
- function da(e) {
6328
- return la(e) && e.tagName.toLowerCase() === "form";
6422
+ function Ma(e) {
6423
+ return Aa(e) && e.tagName.toLowerCase() === "form";
6329
6424
  }
6330
- function fa(e) {
6331
- return la(e) && e.tagName.toLowerCase() === "input";
6425
+ function Na(e) {
6426
+ return Aa(e) && e.tagName.toLowerCase() === "input";
6332
6427
  }
6333
- function pa(e) {
6428
+ function Pa(e) {
6334
6429
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
6335
6430
  }
6336
- function ma(e, t) {
6337
- return e.button === 0 && (!t || t === "_self") && !pa(e);
6431
+ function Fa(e, t) {
6432
+ return e.button === 0 && (!t || t === "_self") && !Pa(e);
6338
6433
  }
6339
- var ha = null;
6340
- function ga() {
6341
- if (ha === null) try {
6342
- new FormData(document.createElement("form"), 0), ha = !1;
6434
+ var Ia = null;
6435
+ function La() {
6436
+ if (Ia === null) try {
6437
+ new FormData(document.createElement("form"), 0), Ia = !1;
6343
6438
  } catch {
6344
- ha = !0;
6439
+ Ia = !0;
6345
6440
  }
6346
- return ha;
6441
+ return Ia;
6347
6442
  }
6348
- var _a = /* @__PURE__ */ new Set([
6443
+ var Ra = /* @__PURE__ */ new Set([
6349
6444
  "application/x-www-form-urlencoded",
6350
6445
  "multipart/form-data",
6351
6446
  "text/plain"
6352
6447
  ]);
6353
- function va(e) {
6354
- return e != null && !_a.has(e) ? (W(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ca}"`), null) : e;
6448
+ function za(e) {
6449
+ return e != null && !Ra.has(e) ? (Yr(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ka}"`), null) : e;
6355
6450
  }
6356
- function ya(e, t) {
6451
+ function Ba(e, t) {
6357
6452
  let n, r, i, a, o;
6358
- if (da(e)) {
6453
+ if (Ma(e)) {
6359
6454
  let o = e.getAttribute("action");
6360
- r = o ? K(o, t) : null, n = e.getAttribute("method") || sa, i = va(e.getAttribute("enctype")) || ca, a = new FormData(e);
6361
- } else if (ua(e) || fa(e) && (e.type === "submit" || e.type === "image")) {
6455
+ r = o ? vi(o, t) : null, n = e.getAttribute("method") || Oa, i = za(e.getAttribute("enctype")) || ka, a = new FormData(e);
6456
+ } else if (ja(e) || Na(e) && (e.type === "submit" || e.type === "image")) {
6362
6457
  let o = e.form;
6363
6458
  if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
6364
6459
  let s = e.getAttribute("formaction") || o.getAttribute("action");
6365
- if (r = s ? K(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || sa, i = va(e.getAttribute("formenctype")) || va(o.getAttribute("enctype")) || ca, a = new FormData(o, e), !ga()) {
6460
+ if (r = s ? vi(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Oa, i = za(e.getAttribute("formenctype")) || za(o.getAttribute("enctype")) || ka, a = new FormData(o, e), !La()) {
6366
6461
  let { name: t, type: n, value: r } = e;
6367
6462
  if (n === "image") {
6368
6463
  let e = t ? `${t}.` : "";
6369
6464
  a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
6370
6465
  } else t && a.append(t, r);
6371
6466
  }
6372
- } else if (la(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
6373
- else n = sa, r = null, i = ca, o = e;
6467
+ } else if (Aa(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
6468
+ else n = Oa, r = null, i = ka, o = e;
6374
6469
  return a && i === "text/plain" && (o = a, a = void 0), {
6375
6470
  action: r,
6376
6471
  method: n.toLowerCase(),
@@ -6380,24 +6475,14 @@ function ya(e, t) {
6380
6475
  };
6381
6476
  }
6382
6477
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
6383
- var ba = {
6384
- "&": "\\u0026",
6385
- ">": "\\u003e",
6386
- "<": "\\u003c",
6387
- "\u2028": "\\u2028",
6388
- "\u2029": "\\u2029"
6389
- }, xa = /[&><\u2028\u2029]/g;
6390
- function Sa(e) {
6391
- return e.replace(xa, (e) => ba[e]);
6392
- }
6393
- function Ca(e, t) {
6478
+ function Va(e, t) {
6394
6479
  if (e === !1 || e == null) throw Error(t);
6395
6480
  }
6396
- function wa(e, t, n, r) {
6481
+ function Ha(e, t, n, r) {
6397
6482
  let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
6398
- return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && K(i.pathname, t) === "/" ? i.pathname = `${ui(t)}/_root.${r}` : i.pathname = `${ui(i.pathname)}.${r}`, i;
6483
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && vi(i.pathname, t) === "/" ? `${Ei(t)}/_root.${r}` : `${Ei(i.pathname)}.${r}`, i;
6399
6484
  }
6400
- async function Ta(e, t) {
6485
+ async function Ua(e, t) {
6401
6486
  if (e.id in t) return t[e.id];
6402
6487
  try {
6403
6488
  let n = await import(
@@ -6410,21 +6495,21 @@ async function Ta(e, t) {
6410
6495
  return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
6411
6496
  }
6412
6497
  }
6413
- function Ea(e) {
6498
+ function Wa(e) {
6414
6499
  return e != null && typeof e.page == "string";
6415
6500
  }
6416
- function Da(e) {
6501
+ function Ga(e) {
6417
6502
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
6418
6503
  }
6419
- async function Oa(e, t, n) {
6420
- return Na((await Promise.all(e.map(async (e) => {
6504
+ async function Ka(e, t, n) {
6505
+ return Za((await Promise.all(e.map(async (e) => {
6421
6506
  let r = t.routes[e.route.id];
6422
6507
  if (r) {
6423
- let e = await Ta(r, n);
6508
+ let e = await Ua(r, n);
6424
6509
  return e.links ? e.links() : [];
6425
6510
  }
6426
6511
  return [];
6427
- }))).flat(1).filter(Da).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
6512
+ }))).flat(1).filter(Ga).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
6428
6513
  ...e,
6429
6514
  rel: "prefetch",
6430
6515
  as: "style"
@@ -6433,8 +6518,8 @@ async function Oa(e, t, n) {
6433
6518
  rel: "prefetch"
6434
6519
  }));
6435
6520
  }
6436
- function ka(e, t, n, r, i, a) {
6437
- let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
6521
+ function qa(e, t, n, r, i, a) {
6522
+ let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
6438
6523
  return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
6439
6524
  let c = r.routes[t.route.id];
6440
6525
  if (!c || !c.hasLoader) return !1;
@@ -6452,49 +6537,49 @@ function ka(e, t, n, r, i, a) {
6452
6537
  return !0;
6453
6538
  }) : [];
6454
6539
  }
6455
- function Aa(e, t, { includeHydrateFallback: n } = {}) {
6456
- return ja(e.map((e) => {
6540
+ function Ja(e, t, { includeHydrateFallback: n } = {}) {
6541
+ return Ya(e.map((e) => {
6457
6542
  let r = t.routes[e.route.id];
6458
6543
  if (!r) return [];
6459
6544
  let i = [r.module];
6460
6545
  return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
6461
6546
  }).flat(1));
6462
6547
  }
6463
- function ja(e) {
6548
+ function Ya(e) {
6464
6549
  return [...new Set(e)];
6465
6550
  }
6466
- function Ma(e) {
6551
+ function Xa(e) {
6467
6552
  let t = {}, n = Object.keys(e).sort();
6468
6553
  for (let r of n) t[r] = e[r];
6469
6554
  return t;
6470
6555
  }
6471
- function Na(e, t) {
6556
+ function Za(e, t) {
6472
6557
  let n = /* @__PURE__ */ new Set(), r = new Set(t);
6473
6558
  return e.reduce((e, i) => {
6474
- if (t && !Ea(i) && i.as === "script" && i.href && r.has(i.href)) return e;
6475
- let a = JSON.stringify(Ma(i));
6559
+ if (t && !Wa(i) && i.as === "script" && i.href && r.has(i.href)) return e;
6560
+ let a = JSON.stringify(Xa(i));
6476
6561
  return n.has(a) || (n.add(a), e.push({
6477
6562
  key: a,
6478
6563
  link: i
6479
6564
  })), e;
6480
6565
  }, []);
6481
6566
  }
6482
- function Pa() {
6483
- let t = e.useContext(J);
6484
- return Ca(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
6567
+ function Qa() {
6568
+ let t = e.useContext(zi);
6569
+ return Va(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
6485
6570
  }
6486
- function Fa() {
6487
- let t = e.useContext(Y);
6488
- return Ca(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
6571
+ function $a() {
6572
+ let t = e.useContext(Bi);
6573
+ return Va(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
6489
6574
  }
6490
- var Ia = e.createContext(void 0);
6491
- Ia.displayName = "FrameworkContext";
6492
- function La() {
6493
- let t = e.useContext(Ia);
6494
- return Ca(t, "You must render this element inside a <HydratedRouter> element"), t;
6575
+ var eo = e.createContext(void 0);
6576
+ eo.displayName = "FrameworkContext";
6577
+ function to() {
6578
+ let t = e.useContext(eo);
6579
+ return Va(t, "You must render this element inside a <HydratedRouter> element"), t;
6495
6580
  }
6496
- function Ra(t, n) {
6497
- let r = e.useContext(Ia), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
6581
+ function no(t, n) {
6582
+ let r = e.useContext(eo), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
6498
6583
  e.useEffect(() => {
6499
6584
  if (t === "render" && s(!0), t === "viewport") {
6500
6585
  let e = new IntersectionObserver((e) => {
@@ -6525,11 +6610,11 @@ function Ra(t, n) {
6525
6610
  o,
6526
6611
  p,
6527
6612
  {
6528
- onFocus: za(c, m),
6529
- onBlur: za(l, h),
6530
- onMouseEnter: za(u, m),
6531
- onMouseLeave: za(d, h),
6532
- onTouchStart: za(f, m)
6613
+ onFocus: ro(c, m),
6614
+ onBlur: ro(l, h),
6615
+ onMouseEnter: ro(u, m),
6616
+ onMouseLeave: ro(d, h),
6617
+ onTouchStart: ro(f, m)
6533
6618
  }
6534
6619
  ] : [
6535
6620
  o,
@@ -6541,32 +6626,35 @@ function Ra(t, n) {
6541
6626
  {}
6542
6627
  ];
6543
6628
  }
6544
- function za(e, t) {
6629
+ function ro(e, t) {
6545
6630
  return (n) => {
6546
6631
  e && e(n), n.defaultPrevented || t(n);
6547
6632
  };
6548
6633
  }
6549
- function Ba({ page: t, ...n }) {
6550
- let r = Si(), { router: i } = Pa(), a = e.useMemo(() => Ir(i.routes, t, i.basename), [
6551
- i.routes,
6634
+ function io({ page: t, ...n }) {
6635
+ let r = Hi(), { nonce: i } = to(), { router: a } = Qa(), o = e.useMemo(() => Qr(a.routes, t, a.basename), [
6636
+ a.routes,
6552
6637
  t,
6553
- i.basename
6638
+ a.basename
6554
6639
  ]);
6555
- return a ? r ? /* @__PURE__ */ e.createElement(Ha, {
6640
+ return o ? (n.nonce == null && i && (n = {
6641
+ ...n,
6642
+ nonce: i
6643
+ }), r ? /* @__PURE__ */ e.createElement(oo, {
6556
6644
  page: t,
6557
- matches: a,
6645
+ matches: o,
6558
6646
  ...n
6559
- }) : /* @__PURE__ */ e.createElement(Ua, {
6647
+ }) : /* @__PURE__ */ e.createElement(so, {
6560
6648
  page: t,
6561
- matches: a,
6649
+ matches: o,
6562
6650
  ...n
6563
- }) : null;
6651
+ })) : null;
6564
6652
  }
6565
- function Va(t) {
6566
- let { manifest: n, routeModules: r } = La(), [i, a] = e.useState([]);
6653
+ function ao(t) {
6654
+ let { manifest: n, routeModules: r } = to(), [i, a] = e.useState([]);
6567
6655
  return e.useEffect(() => {
6568
6656
  let e = !1;
6569
- return Oa(t, n, r).then((t) => {
6657
+ return Ka(t, n, r).then((t) => {
6570
6658
  e || a(t);
6571
6659
  }), () => {
6572
6660
  e = !0;
@@ -6577,15 +6665,15 @@ function Va(t) {
6577
6665
  r
6578
6666
  ]), i;
6579
6667
  }
6580
- function Ha({ page: t, matches: n, ...r }) {
6581
- let i = $(), { future: a } = La(), { basename: o } = Pa(), s = e.useMemo(() => {
6668
+ function oo({ page: t, matches: n, ...r }) {
6669
+ let i = ra(), { future: a } = to(), { basename: o } = Qa(), s = e.useMemo(() => {
6582
6670
  if (t === i.pathname + i.search + i.hash) return [];
6583
- let e = wa(t, o, a.unstable_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
6671
+ let e = Ha(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
6584
6672
  for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
6585
6673
  return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
6586
6674
  }, [
6587
6675
  o,
6588
- a.unstable_trailingSlashAwareDataRequests,
6676
+ a.v8_trailingSlashAwareDataRequests,
6589
6677
  t,
6590
6678
  i,
6591
6679
  n
@@ -6598,14 +6686,14 @@ function Ha({ page: t, matches: n, ...r }) {
6598
6686
  ...r
6599
6687
  })));
6600
6688
  }
6601
- function Ua({ page: t, matches: n, ...r }) {
6602
- let i = $(), { future: a, manifest: o, routeModules: s } = La(), { basename: c } = Pa(), { loaderData: l, matches: u } = Fa(), d = e.useMemo(() => ka(t, n, u, o, i, "data"), [
6689
+ function so({ page: t, matches: n, ...r }) {
6690
+ let i = ra(), { future: a, manifest: o, routeModules: s } = to(), { basename: c } = Qa(), { loaderData: l, matches: u } = $a(), d = e.useMemo(() => qa(t, n, u, o, i, "data"), [
6603
6691
  t,
6604
6692
  n,
6605
6693
  u,
6606
6694
  o,
6607
6695
  i
6608
- ]), f = e.useMemo(() => ka(t, n, u, o, i, "assets"), [
6696
+ ]), f = e.useMemo(() => qa(t, n, u, o, i, "assets"), [
6609
6697
  t,
6610
6698
  n,
6611
6699
  u,
@@ -6618,11 +6706,11 @@ function Ua({ page: t, matches: n, ...r }) {
6618
6706
  let n = o.routes[t.route.id];
6619
6707
  !n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
6620
6708
  }), e.size === 0) return [];
6621
- let u = wa(t, c, a.unstable_trailingSlashAwareDataRequests, "data");
6709
+ let u = Ha(t, c, a.v8_trailingSlashAwareDataRequests, "data");
6622
6710
  return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
6623
6711
  }, [
6624
6712
  c,
6625
- a.unstable_trailingSlashAwareDataRequests,
6713
+ a.v8_trailingSlashAwareDataRequests,
6626
6714
  l,
6627
6715
  i,
6628
6716
  o,
@@ -6630,7 +6718,7 @@ function Ua({ page: t, matches: n, ...r }) {
6630
6718
  n,
6631
6719
  t,
6632
6720
  s
6633
- ]), m = e.useMemo(() => Aa(f, o), [f, o]), h = Va(f);
6721
+ ]), m = e.useMemo(() => Ja(f, o), [f, o]), h = ao(f);
6634
6722
  return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
6635
6723
  key: t,
6636
6724
  rel: "prefetch",
@@ -6649,7 +6737,7 @@ function Ua({ page: t, matches: n, ...r }) {
6649
6737
  crossOrigin: n.crossOrigin ?? r.crossOrigin
6650
6738
  })));
6651
6739
  }
6652
- function Wa(...e) {
6740
+ function co(...e) {
6653
6741
  return (t) => {
6654
6742
  e.forEach((e) => {
6655
6743
  typeof e == "function" ? e(t) : e != null && (e.current = t);
@@ -6657,36 +6745,19 @@ function Wa(...e) {
6657
6745
  };
6658
6746
  }
6659
6747
  e.Component;
6660
- var Ga = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
6748
+ var lo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
6661
6749
  try {
6662
- Ga && (window.__reactRouterVersion = "7.15.1");
6750
+ lo && (window.__reactRouterVersion = "7.18.2");
6663
6751
  } catch {}
6664
- function Ka({ basename: t, children: n, history: r, useTransitions: i }) {
6665
- let [a, o] = e.useState({
6666
- action: r.action,
6667
- location: r.location
6668
- }), s = e.useCallback((t) => {
6669
- i === !1 ? o(t) : e.startTransition(() => o(t));
6670
- }, [i]);
6671
- return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(oa, {
6672
- basename: t,
6673
- children: n,
6674
- location: a.location,
6675
- navigationType: a.action,
6676
- navigator: r,
6677
- useTransitions: i
6678
- });
6679
- }
6680
- Ka.displayName = "unstable_HistoryRouter";
6681
- var qa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ja = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
6682
- let { basename: g, navigator: _, useTransitions: v } = e.useContext(X), y = typeof u == "string" && qa.test(u), b = vi(u, g);
6752
+ var uo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
6753
+ let { basename: g, navigator: _, useTransitions: v } = e.useContext(Ki), y = typeof u == "string" && Kr.test(u), b = Pi(u, g);
6683
6754
  u = b.to;
6684
- let x = Mi(u, { relative: i }), S = $(), C = null;
6755
+ let x = ta(u, { relative: i }), S = ra(), C = null;
6685
6756
  if (s) {
6686
- let e = ci(s, [], S.mask ? S.mask.pathname : "/", !0);
6687
- g !== "/" && (e.pathname = e.pathname === "/" ? g : q([g, e.pathname])), C = _.createHref(e);
6757
+ let e = wi(s, [], S.mask ? S.mask.pathname : "/", !0);
6758
+ g !== "/" && (e.pathname = e.pathname === "/" ? g : $([g, e.pathname])), C = _.createHref(e);
6688
6759
  }
6689
- let [w, T, E] = Ra(r, m), ee = to(u, {
6760
+ let [w, T, E] = no(r, m), D = go(u, {
6690
6761
  replace: o,
6691
6762
  mask: s,
6692
6763
  state: c,
@@ -6697,24 +6768,24 @@ var qa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ja = e.forwardRef(function({ onClick:
6697
6768
  defaultShouldRevalidate: p,
6698
6769
  useTransitions: v
6699
6770
  });
6700
- function te(e) {
6701
- t && t(e), e.defaultPrevented || ee(e);
6771
+ function O(e) {
6772
+ t && t(e), e.defaultPrevented || D(e);
6702
6773
  }
6703
- let ne = !(b.isExternal || a), re = /* @__PURE__ */ e.createElement("a", {
6774
+ let ee = !(b.isExternal || a), k = /* @__PURE__ */ e.createElement("a", {
6704
6775
  ...m,
6705
6776
  ...E,
6706
- href: (ne ? C : void 0) || b.absoluteURL || x,
6707
- onClick: ne ? te : t,
6708
- ref: Wa(h, T),
6777
+ href: (ee ? C : void 0) || b.absoluteURL || x,
6778
+ onClick: ee ? O : t,
6779
+ ref: co(h, T),
6709
6780
  target: l,
6710
6781
  "data-discover": !y && n === "render" ? "true" : void 0
6711
6782
  });
6712
- return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, re, /* @__PURE__ */ e.createElement(Ba, { page: x })) : re;
6783
+ return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, k, /* @__PURE__ */ e.createElement(io, { page: x })) : k;
6713
6784
  });
6714
- Ja.displayName = "Link";
6715
- var Ya = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
6716
- let d = Ri(o, { relative: l.relative }), f = $(), p = e.useContext(Y), { navigator: m, basename: h } = e.useContext(X), g = p != null && fo(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
6717
- n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = K(y, h) || y);
6785
+ uo.displayName = "Link";
6786
+ var fo = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
6787
+ let d = ca(o, { relative: l.relative }), f = ra(), p = e.useContext(Bi), { navigator: m, basename: h } = e.useContext(Ki), g = p != null && xo(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
6788
+ n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = vi(y, h) || y);
6718
6789
  let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
6719
6790
  isActive: x,
6720
6791
  isPending: S,
@@ -6727,7 +6798,7 @@ var Ya = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
6727
6798
  g ? "transitioning" : null
6728
6799
  ].filter(Boolean).join(" ");
6729
6800
  let E = typeof a == "function" ? a(C) : a;
6730
- return /* @__PURE__ */ e.createElement(Ja, {
6801
+ return /* @__PURE__ */ e.createElement(uo, {
6731
6802
  ...l,
6732
6803
  "aria-current": w,
6733
6804
  className: T,
@@ -6737,9 +6808,9 @@ var Ya = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
6737
6808
  viewTransition: s
6738
6809
  }, typeof c == "function" ? c(C) : c);
6739
6810
  });
6740
- Ya.displayName = "NavLink";
6741
- var Xa = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = sa, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
6742
- let { useTransitions: g } = e.useContext(X), _ = io(), v = ao(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && qa.test(c);
6811
+ fo.displayName = "NavLink";
6812
+ var po = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Oa, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
6813
+ let { useTransitions: g } = e.useContext(Ki), _ = yo(), v = bo(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && Kr.test(c);
6743
6814
  return /* @__PURE__ */ e.createElement("form", {
6744
6815
  ref: h,
6745
6816
  method: y,
@@ -6764,55 +6835,20 @@ var Xa = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, rel
6764
6835
  "data-discover": !b && t === "render" ? "true" : void 0
6765
6836
  });
6766
6837
  });
6767
- Xa.displayName = "Form";
6768
- function Za({ getKey: t, storageKey: n, ...r }) {
6769
- let i = e.useContext(Ia), { basename: a } = e.useContext(X), o = $(), s = ea();
6770
- lo({
6771
- getKey: t,
6772
- storageKey: n
6773
- });
6774
- let c = e.useMemo(() => {
6775
- if (!i || !t) return null;
6776
- let e = co(o, s, a, t);
6777
- return e === o.key ? null : e;
6778
- }, []);
6779
- if (!i || i.isSpaMode) return null;
6780
- let l = ((e, t) => {
6781
- if (!window.history.state || !window.history.state.key) {
6782
- let e = Math.random().toString(32).slice(2);
6783
- window.history.replaceState({ key: e }, "");
6784
- }
6785
- try {
6786
- let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
6787
- typeof n == "number" && window.scrollTo(0, n);
6788
- } catch (t) {
6789
- console.error(t), sessionStorage.removeItem(e);
6790
- }
6791
- }).toString();
6792
- return /* @__PURE__ */ e.createElement("script", {
6793
- ...r,
6794
- suppressHydrationWarning: !0,
6795
- dangerouslySetInnerHTML: { __html: `(${l})(${Sa(JSON.stringify(n || oo))}, ${Sa(JSON.stringify(c))})` }
6796
- });
6797
- }
6798
- Za.displayName = "ScrollRestoration";
6799
- function Qa(e) {
6838
+ po.displayName = "Form";
6839
+ function mo(e) {
6800
6840
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
6801
6841
  }
6802
- function $a(t) {
6803
- let n = e.useContext(J);
6804
- return U(n, Qa(t)), n;
6805
- }
6806
- function eo(t) {
6807
- let n = e.useContext(Y);
6808
- return U(n, Qa(t)), n;
6842
+ function ho(t) {
6843
+ let n = e.useContext(zi);
6844
+ return Q(n, mo(t)), n;
6809
6845
  }
6810
- function to(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
6811
- let d = Ii(), f = $(), p = Ri(t, { relative: s });
6846
+ function go(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
6847
+ let d = oa(), f = ra(), p = ca(t, { relative: s });
6812
6848
  return e.useCallback((m) => {
6813
- if (ma(m, n)) {
6849
+ if (Fa(m, n)) {
6814
6850
  m.preventDefault();
6815
- let n = r === void 0 ? Fr(f) === Fr(p) : r, h = () => d(t, {
6851
+ let n = r === void 0 ? Xr(f) === Xr(p) : r, h = () => d(t, {
6816
6852
  replace: n,
6817
6853
  mask: i,
6818
6854
  state: a,
@@ -6839,20 +6875,23 @@ function to(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o
6839
6875
  u
6840
6876
  ]);
6841
6877
  }
6842
- var no = 0, ro = () => `__${String(++no)}__`;
6843
- function io() {
6844
- let { router: t } = $a("useSubmit"), { basename: n } = e.useContext(X), r = Qi(), i = t.fetch, a = t.navigate;
6878
+ var _o = 0, vo = () => `__${String(++_o)}__`;
6879
+ function yo() {
6880
+ let { router: t } = ho("useSubmit"), { basename: n } = e.useContext(Ki), r = Sa(), i = t.fetch, a = t.navigate;
6845
6881
  return e.useCallback(async (e, t = {}) => {
6846
- let { action: o, method: s, encType: c, formData: l, body: u } = ya(e, n);
6847
- t.navigate === !1 ? await i(t.fetcherKey || ro(), r, t.action || o, {
6848
- defaultShouldRevalidate: t.defaultShouldRevalidate,
6849
- preventScrollReset: t.preventScrollReset,
6850
- formData: l,
6851
- body: u,
6852
- formMethod: t.method || s,
6853
- formEncType: t.encType || c,
6854
- flushSync: t.flushSync
6855
- }) : await a(t.action || o, {
6882
+ let { action: o, method: s, encType: c, formData: l, body: u } = Ba(e, n);
6883
+ if (t.navigate === !1) {
6884
+ let e = t.fetcherKey || vo();
6885
+ await i(e, r, t.action || o, {
6886
+ defaultShouldRevalidate: t.defaultShouldRevalidate,
6887
+ preventScrollReset: t.preventScrollReset,
6888
+ formData: l,
6889
+ body: u,
6890
+ formMethod: t.method || s,
6891
+ formEncType: t.encType || c,
6892
+ flushSync: t.flushSync
6893
+ });
6894
+ } else await a(t.action || o, {
6856
6895
  defaultShouldRevalidate: t.defaultShouldRevalidate,
6857
6896
  preventScrollReset: t.preventScrollReset,
6858
6897
  formData: l,
@@ -6872,10 +6911,10 @@ function io() {
6872
6911
  r
6873
6912
  ]);
6874
6913
  }
6875
- function ao(t, { relative: n } = {}) {
6876
- let { basename: r } = e.useContext(X), i = e.useContext(Q);
6877
- U(i, "useFormAction must be used inside a RouteContext");
6878
- let [a] = i.matches.slice(-1), o = { ...Ri(t || ".", { relative: n }) }, s = $();
6914
+ function bo(t, { relative: n } = {}) {
6915
+ let { basename: r } = e.useContext(Ki), i = e.useContext(Ji);
6916
+ Q(i, "useFormAction must be used inside a RouteContext");
6917
+ let [a] = i.matches.slice(-1), o = { ...ca(t || ".", { relative: n }) }, s = ra();
6879
6918
  if (t == null) {
6880
6919
  o.search = s.search;
6881
6920
  let e = new URLSearchParams(o.search), t = e.getAll("index");
@@ -6885,208 +6924,399 @@ function ao(t, { relative: n } = {}) {
6885
6924
  o.search = n ? `?${n}` : "";
6886
6925
  }
6887
6926
  }
6888
- return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : q([r, o.pathname])), Fr(o);
6927
+ return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : $([r, o.pathname])), Xr(o);
6889
6928
  }
6890
- var oo = "react-router-scroll-positions", so = {};
6891
- function co(e, t, n, r) {
6892
- let i = null;
6893
- return r && (i = r(n === "/" ? e : {
6894
- ...e,
6895
- pathname: K(e.pathname, n) || e.pathname
6896
- }, t)), i ??= e.key, i;
6897
- }
6898
- function lo({ getKey: t, storageKey: n } = {}) {
6899
- let { router: r } = $a("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = eo("useScrollRestoration"), { basename: o } = e.useContext(X), s = $(), c = ea(), l = $i();
6900
- e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
6901
- window.history.scrollRestoration = "auto";
6902
- }), []), uo(e.useCallback(() => {
6903
- if (l.state === "idle") {
6904
- let e = co(s, c, o, t);
6905
- so[e] = window.scrollY;
6906
- }
6907
- try {
6908
- sessionStorage.setItem(n || oo, JSON.stringify(so));
6909
- } catch (e) {
6910
- W(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
6911
- }
6912
- window.history.scrollRestoration = "auto";
6913
- }, [
6914
- l.state,
6915
- t,
6916
- o,
6917
- s,
6918
- c,
6919
- n
6920
- ])), typeof document < "u" && (e.useLayoutEffect(() => {
6921
- try {
6922
- let e = sessionStorage.getItem(n || oo);
6923
- e && (so = JSON.parse(e));
6924
- } catch {}
6925
- }, [n]), e.useLayoutEffect(() => {
6926
- let e = r?.enableScrollRestoration(so, () => window.scrollY, t ? (e, n) => co(e, n, o, t) : void 0);
6927
- return () => e && e();
6928
- }, [
6929
- r,
6930
- o,
6931
- t
6932
- ]), e.useLayoutEffect(() => {
6933
- if (i !== !1) {
6934
- if (typeof i == "number") {
6935
- window.scrollTo(0, i);
6936
- return;
6937
- }
6938
- try {
6939
- if (s.hash) {
6940
- let e = document.getElementById(decodeURIComponent(s.hash.slice(1)));
6941
- if (e) {
6942
- e.scrollIntoView();
6943
- return;
6944
- }
6945
- }
6946
- } catch {
6947
- W(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
6948
- }
6949
- a !== !0 && window.scrollTo(0, 0);
6950
- }
6951
- }, [
6952
- s,
6953
- i,
6954
- a
6955
- ]));
6956
- }
6957
- function uo(t, n) {
6958
- let { capture: r } = n || {};
6959
- e.useEffect(() => {
6960
- let e = r == null ? void 0 : { capture: r };
6961
- return window.addEventListener("pagehide", t, e), () => {
6962
- window.removeEventListener("pagehide", t, e);
6963
- };
6964
- }, [t, r]);
6965
- }
6966
- function fo(t, { relative: n } = {}) {
6967
- let r = e.useContext(Ci);
6968
- U(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
6969
- let { basename: i } = $a("useViewTransitionState"), a = Ri(t, { relative: n });
6929
+ function xo(t, { relative: n } = {}) {
6930
+ let r = e.useContext(Ui);
6931
+ Q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
6932
+ let { basename: i } = ho("useViewTransitionState"), a = ca(t, { relative: n });
6970
6933
  if (!r.isTransitioning) return !1;
6971
- let o = K(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = K(r.nextLocation.pathname, i) || r.nextLocation.pathname;
6972
- return $r(a.pathname, s) != null || $r(a.pathname, o) != null;
6934
+ let o = vi(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = vi(r.nextLocation.pathname, i) || r.nextLocation.pathname;
6935
+ return mi(a.pathname, s) != null || mi(a.pathname, o) != null;
6973
6936
  }
6974
6937
  //#endregion
6975
6938
  //#region src/lib/hooks/useUrlQuery.ts
6976
- function po() {
6977
- let { search: e } = $();
6978
- return c(() => new URLSearchParams(e), [e]);
6939
+ function So() {
6940
+ let e = (0, Z.c)(2), { search: t } = ra(), n;
6941
+ return e[0] === t ? n = e[1] : (n = new URLSearchParams(t), e[0] = t, e[1] = n), n;
6979
6942
  }
6980
6943
  //#endregion
6981
6944
  //#region src/lib/hooks/useFormatNumber.ts
6982
- function mo(e) {
6983
- let { language: t } = z(), n = c(() => new Intl.NumberFormat(t, e), [t, e]);
6984
- return a((e) => {
6945
+ function Co(e) {
6946
+ let t = (0, Z.c)(5), { language: n } = Vn(), r;
6947
+ t[0] !== n || t[1] !== e ? (r = new Intl.NumberFormat(n, e), t[0] = n, t[1] = e, t[2] = r) : r = t[2];
6948
+ let i = r, a;
6949
+ return t[3] === i ? a = t[4] : (a = (e) => {
6985
6950
  if (e == null) return "-";
6986
6951
  let t = Number(e);
6987
- return isNaN(t) ? "-" : n.format(t);
6988
- }, [n]);
6952
+ return isNaN(t) ? "-" : i.format(t);
6953
+ }, t[3] = i, t[4] = a), a;
6989
6954
  }
6990
- function ho(e) {
6991
- return mo()(e);
6955
+ function wo(e) {
6956
+ let t = (0, Z.c)(3), n = Co(), r;
6957
+ return t[0] !== n || t[1] !== e ? (r = n(e), t[0] = n, t[1] = e, t[2] = r) : r = t[2], r;
6992
6958
  }
6993
6959
  //#endregion
6994
6960
  //#region src/lib/components/datetime-display/DateTimeDisplay.tsx
6995
- function go(e) {
6996
- let { date: t, options: n, ...r } = e, i = Nr(t, n);
6997
- return /* @__PURE__ */ D("span", {
6998
- ...r,
6999
- children: i
7000
- });
6961
+ function To(e) {
6962
+ let t = (0, Z.c)(7), n, r, i;
6963
+ t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({date: n, options: r, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
6964
+ let a = Wr(n, r), o;
6965
+ return t[4] !== a || t[5] !== i ? (o = /* @__PURE__ */ L("span", {
6966
+ ...i,
6967
+ children: a
6968
+ }), t[4] = a, t[5] = i, t[6] = o) : o = t[6], o;
7001
6969
  }
7002
6970
  //#endregion
7003
6971
  //#region src/lib/components/duration-display/DurationDisplay.tsx
7004
- function _o({ minutes: e, alternativeText: t = "", ...n }) {
7005
- let r = Pr(e ?? 0);
7006
- return e == null ? /* @__PURE__ */ D("span", {
7007
- ...n,
7008
- children: t
7009
- }) : /* @__PURE__ */ D("span", {
7010
- ...n,
7011
- children: r
7012
- });
6972
+ function Eo(e) {
6973
+ let t = (0, Z.c)(10), n, r, i;
6974
+ t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({minutes: n, alternativeText: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
6975
+ let a = i === void 0 ? "" : i, o = Gr(n ?? 0);
6976
+ if (n == null) {
6977
+ let e;
6978
+ return t[4] !== a || t[5] !== r ? (e = /* @__PURE__ */ L("span", {
6979
+ ...r,
6980
+ children: a
6981
+ }), t[4] = a, t[5] = r, t[6] = e) : e = t[6], e;
6982
+ }
6983
+ let s;
6984
+ return t[7] !== o || t[8] !== r ? (s = /* @__PURE__ */ L("span", {
6985
+ ...r,
6986
+ children: o
6987
+ }), t[7] = o, t[8] = r, t[9] = s) : s = t[9], s;
7013
6988
  }
7014
- var vo = {
6989
+ //#endregion
6990
+ //#region src/lib/components/user-search/UserSearch.utils.ts
6991
+ function Do(e) {
6992
+ let t = /* @__PURE__ */ new Map();
6993
+ for (let n of e) {
6994
+ let e = (n.username?.[0] ?? "#").toUpperCase(), r = t.get(e);
6995
+ r ? r.push(n) : t.set(e, [n]);
6996
+ }
6997
+ return [...t.entries()].sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
6998
+ letter: e,
6999
+ users: t
7000
+ }));
7001
+ }
7002
+ var Oo = {
7015
7003
  label: "User",
7016
- placeholder: "Search by username or email",
7017
- noUsersFound: "No users found",
7018
- typeToSearch: "Type to search for users"
7019
- }, yo = {
7004
+ chooseUser: "Choose user",
7005
+ modalTitle: "Choose a user",
7006
+ searchPlaceholder: "Search by username or email",
7007
+ usersListLabel: "Users",
7008
+ clear: "Clear selection",
7009
+ resultCount: {
7010
+ one: "{{count}} user shown",
7011
+ many: "{{count}} users shown"
7012
+ },
7013
+ empty: "No users found",
7014
+ loadError: "Users could not be loaded.",
7015
+ retry: "Try again"
7016
+ }, ko = {
7020
7017
  label: "Benutzer",
7021
- placeholder: "Nach Benutzername oder E-Mail suchen",
7022
- noUsersFound: "Keine Benutzer gefunden",
7023
- typeToSearch: "Tippen Sie, um nach Benutzern zu suchen"
7018
+ chooseUser: "Benutzer auswählen",
7019
+ modalTitle: "Benutzer auswählen",
7020
+ searchPlaceholder: "Nach Benutzername oder E-Mail suchen",
7021
+ usersListLabel: "Benutzer",
7022
+ clear: "Auswahl entfernen",
7023
+ resultCount: {
7024
+ one: "{{count}} Benutzer angezeigt",
7025
+ many: "{{count}} Benutzer angezeigt"
7026
+ },
7027
+ empty: "Keine Benutzer gefunden",
7028
+ loadError: "Benutzer konnten nicht geladen werden.",
7029
+ retry: "Erneut versuchen"
7030
+ }, Ao = 50, jo = 300, Mo = {
7031
+ "--field-border": "var(--border-secondary)",
7032
+ "--border-width-field": "1px"
7024
7033
  };
7025
- //#endregion
7026
- //#region src/lib/components/user-search/UserSearch.tsx
7027
- function bo(e) {
7028
- let { label: t, placeholder: n, onSelectionChange: r, afterAutocomplete: i, wrapperProps: o, afterSelection: l } = e, { t: d } = Vn({
7029
- en: vo,
7030
- de: yo
7031
- }), [f, p] = u(""), [m, h] = u(null), v = c(() => m == null ? null : Number(m), [m]), S = se({
7032
- search: f,
7033
- limit: 10,
7034
- page: 1
7035
- }), C = c(() => {
7036
- let e = S.data?.data ?? [], t = f.trim().toLowerCase();
7037
- return t ? e.filter((e) => e.username.toLowerCase().includes(t)) : e;
7038
- }, [S.data, f]), w = ce({ id: v }, void 0, { enabled: !!v }), T = c(() => v ? w.data?.id === v ? w.data : C.find((e) => e.id === v) ?? null : null, [
7039
- v,
7040
- w.data,
7041
- C
7042
- ]);
7043
- s(() => {
7044
- typeof r == "function" && r(T);
7045
- }, [T, r]);
7046
- let E = a((e) => {
7047
- if (h(e), e != null) {
7048
- let t = C.find((t) => t.id === Number(e));
7049
- t && p(t.username);
7034
+ function No(e) {
7035
+ let t = (0, Z.c)(125), { label: n, placeholder: r, size: i, resetSignal: a, onSelectionChange: o, afterAutocomplete: l, wrapperProps: f, afterSelection: p } = e, m;
7036
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (m = {
7037
+ en: Oo,
7038
+ de: ko
7039
+ }, t[0] = m) : m = t[0];
7040
+ let { t: g } = Wn(m), k = c(), ne = c(), { isOpen: A, open: j, close: M } = F(), [N, re] = d(null), [P, ie] = d(""), oe = Hr(P, jo), B = u(!0), V;
7041
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
7042
+ if (B.current) {
7043
+ B.current = !1;
7044
+ return;
7050
7045
  }
7051
- }, [C]), ee = a((e) => {
7052
- p(e), m != null && T && e !== T.username && h(null);
7053
- }, [m, T]);
7054
- return /* @__PURE__ */ O("div", {
7055
- ...o,
7056
- children: [/* @__PURE__ */ O("div", {
7057
- className: "flex gap-2 items-center",
7058
- children: [/* @__PURE__ */ O(g, {
7059
- className: "flex-1",
7060
- items: C,
7061
- selectedKey: m,
7062
- onSelectionChange: E,
7063
- inputValue: f,
7064
- onInputChange: ee,
7065
- menuTrigger: "input",
7066
- allowsEmptyCollection: !0,
7067
- children: [
7068
- /* @__PURE__ */ D(y, { children: t ?? d("label") }),
7069
- /* @__PURE__ */ O(g.InputGroup, { children: [/* @__PURE__ */ D(_, {
7070
- placeholder: n ?? d("placeholder"),
7071
- autoComplete: "off"
7072
- }), /* @__PURE__ */ D(g.Trigger, {})] }),
7073
- /* @__PURE__ */ D(g.Popover, { children: /* @__PURE__ */ D(b, { children: (e) => /* @__PURE__ */ D(x, {
7074
- id: String(e.id),
7075
- textValue: e.username,
7076
- children: /* @__PURE__ */ D(jr, { user: e })
7077
- }) }) })
7078
- ]
7079
- }), i]
7080
- }), /* @__PURE__ */ O("div", {
7081
- className: "flex gap-2 items-center w-full justify-between",
7082
- children: [T && /* @__PURE__ */ D(jr, {
7083
- user: T,
7084
- className: "my-2 mx-2"
7085
- }), l]
7046
+ re(null), ie("");
7047
+ }, t[1] = V) : V = t[1];
7048
+ let H;
7049
+ t[2] === a ? H = t[3] : (H = [a], t[2] = a, t[3] = H), s(V, H);
7050
+ let U;
7051
+ t[4] !== oe || t[5] !== A || t[6] !== P ? (U = A && P.trim() && oe.trim() || void 0, t[4] = oe, t[5] = A, t[6] = P, t[7] = U) : U = t[7];
7052
+ let W;
7053
+ t[8] === U ? W = t[9] : (W = {
7054
+ limit: Ao,
7055
+ search: U
7056
+ }, t[8] = U, t[9] = W);
7057
+ let se;
7058
+ t[10] === A ? se = t[11] : (se = {
7059
+ enabled: A,
7060
+ initialPageParam: 1,
7061
+ getNextPageParam: Po
7062
+ }, t[10] = A, t[11] = se);
7063
+ let { data: G, fetchNextPage: ce, hasNextPage: le, isFetchingNextPage: K, isFetching: ue, isLoading: de, isError: q, refetch: fe } = z(W, void 0, se), pe;
7064
+ if (t[12] !== G?.pages) {
7065
+ let e = /* @__PURE__ */ new Map();
7066
+ for (let t of G?.pages ?? []) for (let n of t.data) e.set(n.id, n);
7067
+ pe = [...e.values()], t[12] = G?.pages, t[13] = pe;
7068
+ } else pe = t[13];
7069
+ let J = pe, me;
7070
+ t[14] === J ? me = t[15] : (me = Do(J), t[14] = J, t[15] = me);
7071
+ let he = me, ge, _e;
7072
+ t[16] !== o || t[17] !== N ? (ge = () => {
7073
+ o?.(N);
7074
+ }, _e = [N, o], t[16] = o, t[17] = N, t[18] = ge, t[19] = _e) : (ge = t[18], _e = t[19]), s(ge, _e);
7075
+ let ve;
7076
+ t[20] === M ? ve = t[21] : (ve = (e) => {
7077
+ re(e), ie(""), M();
7078
+ }, t[20] = M, t[21] = ve);
7079
+ let ye = ve, be;
7080
+ t[22] !== M || t[23] !== j ? (be = (e) => {
7081
+ e ? j() : (ie(""), M());
7082
+ }, t[22] = M, t[23] = j, t[24] = be) : be = t[24];
7083
+ let xe = be, Se = u(null), Ce = u(null), we;
7084
+ t[25] !== ce || t[26] !== le || t[27] !== K ? (we = {
7085
+ hasNextPage: le,
7086
+ isFetchingNextPage: K,
7087
+ fetchNextPage: ce
7088
+ }, t[25] = ce, t[26] = le, t[27] = K, t[28] = we) : we = t[28];
7089
+ let Te = u(we), Ee;
7090
+ t[29] !== ce || t[30] !== le || t[31] !== K ? (Ee = () => {
7091
+ Te.current = {
7092
+ hasNextPage: le,
7093
+ isFetchingNextPage: K,
7094
+ fetchNextPage: ce
7095
+ };
7096
+ }, t[29] = ce, t[30] = le, t[31] = K, t[32] = Ee) : Ee = t[32], s(Ee);
7097
+ let De;
7098
+ t[33] === A ? De = t[34] : (De = () => {
7099
+ let e = Ce.current, t = Se.current;
7100
+ if (!e || !t || !A) return;
7101
+ let n = new IntersectionObserver((e) => {
7102
+ let t = Te.current;
7103
+ e[0]?.isIntersecting && t.hasNextPage && !t.isFetchingNextPage && t.fetchNextPage();
7104
+ }, {
7105
+ root: t,
7106
+ rootMargin: "200px"
7107
+ });
7108
+ return n.observe(e), () => n.disconnect();
7109
+ }, t[33] = A, t[34] = De);
7110
+ let Oe;
7111
+ t[35] !== q || t[36] !== A ? (Oe = [A, q], t[35] = q, t[36] = A, t[37] = Oe) : Oe = t[37], s(De, Oe);
7112
+ let ke;
7113
+ t[38] !== n || t[39] !== g ? (ke = n ?? g("label"), t[38] = n, t[39] = g, t[40] = ke) : ke = t[40];
7114
+ let Ae;
7115
+ t[41] !== k || t[42] !== ke ? (Ae = /* @__PURE__ */ L(y, {
7116
+ id: k,
7117
+ className: "mb-1 block",
7118
+ children: ke
7119
+ }), t[41] = k, t[42] = ke, t[43] = Ae) : Ae = t[43];
7120
+ let je;
7121
+ t[44] !== k || t[45] !== j || t[46] !== N || t[47] !== i || t[48] !== g || t[49] !== ne ? (je = N ? /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(h, {
7122
+ variant: "ghost",
7123
+ size: i,
7124
+ onPress: j,
7125
+ className: "justify-start px-2",
7126
+ id: ne,
7127
+ "aria-labelledby": `${k} ${ne}`,
7128
+ "data-cy": "user-picker-selected",
7129
+ children: /* @__PURE__ */ L(Vr, {
7130
+ user: N,
7131
+ interactive: !1
7132
+ })
7133
+ }), /* @__PURE__ */ L(h, {
7134
+ variant: "ghost",
7135
+ size: i ?? "sm",
7136
+ isIconOnly: !0,
7137
+ onPress: () => re(null),
7138
+ "aria-label": g("clear"),
7139
+ "data-cy": "user-picker-clear",
7140
+ children: /* @__PURE__ */ L(Fr, { className: "w-4 h-4" })
7141
+ })] }) : /* @__PURE__ */ R(h, {
7142
+ variant: "secondary",
7143
+ size: i,
7144
+ onPress: j,
7145
+ className: "flex-1 justify-start",
7146
+ id: ne,
7147
+ "aria-labelledby": `${k} ${ne}`,
7148
+ "data-cy": "user-picker-open",
7149
+ children: [/* @__PURE__ */ L(Pr, { className: "w-4 h-4" }), g("chooseUser")]
7150
+ }), t[44] = k, t[45] = j, t[46] = N, t[47] = i, t[48] = g, t[49] = ne, t[50] = je) : je = t[50];
7151
+ let Me;
7152
+ t[51] !== l || t[52] !== p || t[53] !== je ? (Me = /* @__PURE__ */ R("div", {
7153
+ className: "flex gap-2 items-center",
7154
+ children: [
7155
+ je,
7156
+ l,
7157
+ p
7158
+ ]
7159
+ }), t[51] = l, t[52] = p, t[53] = je, t[54] = Me) : Me = t[54];
7160
+ let Ne;
7161
+ t[55] === g ? Ne = t[56] : (Ne = g("modalTitle"), t[55] = g, t[56] = Ne);
7162
+ let Pe;
7163
+ t[57] === g ? Pe = t[58] : (Pe = g("modalTitle"), t[57] = g, t[58] = Pe);
7164
+ let Fe;
7165
+ t[59] === Pe ? Fe = t[60] : (Fe = /* @__PURE__ */ L(O, { children: /* @__PURE__ */ L(ee, { children: Pe }) }), t[59] = Pe, t[60] = Fe);
7166
+ let Ie;
7167
+ t[61] === g ? Ie = t[62] : (Ie = g("searchPlaceholder"), t[61] = g, t[62] = Ie);
7168
+ let Le;
7169
+ t[63] === Symbol.for("react.memo_cache_sentinel") ? (Le = /* @__PURE__ */ L(v.Prefix, { children: /* @__PURE__ */ L(Mr, { className: "size-4 text-muted" }) }), t[63] = Le) : Le = t[63];
7170
+ let Re;
7171
+ t[64] !== r || t[65] !== g ? (Re = r ?? g("searchPlaceholder"), t[64] = r, t[65] = g, t[66] = Re) : Re = t[66];
7172
+ let ze;
7173
+ t[67] === Re ? ze = t[68] : (ze = /* @__PURE__ */ L(v.Input, {
7174
+ placeholder: Re,
7175
+ autoComplete: "off"
7176
+ }), t[67] = Re, t[68] = ze);
7177
+ let Be;
7178
+ t[69] === de ? Be = t[70] : (Be = de ? /* @__PURE__ */ L(v.Suffix, { children: /* @__PURE__ */ L(te, { size: "sm" }) }) : null, t[69] = de, t[70] = Be);
7179
+ let Ve;
7180
+ t[71] !== ze || t[72] !== Be ? (Ve = /* @__PURE__ */ R(v, { children: [
7181
+ Le,
7182
+ ze,
7183
+ Be
7184
+ ] }), t[71] = ze, t[72] = Be, t[73] = Ve) : Ve = t[73];
7185
+ let He;
7186
+ t[74] !== P || t[75] !== Ie || t[76] !== Ve ? (He = /* @__PURE__ */ L("div", {
7187
+ className: "px-4",
7188
+ children: /* @__PURE__ */ L(ae, {
7189
+ value: P,
7190
+ onChange: ie,
7191
+ className: "w-full",
7192
+ "aria-label": Ie,
7193
+ children: Ve
7194
+ })
7195
+ }), t[74] = P, t[75] = Ie, t[76] = Ve, t[77] = He) : He = t[77];
7196
+ let Ue;
7197
+ t[78] !== g || t[79] !== J.length ? (Ue = g("resultCount", { count: J.length }), t[78] = g, t[79] = J.length, t[80] = Ue) : Ue = t[80];
7198
+ let We;
7199
+ t[81] === Ue ? We = t[82] : (We = /* @__PURE__ */ L("div", {
7200
+ "aria-live": "polite",
7201
+ className: "sr-only",
7202
+ children: Ue
7203
+ }), t[81] = Ue, t[82] = We);
7204
+ let Ge;
7205
+ t[83] === Symbol.for("react.memo_cache_sentinel") ? (Ge = {
7206
+ maxHeight: "60vh",
7207
+ overflowY: "auto"
7208
+ }, t[83] = Ge) : Ge = t[83];
7209
+ let Ke;
7210
+ t[84] !== he || t[85] !== ye || t[86] !== q || t[87] !== ue || t[88] !== de || t[89] !== fe || t[90] !== g || t[91] !== J.length ? (Ke = q && J.length === 0 ? /* @__PURE__ */ R("div", {
7211
+ className: "flex flex-col items-center gap-3 py-10",
7212
+ "data-cy": "user-picker-error",
7213
+ children: [/* @__PURE__ */ L("p", {
7214
+ className: "text-sm text-muted",
7215
+ children: g("loadError")
7216
+ }), /* @__PURE__ */ L(h, {
7217
+ variant: "secondary",
7218
+ size: "sm",
7219
+ isPending: ue,
7220
+ onPress: () => fe(),
7221
+ children: g("retry")
7086
7222
  })]
7087
- });
7088
- }
7089
- var xo = {
7223
+ }) : he.length === 0 && !de ? /* @__PURE__ */ L("div", {
7224
+ className: "py-10 text-center text-sm text-muted",
7225
+ children: g("empty")
7226
+ }) : /* @__PURE__ */ L(b, {
7227
+ "aria-label": g("usersListLabel"),
7228
+ selectionMode: "none",
7229
+ children: he.map((e) => /* @__PURE__ */ R(S, {
7230
+ id: e.letter,
7231
+ children: [/* @__PURE__ */ L(_, {
7232
+ className: "sticky top-0 z-10 bg-surface-secondary px-2 py-1 text-xs font-semibold text-muted",
7233
+ children: e.letter
7234
+ }), e.users.map((e) => /* @__PURE__ */ L(x, {
7235
+ id: String(e.id),
7236
+ textValue: e.username,
7237
+ onAction: () => ye(e),
7238
+ "data-cy": `user-picker-item-${e.id}`,
7239
+ children: /* @__PURE__ */ L(Vr, {
7240
+ user: e,
7241
+ interactive: !1
7242
+ })
7243
+ }, e.id))]
7244
+ }, e.letter))
7245
+ }), t[84] = he, t[85] = ye, t[86] = q, t[87] = ue, t[88] = de, t[89] = fe, t[90] = g, t[91] = J.length, t[92] = Ke) : Ke = t[92];
7246
+ let qe;
7247
+ t[93] === q ? qe = t[94] : (qe = q ? null : /* @__PURE__ */ L("div", { ref: Ce }), t[93] = q, t[94] = qe);
7248
+ let Je;
7249
+ t[95] !== ce || t[96] !== q || t[97] !== K || t[98] !== g || t[99] !== J.length ? (Je = q && J.length > 0 ? /* @__PURE__ */ R("div", {
7250
+ className: "flex items-center justify-center gap-3 py-3",
7251
+ "data-cy": "user-picker-load-more-error",
7252
+ children: [/* @__PURE__ */ L("p", {
7253
+ className: "text-sm text-muted",
7254
+ children: g("loadError")
7255
+ }), /* @__PURE__ */ L(h, {
7256
+ variant: "secondary",
7257
+ size: "sm",
7258
+ isPending: K,
7259
+ onPress: () => ce(),
7260
+ children: g("retry")
7261
+ })]
7262
+ }) : null, t[95] = ce, t[96] = q, t[97] = K, t[98] = g, t[99] = J.length, t[100] = Je) : Je = t[100];
7263
+ let Ye;
7264
+ t[101] === K ? Ye = t[102] : (Ye = K ? /* @__PURE__ */ L("div", {
7265
+ className: "flex justify-center py-3",
7266
+ children: /* @__PURE__ */ L(te, { size: "sm" })
7267
+ }) : null, t[101] = K, t[102] = Ye);
7268
+ let Xe;
7269
+ t[103] !== Ke || t[104] !== qe || t[105] !== Je || t[106] !== Ye ? (Xe = /* @__PURE__ */ R("div", {
7270
+ ref: Se,
7271
+ className: "mt-2",
7272
+ style: Ge,
7273
+ "data-cy": "user-picker-list",
7274
+ children: [
7275
+ Ke,
7276
+ qe,
7277
+ Je,
7278
+ Ye
7279
+ ]
7280
+ }), t[103] = Ke, t[104] = qe, t[105] = Je, t[106] = Ye, t[107] = Xe) : Xe = t[107];
7281
+ let Ze;
7282
+ t[108] !== He || t[109] !== We || t[110] !== Xe ? (Ze = /* @__PURE__ */ R(T, {
7283
+ className: "px-0 pb-0",
7284
+ children: [
7285
+ He,
7286
+ We,
7287
+ Xe
7288
+ ]
7289
+ }), t[108] = He, t[109] = We, t[110] = Xe, t[111] = Ze) : Ze = t[111];
7290
+ let Qe;
7291
+ t[112] !== Ne || t[113] !== Fe || t[114] !== Ze ? (Qe = /* @__PURE__ */ L(w, { children: /* @__PURE__ */ L(E, {
7292
+ size: "md",
7293
+ children: /* @__PURE__ */ R(D, {
7294
+ className: "bg-surface-secondary",
7295
+ style: Mo,
7296
+ "aria-label": Ne,
7297
+ children: [Fe, Ze]
7298
+ })
7299
+ }) }), t[112] = Ne, t[113] = Fe, t[114] = Ze, t[115] = Qe) : Qe = t[115];
7300
+ let $e;
7301
+ t[116] !== xe || t[117] !== A || t[118] !== Qe ? ($e = /* @__PURE__ */ L(C, {
7302
+ isOpen: A,
7303
+ onOpenChange: xe,
7304
+ children: Qe
7305
+ }), t[116] = xe, t[117] = A, t[118] = Qe, t[119] = $e) : $e = t[119];
7306
+ let et;
7307
+ return t[120] !== Ae || t[121] !== Me || t[122] !== $e || t[123] !== f ? (et = /* @__PURE__ */ R("div", {
7308
+ ...f,
7309
+ children: [
7310
+ Ae,
7311
+ Me,
7312
+ $e
7313
+ ]
7314
+ }), t[120] = Ae, t[121] = Me, t[122] = $e, t[123] = f, t[124] = et) : et = t[124], et;
7315
+ }
7316
+ function Po(e) {
7317
+ return e.nextPage;
7318
+ }
7319
+ var Fo = {
7090
7320
  search: {
7091
7321
  label: "Ressourcen suchen",
7092
7322
  placeholder: "Tippe um zu suchen"
@@ -7096,7 +7326,7 @@ var xo = {
7096
7326
  columns: { name: { header: "Name" } }
7097
7327
  },
7098
7328
  list: { label: "Zugewiesen an" }
7099
- }, So = {
7329
+ }, Io = {
7100
7330
  search: {
7101
7331
  label: "Search resources",
7102
7332
  placeholder: "Type to search"
@@ -7106,80 +7336,138 @@ var xo = {
7106
7336
  columns: { name: { header: "Name" } }
7107
7337
  },
7108
7338
  list: { label: "Assigned to" }
7109
- }, Co = ({ children: e }) => /* @__PURE__ */ D("div", {
7110
- className: "border-small px-1 py-2 rounded-small border-default-200 dark:border-default-100",
7111
- children: e
7112
- });
7113
- function wo(e) {
7114
- let { selection: t, onSelectionChange: n, multiple: r = !0, listClassName: i = "" } = e, [a, o] = u(""), { t: s } = Vn({
7115
- de: xo,
7116
- en: So
7117
- }), { data: c, isLoading: l } = oe({
7339
+ }, Lo = (e) => {
7340
+ let t = (0, Z.c)(2), { children: n } = e, r;
7341
+ return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ L("div", {
7342
+ className: "border-small px-1 py-2 rounded-small border-default-200 dark:border-default-100",
7343
+ children: n
7344
+ }), t[0] = n, t[1] = r), r;
7345
+ };
7346
+ function Ro(e) {
7347
+ let t = (0, Z.c)(58), { selection: n, onSelectionChange: r, multiple: i, listClassName: a } = e, o = i === void 0 || i, s = a === void 0 ? "" : a, [c, l] = d(""), u;
7348
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
7349
+ de: Fo,
7350
+ en: Io
7351
+ }, t[0] = u) : u = t[0];
7352
+ let { t: f } = Wn(u), p;
7353
+ t[1] === c ? p = t[2] : (p = {
7118
7354
  limit: 15,
7119
7355
  page: 1,
7120
- search: a
7121
- });
7122
- return /* @__PURE__ */ O("div", {
7356
+ search: c
7357
+ }, t[1] = c, t[2] = p);
7358
+ let { data: m, isLoading: h } = oe(p), _;
7359
+ t[3] === f ? _ = t[4] : (_ = f("search.label"), t[3] = f, t[4] = _);
7360
+ let b;
7361
+ t[5] === _ ? b = t[6] : (b = /* @__PURE__ */ L(y, { children: _ }), t[5] = _, t[6] = b);
7362
+ let x;
7363
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ L(v.Prefix, { children: /* @__PURE__ */ L(Mr, { className: "size-4 text-muted" }) }), t[7] = x) : x = t[7];
7364
+ let S;
7365
+ t[8] === f ? S = t[9] : (S = f("search.placeholder"), t[8] = f, t[9] = S);
7366
+ let C;
7367
+ t[10] === S ? C = t[11] : (C = /* @__PURE__ */ L(v.Input, { placeholder: S }), t[10] = S, t[11] = C);
7368
+ let w;
7369
+ t[12] === h ? w = t[13] : (w = h ? /* @__PURE__ */ L(v.Suffix, { children: /* @__PURE__ */ L(te, { size: "sm" }) }) : null, t[12] = h, t[13] = w);
7370
+ let T;
7371
+ t[14] !== C || t[15] !== w ? (T = /* @__PURE__ */ R(v, { children: [
7372
+ x,
7373
+ C,
7374
+ w
7375
+ ] }), t[14] = C, t[15] = w, t[16] = T) : T = t[16];
7376
+ let E;
7377
+ t[17] !== c || t[18] !== T || t[19] !== b ? (E = /* @__PURE__ */ R(ae, {
7378
+ value: c,
7379
+ onChange: l,
7380
+ className: "w-full",
7381
+ children: [b, T]
7382
+ }), t[17] = c, t[18] = T, t[19] = b, t[20] = E) : E = t[20];
7383
+ let D;
7384
+ t[21] === f ? D = t[22] : (D = f("table.ariaLabel"), t[21] = f, t[22] = D);
7385
+ let O;
7386
+ t[23] === Symbol.for("react.memo_cache_sentinel") ? (O = {
7387
+ maxHeight: 387,
7388
+ overflowY: "auto"
7389
+ }, t[23] = O) : O = t[23];
7390
+ let ee = o ? "multiple" : "single", k;
7391
+ t[24] === n ? k = t[25] : (k = new Set(n.map(String)), t[24] = n, t[25] = k);
7392
+ let A;
7393
+ t[26] !== r || t[27] !== m?.data ? (A = (e) => {
7394
+ if (e === "all") {
7395
+ r((m?.data ?? []).map(Vo));
7396
+ return;
7397
+ }
7398
+ r(Array.from(e).map(Bo));
7399
+ }, t[26] = r, t[27] = m?.data, t[28] = A) : A = t[28];
7400
+ let P;
7401
+ t[29] !== o || t[30] !== f ? (P = o ? /* @__PURE__ */ L(g, {
7402
+ "aria-label": f("table.ariaLabel"),
7403
+ slot: "selection",
7404
+ children: /* @__PURE__ */ L(g.Control, { children: /* @__PURE__ */ L(g.Indicator, {}) })
7405
+ }) : null, t[29] = o, t[30] = f, t[31] = P) : P = t[31];
7406
+ let F;
7407
+ t[32] === P ? F = t[33] : (F = /* @__PURE__ */ L(j, {
7408
+ className: "pr-0 w-0",
7409
+ children: P
7410
+ }), t[32] = P, t[33] = F);
7411
+ let I;
7412
+ t[34] === f ? I = t[35] : (I = f("table.columns.name.header"), t[34] = f, t[35] = I);
7413
+ let z;
7414
+ t[36] === I ? z = t[37] : (z = /* @__PURE__ */ L(j, {
7415
+ className: "w-full",
7416
+ isRowHeader: !0,
7417
+ children: I
7418
+ }), t[36] = I, t[37] = z);
7419
+ let B;
7420
+ t[38] !== F || t[39] !== z ? (B = /* @__PURE__ */ R(N, { children: [F, z] }), t[38] = F, t[39] = z, t[40] = B) : B = t[40];
7421
+ let V;
7422
+ t[41] === m?.data ? V = t[42] : (V = m?.data ?? [], t[41] = m?.data, t[42] = V);
7423
+ let H;
7424
+ t[43] === V ? H = t[44] : (H = /* @__PURE__ */ L(ne, {
7425
+ items: V,
7426
+ children: zo
7427
+ }), t[43] = V, t[44] = H);
7428
+ let U;
7429
+ t[45] !== ee || t[46] !== k || t[47] !== A || t[48] !== B || t[49] !== H ? (U = /* @__PURE__ */ L(ie, { children: /* @__PURE__ */ R(M, {
7430
+ selectionMode: ee,
7431
+ selectedKeys: k,
7432
+ onSelectionChange: A,
7433
+ children: [B, H]
7434
+ }) }), t[45] = ee, t[46] = k, t[47] = A, t[48] = B, t[49] = H, t[50] = U) : U = t[50];
7435
+ let W;
7436
+ t[51] !== s || t[52] !== D || t[53] !== U ? (W = /* @__PURE__ */ L(re, {
7437
+ "aria-label": D,
7438
+ className: s,
7439
+ style: O,
7440
+ children: U
7441
+ }), t[51] = s, t[52] = D, t[53] = U, t[54] = W) : W = t[54];
7442
+ let se;
7443
+ return t[55] !== E || t[56] !== W ? (se = /* @__PURE__ */ R("div", {
7123
7444
  className: "flex flex-col gap-2",
7124
- children: [/* @__PURE__ */ O(ae, {
7125
- value: a,
7126
- onChange: o,
7127
- className: "w-full",
7128
- children: [/* @__PURE__ */ D(y, { children: s("search.label") }), /* @__PURE__ */ O(v, { children: [
7129
- /* @__PURE__ */ D(v.Prefix, { children: /* @__PURE__ */ D(wr, { className: "size-4 text-muted" }) }),
7130
- /* @__PURE__ */ D(v.Input, { placeholder: s("search.placeholder") }),
7131
- l ? /* @__PURE__ */ D(v.Suffix, { children: /* @__PURE__ */ D(C, { size: "sm" }) }) : null
7132
- ] })]
7133
- }), /* @__PURE__ */ D(ne, {
7134
- "aria-label": s("table.ariaLabel"),
7135
- className: i,
7136
- style: {
7137
- maxHeight: 387,
7138
- overflowY: "auto"
7139
- },
7140
- children: /* @__PURE__ */ D(ie, { children: /* @__PURE__ */ O(ee, {
7141
- selectionMode: r ? "multiple" : "single",
7142
- selectedKeys: new Set(t.map(String)),
7143
- onSelectionChange: (e) => {
7144
- if (e === "all") {
7145
- n((c?.data ?? []).map((e) => e.id));
7146
- return;
7147
- }
7148
- n(Array.from(e).map((e) => Number(e)));
7149
- },
7150
- children: [/* @__PURE__ */ O(te, { children: [/* @__PURE__ */ D(E, {
7151
- className: "pr-0 w-0",
7152
- children: r ? /* @__PURE__ */ D(h, {
7153
- "aria-label": s("table.ariaLabel"),
7154
- slot: "selection",
7155
- children: /* @__PURE__ */ D(h.Control, { children: /* @__PURE__ */ D(h.Indicator, {}) })
7156
- }) : null
7157
- }), /* @__PURE__ */ D(E, {
7158
- className: "w-full",
7159
- isRowHeader: !0,
7160
- children: s("table.columns.name.header")
7161
- })] }), /* @__PURE__ */ D(w, {
7162
- items: c?.data ?? [],
7163
- children: (e) => /* @__PURE__ */ O(re, {
7164
- id: String(e.id),
7165
- children: [/* @__PURE__ */ D(T, {
7166
- className: "pr-0",
7167
- children: /* @__PURE__ */ D(h, {
7168
- "aria-label": e.name,
7169
- slot: "selection",
7170
- variant: "secondary",
7171
- children: /* @__PURE__ */ D(h.Control, { children: /* @__PURE__ */ D(h.Indicator, {}) })
7172
- })
7173
- }), /* @__PURE__ */ D(T, { children: e.name })]
7174
- }, e.id)
7175
- })]
7176
- }) })
7177
- })]
7178
- });
7445
+ children: [E, W]
7446
+ }), t[55] = E, t[56] = W, t[57] = se) : se = t[57], se;
7447
+ }
7448
+ function zo(e) {
7449
+ return /* @__PURE__ */ R(P, {
7450
+ id: String(e.id),
7451
+ children: [/* @__PURE__ */ L(A, {
7452
+ className: "pr-0",
7453
+ children: /* @__PURE__ */ L(g, {
7454
+ "aria-label": e.name,
7455
+ slot: "selection",
7456
+ variant: "secondary",
7457
+ children: /* @__PURE__ */ L(g.Control, { children: /* @__PURE__ */ L(g.Indicator, {}) })
7458
+ })
7459
+ }), /* @__PURE__ */ L(A, { children: e.name })]
7460
+ }, e.id);
7461
+ }
7462
+ function Bo(e) {
7463
+ return Number(e);
7464
+ }
7465
+ function Vo(e) {
7466
+ return e.id;
7179
7467
  }
7180
7468
  //#endregion
7181
7469
  //#region src/lib/components/Trans/index.tsx
7182
- function To(e) {
7470
+ function Ho(e) {
7183
7471
  let t = { children: [] }, n = [], r = /<\/?([a-zA-Z0-9_]+)\s*\/?\s*>/g, i = 0, a = () => n.length === 0 ? t.children : n[n.length - 1].children, o;
7184
7472
  for (; (o = r.exec(e)) !== null;) {
7185
7473
  let s = o[0], c = o[1], l = s.startsWith("</"), u = /\/>\s*$/.test(s) || !l && s.endsWith("/>");
@@ -7237,7 +7525,7 @@ function To(e) {
7237
7525
  }
7238
7526
  return t.children;
7239
7527
  }
7240
- function Eo(e, n, r = "k") {
7528
+ function Uo(e, n, r = "k") {
7241
7529
  let i = [];
7242
7530
  return e.forEach((e, a) => {
7243
7531
  let o = `${r}-${a}`;
@@ -7249,21 +7537,21 @@ function Eo(e, n, r = "k") {
7249
7537
  if (t.isValidElement(s)) {
7250
7538
  if (e.selfClosing) i.push(t.cloneElement(s, { key: o }));
7251
7539
  else {
7252
- let r = Eo(e.children, n, o);
7540
+ let r = Uo(e.children, n, o);
7253
7541
  i.push(t.cloneElement(s, { key: o }, r));
7254
7542
  }
7255
7543
  return;
7256
7544
  }
7257
- e.selfClosing || i.push(...Eo(e.children, n, o));
7545
+ e.selfClosing || i.push(...Uo(e.children, n, o));
7258
7546
  }), i;
7259
7547
  }
7260
- function Do(e) {
7261
- let { i18nKey: t, values: n, components: r, t: i } = e, a = c(() => i(t, n), [
7262
- i,
7263
- t,
7264
- n
7265
- ]), o = c(() => To(a), [a]);
7266
- return c(() => Eo(o, r), [o, r]);
7548
+ function Wo(e) {
7549
+ let t = (0, Z.c)(9), { i18nKey: n, values: r, components: i, t: a } = e, o;
7550
+ t[0] !== n || t[1] !== a || t[2] !== r ? (o = a(n, r), t[0] = n, t[1] = a, t[2] = r, t[3] = o) : o = t[3];
7551
+ let s = o, c;
7552
+ t[4] === s ? c = t[5] : (c = Ho(s), t[4] = s, t[5] = c);
7553
+ let l = c, u;
7554
+ return t[6] !== i || t[7] !== l ? (u = Uo(l, i), t[6] = i, t[7] = l, t[8] = u) : u = t[8], u;
7267
7555
  }
7268
7556
  //#endregion
7269
- export { jr as AttraccessUser, Dr as AttraccessUserActionsProvider, go as DateTimeDisplay, _o as DurationDisplay, Rn as I18N_LANGUAGE_STORAGE_KEY, Do as I18nTransComponent, Co as ListboxWrapper, wo as ResourceSelector, bo as UserSearch, Hn as detectAndSetLanguage, Or as useAttraccessUserActions, Mr as useDateTimeFormatter, Nr as useFormatDateTime, ho as useFormatNumber, Pr as useFormatedDuration, mo as useNumberFormatter, z as useTranslationState, Vn as useTranslations, po as useUrlQuery };
7557
+ export { Vr as AttraccessUser, Lr as AttraccessUserActionsProvider, To as DateTimeDisplay, Eo as DurationDisplay, Bn as I18N_LANGUAGE_STORAGE_KEY, Wo as I18nTransComponent, Lo as ListboxWrapper, Ro as ResourceSelector, No as UserSearch, Kn as detectAndSetLanguage, Rr as useAttraccessUserActions, Ur as useDateTimeFormatter, Hr as useDebounce, Wr as useFormatDateTime, wo as useFormatNumber, Gr as useFormatedDuration, Co as useNumberFormatter, Vn as useTranslationState, Wn as useTranslations, So as useUrlQuery };