@neuctra/authix 1.1.60 → 1.1.62

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.
@@ -7,11 +7,11 @@ function Ut(t, e) {
7
7
  const { toString: mr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: Fe, toStringTag: Dt } = Symbol, qe = /* @__PURE__ */ ((t) => (e) => {
8
8
  const r = mr.call(e);
9
9
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ie = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), Me = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = Me("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), oe = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), Me = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = Me("undefined");
11
11
  function Ce(t) {
12
12
  return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && re(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const Lt = ie("ArrayBuffer");
14
+ const Lt = oe("ArrayBuffer");
15
15
  function yr(t) {
16
16
  let e;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Lt(t.buffer), e;
@@ -29,11 +29,11 @@ const br = Me("string"), re = Me("function"), Ft = Me("number"), Te = (t) => t !
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, Sr = ie("Date"), vr = ie("File"), kr = ie("Blob"), Er = ie("FileList"), Cr = (t) => Te(t) && re(t.pipe), Tr = (t) => {
32
+ }, Sr = oe("Date"), vr = oe("File"), kr = oe("Blob"), Er = oe("FileList"), Cr = (t) => Te(t) && re(t.pipe), Tr = (t) => {
33
33
  let e;
34
34
  return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = qe(t)) === "formdata" || // detect form-data instance
35
35
  e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
36
- }, Rr = ie("URLSearchParams"), [Ir, Pr, Or, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(ie), zr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
+ }, Rr = oe("URLSearchParams"), [Ir, Pr, Or, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(oe), zr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Re(t, e, { allOwnKeys: r = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
@@ -44,10 +44,10 @@ function Re(t, e, { allOwnKeys: r = !1 } = {}) {
44
44
  else {
45
45
  if (Ce(t))
46
46
  return;
47
- const o = r ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
47
+ const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
48
48
  let l;
49
- for (s = 0; s < i; s++)
50
- l = o[s], e.call(null, t[l], l, t);
49
+ for (s = 0; s < o; s++)
50
+ l = i[s], e.call(null, t[l], l, t);
51
51
  }
52
52
  }
53
53
  function qt(t, e) {
@@ -63,27 +63,27 @@ function qt(t, e) {
63
63
  }
64
64
  const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (t) => !ye(t) && t !== fe;
65
65
  function Ze() {
66
- const { caseless: t, skipUndefined: e } = Mt(this) && this || {}, r = {}, s = (a, o) => {
67
- const i = t && qt(r, o) || o;
68
- ze(r[i]) && ze(a) ? r[i] = Ze(r[i], a) : ze(a) ? r[i] = Ze({}, a) : we(a) ? r[i] = a.slice() : (!e || !ye(a)) && (r[i] = a);
66
+ const { caseless: t, skipUndefined: e } = Mt(this) && this || {}, r = {}, s = (a, i) => {
67
+ const o = t && qt(r, i) || i;
68
+ ze(r[o]) && ze(a) ? r[o] = Ze(r[o], a) : ze(a) ? r[o] = Ze({}, a) : we(a) ? r[o] = a.slice() : (!e || !ye(a)) && (r[o] = a);
69
69
  };
70
- for (let a = 0, o = arguments.length; a < o; a++)
70
+ for (let a = 0, i = arguments.length; a < i; a++)
71
71
  arguments[a] && Re(arguments[a], s);
72
72
  return r;
73
73
  }
74
- const $r = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, o) => {
75
- r && re(a) ? t[o] = Ut(a, r) : t[o] = a;
74
+ const $r = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, i) => {
75
+ r && re(a) ? t[i] = Ut(a, r) : t[i] = a;
76
76
  }, { allOwnKeys: s }), t), _r = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Nr = (t, e, r, 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
  }), r && Object.assign(t.prototype, r);
80
80
  }, Ur = (t, e, r, s) => {
81
- let a, o, i;
81
+ let a, i, o;
82
82
  const l = {};
83
83
  if (e = e || {}, t == null) return e;
84
84
  do {
85
- for (a = Object.getOwnPropertyNames(t), o = a.length; o-- > 0; )
86
- i = a[o], (!s || s(i, t, e)) && !l[i] && (e[i] = t[i], l[i] = !0);
85
+ for (a = Object.getOwnPropertyNames(t), i = a.length; i-- > 0; )
86
+ o = a[i], (!s || s(o, t, e)) && !l[o] && (e[o] = t[o], l[o] = !0);
87
87
  t = r !== !1 && st(t);
88
88
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
89
89
  return e;
@@ -104,8 +104,8 @@ const $r = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, o) => {
104
104
  const s = (t && t[Fe]).call(t);
105
105
  let a;
106
106
  for (; (a = s.next()) && !a.done; ) {
107
- const o = a.value;
108
- e.call(t, o[0], o[1]);
107
+ const i = a.value;
108
+ e.call(t, i[0], i[1]);
109
109
  }
110
110
  }, Mr = (t, e) => {
111
111
  let r;
@@ -113,16 +113,16 @@ const $r = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, o) => {
113
113
  for (; (r = t.exec(e)) !== null; )
114
114
  s.push(r);
115
115
  return s;
116
- }, Wr = ie("HTMLFormElement"), Br = (t) => t.toLowerCase().replace(
116
+ }, Wr = oe("HTMLFormElement"), Br = (t) => t.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
118
  function(r, s, a) {
119
119
  return s.toUpperCase() + a;
120
120
  }
121
- ), ht = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Hr = ie("RegExp"), Wt = (t, e) => {
121
+ ), ht = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Hr = oe("RegExp"), Wt = (t, e) => {
122
122
  const r = Object.getOwnPropertyDescriptors(t), s = {};
123
- Re(r, (a, o) => {
124
- let i;
125
- (i = e(a, o, t)) !== !1 && (s[o] = i || a);
123
+ Re(r, (a, i) => {
124
+ let o;
125
+ (o = e(a, i, t)) !== !1 && (s[i] = o || a);
126
126
  }), Object.defineProperties(t, s);
127
127
  }, Vr = (t) => {
128
128
  Wt(t, (e, r) => {
@@ -141,8 +141,8 @@ const $r = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, o) => {
141
141
  });
142
142
  }, Yr = (t, e) => {
143
143
  const r = {}, s = (a) => {
144
- a.forEach((o) => {
145
- r[o] = !0;
144
+ a.forEach((i) => {
145
+ r[i] = !0;
146
146
  });
147
147
  };
148
148
  return we(t) ? s(t) : s(String(t).split(e)), r;
@@ -160,18 +160,18 @@ const Xr = (t) => {
160
160
  return s;
161
161
  if (!("toJSON" in s)) {
162
162
  e[a] = s;
163
- const o = we(s) ? [] : {};
164
- return Re(s, (i, l) => {
165
- const h = r(i, a + 1);
166
- !ye(h) && (o[l] = h);
167
- }), e[a] = void 0, o;
163
+ const i = we(s) ? [] : {};
164
+ return Re(s, (o, l) => {
165
+ const h = r(o, a + 1);
166
+ !ye(h) && (i[l] = h);
167
+ }), e[a] = void 0, i;
168
168
  }
169
169
  }
170
170
  return s;
171
171
  };
172
172
  return r(t, 0);
173
- }, Zr = ie("AsyncFunction"), Qr = (t) => t && (Te(t) || re(t)) && re(t.then) && re(t.catch), Bt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: a, data: o }) => {
174
- a === fe && o === r && s.length && s.shift()();
173
+ }, Zr = oe("AsyncFunction"), Qr = (t) => t && (Te(t) || re(t)) && re(t.then) && re(t.catch), Bt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: a, data: i }) => {
174
+ a === fe && i === r && s.length && s.shift()();
175
175
  }, !1), (a) => {
176
176
  s.push(a), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
@@ -211,7 +211,7 @@ const Xr = (t) => {
211
211
  inherits: Nr,
212
212
  toFlatObject: Ur,
213
213
  kindOf: qe,
214
- kindOfTest: ie,
214
+ kindOfTest: oe,
215
215
  endsWith: Dr,
216
216
  toArray: Lr,
217
217
  forEachEntry: qr,
@@ -281,13 +281,13 @@ const Ht = L.prototype, Vt = {};
281
281
  });
282
282
  Object.defineProperties(L, Vt);
283
283
  Object.defineProperty(Ht, "isAxiosError", { value: !0 });
284
- L.from = (t, e, r, s, a, o) => {
285
- const i = Object.create(Ht);
286
- p.toFlatObject(t, i, function(u) {
287
- return u !== Error.prototype;
288
- }, (c) => c !== "isAxiosError");
284
+ L.from = (t, e, r, s, a, i) => {
285
+ const o = Object.create(Ht);
286
+ p.toFlatObject(t, o, function(c) {
287
+ return c !== Error.prototype;
288
+ }, (d) => d !== "isAxiosError");
289
289
  const l = t && t.message ? t.message : "Error", h = e == null && t ? t.code : e;
290
- return L.call(i, l, h, r, s, a), t && i.cause == null && Object.defineProperty(i, "cause", { value: t, configurable: !0 }), i.name = t && t.name || "Error", o && Object.assign(i, o), i;
290
+ return L.call(o, l, h, r, s, a), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", i && Object.assign(o, i), o;
291
291
  };
292
292
  const rn = null;
293
293
  function Qe(t) {
@@ -297,8 +297,8 @@ function Yt(t) {
297
297
  return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
299
  function gt(t, e, r) {
300
- return t ? t.concat(e).map(function(a, o) {
301
- return a = Yt(a), !r && o ? "[" + a + "]" : a;
300
+ return t ? t.concat(e).map(function(a, i) {
301
+ return a = Yt(a), !r && i ? "[" + a + "]" : a;
302
302
  }).join(r ? "." : "") : e;
303
303
  }
304
304
  function nn(t) {
@@ -314,48 +314,48 @@ function We(t, e, r) {
314
314
  metaTokens: !0,
315
315
  dots: !1,
316
316
  indexes: !1
317
- }, !1, function(j, m) {
318
- return !p.isUndefined(m[j]);
317
+ }, !1, function(j, y) {
318
+ return !p.isUndefined(y[j]);
319
319
  });
320
- const s = r.metaTokens, a = r.visitor || u, o = r.dots, i = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
320
+ const s = r.metaTokens, a = r.visitor || c, i = r.dots, o = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
321
321
  if (!p.isFunction(a))
322
322
  throw new TypeError("visitor must be a function");
323
- function c(d) {
324
- if (d === null) return "";
325
- if (p.isDate(d))
326
- return d.toISOString();
327
- if (p.isBoolean(d))
328
- return d.toString();
329
- if (!h && p.isBlob(d))
323
+ function d(u) {
324
+ if (u === null) return "";
325
+ if (p.isDate(u))
326
+ return u.toISOString();
327
+ if (p.isBoolean(u))
328
+ return u.toString();
329
+ if (!h && p.isBlob(u))
330
330
  throw new L("Blob is not supported. Use a Buffer instead.");
331
- return p.isArrayBuffer(d) || p.isTypedArray(d) ? h && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
331
+ return p.isArrayBuffer(u) || p.isTypedArray(u) ? h && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
332
332
  }
333
- function u(d, j, m) {
334
- let $ = d;
335
- if (d && !m && typeof d == "object") {
333
+ function c(u, j, y) {
334
+ let $ = u;
335
+ if (u && !y && typeof u == "object") {
336
336
  if (p.endsWith(j, "{}"))
337
- j = s ? j : j.slice(0, -2), d = JSON.stringify(d);
338
- else if (p.isArray(d) && nn(d) || (p.isFileList(d) || p.endsWith(j, "[]")) && ($ = p.toArray(d)))
337
+ j = s ? j : j.slice(0, -2), u = JSON.stringify(u);
338
+ else if (p.isArray(u) && nn(u) || (p.isFileList(u) || p.endsWith(j, "[]")) && ($ = p.toArray(u)))
339
339
  return j = Yt(j), $.forEach(function(z, C) {
340
340
  !(p.isUndefined(z) || z === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- i === !0 ? gt([j], C, o) : i === null ? j : j + "[]",
343
- c(z)
342
+ o === !0 ? gt([j], C, i) : o === null ? j : j + "[]",
343
+ d(z)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Qe(d) ? !0 : (e.append(gt(m, j, o), c(d)), !1);
347
+ return Qe(u) ? !0 : (e.append(gt(y, j, i), d(u)), !1);
348
348
  }
349
- const y = [], b = Object.assign(sn, {
350
- defaultVisitor: u,
351
- convertValue: c,
349
+ const m = [], b = Object.assign(sn, {
350
+ defaultVisitor: c,
351
+ convertValue: d,
352
352
  isVisitable: Qe
353
353
  });
354
- function w(d, j) {
355
- if (!p.isUndefined(d)) {
356
- if (y.indexOf(d) !== -1)
354
+ function w(u, j) {
355
+ if (!p.isUndefined(u)) {
356
+ if (m.indexOf(u) !== -1)
357
357
  throw Error("Circular reference detected in " + j.join("."));
358
- y.push(d), p.forEach(d, function($, R) {
358
+ m.push(u), p.forEach(u, function($, R) {
359
359
  (!(p.isUndefined($) || $ === null) && a.call(
360
360
  e,
361
361
  $,
@@ -363,7 +363,7 @@ function We(t, e, r) {
363
363
  j,
364
364
  b
365
365
  )) === !0 && w($, j ? j.concat(R) : [R]);
366
- }), y.pop();
366
+ }), m.pop();
367
367
  }
368
368
  }
369
369
  if (!p.isObject(t))
@@ -410,10 +410,10 @@ function Jt(t, e, r) {
410
410
  serialize: r
411
411
  });
412
412
  const a = r && r.serialize;
413
- let o;
414
- if (a ? o = a(e, r) : o = p.isURLSearchParams(e) ? e.toString() : new at(e, r).toString(s), o) {
415
- const i = t.indexOf("#");
416
- i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
413
+ let i;
414
+ if (a ? i = a(e, r) : i = p.isURLSearchParams(e) ? e.toString() : new at(e, r).toString(s), i) {
415
+ const o = t.indexOf("#");
416
+ o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
417
417
  }
418
418
  return t;
419
419
  }
@@ -475,30 +475,30 @@ const Gt = {
475
475
  silentJSONParsing: !0,
476
476
  forcedJSONParsing: !0,
477
477
  clarifyTimeoutError: !1
478
- }, on = typeof URLSearchParams < "u" ? URLSearchParams : at, ln = typeof FormData < "u" ? FormData : null, dn = typeof Blob < "u" ? Blob : null, cn = {
478
+ }, on = typeof URLSearchParams < "u" ? URLSearchParams : at, ln = typeof FormData < "u" ? FormData : null, cn = typeof Blob < "u" ? Blob : null, dn = {
479
479
  isBrowser: !0,
480
480
  classes: {
481
481
  URLSearchParams: on,
482
482
  FormData: ln,
483
- Blob: dn
483
+ Blob: cn
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, it = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, un = it && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), pn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", fn = it && window.location.href || "http://localhost", xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, ot = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, un = ot && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), pn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", fn = ot && window.location.href || "http://localhost", xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
- hasBrowserEnv: it,
489
+ hasBrowserEnv: ot,
490
490
  hasStandardBrowserEnv: un,
491
491
  hasStandardBrowserWebWorkerEnv: pn,
492
492
  navigator: et,
493
493
  origin: fn
494
494
  }, Symbol.toStringTag, { value: "Module" })), ee = {
495
495
  ...xn,
496
- ...cn
496
+ ...dn
497
497
  };
498
498
  function hn(t, e) {
499
499
  return We(t, new ee.classes.URLSearchParams(), {
500
- visitor: function(r, s, a, o) {
501
- return ee.isNode && p.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
500
+ visitor: function(r, s, a, i) {
501
+ return ee.isNode && p.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...e
504
504
  });
@@ -510,17 +510,17 @@ function mn(t) {
510
510
  const e = {}, r = Object.keys(t);
511
511
  let s;
512
512
  const a = r.length;
513
- let o;
513
+ let i;
514
514
  for (s = 0; s < a; s++)
515
- o = r[s], e[o] = t[o];
515
+ i = r[s], e[i] = t[i];
516
516
  return e;
517
517
  }
518
518
  function Xt(t) {
519
- function e(r, s, a, o) {
520
- let i = r[o++];
521
- if (i === "__proto__") return !0;
522
- const l = Number.isFinite(+i), h = o >= r.length;
523
- return i = !i && p.isArray(a) ? a.length : i, h ? (p.hasOwnProp(a, i) ? a[i] = [a[i], s] : a[i] = s, !l) : ((!a[i] || !p.isObject(a[i])) && (a[i] = []), e(r, s, a[i], o) && p.isArray(a[i]) && (a[i] = mn(a[i])), !l);
519
+ function e(r, s, a, i) {
520
+ let o = r[i++];
521
+ if (o === "__proto__") return !0;
522
+ const l = Number.isFinite(+o), h = i >= r.length;
523
+ return o = !o && p.isArray(a) ? a.length : o, h ? (p.hasOwnProp(a, o) ? a[o] = [a[o], s] : a[o] = s, !l) : ((!a[o] || !p.isObject(a[o])) && (a[o] = []), e(r, s, a[o], i) && p.isArray(a[o]) && (a[o] = mn(a[o])), !l);
524
524
  }
525
525
  if (p.isFormData(t) && p.isFunction(t.entries)) {
526
526
  const r = {};
@@ -544,8 +544,8 @@ const Ie = {
544
544
  transitional: Gt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, r) {
547
- const s = r.getContentType() || "", a = s.indexOf("application/json") > -1, o = p.isObject(e);
548
- if (o && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
547
+ const s = r.getContentType() || "", a = s.indexOf("application/json") > -1, i = p.isObject(e);
548
+ if (i && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
549
549
  return a ? JSON.stringify(Xt(e)) : e;
550
550
  if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e))
551
551
  return e;
@@ -554,7 +554,7 @@ const Ie = {
554
554
  if (p.isURLSearchParams(e))
555
555
  return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
556
556
  let l;
557
- if (o) {
557
+ if (i) {
558
558
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
559
559
  return hn(e, this.formSerializer).toString();
560
560
  if ((l = p.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
@@ -566,18 +566,18 @@ const Ie = {
566
566
  );
567
567
  }
568
568
  }
569
- return o || a ? (r.setContentType("application/json", !1), yn(e)) : e;
569
+ return i || a ? (r.setContentType("application/json", !1), yn(e)) : e;
570
570
  }],
571
571
  transformResponse: [function(e) {
572
572
  const r = this.transitional || Ie.transitional, s = r && r.forcedJSONParsing, a = this.responseType === "json";
573
573
  if (p.isResponse(e) || p.isReadableStream(e))
574
574
  return e;
575
575
  if (e && p.isString(e) && (s && !this.responseType || a)) {
576
- const i = !(r && r.silentJSONParsing) && a;
576
+ const o = !(r && r.silentJSONParsing) && a;
577
577
  try {
578
578
  return JSON.parse(e, this.parseReviver);
579
579
  } catch (l) {
580
- if (i)
580
+ if (o)
581
581
  throw l.name === "SyntaxError" ? L.from(l, L.ERR_BAD_RESPONSE, this, null, this.response) : l;
582
582
  }
583
583
  }
@@ -631,8 +631,8 @@ const bn = p.toObjectSet([
631
631
  const e = {};
632
632
  let r, s, a;
633
633
  return t && t.split(`
634
- `).forEach(function(i) {
635
- a = i.indexOf(":"), r = i.substring(0, a).trim().toLowerCase(), s = i.substring(a + 1).trim(), !(!r || e[r] && bn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
634
+ `).forEach(function(o) {
635
+ a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), s = o.substring(a + 1).trim(), !(!r || e[r] && bn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
636
636
  }), e;
637
637
  }, bt = Symbol("internals");
638
638
  function ve(t) {
@@ -666,8 +666,8 @@ function kn(t, e) {
666
666
  const r = p.toCamelCase(" " + e);
667
667
  ["get", "set", "has"].forEach((s) => {
668
668
  Object.defineProperty(t, s + r, {
669
- value: function(a, o, i) {
670
- return this[s].call(this, e, a, o, i);
669
+ value: function(a, i, o) {
670
+ return this[s].call(this, e, a, i, o);
671
671
  },
672
672
  configurable: !0
673
673
  });
@@ -679,28 +679,28 @@ let ne = class {
679
679
  }
680
680
  set(e, r, s) {
681
681
  const a = this;
682
- function o(l, h, c) {
683
- const u = ve(h);
684
- if (!u)
682
+ function i(l, h, d) {
683
+ const c = ve(h);
684
+ if (!c)
685
685
  throw new Error("header name must be a non-empty string");
686
- const y = p.findKey(a, u);
687
- (!y || a[y] === void 0 || c === !0 || c === void 0 && a[y] !== !1) && (a[y || h] = $e(l));
686
+ const m = p.findKey(a, c);
687
+ (!m || a[m] === void 0 || d === !0 || d === void 0 && a[m] !== !1) && (a[m || h] = $e(l));
688
688
  }
689
- const i = (l, h) => p.forEach(l, (c, u) => o(c, u, h));
689
+ const o = (l, h) => p.forEach(l, (d, c) => i(d, c, h));
690
690
  if (p.isPlainObject(e) || e instanceof this.constructor)
691
- i(e, r);
691
+ o(e, r);
692
692
  else if (p.isString(e) && (e = e.trim()) && !Sn(e))
693
- i(wn(e), r);
693
+ o(wn(e), r);
694
694
  else if (p.isObject(e) && p.isIterable(e)) {
695
- let l = {}, h, c;
696
- for (const u of e) {
697
- if (!p.isArray(u))
695
+ let l = {}, h, d;
696
+ for (const c of e) {
697
+ if (!p.isArray(c))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- l[c = u[0]] = (h = l[c]) ? p.isArray(h) ? [...h, u[1]] : [h, u[1]] : u[1];
699
+ l[d = c[0]] = (h = l[d]) ? p.isArray(h) ? [...h, c[1]] : [h, c[1]] : c[1];
700
700
  }
701
- i(l, r);
701
+ o(l, r);
702
702
  } else
703
- e != null && o(r, e, s);
703
+ e != null && i(r, e, s);
704
704
  return this;
705
705
  }
706
706
  get(e, r) {
@@ -730,33 +730,33 @@ let ne = class {
730
730
  delete(e, r) {
731
731
  const s = this;
732
732
  let a = !1;
733
- function o(i) {
734
- if (i = ve(i), i) {
735
- const l = p.findKey(s, i);
733
+ function i(o) {
734
+ if (o = ve(o), o) {
735
+ const l = p.findKey(s, o);
736
736
  l && (!r || Ye(s, s[l], l, r)) && (delete s[l], a = !0);
737
737
  }
738
738
  }
739
- return p.isArray(e) ? e.forEach(o) : o(e), a;
739
+ return p.isArray(e) ? e.forEach(i) : i(e), a;
740
740
  }
741
741
  clear(e) {
742
742
  const r = Object.keys(this);
743
743
  let s = r.length, a = !1;
744
744
  for (; s--; ) {
745
- const o = r[s];
746
- (!e || Ye(this, this[o], o, e, !0)) && (delete this[o], a = !0);
745
+ const i = r[s];
746
+ (!e || Ye(this, this[i], i, e, !0)) && (delete this[i], a = !0);
747
747
  }
748
748
  return a;
749
749
  }
750
750
  normalize(e) {
751
751
  const r = this, s = {};
752
- return p.forEach(this, (a, o) => {
753
- const i = p.findKey(s, o);
754
- if (i) {
755
- r[i] = $e(a), delete r[o];
752
+ return p.forEach(this, (a, i) => {
753
+ const o = p.findKey(s, i);
754
+ if (o) {
755
+ r[o] = $e(a), delete r[i];
756
756
  return;
757
757
  }
758
- const l = e ? vn(o) : String(o).trim();
759
- l !== o && delete r[o], r[l] = $e(a), s[l] = !0;
758
+ const l = e ? vn(i) : String(i).trim();
759
+ l !== i && delete r[i], r[l] = $e(a), s[l] = !0;
760
760
  }), this;
761
761
  }
762
762
  concat(...e) {
@@ -792,11 +792,11 @@ let ne = class {
792
792
  const s = (this[bt] = this[bt] = {
793
793
  accessors: {}
794
794
  }).accessors, a = this.prototype;
795
- function o(i) {
796
- const l = ve(i);
797
- s[l] || (kn(a, i), s[l] = !0);
795
+ function i(o) {
796
+ const l = ve(o);
797
+ s[l] || (kn(a, o), s[l] = !0);
798
798
  }
799
- return p.isArray(e) ? e.forEach(o) : o(e), this;
799
+ return p.isArray(e) ? e.forEach(i) : i(e), this;
800
800
  }
801
801
  };
802
802
  ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
@@ -812,10 +812,10 @@ p.reduceDescriptors(ne.prototype, ({ value: t }, e) => {
812
812
  p.freezeMethods(ne);
813
813
  function Ke(t, e) {
814
814
  const r = this || Ie, s = e || r, a = ne.from(s.headers);
815
- let o = s.data;
815
+ let i = s.data;
816
816
  return p.forEach(t, function(l) {
817
- o = l.call(r, o, a.normalize(), e ? e.status : void 0);
818
- }), a.normalize(), o;
817
+ i = l.call(r, i, a.normalize(), e ? e.status : void 0);
818
+ }), a.normalize(), i;
819
819
  }
820
820
  function Zt(t) {
821
821
  return !!(t && t.__CANCEL__);
@@ -843,49 +843,49 @@ function En(t) {
843
843
  function Cn(t, e) {
844
844
  t = t || 10;
845
845
  const r = new Array(t), s = new Array(t);
846
- let a = 0, o = 0, i;
846
+ let a = 0, i = 0, o;
847
847
  return e = e !== void 0 ? e : 1e3, function(h) {
848
- const c = Date.now(), u = s[o];
849
- i || (i = c), r[a] = h, s[a] = c;
850
- let y = o, b = 0;
851
- for (; y !== a; )
852
- b += r[y++], y = y % t;
853
- if (a = (a + 1) % t, a === o && (o = (o + 1) % t), c - i < e)
848
+ const d = Date.now(), c = s[i];
849
+ o || (o = d), r[a] = h, s[a] = d;
850
+ let m = i, b = 0;
851
+ for (; m !== a; )
852
+ b += r[m++], m = m % t;
853
+ if (a = (a + 1) % t, a === i && (i = (i + 1) % t), d - o < e)
854
854
  return;
855
- const w = u && c - u;
855
+ const w = c && d - c;
856
856
  return w ? Math.round(b * 1e3 / w) : void 0;
857
857
  };
858
858
  }
859
859
  function Tn(t, e) {
860
- let r = 0, s = 1e3 / e, a, o;
861
- const i = (c, u = Date.now()) => {
862
- r = u, a = null, o && (clearTimeout(o), o = null), t(...c);
860
+ let r = 0, s = 1e3 / e, a, i;
861
+ const o = (d, c = Date.now()) => {
862
+ r = c, a = null, i && (clearTimeout(i), i = null), t(...d);
863
863
  };
864
- return [(...c) => {
865
- const u = Date.now(), y = u - r;
866
- y >= s ? i(c, u) : (a = c, o || (o = setTimeout(() => {
867
- o = null, i(a);
868
- }, s - y)));
869
- }, () => a && i(a)];
864
+ return [(...d) => {
865
+ const c = Date.now(), m = c - r;
866
+ m >= s ? o(d, c) : (a = d, i || (i = setTimeout(() => {
867
+ i = null, o(a);
868
+ }, s - m)));
869
+ }, () => a && o(a)];
870
870
  }
871
871
  const De = (t, e, r = 3) => {
872
872
  let s = 0;
873
873
  const a = Cn(50, 250);
874
- return Tn((o) => {
875
- const i = o.loaded, l = o.lengthComputable ? o.total : void 0, h = i - s, c = a(h), u = i <= l;
876
- s = i;
877
- const y = {
878
- loaded: i,
874
+ return Tn((i) => {
875
+ const o = i.loaded, l = i.lengthComputable ? i.total : void 0, h = o - s, d = a(h), c = o <= l;
876
+ s = o;
877
+ const m = {
878
+ loaded: o,
879
879
  total: l,
880
- progress: l ? i / l : void 0,
880
+ progress: l ? o / l : void 0,
881
881
  bytes: h,
882
- rate: c || void 0,
883
- estimated: c && l && u ? (l - i) / c : void 0,
884
- event: o,
882
+ rate: d || void 0,
883
+ estimated: d && l && c ? (l - o) / d : void 0,
884
+ event: i,
885
885
  lengthComputable: l != null,
886
886
  [e ? "download" : "upload"]: !0
887
887
  };
888
- t(y);
888
+ t(m);
889
889
  }, r);
890
890
  }, wt = (t, e) => {
891
891
  const r = t != null;
@@ -900,9 +900,9 @@ const De = (t, e, r = 3) => {
900
900
  ) : () => !0, In = ee.hasStandardBrowserEnv ? (
901
901
  // Standard browser envs support document.cookie
902
902
  {
903
- write(t, e, r, s, a, o) {
904
- const i = [t + "=" + encodeURIComponent(e)];
905
- p.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), p.isString(s) && i.push("path=" + s), p.isString(a) && i.push("domain=" + a), o === !0 && i.push("secure"), document.cookie = i.join("; ");
903
+ write(t, e, r, s, a, i) {
904
+ const o = [t + "=" + encodeURIComponent(e)];
905
+ p.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), p.isString(s) && o.push("path=" + s), p.isString(a) && o.push("domain=" + a), i === !0 && o.push("secure"), document.cookie = o.join("; ");
906
906
  },
907
907
  read(t) {
908
908
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -938,166 +938,166 @@ const St = (t) => t instanceof ne ? { ...t } : t;
938
938
  function he(t, e) {
939
939
  e = e || {};
940
940
  const r = {};
941
- function s(c, u, y, b) {
942
- return p.isPlainObject(c) && p.isPlainObject(u) ? p.merge.call({ caseless: b }, c, u) : p.isPlainObject(u) ? p.merge({}, u) : p.isArray(u) ? u.slice() : u;
941
+ function s(d, c, m, b) {
942
+ return p.isPlainObject(d) && p.isPlainObject(c) ? p.merge.call({ caseless: b }, d, c) : p.isPlainObject(c) ? p.merge({}, c) : p.isArray(c) ? c.slice() : c;
943
943
  }
944
- function a(c, u, y, b) {
945
- if (p.isUndefined(u)) {
946
- if (!p.isUndefined(c))
947
- return s(void 0, c, y, b);
948
- } else return s(c, u, y, b);
944
+ function a(d, c, m, b) {
945
+ if (p.isUndefined(c)) {
946
+ if (!p.isUndefined(d))
947
+ return s(void 0, d, m, b);
948
+ } else return s(d, c, m, b);
949
949
  }
950
- function o(c, u) {
951
- if (!p.isUndefined(u))
952
- return s(void 0, u);
950
+ function i(d, c) {
951
+ if (!p.isUndefined(c))
952
+ return s(void 0, c);
953
953
  }
954
- function i(c, u) {
955
- if (p.isUndefined(u)) {
956
- if (!p.isUndefined(c))
957
- return s(void 0, c);
958
- } else return s(void 0, u);
954
+ function o(d, c) {
955
+ if (p.isUndefined(c)) {
956
+ if (!p.isUndefined(d))
957
+ return s(void 0, d);
958
+ } else return s(void 0, c);
959
959
  }
960
- function l(c, u, y) {
961
- if (y in e)
962
- return s(c, u);
963
- if (y in t)
964
- return s(void 0, c);
960
+ function l(d, c, m) {
961
+ if (m in e)
962
+ return s(d, c);
963
+ if (m in t)
964
+ return s(void 0, d);
965
965
  }
966
966
  const h = {
967
- url: o,
968
- method: o,
969
- data: o,
970
- baseURL: i,
971
- transformRequest: i,
972
- transformResponse: i,
973
- paramsSerializer: i,
974
- timeout: i,
975
- timeoutMessage: i,
976
- withCredentials: i,
977
- withXSRFToken: i,
978
- adapter: i,
979
- responseType: i,
980
- xsrfCookieName: i,
981
- xsrfHeaderName: i,
982
- onUploadProgress: i,
983
- onDownloadProgress: i,
984
- decompress: i,
985
- maxContentLength: i,
986
- maxBodyLength: i,
987
- beforeRedirect: i,
988
- transport: i,
989
- httpAgent: i,
990
- httpsAgent: i,
991
- cancelToken: i,
992
- socketPath: i,
993
- responseEncoding: i,
967
+ url: i,
968
+ method: i,
969
+ data: i,
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,
994
994
  validateStatus: l,
995
- headers: (c, u, y) => a(St(c), St(u), y, !0)
995
+ headers: (d, c, m) => a(St(d), St(c), m, !0)
996
996
  };
997
- return p.forEach(Object.keys({ ...t, ...e }), function(u) {
998
- const y = h[u] || a, b = y(t[u], e[u], u);
999
- p.isUndefined(b) && y !== l || (r[u] = b);
997
+ return p.forEach(Object.keys({ ...t, ...e }), function(c) {
998
+ const m = h[c] || a, b = m(t[c], e[c], c);
999
+ p.isUndefined(b) && m !== l || (r[c] = b);
1000
1000
  }), r;
1001
1001
  }
1002
1002
  const tr = (t) => {
1003
1003
  const e = he({}, t);
1004
- let { data: r, withXSRFToken: s, xsrfHeaderName: a, xsrfCookieName: o, headers: i, auth: l } = e;
1005
- if (e.headers = i = ne.from(i), e.url = Jt(er(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), l && i.set(
1004
+ let { data: r, withXSRFToken: s, xsrfHeaderName: a, xsrfCookieName: i, headers: o, auth: l } = e;
1005
+ if (e.headers = o = ne.from(o), e.url = Jt(er(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), l && o.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
1008
1008
  ), p.isFormData(r)) {
1009
1009
  if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
1010
- i.setContentType(void 0);
1010
+ o.setContentType(void 0);
1011
1011
  else if (p.isFunction(r.getHeaders)) {
1012
- const h = r.getHeaders(), c = ["content-type", "content-length"];
1013
- Object.entries(h).forEach(([u, y]) => {
1014
- c.includes(u.toLowerCase()) && i.set(u, y);
1012
+ const h = r.getHeaders(), d = ["content-type", "content-length"];
1013
+ Object.entries(h).forEach(([c, m]) => {
1014
+ d.includes(c.toLowerCase()) && o.set(c, m);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
1018
  if (ee.hasStandardBrowserEnv && (s && p.isFunction(s) && (s = s(e)), s || s !== !1 && Rn(e.url))) {
1019
- const h = a && o && In.read(o);
1020
- h && i.set(a, h);
1019
+ const h = a && i && In.read(i);
1020
+ h && o.set(a, h);
1021
1021
  }
1022
1022
  return e;
1023
1023
  }, An = typeof XMLHttpRequest < "u", zn = An && function(t) {
1024
1024
  return new Promise(function(r, s) {
1025
1025
  const a = tr(t);
1026
- let o = a.data;
1027
- const i = ne.from(a.headers).normalize();
1028
- let { responseType: l, onUploadProgress: h, onDownloadProgress: c } = a, u, y, b, w, d;
1026
+ let i = a.data;
1027
+ const o = ne.from(a.headers).normalize();
1028
+ let { responseType: l, onUploadProgress: h, onDownloadProgress: d } = a, c, m, b, w, u;
1029
1029
  function j() {
1030
- w && w(), d && d(), a.cancelToken && a.cancelToken.unsubscribe(u), a.signal && a.signal.removeEventListener("abort", u);
1030
+ w && w(), u && u(), a.cancelToken && a.cancelToken.unsubscribe(c), a.signal && a.signal.removeEventListener("abort", c);
1031
1031
  }
1032
- let m = new XMLHttpRequest();
1033
- m.open(a.method.toUpperCase(), a.url, !0), m.timeout = a.timeout;
1032
+ let y = new XMLHttpRequest();
1033
+ y.open(a.method.toUpperCase(), a.url, !0), y.timeout = a.timeout;
1034
1034
  function $() {
1035
- if (!m)
1035
+ if (!y)
1036
1036
  return;
1037
1037
  const z = ne.from(
1038
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
1038
+ "getAllResponseHeaders" in y && y.getAllResponseHeaders()
1039
1039
  ), q = {
1040
- data: !l || l === "text" || l === "json" ? m.responseText : m.response,
1041
- status: m.status,
1042
- statusText: m.statusText,
1040
+ data: !l || l === "text" || l === "json" ? y.responseText : y.response,
1041
+ status: y.status,
1042
+ statusText: y.statusText,
1043
1043
  headers: z,
1044
1044
  config: t,
1045
- request: m
1045
+ request: y
1046
1046
  };
1047
1047
  Qt(function(I) {
1048
1048
  r(I), j();
1049
1049
  }, function(I) {
1050
1050
  s(I), j();
1051
- }, q), m = null;
1051
+ }, q), y = null;
1052
1052
  }
1053
- "onloadend" in m ? m.onloadend = $ : m.onreadystatechange = function() {
1054
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout($);
1055
- }, m.onabort = function() {
1056
- m && (s(new L("Request aborted", L.ECONNABORTED, t, m)), m = null);
1057
- }, m.onerror = function(C) {
1058
- const q = C && C.message ? C.message : "Network Error", g = new L(q, L.ERR_NETWORK, t, m);
1059
- g.event = C || null, s(g), m = null;
1060
- }, m.ontimeout = function() {
1053
+ "onloadend" in y ? y.onloadend = $ : y.onreadystatechange = function() {
1054
+ !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout($);
1055
+ }, y.onabort = function() {
1056
+ y && (s(new L("Request aborted", L.ECONNABORTED, t, y)), y = null);
1057
+ }, y.onerror = function(C) {
1058
+ const q = C && C.message ? C.message : "Network Error", g = new L(q, L.ERR_NETWORK, t, y);
1059
+ g.event = C || null, s(g), y = null;
1060
+ }, y.ontimeout = function() {
1061
1061
  let C = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
1062
1062
  const q = a.transitional || Gt;
1063
1063
  a.timeoutErrorMessage && (C = a.timeoutErrorMessage), s(new L(
1064
1064
  C,
1065
1065
  q.clarifyTimeoutError ? L.ETIMEDOUT : L.ECONNABORTED,
1066
1066
  t,
1067
- m
1068
- )), m = null;
1069
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && p.forEach(i.toJSON(), function(C, q) {
1070
- m.setRequestHeader(q, C);
1071
- }), p.isUndefined(a.withCredentials) || (m.withCredentials = !!a.withCredentials), l && l !== "json" && (m.responseType = a.responseType), c && ([b, d] = De(c, !0), m.addEventListener("progress", b)), h && m.upload && ([y, w] = De(h), m.upload.addEventListener("progress", y), m.upload.addEventListener("loadend", w)), (a.cancelToken || a.signal) && (u = (z) => {
1072
- m && (s(!z || z.type ? new je(null, t, m) : z), m.abort(), m = null);
1073
- }, a.cancelToken && a.cancelToken.subscribe(u), a.signal && (a.signal.aborted ? u() : a.signal.addEventListener("abort", u)));
1067
+ y
1068
+ )), y = null;
1069
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in y && p.forEach(o.toJSON(), function(C, q) {
1070
+ y.setRequestHeader(q, C);
1071
+ }), p.isUndefined(a.withCredentials) || (y.withCredentials = !!a.withCredentials), l && l !== "json" && (y.responseType = a.responseType), d && ([b, u] = De(d, !0), y.addEventListener("progress", b)), h && y.upload && ([m, w] = De(h), y.upload.addEventListener("progress", m), y.upload.addEventListener("loadend", w)), (a.cancelToken || a.signal) && (c = (z) => {
1072
+ y && (s(!z || z.type ? new je(null, t, y) : z), y.abort(), y = null);
1073
+ }, a.cancelToken && a.cancelToken.subscribe(c), a.signal && (a.signal.aborted ? c() : a.signal.addEventListener("abort", c)));
1074
1074
  const R = En(a.url);
1075
1075
  if (R && ee.protocols.indexOf(R) === -1) {
1076
1076
  s(new L("Unsupported protocol " + R + ":", L.ERR_BAD_REQUEST, t));
1077
1077
  return;
1078
1078
  }
1079
- m.send(o || null);
1079
+ y.send(i || null);
1080
1080
  });
1081
1081
  }, $n = (t, e) => {
1082
1082
  const { length: r } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || r) {
1084
1084
  let s = new AbortController(), a;
1085
- const o = function(c) {
1085
+ const i = function(d) {
1086
1086
  if (!a) {
1087
1087
  a = !0, l();
1088
- const u = c instanceof Error ? c : this.reason;
1089
- s.abort(u instanceof L ? u : new je(u instanceof Error ? u.message : u));
1088
+ const c = d instanceof Error ? d : this.reason;
1089
+ s.abort(c instanceof L ? c : new je(c instanceof Error ? c.message : c));
1090
1090
  }
1091
1091
  };
1092
- let i = e && setTimeout(() => {
1093
- i = null, o(new L(`timeout ${e} of ms exceeded`, L.ETIMEDOUT));
1092
+ let o = e && setTimeout(() => {
1093
+ o = null, i(new L(`timeout ${e} of ms exceeded`, L.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const l = () => {
1096
- t && (i && clearTimeout(i), i = null, t.forEach((c) => {
1097
- c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
1096
+ t && (o && clearTimeout(o), o = null, t.forEach((d) => {
1097
+ d.unsubscribe ? d.unsubscribe(i) : d.removeEventListener("abort", i);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((c) => c.addEventListener("abort", o));
1100
+ t.forEach((d) => d.addEventListener("abort", i));
1101
1101
  const { signal: h } = s;
1102
1102
  return h.unsubscribe = () => p.asap(l), h;
1103
1103
  }
@@ -1131,25 +1131,25 @@ const tr = (t) => {
1131
1131
  }
1132
1132
  }, vt = (t, e, r, s) => {
1133
1133
  const a = Nn(t, e);
1134
- let o = 0, i, l = (h) => {
1135
- i || (i = !0, s && s(h));
1134
+ let i = 0, o, l = (h) => {
1135
+ o || (o = !0, s && s(h));
1136
1136
  };
1137
1137
  return new ReadableStream({
1138
1138
  async pull(h) {
1139
1139
  try {
1140
- const { done: c, value: u } = await a.next();
1141
- if (c) {
1140
+ const { done: d, value: c } = await a.next();
1141
+ if (d) {
1142
1142
  l(), h.close();
1143
1143
  return;
1144
1144
  }
1145
- let y = u.byteLength;
1145
+ let m = c.byteLength;
1146
1146
  if (r) {
1147
- let b = o += y;
1147
+ let b = i += m;
1148
1148
  r(b);
1149
1149
  }
1150
- h.enqueue(new Uint8Array(u));
1151
- } catch (c) {
1152
- throw l(c), c;
1150
+ h.enqueue(new Uint8Array(c));
1151
+ } catch (d) {
1152
+ throw l(d), d;
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(h) {
@@ -1174,52 +1174,52 @@ const tr = (t) => {
1174
1174
  t = p.merge.call({
1175
1175
  skipUndefined: !0
1176
1176
  }, Dn, t);
1177
- const { fetch: e, Request: r, Response: s } = t, a = e ? Oe(e) : typeof fetch == "function", o = Oe(r), i = Oe(s);
1177
+ const { fetch: e, Request: r, Response: s } = t, a = e ? Oe(e) : typeof fetch == "function", i = Oe(r), o = Oe(s);
1178
1178
  if (!a)
1179
1179
  return !1;
1180
- const l = a && Oe(Et), h = a && (typeof Ct == "function" ? /* @__PURE__ */ ((d) => (j) => d.encode(j))(new Ct()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), c = o && l && Tt(() => {
1181
- let d = !1;
1180
+ const l = a && Oe(Et), h = a && (typeof Ct == "function" ? /* @__PURE__ */ ((u) => (j) => u.encode(j))(new Ct()) : async (u) => new Uint8Array(await new r(u).arrayBuffer())), d = i && l && Tt(() => {
1181
+ let u = !1;
1182
1182
  const j = new r(ee.origin, {
1183
1183
  body: new Et(),
1184
1184
  method: "POST",
1185
1185
  get duplex() {
1186
- return d = !0, "half";
1186
+ return u = !0, "half";
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
- return d && !j;
1190
- }), u = i && l && Tt(() => p.isReadableStream(new s("").body)), y = {
1191
- stream: u && ((d) => d.body)
1189
+ return u && !j;
1190
+ }), c = o && l && Tt(() => p.isReadableStream(new s("").body)), m = {
1191
+ stream: c && ((u) => u.body)
1192
1192
  };
1193
- a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1194
- !y[d] && (y[d] = (j, m) => {
1195
- let $ = j && j[d];
1193
+ a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1194
+ !m[u] && (m[u] = (j, y) => {
1195
+ let $ = j && j[u];
1196
1196
  if ($)
1197
1197
  return $.call(j);
1198
- throw new L(`Response type '${d}' is not supported`, L.ERR_NOT_SUPPORT, m);
1198
+ throw new L(`Response type '${u}' is not supported`, L.ERR_NOT_SUPPORT, y);
1199
1199
  });
1200
1200
  });
1201
- const b = async (d) => {
1202
- if (d == null)
1201
+ const b = async (u) => {
1202
+ if (u == null)
1203
1203
  return 0;
1204
- if (p.isBlob(d))
1205
- return d.size;
1206
- if (p.isSpecCompliantForm(d))
1204
+ if (p.isBlob(u))
1205
+ return u.size;
1206
+ if (p.isSpecCompliantForm(u))
1207
1207
  return (await new r(ee.origin, {
1208
1208
  method: "POST",
1209
- body: d
1209
+ body: u
1210
1210
  }).arrayBuffer()).byteLength;
1211
- if (p.isArrayBufferView(d) || p.isArrayBuffer(d))
1212
- return d.byteLength;
1213
- if (p.isURLSearchParams(d) && (d = d + ""), p.isString(d))
1214
- return (await h(d)).byteLength;
1215
- }, w = async (d, j) => {
1216
- const m = p.toFiniteNumber(d.getContentLength());
1217
- return m ?? b(j);
1211
+ if (p.isArrayBufferView(u) || p.isArrayBuffer(u))
1212
+ return u.byteLength;
1213
+ if (p.isURLSearchParams(u) && (u = u + ""), p.isString(u))
1214
+ return (await h(u)).byteLength;
1215
+ }, w = async (u, j) => {
1216
+ const y = p.toFiniteNumber(u.getContentLength());
1217
+ return y ?? b(j);
1218
1218
  };
1219
- return async (d) => {
1219
+ return async (u) => {
1220
1220
  let {
1221
1221
  url: j,
1222
- method: m,
1222
+ method: y,
1223
1223
  data: $,
1224
1224
  signal: R,
1225
1225
  cancelToken: z,
@@ -1230,7 +1230,7 @@ const tr = (t) => {
1230
1230
  headers: S,
1231
1231
  withCredentials: U = "same-origin",
1232
1232
  fetchOptions: W
1233
- } = tr(d), F = e || fetch;
1233
+ } = tr(u), F = e || fetch;
1234
1234
  I = I ? (I + "").toLowerCase() : "text";
1235
1235
  let V = $n([R, z && z.toAbortSignal()], C), Z = null;
1236
1236
  const T = V && V.unsubscribe && (() => {
@@ -1238,7 +1238,7 @@ const tr = (t) => {
1238
1238
  });
1239
1239
  let J;
1240
1240
  try {
1241
- if (g && c && m !== "get" && m !== "head" && (J = await w(S, $)) !== 0) {
1241
+ if (g && d && y !== "get" && y !== "head" && (J = await w(S, $)) !== 0) {
1242
1242
  let f = new r(j, {
1243
1243
  method: "POST",
1244
1244
  body: $,
@@ -1253,19 +1253,19 @@ const tr = (t) => {
1253
1253
  }
1254
1254
  }
1255
1255
  p.isString(U) || (U = U ? "include" : "omit");
1256
- const A = o && "credentials" in r.prototype, O = {
1256
+ const A = i && "credentials" in r.prototype, O = {
1257
1257
  ...W,
1258
1258
  signal: V,
1259
- method: m.toUpperCase(),
1259
+ method: y.toUpperCase(),
1260
1260
  headers: S.normalize().toJSON(),
1261
1261
  body: $,
1262
1262
  duplex: "half",
1263
1263
  credentials: A ? U : void 0
1264
1264
  };
1265
- Z = o && new r(j, O);
1266
- let K = await (o ? F(Z, W) : F(j, O));
1267
- const Q = u && (I === "stream" || I === "response");
1268
- if (u && (q || Q && T)) {
1265
+ Z = i && new r(j, O);
1266
+ let K = await (i ? F(Z, W) : F(j, O));
1267
+ const Q = c && (I === "stream" || I === "response");
1268
+ if (c && (q || Q && T)) {
1269
1269
  const f = {};
1270
1270
  ["status", "statusText", "headers"].forEach((_) => {
1271
1271
  f[_] = K[_];
@@ -1282,37 +1282,37 @@ const tr = (t) => {
1282
1282
  );
1283
1283
  }
1284
1284
  I = I || "text";
1285
- let G = await y[p.findKey(y, I) || "text"](K, d);
1285
+ let G = await m[p.findKey(m, I) || "text"](K, u);
1286
1286
  return !Q && T && T(), await new Promise((f, v) => {
1287
1287
  Qt(f, v, {
1288
1288
  data: G,
1289
1289
  headers: ne.from(K.headers),
1290
1290
  status: K.status,
1291
1291
  statusText: K.statusText,
1292
- config: d,
1292
+ config: u,
1293
1293
  request: Z
1294
1294
  });
1295
1295
  });
1296
1296
  } catch (A) {
1297
1297
  throw T && T(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
1298
- new L("Network Error", L.ERR_NETWORK, d, Z),
1298
+ new L("Network Error", L.ERR_NETWORK, u, Z),
1299
1299
  {
1300
1300
  cause: A.cause || A
1301
1301
  }
1302
- ) : L.from(A, A && A.code, d, Z);
1302
+ ) : L.from(A, A && A.code, u, Z);
1303
1303
  }
1304
1304
  };
1305
1305
  }, Fn = /* @__PURE__ */ new Map(), rr = (t) => {
1306
1306
  let e = t ? t.env : {};
1307
- const { fetch: r, Request: s, Response: a } = e, o = [
1307
+ const { fetch: r, Request: s, Response: a } = e, i = [
1308
1308
  s,
1309
1309
  a,
1310
1310
  r
1311
1311
  ];
1312
- let i = o.length, l = i, h, c, u = Fn;
1312
+ let o = i.length, l = o, h, d, c = Fn;
1313
1313
  for (; l--; )
1314
- h = o[l], c = u.get(h), c === void 0 && u.set(h, c = l ? /* @__PURE__ */ new Map() : Ln(e)), u = c;
1315
- return c;
1314
+ h = i[l], d = c.get(h), d === void 0 && c.set(h, d = l ? /* @__PURE__ */ new Map() : Ln(e)), c = d;
1315
+ return d;
1316
1316
  };
1317
1317
  rr();
1318
1318
  const tt = {
@@ -1336,23 +1336,23 @@ const Rt = (t) => `- ${t}`, qn = (t) => p.isFunction(t) || t === null || t === !
1336
1336
  t = p.isArray(t) ? t : [t];
1337
1337
  const { length: r } = t;
1338
1338
  let s, a;
1339
- const o = {};
1340
- for (let i = 0; i < r; i++) {
1341
- s = t[i];
1339
+ const i = {};
1340
+ for (let o = 0; o < r; o++) {
1341
+ s = t[o];
1342
1342
  let l;
1343
1343
  if (a = s, !qn(s) && (a = tt[(l = String(s)).toLowerCase()], a === void 0))
1344
1344
  throw new L(`Unknown adapter '${l}'`);
1345
1345
  if (a && (p.isFunction(a) || (a = a.get(e))))
1346
1346
  break;
1347
- o[l || "#" + i] = a;
1347
+ i[l || "#" + o] = a;
1348
1348
  }
1349
1349
  if (!a) {
1350
- const i = Object.entries(o).map(
1351
- ([h, c]) => `adapter ${h} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1350
+ const o = Object.entries(i).map(
1351
+ ([h, d]) => `adapter ${h} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
- let l = r ? i.length > 1 ? `since :
1354
- ` + i.map(Rt).join(`
1355
- `) : " " + Rt(i[0]) : "as no adapter specified";
1353
+ let l = r ? o.length > 1 ? `since :
1354
+ ` + o.map(Rt).join(`
1355
+ `) : " " + Rt(o[0]) : "as no adapter specified";
1356
1356
  throw new L(
1357
1357
  "There is no suitable adapter to dispatch the request " + l,
1358
1358
  "ERR_NOT_SUPPORT"
@@ -1392,21 +1392,21 @@ const sr = "1.12.2", Be = {};
1392
1392
  });
1393
1393
  const Pt = {};
1394
1394
  Be.transitional = function(e, r, s) {
1395
- function a(o, i) {
1396
- return "[Axios v" + sr + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
1395
+ function a(i, o) {
1396
+ return "[Axios v" + sr + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1397
1397
  }
1398
- return (o, i, l) => {
1398
+ return (i, o, l) => {
1399
1399
  if (e === !1)
1400
1400
  throw new L(
1401
- a(i, " has been removed" + (r ? " in " + r : "")),
1401
+ a(o, " has been removed" + (r ? " in " + r : "")),
1402
1402
  L.ERR_DEPRECATED
1403
1403
  );
1404
- return r && !Pt[i] && (Pt[i] = !0, console.warn(
1404
+ return r && !Pt[o] && (Pt[o] = !0, console.warn(
1405
1405
  a(
1406
- i,
1406
+ o,
1407
1407
  " has been deprecated since v" + r + " and will be removed in the near future"
1408
1408
  )
1409
- )), e ? e(o, i, l) : !0;
1409
+ )), e ? e(i, o, l) : !0;
1410
1410
  };
1411
1411
  };
1412
1412
  Be.spelling = function(e) {
@@ -1418,21 +1418,21 @@ function Mn(t, e, r) {
1418
1418
  const s = Object.keys(t);
1419
1419
  let a = s.length;
1420
1420
  for (; a-- > 0; ) {
1421
- const o = s[a], i = e[o];
1422
- if (i) {
1423
- const l = t[o], h = l === void 0 || i(l, o, t);
1421
+ const i = s[a], o = e[i];
1422
+ if (o) {
1423
+ const l = t[i], h = l === void 0 || o(l, i, t);
1424
1424
  if (h !== !0)
1425
- throw new L("option " + o + " must be " + h, L.ERR_BAD_OPTION_VALUE);
1425
+ throw new L("option " + i + " must be " + h, L.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
1427
1427
  }
1428
1428
  if (r !== !0)
1429
- throw new L("Unknown option " + o, L.ERR_BAD_OPTION);
1429
+ throw new L("Unknown option " + i, L.ERR_BAD_OPTION);
1430
1430
  }
1431
1431
  }
1432
1432
  const _e = {
1433
1433
  assertOptions: Mn,
1434
1434
  validators: Be
1435
- }, oe = _e.validators;
1435
+ }, ie = _e.validators;
1436
1436
  let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
@@ -1455,10 +1455,10 @@ let xe = class {
1455
1455
  if (s instanceof Error) {
1456
1456
  let a = {};
1457
1457
  Error.captureStackTrace ? Error.captureStackTrace(a) : a = new Error();
1458
- const o = a.stack ? a.stack.replace(/^.+\n/, "") : "";
1458
+ const i = a.stack ? a.stack.replace(/^.+\n/, "") : "";
1459
1459
  try {
1460
- s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
- ` + o) : s.stack = o;
1460
+ s.stack ? i && !String(s.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
+ ` + i) : s.stack = i;
1462
1462
  } catch {
1463
1463
  }
1464
1464
  }
@@ -1467,65 +1467,65 @@ let xe = class {
1467
1467
  }
1468
1468
  _request(e, r) {
1469
1469
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
1470
- const { transitional: s, paramsSerializer: a, headers: o } = r;
1470
+ const { transitional: s, paramsSerializer: a, headers: i } = r;
1471
1471
  s !== void 0 && _e.assertOptions(s, {
1472
- silentJSONParsing: oe.transitional(oe.boolean),
1473
- forcedJSONParsing: oe.transitional(oe.boolean),
1474
- clarifyTimeoutError: oe.transitional(oe.boolean)
1472
+ silentJSONParsing: ie.transitional(ie.boolean),
1473
+ forcedJSONParsing: ie.transitional(ie.boolean),
1474
+ clarifyTimeoutError: ie.transitional(ie.boolean)
1475
1475
  }, !1), a != null && (p.isFunction(a) ? r.paramsSerializer = {
1476
1476
  serialize: a
1477
1477
  } : _e.assertOptions(a, {
1478
- encode: oe.function,
1479
- serialize: oe.function
1478
+ encode: ie.function,
1479
+ serialize: ie.function
1480
1480
  }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), _e.assertOptions(r, {
1481
- baseUrl: oe.spelling("baseURL"),
1482
- withXsrfToken: oe.spelling("withXSRFToken")
1481
+ baseUrl: ie.spelling("baseURL"),
1482
+ withXsrfToken: ie.spelling("withXSRFToken")
1483
1483
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1484
- let i = o && p.merge(
1485
- o.common,
1486
- o[r.method]
1484
+ let o = i && p.merge(
1485
+ i.common,
1486
+ i[r.method]
1487
1487
  );
1488
- o && p.forEach(
1488
+ i && p.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
- (d) => {
1491
- delete o[d];
1490
+ (u) => {
1491
+ delete i[u];
1492
1492
  }
1493
- ), r.headers = ne.concat(i, o);
1493
+ ), r.headers = ne.concat(o, i);
1494
1494
  const l = [];
1495
1495
  let h = !0;
1496
1496
  this.interceptors.request.forEach(function(j) {
1497
1497
  typeof j.runWhen == "function" && j.runWhen(r) === !1 || (h = h && j.synchronous, l.unshift(j.fulfilled, j.rejected));
1498
1498
  });
1499
- const c = [];
1499
+ const d = [];
1500
1500
  this.interceptors.response.forEach(function(j) {
1501
- c.push(j.fulfilled, j.rejected);
1501
+ d.push(j.fulfilled, j.rejected);
1502
1502
  });
1503
- let u, y = 0, b;
1503
+ let c, m = 0, b;
1504
1504
  if (!h) {
1505
- const d = [It.bind(this), void 0];
1506
- for (d.unshift(...l), d.push(...c), b = d.length, u = Promise.resolve(r); y < b; )
1507
- u = u.then(d[y++], d[y++]);
1508
- return u;
1505
+ const u = [It.bind(this), void 0];
1506
+ for (u.unshift(...l), u.push(...d), b = u.length, c = Promise.resolve(r); m < b; )
1507
+ c = c.then(u[m++], u[m++]);
1508
+ return c;
1509
1509
  }
1510
1510
  b = l.length;
1511
1511
  let w = r;
1512
- for (; y < b; ) {
1513
- const d = l[y++], j = l[y++];
1512
+ for (; m < b; ) {
1513
+ const u = l[m++], j = l[m++];
1514
1514
  try {
1515
- w = d(w);
1516
- } catch (m) {
1517
- j.call(this, m);
1515
+ w = u(w);
1516
+ } catch (y) {
1517
+ j.call(this, y);
1518
1518
  break;
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- u = It.call(this, w);
1523
- } catch (d) {
1524
- return Promise.reject(d);
1522
+ c = It.call(this, w);
1523
+ } catch (u) {
1524
+ return Promise.reject(u);
1525
1525
  }
1526
- for (y = 0, b = c.length; y < b; )
1527
- u = u.then(c[y++], c[y++]);
1528
- return u;
1526
+ for (m = 0, b = d.length; m < b; )
1527
+ c = c.then(d[m++], d[m++]);
1528
+ return c;
1529
1529
  }
1530
1530
  getUri(e) {
1531
1531
  e = he(this.defaults, e);
@@ -1544,14 +1544,14 @@ p.forEach(["delete", "get", "head", "options"], function(e) {
1544
1544
  });
1545
1545
  p.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function r(s) {
1547
- return function(o, i, l) {
1547
+ return function(i, o, l) {
1548
1548
  return this.request(he(l || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
1552
1552
  } : {},
1553
- url: o,
1554
- data: i
1553
+ url: i,
1554
+ data: o
1555
1555
  }));
1556
1556
  };
1557
1557
  }
@@ -1562,26 +1562,26 @@ let Wn = class ar {
1562
1562
  if (typeof e != "function")
1563
1563
  throw new TypeError("executor must be a function.");
1564
1564
  let r;
1565
- this.promise = new Promise(function(o) {
1566
- r = o;
1565
+ this.promise = new Promise(function(i) {
1566
+ r = i;
1567
1567
  });
1568
1568
  const s = this;
1569
1569
  this.promise.then((a) => {
1570
1570
  if (!s._listeners) return;
1571
- let o = s._listeners.length;
1572
- for (; o-- > 0; )
1573
- s._listeners[o](a);
1571
+ let i = s._listeners.length;
1572
+ for (; i-- > 0; )
1573
+ s._listeners[i](a);
1574
1574
  s._listeners = null;
1575
1575
  }), this.promise.then = (a) => {
1576
- let o;
1577
- const i = new Promise((l) => {
1578
- s.subscribe(l), o = l;
1576
+ let i;
1577
+ const o = new Promise((l) => {
1578
+ s.subscribe(l), i = l;
1579
1579
  }).then(a);
1580
- return i.cancel = function() {
1581
- s.unsubscribe(o);
1582
- }, i;
1583
- }, e(function(o, i, l) {
1584
- s.reason || (s.reason = new je(o, i, l), r(s.reason));
1580
+ return o.cancel = function() {
1581
+ s.unsubscribe(i);
1582
+ }, o;
1583
+ }, e(function(i, o, l) {
1584
+ s.reason || (s.reason = new je(i, o, l), r(s.reason));
1585
1585
  });
1586
1586
  }
1587
1587
  /**
@@ -1706,13 +1706,13 @@ const rt = {
1706
1706
  Object.entries(rt).forEach(([t, e]) => {
1707
1707
  rt[e] = t;
1708
1708
  });
1709
- function ir(t) {
1709
+ function or(t) {
1710
1710
  const e = new xe(t), r = Ut(xe.prototype.request, e);
1711
1711
  return p.extend(r, xe.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(a) {
1712
- return ir(he(t, a));
1712
+ return or(he(t, a));
1713
1713
  }, r;
1714
1714
  }
1715
- const M = ir(Ie);
1715
+ const M = or(Ie);
1716
1716
  M.Axios = xe;
1717
1717
  M.CanceledError = je;
1718
1718
  M.CancelToken = Wn;
@@ -1741,11 +1741,11 @@ const {
1741
1741
  VERSION: na,
1742
1742
  all: sa,
1743
1743
  Cancel: aa,
1744
- isAxiosError: ia,
1745
- spread: oa,
1744
+ isAxiosError: oa,
1745
+ spread: ia,
1746
1746
  toFormData: la,
1747
- AxiosHeaders: da,
1748
- HttpStatusCode: ca,
1747
+ AxiosHeaders: ca,
1748
+ HttpStatusCode: da,
1749
1749
  formToJSON: ua,
1750
1750
  getAdapter: pa,
1751
1751
  mergeConfig: fa
@@ -1782,25 +1782,24 @@ class xa {
1782
1782
  * @param extraHeaders Optional custom headers
1783
1783
  */
1784
1784
  async request(e, r, s, a = {}) {
1785
- if (!e) throw new Error("HTTP method is required");
1786
- if (!r) throw new Error("Request path is required");
1787
1785
  try {
1788
- const o = {
1786
+ const i = {
1789
1787
  ...this.appId ? { appId: this.appId } : {},
1790
1788
  ...s || {}
1791
1789
  };
1792
1790
  return (await this.client.request({
1793
1791
  url: r,
1794
1792
  method: e,
1795
- data: o,
1793
+ data: i,
1796
1794
  headers: a
1797
1795
  })).data;
1798
- } catch (o) {
1799
- if (console.error("❌ [Request Error]:", o), o.isAxiosError) {
1800
- const i = o.response?.status || 0, l = o.response?.data?.message || o.message || "Unknown Axios error occurred";
1801
- throw new Error(`Request failed (${i}): ${l}`);
1802
- }
1803
- throw new Error(`Unexpected error: ${o.message || "Unknown failure"}`);
1796
+ } catch (i) {
1797
+ throw M.isAxiosError(i) ? {
1798
+ message: i.response?.data?.message || i.message || "Request failed",
1799
+ status: i.response?.status ?? 0
1800
+ } : {
1801
+ message: i.message || "Unexpected error occurred"
1802
+ };
1804
1803
  }
1805
1804
  }
1806
1805
  // ================= USERS =================
@@ -1808,7 +1807,7 @@ class xa {
1808
1807
  * Register a new user
1809
1808
  * @param params user details
1810
1809
  */
1811
- async signup(e) {
1810
+ async signupUser(e) {
1812
1811
  const { name: r, email: s, password: a } = e;
1813
1812
  if (!r || !s || !a)
1814
1813
  throw new Error("signup: 'name', 'email', and 'password' are required");
@@ -1818,47 +1817,25 @@ class xa {
1818
1817
  * Login a user
1819
1818
  * @param params login details
1820
1819
  */
1821
- async login(e) {
1822
- const { email: r, password: s, appId: a } = e;
1820
+ async loginUser(e) {
1821
+ const { email: r, password: s } = e;
1823
1822
  if (!r || !s)
1824
1823
  throw new Error("login: 'email' and 'password' are required");
1825
- return this.request("POST", "/users/login", {
1826
- email: r,
1827
- password: s,
1828
- appId: a || this.appId
1829
- });
1830
- }
1831
- /**
1832
- * 🔐 Check current authentication session (cookie-based)
1833
- * Automatically detects logged-in / logged-out state
1834
- */
1835
- async checkSession() {
1836
- if (typeof window > "u")
1837
- return { authenticated: !1 };
1838
1824
  try {
1839
- return await this.request("GET", "/users/session");
1840
- } catch {
1841
- return { authenticated: !1 };
1825
+ return await this.request("POST", "/users/login", {
1826
+ email: r,
1827
+ password: s
1828
+ });
1829
+ } catch (a) {
1830
+ throw new Error(a.message || "Login failed due to an unknown error");
1842
1831
  }
1843
1832
  }
1844
- /**
1845
- * Update an existing user
1846
- * @param params fields to update
1847
- */
1848
- async updateUser(e) {
1849
- const { userId: r, appId: s } = e;
1850
- if (!r) throw new Error("updateUser: 'userId' is required");
1851
- return this.request("PUT", `/users/update/${r}`, {
1852
- ...e,
1853
- appId: s || this.appId
1854
- });
1855
- }
1856
1833
  /**
1857
1834
  * Change a user's password (Admin only)
1858
1835
  * @param params requires userId, currentPassword, newPassword
1859
1836
  */
1860
1837
  async changePassword(e) {
1861
- const { userId: r, currentPassword: s, newPassword: a, appId: o } = e;
1838
+ const { userId: r, currentPassword: s, newPassword: a } = e;
1862
1839
  if (!r) throw new Error("changePassword: 'userId' is required");
1863
1840
  if (!s || !a)
1864
1841
  throw new Error(
@@ -1866,47 +1843,20 @@ class xa {
1866
1843
  );
1867
1844
  return this.request("PUT", `/users/change-password/${r}`, {
1868
1845
  currentPassword: s,
1869
- newPassword: a,
1870
- appId: o || this.appId
1871
- });
1872
- }
1873
- /**
1874
- * Delete a user
1875
- * @param params requires userId and optionally appId
1876
- */
1877
- async deleteUser(e) {
1878
- const { userId: r, appId: s } = e;
1879
- if (!r) throw new Error("deleteUser: 'userId' is required");
1880
- return this.request("DELETE", `/users/delete/${r}`, {
1881
- appId: s || this.appId
1846
+ newPassword: a
1882
1847
  });
1883
1848
  }
1884
- /**
1885
- * Get the profile of the authenticated user
1886
- * @param params requires JWT token
1887
- */
1888
- async getProfile(e) {
1889
- const { token: r } = e;
1890
- if (!r) throw new Error("getProfile: 'token' is required");
1891
- return this.request(
1892
- "GET",
1893
- "/users/profile",
1894
- {},
1895
- { Authorization: `Bearer ${r}` }
1896
- );
1897
- }
1898
- // ================= USERS SECURITY =================
1899
1849
  /**
1900
1850
  * Send verification OTP (requires logged-in user token)
1901
1851
  * @param params requires token
1902
1852
  */
1903
1853
  async sendVerifyOTP(e) {
1904
- const { token: r, appId: s } = e;
1854
+ const { token: r } = e;
1905
1855
  if (!r) throw new Error("sendVerifyOTP: 'token' is required");
1906
1856
  return this.request(
1907
1857
  "POST",
1908
1858
  "/users/send-verify-otp",
1909
- { appId: s || this.appId },
1859
+ {},
1910
1860
  { Authorization: `Bearer ${r}` }
1911
1861
  );
1912
1862
  }
@@ -1925,24 +1875,79 @@ class xa {
1925
1875
  { Authorization: `Bearer ${r}` }
1926
1876
  );
1927
1877
  }
1878
+ /**
1879
+ * 🔐 Check current authentication session (cookie-based)
1880
+ * Automatically detects logged-in / logged-out state
1881
+ */
1882
+ async checkUserSession() {
1883
+ if (typeof window > "u")
1884
+ return { authenticated: !1 };
1885
+ try {
1886
+ return await this.request("GET", "/users/session");
1887
+ } catch {
1888
+ return { authenticated: !1 };
1889
+ }
1890
+ }
1891
+ /**
1892
+ * Update an existing user
1893
+ * @param params fields to update
1894
+ */
1895
+ async updateUser(e) {
1896
+ const { userId: r, appId: s } = e;
1897
+ if (!r) throw new Error("updateUser: 'userId' is required");
1898
+ return this.request("PUT", `/users/update/${r}`, {
1899
+ ...e,
1900
+ appId: s || this.appId
1901
+ });
1902
+ }
1903
+ /**
1904
+ * Delete a user
1905
+ * @param params requires userId and optionally appId
1906
+ */
1907
+ async deleteUser(e) {
1908
+ const { userId: r, appId: s } = e;
1909
+ if (!r) throw new Error("deleteUser: 'userId' is required");
1910
+ return this.request("DELETE", `/users/delete/${r}`, {
1911
+ appId: s || this.appId
1912
+ });
1913
+ }
1914
+ /**
1915
+ * Get the profile of a user for a specific app
1916
+ * @param params requires userId and appId
1917
+ */
1918
+ async getProfile(e) {
1919
+ const { userId: r } = e;
1920
+ if (!r)
1921
+ throw new Error("getProfile: 'userId' and 'appId' are required");
1922
+ try {
1923
+ return await this.request("POST", "/users/profile", {
1924
+ userId: r
1925
+ });
1926
+ } catch (s) {
1927
+ throw {
1928
+ message: s.message || "Failed to fetch profile",
1929
+ status: s.status || 500
1930
+ };
1931
+ }
1932
+ }
1933
+ // ================= USERS SECURITY =================
1928
1934
  /**
1929
1935
  * Forgot password (public route)
1930
1936
  * @param params requires email
1931
1937
  */
1932
- async forgotPassword(e) {
1933
- const { email: r, appId: s } = e;
1938
+ async requestPasswordReset(e) {
1939
+ const { email: r } = e;
1934
1940
  if (!r) throw new Error("forgotPassword: 'email' is required");
1935
1941
  return this.request("POST", "/users/forgot-password", {
1936
- email: r,
1937
- appId: s || this.appId
1942
+ email: r
1938
1943
  });
1939
1944
  }
1940
1945
  /**
1941
1946
  * Reset password (public route)
1942
1947
  * @param params requires email, otp, newPassword
1943
1948
  */
1944
- async resetPassword(e) {
1945
- const { email: r, otp: s, newPassword: a, appId: o } = e;
1949
+ async resetUserPassword(e) {
1950
+ const { email: r, otp: s, newPassword: a } = e;
1946
1951
  if (!r || !s || !a)
1947
1952
  throw new Error(
1948
1953
  "resetPassword: 'email', 'otp' and 'newPassword' are required"
@@ -1950,8 +1955,7 @@ class xa {
1950
1955
  return this.request("POST", "/users/reset-password", {
1951
1956
  email: r,
1952
1957
  otp: s,
1953
- newPassword: a,
1954
- appId: o || this.appId
1958
+ newPassword: a
1955
1959
  });
1956
1960
  }
1957
1961
  /**
@@ -1959,11 +1963,9 @@ class xa {
1959
1963
  * @param userId user id to check
1960
1964
  * @returns { exists: boolean }
1961
1965
  */
1962
- async checkUser(e) {
1966
+ async checkIfUserExists(e) {
1963
1967
  if (!e)
1964
1968
  throw new Error("checkUser: 'userId' is required");
1965
- if (!this.appId)
1966
- throw new Error("checkUser: SDK 'appId' is missing in config");
1967
1969
  return this.request(
1968
1970
  "GET",
1969
1971
  `/users/check-user/${e}?appId=${this.appId}`
@@ -1998,7 +2000,7 @@ class xa {
1998
2000
  throw new Error("searchUserDataByKeys: 'userId' is required");
1999
2001
  const a = new URLSearchParams(
2000
2002
  Object.entries(s).reduce(
2001
- (o, [i, l]) => (l != null && (o[i] = String(l)), o),
2003
+ (i, [o, l]) => (l != null && (i[o] = String(l)), i),
2002
2004
  {}
2003
2005
  )
2004
2006
  ).toString();
@@ -2023,7 +2025,7 @@ class xa {
2023
2025
  );
2024
2026
  const s = new URLSearchParams(
2025
2027
  Object.entries(e).reduce(
2026
- (a, [o, i]) => (i != null && (a[o] = String(i)), a),
2028
+ (a, [i, o]) => (o != null && (a[i] = String(o)), a),
2027
2029
  {}
2028
2030
  )
2029
2031
  ).toString();
@@ -2210,19 +2212,19 @@ function Vn() {
2210
2212
  if (Ot) return ke;
2211
2213
  Ot = 1;
2212
2214
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2213
- function r(s, a, o) {
2214
- var i = null;
2215
- if (o !== void 0 && (i = "" + o), a.key !== void 0 && (i = "" + a.key), "key" in a) {
2216
- o = {};
2215
+ function r(s, a, i) {
2216
+ var o = null;
2217
+ if (i !== void 0 && (o = "" + i), a.key !== void 0 && (o = "" + a.key), "key" in a) {
2218
+ i = {};
2217
2219
  for (var l in a)
2218
- l !== "key" && (o[l] = a[l]);
2219
- } else o = a;
2220
- return a = o.ref, {
2220
+ l !== "key" && (i[l] = a[l]);
2221
+ } else i = a;
2222
+ return a = i.ref, {
2221
2223
  $$typeof: t,
2222
2224
  type: s,
2223
- key: i,
2225
+ key: o,
2224
2226
  ref: a !== void 0 ? a : null,
2225
- props: o
2227
+ props: i
2226
2228
  };
2227
2229
  }
2228
2230
  return ke.Fragment = e, ke.jsx = r, ke.jsxs = r, ke;
@@ -2246,7 +2248,7 @@ function Yn() {
2246
2248
  return f.$$typeof === F ? null : f.displayName || f.name || null;
2247
2249
  if (typeof f == "string") return f;
2248
2250
  switch (f) {
2249
- case m:
2251
+ case y:
2250
2252
  return "Fragment";
2251
2253
  case R:
2252
2254
  return "Profiler";
@@ -2304,7 +2306,7 @@ function Yn() {
2304
2306
  }
2305
2307
  }
2306
2308
  function s(f) {
2307
- if (f === m) return "<>";
2309
+ if (f === y) return "<>";
2308
2310
  if (typeof f == "object" && f !== null && f.$$typeof === U)
2309
2311
  return "<...>";
2310
2312
  try {
@@ -2318,10 +2320,10 @@ function Yn() {
2318
2320
  var f = V.A;
2319
2321
  return f === null ? null : f.getOwner();
2320
2322
  }
2321
- function o() {
2323
+ function i() {
2322
2324
  return Error("react-stack-top-frame");
2323
2325
  }
2324
- function i(f) {
2326
+ function o(f) {
2325
2327
  if (Z.call(f, "key")) {
2326
2328
  var v = Object.getOwnPropertyDescriptor(f, "key").get;
2327
2329
  if (v && v.isReactWarning) return !1;
@@ -2346,10 +2348,10 @@ function Yn() {
2346
2348
  "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."
2347
2349
  )), f = this.props.ref, f !== void 0 ? f : null;
2348
2350
  }
2349
- function c(f, v, x, k, _, N) {
2351
+ function d(f, v, x, k, _, N) {
2350
2352
  var Y = x.ref;
2351
2353
  return f = {
2352
- $$typeof: d,
2354
+ $$typeof: u,
2353
2355
  type: f,
2354
2356
  key: v,
2355
2357
  props: x,
@@ -2379,19 +2381,19 @@ function Yn() {
2379
2381
  value: N
2380
2382
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
2381
2383
  }
2382
- function u(f, v, x, k, _, N) {
2384
+ function c(f, v, x, k, _, N) {
2383
2385
  var Y = v.children;
2384
2386
  if (Y !== void 0)
2385
2387
  if (k)
2386
2388
  if (T(Y)) {
2387
2389
  for (k = 0; k < Y.length; k++)
2388
- y(Y[k]);
2390
+ m(Y[k]);
2389
2391
  Object.freeze && Object.freeze(Y);
2390
2392
  } else
2391
2393
  console.error(
2392
2394
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2393
2395
  );
2394
- else y(Y);
2396
+ else m(Y);
2395
2397
  if (Z.call(v, "key")) {
2396
2398
  Y = t(f);
2397
2399
  var se = Object.keys(v).filter(function(Se) {
@@ -2410,7 +2412,7 @@ React keys must be passed directly to JSX without using spread:
2410
2412
  Y
2411
2413
  ), G[Y + k] = !0);
2412
2414
  }
2413
- if (Y = null, x !== void 0 && (r(x), Y = "" + x), i(v) && (r(v.key), Y = "" + v.key), "key" in v) {
2415
+ if (Y = null, x !== void 0 && (r(x), Y = "" + x), o(v) && (r(v.key), Y = "" + v.key), "key" in v) {
2414
2416
  x = {};
2415
2417
  for (var ue in v)
2416
2418
  ue !== "key" && (x[ue] = v[ue]);
@@ -2418,7 +2420,7 @@ React keys must be passed directly to JSX without using spread:
2418
2420
  return Y && l(
2419
2421
  x,
2420
2422
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
2421
- ), c(
2423
+ ), d(
2422
2424
  f,
2423
2425
  Y,
2424
2426
  x,
@@ -2427,13 +2429,13 @@ React keys must be passed directly to JSX without using spread:
2427
2429
  N
2428
2430
  );
2429
2431
  }
2430
- function y(f) {
2432
+ function m(f) {
2431
2433
  b(f) ? f._store && (f._store.validated = 1) : typeof f == "object" && f !== null && f.$$typeof === U && (f._payload.status === "fulfilled" ? b(f._payload.value) && f._payload.value._store && (f._payload.value._store.validated = 1) : f._store && (f._store.validated = 1));
2432
2434
  }
2433
2435
  function b(f) {
2434
- return typeof f == "object" && f !== null && f.$$typeof === d;
2436
+ return typeof f == "object" && f !== null && f.$$typeof === u;
2435
2437
  }
2436
- var w = Le, d = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), C = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, T = Array.isArray, J = console.createTask ? console.createTask : function() {
2438
+ var w = Le, u = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), C = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, T = Array.isArray, J = console.createTask ? console.createTask : function() {
2437
2439
  return null;
2438
2440
  };
2439
2441
  w = {
@@ -2443,11 +2445,11 @@ React keys must be passed directly to JSX without using spread:
2443
2445
  };
2444
2446
  var A, O = {}, K = w.react_stack_bottom_frame.bind(
2445
2447
  w,
2446
- o
2447
- )(), Q = J(s(o)), G = {};
2448
- Ee.Fragment = m, Ee.jsx = function(f, v, x) {
2448
+ i
2449
+ )(), Q = J(s(i)), G = {};
2450
+ Ee.Fragment = y, Ee.jsx = function(f, v, x) {
2449
2451
  var k = 1e4 > V.recentlyCreatedOwnerStacks++;
2450
- return u(
2452
+ return c(
2451
2453
  f,
2452
2454
  v,
2453
2455
  x,
@@ -2457,7 +2459,7 @@ React keys must be passed directly to JSX without using spread:
2457
2459
  );
2458
2460
  }, Ee.jsxs = function(f, v, x) {
2459
2461
  var k = 1e4 > V.recentlyCreatedOwnerStacks++;
2460
- return u(
2462
+ return c(
2461
2463
  f,
2462
2464
  v,
2463
2465
  x,
@@ -2474,24 +2476,24 @@ function Kn() {
2474
2476
  }
2475
2477
  var n = Kn();
2476
2478
  const Jn = async (t, e) => {
2477
- const { name: r, email: s, password: a, appId: o, phone: i, address: l, avatarUrl: h, isActive: c = !0, role: u = "user" } = t, { baseUrl: y, apiKey: b } = e;
2479
+ const { name: r, email: s, password: a, appId: i, phone: o, address: l, avatarUrl: h, isActive: d = !0, role: c = "user" } = t, { baseUrl: m, apiKey: b } = e;
2478
2480
  if (!b)
2479
2481
  throw new Error("API key is required for signup");
2480
- if (!r || !s || !a || !o)
2482
+ if (!r || !s || !a || !i)
2481
2483
  throw new Error("Name, email, password, and appId are required");
2482
2484
  try {
2483
2485
  const w = await M.post(
2484
- `${y}/users/signup`,
2486
+ `${m}/users/signup`,
2485
2487
  {
2486
2488
  name: r,
2487
2489
  email: s,
2488
2490
  password: a,
2489
- appId: o,
2490
- phone: i,
2491
+ appId: i,
2492
+ phone: o,
2491
2493
  address: l,
2492
2494
  avatarUrl: h,
2493
- isActive: c,
2494
- role: u
2495
+ isActive: d,
2496
+ role: c
2495
2497
  },
2496
2498
  {
2497
2499
  headers: {
@@ -2502,15 +2504,15 @@ const Jn = async (t, e) => {
2502
2504
  );
2503
2505
  return w.data?.user && localStorage.setItem("userInfo", JSON.stringify(w.data.user)), w.data.user;
2504
2506
  } catch (w) {
2505
- const d = w.response?.data?.message || w.message || "Signup failed";
2506
- if (console.error("Signup API Error:", d), w.response?.status === 400) {
2507
- if (d.includes("already exists"))
2507
+ const u = w.response?.data?.message || w.message || "Signup failed";
2508
+ if (console.error("Signup API Error:", u), w.response?.status === 400) {
2509
+ if (u.includes("already exists"))
2508
2510
  throw {
2509
2511
  success: !1,
2510
2512
  message: "User with this email already exists for this app",
2511
2513
  status: 400
2512
2514
  };
2513
- if (d.includes("inactive"))
2515
+ if (u.includes("inactive"))
2514
2516
  throw {
2515
2517
  success: !1,
2516
2518
  message: "Cannot signup under an inactive app",
@@ -2523,7 +2525,7 @@ const Jn = async (t, e) => {
2523
2525
  status: 404
2524
2526
  } : {
2525
2527
  success: !1,
2526
- message: d,
2528
+ message: u,
2527
2529
  status: w.response?.status || 500
2528
2530
  };
2529
2531
  }
@@ -2540,7 +2542,7 @@ const Gn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Xn = (
2540
2542
  ), $t = (t) => {
2541
2543
  const e = Xn(t);
2542
2544
  return e.charAt(0).toUpperCase() + e.slice(1);
2543
- }, or = (...t) => t.filter((e, r, s) => !!e && e.trim() !== "" && s.indexOf(e) === r).join(" ").trim(), Zn = (t) => {
2545
+ }, ir = (...t) => t.filter((e, r, s) => !!e && e.trim() !== "" && s.indexOf(e) === r).join(" ").trim(), Zn = (t) => {
2544
2546
  for (const e in t)
2545
2547
  if (e.startsWith("aria-") || e === "role" || e === "title")
2546
2548
  return !0;
@@ -2575,8 +2577,8 @@ const es = Nt(
2575
2577
  strokeWidth: r = 2,
2576
2578
  absoluteStrokeWidth: s,
2577
2579
  className: a = "",
2578
- children: o,
2579
- iconNode: i,
2580
+ children: i,
2581
+ iconNode: o,
2580
2582
  ...l
2581
2583
  }, h) => Xe(
2582
2584
  "svg",
@@ -2587,13 +2589,13 @@ const es = Nt(
2587
2589
  height: e,
2588
2590
  stroke: t,
2589
2591
  strokeWidth: s ? Number(r) * 24 / Number(e) : r,
2590
- className: or("lucide", a),
2591
- ...!o && !Zn(l) && { "aria-hidden": "true" },
2592
+ className: ir("lucide", a),
2593
+ ...!i && !Zn(l) && { "aria-hidden": "true" },
2592
2594
  ...l
2593
2595
  },
2594
2596
  [
2595
- ...i.map(([c, u]) => Xe(c, u)),
2596
- ...Array.isArray(o) ? o : [o]
2597
+ ...o.map(([d, c]) => Xe(d, c)),
2598
+ ...Array.isArray(i) ? i : [i]
2597
2599
  ]
2598
2600
  )
2599
2601
  );
@@ -2605,10 +2607,10 @@ const es = Nt(
2605
2607
  */
2606
2608
  const B = (t, e) => {
2607
2609
  const r = Nt(
2608
- ({ className: s, ...a }, o) => Xe(es, {
2609
- ref: o,
2610
+ ({ className: s, ...a }, i) => Xe(es, {
2611
+ ref: i,
2610
2612
  iconNode: e,
2611
- className: or(
2613
+ className: ir(
2612
2614
  `lucide-${Gn($t(t))}`,
2613
2615
  `lucide-${t}`,
2614
2616
  s
@@ -2661,39 +2663,39 @@ const ss = [
2661
2663
  const as = [
2662
2664
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2663
2665
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2664
- ], de = B("circle-check-big", as);
2666
+ ], ce = B("circle-check-big", as);
2665
2667
  /**
2666
2668
  * @license lucide-react v0.544.0 - ISC
2667
2669
  *
2668
2670
  * This source code is licensed under the ISC license.
2669
2671
  * See the LICENSE file in the root directory of this source tree.
2670
2672
  */
2671
- const is = [
2673
+ const os = [
2672
2674
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2673
2675
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2674
- ], Ge = B("circle-check", is);
2676
+ ], Ge = B("circle-check", os);
2675
2677
  /**
2676
2678
  * @license lucide-react v0.544.0 - ISC
2677
2679
  *
2678
2680
  * This source code is licensed under the ISC license.
2679
2681
  * See the LICENSE file in the root directory of this source tree.
2680
2682
  */
2681
- const os = [
2683
+ const is = [
2682
2684
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2683
2685
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2684
2686
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2685
- ], ls = B("database", os);
2687
+ ], ls = B("database", is);
2686
2688
  /**
2687
2689
  * @license lucide-react v0.544.0 - ISC
2688
2690
  *
2689
2691
  * This source code is licensed under the ISC license.
2690
2692
  * See the LICENSE file in the root directory of this source tree.
2691
2693
  */
2692
- const ds = [
2694
+ const cs = [
2693
2695
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2694
2696
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2695
2697
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2696
- ], cs = B("ellipsis-vertical", ds);
2698
+ ], ds = B("ellipsis-vertical", cs);
2697
2699
  /**
2698
2700
  * @license lucide-react v0.544.0 - ISC
2699
2701
  *
@@ -2717,7 +2719,7 @@ const us = [
2717
2719
  }
2718
2720
  ],
2719
2721
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2720
- ], ot = B("eye-off", us);
2722
+ ], it = B("eye-off", us);
2721
2723
  /**
2722
2724
  * @license lucide-react v0.544.0 - ISC
2723
2725
  *
@@ -2776,7 +2778,7 @@ const gs = [
2776
2778
  }
2777
2779
  ],
2778
2780
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2779
- ], dr = B("key-round", gs);
2781
+ ], cr = B("key-round", gs);
2780
2782
  /**
2781
2783
  * @license lucide-react v0.544.0 - ISC
2782
2784
  *
@@ -2787,7 +2789,7 @@ const ms = [
2787
2789
  ["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" }],
2788
2790
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2789
2791
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2790
- ], dt = B("key", ms);
2792
+ ], ct = B("key", ms);
2791
2793
  /**
2792
2794
  * @license lucide-react v0.544.0 - ISC
2793
2795
  *
@@ -2842,7 +2844,7 @@ const ks = [
2842
2844
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2843
2845
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2844
2846
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2845
- ], ct = B("log-out", ks);
2847
+ ], dt = B("log-out", ks);
2846
2848
  /**
2847
2849
  * @license lucide-react v0.544.0 - ISC
2848
2850
  *
@@ -2852,7 +2854,7 @@ const ks = [
2852
2854
  const Es = [
2853
2855
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2854
2856
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2855
- ], ce = B("mail", Es);
2857
+ ], de = B("mail", Es);
2856
2858
  /**
2857
2859
  * @license lucide-react v0.544.0 - ISC
2858
2860
  *
@@ -2963,7 +2965,7 @@ const Us = [
2963
2965
  key: "oel41y"
2964
2966
  }
2965
2967
  ]
2966
- ], cr = B("shield", Us);
2968
+ ], dr = B("shield", Us);
2967
2969
  /**
2968
2970
  * @license lucide-react v0.544.0 - ISC
2969
2971
  *
@@ -3039,24 +3041,24 @@ const Ws = [
3039
3041
  title: r = "Create Your Account",
3040
3042
  subtitle: s = "Join our platform today",
3041
3043
  footerText: a = "Secure authentication powered by Neuctra Authix",
3042
- primaryColor: o = "#00C214",
3043
- gradient: i = "linear-gradient(135deg, #22c55e, #00C214)",
3044
+ primaryColor: i = "#00C214",
3045
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3044
3046
  darkMode: l = !0,
3045
3047
  // Only avatar is optional
3046
3048
  showAvatar: h = !1,
3047
- roles: c = [],
3049
+ roles: d = [],
3048
3050
  // 🔥 FIXED
3049
- showRoleSelector: u = !1,
3051
+ showRoleSelector: c = !1,
3050
3052
  // 🔥 FIXED
3051
- loginUrl: y,
3053
+ loginUrl: m,
3052
3054
  onSuccess: b,
3053
3055
  onError: w
3054
3056
  }) => {
3055
- const { baseUrl: d, apiKey: j, appId: m } = ge(), $ = {
3057
+ const { baseUrl: u, apiKey: j, appId: y } = ge(), $ = {
3056
3058
  name: "",
3057
3059
  email: "",
3058
3060
  password: "",
3059
- role: c.length ? c[0] : "user",
3061
+ role: d.length ? d[0] : "user",
3060
3062
  ...h && { avatarUrl: "" }
3061
3063
  }, [R, z] = P($), [C, q] = P(!1), [g, I] = P(!1), [S, U] = P(null), [W, F] = P({}), [V, Z] = P(!1), T = l ? "#ffffff" : "#111827", J = l ? "#a1a1aa" : "#6b7280", A = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", O = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3062
3064
  Le.useEffect(() => {
@@ -3077,8 +3079,8 @@ const Ws = [
3077
3079
  try {
3078
3080
  const x = {
3079
3081
  ...R,
3080
- appId: m
3081
- }, k = await Jn(x, { baseUrl: d, apiKey: j });
3082
+ appId: y
3083
+ }, k = await Jn(x, { baseUrl: u, apiKey: j });
3082
3084
  U({ type: "success", text: "Account created successfully!" }), b && b(k);
3083
3085
  } catch (x) {
3084
3086
  const k = x.message || "Signup failed. Please try again.";
@@ -3152,7 +3154,7 @@ const Ws = [
3152
3154
  be,
3153
3155
  {
3154
3156
  size: 40,
3155
- color: o,
3157
+ color: i,
3156
3158
  style: { marginBottom: "10px" }
3157
3159
  }
3158
3160
  ),
@@ -3199,7 +3201,7 @@ const Ws = [
3199
3201
  height: "60px",
3200
3202
  borderRadius: "50%",
3201
3203
  objectFit: "cover",
3202
- border: `2px solid ${o}30`
3204
+ border: `2px solid ${i}30`
3203
3205
  },
3204
3206
  onError: (v) => {
3205
3207
  const x = v.target;
@@ -3215,7 +3217,7 @@ const Ws = [
3215
3217
  onSubmit: G,
3216
3218
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3217
3219
  children: [
3218
- u && c && c.length === 2 && /* @__PURE__ */ n.jsxs(
3220
+ c && d && d.length === 2 && /* @__PURE__ */ n.jsxs(
3219
3221
  "div",
3220
3222
  {
3221
3223
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3260,7 +3262,7 @@ const Ws = [
3260
3262
  // subtle shadow
3261
3263
  borderRadius: "10px",
3262
3264
  transition: "transform 0.3s ease, background-color 0.3s ease",
3263
- transform: R.role === c[1] ? "translateX(100%)" : "translateX(0)",
3265
+ transform: R.role === d[1] ? "translateX(100%)" : "translateX(0)",
3264
3266
  zIndex: 0
3265
3267
  }
3266
3268
  }
@@ -3269,43 +3271,43 @@ const Ws = [
3269
3271
  "button",
3270
3272
  {
3271
3273
  type: "button",
3272
- onClick: () => z((v) => ({ ...v, role: c[0] })),
3274
+ onClick: () => z((v) => ({ ...v, role: d[0] })),
3273
3275
  style: {
3274
3276
  flex: 1,
3275
3277
  zIndex: 10,
3276
3278
  border: "none",
3277
3279
  background: "transparent",
3278
- color: R.role === c[0] ? o : l ? "#9ca3af" : "#6b7280",
3280
+ color: R.role === d[0] ? i : l ? "#9ca3af" : "#6b7280",
3279
3281
  // theme-aware inactive color
3280
- fontWeight: R.role === c[0] ? 600 : 500,
3282
+ fontWeight: R.role === d[0] ? 600 : 500,
3281
3283
  fontSize: "14px",
3282
3284
  display: "flex",
3283
3285
  alignItems: "center",
3284
3286
  justifyContent: "center",
3285
3287
  transition: "color 0.2s ease"
3286
3288
  },
3287
- children: c[0].charAt(0).toUpperCase() + c[0].slice(1)
3289
+ children: d[0].charAt(0).toUpperCase() + d[0].slice(1)
3288
3290
  }
3289
3291
  ),
3290
3292
  /* @__PURE__ */ n.jsx(
3291
3293
  "button",
3292
3294
  {
3293
3295
  type: "button",
3294
- onClick: () => z((v) => ({ ...v, role: c[1] })),
3296
+ onClick: () => z((v) => ({ ...v, role: d[1] })),
3295
3297
  style: {
3296
3298
  flex: 1,
3297
3299
  zIndex: 10,
3298
3300
  border: "none",
3299
3301
  background: "transparent",
3300
- color: R.role === c[1] ? o : l ? "#9ca3af" : "#6b7280",
3301
- fontWeight: R.role === c[1] ? 600 : 500,
3302
+ color: R.role === d[1] ? i : l ? "#9ca3af" : "#6b7280",
3303
+ fontWeight: R.role === d[1] ? 600 : 500,
3302
3304
  fontSize: "14px",
3303
3305
  display: "flex",
3304
3306
  alignItems: "center",
3305
3307
  justifyContent: "center",
3306
3308
  transition: "color 0.2s ease"
3307
3309
  },
3308
- children: c[1].charAt(0).toUpperCase() + c[1].slice(1)
3310
+ children: d[1].charAt(0).toUpperCase() + d[1].slice(1)
3309
3311
  }
3310
3312
  )
3311
3313
  ]
@@ -3384,7 +3386,7 @@ const Ws = [
3384
3386
  ),
3385
3387
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3386
3388
  /* @__PURE__ */ n.jsx(
3387
- ce,
3389
+ de,
3388
3390
  {
3389
3391
  size: 20,
3390
3392
  style: {
@@ -3482,7 +3484,7 @@ const Ws = [
3482
3484
  cursor: "pointer",
3483
3485
  padding: "4px"
3484
3486
  },
3485
- children: C ? /* @__PURE__ */ n.jsx(ot, { size: 20 }) : /* @__PURE__ */ n.jsx(lt, { size: 20 })
3487
+ children: C ? /* @__PURE__ */ n.jsx(it, { size: 20 }) : /* @__PURE__ */ n.jsx(lt, { size: 20 })
3486
3488
  }
3487
3489
  )
3488
3490
  ] }),
@@ -3545,7 +3547,7 @@ const Ws = [
3545
3547
  ]
3546
3548
  }
3547
3549
  ),
3548
- y && /* @__PURE__ */ n.jsx(
3550
+ m && /* @__PURE__ */ n.jsx(
3549
3551
  "div",
3550
3552
  {
3551
3553
  style: {
@@ -3556,9 +3558,9 @@ const Ws = [
3556
3558
  children: /* @__PURE__ */ n.jsx(
3557
3559
  "a",
3558
3560
  {
3559
- href: y,
3561
+ href: m,
3560
3562
  style: {
3561
- color: o,
3563
+ color: i,
3562
3564
  textDecoration: "none",
3563
3565
  fontWeight: 500
3564
3566
  },
@@ -3577,12 +3579,12 @@ const Ws = [
3577
3579
  display: "flex",
3578
3580
  alignItems: "start",
3579
3581
  gap: "10px",
3580
- backgroundColor: S.type === "success" ? `${o}15` : "rgba(239,68,68,0.1)",
3581
- border: S.type === "success" ? `1px solid ${o}30` : "1px solid rgba(239,68,68,0.3)",
3582
- color: S.type === "success" ? o : "#ef4444"
3582
+ backgroundColor: S.type === "success" ? `${i}15` : "rgba(239,68,68,0.1)",
3583
+ border: S.type === "success" ? `1px solid ${i}30` : "1px solid rgba(239,68,68,0.3)",
3584
+ color: S.type === "success" ? i : "#ef4444"
3583
3585
  },
3584
3586
  children: [
3585
- S.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(le, { size: 20 }),
3587
+ S.type === "success" ? /* @__PURE__ */ n.jsx(ce, { size: 20 }) : /* @__PURE__ */ n.jsx(le, { size: 20 }),
3586
3588
  /* @__PURE__ */ n.jsx("span", { children: S.text })
3587
3589
  ]
3588
3590
  }
@@ -3594,7 +3596,7 @@ const Ws = [
3594
3596
  disabled: g,
3595
3597
  style: {
3596
3598
  padding: "12px",
3597
- background: i,
3599
+ background: o,
3598
3600
  color: "#fff",
3599
3601
  border: "none",
3600
3602
  borderRadius: "10px",
@@ -3635,7 +3637,7 @@ const Ws = [
3635
3637
  children: [
3636
3638
  "Secure authentication powered by",
3637
3639
  " ",
3638
- /* @__PURE__ */ n.jsx("span", { style: { color: o, fontWeight: 600 }, children: "Neuctra Authix" })
3640
+ /* @__PURE__ */ n.jsx("span", { style: { color: i, fontWeight: 600 }, children: "Neuctra Authix" })
3639
3641
  ]
3640
3642
  }
3641
3643
  )
@@ -3652,12 +3654,12 @@ const Ws = [
3652
3654
  }
3653
3655
  );
3654
3656
  }, Bs = async (t, e) => {
3655
- const { email: r, password: s, appId: a } = t, { baseUrl: o, apiKey: i } = e;
3656
- if (!i)
3657
+ const { email: r, password: s, appId: a } = t, { baseUrl: i, apiKey: o } = e;
3658
+ if (!o)
3657
3659
  throw new Error("API key is required for login");
3658
3660
  try {
3659
3661
  const l = await M.post(
3660
- `${o}/users/login`,
3662
+ `${i}/users/login`,
3661
3663
  {
3662
3664
  email: r,
3663
3665
  password: s,
@@ -3666,7 +3668,7 @@ const Ws = [
3666
3668
  {
3667
3669
  headers: {
3668
3670
  "Content-Type": "application/json",
3669
- "x-api-key": i
3671
+ "x-api-key": o
3670
3672
  },
3671
3673
  withCredentials: !0
3672
3674
  }
@@ -3686,14 +3688,14 @@ const Ws = [
3686
3688
  title: r = "Sign In to Your Account",
3687
3689
  subtitle: s = "Welcome back! Please enter your details",
3688
3690
  footerText: a = "Secure authentication powered by Neuctra Authix",
3689
- primaryColor: o = "#00C214",
3690
- gradient: i = "linear-gradient(135deg, #22c55e, #00C214)",
3691
+ primaryColor: i = "#00C214",
3692
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3691
3693
  darkMode: l = !0,
3692
3694
  signupUrl: h,
3693
- onSuccess: c,
3694
- onError: u
3695
+ onSuccess: d,
3696
+ onError: c
3695
3697
  }) => {
3696
- const { baseUrl: y, apiKey: b, appId: w } = ge(), [d, j] = P("login"), [m, $] = P(1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(null), [S, U] = P(""), [W, F] = P(""), [V, Z] = P({
3698
+ const { baseUrl: m, apiKey: b, appId: w } = ge(), [u, j] = P("login"), [y, $] = P(1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(null), [S, U] = P(""), [W, F] = P(""), [V, Z] = P({
3697
3699
  email: "",
3698
3700
  otp: "",
3699
3701
  newPassword: "",
@@ -3710,12 +3712,12 @@ const Ws = [
3710
3712
  try {
3711
3713
  const N = await Bs(
3712
3714
  { email: S, password: W, appId: w },
3713
- { baseUrl: y, apiKey: b }
3715
+ { baseUrl: m, apiKey: b }
3714
3716
  );
3715
- I({ type: "success", text: `Welcome ${N.name}` }), c?.(N);
3717
+ I({ type: "success", text: `Welcome ${N.name}` }), d?.(N);
3716
3718
  } catch (N) {
3717
3719
  const Y = N.message || "Login failed";
3718
- I({ type: "error", text: Y }), u?.(N);
3720
+ I({ type: "error", text: Y }), c?.(N);
3719
3721
  } finally {
3720
3722
  q(!1);
3721
3723
  }
@@ -3725,7 +3727,7 @@ const Ws = [
3725
3727
  _.preventDefault(), q(!0), I(null);
3726
3728
  try {
3727
3729
  const N = await M.post(
3728
- `${y}/users/forgot-password`,
3730
+ `${m}/users/forgot-password`,
3729
3731
  {
3730
3732
  email: V.email,
3731
3733
  appId: w
@@ -3748,7 +3750,7 @@ const Ws = [
3748
3750
  _.preventDefault(), q(!0), I(null);
3749
3751
  try {
3750
3752
  const N = await M.post(
3751
- `${y}/users/reset-password`,
3753
+ `${m}/users/reset-password`,
3752
3754
  V,
3753
3755
  { headers: { "x-api-key": b } }
3754
3756
  );
@@ -3824,7 +3826,7 @@ const Ws = [
3824
3826
  be,
3825
3827
  {
3826
3828
  size: 40,
3827
- color: o,
3829
+ color: i,
3828
3830
  style: { marginBottom: "10px" }
3829
3831
  }
3830
3832
  ),
@@ -3837,7 +3839,7 @@ const Ws = [
3837
3839
  color: A,
3838
3840
  margin: 0
3839
3841
  },
3840
- children: d === "login" ? r : m === 1 ? "Forgot Password" : "Reset Password"
3842
+ children: u === "login" ? r : y === 1 ? "Forgot Password" : "Reset Password"
3841
3843
  }
3842
3844
  ),
3843
3845
  /* @__PURE__ */ n.jsx(
@@ -3847,13 +3849,13 @@ const Ws = [
3847
3849
  fontSize: "14px",
3848
3850
  color: O
3849
3851
  },
3850
- children: d === "login" ? s : "Follow the steps to reset your password"
3852
+ children: u === "login" ? s : "Follow the steps to reset your password"
3851
3853
  }
3852
3854
  )
3853
3855
  ]
3854
3856
  }
3855
3857
  ),
3856
- d === "login" && /* @__PURE__ */ n.jsxs(
3858
+ u === "login" && /* @__PURE__ */ n.jsxs(
3857
3859
  "form",
3858
3860
  {
3859
3861
  onSubmit: G,
@@ -3878,7 +3880,7 @@ const Ws = [
3878
3880
  ),
3879
3881
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3880
3882
  /* @__PURE__ */ n.jsx(
3881
- ce,
3883
+ de,
3882
3884
  {
3883
3885
  size: 20,
3884
3886
  style: {
@@ -3963,7 +3965,7 @@ const Ws = [
3963
3965
  color: O,
3964
3966
  cursor: "pointer"
3965
3967
  },
3966
- children: R ? /* @__PURE__ */ n.jsx(ot, { size: 20 }) : /* @__PURE__ */ n.jsx(lt, { size: 20 })
3968
+ children: R ? /* @__PURE__ */ n.jsx(it, { size: 20 }) : /* @__PURE__ */ n.jsx(lt, { size: 20 })
3967
3969
  }
3968
3970
  )
3969
3971
  ] })
@@ -3984,7 +3986,7 @@ const Ws = [
3984
3986
  {
3985
3987
  href: h,
3986
3988
  style: {
3987
- color: o,
3989
+ color: i,
3988
3990
  textDecoration: "none",
3989
3991
  fontWeight: 500
3990
3992
  },
@@ -3999,7 +4001,7 @@ const Ws = [
3999
4001
  style: {
4000
4002
  background: "none",
4001
4003
  border: "none",
4002
- color: o,
4004
+ color: i,
4003
4005
  fontWeight: 500,
4004
4006
  cursor: "pointer"
4005
4007
  },
@@ -4016,7 +4018,7 @@ const Ws = [
4016
4018
  disabled: C,
4017
4019
  style: {
4018
4020
  padding: "12px",
4019
- background: i,
4021
+ background: o,
4020
4022
  color: "#fff",
4021
4023
  border: "none",
4022
4024
  borderRadius: "10px",
@@ -4029,13 +4031,13 @@ const Ws = [
4029
4031
  ]
4030
4032
  }
4031
4033
  ),
4032
- d === "forgot" && /* @__PURE__ */ n.jsxs(
4034
+ u === "forgot" && /* @__PURE__ */ n.jsxs(
4033
4035
  "form",
4034
4036
  {
4035
- onSubmit: m === 1 ? v : x,
4037
+ onSubmit: y === 1 ? v : x,
4036
4038
  style: { display: "flex", flexDirection: "column", gap: "14px" },
4037
4039
  children: [
4038
- m === 1 ? /* @__PURE__ */ n.jsxs(
4040
+ y === 1 ? /* @__PURE__ */ n.jsxs(
4039
4041
  "div",
4040
4042
  {
4041
4043
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -4054,7 +4056,7 @@ const Ws = [
4054
4056
  ),
4055
4057
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
4056
4058
  /* @__PURE__ */ n.jsx(
4057
- ce,
4059
+ de,
4058
4060
  {
4059
4061
  size: 20,
4060
4062
  style: {
@@ -4105,7 +4107,7 @@ const Ws = [
4105
4107
  ),
4106
4108
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
4107
4109
  /* @__PURE__ */ n.jsx(
4108
- dr,
4110
+ cr,
4109
4111
  {
4110
4112
  size: 20,
4111
4113
  style: {
@@ -4192,14 +4194,14 @@ const Ws = [
4192
4194
  disabled: C,
4193
4195
  style: {
4194
4196
  padding: "12px",
4195
- background: i,
4197
+ background: o,
4196
4198
  color: "#fff",
4197
4199
  border: "none",
4198
4200
  fontSize: "14px",
4199
4201
  borderRadius: "10px",
4200
4202
  fontWeight: 600
4201
4203
  },
4202
- children: C ? "Please wait..." : m === 1 ? "Send Reset OTP" : "Reset Password"
4204
+ children: C ? "Please wait..." : y === 1 ? "Send Reset OTP" : "Reset Password"
4203
4205
  }
4204
4206
  ),
4205
4207
  /* @__PURE__ */ n.jsx(
@@ -4234,12 +4236,12 @@ const Ws = [
4234
4236
  display: "flex",
4235
4237
  alignItems: "center",
4236
4238
  gap: "10px",
4237
- backgroundColor: g.type === "success" ? `${o}15` : "rgba(239,68,68,0.1)",
4238
- border: g.type === "success" ? `1px solid ${o}30` : "1px solid rgba(239,68,68,0.3)",
4239
- color: g.type === "success" ? o : "#ef4444"
4239
+ backgroundColor: g.type === "success" ? `${i}15` : "rgba(239,68,68,0.1)",
4240
+ border: g.type === "success" ? `1px solid ${i}30` : "1px solid rgba(239,68,68,0.3)",
4241
+ color: g.type === "success" ? i : "#ef4444"
4240
4242
  },
4241
4243
  children: [
4242
- g.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(le, { size: 20 }),
4244
+ g.type === "success" ? /* @__PURE__ */ n.jsx(ce, { size: 20 }) : /* @__PURE__ */ n.jsx(le, { size: 20 }),
4243
4245
  /* @__PURE__ */ n.jsx("span", { children: g.text })
4244
4246
  ]
4245
4247
  }
@@ -4257,7 +4259,7 @@ const Ws = [
4257
4259
  children: [
4258
4260
  "Secure authentication powered by",
4259
4261
  " ",
4260
- /* @__PURE__ */ n.jsx("span", { style: { color: o, fontWeight: 600 }, children: "Neuctra Authix" })
4262
+ /* @__PURE__ */ n.jsx("span", { style: { color: i, fontWeight: 600 }, children: "Neuctra Authix" })
4261
4263
  ]
4262
4264
  }
4263
4265
  )
@@ -4277,127 +4279,117 @@ const Ws = [
4277
4279
  }, ba = ({
4278
4280
  children: t,
4279
4281
  fallback: e = null,
4280
- loading: r = null,
4281
- className: s = "",
4282
- width: a,
4283
- height: o
4282
+ loading: r = null
4284
4283
  }) => {
4285
- const i = pr(), [l, h] = P(!1), [c, u] = P(null);
4284
+ const s = pr(), [a, i] = P(!1), [o, l] = P(null);
4286
4285
  if (te(() => {
4287
- console.log("[ReactSignedIn] Component mounted"), h(!0), (async () => {
4286
+ console.log("[ReactSignedIn] Component mounted"), i(!0), (async () => {
4288
4287
  try {
4289
4288
  console.log("[ReactSignedIn] Checking session...");
4290
- const d = await i.checkSession();
4291
- console.log("[ReactSignedIn] Session response:", d), u(!!d?.authenticated), console.log("[ReactSignedIn] SignedIn state set to:", !!d?.authenticated);
4292
- } catch (d) {
4293
- console.error("[ReactSignedIn] Error fetching session:", d), u(!1);
4289
+ const m = await s.checkSession();
4290
+ console.log("[ReactSignedIn] Session response:", m), l(!!m?.authenticated), console.log("[ReactSignedIn] SignedIn state set to:", !!m?.authenticated);
4291
+ } catch (m) {
4292
+ console.error("[ReactSignedIn] Error fetching session:", m), l(!1);
4294
4293
  }
4295
4294
  })();
4296
- }, [i]), !l) return null;
4297
- const y = (w) => typeof w == "function" ? w() : w, b = /* @__PURE__ */ n.jsxs(
4295
+ }, [s]), !a) return null;
4296
+ const h = (c) => typeof c == "function" ? c() : c, d = /* @__PURE__ */ n.jsxs(
4298
4297
  "div",
4299
4298
  {
4300
4299
  style: {
4300
+ position: "fixed",
4301
4301
  display: "flex",
4302
- alignItems: "center",
4303
4302
  justifyContent: "center",
4304
- width: a || "100%",
4305
- height: o || "100%"
4303
+ alignItems: "center",
4304
+ width: "100%",
4305
+ height: "100%"
4306
4306
  },
4307
4307
  children: [
4308
- /* @__PURE__ */ n.jsx("div", { className: "react-signedin-spinner" }),
4308
+ /* @__PURE__ */ n.jsx(
4309
+ "div",
4310
+ {
4311
+ style: {
4312
+ border: "4px solid rgba(0,0,0,0.1)",
4313
+ borderTop: "4px solid #3498db",
4314
+ borderRadius: "50%",
4315
+ width: "36px",
4316
+ height: "36px",
4317
+ animation: "spin 1s linear infinite"
4318
+ }
4319
+ }
4320
+ ),
4309
4321
  /* @__PURE__ */ n.jsx("style", { children: `
4310
- .react-signedin-spinner {
4311
- border: 4px solid rgba(0, 0, 0, 0.1);
4312
- border-top: 4px solid #3498db;
4313
- border-radius: 50%;
4314
- width: 36px;
4315
- height: 36px;
4316
- animation: spin 1s linear infinite;
4317
- }
4318
4322
  @keyframes spin {
4319
- 0% { transform: rotate(0deg);}
4320
- 100% { transform: rotate(360deg);}
4323
+ 0% { transform: rotate(0deg); }
4324
+ 100% { transform: rotate(360deg); }
4321
4325
  }
4322
4326
  ` })
4323
4327
  ]
4324
4328
  }
4325
4329
  );
4326
- return c === null ? (console.log("[ReactSignedIn] Still loading session..."), y(r) ?? b) : c ? (console.log("[ReactSignedIn] User signed in, rendering children"), /* @__PURE__ */ n.jsx(
4327
- "div",
4328
- {
4329
- className: s,
4330
- style: { display: "flex", alignItems: "center", width: a, height: o },
4331
- children: t
4332
- }
4333
- )) : (console.log("[ReactSignedIn] User not signed in, showing fallback"), y(e));
4330
+ return o === null ? (console.log("[ReactSignedIn] Still loading session..."), h(r) ?? d) : o ? (console.log("[ReactSignedIn] User signed in, rendering children"), /* @__PURE__ */ n.jsx(n.Fragment, { children: t })) : (console.log("[ReactSignedIn] User not signed in, showing fallback"), h(e));
4334
4331
  }, wa = ({
4335
4332
  children: t,
4336
4333
  fallback: e = null,
4337
- loading: r = null,
4338
- className: s = "",
4339
- width: a,
4340
- height: o
4334
+ loading: r = null
4341
4335
  }) => {
4342
- const i = pr(), [l, h] = P(!1), [c, u] = P(null);
4336
+ const s = pr(), [a, i] = P(!1), [o, l] = P(null);
4343
4337
  if (te(() => {
4344
- console.log("[ReactSignedOut] Component mounted"), h(!0), (async () => {
4338
+ console.log("[ReactSignedOut] Component mounted"), i(!0), (async () => {
4345
4339
  try {
4346
4340
  console.log("[ReactSignedOut] Checking session...");
4347
- const d = await i.checkSession();
4348
- console.log("[ReactSignedOut] Session response:", d), u(!d?.authenticated), console.log("[ReactSignedOut] SignedOut state set to:", !d?.authenticated);
4349
- } catch (d) {
4350
- console.error("[ReactSignedOut] Error fetching session:", d), u(!0);
4341
+ const m = await s.checkSession();
4342
+ console.log("[ReactSignedOut] Session response:", m), l(!m?.authenticated), console.log("[ReactSignedOut] SignedOut state set to:", !m?.authenticated);
4343
+ } catch (m) {
4344
+ console.error("[ReactSignedOut] Error fetching session:", m), l(!0);
4351
4345
  }
4352
4346
  })();
4353
- }, [i]), !l) return null;
4354
- const y = (w) => typeof w == "function" ? w() : w, b = /* @__PURE__ */ n.jsxs(
4347
+ }, [s]), !a) return null;
4348
+ const h = (c) => typeof c == "function" ? c() : c, d = /* @__PURE__ */ n.jsxs(
4355
4349
  "div",
4356
4350
  {
4357
4351
  style: {
4352
+ position: "fixed",
4358
4353
  display: "flex",
4359
- alignItems: "center",
4360
4354
  justifyContent: "center",
4361
- width: a || "100%",
4362
- height: o || "100%"
4355
+ alignItems: "center",
4356
+ width: "100%",
4357
+ height: "100%"
4363
4358
  },
4364
4359
  children: [
4365
- /* @__PURE__ */ n.jsx("div", { className: "react-signedout-spinner" }),
4360
+ /* @__PURE__ */ n.jsx(
4361
+ "div",
4362
+ {
4363
+ style: {
4364
+ border: "4px solid rgba(0,0,0,0.1)",
4365
+ borderTop: "4px solid #e74c3c",
4366
+ borderRadius: "50%",
4367
+ width: "36px",
4368
+ height: "36px",
4369
+ animation: "spin 1s linear infinite"
4370
+ }
4371
+ }
4372
+ ),
4366
4373
  /* @__PURE__ */ n.jsx("style", { children: `
4367
- .react-signedout-spinner {
4368
- border: 4px solid rgba(0, 0, 0, 0.1);
4369
- border-top: 4px solid #e74c3c;
4370
- border-radius: 50%;
4371
- width: 36px;
4372
- height: 36px;
4373
- animation: spin 1s linear infinite;
4374
- }
4375
4374
  @keyframes spin {
4376
- 0% { transform: rotate(0deg);}
4377
- 100% { transform: rotate(360deg);}
4375
+ 0% { transform: rotate(0deg); }
4376
+ 100% { transform: rotate(360deg); }
4378
4377
  }
4379
4378
  ` })
4380
4379
  ]
4381
4380
  }
4382
4381
  );
4383
- return c === null ? (console.log("[ReactSignedOut] Still checking session..."), y(r) ?? b) : c ? (console.log("[ReactSignedOut] User is signed out, rendering children"), /* @__PURE__ */ n.jsx(
4384
- "div",
4385
- {
4386
- className: s,
4387
- style: { display: "flex", alignItems: "center", width: a, height: o },
4388
- children: t
4389
- }
4390
- )) : (console.log("[ReactSignedOut] User is signed in, showing fallback"), y(e));
4382
+ return o === null ? (console.log("[ReactSignedOut] Still checking session..."), h(r) ?? d) : o ? (console.log("[ReactSignedOut] User is signed out, rendering children"), /* @__PURE__ */ n.jsx(n.Fragment, { children: t })) : (console.log("[ReactSignedOut] User is signed in, showing fallback"), h(e));
4391
4383
  }, Hs = ({
4392
4384
  isOpen: t,
4393
4385
  onClose: e,
4394
4386
  onSuccess: r,
4395
4387
  onError: s,
4396
4388
  userId: a,
4397
- token: o,
4398
- colors: i
4389
+ token: i,
4390
+ colors: o
4399
4391
  }) => {
4400
- const { baseUrl: l, apiKey: h, appId: c } = ge(), [u, y] = P(!1), [b, w] = P(""), [d, j] = P("warning"), [m, $] = P(!1);
4392
+ const { baseUrl: l, apiKey: h, appId: d } = ge(), [c, m] = P(!1), [b, w] = P(""), [u, j] = P("warning"), [y, $] = P(!1);
4401
4393
  if (te(() => {
4402
4394
  if (typeof window > "u") return;
4403
4395
  const g = () => {
@@ -4406,10 +4398,10 @@ const Ws = [
4406
4398
  return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
4407
4399
  }, []), !t) return null;
4408
4400
  const R = async () => {
4409
- y(!0), j("processing");
4401
+ m(!0), j("processing");
4410
4402
  try {
4411
4403
  const { data: g } = await M.delete(`${l}/users/delete/${a}`, {
4412
- data: { appId: c },
4404
+ data: { appId: d },
4413
4405
  headers: {
4414
4406
  "x-api-key": h
4415
4407
  }
@@ -4420,12 +4412,12 @@ const Ws = [
4420
4412
  } catch (g) {
4421
4413
  s(g.response?.data?.message || "Something went wrong"), j("warning");
4422
4414
  } finally {
4423
- y(!1);
4415
+ m(!1);
4424
4416
  }
4425
4417
  }, z = b.toLowerCase() === "delete my account", C = (g) => {
4426
- g.target === g.currentTarget && d !== "processing" && d !== "success" && e();
4418
+ g.target === g.currentTarget && u !== "processing" && u !== "success" && e();
4427
4419
  }, q = () => {
4428
- switch (d) {
4420
+ switch (u) {
4429
4421
  case "warning":
4430
4422
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4431
4423
  /* @__PURE__ */ n.jsxs(
@@ -4470,7 +4462,7 @@ const Ws = [
4470
4462
  "h3",
4471
4463
  {
4472
4464
  style: {
4473
- color: i.textPrimary,
4465
+ color: o.textPrimary,
4474
4466
  margin: 0,
4475
4467
  fontSize: "20px",
4476
4468
  fontWeight: 700,
@@ -4490,7 +4482,7 @@ const Ws = [
4490
4482
  style: {
4491
4483
  background: "transparent",
4492
4484
  border: "none",
4493
- color: i.textTertiary,
4485
+ color: o.textTertiary,
4494
4486
  cursor: "pointer",
4495
4487
  padding: "8px",
4496
4488
  borderRadius: "8px",
@@ -4503,10 +4495,10 @@ const Ws = [
4503
4495
  transition: "all 0.2s ease"
4504
4496
  },
4505
4497
  onMouseOver: (g) => {
4506
- g.currentTarget.style.backgroundColor = i.border, g.currentTarget.style.color = i.textPrimary;
4498
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.color = o.textPrimary;
4507
4499
  },
4508
4500
  onMouseOut: (g) => {
4509
- g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = i.textTertiary;
4501
+ g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = o.textTertiary;
4510
4502
  },
4511
4503
  children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
4512
4504
  }
@@ -4521,8 +4513,8 @@ const Ws = [
4521
4513
  display: "flex",
4522
4514
  gap: "16px",
4523
4515
  padding: "20px",
4524
- background: `${i.error}15`,
4525
- border: `1px solid ${i.error}30`,
4516
+ background: `${o.error}15`,
4517
+ border: `1px solid ${o.error}30`,
4526
4518
  borderRadius: "12px",
4527
4519
  marginBottom: "20px"
4528
4520
  },
@@ -4531,7 +4523,7 @@ const Ws = [
4531
4523
  "div",
4532
4524
  {
4533
4525
  style: {
4534
- color: i.error,
4526
+ color: o.error,
4535
4527
  flexShrink: 0,
4536
4528
  display: "flex",
4537
4529
  alignItems: "flex-start"
@@ -4544,7 +4536,7 @@ const Ws = [
4544
4536
  "h4",
4545
4537
  {
4546
4538
  style: {
4547
- color: i.textPrimary,
4539
+ color: o.textPrimary,
4548
4540
  margin: "0 0 12px 0",
4549
4541
  fontSize: "16px",
4550
4542
  fontWeight: 600
@@ -4570,7 +4562,7 @@ const Ws = [
4570
4562
  text: "This action cannot be reversed"
4571
4563
  },
4572
4564
  {
4573
- icon: /* @__PURE__ */ n.jsx(ct, { size: 16 }),
4565
+ icon: /* @__PURE__ */ n.jsx(dt, { size: 16 }),
4574
4566
  text: "You will lose access to all services"
4575
4567
  }
4576
4568
  ].map((g, I) => /* @__PURE__ */ n.jsxs(
@@ -4581,10 +4573,10 @@ const Ws = [
4581
4573
  alignItems: "center",
4582
4574
  gap: "10px",
4583
4575
  fontSize: "14px",
4584
- color: i.textSecondary
4576
+ color: o.textSecondary
4585
4577
  },
4586
4578
  children: [
4587
- /* @__PURE__ */ n.jsx("div", { style: { color: i.error, flexShrink: 0 }, children: g.icon }),
4579
+ /* @__PURE__ */ n.jsx("div", { style: { color: o.error, flexShrink: 0 }, children: g.icon }),
4588
4580
  /* @__PURE__ */ n.jsx("span", { children: g.text })
4589
4581
  ]
4590
4582
  },
@@ -4602,7 +4594,7 @@ const Ws = [
4602
4594
  style: {
4603
4595
  display: "flex",
4604
4596
  gap: "12px",
4605
- flexDirection: m ? "column-reverse" : "row",
4597
+ flexDirection: y ? "column-reverse" : "row",
4606
4598
  justifyContent: "flex-end",
4607
4599
  alignItems: "stretch"
4608
4600
  },
@@ -4614,18 +4606,18 @@ const Ws = [
4614
4606
  style: {
4615
4607
  padding: "10px 24px",
4616
4608
  borderRadius: "10px",
4617
- border: `1.5px solid ${i.border}`,
4609
+ border: `1.5px solid ${o.border}`,
4618
4610
  background: "transparent",
4619
- color: i.textPrimary,
4611
+ color: o.textPrimary,
4620
4612
  fontSize: "14px",
4621
4613
  fontWeight: 500,
4622
4614
  cursor: "pointer",
4623
- flex: m ? "none" : 1,
4624
- minWidth: m ? "100%" : "120px",
4615
+ flex: y ? "none" : 1,
4616
+ minWidth: y ? "100%" : "120px",
4625
4617
  transition: "all 0.2s ease"
4626
4618
  },
4627
4619
  onMouseOver: (g) => {
4628
- g.currentTarget.style.backgroundColor = i.border, g.currentTarget.style.transform = "translateY(-1px)";
4620
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4629
4621
  },
4630
4622
  onMouseOut: (g) => {
4631
4623
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4646,8 +4638,8 @@ const Ws = [
4646
4638
  fontSize: "14px",
4647
4639
  fontWeight: 600,
4648
4640
  cursor: "pointer",
4649
- flex: m ? "none" : 1,
4650
- minWidth: m ? "100%" : "140px",
4641
+ flex: y ? "none" : 1,
4642
+ minWidth: y ? "100%" : "140px",
4651
4643
  display: "flex",
4652
4644
  alignItems: "center",
4653
4645
  justifyContent: "center",
@@ -4704,7 +4696,7 @@ const Ws = [
4704
4696
  "h3",
4705
4697
  {
4706
4698
  style: {
4707
- color: i.textPrimary,
4699
+ color: o.textPrimary,
4708
4700
  margin: 0,
4709
4701
  fontSize: "20px",
4710
4702
  fontWeight: 700,
@@ -4721,7 +4713,7 @@ const Ws = [
4721
4713
  "p",
4722
4714
  {
4723
4715
  style: {
4724
- color: i.textSecondary,
4716
+ color: o.textSecondary,
4725
4717
  marginBottom: "16px",
4726
4718
  fontSize: "14px",
4727
4719
  lineHeight: "1.5"
@@ -4729,7 +4721,7 @@ const Ws = [
4729
4721
  children: [
4730
4722
  "Type",
4731
4723
  " ",
4732
- /* @__PURE__ */ n.jsx("strong", { style: { color: i.textPrimary }, children: '"delete my account"' }),
4724
+ /* @__PURE__ */ n.jsx("strong", { style: { color: o.textPrimary }, children: '"delete my account"' }),
4733
4725
  " ",
4734
4726
  "to confirm:"
4735
4727
  ]
@@ -4746,16 +4738,16 @@ const Ws = [
4746
4738
  width: "100%",
4747
4739
  padding: "14px 16px",
4748
4740
  borderRadius: "10px",
4749
- border: `2px solid ${z ? i.success : i.error}`,
4741
+ border: `2px solid ${z ? o.success : o.error}`,
4750
4742
  backgroundColor: "transparent",
4751
- color: i.textPrimary,
4743
+ color: o.textPrimary,
4752
4744
  fontSize: "15px",
4753
4745
  outline: "none",
4754
4746
  transition: "all 0.2s ease",
4755
4747
  boxSizing: "border-box"
4756
4748
  },
4757
4749
  onFocus: (g) => {
4758
- g.target.style.boxShadow = `0 0 0 3px ${i.accent}20`;
4750
+ g.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
4759
4751
  },
4760
4752
  onBlur: (g) => {
4761
4753
  g.target.style.boxShadow = "none";
@@ -4771,7 +4763,7 @@ const Ws = [
4771
4763
  alignItems: "center",
4772
4764
  gap: "8px",
4773
4765
  marginTop: "10px",
4774
- color: i.success,
4766
+ color: o.success,
4775
4767
  fontSize: "14px",
4776
4768
  fontWeight: 500
4777
4769
  },
@@ -4802,18 +4794,18 @@ const Ws = [
4802
4794
  style: {
4803
4795
  padding: "10px 24px",
4804
4796
  borderRadius: "10px",
4805
- border: `1.5px solid ${i.border}`,
4797
+ border: `1.5px solid ${o.border}`,
4806
4798
  background: "transparent",
4807
- color: i.textPrimary,
4799
+ color: o.textPrimary,
4808
4800
  fontSize: "14px",
4809
4801
  fontWeight: 500,
4810
4802
  cursor: "pointer",
4811
- flex: m ? "none" : 1,
4812
- minWidth: m ? "100%" : "120px",
4803
+ flex: y ? "none" : 1,
4804
+ minWidth: y ? "100%" : "120px",
4813
4805
  transition: "all 0.2s ease"
4814
4806
  },
4815
4807
  onMouseOver: (g) => {
4816
- g.currentTarget.style.backgroundColor = i.border, g.currentTarget.style.transform = "translateY(-1px)";
4808
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4817
4809
  },
4818
4810
  onMouseOut: (g) => {
4819
4811
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4825,7 +4817,7 @@ const Ws = [
4825
4817
  "button",
4826
4818
  {
4827
4819
  onClick: R,
4828
- disabled: !z || u,
4820
+ disabled: !z || c,
4829
4821
  style: {
4830
4822
  padding: "10px 24px",
4831
4823
  borderRadius: "10px",
@@ -4834,22 +4826,22 @@ const Ws = [
4834
4826
  color: "white",
4835
4827
  fontSize: "14px",
4836
4828
  fontWeight: 600,
4837
- cursor: !z || u ? "not-allowed" : "pointer",
4838
- flex: m ? "none" : 1,
4839
- minWidth: m ? "100%" : "140px",
4840
- opacity: !z || u ? 0.6 : 1,
4829
+ cursor: !z || c ? "not-allowed" : "pointer",
4830
+ flex: y ? "none" : 1,
4831
+ minWidth: y ? "100%" : "140px",
4832
+ opacity: !z || c ? 0.6 : 1,
4841
4833
  display: "flex",
4842
4834
  alignItems: "center",
4843
4835
  justifyContent: "center",
4844
4836
  gap: "8px",
4845
4837
  transition: "all 0.2s ease",
4846
- boxShadow: !z || u ? "none" : "0 4px 12px rgba(239, 68, 68, 0.4)"
4838
+ boxShadow: !z || c ? "none" : "0 4px 12px rgba(239, 68, 68, 0.4)"
4847
4839
  },
4848
4840
  onMouseOver: (g) => {
4849
- z && !u && (g.currentTarget.style.transform = "translateY(-1px)", g.currentTarget.style.boxShadow = "0 6px 20px rgba(239, 68, 68, 0.5)");
4841
+ z && !c && (g.currentTarget.style.transform = "translateY(-1px)", g.currentTarget.style.boxShadow = "0 6px 20px rgba(239, 68, 68, 0.5)");
4850
4842
  },
4851
4843
  onMouseOut: (g) => {
4852
- z && !u && (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
4844
+ z && !c && (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
4853
4845
  },
4854
4846
  children: [
4855
4847
  /* @__PURE__ */ n.jsx(Ne, { size: 16 }),
@@ -4903,7 +4895,7 @@ const Ws = [
4903
4895
  "h3",
4904
4896
  {
4905
4897
  style: {
4906
- color: i.textPrimary,
4898
+ color: o.textPrimary,
4907
4899
  margin: 0,
4908
4900
  fontSize: "20px",
4909
4901
  fontWeight: 700,
@@ -4916,7 +4908,7 @@ const Ws = [
4916
4908
  "p",
4917
4909
  {
4918
4910
  style: {
4919
- color: i.textTertiary,
4911
+ color: o.textTertiary,
4920
4912
  margin: "4px 0 0 0",
4921
4913
  fontSize: "14px",
4922
4914
  lineHeight: "1.4"
@@ -4950,7 +4942,7 @@ const Ws = [
4950
4942
  padding: "12px",
4951
4943
  borderRadius: "8px",
4952
4944
  transition: "all 0.2s ease",
4953
- backgroundColor: g.active ? `${i.accent}10` : "transparent"
4945
+ backgroundColor: g.active ? `${o.accent}10` : "transparent"
4954
4946
  },
4955
4947
  children: [
4956
4948
  /* @__PURE__ */ n.jsx(
@@ -4960,9 +4952,9 @@ const Ws = [
4960
4952
  width: "8px",
4961
4953
  height: "8px",
4962
4954
  borderRadius: "50%",
4963
- backgroundColor: g.active ? i.accent : i.textTertiary,
4955
+ backgroundColor: g.active ? o.accent : o.textTertiary,
4964
4956
  transition: "all 0.3s ease",
4965
- boxShadow: g.active ? `0 0 0 4px ${i.accent}20` : "none"
4957
+ boxShadow: g.active ? `0 0 0 4px ${o.accent}20` : "none"
4966
4958
  }
4967
4959
  }
4968
4960
  ),
@@ -4971,7 +4963,7 @@ const Ws = [
4971
4963
  {
4972
4964
  style: {
4973
4965
  fontSize: "14px",
4974
- color: g.active ? i.textPrimary : i.textSecondary,
4966
+ color: g.active ? o.textPrimary : o.textSecondary,
4975
4967
  fontWeight: g.active ? 500 : 400
4976
4968
  },
4977
4969
  children: g.text
@@ -4991,17 +4983,17 @@ const Ws = [
4991
4983
  alignItems: "center",
4992
4984
  gap: "10px",
4993
4985
  padding: "16px",
4994
- background: `${i.accent}10`,
4986
+ background: `${o.accent}10`,
4995
4987
  borderRadius: "10px",
4996
4988
  fontSize: "14px",
4997
- color: i.textSecondary
4989
+ color: o.textSecondary
4998
4990
  },
4999
4991
  children: [
5000
4992
  /* @__PURE__ */ n.jsx(
5001
- cr,
4993
+ dr,
5002
4994
  {
5003
4995
  size: 18,
5004
- style: { color: i.accent, flexShrink: 0 }
4996
+ style: { color: o.accent, flexShrink: 0 }
5005
4997
  }
5006
4998
  ),
5007
4999
  /* @__PURE__ */ n.jsx("span", { children: "You will be redirected to the login page shortly" })
@@ -5043,7 +5035,7 @@ const Ws = [
5043
5035
  "h3",
5044
5036
  {
5045
5037
  style: {
5046
- color: i.textPrimary,
5038
+ color: o.textPrimary,
5047
5039
  margin: 0,
5048
5040
  fontSize: "20px",
5049
5041
  fontWeight: 700,
@@ -5056,7 +5048,7 @@ const Ws = [
5056
5048
  "p",
5057
5049
  {
5058
5050
  style: {
5059
- color: i.textTertiary,
5051
+ color: o.textTertiary,
5060
5052
  margin: "4px 0 0 0",
5061
5053
  fontSize: "14px",
5062
5054
  lineHeight: "1.4"
@@ -5074,8 +5066,8 @@ const Ws = [
5074
5066
  style: {
5075
5067
  textAlign: "center",
5076
5068
  padding: "20px",
5077
- background: `${i.success}10`,
5078
- border: `1px solid ${i.success}20`,
5069
+ background: `${o.success}10`,
5070
+ border: `1px solid ${o.success}20`,
5079
5071
  borderRadius: "12px",
5080
5072
  marginBottom: "24px"
5081
5073
  },
@@ -5085,7 +5077,7 @@ const Ws = [
5085
5077
  {
5086
5078
  size: 48,
5087
5079
  style: {
5088
- color: i.success,
5080
+ color: o.success,
5089
5081
  marginBottom: "12px",
5090
5082
  display: "block",
5091
5083
  margin: "0 auto 12px auto"
@@ -5096,7 +5088,7 @@ const Ws = [
5096
5088
  "p",
5097
5089
  {
5098
5090
  style: {
5099
- color: i.textPrimary,
5091
+ color: o.textPrimary,
5100
5092
  fontSize: "16px",
5101
5093
  fontWeight: 600,
5102
5094
  margin: "0 0 8px 0"
@@ -5108,7 +5100,7 @@ const Ws = [
5108
5100
  "p",
5109
5101
  {
5110
5102
  style: {
5111
- color: i.textSecondary,
5103
+ color: o.textSecondary,
5112
5104
  fontSize: "14px",
5113
5105
  margin: 0,
5114
5106
  lineHeight: "1.5"
@@ -5127,10 +5119,10 @@ const Ws = [
5127
5119
  alignItems: "center",
5128
5120
  gap: "10px",
5129
5121
  padding: "16px",
5130
- background: `${i.accent}10`,
5122
+ background: `${o.accent}10`,
5131
5123
  borderRadius: "10px",
5132
5124
  fontSize: "14px",
5133
- color: i.textSecondary,
5125
+ color: o.textSecondary,
5134
5126
  justifyContent: "center"
5135
5127
  },
5136
5128
  children: [
@@ -5140,7 +5132,7 @@ const Ws = [
5140
5132
  size: 16,
5141
5133
  style: {
5142
5134
  animation: "spin 1s linear infinite",
5143
- color: i.accent
5135
+ color: o.accent
5144
5136
  }
5145
5137
  }
5146
5138
  ),
@@ -5172,8 +5164,8 @@ const Ws = [
5172
5164
  "div",
5173
5165
  {
5174
5166
  style: {
5175
- backgroundColor: i.surface,
5176
- border: `1px solid ${i.border}`,
5167
+ backgroundColor: o.surface,
5168
+ border: `1px solid ${o.border}`,
5177
5169
  borderRadius: "20px",
5178
5170
  width: "100%",
5179
5171
  maxWidth: "480px",
@@ -5249,21 +5241,21 @@ const Ws = [
5249
5241
  onUpdate: r,
5250
5242
  colors: s
5251
5243
  }) => {
5252
- const [a, o] = P(""), [i, l] = P(!1), [h, c] = P(!1), [u, y] = P({ isValid: !1, message: "", type: null });
5244
+ const [a, i] = P(""), [o, l] = P(!1), [h, d] = P(!1), [c, m] = P({ isValid: !1, message: "", type: null });
5253
5245
  if (te(() => {
5254
5246
  if (typeof window > "u") return;
5255
- const d = () => {
5256
- c(window.innerWidth < 640);
5247
+ const u = () => {
5248
+ d(window.innerWidth < 640);
5257
5249
  };
5258
- return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
5250
+ return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5259
5251
  }, []), te(() => {
5260
5252
  if (!a.trim()) {
5261
- y({ isValid: !1, message: "", type: null });
5253
+ m({ isValid: !1, message: "", type: null });
5262
5254
  return;
5263
5255
  }
5264
5256
  try {
5265
- const d = new URL(a), j = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(d.pathname);
5266
- y(j ? {
5257
+ const u = new URL(a), j = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(u.pathname);
5258
+ m(j ? {
5267
5259
  isValid: !0,
5268
5260
  message: "Valid image URL",
5269
5261
  type: "success"
@@ -5273,7 +5265,7 @@ const Ws = [
5273
5265
  type: "warning"
5274
5266
  });
5275
5267
  } catch {
5276
- y({
5268
+ m({
5277
5269
  isValid: !1,
5278
5270
  message: "Please enter a valid URL",
5279
5271
  type: "error"
@@ -5281,16 +5273,16 @@ const Ws = [
5281
5273
  }
5282
5274
  }, [a]), !t) return null;
5283
5275
  const b = async () => {
5284
- if (!(!a || !u.isValid)) {
5276
+ if (!(!a || !c.isValid)) {
5285
5277
  l(!0);
5286
5278
  try {
5287
- await r(a) && (o(""), e());
5279
+ await r(a) && (i(""), e());
5288
5280
  } finally {
5289
5281
  l(!1);
5290
5282
  }
5291
5283
  }
5292
- }, w = (d) => {
5293
- d.target === d.currentTarget && e();
5284
+ }, w = (u) => {
5285
+ u.target === u.currentTarget && e();
5294
5286
  };
5295
5287
  return /* @__PURE__ */ n.jsxs(
5296
5288
  "div",
@@ -5397,11 +5389,11 @@ const Ws = [
5397
5389
  flexShrink: 0,
5398
5390
  transition: "all 0.2s ease"
5399
5391
  },
5400
- onMouseOver: (d) => {
5401
- d.currentTarget.style.backgroundColor = s.border, d.currentTarget.style.color = s.textPrimary;
5392
+ onMouseOver: (u) => {
5393
+ u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.color = s.textPrimary;
5402
5394
  },
5403
- onMouseOut: (d) => {
5404
- d.currentTarget.style.backgroundColor = "transparent", d.currentTarget.style.color = s.textTertiary;
5395
+ onMouseOut: (u) => {
5396
+ u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.color = s.textTertiary;
5405
5397
  },
5406
5398
  children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
5407
5399
  }
@@ -5446,13 +5438,13 @@ const Ws = [
5446
5438
  id: "avatar-url",
5447
5439
  placeholder: "https://example.com/your-avatar.jpg",
5448
5440
  value: a,
5449
- onChange: (d) => o(d.target.value),
5441
+ onChange: (u) => i(u.target.value),
5450
5442
  style: {
5451
5443
  width: "100%",
5452
5444
  padding: "14px 16px",
5453
5445
  paddingLeft: "44px",
5454
5446
  borderRadius: "12px",
5455
- border: `1.5px solid ${u.type === "error" ? s.error : u.type === "success" ? s.success : s.border}`,
5447
+ border: `1.5px solid ${c.type === "error" ? s.error : c.type === "success" ? s.success : s.border}`,
5456
5448
  backgroundColor: "transparent",
5457
5449
  color: s.textPrimary,
5458
5450
  fontSize: "15px",
@@ -5460,13 +5452,13 @@ const Ws = [
5460
5452
  transition: "all 0.2s ease",
5461
5453
  boxSizing: "border-box"
5462
5454
  },
5463
- onFocus: (d) => {
5464
- d.target.style.borderColor = s.accent, d.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5455
+ onFocus: (u) => {
5456
+ u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5465
5457
  },
5466
- onBlur: (d) => {
5467
- d.target.style.borderColor = u.type === "error" ? s.error : u.type === "success" ? s.success : s.border, d.target.style.boxShadow = "none";
5458
+ onBlur: (u) => {
5459
+ u.target.style.borderColor = c.type === "error" ? s.error : c.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5468
5460
  },
5469
- disabled: i
5461
+ disabled: o
5470
5462
  }
5471
5463
  ),
5472
5464
  /* @__PURE__ */ n.jsx(
@@ -5483,7 +5475,7 @@ const Ws = [
5483
5475
  }
5484
5476
  )
5485
5477
  ] }),
5486
- u.message && /* @__PURE__ */ n.jsxs(
5478
+ c.message && /* @__PURE__ */ n.jsxs(
5487
5479
  "div",
5488
5480
  {
5489
5481
  style: {
@@ -5492,18 +5484,18 @@ const Ws = [
5492
5484
  gap: "6px",
5493
5485
  marginTop: "8px",
5494
5486
  fontSize: "13px",
5495
- color: u.type === "success" ? s.success : u.type === "error" ? s.error : s.textTertiary
5487
+ color: c.type === "success" ? s.success : c.type === "error" ? s.error : s.textTertiary
5496
5488
  },
5497
5489
  children: [
5498
- u.type === "success" && /* @__PURE__ */ n.jsx(de, { size: 14 }),
5499
- u.type === "error" && /* @__PURE__ */ n.jsx(le, { size: 14 }),
5500
- u.type === "warning" && /* @__PURE__ */ n.jsx(le, { size: 14 }),
5501
- u.message
5490
+ c.type === "success" && /* @__PURE__ */ n.jsx(ce, { size: 14 }),
5491
+ c.type === "error" && /* @__PURE__ */ n.jsx(le, { size: 14 }),
5492
+ c.type === "warning" && /* @__PURE__ */ n.jsx(le, { size: 14 }),
5493
+ c.message
5502
5494
  ]
5503
5495
  }
5504
5496
  )
5505
5497
  ] }),
5506
- a && u.type === "success" && /* @__PURE__ */ n.jsxs(
5498
+ a && c.type === "success" && /* @__PURE__ */ n.jsxs(
5507
5499
  "div",
5508
5500
  {
5509
5501
  style: {
@@ -5539,8 +5531,8 @@ const Ws = [
5539
5531
  border: `2px solid ${s.success}40`,
5540
5532
  margin: "0 auto"
5541
5533
  },
5542
- onError: (d) => {
5543
- d.currentTarget.style.display = "none";
5534
+ onError: (u) => {
5535
+ u.currentTarget.style.display = "none";
5544
5536
  }
5545
5537
  }
5546
5538
  )
@@ -5566,7 +5558,7 @@ const Ws = [
5566
5558
  "button",
5567
5559
  {
5568
5560
  onClick: e,
5569
- disabled: i,
5561
+ disabled: o,
5570
5562
  style: {
5571
5563
  padding: "10px 24px",
5572
5564
  borderRadius: "10px",
@@ -5575,17 +5567,17 @@ const Ws = [
5575
5567
  color: s.textPrimary,
5576
5568
  fontSize: "14px",
5577
5569
  fontWeight: 500,
5578
- cursor: i ? "not-allowed" : "pointer",
5570
+ cursor: o ? "not-allowed" : "pointer",
5579
5571
  flex: h ? "none" : 1,
5580
5572
  minWidth: h ? "100%" : "120px",
5581
- opacity: i ? 0.6 : 1,
5573
+ opacity: o ? 0.6 : 1,
5582
5574
  transition: "all 0.2s ease"
5583
5575
  },
5584
- onMouseOver: (d) => {
5585
- i || (d.currentTarget.style.backgroundColor = s.border, d.currentTarget.style.transform = "translateY(-1px)");
5576
+ onMouseOver: (u) => {
5577
+ o || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5586
5578
  },
5587
- onMouseOut: (d) => {
5588
- i || (d.currentTarget.style.backgroundColor = "transparent", d.currentTarget.style.transform = "translateY(0)");
5579
+ onMouseOut: (u) => {
5580
+ o || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5589
5581
  },
5590
5582
  children: "Cancel"
5591
5583
  }
@@ -5594,7 +5586,7 @@ const Ws = [
5594
5586
  "button",
5595
5587
  {
5596
5588
  onClick: b,
5597
- disabled: i || !u.isValid,
5589
+ disabled: o || !c.isValid,
5598
5590
  style: {
5599
5591
  padding: "10px 24px",
5600
5592
  borderRadius: "10px",
@@ -5603,24 +5595,24 @@ const Ws = [
5603
5595
  color: "#fff",
5604
5596
  fontSize: "14px",
5605
5597
  fontWeight: 600,
5606
- cursor: i || !u.isValid ? "not-allowed" : "pointer",
5598
+ cursor: o || !c.isValid ? "not-allowed" : "pointer",
5607
5599
  flex: h ? "none" : 1,
5608
5600
  minWidth: h ? "100%" : "140px",
5609
- opacity: i || !u.isValid ? 0.6 : 1,
5601
+ opacity: o || !c.isValid ? 0.6 : 1,
5610
5602
  display: "flex",
5611
5603
  alignItems: "center",
5612
5604
  justifyContent: "center",
5613
5605
  gap: "8px",
5614
5606
  transition: "all 0.2s ease",
5615
- boxShadow: i || !u.isValid ? "none" : `0 4px 12px ${s.accent}40`
5607
+ boxShadow: o || !c.isValid ? "none" : `0 4px 12px ${s.accent}40`
5616
5608
  },
5617
- onMouseOver: (d) => {
5618
- !i && u.isValid && (d.currentTarget.style.transform = "translateY(-1px)", d.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5609
+ onMouseOver: (u) => {
5610
+ !o && c.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5619
5611
  },
5620
- onMouseOut: (d) => {
5621
- !i && u.isValid && (d.currentTarget.style.transform = "translateY(0)", d.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5612
+ onMouseOut: (u) => {
5613
+ !o && c.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5622
5614
  },
5623
- children: i ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5615
+ children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5624
5616
  /* @__PURE__ */ n.jsx(
5625
5617
  ae,
5626
5618
  {
@@ -5701,13 +5693,13 @@ const Ws = [
5701
5693
  onSuccess: r,
5702
5694
  onError: s,
5703
5695
  userId: a,
5704
- colors: o
5696
+ colors: i
5705
5697
  }) => {
5706
- const { baseUrl: i, apiKey: l, appId: h } = ge(), [c, u] = P({
5698
+ const { baseUrl: o, apiKey: l, appId: h } = ge(), [d, c] = P({
5707
5699
  currentPassword: "",
5708
5700
  newPassword: "",
5709
5701
  confirmPassword: ""
5710
- }), [y, b] = P({}), [w, d] = P(!1), [j, m] = P({
5702
+ }), [m, b] = P({}), [w, u] = P(!1), [j, y] = P({
5711
5703
  currentPassword: !1,
5712
5704
  newPassword: !1,
5713
5705
  confirmPassword: !1
@@ -5721,22 +5713,22 @@ const Ws = [
5721
5713
  }, []), !t) return null;
5722
5714
  const z = (S) => {
5723
5715
  const { name: U, value: W } = S.target;
5724
- u((F) => ({ ...F, [U]: W })), y[U] && b((F) => ({ ...F, [U]: "" }));
5716
+ c((F) => ({ ...F, [U]: W })), m[U] && b((F) => ({ ...F, [U]: "" }));
5725
5717
  }, C = (S) => {
5726
- m((U) => ({ ...U, [S]: !U[S] }));
5718
+ y((U) => ({ ...U, [S]: !U[S] }));
5727
5719
  }, q = () => {
5728
5720
  const S = {};
5729
- return c.currentPassword || (S.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (S.newPassword = "Password must be at least 6 characters") : S.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (S.confirmPassword = "Passwords do not match"), b(S), Object.keys(S).length === 0;
5721
+ return d.currentPassword || (S.currentPassword = "Current password is required"), d.newPassword ? d.newPassword.length < 6 && (S.newPassword = "Password must be at least 6 characters") : S.newPassword = "New password is required", d.newPassword !== d.confirmPassword && (S.confirmPassword = "Passwords do not match"), b(S), Object.keys(S).length === 0;
5730
5722
  }, g = async (S) => {
5731
5723
  if (S.preventDefault(), !!q()) {
5732
- d(!0);
5724
+ u(!0);
5733
5725
  try {
5734
5726
  const { data: U } = await M.put(
5735
- `${i}/users/change-password/${a}`,
5727
+ `${o}/users/change-password/${a}`,
5736
5728
  {
5737
5729
  appId: h,
5738
- currentPassword: c.currentPassword,
5739
- newPassword: c.newPassword
5730
+ currentPassword: d.currentPassword,
5731
+ newPassword: d.newPassword
5740
5732
  },
5741
5733
  {
5742
5734
  headers: {
@@ -5744,7 +5736,7 @@ const Ws = [
5744
5736
  }
5745
5737
  }
5746
5738
  );
5747
- U.success ? (r(U.message || "Password updated successfully"), u({
5739
+ U.success ? (r(U.message || "Password updated successfully"), c({
5748
5740
  currentPassword: "",
5749
5741
  newPassword: "",
5750
5742
  confirmPassword: ""
@@ -5752,14 +5744,14 @@ const Ws = [
5752
5744
  } catch (U) {
5753
5745
  s(U.response?.data?.message || "Something went wrong");
5754
5746
  } finally {
5755
- d(!1);
5747
+ u(!1);
5756
5748
  }
5757
5749
  }
5758
5750
  }, I = [
5759
5751
  {
5760
5752
  field: "currentPassword",
5761
5753
  label: "Current Password",
5762
- icon: /* @__PURE__ */ n.jsx(dt, { size: 18 })
5754
+ icon: /* @__PURE__ */ n.jsx(ct, { size: 18 })
5763
5755
  },
5764
5756
  {
5765
5757
  field: "newPassword",
@@ -5790,8 +5782,8 @@ const Ws = [
5790
5782
  "div",
5791
5783
  {
5792
5784
  style: {
5793
- backgroundColor: o.surface,
5794
- border: `1px solid ${o.border}`,
5785
+ backgroundColor: i.surface,
5786
+ border: `1px solid ${i.border}`,
5795
5787
  borderRadius: "16px",
5796
5788
  maxWidth: "440px",
5797
5789
  width: "100%",
@@ -5830,11 +5822,11 @@ const Ws = [
5830
5822
  width: "40px",
5831
5823
  height: "40px",
5832
5824
  borderRadius: "10px",
5833
- background: `linear-gradient(135deg, ${o.accent}20, ${o.accent}40)`,
5825
+ background: `linear-gradient(135deg, ${i.accent}20, ${i.accent}40)`,
5834
5826
  display: "flex",
5835
5827
  alignItems: "center",
5836
5828
  justifyContent: "center",
5837
- color: o.accent,
5829
+ color: i.accent,
5838
5830
  flexShrink: 0
5839
5831
  },
5840
5832
  children: /* @__PURE__ */ n.jsx(me, { size: 20 })
@@ -5844,7 +5836,7 @@ const Ws = [
5844
5836
  "h3",
5845
5837
  {
5846
5838
  style: {
5847
- color: o.textPrimary,
5839
+ color: i.textPrimary,
5848
5840
  margin: 0,
5849
5841
  fontSize: "18px",
5850
5842
  fontWeight: 600,
@@ -5864,7 +5856,7 @@ const Ws = [
5864
5856
  style: {
5865
5857
  background: "transparent",
5866
5858
  border: "none",
5867
- color: o.textTertiary,
5859
+ color: i.textTertiary,
5868
5860
  cursor: "pointer",
5869
5861
  padding: "8px",
5870
5862
  borderRadius: "8px",
@@ -5876,10 +5868,10 @@ const Ws = [
5876
5868
  justifyContent: "center"
5877
5869
  },
5878
5870
  onMouseOver: (S) => {
5879
- S.currentTarget.style.backgroundColor = o.border, S.currentTarget.style.color = o.textPrimary;
5871
+ S.currentTarget.style.backgroundColor = i.border, S.currentTarget.style.color = i.textPrimary;
5880
5872
  },
5881
5873
  onMouseOut: (S) => {
5882
- S.currentTarget.style.backgroundColor = "transparent", S.currentTarget.style.color = o.textTertiary;
5874
+ S.currentTarget.style.backgroundColor = "transparent", S.currentTarget.style.color = i.textTertiary;
5883
5875
  },
5884
5876
  children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
5885
5877
  }
@@ -5903,7 +5895,7 @@ const Ws = [
5903
5895
  style: {
5904
5896
  display: "block",
5905
5897
  marginBottom: "8px",
5906
- color: o.textPrimary,
5898
+ color: i.textPrimary,
5907
5899
  fontSize: "14px",
5908
5900
  fontWeight: 500,
5909
5901
  lineHeight: "1.4"
@@ -5920,7 +5912,7 @@ const Ws = [
5920
5912
  left: "14px",
5921
5913
  top: "50%",
5922
5914
  transform: "translateY(-50%)",
5923
- color: o.textTertiary,
5915
+ color: i.textTertiary,
5924
5916
  zIndex: 2
5925
5917
  },
5926
5918
  children: W
@@ -5933,25 +5925,25 @@ const Ws = [
5933
5925
  id: S,
5934
5926
  name: S,
5935
5927
  placeholder: `Enter ${U.toLowerCase()}`,
5936
- value: c[S],
5928
+ value: d[S],
5937
5929
  onChange: z,
5938
5930
  style: {
5939
5931
  width: "100%",
5940
5932
  padding: "14px 48px 14px 44px",
5941
5933
  borderRadius: "10px",
5942
- border: `1.5px solid ${y[S] ? o.error : o.border}`,
5934
+ border: `1.5px solid ${m[S] ? i.error : i.border}`,
5943
5935
  backgroundColor: "transparent",
5944
- color: o.textPrimary,
5936
+ color: i.textPrimary,
5945
5937
  fontSize: "15px",
5946
5938
  outline: "none",
5947
5939
  transition: "all 0.2s ease",
5948
5940
  boxSizing: "border-box"
5949
5941
  },
5950
5942
  onFocus: (F) => {
5951
- F.target.style.borderColor = o.accent, F.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
5943
+ F.target.style.borderColor = i.accent, F.target.style.boxShadow = `0 0 0 3px ${i.accent}20`;
5952
5944
  },
5953
5945
  onBlur: (F) => {
5954
- F.target.style.borderColor = y[S] ? o.error : o.border, F.target.style.boxShadow = "none";
5946
+ F.target.style.borderColor = m[S] ? i.error : i.border, F.target.style.boxShadow = "none";
5955
5947
  }
5956
5948
  }
5957
5949
  ),
@@ -5968,7 +5960,7 @@ const Ws = [
5968
5960
  background: "transparent",
5969
5961
  border: "none",
5970
5962
  cursor: "pointer",
5971
- color: o.textTertiary,
5963
+ color: i.textTertiary,
5972
5964
  padding: "4px",
5973
5965
  borderRadius: "4px",
5974
5966
  width: "32px",
@@ -5978,21 +5970,21 @@ const Ws = [
5978
5970
  justifyContent: "center"
5979
5971
  },
5980
5972
  onMouseOver: (F) => {
5981
- F.currentTarget.style.backgroundColor = o.border, F.currentTarget.style.color = o.textPrimary;
5973
+ F.currentTarget.style.backgroundColor = i.border, F.currentTarget.style.color = i.textPrimary;
5982
5974
  },
5983
5975
  onMouseOut: (F) => {
5984
- F.currentTarget.style.backgroundColor = "transparent", F.currentTarget.style.color = o.textTertiary;
5976
+ F.currentTarget.style.backgroundColor = "transparent", F.currentTarget.style.color = i.textTertiary;
5985
5977
  },
5986
- children: j[S] ? /* @__PURE__ */ n.jsx(ot, { size: 18 }) : /* @__PURE__ */ n.jsx(lt, { size: 18 })
5978
+ children: j[S] ? /* @__PURE__ */ n.jsx(it, { size: 18 }) : /* @__PURE__ */ n.jsx(lt, { size: 18 })
5987
5979
  }
5988
5980
  )
5989
5981
  ] }),
5990
- y[S] && /* @__PURE__ */ n.jsxs(
5982
+ m[S] && /* @__PURE__ */ n.jsxs(
5991
5983
  "div",
5992
5984
  {
5993
5985
  style: {
5994
5986
  fontSize: "13px",
5995
- color: o.error,
5987
+ color: i.error,
5996
5988
  marginTop: "6px",
5997
5989
  display: "flex",
5998
5990
  alignItems: "center",
@@ -6000,7 +5992,7 @@ const Ws = [
6000
5992
  },
6001
5993
  children: [
6002
5994
  /* @__PURE__ */ n.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
6003
- y[S]
5995
+ m[S]
6004
5996
  ]
6005
5997
  }
6006
5998
  )
@@ -6028,9 +6020,9 @@ const Ws = [
6028
6020
  style: {
6029
6021
  padding: "14px 24px",
6030
6022
  borderRadius: "10px",
6031
- border: `1.5px solid ${o.border}`,
6023
+ border: `1.5px solid ${i.border}`,
6032
6024
  background: "transparent",
6033
- color: o.textPrimary,
6025
+ color: i.textPrimary,
6034
6026
  fontSize: "14px",
6035
6027
  fontWeight: 500,
6036
6028
  cursor: w ? "not-allowed" : "pointer",
@@ -6040,7 +6032,7 @@ const Ws = [
6040
6032
  transition: "all 0.2s ease"
6041
6033
  },
6042
6034
  onMouseOver: (S) => {
6043
- w || (S.currentTarget.style.backgroundColor = o.border, S.currentTarget.style.transform = "translateY(-1px)");
6035
+ w || (S.currentTarget.style.backgroundColor = i.border, S.currentTarget.style.transform = "translateY(-1px)");
6044
6036
  },
6045
6037
  onMouseOut: (S) => {
6046
6038
  w || (S.currentTarget.style.backgroundColor = "transparent", S.currentTarget.style.transform = "translateY(0)");
@@ -6057,7 +6049,7 @@ const Ws = [
6057
6049
  padding: "14px 24px",
6058
6050
  borderRadius: "10px",
6059
6051
  border: "none",
6060
- background: `linear-gradient(135deg, ${o.accent}, ${o.accent}E6)`,
6052
+ background: `linear-gradient(135deg, ${i.accent}, ${i.accent}E6)`,
6061
6053
  color: "#fff",
6062
6054
  fontSize: "14px",
6063
6055
  fontWeight: 600,
@@ -6070,13 +6062,13 @@ const Ws = [
6070
6062
  justifyContent: "center",
6071
6063
  gap: "8px",
6072
6064
  transition: "all 0.2s ease",
6073
- boxShadow: w ? "none" : `0 4px 12px ${o.accent}40`
6065
+ boxShadow: w ? "none" : `0 4px 12px ${i.accent}40`
6074
6066
  },
6075
6067
  onMouseOver: (S) => {
6076
- w || (S.currentTarget.style.transform = "translateY(-1px)", S.currentTarget.style.boxShadow = `0 6px 20px ${o.accent}60`);
6068
+ w || (S.currentTarget.style.transform = "translateY(-1px)", S.currentTarget.style.boxShadow = `0 6px 20px ${i.accent}60`);
6077
6069
  },
6078
6070
  onMouseOut: (S) => {
6079
- w || (S.currentTarget.style.transform = "translateY(0)", S.currentTarget.style.boxShadow = `0 4px 12px ${o.accent}40`);
6071
+ w || (S.currentTarget.style.transform = "translateY(0)", S.currentTarget.style.boxShadow = `0 4px 12px ${i.accent}40`);
6080
6072
  },
6081
6073
  children: w ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6082
6074
  /* @__PURE__ */ n.jsx(
@@ -6111,12 +6103,12 @@ const Ws = [
6111
6103
  }
6112
6104
 
6113
6105
  .change-password-modal::-webkit-scrollbar-thumb {
6114
- background: ${o.border};
6106
+ background: ${i.border};
6115
6107
  border-radius: 3px;
6116
6108
  }
6117
6109
 
6118
6110
  .change-password-modal::-webkit-scrollbar-thumb:hover {
6119
- background: ${o.textTertiary};
6111
+ background: ${i.textTertiary};
6120
6112
  }
6121
6113
 
6122
6114
  /* Mobile responsiveness */
@@ -6146,23 +6138,23 @@ const Ws = [
6146
6138
  onVerify: r,
6147
6139
  onSendOTP: s,
6148
6140
  verifyFormData: a,
6149
- setVerifyFormData: o,
6150
- otpSent: i,
6141
+ setVerifyFormData: i,
6142
+ otpSent: o,
6151
6143
  verifying: l,
6152
6144
  user: h,
6153
- colors: c,
6154
- darkMode: u
6145
+ colors: d,
6146
+ darkMode: c
6155
6147
  }) => {
6156
6148
  if (!t) return null;
6157
- const y = () => {
6158
- e(), o({ email: h?.email || "", otp: "", appId: a.appId });
6149
+ const m = () => {
6150
+ e(), i({ email: h?.email || "", otp: "", appId: a.appId });
6159
6151
  };
6160
6152
  return /* @__PURE__ */ n.jsxs(
6161
6153
  "div",
6162
6154
  {
6163
6155
  className: "modal-overlay",
6164
6156
  style: {
6165
- backgroundColor: u ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6157
+ backgroundColor: c ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6166
6158
  },
6167
6159
  children: [
6168
6160
  /* @__PURE__ */ n.jsxs(
@@ -6170,18 +6162,18 @@ const Ws = [
6170
6162
  {
6171
6163
  className: "verify-email-modal",
6172
6164
  style: {
6173
- backgroundColor: c.surface,
6174
- border: `1px solid ${c.border}`
6165
+ backgroundColor: d.surface,
6166
+ border: `1px solid ${d.border}`
6175
6167
  },
6176
6168
  children: [
6177
6169
  /* @__PURE__ */ n.jsxs("div", { className: "modal-header", children: [
6178
- /* @__PURE__ */ n.jsx("h3", { style: { color: c.textPrimary }, children: "Verify Your Email" }),
6170
+ /* @__PURE__ */ n.jsx("h3", { style: { color: d.textPrimary }, children: "Verify Your Email" }),
6179
6171
  /* @__PURE__ */ n.jsx(
6180
6172
  "button",
6181
6173
  {
6182
- onClick: y,
6174
+ onClick: m,
6183
6175
  className: "close-btn",
6184
- style: { color: c.textTertiary },
6176
+ style: { color: d.textTertiary },
6185
6177
  "aria-label": "Close verification modal",
6186
6178
  children: /* @__PURE__ */ n.jsx(Pe, { size: 20, "aria-hidden": "true" })
6187
6179
  }
@@ -6189,20 +6181,20 @@ const Ws = [
6189
6181
  ] }),
6190
6182
  /* @__PURE__ */ n.jsxs("form", { className: "verify-form", onSubmit: r, children: [
6191
6183
  /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6192
- /* @__PURE__ */ n.jsx("label", { style: { color: c.textSecondary }, children: "Email" }),
6184
+ /* @__PURE__ */ n.jsx("label", { style: { color: d.textSecondary }, children: "Email" }),
6193
6185
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6194
- /* @__PURE__ */ n.jsx(ce, { size: 18, style: { color: c.textTertiary }, "aria-hidden": "true" }),
6186
+ /* @__PURE__ */ n.jsx(de, { size: 18, style: { color: d.textTertiary }, "aria-hidden": "true" }),
6195
6187
  /* @__PURE__ */ n.jsx(
6196
6188
  "input",
6197
6189
  {
6198
6190
  type: "email",
6199
6191
  value: a.email,
6200
- onChange: (b) => o((w) => ({ ...w, email: b.target.value })),
6192
+ onChange: (b) => i((w) => ({ ...w, email: b.target.value })),
6201
6193
  placeholder: "Enter your email",
6202
6194
  style: {
6203
- backgroundColor: c.surfaceLight,
6204
- color: c.textPrimary,
6205
- borderColor: c.border
6195
+ backgroundColor: d.surfaceLight,
6196
+ color: d.textPrimary,
6197
+ borderColor: d.border
6206
6198
  },
6207
6199
  required: !0,
6208
6200
  "aria-required": "true",
@@ -6211,21 +6203,21 @@ const Ws = [
6211
6203
  )
6212
6204
  ] })
6213
6205
  ] }),
6214
- i && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6215
- /* @__PURE__ */ n.jsx("label", { style: { color: c.textSecondary }, children: "OTP" }),
6206
+ o && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6207
+ /* @__PURE__ */ n.jsx("label", { style: { color: d.textSecondary }, children: "OTP" }),
6216
6208
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6217
- /* @__PURE__ */ n.jsx(dr, { size: 18, style: { color: c.textTertiary }, "aria-hidden": "true" }),
6209
+ /* @__PURE__ */ n.jsx(cr, { size: 18, style: { color: d.textTertiary }, "aria-hidden": "true" }),
6218
6210
  /* @__PURE__ */ n.jsx(
6219
6211
  "input",
6220
6212
  {
6221
6213
  type: "text",
6222
6214
  value: a.otp,
6223
- onChange: (b) => o((w) => ({ ...w, otp: b.target.value })),
6215
+ onChange: (b) => i((w) => ({ ...w, otp: b.target.value })),
6224
6216
  placeholder: "Enter OTP",
6225
6217
  style: {
6226
- backgroundColor: c.surfaceLight,
6227
- color: c.textPrimary,
6228
- borderColor: c.border
6218
+ backgroundColor: d.surfaceLight,
6219
+ color: d.textPrimary,
6220
+ borderColor: d.border
6229
6221
  },
6230
6222
  required: !0,
6231
6223
  "aria-required": "true",
@@ -6234,19 +6226,19 @@ const Ws = [
6234
6226
  )
6235
6227
  ] })
6236
6228
  ] }),
6237
- /* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: i ? /* @__PURE__ */ n.jsxs(
6229
+ /* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ n.jsxs(
6238
6230
  "button",
6239
6231
  {
6240
6232
  type: "submit",
6241
6233
  disabled: l,
6242
6234
  className: "btn-primary",
6243
6235
  style: {
6244
- background: `linear-gradient(to right, ${c.accent}, ${c.accentHover})`,
6236
+ background: `linear-gradient(to right, ${d.accent}, ${d.accentHover})`,
6245
6237
  opacity: l ? 0.7 : 1
6246
6238
  },
6247
6239
  "aria-label": l ? "Verifying email" : "Verify email",
6248
6240
  children: [
6249
- l ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }),
6241
+ l ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
6250
6242
  l ? "Verifying..." : "Verify Email"
6251
6243
  ]
6252
6244
  }
@@ -6258,7 +6250,7 @@ const Ws = [
6258
6250
  disabled: l,
6259
6251
  className: "btn-primary",
6260
6252
  style: {
6261
- background: `linear-gradient(to right, ${c.accent}, ${c.accentHover})`,
6253
+ background: `linear-gradient(to right, ${d.accent}, ${d.accentHover})`,
6262
6254
  opacity: l ? 0.7 : 1
6263
6255
  },
6264
6256
  "aria-label": l ? "Sending OTP" : "Send OTP",
@@ -6321,7 +6313,7 @@ const Ws = [
6321
6313
  }
6322
6314
 
6323
6315
  .close-btn:hover {
6324
- background-color: ${u ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6316
+ background-color: ${c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6325
6317
  }
6326
6318
 
6327
6319
  .verify-form {
@@ -6365,8 +6357,8 @@ const Ws = [
6365
6357
  }
6366
6358
 
6367
6359
  .input-container input:focus {
6368
- border-color: ${c.accent};
6369
- box-shadow: 0 0 0 3px ${c.accent}20;
6360
+ border-color: ${d.accent};
6361
+ box-shadow: 0 0 0 3px ${d.accent}20;
6370
6362
  }
6371
6363
 
6372
6364
  .modal-actions {
@@ -6429,17 +6421,17 @@ const Ws = [
6429
6421
  darkMode: r = !0,
6430
6422
  homeUrl: s,
6431
6423
  onLogout: a,
6432
- onVerify: o,
6433
- primaryColor: i = "#00C212"
6424
+ onVerify: i,
6425
+ primaryColor: o = "#00C212"
6434
6426
  }) => {
6435
- const { baseUrl: l, apiKey: h, appId: c } = ge(), [u, y] = P(null), [b, w] = P(e), [d, j] = P(!0), [m, $] = P(!1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(!1), [S, U] = P(!1), [W, F] = P(!1), [V, Z] = P(!1), [T, J] = P(!1), [A, O] = P(null), [K, Q] = P(!1), [G, f] = P({
6427
+ const { baseUrl: l, apiKey: h, appId: d } = ge(), [c, m] = P(null), [b, w] = P(e), [u, j] = P(!0), [y, $] = P(!1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(!1), [S, U] = P(!1), [W, F] = P(!1), [V, Z] = P(!1), [T, J] = P(!1), [A, O] = P(null), [K, Q] = P(!1), [G, f] = P({
6436
6428
  email: "",
6437
6429
  otp: "",
6438
- appId: c
6430
+ appId: d
6439
6431
  }), [v, x] = P(!1), [k, _] = P(!1);
6440
6432
  te(() => {
6441
6433
  if (typeof window < "u") {
6442
- const E = () => y(window.innerWidth);
6434
+ const E = () => m(window.innerWidth);
6443
6435
  return E(), window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
6444
6436
  }
6445
6437
  }, []);
@@ -6472,7 +6464,7 @@ const Ws = [
6472
6464
  `${l}/users/send-verify-otp/${b?.id}`,
6473
6465
  { email: G.email },
6474
6466
  {
6475
- headers: { "x-api-key": h, "x-app-id": c }
6467
+ headers: { "x-api-key": h, "x-app-id": d }
6476
6468
  }
6477
6469
  );
6478
6470
  E.data.success ? (N("success", E.data.message || "OTP sent to email!"), x(!0)) : N("error", E.data.message || "Failed to send OTP");
@@ -6498,9 +6490,9 @@ const Ws = [
6498
6490
  w(X), localStorage.setItem(
6499
6491
  "userInfo",
6500
6492
  JSON.stringify({ ...X, token: t })
6501
- ), typeof o == "function" && o(X);
6493
+ ), typeof i == "function" && i(X);
6502
6494
  }
6503
- f({ email: "", otp: "", appId: c }), x(!1), F(!1);
6495
+ f({ email: "", otp: "", appId: d }), x(!1), F(!1);
6504
6496
  } else
6505
6497
  N("error", H.data.message || "Verification failed");
6506
6498
  } catch (H) {
@@ -6548,7 +6540,7 @@ const Ws = [
6548
6540
  }, pt = async (E) => {
6549
6541
  try {
6550
6542
  const { data: H } = await M.get(
6551
- `${l}/users/check-user/${E}?appId=${c}`,
6543
+ `${l}/users/check-user/${E}?appId=${d}`,
6552
6544
  { headers: { "x-api-key": h } }
6553
6545
  );
6554
6546
  H?.success === !0 && H?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), w(null));
@@ -6583,8 +6575,8 @@ const Ws = [
6583
6575
  textPrimary: "#ffffff",
6584
6576
  textSecondary: "#d4d4d8",
6585
6577
  textTertiary: "#a1a1aa",
6586
- accent: i,
6587
- accentHover: ft(i, -15),
6578
+ accent: o,
6579
+ accentHover: ft(o, -15),
6588
6580
  success: "#10b981",
6589
6581
  error: "#ef4444",
6590
6582
  border: "#27272a",
@@ -6597,14 +6589,14 @@ const Ws = [
6597
6589
  textPrimary: "#18181b",
6598
6590
  textSecondary: "#52525b",
6599
6591
  textTertiary: "#71717a",
6600
- accent: i,
6601
- accentHover: ft(i, -15),
6592
+ accent: o,
6593
+ accentHover: ft(o, -15),
6602
6594
  success: "#10b981",
6603
6595
  error: "#ef4444",
6604
6596
  border: "#e4e4e7",
6605
6597
  warning: "#d97706"
6606
6598
  };
6607
- if (d)
6599
+ if (u)
6608
6600
  return /* @__PURE__ */ n.jsx(
6609
6601
  "div",
6610
6602
  {
@@ -6687,7 +6679,7 @@ const Ws = [
6687
6679
  value: b.email,
6688
6680
  name: "email",
6689
6681
  type: "email",
6690
- icon: ce
6682
+ icon: de
6691
6683
  },
6692
6684
  {
6693
6685
  label: "Phone Number",
@@ -6751,7 +6743,7 @@ const Ws = [
6751
6743
  role: "alert",
6752
6744
  "aria-live": "polite",
6753
6745
  children: [
6754
- A.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(le, { size: 20, "aria-hidden": "true" }),
6746
+ A.type === "success" ? /* @__PURE__ */ n.jsx(ce, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(le, { size: 20, "aria-hidden": "true" }),
6755
6747
  A.message
6756
6748
  ]
6757
6749
  }
@@ -6772,14 +6764,14 @@ const Ws = [
6772
6764
  display: "grid",
6773
6765
  gap: "24px",
6774
6766
  gridTemplateColumns: "1fr",
6775
- ...u && window.innerWidth >= 1024 && {
6767
+ ...c && window.innerWidth >= 1024 && {
6776
6768
  gridTemplateColumns: "1fr 2fr",
6777
6769
  gap: "10px"
6778
6770
  },
6779
- ...u && window.innerWidth >= 768 && u && window.innerWidth < 1024 && {
6771
+ ...c && window.innerWidth >= 768 && c && window.innerWidth < 1024 && {
6780
6772
  gap: "10px"
6781
6773
  },
6782
- ...u && window.innerWidth >= 600 && u && window.innerWidth < 768 && {
6774
+ ...c && window.innerWidth >= 600 && c && window.innerWidth < 768 && {
6783
6775
  gap: "28px"
6784
6776
  }
6785
6777
  },
@@ -6926,7 +6918,7 @@ const Ws = [
6926
6918
  marginTop: "8px"
6927
6919
  },
6928
6920
  children: [
6929
- b.isVerified ? /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(le, { size: 16, "aria-hidden": "true" }),
6921
+ b.isVerified ? /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(le, { size: 16, "aria-hidden": "true" }),
6930
6922
  b.isVerified ? "Email Verified" : "Not Verified"
6931
6923
  ]
6932
6924
  }
@@ -6942,7 +6934,7 @@ const Ws = [
6942
6934
  flexDirection: "column",
6943
6935
  gap: "6px"
6944
6936
  },
6945
- children: m ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6937
+ children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6946
6938
  /* @__PURE__ */ n.jsxs(
6947
6939
  "button",
6948
6940
  {
@@ -6964,7 +6956,7 @@ const Ws = [
6964
6956
  gap: "8px",
6965
6957
  textDecoration: "none",
6966
6958
  minHeight: "36px",
6967
- flex: u && window.innerWidth < 1024 ? "1" : "auto"
6959
+ flex: c && window.innerWidth < 1024 ? "1" : "auto"
6968
6960
  },
6969
6961
  children: [
6970
6962
  /* @__PURE__ */ n.jsx(Pe, { size: 16, "aria-hidden": "true" }),
@@ -6994,7 +6986,7 @@ const Ws = [
6994
6986
  gap: "8px",
6995
6987
  textDecoration: "none",
6996
6988
  minHeight: "36px",
6997
- flex: u && window.innerWidth < 1024 ? "1" : "auto"
6989
+ flex: c && window.innerWidth < 1024 ? "1" : "auto"
6998
6990
  },
6999
6991
  children: [
7000
6992
  R ? /* @__PURE__ */ n.jsx(
@@ -7030,7 +7022,7 @@ const Ws = [
7030
7022
  gap: "8px",
7031
7023
  textDecoration: "none",
7032
7024
  minHeight: "36px",
7033
- flex: u && window.innerWidth < 1024 ? "1" : "auto"
7025
+ flex: c && window.innerWidth < 1024 ? "1" : "auto"
7034
7026
  },
7035
7027
  children: [
7036
7028
  /* @__PURE__ */ n.jsx(Is, { size: 16, "aria-hidden": "true" }),
@@ -7060,7 +7052,7 @@ const Ws = [
7060
7052
  gap: "8px",
7061
7053
  minHeight: "36px",
7062
7054
  opacity: K ? 0.7 : 1,
7063
- flex: u && window.innerWidth < 1024 ? "1" : "auto"
7055
+ flex: c && window.innerWidth < 1024 ? "1" : "auto"
7064
7056
  },
7065
7057
  children: [
7066
7058
  K ? /* @__PURE__ */ n.jsx(
@@ -7100,7 +7092,7 @@ const Ws = [
7100
7092
  },
7101
7093
  onClick: () => Z(!V),
7102
7094
  children: [
7103
- /* @__PURE__ */ n.jsx(cs, { size: 16, "aria-hidden": "true" }),
7095
+ /* @__PURE__ */ n.jsx(ds, { size: 16, "aria-hidden": "true" }),
7104
7096
  "More Actions"
7105
7097
  ]
7106
7098
  }
@@ -7148,7 +7140,7 @@ const Ws = [
7148
7140
  onMouseEnter: (E) => E.currentTarget.style.backgroundColor = D.surfaceLight,
7149
7141
  onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
7150
7142
  children: [
7151
- /* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
7143
+ /* @__PURE__ */ n.jsx(ct, { size: 14, "aria-hidden": "true" }),
7152
7144
  "Change Password"
7153
7145
  ]
7154
7146
  }
@@ -7179,7 +7171,7 @@ const Ws = [
7179
7171
  },
7180
7172
  onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
7181
7173
  children: [
7182
- /* @__PURE__ */ n.jsx(ct, { size: 14, "aria-hidden": "true" }),
7174
+ /* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
7183
7175
  "Logout"
7184
7176
  ]
7185
7177
  }
@@ -7270,7 +7262,7 @@ const Ws = [
7270
7262
  display: "grid",
7271
7263
  gap: "20px",
7272
7264
  gridTemplateColumns: "1fr",
7273
- ...u && window.innerWidth >= 600 && {
7265
+ ...c && window.innerWidth >= 600 && {
7274
7266
  gridTemplateColumns: "1fr 1fr",
7275
7267
  gap: "20px"
7276
7268
  }
@@ -7303,7 +7295,7 @@ const Ws = [
7303
7295
  ]
7304
7296
  }
7305
7297
  ),
7306
- m ? /* @__PURE__ */ n.jsx(
7298
+ y ? /* @__PURE__ */ n.jsx(
7307
7299
  "input",
7308
7300
  {
7309
7301
  type: E.type,
@@ -7315,7 +7307,7 @@ const Ws = [
7315
7307
  style: {
7316
7308
  padding: "12px",
7317
7309
  borderRadius: "8px",
7318
- border: `1px solid ${i}`,
7310
+ border: `1px solid ${o}`,
7319
7311
  backgroundColor: "transparent",
7320
7312
  color: D.textPrimary,
7321
7313
  fontSize: "12px",
@@ -7379,7 +7371,7 @@ const Ws = [
7379
7371
  gap: "8px"
7380
7372
  },
7381
7373
  children: [
7382
- /* @__PURE__ */ n.jsx(cr, { size: 20, "aria-hidden": "true" }),
7374
+ /* @__PURE__ */ n.jsx(dr, { size: 20, "aria-hidden": "true" }),
7383
7375
  "Security Status"
7384
7376
  ]
7385
7377
  }
@@ -7413,7 +7405,7 @@ const Ws = [
7413
7405
  color: D.textSecondary
7414
7406
  },
7415
7407
  children: [
7416
- /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
7408
+ /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }),
7417
7409
  /* @__PURE__ */ n.jsx("span", { children: "Email Verification" })
7418
7410
  ]
7419
7411
  }
@@ -7440,7 +7432,7 @@ const Ws = [
7440
7432
  }
7441
7433
  },
7442
7434
  children: b.isVerified ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7443
- /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }),
7435
+ /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
7444
7436
  "Verified"
7445
7437
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7446
7438
  /* @__PURE__ */ n.jsx(le, { size: 16, "aria-hidden": "true" }),
@@ -7502,7 +7494,7 @@ const Ws = [
7502
7494
  {
7503
7495
  baseUrl: l,
7504
7496
  apiKey: h,
7505
- appId: c,
7497
+ appId: d,
7506
7498
  userId: b.id,
7507
7499
  isOpen: g,
7508
7500
  onClose: () => I(!1),
@@ -7516,7 +7508,7 @@ const Ws = [
7516
7508
  {
7517
7509
  baseUrl: l,
7518
7510
  apiKey: h,
7519
- appId: c,
7511
+ appId: d,
7520
7512
  userId: b.id,
7521
7513
  token: t,
7522
7514
  isOpen: S,
@@ -7531,7 +7523,7 @@ const Ws = [
7531
7523
  {
7532
7524
  isOpen: W,
7533
7525
  onClose: () => {
7534
- F(!1), x(!1), f({ email: b?.email || "", otp: "", appId: c });
7526
+ F(!1), x(!1), f({ email: b?.email || "", otp: "", appId: d });
7535
7527
  },
7536
7528
  onVerify: ue,
7537
7529
  onSendOTP: se,
@@ -7642,21 +7634,21 @@ const Ws = [
7642
7634
  onLogout: r,
7643
7635
  varient: s = "classic",
7644
7636
  propUser: a,
7645
- className: o = "",
7637
+ className: i = "",
7646
7638
  // New URL props with defaults
7647
- profileUrl: i,
7639
+ profileUrl: o,
7648
7640
  settingsUrl: l,
7649
7641
  // Menu item visibility with defaults
7650
7642
  showProfileMenuItem: h = !0,
7651
- showSettingsMenuItem: c = !0,
7652
- showViewProfileMenuItem: u = !0,
7643
+ showSettingsMenuItem: d = !0,
7644
+ showViewProfileMenuItem: c = !0,
7653
7645
  // Custom labels with defaults
7654
- profileLabel: y = "My Profile",
7646
+ profileLabel: m = "My Profile",
7655
7647
  settingsLabel: b = "Settings",
7656
7648
  viewProfileLabel: w = "View Profile",
7657
- logoutLabel: d = "Sign Out"
7649
+ logoutLabel: u = "Sign Out"
7658
7650
  }) => {
7659
- const { baseUrl: j, apiKey: m, appId: $ } = ge(), [R, z] = P(!1), [C, q] = P(null), [g, I] = P(!0), [S, U] = P(null), W = xt(null), F = xt(null), [V, Z] = P(!1), [T, J] = P(!1);
7651
+ const { baseUrl: j, apiKey: y, appId: $ } = ge(), [R, z] = P(!1), [C, q] = P(null), [g, I] = P(!0), [S, U] = P(null), W = xt(null), F = xt(null), [V, Z] = P(!1), [T, J] = P(!1);
7660
7652
  te(() => {
7661
7653
  if (typeof window > "u") return;
7662
7654
  const x = () => {
@@ -7943,7 +7935,7 @@ const Ws = [
7943
7935
  }
7944
7936
  }, Q = (x, k) => {
7945
7937
  (x.key === "Enter" || x.key === " ") && (x.preventDefault(), k());
7946
- }, G = () => i || C?.profileUrl, f = () => {
7938
+ }, G = () => o || C?.profileUrl, f = () => {
7947
7939
  const x = G();
7948
7940
  x && window.open(x, "_self", "noopener,noreferrer");
7949
7941
  }, v = () => {
@@ -7954,7 +7946,7 @@ const Ws = [
7954
7946
  {
7955
7947
  style: O.wrapper,
7956
7948
  ref: W,
7957
- className: o,
7949
+ className: i,
7958
7950
  role: "menu",
7959
7951
  "aria-label": "User menu",
7960
7952
  children: [
@@ -8112,11 +8104,11 @@ const Ws = [
8112
8104
  tabIndex: 0,
8113
8105
  children: [
8114
8106
  /* @__PURE__ */ n.jsx(be, { style: O.icon, "aria-hidden": "true" }),
8115
- /* @__PURE__ */ n.jsx("span", { style: O.menuItemText, children: y })
8107
+ /* @__PURE__ */ n.jsx("span", { style: O.menuItemText, children: m })
8116
8108
  ]
8117
8109
  }
8118
8110
  ),
8119
- c && l && /* @__PURE__ */ n.jsxs(
8111
+ d && l && /* @__PURE__ */ n.jsxs(
8120
8112
  "button",
8121
8113
  {
8122
8114
  style: O.menuItem,
@@ -8136,7 +8128,7 @@ const Ws = [
8136
8128
  ]
8137
8129
  }
8138
8130
  ),
8139
- u && C.profileUrl && /* @__PURE__ */ n.jsxs(
8131
+ c && C.profileUrl && /* @__PURE__ */ n.jsxs(
8140
8132
  "a",
8141
8133
  {
8142
8134
  href: C.profileUrl,
@@ -8152,7 +8144,7 @@ const Ws = [
8152
8144
  role: "menuitem",
8153
8145
  tabIndex: 0,
8154
8146
  children: [
8155
- /* @__PURE__ */ n.jsx(ce, { style: O.icon, "aria-hidden": "true" }),
8147
+ /* @__PURE__ */ n.jsx(de, { style: O.icon, "aria-hidden": "true" }),
8156
8148
  /* @__PURE__ */ n.jsx("span", { style: O.menuItemText, children: w })
8157
8149
  ]
8158
8150
  }
@@ -8174,13 +8166,13 @@ const Ws = [
8174
8166
  tabIndex: 0,
8175
8167
  children: [
8176
8168
  /* @__PURE__ */ n.jsx(
8177
- ct,
8169
+ dt,
8178
8170
  {
8179
8171
  style: { ...O.icon, color: A.error },
8180
8172
  "aria-hidden": "true"
8181
8173
  }
8182
8174
  ),
8183
- /* @__PURE__ */ n.jsx("span", { style: O.menuItemText, children: d })
8175
+ /* @__PURE__ */ n.jsx("span", { style: O.menuItemText, children: u })
8184
8176
  ]
8185
8177
  }
8186
8178
  ) })
@@ -8219,14 +8211,14 @@ const Ws = [
8219
8211
  primaryColor: r = "#00C212",
8220
8212
  onVerify: s
8221
8213
  }) => {
8222
- const { appId: a, baseUrl: o, apiKey: i } = ge(), [l, h] = P({
8214
+ const { appId: a, baseUrl: i, apiKey: o } = ge(), [l, h] = P({
8223
8215
  email: t?.email || "",
8224
8216
  otp: "",
8225
8217
  appId: a
8226
- }), [c, u] = P(!1), [y, b] = P(!1), [w, d] = P(null), j = (g, I) => {
8218
+ }), [d, c] = P(!1), [m, b] = P(!1), [w, u] = P(null), j = (g, I) => {
8227
8219
  let S = parseInt(g.replace("#", ""), 16), U = (S >> 16) + I, W = (S >> 8 & 255) + I, F = (S & 255) + I;
8228
8220
  return U = Math.min(255, Math.max(0, U)), W = Math.min(255, Math.max(0, W)), F = Math.min(255, Math.max(0, F)), `#${(F | W << 8 | U << 16).toString(16).padStart(6, "0")}`;
8229
- }, m = e ? {
8221
+ }, y = e ? {
8230
8222
  surface: "#09090b",
8231
8223
  surfaceLight: "#27272a",
8232
8224
  textPrimary: "#ffffff",
@@ -8253,7 +8245,7 @@ const Ws = [
8253
8245
  t?.email && h((g) => ({ ...g, email: t.email }));
8254
8246
  }, [t?.email]);
8255
8247
  const $ = (g, I) => {
8256
- d({ type: g, message: I }), setTimeout(() => d(null), 3e3);
8248
+ u({ type: g, message: I }), setTimeout(() => u(null), 3e3);
8257
8249
  }, R = async () => {
8258
8250
  if (!l.email || !/\S+@\S+\.\S+/.test(l.email)) {
8259
8251
  $("error", "Please enter a valid email");
@@ -8262,11 +8254,11 @@ const Ws = [
8262
8254
  try {
8263
8255
  b(!0);
8264
8256
  const g = await M.post(
8265
- `${o}/users/send-verify-otp/${t?.id}`,
8257
+ `${i}/users/send-verify-otp/${t?.id}`,
8266
8258
  { email: l.email },
8267
- { headers: { "x-api-key": i, "x-app-id": a } }
8259
+ { headers: { "x-api-key": o, "x-app-id": a } }
8268
8260
  );
8269
- g.data.success ? ($("success", g.data.message || "OTP sent!"), u(!0)) : $("error", g.data.message || "Failed to send OTP");
8261
+ g.data.success ? ($("success", g.data.message || "OTP sent!"), c(!0)) : $("error", g.data.message || "Failed to send OTP");
8270
8262
  } catch (g) {
8271
8263
  $("error", g.response?.data?.message || "Server error");
8272
8264
  } finally {
@@ -8279,10 +8271,10 @@ const Ws = [
8279
8271
  }
8280
8272
  try {
8281
8273
  b(!0);
8282
- const I = await M.post(`${o}/users/verify-email`, l);
8274
+ const I = await M.post(`${i}/users/verify-email`, l);
8283
8275
  if (I.data.success && t) {
8284
8276
  const S = { ...t, isVerified: !0 };
8285
- s?.(S), $("success", I.data.message || "Email verified!"), u(!1), h({ email: t.email, otp: "", appId: a });
8277
+ s?.(S), $("success", I.data.message || "Email verified!"), c(!1), h({ email: t.email, otp: "", appId: a });
8286
8278
  } else
8287
8279
  $("error", I.data.message || "Verification failed");
8288
8280
  } catch (I) {
@@ -8294,9 +8286,9 @@ const Ws = [
8294
8286
  width: "100%",
8295
8287
  padding: "12px 12px 12px 40px",
8296
8288
  borderRadius: 8,
8297
- border: `1px solid ${m.border}`,
8298
- backgroundColor: m.surfaceLight,
8299
- color: m.textPrimary,
8289
+ border: `1px solid ${y.border}`,
8290
+ backgroundColor: y.surfaceLight,
8291
+ color: y.textPrimary,
8300
8292
  fontSize: 14,
8301
8293
  outline: "none"
8302
8294
  }, q = (g = !1) => ({
@@ -8306,7 +8298,7 @@ const Ws = [
8306
8298
  color: "#fff",
8307
8299
  fontWeight: 500,
8308
8300
  cursor: g ? "not-allowed" : "pointer",
8309
- background: `linear-gradient(to right, ${m.accent}, ${m.accentHover})`,
8301
+ background: `linear-gradient(to right, ${y.accent}, ${y.accentHover})`,
8310
8302
  opacity: g ? 0.7 : 1,
8311
8303
  display: "flex",
8312
8304
  alignItems: "center",
@@ -8325,10 +8317,10 @@ const Ws = [
8325
8317
  display: "flex",
8326
8318
  flexDirection: "column",
8327
8319
  gap: 16,
8328
- backgroundColor: m.surface,
8320
+ backgroundColor: y.surface,
8329
8321
  padding: 24,
8330
8322
  borderRadius: 16,
8331
- border: `1px solid ${m.border}`
8323
+ border: `1px solid ${y.border}`
8332
8324
  },
8333
8325
  children: [
8334
8326
  w && /* @__PURE__ */ n.jsxs(
@@ -8339,24 +8331,24 @@ const Ws = [
8339
8331
  borderRadius: 12,
8340
8332
  fontSize: 13,
8341
8333
  fontWeight: 500,
8342
- color: w.type === "success" ? m.success : m.warning,
8343
- border: `1px solid ${w.type === "success" ? m.success : m.warning}`,
8344
- backgroundColor: w.type === "success" ? `${m.success}20` : `${m.warning}20`,
8334
+ color: w.type === "success" ? y.success : y.warning,
8335
+ border: `1px solid ${w.type === "success" ? y.success : y.warning}`,
8336
+ backgroundColor: w.type === "success" ? `${y.success}20` : `${y.warning}20`,
8345
8337
  display: "flex",
8346
8338
  alignItems: "center",
8347
8339
  gap: 8
8348
8340
  },
8349
8341
  children: [
8350
- w.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 16 }) : /* @__PURE__ */ n.jsx(le, { size: 16 }),
8342
+ w.type === "success" ? /* @__PURE__ */ n.jsx(ce, { size: 16 }) : /* @__PURE__ */ n.jsx(le, { size: 16 }),
8351
8343
  w.message
8352
8344
  ]
8353
8345
  }
8354
8346
  ),
8355
8347
  /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
8356
- /* @__PURE__ */ n.jsx("label", { style: { color: m.textSecondary }, children: "Email" }),
8348
+ /* @__PURE__ */ n.jsx("label", { style: { color: y.textSecondary }, children: "Email" }),
8357
8349
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
8358
8350
  /* @__PURE__ */ n.jsx(
8359
- ce,
8351
+ de,
8360
8352
  {
8361
8353
  size: 18,
8362
8354
  style: {
@@ -8364,7 +8356,7 @@ const Ws = [
8364
8356
  left: 12,
8365
8357
  top: "50%",
8366
8358
  transform: "translateY(-50%)",
8367
- color: m.textTertiary,
8359
+ color: y.textTertiary,
8368
8360
  pointerEvents: "none"
8369
8361
  }
8370
8362
  }
@@ -8382,11 +8374,11 @@ const Ws = [
8382
8374
  )
8383
8375
  ] })
8384
8376
  ] }),
8385
- c && /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
8386
- /* @__PURE__ */ n.jsx("label", { style: { color: m.textSecondary }, children: "OTP" }),
8377
+ d && /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
8378
+ /* @__PURE__ */ n.jsx("label", { style: { color: y.textSecondary }, children: "OTP" }),
8387
8379
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
8388
8380
  /* @__PURE__ */ n.jsx(
8389
- dt,
8381
+ ct,
8390
8382
  {
8391
8383
  size: 18,
8392
8384
  style: {
@@ -8394,7 +8386,7 @@ const Ws = [
8394
8386
  left: 12,
8395
8387
  top: "50%",
8396
8388
  transform: "translateY(-50%)",
8397
- color: m.textTertiary,
8389
+ color: y.textTertiary,
8398
8390
  pointerEvents: "none"
8399
8391
  }
8400
8392
  }
@@ -8412,19 +8404,19 @@ const Ws = [
8412
8404
  )
8413
8405
  ] })
8414
8406
  ] }),
8415
- /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: c ? /* @__PURE__ */ n.jsxs("button", { type: "submit", disabled: y, style: q(y), children: [
8416
- y ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(de, { size: 16 }),
8417
- y ? "Verifying..." : "Verify Email"
8407
+ /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: d ? /* @__PURE__ */ n.jsxs("button", { type: "submit", disabled: m, style: q(m), children: [
8408
+ m ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ce, { size: 16 }),
8409
+ m ? "Verifying..." : "Verify Email"
8418
8410
  ] }) : /* @__PURE__ */ n.jsxs(
8419
8411
  "button",
8420
8412
  {
8421
8413
  type: "button",
8422
8414
  onClick: R,
8423
- disabled: y,
8424
- style: q(y),
8415
+ disabled: m,
8416
+ style: q(m),
8425
8417
  children: [
8426
- y ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8427
- y ? "Sending..." : "Send OTP"
8418
+ m ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8419
+ m ? "Sending..." : "Send OTP"
8428
8420
  ]
8429
8421
  }
8430
8422
  ) })