@neuctra/authix 1.2.3 → 1.2.5

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.
@@ -4,10 +4,10 @@ function At(t, e) {
4
4
  return t.apply(e, arguments);
5
5
  };
6
6
  }
7
- const { toString: ur } = Object.prototype, { getPrototypeOf: rt } = Object, { iterator: Fe, toStringTag: _t } = Symbol, Le = /* @__PURE__ */ ((t) => (e) => {
7
+ const { toString: ur } = Object.prototype, { getPrototypeOf: rt } = Object, { iterator: Le, toStringTag: _t } = Symbol, Fe = /* @__PURE__ */ ((t) => (e) => {
8
8
  const n = ur.call(e);
9
9
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Le(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, be = qe("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Fe(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, be = qe("undefined");
11
11
  function Te(t) {
12
12
  return t !== null && !be(t) && t.constructor !== null && !be(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
@@ -17,10 +17,10 @@ function pr(t) {
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ut(t.buffer), e;
18
18
  }
19
19
  const fr = qe("string"), te = qe("function"), $t = qe("number"), Re = (t) => t !== null && typeof t == "object", xr = (t) => t === !0 || t === !1, _e = (t) => {
20
- if (Le(t) !== "object")
20
+ if (Fe(t) !== "object")
21
21
  return !1;
22
22
  const e = rt(t);
23
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(_t in t) && !(Fe in t);
23
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(_t in t) && !(Le in t);
24
24
  }, hr = (t) => {
25
25
  if (!Re(t) || Te(t))
26
26
  return !1;
@@ -31,7 +31,7 @@ const fr = qe("string"), te = qe("function"), $t = qe("number"), Re = (t) => t !
31
31
  }
32
32
  }, mr = ae("Date"), gr = ae("File"), yr = ae("Blob"), br = ae("FileList"), wr = (t) => Re(t) && te(t.pipe), jr = (t) => {
33
33
  let e;
34
- return t && (typeof FormData == "function" && t instanceof FormData || te(t.append) && ((e = Le(t)) === "formdata" || // detect form-data instance
34
+ return t && (typeof FormData == "function" && t instanceof FormData || te(t.append) && ((e = Fe(t)) === "formdata" || // detect form-data instance
35
35
  e === "object" && te(t.toString) && t.toString() === "[object FormData]"));
36
36
  }, vr = ae("URLSearchParams"), [Sr, kr, Er, Cr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Tr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
@@ -101,7 +101,7 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
101
101
  n[e] = t[e];
102
102
  return n;
103
103
  }, _r = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && rt(Uint8Array)), Ur = (t, e) => {
104
- const s = (t && t[Fe]).call(t);
104
+ const s = (t && t[Le]).call(t);
105
105
  let i;
106
106
  for (; (i = s.next()) && !i.done; ) {
107
107
  const a = i.value;
@@ -118,14 +118,14 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
118
118
  function(n, s, i) {
119
119
  return s.toUpperCase() + i;
120
120
  }
121
- ), ut = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fr = ae("RegExp"), Ft = (t, e) => {
121
+ ), ut = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Lr = ae("RegExp"), Lt = (t, e) => {
122
122
  const n = Object.getOwnPropertyDescriptors(t), s = {};
123
123
  Pe(n, (i, a) => {
124
124
  let o;
125
125
  (o = e(i, a, t)) !== !1 && (s[a] = o || i);
126
126
  }), Object.defineProperties(t, s);
127
- }, Lr = (t) => {
128
- Ft(t, (e, n) => {
127
+ }, Fr = (t) => {
128
+ Lt(t, (e, n) => {
129
129
  if (te(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
130
  return !1;
131
131
  const s = t[n];
@@ -149,7 +149,7 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
149
149
  }, Mr = () => {
150
150
  }, Wr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
151
  function Br(t) {
152
- return !!(t && te(t.append) && t[_t] === "FormData" && t[Fe]);
152
+ return !!(t && te(t.append) && t[_t] === "FormData" && t[Le]);
153
153
  }
154
154
  const Hr = (t) => {
155
155
  const e = new Array(10), n = (s, i) => {
@@ -170,14 +170,14 @@ const Hr = (t) => {
170
170
  return s;
171
171
  };
172
172
  return n(t, 0);
173
- }, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), Lt = ((t, e) => t ? setImmediate : e ? ((n, s) => (xe.addEventListener("message", ({ source: i, data: a }) => {
173
+ }, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), Ft = ((t, e) => t ? setImmediate : e ? ((n, s) => (xe.addEventListener("message", ({ source: i, data: a }) => {
174
174
  i === xe && a === n && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
176
  s.push(i), xe.postMessage(n, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
178
  typeof setImmediate == "function",
179
179
  te(xe.postMessage)
180
- ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(xe) : typeof process < "u" && process.nextTick || Lt, Kr = (t) => t != null && te(t[Fe]), f = {
180
+ ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(xe) : typeof process < "u" && process.nextTick || Ft, Kr = (t) => t != null && te(t[Le]), x = {
181
181
  isArray: je,
182
182
  isArrayBuffer: Ut,
183
183
  isBuffer: Te,
@@ -197,7 +197,7 @@ const Hr = (t) => {
197
197
  isDate: mr,
198
198
  isFile: gr,
199
199
  isBlob: yr,
200
- isRegExp: Fr,
200
+ isRegExp: Lr,
201
201
  isFunction: te,
202
202
  isStream: wr,
203
203
  isURLSearchParams: vr,
@@ -210,7 +210,7 @@ const Hr = (t) => {
210
210
  stripBOM: Pr,
211
211
  inherits: Or,
212
212
  toFlatObject: Ir,
213
- kindOf: Le,
213
+ kindOf: Fe,
214
214
  kindOfTest: ae,
215
215
  endsWith: zr,
216
216
  toArray: Ar,
@@ -220,8 +220,8 @@ const Hr = (t) => {
220
220
  hasOwnProperty: ut,
221
221
  hasOwnProp: ut,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: Ft,
224
- freezeMethods: Lr,
223
+ reduceDescriptors: Lt,
224
+ freezeMethods: Fr,
225
225
  toObjectSet: qr,
226
226
  toCamelCase: Nr,
227
227
  noop: Mr,
@@ -233,14 +233,14 @@ const Hr = (t) => {
233
233
  toJSONObject: Hr,
234
234
  isAsyncFn: Vr,
235
235
  isThenable: Yr,
236
- setImmediate: Lt,
236
+ setImmediate: Ft,
237
237
  asap: Jr,
238
238
  isIterable: Kr
239
239
  };
240
240
  function $(t, e, n, s, i) {
241
241
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
242
242
  }
243
- f.inherits($, Error, {
243
+ x.inherits($, Error, {
244
244
  toJSON: function() {
245
245
  return {
246
246
  // Standard
@@ -255,7 +255,7 @@ f.inherits($, Error, {
255
255
  columnNumber: this.columnNumber,
256
256
  stack: this.stack,
257
257
  // Axios
258
- config: f.toJSONObject(this.config),
258
+ config: x.toJSONObject(this.config),
259
259
  code: this.code,
260
260
  status: this.status
261
261
  };
@@ -283,18 +283,18 @@ Object.defineProperties($, Mt);
283
283
  Object.defineProperty(qt, "isAxiosError", { value: !0 });
284
284
  $.from = (t, e, n, s, i, a) => {
285
285
  const o = Object.create(qt);
286
- f.toFlatObject(t, o, function(x) {
287
- return x !== Error.prototype;
288
- }, (p) => p !== "isAxiosError");
286
+ x.toFlatObject(t, o, function(p) {
287
+ return p !== Error.prototype;
288
+ }, (f) => f !== "isAxiosError");
289
289
  const c = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
290
290
  return $.call(o, c, d, n, s, i), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", a && Object.assign(o, a), o;
291
291
  };
292
292
  const Gr = null;
293
293
  function Xe(t) {
294
- return f.isPlainObject(t) || f.isArray(t);
294
+ return x.isPlainObject(t) || x.isArray(t);
295
295
  }
296
296
  function Wt(t) {
297
- return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
297
+ return x.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
299
  function pt(t, e, n) {
300
300
  return t ? t.concat(e).map(function(i, a) {
@@ -302,71 +302,71 @@ function pt(t, e, n) {
302
302
  }).join(n ? "." : "") : e;
303
303
  }
304
304
  function Xr(t) {
305
- return f.isArray(t) && !t.some(Xe);
305
+ return x.isArray(t) && !t.some(Xe);
306
306
  }
307
- const Zr = f.toFlatObject(f, {}, null, function(e) {
307
+ const Zr = x.toFlatObject(x, {}, null, function(e) {
308
308
  return /^is[A-Z]/.test(e);
309
309
  });
310
310
  function Me(t, e, n) {
311
- if (!f.isObject(t))
311
+ if (!x.isObject(t))
312
312
  throw new TypeError("target must be an object");
313
- e = e || new FormData(), n = f.toFlatObject(n, {
313
+ e = e || new FormData(), n = x.toFlatObject(n, {
314
314
  metaTokens: !0,
315
315
  dots: !1,
316
316
  indexes: !1
317
317
  }, !1, function(w, h) {
318
- return !f.isUndefined(h[w]);
318
+ return !x.isUndefined(h[w]);
319
319
  });
320
- const s = n.metaTokens, i = n.visitor || x, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
321
- if (!f.isFunction(i))
320
+ const s = n.metaTokens, i = n.visitor || p, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && x.isSpecCompliantForm(e);
321
+ if (!x.isFunction(i))
322
322
  throw new TypeError("visitor must be a function");
323
- function p(u) {
323
+ function f(u) {
324
324
  if (u === null) return "";
325
- if (f.isDate(u))
325
+ if (x.isDate(u))
326
326
  return u.toISOString();
327
- if (f.isBoolean(u))
327
+ if (x.isBoolean(u))
328
328
  return u.toString();
329
- if (!d && f.isBlob(u))
329
+ if (!d && x.isBlob(u))
330
330
  throw new $("Blob is not supported. Use a Buffer instead.");
331
- return f.isArrayBuffer(u) || f.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
331
+ return x.isArrayBuffer(u) || x.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
332
332
  }
333
- function x(u, w, h) {
333
+ function p(u, w, h) {
334
334
  let O = u;
335
335
  if (u && !h && typeof u == "object") {
336
- if (f.endsWith(w, "{}"))
336
+ if (x.endsWith(w, "{}"))
337
337
  w = s ? w : w.slice(0, -2), u = JSON.stringify(u);
338
- else if (f.isArray(u) && Xr(u) || (f.isFileList(u) || f.endsWith(w, "[]")) && (O = f.toArray(u)))
338
+ else if (x.isArray(u) && Xr(u) || (x.isFileList(u) || x.endsWith(w, "[]")) && (O = x.toArray(u)))
339
339
  return w = Wt(w), O.forEach(function(g, A) {
340
- !(f.isUndefined(g) || g === null) && e.append(
340
+ !(x.isUndefined(g) || g === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
342
  o === !0 ? pt([w], A, a) : o === null ? w : w + "[]",
343
- p(g)
343
+ f(g)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Xe(u) ? !0 : (e.append(pt(h, w, a), p(u)), !1);
347
+ return Xe(u) ? !0 : (e.append(pt(h, w, a), f(u)), !1);
348
348
  }
349
349
  const y = [], k = Object.assign(Zr, {
350
- defaultVisitor: x,
351
- convertValue: p,
350
+ defaultVisitor: p,
351
+ convertValue: f,
352
352
  isVisitable: Xe
353
353
  });
354
354
  function E(u, w) {
355
- if (!f.isUndefined(u)) {
355
+ if (!x.isUndefined(u)) {
356
356
  if (y.indexOf(u) !== -1)
357
357
  throw Error("Circular reference detected in " + w.join("."));
358
- y.push(u), f.forEach(u, function(O, C) {
359
- (!(f.isUndefined(O) || O === null) && i.call(
358
+ y.push(u), x.forEach(u, function(O, C) {
359
+ (!(x.isUndefined(O) || O === null) && i.call(
360
360
  e,
361
361
  O,
362
- f.isString(C) ? C.trim() : C,
362
+ x.isString(C) ? C.trim() : C,
363
363
  w,
364
364
  k
365
365
  )) === !0 && E(O, w ? w.concat(C) : [C]);
366
366
  }), y.pop();
367
367
  }
368
368
  }
369
- if (!f.isObject(t))
369
+ if (!x.isObject(t))
370
370
  throw new TypeError("data must be an object");
371
371
  return E(t), e;
372
372
  }
@@ -406,12 +406,12 @@ function Ht(t, e, n) {
406
406
  if (!e)
407
407
  return t;
408
408
  const s = n && n.encode || Qr;
409
- f.isFunction(n) && (n = {
409
+ x.isFunction(n) && (n = {
410
410
  serialize: n
411
411
  });
412
412
  const i = n && n.serialize;
413
413
  let a;
414
- if (i ? a = i(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(s), a) {
414
+ if (i ? a = i(e, n) : a = x.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(s), a) {
415
415
  const o = t.indexOf("#");
416
416
  o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
417
417
  }
@@ -466,7 +466,7 @@ class xt {
466
466
  * @returns {void}
467
467
  */
468
468
  forEach(e) {
469
- f.forEach(this.handlers, function(s) {
469
+ x.forEach(this.handlers, function(s) {
470
470
  s !== null && e(s);
471
471
  });
472
472
  }
@@ -498,13 +498,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on
498
498
  function cn(t, e) {
499
499
  return Me(t, new Q.classes.URLSearchParams(), {
500
500
  visitor: function(n, s, i, a) {
501
- return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
501
+ return Q.isNode && x.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...e
504
504
  });
505
505
  }
506
506
  function dn(t) {
507
- return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
507
+ return x.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
508
508
  }
509
509
  function un(t) {
510
510
  const e = {}, n = Object.keys(t);
@@ -520,20 +520,20 @@ function Yt(t) {
520
520
  let o = n[a++];
521
521
  if (o === "__proto__") return !0;
522
522
  const c = Number.isFinite(+o), d = a >= n.length;
523
- return o = !o && f.isArray(i) ? i.length : o, d ? (f.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !f.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && f.isArray(i[o]) && (i[o] = un(i[o])), !c);
523
+ return o = !o && x.isArray(i) ? i.length : o, d ? (x.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !x.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && x.isArray(i[o]) && (i[o] = un(i[o])), !c);
524
524
  }
525
- if (f.isFormData(t) && f.isFunction(t.entries)) {
525
+ if (x.isFormData(t) && x.isFunction(t.entries)) {
526
526
  const n = {};
527
- return f.forEachEntry(t, (s, i) => {
527
+ return x.forEachEntry(t, (s, i) => {
528
528
  e(dn(s), i, n, 0);
529
529
  }), n;
530
530
  }
531
531
  return null;
532
532
  }
533
533
  function pn(t, e, n) {
534
- if (f.isString(t))
534
+ if (x.isString(t))
535
535
  try {
536
- return (e || JSON.parse)(t), f.trim(t);
536
+ return (e || JSON.parse)(t), x.trim(t);
537
537
  } catch (s) {
538
538
  if (s.name !== "SyntaxError")
539
539
  throw s;
@@ -544,20 +544,20 @@ const Oe = {
544
544
  transitional: Vt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, n) {
547
- const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = f.isObject(e);
548
- if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
547
+ const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = x.isObject(e);
548
+ if (a && x.isHTMLForm(e) && (e = new FormData(e)), x.isFormData(e))
549
549
  return i ? JSON.stringify(Yt(e)) : e;
550
- if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
550
+ if (x.isArrayBuffer(e) || x.isBuffer(e) || x.isStream(e) || x.isFile(e) || x.isBlob(e) || x.isReadableStream(e))
551
551
  return e;
552
- if (f.isArrayBufferView(e))
552
+ if (x.isArrayBufferView(e))
553
553
  return e.buffer;
554
- if (f.isURLSearchParams(e))
554
+ if (x.isURLSearchParams(e))
555
555
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
556
556
  let c;
557
557
  if (a) {
558
558
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
559
559
  return cn(e, this.formSerializer).toString();
560
- if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
560
+ if ((c = x.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
561
561
  const d = this.env && this.env.FormData;
562
562
  return Me(
563
563
  c ? { "files[]": e } : e,
@@ -570,9 +570,9 @@ const Oe = {
570
570
  }],
571
571
  transformResponse: [function(e) {
572
572
  const n = this.transitional || Oe.transitional, s = n && n.forcedJSONParsing, i = this.responseType === "json";
573
- if (f.isResponse(e) || f.isReadableStream(e))
573
+ if (x.isResponse(e) || x.isReadableStream(e))
574
574
  return e;
575
- if (e && f.isString(e) && (s && !this.responseType || i)) {
575
+ if (e && x.isString(e) && (s && !this.responseType || i)) {
576
576
  const o = !(n && n.silentJSONParsing) && i;
577
577
  try {
578
578
  return JSON.parse(e, this.parseReviver);
@@ -606,10 +606,10 @@ const Oe = {
606
606
  }
607
607
  }
608
608
  };
609
- f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
609
+ x.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
610
610
  Oe.headers[t] = {};
611
611
  });
612
- const fn = f.toObjectSet([
612
+ const fn = x.toObjectSet([
613
613
  "age",
614
614
  "authorization",
615
615
  "content-length",
@@ -639,7 +639,7 @@ function Se(t) {
639
639
  return t && String(t).trim().toLowerCase();
640
640
  }
641
641
  function Ue(t) {
642
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(Ue) : String(t);
642
+ return t === !1 || t == null ? t : x.isArray(t) ? t.map(Ue) : String(t);
643
643
  }
644
644
  function hn(t) {
645
645
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -650,12 +650,12 @@ function hn(t) {
650
650
  }
651
651
  const mn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
652
652
  function He(t, e, n, s, i) {
653
- if (f.isFunction(s))
653
+ if (x.isFunction(s))
654
654
  return s.call(this, e, n);
655
- if (i && (e = n), !!f.isString(e)) {
656
- if (f.isString(s))
655
+ if (i && (e = n), !!x.isString(e)) {
656
+ if (x.isString(s))
657
657
  return e.indexOf(s) !== -1;
658
- if (f.isRegExp(s))
658
+ if (x.isRegExp(s))
659
659
  return s.test(e);
660
660
  }
661
661
  }
@@ -663,7 +663,7 @@ function gn(t) {
663
663
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
664
664
  }
665
665
  function yn(t, e) {
666
- const n = f.toCamelCase(" " + e);
666
+ const n = x.toCamelCase(" " + e);
667
667
  ["get", "set", "has"].forEach((s) => {
668
668
  Object.defineProperty(t, s + n, {
669
669
  value: function(i, a, o) {
@@ -679,24 +679,24 @@ let re = class {
679
679
  }
680
680
  set(e, n, s) {
681
681
  const i = this;
682
- function a(c, d, p) {
683
- const x = Se(d);
684
- if (!x)
682
+ function a(c, d, f) {
683
+ const p = Se(d);
684
+ if (!p)
685
685
  throw new Error("header name must be a non-empty string");
686
- const y = f.findKey(i, x);
687
- (!y || i[y] === void 0 || p === !0 || p === void 0 && i[y] !== !1) && (i[y || d] = Ue(c));
686
+ const y = x.findKey(i, p);
687
+ (!y || i[y] === void 0 || f === !0 || f === void 0 && i[y] !== !1) && (i[y || d] = Ue(c));
688
688
  }
689
- const o = (c, d) => f.forEach(c, (p, x) => a(p, x, d));
690
- if (f.isPlainObject(e) || e instanceof this.constructor)
689
+ const o = (c, d) => x.forEach(c, (f, p) => a(f, p, d));
690
+ if (x.isPlainObject(e) || e instanceof this.constructor)
691
691
  o(e, n);
692
- else if (f.isString(e) && (e = e.trim()) && !mn(e))
692
+ else if (x.isString(e) && (e = e.trim()) && !mn(e))
693
693
  o(xn(e), n);
694
- else if (f.isObject(e) && f.isIterable(e)) {
695
- let c = {}, d, p;
696
- for (const x of e) {
697
- if (!f.isArray(x))
694
+ else if (x.isObject(e) && x.isIterable(e)) {
695
+ let c = {}, d, f;
696
+ for (const p of e) {
697
+ if (!x.isArray(p))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- c[p = x[0]] = (d = c[p]) ? f.isArray(d) ? [...d, x[1]] : [d, x[1]] : x[1];
699
+ c[f = p[0]] = (d = c[f]) ? x.isArray(d) ? [...d, p[1]] : [d, p[1]] : p[1];
700
700
  }
701
701
  o(c, n);
702
702
  } else
@@ -705,16 +705,16 @@ let re = class {
705
705
  }
706
706
  get(e, n) {
707
707
  if (e = Se(e), e) {
708
- const s = f.findKey(this, e);
708
+ const s = x.findKey(this, e);
709
709
  if (s) {
710
710
  const i = this[s];
711
711
  if (!n)
712
712
  return i;
713
713
  if (n === !0)
714
714
  return hn(i);
715
- if (f.isFunction(n))
715
+ if (x.isFunction(n))
716
716
  return n.call(this, i, s);
717
- if (f.isRegExp(n))
717
+ if (x.isRegExp(n))
718
718
  return n.exec(i);
719
719
  throw new TypeError("parser must be boolean|regexp|function");
720
720
  }
@@ -722,7 +722,7 @@ let re = class {
722
722
  }
723
723
  has(e, n) {
724
724
  if (e = Se(e), e) {
725
- const s = f.findKey(this, e);
725
+ const s = x.findKey(this, e);
726
726
  return !!(s && this[s] !== void 0 && (!n || He(this, this[s], s, n)));
727
727
  }
728
728
  return !1;
@@ -732,11 +732,11 @@ let re = class {
732
732
  let i = !1;
733
733
  function a(o) {
734
734
  if (o = Se(o), o) {
735
- const c = f.findKey(s, o);
735
+ const c = x.findKey(s, o);
736
736
  c && (!n || He(s, s[c], c, n)) && (delete s[c], i = !0);
737
737
  }
738
738
  }
739
- return f.isArray(e) ? e.forEach(a) : a(e), i;
739
+ return x.isArray(e) ? e.forEach(a) : a(e), i;
740
740
  }
741
741
  clear(e) {
742
742
  const n = Object.keys(this);
@@ -749,8 +749,8 @@ let re = class {
749
749
  }
750
750
  normalize(e) {
751
751
  const n = this, s = {};
752
- return f.forEach(this, (i, a) => {
753
- const o = f.findKey(s, a);
752
+ return x.forEach(this, (i, a) => {
753
+ const o = x.findKey(s, a);
754
754
  if (o) {
755
755
  n[o] = Ue(i), delete n[a];
756
756
  return;
@@ -764,8 +764,8 @@ let re = class {
764
764
  }
765
765
  toJSON(e) {
766
766
  const n = /* @__PURE__ */ Object.create(null);
767
- return f.forEach(this, (s, i) => {
768
- s != null && s !== !1 && (n[i] = e && f.isArray(s) ? s.join(", ") : s);
767
+ return x.forEach(this, (s, i) => {
768
+ s != null && s !== !1 && (n[i] = e && x.isArray(s) ? s.join(", ") : s);
769
769
  }), n;
770
770
  }
771
771
  [Symbol.iterator]() {
@@ -796,11 +796,11 @@ let re = class {
796
796
  const c = Se(o);
797
797
  s[c] || (yn(i, o), s[c] = !0);
798
798
  }
799
- return f.isArray(e) ? e.forEach(a) : a(e), this;
799
+ return x.isArray(e) ? e.forEach(a) : a(e), this;
800
800
  }
801
801
  };
802
802
  re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
- f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
803
+ x.reduceDescriptors(re.prototype, ({ value: t }, e) => {
804
804
  let n = e[0].toUpperCase() + e.slice(1);
805
805
  return {
806
806
  get: () => t,
@@ -809,11 +809,11 @@ f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
809
809
  }
810
810
  };
811
811
  });
812
- f.freezeMethods(re);
812
+ x.freezeMethods(re);
813
813
  function Ve(t, e) {
814
814
  const n = this || Oe, s = e || n, i = re.from(s.headers);
815
815
  let a = s.data;
816
- return f.forEach(t, function(c) {
816
+ return x.forEach(t, function(c) {
817
817
  a = c.call(n, a, i.normalize(), e ? e.status : void 0);
818
818
  }), i.normalize(), a;
819
819
  }
@@ -823,7 +823,7 @@ function Jt(t) {
823
823
  function ve(t, e, n) {
824
824
  $.call(this, t ?? "canceled", $.ERR_CANCELED, e, n), this.name = "CanceledError";
825
825
  }
826
- f.inherits(ve, $, {
826
+ x.inherits(ve, $, {
827
827
  __CANCEL__: !0
828
828
  });
829
829
  function Kt(t, e, n) {
@@ -845,25 +845,25 @@ function wn(t, e) {
845
845
  const n = new Array(t), s = new Array(t);
846
846
  let i = 0, a = 0, o;
847
847
  return e = e !== void 0 ? e : 1e3, function(d) {
848
- const p = Date.now(), x = s[a];
849
- o || (o = p), n[i] = d, s[i] = p;
848
+ const f = Date.now(), p = s[a];
849
+ o || (o = f), n[i] = d, s[i] = f;
850
850
  let y = a, k = 0;
851
851
  for (; y !== i; )
852
852
  k += n[y++], y = y % t;
853
- if (i = (i + 1) % t, i === a && (a = (a + 1) % t), p - o < e)
853
+ if (i = (i + 1) % t, i === a && (a = (a + 1) % t), f - o < e)
854
854
  return;
855
- const E = x && p - x;
855
+ const E = p && f - p;
856
856
  return E ? Math.round(k * 1e3 / E) : void 0;
857
857
  };
858
858
  }
859
859
  function jn(t, e) {
860
860
  let n = 0, s = 1e3 / e, i, a;
861
- const o = (p, x = Date.now()) => {
862
- n = x, i = null, a && (clearTimeout(a), a = null), t(...p);
861
+ const o = (f, p = Date.now()) => {
862
+ n = p, i = null, a && (clearTimeout(a), a = null), t(...f);
863
863
  };
864
- return [(...p) => {
865
- const x = Date.now(), y = x - n;
866
- y >= s ? o(p, x) : (i = p, a || (a = setTimeout(() => {
864
+ return [(...f) => {
865
+ const p = Date.now(), y = p - n;
866
+ y >= s ? o(f, p) : (i = f, a || (a = setTimeout(() => {
867
867
  a = null, o(i);
868
868
  }, s - y)));
869
869
  }, () => i && o(i)];
@@ -872,15 +872,15 @@ const Ne = (t, e, n = 3) => {
872
872
  let s = 0;
873
873
  const i = wn(50, 250);
874
874
  return jn((a) => {
875
- const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, p = i(d), x = o <= c;
875
+ const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, f = i(d), p = o <= c;
876
876
  s = o;
877
877
  const y = {
878
878
  loaded: o,
879
879
  total: c,
880
880
  progress: c ? o / c : void 0,
881
881
  bytes: d,
882
- rate: p || void 0,
883
- estimated: p && c && x ? (c - o) / p : void 0,
882
+ rate: f || void 0,
883
+ estimated: f && c && p ? (c - o) / f : void 0,
884
884
  event: a,
885
885
  lengthComputable: c != null,
886
886
  [e ? "download" : "upload"]: !0
@@ -894,7 +894,7 @@ const Ne = (t, e, n = 3) => {
894
894
  total: t,
895
895
  loaded: s
896
896
  }), e[1]];
897
- }, gt = (t) => (...e) => f.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
897
+ }, gt = (t) => (...e) => x.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
898
898
  new URL(Q.origin),
899
899
  Q.navigator && /(msie|trident)/i.test(Q.navigator.userAgent)
900
900
  ) : () => !0, Sn = Q.hasStandardBrowserEnv ? (
@@ -902,7 +902,7 @@ const Ne = (t, e, n = 3) => {
902
902
  {
903
903
  write(t, e, n, s, i, a) {
904
904
  const o = [t + "=" + encodeURIComponent(e)];
905
- f.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), f.isString(s) && o.push("path=" + s), f.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
905
+ x.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), x.isString(s) && o.push("path=" + s), x.isString(i) && o.push("domain=" + i), a === !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,30 +938,30 @@ const yt = (t) => t instanceof re ? { ...t } : t;
938
938
  function me(t, e) {
939
939
  e = e || {};
940
940
  const n = {};
941
- function s(p, x, y, k) {
942
- return f.isPlainObject(p) && f.isPlainObject(x) ? f.merge.call({ caseless: k }, p, x) : f.isPlainObject(x) ? f.merge({}, x) : f.isArray(x) ? x.slice() : x;
941
+ function s(f, p, y, k) {
942
+ return x.isPlainObject(f) && x.isPlainObject(p) ? x.merge.call({ caseless: k }, f, p) : x.isPlainObject(p) ? x.merge({}, p) : x.isArray(p) ? p.slice() : p;
943
943
  }
944
- function i(p, x, y, k) {
945
- if (f.isUndefined(x)) {
946
- if (!f.isUndefined(p))
947
- return s(void 0, p, y, k);
948
- } else return s(p, x, y, k);
944
+ function i(f, p, y, k) {
945
+ if (x.isUndefined(p)) {
946
+ if (!x.isUndefined(f))
947
+ return s(void 0, f, y, k);
948
+ } else return s(f, p, y, k);
949
949
  }
950
- function a(p, x) {
951
- if (!f.isUndefined(x))
952
- return s(void 0, x);
950
+ function a(f, p) {
951
+ if (!x.isUndefined(p))
952
+ return s(void 0, p);
953
953
  }
954
- function o(p, x) {
955
- if (f.isUndefined(x)) {
956
- if (!f.isUndefined(p))
957
- return s(void 0, p);
958
- } else return s(void 0, x);
954
+ function o(f, p) {
955
+ if (x.isUndefined(p)) {
956
+ if (!x.isUndefined(f))
957
+ return s(void 0, f);
958
+ } else return s(void 0, p);
959
959
  }
960
- function c(p, x, y) {
960
+ function c(f, p, y) {
961
961
  if (y in e)
962
- return s(p, x);
962
+ return s(f, p);
963
963
  if (y in t)
964
- return s(void 0, p);
964
+ return s(void 0, f);
965
965
  }
966
966
  const d = {
967
967
  url: a,
@@ -992,11 +992,11 @@ function me(t, e) {
992
992
  socketPath: o,
993
993
  responseEncoding: o,
994
994
  validateStatus: c,
995
- headers: (p, x, y) => i(yt(p), yt(x), y, !0)
995
+ headers: (f, p, y) => i(yt(f), yt(p), y, !0)
996
996
  };
997
- return f.forEach(Object.keys({ ...t, ...e }), function(x) {
998
- const y = d[x] || i, k = y(t[x], e[x], x);
999
- f.isUndefined(k) && y !== c || (n[x] = k);
997
+ return x.forEach(Object.keys({ ...t, ...e }), function(p) {
998
+ const y = d[p] || i, k = y(t[p], e[p], p);
999
+ x.isUndefined(k) && y !== c || (n[p] = k);
1000
1000
  }), n;
1001
1001
  }
1002
1002
  const Xt = (t) => {
@@ -1005,17 +1005,17 @@ const Xt = (t) => {
1005
1005
  if (e.headers = o = re.from(o), e.url = Ht(Gt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
- ), f.isFormData(n)) {
1008
+ ), x.isFormData(n)) {
1009
1009
  if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
1010
1010
  o.setContentType(void 0);
1011
- else if (f.isFunction(n.getHeaders)) {
1012
- const d = n.getHeaders(), p = ["content-type", "content-length"];
1013
- Object.entries(d).forEach(([x, y]) => {
1014
- p.includes(x.toLowerCase()) && o.set(x, y);
1011
+ else if (x.isFunction(n.getHeaders)) {
1012
+ const d = n.getHeaders(), f = ["content-type", "content-length"];
1013
+ Object.entries(d).forEach(([p, y]) => {
1014
+ f.includes(p.toLowerCase()) && o.set(p, y);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
- if (Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
1018
+ if (Q.hasStandardBrowserEnv && (s && x.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
1019
1019
  const d = i && a && Sn.read(a);
1020
1020
  d && o.set(i, d);
1021
1021
  }
@@ -1025,9 +1025,9 @@ const Xt = (t) => {
1025
1025
  const i = Xt(t);
1026
1026
  let a = i.data;
1027
1027
  const o = re.from(i.headers).normalize();
1028
- let { responseType: c, onUploadProgress: d, onDownloadProgress: p } = i, x, y, k, E, u;
1028
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = i, p, y, k, E, u;
1029
1029
  function w() {
1030
- E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(x), i.signal && i.signal.removeEventListener("abort", x);
1030
+ E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(p), i.signal && i.signal.removeEventListener("abort", p);
1031
1031
  }
1032
1032
  let h = new XMLHttpRequest();
1033
1033
  h.open(i.method.toUpperCase(), i.url, !0), h.timeout = i.timeout;
@@ -1066,11 +1066,11 @@ const Xt = (t) => {
1066
1066
  t,
1067
1067
  h
1068
1068
  )), h = null;
1069
- }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && f.forEach(o.toJSON(), function(A, N) {
1069
+ }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && x.forEach(o.toJSON(), function(A, N) {
1070
1070
  h.setRequestHeader(N, A);
1071
- }), f.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), p && ([k, u] = Ne(p, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (x = (g) => {
1071
+ }), x.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), f && ([k, u] = Ne(f, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (p = (g) => {
1072
1072
  h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
1073
- }, i.cancelToken && i.cancelToken.subscribe(x), i.signal && (i.signal.aborted ? x() : i.signal.addEventListener("abort", x)));
1073
+ }, i.cancelToken && i.cancelToken.subscribe(p), i.signal && (i.signal.aborted ? p() : i.signal.addEventListener("abort", p)));
1074
1074
  const C = bn(i.url);
1075
1075
  if (C && Q.protocols.indexOf(C) === -1) {
1076
1076
  s(new $("Unsupported protocol " + C + ":", $.ERR_BAD_REQUEST, t));
@@ -1082,24 +1082,24 @@ const Xt = (t) => {
1082
1082
  const { length: n } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || n) {
1084
1084
  let s = new AbortController(), i;
1085
- const a = function(p) {
1085
+ const a = function(f) {
1086
1086
  if (!i) {
1087
1087
  i = !0, c();
1088
- const x = p instanceof Error ? p : this.reason;
1089
- s.abort(x instanceof $ ? x : new ve(x instanceof Error ? x.message : x));
1088
+ const p = f instanceof Error ? f : this.reason;
1089
+ s.abort(p instanceof $ ? p : new ve(p instanceof Error ? p.message : p));
1090
1090
  }
1091
1091
  };
1092
1092
  let o = e && setTimeout(() => {
1093
1093
  o = null, a(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
- t && (o && clearTimeout(o), o = null, t.forEach((p) => {
1097
- p.unsubscribe ? p.unsubscribe(a) : p.removeEventListener("abort", a);
1096
+ t && (o && clearTimeout(o), o = null, t.forEach((f) => {
1097
+ f.unsubscribe ? f.unsubscribe(a) : f.removeEventListener("abort", a);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((p) => p.addEventListener("abort", a));
1100
+ t.forEach((f) => f.addEventListener("abort", a));
1101
1101
  const { signal: d } = s;
1102
- return d.unsubscribe = () => f.asap(c), d;
1102
+ return d.unsubscribe = () => x.asap(c), d;
1103
1103
  }
1104
1104
  }, Pn = function* (t, e) {
1105
1105
  let n = t.byteLength;
@@ -1137,19 +1137,19 @@ const Xt = (t) => {
1137
1137
  return new ReadableStream({
1138
1138
  async pull(d) {
1139
1139
  try {
1140
- const { done: p, value: x } = await i.next();
1141
- if (p) {
1140
+ const { done: f, value: p } = await i.next();
1141
+ if (f) {
1142
1142
  c(), d.close();
1143
1143
  return;
1144
1144
  }
1145
- let y = x.byteLength;
1145
+ let y = p.byteLength;
1146
1146
  if (n) {
1147
1147
  let k = a += y;
1148
1148
  n(k);
1149
1149
  }
1150
- d.enqueue(new Uint8Array(x));
1151
- } catch (p) {
1152
- throw c(p), p;
1150
+ d.enqueue(new Uint8Array(p));
1151
+ } catch (f) {
1152
+ throw c(f), f;
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(d) {
@@ -1158,26 +1158,26 @@ const Xt = (t) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, wt = 64 * 1024, { isFunction: ze } = f, zn = (({ Request: t, Response: e }) => ({
1161
+ }, wt = 64 * 1024, { isFunction: ze } = x, zn = (({ Request: t, Response: e }) => ({
1162
1162
  Request: t,
1163
1163
  Response: e
1164
- }))(f.global), {
1164
+ }))(x.global), {
1165
1165
  ReadableStream: jt,
1166
1166
  TextEncoder: vt
1167
- } = f.global, St = (t, ...e) => {
1167
+ } = x.global, St = (t, ...e) => {
1168
1168
  try {
1169
1169
  return !!t(...e);
1170
1170
  } catch {
1171
1171
  return !1;
1172
1172
  }
1173
1173
  }, An = (t) => {
1174
- t = f.merge.call({
1174
+ t = x.merge.call({
1175
1175
  skipUndefined: !0
1176
1176
  }, zn, t);
1177
1177
  const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && ze(jt), d = i && (typeof vt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new vt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), p = a && c && St(() => {
1180
+ const c = i && ze(jt), d = i && (typeof vt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new vt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && St(() => {
1181
1181
  let u = !1;
1182
1182
  const w = new n(Q.origin, {
1183
1183
  body: new jt(),
@@ -1187,8 +1187,8 @@ const Xt = (t) => {
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
1189
  return u && !w;
1190
- }), x = o && c && St(() => f.isReadableStream(new s("").body)), y = {
1191
- stream: x && ((u) => u.body)
1190
+ }), p = o && c && St(() => x.isReadableStream(new s("").body)), y = {
1191
+ stream: p && ((u) => u.body)
1192
1192
  };
1193
1193
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1194
1194
  !y[u] && (y[u] = (w, h) => {
@@ -1201,19 +1201,19 @@ const Xt = (t) => {
1201
1201
  const k = async (u) => {
1202
1202
  if (u == null)
1203
1203
  return 0;
1204
- if (f.isBlob(u))
1204
+ if (x.isBlob(u))
1205
1205
  return u.size;
1206
- if (f.isSpecCompliantForm(u))
1206
+ if (x.isSpecCompliantForm(u))
1207
1207
  return (await new n(Q.origin, {
1208
1208
  method: "POST",
1209
1209
  body: u
1210
1210
  }).arrayBuffer()).byteLength;
1211
- if (f.isArrayBufferView(u) || f.isArrayBuffer(u))
1211
+ if (x.isArrayBufferView(u) || x.isArrayBuffer(u))
1212
1212
  return u.byteLength;
1213
- if (f.isURLSearchParams(u) && (u = u + ""), f.isString(u))
1213
+ if (x.isURLSearchParams(u) && (u = u + ""), x.isString(u))
1214
1214
  return (await d(u)).byteLength;
1215
1215
  }, E = async (u, w) => {
1216
- const h = f.toFiniteNumber(u.getContentLength());
1216
+ const h = x.toFiniteNumber(u.getContentLength());
1217
1217
  return h ?? k(w);
1218
1218
  };
1219
1219
  return async (u) => {
@@ -1238,13 +1238,13 @@ const Xt = (t) => {
1238
1238
  });
1239
1239
  let z;
1240
1240
  try {
1241
- if (b && p && h !== "get" && h !== "head" && (z = await E(q, O)) !== 0) {
1241
+ if (b && f && h !== "get" && h !== "head" && (z = await E(q, O)) !== 0) {
1242
1242
  let l = new n(w, {
1243
1243
  method: "POST",
1244
1244
  body: O,
1245
1245
  duplex: "half"
1246
1246
  }), m;
1247
- if (f.isFormData(O) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1247
+ if (x.isFormData(O) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1248
1248
  const [S, D] = mt(
1249
1249
  z,
1250
1250
  Ne(gt(b))
@@ -1252,7 +1252,7 @@ const Xt = (t) => {
1252
1252
  O = bt(l.body, wt, S, D);
1253
1253
  }
1254
1254
  }
1255
- f.isString(I) || (I = I ? "include" : "omit");
1255
+ x.isString(I) || (I = I ? "include" : "omit");
1256
1256
  const M = a && "credentials" in n.prototype, K = {
1257
1257
  ...X,
1258
1258
  signal: T,
@@ -1264,13 +1264,13 @@ const Xt = (t) => {
1264
1264
  };
1265
1265
  G = a && new n(w, K);
1266
1266
  let H = await (a ? W(G, X) : W(w, K));
1267
- const F = x && (j === "stream" || j === "response");
1268
- if (x && (N || F && R)) {
1267
+ const L = p && (j === "stream" || j === "response");
1268
+ if (p && (N || L && R)) {
1269
1269
  const l = {};
1270
1270
  ["status", "statusText", "headers"].forEach((ne) => {
1271
1271
  l[ne] = H[ne];
1272
1272
  });
1273
- const m = f.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && mt(
1273
+ const m = x.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && mt(
1274
1274
  m,
1275
1275
  Ne(gt(N), !0)
1276
1276
  ) || [];
@@ -1282,8 +1282,8 @@ const Xt = (t) => {
1282
1282
  );
1283
1283
  }
1284
1284
  j = j || "text";
1285
- let Y = await y[f.findKey(y, j) || "text"](H, u);
1286
- return !F && R && R(), await new Promise((l, m) => {
1285
+ let Y = await y[x.findKey(y, j) || "text"](H, u);
1286
+ return !L && R && R(), await new Promise((l, m) => {
1287
1287
  Kt(l, m, {
1288
1288
  data: Y,
1289
1289
  headers: re.from(H.headers),
@@ -1309,10 +1309,10 @@ const Xt = (t) => {
1309
1309
  i,
1310
1310
  n
1311
1311
  ];
1312
- let o = a.length, c = o, d, p, x = _n;
1312
+ let o = a.length, c = o, d, f, p = _n;
1313
1313
  for (; c--; )
1314
- d = a[c], p = x.get(d), p === void 0 && x.set(d, p = c ? /* @__PURE__ */ new Map() : An(e)), x = p;
1315
- return p;
1314
+ d = a[c], f = p.get(d), f === void 0 && p.set(d, f = c ? /* @__PURE__ */ new Map() : An(e)), p = f;
1315
+ return f;
1316
1316
  };
1317
1317
  Zt();
1318
1318
  const Qe = {
@@ -1322,7 +1322,7 @@ const Qe = {
1322
1322
  get: Zt
1323
1323
  }
1324
1324
  };
1325
- f.forEach(Qe, (t, e) => {
1325
+ x.forEach(Qe, (t, e) => {
1326
1326
  if (t) {
1327
1327
  try {
1328
1328
  Object.defineProperty(t, "name", { value: e });
@@ -1331,9 +1331,9 @@ f.forEach(Qe, (t, e) => {
1331
1331
  Object.defineProperty(t, "adapterName", { value: e });
1332
1332
  }
1333
1333
  });
1334
- const kt = (t) => `- ${t}`, Un = (t) => f.isFunction(t) || t === null || t === !1, Qt = {
1334
+ const kt = (t) => `- ${t}`, Un = (t) => x.isFunction(t) || t === null || t === !1, Qt = {
1335
1335
  getAdapter: (t, e) => {
1336
- t = f.isArray(t) ? t : [t];
1336
+ t = x.isArray(t) ? t : [t];
1337
1337
  const { length: n } = t;
1338
1338
  let s, i;
1339
1339
  const a = {};
@@ -1342,13 +1342,13 @@ const kt = (t) => `- ${t}`, Un = (t) => f.isFunction(t) || t === null || t === !
1342
1342
  let c;
1343
1343
  if (i = s, !Un(s) && (i = Qe[(c = String(s)).toLowerCase()], i === void 0))
1344
1344
  throw new $(`Unknown adapter '${c}'`);
1345
- if (i && (f.isFunction(i) || (i = i.get(e))))
1345
+ if (i && (x.isFunction(i) || (i = i.get(e))))
1346
1346
  break;
1347
1347
  a[c || "#" + o] = i;
1348
1348
  }
1349
1349
  if (!i) {
1350
1350
  const o = Object.entries(a).map(
1351
- ([d, p]) => `adapter ${d} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1351
+ ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
1353
  let c = n ? o.length > 1 ? `since :
1354
1354
  ` + o.map(kt).join(`
@@ -1472,7 +1472,7 @@ let he = class {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
1473
1473
  forcedJSONParsing: ce.transitional(ce.boolean),
1474
1474
  clarifyTimeoutError: ce.transitional(ce.boolean)
1475
- }, !1), i != null && (f.isFunction(i) ? n.paramsSerializer = {
1475
+ }, !1), i != null && (x.isFunction(i) ? n.paramsSerializer = {
1476
1476
  serialize: i
1477
1477
  } : $e.assertOptions(i, {
1478
1478
  encode: ce.function,
@@ -1481,11 +1481,11 @@ let he = class {
1481
1481
  baseUrl: ce.spelling("baseURL"),
1482
1482
  withXsrfToken: ce.spelling("withXSRFToken")
1483
1483
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1484
- let o = a && f.merge(
1484
+ let o = a && x.merge(
1485
1485
  a.common,
1486
1486
  a[n.method]
1487
1487
  );
1488
- a && f.forEach(
1488
+ a && x.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
1490
  (u) => {
1491
1491
  delete a[u];
@@ -1496,16 +1496,16 @@ let he = class {
1496
1496
  this.interceptors.request.forEach(function(w) {
1497
1497
  typeof w.runWhen == "function" && w.runWhen(n) === !1 || (d = d && w.synchronous, c.unshift(w.fulfilled, w.rejected));
1498
1498
  });
1499
- const p = [];
1499
+ const f = [];
1500
1500
  this.interceptors.response.forEach(function(w) {
1501
- p.push(w.fulfilled, w.rejected);
1501
+ f.push(w.fulfilled, w.rejected);
1502
1502
  });
1503
- let x, y = 0, k;
1503
+ let p, y = 0, k;
1504
1504
  if (!d) {
1505
1505
  const u = [Et.bind(this), void 0];
1506
- for (u.unshift(...c), u.push(...p), k = u.length, x = Promise.resolve(n); y < k; )
1507
- x = x.then(u[y++], u[y++]);
1508
- return x;
1506
+ for (u.unshift(...c), u.push(...f), k = u.length, p = Promise.resolve(n); y < k; )
1507
+ p = p.then(u[y++], u[y++]);
1508
+ return p;
1509
1509
  }
1510
1510
  k = c.length;
1511
1511
  let E = n;
@@ -1519,13 +1519,13 @@ let he = class {
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- x = Et.call(this, E);
1522
+ p = Et.call(this, E);
1523
1523
  } catch (u) {
1524
1524
  return Promise.reject(u);
1525
1525
  }
1526
- for (y = 0, k = p.length; y < k; )
1527
- x = x.then(p[y++], p[y++]);
1528
- return x;
1526
+ for (y = 0, k = f.length; y < k; )
1527
+ p = p.then(f[y++], f[y++]);
1528
+ return p;
1529
1529
  }
1530
1530
  getUri(e) {
1531
1531
  e = me(this.defaults, e);
@@ -1533,7 +1533,7 @@ let he = class {
1533
1533
  return Ht(n, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
- f.forEach(["delete", "get", "head", "options"], function(e) {
1536
+ x.forEach(["delete", "get", "head", "options"], function(e) {
1537
1537
  he.prototype[e] = function(n, s) {
1538
1538
  return this.request(me(s || {}, {
1539
1539
  method: e,
@@ -1542,7 +1542,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1542
1542
  }));
1543
1543
  };
1544
1544
  });
1545
- f.forEach(["post", "put", "patch"], function(e) {
1545
+ x.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function n(s) {
1547
1547
  return function(a, o, c) {
1548
1548
  return this.request(me(c || {}, {
@@ -1635,8 +1635,8 @@ function Nn(t) {
1635
1635
  return t.apply(null, n);
1636
1636
  };
1637
1637
  }
1638
- function Fn(t) {
1639
- return f.isObject(t) && t.isAxiosError === !0;
1638
+ function Ln(t) {
1639
+ return x.isObject(t) && t.isAxiosError === !0;
1640
1640
  }
1641
1641
  const et = {
1642
1642
  Continue: 100,
@@ -1708,7 +1708,7 @@ Object.entries(et).forEach(([t, e]) => {
1708
1708
  });
1709
1709
  function rr(t) {
1710
1710
  const e = new he(t), n = At(he.prototype.request, e);
1711
- return f.extend(n, he.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1711
+ return x.extend(n, he.prototype, e, { allOwnKeys: !0 }), x.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1712
1712
  return rr(me(t, i));
1713
1713
  }, n;
1714
1714
  }
@@ -1725,10 +1725,10 @@ J.all = function(e) {
1725
1725
  return Promise.all(e);
1726
1726
  };
1727
1727
  J.spread = Nn;
1728
- J.isAxiosError = Fn;
1728
+ J.isAxiosError = Ln;
1729
1729
  J.mergeConfig = me;
1730
1730
  J.AxiosHeaders = re;
1731
- J.formToJSON = (t) => Yt(f.isHTMLForm(t) ? new FormData(t) : t);
1731
+ J.formToJSON = (t) => Yt(x.isHTMLForm(t) ? new FormData(t) : t);
1732
1732
  J.getAdapter = Qt.getAdapter;
1733
1733
  J.HttpStatusCode = et;
1734
1734
  J.default = J;
@@ -1835,29 +1835,20 @@ class li {
1835
1835
  }
1836
1836
  /**
1837
1837
  * Logout a user
1838
- * @desc Calls the backend logout endpoint, removes frontend cookie if server succeeds, and returns success
1838
+ * @desc Calls backend logout, clears cookie safely, reloads page (Next.js safe)
1839
1839
  */
1840
1840
  async logoutUser() {
1841
1841
  try {
1842
- const e = await this.request(
1842
+ return (await this.request(
1843
1843
  "POST",
1844
1844
  "/users/logout",
1845
1845
  {},
1846
- // no body needed
1847
1846
  {},
1848
1847
  !0
1849
- // include credentials (cookies)
1850
- );
1851
- if (e && e.success) {
1852
- if (typeof document < "u") {
1853
- const n = (/* @__PURE__ */ new Date(0)).toUTCString();
1854
- document.cookie = `a_s_b=; path=/; Max-Age=${n}; SameSite=Lax`;
1855
- }
1856
- return { success: !0 };
1857
- }
1858
- return { success: !1 };
1848
+ // include credentials
1849
+ ))?.success ? (typeof window < "u" && (document.cookie = "a_s_b=; path=/; Max-Age=0; SameSite=Lax", window.location.protocol === "https:" && (document.cookie = "a_s_b=; path=/; Max-Age=0; SameSite=Lax; Secure"), window.location.reload()), { success: !0 }) : { success: !1 };
1859
1850
  } catch (e) {
1860
- throw new Error(e.message || "Logout failed due to an unknown error");
1851
+ throw new Error(e?.message || "Logout failed due to an unknown error");
1861
1852
  }
1862
1853
  }
1863
1854
  /**
@@ -2286,7 +2277,7 @@ var Ae = { exports: {} }, ke = {};
2286
2277
  * LICENSE file in the root directory of this source tree.
2287
2278
  */
2288
2279
  var Tt;
2289
- function Ln() {
2280
+ function Fn() {
2290
2281
  if (Tt) return ke;
2291
2282
  Tt = 1;
2292
2283
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
@@ -2426,7 +2417,7 @@ function qn() {
2426
2417
  "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."
2427
2418
  )), l = this.props.ref, l !== void 0 ? l : null;
2428
2419
  }
2429
- function p(l, m, S, D, ne, oe) {
2420
+ function f(l, m, S, D, ne, oe) {
2430
2421
  var B = S.ref;
2431
2422
  return l = {
2432
2423
  $$typeof: u,
@@ -2459,7 +2450,7 @@ function qn() {
2459
2450
  value: oe
2460
2451
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2461
2452
  }
2462
- function x(l, m, S, D, ne, oe) {
2453
+ function p(l, m, S, D, ne, oe) {
2463
2454
  var B = m.children;
2464
2455
  if (B !== void 0)
2465
2456
  if (D)
@@ -2498,7 +2489,7 @@ React keys must be passed directly to JSX without using spread:
2498
2489
  return B && c(
2499
2490
  S,
2500
2491
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2501
- ), p(
2492
+ ), f(
2502
2493
  l,
2503
2494
  B,
2504
2495
  S,
@@ -2524,33 +2515,33 @@ React keys must be passed directly to JSX without using spread:
2524
2515
  var M, K = {}, H = E.react_stack_bottom_frame.bind(
2525
2516
  E,
2526
2517
  a
2527
- )(), F = z(s(a)), Y = {};
2518
+ )(), L = z(s(a)), Y = {};
2528
2519
  Ee.Fragment = h, Ee.jsx = function(l, m, S) {
2529
2520
  var D = 1e4 > T.recentlyCreatedOwnerStacks++;
2530
- return x(
2521
+ return p(
2531
2522
  l,
2532
2523
  m,
2533
2524
  S,
2534
2525
  !1,
2535
2526
  D ? Error("react-stack-top-frame") : H,
2536
- D ? z(s(l)) : F
2527
+ D ? z(s(l)) : L
2537
2528
  );
2538
2529
  }, Ee.jsxs = function(l, m, S) {
2539
2530
  var D = 1e4 > T.recentlyCreatedOwnerStacks++;
2540
- return x(
2531
+ return p(
2541
2532
  l,
2542
2533
  m,
2543
2534
  S,
2544
2535
  !0,
2545
2536
  D ? Error("react-stack-top-frame") : H,
2546
- D ? z(s(l)) : F
2537
+ D ? z(s(l)) : L
2547
2538
  );
2548
2539
  };
2549
2540
  })()), Ee;
2550
2541
  }
2551
2542
  var Pt;
2552
2543
  function Mn() {
2553
- return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ln() : Ae.exports = qn()), Ae.exports;
2544
+ return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Fn() : Ae.exports = qn()), Ae.exports;
2554
2545
  }
2555
2546
  var r = Mn();
2556
2547
  /**
@@ -2617,7 +2608,7 @@ const Yn = zt(
2617
2608
  ...c
2618
2609
  },
2619
2610
  [
2620
- ...o.map(([p, x]) => Ke(p, x)),
2611
+ ...o.map(([f, p]) => Ke(f, p)),
2621
2612
  ...Array.isArray(a) ? a : [a]
2622
2613
  ]
2623
2614
  )
@@ -2628,7 +2619,7 @@ const Yn = zt(
2628
2619
  * This source code is licensed under the ISC license.
2629
2620
  * See the LICENSE file in the root directory of this source tree.
2630
2621
  */
2631
- const L = (t, e) => {
2622
+ const F = (t, e) => {
2632
2623
  const n = zt(
2633
2624
  ({ className: s, ...i }, a) => Ke(Yn, {
2634
2625
  ref: a,
@@ -2658,7 +2649,7 @@ const Jn = [
2658
2649
  }
2659
2650
  ],
2660
2651
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2661
- ], Kn = L("badge-check", Jn);
2652
+ ], Kn = F("badge-check", Jn);
2662
2653
  /**
2663
2654
  * @license lucide-react v0.544.0 - ISC
2664
2655
  *
@@ -2674,14 +2665,14 @@ const Gn = [
2674
2665
  }
2675
2666
  ],
2676
2667
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
2677
- ], tt = L("camera", Gn);
2668
+ ], tt = F("camera", Gn);
2678
2669
  /**
2679
2670
  * @license lucide-react v0.544.0 - ISC
2680
2671
  *
2681
2672
  * This source code is licensed under the ISC license.
2682
2673
  * See the LICENSE file in the root directory of this source tree.
2683
2674
  */
2684
- const Xn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = L("chevron-down", Xn);
2675
+ const Xn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = F("chevron-down", Xn);
2685
2676
  /**
2686
2677
  * @license lucide-react v0.544.0 - ISC
2687
2678
  *
@@ -2692,7 +2683,7 @@ const Qn = [
2692
2683
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2693
2684
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2694
2685
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2695
- ], se = L("circle-alert", Qn);
2686
+ ], se = F("circle-alert", Qn);
2696
2687
  /**
2697
2688
  * @license lucide-react v0.544.0 - ISC
2698
2689
  *
@@ -2702,7 +2693,7 @@ const Qn = [
2702
2693
  const es = [
2703
2694
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2704
2695
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2705
- ], ue = L("circle-check-big", es);
2696
+ ], ue = F("circle-check-big", es);
2706
2697
  /**
2707
2698
  * @license lucide-react v0.544.0 - ISC
2708
2699
  *
@@ -2712,7 +2703,7 @@ const es = [
2712
2703
  const ts = [
2713
2704
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2714
2705
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2715
- ], Je = L("circle-check", ts);
2706
+ ], Je = F("circle-check", ts);
2716
2707
  /**
2717
2708
  * @license lucide-react v0.544.0 - ISC
2718
2709
  *
@@ -2723,7 +2714,7 @@ const rs = [
2723
2714
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2724
2715
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2725
2716
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2726
- ], ns = L("database", rs);
2717
+ ], ns = F("database", rs);
2727
2718
  /**
2728
2719
  * @license lucide-react v0.544.0 - ISC
2729
2720
  *
@@ -2734,7 +2725,7 @@ const ss = [
2734
2725
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2735
2726
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2736
2727
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2737
- ], is = L("ellipsis-vertical", ss);
2728
+ ], is = F("ellipsis-vertical", ss);
2738
2729
  /**
2739
2730
  * @license lucide-react v0.544.0 - ISC
2740
2731
  *
@@ -2758,7 +2749,7 @@ const as = [
2758
2749
  }
2759
2750
  ],
2760
2751
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2761
- ], it = L("eye-off", as);
2752
+ ], it = F("eye-off", as);
2762
2753
  /**
2763
2754
  * @license lucide-react v0.544.0 - ISC
2764
2755
  *
@@ -2774,7 +2765,7 @@ const os = [
2774
2765
  }
2775
2766
  ],
2776
2767
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2777
- ], at = L("eye", os);
2768
+ ], at = F("eye", os);
2778
2769
  /**
2779
2770
  * @license lucide-react v0.544.0 - ISC
2780
2771
  *
@@ -2790,7 +2781,7 @@ const ls = [
2790
2781
  key: "r6nss1"
2791
2782
  }
2792
2783
  ]
2793
- ], cs = L("house", ls);
2784
+ ], cs = F("house", ls);
2794
2785
  /**
2795
2786
  * @license lucide-react v0.544.0 - ISC
2796
2787
  *
@@ -2801,7 +2792,7 @@ const ds = [
2801
2792
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2802
2793
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2803
2794
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2804
- ], sr = L("image", ds);
2795
+ ], sr = F("image", ds);
2805
2796
  /**
2806
2797
  * @license lucide-react v0.544.0 - ISC
2807
2798
  *
@@ -2817,7 +2808,7 @@ const us = [
2817
2808
  }
2818
2809
  ],
2819
2810
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2820
- ], ir = L("key-round", us);
2811
+ ], ir = F("key-round", us);
2821
2812
  /**
2822
2813
  * @license lucide-react v0.544.0 - ISC
2823
2814
  *
@@ -2828,7 +2819,7 @@ const ps = [
2828
2819
  ["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" }],
2829
2820
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2830
2821
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2831
- ], ot = L("key", ps);
2822
+ ], ot = F("key", ps);
2832
2823
  /**
2833
2824
  * @license lucide-react v0.544.0 - ISC
2834
2825
  *
@@ -2839,14 +2830,14 @@ const fs = [
2839
2830
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
2840
2831
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
2841
2832
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
2842
- ], xs = L("link-2", fs);
2833
+ ], xs = F("link-2", fs);
2843
2834
  /**
2844
2835
  * @license lucide-react v0.544.0 - ISC
2845
2836
  *
2846
2837
  * This source code is licensed under the ISC license.
2847
2838
  * See the LICENSE file in the root directory of this source tree.
2848
2839
  */
2849
- const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ie = L("loader-circle", hs);
2840
+ const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ie = F("loader-circle", hs);
2850
2841
  /**
2851
2842
  * @license lucide-react v0.544.0 - ISC
2852
2843
  *
@@ -2862,7 +2853,7 @@ const ms = [
2862
2853
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
2863
2854
  ["path", { d: "M2 12h4", key: "j09sii" }],
2864
2855
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
2865
- ], gs = L("loader", ms);
2856
+ ], gs = F("loader", ms);
2866
2857
  /**
2867
2858
  * @license lucide-react v0.544.0 - ISC
2868
2859
  *
@@ -2872,7 +2863,7 @@ const ms = [
2872
2863
  const ys = [
2873
2864
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2874
2865
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2875
- ], ye = L("lock", ys);
2866
+ ], ye = F("lock", ys);
2876
2867
  /**
2877
2868
  * @license lucide-react v0.544.0 - ISC
2878
2869
  *
@@ -2883,7 +2874,7 @@ const bs = [
2883
2874
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2884
2875
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2885
2876
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2886
- ], lt = L("log-out", bs);
2877
+ ], lt = F("log-out", bs);
2887
2878
  /**
2888
2879
  * @license lucide-react v0.544.0 - ISC
2889
2880
  *
@@ -2893,7 +2884,7 @@ const bs = [
2893
2884
  const ws = [
2894
2885
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2895
2886
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2896
- ], pe = L("mail", ws);
2887
+ ], pe = F("mail", ws);
2897
2888
  /**
2898
2889
  * @license lucide-react v0.544.0 - ISC
2899
2890
  *
@@ -2909,7 +2900,7 @@ const js = [
2909
2900
  }
2910
2901
  ],
2911
2902
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2912
- ], vs = L("map-pin", js);
2903
+ ], vs = F("map-pin", js);
2913
2904
  /**
2914
2905
  * @license lucide-react v0.544.0 - ISC
2915
2906
  *
@@ -2925,7 +2916,7 @@ const Ss = [
2925
2916
  key: "1a8usu"
2926
2917
  }
2927
2918
  ]
2928
- ], ks = L("pen-line", Ss);
2919
+ ], ks = F("pen-line", Ss);
2929
2920
  /**
2930
2921
  * @license lucide-react v0.544.0 - ISC
2931
2922
  *
@@ -2940,7 +2931,7 @@ const Es = [
2940
2931
  key: "9njp5v"
2941
2932
  }
2942
2933
  ]
2943
- ], Cs = L("phone", Es);
2934
+ ], Cs = F("phone", Es);
2944
2935
  /**
2945
2936
  * @license lucide-react v0.544.0 - ISC
2946
2937
  *
@@ -2957,7 +2948,7 @@ const Ts = [
2957
2948
  ],
2958
2949
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
2959
2950
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
2960
- ], Rs = L("save", Ts);
2951
+ ], Rs = F("save", Ts);
2961
2952
  /**
2962
2953
  * @license lucide-react v0.544.0 - ISC
2963
2954
  *
@@ -2973,7 +2964,7 @@ const Ps = [
2973
2964
  }
2974
2965
  ],
2975
2966
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
2976
- ], ct = L("send", Ps);
2967
+ ], ct = F("send", Ps);
2977
2968
  /**
2978
2969
  * @license lucide-react v0.544.0 - ISC
2979
2970
  *
@@ -2989,7 +2980,7 @@ const Os = [
2989
2980
  }
2990
2981
  ],
2991
2982
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2992
- ], Is = L("settings", Os);
2983
+ ], Is = F("settings", Os);
2993
2984
  /**
2994
2985
  * @license lucide-react v0.544.0 - ISC
2995
2986
  *
@@ -3004,7 +2995,7 @@ const zs = [
3004
2995
  key: "oel41y"
3005
2996
  }
3006
2997
  ]
3007
- ], ar = L("shield", zs);
2998
+ ], ar = F("shield", zs);
3008
2999
  /**
3009
3000
  * @license lucide-react v0.544.0 - ISC
3010
3001
  *
@@ -3017,7 +3008,7 @@ const As = [
3017
3008
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
3018
3009
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
3019
3010
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
3020
- ], De = L("trash-2", As);
3011
+ ], De = F("trash-2", As);
3021
3012
  /**
3022
3013
  * @license lucide-react v0.544.0 - ISC
3023
3014
  *
@@ -3034,7 +3025,7 @@ const _s = [
3034
3025
  ],
3035
3026
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3036
3027
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3037
- ], It = L("triangle-alert", _s);
3028
+ ], It = F("triangle-alert", _s);
3038
3029
  /**
3039
3030
  * @license lucide-react v0.544.0 - ISC
3040
3031
  *
@@ -3046,7 +3037,7 @@ const Us = [
3046
3037
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
3047
3038
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
3048
3039
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
3049
- ], $s = L("user-x", Us);
3040
+ ], $s = F("user-x", Us);
3050
3041
  /**
3051
3042
  * @license lucide-react v0.544.0 - ISC
3052
3043
  *
@@ -3056,7 +3047,7 @@ const Us = [
3056
3047
  const Ds = [
3057
3048
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3058
3049
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3059
- ], we = L("user", Ds);
3050
+ ], we = F("user", Ds);
3060
3051
  /**
3061
3052
  * @license lucide-react v0.544.0 - ISC
3062
3053
  *
@@ -3066,7 +3057,7 @@ const Ds = [
3066
3057
  const Ns = [
3067
3058
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3068
3059
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3069
- ], Ie = L("x", Ns), or = cr(null), ci = ({
3060
+ ], Ie = F("x", Ns), or = cr(null), ci = ({
3070
3061
  authix: t,
3071
3062
  children: e
3072
3063
  }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), fe = () => {
@@ -3086,9 +3077,9 @@ const Ns = [
3086
3077
  showAvatar: c = !1,
3087
3078
  roles: d = [],
3088
3079
  // 🔥 FIXED
3089
- showRoleSelector: p = !1,
3080
+ showRoleSelector: f = !1,
3090
3081
  // 🔥 FIXED
3091
- loginUrl: x,
3082
+ loginUrl: p,
3092
3083
  onSuccess: y,
3093
3084
  onError: k
3094
3085
  }) => {
@@ -3101,18 +3092,18 @@ const Ns = [
3101
3092
  }, [w, h] = P(u), [O, C] = P(!1), [g, A] = P(!1), [N, b] = P(null), [j, q] = P({}), [I, X] = P(!1), W = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", G = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", R = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3102
3093
  Ce.useEffect(() => {
3103
3094
  if (typeof window < "u") {
3104
- const F = () => X(window.innerWidth < 768);
3105
- return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
3095
+ const L = () => X(window.innerWidth < 768);
3096
+ return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
3106
3097
  }
3107
3098
  }, []);
3108
- const z = (F) => {
3109
- const { name: Y, value: l } = F.target;
3099
+ const z = (L) => {
3100
+ const { name: Y, value: l } = L.target;
3110
3101
  h((m) => ({ ...m, [Y]: l })), j[Y] && q((m) => ({ ...m, [Y]: void 0 }));
3111
3102
  }, M = () => {
3112
- const F = {};
3113
- return w.name.trim() || (F.name = "Name is required"), w.email.trim() ? /\S+@\S+\.\S+/.test(w.email) || (F.email = "Invalid email address") : F.email = "Email is required", w.password ? w.password.length < 6 && (F.password = "Password must be at least 6 characters") : F.password = "Password is required", q(F), Object.keys(F).length === 0;
3114
- }, K = async (F) => {
3115
- if (F.preventDefault(), !!M()) {
3103
+ const L = {};
3104
+ return w.name.trim() || (L.name = "Name is required"), w.email.trim() ? /\S+@\S+\.\S+/.test(w.email) || (L.email = "Invalid email address") : L.email = "Email is required", w.password ? w.password.length < 6 && (L.password = "Password must be at least 6 characters") : L.password = "Password is required", q(L), Object.keys(L).length === 0;
3105
+ }, K = async (L) => {
3106
+ if (L.preventDefault(), !!M()) {
3116
3107
  A(!0), b(null);
3117
3108
  try {
3118
3109
  const Y = {
@@ -3249,8 +3240,8 @@ const Ns = [
3249
3240
  objectFit: "cover",
3250
3241
  border: `2px solid ${i}30`
3251
3242
  },
3252
- onError: (F) => {
3253
- const Y = F.target;
3243
+ onError: (L) => {
3244
+ const Y = L.target;
3254
3245
  Y.style.display = "none";
3255
3246
  }
3256
3247
  }
@@ -3263,7 +3254,7 @@ const Ns = [
3263
3254
  onSubmit: K,
3264
3255
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3265
3256
  children: [
3266
- p && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3257
+ f && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3267
3258
  "div",
3268
3259
  {
3269
3260
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3317,7 +3308,7 @@ const Ns = [
3317
3308
  "button",
3318
3309
  {
3319
3310
  type: "button",
3320
- onClick: () => h((F) => ({ ...F, role: d[0] })),
3311
+ onClick: () => h((L) => ({ ...L, role: d[0] })),
3321
3312
  style: {
3322
3313
  flex: 1,
3323
3314
  zIndex: 10,
@@ -3339,7 +3330,7 @@ const Ns = [
3339
3330
  "button",
3340
3331
  {
3341
3332
  type: "button",
3342
- onClick: () => h((F) => ({ ...F, role: d[1] })),
3333
+ onClick: () => h((L) => ({ ...L, role: d[1] })),
3343
3334
  style: {
3344
3335
  flex: 1,
3345
3336
  zIndex: 10,
@@ -3593,7 +3584,7 @@ const Ns = [
3593
3584
  ]
3594
3585
  }
3595
3586
  ),
3596
- x && /* @__PURE__ */ r.jsx(
3587
+ p && /* @__PURE__ */ r.jsx(
3597
3588
  "div",
3598
3589
  {
3599
3590
  style: {
@@ -3604,7 +3595,7 @@ const Ns = [
3604
3595
  children: /* @__PURE__ */ r.jsx(
3605
3596
  "a",
3606
3597
  {
3607
- href: x,
3598
+ href: p,
3608
3599
  style: {
3609
3600
  color: i,
3610
3601
  textDecoration: "none",
@@ -3709,9 +3700,9 @@ const Ns = [
3709
3700
  darkMode: o = !0,
3710
3701
  signupUrl: c,
3711
3702
  onSuccess: d,
3712
- onError: p
3703
+ onError: f
3713
3704
  }) => {
3714
- const x = fe(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [O, C] = P(!1), [g, A] = P(null), [N, b] = P(""), [j, q] = P(""), [I, X] = P({
3705
+ const p = fe(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [O, C] = P(!1), [g, A] = P(null), [N, b] = P(""), [j, q] = P(""), [I, X] = P({
3715
3706
  email: "",
3716
3707
  otp: "",
3717
3708
  newPassword: ""
@@ -3725,7 +3716,7 @@ const Ns = [
3725
3716
  const K = async (m) => {
3726
3717
  m.preventDefault(), C(!0), A(null);
3727
3718
  try {
3728
- const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
3719
+ const S = await p.loginUser({ email: N, password: j }), { user: D } = S;
3729
3720
  if (!D)
3730
3721
  throw new Error(S.message || "Login failed");
3731
3722
  if (typeof document < "u") {
@@ -3735,16 +3726,16 @@ const Ns = [
3735
3726
  A({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3736
3727
  } catch (S) {
3737
3728
  const D = S.message || "Login failed";
3738
- A({ type: "error", text: D }), p?.(S);
3729
+ A({ type: "error", text: D }), f?.(S);
3739
3730
  } finally {
3740
3731
  C(!1);
3741
3732
  }
3742
3733
  }, H = (m) => {
3743
3734
  X({ ...I, [m.target.name]: m.target.value });
3744
- }, F = async (m) => {
3735
+ }, L = async (m) => {
3745
3736
  m.preventDefault(), C(!0), A(null);
3746
3737
  try {
3747
- const S = await x.requestResetUserPasswordOTP({
3738
+ const S = await p.requestResetUserPasswordOTP({
3748
3739
  email: I.email
3749
3740
  });
3750
3741
  S.success ? (u(2), A({
@@ -3765,7 +3756,7 @@ const Ns = [
3765
3756
  }, Y = async (m) => {
3766
3757
  m.preventDefault(), C(!0), A(null);
3767
3758
  try {
3768
- const S = await x.resetUserPassword({
3759
+ const S = await p.resetUserPassword({
3769
3760
  email: I.email,
3770
3761
  otp: I.otp,
3771
3762
  newPassword: I.newPassword
@@ -4053,7 +4044,7 @@ const Ns = [
4053
4044
  y === "forgot" && /* @__PURE__ */ r.jsxs(
4054
4045
  "form",
4055
4046
  {
4056
- onSubmit: E === 1 ? F : Y,
4047
+ onSubmit: E === 1 ? L : Y,
4057
4048
  style: { display: "flex", flexDirection: "column", gap: "14px" },
4058
4049
  children: [
4059
4050
  E === 1 ? /* @__PURE__ */ r.jsxs(
@@ -4294,14 +4285,14 @@ const Ns = [
4294
4285
  const n = fe(), [s, i] = P("loading");
4295
4286
  ee(() => {
4296
4287
  (async () => {
4288
+ if (!(document.cookie.split(";").map((p) => p.trim()).find((p) => p.startsWith("a_s_b="))?.split("=")[1] === "true")) {
4289
+ i("unauthenticated");
4290
+ return;
4291
+ }
4297
4292
  try {
4298
- if (!(document.cookie.split(";").map((y) => y.trim()).find((y) => y.startsWith("a_s_b="))?.split("=")[1] === "true")) {
4299
- i("unauthenticated");
4300
- return;
4301
- }
4302
4293
  (await n.checkUserSession())?.user?.id ? i("authenticated") : (document.cookie = "a_s_b=false; path=/; max-age=0; SameSite=Lax", i("unauthenticated"));
4303
- } catch {
4304
- document.cookie = "a_s_b=false; path=/; max-age=0; SameSite=Lax", i("unauthenticated");
4294
+ } catch (p) {
4295
+ console.error("Session validation failed:", p), document.cookie = "a_s_b=false; path=/; max-age=0; SameSite=Lax", i("unauthenticated");
4305
4296
  }
4306
4297
  })();
4307
4298
  }, [n]);
@@ -4314,12 +4305,12 @@ const Ns = [
4314
4305
  const [n, s] = P(!1), [i, a] = P(null);
4315
4306
  if (ee(() => {
4316
4307
  s(!0);
4317
- const d = document.cookie.split(";").map((p) => p.trim()).find((p) => p.startsWith("a_s_b="));
4308
+ const d = document.cookie.split(";").map((f) => f.trim()).find((f) => f.startsWith("a_s_b="));
4318
4309
  a(d?.split("=")[1] !== "true");
4319
4310
  }, []), !n) return null;
4320
4311
  const o = (c) => typeof c == "function" ? c() : c;
4321
4312
  return i === null ? o(e) ?? null : i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: t }) : o(e);
4322
- }, Fs = ({
4313
+ }, Ls = ({
4323
4314
  isOpen: t,
4324
4315
  onClose: e,
4325
4316
  onSuccess: n,
@@ -4327,7 +4318,7 @@ const Ns = [
4327
4318
  userId: i,
4328
4319
  colors: a
4329
4320
  }) => {
4330
- const o = fe(), [c, d] = P(!1), [p, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4321
+ const o = fe(), [c, d] = P(!1), [f, p] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4331
4322
  if (ee(() => {
4332
4323
  if (typeof window > "u") return;
4333
4324
  const g = () => {
@@ -4349,7 +4340,7 @@ const Ns = [
4349
4340
  } finally {
4350
4341
  d(!1);
4351
4342
  }
4352
- }, h = p.toLowerCase() === "delete my account", O = (g) => {
4343
+ }, h = f.toLowerCase() === "delete my account", O = (g) => {
4353
4344
  g.target === g.currentTarget && y !== "processing" && y !== "success" && e();
4354
4345
  }, C = () => {
4355
4346
  switch (y) {
@@ -4666,8 +4657,8 @@ const Ns = [
4666
4657
  "input",
4667
4658
  {
4668
4659
  type: "text",
4669
- value: p,
4670
- onChange: (g) => x(g.target.value),
4660
+ value: f,
4661
+ onChange: (g) => p(g.target.value),
4671
4662
  placeholder: "delete my account",
4672
4663
  style: {
4673
4664
  width: "100%",
@@ -4724,7 +4715,7 @@ const Ns = [
4724
4715
  "button",
4725
4716
  {
4726
4717
  onClick: () => {
4727
- k("warning"), x("");
4718
+ k("warning"), p("");
4728
4719
  },
4729
4720
  style: {
4730
4721
  padding: "10px 24px",
@@ -5170,17 +5161,17 @@ const Ns = [
5170
5161
  ]
5171
5162
  }
5172
5163
  );
5173
- }, Ls = ({
5164
+ }, Fs = ({
5174
5165
  isOpen: t,
5175
5166
  onClose: e,
5176
5167
  onUpdate: n,
5177
5168
  colors: s
5178
5169
  }) => {
5179
- const [i, a] = P(""), [o, c] = P(!1), [d, p] = P(!1), [x, y] = P({ isValid: !1, message: "", type: null });
5170
+ const [i, a] = P(""), [o, c] = P(!1), [d, f] = P(!1), [p, y] = P({ isValid: !1, message: "", type: null });
5180
5171
  if (ee(() => {
5181
5172
  if (typeof window > "u") return;
5182
5173
  const u = () => {
5183
- p(window.innerWidth < 640);
5174
+ f(window.innerWidth < 640);
5184
5175
  };
5185
5176
  return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5186
5177
  }, []), ee(() => {
@@ -5208,7 +5199,7 @@ const Ns = [
5208
5199
  }
5209
5200
  }, [i]), !t) return null;
5210
5201
  const k = async () => {
5211
- if (!(!i || !x.isValid)) {
5202
+ if (!(!i || !p.isValid)) {
5212
5203
  c(!0);
5213
5204
  try {
5214
5205
  await n(i) && (a(""), e());
@@ -5379,7 +5370,7 @@ const Ns = [
5379
5370
  padding: "14px 16px",
5380
5371
  paddingLeft: "44px",
5381
5372
  borderRadius: "12px",
5382
- border: `1.5px solid ${x.type === "error" ? s.error : x.type === "success" ? s.success : s.border}`,
5373
+ border: `1.5px solid ${p.type === "error" ? s.error : p.type === "success" ? s.success : s.border}`,
5383
5374
  backgroundColor: "transparent",
5384
5375
  color: s.textPrimary,
5385
5376
  fontSize: "15px",
@@ -5391,7 +5382,7 @@ const Ns = [
5391
5382
  u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5392
5383
  },
5393
5384
  onBlur: (u) => {
5394
- u.target.style.borderColor = x.type === "error" ? s.error : x.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5385
+ u.target.style.borderColor = p.type === "error" ? s.error : p.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5395
5386
  },
5396
5387
  disabled: o
5397
5388
  }
@@ -5410,7 +5401,7 @@ const Ns = [
5410
5401
  }
5411
5402
  )
5412
5403
  ] }),
5413
- x.message && /* @__PURE__ */ r.jsxs(
5404
+ p.message && /* @__PURE__ */ r.jsxs(
5414
5405
  "div",
5415
5406
  {
5416
5407
  style: {
@@ -5419,18 +5410,18 @@ const Ns = [
5419
5410
  gap: "6px",
5420
5411
  marginTop: "8px",
5421
5412
  fontSize: "13px",
5422
- color: x.type === "success" ? s.success : x.type === "error" ? s.error : s.textTertiary
5413
+ color: p.type === "success" ? s.success : p.type === "error" ? s.error : s.textTertiary
5423
5414
  },
5424
5415
  children: [
5425
- x.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5426
- x.type === "error" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5427
- x.type === "warning" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5428
- x.message
5416
+ p.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5417
+ p.type === "error" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5418
+ p.type === "warning" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5419
+ p.message
5429
5420
  ]
5430
5421
  }
5431
5422
  )
5432
5423
  ] }),
5433
- i && x.type === "success" && /* @__PURE__ */ r.jsxs(
5424
+ i && p.type === "success" && /* @__PURE__ */ r.jsxs(
5434
5425
  "div",
5435
5426
  {
5436
5427
  style: {
@@ -5521,7 +5512,7 @@ const Ns = [
5521
5512
  "button",
5522
5513
  {
5523
5514
  onClick: k,
5524
- disabled: o || !x.isValid,
5515
+ disabled: o || !p.isValid,
5525
5516
  style: {
5526
5517
  padding: "10px 24px",
5527
5518
  borderRadius: "10px",
@@ -5530,22 +5521,22 @@ const Ns = [
5530
5521
  color: "#fff",
5531
5522
  fontSize: "14px",
5532
5523
  fontWeight: 600,
5533
- cursor: o || !x.isValid ? "not-allowed" : "pointer",
5524
+ cursor: o || !p.isValid ? "not-allowed" : "pointer",
5534
5525
  flex: d ? "none" : 1,
5535
5526
  minWidth: d ? "100%" : "140px",
5536
- opacity: o || !x.isValid ? 0.6 : 1,
5527
+ opacity: o || !p.isValid ? 0.6 : 1,
5537
5528
  display: "flex",
5538
5529
  alignItems: "center",
5539
5530
  justifyContent: "center",
5540
5531
  gap: "8px",
5541
5532
  transition: "all 0.2s ease",
5542
- boxShadow: o || !x.isValid ? "none" : `0 4px 12px ${s.accent}40`
5533
+ boxShadow: o || !p.isValid ? "none" : `0 4px 12px ${s.accent}40`
5543
5534
  },
5544
5535
  onMouseOver: (u) => {
5545
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5536
+ !o && p.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5546
5537
  },
5547
5538
  onMouseOut: (u) => {
5548
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5539
+ !o && p.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5549
5540
  },
5550
5541
  children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5551
5542
  /* @__PURE__ */ r.jsx(
@@ -5634,7 +5625,7 @@ const Ns = [
5634
5625
  currentPassword: "",
5635
5626
  newPassword: "",
5636
5627
  confirmPassword: ""
5637
- }), [p, x] = P({}), [y, k] = P(!1), [E, u] = P({
5628
+ }), [f, p] = P({}), [y, k] = P(!1), [E, u] = P({
5638
5629
  currentPassword: !1,
5639
5630
  newPassword: !1,
5640
5631
  confirmPassword: !1
@@ -5648,12 +5639,12 @@ const Ns = [
5648
5639
  }, []), !t) return null;
5649
5640
  const O = (b) => {
5650
5641
  const { name: j, value: q } = b.target;
5651
- d((I) => ({ ...I, [j]: q })), p[j] && x((I) => ({ ...I, [j]: "" }));
5642
+ d((I) => ({ ...I, [j]: q })), f[j] && p((I) => ({ ...I, [j]: "" }));
5652
5643
  }, C = (b) => {
5653
5644
  u((j) => ({ ...j, [b]: !j[b] }));
5654
5645
  }, g = () => {
5655
5646
  const b = {};
5656
- return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), x(b), Object.keys(b).length === 0;
5647
+ return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), p(b), Object.keys(b).length === 0;
5657
5648
  }, A = async (b) => {
5658
5649
  if (b.preventDefault(), !!g()) {
5659
5650
  k(!0);
@@ -5858,7 +5849,7 @@ const Ns = [
5858
5849
  width: "100%",
5859
5850
  padding: "14px 48px 14px 44px",
5860
5851
  borderRadius: "10px",
5861
- border: `1.5px solid ${p[b] ? a.error : a.border}`,
5852
+ border: `1.5px solid ${f[b] ? a.error : a.border}`,
5862
5853
  backgroundColor: "transparent",
5863
5854
  color: a.textPrimary,
5864
5855
  fontSize: "15px",
@@ -5870,7 +5861,7 @@ const Ns = [
5870
5861
  I.target.style.borderColor = a.accent, I.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
5871
5862
  },
5872
5863
  onBlur: (I) => {
5873
- I.target.style.borderColor = p[b] ? a.error : a.border, I.target.style.boxShadow = "none";
5864
+ I.target.style.borderColor = f[b] ? a.error : a.border, I.target.style.boxShadow = "none";
5874
5865
  }
5875
5866
  }
5876
5867
  ),
@@ -5906,7 +5897,7 @@ const Ns = [
5906
5897
  }
5907
5898
  )
5908
5899
  ] }),
5909
- p[b] && /* @__PURE__ */ r.jsxs(
5900
+ f[b] && /* @__PURE__ */ r.jsxs(
5910
5901
  "div",
5911
5902
  {
5912
5903
  style: {
@@ -5919,7 +5910,7 @@ const Ns = [
5919
5910
  },
5920
5911
  children: [
5921
5912
  /* @__PURE__ */ r.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5922
- p[b]
5913
+ f[b]
5923
5914
  ]
5924
5915
  }
5925
5916
  )
@@ -6069,8 +6060,8 @@ const Ns = [
6069
6060
  otpSent: o,
6070
6061
  verifying: c,
6071
6062
  user: d,
6072
- colors: p,
6073
- darkMode: x
6063
+ colors: f,
6064
+ darkMode: p
6074
6065
  }) => {
6075
6066
  if (!t) return null;
6076
6067
  const y = () => {
@@ -6081,7 +6072,7 @@ const Ns = [
6081
6072
  {
6082
6073
  className: "modal-overlay",
6083
6074
  style: {
6084
- backgroundColor: x ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6075
+ backgroundColor: p ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6085
6076
  },
6086
6077
  children: [
6087
6078
  /* @__PURE__ */ r.jsxs(
@@ -6089,18 +6080,18 @@ const Ns = [
6089
6080
  {
6090
6081
  className: "verify-email-modal",
6091
6082
  style: {
6092
- backgroundColor: p.surface,
6093
- border: `1px solid ${p.border}`
6083
+ backgroundColor: f.surface,
6084
+ border: `1px solid ${f.border}`
6094
6085
  },
6095
6086
  children: [
6096
6087
  /* @__PURE__ */ r.jsxs("div", { className: "modal-header", children: [
6097
- /* @__PURE__ */ r.jsx("h3", { style: { color: p.textPrimary }, children: "Verify Your Email" }),
6088
+ /* @__PURE__ */ r.jsx("h3", { style: { color: f.textPrimary }, children: "Verify Your Email" }),
6098
6089
  /* @__PURE__ */ r.jsx(
6099
6090
  "button",
6100
6091
  {
6101
6092
  onClick: y,
6102
6093
  className: "close-btn",
6103
- style: { color: p.textTertiary },
6094
+ style: { color: f.textTertiary },
6104
6095
  "aria-label": "Close verification modal",
6105
6096
  children: /* @__PURE__ */ r.jsx(Ie, { size: 20, "aria-hidden": "true" })
6106
6097
  }
@@ -6108,13 +6099,13 @@ const Ns = [
6108
6099
  ] }),
6109
6100
  /* @__PURE__ */ r.jsxs("form", { className: "verify-form", onSubmit: n, children: [
6110
6101
  /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6111
- /* @__PURE__ */ r.jsx("label", { style: { color: p.textSecondary }, children: "Email" }),
6102
+ /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "Email" }),
6112
6103
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6113
6104
  /* @__PURE__ */ r.jsx(
6114
6105
  pe,
6115
6106
  {
6116
6107
  size: 18,
6117
- style: { color: p.textTertiary },
6108
+ style: { color: f.textTertiary },
6118
6109
  "aria-hidden": "true"
6119
6110
  }
6120
6111
  ),
@@ -6129,9 +6120,9 @@ const Ns = [
6129
6120
  })),
6130
6121
  placeholder: "Enter your email",
6131
6122
  style: {
6132
- backgroundColor: p.surfaceLight,
6133
- color: p.textPrimary,
6134
- borderColor: p.border
6123
+ backgroundColor: f.surfaceLight,
6124
+ color: f.textPrimary,
6125
+ borderColor: f.border
6135
6126
  },
6136
6127
  required: !0,
6137
6128
  "aria-required": "true",
@@ -6141,13 +6132,13 @@ const Ns = [
6141
6132
  ] })
6142
6133
  ] }),
6143
6134
  o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6144
- /* @__PURE__ */ r.jsx("label", { style: { color: p.textSecondary }, children: "OTP" }),
6135
+ /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
6145
6136
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6146
6137
  /* @__PURE__ */ r.jsx(
6147
6138
  ir,
6148
6139
  {
6149
6140
  size: 18,
6150
- style: { color: p.textTertiary },
6141
+ style: { color: f.textTertiary },
6151
6142
  "aria-hidden": "true"
6152
6143
  }
6153
6144
  ),
@@ -6162,9 +6153,9 @@ const Ns = [
6162
6153
  })),
6163
6154
  placeholder: "Enter OTP",
6164
6155
  style: {
6165
- backgroundColor: p.surfaceLight,
6166
- color: p.textPrimary,
6167
- borderColor: p.border
6156
+ backgroundColor: f.surfaceLight,
6157
+ color: f.textPrimary,
6158
+ borderColor: f.border
6168
6159
  },
6169
6160
  required: !0,
6170
6161
  "aria-required": "true",
@@ -6180,7 +6171,7 @@ const Ns = [
6180
6171
  disabled: c,
6181
6172
  className: "btn-primary",
6182
6173
  style: {
6183
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6174
+ background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6184
6175
  opacity: c ? 0.7 : 1
6185
6176
  },
6186
6177
  "aria-label": c ? "Verifying email" : "Verify email",
@@ -6197,7 +6188,7 @@ const Ns = [
6197
6188
  disabled: c,
6198
6189
  className: "btn-primary",
6199
6190
  style: {
6200
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6191
+ background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6201
6192
  opacity: c ? 0.7 : 1
6202
6193
  },
6203
6194
  "aria-label": c ? "Sending OTP" : "Send OTP",
@@ -6260,7 +6251,7 @@ const Ns = [
6260
6251
  }
6261
6252
 
6262
6253
  .close-btn:hover {
6263
- background-color: ${x ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6254
+ background-color: ${p ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6264
6255
  }
6265
6256
 
6266
6257
  .verify-form {
@@ -6304,8 +6295,8 @@ const Ns = [
6304
6295
  }
6305
6296
 
6306
6297
  .input-container input:focus {
6307
- border-color: ${p.accent};
6308
- box-shadow: 0 0 0 3px ${p.accent}20;
6298
+ border-color: ${f.accent};
6299
+ box-shadow: 0 0 0 3px ${f.accent}20;
6309
6300
  }
6310
6301
 
6311
6302
  .modal-actions {
@@ -6369,10 +6360,10 @@ const Ns = [
6369
6360
  onVerify: s,
6370
6361
  primaryColor: i = "#00C212"
6371
6362
  }) => {
6372
- const a = fe(), [o, c] = P(null), [d, p] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, O] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, I] = P(!1), [X, W] = P(!1), [T, G] = P(null), [R, z] = P(!1), [M, K] = P({
6363
+ const a = fe(), [o, c] = P(null), [d, f] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, O] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, I] = P(!1), [X, W] = P(!1), [T, G] = P(null), [R, z] = P(!1), [M, K] = P({
6373
6364
  email: "",
6374
6365
  otp: ""
6375
- }), [H, F] = P(!1), [Y, l] = P(!1);
6366
+ }), [H, L] = P(!1), [Y, l] = P(!1);
6376
6367
  ee(() => {
6377
6368
  if (typeof window < "u") {
6378
6369
  const v = () => c(window.innerWidth);
@@ -6412,7 +6403,7 @@ const Ns = [
6412
6403
  userId: d.id,
6413
6404
  email: M.email
6414
6405
  }), U = v?.data?.success ?? v?.success, V = v?.data?.message ?? v?.message;
6415
- U ? (m("success", V || "OTP sent to email!"), F(!0)) : m("error", V || "Failed to send OTP");
6406
+ U ? (m("success", V || "OTP sent to email!"), L(!0)) : m("error", V || "Failed to send OTP");
6416
6407
  } catch (v) {
6417
6408
  const U = v?.response?.data?.message || v?.message || "Server error";
6418
6409
  m("error", U);
@@ -6437,7 +6428,7 @@ const Ns = [
6437
6428
  if (V) {
6438
6429
  m("success", Z || "Email verified!");
6439
6430
  const de = { ...d, isVerified: !0 };
6440
- p(de), typeof s == "function" && s(de), K({ email: de.email, otp: "" }), F(!1), j?.(!1);
6431
+ f(de), typeof s == "function" && s(de), K({ email: de.email, otp: "" }), L(!1), j?.(!1);
6441
6432
  } else
6442
6433
  m("error", Z || "Verification failed");
6443
6434
  } catch (U) {
@@ -6461,7 +6452,7 @@ const Ns = [
6461
6452
  // 🔁 merge backend response if present
6462
6453
  avatarUrl: v
6463
6454
  };
6464
- return p(V), m("success", "Avatar updated successfully!"), !0;
6455
+ return f(V), m("success", "Avatar updated successfully!"), !0;
6465
6456
  }
6466
6457
  return m("error", U?.message || "Failed to update avatar"), !1;
6467
6458
  } catch (U) {
@@ -6483,7 +6474,7 @@ const Ns = [
6483
6474
  // overwrite updated fields
6484
6475
  isVerified: V ? !1 : d.isVerified
6485
6476
  };
6486
- p(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6477
+ f(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6487
6478
  "success",
6488
6479
  V ? "Email updated. Please verify your new email." : "Profile updated successfully"
6489
6480
  ), E(!1);
@@ -6498,7 +6489,7 @@ const Ns = [
6498
6489
  }, le = async (v) => {
6499
6490
  try {
6500
6491
  const U = await a.checkIfUserExists(v);
6501
- U?.success === !0 && U?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), p(null));
6492
+ U?.success === !0 && U?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), f(null));
6502
6493
  } catch (U) {
6503
6494
  console.error("⚠️ User validation request failed:", U);
6504
6495
  }
@@ -6512,13 +6503,13 @@ const Ns = [
6512
6503
  const V = U.user.id, Z = await a.getUserProfile({ userId: V });
6513
6504
  if (Z.user) {
6514
6505
  const de = Z.user;
6515
- p(de), le(V);
6506
+ f(de), le(V);
6516
6507
  } else
6517
- p(null), localStorage.removeItem("userInfo");
6508
+ f(null), localStorage.removeItem("userInfo");
6518
6509
  } else
6519
- p(null), localStorage.removeItem("userInfo");
6510
+ f(null), localStorage.removeItem("userInfo");
6520
6511
  } catch (U) {
6521
- console.error("User init failed:", U), p(null), localStorage.removeItem("userInfo");
6512
+ console.error("User init failed:", U), f(null), localStorage.removeItem("userInfo");
6522
6513
  } finally {
6523
6514
  y(!1);
6524
6515
  }
@@ -6558,7 +6549,7 @@ const Ns = [
6558
6549
  border: "#e4e4e7",
6559
6550
  warning: "#d97706"
6560
6551
  };
6561
- if (x)
6552
+ if (p)
6562
6553
  return /* @__PURE__ */ r.jsx(
6563
6554
  "div",
6564
6555
  {
@@ -7263,7 +7254,7 @@ const Ns = [
7263
7254
  type: v.type,
7264
7255
  name: v.name,
7265
7256
  value: d[v.name],
7266
- onChange: (V) => p(
7257
+ onChange: (V) => f(
7267
7258
  (Z) => Z && { ...Z, [V.target.name]: V.target.value }
7268
7259
  ),
7269
7260
  style: {
@@ -7441,7 +7432,7 @@ const Ns = [
7441
7432
  }
7442
7433
  ),
7443
7434
  /* @__PURE__ */ r.jsx(
7444
- Ls,
7435
+ Fs,
7445
7436
  {
7446
7437
  isOpen: h,
7447
7438
  onClose: () => {
@@ -7463,7 +7454,7 @@ const Ns = [
7463
7454
  }
7464
7455
  ),
7465
7456
  /* @__PURE__ */ r.jsx(
7466
- Fs,
7457
+ Ls,
7467
7458
  {
7468
7459
  userId: d.id,
7469
7460
  isOpen: A,
@@ -7478,7 +7469,7 @@ const Ns = [
7478
7469
  {
7479
7470
  isOpen: b,
7480
7471
  onClose: () => {
7481
- j(!1), F(!1), K({ email: d?.email || "", otp: "" });
7472
+ j(!1), L(!1), K({ email: d?.email || "", otp: "" });
7482
7473
  },
7483
7474
  onVerify: ne,
7484
7475
  onSendOTP: D,
@@ -7595,8 +7586,8 @@ const Ns = [
7595
7586
  settingsUrl: c,
7596
7587
  // Menu item visibility with defaults
7597
7588
  showProfileMenuItem: d = !0,
7598
- showSettingsMenuItem: p = !0,
7599
- showViewProfileMenuItem: x = !0,
7589
+ showSettingsMenuItem: f = !0,
7590
+ showViewProfileMenuItem: p = !0,
7600
7591
  // Custom labels with defaults
7601
7592
  profileLabel: y = "My Profile",
7602
7593
  settingsLabel: k = "Settings",
@@ -7909,7 +7900,7 @@ const Ns = [
7909
7900
  }
7910
7901
  }, K = (l, m) => {
7911
7902
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
7912
- }, H = () => o || C?.profileUrl, F = () => {
7903
+ }, H = () => o || C?.profileUrl, L = () => {
7913
7904
  const l = H();
7914
7905
  l && window.open(l, "_self", "noopener,noreferrer");
7915
7906
  }, Y = () => {
@@ -8066,14 +8057,14 @@ const Ns = [
8066
8057
  "button",
8067
8058
  {
8068
8059
  style: z.menuItem,
8069
- onClick: F,
8060
+ onClick: L,
8070
8061
  onMouseOver: (l) => {
8071
8062
  l.currentTarget.style.backgroundColor = R.surfaceHover;
8072
8063
  },
8073
8064
  onMouseOut: (l) => {
8074
8065
  l.currentTarget.style.backgroundColor = "transparent";
8075
8066
  },
8076
- onKeyDown: (l) => K(l, F),
8067
+ onKeyDown: (l) => K(l, L),
8077
8068
  role: "menuitem",
8078
8069
  tabIndex: 0,
8079
8070
  children: [
@@ -8082,7 +8073,7 @@ const Ns = [
8082
8073
  ]
8083
8074
  }
8084
8075
  ),
8085
- p && c && /* @__PURE__ */ r.jsxs(
8076
+ f && c && /* @__PURE__ */ r.jsxs(
8086
8077
  "button",
8087
8078
  {
8088
8079
  style: z.menuItem,
@@ -8102,7 +8093,7 @@ const Ns = [
8102
8093
  ]
8103
8094
  }
8104
8095
  ),
8105
- x && C.profileUrl && /* @__PURE__ */ r.jsxs(
8096
+ p && C.profileUrl && /* @__PURE__ */ r.jsxs(
8106
8097
  "a",
8107
8098
  {
8108
8099
  href: C.profileUrl,
@@ -8212,7 +8203,7 @@ const Ns = [
8212
8203
  const [a, o] = P(!1), [c, d] = P({
8213
8204
  email: t?.email || "",
8214
8205
  otp: ""
8215
- }), [p, x] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8206
+ }), [f, p] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8216
8207
  Ce.useEffect(() => {
8217
8208
  if (typeof window < "u") {
8218
8209
  const b = () => o(window.innerWidth < 768);
@@ -8265,7 +8256,7 @@ const Ns = [
8265
8256
  });
8266
8257
  if (console.log("Send OTP response:", b), b.success || b.data?.success) {
8267
8258
  const j = b.message || b.data?.message || "OTP sent!";
8268
- O("success", j), x(!0);
8259
+ O("success", j), p(!0);
8269
8260
  } else {
8270
8261
  const j = b.message || b.data?.message || "Failed to send OTP";
8271
8262
  O("error", j);
@@ -8288,7 +8279,7 @@ const Ns = [
8288
8279
  });
8289
8280
  if (j.success) {
8290
8281
  const q = { ...t, isVerified: !0 };
8291
- s?.(q), O("success", j.message || "Email verified!"), x(!1), d({ email: t.email, otp: "" });
8282
+ s?.(q), O("success", j.message || "Email verified!"), p(!1), d({ email: t.email, otp: "" });
8292
8283
  } else
8293
8284
  O("error", j.message || "Verification failed");
8294
8285
  } catch (j) {
@@ -8448,7 +8439,7 @@ const Ns = [
8448
8439
  }
8449
8440
  )
8450
8441
  ] }),
8451
- p && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8442
+ f && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8452
8443
  /* @__PURE__ */ r.jsxs(
8453
8444
  "div",
8454
8445
  {
@@ -8498,7 +8489,7 @@ const Ns = [
8498
8489
  }
8499
8490
  )
8500
8491
  ] }),
8501
- /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: p ? /* @__PURE__ */ r.jsxs(
8492
+ /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: f ? /* @__PURE__ */ r.jsxs(
8502
8493
  "button",
8503
8494
  {
8504
8495
  type: "submit",