@myxtra/authentication-green 2.10.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- var Ee = (t) => {
2
- throw TypeError(t);
1
+ var Et = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var re = (t, e, s) => e.has(t) || Ee("Cannot " + s);
5
- var n = (t, e, s) => (re(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? Ee("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), p = (t, e, s, r) => (re(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), b = (t, e, s) => (re(t, e, "access private method"), s);
6
- var zt = (t, e, s, r) => ({
4
+ var rt = (e, t, s) => t.has(e) || Et("Cannot " + s);
5
+ var n = (e, t, s) => (rt(e, t, "read from private field"), s ? s.call(e) : t.get(e)), y = (e, t, s) => t.has(e) ? Et("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), p = (e, t, s, r) => (rt(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s), b = (e, t, s) => (rt(e, t, "access private method"), s);
6
+ var ze = (e, t, s, r) => ({
7
7
  set _(a) {
8
- p(t, e, a, s);
8
+ p(e, t, a, s);
9
9
  },
10
10
  get _() {
11
- return n(t, e, r);
11
+ return n(e, t, r);
12
12
  }
13
13
  });
14
- import { r as f, j as i, u as Fs, a as Ds, b as jt, P as Pe, c as Xe, d as Ts, e as Us, E as Qs, C as Hs } from "./index-BZr861VF.js";
15
- var Ht = class {
14
+ import { r as f, j as i, u as Fs, a as Ds, b as je, P as Pt, c as Xt, d as Ts, e as Us, E as Qs, C as Hs } from "./index-rNQ_nSsZ.js";
15
+ var He = class {
16
16
  constructor() {
17
17
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
18
18
  }
19
- subscribe(t) {
20
- return this.listeners.add(t), this.onSubscribe(), () => {
21
- this.listeners.delete(t), this.onUnsubscribe();
19
+ subscribe(e) {
20
+ return this.listeners.add(e), this.onSubscribe(), () => {
21
+ this.listeners.delete(e), this.onUnsubscribe();
22
22
  };
23
23
  }
24
24
  hasListeners() {
@@ -28,25 +28,25 @@ var Ht = class {
28
28
  }
29
29
  onUnsubscribe() {
30
30
  }
31
- }, Qt = typeof window > "u" || "Deno" in globalThis;
31
+ }, Qe = typeof window > "u" || "Deno" in globalThis;
32
32
  function $() {
33
33
  }
34
- function Ks(t, e) {
35
- return typeof t == "function" ? t(e) : t;
34
+ function Ks(e, t) {
35
+ return typeof e == "function" ? e(t) : e;
36
36
  }
37
- function ne(t) {
38
- return typeof t == "number" && t >= 0 && t !== 1 / 0;
37
+ function nt(e) {
38
+ return typeof e == "number" && e >= 0 && e !== 1 / 0;
39
39
  }
40
- function Ie(t, e) {
41
- return Math.max(t + (e || 0) - Date.now(), 0);
40
+ function It(e, t) {
41
+ return Math.max(e + (t || 0) - Date.now(), 0);
42
42
  }
43
- function St(t, e) {
44
- return typeof t == "function" ? t(e) : t;
43
+ function Se(e, t) {
44
+ return typeof e == "function" ? e(t) : e;
45
45
  }
46
- function z(t, e) {
47
- return typeof t == "function" ? t(e) : t;
46
+ function z(e, t) {
47
+ return typeof e == "function" ? e(t) : e;
48
48
  }
49
- function Ae(t, e) {
49
+ function kt(e, t) {
50
50
  const {
51
51
  type: s = "all",
52
52
  exact: r,
@@ -54,109 +54,113 @@ function Ae(t, e) {
54
54
  predicate: l,
55
55
  queryKey: o,
56
56
  stale: c
57
- } = t;
57
+ } = e;
58
58
  if (o) {
59
59
  if (r) {
60
- if (e.queryHash !== xe(o, e.options))
60
+ if (t.queryHash !== xt(o, t.options))
61
61
  return !1;
62
- } else if (!Gt(e.queryKey, o))
62
+ } else if (!Ge(t.queryKey, o))
63
63
  return !1;
64
64
  }
65
65
  if (s !== "all") {
66
- const v = e.isActive();
66
+ const v = t.isActive();
67
67
  if (s === "active" && !v || s === "inactive" && v)
68
68
  return !1;
69
69
  }
70
- return !(typeof c == "boolean" && e.isStale() !== c || a && a !== e.state.fetchStatus || l && !l(e));
70
+ return !(typeof c == "boolean" && t.isStale() !== c || a && a !== t.state.fetchStatus || l && !l(t));
71
71
  }
72
- function ke(t, e) {
73
- const { exact: s, status: r, predicate: a, mutationKey: l } = t;
72
+ function At(e, t) {
73
+ const { exact: s, status: r, predicate: a, mutationKey: l } = e;
74
74
  if (l) {
75
- if (!e.options.mutationKey)
75
+ if (!t.options.mutationKey)
76
76
  return !1;
77
77
  if (s) {
78
- if (bt(e.options.mutationKey) !== bt(l))
78
+ if (be(t.options.mutationKey) !== be(l))
79
79
  return !1;
80
- } else if (!Gt(e.options.mutationKey, l))
80
+ } else if (!Ge(t.options.mutationKey, l))
81
81
  return !1;
82
82
  }
83
- return !(r && e.state.status !== r || a && !a(e));
83
+ return !(r && t.state.status !== r || a && !a(t));
84
84
  }
85
- function xe(t, e) {
86
- return ((e == null ? void 0 : e.queryKeyHashFn) || bt)(t);
85
+ function xt(e, t) {
86
+ return ((t == null ? void 0 : t.queryKeyHashFn) || be)(e);
87
87
  }
88
- function bt(t) {
88
+ function be(e) {
89
89
  return JSON.stringify(
90
- t,
91
- (e, s) => ae(s) ? Object.keys(s).sort().reduce((r, a) => (r[a] = s[a], r), {}) : s
90
+ e,
91
+ (t, s) => at(s) ? Object.keys(s).sort().reduce((r, a) => (r[a] = s[a], r), {}) : s
92
92
  );
93
93
  }
94
- function Gt(t, e) {
95
- return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Gt(t[s], e[s])) : !1;
94
+ function Ge(e, t) {
95
+ return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((s) => !Ge(e[s], t[s])) : !1;
96
96
  }
97
- function Be(t, e) {
98
- if (t === e)
99
- return t;
100
- const s = Ne(t) && Ne(e);
101
- if (s || ae(t) && ae(e)) {
102
- const r = s ? t : Object.keys(t), a = r.length, l = s ? e : Object.keys(e), o = l.length, c = s ? [] : {};
97
+ function Bt(e, t) {
98
+ if (e === t)
99
+ return e;
100
+ const s = Nt(e) && Nt(t);
101
+ if (s || at(e) && at(t)) {
102
+ const r = s ? e : Object.keys(e), a = r.length, l = s ? t : Object.keys(t), o = l.length, c = s ? [] : {};
103
103
  let v = 0;
104
104
  for (let g = 0; g < o; g++) {
105
105
  const h = s ? g : l[g];
106
- (!s && r.includes(h) || s) && t[h] === void 0 && e[h] === void 0 ? (c[h] = void 0, v++) : (c[h] = Be(t[h], e[h]), c[h] === t[h] && t[h] !== void 0 && v++);
106
+ (!s && r.includes(h) || s) && e[h] === void 0 && t[h] === void 0 ? (c[h] = void 0, v++) : (c[h] = Bt(e[h], t[h]), c[h] === e[h] && e[h] !== void 0 && v++);
107
107
  }
108
- return a === o && v === a ? t : c;
108
+ return a === o && v === a ? e : c;
109
109
  }
110
- return e;
110
+ return t;
111
111
  }
112
- function It(t, e) {
113
- if (!e || Object.keys(t).length !== Object.keys(e).length)
112
+ function Ie(e, t) {
113
+ if (!t || Object.keys(e).length !== Object.keys(t).length)
114
114
  return !1;
115
- for (const s in t)
116
- if (t[s] !== e[s])
115
+ for (const s in e)
116
+ if (e[s] !== t[s])
117
117
  return !1;
118
118
  return !0;
119
119
  }
120
- function Ne(t) {
121
- return Array.isArray(t) && t.length === Object.keys(t).length;
120
+ function Nt(e) {
121
+ return Array.isArray(e) && e.length === Object.keys(e).length;
122
122
  }
123
- function ae(t) {
124
- if (!Me(t))
123
+ function at(e) {
124
+ if (!Mt(e))
125
125
  return !1;
126
- const e = t.constructor;
127
- if (e === void 0)
126
+ const t = e.constructor;
127
+ if (t === void 0)
128
128
  return !0;
129
- const s = e.prototype;
130
- return !(!Me(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
129
+ const s = t.prototype;
130
+ return !(!Mt(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
131
131
  }
132
- function Me(t) {
133
- return Object.prototype.toString.call(t) === "[object Object]";
132
+ function Mt(e) {
133
+ return Object.prototype.toString.call(e) === "[object Object]";
134
134
  }
135
- function Gs(t) {
136
- return new Promise((e) => {
137
- setTimeout(e, t);
135
+ function Gs(e) {
136
+ return new Promise((t) => {
137
+ setTimeout(t, e);
138
138
  });
139
139
  }
140
- function oe(t, e, s) {
141
- return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? Be(t, e) : e;
140
+ function ot(e, t, s) {
141
+ return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? Bt(e, t) : t;
142
142
  }
143
- function qs(t, e, s = 0) {
144
- const r = [...t, e];
143
+ function qs(e, t, s = 0) {
144
+ const r = [...e, t];
145
145
  return s && r.length > s ? r.slice(1) : r;
146
146
  }
147
- function Ws(t, e, s = 0) {
148
- const r = [e, ...t];
147
+ function Ws(e, t, s = 0) {
148
+ const r = [t, ...e];
149
149
  return s && r.length > s ? r.slice(0, -1) : r;
150
150
  }
151
- var ts = Symbol(), es = (t, e) => !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === ts ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn, pt, at, Et, Ke, Vs = (Ke = class extends Ht {
151
+ var es = Symbol();
152
+ function ts(e, t) {
153
+ return !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === es ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
154
+ }
155
+ var pe, ae, Ee, Kt, Vs = (Kt = class extends He {
152
156
  constructor() {
153
157
  super();
154
- y(this, pt);
155
- y(this, at);
156
- y(this, Et);
157
- p(this, Et, (e) => {
158
- if (!Qt && window.addEventListener) {
159
- const s = () => e();
158
+ y(this, pe);
159
+ y(this, ae);
160
+ y(this, Ee);
161
+ p(this, Ee, (t) => {
162
+ if (!Qe && window.addEventListener) {
163
+ const s = () => t();
160
164
  return window.addEventListener("visibilitychange", s, !1), () => {
161
165
  window.removeEventListener("visibilitychange", s);
162
166
  };
@@ -164,40 +168,40 @@ var ts = Symbol(), es = (t, e) => !t.queryFn && (e != null && e.initialPromise)
164
168
  });
165
169
  }
166
170
  onSubscribe() {
167
- n(this, at) || this.setEventListener(n(this, Et));
171
+ n(this, ae) || this.setEventListener(n(this, Ee));
168
172
  }
169
173
  onUnsubscribe() {
170
- var e;
171
- this.hasListeners() || ((e = n(this, at)) == null || e.call(this), p(this, at, void 0));
174
+ var t;
175
+ this.hasListeners() || ((t = n(this, ae)) == null || t.call(this), p(this, ae, void 0));
172
176
  }
173
- setEventListener(e) {
177
+ setEventListener(t) {
174
178
  var s;
175
- p(this, Et, e), (s = n(this, at)) == null || s.call(this), p(this, at, e((r) => {
179
+ p(this, Ee, t), (s = n(this, ae)) == null || s.call(this), p(this, ae, t((r) => {
176
180
  typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
177
181
  }));
178
182
  }
179
- setFocused(e) {
180
- n(this, pt) !== e && (p(this, pt, e), this.onFocus());
183
+ setFocused(t) {
184
+ n(this, pe) !== t && (p(this, pe, t), this.onFocus());
181
185
  }
182
186
  onFocus() {
183
- const e = this.isFocused();
187
+ const t = this.isFocused();
184
188
  this.listeners.forEach((s) => {
185
- s(e);
189
+ s(t);
186
190
  });
187
191
  }
188
192
  isFocused() {
189
- var e;
190
- return typeof n(this, pt) == "boolean" ? n(this, pt) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
193
+ var t;
194
+ return typeof n(this, pe) == "boolean" ? n(this, pe) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
191
195
  }
192
- }, pt = new WeakMap(), at = new WeakMap(), Et = new WeakMap(), Ke), be = new Vs(), Pt, ot, At, Ge, $s = (Ge = class extends Ht {
196
+ }, pe = new WeakMap(), ae = new WeakMap(), Ee = new WeakMap(), Kt), bt = new Vs(), Pe, oe, ke, Gt, $s = (Gt = class extends He {
193
197
  constructor() {
194
198
  super();
195
- y(this, Pt, !0);
196
- y(this, ot);
197
- y(this, At);
198
- p(this, At, (e) => {
199
- if (!Qt && window.addEventListener) {
200
- const s = () => e(!0), r = () => e(!1);
199
+ y(this, Pe, !0);
200
+ y(this, oe);
201
+ y(this, ke);
202
+ p(this, ke, (t) => {
203
+ if (!Qe && window.addEventListener) {
204
+ const s = () => t(!0), r = () => t(!1);
201
205
  return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
202
206
  window.removeEventListener("online", s), window.removeEventListener("offline", r);
203
207
  };
@@ -205,71 +209,71 @@ var ts = Symbol(), es = (t, e) => !t.queryFn && (e != null && e.initialPromise)
205
209
  });
206
210
  }
207
211
  onSubscribe() {
208
- n(this, ot) || this.setEventListener(n(this, At));
212
+ n(this, oe) || this.setEventListener(n(this, ke));
209
213
  }
210
214
  onUnsubscribe() {
211
- var e;
212
- this.hasListeners() || ((e = n(this, ot)) == null || e.call(this), p(this, ot, void 0));
215
+ var t;
216
+ this.hasListeners() || ((t = n(this, oe)) == null || t.call(this), p(this, oe, void 0));
213
217
  }
214
- setEventListener(e) {
218
+ setEventListener(t) {
215
219
  var s;
216
- p(this, At, e), (s = n(this, ot)) == null || s.call(this), p(this, ot, e(this.setOnline.bind(this)));
220
+ p(this, ke, t), (s = n(this, oe)) == null || s.call(this), p(this, oe, t(this.setOnline.bind(this)));
217
221
  }
218
- setOnline(e) {
219
- n(this, Pt) !== e && (p(this, Pt, e), this.listeners.forEach((r) => {
220
- r(e);
222
+ setOnline(t) {
223
+ n(this, Pe) !== t && (p(this, Pe, t), this.listeners.forEach((r) => {
224
+ r(t);
221
225
  }));
222
226
  }
223
227
  isOnline() {
224
- return n(this, Pt);
228
+ return n(this, Pe);
225
229
  }
226
- }, Pt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(), Ge), Bt = new $s();
227
- function Zs(t) {
228
- return Math.min(1e3 * 2 ** t, 3e4);
230
+ }, Pe = new WeakMap(), oe = new WeakMap(), ke = new WeakMap(), Gt), Be = new $s();
231
+ function Zs(e) {
232
+ return Math.min(1e3 * 2 ** e, 3e4);
229
233
  }
230
- function ss(t) {
231
- return (t ?? "online") === "online" ? Bt.isOnline() : !0;
234
+ function ss(e) {
235
+ return (e ?? "online") === "online" ? Be.isOnline() : !0;
232
236
  }
233
- var rs = class {
234
- constructor(t) {
235
- this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
237
+ var rs = class extends Error {
238
+ constructor(e) {
239
+ super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
236
240
  }
237
241
  };
238
- function ie(t) {
239
- return t instanceof rs;
242
+ function it(e) {
243
+ return e instanceof rs;
240
244
  }
241
- function is(t) {
242
- let e = !1, s = 0, r = !1, a, l, o;
245
+ function is(e) {
246
+ let t = !1, s = 0, r = !1, a, l, o;
243
247
  const c = new Promise((C, w) => {
244
248
  l = C, o = w;
245
249
  }), v = (C) => {
246
250
  var w;
247
- r || (S(new rs(C)), (w = t.abort) == null || w.call(t));
251
+ r || (S(new rs(C)), (w = e.abort) == null || w.call(e));
248
252
  }, g = () => {
249
- e = !0;
253
+ t = !0;
250
254
  }, h = () => {
251
- e = !1;
252
- }, u = () => be.isFocused() && (t.networkMode === "always" || Bt.isOnline()) && t.canRun(), d = () => ss(t.networkMode) && t.canRun(), m = (C) => {
255
+ t = !1;
256
+ }, u = () => bt.isFocused() && (e.networkMode === "always" || Be.isOnline()) && e.canRun(), d = () => ss(e.networkMode) && e.canRun(), m = (C) => {
253
257
  var w;
254
- r || (r = !0, (w = t.onSuccess) == null || w.call(t, C), a == null || a(), l(C));
258
+ r || (r = !0, (w = e.onSuccess) == null || w.call(e, C), a == null || a(), l(C));
255
259
  }, S = (C) => {
256
260
  var w;
257
- r || (r = !0, (w = t.onError) == null || w.call(t, C), a == null || a(), o(C));
261
+ r || (r = !0, (w = e.onError) == null || w.call(e, C), a == null || a(), o(C));
258
262
  }, P = () => new Promise((C) => {
259
263
  var w;
260
264
  a = (j) => {
261
265
  (r || u()) && C(j);
262
- }, (w = t.onPause) == null || w.call(t);
266
+ }, (w = e.onPause) == null || w.call(e);
263
267
  }).then(() => {
264
268
  var C;
265
- a = void 0, r || (C = t.onContinue) == null || C.call(t);
266
- }), k = () => {
269
+ a = void 0, r || (C = e.onContinue) == null || C.call(e);
270
+ }), A = () => {
267
271
  if (r)
268
272
  return;
269
273
  let C;
270
- const w = s === 0 ? t.initialPromise : void 0;
274
+ const w = s === 0 ? e.initialPromise : void 0;
271
275
  try {
272
- C = w ?? t.fn();
276
+ C = w ?? e.fn();
273
277
  } catch (j) {
274
278
  C = Promise.reject(j);
275
279
  }
@@ -277,13 +281,13 @@ function is(t) {
277
281
  var E;
278
282
  if (r)
279
283
  return;
280
- const M = t.retry ?? (Qt ? 0 : 3), R = t.retryDelay ?? Zs, J = typeof R == "function" ? R(s, j) : R, et = M === !0 || typeof M == "number" && s < M || typeof M == "function" && M(s, j);
281
- if (e || !et) {
284
+ const M = e.retry ?? (Qe ? 0 : 3), R = e.retryDelay ?? Zs, J = typeof R == "function" ? R(s, j) : R, te = M === !0 || typeof M == "number" && s < M || typeof M == "function" && M(s, j);
285
+ if (t || !te) {
282
286
  S(j);
283
287
  return;
284
288
  }
285
- s++, (E = t.onFail) == null || E.call(t, s, j), Gs(J).then(() => u() ? void 0 : P()).then(() => {
286
- e ? S(j) : k();
289
+ s++, (E = e.onFail) == null || E.call(e, s, j), Gs(J).then(() => u() ? void 0 : P()).then(() => {
290
+ t ? S(j) : A();
287
291
  });
288
292
  });
289
293
  };
@@ -294,11 +298,11 @@ function is(t) {
294
298
  cancelRetry: g,
295
299
  continueRetry: h,
296
300
  canStart: d,
297
- start: () => (d() ? k() : P().then(k), c)
301
+ start: () => (d() ? A() : P().then(A), c)
298
302
  };
299
303
  }
300
304
  function Ys() {
301
- let t = [], e = 0, s = (d) => {
305
+ let e = [], t = 0, s = (d) => {
302
306
  d();
303
307
  }, r = (d) => {
304
308
  d();
@@ -307,15 +311,15 @@ function Ys() {
307
311
  a = d;
308
312
  }, o = (d) => {
309
313
  let m;
310
- e++;
314
+ t++;
311
315
  try {
312
316
  m = d();
313
317
  } finally {
314
- e--, e || g();
318
+ t--, t || g();
315
319
  }
316
320
  return m;
317
321
  }, c = (d) => {
318
- e ? t.push(d) : a(() => {
322
+ t ? e.push(d) : a(() => {
319
323
  s(d);
320
324
  });
321
325
  }, v = (d) => (...m) => {
@@ -323,8 +327,8 @@ function Ys() {
323
327
  d(...m);
324
328
  });
325
329
  }, g = () => {
326
- const d = t;
327
- t = [], d.length && a(() => {
330
+ const d = e;
331
+ e = [], d.length && a(() => {
328
332
  r(() => {
329
333
  d.forEach((m) => {
330
334
  s(m);
@@ -345,78 +349,78 @@ function Ys() {
345
349
  setScheduler: l
346
350
  };
347
351
  }
348
- var D = Ys(), mt, qe, ns = (qe = class {
352
+ var D = Ys(), me, qt, ns = (qt = class {
349
353
  constructor() {
350
- y(this, mt);
354
+ y(this, me);
351
355
  }
352
356
  destroy() {
353
357
  this.clearGcTimeout();
354
358
  }
355
359
  scheduleGc() {
356
- this.clearGcTimeout(), ne(this.gcTime) && p(this, mt, setTimeout(() => {
360
+ this.clearGcTimeout(), nt(this.gcTime) && p(this, me, setTimeout(() => {
357
361
  this.optionalRemove();
358
362
  }, this.gcTime));
359
363
  }
360
- updateGcTime(t) {
364
+ updateGcTime(e) {
361
365
  this.gcTime = Math.max(
362
366
  this.gcTime || 0,
363
- t ?? (Qt ? 1 / 0 : 5 * 60 * 1e3)
367
+ e ?? (Qe ? 1 / 0 : 5 * 60 * 1e3)
364
368
  );
365
369
  }
366
370
  clearGcTimeout() {
367
- n(this, mt) && (clearTimeout(n(this, mt)), p(this, mt, void 0));
371
+ n(this, me) && (clearTimeout(n(this, me)), p(this, me, void 0));
368
372
  }
369
- }, mt = new WeakMap(), qe), kt, Nt, V, T, qt, vt, Y, st, We, zs = (We = class extends ns {
370
- constructor(e) {
373
+ }, me = new WeakMap(), qt), Ae, Ne, V, T, qe, ve, Y, se, Wt, zs = (Wt = class extends ns {
374
+ constructor(t) {
371
375
  super();
372
376
  y(this, Y);
373
- y(this, kt);
374
- y(this, Nt);
377
+ y(this, Ae);
378
+ y(this, Ne);
375
379
  y(this, V);
376
380
  y(this, T);
377
- y(this, qt);
378
- y(this, vt);
379
- p(this, vt, !1), p(this, qt, e.defaultOptions), this.setOptions(e.options), this.observers = [], p(this, V, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, p(this, kt, e.state || Js(this.options)), this.state = n(this, kt), this.scheduleGc();
381
+ y(this, qe);
382
+ y(this, ve);
383
+ p(this, ve, !1), p(this, qe, t.defaultOptions), this.setOptions(t.options), this.observers = [], p(this, V, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, p(this, Ae, Js(this.options)), this.state = t.state ?? n(this, Ae), this.scheduleGc();
380
384
  }
381
385
  get meta() {
382
386
  return this.options.meta;
383
387
  }
384
388
  get promise() {
385
- var e;
386
- return (e = n(this, T)) == null ? void 0 : e.promise;
389
+ var t;
390
+ return (t = n(this, T)) == null ? void 0 : t.promise;
387
391
  }
388
- setOptions(e) {
389
- this.options = { ...n(this, qt), ...e }, this.updateGcTime(this.options.gcTime);
392
+ setOptions(t) {
393
+ this.options = { ...n(this, qe), ...t }, this.updateGcTime(this.options.gcTime);
390
394
  }
391
395
  optionalRemove() {
392
396
  !this.observers.length && this.state.fetchStatus === "idle" && n(this, V).remove(this);
393
397
  }
394
- setData(e, s) {
395
- const r = oe(this.state.data, e, this.options);
396
- return b(this, Y, st).call(this, {
398
+ setData(t, s) {
399
+ const r = ot(this.state.data, t, this.options);
400
+ return b(this, Y, se).call(this, {
397
401
  data: r,
398
402
  type: "success",
399
403
  dataUpdatedAt: s == null ? void 0 : s.updatedAt,
400
404
  manual: s == null ? void 0 : s.manual
401
405
  }), r;
402
406
  }
403
- setState(e, s) {
404
- b(this, Y, st).call(this, { type: "setState", state: e, setStateOptions: s });
407
+ setState(t, s) {
408
+ b(this, Y, se).call(this, { type: "setState", state: t, setStateOptions: s });
405
409
  }
406
- cancel(e) {
410
+ cancel(t) {
407
411
  var r, a;
408
412
  const s = (r = n(this, T)) == null ? void 0 : r.promise;
409
- return (a = n(this, T)) == null || a.cancel(e), s ? s.then($).catch($) : Promise.resolve();
413
+ return (a = n(this, T)) == null || a.cancel(t), s ? s.then($).catch($) : Promise.resolve();
410
414
  }
411
415
  destroy() {
412
416
  super.destroy(), this.cancel({ silent: !0 });
413
417
  }
414
418
  reset() {
415
- this.destroy(), this.setState(n(this, kt));
419
+ this.destroy(), this.setState(n(this, Ae));
416
420
  }
417
421
  isActive() {
418
422
  return this.observers.some(
419
- (e) => z(e.options.enabled, this) !== !1
423
+ (t) => z(t.options.enabled, this) !== !1
420
424
  );
421
425
  }
422
426
  isDisabled() {
@@ -424,35 +428,35 @@ var D = Ys(), mt, qe, ns = (qe = class {
424
428
  }
425
429
  isStale() {
426
430
  return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
427
- (e) => e.getCurrentResult().isStale
431
+ (t) => t.getCurrentResult().isStale
428
432
  ) : this.state.data === void 0;
429
433
  }
430
- isStaleByTime(e = 0) {
431
- return this.state.isInvalidated || this.state.data === void 0 || !Ie(this.state.dataUpdatedAt, e);
434
+ isStaleByTime(t = 0) {
435
+ return this.state.isInvalidated || this.state.data === void 0 || !It(this.state.dataUpdatedAt, t);
432
436
  }
433
437
  onFocus() {
434
438
  var s;
435
- const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
436
- e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, T)) == null || s.continue();
439
+ const t = this.observers.find((r) => r.shouldFetchOnWindowFocus());
440
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, T)) == null || s.continue();
437
441
  }
438
442
  onOnline() {
439
443
  var s;
440
- const e = this.observers.find((r) => r.shouldFetchOnReconnect());
441
- e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, T)) == null || s.continue();
444
+ const t = this.observers.find((r) => r.shouldFetchOnReconnect());
445
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, T)) == null || s.continue();
442
446
  }
443
- addObserver(e) {
444
- this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), n(this, V).notify({ type: "observerAdded", query: this, observer: e }));
447
+ addObserver(t) {
448
+ this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), n(this, V).notify({ type: "observerAdded", query: this, observer: t }));
445
449
  }
446
- removeObserver(e) {
447
- this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (n(this, T) && (n(this, vt) ? n(this, T).cancel({ revert: !0 }) : n(this, T).cancelRetry()), this.scheduleGc()), n(this, V).notify({ type: "observerRemoved", query: this, observer: e }));
450
+ removeObserver(t) {
451
+ this.observers.includes(t) && (this.observers = this.observers.filter((s) => s !== t), this.observers.length || (n(this, T) && (n(this, ve) ? n(this, T).cancel({ revert: !0 }) : n(this, T).cancelRetry()), this.scheduleGc()), n(this, V).notify({ type: "observerRemoved", query: this, observer: t }));
448
452
  }
449
453
  getObserversCount() {
450
454
  return this.observers.length;
451
455
  }
452
456
  invalidate() {
453
- this.state.isInvalidated || b(this, Y, st).call(this, { type: "invalidate" });
457
+ this.state.isInvalidated || b(this, Y, se).call(this, { type: "invalidate" });
454
458
  }
455
- fetch(e, s) {
459
+ fetch(t, s) {
456
460
  var v, g, h;
457
461
  if (this.state.fetchStatus !== "idle") {
458
462
  if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
@@ -460,21 +464,21 @@ var D = Ys(), mt, qe, ns = (qe = class {
460
464
  else if (n(this, T))
461
465
  return n(this, T).continueRetry(), n(this, T).promise;
462
466
  }
463
- if (e && this.setOptions(e), !this.options.queryFn) {
467
+ if (t && this.setOptions(t), !this.options.queryFn) {
464
468
  const u = this.observers.find((d) => d.options.queryFn);
465
469
  u && this.setOptions(u.options);
466
470
  }
467
471
  const r = new AbortController(), a = (u) => {
468
472
  Object.defineProperty(u, "signal", {
469
473
  enumerable: !0,
470
- get: () => (p(this, vt, !0), r.signal)
474
+ get: () => (p(this, ve, !0), r.signal)
471
475
  });
472
476
  }, l = () => {
473
- const u = es(this.options, s), d = {
477
+ const u = ts(this.options, s), d = {
474
478
  queryKey: this.queryKey,
475
479
  meta: this.meta
476
480
  };
477
- return a(d), p(this, vt, !1), this.options.persister ? this.options.persister(
481
+ return a(d), p(this, ve, !1), this.options.persister ? this.options.persister(
478
482
  u,
479
483
  d,
480
484
  this
@@ -489,13 +493,13 @@ var D = Ys(), mt, qe, ns = (qe = class {
489
493
  a(o), (v = this.options.behavior) == null || v.onFetch(
490
494
  o,
491
495
  this
492
- ), p(this, Nt, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((g = o.fetchOptions) == null ? void 0 : g.meta)) && b(this, Y, st).call(this, { type: "fetch", meta: (h = o.fetchOptions) == null ? void 0 : h.meta });
496
+ ), p(this, Ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((g = o.fetchOptions) == null ? void 0 : g.meta)) && b(this, Y, se).call(this, { type: "fetch", meta: (h = o.fetchOptions) == null ? void 0 : h.meta });
493
497
  const c = (u) => {
494
498
  var d, m, S, P;
495
- ie(u) && u.silent || b(this, Y, st).call(this, {
499
+ it(u) && u.silent || b(this, Y, se).call(this, {
496
500
  type: "error",
497
501
  error: u
498
- }), ie(u) || ((m = (d = n(this, V).config).onError) == null || m.call(
502
+ }), it(u) || ((m = (d = n(this, V).config).onError) == null || m.call(
499
503
  d,
500
504
  u,
501
505
  this
@@ -525,13 +529,13 @@ var D = Ys(), mt, qe, ns = (qe = class {
525
529
  },
526
530
  onError: c,
527
531
  onFail: (u, d) => {
528
- b(this, Y, st).call(this, { type: "failed", failureCount: u, error: d });
532
+ b(this, Y, se).call(this, { type: "failed", failureCount: u, error: d });
529
533
  },
530
534
  onPause: () => {
531
- b(this, Y, st).call(this, { type: "pause" });
535
+ b(this, Y, se).call(this, { type: "pause" });
532
536
  },
533
537
  onContinue: () => {
534
- b(this, Y, st).call(this, { type: "continue" });
538
+ b(this, Y, se).call(this, { type: "continue" });
535
539
  },
536
540
  retry: o.options.retry,
537
541
  retryDelay: o.options.retryDelay,
@@ -539,14 +543,14 @@ var D = Ys(), mt, qe, ns = (qe = class {
539
543
  canRun: () => !0
540
544
  })), n(this, T).start();
541
545
  }
542
- }, kt = new WeakMap(), Nt = new WeakMap(), V = new WeakMap(), T = new WeakMap(), qt = new WeakMap(), vt = new WeakMap(), Y = new WeakSet(), st = function(e) {
546
+ }, Ae = new WeakMap(), Ne = new WeakMap(), V = new WeakMap(), T = new WeakMap(), qe = new WeakMap(), ve = new WeakMap(), Y = new WeakSet(), se = function(t) {
543
547
  const s = (r) => {
544
- switch (e.type) {
548
+ switch (t.type) {
545
549
  case "failed":
546
550
  return {
547
551
  ...r,
548
- fetchFailureCount: e.failureCount,
549
- fetchFailureReason: e.error
552
+ fetchFailureCount: t.failureCount,
553
+ fetchFailureReason: t.error
550
554
  };
551
555
  case "pause":
552
556
  return {
@@ -562,26 +566,26 @@ var D = Ys(), mt, qe, ns = (qe = class {
562
566
  return {
563
567
  ...r,
564
568
  ...as(r.data, this.options),
565
- fetchMeta: e.meta ?? null
569
+ fetchMeta: t.meta ?? null
566
570
  };
567
571
  case "success":
568
572
  return {
569
573
  ...r,
570
- data: e.data,
574
+ data: t.data,
571
575
  dataUpdateCount: r.dataUpdateCount + 1,
572
- dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
576
+ dataUpdatedAt: t.dataUpdatedAt ?? Date.now(),
573
577
  error: null,
574
578
  isInvalidated: !1,
575
579
  status: "success",
576
- ...!e.manual && {
580
+ ...!t.manual && {
577
581
  fetchStatus: "idle",
578
582
  fetchFailureCount: 0,
579
583
  fetchFailureReason: null
580
584
  }
581
585
  };
582
586
  case "error":
583
- const a = e.error;
584
- return ie(a) && a.revert && n(this, Nt) ? { ...n(this, Nt), fetchStatus: "idle" } : {
587
+ const a = t.error;
588
+ return it(a) && a.revert && n(this, Ne) ? { ...n(this, Ne), fetchStatus: "idle" } : {
585
589
  ...r,
586
590
  error: a,
587
591
  errorUpdateCount: r.errorUpdateCount + 1,
@@ -599,31 +603,31 @@ var D = Ys(), mt, qe, ns = (qe = class {
599
603
  case "setState":
600
604
  return {
601
605
  ...r,
602
- ...e.state
606
+ ...t.state
603
607
  };
604
608
  }
605
609
  };
606
610
  this.state = s(this.state), D.batch(() => {
607
611
  this.observers.forEach((r) => {
608
612
  r.onQueryUpdate();
609
- }), n(this, V).notify({ query: this, type: "updated", action: e });
613
+ }), n(this, V).notify({ query: this, type: "updated", action: t });
610
614
  });
611
- }, We);
612
- function as(t, e) {
615
+ }, Wt);
616
+ function as(e, t) {
613
617
  return {
614
618
  fetchFailureCount: 0,
615
619
  fetchFailureReason: null,
616
- fetchStatus: ss(e.networkMode) ? "fetching" : "paused",
617
- ...t === void 0 && {
620
+ fetchStatus: ss(t.networkMode) ? "fetching" : "paused",
621
+ ...e === void 0 && {
618
622
  error: null,
619
623
  status: "pending"
620
624
  }
621
625
  };
622
626
  }
623
- function Js(t) {
624
- const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
627
+ function Js(e) {
628
+ const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = t !== void 0, r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
625
629
  return {
626
- data: e,
630
+ data: t,
627
631
  dataUpdateCount: 0,
628
632
  dataUpdatedAt: s ? r ?? Date.now() : 0,
629
633
  error: null,
@@ -637,176 +641,176 @@ function Js(t) {
637
641
  fetchStatus: "idle"
638
642
  };
639
643
  }
640
- var X, Ve, Xs = (Ve = class extends Ht {
641
- constructor(e = {}) {
644
+ var X, Vt, Xs = (Vt = class extends He {
645
+ constructor(t = {}) {
642
646
  super();
643
647
  y(this, X);
644
- this.config = e, p(this, X, /* @__PURE__ */ new Map());
648
+ this.config = t, p(this, X, /* @__PURE__ */ new Map());
645
649
  }
646
- build(e, s, r) {
647
- const a = s.queryKey, l = s.queryHash ?? xe(a, s);
650
+ build(t, s, r) {
651
+ const a = s.queryKey, l = s.queryHash ?? xt(a, s);
648
652
  let o = this.get(l);
649
653
  return o || (o = new zs({
650
654
  cache: this,
651
655
  queryKey: a,
652
656
  queryHash: l,
653
- options: e.defaultQueryOptions(s),
657
+ options: t.defaultQueryOptions(s),
654
658
  state: r,
655
- defaultOptions: e.getQueryDefaults(a)
659
+ defaultOptions: t.getQueryDefaults(a)
656
660
  }), this.add(o)), o;
657
661
  }
658
- add(e) {
659
- n(this, X).has(e.queryHash) || (n(this, X).set(e.queryHash, e), this.notify({
662
+ add(t) {
663
+ n(this, X).has(t.queryHash) || (n(this, X).set(t.queryHash, t), this.notify({
660
664
  type: "added",
661
- query: e
665
+ query: t
662
666
  }));
663
667
  }
664
- remove(e) {
665
- const s = n(this, X).get(e.queryHash);
666
- s && (e.destroy(), s === e && n(this, X).delete(e.queryHash), this.notify({ type: "removed", query: e }));
668
+ remove(t) {
669
+ const s = n(this, X).get(t.queryHash);
670
+ s && (t.destroy(), s === t && n(this, X).delete(t.queryHash), this.notify({ type: "removed", query: t }));
667
671
  }
668
672
  clear() {
669
673
  D.batch(() => {
670
- this.getAll().forEach((e) => {
671
- this.remove(e);
674
+ this.getAll().forEach((t) => {
675
+ this.remove(t);
672
676
  });
673
677
  });
674
678
  }
675
- get(e) {
676
- return n(this, X).get(e);
679
+ get(t) {
680
+ return n(this, X).get(t);
677
681
  }
678
682
  getAll() {
679
683
  return [...n(this, X).values()];
680
684
  }
681
- find(e) {
682
- const s = { exact: !0, ...e };
685
+ find(t) {
686
+ const s = { exact: !0, ...t };
683
687
  return this.getAll().find(
684
- (r) => Ae(s, r)
688
+ (r) => kt(s, r)
685
689
  );
686
690
  }
687
- findAll(e = {}) {
691
+ findAll(t = {}) {
688
692
  const s = this.getAll();
689
- return Object.keys(e).length > 0 ? s.filter((r) => Ae(e, r)) : s;
693
+ return Object.keys(t).length > 0 ? s.filter((r) => kt(t, r)) : s;
690
694
  }
691
- notify(e) {
695
+ notify(t) {
692
696
  D.batch(() => {
693
697
  this.listeners.forEach((s) => {
694
- s(e);
698
+ s(t);
695
699
  });
696
700
  });
697
701
  }
698
702
  onFocus() {
699
703
  D.batch(() => {
700
- this.getAll().forEach((e) => {
701
- e.onFocus();
704
+ this.getAll().forEach((t) => {
705
+ t.onFocus();
702
706
  });
703
707
  });
704
708
  }
705
709
  onOnline() {
706
710
  D.batch(() => {
707
- this.getAll().forEach((e) => {
708
- e.onOnline();
711
+ this.getAll().forEach((t) => {
712
+ t.onOnline();
709
713
  });
710
714
  });
711
715
  }
712
- }, X = new WeakMap(), Ve), I, U, gt, B, nt, $e, Is = ($e = class extends ns {
713
- constructor(e) {
716
+ }, X = new WeakMap(), Vt), I, U, ge, B, ne, $t, Is = ($t = class extends ns {
717
+ constructor(t) {
714
718
  super();
715
719
  y(this, B);
716
720
  y(this, I);
717
721
  y(this, U);
718
- y(this, gt);
719
- this.mutationId = e.mutationId, p(this, U, e.mutationCache), p(this, I, []), this.state = e.state || os(), this.setOptions(e.options), this.scheduleGc();
722
+ y(this, ge);
723
+ this.mutationId = t.mutationId, p(this, U, t.mutationCache), p(this, I, []), this.state = t.state || os(), this.setOptions(t.options), this.scheduleGc();
720
724
  }
721
- setOptions(e) {
722
- this.options = e, this.updateGcTime(this.options.gcTime);
725
+ setOptions(t) {
726
+ this.options = t, this.updateGcTime(this.options.gcTime);
723
727
  }
724
728
  get meta() {
725
729
  return this.options.meta;
726
730
  }
727
- addObserver(e) {
728
- n(this, I).includes(e) || (n(this, I).push(e), this.clearGcTimeout(), n(this, U).notify({
731
+ addObserver(t) {
732
+ n(this, I).includes(t) || (n(this, I).push(t), this.clearGcTimeout(), n(this, U).notify({
729
733
  type: "observerAdded",
730
734
  mutation: this,
731
- observer: e
735
+ observer: t
732
736
  }));
733
737
  }
734
- removeObserver(e) {
735
- p(this, I, n(this, I).filter((s) => s !== e)), this.scheduleGc(), n(this, U).notify({
738
+ removeObserver(t) {
739
+ p(this, I, n(this, I).filter((s) => s !== t)), this.scheduleGc(), n(this, U).notify({
736
740
  type: "observerRemoved",
737
741
  mutation: this,
738
- observer: e
742
+ observer: t
739
743
  });
740
744
  }
741
745
  optionalRemove() {
742
746
  n(this, I).length || (this.state.status === "pending" ? this.scheduleGc() : n(this, U).remove(this));
743
747
  }
744
748
  continue() {
745
- var e;
746
- return ((e = n(this, gt)) == null ? void 0 : e.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
749
+ var t;
750
+ return ((t = n(this, ge)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
747
751
  this.execute(this.state.variables);
748
752
  }
749
- async execute(e) {
750
- var a, l, o, c, v, g, h, u, d, m, S, P, k, C, w, j, M, R, J, et;
751
- p(this, gt, is({
752
- fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
753
+ async execute(t) {
754
+ var a, l, o, c, v, g, h, u, d, m, S, P, A, C, w, j, M, R, J, te;
755
+ p(this, ge, is({
756
+ fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
753
757
  onFail: (E, Z) => {
754
- b(this, B, nt).call(this, { type: "failed", failureCount: E, error: Z });
758
+ b(this, B, ne).call(this, { type: "failed", failureCount: E, error: Z });
755
759
  },
756
760
  onPause: () => {
757
- b(this, B, nt).call(this, { type: "pause" });
761
+ b(this, B, ne).call(this, { type: "pause" });
758
762
  },
759
763
  onContinue: () => {
760
- b(this, B, nt).call(this, { type: "continue" });
764
+ b(this, B, ne).call(this, { type: "continue" });
761
765
  },
762
766
  retry: this.options.retry ?? 0,
763
767
  retryDelay: this.options.retryDelay,
764
768
  networkMode: this.options.networkMode,
765
769
  canRun: () => n(this, U).canRun(this)
766
770
  }));
767
- const s = this.state.status === "pending", r = !n(this, gt).canStart();
771
+ const s = this.state.status === "pending", r = !n(this, ge).canStart();
768
772
  try {
769
773
  if (!s) {
770
- b(this, B, nt).call(this, { type: "pending", variables: e, isPaused: r }), await ((l = (a = n(this, U).config).onMutate) == null ? void 0 : l.call(
774
+ b(this, B, ne).call(this, { type: "pending", variables: t, isPaused: r }), await ((l = (a = n(this, U).config).onMutate) == null ? void 0 : l.call(
771
775
  a,
772
- e,
776
+ t,
773
777
  this
774
778
  ));
775
- const Z = await ((c = (o = this.options).onMutate) == null ? void 0 : c.call(o, e));
776
- Z !== this.state.context && b(this, B, nt).call(this, {
779
+ const Z = await ((c = (o = this.options).onMutate) == null ? void 0 : c.call(o, t));
780
+ Z !== this.state.context && b(this, B, ne).call(this, {
777
781
  type: "pending",
778
782
  context: Z,
779
- variables: e,
783
+ variables: t,
780
784
  isPaused: r
781
785
  });
782
786
  }
783
- const E = await n(this, gt).start();
787
+ const E = await n(this, ge).start();
784
788
  return await ((g = (v = n(this, U).config).onSuccess) == null ? void 0 : g.call(
785
789
  v,
786
790
  E,
787
- e,
791
+ t,
788
792
  this.state.context,
789
793
  this
790
- )), await ((u = (h = this.options).onSuccess) == null ? void 0 : u.call(h, E, e, this.state.context)), await ((m = (d = n(this, U).config).onSettled) == null ? void 0 : m.call(
794
+ )), await ((u = (h = this.options).onSuccess) == null ? void 0 : u.call(h, E, t, this.state.context)), await ((m = (d = n(this, U).config).onSettled) == null ? void 0 : m.call(
791
795
  d,
792
796
  E,
793
797
  null,
794
798
  this.state.variables,
795
799
  this.state.context,
796
800
  this
797
- )), await ((P = (S = this.options).onSettled) == null ? void 0 : P.call(S, E, null, e, this.state.context)), b(this, B, nt).call(this, { type: "success", data: E }), E;
801
+ )), await ((P = (S = this.options).onSettled) == null ? void 0 : P.call(S, E, null, t, this.state.context)), b(this, B, ne).call(this, { type: "success", data: E }), E;
798
802
  } catch (E) {
799
803
  try {
800
- throw await ((C = (k = n(this, U).config).onError) == null ? void 0 : C.call(
801
- k,
804
+ throw await ((C = (A = n(this, U).config).onError) == null ? void 0 : C.call(
805
+ A,
802
806
  E,
803
- e,
807
+ t,
804
808
  this.state.context,
805
809
  this
806
810
  )), await ((j = (w = this.options).onError) == null ? void 0 : j.call(
807
811
  w,
808
812
  E,
809
- e,
813
+ t,
810
814
  this.state.context
811
815
  )), await ((R = (M = n(this, U).config).onSettled) == null ? void 0 : R.call(
812
816
  M,
@@ -815,28 +819,28 @@ var X, Ve, Xs = (Ve = class extends Ht {
815
819
  this.state.variables,
816
820
  this.state.context,
817
821
  this
818
- )), await ((et = (J = this.options).onSettled) == null ? void 0 : et.call(
822
+ )), await ((te = (J = this.options).onSettled) == null ? void 0 : te.call(
819
823
  J,
820
824
  void 0,
821
825
  E,
822
- e,
826
+ t,
823
827
  this.state.context
824
828
  )), E;
825
829
  } finally {
826
- b(this, B, nt).call(this, { type: "error", error: E });
830
+ b(this, B, ne).call(this, { type: "error", error: E });
827
831
  }
828
832
  } finally {
829
833
  n(this, U).runNext(this);
830
834
  }
831
835
  }
832
- }, I = new WeakMap(), U = new WeakMap(), gt = new WeakMap(), B = new WeakSet(), nt = function(e) {
836
+ }, I = new WeakMap(), U = new WeakMap(), ge = new WeakMap(), B = new WeakSet(), ne = function(t) {
833
837
  const s = (r) => {
834
- switch (e.type) {
838
+ switch (t.type) {
835
839
  case "failed":
836
840
  return {
837
841
  ...r,
838
- failureCount: e.failureCount,
839
- failureReason: e.error
842
+ failureCount: t.failureCount,
843
+ failureReason: t.error
840
844
  };
841
845
  case "pause":
842
846
  return {
@@ -851,20 +855,20 @@ var X, Ve, Xs = (Ve = class extends Ht {
851
855
  case "pending":
852
856
  return {
853
857
  ...r,
854
- context: e.context,
858
+ context: t.context,
855
859
  data: void 0,
856
860
  failureCount: 0,
857
861
  failureReason: null,
858
862
  error: null,
859
- isPaused: e.isPaused,
863
+ isPaused: t.isPaused,
860
864
  status: "pending",
861
- variables: e.variables,
865
+ variables: t.variables,
862
866
  submittedAt: Date.now()
863
867
  };
864
868
  case "success":
865
869
  return {
866
870
  ...r,
867
- data: e.data,
871
+ data: t.data,
868
872
  failureCount: 0,
869
873
  failureReason: null,
870
874
  error: null,
@@ -875,9 +879,9 @@ var X, Ve, Xs = (Ve = class extends Ht {
875
879
  return {
876
880
  ...r,
877
881
  data: void 0,
878
- error: e.error,
882
+ error: t.error,
879
883
  failureCount: r.failureCount + 1,
880
- failureReason: e.error,
884
+ failureReason: t.error,
881
885
  isPaused: !1,
882
886
  status: "error"
883
887
  };
@@ -885,14 +889,14 @@ var X, Ve, Xs = (Ve = class extends Ht {
885
889
  };
886
890
  this.state = s(this.state), D.batch(() => {
887
891
  n(this, I).forEach((r) => {
888
- r.onMutationUpdate(e);
892
+ r.onMutationUpdate(t);
889
893
  }), n(this, U).notify({
890
894
  mutation: this,
891
895
  type: "updated",
892
- action: e
896
+ action: t
893
897
  });
894
898
  });
895
- }, $e);
899
+ }, $t);
896
900
  function os() {
897
901
  return {
898
902
  context: void 0,
@@ -906,121 +910,121 @@ function os() {
906
910
  submittedAt: 0
907
911
  };
908
912
  }
909
- var q, Wt, Ze, Bs = (Ze = class extends Ht {
910
- constructor(e = {}) {
913
+ var q, We, Zt, Bs = (Zt = class extends He {
914
+ constructor(t = {}) {
911
915
  super();
912
916
  y(this, q);
913
- y(this, Wt);
914
- this.config = e, p(this, q, /* @__PURE__ */ new Map()), p(this, Wt, Date.now());
917
+ y(this, We);
918
+ this.config = t, p(this, q, /* @__PURE__ */ new Map()), p(this, We, Date.now());
915
919
  }
916
- build(e, s, r) {
920
+ build(t, s, r) {
917
921
  const a = new Is({
918
922
  mutationCache: this,
919
- mutationId: ++zt(this, Wt)._,
920
- options: e.defaultMutationOptions(s),
923
+ mutationId: ++ze(this, We)._,
924
+ options: t.defaultMutationOptions(s),
921
925
  state: r
922
926
  });
923
927
  return this.add(a), a;
924
928
  }
925
- add(e) {
926
- const s = Jt(e), r = n(this, q).get(s) ?? [];
927
- r.push(e), n(this, q).set(s, r), this.notify({ type: "added", mutation: e });
929
+ add(t) {
930
+ const s = Je(t), r = n(this, q).get(s) ?? [];
931
+ r.push(t), n(this, q).set(s, r), this.notify({ type: "added", mutation: t });
928
932
  }
929
- remove(e) {
933
+ remove(t) {
930
934
  var r;
931
- const s = Jt(e);
935
+ const s = Je(t);
932
936
  if (n(this, q).has(s)) {
933
- const a = (r = n(this, q).get(s)) == null ? void 0 : r.filter((l) => l !== e);
937
+ const a = (r = n(this, q).get(s)) == null ? void 0 : r.filter((l) => l !== t);
934
938
  a && (a.length === 0 ? n(this, q).delete(s) : n(this, q).set(s, a));
935
939
  }
936
- this.notify({ type: "removed", mutation: e });
940
+ this.notify({ type: "removed", mutation: t });
937
941
  }
938
- canRun(e) {
942
+ canRun(t) {
939
943
  var r;
940
- const s = (r = n(this, q).get(Jt(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
941
- return !s || s === e;
944
+ const s = (r = n(this, q).get(Je(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
945
+ return !s || s === t;
942
946
  }
943
- runNext(e) {
947
+ runNext(t) {
944
948
  var r;
945
- const s = (r = n(this, q).get(Jt(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
949
+ const s = (r = n(this, q).get(Je(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
946
950
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
947
951
  }
948
952
  clear() {
949
953
  D.batch(() => {
950
- this.getAll().forEach((e) => {
951
- this.remove(e);
954
+ this.getAll().forEach((t) => {
955
+ this.remove(t);
952
956
  });
953
957
  });
954
958
  }
955
959
  getAll() {
956
960
  return [...n(this, q).values()].flat();
957
961
  }
958
- find(e) {
959
- const s = { exact: !0, ...e };
962
+ find(t) {
963
+ const s = { exact: !0, ...t };
960
964
  return this.getAll().find(
961
- (r) => ke(s, r)
965
+ (r) => At(s, r)
962
966
  );
963
967
  }
964
- findAll(e = {}) {
965
- return this.getAll().filter((s) => ke(e, s));
968
+ findAll(t = {}) {
969
+ return this.getAll().filter((s) => At(t, s));
966
970
  }
967
- notify(e) {
971
+ notify(t) {
968
972
  D.batch(() => {
969
973
  this.listeners.forEach((s) => {
970
- s(e);
974
+ s(t);
971
975
  });
972
976
  });
973
977
  }
974
978
  resumePausedMutations() {
975
- const e = this.getAll().filter((s) => s.state.isPaused);
979
+ const t = this.getAll().filter((s) => s.state.isPaused);
976
980
  return D.batch(
977
981
  () => Promise.all(
978
- e.map((s) => s.continue().catch($))
982
+ t.map((s) => s.continue().catch($))
979
983
  )
980
984
  );
981
985
  }
982
- }, q = new WeakMap(), Wt = new WeakMap(), Ze);
983
- function Jt(t) {
984
- var e;
985
- return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
986
+ }, q = new WeakMap(), We = new WeakMap(), Zt);
987
+ function Je(e) {
988
+ var t;
989
+ return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
986
990
  }
987
- function tr(t) {
991
+ function er(e) {
988
992
  return {
989
- onFetch: (e, s) => {
993
+ onFetch: (t, s) => {
990
994
  const r = async () => {
991
- var S, P, k, C, w;
992
- const a = e.options, l = (k = (P = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : P.fetchMore) == null ? void 0 : k.direction, o = ((C = e.state.data) == null ? void 0 : C.pages) || [], c = ((w = e.state.data) == null ? void 0 : w.pageParams) || [], v = { pages: [], pageParams: [] };
995
+ var S, P, A, C, w;
996
+ const a = t.options, l = (A = (P = (S = t.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : P.fetchMore) == null ? void 0 : A.direction, o = ((C = t.state.data) == null ? void 0 : C.pages) || [], c = ((w = t.state.data) == null ? void 0 : w.pageParams) || [], v = { pages: [], pageParams: [] };
993
997
  let g = !1;
994
998
  const h = (j) => {
995
999
  Object.defineProperty(j, "signal", {
996
1000
  enumerable: !0,
997
- get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
1001
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
998
1002
  g = !0;
999
- }), e.signal)
1003
+ }), t.signal)
1000
1004
  });
1001
- }, u = es(e.options, e.fetchOptions), d = async (j, M, R) => {
1005
+ }, u = ts(t.options, t.fetchOptions), d = async (j, M, R) => {
1002
1006
  if (g)
1003
1007
  return Promise.reject();
1004
1008
  if (M == null && j.pages.length)
1005
1009
  return Promise.resolve(j);
1006
1010
  const J = {
1007
- queryKey: e.queryKey,
1011
+ queryKey: t.queryKey,
1008
1012
  pageParam: M,
1009
1013
  direction: R ? "backward" : "forward",
1010
- meta: e.options.meta
1014
+ meta: t.options.meta
1011
1015
  };
1012
1016
  h(J);
1013
- const et = await u(
1017
+ const te = await u(
1014
1018
  J
1015
- ), { maxPages: E } = e.options, Z = R ? Ws : qs;
1019
+ ), { maxPages: E } = t.options, Z = R ? Ws : qs;
1016
1020
  return {
1017
- pages: Z(j.pages, et, E),
1021
+ pages: Z(j.pages, te, E),
1018
1022
  pageParams: Z(j.pageParams, M, E)
1019
1023
  };
1020
1024
  };
1021
1025
  let m;
1022
1026
  if (l && o.length) {
1023
- const j = l === "backward", M = j ? er : Oe, R = {
1027
+ const j = l === "backward", M = j ? tr : Ot, R = {
1024
1028
  pages: o,
1025
1029
  pageParams: c
1026
1030
  }, J = M(a, R);
@@ -1030,405 +1034,401 @@ function tr(t) {
1030
1034
  v,
1031
1035
  c[0] ?? a.initialPageParam
1032
1036
  );
1033
- const j = t ?? o.length;
1037
+ const j = e ?? o.length;
1034
1038
  for (let M = 1; M < j; M++) {
1035
- const R = Oe(a, m);
1039
+ const R = Ot(a, m);
1040
+ if (R == null)
1041
+ break;
1036
1042
  m = await d(m, R);
1037
1043
  }
1038
1044
  }
1039
1045
  return m;
1040
1046
  };
1041
- e.options.persister ? e.fetchFn = () => {
1047
+ t.options.persister ? t.fetchFn = () => {
1042
1048
  var a, l;
1043
- return (l = (a = e.options).persister) == null ? void 0 : l.call(
1049
+ return (l = (a = t.options).persister) == null ? void 0 : l.call(
1044
1050
  a,
1045
1051
  r,
1046
1052
  {
1047
- queryKey: e.queryKey,
1048
- meta: e.options.meta,
1049
- signal: e.signal
1053
+ queryKey: t.queryKey,
1054
+ meta: t.options.meta,
1055
+ signal: t.signal
1050
1056
  },
1051
1057
  s
1052
1058
  );
1053
- } : e.fetchFn = r;
1059
+ } : t.fetchFn = r;
1054
1060
  }
1055
1061
  };
1056
1062
  }
1057
- function Oe(t, { pages: e, pageParams: s }) {
1058
- const r = e.length - 1;
1059
- return t.getNextPageParam(
1060
- e[r],
1061
- e,
1063
+ function Ot(e, { pages: t, pageParams: s }) {
1064
+ const r = t.length - 1;
1065
+ return t.length > 0 ? e.getNextPageParam(
1066
+ t[r],
1067
+ t,
1062
1068
  s[r],
1063
1069
  s
1064
- );
1070
+ ) : void 0;
1065
1071
  }
1066
- function er(t, { pages: e, pageParams: s }) {
1072
+ function tr(e, { pages: t, pageParams: s }) {
1067
1073
  var r;
1068
- return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
1069
- t,
1070
- e[0],
1071
- e,
1072
- s[0],
1073
- s
1074
- );
1074
+ return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, s[0], s) : void 0;
1075
1075
  }
1076
- var L, lt, ct, Mt, Ot, ut, Rt, Lt, Ye, ls = (Ye = class {
1077
- constructor(t = {}) {
1076
+ var L, le, ce, Me, Oe, ue, Re, Le, Yt, ls = (Yt = class {
1077
+ constructor(e = {}) {
1078
1078
  y(this, L);
1079
- y(this, lt);
1080
- y(this, ct);
1081
- y(this, Mt);
1082
- y(this, Ot);
1083
- y(this, ut);
1084
- y(this, Rt);
1085
- y(this, Lt);
1086
- p(this, L, t.queryCache || new Xs()), p(this, lt, t.mutationCache || new Bs()), p(this, ct, t.defaultOptions || {}), p(this, Mt, /* @__PURE__ */ new Map()), p(this, Ot, /* @__PURE__ */ new Map()), p(this, ut, 0);
1079
+ y(this, le);
1080
+ y(this, ce);
1081
+ y(this, Me);
1082
+ y(this, Oe);
1083
+ y(this, ue);
1084
+ y(this, Re);
1085
+ y(this, Le);
1086
+ p(this, L, e.queryCache || new Xs()), p(this, le, e.mutationCache || new Bs()), p(this, ce, e.defaultOptions || {}), p(this, Me, /* @__PURE__ */ new Map()), p(this, Oe, /* @__PURE__ */ new Map()), p(this, ue, 0);
1087
1087
  }
1088
1088
  mount() {
1089
- zt(this, ut)._++, n(this, ut) === 1 && (p(this, Rt, be.subscribe(async (t) => {
1090
- t && (await this.resumePausedMutations(), n(this, L).onFocus());
1091
- })), p(this, Lt, Bt.subscribe(async (t) => {
1092
- t && (await this.resumePausedMutations(), n(this, L).onOnline());
1089
+ ze(this, ue)._++, n(this, ue) === 1 && (p(this, Re, bt.subscribe(async (e) => {
1090
+ e && (await this.resumePausedMutations(), n(this, L).onFocus());
1091
+ })), p(this, Le, Be.subscribe(async (e) => {
1092
+ e && (await this.resumePausedMutations(), n(this, L).onOnline());
1093
1093
  })));
1094
1094
  }
1095
1095
  unmount() {
1096
- var t, e;
1097
- zt(this, ut)._--, n(this, ut) === 0 && ((t = n(this, Rt)) == null || t.call(this), p(this, Rt, void 0), (e = n(this, Lt)) == null || e.call(this), p(this, Lt, void 0));
1096
+ var e, t;
1097
+ ze(this, ue)._--, n(this, ue) === 0 && ((e = n(this, Re)) == null || e.call(this), p(this, Re, void 0), (t = n(this, Le)) == null || t.call(this), p(this, Le, void 0));
1098
1098
  }
1099
- isFetching(t) {
1100
- return n(this, L).findAll({ ...t, fetchStatus: "fetching" }).length;
1099
+ isFetching(e) {
1100
+ return n(this, L).findAll({ ...e, fetchStatus: "fetching" }).length;
1101
1101
  }
1102
- isMutating(t) {
1103
- return n(this, lt).findAll({ ...t, status: "pending" }).length;
1102
+ isMutating(e) {
1103
+ return n(this, le).findAll({ ...e, status: "pending" }).length;
1104
1104
  }
1105
- getQueryData(t) {
1105
+ getQueryData(e) {
1106
1106
  var s;
1107
- const e = this.defaultQueryOptions({ queryKey: t });
1108
- return (s = n(this, L).get(e.queryHash)) == null ? void 0 : s.state.data;
1107
+ const t = this.defaultQueryOptions({ queryKey: e });
1108
+ return (s = n(this, L).get(t.queryHash)) == null ? void 0 : s.state.data;
1109
1109
  }
1110
- ensureQueryData(t) {
1111
- const e = this.getQueryData(t.queryKey);
1112
- if (e === void 0)
1113
- return this.fetchQuery(t);
1110
+ ensureQueryData(e) {
1111
+ const t = this.getQueryData(e.queryKey);
1112
+ if (t === void 0)
1113
+ return this.fetchQuery(e);
1114
1114
  {
1115
- const s = this.defaultQueryOptions(t), r = n(this, L).build(this, s);
1116
- return t.revalidateIfStale && r.isStaleByTime(St(s.staleTime, r)) && this.prefetchQuery(s), Promise.resolve(e);
1115
+ const s = this.defaultQueryOptions(e), r = n(this, L).build(this, s);
1116
+ return e.revalidateIfStale && r.isStaleByTime(Se(s.staleTime, r)) && this.prefetchQuery(s), Promise.resolve(t);
1117
1117
  }
1118
1118
  }
1119
- getQueriesData(t) {
1120
- return n(this, L).findAll(t).map(({ queryKey: e, state: s }) => {
1119
+ getQueriesData(e) {
1120
+ return n(this, L).findAll(e).map(({ queryKey: t, state: s }) => {
1121
1121
  const r = s.data;
1122
- return [e, r];
1122
+ return [t, r];
1123
1123
  });
1124
1124
  }
1125
- setQueryData(t, e, s) {
1126
- const r = this.defaultQueryOptions({ queryKey: t }), a = n(this, L).get(
1125
+ setQueryData(e, t, s) {
1126
+ const r = this.defaultQueryOptions({ queryKey: e }), a = n(this, L).get(
1127
1127
  r.queryHash
1128
- ), l = a == null ? void 0 : a.state.data, o = Ks(e, l);
1128
+ ), l = a == null ? void 0 : a.state.data, o = Ks(t, l);
1129
1129
  if (o !== void 0)
1130
1130
  return n(this, L).build(this, r).setData(o, { ...s, manual: !0 });
1131
1131
  }
1132
- setQueriesData(t, e, s) {
1132
+ setQueriesData(e, t, s) {
1133
1133
  return D.batch(
1134
- () => n(this, L).findAll(t).map(({ queryKey: r }) => [
1134
+ () => n(this, L).findAll(e).map(({ queryKey: r }) => [
1135
1135
  r,
1136
- this.setQueryData(r, e, s)
1136
+ this.setQueryData(r, t, s)
1137
1137
  ])
1138
1138
  );
1139
1139
  }
1140
- getQueryState(t) {
1140
+ getQueryState(e) {
1141
1141
  var s;
1142
- const e = this.defaultQueryOptions({ queryKey: t });
1143
- return (s = n(this, L).get(e.queryHash)) == null ? void 0 : s.state;
1142
+ const t = this.defaultQueryOptions({ queryKey: e });
1143
+ return (s = n(this, L).get(t.queryHash)) == null ? void 0 : s.state;
1144
1144
  }
1145
- removeQueries(t) {
1146
- const e = n(this, L);
1145
+ removeQueries(e) {
1146
+ const t = n(this, L);
1147
1147
  D.batch(() => {
1148
- e.findAll(t).forEach((s) => {
1149
- e.remove(s);
1148
+ t.findAll(e).forEach((s) => {
1149
+ t.remove(s);
1150
1150
  });
1151
1151
  });
1152
1152
  }
1153
- resetQueries(t, e) {
1153
+ resetQueries(e, t) {
1154
1154
  const s = n(this, L), r = {
1155
1155
  type: "active",
1156
- ...t
1156
+ ...e
1157
1157
  };
1158
- return D.batch(() => (s.findAll(t).forEach((a) => {
1158
+ return D.batch(() => (s.findAll(e).forEach((a) => {
1159
1159
  a.reset();
1160
- }), this.refetchQueries(r, e)));
1160
+ }), this.refetchQueries(r, t)));
1161
1161
  }
1162
- cancelQueries(t = {}, e = {}) {
1163
- const s = { revert: !0, ...e }, r = D.batch(
1164
- () => n(this, L).findAll(t).map((a) => a.cancel(s))
1162
+ cancelQueries(e = {}, t = {}) {
1163
+ const s = { revert: !0, ...t }, r = D.batch(
1164
+ () => n(this, L).findAll(e).map((a) => a.cancel(s))
1165
1165
  );
1166
1166
  return Promise.all(r).then($).catch($);
1167
1167
  }
1168
- invalidateQueries(t = {}, e = {}) {
1168
+ invalidateQueries(e = {}, t = {}) {
1169
1169
  return D.batch(() => {
1170
- if (n(this, L).findAll(t).forEach((r) => {
1170
+ if (n(this, L).findAll(e).forEach((r) => {
1171
1171
  r.invalidate();
1172
- }), t.refetchType === "none")
1172
+ }), e.refetchType === "none")
1173
1173
  return Promise.resolve();
1174
1174
  const s = {
1175
- ...t,
1176
- type: t.refetchType ?? t.type ?? "active"
1175
+ ...e,
1176
+ type: e.refetchType ?? e.type ?? "active"
1177
1177
  };
1178
- return this.refetchQueries(s, e);
1178
+ return this.refetchQueries(s, t);
1179
1179
  });
1180
1180
  }
1181
- refetchQueries(t = {}, e) {
1181
+ refetchQueries(e = {}, t) {
1182
1182
  const s = {
1183
- ...e,
1184
- cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
1183
+ ...t,
1184
+ cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
1185
1185
  }, r = D.batch(
1186
- () => n(this, L).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
1186
+ () => n(this, L).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
1187
1187
  let l = a.fetch(void 0, s);
1188
1188
  return s.throwOnError || (l = l.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : l;
1189
1189
  })
1190
1190
  );
1191
1191
  return Promise.all(r).then($);
1192
1192
  }
1193
- fetchQuery(t) {
1194
- const e = this.defaultQueryOptions(t);
1195
- e.retry === void 0 && (e.retry = !1);
1196
- const s = n(this, L).build(this, e);
1193
+ fetchQuery(e) {
1194
+ const t = this.defaultQueryOptions(e);
1195
+ t.retry === void 0 && (t.retry = !1);
1196
+ const s = n(this, L).build(this, t);
1197
1197
  return s.isStaleByTime(
1198
- St(e.staleTime, s)
1199
- ) ? s.fetch(e) : Promise.resolve(s.state.data);
1198
+ Se(t.staleTime, s)
1199
+ ) ? s.fetch(t) : Promise.resolve(s.state.data);
1200
1200
  }
1201
- prefetchQuery(t) {
1202
- return this.fetchQuery(t).then($).catch($);
1201
+ prefetchQuery(e) {
1202
+ return this.fetchQuery(e).then($).catch($);
1203
1203
  }
1204
- fetchInfiniteQuery(t) {
1205
- return t.behavior = tr(t.pages), this.fetchQuery(t);
1204
+ fetchInfiniteQuery(e) {
1205
+ return e.behavior = er(e.pages), this.fetchQuery(e);
1206
1206
  }
1207
- prefetchInfiniteQuery(t) {
1208
- return this.fetchInfiniteQuery(t).then($).catch($);
1207
+ prefetchInfiniteQuery(e) {
1208
+ return this.fetchInfiniteQuery(e).then($).catch($);
1209
1209
  }
1210
1210
  resumePausedMutations() {
1211
- return Bt.isOnline() ? n(this, lt).resumePausedMutations() : Promise.resolve();
1211
+ return Be.isOnline() ? n(this, le).resumePausedMutations() : Promise.resolve();
1212
1212
  }
1213
1213
  getQueryCache() {
1214
1214
  return n(this, L);
1215
1215
  }
1216
1216
  getMutationCache() {
1217
- return n(this, lt);
1217
+ return n(this, le);
1218
1218
  }
1219
1219
  getDefaultOptions() {
1220
- return n(this, ct);
1220
+ return n(this, ce);
1221
1221
  }
1222
- setDefaultOptions(t) {
1223
- p(this, ct, t);
1222
+ setDefaultOptions(e) {
1223
+ p(this, ce, e);
1224
1224
  }
1225
- setQueryDefaults(t, e) {
1226
- n(this, Mt).set(bt(t), {
1227
- queryKey: t,
1228
- defaultOptions: e
1225
+ setQueryDefaults(e, t) {
1226
+ n(this, Me).set(be(e), {
1227
+ queryKey: e,
1228
+ defaultOptions: t
1229
1229
  });
1230
1230
  }
1231
- getQueryDefaults(t) {
1232
- const e = [...n(this, Mt).values()];
1231
+ getQueryDefaults(e) {
1232
+ const t = [...n(this, Me).values()];
1233
1233
  let s = {};
1234
- return e.forEach((r) => {
1235
- Gt(t, r.queryKey) && (s = { ...s, ...r.defaultOptions });
1234
+ return t.forEach((r) => {
1235
+ Ge(e, r.queryKey) && (s = { ...s, ...r.defaultOptions });
1236
1236
  }), s;
1237
1237
  }
1238
- setMutationDefaults(t, e) {
1239
- n(this, Ot).set(bt(t), {
1240
- mutationKey: t,
1241
- defaultOptions: e
1238
+ setMutationDefaults(e, t) {
1239
+ n(this, Oe).set(be(e), {
1240
+ mutationKey: e,
1241
+ defaultOptions: t
1242
1242
  });
1243
1243
  }
1244
- getMutationDefaults(t) {
1245
- const e = [...n(this, Ot).values()];
1244
+ getMutationDefaults(e) {
1245
+ const t = [...n(this, Oe).values()];
1246
1246
  let s = {};
1247
- return e.forEach((r) => {
1248
- Gt(t, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1247
+ return t.forEach((r) => {
1248
+ Ge(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1249
1249
  }), s;
1250
1250
  }
1251
- defaultQueryOptions(t) {
1252
- if (t._defaulted)
1253
- return t;
1254
- const e = {
1255
- ...n(this, ct).queries,
1256
- ...this.getQueryDefaults(t.queryKey),
1257
- ...t,
1251
+ defaultQueryOptions(e) {
1252
+ if (e._defaulted)
1253
+ return e;
1254
+ const t = {
1255
+ ...n(this, ce).queries,
1256
+ ...this.getQueryDefaults(e.queryKey),
1257
+ ...e,
1258
1258
  _defaulted: !0
1259
1259
  };
1260
- return e.queryHash || (e.queryHash = xe(
1261
- e.queryKey,
1262
- e
1263
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === ts && (e.enabled = !1), e;
1260
+ return t.queryHash || (t.queryHash = xt(
1261
+ t.queryKey,
1262
+ t
1263
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === es && (t.enabled = !1), t;
1264
1264
  }
1265
- defaultMutationOptions(t) {
1266
- return t != null && t._defaulted ? t : {
1267
- ...n(this, ct).mutations,
1268
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
1269
- ...t,
1265
+ defaultMutationOptions(e) {
1266
+ return e != null && e._defaulted ? e : {
1267
+ ...n(this, ce).mutations,
1268
+ ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
1269
+ ...e,
1270
1270
  _defaulted: !0
1271
1271
  };
1272
1272
  }
1273
1273
  clear() {
1274
- n(this, L).clear(), n(this, lt).clear();
1274
+ n(this, L).clear(), n(this, le).clear();
1275
1275
  }
1276
- }, L = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Mt = new WeakMap(), Ot = new WeakMap(), ut = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(), Ye), H, _, Vt, Q, yt, Ft, tt, $t, Dt, Tt, Ct, xt, ht, Ut, N, Kt, le, ce, ue, he, de, fe, pe, cs, ze, sr = (ze = class extends Ht {
1277
- constructor(e, s) {
1276
+ }, L = new WeakMap(), le = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Oe = new WeakMap(), ue = new WeakMap(), Re = new WeakMap(), Le = new WeakMap(), Yt), H, _, Ve, Q, ye, Fe, ee, $e, De, Te, Ce, xe, he, Ue, N, Ke, lt, ct, ut, ht, dt, ft, pt, cs, zt, sr = (zt = class extends He {
1277
+ constructor(t, s) {
1278
1278
  super();
1279
1279
  y(this, N);
1280
1280
  y(this, H);
1281
1281
  y(this, _);
1282
- y(this, Vt);
1282
+ y(this, Ve);
1283
1283
  y(this, Q);
1284
- y(this, yt);
1285
- y(this, Ft);
1286
- y(this, tt);
1287
- y(this, $t);
1288
- y(this, Dt);
1284
+ y(this, ye);
1285
+ y(this, Fe);
1286
+ y(this, ee);
1287
+ y(this, $e);
1288
+ y(this, De);
1289
1289
  // This property keeps track of the last query with defined data.
1290
1290
  // It will be used to pass the previous data and query to the placeholder function between renders.
1291
- y(this, Tt);
1292
- y(this, Ct);
1293
- y(this, xt);
1294
- y(this, ht);
1295
- y(this, Ut, /* @__PURE__ */ new Set());
1296
- this.options = s, p(this, H, e), p(this, tt, null), this.bindMethods(), this.setOptions(s);
1291
+ y(this, Te);
1292
+ y(this, Ce);
1293
+ y(this, xe);
1294
+ y(this, he);
1295
+ y(this, Ue, /* @__PURE__ */ new Set());
1296
+ this.options = s, p(this, H, t), p(this, ee, null), this.bindMethods(), this.setOptions(s);
1297
1297
  }
1298
1298
  bindMethods() {
1299
1299
  this.refetch = this.refetch.bind(this);
1300
1300
  }
1301
1301
  onSubscribe() {
1302
- this.listeners.size === 1 && (n(this, _).addObserver(this), Re(n(this, _), this.options) ? b(this, N, Kt).call(this) : this.updateResult(), b(this, N, he).call(this));
1302
+ this.listeners.size === 1 && (n(this, _).addObserver(this), Rt(n(this, _), this.options) ? b(this, N, Ke).call(this) : this.updateResult(), b(this, N, ht).call(this));
1303
1303
  }
1304
1304
  onUnsubscribe() {
1305
1305
  this.hasListeners() || this.destroy();
1306
1306
  }
1307
1307
  shouldFetchOnReconnect() {
1308
- return me(
1308
+ return mt(
1309
1309
  n(this, _),
1310
1310
  this.options,
1311
1311
  this.options.refetchOnReconnect
1312
1312
  );
1313
1313
  }
1314
1314
  shouldFetchOnWindowFocus() {
1315
- return me(
1315
+ return mt(
1316
1316
  n(this, _),
1317
1317
  this.options,
1318
1318
  this.options.refetchOnWindowFocus
1319
1319
  );
1320
1320
  }
1321
1321
  destroy() {
1322
- this.listeners = /* @__PURE__ */ new Set(), b(this, N, de).call(this), b(this, N, fe).call(this), n(this, _).removeObserver(this);
1322
+ this.listeners = /* @__PURE__ */ new Set(), b(this, N, dt).call(this), b(this, N, ft).call(this), n(this, _).removeObserver(this);
1323
1323
  }
1324
- setOptions(e, s) {
1324
+ setOptions(t, s) {
1325
1325
  const r = this.options, a = n(this, _);
1326
- if (this.options = n(this, H).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof z(this.options.enabled, n(this, _)) != "boolean")
1326
+ if (this.options = n(this, H).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof z(this.options.enabled, n(this, _)) != "boolean")
1327
1327
  throw new Error(
1328
1328
  "Expected enabled to be a boolean or a callback that returns a boolean"
1329
1329
  );
1330
- b(this, N, pe).call(this), n(this, _).setOptions(this.options), r._defaulted && !It(this.options, r) && n(this, H).getQueryCache().notify({
1330
+ b(this, N, pt).call(this), n(this, _).setOptions(this.options), r._defaulted && !Ie(this.options, r) && n(this, H).getQueryCache().notify({
1331
1331
  type: "observerOptionsUpdated",
1332
1332
  query: n(this, _),
1333
1333
  observer: this
1334
1334
  });
1335
1335
  const l = this.hasListeners();
1336
- l && Le(
1336
+ l && Lt(
1337
1337
  n(this, _),
1338
1338
  a,
1339
1339
  this.options,
1340
1340
  r
1341
- ) && b(this, N, Kt).call(this), this.updateResult(s), l && (n(this, _) !== a || z(this.options.enabled, n(this, _)) !== z(r.enabled, n(this, _)) || St(this.options.staleTime, n(this, _)) !== St(r.staleTime, n(this, _))) && b(this, N, le).call(this);
1342
- const o = b(this, N, ce).call(this);
1343
- l && (n(this, _) !== a || z(this.options.enabled, n(this, _)) !== z(r.enabled, n(this, _)) || o !== n(this, ht)) && b(this, N, ue).call(this, o);
1341
+ ) && b(this, N, Ke).call(this), this.updateResult(s), l && (n(this, _) !== a || z(this.options.enabled, n(this, _)) !== z(r.enabled, n(this, _)) || Se(this.options.staleTime, n(this, _)) !== Se(r.staleTime, n(this, _))) && b(this, N, lt).call(this);
1342
+ const o = b(this, N, ct).call(this);
1343
+ l && (n(this, _) !== a || z(this.options.enabled, n(this, _)) !== z(r.enabled, n(this, _)) || o !== n(this, he)) && b(this, N, ut).call(this, o);
1344
1344
  }
1345
- getOptimisticResult(e) {
1346
- const s = n(this, H).getQueryCache().build(n(this, H), e), r = this.createResult(s, e);
1347
- return ir(this, r) && (p(this, Q, r), p(this, Ft, this.options), p(this, yt, n(this, _).state)), r;
1345
+ getOptimisticResult(t) {
1346
+ const s = n(this, H).getQueryCache().build(n(this, H), t), r = this.createResult(s, t);
1347
+ return ir(this, r) && (p(this, Q, r), p(this, Fe, this.options), p(this, ye, n(this, _).state)), r;
1348
1348
  }
1349
1349
  getCurrentResult() {
1350
1350
  return n(this, Q);
1351
1351
  }
1352
- trackResult(e, s) {
1352
+ trackResult(t, s) {
1353
1353
  const r = {};
1354
- return Object.keys(e).forEach((a) => {
1354
+ return Object.keys(t).forEach((a) => {
1355
1355
  Object.defineProperty(r, a, {
1356
1356
  configurable: !1,
1357
1357
  enumerable: !0,
1358
- get: () => (this.trackProp(a), s == null || s(a), e[a])
1358
+ get: () => (this.trackProp(a), s == null || s(a), t[a])
1359
1359
  });
1360
1360
  }), r;
1361
1361
  }
1362
- trackProp(e) {
1363
- n(this, Ut).add(e);
1362
+ trackProp(t) {
1363
+ n(this, Ue).add(t);
1364
1364
  }
1365
1365
  getCurrentQuery() {
1366
1366
  return n(this, _);
1367
1367
  }
1368
- refetch({ ...e } = {}) {
1368
+ refetch({ ...t } = {}) {
1369
1369
  return this.fetch({
1370
- ...e
1370
+ ...t
1371
1371
  });
1372
1372
  }
1373
- fetchOptimistic(e) {
1374
- const s = n(this, H).defaultQueryOptions(e), r = n(this, H).getQueryCache().build(n(this, H), s);
1373
+ fetchOptimistic(t) {
1374
+ const s = n(this, H).defaultQueryOptions(t), r = n(this, H).getQueryCache().build(n(this, H), s);
1375
1375
  return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
1376
1376
  }
1377
- fetch(e) {
1378
- return b(this, N, Kt).call(this, {
1379
- ...e,
1380
- cancelRefetch: e.cancelRefetch ?? !0
1377
+ fetch(t) {
1378
+ return b(this, N, Ke).call(this, {
1379
+ ...t,
1380
+ cancelRefetch: t.cancelRefetch ?? !0
1381
1381
  }).then(() => (this.updateResult(), n(this, Q)));
1382
1382
  }
1383
- createResult(e, s) {
1384
- var et;
1385
- const r = n(this, _), a = this.options, l = n(this, Q), o = n(this, yt), c = n(this, Ft), g = e !== r ? e.state : n(this, Vt), { state: h } = e;
1383
+ createResult(t, s) {
1384
+ var te;
1385
+ const r = n(this, _), a = this.options, l = n(this, Q), o = n(this, ye), c = n(this, Fe), g = t !== r ? t.state : n(this, Ve), { state: h } = t;
1386
1386
  let u = { ...h }, d = !1, m;
1387
1387
  if (s._optimisticResults) {
1388
- const E = this.hasListeners(), Z = !E && Re(e, s), Ls = E && Le(e, r, s, a);
1388
+ const E = this.hasListeners(), Z = !E && Rt(t, s), Ls = E && Lt(t, r, s, a);
1389
1389
  (Z || Ls) && (u = {
1390
1390
  ...u,
1391
- ...as(h.data, e.options)
1391
+ ...as(h.data, t.options)
1392
1392
  }), s._optimisticResults === "isRestoring" && (u.fetchStatus = "idle");
1393
1393
  }
1394
- let { error: S, errorUpdatedAt: P, status: k } = u;
1394
+ let { error: S, errorUpdatedAt: P, status: A } = u;
1395
1395
  if (s.select && u.data !== void 0)
1396
- if (l && u.data === (o == null ? void 0 : o.data) && s.select === n(this, $t))
1397
- m = n(this, Dt);
1396
+ if (l && u.data === (o == null ? void 0 : o.data) && s.select === n(this, $e))
1397
+ m = n(this, De);
1398
1398
  else
1399
1399
  try {
1400
- p(this, $t, s.select), m = s.select(u.data), m = oe(l == null ? void 0 : l.data, m, s), p(this, Dt, m), p(this, tt, null);
1400
+ p(this, $e, s.select), m = s.select(u.data), m = ot(l == null ? void 0 : l.data, m, s), p(this, De, m), p(this, ee, null);
1401
1401
  } catch (E) {
1402
- p(this, tt, E);
1402
+ p(this, ee, E);
1403
1403
  }
1404
1404
  else
1405
1405
  m = u.data;
1406
- if (s.placeholderData !== void 0 && m === void 0 && k === "pending") {
1406
+ if (s.placeholderData !== void 0 && m === void 0 && A === "pending") {
1407
1407
  let E;
1408
1408
  if (l != null && l.isPlaceholderData && s.placeholderData === (c == null ? void 0 : c.placeholderData))
1409
1409
  E = l.data;
1410
1410
  else if (E = typeof s.placeholderData == "function" ? s.placeholderData(
1411
- (et = n(this, Tt)) == null ? void 0 : et.state.data,
1412
- n(this, Tt)
1411
+ (te = n(this, Te)) == null ? void 0 : te.state.data,
1412
+ n(this, Te)
1413
1413
  ) : s.placeholderData, s.select && E !== void 0)
1414
1414
  try {
1415
- E = s.select(E), p(this, tt, null);
1415
+ E = s.select(E), p(this, ee, null);
1416
1416
  } catch (Z) {
1417
- p(this, tt, Z);
1417
+ p(this, ee, Z);
1418
1418
  }
1419
- E !== void 0 && (k = "success", m = oe(
1419
+ E !== void 0 && (A = "success", m = ot(
1420
1420
  l == null ? void 0 : l.data,
1421
1421
  E,
1422
1422
  s
1423
1423
  ), d = !0);
1424
1424
  }
1425
- n(this, tt) && (S = n(this, tt), m = n(this, Dt), P = Date.now(), k = "error");
1426
- const C = u.fetchStatus === "fetching", w = k === "pending", j = k === "error", M = w && C, R = m !== void 0;
1425
+ n(this, ee) && (S = n(this, ee), m = n(this, De), P = Date.now(), A = "error");
1426
+ const C = u.fetchStatus === "fetching", w = A === "pending", j = A === "error", M = w && C, R = m !== void 0;
1427
1427
  return {
1428
- status: k,
1428
+ status: A,
1429
1429
  fetchStatus: u.fetchStatus,
1430
1430
  isPending: w,
1431
- isSuccess: k === "success",
1431
+ isSuccess: A === "success",
1432
1432
  isError: j,
1433
1433
  isInitialLoading: M,
1434
1434
  isLoading: M,
@@ -1447,229 +1447,229 @@ var L, lt, ct, Mt, Ot, ut, Rt, Lt, Ye, ls = (Ye = class {
1447
1447
  isPaused: u.fetchStatus === "paused",
1448
1448
  isPlaceholderData: d,
1449
1449
  isRefetchError: j && R,
1450
- isStale: we(e, s),
1450
+ isStale: wt(t, s),
1451
1451
  refetch: this.refetch
1452
1452
  };
1453
1453
  }
1454
- updateResult(e) {
1454
+ updateResult(t) {
1455
1455
  const s = n(this, Q), r = this.createResult(n(this, _), this.options);
1456
- if (p(this, yt, n(this, _).state), p(this, Ft, this.options), n(this, yt).data !== void 0 && p(this, Tt, n(this, _)), It(r, s))
1456
+ if (p(this, ye, n(this, _).state), p(this, Fe, this.options), n(this, ye).data !== void 0 && p(this, Te, n(this, _)), Ie(r, s))
1457
1457
  return;
1458
1458
  p(this, Q, r);
1459
1459
  const a = {}, l = () => {
1460
1460
  if (!s)
1461
1461
  return !0;
1462
1462
  const { notifyOnChangeProps: o } = this.options, c = typeof o == "function" ? o() : o;
1463
- if (c === "all" || !c && !n(this, Ut).size)
1463
+ if (c === "all" || !c && !n(this, Ue).size)
1464
1464
  return !0;
1465
1465
  const v = new Set(
1466
- c ?? n(this, Ut)
1466
+ c ?? n(this, Ue)
1467
1467
  );
1468
1468
  return this.options.throwOnError && v.add("error"), Object.keys(n(this, Q)).some((g) => {
1469
1469
  const h = g;
1470
1470
  return n(this, Q)[h] !== s[h] && v.has(h);
1471
1471
  });
1472
1472
  };
1473
- (e == null ? void 0 : e.listeners) !== !1 && l() && (a.listeners = !0), b(this, N, cs).call(this, { ...a, ...e });
1473
+ (t == null ? void 0 : t.listeners) !== !1 && l() && (a.listeners = !0), b(this, N, cs).call(this, { ...a, ...t });
1474
1474
  }
1475
1475
  onQueryUpdate() {
1476
- this.updateResult(), this.hasListeners() && b(this, N, he).call(this);
1476
+ this.updateResult(), this.hasListeners() && b(this, N, ht).call(this);
1477
1477
  }
1478
- }, H = new WeakMap(), _ = new WeakMap(), Vt = new WeakMap(), Q = new WeakMap(), yt = new WeakMap(), Ft = new WeakMap(), tt = new WeakMap(), $t = new WeakMap(), Dt = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), xt = new WeakMap(), ht = new WeakMap(), Ut = new WeakMap(), N = new WeakSet(), Kt = function(e) {
1479
- b(this, N, pe).call(this);
1478
+ }, H = new WeakMap(), _ = new WeakMap(), Ve = new WeakMap(), Q = new WeakMap(), ye = new WeakMap(), Fe = new WeakMap(), ee = new WeakMap(), $e = new WeakMap(), De = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), xe = new WeakMap(), he = new WeakMap(), Ue = new WeakMap(), N = new WeakSet(), Ke = function(t) {
1479
+ b(this, N, pt).call(this);
1480
1480
  let s = n(this, _).fetch(
1481
1481
  this.options,
1482
- e
1482
+ t
1483
1483
  );
1484
- return e != null && e.throwOnError || (s = s.catch($)), s;
1485
- }, le = function() {
1486
- b(this, N, de).call(this);
1487
- const e = St(
1484
+ return t != null && t.throwOnError || (s = s.catch($)), s;
1485
+ }, lt = function() {
1486
+ b(this, N, dt).call(this);
1487
+ const t = Se(
1488
1488
  this.options.staleTime,
1489
1489
  n(this, _)
1490
1490
  );
1491
- if (Qt || n(this, Q).isStale || !ne(e))
1491
+ if (Qe || n(this, Q).isStale || !nt(t))
1492
1492
  return;
1493
- const r = Ie(n(this, Q).dataUpdatedAt, e) + 1;
1494
- p(this, Ct, setTimeout(() => {
1493
+ const r = It(n(this, Q).dataUpdatedAt, t) + 1;
1494
+ p(this, Ce, setTimeout(() => {
1495
1495
  n(this, Q).isStale || this.updateResult();
1496
1496
  }, r));
1497
- }, ce = function() {
1497
+ }, ct = function() {
1498
1498
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, _)) : this.options.refetchInterval) ?? !1;
1499
- }, ue = function(e) {
1500
- b(this, N, fe).call(this), p(this, ht, e), !(Qt || z(this.options.enabled, n(this, _)) === !1 || !ne(n(this, ht)) || n(this, ht) === 0) && p(this, xt, setInterval(() => {
1501
- (this.options.refetchIntervalInBackground || be.isFocused()) && b(this, N, Kt).call(this);
1502
- }, n(this, ht)));
1503
- }, he = function() {
1504
- b(this, N, le).call(this), b(this, N, ue).call(this, b(this, N, ce).call(this));
1505
- }, de = function() {
1506
- n(this, Ct) && (clearTimeout(n(this, Ct)), p(this, Ct, void 0));
1507
- }, fe = function() {
1508
- n(this, xt) && (clearInterval(n(this, xt)), p(this, xt, void 0));
1509
- }, pe = function() {
1510
- const e = n(this, H).getQueryCache().build(n(this, H), this.options);
1511
- if (e === n(this, _))
1499
+ }, ut = function(t) {
1500
+ b(this, N, ft).call(this), p(this, he, t), !(Qe || z(this.options.enabled, n(this, _)) === !1 || !nt(n(this, he)) || n(this, he) === 0) && p(this, xe, setInterval(() => {
1501
+ (this.options.refetchIntervalInBackground || bt.isFocused()) && b(this, N, Ke).call(this);
1502
+ }, n(this, he)));
1503
+ }, ht = function() {
1504
+ b(this, N, lt).call(this), b(this, N, ut).call(this, b(this, N, ct).call(this));
1505
+ }, dt = function() {
1506
+ n(this, Ce) && (clearTimeout(n(this, Ce)), p(this, Ce, void 0));
1507
+ }, ft = function() {
1508
+ n(this, xe) && (clearInterval(n(this, xe)), p(this, xe, void 0));
1509
+ }, pt = function() {
1510
+ const t = n(this, H).getQueryCache().build(n(this, H), this.options);
1511
+ if (t === n(this, _))
1512
1512
  return;
1513
1513
  const s = n(this, _);
1514
- p(this, _, e), p(this, Vt, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
1515
- }, cs = function(e) {
1514
+ p(this, _, t), p(this, Ve, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
1515
+ }, cs = function(t) {
1516
1516
  D.batch(() => {
1517
- e.listeners && this.listeners.forEach((s) => {
1517
+ t.listeners && this.listeners.forEach((s) => {
1518
1518
  s(n(this, Q));
1519
1519
  }), n(this, H).getQueryCache().notify({
1520
1520
  query: n(this, _),
1521
1521
  type: "observerResultsUpdated"
1522
1522
  });
1523
1523
  });
1524
- }, ze);
1525
- function rr(t, e) {
1526
- return z(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
1524
+ }, zt);
1525
+ function rr(e, t) {
1526
+ return z(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
1527
1527
  }
1528
- function Re(t, e) {
1529
- return rr(t, e) || t.state.data !== void 0 && me(t, e, e.refetchOnMount);
1528
+ function Rt(e, t) {
1529
+ return rr(e, t) || e.state.data !== void 0 && mt(e, t, t.refetchOnMount);
1530
1530
  }
1531
- function me(t, e, s) {
1532
- if (z(e.enabled, t) !== !1) {
1533
- const r = typeof s == "function" ? s(t) : s;
1534
- return r === "always" || r !== !1 && we(t, e);
1531
+ function mt(e, t, s) {
1532
+ if (z(t.enabled, e) !== !1) {
1533
+ const r = typeof s == "function" ? s(e) : s;
1534
+ return r === "always" || r !== !1 && wt(e, t);
1535
1535
  }
1536
1536
  return !1;
1537
1537
  }
1538
- function Le(t, e, s, r) {
1539
- return (t !== e || z(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && we(t, s);
1538
+ function Lt(e, t, s, r) {
1539
+ return (e !== t || z(r.enabled, e) === !1) && (!s.suspense || e.state.status !== "error") && wt(e, s);
1540
1540
  }
1541
- function we(t, e) {
1542
- return z(e.enabled, t) !== !1 && t.isStaleByTime(St(e.staleTime, t));
1541
+ function wt(e, t) {
1542
+ return z(t.enabled, e) !== !1 && e.isStaleByTime(Se(t.staleTime, e));
1543
1543
  }
1544
- function ir(t, e) {
1545
- return !It(t.getCurrentResult(), e);
1544
+ function ir(e, t) {
1545
+ return !Ie(e.getCurrentResult(), t);
1546
1546
  }
1547
- var dt, ft, K, rt, it, Xt, ve, Je, nr = (Je = class extends Ht {
1548
- constructor(e, s) {
1547
+ var de, fe, K, re, ie, Xe, vt, Jt, nr = (Jt = class extends He {
1548
+ constructor(t, s) {
1549
1549
  super();
1550
- y(this, it);
1551
- y(this, dt);
1552
- y(this, ft);
1550
+ y(this, ie);
1551
+ y(this, de);
1552
+ y(this, fe);
1553
1553
  y(this, K);
1554
- y(this, rt);
1555
- p(this, dt, e), this.setOptions(s), this.bindMethods(), b(this, it, Xt).call(this);
1554
+ y(this, re);
1555
+ p(this, de, t), this.setOptions(s), this.bindMethods(), b(this, ie, Xe).call(this);
1556
1556
  }
1557
1557
  bindMethods() {
1558
1558
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
1559
1559
  }
1560
- setOptions(e) {
1560
+ setOptions(t) {
1561
1561
  var r;
1562
1562
  const s = this.options;
1563
- this.options = n(this, dt).defaultMutationOptions(e), It(this.options, s) || n(this, dt).getMutationCache().notify({
1563
+ this.options = n(this, de).defaultMutationOptions(t), Ie(this.options, s) || n(this, de).getMutationCache().notify({
1564
1564
  type: "observerOptionsUpdated",
1565
1565
  mutation: n(this, K),
1566
1566
  observer: this
1567
- }), s != null && s.mutationKey && this.options.mutationKey && bt(s.mutationKey) !== bt(this.options.mutationKey) ? this.reset() : ((r = n(this, K)) == null ? void 0 : r.state.status) === "pending" && n(this, K).setOptions(this.options);
1567
+ }), s != null && s.mutationKey && this.options.mutationKey && be(s.mutationKey) !== be(this.options.mutationKey) ? this.reset() : ((r = n(this, K)) == null ? void 0 : r.state.status) === "pending" && n(this, K).setOptions(this.options);
1568
1568
  }
1569
1569
  onUnsubscribe() {
1570
- var e;
1571
- this.hasListeners() || (e = n(this, K)) == null || e.removeObserver(this);
1570
+ var t;
1571
+ this.hasListeners() || (t = n(this, K)) == null || t.removeObserver(this);
1572
1572
  }
1573
- onMutationUpdate(e) {
1574
- b(this, it, Xt).call(this), b(this, it, ve).call(this, e);
1573
+ onMutationUpdate(t) {
1574
+ b(this, ie, Xe).call(this), b(this, ie, vt).call(this, t);
1575
1575
  }
1576
1576
  getCurrentResult() {
1577
- return n(this, ft);
1577
+ return n(this, fe);
1578
1578
  }
1579
1579
  reset() {
1580
- var e;
1581
- (e = n(this, K)) == null || e.removeObserver(this), p(this, K, void 0), b(this, it, Xt).call(this), b(this, it, ve).call(this);
1580
+ var t;
1581
+ (t = n(this, K)) == null || t.removeObserver(this), p(this, K, void 0), b(this, ie, Xe).call(this), b(this, ie, vt).call(this);
1582
1582
  }
1583
- mutate(e, s) {
1583
+ mutate(t, s) {
1584
1584
  var r;
1585
- return p(this, rt, s), (r = n(this, K)) == null || r.removeObserver(this), p(this, K, n(this, dt).getMutationCache().build(n(this, dt), this.options)), n(this, K).addObserver(this), n(this, K).execute(e);
1585
+ return p(this, re, s), (r = n(this, K)) == null || r.removeObserver(this), p(this, K, n(this, de).getMutationCache().build(n(this, de), this.options)), n(this, K).addObserver(this), n(this, K).execute(t);
1586
1586
  }
1587
- }, dt = new WeakMap(), ft = new WeakMap(), K = new WeakMap(), rt = new WeakMap(), it = new WeakSet(), Xt = function() {
1587
+ }, de = new WeakMap(), fe = new WeakMap(), K = new WeakMap(), re = new WeakMap(), ie = new WeakSet(), Xe = function() {
1588
1588
  var s;
1589
- const e = ((s = n(this, K)) == null ? void 0 : s.state) ?? os();
1590
- p(this, ft, {
1591
- ...e,
1592
- isPending: e.status === "pending",
1593
- isSuccess: e.status === "success",
1594
- isError: e.status === "error",
1595
- isIdle: e.status === "idle",
1589
+ const t = ((s = n(this, K)) == null ? void 0 : s.state) ?? os();
1590
+ p(this, fe, {
1591
+ ...t,
1592
+ isPending: t.status === "pending",
1593
+ isSuccess: t.status === "success",
1594
+ isError: t.status === "error",
1595
+ isIdle: t.status === "idle",
1596
1596
  mutate: this.mutate,
1597
1597
  reset: this.reset
1598
1598
  });
1599
- }, ve = function(e) {
1599
+ }, vt = function(t) {
1600
1600
  D.batch(() => {
1601
1601
  var s, r, a, l, o, c, v, g;
1602
- if (n(this, rt) && this.hasListeners()) {
1603
- const h = n(this, ft).variables, u = n(this, ft).context;
1604
- (e == null ? void 0 : e.type) === "success" ? ((r = (s = n(this, rt)).onSuccess) == null || r.call(s, e.data, h, u), (l = (a = n(this, rt)).onSettled) == null || l.call(a, e.data, null, h, u)) : (e == null ? void 0 : e.type) === "error" && ((c = (o = n(this, rt)).onError) == null || c.call(o, e.error, h, u), (g = (v = n(this, rt)).onSettled) == null || g.call(
1602
+ if (n(this, re) && this.hasListeners()) {
1603
+ const h = n(this, fe).variables, u = n(this, fe).context;
1604
+ (t == null ? void 0 : t.type) === "success" ? ((r = (s = n(this, re)).onSuccess) == null || r.call(s, t.data, h, u), (l = (a = n(this, re)).onSettled) == null || l.call(a, t.data, null, h, u)) : (t == null ? void 0 : t.type) === "error" && ((c = (o = n(this, re)).onError) == null || c.call(o, t.error, h, u), (g = (v = n(this, re)).onSettled) == null || g.call(
1605
1605
  v,
1606
1606
  void 0,
1607
- e.error,
1607
+ t.error,
1608
1608
  h,
1609
1609
  u
1610
1610
  ));
1611
1611
  }
1612
1612
  this.listeners.forEach((h) => {
1613
- h(n(this, ft));
1613
+ h(n(this, fe));
1614
1614
  });
1615
1615
  });
1616
- }, Je), us = f.createContext(
1616
+ }, Jt), us = f.createContext(
1617
1617
  void 0
1618
- ), je = (t) => {
1619
- const e = f.useContext(us);
1620
- if (!e)
1618
+ ), jt = (e) => {
1619
+ const t = f.useContext(us);
1620
+ if (!t)
1621
1621
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1622
- return e;
1622
+ return t;
1623
1623
  }, ar = ({
1624
- client: t,
1625
- children: e
1626
- }) => (f.useEffect(() => (t.mount(), () => {
1627
- t.unmount();
1628
- }), [t]), /* @__PURE__ */ i.jsx(us.Provider, { value: t, children: e })), hs = f.createContext(!1), or = () => f.useContext(hs);
1624
+ client: e,
1625
+ children: t
1626
+ }) => (f.useEffect(() => (e.mount(), () => {
1627
+ e.unmount();
1628
+ }), [e]), /* @__PURE__ */ i.jsx(us.Provider, { value: e, children: t })), hs = f.createContext(!1), or = () => f.useContext(hs);
1629
1629
  hs.Provider;
1630
1630
  function lr() {
1631
- let t = !1;
1631
+ let e = !1;
1632
1632
  return {
1633
1633
  clearReset: () => {
1634
- t = !1;
1634
+ e = !1;
1635
1635
  },
1636
1636
  reset: () => {
1637
- t = !0;
1637
+ e = !0;
1638
1638
  },
1639
- isReset: () => t
1639
+ isReset: () => e
1640
1640
  };
1641
1641
  }
1642
1642
  var cr = f.createContext(lr()), ur = () => f.useContext(cr);
1643
- function ds(t, e) {
1644
- return typeof t == "function" ? t(...e) : !!t;
1643
+ function ds(e, t) {
1644
+ return typeof e == "function" ? e(...t) : !!e;
1645
1645
  }
1646
1646
  function hr() {
1647
1647
  }
1648
- var dr = (t, e) => {
1649
- (t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
1650
- }, fr = (t) => {
1648
+ var dr = (e, t) => {
1649
+ (e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
1650
+ }, fr = (e) => {
1651
1651
  f.useEffect(() => {
1652
- t.clearReset();
1653
- }, [t]);
1652
+ e.clearReset();
1653
+ }, [e]);
1654
1654
  }, pr = ({
1655
- result: t,
1656
- errorResetBoundary: e,
1655
+ result: e,
1656
+ errorResetBoundary: t,
1657
1657
  throwOnError: s,
1658
1658
  query: r
1659
- }) => t.isError && !e.isReset() && !t.isFetching && r && ds(s, [t.error, r]), mr = (t) => {
1660
- t.suspense && typeof t.staleTime != "number" && (t.staleTime = 1e3);
1661
- }, vr = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, gr = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1659
+ }) => e.isError && !t.isReset() && !e.isFetching && r && ds(s, [e.error, r]), mr = (e) => {
1660
+ e.suspense && (typeof e.staleTime != "number" && (e.staleTime = 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
1661
+ }, vr = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, gr = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1662
1662
  s.clearReset();
1663
1663
  });
1664
- function yr(t, e, s) {
1664
+ function yr(e, t, s) {
1665
1665
  var g, h, u, d;
1666
- const r = je(), a = or(), l = ur(), o = r.defaultQueryOptions(t);
1666
+ const r = jt(), a = or(), l = ur(), o = r.defaultQueryOptions(e);
1667
1667
  (h = (g = r.getDefaultOptions().queries) == null ? void 0 : g._experimental_beforeQuery) == null || h.call(
1668
1668
  g,
1669
1669
  o
1670
1670
  ), o._optimisticResults = a ? "isRestoring" : "optimistic", mr(o), dr(o, l), fr(l);
1671
1671
  const [c] = f.useState(
1672
- () => new e(
1672
+ () => new t(
1673
1673
  r,
1674
1674
  o
1675
1675
  )
@@ -1702,19 +1702,19 @@ function yr(t, e, s) {
1702
1702
  v
1703
1703
  ), o.notifyOnChangeProps ? v : c.trackResult(v);
1704
1704
  }
1705
- function fs(t, e) {
1706
- return yr(t, sr);
1705
+ function fs(e, t) {
1706
+ return yr(e, sr);
1707
1707
  }
1708
- function Cr(t, e) {
1709
- const s = je(), [r] = f.useState(
1708
+ function Cr(e, t) {
1709
+ const s = jt(), [r] = f.useState(
1710
1710
  () => new nr(
1711
1711
  s,
1712
- t
1712
+ e
1713
1713
  )
1714
1714
  );
1715
1715
  f.useEffect(() => {
1716
- r.setOptions(t);
1717
- }, [r, t]);
1716
+ r.setOptions(e);
1717
+ }, [r, e]);
1718
1718
  const a = f.useSyncExternalStore(
1719
1719
  f.useCallback(
1720
1720
  (o) => r.subscribe(D.batchCalls(o)),
@@ -1732,95 +1732,95 @@ function Cr(t, e) {
1732
1732
  throw a.error;
1733
1733
  return { ...a, mutate: l, mutateAsync: a.mutate };
1734
1734
  }
1735
- function ps(t) {
1736
- var e, s, r = "";
1737
- if (typeof t == "string" || typeof t == "number") r += t;
1738
- else if (typeof t == "object") if (Array.isArray(t)) {
1739
- var a = t.length;
1740
- for (e = 0; e < a; e++) t[e] && (s = ps(t[e])) && (r && (r += " "), r += s);
1741
- } else for (s in t) t[s] && (r && (r += " "), r += s);
1735
+ function ps(e) {
1736
+ var t, s, r = "";
1737
+ if (typeof e == "string" || typeof e == "number") r += e;
1738
+ else if (typeof e == "object") if (Array.isArray(e)) {
1739
+ var a = e.length;
1740
+ for (t = 0; t < a; t++) e[t] && (s = ps(e[t])) && (r && (r += " "), r += s);
1741
+ } else for (s in e) e[s] && (r && (r += " "), r += s);
1742
1742
  return r;
1743
1743
  }
1744
1744
  function O() {
1745
- for (var t, e, s = 0, r = "", a = arguments.length; s < a; s++) (t = arguments[s]) && (e = ps(t)) && (r && (r += " "), r += e);
1745
+ for (var e, t, s = 0, r = "", a = arguments.length; s < a; s++) (e = arguments[s]) && (t = ps(e)) && (r && (r += " "), r += t);
1746
1746
  return r;
1747
1747
  }
1748
- var xr = Object.defineProperty, br = Object.defineProperties, wr = Object.getOwnPropertyDescriptors, te = Object.getOwnPropertySymbols, ms = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, Fe = (t, e, s) => e in t ? xr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, x = (t, e) => {
1749
- for (var s in e || (e = {}))
1750
- ms.call(e, s) && Fe(t, s, e[s]);
1751
- if (te)
1752
- for (var s of te(e))
1753
- vs.call(e, s) && Fe(t, s, e[s]);
1754
- return t;
1755
- }, A = (t, e) => br(t, wr(e)), F = (t, e) => {
1748
+ var xr = Object.defineProperty, br = Object.defineProperties, wr = Object.getOwnPropertyDescriptors, et = Object.getOwnPropertySymbols, ms = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, Ft = (e, t, s) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, x = (e, t) => {
1749
+ for (var s in t || (t = {}))
1750
+ ms.call(t, s) && Ft(e, s, t[s]);
1751
+ if (et)
1752
+ for (var s of et(t))
1753
+ vs.call(t, s) && Ft(e, s, t[s]);
1754
+ return e;
1755
+ }, k = (e, t) => br(e, wr(t)), F = (e, t) => {
1756
1756
  var s = {};
1757
- for (var r in t)
1758
- ms.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
1759
- if (t != null && te)
1760
- for (var r of te(t))
1761
- e.indexOf(r) < 0 && vs.call(t, r) && (s[r] = t[r]);
1757
+ for (var r in e)
1758
+ ms.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1759
+ if (e != null && et)
1760
+ for (var r of et(e))
1761
+ t.indexOf(r) < 0 && vs.call(e, r) && (s[r] = e[r]);
1762
1762
  return s;
1763
1763
  };
1764
- function jr(t, e) {
1765
- typeof t == "function" ? t(e) : t != null && (t.current = e);
1764
+ function jr(e, t) {
1765
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
1766
1766
  }
1767
- function _r(...t) {
1768
- return (e) => t.forEach((s) => jr(s, e));
1767
+ function _r(...e) {
1768
+ return (t) => e.forEach((s) => jr(s, t));
1769
1769
  }
1770
- var Sr = f.forwardRef((t, e) => {
1771
- const s = t, { children: r } = s, a = F(s, ["children"]), l = f.Children.toArray(r), o = l.find(Pr);
1770
+ var Sr = f.forwardRef((e, t) => {
1771
+ const s = e, { children: r } = s, a = F(s, ["children"]), l = f.Children.toArray(r), o = l.find(Pr);
1772
1772
  if (o) {
1773
1773
  const c = o.props.children, v = l.map((g) => g === o ? f.Children.count(c) > 1 ? f.Children.only(null) : f.isValidElement(c) ? c.props.children : null : g);
1774
- return /* @__PURE__ */ i.jsx(ge, A(x({}, a), { ref: e, children: f.isValidElement(c) ? f.cloneElement(c, void 0, v) : null }));
1774
+ return /* @__PURE__ */ i.jsx(gt, k(x({}, a), { ref: t, children: f.isValidElement(c) ? f.cloneElement(c, void 0, v) : null }));
1775
1775
  }
1776
- return /* @__PURE__ */ i.jsx(ge, A(x({}, a), { ref: e, children: r }));
1776
+ return /* @__PURE__ */ i.jsx(gt, k(x({}, a), { ref: t, children: r }));
1777
1777
  });
1778
1778
  Sr.displayName = "Slot";
1779
- var ge = f.forwardRef((t, e) => {
1780
- const s = t, { children: r } = s, a = F(s, ["children"]);
1779
+ var gt = f.forwardRef((e, t) => {
1780
+ const s = e, { children: r } = s, a = F(s, ["children"]);
1781
1781
  if (f.isValidElement(r)) {
1782
- const l = kr(r);
1783
- return f.cloneElement(r, A(x({}, Ar(a, r.props)), {
1782
+ const l = Ar(r);
1783
+ return f.cloneElement(r, k(x({}, kr(a, r.props)), {
1784
1784
  // @ts-ignore
1785
- ref: e ? _r(e, l) : l
1785
+ ref: t ? _r(t, l) : l
1786
1786
  }));
1787
1787
  }
1788
1788
  return f.Children.count(r) > 1 ? f.Children.only(null) : null;
1789
1789
  });
1790
- ge.displayName = "SlotClone";
1791
- var Er = ({ children: t }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: t });
1792
- function Pr(t) {
1793
- return f.isValidElement(t) && t.type === Er;
1790
+ gt.displayName = "SlotClone";
1791
+ var Er = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e });
1792
+ function Pr(e) {
1793
+ return f.isValidElement(e) && e.type === Er;
1794
1794
  }
1795
- function Ar(t, e) {
1796
- const s = x({}, e);
1797
- for (const r in e) {
1798
- const a = t[r], l = e[r];
1795
+ function kr(e, t) {
1796
+ const s = x({}, t);
1797
+ for (const r in t) {
1798
+ const a = e[r], l = t[r];
1799
1799
  /^on[A-Z]/.test(r) ? a && l ? s[r] = (...c) => {
1800
1800
  l(...c), a(...c);
1801
1801
  } : a && (s[r] = a) : r === "style" ? s[r] = x(x({}, a), l) : r === "className" && (s[r] = [a, l].filter(Boolean).join(" "));
1802
1802
  }
1803
- return x(x({}, t), s);
1803
+ return x(x({}, e), s);
1804
1804
  }
1805
- function kr(t) {
1806
- var e, s;
1807
- let r = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, a = r && "isReactWarning" in r && r.isReactWarning;
1808
- return a ? t.ref : (r = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, a = r && "isReactWarning" in r && r.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
1805
+ function Ar(e) {
1806
+ var t, s;
1807
+ let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, a = r && "isReactWarning" in r && r.isReactWarning;
1808
+ return a ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, a = r && "isReactWarning" in r && r.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
1809
1809
  }
1810
- var Nr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1811
- const r = `${t.charAt(0)}${e.charAt(0)}`;
1810
+ var Nr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1811
+ const r = `${e.charAt(0)}${t.charAt(0)}`;
1812
1812
  return /* @__PURE__ */ i.jsx(
1813
1813
  "span",
1814
1814
  {
1815
1815
  className: `avatar avatar--${s}`,
1816
- "aria-label": `${t} ${e}`,
1816
+ "aria-label": `${e} ${t}`,
1817
1817
  role: "img",
1818
1818
  children: /* @__PURE__ */ i.jsx("span", { className: "avatar__initials", children: r })
1819
1819
  }
1820
1820
  );
1821
- }, Zt = f.forwardRef(
1822
- (t, e) => {
1823
- var s = t, {
1821
+ }, Ze = f.forwardRef(
1822
+ (e, t) => {
1823
+ var s = e, {
1824
1824
  iconLeft: r,
1825
1825
  iconRight: a,
1826
1826
  isPending: l = !1,
@@ -1840,8 +1840,8 @@ var Nr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1840
1840
  const u = !!r || !!a;
1841
1841
  return /* @__PURE__ */ i.jsxs(
1842
1842
  "button",
1843
- A(x({
1844
- ref: e
1843
+ k(x({
1844
+ ref: t
1845
1845
  }, h), {
1846
1846
  className: O(
1847
1847
  "button",
@@ -1860,17 +1860,17 @@ var Nr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1860
1860
  );
1861
1861
  }
1862
1862
  );
1863
- Zt.displayName = "Button";
1863
+ Ze.displayName = "Button";
1864
1864
  f.createContext(void 0);
1865
1865
  var Mr = f.forwardRef(
1866
- (t, e) => {
1867
- var s = t, { prefix: r, suffix: a, className: l } = s, o = F(s, ["prefix", "suffix", "className"]);
1866
+ (e, t) => {
1867
+ var s = e, { prefix: r, suffix: a, className: l } = s, o = F(s, ["prefix", "suffix", "className"]);
1868
1868
  return /* @__PURE__ */ i.jsxs("div", { className: "input__wrapper", children: [
1869
1869
  r && /* @__PURE__ */ i.jsx("span", { className: "input__prefix", children: r }),
1870
1870
  /* @__PURE__ */ i.jsx(
1871
1871
  "input",
1872
1872
  x({
1873
- ref: e,
1873
+ ref: t,
1874
1874
  className: O(
1875
1875
  "input",
1876
1876
  r && "input--with-prefix",
@@ -1885,18 +1885,18 @@ var Mr = f.forwardRef(
1885
1885
  );
1886
1886
  Mr.displayName = "TextField";
1887
1887
  f.createContext(void 0);
1888
- var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: t }), Rr = (t) => {
1889
- var e = t, { children: s, className: r } = e, a = F(e, ["children", "className"]);
1890
- return /* @__PURE__ */ i.jsx("div", A(x({ className: O("card__body", r) }, a), { children: s }));
1891
- }, Lr = (t) => /* @__PURE__ */ i.jsx(
1888
+ var Or = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: e }), Rr = (e) => {
1889
+ var t = e, { children: s, className: r } = t, a = F(t, ["children", "className"]);
1890
+ return /* @__PURE__ */ i.jsx("div", k(x({ className: O("card__body", r) }, a), { children: s }));
1891
+ }, Lr = (e) => /* @__PURE__ */ i.jsx(
1892
1892
  "svg",
1893
- A(x({
1893
+ k(x({
1894
1894
  width: "24",
1895
1895
  height: "24",
1896
1896
  viewBox: "0 0 24 24",
1897
1897
  fill: "none",
1898
1898
  xmlns: "http://www.w3.org/2000/svg"
1899
- }, t), {
1899
+ }, e), {
1900
1900
  children: /* @__PURE__ */ i.jsx(
1901
1901
  "path",
1902
1902
  {
@@ -1908,15 +1908,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1908
1908
  }
1909
1909
  )
1910
1910
  })
1911
- ), _e = Lr, Fr = (t) => /* @__PURE__ */ i.jsx(
1911
+ ), _t = Lr, Fr = (e) => /* @__PURE__ */ i.jsx(
1912
1912
  "svg",
1913
- A(x({
1913
+ k(x({
1914
1914
  width: "24",
1915
1915
  height: "24",
1916
1916
  viewBox: "0 0 24 24",
1917
1917
  fill: "none",
1918
1918
  xmlns: "http://www.w3.org/2000/svg"
1919
- }, t), {
1919
+ }, e), {
1920
1920
  children: /* @__PURE__ */ i.jsx(
1921
1921
  "path",
1922
1922
  {
@@ -1928,15 +1928,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1928
1928
  }
1929
1929
  )
1930
1930
  })
1931
- ), Dr = Fr, Tr = (t) => /* @__PURE__ */ i.jsx(
1931
+ ), Dr = Fr, Tr = (e) => /* @__PURE__ */ i.jsx(
1932
1932
  "svg",
1933
- A(x({
1933
+ k(x({
1934
1934
  width: "24",
1935
1935
  height: "24",
1936
1936
  viewBox: "0 0 24 24",
1937
1937
  fill: "none",
1938
1938
  xmlns: "http://www.w3.org/2000/svg"
1939
- }, t), {
1939
+ }, e), {
1940
1940
  children: /* @__PURE__ */ i.jsx(
1941
1941
  "path",
1942
1942
  {
@@ -1947,15 +1947,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1947
1947
  }
1948
1948
  )
1949
1949
  })
1950
- ), Ur = Tr, Qr = (t) => /* @__PURE__ */ i.jsx(
1950
+ ), Ur = Tr, Qr = (e) => /* @__PURE__ */ i.jsx(
1951
1951
  "svg",
1952
- A(x({
1952
+ k(x({
1953
1953
  width: "24",
1954
1954
  height: "24",
1955
1955
  viewBox: "0 0 24 24",
1956
1956
  fill: "none",
1957
1957
  xmlns: "http://www.w3.org/2000/svg"
1958
- }, t), {
1958
+ }, e), {
1959
1959
  children: /* @__PURE__ */ i.jsx(
1960
1960
  "path",
1961
1961
  {
@@ -1966,15 +1966,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1966
1966
  }
1967
1967
  )
1968
1968
  })
1969
- ), Hr = Qr, Kr = (t) => /* @__PURE__ */ i.jsx(
1969
+ ), Hr = Qr, Kr = (e) => /* @__PURE__ */ i.jsx(
1970
1970
  "svg",
1971
- A(x({
1971
+ k(x({
1972
1972
  width: "24",
1973
1973
  height: "24",
1974
1974
  viewBox: "0 0 24 24",
1975
1975
  fill: "none",
1976
1976
  xmlns: "http://www.w3.org/2000/svg"
1977
- }, t), {
1977
+ }, e), {
1978
1978
  children: /* @__PURE__ */ i.jsx(
1979
1979
  "path",
1980
1980
  {
@@ -1985,15 +1985,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1985
1985
  }
1986
1986
  )
1987
1987
  })
1988
- ), Gr = Kr, qr = (t) => /* @__PURE__ */ i.jsxs(
1988
+ ), Gr = Kr, qr = (e) => /* @__PURE__ */ i.jsxs(
1989
1989
  "svg",
1990
- A(x({
1990
+ k(x({
1991
1991
  width: "24",
1992
1992
  height: "24",
1993
1993
  fill: "none",
1994
1994
  viewBox: "0 0 24 24",
1995
1995
  xmlns: "http://www.w3.org/2000/svg"
1996
- }, t), {
1996
+ }, e), {
1997
1997
  children: [
1998
1998
  /* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_19_444)", children: [
1999
1999
  /* @__PURE__ */ i.jsx(
@@ -2022,15 +2022,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2022
2022
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2023
2023
  ]
2024
2024
  })
2025
- ), Wr = qr, Vr = (t) => /* @__PURE__ */ i.jsxs(
2025
+ ), Wr = qr, Vr = (e) => /* @__PURE__ */ i.jsxs(
2026
2026
  "svg",
2027
- A(x({
2027
+ k(x({
2028
2028
  width: "24",
2029
2029
  height: "24",
2030
2030
  viewBox: "0 0 24 24",
2031
2031
  fill: "none",
2032
2032
  xmlns: "http://www.w3.org/2000/svg"
2033
- }, t), {
2033
+ }, e), {
2034
2034
  children: [
2035
2035
  /* @__PURE__ */ i.jsx(
2036
2036
  "path",
@@ -2054,15 +2054,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2054
2054
  )
2055
2055
  ]
2056
2056
  })
2057
- ), $r = Vr, Zr = (t) => /* @__PURE__ */ i.jsxs(
2057
+ ), $r = Vr, Zr = (e) => /* @__PURE__ */ i.jsxs(
2058
2058
  "svg",
2059
- A(x({
2059
+ k(x({
2060
2060
  width: "24",
2061
2061
  height: "24",
2062
2062
  viewBox: "0 0 24 24",
2063
2063
  fill: "none",
2064
2064
  xmlns: "http://www.w3.org/2000/svg"
2065
- }, t), {
2065
+ }, e), {
2066
2066
  children: [
2067
2067
  /* @__PURE__ */ i.jsx(
2068
2068
  "path",
@@ -2106,11 +2106,11 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2106
2106
  )
2107
2107
  ]
2108
2108
  })
2109
- ), Yr = Zr, zr = (t) => {
2110
- var e = t, { className: s } = e, r = F(e, ["className"]);
2109
+ ), Yr = Zr, zr = (e) => {
2110
+ var t = e, { className: s } = t, r = F(t, ["className"]);
2111
2111
  return /* @__PURE__ */ i.jsxs(
2112
2112
  "svg",
2113
- A(x({
2113
+ k(x({
2114
2114
  width: "20",
2115
2115
  height: "20",
2116
2116
  viewBox: "0 0 20 20",
@@ -2135,15 +2135,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2135
2135
  ]
2136
2136
  })
2137
2137
  );
2138
- }, Jr = zr, Xr = (t) => /* @__PURE__ */ i.jsxs(
2138
+ }, Jr = zr, Xr = (e) => /* @__PURE__ */ i.jsxs(
2139
2139
  "svg",
2140
- A(x({
2140
+ k(x({
2141
2141
  width: "24",
2142
2142
  height: "24",
2143
2143
  fill: "none",
2144
2144
  viewBox: "0 0 24 24",
2145
2145
  xmlns: "http://www.w3.org/2000/svg"
2146
- }, t), {
2146
+ }, e), {
2147
2147
  children: [
2148
2148
  /* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_762_2934)", children: [
2149
2149
  /* @__PURE__ */ i.jsx(
@@ -2169,23 +2169,23 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2169
2169
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2170
2170
  ]
2171
2171
  })
2172
- ), Ir = Xr, Br = (t) => {
2173
- const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
2172
+ ), Ir = Xr, Br = (e) => {
2173
+ const t = (s) => `${s}${e.suffix ? `_${e.suffix}` : ""}`;
2174
2174
  return /* @__PURE__ */ i.jsxs(
2175
2175
  "svg",
2176
- A(x({
2176
+ k(x({
2177
2177
  width: "24",
2178
2178
  height: "24",
2179
2179
  viewBox: "0 0 24 24",
2180
2180
  fill: "none",
2181
2181
  xmlns: "http://www.w3.org/2000/svg"
2182
- }, t), {
2182
+ }, e), {
2183
2183
  children: [
2184
2184
  /* @__PURE__ */ i.jsx(
2185
2185
  "path",
2186
2186
  {
2187
2187
  d: "M17.6214 11.1549C20.4161 8.33951 21.712 5.41047 20.6067 3.876C19.1586 1.85988 14.1278 2.98841 9.3766 6.39936C8.31103 7.15864 7.31229 8.00725 6.39122 8.93598L17.6214 11.1549Z",
2188
- fill: e("url(#paint0")
2188
+ fill: t("url(#paint0")
2189
2189
  }
2190
2190
  ),
2191
2191
  /* @__PURE__ */ i.jsx(
@@ -2193,14 +2193,14 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2193
2193
  {
2194
2194
  opacity: "0.9",
2195
2195
  d: "M17.6214 11.1548C17.1178 9.955 16.5189 8.79735 15.8301 7.693C12.6925 2.58286 8.41126 -0.498612 6.30132 0.794902C4.66377 1.79657 4.80319 5.119 6.39145 8.93562L17.6214 11.1548Z",
2196
- fill: e("url(#paint1")
2196
+ fill: t("url(#paint1")
2197
2197
  }
2198
2198
  ),
2199
2199
  /* @__PURE__ */ i.jsx(
2200
2200
  "path",
2201
2201
  {
2202
2202
  d: "M6.39122 8.93591C6.89474 10.1357 7.49373 11.2934 8.18245 12.3977C11.3329 17.5079 15.6006 20.5894 17.7229 19.2958C19.3616 18.2942 19.221 14.9718 17.6339 11.1549L6.39122 8.93591Z",
2203
- fill: e("url(#paint2")
2203
+ fill: t("url(#paint2")
2204
2204
  }
2205
2205
  ),
2206
2206
  /* @__PURE__ */ i.jsx(
@@ -2208,7 +2208,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2208
2208
  {
2209
2209
  opacity: "0.85",
2210
2210
  d: "M6.39113 8.93591C3.5836 11.7637 2.28796 14.6927 3.39319 16.2272C4.8413 18.2433 9.87186 17.1147 14.6224 13.7038C15.6888 12.9404 16.6916 12.0922 17.6213 11.1677L6.39113 8.93591Z",
2211
- fill: e("url(#paint3")
2211
+ fill: t("url(#paint3")
2212
2212
  }
2213
2213
  ),
2214
2214
  /* @__PURE__ */ i.jsx(
@@ -2216,21 +2216,21 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2216
2216
  {
2217
2217
  opacity: "0.87",
2218
2218
  d: "M6.39113 8.93591C3.5836 11.7509 2.28796 14.6801 3.39319 16.2272C4.8413 18.2433 9.87186 17.1147 14.6224 13.7038C15.6888 12.9404 16.6916 12.0922 17.6213 11.1677L6.39113 8.93591Z",
2219
- fill: e("url(#paint4")
2219
+ fill: t("url(#paint4")
2220
2220
  }
2221
2221
  ),
2222
2222
  /* @__PURE__ */ i.jsx(
2223
2223
  "path",
2224
2224
  {
2225
2225
  d: "M12.0064 23.2897C16.2652 23.2897 19.7177 22.9093 19.7177 22.4402C19.7177 21.971 16.2652 21.5907 12.0064 21.5907C7.74761 21.5907 4.29517 21.971 4.29517 22.4402C4.29517 22.9093 7.74761 23.2897 12.0064 23.2897Z",
2226
- fill: e("url(#paint5")
2226
+ fill: t("url(#paint5")
2227
2227
  }
2228
2228
  ),
2229
2229
  /* @__PURE__ */ i.jsxs("defs", { children: [
2230
2230
  /* @__PURE__ */ i.jsxs(
2231
2231
  "linearGradient",
2232
2232
  {
2233
- id: e("paint0"),
2233
+ id: t("paint0"),
2234
2234
  x1: "10.6862",
2235
2235
  y1: "11.0225",
2236
2236
  x2: "14.9751",
@@ -2250,7 +2250,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2250
2250
  /* @__PURE__ */ i.jsxs(
2251
2251
  "linearGradient",
2252
2252
  {
2253
- id: e("paint1"),
2253
+ id: t("paint1"),
2254
2254
  x1: "11.5281",
2255
2255
  y1: "8.85339",
2256
2256
  x2: "12.4519",
@@ -2267,7 +2267,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2267
2267
  /* @__PURE__ */ i.jsxs(
2268
2268
  "linearGradient",
2269
2269
  {
2270
- id: e("paint2"),
2270
+ id: t("paint2"),
2271
2271
  x1: "15.0651",
2272
2272
  y1: "18.7384",
2273
2273
  x2: "12.9747",
@@ -2287,7 +2287,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2287
2287
  /* @__PURE__ */ i.jsxs(
2288
2288
  "linearGradient",
2289
2289
  {
2290
- id: e("paint3"),
2290
+ id: t("paint3"),
2291
2291
  x1: "13.9806",
2292
2292
  y1: "8.29749",
2293
2293
  x2: "10.8203",
@@ -2304,7 +2304,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2304
2304
  /* @__PURE__ */ i.jsxs(
2305
2305
  "linearGradient",
2306
2306
  {
2307
- id: e("paint4"),
2307
+ id: t("paint4"),
2308
2308
  x1: "13.9806",
2309
2309
  y1: "8.2892",
2310
2310
  x2: "10.8212",
@@ -2321,7 +2321,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2321
2321
  /* @__PURE__ */ i.jsxs(
2322
2322
  "radialGradient",
2323
2323
  {
2324
- id: e("paint5"),
2324
+ id: t("paint5"),
2325
2325
  cx: "0",
2326
2326
  cy: "0",
2327
2327
  r: "1",
@@ -2340,15 +2340,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2340
2340
  ]
2341
2341
  })
2342
2342
  );
2343
- }, gs = Br, ti = (t) => /* @__PURE__ */ i.jsxs(
2343
+ }, gs = Br, ei = (e) => /* @__PURE__ */ i.jsxs(
2344
2344
  "svg",
2345
- A(x({
2345
+ k(x({
2346
2346
  fill: "none",
2347
2347
  xmlns: "http://www.w3.org/2000/svg",
2348
2348
  viewBox: "0 0 24 24",
2349
2349
  width: "24",
2350
2350
  height: "24"
2351
- }, t), {
2351
+ }, e), {
2352
2352
  children: [
2353
2353
  /* @__PURE__ */ i.jsx(
2354
2354
  "path",
@@ -2402,15 +2402,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2402
2402
  )
2403
2403
  ]
2404
2404
  })
2405
- ), ei = ti, si = (t) => /* @__PURE__ */ i.jsx(
2405
+ ), ti = ei, si = (e) => /* @__PURE__ */ i.jsx(
2406
2406
  "svg",
2407
- A(x({
2407
+ k(x({
2408
2408
  fill: "none",
2409
2409
  xmlns: "http://www.w3.org/2000/svg",
2410
2410
  viewBox: "0 0 21 16",
2411
2411
  width: "21",
2412
2412
  height: "16"
2413
- }, t), {
2413
+ }, e), {
2414
2414
  children: /* @__PURE__ */ i.jsx(
2415
2415
  "path",
2416
2416
  {
@@ -2422,15 +2422,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2422
2422
  }
2423
2423
  )
2424
2424
  })
2425
- ), ri = si, ii = (t) => /* @__PURE__ */ i.jsxs(
2425
+ ), ri = si, ii = (e) => /* @__PURE__ */ i.jsxs(
2426
2426
  "svg",
2427
- A(x({
2427
+ k(x({
2428
2428
  width: "24",
2429
2429
  height: "24",
2430
2430
  fill: "none",
2431
2431
  xmlns: "http://www.w3.org/2000/svg",
2432
2432
  viewBox: "0 0 24 24"
2433
- }, t), {
2433
+ }, e), {
2434
2434
  children: [
2435
2435
  /* @__PURE__ */ i.jsx(
2436
2436
  "path",
@@ -2449,15 +2449,15 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2449
2449
  /* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2450
2450
  ]
2451
2451
  })
2452
- ), ni = ii, ai = (t) => {
2453
- var e = t, {
2452
+ ), ni = ii, ai = (e) => {
2453
+ var t = e, {
2454
2454
  variant: s,
2455
2455
  icon: r,
2456
2456
  isStandalone: a,
2457
2457
  title: l,
2458
2458
  description: o,
2459
2459
  className: c
2460
- } = e, v = F(e, [
2460
+ } = t, v = F(t, [
2461
2461
  "variant",
2462
2462
  "icon",
2463
2463
  "isStandalone",
@@ -2467,7 +2467,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2467
2467
  ]);
2468
2468
  return /* @__PURE__ */ i.jsx(
2469
2469
  "div",
2470
- A(x({}, v), {
2470
+ k(x({}, v), {
2471
2471
  className: O(
2472
2472
  "card__empty-state",
2473
2473
  s === "error" && "card__empty-state--error",
@@ -2483,13 +2483,13 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2483
2483
  ] })
2484
2484
  })
2485
2485
  );
2486
- }, oi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: t }), li = (t) => {
2487
- var e = t, {
2486
+ }, oi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: e }), li = (e) => {
2487
+ var t = e, {
2488
2488
  variant: s = "default",
2489
2489
  sticky: r,
2490
2490
  className: a,
2491
2491
  children: l
2492
- } = e, o = F(e, [
2492
+ } = t, o = F(t, [
2493
2493
  "variant",
2494
2494
  "sticky",
2495
2495
  "className",
@@ -2497,7 +2497,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2497
2497
  ]);
2498
2498
  return /* @__PURE__ */ i.jsx(
2499
2499
  "div",
2500
- A(x({}, o), {
2500
+ k(x({}, o), {
2501
2501
  className: O(
2502
2502
  "card__header",
2503
2503
  s && `card__header--${s}`,
@@ -2507,12 +2507,12 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2507
2507
  children: l
2508
2508
  })
2509
2509
  );
2510
- }, ci = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: t }), ui = ({ children: t, className: e }) => /* @__PURE__ */ i.jsx("div", { className: O("card__body__item", e), children: t }), hi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: t }), di = ({ icon: t, children: e }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2511
- t && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: t }),
2512
- e
2510
+ }, ci = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: e }), ui = ({ children: e, className: t }) => /* @__PURE__ */ i.jsx("div", { className: O("card__body__item", t), children: e }), hi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: e }), di = ({ icon: e, children: t }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2511
+ e && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: e }),
2512
+ t
2513
2513
  ] }), ys = f.forwardRef(
2514
- (t, e) => {
2515
- var s = t, { type: r, children: a, className: l, variant: o = "default", disabled: c = !1 } = s, v = F(s, ["type", "children", "className", "variant", "disabled"]);
2514
+ (e, t) => {
2515
+ var s = e, { type: r, children: a, className: l, variant: o = "default", disabled: c = !1 } = s, v = F(s, ["type", "children", "className", "variant", "disabled"]);
2516
2516
  return f.createElement(
2517
2517
  r,
2518
2518
  x({
@@ -2522,7 +2522,7 @@ var Or = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2522
2522
  o && `card--${o}`,
2523
2523
  l
2524
2524
  ),
2525
- ref: e
2525
+ ref: t
2526
2526
  }, v),
2527
2527
  a
2528
2528
  );
@@ -2540,23 +2540,23 @@ Object.assign(ys, {
2540
2540
  Footer: oi,
2541
2541
  EmptyState: ai
2542
2542
  });
2543
- var fi = (t) => {
2544
- var e = t, { className: s, children: r } = e, a = F(e, ["className", "children"]);
2545
- return /* @__PURE__ */ i.jsx("div", A(x({ className: O("checkbox__content", s) }, a), { children: r }));
2546
- }, pi = (t) => {
2547
- var e = t, { className: s, children: r } = e, a = F(e, ["className", "children"]);
2548
- return /* @__PURE__ */ i.jsx("span", A(x({ className: O("checkbox__hint", s) }, a), { children: r }));
2549
- }, Cs = f.createContext(void 0), mi = ({ id: t, name: e, children: s }) => /* @__PURE__ */ i.jsx(Cs.Provider, { value: { id: t, name: e }, children: s }), vi = () => {
2550
- const t = f.useContext(Cs);
2551
- if (!t)
2543
+ var fi = (e) => {
2544
+ var t = e, { className: s, children: r } = t, a = F(t, ["className", "children"]);
2545
+ return /* @__PURE__ */ i.jsx("div", k(x({ className: O("checkbox__content", s) }, a), { children: r }));
2546
+ }, pi = (e) => {
2547
+ var t = e, { className: s, children: r } = t, a = F(t, ["className", "children"]);
2548
+ return /* @__PURE__ */ i.jsx("span", k(x({ className: O("checkbox__hint", s) }, a), { children: r }));
2549
+ }, Cs = f.createContext(void 0), mi = ({ id: e, name: t, children: s }) => /* @__PURE__ */ i.jsx(Cs.Provider, { value: { id: e, name: t }, children: s }), vi = () => {
2550
+ const e = f.useContext(Cs);
2551
+ if (!e)
2552
2552
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2553
- return t;
2554
- }, gi = (t) => {
2555
- var e = t, { className: s, children: r } = e, a = F(e, ["className", "children"]);
2553
+ return e;
2554
+ }, gi = (e) => {
2555
+ var t = e, { className: s, children: r } = t, a = F(t, ["className", "children"]);
2556
2556
  const { id: l } = vi();
2557
- return /* @__PURE__ */ i.jsx("label", A(x({ htmlFor: l, className: O("checkbox__label", s) }, a), { children: r }));
2558
- }, wt = (t) => {
2559
- var e = t, {
2557
+ return /* @__PURE__ */ i.jsx("label", k(x({ htmlFor: l, className: O("checkbox__label", s) }, a), { children: r }));
2558
+ }, we = (e) => {
2559
+ var t = e, {
2560
2560
  id: s,
2561
2561
  name: r,
2562
2562
  isPending: a = !1,
@@ -2565,7 +2565,7 @@ var fi = (t) => {
2565
2565
  single: c,
2566
2566
  className: v,
2567
2567
  children: g
2568
- } = e, h = F(e, [
2568
+ } = t, h = F(t, [
2569
2569
  "id",
2570
2570
  "name",
2571
2571
  "isPending",
@@ -2600,16 +2600,16 @@ var fi = (t) => {
2600
2600
  }
2601
2601
  );
2602
2602
  };
2603
- wt.Content = fi;
2604
- wt.Label = gi;
2605
- wt.Hint = pi;
2606
- wt.Error = Error;
2607
- var yi = (t) => {
2608
- var e = t, { type: s = "div", className: r, children: a } = e, l = F(e, ["type", "className", "children"]);
2603
+ we.Content = fi;
2604
+ we.Label = gi;
2605
+ we.Hint = pi;
2606
+ we.Error = Error;
2607
+ var yi = (e) => {
2608
+ var t = e, { type: s = "div", className: r, children: a } = t, l = F(t, ["type", "className", "children"]);
2609
2609
  return f.createElement(s, x({ className: O("dialog__body", r) }, l), a);
2610
- }, ye = () => document.body.style.removeProperty("overflow"), De = (t) => t.preventDefault(), Ci = 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])', xi = (t) => {
2611
- var e = t, { className: s, children: r, shouldAnimate: a = !0 } = e, l = F(e, ["className", "children", "shouldAnimate"]);
2612
- const { ref: o, defaultOpen: c, isModal: v, onClose: g } = Yt();
2610
+ }, yt = () => document.body.style.removeProperty("overflow"), Dt = (e) => e.preventDefault(), Ci = 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])', xi = (e) => {
2611
+ var t = e, { className: s, children: r, shouldAnimate: a = !0 } = t, l = F(t, ["className", "children", "shouldAnimate"]);
2612
+ const { ref: o, defaultOpen: c, isModal: v, onClose: g } = Ye();
2613
2613
  return f.useEffect(() => {
2614
2614
  const h = o == null ? void 0 : o.current;
2615
2615
  if (h != null && h.open) {
@@ -2618,8 +2618,8 @@ var yi = (t) => {
2618
2618
  return;
2619
2619
  P.shiftKey ? document.activeElement === d && (m.focus(), P.preventDefault()) : document.activeElement === m && (d.focus(), P.preventDefault());
2620
2620
  };
2621
- return document.body.style.overflow = "hidden", h.addEventListener("keydown", S), window.addEventListener("popstate", () => ye()), () => {
2622
- h.removeEventListener("keydown", S), window.removeEventListener("popstate", () => ye());
2621
+ return document.body.style.overflow = "hidden", h.addEventListener("keydown", S), window.addEventListener("popstate", () => yt()), () => {
2622
+ h.removeEventListener("keydown", S), window.removeEventListener("popstate", () => yt());
2623
2623
  };
2624
2624
  }
2625
2625
  }, [o]), f.useEffect(() => {
@@ -2627,9 +2627,9 @@ var yi = (t) => {
2627
2627
  if (!h)
2628
2628
  return;
2629
2629
  if (c && (h.removeAttribute("open"), h.showModal(), h.focus()), v)
2630
- return h.addEventListener("cancel", De), () => h.removeEventListener("cancel", De);
2630
+ return h.addEventListener("cancel", Dt), () => h.removeEventListener("cancel", Dt);
2631
2631
  const u = ({ clientX: d, clientY: m }) => {
2632
- const { top: S, right: P, bottom: k, left: C } = h.getBoundingClientRect(), w = 0 < m && 0 < d, j = S < m && m < k, M = C < d && d < P;
2632
+ const { top: S, right: P, bottom: A, left: C } = h.getBoundingClientRect(), w = 0 < m && 0 < d, j = S < m && m < A, M = C < d && d < P;
2633
2633
  w && !(j && M) && g();
2634
2634
  };
2635
2635
  return h.addEventListener("cancel", g), h.addEventListener("mousedown", u), () => {
@@ -2637,7 +2637,7 @@ var yi = (t) => {
2637
2637
  };
2638
2638
  }, [o, v, g, c]), /* @__PURE__ */ i.jsx(
2639
2639
  "dialog",
2640
- A(x({
2640
+ k(x({
2641
2641
  ref: o,
2642
2642
  open: c,
2643
2643
  "aria-modal": !!v,
@@ -2647,29 +2647,29 @@ var yi = (t) => {
2647
2647
  children: r
2648
2648
  })
2649
2649
  );
2650
- }, xs = f.createContext(void 0), bi = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
2651
- const a = f.useRef(null), l = f.useRef(e), o = f.useCallback(() => {
2650
+ }, xs = f.createContext(void 0), bi = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2651
+ const a = f.useRef(null), l = f.useRef(t), o = f.useCallback(() => {
2652
2652
  var c;
2653
- ye(), (c = a.current) == null || c.close(), l.current && (l == null || l.current());
2653
+ yt(), (c = a.current) == null || c.close(), l.current && (l == null || l.current());
2654
2654
  }, [a]);
2655
- return /* @__PURE__ */ i.jsx(xs.Provider, { value: { ref: a, defaultOpen: t, isModal: s, onClose: o }, children: r });
2656
- }, Yt = () => {
2657
- const t = f.useContext(xs);
2658
- if (!t)
2655
+ return /* @__PURE__ */ i.jsx(xs.Provider, { value: { ref: a, defaultOpen: e, isModal: s, onClose: o }, children: r });
2656
+ }, Ye = () => {
2657
+ const e = f.useContext(xs);
2658
+ if (!e)
2659
2659
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2660
- return t;
2661
- }, wi = (t) => {
2662
- var e = t, { children: s } = e, r = F(e, ["children"]);
2663
- const { onClose: a } = Yt();
2664
- return /* @__PURE__ */ i.jsx(Zt, A(x({ onClick: a }, r), { children: s }));
2665
- }, bs = f.forwardRef((t, e) => {
2666
- var s = t, { className: r } = s, a = F(s, ["className"]);
2667
- const { onClose: l } = Yt();
2660
+ return e;
2661
+ }, wi = (e) => {
2662
+ var t = e, { children: s } = t, r = F(t, ["children"]);
2663
+ const { onClose: a } = Ye();
2664
+ return /* @__PURE__ */ i.jsx(Ze, k(x({ onClick: a }, r), { children: s }));
2665
+ }, bs = f.forwardRef((e, t) => {
2666
+ var s = e, { className: r } = s, a = F(s, ["className"]);
2667
+ const { onClose: l } = Ye();
2668
2668
  return /* @__PURE__ */ i.jsx(
2669
- Zt,
2669
+ Ze,
2670
2670
  x({
2671
2671
  type: "submit",
2672
- ref: e,
2672
+ ref: t,
2673
2673
  formMethod: "dialog",
2674
2674
  onClick: l,
2675
2675
  iconLeft: /* @__PURE__ */ i.jsx(Ur, {}),
@@ -2679,17 +2679,17 @@ var yi = (t) => {
2679
2679
  );
2680
2680
  });
2681
2681
  bs.displayName = "Close";
2682
- var ji = (t) => {
2683
- var e = t, { className: s, children: r } = e, a = F(e, ["className", "children"]);
2684
- return /* @__PURE__ */ i.jsx("div", A(x({ className: O("dialog__footer", s) }, a), { children: r }));
2685
- }, _i = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: t }), Si = (t) => {
2686
- var e = t, { icon: s, children: r, className: a } = e, l = F(e, ["icon", "children", "className"]);
2687
- const { ref: o } = Yt(), c = f.useRef(null);
2682
+ var ji = (e) => {
2683
+ var t = e, { className: s, children: r } = t, a = F(t, ["className", "children"]);
2684
+ return /* @__PURE__ */ i.jsx("div", k(x({ className: O("dialog__footer", s) }, a), { children: r }));
2685
+ }, _i = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), Si = (e) => {
2686
+ var t = e, { icon: s, children: r, className: a } = t, l = F(t, ["icon", "children", "className"]);
2687
+ const { ref: o } = Ye(), c = f.useRef(null);
2688
2688
  return f.useEffect(() => {
2689
2689
  o != null && o.current && o.current.focus();
2690
2690
  }, [o]), /* @__PURE__ */ i.jsxs(
2691
2691
  "div",
2692
- A(x({
2692
+ k(x({
2693
2693
  tabIndex: 0,
2694
2694
  ref: c,
2695
2695
  id: "dialogTitle",
@@ -2701,14 +2701,14 @@ var ji = (t) => {
2701
2701
  ]
2702
2702
  })
2703
2703
  );
2704
- }, Ei = (t) => {
2705
- var e = t, { children: s } = e, r = F(e, ["children"]);
2706
- const { ref: a } = Yt();
2707
- return /* @__PURE__ */ i.jsx(Zt, A(x({ onClick: () => {
2704
+ }, Ei = (e) => {
2705
+ var t = e, { children: s } = t, r = F(t, ["children"]);
2706
+ const { ref: a } = Ye();
2707
+ return /* @__PURE__ */ i.jsx(Ze, k(x({ onClick: () => {
2708
2708
  var l;
2709
2709
  return (l = a == null ? void 0 : a.current) == null ? void 0 : l.showModal();
2710
2710
  } }, r), { children: s }));
2711
- }, G = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(bi, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
2711
+ }, G = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(bi, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2712
2712
  G.Trigger = Ei;
2713
2713
  G.Root = xi;
2714
2714
  G.Title = Si;
@@ -2718,8 +2718,8 @@ G.Footer = ji;
2718
2718
  G.Button = wi;
2719
2719
  G.Close = bs;
2720
2720
  var ws = f.createContext(void 0), Pi = ({
2721
- id: t,
2722
- position: e,
2721
+ id: e,
2722
+ position: t,
2723
2723
  isOpen: s,
2724
2724
  setIsOpen: r,
2725
2725
  activeItemIndex: a,
@@ -2732,8 +2732,8 @@ var ws = f.createContext(void 0), Pi = ({
2732
2732
  ws.Provider,
2733
2733
  {
2734
2734
  value: {
2735
- id: t,
2736
- position: e,
2735
+ id: e,
2736
+ position: t,
2737
2737
  isOpen: s,
2738
2738
  setIsOpen: r,
2739
2739
  activeItemIndex: a,
@@ -2745,11 +2745,11 @@ var ws = f.createContext(void 0), Pi = ({
2745
2745
  children: g
2746
2746
  }
2747
2747
  ), js = () => {
2748
- const t = f.useContext(ws);
2749
- if (t === void 0)
2748
+ const e = f.useContext(ws);
2749
+ if (e === void 0)
2750
2750
  throw new Error("useMenu must be used within a MenuProvider");
2751
- return t;
2752
- }, Ai = ({ as: t, children: e }) => {
2751
+ return e;
2752
+ }, ki = ({ as: e, children: t }) => {
2753
2753
  const {
2754
2754
  id: s,
2755
2755
  position: r,
@@ -2773,8 +2773,8 @@ var ws = f.createContext(void 0), Pi = ({
2773
2773
  return d.preventDefault(), c(o ? Math.max(0, o - 1) : 0);
2774
2774
  if (!S && o !== P) {
2775
2775
  d.preventDefault();
2776
- const k = o !== void 0 ? o + 1 : 0;
2777
- return c(Math.min(P, k));
2776
+ const A = o !== void 0 ? o + 1 : 0;
2777
+ return c(Math.min(P, A));
2778
2778
  }
2779
2779
  break;
2780
2780
  }
@@ -2784,8 +2784,8 @@ var ws = f.createContext(void 0), Pi = ({
2784
2784
  case "ArrowDown":
2785
2785
  case "ArrowRight": {
2786
2786
  d.preventDefault();
2787
- const k = o !== void 0 ? o + 1 : 0;
2788
- return c(Math.min(P, k));
2787
+ const A = o !== void 0 ? o + 1 : 0;
2788
+ return c(Math.min(P, A));
2789
2789
  }
2790
2790
  case "Home":
2791
2791
  return d.preventDefault(), c(0);
@@ -2793,15 +2793,15 @@ var ws = f.createContext(void 0), Pi = ({
2793
2793
  return d.preventDefault(), c(P);
2794
2794
  }
2795
2795
  };
2796
- return t ? f.createElement(
2797
- t,
2796
+ return e ? f.createElement(
2797
+ e,
2798
2798
  {
2799
2799
  id: `${s}-content`,
2800
2800
  ref: h,
2801
2801
  className: O("menu__list", `menu__list--${r}`, a && "menu__list--active"),
2802
2802
  onKeyDown: u
2803
2803
  },
2804
- e
2804
+ t
2805
2805
  ) : (
2806
2806
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
2807
2807
  /* @__PURE__ */ i.jsx(
@@ -2811,14 +2811,14 @@ var ws = f.createContext(void 0), Pi = ({
2811
2811
  ref: h,
2812
2812
  className: O("menu__list", `menu__list--${r}`, a && "menu__list--active"),
2813
2813
  onKeyDown: u,
2814
- children: e
2814
+ children: t
2815
2815
  }
2816
2816
  )
2817
2817
  );
2818
- }, ki = (t) => {
2819
- var e = t, { children: s, className: r } = e, a = F(e, ["children", "className"]);
2820
- return /* @__PURE__ */ i.jsx("li", A(x({}, a), { className: O("menu__list-item", r), children: s }));
2821
- }, _s = ({ children: t, className: e }) => {
2818
+ }, Ai = (e) => {
2819
+ var t = e, { children: s, className: r } = t, a = F(t, ["children", "className"]);
2820
+ return /* @__PURE__ */ i.jsx("li", k(x({}, a), { className: O("menu__list-item", r), children: s }));
2821
+ }, _s = ({ children: e, className: t }) => {
2822
2822
  const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: l, setActiveItemIndex: o, triggerRef: c } = js(), v = () => {
2823
2823
  l(), a((h) => !h), r || o(0);
2824
2824
  }, g = (h) => {
@@ -2828,10 +2828,10 @@ var ws = f.createContext(void 0), Pi = ({
2828
2828
  h.key === "ArrowDown" && (h.preventDefault(), o(0));
2829
2829
  }
2830
2830
  };
2831
- return f.cloneElement(t, {
2831
+ return f.cloneElement(e, {
2832
2832
  id: `${s}-trigger`,
2833
2833
  ref: c,
2834
- className: O("menu__trigger", e),
2834
+ className: O("menu__trigger", t),
2835
2835
  onClick: v,
2836
2836
  onKeyDown: g,
2837
2837
  "aria-expanded": r,
@@ -2839,12 +2839,12 @@ var ws = f.createContext(void 0), Pi = ({
2839
2839
  });
2840
2840
  };
2841
2841
  _s.displayName = "Trigger";
2842
- var Ss = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], W = (t) => {
2843
- var e = t, { type: s, id: r, position: a = "bottom-end", children: l, className: o } = e, c = F(e, ["type", "id", "position", "children", "className"]);
2844
- const v = f.useRef(null), g = f.useRef(null), h = f.useRef(null), [u, d] = f.useState(!1), [m, S] = f.useState(), [P, k] = f.useState(m);
2845
- m !== P && m !== void 0 && h.current && (Ss(h.current)[m].firstChild.focus(), k(m));
2842
+ var Ss = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], W = (e) => {
2843
+ var t = e, { type: s, id: r, position: a = "bottom-end", children: l, className: o } = t, c = F(t, ["type", "id", "position", "children", "className"]);
2844
+ const v = f.useRef(null), g = f.useRef(null), h = f.useRef(null), [u, d] = f.useState(!1), [m, S] = f.useState(), [P, A] = f.useState(m);
2845
+ m !== P && m !== void 0 && h.current && (Ss(h.current)[m].firstChild.focus(), A(m));
2846
2846
  const C = () => {
2847
- S(void 0), k(void 0);
2847
+ S(void 0), A(void 0);
2848
2848
  }, w = (j) => {
2849
2849
  var M;
2850
2850
  ((M = v.current) == null ? void 0 : M.contains(j.relatedTarget)) || (C(), d(!1));
@@ -2863,7 +2863,7 @@ var Ss = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsBy
2863
2863
  contentRef: h,
2864
2864
  children: f.createElement(
2865
2865
  s,
2866
- A(x({}, c), {
2866
+ k(x({}, c), {
2867
2867
  id: r,
2868
2868
  ref: v,
2869
2869
  className: `menu ${o || ""}`,
@@ -2875,122 +2875,122 @@ var Ss = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsBy
2875
2875
  );
2876
2876
  };
2877
2877
  W.Trigger = _s;
2878
- W.Content = Ai;
2879
- W.Item = ki;
2878
+ W.Content = ki;
2879
+ W.Item = Ai;
2880
2880
  f.createContext(void 0);
2881
2881
  var Ni = (/* @__PURE__ */ new Map()).set("BE", "32").set("FR", "33").set("NL", "31").set("LU", "352").set("DE", "49").set("CA", "1").set("PR", "1").set("TC", "1").set("US", "1").set("BS", "1242").set("BB", "1246").set("AI", "1264").set("AG", "1268").set("KY", "1345").set("BM", "1441").set("GD", "1473").set("MS", "1664").set("GU", "1671").set("LC", "1758").set("DM", "1767").set("VC", "1784").set("DO", "1809").set("TT", "1868").set("KN", "1869").set("JM", "1876").set("EG", "20").set("SS", "211").set("MA", "212").set("DZ", "213").set("TN", "216").set("LY", "218").set("GM", "220").set("SN", "221").set("MR", "222").set("ML", "223").set("GN", "224").set("CI", "225").set("BF", "226").set("NE", "227").set("TG", "228").set("BJ", "229").set("MU", "230").set("LR", "231").set("SL", "232").set("GH", "233").set("NG", "234").set("TD", "235").set("CF", "236").set("CM", "237").set("CV", "238").set("ST", "239").set("GQ", "240").set("GA", "241").set("CG", "242").set("CD", "243").set("AO", "244").set("GW", "245").set("SC", "248").set("SD", "249").set("RW", "250").set("ET", "251").set("SO", "252").set("DJ", "253").set("KE", "254").set("TZ", "255").set("UG", "256").set("BI", "257").set("MZ", "258").set("ZM", "260").set("MG", "261").set("RE", "262").set("ZW", "263").set("NA", "264").set("MW", "265").set("LS", "266").set("BW", "267").set("SZ", "268").set("KM", "269").set("ZA", "27").set("VG", "284").set("ER", "291").set("AW", "297").set("FO", "298").set("GL", "299").set("GR", "30").set("ES", "34").set("GI", "350").set("PT", "351").set("IE", "353").set("IS", "354").set("AL", "355").set("MT", "356").set("CY", "357").set("FI", "358").set("BG", "359").set("HU", "36").set("LT", "370").set("LV", "371").set("EE", "372").set("MD", "373").set("AM", "374").set("BY", "375").set("AD", "376").set("MC", "377").set("SM", "378").set("UA", "380").set("RS", "381").set("ME", "382").set("HR", "385").set("SI", "386").set("BA", "387").set("MK", "389").set("IT", "39").set("RO", "40").set("CH", "41").set("CZ", "420").set("SK", "421").set("LI", "423").set("AT", "43").set("GB", "44").set("DK", "45").set("SE", "46").set("NO", "47").set("PL", "48").set("FK", "500").set("BZ", "501").set("GT", "502").set("SV", "503").set("HN", "504").set("NI", "505").set("CR", "506").set("PA", "507").set("PM", "508").set("HT", "509").set("PE", "51").set("MX", "52").set("CU", "53").set("AR", "54").set("BR", "55").set("CL", "56").set("CO", "57").set("VE", "58").set("GP", "590").set("BO", "591").set("GY", "592").set("EC", "593").set("FG", "594").set("PY", "595").set("MQ", "596").set("SR", "597").set("UY", "598").set("CW", "599").set("AN", "599").set("MY", "60").set("AU", "61").set("ID", "62").set("PH", "63").set("NZ", "64").set("SG", "65").set("TH", "66").set("TP", "670").set("BN", "673").set("PG", "675").set("TO", "676").set("SB", "677").set("VU", "678").set("FJ", "679").set("PW", "680").set("CK", "682").set("NU", "683").set("AS", "684").set("WS", "685").set("KI", "686").set("NC", "687").set("TV", "688").set("PF", "689").set("FM", "691").set("KZ", "7").set("RU", "7").set("JP", "81").set("KR", "82").set("VN", "84").set("KP", "850").set("HK", "852").set("MO", "853").set("KH", "855").set("LA", "856").set("CN", "86").set("BD", "880").set("TW", "886").set("TR", "90").set("IN", "91").set("PK", "92").set("AF", "93").set("LK", "94").set("MM", "95").set("MV", "960").set("LB", "961").set("JO", "962").set("SY", "963").set("IQ", "964").set("KW", "965").set("SA", "966").set("YE", "967").set("OM", "968").set("PS", "970").set("AE", "971").set("IL", "972").set("BH", "973").set("QA", "974").set("BT", "975").set("MN", "976").set("NP", "977").set("IR", "98").set("TK", "992").set("TM", "993").set("AZ", "994").set("GE", "995").set("KG", "996").set("UZ", "998");
2882
- [...new Set(Ni.values())].map((t) => ({
2883
- label: `+${t}`,
2884
- value: t
2882
+ [...new Set(Ni.values())].map((e) => ({
2883
+ label: `+${e}`,
2884
+ value: e
2885
2885
  }));
2886
2886
  f.createContext(void 0);
2887
2887
  f.createContext(void 0);
2888
- var ee = /* @__PURE__ */ ((t) => (t[t.categoriesVegetables = 0] = "categoriesVegetables", t[t.categoriesMeat = 1] = "categoriesMeat", t[t.categoriesFish = 2] = "categoriesFish", t[t.categoriesDairy = 3] = "categoriesDairy", t[t.categoriesBreakfast = 4] = "categoriesBreakfast", t[t.categoriesSnacks = 5] = "categoriesSnacks", t[t.categoriesCandy = 6] = "categoriesCandy", t[t.categoriesNonFood = 7] = "categoriesNonFood", t[t.categoriesDryFood = 8] = "categoriesDryFood", t[t.categoriesTins = 9] = "categoriesTins", t[t.categoriesGrid = 10] = "categoriesGrid", t[t.categoriesSoda = 11] = "categoriesSoda", t[t.categoriesBakery = 12] = "categoriesBakery", t[t.categoriesWine = 13] = "categoriesWine", t[t.categoriesBaby = 14] = "categoriesBaby", t[t.categoriesDiet = 15] = "categoriesDiet", t[t.categoriesHygiene = 16] = "categoriesHygiene", t[t.categoriesCleaning = 17] = "categoriesCleaning", t[t.categoriesPets = 18] = "categoriesPets", t[t.categoriesFreezer = 19] = "categoriesFreezer", t[t.categoriesBbq = 20] = "categoriesBbq", t[t.categoriesMealbox = 21] = "categoriesMealbox", t[t.categoriesBrik = 22] = "categoriesBrik", t[t.categoriesGranen = 23] = "categoriesGranen", t[t.categoriesConserve = 24] = "categoriesConserve", t[t.categoriesHome = 25] = "categoriesHome", t[t.categoriesEaster = 26] = "categoriesEaster", t[t.categoriesOnlinePromo = 27] = "categoriesOnlinePromo", t[t.categoriesSportFood = 28] = "categoriesSportFood", t[t.categoriesClothing = 29] = "categoriesClothing", t[t.categoriesEnergy = 30] = "categoriesEnergy", t[t.categoriesDeskAndTravel = 31] = "categoriesDeskAndTravel", t[t.categoriesCigarette = 32] = "categoriesCigarette", t[t.categoriesFood = 33] = "categoriesFood", t[t.categoriesChild = 34] = "categoriesChild", t[t.categoriesPuzzle = 35] = "categoriesPuzzle", t[t.categoriesToys = 36] = "categoriesToys", t[t.categoriesCar = 37] = "categoriesCar", t[t.categoriesPlaceholder = 38] = "categoriesPlaceholder", t[t.categoriesFuel = 39] = "categoriesFuel", t[t.categoriesCarAndBike = 40] = "categoriesCarAndBike", t[t.categoriesToyAndHobby = 41] = "categoriesToyAndHobby", t[t.categoriesMultimedia = 42] = "categoriesMultimedia", t[t.categoriesParty = 43] = "categoriesParty", t[t.toolsPay = 44] = "toolsPay", t[t.toolsReceipt = 45] = "toolsReceipt", t[t.toolsFuel = 46] = "toolsFuel", t[t.toolsStoreLocator = 47] = "toolsStoreLocator", t[t.toolsStats = 48] = "toolsStats", t[t.toolsShowXtraOld = 49] = "toolsShowXtraOld", t[t.toolsShowXtraNew = 50] = "toolsShowXtraNew", t[t.toolsScan2 = 51] = "toolsScan2", t[t.toolsRecipes2 = 52] = "toolsRecipes2", t[t.toolsWarranty = 53] = "toolsWarranty", t[t.toolsCoupons = 54] = "toolsCoupons", t[t.toolsFavoriteInactive = 55] = "toolsFavoriteInactive", t[t.toolsFavoriteActive = 56] = "toolsFavoriteActive", t[t.toolsAssortment = 57] = "toolsAssortment", t[t.toolsPromo = 58] = "toolsPromo", t[t.fuelCng = 59] = "fuelCng", t[t.fuelE5 = 60] = "fuelE5", t[t.fuelAdblue = 61] = "fuelAdblue", t[t.fuelB7 = 62] = "fuelB7", t[t.fuelH2 = 63] = "fuelH2", t[t.fuelE10 = 64] = "fuelE10", t[t.fuelFreeTireInflation = 65] = "fuelFreeTireInflation", t[t.functionalClose = 66] = "functionalClose", t[t.functionalBack = 67] = "functionalBack", t[t.functionalSearch = 68] = "functionalSearch", t[t.functionalEdit = 69] = "functionalEdit", t[t.functionalShare = 70] = "functionalShare", t[t.functionalLocation = 71] = "functionalLocation", t[t.functionalTrash = 72] = "functionalTrash", t[t.functionalCamera = 73] = "functionalCamera", t[t.functionalPhone = 74] = "functionalPhone", t[t.functionalPushNotifications = 75] = "functionalPushNotifications", t[t.functionalMail = 76] = "functionalMail", t[t.functionalGift = 77] = "functionalGift", t[t.functionalPresent = 78] = "functionalPresent", t[t.functionalLoading = 79] = "functionalLoading", t[t.functionalChevronRight = 80] = "functionalChevronRight", t[t.functionalCheck = 81] = "functionalCheck", t[t.functionalChevronDown = 82] = "functionalChevronDown", t[t.functionalChevronUp = 83] = "functionalChevronUp", t[t.functionalPlus = 84] = "functionalPlus", t[t.functionalReset = 85] = "functionalReset", t[t.functionalDownload = 86] = "functionalDownload", t[t.functionalExport = 87] = "functionalExport", t[t.functionalCustomerService = 88] = "functionalCustomerService", t[t.functionalTruck = 89] = "functionalTruck", t[t.functionalBox = 90] = "functionalBox", t[t.functionalEllipsis = 91] = "functionalEllipsis", t[t.functionalLocationHome = 92] = "functionalLocationHome", t[t.functionalLocationPickup = 93] = "functionalLocationPickup", t[t.functionalAccount = 94] = "functionalAccount", t[t.functionalPrivacy = 95] = "functionalPrivacy", t[t.functionalSettings = 96] = "functionalSettings", t[t.functionalUserInfo = 97] = "functionalUserInfo", t[t.functionalPinOutlines = 98] = "functionalPinOutlines", t[t.functionalCalendar = 99] = "functionalCalendar", t[t.functionalMinus = 100] = "functionalMinus", t[t.functionalLifestyle = 101] = "functionalLifestyle", t[t.functionalSms = 102] = "functionalSms", t[t.functionalSwitch = 103] = "functionalSwitch", t[t.functionalSorting = 104] = "functionalSorting", t[t.functionalWarningCircle = 105] = "functionalWarningCircle", t[t.functionalQuestionCircle = 106] = "functionalQuestionCircle", t[t.functionalErrorCircle = 107] = "functionalErrorCircle", t[t.functionalSuccessCircle = 108] = "functionalSuccessCircle", t[t.functionalMessage = 109] = "functionalMessage", t[t.functionalExternalLink = 110] = "functionalExternalLink", t[t.functionalAddToList = 111] = "functionalAddToList", t[t.functionalShoppingcart = 112] = "functionalShoppingcart", t[t.functionalFilter = 113] = "functionalFilter", t[t.functionalLocate = 114] = "functionalLocate", t[t.functionalBarcode = 115] = "functionalBarcode", t[t.functionalClock = 116] = "functionalClock", t[t.functionalHistory = 117] = "functionalHistory", t[t.functionalShops = 118] = "functionalShops", t[t.functionalAddUser = 119] = "functionalAddUser", t[t.functionalOther = 120] = "functionalOther", t[t.functionalInAppNotifications = 121] = "functionalInAppNotifications", t[t.functionalExit = 122] = "functionalExit", t[t.functionalShared = 123] = "functionalShared", t[t.functionalThumbsup = 124] = "functionalThumbsup", t[t.functionalDiscount = 125] = "functionalDiscount", t[t.functionalPercentage = 126] = "functionalPercentage", t[t.functionalList = 127] = "functionalList", t[t.functionalMapLocation = 128] = "functionalMapLocation", t[t.functionalNoConnection = 129] = "functionalNoConnection", t[t.functionalSwap = 130] = "functionalSwap", t[t.functionalPiece = 131] = "functionalPiece", t[t.functionalWeight = 132] = "functionalWeight", t[t.functionalPack = 133] = "functionalPack", t[t.functionalCommunications = 134] = "functionalCommunications", t[t.functionalDeliveryAddresses = 135] = "functionalDeliveryAddresses", t[t["functional18+"] = 136] = "functional18+", t[t.functionalReadtime = 137] = "functionalReadtime", t[t.functionalCopy = 138] = "functionalCopy", t[t.functionalMessageField = 139] = "functionalMessageField", t[t.functionalNext = 140] = "functionalNext", t[t.functionalSave = 141] = "functionalSave", t[t.functionalLogin = 142] = "functionalLogin", t[t.functionalLogout = 143] = "functionalLogout", t[t.functionalWebsite = 144] = "functionalWebsite", t[t.functionalMenu = 145] = "functionalMenu", t[t.functionalRegister = 146] = "functionalRegister", t[t.functionalNews = 147] = "functionalNews", t[t.functionalTimer = 148] = "functionalTimer", t[t.functionalEyeShow = 149] = "functionalEyeShow", t[t.functionalMobilePay = 150] = "functionalMobilePay", t[t.functionalConnectionCable = 151] = "functionalConnectionCable", t[t.functionalDryCleaning = 152] = "functionalDryCleaning", t[t.functionalKiosk = 153] = "functionalKiosk", t[t.functionalConnectedDevice = 154] = "functionalConnectedDevice", t[t.functionalCookies = 155] = "functionalCookies", t[t.functionalViewFile = 156] = "functionalViewFile", t[t.functionalLastAdded = 157] = "functionalLastAdded", t[t.functionalFirstAdded = 158] = "functionalFirstAdded", t[t.functionalStoreLayout = 159] = "functionalStoreLayout", t[t.functionalBlock = 160] = "functionalBlock", t[t.functionalChecklist = 161] = "functionalChecklist", t[t.functionalCartCheckout = 162] = "functionalCartCheckout", t[t.functionalCartEdit = 163] = "functionalCartEdit", t[t.functionalEyeHidden = 164] = "functionalEyeHidden", t[t.functionalWarningCircleFilled = 165] = "functionalWarningCircleFilled", t[t.functionalErrorCircleFilled = 166] = "functionalErrorCircleFilled", t[t.functionalSuccessCircleFilled = 167] = "functionalSuccessCircleFilled", t[t.functionalPlusCircle = 168] = "functionalPlusCircle", t[t.functionalSpinner = 169] = "functionalSpinner", t[t.functionalEcoEarth = 170] = "functionalEcoEarth", t[t.functionalAlphaBeta = 171] = "functionalAlphaBeta", t[t.functionalEuro = 172] = "functionalEuro", t[t.functionalNumber = 173] = "functionalNumber", t[t.functionalIdea = 174] = "functionalIdea", t[t.functionalMultifactorAuthenticator = 175] = "functionalMultifactorAuthenticator", t[t.functionalPassword = 176] = "functionalPassword", t[t.functionalDiscountCode = 177] = "functionalDiscountCode", t))(ee || {});
2888
+ var tt = /* @__PURE__ */ ((e) => (e[e.categoriesVegetables = 0] = "categoriesVegetables", e[e.categoriesMeat = 1] = "categoriesMeat", e[e.categoriesFish = 2] = "categoriesFish", e[e.categoriesDairy = 3] = "categoriesDairy", e[e.categoriesBreakfast = 4] = "categoriesBreakfast", e[e.categoriesSnacks = 5] = "categoriesSnacks", e[e.categoriesCandy = 6] = "categoriesCandy", e[e.categoriesNonFood = 7] = "categoriesNonFood", e[e.categoriesDryFood = 8] = "categoriesDryFood", e[e.categoriesTins = 9] = "categoriesTins", e[e.categoriesGrid = 10] = "categoriesGrid", e[e.categoriesSoda = 11] = "categoriesSoda", e[e.categoriesBakery = 12] = "categoriesBakery", e[e.categoriesWine = 13] = "categoriesWine", e[e.categoriesBaby = 14] = "categoriesBaby", e[e.categoriesDiet = 15] = "categoriesDiet", e[e.categoriesHygiene = 16] = "categoriesHygiene", e[e.categoriesCleaning = 17] = "categoriesCleaning", e[e.categoriesPets = 18] = "categoriesPets", e[e.categoriesFreezer = 19] = "categoriesFreezer", e[e.categoriesBbq = 20] = "categoriesBbq", e[e.categoriesMealbox = 21] = "categoriesMealbox", e[e.categoriesBrik = 22] = "categoriesBrik", e[e.categoriesGranen = 23] = "categoriesGranen", e[e.categoriesConserve = 24] = "categoriesConserve", e[e.categoriesHome = 25] = "categoriesHome", e[e.categoriesEaster = 26] = "categoriesEaster", e[e.categoriesOnlinePromo = 27] = "categoriesOnlinePromo", e[e.categoriesSportFood = 28] = "categoriesSportFood", e[e.categoriesClothing = 29] = "categoriesClothing", e[e.categoriesEnergy = 30] = "categoriesEnergy", e[e.categoriesDeskAndTravel = 31] = "categoriesDeskAndTravel", e[e.categoriesCigarette = 32] = "categoriesCigarette", e[e.categoriesFood = 33] = "categoriesFood", e[e.categoriesChild = 34] = "categoriesChild", e[e.categoriesPuzzle = 35] = "categoriesPuzzle", e[e.categoriesToys = 36] = "categoriesToys", e[e.categoriesCar = 37] = "categoriesCar", e[e.categoriesPlaceholder = 38] = "categoriesPlaceholder", e[e.categoriesFuel = 39] = "categoriesFuel", e[e.categoriesCarAndBike = 40] = "categoriesCarAndBike", e[e.categoriesToyAndHobby = 41] = "categoriesToyAndHobby", e[e.categoriesMultimedia = 42] = "categoriesMultimedia", e[e.categoriesParty = 43] = "categoriesParty", e[e.toolsPay = 44] = "toolsPay", e[e.toolsReceipt = 45] = "toolsReceipt", e[e.toolsFuel = 46] = "toolsFuel", e[e.toolsStoreLocator = 47] = "toolsStoreLocator", e[e.toolsStats = 48] = "toolsStats", e[e.toolsShowXtraOld = 49] = "toolsShowXtraOld", e[e.toolsShowXtraNew = 50] = "toolsShowXtraNew", e[e.toolsScan2 = 51] = "toolsScan2", e[e.toolsRecipes2 = 52] = "toolsRecipes2", e[e.toolsWarranty = 53] = "toolsWarranty", e[e.toolsCoupons = 54] = "toolsCoupons", e[e.toolsFavoriteInactive = 55] = "toolsFavoriteInactive", e[e.toolsFavoriteActive = 56] = "toolsFavoriteActive", e[e.toolsAssortment = 57] = "toolsAssortment", e[e.toolsPromo = 58] = "toolsPromo", e[e.fuelCng = 59] = "fuelCng", e[e.fuelE5 = 60] = "fuelE5", e[e.fuelAdblue = 61] = "fuelAdblue", e[e.fuelB7 = 62] = "fuelB7", e[e.fuelH2 = 63] = "fuelH2", e[e.fuelE10 = 64] = "fuelE10", e[e.fuelFreeTireInflation = 65] = "fuelFreeTireInflation", e[e.functionalClose = 66] = "functionalClose", e[e.functionalBack = 67] = "functionalBack", e[e.functionalSearch = 68] = "functionalSearch", e[e.functionalEdit = 69] = "functionalEdit", e[e.functionalShare = 70] = "functionalShare", e[e.functionalLocation = 71] = "functionalLocation", e[e.functionalTrash = 72] = "functionalTrash", e[e.functionalCamera = 73] = "functionalCamera", e[e.functionalPhone = 74] = "functionalPhone", e[e.functionalPushNotifications = 75] = "functionalPushNotifications", e[e.functionalMail = 76] = "functionalMail", e[e.functionalGift = 77] = "functionalGift", e[e.functionalPresent = 78] = "functionalPresent", e[e.functionalLoading = 79] = "functionalLoading", e[e.functionalChevronRight = 80] = "functionalChevronRight", e[e.functionalCheck = 81] = "functionalCheck", e[e.functionalChevronDown = 82] = "functionalChevronDown", e[e.functionalChevronUp = 83] = "functionalChevronUp", e[e.functionalPlus = 84] = "functionalPlus", e[e.functionalReset = 85] = "functionalReset", e[e.functionalDownload = 86] = "functionalDownload", e[e.functionalExport = 87] = "functionalExport", e[e.functionalCustomerService = 88] = "functionalCustomerService", e[e.functionalTruck = 89] = "functionalTruck", e[e.functionalBox = 90] = "functionalBox", e[e.functionalEllipsis = 91] = "functionalEllipsis", e[e.functionalLocationHome = 92] = "functionalLocationHome", e[e.functionalLocationPickup = 93] = "functionalLocationPickup", e[e.functionalAccount = 94] = "functionalAccount", e[e.functionalPrivacy = 95] = "functionalPrivacy", e[e.functionalSettings = 96] = "functionalSettings", e[e.functionalUserInfo = 97] = "functionalUserInfo", e[e.functionalPinOutlines = 98] = "functionalPinOutlines", e[e.functionalCalendar = 99] = "functionalCalendar", e[e.functionalMinus = 100] = "functionalMinus", e[e.functionalLifestyle = 101] = "functionalLifestyle", e[e.functionalSms = 102] = "functionalSms", e[e.functionalSwitch = 103] = "functionalSwitch", e[e.functionalSorting = 104] = "functionalSorting", e[e.functionalWarningCircle = 105] = "functionalWarningCircle", e[e.functionalQuestionCircle = 106] = "functionalQuestionCircle", e[e.functionalErrorCircle = 107] = "functionalErrorCircle", e[e.functionalSuccessCircle = 108] = "functionalSuccessCircle", e[e.functionalMessage = 109] = "functionalMessage", e[e.functionalExternalLink = 110] = "functionalExternalLink", e[e.functionalAddToList = 111] = "functionalAddToList", e[e.functionalShoppingcart = 112] = "functionalShoppingcart", e[e.functionalFilter = 113] = "functionalFilter", e[e.functionalLocate = 114] = "functionalLocate", e[e.functionalBarcode = 115] = "functionalBarcode", e[e.functionalClock = 116] = "functionalClock", e[e.functionalHistory = 117] = "functionalHistory", e[e.functionalShops = 118] = "functionalShops", e[e.functionalAddUser = 119] = "functionalAddUser", e[e.functionalOther = 120] = "functionalOther", e[e.functionalInAppNotifications = 121] = "functionalInAppNotifications", e[e.functionalExit = 122] = "functionalExit", e[e.functionalShared = 123] = "functionalShared", e[e.functionalThumbsup = 124] = "functionalThumbsup", e[e.functionalDiscount = 125] = "functionalDiscount", e[e.functionalPercentage = 126] = "functionalPercentage", e[e.functionalList = 127] = "functionalList", e[e.functionalMapLocation = 128] = "functionalMapLocation", e[e.functionalNoConnection = 129] = "functionalNoConnection", e[e.functionalSwap = 130] = "functionalSwap", e[e.functionalPiece = 131] = "functionalPiece", e[e.functionalWeight = 132] = "functionalWeight", e[e.functionalPack = 133] = "functionalPack", e[e.functionalCommunications = 134] = "functionalCommunications", e[e.functionalDeliveryAddresses = 135] = "functionalDeliveryAddresses", e[e["functional18+"] = 136] = "functional18+", e[e.functionalReadtime = 137] = "functionalReadtime", e[e.functionalCopy = 138] = "functionalCopy", e[e.functionalMessageField = 139] = "functionalMessageField", e[e.functionalNext = 140] = "functionalNext", e[e.functionalSave = 141] = "functionalSave", e[e.functionalLogin = 142] = "functionalLogin", e[e.functionalLogout = 143] = "functionalLogout", e[e.functionalWebsite = 144] = "functionalWebsite", e[e.functionalMenu = 145] = "functionalMenu", e[e.functionalRegister = 146] = "functionalRegister", e[e.functionalNews = 147] = "functionalNews", e[e.functionalTimer = 148] = "functionalTimer", e[e.functionalEyeShow = 149] = "functionalEyeShow", e[e.functionalMobilePay = 150] = "functionalMobilePay", e[e.functionalConnectionCable = 151] = "functionalConnectionCable", e[e.functionalDryCleaning = 152] = "functionalDryCleaning", e[e.functionalKiosk = 153] = "functionalKiosk", e[e.functionalConnectedDevice = 154] = "functionalConnectedDevice", e[e.functionalCookies = 155] = "functionalCookies", e[e.functionalViewFile = 156] = "functionalViewFile", e[e.functionalLastAdded = 157] = "functionalLastAdded", e[e.functionalFirstAdded = 158] = "functionalFirstAdded", e[e.functionalStoreLayout = 159] = "functionalStoreLayout", e[e.functionalBlock = 160] = "functionalBlock", e[e.functionalChecklist = 161] = "functionalChecklist", e[e.functionalCartCheckout = 162] = "functionalCartCheckout", e[e.functionalCartEdit = 163] = "functionalCartEdit", e[e.functionalEyeHidden = 164] = "functionalEyeHidden", e[e.functionalWarningCircleFilled = 165] = "functionalWarningCircleFilled", e[e.functionalErrorCircleFilled = 166] = "functionalErrorCircleFilled", e[e.functionalSuccessCircleFilled = 167] = "functionalSuccessCircleFilled", e[e.functionalPlusCircle = 168] = "functionalPlusCircle", e[e.functionalSpinner = 169] = "functionalSpinner", e[e.functionalEcoEarth = 170] = "functionalEcoEarth", e[e.functionalAlphaBeta = 171] = "functionalAlphaBeta", e[e.functionalEuro = 172] = "functionalEuro", e[e.functionalNumber = 173] = "functionalNumber", e[e.functionalIdea = 174] = "functionalIdea", e[e.functionalMultifactorAuthenticator = 175] = "functionalMultifactorAuthenticator", e[e.functionalPassword = 176] = "functionalPassword", e[e.functionalDiscountCode = 177] = "functionalDiscountCode", e))(tt || {});
2889
2889
  const Mi = "/icons/bouMenuIcons.svg", Oi = ({
2890
- bouIconId: t,
2891
- ...e
2892
- }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i.jsx("use", { href: `${Mi}#${ee[t]}` }) }), Ce = (t) => typeof t.icon == "string" && t.icon in ee ? /* @__PURE__ */ i.jsx(Oi, { bouIconId: ee[t.icon] }) : t.icon, Ri = ({
2893
- label: t,
2894
- className: e,
2890
+ bouIconId: e,
2891
+ ...t
2892
+ }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i.jsx("use", { href: `${Mi}#${tt[e]}` }) }), Ct = (e) => typeof e.icon == "string" && e.icon in tt ? /* @__PURE__ */ i.jsx(Oi, { bouIconId: tt[e.icon] }) : e.icon, Ri = ({
2893
+ label: e,
2894
+ className: t,
2895
2895
  onClick: s,
2896
2896
  icon: r
2897
- }) => /* @__PURE__ */ i.jsx(W.Item, { className: e, children: /* @__PURE__ */ i.jsxs("button", { onClick: s, children: [
2898
- /* @__PURE__ */ i.jsx(Ce, { icon: r }),
2899
- t
2900
- ] }) }), _t = (t) => {
2901
- const e = Fs(), { className: s, label: r, mobileUrl: a, desktopUrl: l, icon: o } = t;
2897
+ }) => /* @__PURE__ */ i.jsx(W.Item, { className: t, children: /* @__PURE__ */ i.jsxs("button", { onClick: s, children: [
2898
+ /* @__PURE__ */ i.jsx(Ct, { icon: r }),
2899
+ e
2900
+ ] }) }), _e = (e) => {
2901
+ const t = Fs(), { className: s, label: r, mobileUrl: a, desktopUrl: l, icon: o } = e;
2902
2902
  return /* @__PURE__ */ i.jsxs(W.Item, { className: s, children: [
2903
- (!e || e && !l) && /* @__PURE__ */ i.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
2904
- /* @__PURE__ */ i.jsx(Ce, { icon: o }),
2903
+ (!t || t && !l) && /* @__PURE__ */ i.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
2904
+ /* @__PURE__ */ i.jsx(Ct, { icon: o }),
2905
2905
  r
2906
2906
  ] }),
2907
2907
  !!l && /* @__PURE__ */ i.jsxs("a", { href: l, referrerPolicy: "no-referrer-when-downgrade", children: [
2908
- /* @__PURE__ */ i.jsx(Ce, { icon: o }),
2908
+ /* @__PURE__ */ i.jsx(Ct, { icon: o }),
2909
2909
  r
2910
2910
  ] })
2911
2911
  ] });
2912
- }, Es = f.createContext(void 0), Li = ({ position: t, bouMenuItems: e, children: s }) => /* @__PURE__ */ i.jsx(Es.Provider, { value: { position: t, bouMenuItems: e }, children: s }), Ps = () => {
2913
- const t = f.useContext(Es);
2914
- if (!t)
2912
+ }, Es = f.createContext(void 0), Li = ({ position: e, bouMenuItems: t, children: s }) => /* @__PURE__ */ i.jsx(Es.Provider, { value: { position: e, bouMenuItems: t }, children: s }), Ps = () => {
2913
+ const e = f.useContext(Es);
2914
+ if (!e)
2915
2915
  throw new Error("Authentication context can not be rendered outside of Authentication");
2916
- return t;
2917
- }, As = f.createContext(void 0), Fi = ({ apiUrl: t, redirectUrl: e, children: s }) => /* @__PURE__ */ i.jsx(As.Provider, { value: { apiUrl: t, redirectUrl: e }, children: s }), Se = () => {
2918
- const t = f.useContext(As);
2919
- if (!t)
2916
+ return e;
2917
+ }, ks = f.createContext(void 0), Fi = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ i.jsx(ks.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), St = () => {
2918
+ const e = f.useContext(ks);
2919
+ if (!e)
2920
2920
  throw new Error("Api context can not be rendered outside of Api");
2921
- return t;
2922
- }, ks = ({ apiUrl: t, redirectUrl: e, trackingInfo: s }) => {
2923
- const r = new URLSearchParams({ redirectUrl: e });
2921
+ return e;
2922
+ }, As = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2923
+ const r = new URLSearchParams({ redirectUrl: t });
2924
2924
  s && r.append("trackingInfo", s);
2925
- const a = `${t}/login?${r.toString()}`, l = `${t}/logout?${r.toString()}`;
2925
+ const a = `${e}/login?${r.toString()}`, l = `${e}/logout?${r.toString()}`;
2926
2926
  return { loginUrl: a, logoutUrl: l };
2927
- }, se = () => {
2928
- const { apiUrl: t, redirectUrl: e } = Se(), s = Ds();
2929
- return ks({ apiUrl: t, redirectUrl: e, trackingInfo: s });
2927
+ }, st = () => {
2928
+ const { apiUrl: e, redirectUrl: t } = St(), s = Ds();
2929
+ return As({ apiUrl: e, redirectUrl: t, trackingInfo: s });
2930
2930
  }, Di = () => {
2931
- const { apiUrl: t } = Se();
2932
- return `${`${t}/xtra`}/authentication/v1/user/profile`;
2933
- }, Te = (t) => t ? `+${t.countryCode} ${t.number}` : "", Ue = (t, e) => e == null ? void 0 : e.find((s) => s.type === t), Qe = ({ apiUrl: t, redirectUrl: e }) => {
2934
- const { loginUrl: s } = ks({ apiUrl: t, redirectUrl: e });
2931
+ const { apiUrl: e } = St();
2932
+ return `${`${e}/xtra`}/authentication/v1/user/profile`;
2933
+ }, Tt = (e) => e ? `+${e.countryCode} ${e.number}` : "", Ut = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), Qt = ({ apiUrl: e, redirectUrl: t }) => {
2934
+ const { loginUrl: s } = As({ apiUrl: e, redirectUrl: t });
2935
2935
  window.location.replace(s);
2936
- }, He = (t) => {
2936
+ }, Ht = (e) => {
2937
2937
  var l;
2938
- if (!t)
2939
- return { user: { state: () => "NotAuthenticated" }, tryToLogon: Qe };
2940
- const e = new Date(t.dateOfBirth), s = Ue(Pe.Mobile, t.phone), r = Ue(Pe.Fixed, t.phone), a = Te(s) ?? Te(r) ?? "";
2938
+ if (!e)
2939
+ return { user: { state: () => "NotAuthenticated" }, tryToLogon: Qt };
2940
+ const t = new Date(e.dateOfBirth), s = Ut(Pt.Mobile, e.phone), r = Ut(Pt.Fixed, e.phone), a = Tt(s) ?? Tt(r) ?? "";
2941
2941
  return {
2942
2942
  user: {
2943
2943
  ...(l = window.XTRA) == null ? void 0 : l.user,
2944
- firstName: () => t.firstName,
2945
- lastName: () => t.lastName,
2946
- dob: () => e.getDate(),
2947
- mob: () => e.getMonth() + 1,
2948
- yob: () => e.getFullYear(),
2949
- gender: () => t.genderCode,
2944
+ firstName: () => e.firstName,
2945
+ lastName: () => e.lastName,
2946
+ dob: () => t.getDate(),
2947
+ mob: () => t.getMonth() + 1,
2948
+ yob: () => t.getFullYear(),
2949
+ gender: () => e.genderCode,
2950
2950
  phone: () => a,
2951
2951
  streetName: () => {
2952
2952
  var o;
2953
- return (o = t.address) == null ? void 0 : o.streetName;
2953
+ return (o = e.address) == null ? void 0 : o.streetName;
2954
2954
  },
2955
2955
  houseNr: () => {
2956
2956
  var o;
2957
- return (o = t.address) == null ? void 0 : o.houseNumber;
2957
+ return (o = e.address) == null ? void 0 : o.houseNumber;
2958
2958
  },
2959
2959
  box: () => {
2960
2960
  var o;
2961
- return (o = t.address) == null ? void 0 : o.letterBoxName;
2961
+ return (o = e.address) == null ? void 0 : o.letterBoxName;
2962
2962
  },
2963
2963
  zip: () => {
2964
2964
  var o;
2965
- return (o = t.address) == null ? void 0 : o.postalCode;
2965
+ return (o = e.address) == null ? void 0 : o.postalCode;
2966
2966
  },
2967
2967
  city: () => {
2968
2968
  var o;
2969
- return (o = t.address) == null ? void 0 : o.locationName;
2969
+ return (o = e.address) == null ? void 0 : o.locationName;
2970
2970
  },
2971
2971
  country: () => {
2972
2972
  var o;
2973
- return (o = t.address) == null ? void 0 : o.countryCode;
2973
+ return (o = e.address) == null ? void 0 : o.countryCode;
2974
2974
  },
2975
- email: () => t.email,
2976
- cbh: () => t.customerIdentifier,
2975
+ email: () => e.email,
2976
+ cbh: () => e.customerIdentifier,
2977
2977
  state: () => "Authenticated"
2978
2978
  },
2979
- tryToLogon: Qe
2979
+ tryToLogon: Qt
2980
2980
  };
2981
2981
  }, Ns = ["profile"], Ms = () => {
2982
- const { i18n: t } = jt(), e = Di(), s = sessionStorage.getItem("profile"), r = !!s;
2982
+ const { i18n: e } = je(), t = Di(), s = sessionStorage.getItem("profile"), r = !!s;
2983
2983
  return fs({
2984
2984
  queryKey: Ns,
2985
2985
  queryFn: async () => {
2986
- const l = await fetch(e, {
2986
+ const l = await fetch(t, {
2987
2987
  credentials: "include",
2988
2988
  mode: "cors",
2989
- headers: { "Accept-Language": t.language }
2989
+ headers: { "Accept-Language": e.language }
2990
2990
  });
2991
2991
  if (!l.ok) {
2992
2992
  if (l.status === 401)
2993
- return window.XTRA = { ...window.XTRA, ...He() }, window.postMessage(
2993
+ return window.XTRA = { ...window.XTRA, ...Ht() }, window.postMessage(
2994
2994
  { source: "xtra-authentication", isAuthenticated: !1 },
2995
2995
  new URL(window.location.href).origin
2996
2996
  ), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
@@ -3002,7 +3002,7 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3002
3002
  return sessionStorage.setItem("profile", JSON.stringify({ firstName: c, lastName: v })), window.postMessage(
3003
3003
  { source: "xtra-authentication", isAuthenticated: !0 },
3004
3004
  new URL(window.location.href).origin
3005
- ), window.XTRA = { ...window.XTRA, ...He(o) }, {
3005
+ ), window.XTRA = { ...window.XTRA, ...Ht(o) }, {
3006
3006
  authenticationStatus: "Authenticated",
3007
3007
  profile: { firstName: o.firstName, lastName: o.lastName }
3008
3008
  };
@@ -3015,7 +3015,7 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3015
3015
  refetchOnWindowFocus: !1
3016
3016
  });
3017
3017
  }, Ti = () => {
3018
- const { t } = jt(), e = Xe(), { position: s, bouMenuItems: r } = Ps(), { logoutUrl: a } = se(), o = je().getQueryData(Ns), c = (o == null ? void 0 : o.profile.firstName) ?? "", v = (o == null ? void 0 : o.profile.lastName) ?? "", g = () => {
3018
+ const { t: e } = je(), t = Xt(), { position: s, bouMenuItems: r } = Ps(), { logoutUrl: a } = st(), o = jt().getQueryData(Ns), c = (o == null ? void 0 : o.profile.firstName) ?? "", v = (o == null ? void 0 : o.profile.lastName) ?? "", g = () => {
3019
3019
  sessionStorage.removeItem("profile"), window.location.href = a;
3020
3020
  };
3021
3021
  return /* @__PURE__ */ i.jsxs(W, { type: "nav", id: "xtra-menu", position: s, children: [
@@ -3031,13 +3031,13 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3031
3031
  children: /* @__PURE__ */ i.jsxs("button", { children: [
3032
3032
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Nr, { variant: "small", firstName: c, lastName: v }) }),
3033
3033
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: c }),
3034
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(_e, {}) })
3034
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(_t, {}) })
3035
3035
  ] })
3036
3036
  }
3037
3037
  ),
3038
3038
  /* @__PURE__ */ i.jsxs(W.Content, { as: "div", children: [
3039
3039
  !!r && r.length > 0 && /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: r.map(({ label: h, icon: u, url: d }, m) => /* @__PURE__ */ i.jsx(
3040
- _t,
3040
+ _e,
3041
3041
  {
3042
3042
  className: "bou-menu-item",
3043
3043
  mobileUrl: d,
@@ -3048,66 +3048,66 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3048
3048
  )) }),
3049
3049
  /* @__PURE__ */ i.jsxs("ul", { children: [
3050
3050
  /* @__PURE__ */ i.jsx(
3051
- _t,
3051
+ _e,
3052
3052
  {
3053
3053
  className: "manage-profile",
3054
- mobileUrl: `${e}/manage-profile`,
3055
- desktopUrl: `${e}/manage-profile/personal-data`,
3054
+ mobileUrl: `${t}/manage-profile`,
3055
+ desktopUrl: `${t}/manage-profile/personal-data`,
3056
3056
  icon: /* @__PURE__ */ i.jsx($r, {}),
3057
- label: t("manageProfile")
3057
+ label: e("manageProfile")
3058
3058
  }
3059
3059
  ),
3060
3060
  /* @__PURE__ */ i.jsx(
3061
- _t,
3061
+ _e,
3062
3062
  {
3063
3063
  className: "payment",
3064
- mobileUrl: `${e}/payment`,
3064
+ mobileUrl: `${t}/payment`,
3065
3065
  icon: /* @__PURE__ */ i.jsx(ri, {}),
3066
- label: t("payment")
3066
+ label: e("payment")
3067
3067
  }
3068
3068
  ),
3069
3069
  /* @__PURE__ */ i.jsx(
3070
- _t,
3070
+ _e,
3071
3071
  {
3072
3072
  className: "gift-cards",
3073
- mobileUrl: `${e}/gift-cards`,
3074
- icon: /* @__PURE__ */ i.jsx(ei, {}),
3075
- label: t("giftCards")
3073
+ mobileUrl: `${t}/gift-cards`,
3074
+ icon: /* @__PURE__ */ i.jsx(ti, {}),
3075
+ label: e("giftCards")
3076
3076
  }
3077
3077
  ),
3078
3078
  /* @__PURE__ */ i.jsx(
3079
- _t,
3079
+ _e,
3080
3080
  {
3081
- mobileUrl: `${e}/identifiers`,
3081
+ mobileUrl: `${t}/identifiers`,
3082
3082
  icon: /* @__PURE__ */ i.jsx(ni, {}),
3083
- label: t("qrCode")
3083
+ label: e("qrCode")
3084
3084
  }
3085
3085
  ),
3086
3086
  /* @__PURE__ */ i.jsx(
3087
- _t,
3087
+ _e,
3088
3088
  {
3089
3089
  className: "manage-privacy",
3090
- mobileUrl: `${e}/manage-privacy`,
3091
- desktopUrl: `${e}/manage-privacy/permissions`,
3090
+ mobileUrl: `${t}/manage-privacy`,
3091
+ desktopUrl: `${t}/manage-privacy/permissions`,
3092
3092
  icon: /* @__PURE__ */ i.jsx(Wr, {}),
3093
- label: t("privacy")
3093
+ label: e("privacy")
3094
3094
  }
3095
3095
  ),
3096
- /* @__PURE__ */ i.jsx(Ri, { onClick: g, icon: /* @__PURE__ */ i.jsx(Gr, {}), label: t("logout") })
3096
+ /* @__PURE__ */ i.jsx(Ri, { onClick: g, icon: /* @__PURE__ */ i.jsx(Gr, {}), label: e("logout") })
3097
3097
  ] })
3098
3098
  ] })
3099
3099
  ] });
3100
3100
  }, Ui = () => {
3101
- const { t } = jt();
3101
+ const { t: e } = je();
3102
3102
  return /* @__PURE__ */ i.jsxs("button", { className: O("button", "button--neutral", "button--authentication"), children: [
3103
3103
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx("i", { className: "spinner" }) }),
3104
3104
  /* @__PURE__ */ i.jsxs("span", { className: "button__label", children: [
3105
- t("loading"),
3105
+ e("loading"),
3106
3106
  "..."
3107
3107
  ] })
3108
3108
  ] });
3109
- }, Qi = ({ className: t }) => {
3110
- const { t: e } = jt(), { loginUrl: s } = se();
3109
+ }, Qi = ({ className: e }) => {
3110
+ const { t } = je(), { loginUrl: s } = st();
3111
3111
  return /* @__PURE__ */ i.jsxs(
3112
3112
  "a",
3113
3113
  {
@@ -3117,17 +3117,17 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3117
3117
  "button--neutral",
3118
3118
  "button--authentication",
3119
3119
  "button--authentication--unauthenticated",
3120
- t
3120
+ e
3121
3121
  ),
3122
3122
  children: [
3123
3123
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(gs, { width: 24, height: 24, suffix: "desktop" }) }),
3124
- /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") }),
3125
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(_e, {}) })
3124
+ /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("login") }),
3125
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(_t, {}) })
3126
3126
  ]
3127
3127
  }
3128
3128
  );
3129
3129
  }, Hi = () => {
3130
- const { t } = jt(), { loginUrl: e } = se(), s = Xe(), { position: r } = Ps();
3130
+ const { t: e } = je(), { loginUrl: t } = st(), s = Xt(), { position: r } = Ps();
3131
3131
  return /* @__PURE__ */ i.jsxs(
3132
3132
  W,
3133
3133
  {
@@ -3135,40 +3135,40 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3135
3135
  id: "xtra-menu",
3136
3136
  position: r,
3137
3137
  className: "menu--unauthenticated",
3138
- "aria-label": t("xtraMenuAriaLabel"),
3138
+ "aria-label": e("xtraMenuAriaLabel"),
3139
3139
  children: [
3140
3140
  /* @__PURE__ */ i.jsx(W.Trigger, { className: O("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
3141
3141
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(gs, { width: 24, height: 24, suffix: "mobile" }) }),
3142
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(_e, {}) })
3142
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(_t, {}) })
3143
3143
  ] }) }),
3144
3144
  /* @__PURE__ */ i.jsxs(W.Content, { children: [
3145
- /* @__PURE__ */ i.jsx(W.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: e, className: "button button--with-icon", children: [
3145
+ /* @__PURE__ */ i.jsx(W.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: t, className: "button button--with-icon", children: [
3146
3146
  /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Hr, {}) }),
3147
- /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("login") })
3147
+ /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") })
3148
3148
  ] }) }),
3149
3149
  /* @__PURE__ */ i.jsx(W.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3150
3150
  /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Yr, {}) }),
3151
- /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("register") })
3151
+ /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("register") })
3152
3152
  ] }) })
3153
3153
  ] })
3154
3154
  ]
3155
3155
  }
3156
3156
  );
3157
3157
  }, Ki = () => {
3158
- var e, s;
3159
- const t = Ms();
3160
- return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Ti, {}) : ((s = t.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || t.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3158
+ var t, s;
3159
+ const e = Ms();
3160
+ return ((t = e.data) == null ? void 0 : t.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Ti, {}) : ((s = e.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || e.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3161
3161
  /* @__PURE__ */ i.jsx(Qi, {}),
3162
3162
  /* @__PURE__ */ i.jsx(Hi, {})
3163
3163
  ] }) : /* @__PURE__ */ i.jsx(Ui, {});
3164
3164
  }, Os = () => {
3165
- const { apiUrl: t } = Se();
3166
- return `${`${t}/xtra`}/authentication/v1/gdpr`;
3165
+ const { apiUrl: e } = St();
3166
+ return `${`${e}/xtra`}/authentication/v1/gdpr`;
3167
3167
  }, Gi = () => {
3168
- const t = Os(), e = new ls();
3168
+ const e = Os(), t = new ls();
3169
3169
  return Cr({
3170
3170
  mutationFn: async (r) => {
3171
- const a = await fetch(`${t}/tc`, {
3171
+ const a = await fetch(`${e}/tc`, {
3172
3172
  body: JSON.stringify({ acceptedTC: r }),
3173
3173
  credentials: "include",
3174
3174
  method: "POST",
@@ -3179,19 +3179,19 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3179
3179
  return a;
3180
3180
  },
3181
3181
  onSuccess: async () => {
3182
- await e.invalidateQueries({ queryKey: ["gdpr"] });
3182
+ await t.invalidateQueries({ queryKey: ["gdpr"] });
3183
3183
  }
3184
3184
  });
3185
3185
  }, qi = () => {
3186
3186
  var l;
3187
- const { i18n: t } = jt(), e = Os(), r = ((l = Ms().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3187
+ const { i18n: e } = je(), t = Os(), r = ((l = Ms().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3188
3188
  return fs({
3189
3189
  queryKey: ["gdpr"],
3190
3190
  queryFn: async () => {
3191
- const o = await fetch(`${e}/tc/check`, {
3191
+ const o = await fetch(`${t}/tc/check`, {
3192
3192
  credentials: "include",
3193
3193
  mode: "cors",
3194
- headers: { "Accept-Language": t.language }
3194
+ headers: { "Accept-Language": e.language }
3195
3195
  });
3196
3196
  if (!o.ok)
3197
3197
  throw new Error("Network response was not ok");
@@ -3200,10 +3200,10 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3200
3200
  enabled: r
3201
3201
  });
3202
3202
  }, Wi = () => {
3203
- var k;
3204
- const { t } = jt();
3203
+ var A;
3204
+ const { t: e } = je();
3205
3205
  Ts({ element: "xtra-authentication" });
3206
- const { logoutUrl: e } = se(), s = f.useRef(null), [r, a] = f.useState(0), [l, o] = f.useState({}), { mutate: c, isError: v } = Gi(), { AccessibleFormMessage: g, formRef: h } = Us({ submitCount: r, errors: l }), u = qi(), d = !!((k = u.data) != null && k.length), m = t("termsAndConditions.error.required"), S = () => {
3206
+ const { logoutUrl: t } = st(), s = f.useRef(null), [r, a] = f.useState(0), [l, o] = f.useState({}), { mutate: c, isError: v } = Gi(), { AccessibleFormMessage: g, formRef: h } = Us({ submitCount: r, errors: l }), u = qi(), d = !!((A = u.data) != null && A.length), m = e("termsAndConditions.error.required"), S = () => {
3207
3207
  var C;
3208
3208
  (C = s == null ? void 0 : s.current) == null || C.click(), document.body.style.removeProperty("overflow");
3209
3209
  };
@@ -3224,22 +3224,22 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3224
3224
  return d ? /* @__PURE__ */ i.jsxs(G, { defaultOpen: d, isModal: !0, children: [
3225
3225
  g,
3226
3226
  /* @__PURE__ */ i.jsxs(G.Root, { children: [
3227
- /* @__PURE__ */ i.jsx(G.Header, { children: /* @__PURE__ */ i.jsx(G.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(Yi, { children: t("termsAndConditions.title") }) }) }),
3227
+ /* @__PURE__ */ i.jsx(G.Header, { children: /* @__PURE__ */ i.jsx(G.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(Yi, { children: e("termsAndConditions.title") }) }) }),
3228
3228
  /* @__PURE__ */ i.jsx(G.Body, { children: /* @__PURE__ */ i.jsxs(Rs, { ref: h, id: "tc-form", onSubmit: P, children: [
3229
3229
  /* @__PURE__ */ i.jsxs($i, { children: [
3230
- t("termsAndConditions.description"),
3230
+ e("termsAndConditions.description"),
3231
3231
  l.acceptedTC && /* @__PURE__ */ i.jsx(zi, { children: m })
3232
3232
  ] }),
3233
3233
  u.data.map(({ tcCode: C, title: w, URL: j }) => /* @__PURE__ */ i.jsx(
3234
- wt,
3234
+ we,
3235
3235
  {
3236
3236
  id: C,
3237
3237
  value: C,
3238
3238
  name: "acceptedTC",
3239
3239
  variant: "primary",
3240
- children: /* @__PURE__ */ i.jsxs(wt.Content, { children: [
3240
+ children: /* @__PURE__ */ i.jsxs(we.Content, { children: [
3241
3241
  /* @__PURE__ */ i.jsx(Vi, { children: w }),
3242
- /* @__PURE__ */ i.jsx(Zi, { href: j, children: t("termsAndConditions.action", { title: w }) })
3242
+ /* @__PURE__ */ i.jsx(Zi, { href: j, children: e("termsAndConditions.action", { title: w }) })
3243
3243
  ] })
3244
3244
  },
3245
3245
  C
@@ -3250,23 +3250,23 @@ const Mi = "/icons/bouMenuIcons.svg", Oi = ({
3250
3250
  "a",
3251
3251
  {
3252
3252
  className: O("button", "button--secondary", "button--terms-and-conditions"),
3253
- href: e,
3254
- children: t("logout")
3253
+ href: t,
3254
+ children: e("logout")
3255
3255
  }
3256
3256
  ),
3257
- /* @__PURE__ */ i.jsx(Zt, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
3257
+ /* @__PURE__ */ i.jsx(Ze, { form: "tc-form", type: "submit", variant: "primary", children: e("confirm") })
3258
3258
  ] })
3259
3259
  ] })
3260
3260
  ] }) : /* @__PURE__ */ i.jsx(i.Fragment, {});
3261
3261
  }, Vi = ({
3262
- children: t,
3263
- ...e
3264
- }) => /* @__PURE__ */ i.jsx(wt.Label, { className: "form--tc__label", ...e, children: t }), Rs = f.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
3262
+ children: e,
3263
+ ...t
3264
+ }) => /* @__PURE__ */ i.jsx(we.Label, { className: "form--tc__label", ...t, children: e }), Rs = f.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3265
3265
  Rs.displayName = "TermsAndConditionsForm";
3266
3266
  const $i = ({
3267
- children: t,
3268
- ...e
3269
- }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...e, children: t }), Zi = ({ children: t, ...e }) => /* @__PURE__ */ i.jsx(
3267
+ children: e,
3268
+ ...t
3269
+ }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), Zi = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3270
3270
  "a",
3271
3271
  {
3272
3272
  className: "form--tc__link",
@@ -3274,10 +3274,10 @@ const $i = ({
3274
3274
  rel: "noreferrer",
3275
3275
  role: "button",
3276
3276
  download: !0,
3277
- ...e,
3278
- children: t
3277
+ ...t,
3278
+ children: e
3279
3279
  }
3280
- ), Yi = ({ children: t }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: t }), zi = ({ children: t, ...e }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...e, children: t }), Ji = new ls(), Bi = ({ environment: t, redirectUrl: e, apiUrl: s, position: r, commerceId: a, bouMenuItems: l }) => /* @__PURE__ */ i.jsx(Qs, { environment: t, children: /* @__PURE__ */ i.jsx(Hs, { commerceId: a, children: /* @__PURE__ */ i.jsx(Fi, { apiUrl: s, redirectUrl: e, children: /* @__PURE__ */ i.jsxs(ar, { client: Ji, children: [
3280
+ ), Yi = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), zi = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), Ji = new ls(), Bi = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, commerceId: a, bouMenuItems: l }) => /* @__PURE__ */ i.jsx(Qs, { environment: e, children: /* @__PURE__ */ i.jsx(Hs, { commerceId: a, children: /* @__PURE__ */ i.jsx(Fi, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ i.jsxs(ar, { client: Ji, children: [
3281
3281
  /* @__PURE__ */ i.jsx(Li, { position: r, bouMenuItems: l, children: /* @__PURE__ */ i.jsx(Ki, {}) }),
3282
3282
  /* @__PURE__ */ i.jsx(Wi, {})
3283
3283
  ] }) }) }) });