@neuctra/authix 1.2.21 → 1.2.23

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,60 @@ 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 {
2253
+ category: s,
2254
+ limit: i = 20,
2255
+ cursor: o
2256
+ } = e;
2257
+ let a = `/app/${encodeURIComponent(n)}/users-data`;
2258
+ s && (a += `/${encodeURIComponent(s)}`);
2259
+ const c = new URLSearchParams();
2260
+ c.append("limit", String(i)), o && c.append("cursor", o);
2261
+ const d = c.toString();
2262
+ return d && (a += `?${d}`), await this.request(
2263
+ "GET",
2264
+ a,
2265
+ void 0,
2266
+ {},
2267
+ !1
2268
+ );
2237
2269
  }
2238
2270
  /**
2239
- * 👥 Get all app users
2271
+ * 👥 Get all app users (Paginated + Load More + Filters)
2240
2272
  *
2241
2273
  * Route:
2242
2274
  * GET /api/app/:appId/users
2275
+ *
2276
+ * Features:
2277
+ * - Cursor pagination
2278
+ * - Limit control
2279
+ * - Load more support
2280
+ * - Optional filters (future-ready)
2243
2281
  */
2244
- async getAllAppUsers() {
2245
- const e = this.appId;
2246
- if (!e)
2282
+ async getAllAppUsers(e = {}) {
2283
+ const n = this.appId;
2284
+ if (!n)
2247
2285
  throw new Error("getAllAppUsers: 'appId' is required");
2286
+ const { limit: s = 20, cursor: i, search: o, role: a, isActive: c, isVerified: d } = e, x = `/app/${encodeURIComponent(n)}/users`, p = new URLSearchParams();
2287
+ 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));
2288
+ const y = p.toString();
2248
2289
  return await this.request(
2249
2290
  "GET",
2250
- `/app/${encodeURIComponent(e)}/users`,
2291
+ y ? `${x}?${y}` : x,
2251
2292
  void 0,
2252
2293
  {},
2253
2294
  !1
@@ -2354,7 +2395,7 @@ class li {
2354
2395
  );
2355
2396
  }
2356
2397
  }
2357
- var Ae = { exports: {} }, ke = {};
2398
+ var ze = { exports: {} }, ke = {};
2358
2399
  /**
2359
2400
  * @license React
2360
2401
  * react-jsx-runtime.production.js
@@ -2365,23 +2406,23 @@ var Ae = { exports: {} }, ke = {};
2365
2406
  * LICENSE file in the root directory of this source tree.
2366
2407
  */
2367
2408
  var Rt;
2368
- function Ln() {
2409
+ function Fn() {
2369
2410
  if (Rt) return ke;
2370
2411
  Rt = 1;
2371
2412
  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 = {};
2413
+ function n(s, i, o) {
2414
+ var a = null;
2415
+ if (o !== void 0 && (a = "" + o), i.key !== void 0 && (a = "" + i.key), "key" in i) {
2416
+ o = {};
2376
2417
  for (var c in i)
2377
- c !== "key" && (a[c] = i[c]);
2378
- } else a = i;
2379
- return i = a.ref, {
2418
+ c !== "key" && (o[c] = i[c]);
2419
+ } else o = i;
2420
+ return i = o.ref, {
2380
2421
  $$typeof: t,
2381
2422
  type: s,
2382
- key: o,
2423
+ key: a,
2383
2424
  ref: i !== void 0 ? i : null,
2384
- props: a
2425
+ props: o
2385
2426
  };
2386
2427
  }
2387
2428
  return ke.Fragment = e, ke.jsx = n, ke.jsxs = n, ke;
@@ -2477,10 +2518,10 @@ function qn() {
2477
2518
  var l = R.A;
2478
2519
  return l === null ? null : l.getOwner();
2479
2520
  }
2480
- function a() {
2521
+ function o() {
2481
2522
  return Error("react-stack-top-frame");
2482
2523
  }
2483
- function o(l) {
2524
+ function a(l) {
2484
2525
  if (G.call(l, "key")) {
2485
2526
  var m = Object.getOwnPropertyDescriptor(l, "key").get;
2486
2527
  if (m && m.isReactWarning) return !1;
@@ -2505,7 +2546,7 @@ function qn() {
2505
2546
  "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
2547
  )), l = this.props.ref, l !== void 0 ? l : null;
2507
2548
  }
2508
- function f(l, m, S, D, ne, oe) {
2549
+ function x(l, m, S, D, ne, ae) {
2509
2550
  var B = S.ref;
2510
2551
  return l = {
2511
2552
  $$typeof: u,
@@ -2535,10 +2576,10 @@ function qn() {
2535
2576
  configurable: !1,
2536
2577
  enumerable: !1,
2537
2578
  writable: !0,
2538
- value: oe
2579
+ value: ae
2539
2580
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2540
2581
  }
2541
- function x(l, m, S, D, ne, oe) {
2582
+ function p(l, m, S, D, ne, ae) {
2542
2583
  var B = m.children;
2543
2584
  if (B !== void 0)
2544
2585
  if (D)
@@ -2553,8 +2594,8 @@ function qn() {
2553
2594
  else y(B);
2554
2595
  if (G.call(m, "key")) {
2555
2596
  B = t(l);
2556
- var le = Object.keys(m).filter(function(A) {
2557
- return A !== "key";
2597
+ var le = Object.keys(m).filter(function(z) {
2598
+ return z !== "key";
2558
2599
  });
2559
2600
  D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
2560
2601
  `A props object containing a "key" prop is being spread into JSX:
@@ -2569,7 +2610,7 @@ React keys must be passed directly to JSX without using spread:
2569
2610
  B
2570
2611
  ), Y[B + D] = !0);
2571
2612
  }
2572
- if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
2613
+ if (B = null, S !== void 0 && (n(S), B = "" + S), a(m) && (n(m.key), B = "" + m.key), "key" in m) {
2573
2614
  S = {};
2574
2615
  for (var ye in m)
2575
2616
  ye !== "key" && (S[ye] = m[ye]);
@@ -2577,13 +2618,13 @@ React keys must be passed directly to JSX without using spread:
2577
2618
  return B && c(
2578
2619
  S,
2579
2620
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2580
- ), f(
2621
+ ), x(
2581
2622
  l,
2582
2623
  B,
2583
2624
  S,
2584
2625
  i(),
2585
2626
  ne,
2586
- oe
2627
+ ae
2587
2628
  );
2588
2629
  }
2589
2630
  function y(l) {
@@ -2592,7 +2633,7 @@ React keys must be passed directly to JSX without using spread:
2592
2633
  function k(l) {
2593
2634
  return typeof l == "object" && l !== null && l.$$typeof === u;
2594
2635
  }
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() {
2636
+ 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
2637
  return null;
2597
2638
  };
2598
2639
  E = {
@@ -2602,34 +2643,34 @@ React keys must be passed directly to JSX without using spread:
2602
2643
  };
2603
2644
  var M, J = {}, H = E.react_stack_bottom_frame.bind(
2604
2645
  E,
2605
- a
2606
- )(), F = z(s(a)), Y = {};
2646
+ o
2647
+ )(), L = A(s(o)), Y = {};
2607
2648
  Ee.Fragment = h, Ee.jsx = function(l, m, S) {
2608
2649
  var D = 1e4 > R.recentlyCreatedOwnerStacks++;
2609
- return x(
2650
+ return p(
2610
2651
  l,
2611
2652
  m,
2612
2653
  S,
2613
2654
  !1,
2614
2655
  D ? Error("react-stack-top-frame") : H,
2615
- D ? z(s(l)) : F
2656
+ D ? A(s(l)) : L
2616
2657
  );
2617
2658
  }, Ee.jsxs = function(l, m, S) {
2618
2659
  var D = 1e4 > R.recentlyCreatedOwnerStacks++;
2619
- return x(
2660
+ return p(
2620
2661
  l,
2621
2662
  m,
2622
2663
  S,
2623
2664
  !0,
2624
2665
  D ? Error("react-stack-top-frame") : H,
2625
- D ? z(s(l)) : F
2666
+ D ? A(s(l)) : L
2626
2667
  );
2627
2668
  };
2628
2669
  })()), Ee;
2629
2670
  }
2630
2671
  var It;
2631
2672
  function Mn() {
2632
- return It || (It = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ln() : Ae.exports = qn()), Ae.exports;
2673
+ return It || (It = 1, process.env.NODE_ENV === "production" ? ze.exports = Fn() : ze.exports = qn()), ze.exports;
2633
2674
  }
2634
2675
  var r = Mn();
2635
2676
  /**
@@ -2672,15 +2713,15 @@ var Vn = {
2672
2713
  * This source code is licensed under the ISC license.
2673
2714
  * See the LICENSE file in the root directory of this source tree.
2674
2715
  */
2675
- const Yn = At(
2716
+ const Yn = zt(
2676
2717
  ({
2677
2718
  color: t = "currentColor",
2678
2719
  size: e = 24,
2679
2720
  strokeWidth: n = 2,
2680
2721
  absoluteStrokeWidth: s,
2681
2722
  className: i = "",
2682
- children: a,
2683
- iconNode: o,
2723
+ children: o,
2724
+ iconNode: a,
2684
2725
  ...c
2685
2726
  }, d) => Je(
2686
2727
  "svg",
@@ -2692,12 +2733,12 @@ const Yn = At(
2692
2733
  stroke: t,
2693
2734
  strokeWidth: s ? Number(n) * 24 / Number(e) : n,
2694
2735
  className: sr("lucide", i),
2695
- ...!a && !Hn(c) && { "aria-hidden": "true" },
2736
+ ...!o && !Hn(c) && { "aria-hidden": "true" },
2696
2737
  ...c
2697
2738
  },
2698
2739
  [
2699
- ...o.map(([f, x]) => Je(f, x)),
2700
- ...Array.isArray(a) ? a : [a]
2740
+ ...a.map(([x, p]) => Je(x, p)),
2741
+ ...Array.isArray(o) ? o : [o]
2701
2742
  ]
2702
2743
  )
2703
2744
  );
@@ -2707,10 +2748,10 @@ const Yn = At(
2707
2748
  * This source code is licensed under the ISC license.
2708
2749
  * See the LICENSE file in the root directory of this source tree.
2709
2750
  */
2710
- const L = (t, e) => {
2711
- const n = At(
2712
- ({ className: s, ...i }, a) => Je(Yn, {
2713
- ref: a,
2751
+ const F = (t, e) => {
2752
+ const n = zt(
2753
+ ({ className: s, ...i }, o) => Je(Yn, {
2754
+ ref: o,
2714
2755
  iconNode: e,
2715
2756
  className: sr(
2716
2757
  `lucide-${Wn(Ot(t))}`,
@@ -2737,7 +2778,7 @@ const Kn = [
2737
2778
  }
2738
2779
  ],
2739
2780
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2740
- ], Jn = L("badge-check", Kn);
2781
+ ], Jn = F("badge-check", Kn);
2741
2782
  /**
2742
2783
  * @license lucide-react v0.544.0 - ISC
2743
2784
  *
@@ -2753,14 +2794,14 @@ const Gn = [
2753
2794
  }
2754
2795
  ],
2755
2796
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
2756
- ], tt = L("camera", Gn);
2797
+ ], tt = F("camera", Gn);
2757
2798
  /**
2758
2799
  * @license lucide-react v0.544.0 - ISC
2759
2800
  *
2760
2801
  * This source code is licensed under the ISC license.
2761
2802
  * See the LICENSE file in the root directory of this source tree.
2762
2803
  */
2763
- const Xn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = L("chevron-down", Xn);
2804
+ const Xn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = F("chevron-down", Xn);
2764
2805
  /**
2765
2806
  * @license lucide-react v0.544.0 - ISC
2766
2807
  *
@@ -2771,7 +2812,7 @@ const Qn = [
2771
2812
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2772
2813
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2773
2814
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2774
- ], ie = L("circle-alert", Qn);
2815
+ ], ie = F("circle-alert", Qn);
2775
2816
  /**
2776
2817
  * @license lucide-react v0.544.0 - ISC
2777
2818
  *
@@ -2781,7 +2822,7 @@ const Qn = [
2781
2822
  const es = [
2782
2823
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2783
2824
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2784
- ], ue = L("circle-check-big", es);
2825
+ ], ue = F("circle-check-big", es);
2785
2826
  /**
2786
2827
  * @license lucide-react v0.544.0 - ISC
2787
2828
  *
@@ -2791,7 +2832,7 @@ const es = [
2791
2832
  const ts = [
2792
2833
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2793
2834
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2794
- ], Ke = L("circle-check", ts);
2835
+ ], Ke = F("circle-check", ts);
2795
2836
  /**
2796
2837
  * @license lucide-react v0.544.0 - ISC
2797
2838
  *
@@ -2802,7 +2843,7 @@ const rs = [
2802
2843
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2803
2844
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2804
2845
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2805
- ], ns = L("database", rs);
2846
+ ], ns = F("database", rs);
2806
2847
  /**
2807
2848
  * @license lucide-react v0.544.0 - ISC
2808
2849
  *
@@ -2813,14 +2854,14 @@ const ss = [
2813
2854
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2814
2855
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2815
2856
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2816
- ], is = L("ellipsis-vertical", ss);
2857
+ ], is = F("ellipsis-vertical", ss);
2817
2858
  /**
2818
2859
  * @license lucide-react v0.544.0 - ISC
2819
2860
  *
2820
2861
  * This source code is licensed under the ISC license.
2821
2862
  * See the LICENSE file in the root directory of this source tree.
2822
2863
  */
2823
- const as = [
2864
+ const os = [
2824
2865
  [
2825
2866
  "path",
2826
2867
  {
@@ -2837,14 +2878,14 @@ const as = [
2837
2878
  }
2838
2879
  ],
2839
2880
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2840
- ], at = L("eye-off", as);
2881
+ ], ot = F("eye-off", os);
2841
2882
  /**
2842
2883
  * @license lucide-react v0.544.0 - ISC
2843
2884
  *
2844
2885
  * This source code is licensed under the ISC license.
2845
2886
  * See the LICENSE file in the root directory of this source tree.
2846
2887
  */
2847
- const os = [
2888
+ const as = [
2848
2889
  [
2849
2890
  "path",
2850
2891
  {
@@ -2853,7 +2894,7 @@ const os = [
2853
2894
  }
2854
2895
  ],
2855
2896
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2856
- ], ot = L("eye", os);
2897
+ ], at = F("eye", as);
2857
2898
  /**
2858
2899
  * @license lucide-react v0.544.0 - ISC
2859
2900
  *
@@ -2869,7 +2910,7 @@ const ls = [
2869
2910
  key: "r6nss1"
2870
2911
  }
2871
2912
  ]
2872
- ], cs = L("house", ls);
2913
+ ], cs = F("house", ls);
2873
2914
  /**
2874
2915
  * @license lucide-react v0.544.0 - ISC
2875
2916
  *
@@ -2880,7 +2921,7 @@ const ds = [
2880
2921
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2881
2922
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2882
2923
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2883
- ], ir = L("image", ds);
2924
+ ], ir = F("image", ds);
2884
2925
  /**
2885
2926
  * @license lucide-react v0.544.0 - ISC
2886
2927
  *
@@ -2896,7 +2937,7 @@ const us = [
2896
2937
  }
2897
2938
  ],
2898
2939
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2899
- ], ar = L("key-round", us);
2940
+ ], or = F("key-round", us);
2900
2941
  /**
2901
2942
  * @license lucide-react v0.544.0 - ISC
2902
2943
  *
@@ -2907,7 +2948,7 @@ const ps = [
2907
2948
  ["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
2949
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2909
2950
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2910
- ], lt = L("key", ps);
2951
+ ], lt = F("key", ps);
2911
2952
  /**
2912
2953
  * @license lucide-react v0.544.0 - ISC
2913
2954
  *
@@ -2918,14 +2959,14 @@ const fs = [
2918
2959
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
2919
2960
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
2920
2961
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
2921
- ], xs = L("link-2", fs);
2962
+ ], xs = F("link-2", fs);
2922
2963
  /**
2923
2964
  * @license lucide-react v0.544.0 - ISC
2924
2965
  *
2925
2966
  * This source code is licensed under the ISC license.
2926
2967
  * See the LICENSE file in the root directory of this source tree.
2927
2968
  */
2928
- const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], se = L("loader-circle", hs);
2969
+ const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], se = F("loader-circle", hs);
2929
2970
  /**
2930
2971
  * @license lucide-react v0.544.0 - ISC
2931
2972
  *
@@ -2941,7 +2982,7 @@ const ms = [
2941
2982
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
2942
2983
  ["path", { d: "M2 12h4", key: "j09sii" }],
2943
2984
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
2944
- ], gs = L("loader", ms);
2985
+ ], gs = F("loader", ms);
2945
2986
  /**
2946
2987
  * @license lucide-react v0.544.0 - ISC
2947
2988
  *
@@ -2951,7 +2992,7 @@ const ms = [
2951
2992
  const ys = [
2952
2993
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2953
2994
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2954
- ], be = L("lock", ys);
2995
+ ], be = F("lock", ys);
2955
2996
  /**
2956
2997
  * @license lucide-react v0.544.0 - ISC
2957
2998
  *
@@ -2962,7 +3003,7 @@ const bs = [
2962
3003
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2963
3004
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2964
3005
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2965
- ], ct = L("log-out", bs);
3006
+ ], ct = F("log-out", bs);
2966
3007
  /**
2967
3008
  * @license lucide-react v0.544.0 - ISC
2968
3009
  *
@@ -2972,7 +3013,7 @@ const bs = [
2972
3013
  const ws = [
2973
3014
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2974
3015
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2975
- ], pe = L("mail", ws);
3016
+ ], pe = F("mail", ws);
2976
3017
  /**
2977
3018
  * @license lucide-react v0.544.0 - ISC
2978
3019
  *
@@ -2988,7 +3029,7 @@ const js = [
2988
3029
  }
2989
3030
  ],
2990
3031
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2991
- ], vs = L("map-pin", js);
3032
+ ], vs = F("map-pin", js);
2992
3033
  /**
2993
3034
  * @license lucide-react v0.544.0 - ISC
2994
3035
  *
@@ -3004,7 +3045,7 @@ const Ss = [
3004
3045
  key: "1a8usu"
3005
3046
  }
3006
3047
  ]
3007
- ], ks = L("pen-line", Ss);
3048
+ ], ks = F("pen-line", Ss);
3008
3049
  /**
3009
3050
  * @license lucide-react v0.544.0 - ISC
3010
3051
  *
@@ -3019,7 +3060,7 @@ const Es = [
3019
3060
  key: "9njp5v"
3020
3061
  }
3021
3062
  ]
3022
- ], Cs = L("phone", Es);
3063
+ ], Cs = F("phone", Es);
3023
3064
  /**
3024
3065
  * @license lucide-react v0.544.0 - ISC
3025
3066
  *
@@ -3036,7 +3077,7 @@ const Ts = [
3036
3077
  ],
3037
3078
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
3038
3079
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
3039
- ], Rs = L("save", Ts);
3080
+ ], Rs = F("save", Ts);
3040
3081
  /**
3041
3082
  * @license lucide-react v0.544.0 - ISC
3042
3083
  *
@@ -3052,7 +3093,7 @@ const Ps = [
3052
3093
  }
3053
3094
  ],
3054
3095
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
3055
- ], dt = L("send", Ps);
3096
+ ], dt = F("send", Ps);
3056
3097
  /**
3057
3098
  * @license lucide-react v0.544.0 - ISC
3058
3099
  *
@@ -3068,14 +3109,14 @@ const Is = [
3068
3109
  }
3069
3110
  ],
3070
3111
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
3071
- ], Os = L("settings", Is);
3112
+ ], Os = F("settings", Is);
3072
3113
  /**
3073
3114
  * @license lucide-react v0.544.0 - ISC
3074
3115
  *
3075
3116
  * This source code is licensed under the ISC license.
3076
3117
  * See the LICENSE file in the root directory of this source tree.
3077
3118
  */
3078
- const zs = [
3119
+ const As = [
3079
3120
  [
3080
3121
  "path",
3081
3122
  {
@@ -3083,20 +3124,20 @@ const zs = [
3083
3124
  key: "oel41y"
3084
3125
  }
3085
3126
  ]
3086
- ], rt = L("shield", zs);
3127
+ ], rt = F("shield", As);
3087
3128
  /**
3088
3129
  * @license lucide-react v0.544.0 - ISC
3089
3130
  *
3090
3131
  * This source code is licensed under the ISC license.
3091
3132
  * See the LICENSE file in the root directory of this source tree.
3092
3133
  */
3093
- const As = [
3134
+ const zs = [
3094
3135
  ["path", { d: "M10 11v6", key: "nco0om" }],
3095
3136
  ["path", { d: "M14 11v6", key: "outv1u" }],
3096
3137
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
3097
3138
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
3098
3139
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
3099
- ], De = L("trash-2", As);
3140
+ ], De = F("trash-2", zs);
3100
3141
  /**
3101
3142
  * @license lucide-react v0.544.0 - ISC
3102
3143
  *
@@ -3113,7 +3154,7 @@ const Us = [
3113
3154
  ],
3114
3155
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3115
3156
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3116
- ], zt = L("triangle-alert", Us);
3157
+ ], At = F("triangle-alert", Us);
3117
3158
  /**
3118
3159
  * @license lucide-react v0.544.0 - ISC
3119
3160
  *
@@ -3125,7 +3166,7 @@ const _s = [
3125
3166
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
3126
3167
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
3127
3168
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
3128
- ], $s = L("user-x", _s);
3169
+ ], $s = F("user-x", _s);
3129
3170
  /**
3130
3171
  * @license lucide-react v0.544.0 - ISC
3131
3172
  *
@@ -3135,7 +3176,7 @@ const _s = [
3135
3176
  const Ds = [
3136
3177
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3137
3178
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3138
- ], he = L("user", Ds);
3179
+ ], he = F("user", Ds);
3139
3180
  /**
3140
3181
  * @license lucide-react v0.544.0 - ISC
3141
3182
  *
@@ -3145,11 +3186,11 @@ const Ds = [
3145
3186
  const Ns = [
3146
3187
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3147
3188
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3148
- ], Oe = L("x", Ns), or = cr(null), ci = ({
3189
+ ], Oe = F("x", Ns), ar = cr(null), ci = ({
3149
3190
  authix: t,
3150
3191
  children: e
3151
- }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
3152
- const t = dr(or);
3192
+ }) => /* @__PURE__ */ r.jsx(ar.Provider, { value: t, children: e }), ge = () => {
3193
+ const t = dr(ar);
3153
3194
  if (!t)
3154
3195
  throw new Error("useAuthix must be used inside <AuthixProvider />");
3155
3196
  return t;
@@ -3159,15 +3200,15 @@ const Ns = [
3159
3200
  title: n = "Create Your Account",
3160
3201
  subtitle: s = "Join our platform today",
3161
3202
  primaryColor: i = "#00C214",
3162
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3163
- darkMode: o = !0,
3203
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3204
+ darkMode: a = !0,
3164
3205
  // Only avatar is optional
3165
3206
  showAvatar: c = !1,
3166
3207
  roles: d = [],
3167
3208
  // 🔥 FIXED
3168
- showRoleSelector: f = !1,
3209
+ showRoleSelector: x = !1,
3169
3210
  // 🔥 FIXED
3170
- loginUrl: x,
3211
+ loginUrl: p,
3171
3212
  onSuccess: y,
3172
3213
  onError: k
3173
3214
  }) => {
@@ -3177,21 +3218,21 @@ const Ns = [
3177
3218
  password: "",
3178
3219
  role: d.length ? d[0] : "user",
3179
3220
  ...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)";
3221
+ }, [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
3222
  Ce.useEffect(() => {
3182
3223
  if (typeof window < "u") {
3183
- const F = () => X(window.innerWidth < 768);
3184
- return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
3224
+ const L = () => X(window.innerWidth < 768);
3225
+ return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
3185
3226
  }
3186
3227
  }, []);
3187
- const z = (F) => {
3188
- const { name: Y, value: l } = F.target;
3228
+ const A = (L) => {
3229
+ const { name: Y, value: l } = L.target;
3189
3230
  h((m) => ({ ...m, [Y]: l })), j[Y] && q((m) => ({ ...m, [Y]: void 0 }));
3190
3231
  }, 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()) {
3232
+ const L = {};
3233
+ 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;
3234
+ }, J = async (L) => {
3235
+ if (L.preventDefault(), !!M()) {
3195
3236
  U(!0), b(null);
3196
3237
  try {
3197
3238
  const Y = {
@@ -3246,7 +3287,7 @@ const Ns = [
3246
3287
  flexDirection: "column",
3247
3288
  borderRadius: "10px",
3248
3289
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3249
- backgroundColor: o ? "#000000" : "#ffffff",
3290
+ backgroundColor: a ? "#000000" : "#ffffff",
3250
3291
  padding: O ? "30px 24px" : "20px 28px"
3251
3292
  },
3252
3293
  children: [
@@ -3328,8 +3369,8 @@ const Ns = [
3328
3369
  objectFit: "cover",
3329
3370
  border: `2px solid ${i}30`
3330
3371
  },
3331
- onError: (F) => {
3332
- const Y = F.target;
3372
+ onError: (L) => {
3373
+ const Y = L.target;
3333
3374
  Y.style.display = "none";
3334
3375
  }
3335
3376
  }
@@ -3342,7 +3383,7 @@ const Ns = [
3342
3383
  onSubmit: J,
3343
3384
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3344
3385
  children: [
3345
- f && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3386
+ x && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3346
3387
  "div",
3347
3388
  {
3348
3389
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3381,9 +3422,9 @@ const Ns = [
3381
3422
  left: 0,
3382
3423
  width: "50%",
3383
3424
  height: "100%",
3384
- backgroundColor: o ? "#000000" : "#ffffff",
3425
+ backgroundColor: a ? "#000000" : "#ffffff",
3385
3426
  // dark/light background
3386
- boxShadow: o ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
3427
+ boxShadow: a ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
3387
3428
  // subtle shadow
3388
3429
  borderRadius: "10px",
3389
3430
  transition: "transform 0.3s ease, background-color 0.3s ease",
@@ -3396,13 +3437,13 @@ const Ns = [
3396
3437
  "button",
3397
3438
  {
3398
3439
  type: "button",
3399
- onClick: () => h((F) => ({ ...F, role: d[0] })),
3440
+ onClick: () => h((L) => ({ ...L, role: d[0] })),
3400
3441
  style: {
3401
3442
  flex: 1,
3402
3443
  zIndex: 10,
3403
3444
  border: "none",
3404
3445
  background: "transparent",
3405
- color: w.role === d[0] ? i : o ? "#9ca3af" : "#6b7280",
3446
+ color: w.role === d[0] ? i : a ? "#9ca3af" : "#6b7280",
3406
3447
  // theme-aware inactive color
3407
3448
  fontWeight: w.role === d[0] ? 600 : 500,
3408
3449
  fontSize: "14px",
@@ -3418,13 +3459,13 @@ const Ns = [
3418
3459
  "button",
3419
3460
  {
3420
3461
  type: "button",
3421
- onClick: () => h((F) => ({ ...F, role: d[1] })),
3462
+ onClick: () => h((L) => ({ ...L, role: d[1] })),
3422
3463
  style: {
3423
3464
  flex: 1,
3424
3465
  zIndex: 10,
3425
3466
  border: "none",
3426
3467
  background: "transparent",
3427
- color: w.role === d[1] ? i : o ? "#9ca3af" : "#6b7280",
3468
+ color: w.role === d[1] ? i : a ? "#9ca3af" : "#6b7280",
3428
3469
  fontWeight: w.role === d[1] ? 600 : 500,
3429
3470
  fontSize: "14px",
3430
3471
  display: "flex",
@@ -3476,7 +3517,7 @@ const Ns = [
3476
3517
  name: "name",
3477
3518
  placeholder: "Enter your full name",
3478
3519
  value: w.name,
3479
- onChange: z,
3520
+ onChange: A,
3480
3521
  style: {
3481
3522
  ...H,
3482
3523
  borderColor: j.name ? "#ef4444" : T
@@ -3531,7 +3572,7 @@ const Ns = [
3531
3572
  name: "email",
3532
3573
  placeholder: "Enter your email address",
3533
3574
  value: w.email,
3534
- onChange: z,
3575
+ onChange: A,
3535
3576
  style: {
3536
3577
  ...H,
3537
3578
  borderColor: j.email ? "#ef4444" : T
@@ -3586,7 +3627,7 @@ const Ns = [
3586
3627
  name: "password",
3587
3628
  placeholder: "Create a secure password",
3588
3629
  value: w.password,
3589
- onChange: z,
3630
+ onChange: A,
3590
3631
  style: {
3591
3632
  ...H,
3592
3633
  borderColor: j.password ? "#ef4444" : T
@@ -3609,7 +3650,7 @@ const Ns = [
3609
3650
  cursor: "pointer",
3610
3651
  padding: "4px"
3611
3652
  },
3612
- children: I ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
3653
+ children: I ? /* @__PURE__ */ r.jsx(ot, { size: 20 }) : /* @__PURE__ */ r.jsx(at, { size: 20 })
3613
3654
  }
3614
3655
  )
3615
3656
  ] }),
@@ -3664,7 +3705,7 @@ const Ns = [
3664
3705
  name: "avatarUrl",
3665
3706
  placeholder: "Paste your avatar image URL",
3666
3707
  value: w.avatarUrl || "",
3667
- onChange: z,
3708
+ onChange: A,
3668
3709
  style: H
3669
3710
  }
3670
3711
  )
@@ -3672,7 +3713,7 @@ const Ns = [
3672
3713
  ]
3673
3714
  }
3674
3715
  ),
3675
- x && /* @__PURE__ */ r.jsx(
3716
+ p && /* @__PURE__ */ r.jsx(
3676
3717
  "div",
3677
3718
  {
3678
3719
  style: {
@@ -3683,7 +3724,7 @@ const Ns = [
3683
3724
  children: /* @__PURE__ */ r.jsx(
3684
3725
  "a",
3685
3726
  {
3686
- href: x,
3727
+ href: p,
3687
3728
  style: {
3688
3729
  color: i,
3689
3730
  textDecoration: "none",
@@ -3721,7 +3762,7 @@ const Ns = [
3721
3762
  disabled: g,
3722
3763
  style: {
3723
3764
  padding: "12px",
3724
- background: a,
3765
+ background: o,
3725
3766
  color: "#fff",
3726
3767
  border: "none",
3727
3768
  borderRadius: "10px",
@@ -3784,17 +3825,17 @@ const Ns = [
3784
3825
  title: n = "Sign In to Your Account",
3785
3826
  subtitle: s = "Welcome back! Please enter your details",
3786
3827
  primaryColor: i = "#00C214",
3787
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3788
- darkMode: o = !0,
3828
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3829
+ darkMode: a = !0,
3789
3830
  signupUrl: c,
3790
3831
  onSuccess: d,
3791
- onError: f
3832
+ onError: x
3792
3833
  }) => {
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({
3834
+ 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
3835
  email: "",
3795
3836
  otp: "",
3796
3837
  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)";
3838
+ }), [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
3839
  Ce.useEffect(() => {
3799
3840
  if (typeof window < "u") {
3800
3841
  const m = () => R(window.innerWidth < 768);
@@ -3804,26 +3845,26 @@ const Ns = [
3804
3845
  const J = async (m) => {
3805
3846
  m.preventDefault(), C(!0), U(null);
3806
3847
  try {
3807
- const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
3848
+ const S = await p.loginUser({ email: N, password: j }), { user: D } = S;
3808
3849
  if (!D)
3809
3850
  throw new Error(S.message || "Login failed");
3810
3851
  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`;
3852
+ const ne = "a_s_b", ae = "true", B = /* @__PURE__ */ new Date();
3853
+ B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${ae}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
3813
3854
  }
3814
3855
  U({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3815
3856
  } catch (S) {
3816
3857
  const D = S.message || "Login failed";
3817
- U({ type: "error", text: D }), f?.(S);
3858
+ U({ type: "error", text: D }), x?.(S);
3818
3859
  } finally {
3819
3860
  C(!1);
3820
3861
  }
3821
3862
  }, H = (m) => {
3822
3863
  X({ ...O, [m.target.name]: m.target.value });
3823
- }, F = async (m) => {
3864
+ }, L = async (m) => {
3824
3865
  m.preventDefault(), C(!0), U(null);
3825
3866
  try {
3826
- const S = await x.requestResetUserPasswordOTP({
3867
+ const S = await p.requestResetUserPasswordOTP({
3827
3868
  email: O.email
3828
3869
  });
3829
3870
  S.success ? (u(2), U({
@@ -3844,7 +3885,7 @@ const Ns = [
3844
3885
  }, Y = async (m) => {
3845
3886
  m.preventDefault(), C(!0), U(null);
3846
3887
  try {
3847
- const S = await x.resetUserPassword({
3888
+ const S = await p.resetUserPassword({
3848
3889
  email: O.email,
3849
3890
  otp: O.otp,
3850
3891
  newPassword: O.newPassword
@@ -3864,7 +3905,7 @@ const Ns = [
3864
3905
  }, l = {
3865
3906
  width: "100%",
3866
3907
  padding: W ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3867
- backgroundColor: z,
3908
+ backgroundColor: A,
3868
3909
  border: `1px solid ${M}`,
3869
3910
  borderRadius: "10px",
3870
3911
  color: G,
@@ -3891,7 +3932,7 @@ const Ns = [
3891
3932
  flexDirection: "column",
3892
3933
  borderRadius: "10px",
3893
3934
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3894
- backgroundColor: o ? "#000000" : "#ffffff",
3935
+ backgroundColor: a ? "#000000" : "#ffffff",
3895
3936
  padding: W ? "30px 24px" : "18px 28px"
3896
3937
  },
3897
3938
  children: [
@@ -3971,7 +4012,7 @@ const Ns = [
3971
4012
  style: {
3972
4013
  fontSize: "14px",
3973
4014
  fontWeight: 500,
3974
- color: o ? "#ffffff" : "#000000"
4015
+ color: a ? "#ffffff" : "#000000"
3975
4016
  },
3976
4017
  children: "Email Address"
3977
4018
  }
@@ -4017,7 +4058,7 @@ const Ns = [
4017
4058
  style: {
4018
4059
  fontSize: "14px",
4019
4060
  fontWeight: 500,
4020
- color: o ? "#ffffff" : "#000000"
4061
+ color: a ? "#ffffff" : "#000000"
4021
4062
  },
4022
4063
  children: "Password"
4023
4064
  }
@@ -4063,7 +4104,7 @@ const Ns = [
4063
4104
  color: T,
4064
4105
  cursor: "pointer"
4065
4106
  },
4066
- children: w ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
4107
+ children: w ? /* @__PURE__ */ r.jsx(ot, { size: 20 }) : /* @__PURE__ */ r.jsx(at, { size: 20 })
4067
4108
  }
4068
4109
  )
4069
4110
  ] })
@@ -4116,7 +4157,7 @@ const Ns = [
4116
4157
  disabled: I,
4117
4158
  style: {
4118
4159
  padding: "12px",
4119
- background: a,
4160
+ background: o,
4120
4161
  color: "#fff",
4121
4162
  border: "none",
4122
4163
  borderRadius: "10px",
@@ -4132,7 +4173,7 @@ const Ns = [
4132
4173
  y === "forgot" && /* @__PURE__ */ r.jsxs(
4133
4174
  "form",
4134
4175
  {
4135
- onSubmit: E === 1 ? F : Y,
4176
+ onSubmit: E === 1 ? L : Y,
4136
4177
  style: { display: "flex", flexDirection: "column", gap: "14px" },
4137
4178
  children: [
4138
4179
  E === 1 ? /* @__PURE__ */ r.jsxs(
@@ -4147,7 +4188,7 @@ const Ns = [
4147
4188
  style: {
4148
4189
  fontSize: "14px",
4149
4190
  fontWeight: 500,
4150
- color: o ? "#ffffff" : "#000000"
4191
+ color: a ? "#ffffff" : "#000000"
4151
4192
  },
4152
4193
  children: "Email Address"
4153
4194
  }
@@ -4198,14 +4239,14 @@ const Ns = [
4198
4239
  style: {
4199
4240
  fontSize: "14px",
4200
4241
  fontWeight: 500,
4201
- color: o ? "#ffffff" : "#000000"
4242
+ color: a ? "#ffffff" : "#000000"
4202
4243
  },
4203
4244
  children: "One-Time Password (OTP)"
4204
4245
  }
4205
4246
  ),
4206
4247
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4207
4248
  /* @__PURE__ */ r.jsx(
4208
- ar,
4249
+ or,
4209
4250
  {
4210
4251
  size: 20,
4211
4252
  style: {
@@ -4249,7 +4290,7 @@ const Ns = [
4249
4290
  style: {
4250
4291
  fontSize: "14px",
4251
4292
  fontWeight: 500,
4252
- color: o ? "#ffffff" : "#000000"
4293
+ color: a ? "#ffffff" : "#000000"
4253
4294
  },
4254
4295
  children: "New Password"
4255
4296
  }
@@ -4292,7 +4333,7 @@ const Ns = [
4292
4333
  disabled: I,
4293
4334
  style: {
4294
4335
  padding: "12px",
4295
- background: a,
4336
+ background: o,
4296
4337
  color: "#fff",
4297
4338
  border: "none",
4298
4339
  fontSize: "14px",
@@ -4377,7 +4418,7 @@ const Ns = [
4377
4418
  const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
4378
4419
  s(c ? "authenticated" : "unauthenticated");
4379
4420
  }, []);
4380
- const i = (a) => typeof a == "function" ? a() : a;
4421
+ const i = (o) => typeof o == "function" ? o() : o;
4381
4422
  return n === "loading" ? null : n === "unauthenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
4382
4423
  }, fi = ({
4383
4424
  children: t,
@@ -4390,17 +4431,17 @@ const Ns = [
4390
4431
  const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
4391
4432
  s(c ? "authenticated" : "unauthenticated");
4392
4433
  }, []);
4393
- const i = (a) => typeof a == "function" ? a() : a;
4434
+ const i = (o) => typeof o == "function" ? o() : o;
4394
4435
  return n === "loading" ? null : n === "authenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
4395
- }, Fs = ({
4436
+ }, Ls = ({
4396
4437
  isOpen: t,
4397
4438
  onClose: e,
4398
4439
  onSuccess: n,
4399
4440
  onError: s,
4400
4441
  userId: i,
4401
- colors: a
4442
+ colors: o
4402
4443
  }) => {
4403
- const o = ge(), [c, d] = P(!1), [f, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4444
+ const a = ge(), [c, d] = P(!1), [x, p] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4404
4445
  if (ee(() => {
4405
4446
  if (typeof window > "u") return;
4406
4447
  const g = () => {
@@ -4411,7 +4452,7 @@ const Ns = [
4411
4452
  const w = async () => {
4412
4453
  d(!0), k("processing");
4413
4454
  try {
4414
- const g = await o.deleteUser({
4455
+ const g = await a.deleteUser({
4415
4456
  userId: i
4416
4457
  });
4417
4458
  g.success ? (n(g.message || "Account deleted successfully"), k("success"), setTimeout(() => {
@@ -4422,7 +4463,7 @@ const Ns = [
4422
4463
  } finally {
4423
4464
  d(!1);
4424
4465
  }
4425
- }, h = f.toLowerCase() === "delete my account", I = (g) => {
4466
+ }, h = x.toLowerCase() === "delete my account", I = (g) => {
4426
4467
  g.target === g.currentTarget && y !== "processing" && y !== "success" && e();
4427
4468
  }, C = () => {
4428
4469
  switch (y) {
@@ -4470,7 +4511,7 @@ const Ns = [
4470
4511
  "h3",
4471
4512
  {
4472
4513
  style: {
4473
- color: a.textPrimary,
4514
+ color: o.textPrimary,
4474
4515
  margin: 0,
4475
4516
  fontSize: "20px",
4476
4517
  fontWeight: 700,
@@ -4490,7 +4531,7 @@ const Ns = [
4490
4531
  style: {
4491
4532
  background: "transparent",
4492
4533
  border: "none",
4493
- color: a.textTertiary,
4534
+ color: o.textTertiary,
4494
4535
  cursor: "pointer",
4495
4536
  padding: "8px",
4496
4537
  borderRadius: "8px",
@@ -4503,10 +4544,10 @@ const Ns = [
4503
4544
  transition: "all 0.2s ease"
4504
4545
  },
4505
4546
  onMouseOver: (g) => {
4506
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
4547
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.color = o.textPrimary;
4507
4548
  },
4508
4549
  onMouseOut: (g) => {
4509
- g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
4550
+ g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = o.textTertiary;
4510
4551
  },
4511
4552
  children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
4512
4553
  }
@@ -4521,8 +4562,8 @@ const Ns = [
4521
4562
  display: "flex",
4522
4563
  gap: "16px",
4523
4564
  padding: "20px",
4524
- background: `${a.error}15`,
4525
- border: `1px solid ${a.error}30`,
4565
+ background: `${o.error}15`,
4566
+ border: `1px solid ${o.error}30`,
4526
4567
  borderRadius: "12px",
4527
4568
  marginBottom: "20px"
4528
4569
  },
@@ -4531,12 +4572,12 @@ const Ns = [
4531
4572
  "div",
4532
4573
  {
4533
4574
  style: {
4534
- color: a.error,
4575
+ color: o.error,
4535
4576
  flexShrink: 0,
4536
4577
  display: "flex",
4537
4578
  alignItems: "flex-start"
4538
4579
  },
4539
- children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4580
+ children: /* @__PURE__ */ r.jsx(At, { size: 24 })
4540
4581
  }
4541
4582
  ),
4542
4583
  /* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
@@ -4544,7 +4585,7 @@ const Ns = [
4544
4585
  "h4",
4545
4586
  {
4546
4587
  style: {
4547
- color: a.textPrimary,
4588
+ color: o.textPrimary,
4548
4589
  margin: "0 0 12px 0",
4549
4590
  fontSize: "16px",
4550
4591
  fontWeight: 600
@@ -4581,10 +4622,10 @@ const Ns = [
4581
4622
  alignItems: "center",
4582
4623
  gap: "10px",
4583
4624
  fontSize: "14px",
4584
- color: a.textSecondary
4625
+ color: o.textSecondary
4585
4626
  },
4586
4627
  children: [
4587
- /* @__PURE__ */ r.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: g.icon }),
4628
+ /* @__PURE__ */ r.jsx("div", { style: { color: o.error, flexShrink: 0 }, children: g.icon }),
4588
4629
  /* @__PURE__ */ r.jsx("span", { children: g.text })
4589
4630
  ]
4590
4631
  },
@@ -4614,9 +4655,9 @@ const Ns = [
4614
4655
  style: {
4615
4656
  padding: "10px 24px",
4616
4657
  borderRadius: "10px",
4617
- border: `1.5px solid ${a.border}`,
4658
+ border: `1.5px solid ${o.border}`,
4618
4659
  background: "transparent",
4619
- color: a.textPrimary,
4660
+ color: o.textPrimary,
4620
4661
  fontSize: "14px",
4621
4662
  fontWeight: 500,
4622
4663
  cursor: "pointer",
@@ -4625,7 +4666,7 @@ const Ns = [
4625
4666
  transition: "all 0.2s ease"
4626
4667
  },
4627
4668
  onMouseOver: (g) => {
4628
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
4669
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4629
4670
  },
4630
4671
  onMouseOut: (g) => {
4631
4672
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4697,14 +4738,14 @@ const Ns = [
4697
4738
  color: "white",
4698
4739
  flexShrink: 0
4699
4740
  },
4700
- children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4741
+ children: /* @__PURE__ */ r.jsx(At, { size: 24 })
4701
4742
  }
4702
4743
  ),
4703
4744
  /* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
4704
4745
  "h3",
4705
4746
  {
4706
4747
  style: {
4707
- color: a.textPrimary,
4748
+ color: o.textPrimary,
4708
4749
  margin: 0,
4709
4750
  fontSize: "20px",
4710
4751
  fontWeight: 700,
@@ -4721,7 +4762,7 @@ const Ns = [
4721
4762
  "p",
4722
4763
  {
4723
4764
  style: {
4724
- color: a.textSecondary,
4765
+ color: o.textSecondary,
4725
4766
  marginBottom: "16px",
4726
4767
  fontSize: "14px",
4727
4768
  lineHeight: "1.5"
@@ -4729,7 +4770,7 @@ const Ns = [
4729
4770
  children: [
4730
4771
  "Type",
4731
4772
  " ",
4732
- /* @__PURE__ */ r.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
4773
+ /* @__PURE__ */ r.jsx("strong", { style: { color: o.textPrimary }, children: '"delete my account"' }),
4733
4774
  " ",
4734
4775
  "to confirm:"
4735
4776
  ]
@@ -4739,23 +4780,23 @@ const Ns = [
4739
4780
  "input",
4740
4781
  {
4741
4782
  type: "text",
4742
- value: f,
4743
- onChange: (g) => x(g.target.value),
4783
+ value: x,
4784
+ onChange: (g) => p(g.target.value),
4744
4785
  placeholder: "delete my account",
4745
4786
  style: {
4746
4787
  width: "100%",
4747
4788
  padding: "14px 16px",
4748
4789
  borderRadius: "10px",
4749
- border: `2px solid ${h ? a.success : a.error}`,
4790
+ border: `2px solid ${h ? o.success : o.error}`,
4750
4791
  backgroundColor: "transparent",
4751
- color: a.textPrimary,
4792
+ color: o.textPrimary,
4752
4793
  fontSize: "15px",
4753
4794
  outline: "none",
4754
4795
  transition: "all 0.2s ease",
4755
4796
  boxSizing: "border-box"
4756
4797
  },
4757
4798
  onFocus: (g) => {
4758
- g.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
4799
+ g.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
4759
4800
  },
4760
4801
  onBlur: (g) => {
4761
4802
  g.target.style.boxShadow = "none";
@@ -4771,7 +4812,7 @@ const Ns = [
4771
4812
  alignItems: "center",
4772
4813
  gap: "8px",
4773
4814
  marginTop: "10px",
4774
- color: a.success,
4815
+ color: o.success,
4775
4816
  fontSize: "14px",
4776
4817
  fontWeight: 500
4777
4818
  },
@@ -4797,14 +4838,14 @@ const Ns = [
4797
4838
  "button",
4798
4839
  {
4799
4840
  onClick: () => {
4800
- k("warning"), x("");
4841
+ k("warning"), p("");
4801
4842
  },
4802
4843
  style: {
4803
4844
  padding: "10px 24px",
4804
4845
  borderRadius: "10px",
4805
- border: `1.5px solid ${a.border}`,
4846
+ border: `1.5px solid ${o.border}`,
4806
4847
  background: "transparent",
4807
- color: a.textPrimary,
4848
+ color: o.textPrimary,
4808
4849
  fontSize: "14px",
4809
4850
  fontWeight: 500,
4810
4851
  cursor: "pointer",
@@ -4813,7 +4854,7 @@ const Ns = [
4813
4854
  transition: "all 0.2s ease"
4814
4855
  },
4815
4856
  onMouseOver: (g) => {
4816
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
4857
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4817
4858
  },
4818
4859
  onMouseOut: (g) => {
4819
4860
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4903,7 +4944,7 @@ const Ns = [
4903
4944
  "h3",
4904
4945
  {
4905
4946
  style: {
4906
- color: a.textPrimary,
4947
+ color: o.textPrimary,
4907
4948
  margin: 0,
4908
4949
  fontSize: "20px",
4909
4950
  fontWeight: 700,
@@ -4916,7 +4957,7 @@ const Ns = [
4916
4957
  "p",
4917
4958
  {
4918
4959
  style: {
4919
- color: a.textTertiary,
4960
+ color: o.textTertiary,
4920
4961
  margin: "4px 0 0 0",
4921
4962
  fontSize: "14px",
4922
4963
  lineHeight: "1.4"
@@ -4950,7 +4991,7 @@ const Ns = [
4950
4991
  padding: "12px",
4951
4992
  borderRadius: "8px",
4952
4993
  transition: "all 0.2s ease",
4953
- backgroundColor: g.active ? `${a.accent}10` : "transparent"
4994
+ backgroundColor: g.active ? `${o.accent}10` : "transparent"
4954
4995
  },
4955
4996
  children: [
4956
4997
  /* @__PURE__ */ r.jsx(
@@ -4960,9 +5001,9 @@ const Ns = [
4960
5001
  width: "8px",
4961
5002
  height: "8px",
4962
5003
  borderRadius: "50%",
4963
- backgroundColor: g.active ? a.accent : a.textTertiary,
5004
+ backgroundColor: g.active ? o.accent : o.textTertiary,
4964
5005
  transition: "all 0.3s ease",
4965
- boxShadow: g.active ? `0 0 0 4px ${a.accent}20` : "none"
5006
+ boxShadow: g.active ? `0 0 0 4px ${o.accent}20` : "none"
4966
5007
  }
4967
5008
  }
4968
5009
  ),
@@ -4971,7 +5012,7 @@ const Ns = [
4971
5012
  {
4972
5013
  style: {
4973
5014
  fontSize: "14px",
4974
- color: g.active ? a.textPrimary : a.textSecondary,
5015
+ color: g.active ? o.textPrimary : o.textSecondary,
4975
5016
  fontWeight: g.active ? 500 : 400
4976
5017
  },
4977
5018
  children: g.text
@@ -4991,17 +5032,17 @@ const Ns = [
4991
5032
  alignItems: "center",
4992
5033
  gap: "10px",
4993
5034
  padding: "16px",
4994
- background: `${a.accent}10`,
5035
+ background: `${o.accent}10`,
4995
5036
  borderRadius: "10px",
4996
5037
  fontSize: "14px",
4997
- color: a.textSecondary
5038
+ color: o.textSecondary
4998
5039
  },
4999
5040
  children: [
5000
5041
  /* @__PURE__ */ r.jsx(
5001
5042
  rt,
5002
5043
  {
5003
5044
  size: 18,
5004
- style: { color: a.accent, flexShrink: 0 }
5045
+ style: { color: o.accent, flexShrink: 0 }
5005
5046
  }
5006
5047
  ),
5007
5048
  /* @__PURE__ */ r.jsx("span", { children: "You will be redirected to the login page shortly" })
@@ -5043,7 +5084,7 @@ const Ns = [
5043
5084
  "h3",
5044
5085
  {
5045
5086
  style: {
5046
- color: a.textPrimary,
5087
+ color: o.textPrimary,
5047
5088
  margin: 0,
5048
5089
  fontSize: "20px",
5049
5090
  fontWeight: 700,
@@ -5056,7 +5097,7 @@ const Ns = [
5056
5097
  "p",
5057
5098
  {
5058
5099
  style: {
5059
- color: a.textTertiary,
5100
+ color: o.textTertiary,
5060
5101
  margin: "4px 0 0 0",
5061
5102
  fontSize: "14px",
5062
5103
  lineHeight: "1.4"
@@ -5074,8 +5115,8 @@ const Ns = [
5074
5115
  style: {
5075
5116
  textAlign: "center",
5076
5117
  padding: "20px",
5077
- background: `${a.success}10`,
5078
- border: `1px solid ${a.success}20`,
5118
+ background: `${o.success}10`,
5119
+ border: `1px solid ${o.success}20`,
5079
5120
  borderRadius: "12px",
5080
5121
  marginBottom: "24px"
5081
5122
  },
@@ -5085,7 +5126,7 @@ const Ns = [
5085
5126
  {
5086
5127
  size: 48,
5087
5128
  style: {
5088
- color: a.success,
5129
+ color: o.success,
5089
5130
  marginBottom: "12px",
5090
5131
  display: "block",
5091
5132
  margin: "0 auto 12px auto"
@@ -5096,7 +5137,7 @@ const Ns = [
5096
5137
  "p",
5097
5138
  {
5098
5139
  style: {
5099
- color: a.textPrimary,
5140
+ color: o.textPrimary,
5100
5141
  fontSize: "16px",
5101
5142
  fontWeight: 600,
5102
5143
  margin: "0 0 8px 0"
@@ -5108,7 +5149,7 @@ const Ns = [
5108
5149
  "p",
5109
5150
  {
5110
5151
  style: {
5111
- color: a.textSecondary,
5152
+ color: o.textSecondary,
5112
5153
  fontSize: "14px",
5113
5154
  margin: 0,
5114
5155
  lineHeight: "1.5"
@@ -5127,10 +5168,10 @@ const Ns = [
5127
5168
  alignItems: "center",
5128
5169
  gap: "10px",
5129
5170
  padding: "16px",
5130
- background: `${a.accent}10`,
5171
+ background: `${o.accent}10`,
5131
5172
  borderRadius: "10px",
5132
5173
  fontSize: "14px",
5133
- color: a.textSecondary,
5174
+ color: o.textSecondary,
5134
5175
  justifyContent: "center"
5135
5176
  },
5136
5177
  children: [
@@ -5140,7 +5181,7 @@ const Ns = [
5140
5181
  size: 16,
5141
5182
  style: {
5142
5183
  animation: "spin 1s linear infinite",
5143
- color: a.accent
5184
+ color: o.accent
5144
5185
  }
5145
5186
  }
5146
5187
  ),
@@ -5172,8 +5213,8 @@ const Ns = [
5172
5213
  "div",
5173
5214
  {
5174
5215
  style: {
5175
- backgroundColor: a.surface,
5176
- border: `1px solid ${a.border}`,
5216
+ backgroundColor: o.surface,
5217
+ border: `1px solid ${o.border}`,
5177
5218
  borderRadius: "20px",
5178
5219
  width: "100%",
5179
5220
  maxWidth: "480px",
@@ -5243,17 +5284,17 @@ const Ns = [
5243
5284
  ]
5244
5285
  }
5245
5286
  );
5246
- }, Ls = ({
5287
+ }, Fs = ({
5247
5288
  isOpen: t,
5248
5289
  onClose: e,
5249
5290
  onUpdate: n,
5250
5291
  colors: s
5251
5292
  }) => {
5252
- const [i, a] = P(""), [o, c] = P(!1), [d, f] = P(!1), [x, y] = P({ isValid: !1, message: "", type: null });
5293
+ const [i, o] = P(""), [a, c] = P(!1), [d, x] = P(!1), [p, y] = P({ isValid: !1, message: "", type: null });
5253
5294
  if (ee(() => {
5254
5295
  if (typeof window > "u") return;
5255
5296
  const u = () => {
5256
- f(window.innerWidth < 640);
5297
+ x(window.innerWidth < 640);
5257
5298
  };
5258
5299
  return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5259
5300
  }, []), ee(() => {
@@ -5281,10 +5322,10 @@ const Ns = [
5281
5322
  }
5282
5323
  }, [i]), !t) return null;
5283
5324
  const k = async () => {
5284
- if (!(!i || !x.isValid)) {
5325
+ if (!(!i || !p.isValid)) {
5285
5326
  c(!0);
5286
5327
  try {
5287
- await n(i) && (a(""), e());
5328
+ await n(i) && (o(""), e());
5288
5329
  } finally {
5289
5330
  c(!1);
5290
5331
  }
@@ -5446,13 +5487,13 @@ const Ns = [
5446
5487
  id: "avatar-url",
5447
5488
  placeholder: "https://example.com/your-avatar.jpg",
5448
5489
  value: i,
5449
- onChange: (u) => a(u.target.value),
5490
+ onChange: (u) => o(u.target.value),
5450
5491
  style: {
5451
5492
  width: "100%",
5452
5493
  padding: "14px 16px",
5453
5494
  paddingLeft: "44px",
5454
5495
  borderRadius: "12px",
5455
- border: `1.5px solid ${x.type === "error" ? s.error : x.type === "success" ? s.success : s.border}`,
5496
+ border: `1.5px solid ${p.type === "error" ? s.error : p.type === "success" ? s.success : s.border}`,
5456
5497
  backgroundColor: "transparent",
5457
5498
  color: s.textPrimary,
5458
5499
  fontSize: "15px",
@@ -5464,9 +5505,9 @@ const Ns = [
5464
5505
  u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5465
5506
  },
5466
5507
  onBlur: (u) => {
5467
- u.target.style.borderColor = x.type === "error" ? s.error : x.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5508
+ u.target.style.borderColor = p.type === "error" ? s.error : p.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5468
5509
  },
5469
- disabled: o
5510
+ disabled: a
5470
5511
  }
5471
5512
  ),
5472
5513
  /* @__PURE__ */ r.jsx(
@@ -5483,7 +5524,7 @@ const Ns = [
5483
5524
  }
5484
5525
  )
5485
5526
  ] }),
5486
- x.message && /* @__PURE__ */ r.jsxs(
5527
+ p.message && /* @__PURE__ */ r.jsxs(
5487
5528
  "div",
5488
5529
  {
5489
5530
  style: {
@@ -5492,18 +5533,18 @@ const Ns = [
5492
5533
  gap: "6px",
5493
5534
  marginTop: "8px",
5494
5535
  fontSize: "13px",
5495
- color: x.type === "success" ? s.success : x.type === "error" ? s.error : s.textTertiary
5536
+ color: p.type === "success" ? s.success : p.type === "error" ? s.error : s.textTertiary
5496
5537
  },
5497
5538
  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
5539
+ p.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5540
+ p.type === "error" && /* @__PURE__ */ r.jsx(ie, { size: 14 }),
5541
+ p.type === "warning" && /* @__PURE__ */ r.jsx(ie, { size: 14 }),
5542
+ p.message
5502
5543
  ]
5503
5544
  }
5504
5545
  )
5505
5546
  ] }),
5506
- i && x.type === "success" && /* @__PURE__ */ r.jsxs(
5547
+ i && p.type === "success" && /* @__PURE__ */ r.jsxs(
5507
5548
  "div",
5508
5549
  {
5509
5550
  style: {
@@ -5566,7 +5607,7 @@ const Ns = [
5566
5607
  "button",
5567
5608
  {
5568
5609
  onClick: e,
5569
- disabled: o,
5610
+ disabled: a,
5570
5611
  style: {
5571
5612
  padding: "10px 24px",
5572
5613
  borderRadius: "10px",
@@ -5575,17 +5616,17 @@ const Ns = [
5575
5616
  color: s.textPrimary,
5576
5617
  fontSize: "14px",
5577
5618
  fontWeight: 500,
5578
- cursor: o ? "not-allowed" : "pointer",
5619
+ cursor: a ? "not-allowed" : "pointer",
5579
5620
  flex: d ? "none" : 1,
5580
5621
  minWidth: d ? "100%" : "120px",
5581
- opacity: o ? 0.6 : 1,
5622
+ opacity: a ? 0.6 : 1,
5582
5623
  transition: "all 0.2s ease"
5583
5624
  },
5584
5625
  onMouseOver: (u) => {
5585
- o || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5626
+ a || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5586
5627
  },
5587
5628
  onMouseOut: (u) => {
5588
- o || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5629
+ a || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5589
5630
  },
5590
5631
  children: "Cancel"
5591
5632
  }
@@ -5594,7 +5635,7 @@ const Ns = [
5594
5635
  "button",
5595
5636
  {
5596
5637
  onClick: k,
5597
- disabled: o || !x.isValid,
5638
+ disabled: a || !p.isValid,
5598
5639
  style: {
5599
5640
  padding: "10px 24px",
5600
5641
  borderRadius: "10px",
@@ -5603,24 +5644,24 @@ const Ns = [
5603
5644
  color: "#fff",
5604
5645
  fontSize: "14px",
5605
5646
  fontWeight: 600,
5606
- cursor: o || !x.isValid ? "not-allowed" : "pointer",
5647
+ cursor: a || !p.isValid ? "not-allowed" : "pointer",
5607
5648
  flex: d ? "none" : 1,
5608
5649
  minWidth: d ? "100%" : "140px",
5609
- opacity: o || !x.isValid ? 0.6 : 1,
5650
+ opacity: a || !p.isValid ? 0.6 : 1,
5610
5651
  display: "flex",
5611
5652
  alignItems: "center",
5612
5653
  justifyContent: "center",
5613
5654
  gap: "8px",
5614
5655
  transition: "all 0.2s ease",
5615
- boxShadow: o || !x.isValid ? "none" : `0 4px 12px ${s.accent}40`
5656
+ boxShadow: a || !p.isValid ? "none" : `0 4px 12px ${s.accent}40`
5616
5657
  },
5617
5658
  onMouseOver: (u) => {
5618
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5659
+ !a && p.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5619
5660
  },
5620
5661
  onMouseOut: (u) => {
5621
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5662
+ !a && p.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5622
5663
  },
5623
- children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5664
+ children: a ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5624
5665
  /* @__PURE__ */ r.jsx(
5625
5666
  se,
5626
5667
  {
@@ -5701,13 +5742,13 @@ const Ns = [
5701
5742
  onSuccess: n,
5702
5743
  onError: s,
5703
5744
  userId: i,
5704
- colors: a
5745
+ colors: o
5705
5746
  }) => {
5706
- const o = ge(), [c, d] = P({
5747
+ const a = ge(), [c, d] = P({
5707
5748
  currentPassword: "",
5708
5749
  newPassword: "",
5709
5750
  confirmPassword: ""
5710
- }), [f, x] = P({}), [y, k] = P(!1), [E, u] = P({
5751
+ }), [x, p] = P({}), [y, k] = P(!1), [E, u] = P({
5711
5752
  currentPassword: !1,
5712
5753
  newPassword: !1,
5713
5754
  confirmPassword: !1
@@ -5721,17 +5762,17 @@ const Ns = [
5721
5762
  }, []), !t) return null;
5722
5763
  const I = (b) => {
5723
5764
  const { name: j, value: q } = b.target;
5724
- d((O) => ({ ...O, [j]: q })), f[j] && x((O) => ({ ...O, [j]: "" }));
5765
+ d((O) => ({ ...O, [j]: q })), x[j] && p((O) => ({ ...O, [j]: "" }));
5725
5766
  }, C = (b) => {
5726
5767
  u((j) => ({ ...j, [b]: !j[b] }));
5727
5768
  }, g = () => {
5728
5769
  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;
5770
+ 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
5771
  }, U = async (b) => {
5731
5772
  if (b.preventDefault(), !!g()) {
5732
5773
  k(!0);
5733
5774
  try {
5734
- const { data: j } = await o.changePassword({
5775
+ const { data: j } = await a.changePassword({
5735
5776
  currentPassword: c.currentPassword,
5736
5777
  newPassword: c.newPassword,
5737
5778
  userId: i
@@ -5782,8 +5823,8 @@ const Ns = [
5782
5823
  "div",
5783
5824
  {
5784
5825
  style: {
5785
- backgroundColor: a.surface,
5786
- border: `1px solid ${a.border}`,
5826
+ backgroundColor: o.surface,
5827
+ border: `1px solid ${o.border}`,
5787
5828
  borderRadius: "16px",
5788
5829
  maxWidth: "440px",
5789
5830
  width: "100%",
@@ -5822,11 +5863,11 @@ const Ns = [
5822
5863
  width: "40px",
5823
5864
  height: "40px",
5824
5865
  borderRadius: "10px",
5825
- background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
5866
+ background: `linear-gradient(135deg, ${o.accent}20, ${o.accent}40)`,
5826
5867
  display: "flex",
5827
5868
  alignItems: "center",
5828
5869
  justifyContent: "center",
5829
- color: a.accent,
5870
+ color: o.accent,
5830
5871
  flexShrink: 0
5831
5872
  },
5832
5873
  children: /* @__PURE__ */ r.jsx(be, { size: 20 })
@@ -5836,7 +5877,7 @@ const Ns = [
5836
5877
  "h3",
5837
5878
  {
5838
5879
  style: {
5839
- color: a.textPrimary,
5880
+ color: o.textPrimary,
5840
5881
  margin: 0,
5841
5882
  fontSize: "18px",
5842
5883
  fontWeight: 600,
@@ -5856,7 +5897,7 @@ const Ns = [
5856
5897
  style: {
5857
5898
  background: "transparent",
5858
5899
  border: "none",
5859
- color: a.textTertiary,
5900
+ color: o.textTertiary,
5860
5901
  cursor: "pointer",
5861
5902
  padding: "8px",
5862
5903
  borderRadius: "8px",
@@ -5868,10 +5909,10 @@ const Ns = [
5868
5909
  justifyContent: "center"
5869
5910
  },
5870
5911
  onMouseOver: (b) => {
5871
- b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.color = a.textPrimary;
5912
+ b.currentTarget.style.backgroundColor = o.border, b.currentTarget.style.color = o.textPrimary;
5872
5913
  },
5873
5914
  onMouseOut: (b) => {
5874
- b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = a.textTertiary;
5915
+ b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = o.textTertiary;
5875
5916
  },
5876
5917
  children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
5877
5918
  }
@@ -5895,7 +5936,7 @@ const Ns = [
5895
5936
  style: {
5896
5937
  display: "block",
5897
5938
  marginBottom: "8px",
5898
- color: a.textPrimary,
5939
+ color: o.textPrimary,
5899
5940
  fontSize: "14px",
5900
5941
  fontWeight: 500,
5901
5942
  lineHeight: "1.4"
@@ -5912,7 +5953,7 @@ const Ns = [
5912
5953
  left: "14px",
5913
5954
  top: "50%",
5914
5955
  transform: "translateY(-50%)",
5915
- color: a.textTertiary,
5956
+ color: o.textTertiary,
5916
5957
  zIndex: 2
5917
5958
  },
5918
5959
  children: q
@@ -5931,19 +5972,19 @@ const Ns = [
5931
5972
  width: "100%",
5932
5973
  padding: "14px 48px 14px 44px",
5933
5974
  borderRadius: "10px",
5934
- border: `1.5px solid ${f[b] ? a.error : a.border}`,
5975
+ border: `1.5px solid ${x[b] ? o.error : o.border}`,
5935
5976
  backgroundColor: "transparent",
5936
- color: a.textPrimary,
5977
+ color: o.textPrimary,
5937
5978
  fontSize: "15px",
5938
5979
  outline: "none",
5939
5980
  transition: "all 0.2s ease",
5940
5981
  boxSizing: "border-box"
5941
5982
  },
5942
5983
  onFocus: (O) => {
5943
- O.target.style.borderColor = a.accent, O.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
5984
+ O.target.style.borderColor = o.accent, O.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
5944
5985
  },
5945
5986
  onBlur: (O) => {
5946
- O.target.style.borderColor = f[b] ? a.error : a.border, O.target.style.boxShadow = "none";
5987
+ O.target.style.borderColor = x[b] ? o.error : o.border, O.target.style.boxShadow = "none";
5947
5988
  }
5948
5989
  }
5949
5990
  ),
@@ -5960,7 +6001,7 @@ const Ns = [
5960
6001
  background: "transparent",
5961
6002
  border: "none",
5962
6003
  cursor: "pointer",
5963
- color: a.textTertiary,
6004
+ color: o.textTertiary,
5964
6005
  padding: "4px",
5965
6006
  borderRadius: "4px",
5966
6007
  width: "32px",
@@ -5970,21 +6011,21 @@ const Ns = [
5970
6011
  justifyContent: "center"
5971
6012
  },
5972
6013
  onMouseOver: (O) => {
5973
- O.currentTarget.style.backgroundColor = a.border, O.currentTarget.style.color = a.textPrimary;
6014
+ O.currentTarget.style.backgroundColor = o.border, O.currentTarget.style.color = o.textPrimary;
5974
6015
  },
5975
6016
  onMouseOut: (O) => {
5976
- O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
6017
+ O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = o.textTertiary;
5977
6018
  },
5978
- children: E[b] ? /* @__PURE__ */ r.jsx(at, { size: 18 }) : /* @__PURE__ */ r.jsx(ot, { size: 18 })
6019
+ children: E[b] ? /* @__PURE__ */ r.jsx(ot, { size: 18 }) : /* @__PURE__ */ r.jsx(at, { size: 18 })
5979
6020
  }
5980
6021
  )
5981
6022
  ] }),
5982
- f[b] && /* @__PURE__ */ r.jsxs(
6023
+ x[b] && /* @__PURE__ */ r.jsxs(
5983
6024
  "div",
5984
6025
  {
5985
6026
  style: {
5986
6027
  fontSize: "13px",
5987
- color: a.error,
6028
+ color: o.error,
5988
6029
  marginTop: "6px",
5989
6030
  display: "flex",
5990
6031
  alignItems: "center",
@@ -5992,7 +6033,7 @@ const Ns = [
5992
6033
  },
5993
6034
  children: [
5994
6035
  /* @__PURE__ */ r.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5995
- f[b]
6036
+ x[b]
5996
6037
  ]
5997
6038
  }
5998
6039
  )
@@ -6020,9 +6061,9 @@ const Ns = [
6020
6061
  style: {
6021
6062
  padding: "14px 24px",
6022
6063
  borderRadius: "10px",
6023
- border: `1.5px solid ${a.border}`,
6064
+ border: `1.5px solid ${o.border}`,
6024
6065
  background: "transparent",
6025
- color: a.textPrimary,
6066
+ color: o.textPrimary,
6026
6067
  fontSize: "14px",
6027
6068
  fontWeight: 500,
6028
6069
  cursor: y ? "not-allowed" : "pointer",
@@ -6032,7 +6073,7 @@ const Ns = [
6032
6073
  transition: "all 0.2s ease"
6033
6074
  },
6034
6075
  onMouseOver: (b) => {
6035
- y || (b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.transform = "translateY(-1px)");
6076
+ y || (b.currentTarget.style.backgroundColor = o.border, b.currentTarget.style.transform = "translateY(-1px)");
6036
6077
  },
6037
6078
  onMouseOut: (b) => {
6038
6079
  y || (b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.transform = "translateY(0)");
@@ -6049,7 +6090,7 @@ const Ns = [
6049
6090
  padding: "14px 24px",
6050
6091
  borderRadius: "10px",
6051
6092
  border: "none",
6052
- background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
6093
+ background: `linear-gradient(135deg, ${o.accent}, ${o.accent}E6)`,
6053
6094
  color: "#fff",
6054
6095
  fontSize: "14px",
6055
6096
  fontWeight: 600,
@@ -6062,13 +6103,13 @@ const Ns = [
6062
6103
  justifyContent: "center",
6063
6104
  gap: "8px",
6064
6105
  transition: "all 0.2s ease",
6065
- boxShadow: y ? "none" : `0 4px 12px ${a.accent}40`
6106
+ boxShadow: y ? "none" : `0 4px 12px ${o.accent}40`
6066
6107
  },
6067
6108
  onMouseOver: (b) => {
6068
- y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
6109
+ y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${o.accent}60`);
6069
6110
  },
6070
6111
  onMouseOut: (b) => {
6071
- y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
6112
+ y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${o.accent}40`);
6072
6113
  },
6073
6114
  children: y ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
6074
6115
  /* @__PURE__ */ r.jsx(
@@ -6103,12 +6144,12 @@ const Ns = [
6103
6144
  }
6104
6145
 
6105
6146
  .change-password-modal::-webkit-scrollbar-thumb {
6106
- background: ${a.border};
6147
+ background: ${o.border};
6107
6148
  border-radius: 3px;
6108
6149
  }
6109
6150
 
6110
6151
  .change-password-modal::-webkit-scrollbar-thumb:hover {
6111
- background: ${a.textTertiary};
6152
+ background: ${o.textTertiary};
6112
6153
  }
6113
6154
 
6114
6155
  /* Mobile responsiveness */
@@ -6138,23 +6179,23 @@ const Ns = [
6138
6179
  onVerify: n,
6139
6180
  onSendOTP: s,
6140
6181
  verifyFormData: i,
6141
- setVerifyFormData: a,
6142
- otpSent: o,
6182
+ setVerifyFormData: o,
6183
+ otpSent: a,
6143
6184
  verifying: c,
6144
6185
  user: d,
6145
- colors: f,
6146
- darkMode: x
6186
+ colors: x,
6187
+ darkMode: p
6147
6188
  }) => {
6148
6189
  if (!t) return null;
6149
6190
  const y = () => {
6150
- e(), a({ email: d?.email || "", otp: "" });
6191
+ e(), o({ email: d?.email || "", otp: "" });
6151
6192
  };
6152
6193
  return /* @__PURE__ */ r.jsxs(
6153
6194
  "div",
6154
6195
  {
6155
6196
  className: "modal-overlay",
6156
6197
  style: {
6157
- backgroundColor: x ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6198
+ backgroundColor: p ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6158
6199
  },
6159
6200
  children: [
6160
6201
  /* @__PURE__ */ r.jsxs(
@@ -6162,18 +6203,18 @@ const Ns = [
6162
6203
  {
6163
6204
  className: "verify-email-modal",
6164
6205
  style: {
6165
- backgroundColor: f.surface,
6166
- border: `1px solid ${f.border}`
6206
+ backgroundColor: x.surface,
6207
+ border: `1px solid ${x.border}`
6167
6208
  },
6168
6209
  children: [
6169
6210
  /* @__PURE__ */ r.jsxs("div", { className: "modal-header", children: [
6170
- /* @__PURE__ */ r.jsx("h3", { style: { color: f.textPrimary }, children: "Verify Your Email" }),
6211
+ /* @__PURE__ */ r.jsx("h3", { style: { color: x.textPrimary }, children: "Verify Your Email" }),
6171
6212
  /* @__PURE__ */ r.jsx(
6172
6213
  "button",
6173
6214
  {
6174
6215
  onClick: y,
6175
6216
  className: "close-btn",
6176
- style: { color: f.textTertiary },
6217
+ style: { color: x.textTertiary },
6177
6218
  "aria-label": "Close verification modal",
6178
6219
  children: /* @__PURE__ */ r.jsx(Oe, { size: 20, "aria-hidden": "true" })
6179
6220
  }
@@ -6181,13 +6222,13 @@ const Ns = [
6181
6222
  ] }),
6182
6223
  /* @__PURE__ */ r.jsxs("form", { className: "verify-form", onSubmit: n, children: [
6183
6224
  /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6184
- /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "Email" }),
6225
+ /* @__PURE__ */ r.jsx("label", { style: { color: x.textSecondary }, children: "Email" }),
6185
6226
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6186
6227
  /* @__PURE__ */ r.jsx(
6187
6228
  pe,
6188
6229
  {
6189
6230
  size: 18,
6190
- style: { color: f.textTertiary },
6231
+ style: { color: x.textTertiary },
6191
6232
  "aria-hidden": "true"
6192
6233
  }
6193
6234
  ),
@@ -6196,15 +6237,15 @@ const Ns = [
6196
6237
  {
6197
6238
  type: "email",
6198
6239
  value: i.email,
6199
- onChange: (k) => a((E) => ({
6240
+ onChange: (k) => o((E) => ({
6200
6241
  ...E,
6201
6242
  email: k.target.value
6202
6243
  })),
6203
6244
  placeholder: "Enter your email",
6204
6245
  style: {
6205
- backgroundColor: f.surfaceLight,
6206
- color: f.textPrimary,
6207
- borderColor: f.border
6246
+ backgroundColor: x.surfaceLight,
6247
+ color: x.textPrimary,
6248
+ borderColor: x.border
6208
6249
  },
6209
6250
  required: !0,
6210
6251
  "aria-required": "true",
@@ -6213,14 +6254,14 @@ const Ns = [
6213
6254
  )
6214
6255
  ] })
6215
6256
  ] }),
6216
- o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6217
- /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
6257
+ a && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6258
+ /* @__PURE__ */ r.jsx("label", { style: { color: x.textSecondary }, children: "OTP" }),
6218
6259
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6219
6260
  /* @__PURE__ */ r.jsx(
6220
- ar,
6261
+ or,
6221
6262
  {
6222
6263
  size: 18,
6223
- style: { color: f.textTertiary },
6264
+ style: { color: x.textTertiary },
6224
6265
  "aria-hidden": "true"
6225
6266
  }
6226
6267
  ),
@@ -6229,15 +6270,15 @@ const Ns = [
6229
6270
  {
6230
6271
  type: "text",
6231
6272
  value: i.otp,
6232
- onChange: (k) => a((E) => ({
6273
+ onChange: (k) => o((E) => ({
6233
6274
  ...E,
6234
6275
  otp: k.target.value
6235
6276
  })),
6236
6277
  placeholder: "Enter OTP",
6237
6278
  style: {
6238
- backgroundColor: f.surfaceLight,
6239
- color: f.textPrimary,
6240
- borderColor: f.border
6279
+ backgroundColor: x.surfaceLight,
6280
+ color: x.textPrimary,
6281
+ borderColor: x.border
6241
6282
  },
6242
6283
  required: !0,
6243
6284
  "aria-required": "true",
@@ -6246,14 +6287,14 @@ const Ns = [
6246
6287
  )
6247
6288
  ] })
6248
6289
  ] }),
6249
- /* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ r.jsxs(
6290
+ /* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: a ? /* @__PURE__ */ r.jsxs(
6250
6291
  "button",
6251
6292
  {
6252
6293
  type: "submit",
6253
6294
  disabled: c,
6254
6295
  className: "btn-primary",
6255
6296
  style: {
6256
- background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6297
+ background: `linear-gradient(to right, ${x.accent}, ${x.accentHover})`,
6257
6298
  opacity: c ? 0.7 : 1
6258
6299
  },
6259
6300
  "aria-label": c ? "Verifying email" : "Verify email",
@@ -6270,7 +6311,7 @@ const Ns = [
6270
6311
  disabled: c,
6271
6312
  className: "btn-primary",
6272
6313
  style: {
6273
- background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6314
+ background: `linear-gradient(to right, ${x.accent}, ${x.accentHover})`,
6274
6315
  opacity: c ? 0.7 : 1
6275
6316
  },
6276
6317
  "aria-label": c ? "Sending OTP" : "Send OTP",
@@ -6333,7 +6374,7 @@ const Ns = [
6333
6374
  }
6334
6375
 
6335
6376
  .close-btn:hover {
6336
- background-color: ${x ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6377
+ background-color: ${p ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6337
6378
  }
6338
6379
 
6339
6380
  .verify-form {
@@ -6377,8 +6418,8 @@ const Ns = [
6377
6418
  }
6378
6419
 
6379
6420
  .input-container input:focus {
6380
- border-color: ${f.accent};
6381
- box-shadow: 0 0 0 3px ${f.accent}20;
6421
+ border-color: ${x.accent};
6422
+ box-shadow: 0 0 0 3px ${x.accent}20;
6382
6423
  }
6383
6424
 
6384
6425
  .modal-actions {
@@ -6442,10 +6483,10 @@ const Ns = [
6442
6483
  onVerify: s,
6443
6484
  primaryColor: i = "#00C212"
6444
6485
  }) => {
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({
6486
+ 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
6487
  email: "",
6447
6488
  otp: ""
6448
- }), [H, F] = P(!1), [Y, l] = P(!1);
6489
+ }), [H, L] = P(!1), [Y, l] = P(!1);
6449
6490
  ee(() => {
6450
6491
  if (typeof window < "u") {
6451
6492
  const v = () => c(window.innerWidth);
@@ -6481,11 +6522,11 @@ const Ns = [
6481
6522
  }
6482
6523
  try {
6483
6524
  l(!0);
6484
- const v = await a.requestEmailVerificationOTP({
6525
+ const v = await o.requestEmailVerificationOTP({
6485
6526
  userId: d.id,
6486
6527
  email: M.email
6487
6528
  }), _ = 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");
6529
+ _ ? (m("success", V || "OTP sent to email!"), L(!0)) : m("error", V || "Failed to send OTP");
6489
6530
  } catch (v) {
6490
6531
  const _ = v?.response?.data?.message || v?.message || "Server error";
6491
6532
  m("error", _);
@@ -6503,14 +6544,14 @@ const Ns = [
6503
6544
  }
6504
6545
  try {
6505
6546
  l(!0);
6506
- const _ = await a.verifyEmail({
6547
+ const _ = await o.verifyEmail({
6507
6548
  email: M.email,
6508
6549
  otp: M.otp
6509
6550
  }), V = _?.data?.success ?? _?.success, Z = _?.data?.message ?? _?.message;
6510
6551
  if (V) {
6511
6552
  m("success", Z || "Email verified!");
6512
6553
  const de = { ...d, isVerified: !0 };
6513
- f(de), typeof s == "function" && s(de), J({ email: de.email, otp: "" }), F(!1), j?.(!1);
6554
+ x(de), typeof s == "function" && s(de), J({ email: de.email, otp: "" }), L(!1), j?.(!1);
6514
6555
  } else
6515
6556
  m("error", Z || "Verification failed");
6516
6557
  } catch (_) {
@@ -6519,10 +6560,10 @@ const Ns = [
6519
6560
  } finally {
6520
6561
  l(!1);
6521
6562
  }
6522
- }, oe = async (v) => {
6563
+ }, ae = async (v) => {
6523
6564
  if (!d) return !1;
6524
6565
  try {
6525
- const _ = await a.updateUser({
6566
+ const _ = await o.updateUser({
6526
6567
  userId: d.id,
6527
6568
  avatarUrl: v
6528
6569
  });
@@ -6534,7 +6575,7 @@ const Ns = [
6534
6575
  // 🔁 merge backend response if present
6535
6576
  avatarUrl: v
6536
6577
  };
6537
- return f(V), m("success", "Avatar updated successfully!"), !0;
6578
+ return x(V), m("success", "Avatar updated successfully!"), !0;
6538
6579
  }
6539
6580
  return m("error", _?.message || "Failed to update avatar"), !1;
6540
6581
  } catch (_) {
@@ -6544,7 +6585,7 @@ const Ns = [
6544
6585
  if (d) {
6545
6586
  w(!0);
6546
6587
  try {
6547
- const v = d.email, _ = await a.updateUser({
6588
+ const v = d.email, _ = await o.updateUser({
6548
6589
  userId: d.id,
6549
6590
  ...d
6550
6591
  });
@@ -6556,7 +6597,7 @@ const Ns = [
6556
6597
  // overwrite updated fields
6557
6598
  isVerified: V ? !1 : d.isVerified
6558
6599
  };
6559
- f(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6600
+ x(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6560
6601
  "success",
6561
6602
  V ? "Email updated. Please verify your new email." : "Profile updated successfully"
6562
6603
  ), E(!1);
@@ -6570,8 +6611,8 @@ const Ns = [
6570
6611
  }
6571
6612
  }, le = async (v) => {
6572
6613
  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));
6614
+ const _ = await o.checkIfUserExists(v);
6615
+ _?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), x(null));
6575
6616
  } catch (_) {
6576
6617
  console.error("⚠️ User validation request failed:", _);
6577
6618
  }
@@ -6580,18 +6621,18 @@ const Ns = [
6580
6621
  (async () => {
6581
6622
  try {
6582
6623
  y(!0);
6583
- const _ = await a.checkUserSession();
6624
+ const _ = await o.checkUserSession();
6584
6625
  if (_.user?.id) {
6585
- const V = _.user.id, Z = await a.getUserProfile({ userId: V });
6626
+ const V = _.user.id, Z = await o.getUserProfile({ userId: V });
6586
6627
  if (Z.user) {
6587
6628
  const de = Z.user;
6588
- f(de), le(V);
6629
+ x(de), le(V);
6589
6630
  } else
6590
- f(null), localStorage.removeItem("userInfo");
6631
+ x(null), localStorage.removeItem("userInfo");
6591
6632
  } else
6592
- f(null), localStorage.removeItem("userInfo");
6633
+ x(null), localStorage.removeItem("userInfo");
6593
6634
  } catch (_) {
6594
- console.error("User init failed:", _), f(null), localStorage.removeItem("userInfo");
6635
+ console.error("User init failed:", _), x(null), localStorage.removeItem("userInfo");
6595
6636
  } finally {
6596
6637
  y(!1);
6597
6638
  }
@@ -6602,7 +6643,7 @@ const Ns = [
6602
6643
  const ye = (v, _) => {
6603
6644
  let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
6604
6645
  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 ? {
6646
+ }, z = t ? {
6606
6647
  background: "#000000",
6607
6648
  surface: "#09090b",
6608
6649
  surfaceLight: "#27272a",
@@ -6631,7 +6672,7 @@ const Ns = [
6631
6672
  border: "#e4e4e7",
6632
6673
  warning: "#d97706"
6633
6674
  };
6634
- if (x)
6675
+ if (p)
6635
6676
  return /* @__PURE__ */ r.jsx(
6636
6677
  "div",
6637
6678
  {
@@ -6641,7 +6682,7 @@ const Ns = [
6641
6682
  display: "flex",
6642
6683
  alignItems: "center",
6643
6684
  justifyContent: "center",
6644
- color: A.textPrimary,
6685
+ color: z.textPrimary,
6645
6686
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6646
6687
  },
6647
6688
  children: /* @__PURE__ */ r.jsxs(
@@ -6659,12 +6700,12 @@ const Ns = [
6659
6700
  se,
6660
6701
  {
6661
6702
  size: 40,
6662
- color: A.accent,
6703
+ color: z.accent,
6663
6704
  style: { animation: "spin 1s linear infinite" },
6664
6705
  "aria-hidden": "true"
6665
6706
  }
6666
6707
  ),
6667
- /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "Loading your profile..." })
6708
+ /* @__PURE__ */ r.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "Loading your profile..." })
6668
6709
  ]
6669
6710
  }
6670
6711
  )
@@ -6680,7 +6721,7 @@ const Ns = [
6680
6721
  display: "flex",
6681
6722
  alignItems: "center",
6682
6723
  justifyContent: "center",
6683
- color: A.textPrimary,
6724
+ color: z.textPrimary,
6684
6725
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6685
6726
  },
6686
6727
  children: /* @__PURE__ */ r.jsxs(
@@ -6694,8 +6735,8 @@ const Ns = [
6694
6735
  textAlign: "center"
6695
6736
  },
6696
6737
  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." })
6738
+ /* @__PURE__ */ r.jsx(ie, { size: 40, color: z.error, "aria-hidden": "true" }),
6739
+ /* @__PURE__ */ r.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6699
6740
  ]
6700
6741
  }
6701
6742
  )
@@ -6755,7 +6796,7 @@ const Ns = [
6755
6796
  display: "flex",
6756
6797
  alignItems: "center",
6757
6798
  justifyContent: "center",
6758
- color: A.textPrimary,
6799
+ color: z.textPrimary,
6759
6800
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6760
6801
  lineHeight: 1.5,
6761
6802
  minHeight: "80vh"
@@ -6815,14 +6856,14 @@ const Ns = [
6815
6856
  display: "grid",
6816
6857
  gap: "24px",
6817
6858
  gridTemplateColumns: "1fr",
6818
- ...o && window.innerWidth >= 1024 && {
6859
+ ...a && window.innerWidth >= 1024 && {
6819
6860
  gridTemplateColumns: "1fr 2fr",
6820
6861
  gap: "10px"
6821
6862
  },
6822
- ...o && window.innerWidth >= 768 && o && window.innerWidth < 1024 && {
6863
+ ...a && window.innerWidth >= 768 && a && window.innerWidth < 1024 && {
6823
6864
  gap: "10px"
6824
6865
  },
6825
- ...o && window.innerWidth >= 600 && o && window.innerWidth < 768 && {
6866
+ ...a && window.innerWidth >= 600 && a && window.innerWidth < 768 && {
6826
6867
  gap: "28px"
6827
6868
  }
6828
6869
  },
@@ -6841,7 +6882,7 @@ const Ns = [
6841
6882
  "section",
6842
6883
  {
6843
6884
  style: {
6844
- backgroundColor: A.surface,
6885
+ backgroundColor: z.surface,
6845
6886
  borderRadius: "16px",
6846
6887
  position: "relative",
6847
6888
  padding: "24px",
@@ -6895,7 +6936,7 @@ const Ns = [
6895
6936
  borderRadius: "50%",
6896
6937
  objectFit: "cover",
6897
6938
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6898
- border: `3px solid ${A.border}`
6939
+ border: `3px solid ${z.border}`
6899
6940
  },
6900
6941
  width: 128,
6901
6942
  height: 128,
@@ -6910,7 +6951,7 @@ const Ns = [
6910
6951
  position: "absolute",
6911
6952
  bottom: "8px",
6912
6953
  right: "8px",
6913
- backgroundColor: A.accent,
6954
+ backgroundColor: z.accent,
6914
6955
  color: "white",
6915
6956
  padding: "8px",
6916
6957
  borderRadius: "50%",
@@ -6937,7 +6978,7 @@ const Ns = [
6937
6978
  fontSize: "24px",
6938
6979
  fontWeight: 600,
6939
6980
  margin: "0 0 4px 0",
6940
- color: A.textPrimary
6981
+ color: z.textPrimary
6941
6982
  },
6942
6983
  children: d.name
6943
6984
  }
@@ -6949,7 +6990,7 @@ const Ns = [
6949
6990
  fontSize: "18px",
6950
6991
  fontWeight: 600,
6951
6992
  margin: "0 0 4px 0",
6952
- color: A.textTertiary
6993
+ color: z.textTertiary
6953
6994
  },
6954
6995
  children: [
6955
6996
  "@",
@@ -6961,7 +7002,7 @@ const Ns = [
6961
7002
  "p",
6962
7003
  {
6963
7004
  style: {
6964
- color: A.textTertiary,
7005
+ color: z.textTertiary,
6965
7006
  margin: "0 0 8px 0"
6966
7007
  },
6967
7008
  children: d.email
@@ -6972,7 +7013,7 @@ const Ns = [
6972
7013
  {
6973
7014
  style: {
6974
7015
  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,
7016
+ color: d.isVerified ? z.success : z.warning,
6976
7017
  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
7018
  padding: "6px 12px",
6978
7019
  borderRadius: "20px",
@@ -7006,9 +7047,9 @@ const Ns = [
7006
7047
  {
7007
7048
  onClick: () => E(!1),
7008
7049
  style: {
7009
- backgroundColor: A.surfaceLight,
7010
- border: `1px solid ${A.border}`,
7011
- color: A.textPrimary,
7050
+ backgroundColor: z.surfaceLight,
7051
+ border: `1px solid ${z.border}`,
7052
+ color: z.textPrimary,
7012
7053
  padding: "10px 20px",
7013
7054
  borderRadius: "6px",
7014
7055
  borderStyle: "solid",
@@ -7022,7 +7063,7 @@ const Ns = [
7022
7063
  gap: "8px",
7023
7064
  textDecoration: "none",
7024
7065
  minHeight: "36px",
7025
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7066
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7026
7067
  },
7027
7068
  children: [
7028
7069
  /* @__PURE__ */ r.jsx(Oe, { size: 16, "aria-hidden": "true" }),
@@ -7036,7 +7077,7 @@ const Ns = [
7036
7077
  onClick: B,
7037
7078
  disabled: u,
7038
7079
  style: {
7039
- background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7080
+ background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
7040
7081
  opacity: u ? 0.7 : 1,
7041
7082
  color: "white",
7042
7083
  padding: "10px 20px",
@@ -7052,7 +7093,7 @@ const Ns = [
7052
7093
  gap: "8px",
7053
7094
  textDecoration: "none",
7054
7095
  minHeight: "36px",
7055
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7096
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7056
7097
  },
7057
7098
  children: [
7058
7099
  u ? /* @__PURE__ */ r.jsx(
@@ -7073,7 +7114,7 @@ const Ns = [
7073
7114
  {
7074
7115
  onClick: () => E(!0),
7075
7116
  style: {
7076
- background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7117
+ background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
7077
7118
  color: "white",
7078
7119
  padding: "10px 20px",
7079
7120
  borderRadius: "6px",
@@ -7088,7 +7129,7 @@ const Ns = [
7088
7129
  gap: "8px",
7089
7130
  textDecoration: "none",
7090
7131
  minHeight: "36px",
7091
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7132
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7092
7133
  },
7093
7134
  children: [
7094
7135
  /* @__PURE__ */ r.jsx(ks, { size: 16, "aria-hidden": "true" }),
@@ -7118,7 +7159,7 @@ const Ns = [
7118
7159
  gap: "8px",
7119
7160
  minHeight: "36px",
7120
7161
  opacity: T ? 0.7 : 1,
7121
- flex: o && window.innerWidth < 1024 ? "1" : "auto"
7162
+ flex: a && window.innerWidth < 1024 ? "1" : "auto"
7122
7163
  },
7123
7164
  children: [
7124
7165
  T ? /* @__PURE__ */ r.jsx(
@@ -7138,8 +7179,8 @@ const Ns = [
7138
7179
  "button",
7139
7180
  {
7140
7181
  style: {
7141
- backgroundColor: A.surfaceLight,
7142
- color: A.textPrimary,
7182
+ backgroundColor: z.surfaceLight,
7183
+ color: z.textPrimary,
7143
7184
  padding: "10px 20px",
7144
7185
  borderRadius: "6px",
7145
7186
  border: "none",
@@ -7172,8 +7213,8 @@ const Ns = [
7172
7213
  bottom: "100%",
7173
7214
  left: 0,
7174
7215
  right: 0,
7175
- backgroundColor: A.surface,
7176
- border: `1px solid ${A.border}`,
7216
+ backgroundColor: z.surface,
7217
+ border: `1px solid ${z.border}`,
7177
7218
  borderRadius: "12px 12px 0 0",
7178
7219
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
7179
7220
  zIndex: 200,
@@ -7193,7 +7234,7 @@ const Ns = [
7193
7234
  padding: "14px 18px",
7194
7235
  backgroundColor: "transparent",
7195
7236
  border: "none",
7196
- color: A.textPrimary,
7237
+ color: z.textPrimary,
7197
7238
  cursor: "pointer",
7198
7239
  transition: "all 0.2s ease",
7199
7240
  fontSize: "13px",
@@ -7203,7 +7244,7 @@ const Ns = [
7203
7244
  gap: "8px",
7204
7245
  textAlign: "left"
7205
7246
  },
7206
- onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
7247
+ onMouseEnter: (v) => v.currentTarget.style.backgroundColor = z.surfaceLight,
7207
7248
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7208
7249
  children: [
7209
7250
  /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
@@ -7297,7 +7338,7 @@ const Ns = [
7297
7338
  "section",
7298
7339
  {
7299
7340
  style: {
7300
- backgroundColor: A.surface,
7341
+ backgroundColor: z.surface,
7301
7342
  borderRadius: "16px",
7302
7343
  padding: "24px",
7303
7344
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7310,7 +7351,7 @@ const Ns = [
7310
7351
  fontSize: "20px",
7311
7352
  fontWeight: 600,
7312
7353
  margin: "0 0 24px 0",
7313
- color: A.textSecondary,
7354
+ color: z.textSecondary,
7314
7355
  display: "flex",
7315
7356
  alignItems: "center",
7316
7357
  gap: "8px"
@@ -7328,7 +7369,7 @@ const Ns = [
7328
7369
  display: "grid",
7329
7370
  gap: "20px",
7330
7371
  gridTemplateColumns: "1fr",
7331
- ...o && window.innerWidth >= 600 && {
7372
+ ...a && window.innerWidth >= 600 && {
7332
7373
  gridTemplateColumns: "1fr 1fr",
7333
7374
  gap: "20px"
7334
7375
  }
@@ -7348,7 +7389,7 @@ const Ns = [
7348
7389
  "label",
7349
7390
  {
7350
7391
  style: {
7351
- color: A.textTertiary,
7392
+ color: z.textTertiary,
7352
7393
  fontSize: "12px",
7353
7394
  fontWeight: 500,
7354
7395
  display: "flex",
@@ -7367,7 +7408,7 @@ const Ns = [
7367
7408
  type: v.type,
7368
7409
  name: v.name,
7369
7410
  value: d[v.name],
7370
- onChange: (V) => f(
7411
+ onChange: (V) => x(
7371
7412
  (Z) => Z && { ...Z, [V.target.name]: V.target.value }
7372
7413
  ),
7373
7414
  style: {
@@ -7375,7 +7416,7 @@ const Ns = [
7375
7416
  borderRadius: "8px",
7376
7417
  border: `1px solid ${i}`,
7377
7418
  backgroundColor: "transparent",
7378
- color: A.textPrimary,
7419
+ color: z.textPrimary,
7379
7420
  fontSize: "12px",
7380
7421
  outline: "none",
7381
7422
  transition: "border-color 0.2s ease",
@@ -7399,7 +7440,7 @@ const Ns = [
7399
7440
  display: "flex",
7400
7441
  alignItems: "center",
7401
7442
  boxSizing: "border-box",
7402
- color: A.textPrimary,
7443
+ color: z.textPrimary,
7403
7444
  backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7404
7445
  },
7405
7446
  children: v.value
@@ -7419,7 +7460,7 @@ const Ns = [
7419
7460
  "section",
7420
7461
  {
7421
7462
  style: {
7422
- backgroundColor: A.surface,
7463
+ backgroundColor: z.surface,
7423
7464
  borderRadius: "16px",
7424
7465
  padding: "30px 24px",
7425
7466
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7432,7 +7473,7 @@ const Ns = [
7432
7473
  fontSize: "20px",
7433
7474
  fontWeight: 600,
7434
7475
  margin: "0 0 24px 0",
7435
- color: A.textSecondary,
7476
+ color: z.textSecondary,
7436
7477
  display: "flex",
7437
7478
  alignItems: "center",
7438
7479
  gap: "8px"
@@ -7469,7 +7510,7 @@ const Ns = [
7469
7510
  display: "flex",
7470
7511
  alignItems: "center",
7471
7512
  gap: "12px",
7472
- color: A.textSecondary
7513
+ color: z.textSecondary
7473
7514
  },
7474
7515
  children: [
7475
7516
  /* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
@@ -7490,11 +7531,11 @@ const Ns = [
7490
7531
  gap: "6px",
7491
7532
  ...d.isVerified ? {
7492
7533
  backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7493
- color: A.success,
7534
+ color: z.success,
7494
7535
  border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7495
7536
  } : {
7496
7537
  backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7497
- color: A.warning,
7538
+ color: z.warning,
7498
7539
  border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7499
7540
  }
7500
7541
  },
@@ -7522,7 +7563,7 @@ const Ns = [
7522
7563
  "p",
7523
7564
  {
7524
7565
  style: {
7525
- color: A.textTertiary,
7566
+ color: z.textTertiary,
7526
7567
  fontSize: "12px",
7527
7568
  margin: 0
7528
7569
  },
@@ -7546,14 +7587,14 @@ const Ns = [
7546
7587
  }
7547
7588
  ),
7548
7589
  /* @__PURE__ */ r.jsx(
7549
- Ls,
7590
+ Fs,
7550
7591
  {
7551
7592
  isOpen: h,
7552
7593
  onClose: () => {
7553
7594
  I(!1);
7554
7595
  },
7555
- onUpdate: oe,
7556
- colors: A
7596
+ onUpdate: ae,
7597
+ colors: z
7557
7598
  }
7558
7599
  ),
7559
7600
  /* @__PURE__ */ r.jsx(
@@ -7564,18 +7605,18 @@ const Ns = [
7564
7605
  onClose: () => g(!1),
7565
7606
  onSuccess: (v) => m("success", v),
7566
7607
  onError: (v) => m("error", v),
7567
- colors: A
7608
+ colors: z
7568
7609
  }
7569
7610
  ),
7570
7611
  /* @__PURE__ */ r.jsx(
7571
- Fs,
7612
+ Ls,
7572
7613
  {
7573
7614
  userId: d.id,
7574
7615
  isOpen: U,
7575
7616
  onClose: () => N(!1),
7576
7617
  onSuccess: (v) => m("success", v),
7577
7618
  onError: (v) => m("error", v),
7578
- colors: A
7619
+ colors: z
7579
7620
  }
7580
7621
  ),
7581
7622
  /* @__PURE__ */ r.jsx(
@@ -7583,7 +7624,7 @@ const Ns = [
7583
7624
  {
7584
7625
  isOpen: b,
7585
7626
  onClose: () => {
7586
- j(!1), F(!1), J({ email: d?.email || "", otp: "" });
7627
+ j(!1), L(!1), J({ email: d?.email || "", otp: "" });
7587
7628
  },
7588
7629
  onVerify: ne,
7589
7630
  onSendOTP: D,
@@ -7592,7 +7633,7 @@ const Ns = [
7592
7633
  otpSent: H,
7593
7634
  verifying: Y,
7594
7635
  user: d,
7595
- colors: A,
7636
+ colors: z,
7596
7637
  darkMode: t
7597
7638
  }
7598
7639
  ),
@@ -7694,14 +7735,14 @@ const Ns = [
7694
7735
  onLogout: n,
7695
7736
  varient: s = "classic",
7696
7737
  propUser: i,
7697
- className: a = "",
7738
+ className: o = "",
7698
7739
  // New URL props with defaults
7699
- profileUrl: o,
7740
+ profileUrl: a,
7700
7741
  settingsUrl: c,
7701
7742
  // Menu item visibility with defaults
7702
7743
  showProfileMenuItem: d = !0,
7703
- showSettingsMenuItem: f = !0,
7704
- showViewProfileMenuItem: x = !0,
7744
+ showSettingsMenuItem: x = !0,
7745
+ showViewProfileMenuItem: p = !0,
7705
7746
  // Custom labels with defaults
7706
7747
  profileLabel: y = "My Profile",
7707
7748
  settingsLabel: k = "Settings",
@@ -7750,9 +7791,9 @@ const Ns = [
7750
7791
  if (typeof window > "u") return;
7751
7792
  const l = () => {
7752
7793
  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;
7794
+ const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280, ae = S - m.right, B = m.left;
7754
7795
  D - m.bottom;
7755
- const le = oe >= ne || oe > B;
7796
+ const le = ae >= ne || ae > B;
7756
7797
  W(le);
7757
7798
  };
7758
7799
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
@@ -7794,7 +7835,7 @@ const Ns = [
7794
7835
  accent: e,
7795
7836
  accentHover: `${e}e6`,
7796
7837
  error: "#ef4444"
7797
- }, z = {
7838
+ }, A = {
7798
7839
  wrapper: {
7799
7840
  position: "relative",
7800
7841
  display: "inline-block"
@@ -8049,7 +8090,7 @@ const Ns = [
8049
8090
  }
8050
8091
  }, J = (l, m) => {
8051
8092
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
8052
- }, H = () => o || C?.profileUrl, F = () => {
8093
+ }, H = () => a || C?.profileUrl, L = () => {
8053
8094
  const l = H();
8054
8095
  l && window.open(l, "_self", "noopener,noreferrer");
8055
8096
  }, Y = () => {
@@ -8058,9 +8099,9 @@ const Ns = [
8058
8099
  return /* @__PURE__ */ r.jsxs(
8059
8100
  "div",
8060
8101
  {
8061
- style: z.wrapper,
8102
+ style: A.wrapper,
8062
8103
  ref: q,
8063
- className: a,
8104
+ className: o,
8064
8105
  role: "menu",
8065
8106
  "aria-label": "User menu",
8066
8107
  children: [
@@ -8119,7 +8160,7 @@ const Ns = [
8119
8160
  "div",
8120
8161
  {
8121
8162
  ref: O,
8122
- style: z.avatarButton,
8163
+ style: A.avatarButton,
8123
8164
  onClick: () => I((l) => !l),
8124
8165
  onKeyDown: (l) => J(l, () => I((m) => !m)),
8125
8166
  tabIndex: 0,
@@ -8142,7 +8183,7 @@ const Ns = [
8142
8183
  {
8143
8184
  src: C.avatarUrl,
8144
8185
  alt: `${C.name}'s avatar`,
8145
- style: z.avatarImage,
8186
+ style: A.avatarImage,
8146
8187
  loading: "lazy",
8147
8188
  onError: (l) => {
8148
8189
  const m = l.target;
@@ -8154,29 +8195,29 @@ const Ns = [
8154
8195
  {
8155
8196
  src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
8156
8197
  alt: "Default user avatar",
8157
- style: z.avatarImage,
8198
+ style: A.avatarImage,
8158
8199
  loading: "lazy"
8159
8200
  }
8160
8201
  ),
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 })
8202
+ !R && /* @__PURE__ */ r.jsxs("div", { style: A.userInfo, children: [
8203
+ /* @__PURE__ */ r.jsx("div", { style: A.userName, title: C?.name, children: C?.name || "Guest" }),
8204
+ C?.email && /* @__PURE__ */ r.jsx("div", { style: A.userEmail, title: C.email, children: C.email })
8164
8205
  ] }),
8165
8206
  /* @__PURE__ */ r.jsx(
8166
8207
  Zn,
8167
8208
  {
8168
8209
  size: R ? 14 : 16,
8169
- style: z.chevron,
8210
+ style: A.chevron,
8170
8211
  "aria-hidden": "true"
8171
8212
  }
8172
8213
  )
8173
8214
  ]
8174
8215
  }
8175
8216
  ),
8176
- h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8217
+ h && /* @__PURE__ */ r.jsx("div", { style: A.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8177
8218
  "div",
8178
8219
  {
8179
- style: z.loadingContainer,
8220
+ style: A.loadingContainer,
8180
8221
  role: "status",
8181
8222
  "aria-live": "polite",
8182
8223
  children: [
@@ -8189,23 +8230,23 @@ const Ns = [
8189
8230
  "aria-hidden": "true"
8190
8231
  }
8191
8232
  ),
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 })
8233
+ /* @__PURE__ */ r.jsxs("div", { style: A.loadingSkeleton, children: [
8234
+ /* @__PURE__ */ r.jsx("div", { style: A.skeletonAvatar }),
8235
+ /* @__PURE__ */ r.jsxs("div", { style: A.skeletonTextBlock, children: [
8236
+ /* @__PURE__ */ r.jsx("div", { style: A.skeletonLineShort }),
8237
+ /* @__PURE__ */ r.jsx("div", { style: A.skeletonLineLong })
8197
8238
  ] })
8198
8239
  ] })
8199
8240
  ]
8200
8241
  }
8201
8242
  ) : C ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
8202
- /* @__PURE__ */ r.jsxs("div", { style: z.userSection, children: [
8243
+ /* @__PURE__ */ r.jsxs("div", { style: A.userSection, children: [
8203
8244
  C?.avatarUrl ? /* @__PURE__ */ r.jsx(
8204
8245
  "img",
8205
8246
  {
8206
8247
  src: C.avatarUrl,
8207
8248
  alt: `${C.name}'s profile picture`,
8208
- style: z.dropdownAvatar,
8249
+ style: A.dropdownAvatar,
8209
8250
  loading: "lazy",
8210
8251
  onError: (l) => {
8211
8252
  const m = l.target;
@@ -8217,40 +8258,40 @@ const Ns = [
8217
8258
  {
8218
8259
  src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
8219
8260
  alt: `${C.name}'s default avatar`,
8220
- style: z.dropdownAvatar,
8261
+ style: A.dropdownAvatar,
8221
8262
  loading: "lazy"
8222
8263
  }
8223
8264
  ),
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 })
8265
+ /* @__PURE__ */ r.jsxs("div", { style: A.dropdownUserInfo, children: [
8266
+ /* @__PURE__ */ r.jsx("div", { style: A.dropdownUserName, title: C.name, children: C.name }),
8267
+ /* @__PURE__ */ r.jsx("div", { style: A.dropdownUserEmail, title: C.email, children: C.email })
8227
8268
  ] })
8228
8269
  ] }),
8229
- /* @__PURE__ */ r.jsxs("div", { style: z.dropdownSection, children: [
8270
+ /* @__PURE__ */ r.jsxs("div", { style: A.dropdownSection, children: [
8230
8271
  d && H() && /* @__PURE__ */ r.jsxs(
8231
8272
  "button",
8232
8273
  {
8233
- style: z.menuItem,
8234
- onClick: F,
8274
+ style: A.menuItem,
8275
+ onClick: L,
8235
8276
  onMouseOver: (l) => {
8236
8277
  l.currentTarget.style.backgroundColor = T.surfaceHover;
8237
8278
  },
8238
8279
  onMouseOut: (l) => {
8239
8280
  l.currentTarget.style.backgroundColor = "transparent";
8240
8281
  },
8241
- onKeyDown: (l) => J(l, F),
8282
+ onKeyDown: (l) => J(l, L),
8242
8283
  role: "menuitem",
8243
8284
  tabIndex: 0,
8244
8285
  children: [
8245
- /* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
8246
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
8286
+ /* @__PURE__ */ r.jsx(he, { style: A.icon, "aria-hidden": "true" }),
8287
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: y })
8247
8288
  ]
8248
8289
  }
8249
8290
  ),
8250
- f && c && /* @__PURE__ */ r.jsxs(
8291
+ x && c && /* @__PURE__ */ r.jsxs(
8251
8292
  "button",
8252
8293
  {
8253
- style: z.menuItem,
8294
+ style: A.menuItem,
8254
8295
  onClick: Y,
8255
8296
  onMouseOver: (l) => {
8256
8297
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8262,18 +8303,18 @@ const Ns = [
8262
8303
  role: "menuitem",
8263
8304
  tabIndex: 0,
8264
8305
  children: [
8265
- /* @__PURE__ */ r.jsx(Os, { style: z.icon, "aria-hidden": "true" }),
8266
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: k })
8306
+ /* @__PURE__ */ r.jsx(Os, { style: A.icon, "aria-hidden": "true" }),
8307
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: k })
8267
8308
  ]
8268
8309
  }
8269
8310
  ),
8270
- x && C.profileUrl && /* @__PURE__ */ r.jsxs(
8311
+ p && C.profileUrl && /* @__PURE__ */ r.jsxs(
8271
8312
  "a",
8272
8313
  {
8273
8314
  href: C.profileUrl,
8274
8315
  target: "_self",
8275
8316
  rel: "noopener noreferrer",
8276
- style: z.menuItem,
8317
+ style: A.menuItem,
8277
8318
  onMouseOver: (l) => {
8278
8319
  l.currentTarget.style.backgroundColor = T.surfaceHover;
8279
8320
  },
@@ -8283,16 +8324,16 @@ const Ns = [
8283
8324
  role: "menuitem",
8284
8325
  tabIndex: 0,
8285
8326
  children: [
8286
- /* @__PURE__ */ r.jsx(pe, { style: z.icon, "aria-hidden": "true" }),
8287
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: E })
8327
+ /* @__PURE__ */ r.jsx(pe, { style: A.icon, "aria-hidden": "true" }),
8328
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: E })
8288
8329
  ]
8289
8330
  }
8290
8331
  )
8291
8332
  ] }),
8292
- /* @__PURE__ */ r.jsx("div", { style: z.dropdownSection, children: /* @__PURE__ */ r.jsxs(
8333
+ /* @__PURE__ */ r.jsx("div", { style: A.dropdownSection, children: /* @__PURE__ */ r.jsxs(
8293
8334
  "button",
8294
8335
  {
8295
- style: z.logoutButton,
8336
+ style: A.logoutButton,
8296
8337
  onClick: n,
8297
8338
  onMouseOver: (l) => {
8298
8339
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8307,15 +8348,15 @@ const Ns = [
8307
8348
  /* @__PURE__ */ r.jsx(
8308
8349
  ct,
8309
8350
  {
8310
- style: { ...z.icon, color: T.error },
8351
+ style: { ...A.icon, color: T.error },
8311
8352
  "aria-hidden": "true"
8312
8353
  }
8313
8354
  ),
8314
- /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: u })
8355
+ /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: u })
8315
8356
  ]
8316
8357
  }
8317
8358
  ) })
8318
- ] }) : /* @__PURE__ */ r.jsxs("div", { style: z.errorState, role: "alert", children: [
8359
+ ] }) : /* @__PURE__ */ r.jsxs("div", { style: A.errorState, role: "alert", children: [
8319
8360
  /* @__PURE__ */ r.jsxs(
8320
8361
  "div",
8321
8362
  {
@@ -8329,7 +8370,7 @@ const Ns = [
8329
8370
  b && b !== "Not signed in" && /* @__PURE__ */ r.jsx(
8330
8371
  "button",
8331
8372
  {
8332
- style: z.retryButton,
8373
+ style: A.retryButton,
8333
8374
  onClick: M,
8334
8375
  onMouseOver: (l) => {
8335
8376
  l.currentTarget.style.backgroundColor = T.accentHover;
@@ -8379,13 +8420,13 @@ const Ns = [
8379
8420
  ]
8380
8421
  }
8381
8422
  );
8382
- const [a, o] = P(!1), [c, d] = P({
8423
+ const [o, a] = P(!1), [c, d] = P({
8383
8424
  email: t?.email || "",
8384
8425
  otp: ""
8385
- }), [f, x] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8426
+ }), [x, p] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8386
8427
  Ce.useEffect(() => {
8387
8428
  if (typeof window < "u") {
8388
- const b = () => o(window.innerWidth < 768);
8429
+ const b = () => a(window.innerWidth < 768);
8389
8430
  return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
8390
8431
  }
8391
8432
  }, []);
@@ -8435,7 +8476,7 @@ const Ns = [
8435
8476
  });
8436
8477
  if (console.log("Send OTP response:", b), b.success || b.data?.success) {
8437
8478
  const j = b.message || b.data?.message || "OTP sent!";
8438
- I("success", j), x(!0);
8479
+ I("success", j), p(!0);
8439
8480
  } else {
8440
8481
  const j = b.message || b.data?.message || "Failed to send OTP";
8441
8482
  I("error", j);
@@ -8458,7 +8499,7 @@ const Ns = [
8458
8499
  });
8459
8500
  if (j.success) {
8460
8501
  const q = { ...t, isVerified: !0 };
8461
- s?.(q), I("success", j.message || "Email verified!"), x(!1), d({ email: t.email, otp: "" });
8502
+ s?.(q), I("success", j.message || "Email verified!"), p(!1), d({ email: t.email, otp: "" });
8462
8503
  } else
8463
8504
  I("error", j.message || "Verification failed");
8464
8505
  } catch (j) {
@@ -8497,7 +8538,7 @@ const Ns = [
8497
8538
  onSubmit: g,
8498
8539
  style: {
8499
8540
  width: "100%",
8500
- maxWidth: a ? "340px" : "400px",
8541
+ maxWidth: o ? "340px" : "400px",
8501
8542
  display: "flex",
8502
8543
  flexDirection: "column",
8503
8544
  gap: 20,
@@ -8618,7 +8659,7 @@ const Ns = [
8618
8659
  }
8619
8660
  )
8620
8661
  ] }),
8621
- f && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8662
+ x && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8622
8663
  /* @__PURE__ */ r.jsxs(
8623
8664
  "div",
8624
8665
  {
@@ -8668,7 +8709,7 @@ const Ns = [
8668
8709
  }
8669
8710
  )
8670
8711
  ] }),
8671
- /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: f ? /* @__PURE__ */ r.jsxs(
8712
+ /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: x ? /* @__PURE__ */ r.jsxs(
8672
8713
  "button",
8673
8714
  {
8674
8715
  type: "submit",