@neuctra/authix 1.2.21 → 1.2.22

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,26 +1,26 @@
1
- import Ce, { forwardRef as At, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
1
+ import Ce, { forwardRef as zt, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
2
2
  function Ut(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
5
5
  };
6
6
  }
7
- const { toString: ur } = Object.prototype, { getPrototypeOf: nt } = Object, { iterator: Fe, toStringTag: _t } = Symbol, Le = /* @__PURE__ */ ((t) => (e) => {
7
+ const { toString: ur } = Object.prototype, { getPrototypeOf: nt } = Object, { iterator: Le, toStringTag: _t } = Symbol, Fe = /* @__PURE__ */ ((t) => (e) => {
8
8
  const n = ur.call(e);
9
9
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Le(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, we = qe("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), oe = (t) => (t = t.toLowerCase(), (e) => Fe(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, we = qe("undefined");
11
11
  function Te(t) {
12
12
  return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const $t = ae("ArrayBuffer");
14
+ const $t = oe("ArrayBuffer");
15
15
  function pr(t) {
16
16
  let e;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $t(t.buffer), e;
18
18
  }
19
19
  const fr = qe("string"), te = qe("function"), Dt = qe("number"), Re = (t) => t !== null && typeof t == "object", xr = (t) => t === !0 || t === !1, Ue = (t) => {
20
- if (Le(t) !== "object")
20
+ if (Fe(t) !== "object")
21
21
  return !1;
22
22
  const e = nt(t);
23
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(_t in t) && !(Fe in t);
23
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(_t in t) && !(Le in t);
24
24
  }, hr = (t) => {
25
25
  if (!Re(t) || Te(t))
26
26
  return !1;
@@ -29,11 +29,11 @@ const fr = qe("string"), te = qe("function"), Dt = qe("number"), Re = (t) => t !
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, mr = ae("Date"), gr = ae("File"), yr = ae("Blob"), br = ae("FileList"), wr = (t) => Re(t) && te(t.pipe), jr = (t) => {
32
+ }, mr = oe("Date"), gr = oe("File"), yr = oe("Blob"), br = oe("FileList"), wr = (t) => Re(t) && te(t.pipe), jr = (t) => {
33
33
  let e;
34
- return t && (typeof FormData == "function" && t instanceof FormData || te(t.append) && ((e = Le(t)) === "formdata" || // detect form-data instance
34
+ return t && (typeof FormData == "function" && t instanceof FormData || te(t.append) && ((e = Fe(t)) === "formdata" || // detect form-data instance
35
35
  e === "object" && te(t.toString) && t.toString() === "[object FormData]"));
36
- }, vr = ae("URLSearchParams"), [Sr, kr, Er, Cr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Tr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
+ }, vr = oe("URLSearchParams"), [Sr, kr, Er, Cr] = ["ReadableStream", "Request", "Response", "Headers"].map(oe), Tr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
@@ -44,10 +44,10 @@ function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
44
44
  else {
45
45
  if (Te(t))
46
46
  return;
47
- const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), o = a.length;
47
+ const o = n ? Object.getOwnPropertyNames(t) : Object.keys(t), a = o.length;
48
48
  let c;
49
- for (s = 0; s < o; s++)
50
- c = a[s], e.call(null, t[c], c, t);
49
+ for (s = 0; s < a; s++)
50
+ c = o[s], e.call(null, t[c], c, t);
51
51
  }
52
52
  }
53
53
  function Nt(t, e) {
@@ -61,37 +61,37 @@ function Nt(t, e) {
61
61
  return i;
62
62
  return null;
63
63
  }
64
- const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ft = (t) => !we(t) && t !== fe;
64
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lt = (t) => !we(t) && t !== fe;
65
65
  function Ge() {
66
- const { caseless: t, skipUndefined: e } = Ft(this) && this || {}, n = {}, s = (i, a) => {
67
- const o = t && Nt(n, a) || a;
68
- Ue(n[o]) && Ue(i) ? n[o] = Ge(n[o], i) : Ue(i) ? n[o] = Ge({}, i) : je(i) ? n[o] = i.slice() : (!e || !we(i)) && (n[o] = i);
66
+ const { caseless: t, skipUndefined: e } = Lt(this) && this || {}, n = {}, s = (i, o) => {
67
+ const a = t && Nt(n, o) || o;
68
+ Ue(n[a]) && Ue(i) ? n[a] = Ge(n[a], i) : Ue(i) ? n[a] = Ge({}, i) : je(i) ? n[a] = i.slice() : (!e || !we(i)) && (n[a] = i);
69
69
  };
70
- for (let i = 0, a = arguments.length; i < a; i++)
70
+ for (let i = 0, o = arguments.length; i < o; i++)
71
71
  arguments[i] && Pe(arguments[i], s);
72
72
  return n;
73
73
  }
74
- const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
75
- n && te(i) ? t[a] = Ut(i, n) : t[a] = i;
74
+ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
75
+ n && te(i) ? t[o] = Ut(i, n) : t[o] = i;
76
76
  }, { allOwnKeys: s }), t), Pr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ir = (t, e, n, s) => {
77
77
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
78
78
  value: e.prototype
79
79
  }), n && Object.assign(t.prototype, n);
80
80
  }, Or = (t, e, n, s) => {
81
- let i, a, o;
81
+ let i, o, a;
82
82
  const c = {};
83
83
  if (e = e || {}, t == null) return e;
84
84
  do {
85
- for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
86
- o = i[a], (!s || s(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
85
+ for (i = Object.getOwnPropertyNames(t), o = i.length; o-- > 0; )
86
+ a = i[o], (!s || s(a, t, e)) && !c[a] && (e[a] = t[a], c[a] = !0);
87
87
  t = n !== !1 && nt(t);
88
88
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
89
89
  return e;
90
- }, zr = (t, e, n) => {
90
+ }, Ar = (t, e, n) => {
91
91
  t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
92
92
  const s = t.indexOf(e, n);
93
93
  return s !== -1 && s === n;
94
- }, Ar = (t) => {
94
+ }, zr = (t) => {
95
95
  if (!t) return null;
96
96
  if (je(t)) return t;
97
97
  let e = t.length;
@@ -101,11 +101,11 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
101
101
  n[e] = t[e];
102
102
  return n;
103
103
  }, Ur = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && nt(Uint8Array)), _r = (t, e) => {
104
- const s = (t && t[Fe]).call(t);
104
+ const s = (t && t[Le]).call(t);
105
105
  let i;
106
106
  for (; (i = s.next()) && !i.done; ) {
107
- const a = i.value;
108
- e.call(t, a[0], a[1]);
107
+ const o = i.value;
108
+ e.call(t, o[0], o[1]);
109
109
  }
110
110
  }, $r = (t, e) => {
111
111
  let n;
@@ -113,19 +113,19 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
113
113
  for (; (n = t.exec(e)) !== null; )
114
114
  s.push(n);
115
115
  return s;
116
- }, Dr = ae("HTMLFormElement"), Nr = (t) => t.toLowerCase().replace(
116
+ }, Dr = oe("HTMLFormElement"), Nr = (t) => t.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
118
  function(n, s, i) {
119
119
  return s.toUpperCase() + i;
120
120
  }
121
- ), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fr = ae("RegExp"), Lt = (t, e) => {
121
+ ), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Lr = oe("RegExp"), Ft = (t, e) => {
122
122
  const n = Object.getOwnPropertyDescriptors(t), s = {};
123
- Pe(n, (i, a) => {
124
- let o;
125
- (o = e(i, a, t)) !== !1 && (s[a] = o || i);
123
+ Pe(n, (i, o) => {
124
+ let a;
125
+ (a = e(i, o, t)) !== !1 && (s[o] = a || i);
126
126
  }), Object.defineProperties(t, s);
127
- }, Lr = (t) => {
128
- Lt(t, (e, n) => {
127
+ }, Fr = (t) => {
128
+ Ft(t, (e, n) => {
129
129
  if (te(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
130
  return !1;
131
131
  const s = t[n];
@@ -141,15 +141,15 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
141
141
  });
142
142
  }, qr = (t, e) => {
143
143
  const n = {}, s = (i) => {
144
- i.forEach((a) => {
145
- n[a] = !0;
144
+ i.forEach((o) => {
145
+ n[o] = !0;
146
146
  });
147
147
  };
148
148
  return je(t) ? s(t) : s(String(t).split(e)), n;
149
149
  }, Mr = () => {
150
150
  }, Wr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
151
  function Br(t) {
152
- return !!(t && te(t.append) && t[_t] === "FormData" && t[Fe]);
152
+ return !!(t && te(t.append) && t[_t] === "FormData" && t[Le]);
153
153
  }
154
154
  const Hr = (t) => {
155
155
  const e = new Array(10), n = (s, i) => {
@@ -160,24 +160,24 @@ const Hr = (t) => {
160
160
  return s;
161
161
  if (!("toJSON" in s)) {
162
162
  e[i] = s;
163
- const a = je(s) ? [] : {};
164
- return Pe(s, (o, c) => {
165
- const d = n(o, i + 1);
166
- !we(d) && (a[c] = d);
167
- }), e[i] = void 0, a;
163
+ const o = je(s) ? [] : {};
164
+ return Pe(s, (a, c) => {
165
+ const d = n(a, i + 1);
166
+ !we(d) && (o[c] = d);
167
+ }), e[i] = void 0, o;
168
168
  }
169
169
  }
170
170
  return s;
171
171
  };
172
172
  return n(t, 0);
173
- }, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), qt = ((t, e) => t ? setImmediate : e ? ((n, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
174
- i === fe && a === n && s.length && s.shift()();
173
+ }, Vr = oe("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), qt = ((t, e) => t ? setImmediate : e ? ((n, s) => (fe.addEventListener("message", ({ source: i, data: o }) => {
174
+ i === fe && o === n && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
176
  s.push(i), fe.postMessage(n, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
178
  typeof setImmediate == "function",
179
179
  te(fe.postMessage)
180
- ), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || qt, Jr = (t) => t != null && te(t[Fe]), p = {
180
+ ), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || qt, Jr = (t) => t != null && te(t[Le]), f = {
181
181
  isArray: je,
182
182
  isArrayBuffer: $t,
183
183
  isBuffer: Te,
@@ -197,7 +197,7 @@ const Hr = (t) => {
197
197
  isDate: mr,
198
198
  isFile: gr,
199
199
  isBlob: yr,
200
- isRegExp: Fr,
200
+ isRegExp: Lr,
201
201
  isFunction: te,
202
202
  isStream: wr,
203
203
  isURLSearchParams: vr,
@@ -210,25 +210,25 @@ const Hr = (t) => {
210
210
  stripBOM: Pr,
211
211
  inherits: Ir,
212
212
  toFlatObject: Or,
213
- kindOf: Le,
214
- kindOfTest: ae,
215
- endsWith: zr,
216
- toArray: Ar,
213
+ kindOf: Fe,
214
+ kindOfTest: oe,
215
+ endsWith: Ar,
216
+ toArray: zr,
217
217
  forEachEntry: _r,
218
218
  matchAll: $r,
219
219
  isHTMLForm: Dr,
220
220
  hasOwnProperty: pt,
221
221
  hasOwnProp: pt,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: Lt,
224
- freezeMethods: Lr,
223
+ reduceDescriptors: Ft,
224
+ freezeMethods: Fr,
225
225
  toObjectSet: qr,
226
226
  toCamelCase: Nr,
227
227
  noop: Mr,
228
228
  toFiniteNumber: Wr,
229
229
  findKey: Nt,
230
230
  global: fe,
231
- isContextDefined: Ft,
231
+ isContextDefined: Lt,
232
232
  isSpecCompliantForm: Br,
233
233
  toJSONObject: Hr,
234
234
  isAsyncFn: Vr,
@@ -240,7 +240,7 @@ const Hr = (t) => {
240
240
  function $(t, e, n, s, i) {
241
241
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
242
242
  }
243
- p.inherits($, Error, {
243
+ f.inherits($, Error, {
244
244
  toJSON: function() {
245
245
  return {
246
246
  // Standard
@@ -255,7 +255,7 @@ p.inherits($, Error, {
255
255
  columnNumber: this.columnNumber,
256
256
  stack: this.stack,
257
257
  // Axios
258
- config: p.toJSONObject(this.config),
258
+ config: f.toJSONObject(this.config),
259
259
  code: this.code,
260
260
  status: this.status
261
261
  };
@@ -281,92 +281,92 @@ const Mt = $.prototype, Wt = {};
281
281
  });
282
282
  Object.defineProperties($, Wt);
283
283
  Object.defineProperty(Mt, "isAxiosError", { value: !0 });
284
- $.from = (t, e, n, s, i, a) => {
285
- const o = Object.create(Mt);
286
- p.toFlatObject(t, o, function(x) {
287
- return x !== Error.prototype;
288
- }, (f) => f !== "isAxiosError");
284
+ $.from = (t, e, n, s, i, o) => {
285
+ const a = Object.create(Mt);
286
+ f.toFlatObject(t, a, function(p) {
287
+ return p !== Error.prototype;
288
+ }, (x) => x !== "isAxiosError");
289
289
  const c = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
290
- return $.call(o, c, d, n, s, i), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", a && Object.assign(o, a), o;
290
+ return $.call(a, c, d, n, s, i), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", o && Object.assign(a, o), a;
291
291
  };
292
292
  const Gr = null;
293
293
  function Xe(t) {
294
- return p.isPlainObject(t) || p.isArray(t);
294
+ return f.isPlainObject(t) || f.isArray(t);
295
295
  }
296
296
  function Bt(t) {
297
- return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
297
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
299
  function ft(t, e, n) {
300
- return t ? t.concat(e).map(function(i, a) {
301
- return i = Bt(i), !n && a ? "[" + i + "]" : i;
300
+ return t ? t.concat(e).map(function(i, o) {
301
+ return i = Bt(i), !n && o ? "[" + i + "]" : i;
302
302
  }).join(n ? "." : "") : e;
303
303
  }
304
304
  function Xr(t) {
305
- return p.isArray(t) && !t.some(Xe);
305
+ return f.isArray(t) && !t.some(Xe);
306
306
  }
307
- const Zr = p.toFlatObject(p, {}, null, function(e) {
307
+ const Zr = f.toFlatObject(f, {}, null, function(e) {
308
308
  return /^is[A-Z]/.test(e);
309
309
  });
310
310
  function Me(t, e, n) {
311
- if (!p.isObject(t))
311
+ if (!f.isObject(t))
312
312
  throw new TypeError("target must be an object");
313
- e = e || new FormData(), n = p.toFlatObject(n, {
313
+ e = e || new FormData(), n = f.toFlatObject(n, {
314
314
  metaTokens: !0,
315
315
  dots: !1,
316
316
  indexes: !1
317
317
  }, !1, function(w, h) {
318
- return !p.isUndefined(h[w]);
318
+ return !f.isUndefined(h[w]);
319
319
  });
320
- const s = n.metaTokens, i = n.visitor || x, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
321
- if (!p.isFunction(i))
320
+ const s = n.metaTokens, i = n.visitor || p, o = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
321
+ if (!f.isFunction(i))
322
322
  throw new TypeError("visitor must be a function");
323
- function f(u) {
323
+ function x(u) {
324
324
  if (u === null) return "";
325
- if (p.isDate(u))
325
+ if (f.isDate(u))
326
326
  return u.toISOString();
327
- if (p.isBoolean(u))
327
+ if (f.isBoolean(u))
328
328
  return u.toString();
329
- if (!d && p.isBlob(u))
329
+ if (!d && f.isBlob(u))
330
330
  throw new $("Blob is not supported. Use a Buffer instead.");
331
- return p.isArrayBuffer(u) || p.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
331
+ return f.isArrayBuffer(u) || f.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
332
332
  }
333
- function x(u, w, h) {
333
+ function p(u, w, h) {
334
334
  let I = u;
335
335
  if (u && !h && typeof u == "object") {
336
- if (p.endsWith(w, "{}"))
336
+ if (f.endsWith(w, "{}"))
337
337
  w = s ? w : w.slice(0, -2), u = JSON.stringify(u);
338
- else if (p.isArray(u) && Xr(u) || (p.isFileList(u) || p.endsWith(w, "[]")) && (I = p.toArray(u)))
338
+ else if (f.isArray(u) && Xr(u) || (f.isFileList(u) || f.endsWith(w, "[]")) && (I = f.toArray(u)))
339
339
  return w = Bt(w), I.forEach(function(g, U) {
340
- !(p.isUndefined(g) || g === null) && e.append(
340
+ !(f.isUndefined(g) || g === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- o === !0 ? ft([w], U, a) : o === null ? w : w + "[]",
343
- f(g)
342
+ a === !0 ? ft([w], U, o) : a === null ? w : w + "[]",
343
+ x(g)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Xe(u) ? !0 : (e.append(ft(h, w, a), f(u)), !1);
347
+ return Xe(u) ? !0 : (e.append(ft(h, w, o), x(u)), !1);
348
348
  }
349
349
  const y = [], k = Object.assign(Zr, {
350
- defaultVisitor: x,
351
- convertValue: f,
350
+ defaultVisitor: p,
351
+ convertValue: x,
352
352
  isVisitable: Xe
353
353
  });
354
354
  function E(u, w) {
355
- if (!p.isUndefined(u)) {
355
+ if (!f.isUndefined(u)) {
356
356
  if (y.indexOf(u) !== -1)
357
357
  throw Error("Circular reference detected in " + w.join("."));
358
- y.push(u), p.forEach(u, function(I, C) {
359
- (!(p.isUndefined(I) || I === null) && i.call(
358
+ y.push(u), f.forEach(u, function(I, C) {
359
+ (!(f.isUndefined(I) || I === null) && i.call(
360
360
  e,
361
361
  I,
362
- p.isString(C) ? C.trim() : C,
362
+ f.isString(C) ? C.trim() : C,
363
363
  w,
364
364
  k
365
365
  )) === !0 && E(I, w ? w.concat(C) : [C]);
366
366
  }), y.pop();
367
367
  }
368
368
  }
369
- if (!p.isObject(t))
369
+ if (!f.isObject(t))
370
370
  throw new TypeError("data must be an object");
371
371
  return E(t), e;
372
372
  }
@@ -406,14 +406,14 @@ function Vt(t, e, n) {
406
406
  if (!e)
407
407
  return t;
408
408
  const s = n && n.encode || Qr;
409
- p.isFunction(n) && (n = {
409
+ f.isFunction(n) && (n = {
410
410
  serialize: n
411
411
  });
412
412
  const i = n && n.serialize;
413
- let a;
414
- if (i ? a = i(e, n) : a = p.isURLSearchParams(e) ? e.toString() : new st(e, n).toString(s), a) {
415
- const o = t.indexOf("#");
416
- o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
413
+ let o;
414
+ if (i ? o = i(e, n) : o = f.isURLSearchParams(e) ? e.toString() : new st(e, n).toString(s), o) {
415
+ const a = t.indexOf("#");
416
+ a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
417
417
  }
418
418
  return t;
419
419
  }
@@ -466,7 +466,7 @@ class ht {
466
466
  * @returns {void}
467
467
  */
468
468
  forEach(e) {
469
- p.forEach(this.handlers, function(s) {
469
+ f.forEach(this.handlers, function(s) {
470
470
  s !== null && e(s);
471
471
  });
472
472
  }
@@ -483,57 +483,57 @@ const Yt = {
483
483
  Blob: rn
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), an = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = it && window.location.href || "http://localhost", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), on = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", an = it && window.location.href || "http://localhost", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
489
  hasBrowserEnv: it,
490
490
  hasStandardBrowserEnv: sn,
491
- hasStandardBrowserWebWorkerEnv: an,
491
+ hasStandardBrowserWebWorkerEnv: on,
492
492
  navigator: Ze,
493
- origin: on
493
+ origin: an
494
494
  }, Symbol.toStringTag, { value: "Module" })), Q = {
495
495
  ...ln,
496
496
  ...nn
497
497
  };
498
498
  function cn(t, e) {
499
499
  return Me(t, new Q.classes.URLSearchParams(), {
500
- visitor: function(n, s, i, a) {
501
- return Q.isNode && p.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
500
+ visitor: function(n, s, i, o) {
501
+ return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...e
504
504
  });
505
505
  }
506
506
  function dn(t) {
507
- return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
507
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
508
508
  }
509
509
  function un(t) {
510
510
  const e = {}, n = Object.keys(t);
511
511
  let s;
512
512
  const i = n.length;
513
- let a;
513
+ let o;
514
514
  for (s = 0; s < i; s++)
515
- a = n[s], e[a] = t[a];
515
+ o = n[s], e[o] = t[o];
516
516
  return e;
517
517
  }
518
518
  function Kt(t) {
519
- function e(n, s, i, a) {
520
- let o = n[a++];
521
- if (o === "__proto__") return !0;
522
- const c = Number.isFinite(+o), d = a >= n.length;
523
- return o = !o && p.isArray(i) ? i.length : o, d ? (p.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !p.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && p.isArray(i[o]) && (i[o] = un(i[o])), !c);
519
+ function e(n, s, i, o) {
520
+ let a = n[o++];
521
+ if (a === "__proto__") return !0;
522
+ const c = Number.isFinite(+a), d = o >= n.length;
523
+ return a = !a && f.isArray(i) ? i.length : a, d ? (f.hasOwnProp(i, a) ? i[a] = [i[a], s] : i[a] = s, !c) : ((!i[a] || !f.isObject(i[a])) && (i[a] = []), e(n, s, i[a], o) && f.isArray(i[a]) && (i[a] = un(i[a])), !c);
524
524
  }
525
- if (p.isFormData(t) && p.isFunction(t.entries)) {
525
+ if (f.isFormData(t) && f.isFunction(t.entries)) {
526
526
  const n = {};
527
- return p.forEachEntry(t, (s, i) => {
527
+ return f.forEachEntry(t, (s, i) => {
528
528
  e(dn(s), i, n, 0);
529
529
  }), n;
530
530
  }
531
531
  return null;
532
532
  }
533
533
  function pn(t, e, n) {
534
- if (p.isString(t))
534
+ if (f.isString(t))
535
535
  try {
536
- return (e || JSON.parse)(t), p.trim(t);
536
+ return (e || JSON.parse)(t), f.trim(t);
537
537
  } catch (s) {
538
538
  if (s.name !== "SyntaxError")
539
539
  throw s;
@@ -544,20 +544,20 @@ const Ie = {
544
544
  transitional: Yt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, n) {
547
- const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = p.isObject(e);
548
- if (a && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
547
+ const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, o = f.isObject(e);
548
+ if (o && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
549
549
  return i ? JSON.stringify(Kt(e)) : e;
550
- if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e))
550
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
551
551
  return e;
552
- if (p.isArrayBufferView(e))
552
+ if (f.isArrayBufferView(e))
553
553
  return e.buffer;
554
- if (p.isURLSearchParams(e))
554
+ if (f.isURLSearchParams(e))
555
555
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
556
556
  let c;
557
- if (a) {
557
+ if (o) {
558
558
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
559
559
  return cn(e, this.formSerializer).toString();
560
- if ((c = p.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
560
+ if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
561
561
  const d = this.env && this.env.FormData;
562
562
  return Me(
563
563
  c ? { "files[]": e } : e,
@@ -566,18 +566,18 @@ const Ie = {
566
566
  );
567
567
  }
568
568
  }
569
- return a || i ? (n.setContentType("application/json", !1), pn(e)) : e;
569
+ return o || i ? (n.setContentType("application/json", !1), pn(e)) : e;
570
570
  }],
571
571
  transformResponse: [function(e) {
572
572
  const n = this.transitional || Ie.transitional, s = n && n.forcedJSONParsing, i = this.responseType === "json";
573
- if (p.isResponse(e) || p.isReadableStream(e))
573
+ if (f.isResponse(e) || f.isReadableStream(e))
574
574
  return e;
575
- if (e && p.isString(e) && (s && !this.responseType || i)) {
576
- const o = !(n && n.silentJSONParsing) && i;
575
+ if (e && f.isString(e) && (s && !this.responseType || i)) {
576
+ const a = !(n && n.silentJSONParsing) && i;
577
577
  try {
578
578
  return JSON.parse(e, this.parseReviver);
579
579
  } catch (c) {
580
- if (o)
580
+ if (a)
581
581
  throw c.name === "SyntaxError" ? $.from(c, $.ERR_BAD_RESPONSE, this, null, this.response) : c;
582
582
  }
583
583
  }
@@ -606,10 +606,10 @@ const Ie = {
606
606
  }
607
607
  }
608
608
  };
609
- p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
609
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
610
610
  Ie.headers[t] = {};
611
611
  });
612
- const fn = p.toObjectSet([
612
+ const fn = f.toObjectSet([
613
613
  "age",
614
614
  "authorization",
615
615
  "content-length",
@@ -631,15 +631,15 @@ const fn = p.toObjectSet([
631
631
  const e = {};
632
632
  let n, s, i;
633
633
  return t && t.split(`
634
- `).forEach(function(o) {
635
- i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), s = o.substring(i + 1).trim(), !(!n || e[n] && fn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
634
+ `).forEach(function(a) {
635
+ i = a.indexOf(":"), n = a.substring(0, i).trim().toLowerCase(), s = a.substring(i + 1).trim(), !(!n || e[n] && fn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
636
636
  }), e;
637
637
  }, mt = Symbol("internals");
638
638
  function Se(t) {
639
639
  return t && String(t).trim().toLowerCase();
640
640
  }
641
641
  function _e(t) {
642
- return t === !1 || t == null ? t : p.isArray(t) ? t.map(_e) : String(t);
642
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(_e) : String(t);
643
643
  }
644
644
  function hn(t) {
645
645
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -650,12 +650,12 @@ function hn(t) {
650
650
  }
651
651
  const mn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
652
652
  function He(t, e, n, s, i) {
653
- if (p.isFunction(s))
653
+ if (f.isFunction(s))
654
654
  return s.call(this, e, n);
655
- if (i && (e = n), !!p.isString(e)) {
656
- if (p.isString(s))
655
+ if (i && (e = n), !!f.isString(e)) {
656
+ if (f.isString(s))
657
657
  return e.indexOf(s) !== -1;
658
- if (p.isRegExp(s))
658
+ if (f.isRegExp(s))
659
659
  return s.test(e);
660
660
  }
661
661
  }
@@ -663,11 +663,11 @@ function gn(t) {
663
663
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
664
664
  }
665
665
  function yn(t, e) {
666
- const n = p.toCamelCase(" " + e);
666
+ const n = f.toCamelCase(" " + e);
667
667
  ["get", "set", "has"].forEach((s) => {
668
668
  Object.defineProperty(t, s + n, {
669
- value: function(i, a, o) {
670
- return this[s].call(this, e, i, a, o);
669
+ value: function(i, o, a) {
670
+ return this[s].call(this, e, i, o, a);
671
671
  },
672
672
  configurable: !0
673
673
  });
@@ -679,42 +679,42 @@ let re = class {
679
679
  }
680
680
  set(e, n, s) {
681
681
  const i = this;
682
- function a(c, d, f) {
683
- const x = Se(d);
684
- if (!x)
682
+ function o(c, d, x) {
683
+ const p = Se(d);
684
+ if (!p)
685
685
  throw new Error("header name must be a non-empty string");
686
- const y = p.findKey(i, x);
687
- (!y || i[y] === void 0 || f === !0 || f === void 0 && i[y] !== !1) && (i[y || d] = _e(c));
686
+ const y = f.findKey(i, p);
687
+ (!y || i[y] === void 0 || x === !0 || x === void 0 && i[y] !== !1) && (i[y || d] = _e(c));
688
688
  }
689
- const o = (c, d) => p.forEach(c, (f, x) => a(f, x, d));
690
- if (p.isPlainObject(e) || e instanceof this.constructor)
691
- o(e, n);
692
- else if (p.isString(e) && (e = e.trim()) && !mn(e))
693
- o(xn(e), n);
694
- else if (p.isObject(e) && p.isIterable(e)) {
695
- let c = {}, d, f;
696
- for (const x of e) {
697
- if (!p.isArray(x))
689
+ const a = (c, d) => f.forEach(c, (x, p) => o(x, p, d));
690
+ if (f.isPlainObject(e) || e instanceof this.constructor)
691
+ a(e, n);
692
+ else if (f.isString(e) && (e = e.trim()) && !mn(e))
693
+ a(xn(e), n);
694
+ else if (f.isObject(e) && f.isIterable(e)) {
695
+ let c = {}, d, x;
696
+ for (const p of e) {
697
+ if (!f.isArray(p))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- c[f = x[0]] = (d = c[f]) ? p.isArray(d) ? [...d, x[1]] : [d, x[1]] : x[1];
699
+ c[x = p[0]] = (d = c[x]) ? f.isArray(d) ? [...d, p[1]] : [d, p[1]] : p[1];
700
700
  }
701
- o(c, n);
701
+ a(c, n);
702
702
  } else
703
- e != null && a(n, e, s);
703
+ e != null && o(n, e, s);
704
704
  return this;
705
705
  }
706
706
  get(e, n) {
707
707
  if (e = Se(e), e) {
708
- const s = p.findKey(this, e);
708
+ const s = f.findKey(this, e);
709
709
  if (s) {
710
710
  const i = this[s];
711
711
  if (!n)
712
712
  return i;
713
713
  if (n === !0)
714
714
  return hn(i);
715
- if (p.isFunction(n))
715
+ if (f.isFunction(n))
716
716
  return n.call(this, i, s);
717
- if (p.isRegExp(n))
717
+ if (f.isRegExp(n))
718
718
  return n.exec(i);
719
719
  throw new TypeError("parser must be boolean|regexp|function");
720
720
  }
@@ -722,7 +722,7 @@ let re = class {
722
722
  }
723
723
  has(e, n) {
724
724
  if (e = Se(e), e) {
725
- const s = p.findKey(this, e);
725
+ const s = f.findKey(this, e);
726
726
  return !!(s && this[s] !== void 0 && (!n || He(this, this[s], s, n)));
727
727
  }
728
728
  return !1;
@@ -730,33 +730,33 @@ let re = class {
730
730
  delete(e, n) {
731
731
  const s = this;
732
732
  let i = !1;
733
- function a(o) {
734
- if (o = Se(o), o) {
735
- const c = p.findKey(s, o);
733
+ function o(a) {
734
+ if (a = Se(a), a) {
735
+ const c = f.findKey(s, a);
736
736
  c && (!n || He(s, s[c], c, n)) && (delete s[c], i = !0);
737
737
  }
738
738
  }
739
- return p.isArray(e) ? e.forEach(a) : a(e), i;
739
+ return f.isArray(e) ? e.forEach(o) : o(e), i;
740
740
  }
741
741
  clear(e) {
742
742
  const n = Object.keys(this);
743
743
  let s = n.length, i = !1;
744
744
  for (; s--; ) {
745
- const a = n[s];
746
- (!e || He(this, this[a], a, e, !0)) && (delete this[a], i = !0);
745
+ const o = n[s];
746
+ (!e || He(this, this[o], o, e, !0)) && (delete this[o], i = !0);
747
747
  }
748
748
  return i;
749
749
  }
750
750
  normalize(e) {
751
751
  const n = this, s = {};
752
- return p.forEach(this, (i, a) => {
753
- const o = p.findKey(s, a);
754
- if (o) {
755
- n[o] = _e(i), delete n[a];
752
+ return f.forEach(this, (i, o) => {
753
+ const a = f.findKey(s, o);
754
+ if (a) {
755
+ n[a] = _e(i), delete n[o];
756
756
  return;
757
757
  }
758
- const c = e ? gn(a) : String(a).trim();
759
- c !== a && delete n[a], n[c] = _e(i), s[c] = !0;
758
+ const c = e ? gn(o) : String(o).trim();
759
+ c !== o && delete n[o], n[c] = _e(i), s[c] = !0;
760
760
  }), this;
761
761
  }
762
762
  concat(...e) {
@@ -764,8 +764,8 @@ let re = class {
764
764
  }
765
765
  toJSON(e) {
766
766
  const n = /* @__PURE__ */ Object.create(null);
767
- return p.forEach(this, (s, i) => {
768
- s != null && s !== !1 && (n[i] = e && p.isArray(s) ? s.join(", ") : s);
767
+ return f.forEach(this, (s, i) => {
768
+ s != null && s !== !1 && (n[i] = e && f.isArray(s) ? s.join(", ") : s);
769
769
  }), n;
770
770
  }
771
771
  [Symbol.iterator]() {
@@ -792,15 +792,15 @@ let re = class {
792
792
  const s = (this[mt] = this[mt] = {
793
793
  accessors: {}
794
794
  }).accessors, i = this.prototype;
795
- function a(o) {
796
- const c = Se(o);
797
- s[c] || (yn(i, o), s[c] = !0);
795
+ function o(a) {
796
+ const c = Se(a);
797
+ s[c] || (yn(i, a), s[c] = !0);
798
798
  }
799
- return p.isArray(e) ? e.forEach(a) : a(e), this;
799
+ return f.isArray(e) ? e.forEach(o) : o(e), this;
800
800
  }
801
801
  };
802
802
  re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
- p.reduceDescriptors(re.prototype, ({ value: t }, e) => {
803
+ f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
804
804
  let n = e[0].toUpperCase() + e.slice(1);
805
805
  return {
806
806
  get: () => t,
@@ -809,13 +809,13 @@ p.reduceDescriptors(re.prototype, ({ value: t }, e) => {
809
809
  }
810
810
  };
811
811
  });
812
- p.freezeMethods(re);
812
+ f.freezeMethods(re);
813
813
  function Ve(t, e) {
814
814
  const n = this || Ie, s = e || n, i = re.from(s.headers);
815
- let a = s.data;
816
- return p.forEach(t, function(c) {
817
- a = c.call(n, a, i.normalize(), e ? e.status : void 0);
818
- }), i.normalize(), a;
815
+ let o = s.data;
816
+ return f.forEach(t, function(c) {
817
+ o = c.call(n, o, i.normalize(), e ? e.status : void 0);
818
+ }), i.normalize(), o;
819
819
  }
820
820
  function Jt(t) {
821
821
  return !!(t && t.__CANCEL__);
@@ -823,7 +823,7 @@ function Jt(t) {
823
823
  function ve(t, e, n) {
824
824
  $.call(this, t ?? "canceled", $.ERR_CANCELED, e, n), this.name = "CanceledError";
825
825
  }
826
- p.inherits(ve, $, {
826
+ f.inherits(ve, $, {
827
827
  __CANCEL__: !0
828
828
  });
829
829
  function Gt(t, e, n) {
@@ -843,45 +843,45 @@ function bn(t) {
843
843
  function wn(t, e) {
844
844
  t = t || 10;
845
845
  const n = new Array(t), s = new Array(t);
846
- let i = 0, a = 0, o;
846
+ let i = 0, o = 0, a;
847
847
  return e = e !== void 0 ? e : 1e3, function(d) {
848
- const f = Date.now(), x = s[a];
849
- o || (o = f), n[i] = d, s[i] = f;
850
- let y = a, k = 0;
848
+ const x = Date.now(), p = s[o];
849
+ a || (a = x), n[i] = d, s[i] = x;
850
+ let y = o, k = 0;
851
851
  for (; y !== i; )
852
852
  k += n[y++], y = y % t;
853
- if (i = (i + 1) % t, i === a && (a = (a + 1) % t), f - o < e)
853
+ if (i = (i + 1) % t, i === o && (o = (o + 1) % t), x - a < e)
854
854
  return;
855
- const E = x && f - x;
855
+ const E = p && x - p;
856
856
  return E ? Math.round(k * 1e3 / E) : void 0;
857
857
  };
858
858
  }
859
859
  function jn(t, e) {
860
- let n = 0, s = 1e3 / e, i, a;
861
- const o = (f, x = Date.now()) => {
862
- n = x, i = null, a && (clearTimeout(a), a = null), t(...f);
860
+ let n = 0, s = 1e3 / e, i, o;
861
+ const a = (x, p = Date.now()) => {
862
+ n = p, i = null, o && (clearTimeout(o), o = null), t(...x);
863
863
  };
864
- return [(...f) => {
865
- const x = Date.now(), y = x - n;
866
- y >= s ? o(f, x) : (i = f, a || (a = setTimeout(() => {
867
- a = null, o(i);
864
+ return [(...x) => {
865
+ const p = Date.now(), y = p - n;
866
+ y >= s ? a(x, p) : (i = x, o || (o = setTimeout(() => {
867
+ o = null, a(i);
868
868
  }, s - y)));
869
- }, () => i && o(i)];
869
+ }, () => i && a(i)];
870
870
  }
871
871
  const Ne = (t, e, n = 3) => {
872
872
  let s = 0;
873
873
  const i = wn(50, 250);
874
- return jn((a) => {
875
- const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, f = i(d), x = o <= c;
876
- s = o;
874
+ return jn((o) => {
875
+ const a = o.loaded, c = o.lengthComputable ? o.total : void 0, d = a - s, x = i(d), p = a <= c;
876
+ s = a;
877
877
  const y = {
878
- loaded: o,
878
+ loaded: a,
879
879
  total: c,
880
- progress: c ? o / c : void 0,
880
+ progress: c ? a / c : void 0,
881
881
  bytes: d,
882
- rate: f || void 0,
883
- estimated: f && c && x ? (c - o) / f : void 0,
884
- event: a,
882
+ rate: x || void 0,
883
+ estimated: x && c && p ? (c - a) / x : void 0,
884
+ event: o,
885
885
  lengthComputable: c != null,
886
886
  [e ? "download" : "upload"]: !0
887
887
  };
@@ -894,15 +894,15 @@ const Ne = (t, e, n = 3) => {
894
894
  total: t,
895
895
  loaded: s
896
896
  }), e[1]];
897
- }, yt = (t) => (...e) => p.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
897
+ }, yt = (t) => (...e) => f.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
898
898
  new URL(Q.origin),
899
899
  Q.navigator && /(msie|trident)/i.test(Q.navigator.userAgent)
900
900
  ) : () => !0, Sn = Q.hasStandardBrowserEnv ? (
901
901
  // Standard browser envs support document.cookie
902
902
  {
903
- write(t, e, n, s, i, a) {
904
- const o = [t + "=" + encodeURIComponent(e)];
905
- p.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), p.isString(s) && o.push("path=" + s), p.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
903
+ write(t, e, n, s, i, o) {
904
+ const a = [t + "=" + encodeURIComponent(e)];
905
+ f.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), f.isString(s) && a.push("path=" + s), f.isString(i) && a.push("domain=" + i), o === !0 && a.push("secure"), document.cookie = a.join("; ");
906
906
  },
907
907
  read(t) {
908
908
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -938,96 +938,96 @@ const bt = (t) => t instanceof re ? { ...t } : t;
938
938
  function me(t, e) {
939
939
  e = e || {};
940
940
  const n = {};
941
- function s(f, x, y, k) {
942
- return p.isPlainObject(f) && p.isPlainObject(x) ? p.merge.call({ caseless: k }, f, x) : p.isPlainObject(x) ? p.merge({}, x) : p.isArray(x) ? x.slice() : x;
941
+ function s(x, p, y, k) {
942
+ return f.isPlainObject(x) && f.isPlainObject(p) ? f.merge.call({ caseless: k }, x, p) : f.isPlainObject(p) ? f.merge({}, p) : f.isArray(p) ? p.slice() : p;
943
943
  }
944
- function i(f, x, y, k) {
945
- if (p.isUndefined(x)) {
946
- if (!p.isUndefined(f))
947
- return s(void 0, f, y, k);
948
- } else return s(f, x, y, k);
944
+ function i(x, p, y, k) {
945
+ if (f.isUndefined(p)) {
946
+ if (!f.isUndefined(x))
947
+ return s(void 0, x, y, k);
948
+ } else return s(x, p, y, k);
949
949
  }
950
- function a(f, x) {
951
- if (!p.isUndefined(x))
952
- return s(void 0, x);
950
+ function o(x, p) {
951
+ if (!f.isUndefined(p))
952
+ return s(void 0, p);
953
953
  }
954
- function o(f, x) {
955
- if (p.isUndefined(x)) {
956
- if (!p.isUndefined(f))
957
- return s(void 0, f);
958
- } else return s(void 0, x);
954
+ function a(x, p) {
955
+ if (f.isUndefined(p)) {
956
+ if (!f.isUndefined(x))
957
+ return s(void 0, x);
958
+ } else return s(void 0, p);
959
959
  }
960
- function c(f, x, y) {
960
+ function c(x, p, y) {
961
961
  if (y in e)
962
- return s(f, x);
962
+ return s(x, p);
963
963
  if (y in t)
964
- return s(void 0, f);
964
+ return s(void 0, x);
965
965
  }
966
966
  const d = {
967
- url: a,
968
- method: a,
969
- data: a,
970
- baseURL: o,
971
- transformRequest: o,
972
- transformResponse: o,
973
- paramsSerializer: o,
974
- timeout: o,
975
- timeoutMessage: o,
976
- withCredentials: o,
977
- withXSRFToken: o,
978
- adapter: o,
979
- responseType: o,
980
- xsrfCookieName: o,
981
- xsrfHeaderName: o,
982
- onUploadProgress: o,
983
- onDownloadProgress: o,
984
- decompress: o,
985
- maxContentLength: o,
986
- maxBodyLength: o,
987
- beforeRedirect: o,
988
- transport: o,
989
- httpAgent: o,
990
- httpsAgent: o,
991
- cancelToken: o,
992
- socketPath: o,
993
- responseEncoding: o,
967
+ url: o,
968
+ method: o,
969
+ data: o,
970
+ baseURL: a,
971
+ transformRequest: a,
972
+ transformResponse: a,
973
+ paramsSerializer: a,
974
+ timeout: a,
975
+ timeoutMessage: a,
976
+ withCredentials: a,
977
+ withXSRFToken: a,
978
+ adapter: a,
979
+ responseType: a,
980
+ xsrfCookieName: a,
981
+ xsrfHeaderName: a,
982
+ onUploadProgress: a,
983
+ onDownloadProgress: a,
984
+ decompress: a,
985
+ maxContentLength: a,
986
+ maxBodyLength: a,
987
+ beforeRedirect: a,
988
+ transport: a,
989
+ httpAgent: a,
990
+ httpsAgent: a,
991
+ cancelToken: a,
992
+ socketPath: a,
993
+ responseEncoding: a,
994
994
  validateStatus: c,
995
- headers: (f, x, y) => i(bt(f), bt(x), y, !0)
995
+ headers: (x, p, y) => i(bt(x), bt(p), y, !0)
996
996
  };
997
- return p.forEach(Object.keys({ ...t, ...e }), function(x) {
998
- const y = d[x] || i, k = y(t[x], e[x], x);
999
- p.isUndefined(k) && y !== c || (n[x] = k);
997
+ return f.forEach(Object.keys({ ...t, ...e }), function(p) {
998
+ const y = d[p] || i, k = y(t[p], e[p], p);
999
+ f.isUndefined(k) && y !== c || (n[p] = k);
1000
1000
  }), n;
1001
1001
  }
1002
1002
  const Zt = (t) => {
1003
1003
  const e = me({}, t);
1004
- let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: c } = e;
1005
- if (e.headers = o = re.from(o), e.url = Vt(Xt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
1004
+ let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: o, headers: a, auth: c } = e;
1005
+ if (e.headers = a = re.from(a), e.url = Vt(Xt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && a.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
- ), p.isFormData(n)) {
1008
+ ), f.isFormData(n)) {
1009
1009
  if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
1010
- o.setContentType(void 0);
1011
- else if (p.isFunction(n.getHeaders)) {
1012
- const d = n.getHeaders(), f = ["content-type", "content-length"];
1013
- Object.entries(d).forEach(([x, y]) => {
1014
- f.includes(x.toLowerCase()) && o.set(x, y);
1010
+ a.setContentType(void 0);
1011
+ else if (f.isFunction(n.getHeaders)) {
1012
+ const d = n.getHeaders(), x = ["content-type", "content-length"];
1013
+ Object.entries(d).forEach(([p, y]) => {
1014
+ x.includes(p.toLowerCase()) && a.set(p, y);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
- if (Q.hasStandardBrowserEnv && (s && p.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
1019
- const d = i && a && Sn.read(a);
1020
- d && o.set(i, d);
1018
+ if (Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
1019
+ const d = i && o && Sn.read(o);
1020
+ d && a.set(i, d);
1021
1021
  }
1022
1022
  return e;
1023
1023
  }, Cn = typeof XMLHttpRequest < "u", Tn = Cn && function(t) {
1024
1024
  return new Promise(function(n, s) {
1025
1025
  const i = Zt(t);
1026
- let a = i.data;
1027
- const o = re.from(i.headers).normalize();
1028
- let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = i, x, y, k, E, u;
1026
+ let o = i.data;
1027
+ const a = re.from(i.headers).normalize();
1028
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: x } = i, p, y, k, E, u;
1029
1029
  function w() {
1030
- E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(x), i.signal && i.signal.removeEventListener("abort", x);
1030
+ E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(p), i.signal && i.signal.removeEventListener("abort", p);
1031
1031
  }
1032
1032
  let h = new XMLHttpRequest();
1033
1033
  h.open(i.method.toUpperCase(), i.url, !0), h.timeout = i.timeout;
@@ -1066,40 +1066,40 @@ const Zt = (t) => {
1066
1066
  t,
1067
1067
  h
1068
1068
  )), h = null;
1069
- }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && p.forEach(o.toJSON(), function(U, N) {
1069
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(U, N) {
1070
1070
  h.setRequestHeader(N, U);
1071
- }), p.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), f && ([k, u] = Ne(f, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (x = (g) => {
1071
+ }), f.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), x && ([k, u] = Ne(x, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (p = (g) => {
1072
1072
  h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
1073
- }, i.cancelToken && i.cancelToken.subscribe(x), i.signal && (i.signal.aborted ? x() : i.signal.addEventListener("abort", x)));
1073
+ }, i.cancelToken && i.cancelToken.subscribe(p), i.signal && (i.signal.aborted ? p() : i.signal.addEventListener("abort", p)));
1074
1074
  const C = bn(i.url);
1075
1075
  if (C && Q.protocols.indexOf(C) === -1) {
1076
1076
  s(new $("Unsupported protocol " + C + ":", $.ERR_BAD_REQUEST, t));
1077
1077
  return;
1078
1078
  }
1079
- h.send(a || null);
1079
+ h.send(o || null);
1080
1080
  });
1081
1081
  }, Rn = (t, e) => {
1082
1082
  const { length: n } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || n) {
1084
1084
  let s = new AbortController(), i;
1085
- const a = function(f) {
1085
+ const o = function(x) {
1086
1086
  if (!i) {
1087
1087
  i = !0, c();
1088
- const x = f instanceof Error ? f : this.reason;
1089
- s.abort(x instanceof $ ? x : new ve(x instanceof Error ? x.message : x));
1088
+ const p = x instanceof Error ? x : this.reason;
1089
+ s.abort(p instanceof $ ? p : new ve(p instanceof Error ? p.message : p));
1090
1090
  }
1091
1091
  };
1092
- let o = e && setTimeout(() => {
1093
- o = null, a(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1092
+ let a = e && setTimeout(() => {
1093
+ a = null, o(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
- t && (o && clearTimeout(o), o = null, t.forEach((f) => {
1097
- f.unsubscribe ? f.unsubscribe(a) : f.removeEventListener("abort", a);
1096
+ t && (a && clearTimeout(a), a = null, t.forEach((x) => {
1097
+ x.unsubscribe ? x.unsubscribe(o) : x.removeEventListener("abort", o);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((f) => f.addEventListener("abort", a));
1100
+ t.forEach((x) => x.addEventListener("abort", o));
1101
1101
  const { signal: d } = s;
1102
- return d.unsubscribe = () => p.asap(c), d;
1102
+ return d.unsubscribe = () => f.asap(c), d;
1103
1103
  }
1104
1104
  }, Pn = function* (t, e) {
1105
1105
  let n = t.byteLength;
@@ -1131,25 +1131,25 @@ const Zt = (t) => {
1131
1131
  }
1132
1132
  }, wt = (t, e, n, s) => {
1133
1133
  const i = In(t, e);
1134
- let a = 0, o, c = (d) => {
1135
- o || (o = !0, s && s(d));
1134
+ let o = 0, a, c = (d) => {
1135
+ a || (a = !0, s && s(d));
1136
1136
  };
1137
1137
  return new ReadableStream({
1138
1138
  async pull(d) {
1139
1139
  try {
1140
- const { done: f, value: x } = await i.next();
1141
- if (f) {
1140
+ const { done: x, value: p } = await i.next();
1141
+ if (x) {
1142
1142
  c(), d.close();
1143
1143
  return;
1144
1144
  }
1145
- let y = x.byteLength;
1145
+ let y = p.byteLength;
1146
1146
  if (n) {
1147
- let k = a += y;
1147
+ let k = o += y;
1148
1148
  n(k);
1149
1149
  }
1150
- d.enqueue(new Uint8Array(x));
1151
- } catch (f) {
1152
- throw c(f), f;
1150
+ d.enqueue(new Uint8Array(p));
1151
+ } catch (x) {
1152
+ throw c(x), x;
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(d) {
@@ -1158,26 +1158,26 @@ const Zt = (t) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, jt = 64 * 1024, { isFunction: ze } = p, zn = (({ Request: t, Response: e }) => ({
1161
+ }, jt = 64 * 1024, { isFunction: Ae } = f, An = (({ Request: t, Response: e }) => ({
1162
1162
  Request: t,
1163
1163
  Response: e
1164
- }))(p.global), {
1164
+ }))(f.global), {
1165
1165
  ReadableStream: vt,
1166
1166
  TextEncoder: St
1167
- } = p.global, kt = (t, ...e) => {
1167
+ } = f.global, kt = (t, ...e) => {
1168
1168
  try {
1169
1169
  return !!t(...e);
1170
1170
  } catch {
1171
1171
  return !1;
1172
1172
  }
1173
- }, An = (t) => {
1174
- t = p.merge.call({
1173
+ }, zn = (t) => {
1174
+ t = f.merge.call({
1175
1175
  skipUndefined: !0
1176
- }, zn, t);
1177
- const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
1176
+ }, An, t);
1177
+ const { fetch: e, Request: n, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", o = Ae(n), a = Ae(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && ze(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && kt(() => {
1180
+ const c = i && Ae(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), x = o && c && kt(() => {
1181
1181
  let u = !1;
1182
1182
  const w = new n(Q.origin, {
1183
1183
  body: new vt(),
@@ -1187,8 +1187,8 @@ const Zt = (t) => {
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
1189
  return u && !w;
1190
- }), x = o && c && kt(() => p.isReadableStream(new s("").body)), y = {
1191
- stream: x && ((u) => u.body)
1190
+ }), p = a && c && kt(() => f.isReadableStream(new s("").body)), y = {
1191
+ stream: p && ((u) => u.body)
1192
1192
  };
1193
1193
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1194
1194
  !y[u] && (y[u] = (w, h) => {
@@ -1201,19 +1201,19 @@ const Zt = (t) => {
1201
1201
  const k = async (u) => {
1202
1202
  if (u == null)
1203
1203
  return 0;
1204
- if (p.isBlob(u))
1204
+ if (f.isBlob(u))
1205
1205
  return u.size;
1206
- if (p.isSpecCompliantForm(u))
1206
+ if (f.isSpecCompliantForm(u))
1207
1207
  return (await new n(Q.origin, {
1208
1208
  method: "POST",
1209
1209
  body: u
1210
1210
  }).arrayBuffer()).byteLength;
1211
- if (p.isArrayBufferView(u) || p.isArrayBuffer(u))
1211
+ if (f.isArrayBufferView(u) || f.isArrayBuffer(u))
1212
1212
  return u.byteLength;
1213
- if (p.isURLSearchParams(u) && (u = u + ""), p.isString(u))
1213
+ if (f.isURLSearchParams(u) && (u = u + ""), f.isString(u))
1214
1214
  return (await d(u)).byteLength;
1215
1215
  }, E = async (u, w) => {
1216
- const h = p.toFiniteNumber(u.getContentLength());
1216
+ const h = f.toFiniteNumber(u.getContentLength());
1217
1217
  return h ?? k(w);
1218
1218
  };
1219
1219
  return async (u) => {
@@ -1236,24 +1236,24 @@ const Zt = (t) => {
1236
1236
  const T = R && R.unsubscribe && (() => {
1237
1237
  R.unsubscribe();
1238
1238
  });
1239
- let z;
1239
+ let A;
1240
1240
  try {
1241
- if (b && f && h !== "get" && h !== "head" && (z = await E(q, I)) !== 0) {
1241
+ if (b && x && h !== "get" && h !== "head" && (A = await E(q, I)) !== 0) {
1242
1242
  let l = new n(w, {
1243
1243
  method: "POST",
1244
1244
  body: I,
1245
1245
  duplex: "half"
1246
1246
  }), m;
1247
- if (p.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1247
+ if (f.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1248
1248
  const [S, D] = gt(
1249
- z,
1249
+ A,
1250
1250
  Ne(yt(b))
1251
1251
  );
1252
1252
  I = wt(l.body, jt, S, D);
1253
1253
  }
1254
1254
  }
1255
- p.isString(O) || (O = O ? "include" : "omit");
1256
- const M = a && "credentials" in n.prototype, J = {
1255
+ f.isString(O) || (O = O ? "include" : "omit");
1256
+ const M = o && "credentials" in n.prototype, J = {
1257
1257
  ...X,
1258
1258
  signal: R,
1259
1259
  method: h.toUpperCase(),
@@ -1262,15 +1262,15 @@ const Zt = (t) => {
1262
1262
  duplex: "half",
1263
1263
  credentials: M ? O : void 0
1264
1264
  };
1265
- G = a && new n(w, J);
1266
- let H = await (a ? W(G, X) : W(w, J));
1267
- const F = x && (j === "stream" || j === "response");
1268
- if (x && (N || F && T)) {
1265
+ G = o && new n(w, J);
1266
+ let H = await (o ? W(G, X) : W(w, J));
1267
+ const L = p && (j === "stream" || j === "response");
1268
+ if (p && (N || L && T)) {
1269
1269
  const l = {};
1270
1270
  ["status", "statusText", "headers"].forEach((ne) => {
1271
1271
  l[ne] = H[ne];
1272
1272
  });
1273
- const m = p.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && gt(
1273
+ const m = f.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && gt(
1274
1274
  m,
1275
1275
  Ne(yt(N), !0)
1276
1276
  ) || [];
@@ -1282,8 +1282,8 @@ const Zt = (t) => {
1282
1282
  );
1283
1283
  }
1284
1284
  j = j || "text";
1285
- let Y = await y[p.findKey(y, j) || "text"](H, u);
1286
- return !F && T && T(), await new Promise((l, m) => {
1285
+ let Y = await y[f.findKey(y, j) || "text"](H, u);
1286
+ return !L && T && T(), await new Promise((l, m) => {
1287
1287
  Gt(l, m, {
1288
1288
  data: Y,
1289
1289
  headers: re.from(H.headers),
@@ -1304,15 +1304,15 @@ const Zt = (t) => {
1304
1304
  };
1305
1305
  }, Un = /* @__PURE__ */ new Map(), Qt = (t) => {
1306
1306
  let e = t ? t.env : {};
1307
- const { fetch: n, Request: s, Response: i } = e, a = [
1307
+ const { fetch: n, Request: s, Response: i } = e, o = [
1308
1308
  s,
1309
1309
  i,
1310
1310
  n
1311
1311
  ];
1312
- let o = a.length, c = o, d, f, x = Un;
1312
+ let a = o.length, c = a, d, x, p = Un;
1313
1313
  for (; c--; )
1314
- d = a[c], f = x.get(d), f === void 0 && x.set(d, f = c ? /* @__PURE__ */ new Map() : An(e)), x = f;
1315
- return f;
1314
+ d = o[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() : zn(e)), p = x;
1315
+ return x;
1316
1316
  };
1317
1317
  Qt();
1318
1318
  const Qe = {
@@ -1322,7 +1322,7 @@ const Qe = {
1322
1322
  get: Qt
1323
1323
  }
1324
1324
  };
1325
- p.forEach(Qe, (t, e) => {
1325
+ f.forEach(Qe, (t, e) => {
1326
1326
  if (t) {
1327
1327
  try {
1328
1328
  Object.defineProperty(t, "name", { value: e });
@@ -1331,28 +1331,28 @@ p.forEach(Qe, (t, e) => {
1331
1331
  Object.defineProperty(t, "adapterName", { value: e });
1332
1332
  }
1333
1333
  });
1334
- const Et = (t) => `- ${t}`, _n = (t) => p.isFunction(t) || t === null || t === !1, er = {
1334
+ const Et = (t) => `- ${t}`, _n = (t) => f.isFunction(t) || t === null || t === !1, er = {
1335
1335
  getAdapter: (t, e) => {
1336
- t = p.isArray(t) ? t : [t];
1336
+ t = f.isArray(t) ? t : [t];
1337
1337
  const { length: n } = t;
1338
1338
  let s, i;
1339
- const a = {};
1340
- for (let o = 0; o < n; o++) {
1341
- s = t[o];
1339
+ const o = {};
1340
+ for (let a = 0; a < n; a++) {
1341
+ s = t[a];
1342
1342
  let c;
1343
1343
  if (i = s, !_n(s) && (i = Qe[(c = String(s)).toLowerCase()], i === void 0))
1344
1344
  throw new $(`Unknown adapter '${c}'`);
1345
- if (i && (p.isFunction(i) || (i = i.get(e))))
1345
+ if (i && (f.isFunction(i) || (i = i.get(e))))
1346
1346
  break;
1347
- a[c || "#" + o] = i;
1347
+ o[c || "#" + a] = i;
1348
1348
  }
1349
1349
  if (!i) {
1350
- const o = Object.entries(a).map(
1351
- ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1350
+ const a = Object.entries(o).map(
1351
+ ([d, x]) => `adapter ${d} ` + (x === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
- let c = n ? o.length > 1 ? `since :
1354
- ` + o.map(Et).join(`
1355
- `) : " " + Et(o[0]) : "as no adapter specified";
1353
+ let c = n ? a.length > 1 ? `since :
1354
+ ` + a.map(Et).join(`
1355
+ `) : " " + Et(a[0]) : "as no adapter specified";
1356
1356
  throw new $(
1357
1357
  "There is no suitable adapter to dispatch the request " + c,
1358
1358
  "ERR_NOT_SUPPORT"
@@ -1392,21 +1392,21 @@ const tr = "1.12.2", We = {};
1392
1392
  });
1393
1393
  const Tt = {};
1394
1394
  We.transitional = function(e, n, s) {
1395
- function i(a, o) {
1396
- return "[Axios v" + tr + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
1395
+ function i(o, a) {
1396
+ return "[Axios v" + tr + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
1397
1397
  }
1398
- return (a, o, c) => {
1398
+ return (o, a, c) => {
1399
1399
  if (e === !1)
1400
1400
  throw new $(
1401
- i(o, " has been removed" + (n ? " in " + n : "")),
1401
+ i(a, " has been removed" + (n ? " in " + n : "")),
1402
1402
  $.ERR_DEPRECATED
1403
1403
  );
1404
- return n && !Tt[o] && (Tt[o] = !0, console.warn(
1404
+ return n && !Tt[a] && (Tt[a] = !0, console.warn(
1405
1405
  i(
1406
- o,
1406
+ a,
1407
1407
  " has been deprecated since v" + n + " and will be removed in the near future"
1408
1408
  )
1409
- )), e ? e(a, o, c) : !0;
1409
+ )), e ? e(o, a, c) : !0;
1410
1410
  };
1411
1411
  };
1412
1412
  We.spelling = function(e) {
@@ -1418,15 +1418,15 @@ function $n(t, e, n) {
1418
1418
  const s = Object.keys(t);
1419
1419
  let i = s.length;
1420
1420
  for (; i-- > 0; ) {
1421
- const a = s[i], o = e[a];
1422
- if (o) {
1423
- const c = t[a], d = c === void 0 || o(c, a, t);
1421
+ const o = s[i], a = e[o];
1422
+ if (a) {
1423
+ const c = t[o], d = c === void 0 || a(c, o, t);
1424
1424
  if (d !== !0)
1425
- throw new $("option " + a + " must be " + d, $.ERR_BAD_OPTION_VALUE);
1425
+ throw new $("option " + o + " must be " + d, $.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
1427
1427
  }
1428
1428
  if (n !== !0)
1429
- throw new $("Unknown option " + a, $.ERR_BAD_OPTION);
1429
+ throw new $("Unknown option " + o, $.ERR_BAD_OPTION);
1430
1430
  }
1431
1431
  }
1432
1432
  const $e = {
@@ -1455,10 +1455,10 @@ let xe = class {
1455
1455
  if (s instanceof Error) {
1456
1456
  let i = {};
1457
1457
  Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
1458
- const a = i.stack ? i.stack.replace(/^.+\n/, "") : "";
1458
+ const o = i.stack ? i.stack.replace(/^.+\n/, "") : "";
1459
1459
  try {
1460
- s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
- ` + a) : s.stack = a;
1460
+ s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
+ ` + o) : s.stack = o;
1462
1462
  } catch {
1463
1463
  }
1464
1464
  }
@@ -1467,12 +1467,12 @@ let xe = class {
1467
1467
  }
1468
1468
  _request(e, n) {
1469
1469
  typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = me(this.defaults, n);
1470
- const { transitional: s, paramsSerializer: i, headers: a } = n;
1470
+ const { transitional: s, paramsSerializer: i, headers: o } = n;
1471
1471
  s !== void 0 && $e.assertOptions(s, {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
1473
1473
  forcedJSONParsing: ce.transitional(ce.boolean),
1474
1474
  clarifyTimeoutError: ce.transitional(ce.boolean)
1475
- }, !1), i != null && (p.isFunction(i) ? n.paramsSerializer = {
1475
+ }, !1), i != null && (f.isFunction(i) ? n.paramsSerializer = {
1476
1476
  serialize: i
1477
1477
  } : $e.assertOptions(i, {
1478
1478
  encode: ce.function,
@@ -1481,31 +1481,31 @@ let xe = class {
1481
1481
  baseUrl: ce.spelling("baseURL"),
1482
1482
  withXsrfToken: ce.spelling("withXSRFToken")
1483
1483
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1484
- let o = a && p.merge(
1485
- a.common,
1486
- a[n.method]
1484
+ let a = o && f.merge(
1485
+ o.common,
1486
+ o[n.method]
1487
1487
  );
1488
- a && p.forEach(
1488
+ o && f.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
1490
  (u) => {
1491
- delete a[u];
1491
+ delete o[u];
1492
1492
  }
1493
- ), n.headers = re.concat(o, a);
1493
+ ), n.headers = re.concat(a, o);
1494
1494
  const c = [];
1495
1495
  let d = !0;
1496
1496
  this.interceptors.request.forEach(function(w) {
1497
1497
  typeof w.runWhen == "function" && w.runWhen(n) === !1 || (d = d && w.synchronous, c.unshift(w.fulfilled, w.rejected));
1498
1498
  });
1499
- const f = [];
1499
+ const x = [];
1500
1500
  this.interceptors.response.forEach(function(w) {
1501
- f.push(w.fulfilled, w.rejected);
1501
+ x.push(w.fulfilled, w.rejected);
1502
1502
  });
1503
- let x, y = 0, k;
1503
+ let p, y = 0, k;
1504
1504
  if (!d) {
1505
1505
  const u = [Ct.bind(this), void 0];
1506
- for (u.unshift(...c), u.push(...f), k = u.length, x = Promise.resolve(n); y < k; )
1507
- x = x.then(u[y++], u[y++]);
1508
- return x;
1506
+ for (u.unshift(...c), u.push(...x), k = u.length, p = Promise.resolve(n); y < k; )
1507
+ p = p.then(u[y++], u[y++]);
1508
+ return p;
1509
1509
  }
1510
1510
  k = c.length;
1511
1511
  let E = n;
@@ -1519,13 +1519,13 @@ let xe = class {
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- x = Ct.call(this, E);
1522
+ p = Ct.call(this, E);
1523
1523
  } catch (u) {
1524
1524
  return Promise.reject(u);
1525
1525
  }
1526
- for (y = 0, k = f.length; y < k; )
1527
- x = x.then(f[y++], f[y++]);
1528
- return x;
1526
+ for (y = 0, k = x.length; y < k; )
1527
+ p = p.then(x[y++], x[y++]);
1528
+ return p;
1529
1529
  }
1530
1530
  getUri(e) {
1531
1531
  e = me(this.defaults, e);
@@ -1533,7 +1533,7 @@ let xe = class {
1533
1533
  return Vt(n, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
- p.forEach(["delete", "get", "head", "options"], function(e) {
1536
+ f.forEach(["delete", "get", "head", "options"], function(e) {
1537
1537
  xe.prototype[e] = function(n, s) {
1538
1538
  return this.request(me(s || {}, {
1539
1539
  method: e,
@@ -1542,16 +1542,16 @@ p.forEach(["delete", "get", "head", "options"], function(e) {
1542
1542
  }));
1543
1543
  };
1544
1544
  });
1545
- p.forEach(["post", "put", "patch"], function(e) {
1545
+ f.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function n(s) {
1547
- return function(a, o, c) {
1547
+ return function(o, a, c) {
1548
1548
  return this.request(me(c || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
1552
1552
  } : {},
1553
- url: a,
1554
- data: o
1553
+ url: o,
1554
+ data: a
1555
1555
  }));
1556
1556
  };
1557
1557
  }
@@ -1562,26 +1562,26 @@ let Dn = class rr {
1562
1562
  if (typeof e != "function")
1563
1563
  throw new TypeError("executor must be a function.");
1564
1564
  let n;
1565
- this.promise = new Promise(function(a) {
1566
- n = a;
1565
+ this.promise = new Promise(function(o) {
1566
+ n = o;
1567
1567
  });
1568
1568
  const s = this;
1569
1569
  this.promise.then((i) => {
1570
1570
  if (!s._listeners) return;
1571
- let a = s._listeners.length;
1572
- for (; a-- > 0; )
1573
- s._listeners[a](i);
1571
+ let o = s._listeners.length;
1572
+ for (; o-- > 0; )
1573
+ s._listeners[o](i);
1574
1574
  s._listeners = null;
1575
1575
  }), this.promise.then = (i) => {
1576
- let a;
1577
- const o = new Promise((c) => {
1578
- s.subscribe(c), a = c;
1576
+ let o;
1577
+ const a = new Promise((c) => {
1578
+ s.subscribe(c), o = c;
1579
1579
  }).then(i);
1580
- return o.cancel = function() {
1581
- s.unsubscribe(a);
1582
- }, o;
1583
- }, e(function(a, o, c) {
1584
- s.reason || (s.reason = new ve(a, o, c), n(s.reason));
1580
+ return a.cancel = function() {
1581
+ s.unsubscribe(o);
1582
+ }, a;
1583
+ }, e(function(o, a, c) {
1584
+ s.reason || (s.reason = new ve(o, a, c), n(s.reason));
1585
1585
  });
1586
1586
  }
1587
1587
  /**
@@ -1635,8 +1635,8 @@ function Nn(t) {
1635
1635
  return t.apply(null, n);
1636
1636
  };
1637
1637
  }
1638
- function Fn(t) {
1639
- return p.isObject(t) && t.isAxiosError === !0;
1638
+ function Ln(t) {
1639
+ return f.isObject(t) && t.isAxiosError === !0;
1640
1640
  }
1641
1641
  const et = {
1642
1642
  Continue: 100,
@@ -1708,7 +1708,7 @@ Object.entries(et).forEach(([t, e]) => {
1708
1708
  });
1709
1709
  function nr(t) {
1710
1710
  const e = new xe(t), n = Ut(xe.prototype.request, e);
1711
- return p.extend(n, xe.prototype, e, { allOwnKeys: !0 }), p.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1711
+ return f.extend(n, xe.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1712
1712
  return nr(me(t, i));
1713
1713
  }, n;
1714
1714
  }
@@ -1725,10 +1725,10 @@ K.all = function(e) {
1725
1725
  return Promise.all(e);
1726
1726
  };
1727
1727
  K.spread = Nn;
1728
- K.isAxiosError = Fn;
1728
+ K.isAxiosError = Ln;
1729
1729
  K.mergeConfig = me;
1730
1730
  K.AxiosHeaders = re;
1731
- K.formToJSON = (t) => Kt(p.isHTMLForm(t) ? new FormData(t) : t);
1731
+ K.formToJSON = (t) => Kt(f.isHTMLForm(t) ? new FormData(t) : t);
1732
1732
  K.getAdapter = er.getAdapter;
1733
1733
  K.HttpStatusCode = et;
1734
1734
  K.default = K;
@@ -1747,8 +1747,8 @@ const {
1747
1747
  AxiosHeaders: ni,
1748
1748
  HttpStatusCode: si,
1749
1749
  formToJSON: ii,
1750
- getAdapter: ai,
1751
- mergeConfig: oi
1750
+ getAdapter: oi,
1751
+ mergeConfig: ai
1752
1752
  } = K;
1753
1753
  class li {
1754
1754
  baseUrl;
@@ -1781,25 +1781,25 @@ class li {
1781
1781
  * @param data Optional request body
1782
1782
  * @param extraHeaders Optional custom headers
1783
1783
  */
1784
- async request(e, n, s, i = {}, a = !1) {
1784
+ async request(e, n, s, i = {}, o = !1) {
1785
1785
  try {
1786
- const o = {
1786
+ const a = {
1787
1787
  ...this.appId ? { appId: this.appId } : {},
1788
1788
  ...s || {}
1789
1789
  };
1790
1790
  return (await this.client.request({
1791
1791
  url: n,
1792
1792
  method: e,
1793
- data: o,
1793
+ data: a,
1794
1794
  headers: i,
1795
- withCredentials: a
1795
+ withCredentials: o
1796
1796
  // 👈 override axios default
1797
1797
  })).data;
1798
- } catch (o) {
1799
- throw K.isAxiosError(o) ? {
1800
- message: o.response?.data?.message || o.message || "Request failed",
1801
- status: o.response?.status ?? 0
1802
- } : { message: o.message || "Unexpected error occurred" };
1798
+ } catch (a) {
1799
+ throw K.isAxiosError(a) ? {
1800
+ message: a.response?.data?.message || a.message || "Request failed",
1801
+ status: a.response?.status ?? 0
1802
+ } : { message: a.message || "Unexpected error occurred" };
1803
1803
  }
1804
1804
  }
1805
1805
  // ================= USERS =================
@@ -2084,7 +2084,7 @@ class li {
2084
2084
  throw new Error("searchUserDataByKeys: 'userId' is required");
2085
2085
  const i = new URLSearchParams(
2086
2086
  Object.entries(s).reduce(
2087
- (a, [o, c]) => (c != null && (a[o] = String(c)), a),
2087
+ (o, [a, c]) => (c != null && (o[a] = String(c)), o),
2088
2088
  {}
2089
2089
  )
2090
2090
  ).toString();
@@ -2098,15 +2098,27 @@ class li {
2098
2098
  );
2099
2099
  }
2100
2100
  /**
2101
- * Get all data objects for a user
2102
- * @param params requires userId
2101
+ * 📦 Get all data objects for a user
2102
+ *
2103
+ * Route:
2104
+ * GET /api/users/:id/data
2105
+ *
2106
+ * Features:
2107
+ * - Cursor pagination
2108
+ * - Load more support
2109
+ * - Limit control
2110
+ * - Future filter ready
2103
2111
  */
2104
2112
  async getUserData(e) {
2105
- const { userId: n } = e;
2106
- if (!n) throw new Error("getUserData: 'userId' is required");
2113
+ const { userId: n, limit: s = 20, cursor: i, type: o } = e;
2114
+ if (!n)
2115
+ throw new Error("getUserData: 'userId' is required");
2116
+ const a = `/users/${encodeURIComponent(n)}/data`, c = new URLSearchParams();
2117
+ c.append("limit", String(s)), i && c.append("cursor", i), o && c.append("type", o);
2118
+ const d = c.toString();
2107
2119
  return await this.request(
2108
2120
  "GET",
2109
- `/users/${n}/data`,
2121
+ d ? `${a}?${d}` : a,
2110
2122
  void 0,
2111
2123
  {},
2112
2124
  !1
@@ -2223,31 +2235,49 @@ class li {
2223
2235
  }
2224
2236
  /**
2225
2237
  * 👥 Get all users data
2226
- * Optional category filter
2227
2238
  *
2228
2239
  * Routes:
2229
2240
  * GET /api/app/:appId/users-data
2230
2241
  * GET /api/app/:appId/users-data/:category
2242
+ *
2243
+ * Features:
2244
+ * - Pagination
2245
+ * - Load More
2246
+ * - Category filtering
2231
2247
  */
2232
- async getAppUsersData(e) {
2248
+ async getAppUsersData(e = {}) {
2233
2249
  const n = this.appId;
2234
- if (!n) throw new Error("getUsersData: 'appId' is required");
2235
- const s = e ? `/app/${encodeURIComponent(n)}/users-data/${encodeURIComponent(e)}` : `/app/${encodeURIComponent(n)}/users-data`;
2236
- return await this.request("GET", s, void 0, {}, !1);
2250
+ if (!n)
2251
+ throw new Error("getAppUsersData: 'appId' is required");
2252
+ const { category: s, limit: i = 20, cursor: o } = e;
2253
+ let a = s ? `/app/${encodeURIComponent(n)}/users-data/${encodeURIComponent(s)}` : `/app/${encodeURIComponent(n)}/users-data`;
2254
+ const c = new URLSearchParams();
2255
+ i && c.append("limit", String(i)), o && c.append("cursor", o);
2256
+ const d = c.toString();
2257
+ return d && (a += `?${d}`), await this.request("GET", a, void 0, {}, !1);
2237
2258
  }
2238
2259
  /**
2239
- * 👥 Get all app users
2260
+ * 👥 Get all app users (Paginated + Load More + Filters)
2240
2261
  *
2241
2262
  * Route:
2242
2263
  * GET /api/app/:appId/users
2264
+ *
2265
+ * Features:
2266
+ * - Cursor pagination
2267
+ * - Limit control
2268
+ * - Load more support
2269
+ * - Optional filters (future-ready)
2243
2270
  */
2244
- async getAllAppUsers() {
2245
- const e = this.appId;
2246
- if (!e)
2271
+ async getAllAppUsers(e = {}) {
2272
+ const n = this.appId;
2273
+ if (!n)
2247
2274
  throw new Error("getAllAppUsers: 'appId' is required");
2275
+ const { limit: s = 20, cursor: i, search: o, role: a, isActive: c, isVerified: d } = e, x = `/app/${encodeURIComponent(n)}/users`, p = new URLSearchParams();
2276
+ p.append("limit", String(s)), i && p.append("cursor", i), o && p.append("search", o), a && p.append("role", a), typeof c == "boolean" && p.append("isActive", String(c)), typeof d == "boolean" && p.append("isVerified", String(d));
2277
+ const y = p.toString();
2248
2278
  return await this.request(
2249
2279
  "GET",
2250
- `/app/${encodeURIComponent(e)}/users`,
2280
+ y ? `${x}?${y}` : x,
2251
2281
  void 0,
2252
2282
  {},
2253
2283
  !1
@@ -2354,7 +2384,7 @@ class li {
2354
2384
  );
2355
2385
  }
2356
2386
  }
2357
- var Ae = { exports: {} }, ke = {};
2387
+ var ze = { exports: {} }, ke = {};
2358
2388
  /**
2359
2389
  * @license React
2360
2390
  * react-jsx-runtime.production.js
@@ -2365,23 +2395,23 @@ var Ae = { exports: {} }, ke = {};
2365
2395
  * LICENSE file in the root directory of this source tree.
2366
2396
  */
2367
2397
  var Rt;
2368
- function Ln() {
2398
+ function Fn() {
2369
2399
  if (Rt) return ke;
2370
2400
  Rt = 1;
2371
2401
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2372
- function n(s, i, a) {
2373
- var o = null;
2374
- if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
2375
- a = {};
2402
+ function n(s, i, o) {
2403
+ var a = null;
2404
+ if (o !== void 0 && (a = "" + o), i.key !== void 0 && (a = "" + i.key), "key" in i) {
2405
+ o = {};
2376
2406
  for (var c in i)
2377
- c !== "key" && (a[c] = i[c]);
2378
- } else a = i;
2379
- return i = a.ref, {
2407
+ c !== "key" && (o[c] = i[c]);
2408
+ } else o = i;
2409
+ return i = o.ref, {
2380
2410
  $$typeof: t,
2381
2411
  type: s,
2382
- key: o,
2412
+ key: a,
2383
2413
  ref: i !== void 0 ? i : null,
2384
- props: a
2414
+ props: o
2385
2415
  };
2386
2416
  }
2387
2417
  return ke.Fragment = e, ke.jsx = n, ke.jsxs = n, ke;
@@ -2477,10 +2507,10 @@ function qn() {
2477
2507
  var l = R.A;
2478
2508
  return l === null ? null : l.getOwner();
2479
2509
  }
2480
- function a() {
2510
+ function o() {
2481
2511
  return Error("react-stack-top-frame");
2482
2512
  }
2483
- function o(l) {
2513
+ function a(l) {
2484
2514
  if (G.call(l, "key")) {
2485
2515
  var m = Object.getOwnPropertyDescriptor(l, "key").get;
2486
2516
  if (m && m.isReactWarning) return !1;
@@ -2505,7 +2535,7 @@ function qn() {
2505
2535
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
2506
2536
  )), l = this.props.ref, l !== void 0 ? l : null;
2507
2537
  }
2508
- function f(l, m, S, D, ne, oe) {
2538
+ function x(l, m, S, D, ne, ae) {
2509
2539
  var B = S.ref;
2510
2540
  return l = {
2511
2541
  $$typeof: u,
@@ -2535,10 +2565,10 @@ function qn() {
2535
2565
  configurable: !1,
2536
2566
  enumerable: !1,
2537
2567
  writable: !0,
2538
- value: oe
2568
+ value: ae
2539
2569
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2540
2570
  }
2541
- function x(l, m, S, D, ne, oe) {
2571
+ function p(l, m, S, D, ne, ae) {
2542
2572
  var B = m.children;
2543
2573
  if (B !== void 0)
2544
2574
  if (D)
@@ -2553,8 +2583,8 @@ function qn() {
2553
2583
  else y(B);
2554
2584
  if (G.call(m, "key")) {
2555
2585
  B = t(l);
2556
- var le = Object.keys(m).filter(function(A) {
2557
- return A !== "key";
2586
+ var le = Object.keys(m).filter(function(z) {
2587
+ return z !== "key";
2558
2588
  });
2559
2589
  D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
2560
2590
  `A props object containing a "key" prop is being spread into JSX:
@@ -2569,7 +2599,7 @@ React keys must be passed directly to JSX without using spread:
2569
2599
  B
2570
2600
  ), Y[B + D] = !0);
2571
2601
  }
2572
- if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
2602
+ if (B = null, S !== void 0 && (n(S), B = "" + S), a(m) && (n(m.key), B = "" + m.key), "key" in m) {
2573
2603
  S = {};
2574
2604
  for (var ye in m)
2575
2605
  ye !== "key" && (S[ye] = m[ye]);
@@ -2577,13 +2607,13 @@ React keys must be passed directly to JSX without using spread:
2577
2607
  return B && c(
2578
2608
  S,
2579
2609
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2580
- ), f(
2610
+ ), x(
2581
2611
  l,
2582
2612
  B,
2583
2613
  S,
2584
2614
  i(),
2585
2615
  ne,
2586
- oe
2616
+ ae
2587
2617
  );
2588
2618
  }
2589
2619
  function y(l) {
@@ -2592,7 +2622,7 @@ React keys must be passed directly to JSX without using spread:
2592
2622
  function k(l) {
2593
2623
  return typeof l == "object" && l !== null && l.$$typeof === u;
2594
2624
  }
2595
- var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, z = console.createTask ? console.createTask : function() {
2625
+ var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, A = console.createTask ? console.createTask : function() {
2596
2626
  return null;
2597
2627
  };
2598
2628
  E = {
@@ -2602,34 +2632,34 @@ React keys must be passed directly to JSX without using spread:
2602
2632
  };
2603
2633
  var M, J = {}, H = E.react_stack_bottom_frame.bind(
2604
2634
  E,
2605
- a
2606
- )(), F = z(s(a)), Y = {};
2635
+ o
2636
+ )(), L = A(s(o)), Y = {};
2607
2637
  Ee.Fragment = h, Ee.jsx = function(l, m, S) {
2608
2638
  var D = 1e4 > R.recentlyCreatedOwnerStacks++;
2609
- return x(
2639
+ return p(
2610
2640
  l,
2611
2641
  m,
2612
2642
  S,
2613
2643
  !1,
2614
2644
  D ? Error("react-stack-top-frame") : H,
2615
- D ? z(s(l)) : F
2645
+ D ? A(s(l)) : L
2616
2646
  );
2617
2647
  }, Ee.jsxs = function(l, m, S) {
2618
2648
  var D = 1e4 > R.recentlyCreatedOwnerStacks++;
2619
- return x(
2649
+ return p(
2620
2650
  l,
2621
2651
  m,
2622
2652
  S,
2623
2653
  !0,
2624
2654
  D ? Error("react-stack-top-frame") : H,
2625
- D ? z(s(l)) : F
2655
+ D ? A(s(l)) : L
2626
2656
  );
2627
2657
  };
2628
2658
  })()), Ee;
2629
2659
  }
2630
2660
  var It;
2631
2661
  function Mn() {
2632
- return It || (It = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ln() : Ae.exports = qn()), Ae.exports;
2662
+ return It || (It = 1, process.env.NODE_ENV === "production" ? ze.exports = Fn() : ze.exports = qn()), ze.exports;
2633
2663
  }
2634
2664
  var r = Mn();
2635
2665
  /**
@@ -2672,15 +2702,15 @@ var Vn = {
2672
2702
  * This source code is licensed under the ISC license.
2673
2703
  * See the LICENSE file in the root directory of this source tree.
2674
2704
  */
2675
- const Yn = At(
2705
+ const Yn = zt(
2676
2706
  ({
2677
2707
  color: t = "currentColor",
2678
2708
  size: e = 24,
2679
2709
  strokeWidth: n = 2,
2680
2710
  absoluteStrokeWidth: s,
2681
2711
  className: i = "",
2682
- children: a,
2683
- iconNode: o,
2712
+ children: o,
2713
+ iconNode: a,
2684
2714
  ...c
2685
2715
  }, d) => Je(
2686
2716
  "svg",
@@ -2692,12 +2722,12 @@ const Yn = At(
2692
2722
  stroke: t,
2693
2723
  strokeWidth: s ? Number(n) * 24 / Number(e) : n,
2694
2724
  className: sr("lucide", i),
2695
- ...!a && !Hn(c) && { "aria-hidden": "true" },
2725
+ ...!o && !Hn(c) && { "aria-hidden": "true" },
2696
2726
  ...c
2697
2727
  },
2698
2728
  [
2699
- ...o.map(([f, x]) => Je(f, x)),
2700
- ...Array.isArray(a) ? a : [a]
2729
+ ...a.map(([x, p]) => Je(x, p)),
2730
+ ...Array.isArray(o) ? o : [o]
2701
2731
  ]
2702
2732
  )
2703
2733
  );
@@ -2707,10 +2737,10 @@ const Yn = At(
2707
2737
  * This source code is licensed under the ISC license.
2708
2738
  * See the LICENSE file in the root directory of this source tree.
2709
2739
  */
2710
- const L = (t, e) => {
2711
- const n = At(
2712
- ({ className: s, ...i }, a) => Je(Yn, {
2713
- ref: a,
2740
+ const F = (t, e) => {
2741
+ const n = zt(
2742
+ ({ className: s, ...i }, o) => Je(Yn, {
2743
+ ref: o,
2714
2744
  iconNode: e,
2715
2745
  className: sr(
2716
2746
  `lucide-${Wn(Ot(t))}`,
@@ -2737,7 +2767,7 @@ const Kn = [
2737
2767
  }
2738
2768
  ],
2739
2769
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2740
- ], Jn = L("badge-check", Kn);
2770
+ ], Jn = F("badge-check", Kn);
2741
2771
  /**
2742
2772
  * @license lucide-react v0.544.0 - ISC
2743
2773
  *
@@ -2753,14 +2783,14 @@ const Gn = [
2753
2783
  }
2754
2784
  ],
2755
2785
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
2756
- ], tt = L("camera", Gn);
2786
+ ], tt = F("camera", Gn);
2757
2787
  /**
2758
2788
  * @license lucide-react v0.544.0 - ISC
2759
2789
  *
2760
2790
  * This source code is licensed under the ISC license.
2761
2791
  * See the LICENSE file in the root directory of this source tree.
2762
2792
  */
2763
- const Xn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = L("chevron-down", Xn);
2793
+ const Xn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = F("chevron-down", Xn);
2764
2794
  /**
2765
2795
  * @license lucide-react v0.544.0 - ISC
2766
2796
  *
@@ -2771,7 +2801,7 @@ const Qn = [
2771
2801
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2772
2802
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2773
2803
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2774
- ], ie = L("circle-alert", Qn);
2804
+ ], ie = F("circle-alert", Qn);
2775
2805
  /**
2776
2806
  * @license lucide-react v0.544.0 - ISC
2777
2807
  *
@@ -2781,7 +2811,7 @@ const Qn = [
2781
2811
  const es = [
2782
2812
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2783
2813
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2784
- ], ue = L("circle-check-big", es);
2814
+ ], ue = F("circle-check-big", es);
2785
2815
  /**
2786
2816
  * @license lucide-react v0.544.0 - ISC
2787
2817
  *
@@ -2791,7 +2821,7 @@ const es = [
2791
2821
  const ts = [
2792
2822
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2793
2823
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2794
- ], Ke = L("circle-check", ts);
2824
+ ], Ke = F("circle-check", ts);
2795
2825
  /**
2796
2826
  * @license lucide-react v0.544.0 - ISC
2797
2827
  *
@@ -2802,7 +2832,7 @@ const rs = [
2802
2832
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2803
2833
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2804
2834
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2805
- ], ns = L("database", rs);
2835
+ ], ns = F("database", rs);
2806
2836
  /**
2807
2837
  * @license lucide-react v0.544.0 - ISC
2808
2838
  *
@@ -2813,14 +2843,14 @@ const ss = [
2813
2843
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2814
2844
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2815
2845
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2816
- ], is = L("ellipsis-vertical", ss);
2846
+ ], is = F("ellipsis-vertical", ss);
2817
2847
  /**
2818
2848
  * @license lucide-react v0.544.0 - ISC
2819
2849
  *
2820
2850
  * This source code is licensed under the ISC license.
2821
2851
  * See the LICENSE file in the root directory of this source tree.
2822
2852
  */
2823
- const as = [
2853
+ const os = [
2824
2854
  [
2825
2855
  "path",
2826
2856
  {
@@ -2837,14 +2867,14 @@ const as = [
2837
2867
  }
2838
2868
  ],
2839
2869
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2840
- ], at = L("eye-off", as);
2870
+ ], ot = F("eye-off", os);
2841
2871
  /**
2842
2872
  * @license lucide-react v0.544.0 - ISC
2843
2873
  *
2844
2874
  * This source code is licensed under the ISC license.
2845
2875
  * See the LICENSE file in the root directory of this source tree.
2846
2876
  */
2847
- const os = [
2877
+ const as = [
2848
2878
  [
2849
2879
  "path",
2850
2880
  {
@@ -2853,7 +2883,7 @@ const os = [
2853
2883
  }
2854
2884
  ],
2855
2885
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2856
- ], ot = L("eye", os);
2886
+ ], at = F("eye", as);
2857
2887
  /**
2858
2888
  * @license lucide-react v0.544.0 - ISC
2859
2889
  *
@@ -2869,7 +2899,7 @@ const ls = [
2869
2899
  key: "r6nss1"
2870
2900
  }
2871
2901
  ]
2872
- ], cs = L("house", ls);
2902
+ ], cs = F("house", ls);
2873
2903
  /**
2874
2904
  * @license lucide-react v0.544.0 - ISC
2875
2905
  *
@@ -2880,7 +2910,7 @@ const ds = [
2880
2910
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2881
2911
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2882
2912
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2883
- ], ir = L("image", ds);
2913
+ ], ir = F("image", ds);
2884
2914
  /**
2885
2915
  * @license lucide-react v0.544.0 - ISC
2886
2916
  *
@@ -2896,7 +2926,7 @@ const us = [
2896
2926
  }
2897
2927
  ],
2898
2928
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2899
- ], ar = L("key-round", us);
2929
+ ], or = F("key-round", us);
2900
2930
  /**
2901
2931
  * @license lucide-react v0.544.0 - ISC
2902
2932
  *
@@ -2907,7 +2937,7 @@ const ps = [
2907
2937
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
2908
2938
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2909
2939
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2910
- ], lt = L("key", ps);
2940
+ ], lt = F("key", ps);
2911
2941
  /**
2912
2942
  * @license lucide-react v0.544.0 - ISC
2913
2943
  *
@@ -2918,14 +2948,14 @@ const fs = [
2918
2948
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
2919
2949
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
2920
2950
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
2921
- ], xs = L("link-2", fs);
2951
+ ], xs = F("link-2", fs);
2922
2952
  /**
2923
2953
  * @license lucide-react v0.544.0 - ISC
2924
2954
  *
2925
2955
  * This source code is licensed under the ISC license.
2926
2956
  * See the LICENSE file in the root directory of this source tree.
2927
2957
  */
2928
- const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], se = L("loader-circle", hs);
2958
+ const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], se = F("loader-circle", hs);
2929
2959
  /**
2930
2960
  * @license lucide-react v0.544.0 - ISC
2931
2961
  *
@@ -2941,7 +2971,7 @@ const ms = [
2941
2971
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
2942
2972
  ["path", { d: "M2 12h4", key: "j09sii" }],
2943
2973
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
2944
- ], gs = L("loader", ms);
2974
+ ], gs = F("loader", ms);
2945
2975
  /**
2946
2976
  * @license lucide-react v0.544.0 - ISC
2947
2977
  *
@@ -2951,7 +2981,7 @@ const ms = [
2951
2981
  const ys = [
2952
2982
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2953
2983
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2954
- ], be = L("lock", ys);
2984
+ ], be = F("lock", ys);
2955
2985
  /**
2956
2986
  * @license lucide-react v0.544.0 - ISC
2957
2987
  *
@@ -2962,7 +2992,7 @@ const bs = [
2962
2992
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2963
2993
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2964
2994
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2965
- ], ct = L("log-out", bs);
2995
+ ], ct = F("log-out", bs);
2966
2996
  /**
2967
2997
  * @license lucide-react v0.544.0 - ISC
2968
2998
  *
@@ -2972,7 +3002,7 @@ const bs = [
2972
3002
  const ws = [
2973
3003
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2974
3004
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2975
- ], pe = L("mail", ws);
3005
+ ], pe = F("mail", ws);
2976
3006
  /**
2977
3007
  * @license lucide-react v0.544.0 - ISC
2978
3008
  *
@@ -2988,7 +3018,7 @@ const js = [
2988
3018
  }
2989
3019
  ],
2990
3020
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2991
- ], vs = L("map-pin", js);
3021
+ ], vs = F("map-pin", js);
2992
3022
  /**
2993
3023
  * @license lucide-react v0.544.0 - ISC
2994
3024
  *
@@ -3004,7 +3034,7 @@ const Ss = [
3004
3034
  key: "1a8usu"
3005
3035
  }
3006
3036
  ]
3007
- ], ks = L("pen-line", Ss);
3037
+ ], ks = F("pen-line", Ss);
3008
3038
  /**
3009
3039
  * @license lucide-react v0.544.0 - ISC
3010
3040
  *
@@ -3019,7 +3049,7 @@ const Es = [
3019
3049
  key: "9njp5v"
3020
3050
  }
3021
3051
  ]
3022
- ], Cs = L("phone", Es);
3052
+ ], Cs = F("phone", Es);
3023
3053
  /**
3024
3054
  * @license lucide-react v0.544.0 - ISC
3025
3055
  *
@@ -3036,7 +3066,7 @@ const Ts = [
3036
3066
  ],
3037
3067
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
3038
3068
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
3039
- ], Rs = L("save", Ts);
3069
+ ], Rs = F("save", Ts);
3040
3070
  /**
3041
3071
  * @license lucide-react v0.544.0 - ISC
3042
3072
  *
@@ -3052,7 +3082,7 @@ const Ps = [
3052
3082
  }
3053
3083
  ],
3054
3084
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
3055
- ], dt = L("send", Ps);
3085
+ ], dt = F("send", Ps);
3056
3086
  /**
3057
3087
  * @license lucide-react v0.544.0 - ISC
3058
3088
  *
@@ -3068,14 +3098,14 @@ const Is = [
3068
3098
  }
3069
3099
  ],
3070
3100
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
3071
- ], Os = L("settings", Is);
3101
+ ], Os = F("settings", Is);
3072
3102
  /**
3073
3103
  * @license lucide-react v0.544.0 - ISC
3074
3104
  *
3075
3105
  * This source code is licensed under the ISC license.
3076
3106
  * See the LICENSE file in the root directory of this source tree.
3077
3107
  */
3078
- const zs = [
3108
+ const As = [
3079
3109
  [
3080
3110
  "path",
3081
3111
  {
@@ -3083,20 +3113,20 @@ const zs = [
3083
3113
  key: "oel41y"
3084
3114
  }
3085
3115
  ]
3086
- ], rt = L("shield", zs);
3116
+ ], rt = F("shield", As);
3087
3117
  /**
3088
3118
  * @license lucide-react v0.544.0 - ISC
3089
3119
  *
3090
3120
  * This source code is licensed under the ISC license.
3091
3121
  * See the LICENSE file in the root directory of this source tree.
3092
3122
  */
3093
- const As = [
3123
+ const zs = [
3094
3124
  ["path", { d: "M10 11v6", key: "nco0om" }],
3095
3125
  ["path", { d: "M14 11v6", key: "outv1u" }],
3096
3126
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
3097
3127
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
3098
3128
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
3099
- ], De = L("trash-2", As);
3129
+ ], De = F("trash-2", zs);
3100
3130
  /**
3101
3131
  * @license lucide-react v0.544.0 - ISC
3102
3132
  *
@@ -3113,7 +3143,7 @@ const Us = [
3113
3143
  ],
3114
3144
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3115
3145
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3116
- ], zt = L("triangle-alert", Us);
3146
+ ], At = F("triangle-alert", Us);
3117
3147
  /**
3118
3148
  * @license lucide-react v0.544.0 - ISC
3119
3149
  *
@@ -3125,7 +3155,7 @@ const _s = [
3125
3155
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
3126
3156
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
3127
3157
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
3128
- ], $s = L("user-x", _s);
3158
+ ], $s = F("user-x", _s);
3129
3159
  /**
3130
3160
  * @license lucide-react v0.544.0 - ISC
3131
3161
  *
@@ -3135,7 +3165,7 @@ const _s = [
3135
3165
  const Ds = [
3136
3166
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3137
3167
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3138
- ], he = L("user", Ds);
3168
+ ], he = F("user", Ds);
3139
3169
  /**
3140
3170
  * @license lucide-react v0.544.0 - ISC
3141
3171
  *
@@ -3145,11 +3175,11 @@ const Ds = [
3145
3175
  const Ns = [
3146
3176
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3147
3177
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3148
- ], Oe = L("x", Ns), or = cr(null), ci = ({
3178
+ ], Oe = F("x", Ns), ar = cr(null), ci = ({
3149
3179
  authix: t,
3150
3180
  children: e
3151
- }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
3152
- const t = dr(or);
3181
+ }) => /* @__PURE__ */ r.jsx(ar.Provider, { value: t, children: e }), ge = () => {
3182
+ const t = dr(ar);
3153
3183
  if (!t)
3154
3184
  throw new Error("useAuthix must be used inside <AuthixProvider />");
3155
3185
  return t;
@@ -3159,15 +3189,15 @@ const Ns = [
3159
3189
  title: n = "Create Your Account",
3160
3190
  subtitle: s = "Join our platform today",
3161
3191
  primaryColor: i = "#00C214",
3162
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3163
- darkMode: o = !0,
3192
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3193
+ darkMode: a = !0,
3164
3194
  // Only avatar is optional
3165
3195
  showAvatar: c = !1,
3166
3196
  roles: d = [],
3167
3197
  // 🔥 FIXED
3168
- showRoleSelector: f = !1,
3198
+ showRoleSelector: x = !1,
3169
3199
  // 🔥 FIXED
3170
- loginUrl: x,
3200
+ loginUrl: p,
3171
3201
  onSuccess: y,
3172
3202
  onError: k
3173
3203
  }) => {
@@ -3177,21 +3207,21 @@ const Ns = [
3177
3207
  password: "",
3178
3208
  role: d.length ? d[0] : "user",
3179
3209
  ...c && { avatarUrl: "" }
3180
- }, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W = o ? "#ffffff" : "#111827", R = o ? "#a1a1aa" : "#6b7280", G = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3210
+ }, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W = a ? "#ffffff" : "#111827", R = a ? "#a1a1aa" : "#6b7280", G = a ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = a ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3181
3211
  Ce.useEffect(() => {
3182
3212
  if (typeof window < "u") {
3183
- const F = () => X(window.innerWidth < 768);
3184
- return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
3213
+ const L = () => X(window.innerWidth < 768);
3214
+ return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
3185
3215
  }
3186
3216
  }, []);
3187
- const z = (F) => {
3188
- const { name: Y, value: l } = F.target;
3217
+ const A = (L) => {
3218
+ const { name: Y, value: l } = L.target;
3189
3219
  h((m) => ({ ...m, [Y]: l })), j[Y] && q((m) => ({ ...m, [Y]: void 0 }));
3190
3220
  }, M = () => {
3191
- const F = {};
3192
- return w.name.trim() || (F.name = "Name is required"), w.email.trim() ? /\S+@\S+\.\S+/.test(w.email) || (F.email = "Invalid email address") : F.email = "Email is required", w.password ? w.password.length < 6 && (F.password = "Password must be at least 6 characters") : F.password = "Password is required", q(F), Object.keys(F).length === 0;
3193
- }, J = async (F) => {
3194
- if (F.preventDefault(), !!M()) {
3221
+ const L = {};
3222
+ return w.name.trim() || (L.name = "Name is required"), w.email.trim() ? /\S+@\S+\.\S+/.test(w.email) || (L.email = "Invalid email address") : L.email = "Email is required", w.password ? w.password.length < 6 && (L.password = "Password must be at least 6 characters") : L.password = "Password is required", q(L), Object.keys(L).length === 0;
3223
+ }, J = async (L) => {
3224
+ if (L.preventDefault(), !!M()) {
3195
3225
  U(!0), b(null);
3196
3226
  try {
3197
3227
  const Y = {
@@ -3246,7 +3276,7 @@ const Ns = [
3246
3276
  flexDirection: "column",
3247
3277
  borderRadius: "10px",
3248
3278
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3249
- backgroundColor: o ? "#000000" : "#ffffff",
3279
+ backgroundColor: a ? "#000000" : "#ffffff",
3250
3280
  padding: O ? "30px 24px" : "20px 28px"
3251
3281
  },
3252
3282
  children: [
@@ -3328,8 +3358,8 @@ const Ns = [
3328
3358
  objectFit: "cover",
3329
3359
  border: `2px solid ${i}30`
3330
3360
  },
3331
- onError: (F) => {
3332
- const Y = F.target;
3361
+ onError: (L) => {
3362
+ const Y = L.target;
3333
3363
  Y.style.display = "none";
3334
3364
  }
3335
3365
  }
@@ -3342,7 +3372,7 @@ const Ns = [
3342
3372
  onSubmit: J,
3343
3373
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3344
3374
  children: [
3345
- f && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3375
+ x && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3346
3376
  "div",
3347
3377
  {
3348
3378
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3381,9 +3411,9 @@ const Ns = [
3381
3411
  left: 0,
3382
3412
  width: "50%",
3383
3413
  height: "100%",
3384
- backgroundColor: o ? "#000000" : "#ffffff",
3414
+ backgroundColor: a ? "#000000" : "#ffffff",
3385
3415
  // dark/light background
3386
- boxShadow: o ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
3416
+ boxShadow: a ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
3387
3417
  // subtle shadow
3388
3418
  borderRadius: "10px",
3389
3419
  transition: "transform 0.3s ease, background-color 0.3s ease",
@@ -3396,13 +3426,13 @@ const Ns = [
3396
3426
  "button",
3397
3427
  {
3398
3428
  type: "button",
3399
- onClick: () => h((F) => ({ ...F, role: d[0] })),
3429
+ onClick: () => h((L) => ({ ...L, role: d[0] })),
3400
3430
  style: {
3401
3431
  flex: 1,
3402
3432
  zIndex: 10,
3403
3433
  border: "none",
3404
3434
  background: "transparent",
3405
- color: w.role === d[0] ? i : o ? "#9ca3af" : "#6b7280",
3435
+ color: w.role === d[0] ? i : a ? "#9ca3af" : "#6b7280",
3406
3436
  // theme-aware inactive color
3407
3437
  fontWeight: w.role === d[0] ? 600 : 500,
3408
3438
  fontSize: "14px",
@@ -3418,13 +3448,13 @@ const Ns = [
3418
3448
  "button",
3419
3449
  {
3420
3450
  type: "button",
3421
- onClick: () => h((F) => ({ ...F, role: d[1] })),
3451
+ onClick: () => h((L) => ({ ...L, role: d[1] })),
3422
3452
  style: {
3423
3453
  flex: 1,
3424
3454
  zIndex: 10,
3425
3455
  border: "none",
3426
3456
  background: "transparent",
3427
- color: w.role === d[1] ? i : o ? "#9ca3af" : "#6b7280",
3457
+ color: w.role === d[1] ? i : a ? "#9ca3af" : "#6b7280",
3428
3458
  fontWeight: w.role === d[1] ? 600 : 500,
3429
3459
  fontSize: "14px",
3430
3460
  display: "flex",
@@ -3476,7 +3506,7 @@ const Ns = [
3476
3506
  name: "name",
3477
3507
  placeholder: "Enter your full name",
3478
3508
  value: w.name,
3479
- onChange: z,
3509
+ onChange: A,
3480
3510
  style: {
3481
3511
  ...H,
3482
3512
  borderColor: j.name ? "#ef4444" : T
@@ -3531,7 +3561,7 @@ const Ns = [
3531
3561
  name: "email",
3532
3562
  placeholder: "Enter your email address",
3533
3563
  value: w.email,
3534
- onChange: z,
3564
+ onChange: A,
3535
3565
  style: {
3536
3566
  ...H,
3537
3567
  borderColor: j.email ? "#ef4444" : T
@@ -3586,7 +3616,7 @@ const Ns = [
3586
3616
  name: "password",
3587
3617
  placeholder: "Create a secure password",
3588
3618
  value: w.password,
3589
- onChange: z,
3619
+ onChange: A,
3590
3620
  style: {
3591
3621
  ...H,
3592
3622
  borderColor: j.password ? "#ef4444" : T
@@ -3609,7 +3639,7 @@ const Ns = [
3609
3639
  cursor: "pointer",
3610
3640
  padding: "4px"
3611
3641
  },
3612
- children: I ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
3642
+ children: I ? /* @__PURE__ */ r.jsx(ot, { size: 20 }) : /* @__PURE__ */ r.jsx(at, { size: 20 })
3613
3643
  }
3614
3644
  )
3615
3645
  ] }),
@@ -3664,7 +3694,7 @@ const Ns = [
3664
3694
  name: "avatarUrl",
3665
3695
  placeholder: "Paste your avatar image URL",
3666
3696
  value: w.avatarUrl || "",
3667
- onChange: z,
3697
+ onChange: A,
3668
3698
  style: H
3669
3699
  }
3670
3700
  )
@@ -3672,7 +3702,7 @@ const Ns = [
3672
3702
  ]
3673
3703
  }
3674
3704
  ),
3675
- x && /* @__PURE__ */ r.jsx(
3705
+ p && /* @__PURE__ */ r.jsx(
3676
3706
  "div",
3677
3707
  {
3678
3708
  style: {
@@ -3683,7 +3713,7 @@ const Ns = [
3683
3713
  children: /* @__PURE__ */ r.jsx(
3684
3714
  "a",
3685
3715
  {
3686
- href: x,
3716
+ href: p,
3687
3717
  style: {
3688
3718
  color: i,
3689
3719
  textDecoration: "none",
@@ -3721,7 +3751,7 @@ const Ns = [
3721
3751
  disabled: g,
3722
3752
  style: {
3723
3753
  padding: "12px",
3724
- background: a,
3754
+ background: o,
3725
3755
  color: "#fff",
3726
3756
  border: "none",
3727
3757
  borderRadius: "10px",
@@ -3784,17 +3814,17 @@ const Ns = [
3784
3814
  title: n = "Sign In to Your Account",
3785
3815
  subtitle: s = "Welcome back! Please enter your details",
3786
3816
  primaryColor: i = "#00C214",
3787
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3788
- darkMode: o = !0,
3817
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3818
+ darkMode: a = !0,
3789
3819
  signupUrl: c,
3790
3820
  onSuccess: d,
3791
- onError: f
3821
+ onError: x
3792
3822
  }) => {
3793
- const x = ge(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [I, C] = P(!1), [g, U] = P(null), [N, b] = P(""), [j, q] = P(""), [O, X] = P({
3823
+ const p = ge(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [I, C] = P(!1), [g, U] = P(null), [N, b] = P(""), [j, q] = P(""), [O, X] = P({
3794
3824
  email: "",
3795
3825
  otp: "",
3796
3826
  newPassword: ""
3797
- }), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", z = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", M = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3827
+ }), [W, R] = P(!1), G = a ? "#ffffff" : "#111827", T = a ? "#a1a1aa" : "#6b7280", A = a ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", M = a ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3798
3828
  Ce.useEffect(() => {
3799
3829
  if (typeof window < "u") {
3800
3830
  const m = () => R(window.innerWidth < 768);
@@ -3804,26 +3834,26 @@ const Ns = [
3804
3834
  const J = async (m) => {
3805
3835
  m.preventDefault(), C(!0), U(null);
3806
3836
  try {
3807
- const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
3837
+ const S = await p.loginUser({ email: N, password: j }), { user: D } = S;
3808
3838
  if (!D)
3809
3839
  throw new Error(S.message || "Login failed");
3810
3840
  if (typeof document < "u") {
3811
- const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
3812
- B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
3841
+ const ne = "a_s_b", ae = "true", B = /* @__PURE__ */ new Date();
3842
+ B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${ae}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
3813
3843
  }
3814
3844
  U({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3815
3845
  } catch (S) {
3816
3846
  const D = S.message || "Login failed";
3817
- U({ type: "error", text: D }), f?.(S);
3847
+ U({ type: "error", text: D }), x?.(S);
3818
3848
  } finally {
3819
3849
  C(!1);
3820
3850
  }
3821
3851
  }, H = (m) => {
3822
3852
  X({ ...O, [m.target.name]: m.target.value });
3823
- }, F = async (m) => {
3853
+ }, L = async (m) => {
3824
3854
  m.preventDefault(), C(!0), U(null);
3825
3855
  try {
3826
- const S = await x.requestResetUserPasswordOTP({
3856
+ const S = await p.requestResetUserPasswordOTP({
3827
3857
  email: O.email
3828
3858
  });
3829
3859
  S.success ? (u(2), U({
@@ -3844,7 +3874,7 @@ const Ns = [
3844
3874
  }, Y = async (m) => {
3845
3875
  m.preventDefault(), C(!0), U(null);
3846
3876
  try {
3847
- const S = await x.resetUserPassword({
3877
+ const S = await p.resetUserPassword({
3848
3878
  email: O.email,
3849
3879
  otp: O.otp,
3850
3880
  newPassword: O.newPassword
@@ -3864,7 +3894,7 @@ const Ns = [
3864
3894
  }, l = {
3865
3895
  width: "100%",
3866
3896
  padding: W ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3867
- backgroundColor: z,
3897
+ backgroundColor: A,
3868
3898
  border: `1px solid ${M}`,
3869
3899
  borderRadius: "10px",
3870
3900
  color: G,
@@ -3891,7 +3921,7 @@ const Ns = [
3891
3921
  flexDirection: "column",
3892
3922
  borderRadius: "10px",
3893
3923
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3894
- backgroundColor: o ? "#000000" : "#ffffff",
3924
+ backgroundColor: a ? "#000000" : "#ffffff",
3895
3925
  padding: W ? "30px 24px" : "18px 28px"
3896
3926
  },
3897
3927
  children: [
@@ -3971,7 +4001,7 @@ const Ns = [
3971
4001
  style: {
3972
4002
  fontSize: "14px",
3973
4003
  fontWeight: 500,
3974
- color: o ? "#ffffff" : "#000000"
4004
+ color: a ? "#ffffff" : "#000000"
3975
4005
  },
3976
4006
  children: "Email Address"
3977
4007
  }
@@ -4017,7 +4047,7 @@ const Ns = [
4017
4047
  style: {
4018
4048
  fontSize: "14px",
4019
4049
  fontWeight: 500,
4020
- color: o ? "#ffffff" : "#000000"
4050
+ color: a ? "#ffffff" : "#000000"
4021
4051
  },
4022
4052
  children: "Password"
4023
4053
  }
@@ -4063,7 +4093,7 @@ const Ns = [
4063
4093
  color: T,
4064
4094
  cursor: "pointer"
4065
4095
  },
4066
- children: w ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
4096
+ children: w ? /* @__PURE__ */ r.jsx(ot, { size: 20 }) : /* @__PURE__ */ r.jsx(at, { size: 20 })
4067
4097
  }
4068
4098
  )
4069
4099
  ] })
@@ -4116,7 +4146,7 @@ const Ns = [
4116
4146
  disabled: I,
4117
4147
  style: {
4118
4148
  padding: "12px",
4119
- background: a,
4149
+ background: o,
4120
4150
  color: "#fff",
4121
4151
  border: "none",
4122
4152
  borderRadius: "10px",
@@ -4132,7 +4162,7 @@ const Ns = [
4132
4162
  y === "forgot" && /* @__PURE__ */ r.jsxs(
4133
4163
  "form",
4134
4164
  {
4135
- onSubmit: E === 1 ? F : Y,
4165
+ onSubmit: E === 1 ? L : Y,
4136
4166
  style: { display: "flex", flexDirection: "column", gap: "14px" },
4137
4167
  children: [
4138
4168
  E === 1 ? /* @__PURE__ */ r.jsxs(
@@ -4147,7 +4177,7 @@ const Ns = [
4147
4177
  style: {
4148
4178
  fontSize: "14px",
4149
4179
  fontWeight: 500,
4150
- color: o ? "#ffffff" : "#000000"
4180
+ color: a ? "#ffffff" : "#000000"
4151
4181
  },
4152
4182
  children: "Email Address"
4153
4183
  }
@@ -4198,14 +4228,14 @@ const Ns = [
4198
4228
  style: {
4199
4229
  fontSize: "14px",
4200
4230
  fontWeight: 500,
4201
- color: o ? "#ffffff" : "#000000"
4231
+ color: a ? "#ffffff" : "#000000"
4202
4232
  },
4203
4233
  children: "One-Time Password (OTP)"
4204
4234
  }
4205
4235
  ),
4206
4236
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4207
4237
  /* @__PURE__ */ r.jsx(
4208
- ar,
4238
+ or,
4209
4239
  {
4210
4240
  size: 20,
4211
4241
  style: {
@@ -4249,7 +4279,7 @@ const Ns = [
4249
4279
  style: {
4250
4280
  fontSize: "14px",
4251
4281
  fontWeight: 500,
4252
- color: o ? "#ffffff" : "#000000"
4282
+ color: a ? "#ffffff" : "#000000"
4253
4283
  },
4254
4284
  children: "New Password"
4255
4285
  }
@@ -4292,7 +4322,7 @@ const Ns = [
4292
4322
  disabled: I,
4293
4323
  style: {
4294
4324
  padding: "12px",
4295
- background: a,
4325
+ background: o,
4296
4326
  color: "#fff",
4297
4327
  border: "none",
4298
4328
  fontSize: "14px",
@@ -4377,7 +4407,7 @@ const Ns = [
4377
4407
  const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
4378
4408
  s(c ? "authenticated" : "unauthenticated");
4379
4409
  }, []);
4380
- const i = (a) => typeof a == "function" ? a() : a;
4410
+ const i = (o) => typeof o == "function" ? o() : o;
4381
4411
  return n === "loading" ? null : n === "unauthenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
4382
4412
  }, fi = ({
4383
4413
  children: t,
@@ -4390,17 +4420,17 @@ const Ns = [
4390
4420
  const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
4391
4421
  s(c ? "authenticated" : "unauthenticated");
4392
4422
  }, []);
4393
- const i = (a) => typeof a == "function" ? a() : a;
4423
+ const i = (o) => typeof o == "function" ? o() : o;
4394
4424
  return n === "loading" ? null : n === "authenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
4395
- }, Fs = ({
4425
+ }, Ls = ({
4396
4426
  isOpen: t,
4397
4427
  onClose: e,
4398
4428
  onSuccess: n,
4399
4429
  onError: s,
4400
4430
  userId: i,
4401
- colors: a
4431
+ colors: o
4402
4432
  }) => {
4403
- const o = ge(), [c, d] = P(!1), [f, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4433
+ const a = ge(), [c, d] = P(!1), [x, p] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4404
4434
  if (ee(() => {
4405
4435
  if (typeof window > "u") return;
4406
4436
  const g = () => {
@@ -4411,7 +4441,7 @@ const Ns = [
4411
4441
  const w = async () => {
4412
4442
  d(!0), k("processing");
4413
4443
  try {
4414
- const g = await o.deleteUser({
4444
+ const g = await a.deleteUser({
4415
4445
  userId: i
4416
4446
  });
4417
4447
  g.success ? (n(g.message || "Account deleted successfully"), k("success"), setTimeout(() => {
@@ -4422,7 +4452,7 @@ const Ns = [
4422
4452
  } finally {
4423
4453
  d(!1);
4424
4454
  }
4425
- }, h = f.toLowerCase() === "delete my account", I = (g) => {
4455
+ }, h = x.toLowerCase() === "delete my account", I = (g) => {
4426
4456
  g.target === g.currentTarget && y !== "processing" && y !== "success" && e();
4427
4457
  }, C = () => {
4428
4458
  switch (y) {
@@ -4470,7 +4500,7 @@ const Ns = [
4470
4500
  "h3",
4471
4501
  {
4472
4502
  style: {
4473
- color: a.textPrimary,
4503
+ color: o.textPrimary,
4474
4504
  margin: 0,
4475
4505
  fontSize: "20px",
4476
4506
  fontWeight: 700,
@@ -4490,7 +4520,7 @@ const Ns = [
4490
4520
  style: {
4491
4521
  background: "transparent",
4492
4522
  border: "none",
4493
- color: a.textTertiary,
4523
+ color: o.textTertiary,
4494
4524
  cursor: "pointer",
4495
4525
  padding: "8px",
4496
4526
  borderRadius: "8px",
@@ -4503,10 +4533,10 @@ const Ns = [
4503
4533
  transition: "all 0.2s ease"
4504
4534
  },
4505
4535
  onMouseOver: (g) => {
4506
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
4536
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.color = o.textPrimary;
4507
4537
  },
4508
4538
  onMouseOut: (g) => {
4509
- g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
4539
+ g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = o.textTertiary;
4510
4540
  },
4511
4541
  children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
4512
4542
  }
@@ -4521,8 +4551,8 @@ const Ns = [
4521
4551
  display: "flex",
4522
4552
  gap: "16px",
4523
4553
  padding: "20px",
4524
- background: `${a.error}15`,
4525
- border: `1px solid ${a.error}30`,
4554
+ background: `${o.error}15`,
4555
+ border: `1px solid ${o.error}30`,
4526
4556
  borderRadius: "12px",
4527
4557
  marginBottom: "20px"
4528
4558
  },
@@ -4531,12 +4561,12 @@ const Ns = [
4531
4561
  "div",
4532
4562
  {
4533
4563
  style: {
4534
- color: a.error,
4564
+ color: o.error,
4535
4565
  flexShrink: 0,
4536
4566
  display: "flex",
4537
4567
  alignItems: "flex-start"
4538
4568
  },
4539
- children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4569
+ children: /* @__PURE__ */ r.jsx(At, { size: 24 })
4540
4570
  }
4541
4571
  ),
4542
4572
  /* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
@@ -4544,7 +4574,7 @@ const Ns = [
4544
4574
  "h4",
4545
4575
  {
4546
4576
  style: {
4547
- color: a.textPrimary,
4577
+ color: o.textPrimary,
4548
4578
  margin: "0 0 12px 0",
4549
4579
  fontSize: "16px",
4550
4580
  fontWeight: 600
@@ -4581,10 +4611,10 @@ const Ns = [
4581
4611
  alignItems: "center",
4582
4612
  gap: "10px",
4583
4613
  fontSize: "14px",
4584
- color: a.textSecondary
4614
+ color: o.textSecondary
4585
4615
  },
4586
4616
  children: [
4587
- /* @__PURE__ */ r.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: g.icon }),
4617
+ /* @__PURE__ */ r.jsx("div", { style: { color: o.error, flexShrink: 0 }, children: g.icon }),
4588
4618
  /* @__PURE__ */ r.jsx("span", { children: g.text })
4589
4619
  ]
4590
4620
  },
@@ -4614,9 +4644,9 @@ const Ns = [
4614
4644
  style: {
4615
4645
  padding: "10px 24px",
4616
4646
  borderRadius: "10px",
4617
- border: `1.5px solid ${a.border}`,
4647
+ border: `1.5px solid ${o.border}`,
4618
4648
  background: "transparent",
4619
- color: a.textPrimary,
4649
+ color: o.textPrimary,
4620
4650
  fontSize: "14px",
4621
4651
  fontWeight: 500,
4622
4652
  cursor: "pointer",
@@ -4625,7 +4655,7 @@ const Ns = [
4625
4655
  transition: "all 0.2s ease"
4626
4656
  },
4627
4657
  onMouseOver: (g) => {
4628
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
4658
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4629
4659
  },
4630
4660
  onMouseOut: (g) => {
4631
4661
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4697,14 +4727,14 @@ const Ns = [
4697
4727
  color: "white",
4698
4728
  flexShrink: 0
4699
4729
  },
4700
- children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4730
+ children: /* @__PURE__ */ r.jsx(At, { size: 24 })
4701
4731
  }
4702
4732
  ),
4703
4733
  /* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
4704
4734
  "h3",
4705
4735
  {
4706
4736
  style: {
4707
- color: a.textPrimary,
4737
+ color: o.textPrimary,
4708
4738
  margin: 0,
4709
4739
  fontSize: "20px",
4710
4740
  fontWeight: 700,
@@ -4721,7 +4751,7 @@ const Ns = [
4721
4751
  "p",
4722
4752
  {
4723
4753
  style: {
4724
- color: a.textSecondary,
4754
+ color: o.textSecondary,
4725
4755
  marginBottom: "16px",
4726
4756
  fontSize: "14px",
4727
4757
  lineHeight: "1.5"
@@ -4729,7 +4759,7 @@ const Ns = [
4729
4759
  children: [
4730
4760
  "Type",
4731
4761
  " ",
4732
- /* @__PURE__ */ r.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
4762
+ /* @__PURE__ */ r.jsx("strong", { style: { color: o.textPrimary }, children: '"delete my account"' }),
4733
4763
  " ",
4734
4764
  "to confirm:"
4735
4765
  ]
@@ -4739,23 +4769,23 @@ const Ns = [
4739
4769
  "input",
4740
4770
  {
4741
4771
  type: "text",
4742
- value: f,
4743
- onChange: (g) => x(g.target.value),
4772
+ value: x,
4773
+ onChange: (g) => p(g.target.value),
4744
4774
  placeholder: "delete my account",
4745
4775
  style: {
4746
4776
  width: "100%",
4747
4777
  padding: "14px 16px",
4748
4778
  borderRadius: "10px",
4749
- border: `2px solid ${h ? a.success : a.error}`,
4779
+ border: `2px solid ${h ? o.success : o.error}`,
4750
4780
  backgroundColor: "transparent",
4751
- color: a.textPrimary,
4781
+ color: o.textPrimary,
4752
4782
  fontSize: "15px",
4753
4783
  outline: "none",
4754
4784
  transition: "all 0.2s ease",
4755
4785
  boxSizing: "border-box"
4756
4786
  },
4757
4787
  onFocus: (g) => {
4758
- g.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
4788
+ g.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
4759
4789
  },
4760
4790
  onBlur: (g) => {
4761
4791
  g.target.style.boxShadow = "none";
@@ -4771,7 +4801,7 @@ const Ns = [
4771
4801
  alignItems: "center",
4772
4802
  gap: "8px",
4773
4803
  marginTop: "10px",
4774
- color: a.success,
4804
+ color: o.success,
4775
4805
  fontSize: "14px",
4776
4806
  fontWeight: 500
4777
4807
  },
@@ -4797,14 +4827,14 @@ const Ns = [
4797
4827
  "button",
4798
4828
  {
4799
4829
  onClick: () => {
4800
- k("warning"), x("");
4830
+ k("warning"), p("");
4801
4831
  },
4802
4832
  style: {
4803
4833
  padding: "10px 24px",
4804
4834
  borderRadius: "10px",
4805
- border: `1.5px solid ${a.border}`,
4835
+ border: `1.5px solid ${o.border}`,
4806
4836
  background: "transparent",
4807
- color: a.textPrimary,
4837
+ color: o.textPrimary,
4808
4838
  fontSize: "14px",
4809
4839
  fontWeight: 500,
4810
4840
  cursor: "pointer",
@@ -4813,7 +4843,7 @@ const Ns = [
4813
4843
  transition: "all 0.2s ease"
4814
4844
  },
4815
4845
  onMouseOver: (g) => {
4816
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
4846
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4817
4847
  },
4818
4848
  onMouseOut: (g) => {
4819
4849
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4903,7 +4933,7 @@ const Ns = [
4903
4933
  "h3",
4904
4934
  {
4905
4935
  style: {
4906
- color: a.textPrimary,
4936
+ color: o.textPrimary,
4907
4937
  margin: 0,
4908
4938
  fontSize: "20px",
4909
4939
  fontWeight: 700,
@@ -4916,7 +4946,7 @@ const Ns = [
4916
4946
  "p",
4917
4947
  {
4918
4948
  style: {
4919
- color: a.textTertiary,
4949
+ color: o.textTertiary,
4920
4950
  margin: "4px 0 0 0",
4921
4951
  fontSize: "14px",
4922
4952
  lineHeight: "1.4"
@@ -4950,7 +4980,7 @@ const Ns = [
4950
4980
  padding: "12px",
4951
4981
  borderRadius: "8px",
4952
4982
  transition: "all 0.2s ease",
4953
- backgroundColor: g.active ? `${a.accent}10` : "transparent"
4983
+ backgroundColor: g.active ? `${o.accent}10` : "transparent"
4954
4984
  },
4955
4985
  children: [
4956
4986
  /* @__PURE__ */ r.jsx(
@@ -4960,9 +4990,9 @@ const Ns = [
4960
4990
  width: "8px",
4961
4991
  height: "8px",
4962
4992
  borderRadius: "50%",
4963
- backgroundColor: g.active ? a.accent : a.textTertiary,
4993
+ backgroundColor: g.active ? o.accent : o.textTertiary,
4964
4994
  transition: "all 0.3s ease",
4965
- boxShadow: g.active ? `0 0 0 4px ${a.accent}20` : "none"
4995
+ boxShadow: g.active ? `0 0 0 4px ${o.accent}20` : "none"
4966
4996
  }
4967
4997
  }
4968
4998
  ),
@@ -4971,7 +5001,7 @@ const Ns = [
4971
5001
  {
4972
5002
  style: {
4973
5003
  fontSize: "14px",
4974
- color: g.active ? a.textPrimary : a.textSecondary,
5004
+ color: g.active ? o.textPrimary : o.textSecondary,
4975
5005
  fontWeight: g.active ? 500 : 400
4976
5006
  },
4977
5007
  children: g.text
@@ -4991,17 +5021,17 @@ const Ns = [
4991
5021
  alignItems: "center",
4992
5022
  gap: "10px",
4993
5023
  padding: "16px",
4994
- background: `${a.accent}10`,
5024
+ background: `${o.accent}10`,
4995
5025
  borderRadius: "10px",
4996
5026
  fontSize: "14px",
4997
- color: a.textSecondary
5027
+ color: o.textSecondary
4998
5028
  },
4999
5029
  children: [
5000
5030
  /* @__PURE__ */ r.jsx(
5001
5031
  rt,
5002
5032
  {
5003
5033
  size: 18,
5004
- style: { color: a.accent, flexShrink: 0 }
5034
+ style: { color: o.accent, flexShrink: 0 }
5005
5035
  }
5006
5036
  ),
5007
5037
  /* @__PURE__ */ r.jsx("span", { children: "You will be redirected to the login page shortly" })
@@ -5043,7 +5073,7 @@ const Ns = [
5043
5073
  "h3",
5044
5074
  {
5045
5075
  style: {
5046
- color: a.textPrimary,
5076
+ color: o.textPrimary,
5047
5077
  margin: 0,
5048
5078
  fontSize: "20px",
5049
5079
  fontWeight: 700,
@@ -5056,7 +5086,7 @@ const Ns = [
5056
5086
  "p",
5057
5087
  {
5058
5088
  style: {
5059
- color: a.textTertiary,
5089
+ color: o.textTertiary,
5060
5090
  margin: "4px 0 0 0",
5061
5091
  fontSize: "14px",
5062
5092
  lineHeight: "1.4"
@@ -5074,8 +5104,8 @@ const Ns = [
5074
5104
  style: {
5075
5105
  textAlign: "center",
5076
5106
  padding: "20px",
5077
- background: `${a.success}10`,
5078
- border: `1px solid ${a.success}20`,
5107
+ background: `${o.success}10`,
5108
+ border: `1px solid ${o.success}20`,
5079
5109
  borderRadius: "12px",
5080
5110
  marginBottom: "24px"
5081
5111
  },
@@ -5085,7 +5115,7 @@ const Ns = [
5085
5115
  {
5086
5116
  size: 48,
5087
5117
  style: {
5088
- color: a.success,
5118
+ color: o.success,
5089
5119
  marginBottom: "12px",
5090
5120
  display: "block",
5091
5121
  margin: "0 auto 12px auto"
@@ -5096,7 +5126,7 @@ const Ns = [
5096
5126
  "p",
5097
5127
  {
5098
5128
  style: {
5099
- color: a.textPrimary,
5129
+ color: o.textPrimary,
5100
5130
  fontSize: "16px",
5101
5131
  fontWeight: 600,
5102
5132
  margin: "0 0 8px 0"
@@ -5108,7 +5138,7 @@ const Ns = [
5108
5138
  "p",
5109
5139
  {
5110
5140
  style: {
5111
- color: a.textSecondary,
5141
+ color: o.textSecondary,
5112
5142
  fontSize: "14px",
5113
5143
  margin: 0,
5114
5144
  lineHeight: "1.5"
@@ -5127,10 +5157,10 @@ const Ns = [
5127
5157
  alignItems: "center",
5128
5158
  gap: "10px",
5129
5159
  padding: "16px",
5130
- background: `${a.accent}10`,
5160
+ background: `${o.accent}10`,
5131
5161
  borderRadius: "10px",
5132
5162
  fontSize: "14px",
5133
- color: a.textSecondary,
5163
+ color: o.textSecondary,
5134
5164
  justifyContent: "center"
5135
5165
  },
5136
5166
  children: [
@@ -5140,7 +5170,7 @@ const Ns = [
5140
5170
  size: 16,
5141
5171
  style: {
5142
5172
  animation: "spin 1s linear infinite",
5143
- color: a.accent
5173
+ color: o.accent
5144
5174
  }
5145
5175
  }
5146
5176
  ),
@@ -5172,8 +5202,8 @@ const Ns = [
5172
5202
  "div",
5173
5203
  {
5174
5204
  style: {
5175
- backgroundColor: a.surface,
5176
- border: `1px solid ${a.border}`,
5205
+ backgroundColor: o.surface,
5206
+ border: `1px solid ${o.border}`,
5177
5207
  borderRadius: "20px",
5178
5208
  width: "100%",
5179
5209
  maxWidth: "480px",
@@ -5243,17 +5273,17 @@ const Ns = [
5243
5273
  ]
5244
5274
  }
5245
5275
  );
5246
- }, Ls = ({
5276
+ }, Fs = ({
5247
5277
  isOpen: t,
5248
5278
  onClose: e,
5249
5279
  onUpdate: n,
5250
5280
  colors: s
5251
5281
  }) => {
5252
- const [i, a] = P(""), [o, c] = P(!1), [d, f] = P(!1), [x, y] = P({ isValid: !1, message: "", type: null });
5282
+ const [i, o] = P(""), [a, c] = P(!1), [d, x] = P(!1), [p, y] = P({ isValid: !1, message: "", type: null });
5253
5283
  if (ee(() => {
5254
5284
  if (typeof window > "u") return;
5255
5285
  const u = () => {
5256
- f(window.innerWidth < 640);
5286
+ x(window.innerWidth < 640);
5257
5287
  };
5258
5288
  return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5259
5289
  }, []), ee(() => {
@@ -5281,10 +5311,10 @@ const Ns = [
5281
5311
  }
5282
5312
  }, [i]), !t) return null;
5283
5313
  const k = async () => {
5284
- if (!(!i || !x.isValid)) {
5314
+ if (!(!i || !p.isValid)) {
5285
5315
  c(!0);
5286
5316
  try {
5287
- await n(i) && (a(""), e());
5317
+ await n(i) && (o(""), e());
5288
5318
  } finally {
5289
5319
  c(!1);
5290
5320
  }
@@ -5446,13 +5476,13 @@ const Ns = [
5446
5476
  id: "avatar-url",
5447
5477
  placeholder: "https://example.com/your-avatar.jpg",
5448
5478
  value: i,
5449
- onChange: (u) => a(u.target.value),
5479
+ onChange: (u) => o(u.target.value),
5450
5480
  style: {
5451
5481
  width: "100%",
5452
5482
  padding: "14px 16px",
5453
5483
  paddingLeft: "44px",
5454
5484
  borderRadius: "12px",
5455
- border: `1.5px solid ${x.type === "error" ? s.error : x.type === "success" ? s.success : s.border}`,
5485
+ border: `1.5px solid ${p.type === "error" ? s.error : p.type === "success" ? s.success : s.border}`,
5456
5486
  backgroundColor: "transparent",
5457
5487
  color: s.textPrimary,
5458
5488
  fontSize: "15px",
@@ -5464,9 +5494,9 @@ const Ns = [
5464
5494
  u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5465
5495
  },
5466
5496
  onBlur: (u) => {
5467
- u.target.style.borderColor = x.type === "error" ? s.error : x.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5497
+ u.target.style.borderColor = p.type === "error" ? s.error : p.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5468
5498
  },
5469
- disabled: o
5499
+ disabled: a
5470
5500
  }
5471
5501
  ),
5472
5502
  /* @__PURE__ */ r.jsx(
@@ -5483,7 +5513,7 @@ const Ns = [
5483
5513
  }
5484
5514
  )
5485
5515
  ] }),
5486
- x.message && /* @__PURE__ */ r.jsxs(
5516
+ p.message && /* @__PURE__ */ r.jsxs(
5487
5517
  "div",
5488
5518
  {
5489
5519
  style: {
@@ -5492,18 +5522,18 @@ const Ns = [
5492
5522
  gap: "6px",
5493
5523
  marginTop: "8px",
5494
5524
  fontSize: "13px",
5495
- color: x.type === "success" ? s.success : x.type === "error" ? s.error : s.textTertiary
5525
+ color: p.type === "success" ? s.success : p.type === "error" ? s.error : s.textTertiary
5496
5526
  },
5497
5527
  children: [
5498
- x.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5499
- x.type === "error" && /* @__PURE__ */ r.jsx(ie, { size: 14 }),
5500
- x.type === "warning" && /* @__PURE__ */ r.jsx(ie, { size: 14 }),
5501
- x.message
5528
+ p.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5529
+ p.type === "error" && /* @__PURE__ */ r.jsx(ie, { size: 14 }),
5530
+ p.type === "warning" && /* @__PURE__ */ r.jsx(ie, { size: 14 }),
5531
+ p.message
5502
5532
  ]
5503
5533
  }
5504
5534
  )
5505
5535
  ] }),
5506
- i && x.type === "success" && /* @__PURE__ */ r.jsxs(
5536
+ i && p.type === "success" && /* @__PURE__ */ r.jsxs(
5507
5537
  "div",
5508
5538
  {
5509
5539
  style: {
@@ -5566,7 +5596,7 @@ const Ns = [
5566
5596
  "button",
5567
5597
  {
5568
5598
  onClick: e,
5569
- disabled: o,
5599
+ disabled: a,
5570
5600
  style: {
5571
5601
  padding: "10px 24px",
5572
5602
  borderRadius: "10px",
@@ -5575,17 +5605,17 @@ const Ns = [
5575
5605
  color: s.textPrimary,
5576
5606
  fontSize: "14px",
5577
5607
  fontWeight: 500,
5578
- cursor: o ? "not-allowed" : "pointer",
5608
+ cursor: a ? "not-allowed" : "pointer",
5579
5609
  flex: d ? "none" : 1,
5580
5610
  minWidth: d ? "100%" : "120px",
5581
- opacity: o ? 0.6 : 1,
5611
+ opacity: a ? 0.6 : 1,
5582
5612
  transition: "all 0.2s ease"
5583
5613
  },
5584
5614
  onMouseOver: (u) => {
5585
- o || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5615
+ a || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5586
5616
  },
5587
5617
  onMouseOut: (u) => {
5588
- o || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5618
+ a || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5589
5619
  },
5590
5620
  children: "Cancel"
5591
5621
  }
@@ -5594,7 +5624,7 @@ const Ns = [
5594
5624
  "button",
5595
5625
  {
5596
5626
  onClick: k,
5597
- disabled: o || !x.isValid,
5627
+ disabled: a || !p.isValid,
5598
5628
  style: {
5599
5629
  padding: "10px 24px",
5600
5630
  borderRadius: "10px",
@@ -5603,24 +5633,24 @@ const Ns = [
5603
5633
  color: "#fff",
5604
5634
  fontSize: "14px",
5605
5635
  fontWeight: 600,
5606
- cursor: o || !x.isValid ? "not-allowed" : "pointer",
5636
+ cursor: a || !p.isValid ? "not-allowed" : "pointer",
5607
5637
  flex: d ? "none" : 1,
5608
5638
  minWidth: d ? "100%" : "140px",
5609
- opacity: o || !x.isValid ? 0.6 : 1,
5639
+ opacity: a || !p.isValid ? 0.6 : 1,
5610
5640
  display: "flex",
5611
5641
  alignItems: "center",
5612
5642
  justifyContent: "center",
5613
5643
  gap: "8px",
5614
5644
  transition: "all 0.2s ease",
5615
- boxShadow: o || !x.isValid ? "none" : `0 4px 12px ${s.accent}40`
5645
+ boxShadow: a || !p.isValid ? "none" : `0 4px 12px ${s.accent}40`
5616
5646
  },
5617
5647
  onMouseOver: (u) => {
5618
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5648
+ !a && p.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5619
5649
  },
5620
5650
  onMouseOut: (u) => {
5621
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5651
+ !a && p.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5622
5652
  },
5623
- children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5653
+ children: a ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5624
5654
  /* @__PURE__ */ r.jsx(
5625
5655
  se,
5626
5656
  {
@@ -5701,13 +5731,13 @@ const Ns = [
5701
5731
  onSuccess: n,
5702
5732
  onError: s,
5703
5733
  userId: i,
5704
- colors: a
5734
+ colors: o
5705
5735
  }) => {
5706
- const o = ge(), [c, d] = P({
5736
+ const a = ge(), [c, d] = P({
5707
5737
  currentPassword: "",
5708
5738
  newPassword: "",
5709
5739
  confirmPassword: ""
5710
- }), [f, x] = P({}), [y, k] = P(!1), [E, u] = P({
5740
+ }), [x, p] = P({}), [y, k] = P(!1), [E, u] = P({
5711
5741
  currentPassword: !1,
5712
5742
  newPassword: !1,
5713
5743
  confirmPassword: !1
@@ -5721,17 +5751,17 @@ const Ns = [
5721
5751
  }, []), !t) return null;
5722
5752
  const I = (b) => {
5723
5753
  const { name: j, value: q } = b.target;
5724
- d((O) => ({ ...O, [j]: q })), f[j] && x((O) => ({ ...O, [j]: "" }));
5754
+ d((O) => ({ ...O, [j]: q })), x[j] && p((O) => ({ ...O, [j]: "" }));
5725
5755
  }, C = (b) => {
5726
5756
  u((j) => ({ ...j, [b]: !j[b] }));
5727
5757
  }, g = () => {
5728
5758
  const b = {};
5729
- return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), x(b), Object.keys(b).length === 0;
5759
+ return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), p(b), Object.keys(b).length === 0;
5730
5760
  }, U = async (b) => {
5731
5761
  if (b.preventDefault(), !!g()) {
5732
5762
  k(!0);
5733
5763
  try {
5734
- const { data: j } = await o.changePassword({
5764
+ const { data: j } = await a.changePassword({
5735
5765
  currentPassword: c.currentPassword,
5736
5766
  newPassword: c.newPassword,
5737
5767
  userId: i
@@ -5782,8 +5812,8 @@ const Ns = [
5782
5812
  "div",
5783
5813
  {
5784
5814
  style: {
5785
- backgroundColor: a.surface,
5786
- border: `1px solid ${a.border}`,
5815
+ backgroundColor: o.surface,
5816
+ border: `1px solid ${o.border}`,
5787
5817
  borderRadius: "16px",
5788
5818
  maxWidth: "440px",
5789
5819
  width: "100%",
@@ -5822,11 +5852,11 @@ const Ns = [
5822
5852
  width: "40px",
5823
5853
  height: "40px",
5824
5854
  borderRadius: "10px",
5825
- background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
5855
+ background: `linear-gradient(135deg, ${o.accent}20, ${o.accent}40)`,
5826
5856
  display: "flex",
5827
5857
  alignItems: "center",
5828
5858
  justifyContent: "center",
5829
- color: a.accent,
5859
+ color: o.accent,
5830
5860
  flexShrink: 0
5831
5861
  },
5832
5862
  children: /* @__PURE__ */ r.jsx(be, { size: 20 })
@@ -5836,7 +5866,7 @@ const Ns = [
5836
5866
  "h3",
5837
5867
  {
5838
5868
  style: {
5839
- color: a.textPrimary,
5869
+ color: o.textPrimary,
5840
5870
  margin: 0,
5841
5871
  fontSize: "18px",
5842
5872
  fontWeight: 600,
@@ -5856,7 +5886,7 @@ const Ns = [
5856
5886
  style: {
5857
5887
  background: "transparent",
5858
5888
  border: "none",
5859
- color: a.textTertiary,
5889
+ color: o.textTertiary,
5860
5890
  cursor: "pointer",
5861
5891
  padding: "8px",
5862
5892
  borderRadius: "8px",
@@ -5868,10 +5898,10 @@ const Ns = [
5868
5898
  justifyContent: "center"
5869
5899
  },
5870
5900
  onMouseOver: (b) => {
5871
- b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.color = a.textPrimary;
5901
+ b.currentTarget.style.backgroundColor = o.border, b.currentTarget.style.color = o.textPrimary;
5872
5902
  },
5873
5903
  onMouseOut: (b) => {
5874
- b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = a.textTertiary;
5904
+ b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = o.textTertiary;
5875
5905
  },
5876
5906
  children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
5877
5907
  }
@@ -5895,7 +5925,7 @@ const Ns = [
5895
5925
  style: {
5896
5926
  display: "block",
5897
5927
  marginBottom: "8px",
5898
- color: a.textPrimary,
5928
+ color: o.textPrimary,
5899
5929
  fontSize: "14px",
5900
5930
  fontWeight: 500,
5901
5931
  lineHeight: "1.4"
@@ -5912,7 +5942,7 @@ const Ns = [
5912
5942
  left: "14px",
5913
5943
  top: "50%",
5914
5944
  transform: "translateY(-50%)",
5915
- color: a.textTertiary,
5945
+ color: o.textTertiary,
5916
5946
  zIndex: 2
5917
5947
  },
5918
5948
  children: q
@@ -5931,19 +5961,19 @@ const Ns = [
5931
5961
  width: "100%",
5932
5962
  padding: "14px 48px 14px 44px",
5933
5963
  borderRadius: "10px",
5934
- border: `1.5px solid ${f[b] ? a.error : a.border}`,
5964
+ border: `1.5px solid ${x[b] ? o.error : o.border}`,
5935
5965
  backgroundColor: "transparent",
5936
- color: a.textPrimary,
5966
+ color: o.textPrimary,
5937
5967
  fontSize: "15px",
5938
5968
  outline: "none",
5939
5969
  transition: "all 0.2s ease",
5940
5970
  boxSizing: "border-box"
5941
5971
  },
5942
5972
  onFocus: (O) => {
5943
- O.target.style.borderColor = a.accent, O.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
5973
+ O.target.style.borderColor = o.accent, O.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
5944
5974
  },
5945
5975
  onBlur: (O) => {
5946
- O.target.style.borderColor = f[b] ? a.error : a.border, O.target.style.boxShadow = "none";
5976
+ O.target.style.borderColor = x[b] ? o.error : o.border, O.target.style.boxShadow = "none";
5947
5977
  }
5948
5978
  }
5949
5979
  ),
@@ -5960,7 +5990,7 @@ const Ns = [
5960
5990
  background: "transparent",
5961
5991
  border: "none",
5962
5992
  cursor: "pointer",
5963
- color: a.textTertiary,
5993
+ color: o.textTertiary,
5964
5994
  padding: "4px",
5965
5995
  borderRadius: "4px",
5966
5996
  width: "32px",
@@ -5970,21 +6000,21 @@ const Ns = [
5970
6000
  justifyContent: "center"
5971
6001
  },
5972
6002
  onMouseOver: (O) => {
5973
- O.currentTarget.style.backgroundColor = a.border, O.currentTarget.style.color = a.textPrimary;
6003
+ O.currentTarget.style.backgroundColor = o.border, O.currentTarget.style.color = o.textPrimary;
5974
6004
  },
5975
6005
  onMouseOut: (O) => {
5976
- O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
6006
+ O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = o.textTertiary;
5977
6007
  },
5978
- children: E[b] ? /* @__PURE__ */ r.jsx(at, { size: 18 }) : /* @__PURE__ */ r.jsx(ot, { size: 18 })
6008
+ children: E[b] ? /* @__PURE__ */ r.jsx(ot, { size: 18 }) : /* @__PURE__ */ r.jsx(at, { size: 18 })
5979
6009
  }
5980
6010
  )
5981
6011
  ] }),
5982
- f[b] && /* @__PURE__ */ r.jsxs(
6012
+ x[b] && /* @__PURE__ */ r.jsxs(
5983
6013
  "div",
5984
6014
  {
5985
6015
  style: {
5986
6016
  fontSize: "13px",
5987
- color: a.error,
6017
+ color: o.error,
5988
6018
  marginTop: "6px",
5989
6019
  display: "flex",
5990
6020
  alignItems: "center",
@@ -5992,7 +6022,7 @@ const Ns = [
5992
6022
  },
5993
6023
  children: [
5994
6024
  /* @__PURE__ */ r.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5995
- f[b]
6025
+ x[b]
5996
6026
  ]
5997
6027
  }
5998
6028
  )
@@ -6020,9 +6050,9 @@ const Ns = [
6020
6050
  style: {
6021
6051
  padding: "14px 24px",
6022
6052
  borderRadius: "10px",
6023
- border: `1.5px solid ${a.border}`,
6053
+ border: `1.5px solid ${o.border}`,
6024
6054
  background: "transparent",
6025
- color: a.textPrimary,
6055
+ color: o.textPrimary,
6026
6056
  fontSize: "14px",
6027
6057
  fontWeight: 500,
6028
6058
  cursor: y ? "not-allowed" : "pointer",
@@ -6032,7 +6062,7 @@ const Ns = [
6032
6062
  transition: "all 0.2s ease"
6033
6063
  },
6034
6064
  onMouseOver: (b) => {
6035
- y || (b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.transform = "translateY(-1px)");
6065
+ y || (b.currentTarget.style.backgroundColor = o.border, b.currentTarget.style.transform = "translateY(-1px)");
6036
6066
  },
6037
6067
  onMouseOut: (b) => {
6038
6068
  y || (b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.transform = "translateY(0)");
@@ -6049,7 +6079,7 @@ const Ns = [
6049
6079
  padding: "14px 24px",
6050
6080
  borderRadius: "10px",
6051
6081
  border: "none",
6052
- background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
6082
+ background: `linear-gradient(135deg, ${o.accent}, ${o.accent}E6)`,
6053
6083
  color: "#fff",
6054
6084
  fontSize: "14px",
6055
6085
  fontWeight: 600,
@@ -6062,13 +6092,13 @@ const Ns = [
6062
6092
  justifyContent: "center",
6063
6093
  gap: "8px",
6064
6094
  transition: "all 0.2s ease",
6065
- boxShadow: y ? "none" : `0 4px 12px ${a.accent}40`
6095
+ boxShadow: y ? "none" : `0 4px 12px ${o.accent}40`
6066
6096
  },
6067
6097
  onMouseOver: (b) => {
6068
- y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
6098
+ y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${o.accent}60`);
6069
6099
  },
6070
6100
  onMouseOut: (b) => {
6071
- y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
6101
+ y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${o.accent}40`);
6072
6102
  },
6073
6103
  children: y ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
6074
6104
  /* @__PURE__ */ r.jsx(
@@ -6103,12 +6133,12 @@ const Ns = [
6103
6133
  }
6104
6134
 
6105
6135
  .change-password-modal::-webkit-scrollbar-thumb {
6106
- background: ${a.border};
6136
+ background: ${o.border};
6107
6137
  border-radius: 3px;
6108
6138
  }
6109
6139
 
6110
6140
  .change-password-modal::-webkit-scrollbar-thumb:hover {
6111
- background: ${a.textTertiary};
6141
+ background: ${o.textTertiary};
6112
6142
  }
6113
6143
 
6114
6144
  /* Mobile responsiveness */
@@ -6138,23 +6168,23 @@ const Ns = [
6138
6168
  onVerify: n,
6139
6169
  onSendOTP: s,
6140
6170
  verifyFormData: i,
6141
- setVerifyFormData: a,
6142
- otpSent: o,
6171
+ setVerifyFormData: o,
6172
+ otpSent: a,
6143
6173
  verifying: c,
6144
6174
  user: d,
6145
- colors: f,
6146
- darkMode: x
6175
+ colors: x,
6176
+ darkMode: p
6147
6177
  }) => {
6148
6178
  if (!t) return null;
6149
6179
  const y = () => {
6150
- e(), a({ email: d?.email || "", otp: "" });
6180
+ e(), o({ email: d?.email || "", otp: "" });
6151
6181
  };
6152
6182
  return /* @__PURE__ */ r.jsxs(
6153
6183
  "div",
6154
6184
  {
6155
6185
  className: "modal-overlay",
6156
6186
  style: {
6157
- backgroundColor: x ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6187
+ backgroundColor: p ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6158
6188
  },
6159
6189
  children: [
6160
6190
  /* @__PURE__ */ r.jsxs(
@@ -6162,18 +6192,18 @@ const Ns = [
6162
6192
  {
6163
6193
  className: "verify-email-modal",
6164
6194
  style: {
6165
- backgroundColor: f.surface,
6166
- border: `1px solid ${f.border}`
6195
+ backgroundColor: x.surface,
6196
+ border: `1px solid ${x.border}`
6167
6197
  },
6168
6198
  children: [
6169
6199
  /* @__PURE__ */ r.jsxs("div", { className: "modal-header", children: [
6170
- /* @__PURE__ */ r.jsx("h3", { style: { color: f.textPrimary }, children: "Verify Your Email" }),
6200
+ /* @__PURE__ */ r.jsx("h3", { style: { color: x.textPrimary }, children: "Verify Your Email" }),
6171
6201
  /* @__PURE__ */ r.jsx(
6172
6202
  "button",
6173
6203
  {
6174
6204
  onClick: y,
6175
6205
  className: "close-btn",
6176
- style: { color: f.textTertiary },
6206
+ style: { color: x.textTertiary },
6177
6207
  "aria-label": "Close verification modal",
6178
6208
  children: /* @__PURE__ */ r.jsx(Oe, { size: 20, "aria-hidden": "true" })
6179
6209
  }
@@ -6181,13 +6211,13 @@ const Ns = [
6181
6211
  ] }),
6182
6212
  /* @__PURE__ */ r.jsxs("form", { className: "verify-form", onSubmit: n, children: [
6183
6213
  /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6184
- /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "Email" }),
6214
+ /* @__PURE__ */ r.jsx("label", { style: { color: x.textSecondary }, children: "Email" }),
6185
6215
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6186
6216
  /* @__PURE__ */ r.jsx(
6187
6217
  pe,
6188
6218
  {
6189
6219
  size: 18,
6190
- style: { color: f.textTertiary },
6220
+ style: { color: x.textTertiary },
6191
6221
  "aria-hidden": "true"
6192
6222
  }
6193
6223
  ),
@@ -6196,15 +6226,15 @@ const Ns = [
6196
6226
  {
6197
6227
  type: "email",
6198
6228
  value: i.email,
6199
- onChange: (k) => a((E) => ({
6229
+ onChange: (k) => o((E) => ({
6200
6230
  ...E,
6201
6231
  email: k.target.value
6202
6232
  })),
6203
6233
  placeholder: "Enter your email",
6204
6234
  style: {
6205
- backgroundColor: f.surfaceLight,
6206
- color: f.textPrimary,
6207
- borderColor: f.border
6235
+ backgroundColor: x.surfaceLight,
6236
+ color: x.textPrimary,
6237
+ borderColor: x.border
6208
6238
  },
6209
6239
  required: !0,
6210
6240
  "aria-required": "true",
@@ -6213,14 +6243,14 @@ const Ns = [
6213
6243
  )
6214
6244
  ] })
6215
6245
  ] }),
6216
- o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6217
- /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
6246
+ a && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6247
+ /* @__PURE__ */ r.jsx("label", { style: { color: x.textSecondary }, children: "OTP" }),
6218
6248
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6219
6249
  /* @__PURE__ */ r.jsx(
6220
- ar,
6250
+ or,
6221
6251
  {
6222
6252
  size: 18,
6223
- style: { color: f.textTertiary },
6253
+ style: { color: x.textTertiary },
6224
6254
  "aria-hidden": "true"
6225
6255
  }
6226
6256
  ),
@@ -6229,15 +6259,15 @@ const Ns = [
6229
6259
  {
6230
6260
  type: "text",
6231
6261
  value: i.otp,
6232
- onChange: (k) => a((E) => ({
6262
+ onChange: (k) => o((E) => ({
6233
6263
  ...E,
6234
6264
  otp: k.target.value
6235
6265
  })),
6236
6266
  placeholder: "Enter OTP",
6237
6267
  style: {
6238
- backgroundColor: f.surfaceLight,
6239
- color: f.textPrimary,
6240
- borderColor: f.border
6268
+ backgroundColor: x.surfaceLight,
6269
+ color: x.textPrimary,
6270
+ borderColor: x.border
6241
6271
  },
6242
6272
  required: !0,
6243
6273
  "aria-required": "true",
@@ -6246,14 +6276,14 @@ const Ns = [
6246
6276
  )
6247
6277
  ] })
6248
6278
  ] }),
6249
- /* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ r.jsxs(
6279
+ /* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: a ? /* @__PURE__ */ r.jsxs(
6250
6280
  "button",
6251
6281
  {
6252
6282
  type: "submit",
6253
6283
  disabled: c,
6254
6284
  className: "btn-primary",
6255
6285
  style: {
6256
- background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6286
+ background: `linear-gradient(to right, ${x.accent}, ${x.accentHover})`,
6257
6287
  opacity: c ? 0.7 : 1
6258
6288
  },
6259
6289
  "aria-label": c ? "Verifying email" : "Verify email",
@@ -6270,7 +6300,7 @@ const Ns = [
6270
6300
  disabled: c,
6271
6301
  className: "btn-primary",
6272
6302
  style: {
6273
- background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6303
+ background: `linear-gradient(to right, ${x.accent}, ${x.accentHover})`,
6274
6304
  opacity: c ? 0.7 : 1
6275
6305
  },
6276
6306
  "aria-label": c ? "Sending OTP" : "Send OTP",
@@ -6333,7 +6363,7 @@ const Ns = [
6333
6363
  }
6334
6364
 
6335
6365
  .close-btn:hover {
6336
- background-color: ${x ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6366
+ background-color: ${p ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6337
6367
  }
6338
6368
 
6339
6369
  .verify-form {
@@ -6377,8 +6407,8 @@ const Ns = [
6377
6407
  }
6378
6408
 
6379
6409
  .input-container input:focus {
6380
- border-color: ${f.accent};
6381
- box-shadow: 0 0 0 3px ${f.accent}20;
6410
+ border-color: ${x.accent};
6411
+ box-shadow: 0 0 0 3px ${x.accent}20;
6382
6412
  }
6383
6413
 
6384
6414
  .modal-actions {
@@ -6442,10 +6472,10 @@ const Ns = [
6442
6472
  onVerify: s,
6443
6473
  primaryColor: i = "#00C212"
6444
6474
  }) => {
6445
- const a = ge(), [o, c] = P(null), [d, f] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
6475
+ const o = ge(), [a, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, A] = P(!1), [M, J] = P({
6446
6476
  email: "",
6447
6477
  otp: ""
6448
- }), [H, F] = P(!1), [Y, l] = P(!1);
6478
+ }), [H, L] = P(!1), [Y, l] = P(!1);
6449
6479
  ee(() => {
6450
6480
  if (typeof window < "u") {
6451
6481
  const v = () => c(window.innerWidth);
@@ -6481,11 +6511,11 @@ const Ns = [
6481
6511
  }
6482
6512
  try {
6483
6513
  l(!0);
6484
- const v = await a.requestEmailVerificationOTP({
6514
+ const v = await o.requestEmailVerificationOTP({
6485
6515
  userId: d.id,
6486
6516
  email: M.email
6487
6517
  }), _ = v?.data?.success ?? v?.success, V = v?.data?.message ?? v?.message;
6488
- _ ? (m("success", V || "OTP sent to email!"), F(!0)) : m("error", V || "Failed to send OTP");
6518
+ _ ? (m("success", V || "OTP sent to email!"), L(!0)) : m("error", V || "Failed to send OTP");
6489
6519
  } catch (v) {
6490
6520
  const _ = v?.response?.data?.message || v?.message || "Server error";
6491
6521
  m("error", _);
@@ -6503,14 +6533,14 @@ const Ns = [
6503
6533
  }
6504
6534
  try {
6505
6535
  l(!0);
6506
- const _ = await a.verifyEmail({
6536
+ const _ = await o.verifyEmail({
6507
6537
  email: M.email,
6508
6538
  otp: M.otp
6509
6539
  }), V = _?.data?.success ?? _?.success, Z = _?.data?.message ?? _?.message;
6510
6540
  if (V) {
6511
6541
  m("success", Z || "Email verified!");
6512
6542
  const de = { ...d, isVerified: !0 };
6513
- f(de), typeof s == "function" && s(de), J({ email: de.email, otp: "" }), F(!1), j?.(!1);
6543
+ x(de), typeof s == "function" && s(de), J({ email: de.email, otp: "" }), L(!1), j?.(!1);
6514
6544
  } else
6515
6545
  m("error", Z || "Verification failed");
6516
6546
  } catch (_) {
@@ -6519,10 +6549,10 @@ const Ns = [
6519
6549
  } finally {
6520
6550
  l(!1);
6521
6551
  }
6522
- }, oe = async (v) => {
6552
+ }, ae = async (v) => {
6523
6553
  if (!d) return !1;
6524
6554
  try {
6525
- const _ = await a.updateUser({
6555
+ const _ = await o.updateUser({
6526
6556
  userId: d.id,
6527
6557
  avatarUrl: v
6528
6558
  });
@@ -6534,7 +6564,7 @@ const Ns = [
6534
6564
  // 🔁 merge backend response if present
6535
6565
  avatarUrl: v
6536
6566
  };
6537
- return f(V), m("success", "Avatar updated successfully!"), !0;
6567
+ return x(V), m("success", "Avatar updated successfully!"), !0;
6538
6568
  }
6539
6569
  return m("error", _?.message || "Failed to update avatar"), !1;
6540
6570
  } catch (_) {
@@ -6544,7 +6574,7 @@ const Ns = [
6544
6574
  if (d) {
6545
6575
  w(!0);
6546
6576
  try {
6547
- const v = d.email, _ = await a.updateUser({
6577
+ const v = d.email, _ = await o.updateUser({
6548
6578
  userId: d.id,
6549
6579
  ...d
6550
6580
  });
@@ -6556,7 +6586,7 @@ const Ns = [
6556
6586
  // overwrite updated fields
6557
6587
  isVerified: V ? !1 : d.isVerified
6558
6588
  };
6559
- f(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6589
+ x(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6560
6590
  "success",
6561
6591
  V ? "Email updated. Please verify your new email." : "Profile updated successfully"
6562
6592
  ), E(!1);
@@ -6570,8 +6600,8 @@ const Ns = [
6570
6600
  }
6571
6601
  }, le = async (v) => {
6572
6602
  try {
6573
- const _ = await a.checkIfUserExists(v);
6574
- _?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), f(null));
6603
+ const _ = await o.checkIfUserExists(v);
6604
+ _?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), x(null));
6575
6605
  } catch (_) {
6576
6606
  console.error("⚠️ User validation request failed:", _);
6577
6607
  }
@@ -6580,18 +6610,18 @@ const Ns = [
6580
6610
  (async () => {
6581
6611
  try {
6582
6612
  y(!0);
6583
- const _ = await a.checkUserSession();
6613
+ const _ = await o.checkUserSession();
6584
6614
  if (_.user?.id) {
6585
- const V = _.user.id, Z = await a.getUserProfile({ userId: V });
6615
+ const V = _.user.id, Z = await o.getUserProfile({ userId: V });
6586
6616
  if (Z.user) {
6587
6617
  const de = Z.user;
6588
- f(de), le(V);
6618
+ x(de), le(V);
6589
6619
  } else
6590
- f(null), localStorage.removeItem("userInfo");
6620
+ x(null), localStorage.removeItem("userInfo");
6591
6621
  } else
6592
- f(null), localStorage.removeItem("userInfo");
6622
+ x(null), localStorage.removeItem("userInfo");
6593
6623
  } catch (_) {
6594
- console.error("User init failed:", _), f(null), localStorage.removeItem("userInfo");
6624
+ console.error("User init failed:", _), x(null), localStorage.removeItem("userInfo");
6595
6625
  } finally {
6596
6626
  y(!1);
6597
6627
  }
@@ -6602,7 +6632,7 @@ const Ns = [
6602
6632
  const ye = (v, _) => {
6603
6633
  let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
6604
6634
  return Z = Math.min(255, Math.max(0, Z)), de = Math.min(255, Math.max(0, de)), Be = Math.min(255, Math.max(0, Be)), `#${(Be | de << 8 | Z << 16).toString(16).padStart(6, "0")}`;
6605
- }, A = t ? {
6635
+ }, z = t ? {
6606
6636
  background: "#000000",
6607
6637
  surface: "#09090b",
6608
6638
  surfaceLight: "#27272a",
@@ -6631,7 +6661,7 @@ const Ns = [
6631
6661
  border: "#e4e4e7",
6632
6662
  warning: "#d97706"
6633
6663
  };
6634
- if (x)
6664
+ if (p)
6635
6665
  return /* @__PURE__ */ r.jsx(
6636
6666
  "div",
6637
6667
  {
@@ -6641,7 +6671,7 @@ const Ns = [
6641
6671
  display: "flex",
6642
6672
  alignItems: "center",
6643
6673
  justifyContent: "center",
6644
- color: A.textPrimary,
6674
+ color: z.textPrimary,
6645
6675
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6646
6676
  },
6647
6677
  children: /* @__PURE__ */ r.jsxs(
@@ -6659,12 +6689,12 @@ const Ns = [
6659
6689
  se,
6660
6690
  {
6661
6691
  size: 40,
6662
- color: A.accent,
6692
+ color: z.accent,
6663
6693
  style: { animation: "spin 1s linear infinite" },
6664
6694
  "aria-hidden": "true"
6665
6695
  }
6666
6696
  ),
6667
- /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "Loading your profile..." })
6697
+ /* @__PURE__ */ r.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "Loading your profile..." })
6668
6698
  ]
6669
6699
  }
6670
6700
  )
@@ -6680,7 +6710,7 @@ const Ns = [
6680
6710
  display: "flex",
6681
6711
  alignItems: "center",
6682
6712
  justifyContent: "center",
6683
- color: A.textPrimary,
6713
+ color: z.textPrimary,
6684
6714
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6685
6715
  },
6686
6716
  children: /* @__PURE__ */ r.jsxs(
@@ -6694,8 +6724,8 @@ const Ns = [
6694
6724
  textAlign: "center"
6695
6725
  },
6696
6726
  children: [
6697
- /* @__PURE__ */ r.jsx(ie, { size: 40, color: A.error, "aria-hidden": "true" }),
6698
- /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6727
+ /* @__PURE__ */ r.jsx(ie, { size: 40, color: z.error, "aria-hidden": "true" }),
6728
+ /* @__PURE__ */ r.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6699
6729
  ]
6700
6730
  }
6701
6731
  )
@@ -6755,7 +6785,7 @@ const Ns = [
6755
6785
  display: "flex",
6756
6786
  alignItems: "center",
6757
6787
  justifyContent: "center",
6758
- color: A.textPrimary,
6788
+ color: z.textPrimary,
6759
6789
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6760
6790
  lineHeight: 1.5,
6761
6791
  minHeight: "80vh"
@@ -6815,14 +6845,14 @@ const Ns = [
6815
6845
  display: "grid",
6816
6846
  gap: "24px",
6817
6847
  gridTemplateColumns: "1fr",
6818
- ...o && window.innerWidth >= 1024 && {
6848
+ ...a && window.innerWidth >= 1024 && {
6819
6849
  gridTemplateColumns: "1fr 2fr",
6820
6850
  gap: "10px"
6821
6851
  },
6822
- ...o && window.innerWidth >= 768 && o && window.innerWidth < 1024 && {
6852
+ ...a && window.innerWidth >= 768 && a && window.innerWidth < 1024 && {
6823
6853
  gap: "10px"
6824
6854
  },
6825
- ...o && window.innerWidth >= 600 && o && window.innerWidth < 768 && {
6855
+ ...a && window.innerWidth >= 600 && a && window.innerWidth < 768 && {
6826
6856
  gap: "28px"
6827
6857
  }
6828
6858
  },
@@ -6841,7 +6871,7 @@ const Ns = [
6841
6871
  "section",
6842
6872
  {
6843
6873
  style: {
6844
- backgroundColor: A.surface,
6874
+ backgroundColor: z.surface,
6845
6875
  borderRadius: "16px",
6846
6876
  position: "relative",
6847
6877
  padding: "24px",
@@ -6895,7 +6925,7 @@ const Ns = [
6895
6925
  borderRadius: "50%",
6896
6926
  objectFit: "cover",
6897
6927
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6898
- border: `3px solid ${A.border}`
6928
+ border: `3px solid ${z.border}`
6899
6929
  },
6900
6930
  width: 128,
6901
6931
  height: 128,
@@ -6910,7 +6940,7 @@ const Ns = [
6910
6940
  position: "absolute",
6911
6941
  bottom: "8px",
6912
6942
  right: "8px",
6913
- backgroundColor: A.accent,
6943
+ backgroundColor: z.accent,
6914
6944
  color: "white",
6915
6945
  padding: "8px",
6916
6946
  borderRadius: "50%",
@@ -6937,7 +6967,7 @@ const Ns = [
6937
6967
  fontSize: "24px",
6938
6968
  fontWeight: 600,
6939
6969
  margin: "0 0 4px 0",
6940
- color: A.textPrimary
6970
+ color: z.textPrimary
6941
6971
  },
6942
6972
  children: d.name
6943
6973
  }
@@ -6949,7 +6979,7 @@ const Ns = [
6949
6979
  fontSize: "18px",
6950
6980
  fontWeight: 600,
6951
6981
  margin: "0 0 4px 0",
6952
- color: A.textTertiary
6982
+ color: z.textTertiary
6953
6983
  },
6954
6984
  children: [
6955
6985
  "@",
@@ -6961,7 +6991,7 @@ const Ns = [
6961
6991
  "p",
6962
6992
  {
6963
6993
  style: {
6964
- color: A.textTertiary,
6994
+ color: z.textTertiary,
6965
6995
  margin: "0 0 8px 0"
6966
6996
  },
6967
6997
  children: d.email
@@ -6972,7 +7002,7 @@ const Ns = [
6972
7002
  {
6973
7003
  style: {
6974
7004
  backgroundColor: d.isVerified ? t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
6975
- color: d.isVerified ? A.success : A.warning,
7005
+ color: d.isVerified ? z.success : z.warning,
6976
7006
  border: `1px solid ${d.isVerified ? t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
6977
7007
  padding: "6px 12px",
6978
7008
  borderRadius: "20px",
@@ -7006,9 +7036,9 @@ const Ns = [
7006
7036
  {
7007
7037
  onClick: () => E(!1),
7008
7038
  style: {
7009
- backgroundColor: A.surfaceLight,
7010
- border: `1px solid ${A.border}`,
7011
- color: A.textPrimary,
7039
+ backgroundColor: z.surfaceLight,
7040
+ border: `1px solid ${z.border}`,
7041
+ color: z.textPrimary,
7012
7042
  padding: "10px 20px",
7013
7043
  borderRadius: "6px",
7014
7044
  borderStyle: "solid",
@@ -7022,7 +7052,7 @@ const Ns = [
7022
7052
  gap: "8px",
7023
7053
  textDecoration: "none",
7024
7054
  minHeight: "36px",
7025
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7055
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7026
7056
  },
7027
7057
  children: [
7028
7058
  /* @__PURE__ */ r.jsx(Oe, { size: 16, "aria-hidden": "true" }),
@@ -7036,7 +7066,7 @@ const Ns = [
7036
7066
  onClick: B,
7037
7067
  disabled: u,
7038
7068
  style: {
7039
- background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7069
+ background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
7040
7070
  opacity: u ? 0.7 : 1,
7041
7071
  color: "white",
7042
7072
  padding: "10px 20px",
@@ -7052,7 +7082,7 @@ const Ns = [
7052
7082
  gap: "8px",
7053
7083
  textDecoration: "none",
7054
7084
  minHeight: "36px",
7055
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7085
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7056
7086
  },
7057
7087
  children: [
7058
7088
  u ? /* @__PURE__ */ r.jsx(
@@ -7073,7 +7103,7 @@ const Ns = [
7073
7103
  {
7074
7104
  onClick: () => E(!0),
7075
7105
  style: {
7076
- background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7106
+ background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
7077
7107
  color: "white",
7078
7108
  padding: "10px 20px",
7079
7109
  borderRadius: "6px",
@@ -7088,7 +7118,7 @@ const Ns = [
7088
7118
  gap: "8px",
7089
7119
  textDecoration: "none",
7090
7120
  minHeight: "36px",
7091
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7121
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7092
7122
  },
7093
7123
  children: [
7094
7124
  /* @__PURE__ */ r.jsx(ks, { size: 16, "aria-hidden": "true" }),
@@ -7118,7 +7148,7 @@ const Ns = [
7118
7148
  gap: "8px",
7119
7149
  minHeight: "36px",
7120
7150
  opacity: T ? 0.7 : 1,
7121
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7151
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7122
7152
  },
7123
7153
  children: [
7124
7154
  T ? /* @__PURE__ */ r.jsx(
@@ -7138,8 +7168,8 @@ const Ns = [
7138
7168
  "button",
7139
7169
  {
7140
7170
  style: {
7141
- backgroundColor: A.surfaceLight,
7142
- color: A.textPrimary,
7171
+ backgroundColor: z.surfaceLight,
7172
+ color: z.textPrimary,
7143
7173
  padding: "10px 20px",
7144
7174
  borderRadius: "6px",
7145
7175
  border: "none",
@@ -7172,8 +7202,8 @@ const Ns = [
7172
7202
  bottom: "100%",
7173
7203
  left: 0,
7174
7204
  right: 0,
7175
- backgroundColor: A.surface,
7176
- border: `1px solid ${A.border}`,
7205
+ backgroundColor: z.surface,
7206
+ border: `1px solid ${z.border}`,
7177
7207
  borderRadius: "12px 12px 0 0",
7178
7208
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
7179
7209
  zIndex: 200,
@@ -7193,7 +7223,7 @@ const Ns = [
7193
7223
  padding: "14px 18px",
7194
7224
  backgroundColor: "transparent",
7195
7225
  border: "none",
7196
- color: A.textPrimary,
7226
+ color: z.textPrimary,
7197
7227
  cursor: "pointer",
7198
7228
  transition: "all 0.2s ease",
7199
7229
  fontSize: "13px",
@@ -7203,7 +7233,7 @@ const Ns = [
7203
7233
  gap: "8px",
7204
7234
  textAlign: "left"
7205
7235
  },
7206
- onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
7236
+ onMouseEnter: (v) => v.currentTarget.style.backgroundColor = z.surfaceLight,
7207
7237
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7208
7238
  children: [
7209
7239
  /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
@@ -7297,7 +7327,7 @@ const Ns = [
7297
7327
  "section",
7298
7328
  {
7299
7329
  style: {
7300
- backgroundColor: A.surface,
7330
+ backgroundColor: z.surface,
7301
7331
  borderRadius: "16px",
7302
7332
  padding: "24px",
7303
7333
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7310,7 +7340,7 @@ const Ns = [
7310
7340
  fontSize: "20px",
7311
7341
  fontWeight: 600,
7312
7342
  margin: "0 0 24px 0",
7313
- color: A.textSecondary,
7343
+ color: z.textSecondary,
7314
7344
  display: "flex",
7315
7345
  alignItems: "center",
7316
7346
  gap: "8px"
@@ -7328,7 +7358,7 @@ const Ns = [
7328
7358
  display: "grid",
7329
7359
  gap: "20px",
7330
7360
  gridTemplateColumns: "1fr",
7331
- ...o && window.innerWidth >= 600 && {
7361
+ ...a && window.innerWidth >= 600 && {
7332
7362
  gridTemplateColumns: "1fr 1fr",
7333
7363
  gap: "20px"
7334
7364
  }
@@ -7348,7 +7378,7 @@ const Ns = [
7348
7378
  "label",
7349
7379
  {
7350
7380
  style: {
7351
- color: A.textTertiary,
7381
+ color: z.textTertiary,
7352
7382
  fontSize: "12px",
7353
7383
  fontWeight: 500,
7354
7384
  display: "flex",
@@ -7367,7 +7397,7 @@ const Ns = [
7367
7397
  type: v.type,
7368
7398
  name: v.name,
7369
7399
  value: d[v.name],
7370
- onChange: (V) => f(
7400
+ onChange: (V) => x(
7371
7401
  (Z) => Z && { ...Z, [V.target.name]: V.target.value }
7372
7402
  ),
7373
7403
  style: {
@@ -7375,7 +7405,7 @@ const Ns = [
7375
7405
  borderRadius: "8px",
7376
7406
  border: `1px solid ${i}`,
7377
7407
  backgroundColor: "transparent",
7378
- color: A.textPrimary,
7408
+ color: z.textPrimary,
7379
7409
  fontSize: "12px",
7380
7410
  outline: "none",
7381
7411
  transition: "border-color 0.2s ease",
@@ -7399,7 +7429,7 @@ const Ns = [
7399
7429
  display: "flex",
7400
7430
  alignItems: "center",
7401
7431
  boxSizing: "border-box",
7402
- color: A.textPrimary,
7432
+ color: z.textPrimary,
7403
7433
  backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7404
7434
  },
7405
7435
  children: v.value
@@ -7419,7 +7449,7 @@ const Ns = [
7419
7449
  "section",
7420
7450
  {
7421
7451
  style: {
7422
- backgroundColor: A.surface,
7452
+ backgroundColor: z.surface,
7423
7453
  borderRadius: "16px",
7424
7454
  padding: "30px 24px",
7425
7455
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7432,7 +7462,7 @@ const Ns = [
7432
7462
  fontSize: "20px",
7433
7463
  fontWeight: 600,
7434
7464
  margin: "0 0 24px 0",
7435
- color: A.textSecondary,
7465
+ color: z.textSecondary,
7436
7466
  display: "flex",
7437
7467
  alignItems: "center",
7438
7468
  gap: "8px"
@@ -7469,7 +7499,7 @@ const Ns = [
7469
7499
  display: "flex",
7470
7500
  alignItems: "center",
7471
7501
  gap: "12px",
7472
- color: A.textSecondary
7502
+ color: z.textSecondary
7473
7503
  },
7474
7504
  children: [
7475
7505
  /* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
@@ -7490,11 +7520,11 @@ const Ns = [
7490
7520
  gap: "6px",
7491
7521
  ...d.isVerified ? {
7492
7522
  backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7493
- color: A.success,
7523
+ color: z.success,
7494
7524
  border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7495
7525
  } : {
7496
7526
  backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7497
- color: A.warning,
7527
+ color: z.warning,
7498
7528
  border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7499
7529
  }
7500
7530
  },
@@ -7522,7 +7552,7 @@ const Ns = [
7522
7552
  "p",
7523
7553
  {
7524
7554
  style: {
7525
- color: A.textTertiary,
7555
+ color: z.textTertiary,
7526
7556
  fontSize: "12px",
7527
7557
  margin: 0
7528
7558
  },
@@ -7546,14 +7576,14 @@ const Ns = [
7546
7576
  }
7547
7577
  ),
7548
7578
  /* @__PURE__ */ r.jsx(
7549
- Ls,
7579
+ Fs,
7550
7580
  {
7551
7581
  isOpen: h,
7552
7582
  onClose: () => {
7553
7583
  I(!1);
7554
7584
  },
7555
- onUpdate: oe,
7556
- colors: A
7585
+ onUpdate: ae,
7586
+ colors: z
7557
7587
  }
7558
7588
  ),
7559
7589
  /* @__PURE__ */ r.jsx(
@@ -7564,18 +7594,18 @@ const Ns = [
7564
7594
  onClose: () => g(!1),
7565
7595
  onSuccess: (v) => m("success", v),
7566
7596
  onError: (v) => m("error", v),
7567
- colors: A
7597
+ colors: z
7568
7598
  }
7569
7599
  ),
7570
7600
  /* @__PURE__ */ r.jsx(
7571
- Fs,
7601
+ Ls,
7572
7602
  {
7573
7603
  userId: d.id,
7574
7604
  isOpen: U,
7575
7605
  onClose: () => N(!1),
7576
7606
  onSuccess: (v) => m("success", v),
7577
7607
  onError: (v) => m("error", v),
7578
- colors: A
7608
+ colors: z
7579
7609
  }
7580
7610
  ),
7581
7611
  /* @__PURE__ */ r.jsx(
@@ -7583,7 +7613,7 @@ const Ns = [
7583
7613
  {
7584
7614
  isOpen: b,
7585
7615
  onClose: () => {
7586
- j(!1), F(!1), J({ email: d?.email || "", otp: "" });
7616
+ j(!1), L(!1), J({ email: d?.email || "", otp: "" });
7587
7617
  },
7588
7618
  onVerify: ne,
7589
7619
  onSendOTP: D,
@@ -7592,7 +7622,7 @@ const Ns = [
7592
7622
  otpSent: H,
7593
7623
  verifying: Y,
7594
7624
  user: d,
7595
- colors: A,
7625
+ colors: z,
7596
7626
  darkMode: t
7597
7627
  }
7598
7628
  ),
@@ -7694,14 +7724,14 @@ const Ns = [
7694
7724
  onLogout: n,
7695
7725
  varient: s = "classic",
7696
7726
  propUser: i,
7697
- className: a = "",
7727
+ className: o = "",
7698
7728
  // New URL props with defaults
7699
- profileUrl: o,
7729
+ profileUrl: a,
7700
7730
  settingsUrl: c,
7701
7731
  // Menu item visibility with defaults
7702
7732
  showProfileMenuItem: d = !0,
7703
- showSettingsMenuItem: f = !0,
7704
- showViewProfileMenuItem: x = !0,
7733
+ showSettingsMenuItem: x = !0,
7734
+ showViewProfileMenuItem: p = !0,
7705
7735
  // Custom labels with defaults
7706
7736
  profileLabel: y = "My Profile",
7707
7737
  settingsLabel: k = "Settings",
@@ -7750,9 +7780,9 @@ const Ns = [
7750
7780
  if (typeof window > "u") return;
7751
7781
  const l = () => {
7752
7782
  if (!h || !O.current) return;
7753
- const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280, oe = S - m.right, B = m.left;
7783
+ const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280, ae = S - m.right, B = m.left;
7754
7784
  D - m.bottom;
7755
- const le = oe >= ne || oe > B;
7785
+ const le = ae >= ne || ae > B;
7756
7786
  W(le);
7757
7787
  };
7758
7788
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
@@ -7794,7 +7824,7 @@ const Ns = [
7794
7824
  accent: e,
7795
7825
  accentHover: `${e}e6`,
7796
7826
  error: "#ef4444"
7797
- }, z = {
7827
+ }, A = {
7798
7828
  wrapper: {
7799
7829
  position: "relative",
7800
7830
  display: "inline-block"
@@ -8049,7 +8079,7 @@ const Ns = [
8049
8079
  }
8050
8080
  }, J = (l, m) => {
8051
8081
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
8052
- }, H = () => o || C?.profileUrl, F = () => {
8082
+ }, H = () => a || C?.profileUrl, L = () => {
8053
8083
  const l = H();
8054
8084
  l && window.open(l, "_self", "noopener,noreferrer");
8055
8085
  }, Y = () => {
@@ -8058,9 +8088,9 @@ const Ns = [
8058
8088
  return /* @__PURE__ */ r.jsxs(
8059
8089
  "div",
8060
8090
  {
8061
- style: z.wrapper,
8091
+ style: A.wrapper,
8062
8092
  ref: q,
8063
- className: a,
8093
+ className: o,
8064
8094
  role: "menu",
8065
8095
  "aria-label": "User menu",
8066
8096
  children: [
@@ -8119,7 +8149,7 @@ const Ns = [
8119
8149
  "div",
8120
8150
  {
8121
8151
  ref: O,
8122
- style: z.avatarButton,
8152
+ style: A.avatarButton,
8123
8153
  onClick: () => I((l) => !l),
8124
8154
  onKeyDown: (l) => J(l, () => I((m) => !m)),
8125
8155
  tabIndex: 0,
@@ -8142,7 +8172,7 @@ const Ns = [
8142
8172
  {
8143
8173
  src: C.avatarUrl,
8144
8174
  alt: `${C.name}'s avatar`,
8145
- style: z.avatarImage,
8175
+ style: A.avatarImage,
8146
8176
  loading: "lazy",
8147
8177
  onError: (l) => {
8148
8178
  const m = l.target;
@@ -8154,29 +8184,29 @@ const Ns = [
8154
8184
  {
8155
8185
  src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
8156
8186
  alt: "Default user avatar",
8157
- style: z.avatarImage,
8187
+ style: A.avatarImage,
8158
8188
  loading: "lazy"
8159
8189
  }
8160
8190
  ),
8161
- !R && /* @__PURE__ */ r.jsxs("div", { style: z.userInfo, children: [
8162
- /* @__PURE__ */ r.jsx("div", { style: z.userName, title: C?.name, children: C?.name || "Guest" }),
8163
- C?.email && /* @__PURE__ */ r.jsx("div", { style: z.userEmail, title: C.email, children: C.email })
8191
+ !R && /* @__PURE__ */ r.jsxs("div", { style: A.userInfo, children: [
8192
+ /* @__PURE__ */ r.jsx("div", { style: A.userName, title: C?.name, children: C?.name || "Guest" }),
8193
+ C?.email && /* @__PURE__ */ r.jsx("div", { style: A.userEmail, title: C.email, children: C.email })
8164
8194
  ] }),
8165
8195
  /* @__PURE__ */ r.jsx(
8166
8196
  Zn,
8167
8197
  {
8168
8198
  size: R ? 14 : 16,
8169
- style: z.chevron,
8199
+ style: A.chevron,
8170
8200
  "aria-hidden": "true"
8171
8201
  }
8172
8202
  )
8173
8203
  ]
8174
8204
  }
8175
8205
  ),
8176
- h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8206
+ h && /* @__PURE__ */ r.jsx("div", { style: A.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8177
8207
  "div",
8178
8208
  {
8179
- style: z.loadingContainer,
8209
+ style: A.loadingContainer,
8180
8210
  role: "status",
8181
8211
  "aria-live": "polite",
8182
8212
  children: [
@@ -8189,23 +8219,23 @@ const Ns = [
8189
8219
  "aria-hidden": "true"
8190
8220
  }
8191
8221
  ),
8192
- /* @__PURE__ */ r.jsxs("div", { style: z.loadingSkeleton, children: [
8193
- /* @__PURE__ */ r.jsx("div", { style: z.skeletonAvatar }),
8194
- /* @__PURE__ */ r.jsxs("div", { style: z.skeletonTextBlock, children: [
8195
- /* @__PURE__ */ r.jsx("div", { style: z.skeletonLineShort }),
8196
- /* @__PURE__ */ r.jsx("div", { style: z.skeletonLineLong })
8222
+ /* @__PURE__ */ r.jsxs("div", { style: A.loadingSkeleton, children: [
8223
+ /* @__PURE__ */ r.jsx("div", { style: A.skeletonAvatar }),
8224
+ /* @__PURE__ */ r.jsxs("div", { style: A.skeletonTextBlock, children: [
8225
+ /* @__PURE__ */ r.jsx("div", { style: A.skeletonLineShort }),
8226
+ /* @__PURE__ */ r.jsx("div", { style: A.skeletonLineLong })
8197
8227
  ] })
8198
8228
  ] })
8199
8229
  ]
8200
8230
  }
8201
8231
  ) : C ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
8202
- /* @__PURE__ */ r.jsxs("div", { style: z.userSection, children: [
8232
+ /* @__PURE__ */ r.jsxs("div", { style: A.userSection, children: [
8203
8233
  C?.avatarUrl ? /* @__PURE__ */ r.jsx(
8204
8234
  "img",
8205
8235
  {
8206
8236
  src: C.avatarUrl,
8207
8237
  alt: `${C.name}'s profile picture`,
8208
- style: z.dropdownAvatar,
8238
+ style: A.dropdownAvatar,
8209
8239
  loading: "lazy",
8210
8240
  onError: (l) => {
8211
8241
  const m = l.target;
@@ -8217,40 +8247,40 @@ const Ns = [
8217
8247
  {
8218
8248
  src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
8219
8249
  alt: `${C.name}'s default avatar`,
8220
- style: z.dropdownAvatar,
8250
+ style: A.dropdownAvatar,
8221
8251
  loading: "lazy"
8222
8252
  }
8223
8253
  ),
8224
- /* @__PURE__ */ r.jsxs("div", { style: z.dropdownUserInfo, children: [
8225
- /* @__PURE__ */ r.jsx("div", { style: z.dropdownUserName, title: C.name, children: C.name }),
8226
- /* @__PURE__ */ r.jsx("div", { style: z.dropdownUserEmail, title: C.email, children: C.email })
8254
+ /* @__PURE__ */ r.jsxs("div", { style: A.dropdownUserInfo, children: [
8255
+ /* @__PURE__ */ r.jsx("div", { style: A.dropdownUserName, title: C.name, children: C.name }),
8256
+ /* @__PURE__ */ r.jsx("div", { style: A.dropdownUserEmail, title: C.email, children: C.email })
8227
8257
  ] })
8228
8258
  ] }),
8229
- /* @__PURE__ */ r.jsxs("div", { style: z.dropdownSection, children: [
8259
+ /* @__PURE__ */ r.jsxs("div", { style: A.dropdownSection, children: [
8230
8260
  d && H() && /* @__PURE__ */ r.jsxs(
8231
8261
  "button",
8232
8262
  {
8233
- style: z.menuItem,
8234
- onClick: F,
8263
+ style: A.menuItem,
8264
+ onClick: L,
8235
8265
  onMouseOver: (l) => {
8236
8266
  l.currentTarget.style.backgroundColor = T.surfaceHover;
8237
8267
  },
8238
8268
  onMouseOut: (l) => {
8239
8269
  l.currentTarget.style.backgroundColor = "transparent";
8240
8270
  },
8241
- onKeyDown: (l) => J(l, F),
8271
+ onKeyDown: (l) => J(l, L),
8242
8272
  role: "menuitem",
8243
8273
  tabIndex: 0,
8244
8274
  children: [
8245
- /* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
8246
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
8275
+ /* @__PURE__ */ r.jsx(he, { style: A.icon, "aria-hidden": "true" }),
8276
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: y })
8247
8277
  ]
8248
8278
  }
8249
8279
  ),
8250
- f && c && /* @__PURE__ */ r.jsxs(
8280
+ x && c && /* @__PURE__ */ r.jsxs(
8251
8281
  "button",
8252
8282
  {
8253
- style: z.menuItem,
8283
+ style: A.menuItem,
8254
8284
  onClick: Y,
8255
8285
  onMouseOver: (l) => {
8256
8286
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8262,18 +8292,18 @@ const Ns = [
8262
8292
  role: "menuitem",
8263
8293
  tabIndex: 0,
8264
8294
  children: [
8265
- /* @__PURE__ */ r.jsx(Os, { style: z.icon, "aria-hidden": "true" }),
8266
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: k })
8295
+ /* @__PURE__ */ r.jsx(Os, { style: A.icon, "aria-hidden": "true" }),
8296
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: k })
8267
8297
  ]
8268
8298
  }
8269
8299
  ),
8270
- x && C.profileUrl && /* @__PURE__ */ r.jsxs(
8300
+ p && C.profileUrl && /* @__PURE__ */ r.jsxs(
8271
8301
  "a",
8272
8302
  {
8273
8303
  href: C.profileUrl,
8274
8304
  target: "_self",
8275
8305
  rel: "noopener noreferrer",
8276
- style: z.menuItem,
8306
+ style: A.menuItem,
8277
8307
  onMouseOver: (l) => {
8278
8308
  l.currentTarget.style.backgroundColor = T.surfaceHover;
8279
8309
  },
@@ -8283,16 +8313,16 @@ const Ns = [
8283
8313
  role: "menuitem",
8284
8314
  tabIndex: 0,
8285
8315
  children: [
8286
- /* @__PURE__ */ r.jsx(pe, { style: z.icon, "aria-hidden": "true" }),
8287
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: E })
8316
+ /* @__PURE__ */ r.jsx(pe, { style: A.icon, "aria-hidden": "true" }),
8317
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: E })
8288
8318
  ]
8289
8319
  }
8290
8320
  )
8291
8321
  ] }),
8292
- /* @__PURE__ */ r.jsx("div", { style: z.dropdownSection, children: /* @__PURE__ */ r.jsxs(
8322
+ /* @__PURE__ */ r.jsx("div", { style: A.dropdownSection, children: /* @__PURE__ */ r.jsxs(
8293
8323
  "button",
8294
8324
  {
8295
- style: z.logoutButton,
8325
+ style: A.logoutButton,
8296
8326
  onClick: n,
8297
8327
  onMouseOver: (l) => {
8298
8328
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8307,15 +8337,15 @@ const Ns = [
8307
8337
  /* @__PURE__ */ r.jsx(
8308
8338
  ct,
8309
8339
  {
8310
- style: { ...z.icon, color: T.error },
8340
+ style: { ...A.icon, color: T.error },
8311
8341
  "aria-hidden": "true"
8312
8342
  }
8313
8343
  ),
8314
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: u })
8344
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: u })
8315
8345
  ]
8316
8346
  }
8317
8347
  ) })
8318
- ] }) : /* @__PURE__ */ r.jsxs("div", { style: z.errorState, role: "alert", children: [
8348
+ ] }) : /* @__PURE__ */ r.jsxs("div", { style: A.errorState, role: "alert", children: [
8319
8349
  /* @__PURE__ */ r.jsxs(
8320
8350
  "div",
8321
8351
  {
@@ -8329,7 +8359,7 @@ const Ns = [
8329
8359
  b && b !== "Not signed in" && /* @__PURE__ */ r.jsx(
8330
8360
  "button",
8331
8361
  {
8332
- style: z.retryButton,
8362
+ style: A.retryButton,
8333
8363
  onClick: M,
8334
8364
  onMouseOver: (l) => {
8335
8365
  l.currentTarget.style.backgroundColor = T.accentHover;
@@ -8379,13 +8409,13 @@ const Ns = [
8379
8409
  ]
8380
8410
  }
8381
8411
  );
8382
- const [a, o] = P(!1), [c, d] = P({
8412
+ const [o, a] = P(!1), [c, d] = P({
8383
8413
  email: t?.email || "",
8384
8414
  otp: ""
8385
- }), [f, x] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8415
+ }), [x, p] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8386
8416
  Ce.useEffect(() => {
8387
8417
  if (typeof window < "u") {
8388
- const b = () => o(window.innerWidth < 768);
8418
+ const b = () => a(window.innerWidth < 768);
8389
8419
  return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
8390
8420
  }
8391
8421
  }, []);
@@ -8435,7 +8465,7 @@ const Ns = [
8435
8465
  });
8436
8466
  if (console.log("Send OTP response:", b), b.success || b.data?.success) {
8437
8467
  const j = b.message || b.data?.message || "OTP sent!";
8438
- I("success", j), x(!0);
8468
+ I("success", j), p(!0);
8439
8469
  } else {
8440
8470
  const j = b.message || b.data?.message || "Failed to send OTP";
8441
8471
  I("error", j);
@@ -8458,7 +8488,7 @@ const Ns = [
8458
8488
  });
8459
8489
  if (j.success) {
8460
8490
  const q = { ...t, isVerified: !0 };
8461
- s?.(q), I("success", j.message || "Email verified!"), x(!1), d({ email: t.email, otp: "" });
8491
+ s?.(q), I("success", j.message || "Email verified!"), p(!1), d({ email: t.email, otp: "" });
8462
8492
  } else
8463
8493
  I("error", j.message || "Verification failed");
8464
8494
  } catch (j) {
@@ -8497,7 +8527,7 @@ const Ns = [
8497
8527
  onSubmit: g,
8498
8528
  style: {
8499
8529
  width: "100%",
8500
- maxWidth: a ? "340px" : "400px",
8530
+ maxWidth: o ? "340px" : "400px",
8501
8531
  display: "flex",
8502
8532
  flexDirection: "column",
8503
8533
  gap: 20,
@@ -8618,7 +8648,7 @@ const Ns = [
8618
8648
  }
8619
8649
  )
8620
8650
  ] }),
8621
- f && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8651
+ x && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8622
8652
  /* @__PURE__ */ r.jsxs(
8623
8653
  "div",
8624
8654
  {
@@ -8668,7 +8698,7 @@ const Ns = [
8668
8698
  }
8669
8699
  )
8670
8700
  ] }),
8671
- /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: f ? /* @__PURE__ */ r.jsxs(
8701
+ /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: x ? /* @__PURE__ */ r.jsxs(
8672
8702
  "button",
8673
8703
  {
8674
8704
  type: "submit",