@neuctra/authix 1.1.74 → 1.1.76

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.
@@ -29,11 +29,11 @@ const mr = We("string"), re = We("function"), Ft = We("number"), Pe = (t) => t !
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, br = ae("Date"), wr = ae("File"), jr = ae("Blob"), vr = ae("FileList"), Sr = (t) => Pe(t) && re(t.pipe), Er = (t) => {
32
+ }, br = ae("Date"), wr = ae("File"), jr = ae("Blob"), vr = ae("FileList"), Sr = (t) => Pe(t) && re(t.pipe), kr = (t) => {
33
33
  let e;
34
34
  return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
35
35
  e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
36
- }, kr = ae("URLSearchParams"), [Cr, Tr, Rr, Pr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
+ }, Er = ae("URLSearchParams"), [Cr, Tr, Rr, Pr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
@@ -61,7 +61,7 @@ function Lt(t, e) {
61
61
  return i;
62
62
  return null;
63
63
  }
64
- const xe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qt = (t) => !ye(t) && t !== xe;
64
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qt = (t) => !ye(t) && t !== fe;
65
65
  function Ze() {
66
66
  const { caseless: t, skipUndefined: e } = qt(this) && this || {}, r = {}, s = (i, o) => {
67
67
  const a = t && Lt(r, o) || o;
@@ -170,18 +170,18 @@ const Kr = (t) => {
170
170
  return s;
171
171
  };
172
172
  return r(t, 0);
173
- }, Jr = ae("AsyncFunction"), Gr = (t) => t && (Pe(t) || re(t)) && re(t.then) && re(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, s) => (xe.addEventListener("message", ({ source: i, data: o }) => {
174
- i === xe && o === r && s.length && s.shift()();
173
+ }, Jr = ae("AsyncFunction"), Gr = (t) => t && (Pe(t) || re(t)) && re(t.then) && re(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: i, data: o }) => {
174
+ i === fe && o === r && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
- s.push(i), xe.postMessage(r, "*");
176
+ s.push(i), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
178
  typeof setImmediate == "function",
179
- re(xe.postMessage)
180
- ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(xe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[qe]), f = {
179
+ re(fe.postMessage)
180
+ ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[qe]), f = {
181
181
  isArray: we,
182
182
  isArrayBuffer: $t,
183
183
  isBuffer: Re,
184
- isFormData: Er,
184
+ isFormData: kr,
185
185
  isArrayBufferView: hr,
186
186
  isString: mr,
187
187
  isNumber: Ft,
@@ -200,7 +200,7 @@ const Kr = (t) => {
200
200
  isRegExp: Mr,
201
201
  isFunction: re,
202
202
  isStream: Sr,
203
- isURLSearchParams: kr,
203
+ isURLSearchParams: Er,
204
204
  isTypedArray: Dr,
205
205
  isFileList: vr,
206
206
  forEach: Ie,
@@ -227,7 +227,7 @@ const Kr = (t) => {
227
227
  noop: Hr,
228
228
  toFiniteNumber: Vr,
229
229
  findKey: Lt,
230
- global: xe,
230
+ global: fe,
231
231
  isContextDefined: qt,
232
232
  isSpecCompliantForm: Yr,
233
233
  toJSONObject: Kr,
@@ -285,7 +285,7 @@ $.from = (t, e, r, s, i, o) => {
285
285
  const a = Object.create(Bt);
286
286
  f.toFlatObject(t, a, function(d) {
287
287
  return d !== Error.prototype;
288
- }, (p) => p !== "isAxiosError");
288
+ }, (u) => u !== "isAxiosError");
289
289
  const c = t && t.message ? t.message : "Error", h = e == null && t ? t.code : e;
290
290
  return $.call(a, c, h, r, s, i), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", o && Object.assign(a, o), a;
291
291
  };
@@ -320,42 +320,42 @@ function Be(t, e, r) {
320
320
  const s = r.metaTokens, i = r.visitor || d, o = r.dots, a = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
321
321
  if (!f.isFunction(i))
322
322
  throw new TypeError("visitor must be a function");
323
- function p(u) {
324
- if (u === null) return "";
325
- if (f.isDate(u))
326
- return u.toISOString();
327
- if (f.isBoolean(u))
328
- return u.toString();
329
- if (!h && f.isBlob(u))
323
+ function u(p) {
324
+ if (p === null) return "";
325
+ if (f.isDate(p))
326
+ return p.toISOString();
327
+ if (f.isBoolean(p))
328
+ return p.toString();
329
+ if (!h && f.isBlob(p))
330
330
  throw new $("Blob is not supported. Use a Buffer instead.");
331
- return f.isArrayBuffer(u) || f.isTypedArray(u) ? h && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
331
+ return f.isArrayBuffer(p) || f.isTypedArray(p) ? h && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
332
332
  }
333
- function d(u, w, x) {
334
- let C = u;
335
- if (u && !x && typeof u == "object") {
333
+ function d(p, w, x) {
334
+ let C = p;
335
+ if (p && !x && typeof p == "object") {
336
336
  if (f.endsWith(w, "{}"))
337
- w = s ? w : w.slice(0, -2), u = JSON.stringify(u);
338
- else if (f.isArray(u) && en(u) || (f.isFileList(u) || f.endsWith(w, "[]")) && (C = f.toArray(u)))
337
+ w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
338
+ else if (f.isArray(p) && en(p) || (f.isFileList(p) || f.endsWith(w, "[]")) && (C = f.toArray(p)))
339
339
  return w = Vt(w), C.forEach(function(A, y) {
340
340
  !(f.isUndefined(A) || A === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
342
  a === !0 ? ht([w], y, o) : a === null ? w : w + "[]",
343
- p(A)
343
+ u(A)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Qe(u) ? !0 : (e.append(ht(x, w, o), p(u)), !1);
347
+ return Qe(p) ? !0 : (e.append(ht(x, w, o), u(p)), !1);
348
348
  }
349
349
  const m = [], P = Object.assign(tn, {
350
350
  defaultVisitor: d,
351
- convertValue: p,
351
+ convertValue: u,
352
352
  isVisitable: Qe
353
353
  });
354
- function O(u, w) {
355
- if (!f.isUndefined(u)) {
356
- if (m.indexOf(u) !== -1)
354
+ function O(p, w) {
355
+ if (!f.isUndefined(p)) {
356
+ if (m.indexOf(p) !== -1)
357
357
  throw Error("Circular reference detected in " + w.join("."));
358
- m.push(u), f.forEach(u, function(C, T) {
358
+ m.push(p), f.forEach(p, function(C, T) {
359
359
  (!(f.isUndefined(C) || C === null) && i.call(
360
360
  e,
361
361
  C,
@@ -635,7 +635,7 @@ const mn = f.toObjectSet([
635
635
  i = a.indexOf(":"), r = a.substring(0, i).trim().toLowerCase(), s = a.substring(i + 1).trim(), !(!r || e[r] && mn[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
  }, yt = Symbol("internals");
638
- function Ee(t) {
638
+ function ke(t) {
639
639
  return t && String(t).trim().toLowerCase();
640
640
  }
641
641
  function Ne(t) {
@@ -679,24 +679,24 @@ let ne = class {
679
679
  }
680
680
  set(e, r, s) {
681
681
  const i = this;
682
- function o(c, h, p) {
683
- const d = Ee(h);
682
+ function o(c, h, u) {
683
+ const d = ke(h);
684
684
  if (!d)
685
685
  throw new Error("header name must be a non-empty string");
686
686
  const m = f.findKey(i, d);
687
- (!m || i[m] === void 0 || p === !0 || p === void 0 && i[m] !== !1) && (i[m || h] = Ne(c));
687
+ (!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || h] = Ne(c));
688
688
  }
689
- const a = (c, h) => f.forEach(c, (p, d) => o(p, d, h));
689
+ const a = (c, h) => f.forEach(c, (u, d) => o(u, d, h));
690
690
  if (f.isPlainObject(e) || e instanceof this.constructor)
691
691
  a(e, r);
692
692
  else if (f.isString(e) && (e = e.trim()) && !bn(e))
693
693
  a(gn(e), r);
694
694
  else if (f.isObject(e) && f.isIterable(e)) {
695
- let c = {}, h, p;
695
+ let c = {}, h, u;
696
696
  for (const d of e) {
697
697
  if (!f.isArray(d))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- c[p = d[0]] = (h = c[p]) ? f.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
699
+ c[u = d[0]] = (h = c[u]) ? f.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
700
700
  }
701
701
  a(c, r);
702
702
  } else
@@ -704,7 +704,7 @@ let ne = class {
704
704
  return this;
705
705
  }
706
706
  get(e, r) {
707
- if (e = Ee(e), e) {
707
+ if (e = ke(e), e) {
708
708
  const s = f.findKey(this, e);
709
709
  if (s) {
710
710
  const i = this[s];
@@ -721,7 +721,7 @@ let ne = class {
721
721
  }
722
722
  }
723
723
  has(e, r) {
724
- if (e = Ee(e), e) {
724
+ if (e = ke(e), e) {
725
725
  const s = f.findKey(this, e);
726
726
  return !!(s && this[s] !== void 0 && (!r || Ye(this, this[s], s, r)));
727
727
  }
@@ -731,7 +731,7 @@ let ne = class {
731
731
  const s = this;
732
732
  let i = !1;
733
733
  function o(a) {
734
- if (a = Ee(a), a) {
734
+ if (a = ke(a), a) {
735
735
  const c = f.findKey(s, a);
736
736
  c && (!r || Ye(s, s[c], c, r)) && (delete s[c], i = !0);
737
737
  }
@@ -793,7 +793,7 @@ let ne = class {
793
793
  accessors: {}
794
794
  }).accessors, i = this.prototype;
795
795
  function o(a) {
796
- const c = Ee(a);
796
+ const c = ke(a);
797
797
  s[c] || (jn(i, a), s[c] = !0);
798
798
  }
799
799
  return f.isArray(e) ? e.forEach(o) : o(e), this;
@@ -845,25 +845,25 @@ function Sn(t, e) {
845
845
  const r = new Array(t), s = new Array(t);
846
846
  let i = 0, o = 0, a;
847
847
  return e = e !== void 0 ? e : 1e3, function(h) {
848
- const p = Date.now(), d = s[o];
849
- a || (a = p), r[i] = h, s[i] = p;
848
+ const u = Date.now(), d = s[o];
849
+ a || (a = u), r[i] = h, s[i] = u;
850
850
  let m = o, P = 0;
851
851
  for (; m !== i; )
852
852
  P += r[m++], m = m % t;
853
- if (i = (i + 1) % t, i === o && (o = (o + 1) % t), p - a < e)
853
+ if (i = (i + 1) % t, i === o && (o = (o + 1) % t), u - a < e)
854
854
  return;
855
- const O = d && p - d;
855
+ const O = d && u - d;
856
856
  return O ? Math.round(P * 1e3 / O) : void 0;
857
857
  };
858
858
  }
859
- function En(t, e) {
859
+ function kn(t, e) {
860
860
  let r = 0, s = 1e3 / e, i, o;
861
- const a = (p, d = Date.now()) => {
862
- r = d, i = null, o && (clearTimeout(o), o = null), t(...p);
861
+ const a = (u, d = Date.now()) => {
862
+ r = d, i = null, o && (clearTimeout(o), o = null), t(...u);
863
863
  };
864
- return [(...p) => {
864
+ return [(...u) => {
865
865
  const d = Date.now(), m = d - r;
866
- m >= s ? a(p, d) : (i = p, o || (o = setTimeout(() => {
866
+ m >= s ? a(u, d) : (i = u, o || (o = setTimeout(() => {
867
867
  o = null, a(i);
868
868
  }, s - m)));
869
869
  }, () => i && a(i)];
@@ -871,16 +871,16 @@ function En(t, e) {
871
871
  const Le = (t, e, r = 3) => {
872
872
  let s = 0;
873
873
  const i = Sn(50, 250);
874
- return En((o) => {
875
- const a = o.loaded, c = o.lengthComputable ? o.total : void 0, h = a - s, p = i(h), d = a <= c;
874
+ return kn((o) => {
875
+ const a = o.loaded, c = o.lengthComputable ? o.total : void 0, h = a - s, u = i(h), d = a <= c;
876
876
  s = a;
877
877
  const m = {
878
878
  loaded: a,
879
879
  total: c,
880
880
  progress: c ? a / c : void 0,
881
881
  bytes: h,
882
- rate: p || void 0,
883
- estimated: p && c && d ? (c - a) / p : void 0,
882
+ rate: u || void 0,
883
+ estimated: u && c && d ? (c - a) / u : void 0,
884
884
  event: o,
885
885
  lengthComputable: c != null,
886
886
  [e ? "download" : "upload"]: !0
@@ -894,7 +894,7 @@ const Le = (t, e, r = 3) => {
894
894
  total: t,
895
895
  loaded: s
896
896
  }), e[1]];
897
- }, wt = (t) => (...e) => f.asap(() => t(...e)), kn = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, ee.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
897
+ }, wt = (t) => (...e) => f.asap(() => t(...e)), En = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, ee.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
898
898
  new URL(ee.origin),
899
899
  ee.navigator && /(msie|trident)/i.test(ee.navigator.userAgent)
900
900
  ) : () => !0, Cn = ee.hasStandardBrowserEnv ? (
@@ -935,33 +935,33 @@ function Qt(t, e, r) {
935
935
  return t && (s || r == !1) ? Rn(t, e) : e;
936
936
  }
937
937
  const jt = (t) => t instanceof ne ? { ...t } : t;
938
- function me(t, e) {
938
+ function he(t, e) {
939
939
  e = e || {};
940
940
  const r = {};
941
- function s(p, d, m, P) {
942
- return f.isPlainObject(p) && f.isPlainObject(d) ? f.merge.call({ caseless: P }, p, d) : f.isPlainObject(d) ? f.merge({}, d) : f.isArray(d) ? d.slice() : d;
941
+ function s(u, d, m, P) {
942
+ return f.isPlainObject(u) && f.isPlainObject(d) ? f.merge.call({ caseless: P }, u, d) : f.isPlainObject(d) ? f.merge({}, d) : f.isArray(d) ? d.slice() : d;
943
943
  }
944
- function i(p, d, m, P) {
944
+ function i(u, d, m, P) {
945
945
  if (f.isUndefined(d)) {
946
- if (!f.isUndefined(p))
947
- return s(void 0, p, m, P);
948
- } else return s(p, d, m, P);
946
+ if (!f.isUndefined(u))
947
+ return s(void 0, u, m, P);
948
+ } else return s(u, d, m, P);
949
949
  }
950
- function o(p, d) {
950
+ function o(u, d) {
951
951
  if (!f.isUndefined(d))
952
952
  return s(void 0, d);
953
953
  }
954
- function a(p, d) {
954
+ function a(u, d) {
955
955
  if (f.isUndefined(d)) {
956
- if (!f.isUndefined(p))
957
- return s(void 0, p);
956
+ if (!f.isUndefined(u))
957
+ return s(void 0, u);
958
958
  } else return s(void 0, d);
959
959
  }
960
- function c(p, d, m) {
960
+ function c(u, d, m) {
961
961
  if (m in e)
962
- return s(p, d);
962
+ return s(u, d);
963
963
  if (m in t)
964
- return s(void 0, p);
964
+ return s(void 0, u);
965
965
  }
966
966
  const h = {
967
967
  url: o,
@@ -992,7 +992,7 @@ function me(t, e) {
992
992
  socketPath: a,
993
993
  responseEncoding: a,
994
994
  validateStatus: c,
995
- headers: (p, d, m) => i(jt(p), jt(d), m, !0)
995
+ headers: (u, d, m) => i(jt(u), jt(d), m, !0)
996
996
  };
997
997
  return f.forEach(Object.keys({ ...t, ...e }), function(d) {
998
998
  const m = h[d] || i, P = m(t[d], e[d], d);
@@ -1000,7 +1000,7 @@ function me(t, e) {
1000
1000
  }), r;
1001
1001
  }
1002
1002
  const er = (t) => {
1003
- const e = me({}, t);
1003
+ const e = he({}, t);
1004
1004
  let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: o, headers: a, auth: c } = e;
1005
1005
  if (e.headers = a = ne.from(a), e.url = Kt(Qt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && a.set(
1006
1006
  "Authorization",
@@ -1009,13 +1009,13 @@ const er = (t) => {
1009
1009
  if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
1010
1010
  a.setContentType(void 0);
1011
1011
  else if (f.isFunction(r.getHeaders)) {
1012
- const h = r.getHeaders(), p = ["content-type", "content-length"];
1012
+ const h = r.getHeaders(), u = ["content-type", "content-length"];
1013
1013
  Object.entries(h).forEach(([d, m]) => {
1014
- p.includes(d.toLowerCase()) && a.set(d, m);
1014
+ u.includes(d.toLowerCase()) && a.set(d, m);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
- if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && kn(e.url))) {
1018
+ if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && En(e.url))) {
1019
1019
  const h = i && o && Cn.read(o);
1020
1020
  h && a.set(i, h);
1021
1021
  }
@@ -1025,9 +1025,9 @@ const er = (t) => {
1025
1025
  const i = er(t);
1026
1026
  let o = i.data;
1027
1027
  const a = ne.from(i.headers).normalize();
1028
- let { responseType: c, onUploadProgress: h, onDownloadProgress: p } = i, d, m, P, O, u;
1028
+ let { responseType: c, onUploadProgress: h, onDownloadProgress: u } = i, d, m, P, O, p;
1029
1029
  function w() {
1030
- O && O(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
1030
+ O && O(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
1031
1031
  }
1032
1032
  let x = new XMLHttpRequest();
1033
1033
  x.open(i.method.toUpperCase(), i.url, !0), x.timeout = i.timeout;
@@ -1068,7 +1068,7 @@ const er = (t) => {
1068
1068
  )), x = null;
1069
1069
  }, o === void 0 && a.setContentType(null), "setRequestHeader" in x && f.forEach(a.toJSON(), function(y, _) {
1070
1070
  x.setRequestHeader(_, y);
1071
- }), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), p && ([P, u] = Le(p, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = Le(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
1071
+ }), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), u && ([P, p] = Le(u, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = Le(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
1072
1072
  x && (s(!A || A.type ? new je(null, t, x) : A), x.abort(), x = null);
1073
1073
  }, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
1074
1074
  const T = vn(i.url);
@@ -1082,10 +1082,10 @@ const er = (t) => {
1082
1082
  const { length: r } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || r) {
1084
1084
  let s = new AbortController(), i;
1085
- const o = function(p) {
1085
+ const o = function(u) {
1086
1086
  if (!i) {
1087
1087
  i = !0, c();
1088
- const d = p instanceof Error ? p : this.reason;
1088
+ const d = u instanceof Error ? u : this.reason;
1089
1089
  s.abort(d instanceof $ ? d : new je(d instanceof Error ? d.message : d));
1090
1090
  }
1091
1091
  };
@@ -1093,11 +1093,11 @@ const er = (t) => {
1093
1093
  a = null, o(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
- t && (a && clearTimeout(a), a = null, t.forEach((p) => {
1097
- p.unsubscribe ? p.unsubscribe(o) : p.removeEventListener("abort", o);
1096
+ t && (a && clearTimeout(a), a = null, t.forEach((u) => {
1097
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((p) => p.addEventListener("abort", o));
1100
+ t.forEach((u) => u.addEventListener("abort", o));
1101
1101
  const { signal: h } = s;
1102
1102
  return h.unsubscribe = () => f.asap(c), h;
1103
1103
  }
@@ -1137,8 +1137,8 @@ const er = (t) => {
1137
1137
  return new ReadableStream({
1138
1138
  async pull(h) {
1139
1139
  try {
1140
- const { done: p, value: d } = await i.next();
1141
- if (p) {
1140
+ const { done: u, value: d } = await i.next();
1141
+ if (u) {
1142
1142
  c(), h.close();
1143
1143
  return;
1144
1144
  }
@@ -1148,8 +1148,8 @@ const er = (t) => {
1148
1148
  r(P);
1149
1149
  }
1150
1150
  h.enqueue(new Uint8Array(d));
1151
- } catch (p) {
1152
- throw c(p), p;
1151
+ } catch (u) {
1152
+ throw c(u), u;
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(h) {
@@ -1162,8 +1162,8 @@ const er = (t) => {
1162
1162
  Request: t,
1163
1163
  Response: e
1164
1164
  }))(f.global), {
1165
- ReadableStream: Et,
1166
- TextEncoder: kt
1165
+ ReadableStream: kt,
1166
+ TextEncoder: Et
1167
1167
  } = f.global, Ct = (t, ...e) => {
1168
1168
  try {
1169
1169
  return !!t(...e);
@@ -1177,46 +1177,46 @@ const er = (t) => {
1177
1177
  const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", o = Ae(r), a = Ae(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && Ae(Et), h = i && (typeof kt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new kt()) : async (u) => new Uint8Array(await new r(u).arrayBuffer())), p = o && c && Ct(() => {
1181
- let u = !1;
1180
+ const c = i && Ae(kt), h = i && (typeof Et == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Et()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), u = o && c && Ct(() => {
1181
+ let p = !1;
1182
1182
  const w = new r(ee.origin, {
1183
- body: new Et(),
1183
+ body: new kt(),
1184
1184
  method: "POST",
1185
1185
  get duplex() {
1186
- return u = !0, "half";
1186
+ return p = !0, "half";
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
- return u && !w;
1189
+ return p && !w;
1190
1190
  }), d = a && c && Ct(() => f.isReadableStream(new s("").body)), m = {
1191
- stream: d && ((u) => u.body)
1191
+ stream: d && ((p) => p.body)
1192
1192
  };
1193
- i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1194
- !m[u] && (m[u] = (w, x) => {
1195
- let C = w && w[u];
1193
+ i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
1194
+ !m[p] && (m[p] = (w, x) => {
1195
+ let C = w && w[p];
1196
1196
  if (C)
1197
1197
  return C.call(w);
1198
- throw new $(`Response type '${u}' is not supported`, $.ERR_NOT_SUPPORT, x);
1198
+ throw new $(`Response type '${p}' is not supported`, $.ERR_NOT_SUPPORT, x);
1199
1199
  });
1200
1200
  });
1201
- const P = async (u) => {
1202
- if (u == null)
1201
+ const P = async (p) => {
1202
+ if (p == null)
1203
1203
  return 0;
1204
- if (f.isBlob(u))
1205
- return u.size;
1206
- if (f.isSpecCompliantForm(u))
1204
+ if (f.isBlob(p))
1205
+ return p.size;
1206
+ if (f.isSpecCompliantForm(p))
1207
1207
  return (await new r(ee.origin, {
1208
1208
  method: "POST",
1209
- body: u
1209
+ body: p
1210
1210
  }).arrayBuffer()).byteLength;
1211
- if (f.isArrayBufferView(u) || f.isArrayBuffer(u))
1212
- return u.byteLength;
1213
- if (f.isURLSearchParams(u) && (u = u + ""), f.isString(u))
1214
- return (await h(u)).byteLength;
1215
- }, O = async (u, w) => {
1216
- const x = f.toFiniteNumber(u.getContentLength());
1211
+ if (f.isArrayBufferView(p) || f.isArrayBuffer(p))
1212
+ return p.byteLength;
1213
+ if (f.isURLSearchParams(p) && (p = p + ""), f.isString(p))
1214
+ return (await h(p)).byteLength;
1215
+ }, O = async (p, w) => {
1216
+ const x = f.toFiniteNumber(p.getContentLength());
1217
1217
  return x ?? P(w);
1218
1218
  };
1219
- return async (u) => {
1219
+ return async (p) => {
1220
1220
  let {
1221
1221
  url: w,
1222
1222
  method: x,
@@ -1230,15 +1230,15 @@ const er = (t) => {
1230
1230
  headers: F,
1231
1231
  withCredentials: U = "same-origin",
1232
1232
  fetchOptions: M
1233
- } = er(u), X = e || fetch;
1233
+ } = er(p), X = e || fetch;
1234
1234
  v = v ? (v + "").toLowerCase() : "text";
1235
- let k = On([T, A && A.toAbortSignal()], y), V = null;
1236
- const z = k && k.unsubscribe && (() => {
1237
- k.unsubscribe();
1235
+ let E = On([T, A && A.toAbortSignal()], y), V = null;
1236
+ const z = E && E.unsubscribe && (() => {
1237
+ E.unsubscribe();
1238
1238
  });
1239
1239
  let I;
1240
1240
  try {
1241
- if (g && p && x !== "get" && x !== "head" && (I = await O(F, C)) !== 0) {
1241
+ if (g && u && x !== "get" && x !== "head" && (I = await O(F, C)) !== 0) {
1242
1242
  let l = new r(w, {
1243
1243
  method: "POST",
1244
1244
  body: C,
@@ -1255,7 +1255,7 @@ const er = (t) => {
1255
1255
  f.isString(U) || (U = U ? "include" : "omit");
1256
1256
  const W = o && "credentials" in r.prototype, Z = {
1257
1257
  ...M,
1258
- signal: k,
1258
+ signal: E,
1259
1259
  method: x.toUpperCase(),
1260
1260
  headers: F.normalize().toJSON(),
1261
1261
  body: C,
@@ -1282,24 +1282,24 @@ const er = (t) => {
1282
1282
  );
1283
1283
  }
1284
1284
  v = v || "text";
1285
- let L = await m[f.findKey(m, v) || "text"](B, u);
1285
+ let L = await m[f.findKey(m, v) || "text"](B, p);
1286
1286
  return !K && z && z(), await new Promise((l, b) => {
1287
1287
  Zt(l, b, {
1288
1288
  data: L,
1289
1289
  headers: ne.from(B.headers),
1290
1290
  status: B.status,
1291
1291
  statusText: B.statusText,
1292
- config: u,
1292
+ config: p,
1293
1293
  request: V
1294
1294
  });
1295
1295
  });
1296
1296
  } catch (W) {
1297
1297
  throw z && z(), W && W.name === "TypeError" && /Load failed|fetch/i.test(W.message) ? Object.assign(
1298
- new $("Network Error", $.ERR_NETWORK, u, V),
1298
+ new $("Network Error", $.ERR_NETWORK, p, V),
1299
1299
  {
1300
1300
  cause: W.cause || W
1301
1301
  }
1302
- ) : $.from(W, W && W.code, u, V);
1302
+ ) : $.from(W, W && W.code, p, V);
1303
1303
  }
1304
1304
  };
1305
1305
  }, Dn = /* @__PURE__ */ new Map(), tr = (t) => {
@@ -1309,10 +1309,10 @@ const er = (t) => {
1309
1309
  i,
1310
1310
  r
1311
1311
  ];
1312
- let a = o.length, c = a, h, p, d = Dn;
1312
+ let a = o.length, c = a, h, u, d = Dn;
1313
1313
  for (; c--; )
1314
- h = o[c], p = d.get(h), p === void 0 && d.set(h, p = c ? /* @__PURE__ */ new Map() : Nn(e)), d = p;
1315
- return p;
1314
+ h = o[c], u = d.get(h), u === void 0 && d.set(h, u = c ? /* @__PURE__ */ new Map() : Nn(e)), d = u;
1315
+ return u;
1316
1316
  };
1317
1317
  tr();
1318
1318
  const tt = {
@@ -1348,7 +1348,7 @@ const Tt = (t) => `- ${t}`, $n = (t) => f.isFunction(t) || t === null || t === !
1348
1348
  }
1349
1349
  if (!i) {
1350
1350
  const a = Object.entries(o).map(
1351
- ([h, p]) => `adapter ${h} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1351
+ ([h, u]) => `adapter ${h} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
1353
  let c = r ? a.length > 1 ? `since :
1354
1354
  ` + a.map(Tt).join(`
@@ -1433,7 +1433,7 @@ const De = {
1433
1433
  assertOptions: Fn,
1434
1434
  validators: He
1435
1435
  }, ce = De.validators;
1436
- let he = class {
1436
+ let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
1439
1439
  request: new gt(),
@@ -1466,7 +1466,7 @@ let he = class {
1466
1466
  }
1467
1467
  }
1468
1468
  _request(e, r) {
1469
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = me(this.defaults, r);
1469
+ typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
1470
1470
  const { transitional: s, paramsSerializer: i, headers: o } = r;
1471
1471
  s !== void 0 && De.assertOptions(s, {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
@@ -1487,8 +1487,8 @@ let he = class {
1487
1487
  );
1488
1488
  o && f.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
- (u) => {
1491
- delete o[u];
1490
+ (p) => {
1491
+ delete o[p];
1492
1492
  }
1493
1493
  ), r.headers = ne.concat(a, o);
1494
1494
  const c = [];
@@ -1496,23 +1496,23 @@ let he = class {
1496
1496
  this.interceptors.request.forEach(function(w) {
1497
1497
  typeof w.runWhen == "function" && w.runWhen(r) === !1 || (h = h && w.synchronous, c.unshift(w.fulfilled, w.rejected));
1498
1498
  });
1499
- const p = [];
1499
+ const u = [];
1500
1500
  this.interceptors.response.forEach(function(w) {
1501
- p.push(w.fulfilled, w.rejected);
1501
+ u.push(w.fulfilled, w.rejected);
1502
1502
  });
1503
1503
  let d, m = 0, P;
1504
1504
  if (!h) {
1505
- const u = [Rt.bind(this), void 0];
1506
- for (u.unshift(...c), u.push(...p), P = u.length, d = Promise.resolve(r); m < P; )
1507
- d = d.then(u[m++], u[m++]);
1505
+ const p = [Rt.bind(this), void 0];
1506
+ for (p.unshift(...c), p.push(...u), P = p.length, d = Promise.resolve(r); m < P; )
1507
+ d = d.then(p[m++], p[m++]);
1508
1508
  return d;
1509
1509
  }
1510
1510
  P = c.length;
1511
1511
  let O = r;
1512
1512
  for (; m < P; ) {
1513
- const u = c[m++], w = c[m++];
1513
+ const p = c[m++], w = c[m++];
1514
1514
  try {
1515
- O = u(O);
1515
+ O = p(O);
1516
1516
  } catch (x) {
1517
1517
  w.call(this, x);
1518
1518
  break;
@@ -1520,22 +1520,22 @@ let he = class {
1520
1520
  }
1521
1521
  try {
1522
1522
  d = Rt.call(this, O);
1523
- } catch (u) {
1524
- return Promise.reject(u);
1523
+ } catch (p) {
1524
+ return Promise.reject(p);
1525
1525
  }
1526
- for (m = 0, P = p.length; m < P; )
1527
- d = d.then(p[m++], p[m++]);
1526
+ for (m = 0, P = u.length; m < P; )
1527
+ d = d.then(u[m++], u[m++]);
1528
1528
  return d;
1529
1529
  }
1530
1530
  getUri(e) {
1531
- e = me(this.defaults, e);
1531
+ e = he(this.defaults, e);
1532
1532
  const r = Qt(e.baseURL, e.url, e.allowAbsoluteUrls);
1533
1533
  return Kt(r, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
1536
  f.forEach(["delete", "get", "head", "options"], function(e) {
1537
- he.prototype[e] = function(r, s) {
1538
- return this.request(me(s || {}, {
1537
+ xe.prototype[e] = function(r, s) {
1538
+ return this.request(he(s || {}, {
1539
1539
  method: e,
1540
1540
  url: r,
1541
1541
  data: (s || {}).data
@@ -1545,7 +1545,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1545
1545
  f.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function r(s) {
1547
1547
  return function(o, a, c) {
1548
- return this.request(me(c || {}, {
1548
+ return this.request(he(c || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
@@ -1555,7 +1555,7 @@ f.forEach(["post", "put", "patch"], function(e) {
1555
1555
  }));
1556
1556
  };
1557
1557
  }
1558
- he.prototype[e] = r(), he.prototype[e + "Form"] = r(!0);
1558
+ xe.prototype[e] = r(), xe.prototype[e + "Form"] = r(!0);
1559
1559
  });
1560
1560
  let Ln = class sr {
1561
1561
  constructor(e) {
@@ -1707,13 +1707,13 @@ Object.entries(rt).forEach(([t, e]) => {
1707
1707
  rt[e] = t;
1708
1708
  });
1709
1709
  function ir(t) {
1710
- const e = new he(t), r = Nt(he.prototype.request, e);
1711
- return f.extend(r, he.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1712
- return ir(me(t, i));
1710
+ const e = new xe(t), r = Nt(xe.prototype.request, e);
1711
+ return f.extend(r, xe.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1712
+ return ir(he(t, i));
1713
1713
  }, r;
1714
1714
  }
1715
1715
  const J = ir(Oe);
1716
- J.Axios = he;
1716
+ J.Axios = xe;
1717
1717
  J.CanceledError = je;
1718
1718
  J.CancelToken = Ln;
1719
1719
  J.isCancel = Xt;
@@ -1726,7 +1726,7 @@ J.all = function(e) {
1726
1726
  };
1727
1727
  J.spread = qn;
1728
1728
  J.isAxiosError = Mn;
1729
- J.mergeConfig = me;
1729
+ J.mergeConfig = he;
1730
1730
  J.AxiosHeaders = ne;
1731
1731
  J.formToJSON = (t) => Gt(f.isHTMLForm(t) ? new FormData(t) : t);
1732
1732
  J.getAdapter = rr.getAdapter;
@@ -2248,7 +2248,7 @@ class ui {
2248
2248
  );
2249
2249
  }
2250
2250
  }
2251
- var _e = { exports: {} }, ke = {};
2251
+ var _e = { exports: {} }, Ee = {};
2252
2252
  /**
2253
2253
  * @license React
2254
2254
  * react-jsx-runtime.production.js
@@ -2260,7 +2260,7 @@ var _e = { exports: {} }, ke = {};
2260
2260
  */
2261
2261
  var It;
2262
2262
  function Wn() {
2263
- if (It) return ke;
2263
+ if (It) return Ee;
2264
2264
  It = 1;
2265
2265
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2266
2266
  function r(s, i, o) {
@@ -2278,7 +2278,7 @@ function Wn() {
2278
2278
  props: o
2279
2279
  };
2280
2280
  }
2281
- return ke.Fragment = e, ke.jsx = r, ke.jsxs = r, ke;
2281
+ return Ee.Fragment = e, Ee.jsx = r, Ee.jsxs = r, Ee;
2282
2282
  }
2283
2283
  var Ce = {};
2284
2284
  /**
@@ -2368,7 +2368,7 @@ function Bn() {
2368
2368
  }
2369
2369
  }
2370
2370
  function i() {
2371
- var l = k.A;
2371
+ var l = E.A;
2372
2372
  return l === null ? null : l.getOwner();
2373
2373
  }
2374
2374
  function o() {
@@ -2399,10 +2399,10 @@ function Bn() {
2399
2399
  "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."
2400
2400
  )), l = this.props.ref, l !== void 0 ? l : null;
2401
2401
  }
2402
- function p(l, b, S, j, G, pe) {
2402
+ function u(l, b, S, j, G, ue) {
2403
2403
  var Y = S.ref;
2404
2404
  return l = {
2405
- $$typeof: u,
2405
+ $$typeof: p,
2406
2406
  type: l,
2407
2407
  key: b,
2408
2408
  props: S,
@@ -2429,10 +2429,10 @@ function Bn() {
2429
2429
  configurable: !1,
2430
2430
  enumerable: !1,
2431
2431
  writable: !0,
2432
- value: pe
2432
+ value: ue
2433
2433
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2434
2434
  }
2435
- function d(l, b, S, j, G, pe) {
2435
+ function d(l, b, S, j, G, ue) {
2436
2436
  var Y = b.children;
2437
2437
  if (Y !== void 0)
2438
2438
  if (j)
@@ -2471,22 +2471,22 @@ React keys must be passed directly to JSX without using spread:
2471
2471
  return Y && c(
2472
2472
  S,
2473
2473
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2474
- ), p(
2474
+ ), u(
2475
2475
  l,
2476
2476
  Y,
2477
2477
  S,
2478
2478
  i(),
2479
2479
  G,
2480
- pe
2480
+ ue
2481
2481
  );
2482
2482
  }
2483
2483
  function m(l) {
2484
2484
  P(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === U && (l._payload.status === "fulfilled" ? P(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
2485
2485
  }
2486
2486
  function P(l) {
2487
- return typeof l == "object" && l !== null && l.$$typeof === u;
2487
+ return typeof l == "object" && l !== null && l.$$typeof === p;
2488
2488
  }
2489
- var O = Te, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), k = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2489
+ var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), E = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2490
2490
  return null;
2491
2491
  };
2492
2492
  O = {
@@ -2499,7 +2499,7 @@ React keys must be passed directly to JSX without using spread:
2499
2499
  o
2500
2500
  )(), K = I(s(o)), L = {};
2501
2501
  Ce.Fragment = x, Ce.jsx = function(l, b, S) {
2502
- var j = 1e4 > k.recentlyCreatedOwnerStacks++;
2502
+ var j = 1e4 > E.recentlyCreatedOwnerStacks++;
2503
2503
  return d(
2504
2504
  l,
2505
2505
  b,
@@ -2509,7 +2509,7 @@ React keys must be passed directly to JSX without using spread:
2509
2509
  j ? I(s(l)) : K
2510
2510
  );
2511
2511
  }, Ce.jsxs = function(l, b, S) {
2512
- var j = 1e4 > k.recentlyCreatedOwnerStacks++;
2512
+ var j = 1e4 > E.recentlyCreatedOwnerStacks++;
2513
2513
  return d(
2514
2514
  l,
2515
2515
  b,
@@ -2590,7 +2590,7 @@ const Gn = Ut(
2590
2590
  ...c
2591
2591
  },
2592
2592
  [
2593
- ...a.map(([p, d]) => Xe(p, d)),
2593
+ ...a.map(([u, d]) => Xe(u, d)),
2594
2594
  ...Array.isArray(o) ? o : [o]
2595
2595
  ]
2596
2596
  )
@@ -2866,14 +2866,14 @@ const vs = [
2866
2866
  const Ss = [
2867
2867
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2868
2868
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2869
- ], fe = q("mail", Ss);
2869
+ ], pe = q("mail", Ss);
2870
2870
  /**
2871
2871
  * @license lucide-react v0.544.0 - ISC
2872
2872
  *
2873
2873
  * This source code is licensed under the ISC license.
2874
2874
  * See the LICENSE file in the root directory of this source tree.
2875
2875
  */
2876
- const Es = [
2876
+ const ks = [
2877
2877
  [
2878
2878
  "path",
2879
2879
  {
@@ -2882,7 +2882,7 @@ const Es = [
2882
2882
  }
2883
2883
  ],
2884
2884
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2885
- ], ks = q("map-pin", Es);
2885
+ ], Es = q("map-pin", ks);
2886
2886
  /**
2887
2887
  * @license lucide-react v0.544.0 - ISC
2888
2888
  *
@@ -3042,7 +3042,7 @@ const qs = [
3042
3042
  ], ze = q("x", qs), dr = pr(null), pi = ({
3043
3043
  authix: t,
3044
3044
  children: e
3045
- }) => /* @__PURE__ */ n.jsx(dr.Provider, { value: t, children: e }), ue = () => {
3045
+ }) => /* @__PURE__ */ n.jsx(dr.Provider, { value: t, children: e }), me = () => {
3046
3046
  const t = fr(dr);
3047
3047
  if (!t)
3048
3048
  throw new Error("useAuthix must be used inside <AuthixProvider />");
@@ -3058,7 +3058,7 @@ const qs = [
3058
3058
  darkMode: c = !0,
3059
3059
  // Only avatar is optional
3060
3060
  showAvatar: h = !1,
3061
- roles: p = [],
3061
+ roles: u = [],
3062
3062
  // 🔥 FIXED
3063
3063
  showRoleSelector: d = !1,
3064
3064
  // 🔥 FIXED
@@ -3066,13 +3066,13 @@ const qs = [
3066
3066
  onSuccess: P,
3067
3067
  onError: O
3068
3068
  }) => {
3069
- const u = ue(), w = {
3069
+ const p = me(), w = {
3070
3070
  name: "",
3071
3071
  email: "",
3072
3072
  password: "",
3073
- role: p.length ? p[0] : "user",
3073
+ role: u.length ? u[0] : "user",
3074
3074
  ...h && { avatarUrl: "" }
3075
- }, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1), k = c ? "#ffffff" : "#111827", V = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3075
+ }, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1), E = c ? "#ffffff" : "#111827", V = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3076
3076
  Te.useEffect(() => {
3077
3077
  if (typeof window < "u") {
3078
3078
  const L = () => X(window.innerWidth < 768);
@@ -3095,7 +3095,7 @@ const qs = [
3095
3095
  password: x.password,
3096
3096
  role: x.role,
3097
3097
  ...x.avatarUrl ? { avatarUrl: x.avatarUrl } : {}
3098
- }, b = await u.signupUser(l);
3098
+ }, b = await p.signupUser(l);
3099
3099
  b.success ? (v({
3100
3100
  type: "success",
3101
3101
  text: b.message || "Account created successfully!"
@@ -3115,7 +3115,7 @@ const qs = [
3115
3115
  backgroundColor: z,
3116
3116
  border: `1px solid ${I}`,
3117
3117
  borderRadius: "10px",
3118
- color: k,
3118
+ color: E,
3119
3119
  fontSize: "15px",
3120
3120
  outline: "none",
3121
3121
  transition: "all 0.2s ease",
@@ -3184,7 +3184,7 @@ const qs = [
3184
3184
  style: {
3185
3185
  fontSize: "24px",
3186
3186
  fontWeight: 700,
3187
- color: k,
3187
+ color: E,
3188
3188
  margin: 0
3189
3189
  },
3190
3190
  children: r
@@ -3237,7 +3237,7 @@ const qs = [
3237
3237
  onSubmit: B,
3238
3238
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3239
3239
  children: [
3240
- d && p && p.length === 2 && /* @__PURE__ */ n.jsxs(
3240
+ d && u && u.length === 2 && /* @__PURE__ */ n.jsxs(
3241
3241
  "div",
3242
3242
  {
3243
3243
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3248,7 +3248,7 @@ const qs = [
3248
3248
  style: {
3249
3249
  fontSize: "14px",
3250
3250
  fontWeight: 500,
3251
- color: k
3251
+ color: E
3252
3252
  },
3253
3253
  children: "Select Role"
3254
3254
  }
@@ -3282,7 +3282,7 @@ const qs = [
3282
3282
  // subtle shadow
3283
3283
  borderRadius: "10px",
3284
3284
  transition: "transform 0.3s ease, background-color 0.3s ease",
3285
- transform: x.role === p[1] ? "translateX(100%)" : "translateX(0)",
3285
+ transform: x.role === u[1] ? "translateX(100%)" : "translateX(0)",
3286
3286
  zIndex: 0
3287
3287
  }
3288
3288
  }
@@ -3291,43 +3291,43 @@ const qs = [
3291
3291
  "button",
3292
3292
  {
3293
3293
  type: "button",
3294
- onClick: () => C((L) => ({ ...L, role: p[0] })),
3294
+ onClick: () => C((L) => ({ ...L, role: u[0] })),
3295
3295
  style: {
3296
3296
  flex: 1,
3297
3297
  zIndex: 10,
3298
3298
  border: "none",
3299
3299
  background: "transparent",
3300
- color: x.role === p[0] ? o : c ? "#9ca3af" : "#6b7280",
3300
+ color: x.role === u[0] ? o : c ? "#9ca3af" : "#6b7280",
3301
3301
  // theme-aware inactive color
3302
- fontWeight: x.role === p[0] ? 600 : 500,
3302
+ fontWeight: x.role === u[0] ? 600 : 500,
3303
3303
  fontSize: "14px",
3304
3304
  display: "flex",
3305
3305
  alignItems: "center",
3306
3306
  justifyContent: "center",
3307
3307
  transition: "color 0.2s ease"
3308
3308
  },
3309
- children: p[0].charAt(0).toUpperCase() + p[0].slice(1)
3309
+ children: u[0].charAt(0).toUpperCase() + u[0].slice(1)
3310
3310
  }
3311
3311
  ),
3312
3312
  /* @__PURE__ */ n.jsx(
3313
3313
  "button",
3314
3314
  {
3315
3315
  type: "button",
3316
- onClick: () => C((L) => ({ ...L, role: p[1] })),
3316
+ onClick: () => C((L) => ({ ...L, role: u[1] })),
3317
3317
  style: {
3318
3318
  flex: 1,
3319
3319
  zIndex: 10,
3320
3320
  border: "none",
3321
3321
  background: "transparent",
3322
- color: x.role === p[1] ? o : c ? "#9ca3af" : "#6b7280",
3323
- fontWeight: x.role === p[1] ? 600 : 500,
3322
+ color: x.role === u[1] ? o : c ? "#9ca3af" : "#6b7280",
3323
+ fontWeight: x.role === u[1] ? 600 : 500,
3324
3324
  fontSize: "14px",
3325
3325
  display: "flex",
3326
3326
  alignItems: "center",
3327
3327
  justifyContent: "center",
3328
3328
  transition: "color 0.2s ease"
3329
3329
  },
3330
- children: p[1].charAt(0).toUpperCase() + p[1].slice(1)
3330
+ children: u[1].charAt(0).toUpperCase() + u[1].slice(1)
3331
3331
  }
3332
3332
  )
3333
3333
  ]
@@ -3344,7 +3344,7 @@ const qs = [
3344
3344
  style: {
3345
3345
  fontSize: "14px",
3346
3346
  fontWeight: 500,
3347
- color: k
3347
+ color: E
3348
3348
  },
3349
3349
  children: "Full Name"
3350
3350
  }
@@ -3399,14 +3399,14 @@ const qs = [
3399
3399
  style: {
3400
3400
  fontSize: "14px",
3401
3401
  fontWeight: 500,
3402
- color: k
3402
+ color: E
3403
3403
  },
3404
3404
  children: "Email Address"
3405
3405
  }
3406
3406
  ),
3407
3407
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3408
3408
  /* @__PURE__ */ n.jsx(
3409
- fe,
3409
+ pe,
3410
3410
  {
3411
3411
  size: 20,
3412
3412
  style: {
@@ -3454,7 +3454,7 @@ const qs = [
3454
3454
  style: {
3455
3455
  fontSize: "14px",
3456
3456
  fontWeight: 500,
3457
- color: k
3457
+ color: E
3458
3458
  },
3459
3459
  children: "Password"
3460
3460
  }
@@ -3532,7 +3532,7 @@ const qs = [
3532
3532
  style: {
3533
3533
  fontSize: "14px",
3534
3534
  fontWeight: 500,
3535
- color: k
3535
+ color: E
3536
3536
  },
3537
3537
  children: "Avatar URL (Optional)"
3538
3538
  }
@@ -3683,14 +3683,14 @@ const qs = [
3683
3683
  gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3684
3684
  darkMode: c = !0,
3685
3685
  signupUrl: h,
3686
- onSuccess: p,
3686
+ onSuccess: u,
3687
3687
  onError: d
3688
3688
  }) => {
3689
- const m = ue(), [P, O] = R("login"), [u, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, v] = R(""), [F, U] = R(""), [M, X] = R({
3689
+ const m = me(), [P, O] = R("login"), [p, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, v] = R(""), [F, U] = R(""), [M, X] = R({
3690
3690
  email: "",
3691
3691
  otp: "",
3692
3692
  newPassword: ""
3693
- }), [k, V] = R(!1), z = c ? "#ffffff" : "#111827", I = c ? "#a1a1aa" : "#6b7280", W = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", Z = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3693
+ }), [E, V] = R(!1), z = c ? "#ffffff" : "#111827", I = c ? "#a1a1aa" : "#6b7280", W = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", Z = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3694
3694
  Te.useEffect(() => {
3695
3695
  if (typeof window < "u") {
3696
3696
  const S = () => V(window.innerWidth < 768);
@@ -3703,7 +3703,7 @@ const qs = [
3703
3703
  const j = await m.loginUser({ email: g, password: F }), { user: G } = j;
3704
3704
  if (!G)
3705
3705
  throw new Error(j.message || "Login failed");
3706
- _({ type: "success", text: `Welcome ${G.name}` }), p?.(G);
3706
+ _({ type: "success", text: `Welcome ${G.name}` }), u?.(G);
3707
3707
  } catch (j) {
3708
3708
  const G = j.message || "Login failed";
3709
3709
  _({ type: "error", text: G }), d?.(j);
@@ -3755,7 +3755,7 @@ const qs = [
3755
3755
  }
3756
3756
  }, b = {
3757
3757
  width: "100%",
3758
- padding: k ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3758
+ padding: E ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3759
3759
  backgroundColor: W,
3760
3760
  border: `1px solid ${Z}`,
3761
3761
  borderRadius: "10px",
@@ -3776,15 +3776,15 @@ const qs = [
3776
3776
  "div",
3777
3777
  {
3778
3778
  style: {
3779
- minWidth: k ? "320px" : "380px",
3780
- maxWidth: k ? "340px" : "390px",
3779
+ minWidth: E ? "320px" : "380px",
3780
+ maxWidth: E ? "340px" : "390px",
3781
3781
  width: "100%",
3782
3782
  display: "flex",
3783
3783
  flexDirection: "column",
3784
3784
  borderRadius: "10px",
3785
3785
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3786
3786
  backgroundColor: c ? "#000000" : "#ffffff",
3787
- padding: k ? "30px 24px" : "18px 28px"
3787
+ padding: E ? "30px 24px" : "18px 28px"
3788
3788
  },
3789
3789
  children: [
3790
3790
  /* @__PURE__ */ n.jsxs(
@@ -3829,7 +3829,7 @@ const qs = [
3829
3829
  color: z,
3830
3830
  margin: 0
3831
3831
  },
3832
- children: P === "login" ? r : u === 1 ? "Forgot Password" : "Reset Password"
3832
+ children: P === "login" ? r : p === 1 ? "Forgot Password" : "Reset Password"
3833
3833
  }
3834
3834
  ),
3835
3835
  /* @__PURE__ */ n.jsx(
@@ -3870,7 +3870,7 @@ const qs = [
3870
3870
  ),
3871
3871
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3872
3872
  /* @__PURE__ */ n.jsx(
3873
- fe,
3873
+ pe,
3874
3874
  {
3875
3875
  size: 20,
3876
3876
  style: {
@@ -4024,10 +4024,10 @@ const qs = [
4024
4024
  P === "forgot" && /* @__PURE__ */ n.jsxs(
4025
4025
  "form",
4026
4026
  {
4027
- onSubmit: u === 1 ? L : l,
4027
+ onSubmit: p === 1 ? L : l,
4028
4028
  style: { display: "flex", flexDirection: "column", gap: "14px" },
4029
4029
  children: [
4030
- u === 1 ? /* @__PURE__ */ n.jsxs(
4030
+ p === 1 ? /* @__PURE__ */ n.jsxs(
4031
4031
  "div",
4032
4032
  {
4033
4033
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -4046,7 +4046,7 @@ const qs = [
4046
4046
  ),
4047
4047
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
4048
4048
  /* @__PURE__ */ n.jsx(
4049
- fe,
4049
+ pe,
4050
4050
  {
4051
4051
  size: 20,
4052
4052
  style: {
@@ -4191,7 +4191,7 @@ const qs = [
4191
4191
  borderRadius: "10px",
4192
4192
  fontWeight: 600
4193
4193
  },
4194
- children: T ? "Please wait..." : u === 1 ? "Send Reset OTP" : "Reset Password"
4194
+ children: T ? "Please wait..." : p === 1 ? "Send Reset OTP" : "Reset Password"
4195
4195
  }
4196
4196
  ),
4197
4197
  /* @__PURE__ */ n.jsx(
@@ -4262,36 +4262,30 @@ const qs = [
4262
4262
  children: t,
4263
4263
  fallback: e = null
4264
4264
  }) => {
4265
- const r = ue(), [s, i] = R(!1), [o, a] = R(null);
4265
+ const [r, s] = R(!1), [i, o] = R(null);
4266
4266
  if (te(() => {
4267
- i(!0), (async () => {
4268
- try {
4269
- const p = await r.checkUserSession();
4270
- a(!!p?.authenticated);
4271
- } catch {
4272
- a(!1);
4273
- }
4274
- })();
4275
- }, [r]), !s) return null;
4276
- const c = (h) => typeof h == "function" ? h() : h;
4277
- return o === null ? c(e) ?? null : o ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : c(e);
4267
+ s(!0);
4268
+ const h = document.cookie.split(";").map((u) => u.trim()).some(
4269
+ (u) => u.startsWith("authix_session=")
4270
+ );
4271
+ o(h);
4272
+ }, []), !r) return null;
4273
+ const a = (c) => typeof c == "function" ? c() : c;
4274
+ return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
4278
4275
  }, mi = ({
4279
4276
  children: t,
4280
4277
  fallback: e = null
4281
4278
  }) => {
4282
- const r = ue(), [s, i] = R(!1), [o, a] = R(null);
4279
+ const [r, s] = R(!1), [i, o] = R(null);
4283
4280
  if (te(() => {
4284
- i(!0), (async () => {
4285
- try {
4286
- const p = await r.checkUserSession();
4287
- a(!p?.authenticated);
4288
- } catch {
4289
- a(!0);
4290
- }
4291
- })();
4292
- }, [r]), !s) return null;
4293
- const c = (h) => typeof h == "function" ? h() : h;
4294
- return o === null ? c(e) ?? null : o ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : c(e);
4281
+ s(!0);
4282
+ const h = document.cookie.split(";").map((u) => u.trim()).some(
4283
+ (u) => u.startsWith("authix_session=")
4284
+ );
4285
+ o(!h);
4286
+ }, []), !r) return null;
4287
+ const a = (c) => typeof c == "function" ? c() : c;
4288
+ return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
4295
4289
  }, Ms = ({
4296
4290
  isOpen: t,
4297
4291
  onClose: e,
@@ -4301,7 +4295,7 @@ const qs = [
4301
4295
  token: o,
4302
4296
  colors: a
4303
4297
  }) => {
4304
- const c = ue(), [h, p] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [u, w] = R(!1);
4298
+ const c = me(), [h, u] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [p, w] = R(!1);
4305
4299
  if (te(() => {
4306
4300
  if (typeof window > "u") return;
4307
4301
  const y = () => {
@@ -4310,7 +4304,7 @@ const qs = [
4310
4304
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
4311
4305
  }, []), !t) return null;
4312
4306
  const x = async () => {
4313
- p(!0), O("processing");
4307
+ u(!0), O("processing");
4314
4308
  try {
4315
4309
  const y = await c.deleteUser({
4316
4310
  userId: i
@@ -4321,7 +4315,7 @@ const qs = [
4321
4315
  } catch (y) {
4322
4316
  s(y.response?.data?.message || "Something went wrong"), O("warning");
4323
4317
  } finally {
4324
- p(!1);
4318
+ u(!1);
4325
4319
  }
4326
4320
  }, C = d.toLowerCase() === "delete my account", T = (y) => {
4327
4321
  y.target === y.currentTarget && P !== "processing" && P !== "success" && e();
@@ -4503,7 +4497,7 @@ const qs = [
4503
4497
  style: {
4504
4498
  display: "flex",
4505
4499
  gap: "12px",
4506
- flexDirection: u ? "column-reverse" : "row",
4500
+ flexDirection: p ? "column-reverse" : "row",
4507
4501
  justifyContent: "flex-end",
4508
4502
  alignItems: "stretch"
4509
4503
  },
@@ -4521,8 +4515,8 @@ const qs = [
4521
4515
  fontSize: "14px",
4522
4516
  fontWeight: 500,
4523
4517
  cursor: "pointer",
4524
- flex: u ? "none" : 1,
4525
- minWidth: u ? "100%" : "120px",
4518
+ flex: p ? "none" : 1,
4519
+ minWidth: p ? "100%" : "120px",
4526
4520
  transition: "all 0.2s ease"
4527
4521
  },
4528
4522
  onMouseOver: (y) => {
@@ -4547,8 +4541,8 @@ const qs = [
4547
4541
  fontSize: "14px",
4548
4542
  fontWeight: 600,
4549
4543
  cursor: "pointer",
4550
- flex: u ? "none" : 1,
4551
- minWidth: u ? "100%" : "140px",
4544
+ flex: p ? "none" : 1,
4545
+ minWidth: p ? "100%" : "140px",
4552
4546
  display: "flex",
4553
4547
  alignItems: "center",
4554
4548
  justifyContent: "center",
@@ -4709,8 +4703,8 @@ const qs = [
4709
4703
  fontSize: "14px",
4710
4704
  fontWeight: 500,
4711
4705
  cursor: "pointer",
4712
- flex: u ? "none" : 1,
4713
- minWidth: u ? "100%" : "120px",
4706
+ flex: p ? "none" : 1,
4707
+ minWidth: p ? "100%" : "120px",
4714
4708
  transition: "all 0.2s ease"
4715
4709
  },
4716
4710
  onMouseOver: (y) => {
@@ -4736,8 +4730,8 @@ const qs = [
4736
4730
  fontSize: "14px",
4737
4731
  fontWeight: 600,
4738
4732
  cursor: !C || h ? "not-allowed" : "pointer",
4739
- flex: u ? "none" : 1,
4740
- minWidth: u ? "100%" : "140px",
4733
+ flex: p ? "none" : 1,
4734
+ minWidth: p ? "100%" : "140px",
4741
4735
  opacity: !C || h ? 0.6 : 1,
4742
4736
  display: "flex",
4743
4737
  alignItems: "center",
@@ -5150,20 +5144,20 @@ const qs = [
5150
5144
  onUpdate: r,
5151
5145
  colors: s
5152
5146
  }) => {
5153
- const [i, o] = R(""), [a, c] = R(!1), [h, p] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5147
+ const [i, o] = R(""), [a, c] = R(!1), [h, u] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5154
5148
  if (te(() => {
5155
5149
  if (typeof window > "u") return;
5156
- const u = () => {
5157
- p(window.innerWidth < 640);
5150
+ const p = () => {
5151
+ u(window.innerWidth < 640);
5158
5152
  };
5159
- return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5153
+ return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
5160
5154
  }, []), te(() => {
5161
5155
  if (!i.trim()) {
5162
5156
  m({ isValid: !1, message: "", type: null });
5163
5157
  return;
5164
5158
  }
5165
5159
  try {
5166
- const u = new URL(i), w = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(u.pathname);
5160
+ const p = new URL(i), w = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(p.pathname);
5167
5161
  m(w ? {
5168
5162
  isValid: !0,
5169
5163
  message: "Valid image URL",
@@ -5190,8 +5184,8 @@ const qs = [
5190
5184
  c(!1);
5191
5185
  }
5192
5186
  }
5193
- }, O = (u) => {
5194
- u.target === u.currentTarget && e();
5187
+ }, O = (p) => {
5188
+ p.target === p.currentTarget && e();
5195
5189
  };
5196
5190
  return /* @__PURE__ */ n.jsxs(
5197
5191
  "div",
@@ -5298,11 +5292,11 @@ const qs = [
5298
5292
  flexShrink: 0,
5299
5293
  transition: "all 0.2s ease"
5300
5294
  },
5301
- onMouseOver: (u) => {
5302
- u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.color = s.textPrimary;
5295
+ onMouseOver: (p) => {
5296
+ p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.color = s.textPrimary;
5303
5297
  },
5304
- onMouseOut: (u) => {
5305
- u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.color = s.textTertiary;
5298
+ onMouseOut: (p) => {
5299
+ p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.color = s.textTertiary;
5306
5300
  },
5307
5301
  children: /* @__PURE__ */ n.jsx(ze, { size: 20 })
5308
5302
  }
@@ -5347,7 +5341,7 @@ const qs = [
5347
5341
  id: "avatar-url",
5348
5342
  placeholder: "https://example.com/your-avatar.jpg",
5349
5343
  value: i,
5350
- onChange: (u) => o(u.target.value),
5344
+ onChange: (p) => o(p.target.value),
5351
5345
  style: {
5352
5346
  width: "100%",
5353
5347
  padding: "14px 16px",
@@ -5361,11 +5355,11 @@ const qs = [
5361
5355
  transition: "all 0.2s ease",
5362
5356
  boxSizing: "border-box"
5363
5357
  },
5364
- onFocus: (u) => {
5365
- u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5358
+ onFocus: (p) => {
5359
+ p.target.style.borderColor = s.accent, p.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5366
5360
  },
5367
- onBlur: (u) => {
5368
- u.target.style.borderColor = d.type === "error" ? s.error : d.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5361
+ onBlur: (p) => {
5362
+ p.target.style.borderColor = d.type === "error" ? s.error : d.type === "success" ? s.success : s.border, p.target.style.boxShadow = "none";
5369
5363
  },
5370
5364
  disabled: a
5371
5365
  }
@@ -5440,8 +5434,8 @@ const qs = [
5440
5434
  border: `2px solid ${s.success}40`,
5441
5435
  margin: "0 auto"
5442
5436
  },
5443
- onError: (u) => {
5444
- u.currentTarget.style.display = "none";
5437
+ onError: (p) => {
5438
+ p.currentTarget.style.display = "none";
5445
5439
  }
5446
5440
  }
5447
5441
  )
@@ -5482,11 +5476,11 @@ const qs = [
5482
5476
  opacity: a ? 0.6 : 1,
5483
5477
  transition: "all 0.2s ease"
5484
5478
  },
5485
- onMouseOver: (u) => {
5486
- a || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5479
+ onMouseOver: (p) => {
5480
+ a || (p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.transform = "translateY(-1px)");
5487
5481
  },
5488
- onMouseOut: (u) => {
5489
- a || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5482
+ onMouseOut: (p) => {
5483
+ a || (p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.transform = "translateY(0)");
5490
5484
  },
5491
5485
  children: "Cancel"
5492
5486
  }
@@ -5515,11 +5509,11 @@ const qs = [
5515
5509
  transition: "all 0.2s ease",
5516
5510
  boxShadow: a || !d.isValid ? "none" : `0 4px 12px ${s.accent}40`
5517
5511
  },
5518
- onMouseOver: (u) => {
5519
- !a && d.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5512
+ onMouseOver: (p) => {
5513
+ !a && d.isValid && (p.currentTarget.style.transform = "translateY(-1px)", p.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5520
5514
  },
5521
- onMouseOut: (u) => {
5522
- !a && d.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5515
+ onMouseOut: (p) => {
5516
+ !a && d.isValid && (p.currentTarget.style.transform = "translateY(0)", p.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5523
5517
  },
5524
5518
  children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5525
5519
  /* @__PURE__ */ n.jsx(
@@ -5604,11 +5598,11 @@ const qs = [
5604
5598
  userId: i,
5605
5599
  colors: o
5606
5600
  }) => {
5607
- const a = ue(), [c, h] = R({
5601
+ const a = me(), [c, h] = R({
5608
5602
  currentPassword: "",
5609
5603
  newPassword: "",
5610
5604
  confirmPassword: ""
5611
- }), [p, d] = R({}), [m, P] = R(!1), [O, u] = R({
5605
+ }), [u, d] = R({}), [m, P] = R(!1), [O, p] = R({
5612
5606
  currentPassword: !1,
5613
5607
  newPassword: !1,
5614
5608
  confirmPassword: !1
@@ -5622,9 +5616,9 @@ const qs = [
5622
5616
  }, []), !t) return null;
5623
5617
  const C = (g) => {
5624
5618
  const { name: v, value: F } = g.target;
5625
- h((U) => ({ ...U, [v]: F })), p[v] && d((U) => ({ ...U, [v]: "" }));
5619
+ h((U) => ({ ...U, [v]: F })), u[v] && d((U) => ({ ...U, [v]: "" }));
5626
5620
  }, T = (g) => {
5627
- u((v) => ({ ...v, [g]: !v[g] }));
5621
+ p((v) => ({ ...v, [g]: !v[g] }));
5628
5622
  }, A = () => {
5629
5623
  const g = {};
5630
5624
  return c.currentPassword || (g.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (g.newPassword = "Password must be at least 6 characters") : g.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (g.confirmPassword = "Passwords do not match"), d(g), Object.keys(g).length === 0;
@@ -5832,7 +5826,7 @@ const qs = [
5832
5826
  width: "100%",
5833
5827
  padding: "14px 48px 14px 44px",
5834
5828
  borderRadius: "10px",
5835
- border: `1.5px solid ${p[g] ? o.error : o.border}`,
5829
+ border: `1.5px solid ${u[g] ? o.error : o.border}`,
5836
5830
  backgroundColor: "transparent",
5837
5831
  color: o.textPrimary,
5838
5832
  fontSize: "15px",
@@ -5844,7 +5838,7 @@ const qs = [
5844
5838
  U.target.style.borderColor = o.accent, U.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
5845
5839
  },
5846
5840
  onBlur: (U) => {
5847
- U.target.style.borderColor = p[g] ? o.error : o.border, U.target.style.boxShadow = "none";
5841
+ U.target.style.borderColor = u[g] ? o.error : o.border, U.target.style.boxShadow = "none";
5848
5842
  }
5849
5843
  }
5850
5844
  ),
@@ -5880,7 +5874,7 @@ const qs = [
5880
5874
  }
5881
5875
  )
5882
5876
  ] }),
5883
- p[g] && /* @__PURE__ */ n.jsxs(
5877
+ u[g] && /* @__PURE__ */ n.jsxs(
5884
5878
  "div",
5885
5879
  {
5886
5880
  style: {
@@ -5893,7 +5887,7 @@ const qs = [
5893
5887
  },
5894
5888
  children: [
5895
5889
  /* @__PURE__ */ n.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5896
- p[g]
5890
+ u[g]
5897
5891
  ]
5898
5892
  }
5899
5893
  )
@@ -6043,7 +6037,7 @@ const qs = [
6043
6037
  otpSent: a,
6044
6038
  verifying: c,
6045
6039
  user: h,
6046
- colors: p,
6040
+ colors: u,
6047
6041
  darkMode: d
6048
6042
  }) => {
6049
6043
  if (!t) return null;
@@ -6063,18 +6057,18 @@ const qs = [
6063
6057
  {
6064
6058
  className: "verify-email-modal",
6065
6059
  style: {
6066
- backgroundColor: p.surface,
6067
- border: `1px solid ${p.border}`
6060
+ backgroundColor: u.surface,
6061
+ border: `1px solid ${u.border}`
6068
6062
  },
6069
6063
  children: [
6070
6064
  /* @__PURE__ */ n.jsxs("div", { className: "modal-header", children: [
6071
- /* @__PURE__ */ n.jsx("h3", { style: { color: p.textPrimary }, children: "Verify Your Email" }),
6065
+ /* @__PURE__ */ n.jsx("h3", { style: { color: u.textPrimary }, children: "Verify Your Email" }),
6072
6066
  /* @__PURE__ */ n.jsx(
6073
6067
  "button",
6074
6068
  {
6075
6069
  onClick: m,
6076
6070
  className: "close-btn",
6077
- style: { color: p.textTertiary },
6071
+ style: { color: u.textTertiary },
6078
6072
  "aria-label": "Close verification modal",
6079
6073
  children: /* @__PURE__ */ n.jsx(ze, { size: 20, "aria-hidden": "true" })
6080
6074
  }
@@ -6082,9 +6076,9 @@ const qs = [
6082
6076
  ] }),
6083
6077
  /* @__PURE__ */ n.jsxs("form", { className: "verify-form", onSubmit: r, children: [
6084
6078
  /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6085
- /* @__PURE__ */ n.jsx("label", { style: { color: p.textSecondary }, children: "Email" }),
6079
+ /* @__PURE__ */ n.jsx("label", { style: { color: u.textSecondary }, children: "Email" }),
6086
6080
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6087
- /* @__PURE__ */ n.jsx(fe, { size: 18, style: { color: p.textTertiary }, "aria-hidden": "true" }),
6081
+ /* @__PURE__ */ n.jsx(pe, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
6088
6082
  /* @__PURE__ */ n.jsx(
6089
6083
  "input",
6090
6084
  {
@@ -6093,9 +6087,9 @@ const qs = [
6093
6087
  onChange: (P) => o((O) => ({ ...O, email: P.target.value })),
6094
6088
  placeholder: "Enter your email",
6095
6089
  style: {
6096
- backgroundColor: p.surfaceLight,
6097
- color: p.textPrimary,
6098
- borderColor: p.border
6090
+ backgroundColor: u.surfaceLight,
6091
+ color: u.textPrimary,
6092
+ borderColor: u.border
6099
6093
  },
6100
6094
  required: !0,
6101
6095
  "aria-required": "true",
@@ -6105,9 +6099,9 @@ const qs = [
6105
6099
  ] })
6106
6100
  ] }),
6107
6101
  a && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6108
- /* @__PURE__ */ n.jsx("label", { style: { color: p.textSecondary }, children: "OTP" }),
6102
+ /* @__PURE__ */ n.jsx("label", { style: { color: u.textSecondary }, children: "OTP" }),
6109
6103
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6110
- /* @__PURE__ */ n.jsx(lr, { size: 18, style: { color: p.textTertiary }, "aria-hidden": "true" }),
6104
+ /* @__PURE__ */ n.jsx(lr, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
6111
6105
  /* @__PURE__ */ n.jsx(
6112
6106
  "input",
6113
6107
  {
@@ -6116,9 +6110,9 @@ const qs = [
6116
6110
  onChange: (P) => o((O) => ({ ...O, otp: P.target.value })),
6117
6111
  placeholder: "Enter OTP",
6118
6112
  style: {
6119
- backgroundColor: p.surfaceLight,
6120
- color: p.textPrimary,
6121
- borderColor: p.border
6113
+ backgroundColor: u.surfaceLight,
6114
+ color: u.textPrimary,
6115
+ borderColor: u.border
6122
6116
  },
6123
6117
  required: !0,
6124
6118
  "aria-required": "true",
@@ -6134,7 +6128,7 @@ const qs = [
6134
6128
  disabled: c,
6135
6129
  className: "btn-primary",
6136
6130
  style: {
6137
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6131
+ background: `linear-gradient(to right, ${u.accent}, ${u.accentHover})`,
6138
6132
  opacity: c ? 0.7 : 1
6139
6133
  },
6140
6134
  "aria-label": c ? "Verifying email" : "Verify email",
@@ -6151,7 +6145,7 @@ const qs = [
6151
6145
  disabled: c,
6152
6146
  className: "btn-primary",
6153
6147
  style: {
6154
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6148
+ background: `linear-gradient(to right, ${u.accent}, ${u.accentHover})`,
6155
6149
  opacity: c ? 0.7 : 1
6156
6150
  },
6157
6151
  "aria-label": c ? "Sending OTP" : "Send OTP",
@@ -6258,8 +6252,8 @@ const qs = [
6258
6252
  }
6259
6253
 
6260
6254
  .input-container input:focus {
6261
- border-color: ${p.accent};
6262
- box-shadow: 0 0 0 3px ${p.accent}20;
6255
+ border-color: ${u.accent};
6256
+ box-shadow: 0 0 0 3px ${u.accent}20;
6263
6257
  }
6264
6258
 
6265
6259
  .modal-actions {
@@ -6325,35 +6319,35 @@ const qs = [
6325
6319
  onVerify: o,
6326
6320
  primaryColor: a = "#00C212"
6327
6321
  }) => {
6328
- const c = ue(), [h, p] = R(null), [d, m] = R(e), [P, O] = R(!0), [u, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [k, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6322
+ const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [E, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6329
6323
  email: "",
6330
6324
  otp: ""
6331
6325
  }), [L, l] = R(!1), [b, S] = R(!1);
6332
6326
  te(() => {
6333
6327
  if (typeof window < "u") {
6334
- const E = () => p(window.innerWidth);
6335
- return E(), window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
6328
+ const k = () => u(window.innerWidth);
6329
+ return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
6336
6330
  }
6337
6331
  }, []);
6338
- const j = (E, N) => {
6339
- I({ type: E, message: N }), setTimeout(() => I(null), 3e3);
6332
+ const j = (k, N) => {
6333
+ I({ type: k, message: N }), setTimeout(() => I(null), 3e3);
6340
6334
  }, G = () => {
6341
6335
  V(!0);
6342
- const E = setTimeout(() => {
6336
+ const k = setTimeout(() => {
6343
6337
  X(!1), V(!1);
6344
6338
  }, 150);
6345
- return () => clearTimeout(E);
6339
+ return () => clearTimeout(k);
6346
6340
  };
6347
6341
  te(() => {
6348
- const E = (N) => {
6342
+ const k = (N) => {
6349
6343
  const H = document.querySelector(".dropdown-container");
6350
6344
  H && !H.contains(N.target) && G();
6351
6345
  };
6352
- return M && document.addEventListener("mousedown", E), () => {
6353
- document.removeEventListener("mousedown", E);
6346
+ return M && document.addEventListener("mousedown", k), () => {
6347
+ document.removeEventListener("mousedown", k);
6354
6348
  };
6355
6349
  }, [M]);
6356
- const pe = async () => {
6350
+ const ue = async () => {
6357
6351
  if (!B.email || !/\S+@\S+\.\S+/.test(B.email)) {
6358
6352
  j("error", "Please enter a valid email");
6359
6353
  return;
@@ -6364,19 +6358,19 @@ const qs = [
6364
6358
  }
6365
6359
  try {
6366
6360
  S(!0);
6367
- const E = await c.requestEmailVerificationOTP({
6361
+ const k = await c.requestEmailVerificationOTP({
6368
6362
  userId: d.id,
6369
6363
  email: B.email
6370
- }), N = E?.data?.success ?? E?.success, H = E?.data?.message ?? E?.message;
6364
+ }), N = k?.data?.success ?? k?.success, H = k?.data?.message ?? k?.message;
6371
6365
  N ? (j("success", H || "OTP sent to email!"), l(!0)) : j("error", H || "Failed to send OTP");
6372
- } catch (E) {
6373
- const N = E?.response?.data?.message || E?.message || "Server error";
6366
+ } catch (k) {
6367
+ const N = k?.response?.data?.message || k?.message || "Server error";
6374
6368
  j("error", N);
6375
6369
  } finally {
6376
6370
  S(!1);
6377
6371
  }
6378
- }, Y = async (E) => {
6379
- if (E.preventDefault(), !B.email || !B.otp) {
6372
+ }, Y = async (k) => {
6373
+ if (k.preventDefault(), !B.email || !B.otp) {
6380
6374
  j("error", "Please fill in all fields");
6381
6375
  return;
6382
6376
  }
@@ -6407,12 +6401,12 @@ const qs = [
6407
6401
  } finally {
6408
6402
  S(!1);
6409
6403
  }
6410
- }, oe = async (E) => {
6404
+ }, oe = async (k) => {
6411
6405
  if (!d) return !1;
6412
6406
  try {
6413
6407
  const N = await c.updateUser({
6414
6408
  userId: d.id,
6415
- avatarUrl: E
6409
+ avatarUrl: k
6416
6410
  });
6417
6411
  if (N?.success) {
6418
6412
  const H = {
@@ -6420,7 +6414,7 @@ const qs = [
6420
6414
  // 🔒 keep existing auth fields
6421
6415
  ...N.user,
6422
6416
  // 🔁 merge backend response if present
6423
- avatarUrl: E
6417
+ avatarUrl: k
6424
6418
  };
6425
6419
  return m(H), j("success", "Avatar updated successfully!"), !0;
6426
6420
  }
@@ -6432,12 +6426,12 @@ const qs = [
6432
6426
  if (d) {
6433
6427
  C(!0);
6434
6428
  try {
6435
- const E = d.email, N = await c.updateUser({
6429
+ const k = d.email, N = await c.updateUser({
6436
6430
  userId: d.id,
6437
6431
  ...d
6438
6432
  });
6439
6433
  if (N.success && N.user) {
6440
- const H = N.user.email !== E, Q = {
6434
+ const H = N.user.email !== k, Q = {
6441
6435
  ...d,
6442
6436
  // keep old state
6443
6437
  ...N.user,
@@ -6450,15 +6444,15 @@ const qs = [
6450
6444
  ), w(!1);
6451
6445
  } else
6452
6446
  j("error", N.message || "Update failed");
6453
- } catch (E) {
6454
- console.error(E), j("error", "Update failed");
6447
+ } catch (k) {
6448
+ console.error(k), j("error", "Update failed");
6455
6449
  } finally {
6456
6450
  C(!1);
6457
6451
  }
6458
6452
  }
6459
- }, Ve = async (E) => {
6453
+ }, Ve = async (k) => {
6460
6454
  try {
6461
- const N = await c.checkIfUserExists(E);
6455
+ const N = await c.checkIfUserExists(k);
6462
6456
  N?.success === !0 && N?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), m(null));
6463
6457
  } catch (N) {
6464
6458
  console.error("⚠️ User validation request failed:", N);
@@ -6485,10 +6479,10 @@ const qs = [
6485
6479
  }
6486
6480
  })();
6487
6481
  }, [e]), te(() => {
6488
- d?.email && K((E) => ({ ...E, email: d.email }));
6482
+ d?.email && K((k) => ({ ...k, email: d.email }));
6489
6483
  }, [d?.email]);
6490
- const pt = (E, N) => {
6491
- let H = parseInt(E.replace("#", ""), 16), Q = (H >> 16) + N, le = (H >> 8 & 255) + N, Se = (H & 255) + N;
6484
+ const pt = (k, N) => {
6485
+ let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) + N, le = (H >> 8 & 255) + N, Se = (H & 255) + N;
6492
6486
  return Q = Math.min(255, Math.max(0, Q)), le = Math.min(255, Math.max(0, le)), Se = Math.min(255, Math.max(0, Se)), `#${(Se | le << 8 | Q << 16).toString(16).padStart(6, "0")}`;
6493
6487
  }, D = r ? {
6494
6488
  background: "#000000",
@@ -6602,7 +6596,7 @@ const qs = [
6602
6596
  value: d.email,
6603
6597
  name: "email",
6604
6598
  type: "email",
6605
- icon: fe
6599
+ icon: pe
6606
6600
  },
6607
6601
  {
6608
6602
  label: "Phone Number",
@@ -6616,7 +6610,7 @@ const qs = [
6616
6610
  value: d.address || "Not provided",
6617
6611
  name: "address",
6618
6612
  type: "text",
6619
- icon: ks
6613
+ icon: Es
6620
6614
  }
6621
6615
  ];
6622
6616
  return /* @__PURE__ */ n.jsxs(
@@ -6857,7 +6851,7 @@ const qs = [
6857
6851
  flexDirection: "column",
6858
6852
  gap: "6px"
6859
6853
  },
6860
- children: u ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6854
+ children: p ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6861
6855
  /* @__PURE__ */ n.jsxs(
6862
6856
  "button",
6863
6857
  {
@@ -7023,7 +7017,7 @@ const qs = [
7023
7017
  M && /* @__PURE__ */ n.jsxs(
7024
7018
  "div",
7025
7019
  {
7026
- className: `dropdown-container ${k ? "closing" : ""}`,
7020
+ className: `dropdown-container ${E ? "closing" : ""}`,
7027
7021
  style: {
7028
7022
  position: "absolute",
7029
7023
  bottom: "100%",
@@ -7036,7 +7030,7 @@ const qs = [
7036
7030
  zIndex: 200,
7037
7031
  marginBottom: "6px",
7038
7032
  overflow: "hidden",
7039
- animation: `${k ? "drawerSlideDown" : "drawerSlideUp"} 0.25s ease-out forwards`
7033
+ animation: `${E ? "drawerSlideDown" : "drawerSlideUp"} 0.25s ease-out forwards`
7040
7034
  },
7041
7035
  children: [
7042
7036
  /* @__PURE__ */ n.jsxs(
@@ -7060,8 +7054,8 @@ const qs = [
7060
7054
  gap: "8px",
7061
7055
  textAlign: "left"
7062
7056
  },
7063
- onMouseEnter: (E) => E.currentTarget.style.backgroundColor = D.surfaceLight,
7064
- onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
7057
+ onMouseEnter: (k) => k.currentTarget.style.backgroundColor = D.surfaceLight,
7058
+ onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7065
7059
  children: [
7066
7060
  /* @__PURE__ */ n.jsx(ct, { size: 14, "aria-hidden": "true" }),
7067
7061
  "Change Password"
@@ -7089,10 +7083,10 @@ const qs = [
7089
7083
  gap: "8px",
7090
7084
  textAlign: "left"
7091
7085
  },
7092
- onMouseEnter: (E) => {
7093
- E.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
7086
+ onMouseEnter: (k) => {
7087
+ k.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
7094
7088
  },
7095
- onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
7089
+ onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7096
7090
  children: [
7097
7091
  /* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
7098
7092
  "Logout"
@@ -7120,10 +7114,10 @@ const qs = [
7120
7114
  gap: "8px",
7121
7115
  textAlign: "left"
7122
7116
  },
7123
- onMouseEnter: (E) => {
7124
- E.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
7117
+ onMouseEnter: (k) => {
7118
+ k.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
7125
7119
  },
7126
- onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
7120
+ onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7127
7121
  children: [
7128
7122
  /* @__PURE__ */ n.jsx($e, { size: 14, "aria-hidden": "true" }),
7129
7123
  "Delete Account"
@@ -7190,8 +7184,8 @@ const qs = [
7190
7184
  gap: "20px"
7191
7185
  }
7192
7186
  },
7193
- children: ur.map((E) => {
7194
- const N = E.icon;
7187
+ children: ur.map((k) => {
7188
+ const N = k.icon;
7195
7189
  return /* @__PURE__ */ n.jsxs(
7196
7190
  "div",
7197
7191
  {
@@ -7214,16 +7208,16 @@ const qs = [
7214
7208
  },
7215
7209
  children: [
7216
7210
  /* @__PURE__ */ n.jsx(N, { size: 16, "aria-hidden": "true" }),
7217
- E.label
7211
+ k.label
7218
7212
  ]
7219
7213
  }
7220
7214
  ),
7221
- u ? /* @__PURE__ */ n.jsx(
7215
+ p ? /* @__PURE__ */ n.jsx(
7222
7216
  "input",
7223
7217
  {
7224
- type: E.type,
7225
- name: E.name,
7226
- value: d[E.name],
7218
+ type: k.type,
7219
+ name: k.name,
7220
+ value: d[k.name],
7227
7221
  onChange: (H) => m(
7228
7222
  (Q) => Q && { ...Q, [H.target.name]: H.target.value }
7229
7223
  ),
@@ -7240,8 +7234,8 @@ const qs = [
7240
7234
  width: "100%",
7241
7235
  boxSizing: "border-box"
7242
7236
  },
7243
- placeholder: `Enter ${E.label.toLowerCase()}`,
7244
- "aria-label": E.label
7237
+ placeholder: `Enter ${k.label.toLowerCase()}`,
7238
+ "aria-label": k.label
7245
7239
  }
7246
7240
  ) : /* @__PURE__ */ n.jsx(
7247
7241
  "div",
@@ -7258,12 +7252,12 @@ const qs = [
7258
7252
  color: D.textPrimary,
7259
7253
  backgroundColor: r ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7260
7254
  },
7261
- children: E.value
7255
+ children: k.value
7262
7256
  }
7263
7257
  )
7264
7258
  ]
7265
7259
  },
7266
- E.name
7260
+ k.name
7267
7261
  );
7268
7262
  })
7269
7263
  }
@@ -7328,7 +7322,7 @@ const qs = [
7328
7322
  color: D.textSecondary
7329
7323
  },
7330
7324
  children: [
7331
- /* @__PURE__ */ n.jsx(fe, { size: 16, "aria-hidden": "true" }),
7325
+ /* @__PURE__ */ n.jsx(pe, { size: 16, "aria-hidden": "true" }),
7332
7326
  /* @__PURE__ */ n.jsx("span", { children: "Email Verification" })
7333
7327
  ]
7334
7328
  }
@@ -7418,8 +7412,8 @@ const qs = [
7418
7412
  userId: d.id,
7419
7413
  isOpen: y,
7420
7414
  onClose: () => _(!1),
7421
- onSuccess: (E) => j("success", E),
7422
- onError: (E) => j("error", E),
7415
+ onSuccess: (k) => j("success", k),
7416
+ onError: (k) => j("error", k),
7423
7417
  colors: D
7424
7418
  }
7425
7419
  ),
@@ -7430,8 +7424,8 @@ const qs = [
7430
7424
  token: t,
7431
7425
  isOpen: g,
7432
7426
  onClose: () => v(!1),
7433
- onSuccess: (E) => j("success", E),
7434
- onError: (E) => j("error", E),
7427
+ onSuccess: (k) => j("success", k),
7428
+ onError: (k) => j("error", k),
7435
7429
  colors: D
7436
7430
  }
7437
7431
  ),
@@ -7443,7 +7437,7 @@ const qs = [
7443
7437
  U(!1), l(!1), K({ email: d?.email || "", otp: "" });
7444
7438
  },
7445
7439
  onVerify: Y,
7446
- onSendOTP: pe,
7440
+ onSendOTP: ue,
7447
7441
  verifyFormData: B,
7448
7442
  setVerifyFormData: K,
7449
7443
  otpSent: L,
@@ -7557,15 +7551,15 @@ const qs = [
7557
7551
  settingsUrl: c,
7558
7552
  // Menu item visibility with defaults
7559
7553
  showProfileMenuItem: h = !0,
7560
- showSettingsMenuItem: p = !0,
7554
+ showSettingsMenuItem: u = !0,
7561
7555
  showViewProfileMenuItem: d = !0,
7562
7556
  // Custom labels with defaults
7563
7557
  profileLabel: m = "My Profile",
7564
7558
  settingsLabel: P = "Settings",
7565
7559
  viewProfileLabel: O = "View Profile",
7566
- logoutLabel: u = "Sign Out"
7560
+ logoutLabel: p = "Sign Out"
7567
7561
  }) => {
7568
- const w = ue(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [k, V] = R(!1);
7562
+ const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [E, V] = R(!1);
7569
7563
  te(() => {
7570
7564
  if (typeof window > "u") return;
7571
7565
  const l = () => {
@@ -7607,9 +7601,9 @@ const qs = [
7607
7601
  if (typeof window > "u") return;
7608
7602
  const l = () => {
7609
7603
  if (!x || !U.current) return;
7610
- const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, pe = S - b.right, Y = b.left;
7604
+ const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, ue = S - b.right, Y = b.left;
7611
7605
  j - b.bottom;
7612
- const oe = pe >= G || pe > Y;
7606
+ const oe = ue >= G || ue > Y;
7613
7607
  X(oe);
7614
7608
  };
7615
7609
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
@@ -7659,19 +7653,19 @@ const qs = [
7659
7653
  avatarButton: {
7660
7654
  display: "flex",
7661
7655
  alignItems: "center",
7662
- gap: k ? "6px" : "8px",
7663
- padding: k ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
7656
+ gap: E ? "6px" : "8px",
7657
+ padding: E ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
7664
7658
  borderRadius: "24px",
7665
7659
  backgroundColor: z.surface,
7666
7660
  cursor: "pointer",
7667
7661
  transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
7668
- minWidth: k ? "auto" : "140px",
7669
- maxWidth: k ? "200px" : "none",
7662
+ minWidth: E ? "auto" : "140px",
7663
+ maxWidth: E ? "200px" : "none",
7670
7664
  outline: "none"
7671
7665
  },
7672
7666
  avatarImage: {
7673
- width: k ? "28px" : "32px",
7674
- height: k ? "28px" : "32px",
7667
+ width: E ? "28px" : "32px",
7668
+ height: E ? "28px" : "32px",
7675
7669
  borderRadius: "50%",
7676
7670
  objectFit: "cover",
7677
7671
  border: `2px solid ${z.borderLight}`,
@@ -7686,23 +7680,23 @@ const qs = [
7686
7680
  overflow: "hidden"
7687
7681
  },
7688
7682
  userName: {
7689
- fontSize: k ? "13px" : "14px",
7683
+ fontSize: E ? "13px" : "14px",
7690
7684
  fontWeight: 600,
7691
7685
  color: z.textPrimary,
7692
7686
  lineHeight: "1.2",
7693
7687
  whiteSpace: "nowrap",
7694
7688
  overflow: "hidden",
7695
7689
  textOverflow: "ellipsis",
7696
- maxWidth: k ? "80px" : "120px"
7690
+ maxWidth: E ? "80px" : "120px"
7697
7691
  },
7698
7692
  userEmail: {
7699
- fontSize: k ? "11px" : "12px",
7693
+ fontSize: E ? "11px" : "12px",
7700
7694
  color: z.textTertiary,
7701
7695
  lineHeight: "1.2",
7702
7696
  whiteSpace: "nowrap",
7703
7697
  overflow: "hidden",
7704
7698
  textOverflow: "ellipsis",
7705
- maxWidth: k ? "80px" : "120px"
7699
+ maxWidth: E ? "80px" : "120px"
7706
7700
  },
7707
7701
  chevron: {
7708
7702
  transition: "transform 0.2s ease",
@@ -7731,7 +7725,7 @@ const qs = [
7731
7725
  overflow: "hidden"
7732
7726
  },
7733
7727
  dropdownSection: {
7734
- padding: k ? "10px 12px" : "0px 16px",
7728
+ padding: E ? "10px 12px" : "0px 16px",
7735
7729
  "&:last-child": {
7736
7730
  borderBottom: "none"
7737
7731
  }
@@ -7739,12 +7733,12 @@ const qs = [
7739
7733
  userSection: {
7740
7734
  display: "flex",
7741
7735
  alignItems: "center",
7742
- gap: k ? "10px" : "12px",
7743
- padding: k ? "14px" : "16px"
7736
+ gap: E ? "10px" : "12px",
7737
+ padding: E ? "14px" : "16px"
7744
7738
  },
7745
7739
  dropdownAvatar: {
7746
- width: k ? "40px" : "48px",
7747
- height: k ? "40px" : "48px",
7740
+ width: E ? "40px" : "48px",
7741
+ height: E ? "40px" : "48px",
7748
7742
  borderRadius: "50%",
7749
7743
  objectFit: "cover",
7750
7744
  border: `2px solid ${z.borderLight}`,
@@ -7757,7 +7751,7 @@ const qs = [
7757
7751
  minWidth: 0
7758
7752
  },
7759
7753
  dropdownUserName: {
7760
- fontSize: k ? "15px" : "16px",
7754
+ fontSize: E ? "15px" : "16px",
7761
7755
  fontWeight: 600,
7762
7756
  color: z.textPrimary,
7763
7757
  lineHeight: "1.2",
@@ -7766,7 +7760,7 @@ const qs = [
7766
7760
  textOverflow: "ellipsis"
7767
7761
  },
7768
7762
  dropdownUserEmail: {
7769
- fontSize: k ? "13px" : "14px",
7763
+ fontSize: E ? "13px" : "14px",
7770
7764
  color: z.textSecondary,
7771
7765
  lineHeight: "1.2",
7772
7766
  overflow: "hidden",
@@ -7775,8 +7769,8 @@ const qs = [
7775
7769
  menuItem: {
7776
7770
  display: "flex",
7777
7771
  alignItems: "center",
7778
- gap: k ? "10px" : "12px",
7779
- padding: k ? "10px 12px" : "12px 16px",
7772
+ gap: E ? "10px" : "12px",
7773
+ padding: E ? "10px 12px" : "12px 16px",
7780
7774
  borderRadius: "8px",
7781
7775
  cursor: "pointer",
7782
7776
  transition: "all 0.15s ease",
@@ -7785,7 +7779,7 @@ const qs = [
7785
7779
  border: "none",
7786
7780
  background: "none",
7787
7781
  width: "100%",
7788
- fontSize: k ? "13px" : "14px",
7782
+ fontSize: E ? "13px" : "14px",
7789
7783
  textAlign: "left",
7790
7784
  outline: "none"
7791
7785
  },
@@ -7793,38 +7787,38 @@ const qs = [
7793
7787
  flex: 1
7794
7788
  },
7795
7789
  icon: {
7796
- width: k ? "16px" : "18px",
7797
- height: k ? "16px" : "18px",
7790
+ width: E ? "16px" : "18px",
7791
+ height: E ? "16px" : "18px",
7798
7792
  color: z.textSecondary,
7799
7793
  flexShrink: 0
7800
7794
  },
7801
7795
  logoutButton: {
7802
7796
  display: "flex",
7803
7797
  alignItems: "center",
7804
- gap: k ? "10px" : "12px",
7805
- padding: k ? "10px 12px" : "12px 16px",
7798
+ gap: E ? "10px" : "12px",
7799
+ padding: E ? "10px 12px" : "12px 16px",
7806
7800
  borderRadius: "8px",
7807
7801
  cursor: "pointer",
7808
7802
  transition: "all 0.15s ease",
7809
7803
  background: "none",
7810
7804
  border: "none",
7811
7805
  width: "100%",
7812
- fontSize: k ? "13px" : "14px",
7806
+ fontSize: E ? "13px" : "14px",
7813
7807
  color: z.error,
7814
7808
  textAlign: "left",
7815
7809
  outline: "none"
7816
7810
  },
7817
7811
  loadingText: {
7818
- padding: k ? "16px 12px" : "20px 16px",
7812
+ padding: E ? "16px 12px" : "20px 16px",
7819
7813
  textAlign: "center",
7820
7814
  color: z.textSecondary,
7821
- fontSize: k ? "13px" : "14px"
7815
+ fontSize: E ? "13px" : "14px"
7822
7816
  },
7823
7817
  errorState: {
7824
- padding: k ? "16px 12px" : "20px 16px",
7818
+ padding: E ? "16px 12px" : "20px 16px",
7825
7819
  textAlign: "center",
7826
7820
  color: z.textSecondary,
7827
- fontSize: k ? "13px" : "14px",
7821
+ fontSize: E ? "13px" : "14px",
7828
7822
  display: "flex",
7829
7823
  alignItems: "center",
7830
7824
  justifyContent: "center",
@@ -7903,8 +7897,8 @@ const qs = [
7903
7897
  src: T.avatarUrl,
7904
7898
  alt: `${T?.name || "User"}'s avatar`,
7905
7899
  style: {
7906
- width: k ? "34px" : "36px",
7907
- height: k ? "34px" : "36px",
7900
+ width: E ? "34px" : "36px",
7901
+ height: E ? "34px" : "36px",
7908
7902
  borderRadius: "50%",
7909
7903
  objectFit: "cover",
7910
7904
  border: `2px solid ${z.borderLight}`,
@@ -7926,8 +7920,8 @@ const qs = [
7926
7920
  )}`,
7927
7921
  alt: "Default user avatar",
7928
7922
  style: {
7929
- width: k ? "34px" : "40px",
7930
- height: k ? "34px" : "40px",
7923
+ width: E ? "34px" : "40px",
7924
+ height: E ? "34px" : "40px",
7931
7925
  borderRadius: "50%",
7932
7926
  objectFit: "cover",
7933
7927
  border: `2px solid ${z.borderLight}`,
@@ -7980,14 +7974,14 @@ const qs = [
7980
7974
  loading: "lazy"
7981
7975
  }
7982
7976
  ),
7983
- !k && /* @__PURE__ */ n.jsxs("div", { style: I.userInfo, children: [
7977
+ !E && /* @__PURE__ */ n.jsxs("div", { style: I.userInfo, children: [
7984
7978
  /* @__PURE__ */ n.jsx("div", { style: I.userName, title: T?.name, children: T?.name || "Guest" }),
7985
7979
  T?.email && /* @__PURE__ */ n.jsx("div", { style: I.userEmail, title: T.email, children: T.email })
7986
7980
  ] }),
7987
7981
  /* @__PURE__ */ n.jsx(
7988
7982
  ts,
7989
7983
  {
7990
- size: k ? 14 : 16,
7984
+ size: E ? 14 : 16,
7991
7985
  style: I.chevron,
7992
7986
  "aria-hidden": "true"
7993
7987
  }
@@ -8044,7 +8038,7 @@ const qs = [
8044
8038
  ]
8045
8039
  }
8046
8040
  ),
8047
- p && c && /* @__PURE__ */ n.jsxs(
8041
+ u && c && /* @__PURE__ */ n.jsxs(
8048
8042
  "button",
8049
8043
  {
8050
8044
  style: I.menuItem,
@@ -8080,7 +8074,7 @@ const qs = [
8080
8074
  role: "menuitem",
8081
8075
  tabIndex: 0,
8082
8076
  children: [
8083
- /* @__PURE__ */ n.jsx(fe, { style: I.icon, "aria-hidden": "true" }),
8077
+ /* @__PURE__ */ n.jsx(pe, { style: I.icon, "aria-hidden": "true" }),
8084
8078
  /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: O })
8085
8079
  ]
8086
8080
  }
@@ -8108,7 +8102,7 @@ const qs = [
8108
8102
  "aria-hidden": "true"
8109
8103
  }
8110
8104
  ),
8111
- /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: u })
8105
+ /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: p })
8112
8106
  ]
8113
8107
  }
8114
8108
  ) })
@@ -8147,7 +8141,7 @@ const qs = [
8147
8141
  primaryColor: r = "#00C212",
8148
8142
  onVerify: s
8149
8143
  }) => {
8150
- const i = ue();
8144
+ const i = me();
8151
8145
  if (!t)
8152
8146
  return /* @__PURE__ */ n.jsxs(
8153
8147
  "div",
@@ -8174,7 +8168,7 @@ const qs = [
8174
8168
  const [o, a] = R(!1), [c, h] = R({
8175
8169
  email: t?.email || "",
8176
8170
  otp: ""
8177
- }), [p, d] = R(!1), [m, P] = R(!1), [O, u] = R(null);
8171
+ }), [u, d] = R(!1), [m, P] = R(!1), [O, p] = R(null);
8178
8172
  Te.useEffect(() => {
8179
8173
  if (typeof window < "u") {
8180
8174
  const g = () => a(window.innerWidth < 768);
@@ -8209,7 +8203,7 @@ const qs = [
8209
8203
  t?.email && h((g) => ({ ...g, email: t.email }));
8210
8204
  }, [t?.email]);
8211
8205
  const C = (g, v) => {
8212
- u({ type: g, message: v }), setTimeout(() => u(null), 3e3);
8206
+ p({ type: g, message: v }), setTimeout(() => p(null), 3e3);
8213
8207
  }, T = async () => {
8214
8208
  if (!c.email || !/\S+@\S+\.\S+/.test(c.email)) {
8215
8209
  C("error", "Please enter a valid email");
@@ -8370,7 +8364,7 @@ const qs = [
8370
8364
  },
8371
8365
  children: [
8372
8366
  /* @__PURE__ */ n.jsx(
8373
- fe,
8367
+ pe,
8374
8368
  {
8375
8369
  size: 18,
8376
8370
  style: {
@@ -8410,7 +8404,7 @@ const qs = [
8410
8404
  }
8411
8405
  )
8412
8406
  ] }),
8413
- p && /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8407
+ u && /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8414
8408
  /* @__PURE__ */ n.jsxs(
8415
8409
  "div",
8416
8410
  {
@@ -8460,7 +8454,7 @@ const qs = [
8460
8454
  }
8461
8455
  )
8462
8456
  ] }),
8463
- /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: p ? /* @__PURE__ */ n.jsxs(
8457
+ /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: u ? /* @__PURE__ */ n.jsxs(
8464
8458
  "button",
8465
8459
  {
8466
8460
  type: "submit",