@scanupload/qr-code-generator 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import ae, { useState as te, useEffect as he, forwardRef as zt, createElement as Ge, useRef as me, useCallback as Zt } from "react";
1
+ import le, { useState as re, useEffect as fe, forwardRef as zt, createElement as Ge, useRef as ve, useCallback as Zt } from "react";
2
2
  function er(r) {
3
3
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
4
  }
5
- var Ce = { exports: {} }, ve = {};
5
+ var Ce = { exports: {} }, ye = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.js
@@ -14,7 +14,7 @@ var Ce = { exports: {} }, ve = {};
14
14
  */
15
15
  var nt;
16
16
  function tr() {
17
- if (nt) return ve;
17
+ if (nt) return ye;
18
18
  nt = 1;
19
19
  var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
20
20
  function t(n, s, o) {
@@ -32,9 +32,9 @@ function tr() {
32
32
  props: o
33
33
  };
34
34
  }
35
- return ve.Fragment = e, ve.jsx = t, ve.jsxs = t, ve;
35
+ return ye.Fragment = e, ye.jsx = t, ye.jsxs = t, ye;
36
36
  }
37
- var ye = {};
37
+ var we = {};
38
38
  /**
39
39
  * @license React
40
40
  * react-jsx-runtime.development.js
@@ -50,20 +50,20 @@ function rr() {
50
50
  function r(u) {
51
51
  if (u == null) return null;
52
52
  if (typeof u == "function")
53
- return u.$$typeof === V ? null : u.displayName || u.name || null;
53
+ return u.$$typeof === Y ? null : u.displayName || u.name || null;
54
54
  if (typeof u == "string") return u;
55
55
  switch (u) {
56
- case j:
56
+ case A:
57
57
  return "Fragment";
58
- case L:
58
+ case B:
59
59
  return "Profiler";
60
- case k:
60
+ case P:
61
61
  return "StrictMode";
62
- case q:
62
+ case V:
63
63
  return "Suspense";
64
- case K:
64
+ case Z:
65
65
  return "SuspenseList";
66
- case X:
66
+ case G:
67
67
  return "Activity";
68
68
  }
69
69
  if (typeof u == "object")
@@ -72,16 +72,16 @@ function rr() {
72
72
  ), u.$$typeof) {
73
73
  case p:
74
74
  return "Portal";
75
- case M:
75
+ case N:
76
76
  return u.displayName || "Context";
77
- case D:
77
+ case M:
78
78
  return (u._context.displayName || "Context") + ".Consumer";
79
- case y:
79
+ case v:
80
80
  var b = u.render;
81
81
  return u = u.displayName, u || (u = b.displayName || b.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
82
- case ne:
82
+ case se:
83
83
  return b = u.displayName || null, b !== null ? b : r(u.type) || "Memo";
84
- case Q:
84
+ case J:
85
85
  b = u._payload, u = u._init;
86
86
  try {
87
87
  return r(u(b));
@@ -102,17 +102,17 @@ function rr() {
102
102
  }
103
103
  if (b) {
104
104
  b = console;
105
- var T = b.error, x = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
106
- return T.call(
105
+ var C = b.error, E = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
106
+ return C.call(
107
107
  b,
108
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- x
109
+ E
110
110
  ), e(u);
111
111
  }
112
112
  }
113
113
  function n(u) {
114
- if (u === j) return "<>";
115
- if (typeof u == "object" && u !== null && u.$$typeof === Q)
114
+ if (u === A) return "<>";
115
+ if (typeof u == "object" && u !== null && u.$$typeof === J)
116
116
  return "<...>";
117
117
  try {
118
118
  var b = r(u);
@@ -122,46 +122,46 @@ function rr() {
122
122
  }
123
123
  }
124
124
  function s() {
125
- var u = Z.A;
125
+ var u = ee.A;
126
126
  return u === null ? null : u.getOwner();
127
127
  }
128
128
  function o() {
129
129
  return Error("react-stack-top-frame");
130
130
  }
131
131
  function i(u) {
132
- if (G.call(u, "key")) {
132
+ if (K.call(u, "key")) {
133
133
  var b = Object.getOwnPropertyDescriptor(u, "key").get;
134
134
  if (b && b.isReactWarning) return !1;
135
135
  }
136
136
  return u.key !== void 0;
137
137
  }
138
138
  function a(u, b) {
139
- function T() {
139
+ function C() {
140
140
  z || (z = !0, console.error(
141
141
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
142
142
  b
143
143
  ));
144
144
  }
145
- T.isReactWarning = !0, Object.defineProperty(u, "key", {
146
- get: T,
145
+ C.isReactWarning = !0, Object.defineProperty(u, "key", {
146
+ get: C,
147
147
  configurable: !0
148
148
  });
149
149
  }
150
150
  function c() {
151
151
  var u = r(this.type);
152
- return oe[u] || (oe[u] = !0, console.error(
152
+ return ie[u] || (ie[u] = !0, console.error(
153
153
  "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."
154
154
  )), u = this.props.ref, u !== void 0 ? u : null;
155
155
  }
156
- function l(u, b, T, x, O, I) {
157
- var v = T.ref;
156
+ function l(u, b, C, E, O, R) {
157
+ var T = C.ref;
158
158
  return u = {
159
159
  $$typeof: w,
160
160
  type: u,
161
161
  key: b,
162
- props: T,
163
- _owner: x
164
- }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(u, "ref", {
162
+ props: C,
163
+ _owner: E
164
+ }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(u, "ref", {
165
165
  enumerable: !1,
166
166
  get: c
167
167
  }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
@@ -183,103 +183,103 @@ function rr() {
183
183
  configurable: !1,
184
184
  enumerable: !1,
185
185
  writable: !0,
186
- value: I
186
+ value: R
187
187
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
188
188
  }
189
- function h(u, b, T, x, O, I) {
190
- var v = b.children;
191
- if (v !== void 0)
192
- if (x)
193
- if (Y(v)) {
194
- for (x = 0; x < v.length; x++)
195
- f(v[x]);
196
- Object.freeze && Object.freeze(v);
189
+ function h(u, b, C, E, O, R) {
190
+ var T = b.children;
191
+ if (T !== void 0)
192
+ if (E)
193
+ if (Q(T)) {
194
+ for (E = 0; E < T.length; E++)
195
+ f(T[E]);
196
+ Object.freeze && Object.freeze(T);
197
197
  } else
198
198
  console.error(
199
199
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
200
  );
201
- else f(v);
202
- if (G.call(b, "key")) {
203
- v = r(u);
204
- var C = Object.keys(b).filter(function(R) {
205
- return R !== "key";
201
+ else f(T);
202
+ if (K.call(b, "key")) {
203
+ T = r(u);
204
+ var j = Object.keys(b).filter(function(k) {
205
+ return k !== "key";
206
206
  });
207
- x = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", _[v + x] || (C = 0 < C.length ? "{" + C.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ E = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", _[T + E] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
208
208
  `A props object containing a "key" prop is being spread into JSX:
209
209
  let props = %s;
210
210
  <%s {...props} />
211
211
  React keys must be passed directly to JSX without using spread:
212
212
  let props = %s;
213
213
  <%s key={someKey} {...props} />`,
214
- x,
215
- v,
216
- C,
217
- v
218
- ), _[v + x] = !0);
214
+ E,
215
+ T,
216
+ j,
217
+ T
218
+ ), _[T + E] = !0);
219
219
  }
220
- if (v = null, T !== void 0 && (t(T), v = "" + T), i(b) && (t(b.key), v = "" + b.key), "key" in b) {
221
- T = {};
222
- for (var P in b)
223
- P !== "key" && (T[P] = b[P]);
224
- } else T = b;
225
- return v && a(
226
- T,
220
+ if (T = null, C !== void 0 && (t(C), T = "" + C), i(b) && (t(b.key), T = "" + b.key), "key" in b) {
221
+ C = {};
222
+ for (var x in b)
223
+ x !== "key" && (C[x] = b[x]);
224
+ } else C = b;
225
+ return T && a(
226
+ C,
227
227
  typeof u == "function" ? u.displayName || u.name || "Unknown" : u
228
228
  ), l(
229
229
  u,
230
- v,
231
230
  T,
231
+ C,
232
232
  s(),
233
233
  O,
234
- I
234
+ R
235
235
  );
236
236
  }
237
237
  function f(u) {
238
- g(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === Q && (u._payload.status === "fulfilled" ? g(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
238
+ g(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === J && (u._payload.status === "fulfilled" ? g(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
239
239
  }
240
240
  function g(u) {
241
241
  return typeof u == "object" && u !== null && u.$$typeof === w;
242
242
  }
243
- var E = ae, w = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), M = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), Z = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, Y = Array.isArray, ee = console.createTask ? console.createTask : function() {
243
+ var S = le, w = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), N = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), se = Symbol.for("react.memo"), J = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), ee = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, Q = Array.isArray, te = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
- E = {
246
+ S = {
247
247
  react_stack_bottom_frame: function(u) {
248
248
  return u();
249
249
  }
250
250
  };
251
- var z, oe = {}, le = E.react_stack_bottom_frame.bind(
252
- E,
251
+ var z, ie = {}, ne = S.react_stack_bottom_frame.bind(
252
+ S,
253
253
  o
254
- )(), ue = ee(n(o)), _ = {};
255
- ye.Fragment = j, ye.jsx = function(u, b, T) {
256
- var x = 1e4 > Z.recentlyCreatedOwnerStacks++;
254
+ )(), he = te(n(o)), _ = {};
255
+ we.Fragment = A, we.jsx = function(u, b, C) {
256
+ var E = 1e4 > ee.recentlyCreatedOwnerStacks++;
257
257
  return h(
258
258
  u,
259
259
  b,
260
- T,
260
+ C,
261
261
  !1,
262
- x ? Error("react-stack-top-frame") : le,
263
- x ? ee(n(u)) : ue
262
+ E ? Error("react-stack-top-frame") : ne,
263
+ E ? te(n(u)) : he
264
264
  );
265
- }, ye.jsxs = function(u, b, T) {
266
- var x = 1e4 > Z.recentlyCreatedOwnerStacks++;
265
+ }, we.jsxs = function(u, b, C) {
266
+ var E = 1e4 > ee.recentlyCreatedOwnerStacks++;
267
267
  return h(
268
268
  u,
269
269
  b,
270
- T,
270
+ C,
271
271
  !0,
272
- x ? Error("react-stack-top-frame") : le,
273
- x ? ee(n(u)) : ue
272
+ E ? Error("react-stack-top-frame") : ne,
273
+ E ? te(n(u)) : he
274
274
  );
275
275
  };
276
- })()), ye;
276
+ })()), we;
277
277
  }
278
278
  var st;
279
279
  function nr() {
280
280
  return st || (st = 1, process.env.NODE_ENV === "production" ? Ce.exports = tr() : Ce.exports = rr()), Ce.exports;
281
281
  }
282
- var m = nr(), pe = {}, xe = { exports: {} }, Te = { exports: {} }, N = {};
282
+ var m = nr(), _e = {}, xe = { exports: {} }, Te = { exports: {} }, $ = {};
283
283
  /** @license React v16.13.1
284
284
  * react-is.production.min.js
285
285
  *
@@ -290,71 +290,71 @@ var m = nr(), pe = {}, xe = { exports: {} }, Te = { exports: {} }, N = {};
290
290
  */
291
291
  var it;
292
292
  function or() {
293
- if (it) return N;
293
+ if (it) return $;
294
294
  it = 1;
295
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120, E = r ? Symbol.for("react.memo") : 60115, w = r ? Symbol.for("react.lazy") : 60116, p = r ? Symbol.for("react.block") : 60121, j = r ? Symbol.for("react.fundamental") : 60117, k = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
296
- function D(y) {
297
- if (typeof y == "object" && y !== null) {
298
- var q = y.$$typeof;
299
- switch (q) {
295
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120, S = r ? Symbol.for("react.memo") : 60115, w = r ? Symbol.for("react.lazy") : 60116, p = r ? Symbol.for("react.block") : 60121, A = r ? Symbol.for("react.fundamental") : 60117, P = r ? Symbol.for("react.responder") : 60118, B = r ? Symbol.for("react.scope") : 60119;
296
+ function M(v) {
297
+ if (typeof v == "object" && v !== null) {
298
+ var V = v.$$typeof;
299
+ switch (V) {
300
300
  case e:
301
- switch (y = y.type, y) {
301
+ switch (v = v.type, v) {
302
302
  case c:
303
303
  case l:
304
304
  case n:
305
305
  case o:
306
306
  case s:
307
307
  case f:
308
- return y;
308
+ return v;
309
309
  default:
310
- switch (y = y && y.$$typeof, y) {
310
+ switch (v = v && v.$$typeof, v) {
311
311
  case a:
312
312
  case h:
313
313
  case w:
314
- case E:
314
+ case S:
315
315
  case i:
316
- return y;
316
+ return v;
317
317
  default:
318
- return q;
318
+ return V;
319
319
  }
320
320
  }
321
321
  case t:
322
- return q;
322
+ return V;
323
323
  }
324
324
  }
325
325
  }
326
- function M(y) {
327
- return D(y) === l;
328
- }
329
- return N.AsyncMode = c, N.ConcurrentMode = l, N.ContextConsumer = a, N.ContextProvider = i, N.Element = e, N.ForwardRef = h, N.Fragment = n, N.Lazy = w, N.Memo = E, N.Portal = t, N.Profiler = o, N.StrictMode = s, N.Suspense = f, N.isAsyncMode = function(y) {
330
- return M(y) || D(y) === c;
331
- }, N.isConcurrentMode = M, N.isContextConsumer = function(y) {
332
- return D(y) === a;
333
- }, N.isContextProvider = function(y) {
334
- return D(y) === i;
335
- }, N.isElement = function(y) {
336
- return typeof y == "object" && y !== null && y.$$typeof === e;
337
- }, N.isForwardRef = function(y) {
338
- return D(y) === h;
339
- }, N.isFragment = function(y) {
340
- return D(y) === n;
341
- }, N.isLazy = function(y) {
342
- return D(y) === w;
343
- }, N.isMemo = function(y) {
344
- return D(y) === E;
345
- }, N.isPortal = function(y) {
346
- return D(y) === t;
347
- }, N.isProfiler = function(y) {
348
- return D(y) === o;
349
- }, N.isStrictMode = function(y) {
350
- return D(y) === s;
351
- }, N.isSuspense = function(y) {
352
- return D(y) === f;
353
- }, N.isValidElementType = function(y) {
354
- return typeof y == "string" || typeof y == "function" || y === n || y === l || y === o || y === s || y === f || y === g || typeof y == "object" && y !== null && (y.$$typeof === w || y.$$typeof === E || y.$$typeof === i || y.$$typeof === a || y.$$typeof === h || y.$$typeof === j || y.$$typeof === k || y.$$typeof === L || y.$$typeof === p);
355
- }, N.typeOf = D, N;
326
+ function N(v) {
327
+ return M(v) === l;
328
+ }
329
+ return $.AsyncMode = c, $.ConcurrentMode = l, $.ContextConsumer = a, $.ContextProvider = i, $.Element = e, $.ForwardRef = h, $.Fragment = n, $.Lazy = w, $.Memo = S, $.Portal = t, $.Profiler = o, $.StrictMode = s, $.Suspense = f, $.isAsyncMode = function(v) {
330
+ return N(v) || M(v) === c;
331
+ }, $.isConcurrentMode = N, $.isContextConsumer = function(v) {
332
+ return M(v) === a;
333
+ }, $.isContextProvider = function(v) {
334
+ return M(v) === i;
335
+ }, $.isElement = function(v) {
336
+ return typeof v == "object" && v !== null && v.$$typeof === e;
337
+ }, $.isForwardRef = function(v) {
338
+ return M(v) === h;
339
+ }, $.isFragment = function(v) {
340
+ return M(v) === n;
341
+ }, $.isLazy = function(v) {
342
+ return M(v) === w;
343
+ }, $.isMemo = function(v) {
344
+ return M(v) === S;
345
+ }, $.isPortal = function(v) {
346
+ return M(v) === t;
347
+ }, $.isProfiler = function(v) {
348
+ return M(v) === o;
349
+ }, $.isStrictMode = function(v) {
350
+ return M(v) === s;
351
+ }, $.isSuspense = function(v) {
352
+ return M(v) === f;
353
+ }, $.isValidElementType = function(v) {
354
+ return typeof v == "string" || typeof v == "function" || v === n || v === l || v === o || v === s || v === f || v === g || typeof v == "object" && v !== null && (v.$$typeof === w || v.$$typeof === S || v.$$typeof === i || v.$$typeof === a || v.$$typeof === h || v.$$typeof === A || v.$$typeof === P || v.$$typeof === B || v.$$typeof === p);
355
+ }, $.typeOf = M, $;
356
356
  }
357
- var $ = {};
357
+ var L = {};
358
358
  /** @license React v16.13.1
359
359
  * react-is.development.js
360
360
  *
@@ -366,85 +366,85 @@ var $ = {};
366
366
  var at;
367
367
  function sr() {
368
368
  return at || (at = 1, process.env.NODE_ENV !== "production" && (function() {
369
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120, E = r ? Symbol.for("react.memo") : 60115, w = r ? Symbol.for("react.lazy") : 60116, p = r ? Symbol.for("react.block") : 60121, j = r ? Symbol.for("react.fundamental") : 60117, k = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
370
- function D(S) {
371
- return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
372
- S === n || S === l || S === o || S === s || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === w || S.$$typeof === E || S.$$typeof === i || S.$$typeof === a || S.$$typeof === h || S.$$typeof === j || S.$$typeof === k || S.$$typeof === L || S.$$typeof === p);
373
- }
374
- function M(S) {
375
- if (typeof S == "object" && S !== null) {
376
- var ce = S.$$typeof;
377
- switch (ce) {
369
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120, S = r ? Symbol.for("react.memo") : 60115, w = r ? Symbol.for("react.lazy") : 60116, p = r ? Symbol.for("react.block") : 60121, A = r ? Symbol.for("react.fundamental") : 60117, P = r ? Symbol.for("react.responder") : 60118, B = r ? Symbol.for("react.scope") : 60119;
370
+ function M(y) {
371
+ return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
372
+ y === n || y === l || y === o || y === s || y === f || y === g || typeof y == "object" && y !== null && (y.$$typeof === w || y.$$typeof === S || y.$$typeof === i || y.$$typeof === a || y.$$typeof === h || y.$$typeof === A || y.$$typeof === P || y.$$typeof === B || y.$$typeof === p);
373
+ }
374
+ function N(y) {
375
+ if (typeof y == "object" && y !== null) {
376
+ var W = y.$$typeof;
377
+ switch (W) {
378
378
  case e:
379
- var Ee = S.type;
380
- switch (Ee) {
379
+ var ue = y.type;
380
+ switch (ue) {
381
381
  case c:
382
382
  case l:
383
383
  case n:
384
384
  case o:
385
385
  case s:
386
386
  case f:
387
- return Ee;
387
+ return ue;
388
388
  default:
389
- var rt = Ee && Ee.$$typeof;
389
+ var rt = ue && ue.$$typeof;
390
390
  switch (rt) {
391
391
  case a:
392
392
  case h:
393
393
  case w:
394
- case E:
394
+ case S:
395
395
  case i:
396
396
  return rt;
397
397
  default:
398
- return ce;
398
+ return W;
399
399
  }
400
400
  }
401
401
  case t:
402
- return ce;
402
+ return W;
403
403
  }
404
404
  }
405
405
  }
406
- var y = c, q = l, K = a, ne = i, Q = e, X = h, V = n, Z = w, G = E, Y = t, ee = o, z = s, oe = f, le = !1;
407
- function ue(S) {
408
- return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(S) || M(S) === c;
406
+ var v = c, V = l, Z = a, se = i, J = e, G = h, Y = n, ee = w, K = S, Q = t, te = o, z = s, ie = f, ne = !1;
407
+ function he(y) {
408
+ return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(y) || N(y) === c;
409
409
  }
410
- function _(S) {
411
- return M(S) === l;
410
+ function _(y) {
411
+ return N(y) === l;
412
412
  }
413
- function u(S) {
414
- return M(S) === a;
413
+ function u(y) {
414
+ return N(y) === a;
415
415
  }
416
- function b(S) {
417
- return M(S) === i;
416
+ function b(y) {
417
+ return N(y) === i;
418
418
  }
419
- function T(S) {
420
- return typeof S == "object" && S !== null && S.$$typeof === e;
419
+ function C(y) {
420
+ return typeof y == "object" && y !== null && y.$$typeof === e;
421
421
  }
422
- function x(S) {
423
- return M(S) === h;
422
+ function E(y) {
423
+ return N(y) === h;
424
424
  }
425
- function O(S) {
426
- return M(S) === n;
425
+ function O(y) {
426
+ return N(y) === n;
427
427
  }
428
- function I(S) {
429
- return M(S) === w;
428
+ function R(y) {
429
+ return N(y) === w;
430
430
  }
431
- function v(S) {
432
- return M(S) === E;
431
+ function T(y) {
432
+ return N(y) === S;
433
433
  }
434
- function C(S) {
435
- return M(S) === t;
434
+ function j(y) {
435
+ return N(y) === t;
436
436
  }
437
- function P(S) {
438
- return M(S) === o;
437
+ function x(y) {
438
+ return N(y) === o;
439
439
  }
440
- function R(S) {
441
- return M(S) === s;
440
+ function k(y) {
441
+ return N(y) === s;
442
442
  }
443
- function B(S) {
444
- return M(S) === f;
443
+ function D(y) {
444
+ return N(y) === f;
445
445
  }
446
- $.AsyncMode = y, $.ConcurrentMode = q, $.ContextConsumer = K, $.ContextProvider = ne, $.Element = Q, $.ForwardRef = X, $.Fragment = V, $.Lazy = Z, $.Memo = G, $.Portal = Y, $.Profiler = ee, $.StrictMode = z, $.Suspense = oe, $.isAsyncMode = ue, $.isConcurrentMode = _, $.isContextConsumer = u, $.isContextProvider = b, $.isElement = T, $.isForwardRef = x, $.isFragment = O, $.isLazy = I, $.isMemo = v, $.isPortal = C, $.isProfiler = P, $.isStrictMode = R, $.isSuspense = B, $.isValidElementType = D, $.typeOf = M;
447
- })()), $;
446
+ L.AsyncMode = v, L.ConcurrentMode = V, L.ContextConsumer = Z, L.ContextProvider = se, L.Element = J, L.ForwardRef = G, L.Fragment = Y, L.Lazy = ee, L.Memo = K, L.Portal = Q, L.Profiler = te, L.StrictMode = z, L.Suspense = ie, L.isAsyncMode = he, L.isConcurrentMode = _, L.isContextConsumer = u, L.isContextProvider = b, L.isElement = C, L.isForwardRef = E, L.isFragment = O, L.isLazy = R, L.isMemo = T, L.isPortal = j, L.isProfiler = x, L.isStrictMode = k, L.isSuspense = D, L.isValidElementType = M, L.typeOf = N;
447
+ })()), L;
448
448
  }
449
449
  var ct;
450
450
  function Ht() {
@@ -549,9 +549,9 @@ function ar() {
549
549
  (c || "React class") + ": type specification of " + a + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
550
550
  ), f instanceof Error && !(f.message in t)) {
551
551
  t[f.message] = !0;
552
- var E = l ? l() : "";
552
+ var S = l ? l() : "";
553
553
  r(
554
- "Failed " + a + " type: " + f.message + (E ?? "")
554
+ "Failed " + a + " type: " + f.message + (S ?? "")
555
555
  );
556
556
  }
557
557
  }
@@ -585,26 +585,26 @@ function cr() {
585
585
  if (typeof u == "function")
586
586
  return u;
587
587
  }
588
- var g = "<<anonymous>>", E = {
589
- array: k("array"),
590
- bigint: k("bigint"),
591
- bool: k("boolean"),
592
- func: k("function"),
593
- number: k("number"),
594
- object: k("object"),
595
- string: k("string"),
596
- symbol: k("symbol"),
597
- any: L(),
598
- arrayOf: D,
599
- element: M(),
600
- elementType: y(),
601
- instanceOf: q,
602
- node: X(),
603
- objectOf: ne,
604
- oneOf: K,
605
- oneOfType: Q,
606
- shape: Z,
607
- exact: G
588
+ var g = "<<anonymous>>", S = {
589
+ array: P("array"),
590
+ bigint: P("bigint"),
591
+ bool: P("boolean"),
592
+ func: P("function"),
593
+ number: P("number"),
594
+ object: P("object"),
595
+ string: P("string"),
596
+ symbol: P("symbol"),
597
+ any: B(),
598
+ arrayOf: M,
599
+ element: N(),
600
+ elementType: v(),
601
+ instanceOf: V,
602
+ node: G(),
603
+ objectOf: se,
604
+ oneOf: Z,
605
+ oneOfType: J,
606
+ shape: ee,
607
+ exact: K
608
608
  };
609
609
  function w(_, u) {
610
610
  return _ === u ? _ !== 0 || 1 / _ === 1 / u : _ !== _ && u !== u;
@@ -613,204 +613,204 @@ function cr() {
613
613
  this.message = _, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
614
614
  }
615
615
  p.prototype = Error.prototype;
616
- function j(_) {
616
+ function A(_) {
617
617
  if (process.env.NODE_ENV !== "production")
618
618
  var u = {}, b = 0;
619
- function T(O, I, v, C, P, R, B) {
620
- if (C = C || g, R = R || v, B !== t) {
619
+ function C(O, R, T, j, x, k, D) {
620
+ if (j = j || g, k = k || T, D !== t) {
621
621
  if (c) {
622
- var S = new Error(
622
+ var y = new Error(
623
623
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
624
624
  );
625
- throw S.name = "Invariant Violation", S;
625
+ throw y.name = "Invariant Violation", y;
626
626
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
627
- var ce = C + ":" + v;
628
- !u[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
627
+ var W = j + ":" + T;
628
+ !u[W] && // Avoid spamming the console because they are often not actionable except for lib authors
629
629
  b < 3 && (o(
630
- "You are manually calling a React.PropTypes validation function for the `" + R + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
631
- ), u[ce] = !0, b++);
630
+ "You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
631
+ ), u[W] = !0, b++);
632
632
  }
633
633
  }
634
- return I[v] == null ? O ? I[v] === null ? new p("The " + P + " `" + R + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new p("The " + P + " `" + R + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : _(I, v, C, P, R);
634
+ return R[T] == null ? O ? R[T] === null ? new p("The " + x + " `" + k + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new p("The " + x + " `" + k + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : _(R, T, j, x, k);
635
635
  }
636
- var x = T.bind(null, !1);
637
- return x.isRequired = T.bind(null, !0), x;
638
- }
639
- function k(_) {
640
- function u(b, T, x, O, I, v) {
641
- var C = b[T], P = z(C);
642
- if (P !== _) {
643
- var R = oe(C);
636
+ var E = C.bind(null, !1);
637
+ return E.isRequired = C.bind(null, !0), E;
638
+ }
639
+ function P(_) {
640
+ function u(b, C, E, O, R, T) {
641
+ var j = b[C], x = z(j);
642
+ if (x !== _) {
643
+ var k = ie(j);
644
644
  return new p(
645
- "Invalid " + O + " `" + I + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("`" + _ + "`."),
645
+ "Invalid " + O + " `" + R + "` of type " + ("`" + k + "` supplied to `" + E + "`, expected ") + ("`" + _ + "`."),
646
646
  { expectedType: _ }
647
647
  );
648
648
  }
649
649
  return null;
650
650
  }
651
- return j(u);
651
+ return A(u);
652
652
  }
653
- function L() {
654
- return j(i);
653
+ function B() {
654
+ return A(i);
655
655
  }
656
- function D(_) {
657
- function u(b, T, x, O, I) {
656
+ function M(_) {
657
+ function u(b, C, E, O, R) {
658
658
  if (typeof _ != "function")
659
- return new p("Property `" + I + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
660
- var v = b[T];
661
- if (!Array.isArray(v)) {
662
- var C = z(v);
663
- return new p("Invalid " + O + " `" + I + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected an array."));
659
+ return new p("Property `" + R + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
660
+ var T = b[C];
661
+ if (!Array.isArray(T)) {
662
+ var j = z(T);
663
+ return new p("Invalid " + O + " `" + R + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected an array."));
664
664
  }
665
- for (var P = 0; P < v.length; P++) {
666
- var R = _(v, P, x, O, I + "[" + P + "]", t);
667
- if (R instanceof Error)
668
- return R;
665
+ for (var x = 0; x < T.length; x++) {
666
+ var k = _(T, x, E, O, R + "[" + x + "]", t);
667
+ if (k instanceof Error)
668
+ return k;
669
669
  }
670
670
  return null;
671
671
  }
672
- return j(u);
673
- }
674
- function M() {
675
- function _(u, b, T, x, O) {
676
- var I = u[b];
677
- if (!a(I)) {
678
- var v = z(I);
679
- return new p("Invalid " + x + " `" + O + "` of type " + ("`" + v + "` supplied to `" + T + "`, expected a single ReactElement."));
672
+ return A(u);
673
+ }
674
+ function N() {
675
+ function _(u, b, C, E, O) {
676
+ var R = u[b];
677
+ if (!a(R)) {
678
+ var T = z(R);
679
+ return new p("Invalid " + E + " `" + O + "` of type " + ("`" + T + "` supplied to `" + C + "`, expected a single ReactElement."));
680
680
  }
681
681
  return null;
682
682
  }
683
- return j(_);
684
- }
685
- function y() {
686
- function _(u, b, T, x, O) {
687
- var I = u[b];
688
- if (!r.isValidElementType(I)) {
689
- var v = z(I);
690
- return new p("Invalid " + x + " `" + O + "` of type " + ("`" + v + "` supplied to `" + T + "`, expected a single ReactElement type."));
683
+ return A(_);
684
+ }
685
+ function v() {
686
+ function _(u, b, C, E, O) {
687
+ var R = u[b];
688
+ if (!r.isValidElementType(R)) {
689
+ var T = z(R);
690
+ return new p("Invalid " + E + " `" + O + "` of type " + ("`" + T + "` supplied to `" + C + "`, expected a single ReactElement type."));
691
691
  }
692
692
  return null;
693
693
  }
694
- return j(_);
694
+ return A(_);
695
695
  }
696
- function q(_) {
697
- function u(b, T, x, O, I) {
698
- if (!(b[T] instanceof _)) {
699
- var v = _.name || g, C = ue(b[T]);
700
- return new p("Invalid " + O + " `" + I + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected ") + ("instance of `" + v + "`."));
696
+ function V(_) {
697
+ function u(b, C, E, O, R) {
698
+ if (!(b[C] instanceof _)) {
699
+ var T = _.name || g, j = he(b[C]);
700
+ return new p("Invalid " + O + " `" + R + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected ") + ("instance of `" + T + "`."));
701
701
  }
702
702
  return null;
703
703
  }
704
- return j(u);
704
+ return A(u);
705
705
  }
706
- function K(_) {
706
+ function Z(_) {
707
707
  if (!Array.isArray(_))
708
708
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
709
709
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
710
710
  ) : o("Invalid argument supplied to oneOf, expected an array.")), i;
711
- function u(b, T, x, O, I) {
712
- for (var v = b[T], C = 0; C < _.length; C++)
713
- if (w(v, _[C]))
711
+ function u(b, C, E, O, R) {
712
+ for (var T = b[C], j = 0; j < _.length; j++)
713
+ if (w(T, _[j]))
714
714
  return null;
715
- var P = JSON.stringify(_, function(B, S) {
716
- var ce = oe(S);
717
- return ce === "symbol" ? String(S) : S;
715
+ var x = JSON.stringify(_, function(D, y) {
716
+ var W = ie(y);
717
+ return W === "symbol" ? String(y) : y;
718
718
  });
719
- return new p("Invalid " + O + " `" + I + "` of value `" + String(v) + "` " + ("supplied to `" + x + "`, expected one of " + P + "."));
719
+ return new p("Invalid " + O + " `" + R + "` of value `" + String(T) + "` " + ("supplied to `" + E + "`, expected one of " + x + "."));
720
720
  }
721
- return j(u);
721
+ return A(u);
722
722
  }
723
- function ne(_) {
724
- function u(b, T, x, O, I) {
723
+ function se(_) {
724
+ function u(b, C, E, O, R) {
725
725
  if (typeof _ != "function")
726
- return new p("Property `" + I + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
727
- var v = b[T], C = z(v);
728
- if (C !== "object")
729
- return new p("Invalid " + O + " `" + I + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected an object."));
730
- for (var P in v)
731
- if (n(v, P)) {
732
- var R = _(v, P, x, O, I + "." + P, t);
733
- if (R instanceof Error)
734
- return R;
726
+ return new p("Property `" + R + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
727
+ var T = b[C], j = z(T);
728
+ if (j !== "object")
729
+ return new p("Invalid " + O + " `" + R + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected an object."));
730
+ for (var x in T)
731
+ if (n(T, x)) {
732
+ var k = _(T, x, E, O, R + "." + x, t);
733
+ if (k instanceof Error)
734
+ return k;
735
735
  }
736
736
  return null;
737
737
  }
738
- return j(u);
738
+ return A(u);
739
739
  }
740
- function Q(_) {
740
+ function J(_) {
741
741
  if (!Array.isArray(_))
742
742
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
743
743
  for (var u = 0; u < _.length; u++) {
744
744
  var b = _[u];
745
745
  if (typeof b != "function")
746
746
  return o(
747
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + le(b) + " at index " + u + "."
747
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(b) + " at index " + u + "."
748
748
  ), i;
749
749
  }
750
- function T(x, O, I, v, C) {
751
- for (var P = [], R = 0; R < _.length; R++) {
752
- var B = _[R], S = B(x, O, I, v, C, t);
753
- if (S == null)
750
+ function C(E, O, R, T, j) {
751
+ for (var x = [], k = 0; k < _.length; k++) {
752
+ var D = _[k], y = D(E, O, R, T, j, t);
753
+ if (y == null)
754
754
  return null;
755
- S.data && n(S.data, "expectedType") && P.push(S.data.expectedType);
755
+ y.data && n(y.data, "expectedType") && x.push(y.data.expectedType);
756
756
  }
757
- var ce = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
758
- return new p("Invalid " + v + " `" + C + "` supplied to " + ("`" + I + "`" + ce + "."));
757
+ var W = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
758
+ return new p("Invalid " + T + " `" + j + "` supplied to " + ("`" + R + "`" + W + "."));
759
759
  }
760
- return j(T);
760
+ return A(C);
761
761
  }
762
- function X() {
763
- function _(u, b, T, x, O) {
764
- return Y(u[b]) ? null : new p("Invalid " + x + " `" + O + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
762
+ function G() {
763
+ function _(u, b, C, E, O) {
764
+ return Q(u[b]) ? null : new p("Invalid " + E + " `" + O + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
765
765
  }
766
- return j(_);
766
+ return A(_);
767
767
  }
768
- function V(_, u, b, T, x) {
768
+ function Y(_, u, b, C, E) {
769
769
  return new p(
770
- (_ || "React class") + ": " + u + " type `" + b + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
770
+ (_ || "React class") + ": " + u + " type `" + b + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
771
771
  );
772
772
  }
773
- function Z(_) {
774
- function u(b, T, x, O, I) {
775
- var v = b[T], C = z(v);
776
- if (C !== "object")
777
- return new p("Invalid " + O + " `" + I + "` of type `" + C + "` " + ("supplied to `" + x + "`, expected `object`."));
778
- for (var P in _) {
779
- var R = _[P];
780
- if (typeof R != "function")
781
- return V(x, O, I, P, oe(R));
782
- var B = R(v, P, x, O, I + "." + P, t);
783
- if (B)
784
- return B;
773
+ function ee(_) {
774
+ function u(b, C, E, O, R) {
775
+ var T = b[C], j = z(T);
776
+ if (j !== "object")
777
+ return new p("Invalid " + O + " `" + R + "` of type `" + j + "` " + ("supplied to `" + E + "`, expected `object`."));
778
+ for (var x in _) {
779
+ var k = _[x];
780
+ if (typeof k != "function")
781
+ return Y(E, O, R, x, ie(k));
782
+ var D = k(T, x, E, O, R + "." + x, t);
783
+ if (D)
784
+ return D;
785
785
  }
786
786
  return null;
787
787
  }
788
- return j(u);
789
- }
790
- function G(_) {
791
- function u(b, T, x, O, I) {
792
- var v = b[T], C = z(v);
793
- if (C !== "object")
794
- return new p("Invalid " + O + " `" + I + "` of type `" + C + "` " + ("supplied to `" + x + "`, expected `object`."));
795
- var P = e({}, b[T], _);
796
- for (var R in P) {
797
- var B = _[R];
798
- if (n(_, R) && typeof B != "function")
799
- return V(x, O, I, R, oe(B));
800
- if (!B)
788
+ return A(u);
789
+ }
790
+ function K(_) {
791
+ function u(b, C, E, O, R) {
792
+ var T = b[C], j = z(T);
793
+ if (j !== "object")
794
+ return new p("Invalid " + O + " `" + R + "` of type `" + j + "` " + ("supplied to `" + E + "`, expected `object`."));
795
+ var x = e({}, b[C], _);
796
+ for (var k in x) {
797
+ var D = _[k];
798
+ if (n(_, k) && typeof D != "function")
799
+ return Y(E, O, R, k, ie(D));
800
+ if (!D)
801
801
  return new p(
802
- "Invalid " + O + " `" + I + "` key `" + R + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(b[T], null, " ") + `
802
+ "Invalid " + O + " `" + R + "` key `" + k + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(b[C], null, " ") + `
803
803
  Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
804
804
  );
805
- var S = B(v, R, x, O, I + "." + R, t);
806
- if (S)
807
- return S;
805
+ var y = D(T, k, E, O, R + "." + k, t);
806
+ if (y)
807
+ return y;
808
808
  }
809
809
  return null;
810
810
  }
811
- return j(u);
811
+ return A(u);
812
812
  }
813
- function Y(_) {
813
+ function Q(_) {
814
814
  switch (typeof _) {
815
815
  case "number":
816
816
  case "string":
@@ -820,20 +820,20 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
820
820
  return !_;
821
821
  case "object":
822
822
  if (Array.isArray(_))
823
- return _.every(Y);
823
+ return _.every(Q);
824
824
  if (_ === null || a(_))
825
825
  return !0;
826
826
  var u = f(_);
827
827
  if (u) {
828
- var b = u.call(_), T;
828
+ var b = u.call(_), C;
829
829
  if (u !== _.entries) {
830
- for (; !(T = b.next()).done; )
831
- if (!Y(T.value))
830
+ for (; !(C = b.next()).done; )
831
+ if (!Q(C.value))
832
832
  return !1;
833
833
  } else
834
- for (; !(T = b.next()).done; ) {
835
- var x = T.value;
836
- if (x && !Y(x[1]))
834
+ for (; !(C = b.next()).done; ) {
835
+ var E = C.value;
836
+ if (E && !Q(E[1]))
837
837
  return !1;
838
838
  }
839
839
  } else
@@ -843,14 +843,14 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
843
843
  return !1;
844
844
  }
845
845
  }
846
- function ee(_, u) {
846
+ function te(_, u) {
847
847
  return _ === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
848
848
  }
849
849
  function z(_) {
850
850
  var u = typeof _;
851
- return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : ee(u, _) ? "symbol" : u;
851
+ return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : te(u, _) ? "symbol" : u;
852
852
  }
853
- function oe(_) {
853
+ function ie(_) {
854
854
  if (typeof _ > "u" || _ === null)
855
855
  return "" + _;
856
856
  var u = z(_);
@@ -862,8 +862,8 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
862
862
  }
863
863
  return u;
864
864
  }
865
- function le(_) {
866
- var u = oe(_);
865
+ function ne(_) {
866
+ var u = ie(_);
867
867
  switch (u) {
868
868
  case "array":
869
869
  case "object":
@@ -876,10 +876,10 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
876
876
  return u;
877
877
  }
878
878
  }
879
- function ue(_) {
879
+ function he(_) {
880
880
  return !_.constructor || !_.constructor.name ? g : _.constructor.name;
881
881
  }
882
- return E.checkPropTypes = s, E.resetWarningCache = s.resetWarningCache, E.PropTypes = E, E;
882
+ return S.checkPropTypes = s, S.resetWarningCache = s.resetWarningCache, S.PropTypes = S, S;
883
883
  }, Be;
884
884
  }
885
885
  var ze, gt;
@@ -1454,8 +1454,8 @@ function dr() {
1454
1454
  for (var l = 0; l < i; l++) {
1455
1455
  for (var h = 0, f = o.isDark(c, l), g = -1; g <= 1; g++)
1456
1456
  if (!(c + g < 0 || i <= c + g))
1457
- for (var E = -1; E <= 1; E++)
1458
- l + E < 0 || i <= l + E || g == 0 && E == 0 || f == o.isDark(c + g, l + E) && h++;
1457
+ for (var S = -1; S <= 1; S++)
1458
+ l + S < 0 || i <= l + S || g == 0 && S == 0 || f == o.isDark(c + g, l + S) && h++;
1459
1459
  h > 5 && (a += 3 + h - 5);
1460
1460
  }
1461
1461
  for (var c = 0; c < i - 1; c++)
@@ -1472,8 +1472,8 @@ function dr() {
1472
1472
  for (var p = 0, l = 0; l < i; l++)
1473
1473
  for (var c = 0; c < i; c++)
1474
1474
  o.isDark(c, l) && p++;
1475
- var j = Math.abs(100 * p / i / i - 50) / 5;
1476
- return a += j * 10, a;
1475
+ var A = Math.abs(100 * p / i / i - 50) / 5;
1476
+ return a += A * 10, a;
1477
1477
  }
1478
1478
  };
1479
1479
  return Qe = s, Qe;
@@ -1536,9 +1536,9 @@ function gr() {
1536
1536
  var h = a.createEmptyMovieClip(c, l), f = 1;
1537
1537
  this.make();
1538
1538
  for (var g = 0; g < this.modules.length; g++)
1539
- for (var E = g * f, w = 0; w < this.modules[g].length; w++) {
1540
- var p = w * f, j = this.modules[g][w];
1541
- j && (h.beginFill(0, 100), h.moveTo(p, E), h.lineTo(p + f, E), h.lineTo(p + f, E + f), h.lineTo(p, E + f), h.endFill());
1539
+ for (var S = g * f, w = 0; w < this.modules[g].length; w++) {
1540
+ var p = w * f, A = this.modules[g][w];
1541
+ A && (h.beginFill(0, 100), h.moveTo(p, S), h.lineTo(p + f, S), h.lineTo(p + f, S + f), h.lineTo(p, S + f), h.endFill());
1542
1542
  }
1543
1543
  return h;
1544
1544
  }, i.setupTimingPattern = function() {
@@ -1552,8 +1552,8 @@ function gr() {
1552
1552
  var h = a[c], f = a[l];
1553
1553
  if (this.modules[h][f] == null)
1554
1554
  for (var g = -2; g <= 2; g++)
1555
- for (var E = -2; E <= 2; E++)
1556
- g == -2 || g == 2 || E == -2 || E == 2 || g == 0 && E == 0 ? this.modules[h + g][f + E] = !0 : this.modules[h + g][f + E] = !1;
1555
+ for (var S = -2; S <= 2; S++)
1556
+ g == -2 || g == 2 || S == -2 || S == 2 || g == 0 && S == 0 ? this.modules[h + g][f + S] = !0 : this.modules[h + g][f + S] = !1;
1557
1557
  }
1558
1558
  }, i.setupTypeNumber = function(a) {
1559
1559
  for (var c = n.getBCHTypeNumber(this.typeNumber), l = 0; l < 18; l++) {
@@ -1575,14 +1575,14 @@ function gr() {
1575
1575
  }
1576
1576
  this.modules[this.moduleCount - 8][8] = !a;
1577
1577
  }, i.mapData = function(a, c) {
1578
- for (var l = -1, h = this.moduleCount - 1, f = 7, g = 0, E = this.moduleCount - 1; E > 0; E -= 2)
1579
- for (E == 6 && E--; ; ) {
1578
+ for (var l = -1, h = this.moduleCount - 1, f = 7, g = 0, S = this.moduleCount - 1; S > 0; S -= 2)
1579
+ for (S == 6 && S--; ; ) {
1580
1580
  for (var w = 0; w < 2; w++)
1581
- if (this.modules[h][E - w] == null) {
1581
+ if (this.modules[h][S - w] == null) {
1582
1582
  var p = !1;
1583
1583
  g < a.length && (p = (a[g] >>> f & 1) == 1);
1584
- var j = n.getMask(c, h, E - w);
1585
- j && (p = !p), this.modules[h][E - w] = p, f--, f == -1 && (g++, f = 7);
1584
+ var A = n.getMask(c, h, S - w);
1585
+ A && (p = !p), this.modules[h][S - w] = p, f--, f == -1 && (g++, f = 7);
1586
1586
  }
1587
1587
  if (h += l, h < 0 || this.moduleCount <= h) {
1588
1588
  h -= l, l = -l;
@@ -1591,8 +1591,8 @@ function gr() {
1591
1591
  }
1592
1592
  }, o.PAD0 = 236, o.PAD1 = 17, o.createData = function(a, c, l) {
1593
1593
  for (var h = e.getRSBlocks(a, c), f = new t(), g = 0; g < l.length; g++) {
1594
- var E = l[g];
1595
- f.put(E.mode, 4), f.put(E.getLength(), n.getLengthInBits(E.mode, a)), E.write(f);
1594
+ var S = l[g];
1595
+ f.put(S.mode, 4), f.put(S.getLength(), n.getLengthInBits(S.mode, a)), S.write(f);
1596
1596
  }
1597
1597
  for (var w = 0, g = 0; g < h.length; g++)
1598
1598
  w += h[g].dataCount;
@@ -1604,28 +1604,28 @@ function gr() {
1604
1604
  f.put(o.PAD1, 8);
1605
1605
  return o.createBytes(f, h);
1606
1606
  }, o.createBytes = function(a, c) {
1607
- for (var l = 0, h = 0, f = 0, g = new Array(c.length), E = new Array(c.length), w = 0; w < c.length; w++) {
1608
- var p = c[w].dataCount, j = c[w].totalCount - p;
1609
- h = Math.max(h, p), f = Math.max(f, j), g[w] = new Array(p);
1610
- for (var k = 0; k < g[w].length; k++)
1611
- g[w][k] = 255 & a.buffer[k + l];
1607
+ for (var l = 0, h = 0, f = 0, g = new Array(c.length), S = new Array(c.length), w = 0; w < c.length; w++) {
1608
+ var p = c[w].dataCount, A = c[w].totalCount - p;
1609
+ h = Math.max(h, p), f = Math.max(f, A), g[w] = new Array(p);
1610
+ for (var P = 0; P < g[w].length; P++)
1611
+ g[w][P] = 255 & a.buffer[P + l];
1612
1612
  l += p;
1613
- var L = n.getErrorCorrectPolynomial(j), D = new s(g[w], L.getLength() - 1), M = D.mod(L);
1614
- E[w] = new Array(L.getLength() - 1);
1615
- for (var k = 0; k < E[w].length; k++) {
1616
- var y = k + M.getLength() - E[w].length;
1617
- E[w][k] = y >= 0 ? M.get(y) : 0;
1613
+ var B = n.getErrorCorrectPolynomial(A), M = new s(g[w], B.getLength() - 1), N = M.mod(B);
1614
+ S[w] = new Array(B.getLength() - 1);
1615
+ for (var P = 0; P < S[w].length; P++) {
1616
+ var v = P + N.getLength() - S[w].length;
1617
+ S[w][P] = v >= 0 ? N.get(v) : 0;
1618
1618
  }
1619
1619
  }
1620
- for (var q = 0, k = 0; k < c.length; k++)
1621
- q += c[k].totalCount;
1622
- for (var K = new Array(q), ne = 0, k = 0; k < h; k++)
1620
+ for (var V = 0, P = 0; P < c.length; P++)
1621
+ V += c[P].totalCount;
1622
+ for (var Z = new Array(V), se = 0, P = 0; P < h; P++)
1623
1623
  for (var w = 0; w < c.length; w++)
1624
- k < g[w].length && (K[ne++] = g[w][k]);
1625
- for (var k = 0; k < f; k++)
1624
+ P < g[w].length && (Z[se++] = g[w][P]);
1625
+ for (var P = 0; P < f; P++)
1626
1626
  for (var w = 0; w < c.length; w++)
1627
- k < E[w].length && (K[ne++] = E[w][k]);
1628
- return K;
1627
+ P < S[w].length && (Z[se++] = S[w][P]);
1628
+ return Z;
1629
1629
  }, Je = o, Je;
1630
1630
  }
1631
1631
  var ke = {}, xt;
@@ -1641,7 +1641,7 @@ function pr() {
1641
1641
  Object.prototype.hasOwnProperty.call(f, g) && (l[g] = f[g]);
1642
1642
  }
1643
1643
  return l;
1644
- }, e = /* @__PURE__ */ Ut(), t = o(e), n = ae, s = o(n);
1644
+ }, e = /* @__PURE__ */ Ut(), t = o(e), n = le, s = o(n);
1645
1645
  function o(l) {
1646
1646
  return l && l.__esModule ? l : { default: l };
1647
1647
  }
@@ -1661,73 +1661,73 @@ function pr() {
1661
1661
  viewBoxSize: t.default.number.isRequired,
1662
1662
  xmlns: t.default.string
1663
1663
  }, c = (0, n.forwardRef)(function(l, h) {
1664
- var f = l.bgColor, g = l.bgD, E = l.fgD, w = l.fgColor, p = l.size, j = l.title, k = l.viewBoxSize, L = l.xmlns, D = L === void 0 ? "http://www.w3.org/2000/svg" : L, M = i(l, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
1664
+ var f = l.bgColor, g = l.bgD, S = l.fgD, w = l.fgColor, p = l.size, A = l.title, P = l.viewBoxSize, B = l.xmlns, M = B === void 0 ? "http://www.w3.org/2000/svg" : B, N = i(l, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
1665
1665
  return s.default.createElement(
1666
1666
  "svg",
1667
- r({}, M, { height: p, ref: h, viewBox: "0 0 " + k + " " + k, width: p, xmlns: D }),
1668
- j ? s.default.createElement(
1667
+ r({}, N, { height: p, ref: h, viewBox: "0 0 " + P + " " + P, width: p, xmlns: M }),
1668
+ A ? s.default.createElement(
1669
1669
  "title",
1670
1670
  null,
1671
- j
1671
+ A
1672
1672
  ) : null,
1673
1673
  s.default.createElement("path", { d: g, fill: f }),
1674
- s.default.createElement("path", { d: E, fill: w })
1674
+ s.default.createElement("path", { d: S, fill: w })
1675
1675
  );
1676
1676
  });
1677
1677
  return c.displayName = "QRCodeSvg", c.propTypes = a, ke.default = c, ke;
1678
1678
  }
1679
1679
  var Tt;
1680
1680
  function _r() {
1681
- if (Tt) return pe;
1682
- Tt = 1, Object.defineProperty(pe, "__esModule", {
1681
+ if (Tt) return _e;
1682
+ Tt = 1, Object.defineProperty(_e, "__esModule", {
1683
1683
  value: !0
1684
- }), pe.QRCode = void 0;
1684
+ }), _e.QRCode = void 0;
1685
1685
  var r = Object.assign || function(p) {
1686
- for (var j = 1; j < arguments.length; j++) {
1687
- var k = arguments[j];
1688
- for (var L in k)
1689
- Object.prototype.hasOwnProperty.call(k, L) && (p[L] = k[L]);
1686
+ for (var A = 1; A < arguments.length; A++) {
1687
+ var P = arguments[A];
1688
+ for (var B in P)
1689
+ Object.prototype.hasOwnProperty.call(P, B) && (p[B] = P[B]);
1690
1690
  }
1691
1691
  return p;
1692
- }, e = /* @__PURE__ */ Ut(), t = f(e), n = Ft(), s = f(n), o = gr(), i = f(o), a = ae, c = f(a), l = pr(), h = f(l);
1692
+ }, e = /* @__PURE__ */ Ut(), t = f(e), n = Ft(), s = f(n), o = gr(), i = f(o), a = le, c = f(a), l = pr(), h = f(l);
1693
1693
  function f(p) {
1694
1694
  return p && p.__esModule ? p : { default: p };
1695
1695
  }
1696
- function g(p, j) {
1697
- var k = {};
1698
- for (var L in p)
1699
- j.indexOf(L) >= 0 || Object.prototype.hasOwnProperty.call(p, L) && (k[L] = p[L]);
1700
- return k;
1696
+ function g(p, A) {
1697
+ var P = {};
1698
+ for (var B in p)
1699
+ A.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(p, B) && (P[B] = p[B]);
1700
+ return P;
1701
1701
  }
1702
- var E = {
1702
+ var S = {
1703
1703
  bgColor: t.default.oneOfType([t.default.object, t.default.string]),
1704
1704
  fgColor: t.default.oneOfType([t.default.object, t.default.string]),
1705
1705
  level: t.default.string,
1706
1706
  size: t.default.number,
1707
1707
  value: t.default.string.isRequired
1708
- }, w = (0, a.forwardRef)(function(p, j) {
1709
- var k = p.bgColor, L = k === void 0 ? "#FFFFFF" : k, D = p.fgColor, M = D === void 0 ? "#000000" : D, y = p.level, q = y === void 0 ? "L" : y, K = p.size, ne = K === void 0 ? 256 : K, Q = p.value, X = g(p, ["bgColor", "fgColor", "level", "size", "value"]), V = new i.default(-1, s.default[q]);
1710
- V.addData(Q), V.make();
1711
- var Z = V.modules;
1712
- return c.default.createElement(h.default, r({}, X, {
1713
- bgColor: L,
1714
- bgD: Z.map(function(G, Y) {
1715
- return G.map(function(ee, z) {
1716
- return ee ? "" : "M " + z + " " + Y + " l 1 0 0 1 -1 0 Z";
1708
+ }, w = (0, a.forwardRef)(function(p, A) {
1709
+ var P = p.bgColor, B = P === void 0 ? "#FFFFFF" : P, M = p.fgColor, N = M === void 0 ? "#000000" : M, v = p.level, V = v === void 0 ? "L" : v, Z = p.size, se = Z === void 0 ? 256 : Z, J = p.value, G = g(p, ["bgColor", "fgColor", "level", "size", "value"]), Y = new i.default(-1, s.default[V]);
1710
+ Y.addData(J), Y.make();
1711
+ var ee = Y.modules;
1712
+ return c.default.createElement(h.default, r({}, G, {
1713
+ bgColor: B,
1714
+ bgD: ee.map(function(K, Q) {
1715
+ return K.map(function(te, z) {
1716
+ return te ? "" : "M " + z + " " + Q + " l 1 0 0 1 -1 0 Z";
1717
1717
  }).join(" ");
1718
1718
  }).join(" "),
1719
- fgColor: M,
1720
- fgD: Z.map(function(G, Y) {
1721
- return G.map(function(ee, z) {
1722
- return ee ? "M " + z + " " + Y + " l 1 0 0 1 -1 0 Z" : "";
1719
+ fgColor: N,
1720
+ fgD: ee.map(function(K, Q) {
1721
+ return K.map(function(te, z) {
1722
+ return te ? "M " + z + " " + Q + " l 1 0 0 1 -1 0 Z" : "";
1723
1723
  }).join(" ");
1724
1724
  }).join(" "),
1725
- ref: j,
1726
- size: ne,
1727
- viewBoxSize: Z.length
1725
+ ref: A,
1726
+ size: se,
1727
+ viewBoxSize: ee.length
1728
1728
  }));
1729
1729
  });
1730
- return pe.QRCode = w, w.displayName = "QRCode", w.propTypes = E, pe.default = w, pe;
1730
+ return _e.QRCode = w, w.displayName = "QRCode", w.propTypes = S, _e.default = w, _e;
1731
1731
  }
1732
1732
  var mr = _r();
1733
1733
  const vr = /* @__PURE__ */ er(mr);
@@ -1737,7 +1737,7 @@ var Qt = {
1737
1737
  className: void 0,
1738
1738
  style: void 0,
1739
1739
  attr: void 0
1740
- }, kt = ae.createContext && /* @__PURE__ */ ae.createContext(Qt), yr = ["attr", "size", "title"];
1740
+ }, kt = le.createContext && /* @__PURE__ */ le.createContext(Qt), yr = ["attr", "size", "title"];
1741
1741
  function wr(r, e) {
1742
1742
  if (r == null) return {};
1743
1743
  var t = br(r, e), n, s;
@@ -1807,12 +1807,12 @@ function Cr(r, e) {
1807
1807
  return (e === "string" ? String : Number)(r);
1808
1808
  }
1809
1809
  function Jt(r) {
1810
- return r && r.map((e, t) => /* @__PURE__ */ ae.createElement(e.tag, Ae({
1810
+ return r && r.map((e, t) => /* @__PURE__ */ le.createElement(e.tag, Ae({
1811
1811
  key: t
1812
1812
  }, e.attr), Jt(e.child)));
1813
1813
  }
1814
1814
  function Oe(r) {
1815
- return (e) => /* @__PURE__ */ ae.createElement(xr, Ie({
1815
+ return (e) => /* @__PURE__ */ le.createElement(xr, Ie({
1816
1816
  attr: Ae({}, r.attr)
1817
1817
  }, e), Jt(r.child));
1818
1818
  }
@@ -1823,7 +1823,7 @@ function xr(r) {
1823
1823
  size: s,
1824
1824
  title: o
1825
1825
  } = r, i = wr(r, yr), a = s || t.size || "1em", c;
1826
- return t.className && (c = t.className), r.className && (c = (c ? c + " " : "") + r.className), /* @__PURE__ */ ae.createElement("svg", Ie({
1826
+ return t.className && (c = t.className), r.className && (c = (c ? c + " " : "") + r.className), /* @__PURE__ */ le.createElement("svg", Ie({
1827
1827
  stroke: "currentColor",
1828
1828
  fill: "currentColor",
1829
1829
  strokeWidth: "0"
@@ -1835,9 +1835,9 @@ function xr(r) {
1835
1835
  height: a,
1836
1836
  width: a,
1837
1837
  xmlns: "http://www.w3.org/2000/svg"
1838
- }), o && /* @__PURE__ */ ae.createElement("title", null, o), r.children);
1838
+ }), o && /* @__PURE__ */ le.createElement("title", null, o), r.children);
1839
1839
  };
1840
- return kt !== void 0 ? /* @__PURE__ */ ae.createElement(kt.Consumer, null, (t) => e(t)) : e(Qt);
1840
+ return kt !== void 0 ? /* @__PURE__ */ le.createElement(kt.Consumer, null, (t) => e(t)) : e(Qt);
1841
1841
  }
1842
1842
  function Tr(r) {
1843
1843
  return Oe({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M9.5 6.5v3h-3v-3h3M11 5H5v6h6V5zm-1.5 9.5v3h-3v-3h3M11 13H5v6h6v-6zm6.5-6.5v3h-3v-3h3M19 5h-6v6h6V5zm-6 8h1.5v1.5H13V13zm1.5 1.5H16V16h-1.5v-1.5zM16 13h1.5v1.5H16V13zm-3 3h1.5v1.5H13V16zm1.5 1.5H16V19h-1.5v-1.5zM16 16h1.5v1.5H16V16zm1.5-1.5H19V16h-1.5v-1.5zm0 3H19V19h-1.5v-1.5zM22 7h-2V4h-3V2h5v5zm0 15v-5h-2v3h-3v2h5zM2 22h5v-2H4v-3H2v5zM2 2v5h2V4h3V2H2z" }, child: [] }] })(r);
@@ -1848,10 +1848,10 @@ const kr = ({
1848
1848
  size: t = "small",
1849
1849
  isConnected: n = !1
1850
1850
  }) => {
1851
- const [s, o] = te("w-2 h-2"), [i, a] = te("w-4 h-4"), [c, l] = te(
1851
+ const [s, o] = re("w-2 h-2"), [i, a] = re("w-4 h-4"), [c, l] = re(
1852
1852
  n ? "from-green-200 to-green-600" : "from-red-600 to-red-800"
1853
1853
  );
1854
- return he(() => {
1854
+ return fe(() => {
1855
1855
  switch (t) {
1856
1856
  case "small":
1857
1857
  a("w-2 h-2"), o("w-1 h-1");
@@ -1868,7 +1868,7 @@ const kr = ({
1868
1868
  }
1869
1869
  return () => {
1870
1870
  };
1871
- }, [t]), he(() => {
1871
+ }, [t]), fe(() => {
1872
1872
  l(
1873
1873
  n ? "bg-gradient-to-r from-green-200 to-green-500" : " bg-gradient-to-r from-red-600 to-red-800"
1874
1874
  );
@@ -1879,7 +1879,7 @@ const kr = ({
1879
1879
  }
1880
1880
  ) });
1881
1881
  };
1882
- class we extends Error {
1882
+ class be extends Error {
1883
1883
  constructor(e, t, n) {
1884
1884
  super(`HTTP ${e}: ${t}`), this.status = e, this.statusText = t, this.response = n, this.name = "ApiError";
1885
1885
  }
@@ -1905,11 +1905,11 @@ async function Rt(r, e, t) {
1905
1905
  } catch {
1906
1906
  c = await i.text();
1907
1907
  }
1908
- throw new we(i.status, i.statusText, c);
1908
+ throw new be(i.status, i.statusText, c);
1909
1909
  }
1910
1910
  return i.headers.get("content-type")?.includes("application/json") ? await i.json() : await i.text();
1911
1911
  } catch (i) {
1912
- throw i instanceof we ? (console.error("API Error:", i.status, i.message), i) : i instanceof we && i.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", i), new Error("Network error occurred"));
1912
+ throw i instanceof be ? (console.error("API Error:", i.status, i.message), i) : i instanceof be && i.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", i), new Error("Network error occurred"));
1913
1913
  }
1914
1914
  }
1915
1915
  async function Pr(r, e) {
@@ -1930,11 +1930,11 @@ async function Pr(r, e) {
1930
1930
  } catch {
1931
1931
  i = await o.text();
1932
1932
  }
1933
- throw new we(o.status, o.statusText, i);
1933
+ throw new be(o.status, o.statusText, i);
1934
1934
  }
1935
1935
  return;
1936
1936
  } catch (o) {
1937
- throw o instanceof we ? (console.error("API Error:", o.status, o.message), o) : o instanceof Error && o.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", o), new Error("Network error occurred"));
1937
+ throw o instanceof be ? (console.error("API Error:", o.status, o.message), o) : o instanceof Error && o.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", o), new Error("Network error occurred"));
1938
1938
  }
1939
1939
  }
1940
1940
  function Rr(r) {
@@ -1976,17 +1976,17 @@ function Or(r) {
1976
1976
  }
1977
1977
  }
1978
1978
  const Dr = (r, e) => {
1979
- const [t, n] = te(() => Or(r) ?? e);
1980
- return he(() => {
1979
+ const [t, n] = re(() => Or(r) ?? e);
1980
+ return fe(() => {
1981
1981
  jr(r, t), n(t);
1982
- }, [r, t]), he(() => {
1982
+ }, [r, t]), fe(() => {
1983
1983
  const s = (o) => {
1984
1984
  o.key === r && n(o.newValue ? JSON.parse(o.newValue) : e);
1985
1985
  };
1986
1986
  return window.addEventListener("storage", s), () => window.removeEventListener("storage", s);
1987
1987
  }, [r, e]), [t, n];
1988
1988
  };
1989
- class fe extends Error {
1989
+ class de extends Error {
1990
1990
  /** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
1991
1991
  *
1992
1992
  * @param {string} errorMessage A descriptive error message.
@@ -2007,7 +2007,7 @@ class Ze extends Error {
2007
2007
  super(e), this.__proto__ = t;
2008
2008
  }
2009
2009
  }
2010
- class ie extends Error {
2010
+ class ce extends Error {
2011
2011
  /** Constructs a new instance of {@link AbortError}.
2012
2012
  *
2013
2013
  * @param {string} errorMessage A descriptive error message.
@@ -2112,7 +2112,7 @@ var d;
2112
2112
  (function(r) {
2113
2113
  r[r.Trace = 0] = "Trace", r[r.Debug = 1] = "Debug", r[r.Information = 2] = "Information", r[r.Warning = 3] = "Warning", r[r.Error = 4] = "Error", r[r.Critical = 5] = "Critical", r[r.None = 6] = "None";
2114
2114
  })(d || (d = {}));
2115
- class be {
2115
+ class Se {
2116
2116
  constructor() {
2117
2117
  }
2118
2118
  /** @inheritDoc */
@@ -2120,9 +2120,9 @@ class be {
2120
2120
  log(e, t) {
2121
2121
  }
2122
2122
  }
2123
- be.instance = new be();
2123
+ Se.instance = new Se();
2124
2124
  const Br = "10.0.0";
2125
- class U {
2125
+ class F {
2126
2126
  static isRequired(e, t) {
2127
2127
  if (e == null)
2128
2128
  throw new Error(`The '${t}' argument is required.`);
@@ -2136,18 +2136,18 @@ class U {
2136
2136
  throw new Error(`Unknown ${n} value: ${e}.`);
2137
2137
  }
2138
2138
  }
2139
- class W {
2139
+ class U {
2140
2140
  // react-native has a window but no document so we should check both
2141
2141
  static get isBrowser() {
2142
- return !W.isNode && typeof window == "object" && typeof window.document == "object";
2142
+ return !U.isNode && typeof window == "object" && typeof window.document == "object";
2143
2143
  }
2144
2144
  // WebWorkers don't have a window object so the isBrowser check would fail
2145
2145
  static get isWebWorker() {
2146
- return !W.isNode && typeof self == "object" && "importScripts" in self;
2146
+ return !U.isNode && typeof self == "object" && "importScripts" in self;
2147
2147
  }
2148
2148
  // react-native has a window but no document
2149
2149
  static get isReactNative() {
2150
- return !W.isNode && typeof window == "object" && typeof window.document > "u";
2150
+ return !U.isNode && typeof window == "object" && typeof window.document > "u";
2151
2151
  }
2152
2152
  // Node apps shouldn't have a window object, but WebWorkers don't either
2153
2153
  // so we need to check for both WebWorker and window
@@ -2155,9 +2155,9 @@ class W {
2155
2155
  return typeof process < "u" && process.release && process.release.name === "node";
2156
2156
  }
2157
2157
  }
2158
- function Se(r, e) {
2158
+ function Ee(r, e) {
2159
2159
  let t = "";
2160
- return ge(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${zr(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
2160
+ return pe(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${zr(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
2161
2161
  }
2162
2162
  function zr(r) {
2163
2163
  const e = new Uint8Array(r);
@@ -2167,14 +2167,14 @@ function zr(r) {
2167
2167
  t += `0x${s}${n.toString(16)} `;
2168
2168
  }), t.substring(0, t.length - 1);
2169
2169
  }
2170
- function ge(r) {
2170
+ function pe(r) {
2171
2171
  return r && typeof ArrayBuffer < "u" && (r instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
2172
2172
  r.constructor && r.constructor.name === "ArrayBuffer");
2173
2173
  }
2174
2174
  async function Gt(r, e, t, n, s, o) {
2175
- const i = {}, [a, c] = _e();
2176
- i[a] = c, r.log(d.Trace, `(${e} transport) sending data. ${Se(s, o.logMessageContent)}.`);
2177
- const l = ge(s) ? "arraybuffer" : "text", h = await t.post(n, {
2175
+ const i = {}, [a, c] = me();
2176
+ i[a] = c, r.log(d.Trace, `(${e} transport) sending data. ${Ee(s, o.logMessageContent)}.`);
2177
+ const l = pe(s) ? "arraybuffer" : "text", h = await t.post(n, {
2178
2178
  content: s,
2179
2179
  headers: { ...i, ...o.headers },
2180
2180
  responseType: l,
@@ -2184,7 +2184,7 @@ async function Gt(r, e, t, n, s, o) {
2184
2184
  r.log(d.Trace, `(${e} transport) request complete. Response status: ${h.statusCode}.`);
2185
2185
  }
2186
2186
  function Hr(r) {
2187
- return r === void 0 ? new je(d.Information) : r === null ? be.instance : r.log !== void 0 ? r : new je(r);
2187
+ return r === void 0 ? new je(d.Information) : r === null ? Se.instance : r.log !== void 0 ? r : new je(r);
2188
2188
  }
2189
2189
  class Wr {
2190
2190
  constructor(e, t) {
@@ -2221,9 +2221,9 @@ class je {
2221
2221
  }
2222
2222
  }
2223
2223
  }
2224
- function _e() {
2224
+ function me() {
2225
2225
  let r = "X-SignalR-User-Agent";
2226
- return W.isNode && (r = "User-Agent"), [r, Ur(Br, Fr(), Vr(), qr())];
2226
+ return U.isNode && (r = "User-Agent"), [r, Ur(Br, Fr(), Vr(), qr())];
2227
2227
  }
2228
2228
  function Ur(r, e, t, n) {
2229
2229
  let s = "Microsoft SignalR/";
@@ -2231,7 +2231,7 @@ function Ur(r, e, t, n) {
2231
2231
  return s += `${o[0]}.${o[1]}`, s += ` (${r}; `, e && e !== "" ? s += `${e}; ` : s += "Unknown OS; ", s += `${t}`, n ? s += `; ${n}` : s += "; Unknown Runtime Version", s += ")", s;
2232
2232
  }
2233
2233
  function Fr() {
2234
- if (W.isNode)
2234
+ if (U.isNode)
2235
2235
  switch (process.platform) {
2236
2236
  case "win32":
2237
2237
  return "Windows NT";
@@ -2246,11 +2246,11 @@ function Fr() {
2246
2246
  return "";
2247
2247
  }
2248
2248
  function qr() {
2249
- if (W.isNode)
2249
+ if (U.isNode)
2250
2250
  return process.versions.node;
2251
2251
  }
2252
2252
  function Vr() {
2253
- return W.isNode ? "NodeJS" : "Browser";
2253
+ return U.isNode ? "NodeJS" : "Browser";
2254
2254
  }
2255
2255
  function Xe(r) {
2256
2256
  return r.stack ? r.stack : r.message ? r.message : `${r}`;
@@ -2268,7 +2268,7 @@ function Yr() {
2268
2268
  }
2269
2269
  class Qr extends De {
2270
2270
  constructor(e) {
2271
- if (super(), this._logger = e, typeof fetch > "u" || W.isNode) {
2271
+ if (super(), this._logger = e, typeof fetch > "u" || U.isNode) {
2272
2272
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
2273
2273
  this._jar = new (t("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = t("node-fetch") : this._fetchType = fetch, this._fetchType = t("fetch-cookie")(this._fetchType, this._jar);
2274
2274
  } else
@@ -2282,7 +2282,7 @@ class Qr extends De {
2282
2282
  /** @inheritDoc */
2283
2283
  async send(e) {
2284
2284
  if (e.abortSignal && e.abortSignal.aborted)
2285
- throw new ie();
2285
+ throw new ce();
2286
2286
  if (!e.method)
2287
2287
  throw new Error("No method defined.");
2288
2288
  if (!e.url)
@@ -2290,7 +2290,7 @@ class Qr extends De {
2290
2290
  const t = new this._abortControllerType();
2291
2291
  let n;
2292
2292
  e.abortSignal && (e.abortSignal.onabort = () => {
2293
- t.abort(), n = new ie();
2293
+ t.abort(), n = new ce();
2294
2294
  });
2295
2295
  let s = null;
2296
2296
  if (e.timeout) {
@@ -2299,7 +2299,7 @@ class Qr extends De {
2299
2299
  t.abort(), this._logger.log(d.Warning, "Timeout from HTTP request."), n = new Ze();
2300
2300
  }, c);
2301
2301
  }
2302
- e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, ge(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
2302
+ e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, pe(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
2303
2303
  let o;
2304
2304
  try {
2305
2305
  o = await this._fetchType(e.url, {
@@ -2322,14 +2322,14 @@ class Qr extends De {
2322
2322
  }
2323
2323
  if (!o.ok) {
2324
2324
  const c = await jt(o, "text");
2325
- throw new fe(c || o.statusText, o.status);
2325
+ throw new de(c || o.statusText, o.status);
2326
2326
  }
2327
2327
  const a = await jt(o, e.responseType);
2328
2328
  return new Xt(o.status, o.statusText, a);
2329
2329
  }
2330
2330
  getCookieString(e) {
2331
2331
  let t = "";
2332
- return W.isNode && this._jar && this._jar.getCookies(e, (n, s) => t = s.join("; ")), t;
2332
+ return U.isNode && this._jar && this._jar.getCookies(e, (n, s) => t = s.join("; ")), t;
2333
2333
  }
2334
2334
  }
2335
2335
  function jt(r, e) {
@@ -2357,18 +2357,18 @@ class Jr extends De {
2357
2357
  }
2358
2358
  /** @inheritDoc */
2359
2359
  send(e) {
2360
- return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ie()) : e.method ? e.url ? new Promise((t, n) => {
2360
+ return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ce()) : e.method ? e.url ? new Promise((t, n) => {
2361
2361
  const s = new XMLHttpRequest();
2362
- s.open(e.method, e.url, !0), s.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, s.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (ge(e.content) ? s.setRequestHeader("Content-Type", "application/octet-stream") : s.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
2362
+ s.open(e.method, e.url, !0), s.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, s.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (pe(e.content) ? s.setRequestHeader("Content-Type", "application/octet-stream") : s.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
2363
2363
  const o = e.headers;
2364
2364
  o && Object.keys(o).forEach((i) => {
2365
2365
  s.setRequestHeader(i, o[i]);
2366
2366
  }), e.responseType && (s.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
2367
- s.abort(), n(new ie());
2367
+ s.abort(), n(new ce());
2368
2368
  }), e.timeout && (s.timeout = e.timeout), s.onload = () => {
2369
- e.abortSignal && (e.abortSignal.onabort = null), s.status >= 200 && s.status < 300 ? t(new Xt(s.status, s.statusText, s.response || s.responseText)) : n(new fe(s.response || s.responseText || s.statusText, s.status));
2369
+ e.abortSignal && (e.abortSignal.onabort = null), s.status >= 200 && s.status < 300 ? t(new Xt(s.status, s.statusText, s.response || s.responseText)) : n(new de(s.response || s.responseText || s.statusText, s.status));
2370
2370
  }, s.onerror = () => {
2371
- this._logger.log(d.Warning, `Error from HTTP request. ${s.status}: ${s.statusText}.`), n(new fe(s.statusText, s.status));
2371
+ this._logger.log(d.Warning, `Error from HTTP request. ${s.status}: ${s.statusText}.`), n(new de(s.statusText, s.status));
2372
2372
  }, s.ontimeout = () => {
2373
2373
  this._logger.log(d.Warning, "Timeout from HTTP request."), n(new Ze());
2374
2374
  }, s.send(e.content);
@@ -2378,7 +2378,7 @@ class Jr extends De {
2378
2378
  class Xr extends De {
2379
2379
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
2380
2380
  constructor(e) {
2381
- if (super(), typeof fetch < "u" || W.isNode)
2381
+ if (super(), typeof fetch < "u" || U.isNode)
2382
2382
  this._httpClient = new Qr(e);
2383
2383
  else if (typeof XMLHttpRequest < "u")
2384
2384
  this._httpClient = new Jr(e);
@@ -2387,55 +2387,55 @@ class Xr extends De {
2387
2387
  }
2388
2388
  /** @inheritDoc */
2389
2389
  send(e) {
2390
- return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ie()) : e.method ? e.url ? this._httpClient.send(e) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
2390
+ return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ce()) : e.method ? e.url ? this._httpClient.send(e) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
2391
2391
  }
2392
2392
  getCookieString(e) {
2393
2393
  return this._httpClient.getCookieString(e);
2394
2394
  }
2395
2395
  }
2396
- class re {
2396
+ class oe {
2397
2397
  static write(e) {
2398
- return `${e}${re.RecordSeparator}`;
2398
+ return `${e}${oe.RecordSeparator}`;
2399
2399
  }
2400
2400
  static parse(e) {
2401
- if (e[e.length - 1] !== re.RecordSeparator)
2401
+ if (e[e.length - 1] !== oe.RecordSeparator)
2402
2402
  throw new Error("Message is incomplete.");
2403
- const t = e.split(re.RecordSeparator);
2403
+ const t = e.split(oe.RecordSeparator);
2404
2404
  return t.pop(), t;
2405
2405
  }
2406
2406
  }
2407
- re.RecordSeparatorCode = 30;
2408
- re.RecordSeparator = String.fromCharCode(re.RecordSeparatorCode);
2407
+ oe.RecordSeparatorCode = 30;
2408
+ oe.RecordSeparator = String.fromCharCode(oe.RecordSeparatorCode);
2409
2409
  class Gr {
2410
2410
  // Handshake request is always JSON
2411
2411
  writeHandshakeRequest(e) {
2412
- return re.write(JSON.stringify(e));
2412
+ return oe.write(JSON.stringify(e));
2413
2413
  }
2414
2414
  parseHandshakeResponse(e) {
2415
2415
  let t, n;
2416
- if (ge(e)) {
2417
- const a = new Uint8Array(e), c = a.indexOf(re.RecordSeparatorCode);
2416
+ if (pe(e)) {
2417
+ const a = new Uint8Array(e), c = a.indexOf(oe.RecordSeparatorCode);
2418
2418
  if (c === -1)
2419
2419
  throw new Error("Message is incomplete.");
2420
2420
  const l = c + 1;
2421
2421
  t = String.fromCharCode.apply(null, Array.prototype.slice.call(a.slice(0, l))), n = a.byteLength > l ? a.slice(l).buffer : null;
2422
2422
  } else {
2423
- const a = e, c = a.indexOf(re.RecordSeparator);
2423
+ const a = e, c = a.indexOf(oe.RecordSeparator);
2424
2424
  if (c === -1)
2425
2425
  throw new Error("Message is incomplete.");
2426
2426
  const l = c + 1;
2427
2427
  t = a.substring(0, l), n = a.length > l ? a.substring(l) : null;
2428
2428
  }
2429
- const s = re.parse(t), o = JSON.parse(s[0]);
2429
+ const s = oe.parse(t), o = JSON.parse(s[0]);
2430
2430
  if (o.type)
2431
2431
  throw new Error("Expected a handshake response from the server.");
2432
2432
  return [n, o];
2433
2433
  }
2434
2434
  }
2435
- var A;
2435
+ var I;
2436
2436
  (function(r) {
2437
2437
  r[r.Invocation = 1] = "Invocation", r[r.StreamItem = 2] = "StreamItem", r[r.Completion = 3] = "Completion", r[r.StreamInvocation = 4] = "StreamInvocation", r[r.CancelInvocation = 5] = "CancelInvocation", r[r.Ping = 6] = "Ping", r[r.Close = 7] = "Close", r[r.Ack = 8] = "Ack", r[r.Sequence = 9] = "Sequence";
2438
- })(A || (A = {}));
2438
+ })(I || (I = {}));
2439
2439
  class Kr {
2440
2440
  constructor() {
2441
2441
  this.observers = [];
@@ -2468,7 +2468,7 @@ class Zr {
2468
2468
  let s = () => {
2469
2469
  }, o = () => {
2470
2470
  };
2471
- ge(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (n = new Promise((i, a) => {
2471
+ pe(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (n = new Promise((i, a) => {
2472
2472
  s = i, o = a;
2473
2473
  })), this._messages.push(new en(t, this._totalMessageCount, s, o));
2474
2474
  }
@@ -2484,7 +2484,7 @@ class Zr {
2484
2484
  for (let n = 0; n < this._messages.length; n++) {
2485
2485
  const s = this._messages[n];
2486
2486
  if (s._id <= e.sequenceId)
2487
- t = n, ge(s._message) ? this._bufferedByteCount -= s._message.byteLength : this._bufferedByteCount -= s._message.length, s._resolver();
2487
+ t = n, pe(s._message) ? this._bufferedByteCount -= s._message.byteLength : this._bufferedByteCount -= s._message.length, s._resolver();
2488
2488
  else if (this._bufferedByteCount < this._bufferSize)
2489
2489
  s._resolver();
2490
2490
  else
@@ -2494,7 +2494,7 @@ class Zr {
2494
2494
  }
2495
2495
  _shouldProcessMessage(e) {
2496
2496
  if (this._waitForSequenceMessage)
2497
- return e.type !== A.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
2497
+ return e.type !== I.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
2498
2498
  if (!this._isInvocationMessage(e))
2499
2499
  return !0;
2500
2500
  const t = this._nextReceivingSequenceId;
@@ -2512,7 +2512,7 @@ class Zr {
2512
2512
  }
2513
2513
  async _resend() {
2514
2514
  const e = this._messages.length !== 0 ? this._messages[0]._id : this._totalMessageCount + 1;
2515
- await this._connection.send(this._protocol.writeMessage({ type: A.Sequence, sequenceId: e }));
2515
+ await this._connection.send(this._protocol.writeMessage({ type: I.Sequence, sequenceId: e }));
2516
2516
  const t = this._messages;
2517
2517
  for (const n of t)
2518
2518
  await this._connection.send(n._message);
@@ -2525,23 +2525,23 @@ class Zr {
2525
2525
  }
2526
2526
  _isInvocationMessage(e) {
2527
2527
  switch (e.type) {
2528
- case A.Invocation:
2529
- case A.StreamItem:
2530
- case A.Completion:
2531
- case A.StreamInvocation:
2532
- case A.CancelInvocation:
2528
+ case I.Invocation:
2529
+ case I.StreamItem:
2530
+ case I.Completion:
2531
+ case I.StreamInvocation:
2532
+ case I.CancelInvocation:
2533
2533
  return !0;
2534
- case A.Close:
2535
- case A.Sequence:
2536
- case A.Ping:
2537
- case A.Ack:
2534
+ case I.Close:
2535
+ case I.Sequence:
2536
+ case I.Ping:
2537
+ case I.Ack:
2538
2538
  return !1;
2539
2539
  }
2540
2540
  }
2541
2541
  _ackTimer() {
2542
2542
  this._ackTimerHandle === void 0 && (this._ackTimerHandle = setTimeout(async () => {
2543
2543
  try {
2544
- this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: A.Ack, sequenceId: this._latestReceivedSequenceId }));
2544
+ this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: I.Ack, sequenceId: this._latestReceivedSequenceId }));
2545
2545
  } catch {
2546
2546
  }
2547
2547
  clearTimeout(this._ackTimerHandle), this._ackTimerHandle = void 0;
@@ -2570,7 +2570,7 @@ class et {
2570
2570
  constructor(e, t, n, s, o, i, a) {
2571
2571
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
2572
2572
  this._logger.log(d.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
2573
- }, U.isRequired(e, "connection"), U.isRequired(t, "logger"), U.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = o ?? tn, this.keepAliveIntervalInMilliseconds = i ?? rn, this._statefulReconnectBufferSize = a ?? nn, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = s, this._handshakeProtocol = new Gr(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = H.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: A.Ping });
2573
+ }, F.isRequired(e, "connection"), F.isRequired(t, "logger"), F.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = o ?? tn, this.keepAliveIntervalInMilliseconds = i ?? rn, this._statefulReconnectBufferSize = a ?? nn, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = s, this._handshakeProtocol = new Gr(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = H.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: I.Ping });
2574
2574
  }
2575
2575
  /** Indicates the state of the {@link HubConnection} to the server. */
2576
2576
  get state() {
@@ -2610,7 +2610,7 @@ class et {
2610
2610
  return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
2611
2611
  this._connectionState = H.Connecting, this._logger.log(d.Debug, "Starting HubConnection.");
2612
2612
  try {
2613
- await this._startInternal(), W.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = H.Connected, this._connectionStarted = !0, this._logger.log(d.Debug, "HubConnection connected successfully.");
2613
+ await this._startInternal(), U.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = H.Connected, this._connectionStarted = !0, this._logger.log(d.Debug, "HubConnection connected successfully.");
2614
2614
  } catch (e) {
2615
2615
  return this._connectionState = H.Disconnected, this._logger.log(d.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
2616
2616
  }
@@ -2656,7 +2656,7 @@ class et {
2656
2656
  if (this._connectionState === H.Disconnecting)
2657
2657
  return this._logger.log(d.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
2658
2658
  const t = this._connectionState;
2659
- return this._connectionState = H.Disconnecting, this._logger.log(d.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(d.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === H.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ie("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
2659
+ return this._connectionState = H.Disconnecting, this._logger.log(d.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(d.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === H.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ce("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
2660
2660
  }
2661
2661
  async _sendCloseMessage() {
2662
2662
  try {
@@ -2682,7 +2682,7 @@ class et {
2682
2682
  if (l) {
2683
2683
  a.error(l);
2684
2684
  return;
2685
- } else c && (c.type === A.Completion ? c.error ? a.error(new Error(c.error)) : a.complete() : a.next(c.item));
2685
+ } else c && (c.type === I.Completion ? c.error ? a.error(new Error(c.error)) : a.complete() : a.next(c.item));
2686
2686
  }, i = this._sendWithProtocol(o).catch((c) => {
2687
2687
  a.error(c), delete this._callbacks[o.invocationId];
2688
2688
  }), this._launchStreams(n, i), a;
@@ -2728,7 +2728,7 @@ class et {
2728
2728
  if (f) {
2729
2729
  c(f);
2730
2730
  return;
2731
- } else h && (h.type === A.Completion ? h.error ? c(new Error(h.error)) : a(h.result) : c(new Error(`Unexpected message type: ${h.type}`)));
2731
+ } else h && (h.type === I.Completion ? h.error ? c(new Error(h.error)) : a(h.result) : c(new Error(`Unexpected message type: ${h.type}`)));
2732
2732
  };
2733
2733
  const l = this._sendWithProtocol(o).catch((h) => {
2734
2734
  c(h), delete this._callbacks[o.invocationId];
@@ -2778,16 +2778,16 @@ class et {
2778
2778
  for (const n of t)
2779
2779
  if (!(this._messageBuffer && !this._messageBuffer._shouldProcessMessage(n)))
2780
2780
  switch (n.type) {
2781
- case A.Invocation:
2781
+ case I.Invocation:
2782
2782
  this._invokeClientMethod(n).catch((s) => {
2783
2783
  this._logger.log(d.Error, `Invoke client method threw error: ${Xe(s)}`);
2784
2784
  });
2785
2785
  break;
2786
- case A.StreamItem:
2787
- case A.Completion: {
2786
+ case I.StreamItem:
2787
+ case I.Completion: {
2788
2788
  const s = this._callbacks[n.invocationId];
2789
2789
  if (s) {
2790
- n.type === A.Completion && delete this._callbacks[n.invocationId];
2790
+ n.type === I.Completion && delete this._callbacks[n.invocationId];
2791
2791
  try {
2792
2792
  s(n);
2793
2793
  } catch (o) {
@@ -2796,18 +2796,18 @@ class et {
2796
2796
  }
2797
2797
  break;
2798
2798
  }
2799
- case A.Ping:
2799
+ case I.Ping:
2800
2800
  break;
2801
- case A.Close: {
2801
+ case I.Close: {
2802
2802
  this._logger.log(d.Information, "Close message received from server.");
2803
2803
  const s = n.error ? new Error("Server returned an error on close: " + n.error) : void 0;
2804
2804
  n.allowReconnect === !0 ? this.connection.stop(s) : this._stopPromise = this._stopInternal(s);
2805
2805
  break;
2806
2806
  }
2807
- case A.Ack:
2807
+ case I.Ack:
2808
2808
  this._messageBuffer && this._messageBuffer._ack(n);
2809
2809
  break;
2810
- case A.Sequence:
2810
+ case I.Sequence:
2811
2811
  this._messageBuffer && this._messageBuffer._resetSequence(n);
2812
2812
  break;
2813
2813
  default:
@@ -2874,11 +2874,11 @@ class et {
2874
2874
  c ? await this._sendWithProtocol(c) : o ? (a ? c = this._createCompletionMessage(e.invocationId, `${a}`, null) : i !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, i) : (this._logger.log(d.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : i && this._logger.log(d.Error, `Result given for '${t}' method but server is not expecting a result.`);
2875
2875
  }
2876
2876
  _connectionClosed(e) {
2877
- this._logger.log(d.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ie("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === H.Disconnecting ? this._completeClose(e) : this._connectionState === H.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === H.Connected && this._completeClose(e);
2877
+ this._logger.log(d.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ce("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === H.Disconnecting ? this._completeClose(e) : this._connectionState === H.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === H.Connected && this._completeClose(e);
2878
2878
  }
2879
2879
  _completeClose(e) {
2880
2880
  if (this._connectionStarted) {
2881
- this._connectionState = H.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), W.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
2881
+ this._connectionState = H.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), U.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
2882
2882
  try {
2883
2883
  this._closedCallbacks.forEach((t) => t.apply(this, [e]));
2884
2884
  } catch (t) {
@@ -2963,11 +2963,11 @@ class et {
2963
2963
  target: e,
2964
2964
  arguments: t,
2965
2965
  streamIds: s,
2966
- type: A.Invocation
2966
+ type: I.Invocation
2967
2967
  } : {
2968
2968
  target: e,
2969
2969
  arguments: t,
2970
- type: A.Invocation
2970
+ type: I.Invocation
2971
2971
  };
2972
2972
  {
2973
2973
  const o = this._invocationId;
@@ -2976,12 +2976,12 @@ class et {
2976
2976
  arguments: t,
2977
2977
  invocationId: o.toString(),
2978
2978
  streamIds: s,
2979
- type: A.Invocation
2979
+ type: I.Invocation
2980
2980
  } : {
2981
2981
  target: e,
2982
2982
  arguments: t,
2983
2983
  invocationId: o.toString(),
2984
- type: A.Invocation
2984
+ type: I.Invocation
2985
2985
  };
2986
2986
  }
2987
2987
  }
@@ -3024,40 +3024,40 @@ class et {
3024
3024
  arguments: t,
3025
3025
  invocationId: s.toString(),
3026
3026
  streamIds: n,
3027
- type: A.StreamInvocation
3027
+ type: I.StreamInvocation
3028
3028
  } : {
3029
3029
  target: e,
3030
3030
  arguments: t,
3031
3031
  invocationId: s.toString(),
3032
- type: A.StreamInvocation
3032
+ type: I.StreamInvocation
3033
3033
  };
3034
3034
  }
3035
3035
  _createCancelInvocation(e) {
3036
3036
  return {
3037
3037
  invocationId: e,
3038
- type: A.CancelInvocation
3038
+ type: I.CancelInvocation
3039
3039
  };
3040
3040
  }
3041
3041
  _createStreamItemMessage(e, t) {
3042
3042
  return {
3043
3043
  invocationId: e,
3044
3044
  item: t,
3045
- type: A.StreamItem
3045
+ type: I.StreamItem
3046
3046
  };
3047
3047
  }
3048
3048
  _createCompletionMessage(e, t, n) {
3049
3049
  return t ? {
3050
3050
  error: t,
3051
3051
  invocationId: e,
3052
- type: A.Completion
3052
+ type: I.Completion
3053
3053
  } : {
3054
3054
  invocationId: e,
3055
3055
  result: n,
3056
- type: A.Completion
3056
+ type: I.Completion
3057
3057
  };
3058
3058
  }
3059
3059
  _createCloseMessage() {
3060
- return { type: A.Close };
3060
+ return { type: I.Close };
3061
3061
  }
3062
3062
  async _trySendPingMessage() {
3063
3063
  try {
@@ -3076,10 +3076,10 @@ class Ot {
3076
3076
  return this._retryDelays[e.previousRetryCount];
3077
3077
  }
3078
3078
  }
3079
- class de {
3079
+ class ge {
3080
3080
  }
3081
- de.Authorization = "Authorization";
3082
- de.Cookie = "Cookie";
3081
+ ge.Authorization = "Authorization";
3082
+ ge.Cookie = "Cookie";
3083
3083
  class sn extends De {
3084
3084
  constructor(e, t) {
3085
3085
  super(), this._innerClient = e, this._accessTokenFactory = t;
@@ -3091,20 +3091,20 @@ class sn extends De {
3091
3091
  return t && n.statusCode === 401 && this._accessTokenFactory ? (this._accessToken = await this._accessTokenFactory(), this._setAuthorizationHeader(e), await this._innerClient.send(e)) : n;
3092
3092
  }
3093
3093
  _setAuthorizationHeader(e) {
3094
- e.headers || (e.headers = {}), this._accessToken ? e.headers[de.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[de.Authorization] && delete e.headers[de.Authorization];
3094
+ e.headers || (e.headers = {}), this._accessToken ? e.headers[ge.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[ge.Authorization] && delete e.headers[ge.Authorization];
3095
3095
  }
3096
3096
  getCookieString(e) {
3097
3097
  return this._innerClient.getCookieString(e);
3098
3098
  }
3099
3099
  }
3100
- var F;
3100
+ var q;
3101
3101
  (function(r) {
3102
3102
  r[r.None = 0] = "None", r[r.WebSockets = 1] = "WebSockets", r[r.ServerSentEvents = 2] = "ServerSentEvents", r[r.LongPolling = 4] = "LongPolling";
3103
- })(F || (F = {}));
3104
- var J;
3103
+ })(q || (q = {}));
3104
+ var X;
3105
3105
  (function(r) {
3106
3106
  r[r.Text = 1] = "Text", r[r.Binary = 2] = "Binary";
3107
- })(J || (J = {}));
3107
+ })(X || (X = {}));
3108
3108
  let an = class {
3109
3109
  constructor() {
3110
3110
  this._isAborted = !1, this.onabort = null;
@@ -3128,19 +3128,19 @@ class Dt {
3128
3128
  this._httpClient = e, this._logger = t, this._pollAbort = new an(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
3129
3129
  }
3130
3130
  async connect(e, t) {
3131
- if (U.isRequired(e, "url"), U.isRequired(t, "transferFormat"), U.isIn(t, J, "transferFormat"), this._url = e, this._logger.log(d.Trace, "(LongPolling transport) Connecting."), t === J.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
3131
+ if (F.isRequired(e, "url"), F.isRequired(t, "transferFormat"), F.isIn(t, X, "transferFormat"), this._url = e, this._logger.log(d.Trace, "(LongPolling transport) Connecting."), t === X.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
3132
3132
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
3133
- const [n, s] = _e(), o = { [n]: s, ...this._options.headers }, i = {
3133
+ const [n, s] = me(), o = { [n]: s, ...this._options.headers }, i = {
3134
3134
  abortSignal: this._pollAbort.signal,
3135
3135
  headers: o,
3136
3136
  timeout: 1e5,
3137
3137
  withCredentials: this._options.withCredentials
3138
3138
  };
3139
- t === J.Binary && (i.responseType = "arraybuffer");
3139
+ t === X.Binary && (i.responseType = "arraybuffer");
3140
3140
  const a = `${e}&_=${Date.now()}`;
3141
3141
  this._logger.log(d.Trace, `(LongPolling transport) polling: ${a}.`);
3142
3142
  const c = await this._httpClient.get(a, i);
3143
- c.statusCode !== 200 ? (this._logger.log(d.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new fe(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, i);
3143
+ c.statusCode !== 200 ? (this._logger.log(d.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new de(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, i);
3144
3144
  }
3145
3145
  async _poll(e, t) {
3146
3146
  try {
@@ -3149,7 +3149,7 @@ class Dt {
3149
3149
  const n = `${e}&_=${Date.now()}`;
3150
3150
  this._logger.log(d.Trace, `(LongPolling transport) polling: ${n}.`);
3151
3151
  const s = await this._httpClient.get(n, t);
3152
- s.statusCode === 204 ? (this._logger.log(d.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : s.statusCode !== 200 ? (this._logger.log(d.Error, `(LongPolling transport) Unexpected response code: ${s.statusCode}.`), this._closeError = new fe(s.statusText || "", s.statusCode), this._running = !1) : s.content ? (this._logger.log(d.Trace, `(LongPolling transport) data received. ${Se(s.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(s.content)) : this._logger.log(d.Trace, "(LongPolling transport) Poll timed out, reissuing.");
3152
+ s.statusCode === 204 ? (this._logger.log(d.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : s.statusCode !== 200 ? (this._logger.log(d.Error, `(LongPolling transport) Unexpected response code: ${s.statusCode}.`), this._closeError = new de(s.statusText || "", s.statusCode), this._running = !1) : s.content ? (this._logger.log(d.Trace, `(LongPolling transport) data received. ${Ee(s.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(s.content)) : this._logger.log(d.Trace, "(LongPolling transport) Poll timed out, reissuing.");
3153
3153
  } catch (n) {
3154
3154
  this._running ? n instanceof Ze ? this._logger.log(d.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(d.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
3155
3155
  }
@@ -3164,7 +3164,7 @@ class Dt {
3164
3164
  this._logger.log(d.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
3165
3165
  try {
3166
3166
  await this._receiving, this._logger.log(d.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
3167
- const e = {}, [t, n] = _e();
3167
+ const e = {}, [t, n] = me();
3168
3168
  e[t] = n;
3169
3169
  const s = {
3170
3170
  headers: { ...e, ...this._options.headers },
@@ -3177,7 +3177,7 @@ class Dt {
3177
3177
  } catch (i) {
3178
3178
  o = i;
3179
3179
  }
3180
- o ? o instanceof fe && (o.statusCode === 404 ? this._logger.log(d.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(d.Trace, `(LongPolling transport) Error sending a DELETE request: ${o}`)) : this._logger.log(d.Trace, "(LongPolling transport) DELETE request accepted.");
3180
+ o ? o instanceof de && (o.statusCode === 404 ? this._logger.log(d.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(d.Trace, `(LongPolling transport) Error sending a DELETE request: ${o}`)) : this._logger.log(d.Trace, "(LongPolling transport) DELETE request accepted.");
3181
3181
  } finally {
3182
3182
  this._logger.log(d.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
3183
3183
  }
@@ -3194,26 +3194,26 @@ class cn {
3194
3194
  this._httpClient = e, this._accessToken = t, this._logger = n, this._options = s, this.onreceive = null, this.onclose = null;
3195
3195
  }
3196
3196
  async connect(e, t) {
3197
- return U.isRequired(e, "url"), U.isRequired(t, "transferFormat"), U.isIn(t, J, "transferFormat"), this._logger.log(d.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((n, s) => {
3197
+ return F.isRequired(e, "url"), F.isRequired(t, "transferFormat"), F.isIn(t, X, "transferFormat"), this._logger.log(d.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((n, s) => {
3198
3198
  let o = !1;
3199
- if (t !== J.Text) {
3199
+ if (t !== X.Text) {
3200
3200
  s(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
3201
3201
  return;
3202
3202
  }
3203
3203
  let i;
3204
- if (W.isBrowser || W.isWebWorker)
3204
+ if (U.isBrowser || U.isWebWorker)
3205
3205
  i = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
3206
3206
  else {
3207
3207
  const a = this._httpClient.getCookieString(e), c = {};
3208
3208
  c.Cookie = a;
3209
- const [l, h] = _e();
3209
+ const [l, h] = me();
3210
3210
  c[l] = h, i = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...c, ...this._options.headers } });
3211
3211
  }
3212
3212
  try {
3213
3213
  i.onmessage = (a) => {
3214
3214
  if (this.onreceive)
3215
3215
  try {
3216
- this._logger.log(d.Trace, `(SSE transport) data received. ${Se(a.data, this._options.logMessageContent)}.`), this.onreceive(a.data);
3216
+ this._logger.log(d.Trace, `(SSE transport) data received. ${Ee(a.data, this._options.logMessageContent)}.`), this.onreceive(a.data);
3217
3217
  } catch (c) {
3218
3218
  this._close(c);
3219
3219
  return;
@@ -3244,27 +3244,27 @@ class ln {
3244
3244
  this._logger = n, this._accessTokenFactory = t, this._logMessageContent = s, this._webSocketConstructor = o, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = i;
3245
3245
  }
3246
3246
  async connect(e, t) {
3247
- U.isRequired(e, "url"), U.isRequired(t, "transferFormat"), U.isIn(t, J, "transferFormat"), this._logger.log(d.Trace, "(WebSockets transport) Connecting.");
3247
+ F.isRequired(e, "url"), F.isRequired(t, "transferFormat"), F.isIn(t, X, "transferFormat"), this._logger.log(d.Trace, "(WebSockets transport) Connecting.");
3248
3248
  let n;
3249
3249
  return this._accessTokenFactory && (n = await this._accessTokenFactory()), new Promise((s, o) => {
3250
3250
  e = e.replace(/^http/, "ws");
3251
3251
  let i;
3252
3252
  const a = this._httpClient.getCookieString(e);
3253
3253
  let c = !1;
3254
- if (W.isNode || W.isReactNative) {
3255
- const l = {}, [h, f] = _e();
3256
- l[h] = f, n && (l[de.Authorization] = `Bearer ${n}`), a && (l[de.Cookie] = a), i = new this._webSocketConstructor(e, void 0, {
3254
+ if (U.isNode || U.isReactNative) {
3255
+ const l = {}, [h, f] = me();
3256
+ l[h] = f, n && (l[ge.Authorization] = `Bearer ${n}`), a && (l[ge.Cookie] = a), i = new this._webSocketConstructor(e, void 0, {
3257
3257
  headers: { ...l, ...this._headers }
3258
3258
  });
3259
3259
  } else
3260
3260
  n && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(n)}`);
3261
- i || (i = new this._webSocketConstructor(e)), t === J.Binary && (i.binaryType = "arraybuffer"), i.onopen = (l) => {
3261
+ i || (i = new this._webSocketConstructor(e)), t === X.Binary && (i.binaryType = "arraybuffer"), i.onopen = (l) => {
3262
3262
  this._logger.log(d.Information, `WebSocket connected to ${e}.`), this._webSocket = i, c = !0, s();
3263
3263
  }, i.onerror = (l) => {
3264
3264
  let h = null;
3265
3265
  typeof ErrorEvent < "u" && l instanceof ErrorEvent ? h = l.error : h = "There was an error with the transport", this._logger.log(d.Information, `(WebSockets transport) ${h}.`);
3266
3266
  }, i.onmessage = (l) => {
3267
- if (this._logger.log(d.Trace, `(WebSockets transport) data received. ${Se(l.data, this._logMessageContent)}.`), this.onreceive)
3267
+ if (this._logger.log(d.Trace, `(WebSockets transport) data received. ${Ee(l.data, this._logMessageContent)}.`), this.onreceive)
3268
3268
  try {
3269
3269
  this.onreceive(l.data);
3270
3270
  } catch (h) {
@@ -3282,7 +3282,7 @@ class ln {
3282
3282
  });
3283
3283
  }
3284
3284
  send(e) {
3285
- return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(d.Trace, `(WebSockets transport) sending data. ${Se(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
3285
+ return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(d.Trace, `(WebSockets transport) sending data. ${Ee(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
3286
3286
  }
3287
3287
  stop() {
3288
3288
  return this._webSocket && this._close(void 0), Promise.resolve();
@@ -3301,27 +3301,27 @@ const Mt = 100;
3301
3301
  class un {
3302
3302
  constructor(e, t = {}) {
3303
3303
  if (this._stopPromiseResolver = () => {
3304
- }, this.features = {}, this._negotiateVersion = 1, U.isRequired(e, "url"), this._logger = Hr(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
3304
+ }, this.features = {}, this._negotiateVersion = 1, F.isRequired(e, "url"), this._logger = Hr(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
3305
3305
  t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
3306
3306
  else
3307
3307
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
3308
3308
  t.timeout = t.timeout === void 0 ? 100 * 1e3 : t.timeout;
3309
3309
  let n = null, s = null;
3310
- if (W.isNode && typeof require < "u") {
3310
+ if (U.isNode && typeof require < "u") {
3311
3311
  const o = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
3312
3312
  n = o("ws"), s = o("eventsource");
3313
3313
  }
3314
- !W.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : W.isNode && !t.WebSocket && n && (t.WebSocket = n), !W.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : W.isNode && !t.EventSource && typeof s < "u" && (t.EventSource = s), this._httpClient = new sn(t.httpClient || new Xr(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
3314
+ !U.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : U.isNode && !t.WebSocket && n && (t.WebSocket = n), !U.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : U.isNode && !t.EventSource && typeof s < "u" && (t.EventSource = s), this._httpClient = new sn(t.httpClient || new Xr(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
3315
3315
  }
3316
3316
  async start(e) {
3317
- if (e = e || J.Binary, U.isIn(e, J, "transferFormat"), this._logger.log(d.Debug, `Starting connection with transfer format '${J[e]}'.`), this._connectionState !== "Disconnected")
3317
+ if (e = e || X.Binary, F.isIn(e, X, "transferFormat"), this._logger.log(d.Debug, `Starting connection with transfer format '${X[e]}'.`), this._connectionState !== "Disconnected")
3318
3318
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
3319
3319
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
3320
3320
  const t = "Failed to start the HttpConnection before stop() was called.";
3321
- return this._logger.log(d.Error, t), await this._stopPromise, Promise.reject(new ie(t));
3321
+ return this._logger.log(d.Error, t), await this._stopPromise, Promise.reject(new ce(t));
3322
3322
  } else if (this._connectionState !== "Connected") {
3323
3323
  const t = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
3324
- return this._logger.log(d.Error, t), Promise.reject(new ie(t));
3324
+ return this._logger.log(d.Error, t), Promise.reject(new ce(t));
3325
3325
  }
3326
3326
  this._connectionStarted = !0;
3327
3327
  }
@@ -3358,15 +3358,15 @@ class un {
3358
3358
  this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
3359
3359
  try {
3360
3360
  if (this._options.skipNegotiation)
3361
- if (this._options.transport === F.WebSockets)
3362
- this.transport = this._constructTransport(F.WebSockets), await this._startTransport(t, e);
3361
+ if (this._options.transport === q.WebSockets)
3362
+ this.transport = this._constructTransport(q.WebSockets), await this._startTransport(t, e);
3363
3363
  else
3364
3364
  throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
3365
3365
  else {
3366
3366
  let n = null, s = 0;
3367
3367
  do {
3368
3368
  if (n = await this._getNegotiationResponse(t), this._connectionState === "Disconnecting" || this._connectionState === "Disconnected")
3369
- throw new ie("The connection was stopped during negotiation.");
3369
+ throw new ce("The connection was stopped during negotiation.");
3370
3370
  if (n.error)
3371
3371
  throw new Error(n.error);
3372
3372
  if (n.ProtocolVersion)
@@ -3387,7 +3387,7 @@ class un {
3387
3387
  }
3388
3388
  }
3389
3389
  async _getNegotiationResponse(e) {
3390
- const t = {}, [n, s] = _e();
3390
+ const t = {}, [n, s] = me();
3391
3391
  t[n] = s;
3392
3392
  const o = this._resolveNegotiateUrl(e);
3393
3393
  this._logger.log(d.Debug, `Sending negotiation request: ${o}.`);
@@ -3404,7 +3404,7 @@ class un {
3404
3404
  return (!a.negotiateVersion || a.negotiateVersion < 1) && (a.connectionToken = a.connectionId), a.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new At("Client didn't negotiate Stateful Reconnect but the server did.")) : a;
3405
3405
  } catch (i) {
3406
3406
  let a = "Failed to complete negotiation with the server: " + i;
3407
- return i instanceof fe && i.statusCode === 404 && (a = a + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(d.Error, a), Promise.reject(new At(a));
3407
+ return i instanceof de && i.statusCode === 404 && (a = a + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(d.Error, a), Promise.reject(new At(a));
3408
3408
  }
3409
3409
  }
3410
3410
  _createConnectUrl(e, t) {
@@ -3435,9 +3435,9 @@ class un {
3435
3435
  await this._startTransport(o, s), this.connectionId = c.connectionId;
3436
3436
  return;
3437
3437
  } catch (f) {
3438
- if (this._logger.log(d.Error, `Failed to start the transport '${l.transport}': ${f}`), c = void 0, i.push(new $r(`${l.transport} failed: ${f}`, F[l.transport])), this._connectionState !== "Connecting") {
3438
+ if (this._logger.log(d.Error, `Failed to start the transport '${l.transport}': ${f}`), c = void 0, i.push(new $r(`${l.transport} failed: ${f}`, q[l.transport])), this._connectionState !== "Connecting") {
3439
3439
  const g = "Failed to select transport before stop() was called.";
3440
- return this._logger.log(d.Debug, g), Promise.reject(new ie(g));
3440
+ return this._logger.log(d.Debug, g), Promise.reject(new ce(g));
3441
3441
  }
3442
3442
  }
3443
3443
  }
@@ -3446,15 +3446,15 @@ class un {
3446
3446
  }
3447
3447
  _constructTransport(e) {
3448
3448
  switch (e) {
3449
- case F.WebSockets:
3449
+ case q.WebSockets:
3450
3450
  if (!this._options.WebSocket)
3451
3451
  throw new Error("'WebSocket' is not supported in your environment.");
3452
3452
  return new ln(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
3453
- case F.ServerSentEvents:
3453
+ case q.ServerSentEvents:
3454
3454
  if (!this._options.EventSource)
3455
3455
  throw new Error("'EventSource' is not supported in your environment.");
3456
3456
  return new cn(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
3457
- case F.LongPolling:
3457
+ case q.LongPolling:
3458
3458
  return new Dt(this._httpClient, this._logger, this._options);
3459
3459
  default:
3460
3460
  throw new Error(`Unknown transport: ${e}.`);
@@ -3477,23 +3477,23 @@ class un {
3477
3477
  } : this.transport.onclose = (n) => this._stopConnection(n), this.transport.connect(e, t);
3478
3478
  }
3479
3479
  _resolveTransportOrError(e, t, n, s) {
3480
- const o = F[e.transport];
3480
+ const o = q[e.transport];
3481
3481
  if (o == null)
3482
3482
  return this._logger.log(d.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
3483
3483
  if (hn(t, o))
3484
- if (e.transferFormats.map((a) => J[a]).indexOf(n) >= 0) {
3485
- if (o === F.WebSockets && !this._options.WebSocket || o === F.ServerSentEvents && !this._options.EventSource)
3486
- return this._logger.log(d.Debug, `Skipping transport '${F[o]}' because it is not supported in your environment.'`), new Mr(`'${F[o]}' is not supported in your environment.`, o);
3487
- this._logger.log(d.Debug, `Selecting transport '${F[o]}'.`);
3484
+ if (e.transferFormats.map((a) => X[a]).indexOf(n) >= 0) {
3485
+ if (o === q.WebSockets && !this._options.WebSocket || o === q.ServerSentEvents && !this._options.EventSource)
3486
+ return this._logger.log(d.Debug, `Skipping transport '${q[o]}' because it is not supported in your environment.'`), new Mr(`'${q[o]}' is not supported in your environment.`, o);
3487
+ this._logger.log(d.Debug, `Selecting transport '${q[o]}'.`);
3488
3488
  try {
3489
- return this.features.reconnect = o === F.WebSockets ? s : void 0, this._constructTransport(o);
3489
+ return this.features.reconnect = o === q.WebSockets ? s : void 0, this._constructTransport(o);
3490
3490
  } catch (a) {
3491
3491
  return a;
3492
3492
  }
3493
3493
  } else
3494
- return this._logger.log(d.Debug, `Skipping transport '${F[o]}' because it does not support the requested transfer format '${J[n]}'.`), new Error(`'${F[o]}' does not support ${J[n]}.`);
3494
+ return this._logger.log(d.Debug, `Skipping transport '${q[o]}' because it does not support the requested transfer format '${X[n]}'.`), new Error(`'${q[o]}' does not support ${X[n]}.`);
3495
3495
  else
3496
- return this._logger.log(d.Debug, `Skipping transport '${F[o]}' because it was disabled by the client.`), new Nr(`'${F[o]}' is disabled by the client.`, o);
3496
+ return this._logger.log(d.Debug, `Skipping transport '${q[o]}' because it was disabled by the client.`), new Nr(`'${q[o]}' is disabled by the client.`, o);
3497
3497
  }
3498
3498
  _isITransport(e) {
3499
3499
  return e && typeof e == "object" && "connect" in e;
@@ -3519,7 +3519,7 @@ class un {
3519
3519
  _resolveUrl(e) {
3520
3520
  if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
3521
3521
  return e;
3522
- if (!W.isBrowser)
3522
+ if (!U.isBrowser)
3523
3523
  throw new Error(`Cannot resolve '${e}'.`);
3524
3524
  const t = window.document.createElement("a");
3525
3525
  return t.href = e, this._logger.log(d.Information, `Normalizing '${e}' to '${t.href}'.`), t.href;
@@ -3589,7 +3589,7 @@ class Pe {
3589
3589
  const fn = "json";
3590
3590
  class dn {
3591
3591
  constructor() {
3592
- this.name = fn, this.version = 2, this.transferFormat = J.Text;
3592
+ this.name = fn, this.version = 2, this.transferFormat = X.Text;
3593
3593
  }
3594
3594
  /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
3595
3595
  *
@@ -3601,30 +3601,30 @@ class dn {
3601
3601
  throw new Error("Invalid input for JSON hub protocol. Expected a string.");
3602
3602
  if (!e)
3603
3603
  return [];
3604
- t === null && (t = be.instance);
3605
- const n = re.parse(e), s = [];
3604
+ t === null && (t = Se.instance);
3605
+ const n = oe.parse(e), s = [];
3606
3606
  for (const o of n) {
3607
3607
  const i = JSON.parse(o);
3608
3608
  if (typeof i.type != "number")
3609
3609
  throw new Error("Invalid payload.");
3610
3610
  switch (i.type) {
3611
- case A.Invocation:
3611
+ case I.Invocation:
3612
3612
  this._isInvocationMessage(i);
3613
3613
  break;
3614
- case A.StreamItem:
3614
+ case I.StreamItem:
3615
3615
  this._isStreamItemMessage(i);
3616
3616
  break;
3617
- case A.Completion:
3617
+ case I.Completion:
3618
3618
  this._isCompletionMessage(i);
3619
3619
  break;
3620
- case A.Ping:
3620
+ case I.Ping:
3621
3621
  break;
3622
- case A.Close:
3622
+ case I.Close:
3623
3623
  break;
3624
- case A.Ack:
3624
+ case I.Ack:
3625
3625
  this._isAckMessage(i);
3626
3626
  break;
3627
- case A.Sequence:
3627
+ case I.Sequence:
3628
3628
  this._isSequenceMessage(i);
3629
3629
  break;
3630
3630
  default:
@@ -3641,7 +3641,7 @@ class dn {
3641
3641
  * @returns {string} A string containing the serialized representation of the message.
3642
3642
  */
3643
3643
  writeMessage(e) {
3644
- return re.write(JSON.stringify(e));
3644
+ return oe.write(JSON.stringify(e));
3645
3645
  }
3646
3646
  _isInvocationMessage(e) {
3647
3647
  this._assertNotEmptyString(e.target, "Invalid payload for Invocation message."), e.invocationId !== void 0 && this._assertNotEmptyString(e.invocationId, "Invalid payload for Invocation message.");
@@ -3687,7 +3687,7 @@ function pn(r) {
3687
3687
  }
3688
3688
  class _n {
3689
3689
  configureLogging(e) {
3690
- if (U.isRequired(e, "logging"), mn(e))
3690
+ if (F.isRequired(e, "logging"), mn(e))
3691
3691
  this.logger = e;
3692
3692
  else if (typeof e == "string") {
3693
3693
  const t = pn(e);
@@ -3697,7 +3697,7 @@ class _n {
3697
3697
  return this;
3698
3698
  }
3699
3699
  withUrl(e, t) {
3700
- return U.isRequired(e, "url"), U.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
3700
+ return F.isRequired(e, "url"), F.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
3701
3701
  ...this.httpConnectionOptions,
3702
3702
  transport: t
3703
3703
  }, this;
@@ -3707,7 +3707,7 @@ class _n {
3707
3707
  * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
3708
3708
  */
3709
3709
  withHubProtocol(e) {
3710
- return U.isRequired(e, "protocol"), this.protocol = e, this;
3710
+ return F.isRequired(e, "protocol"), this.protocol = e, this;
3711
3711
  }
3712
3712
  withAutomaticReconnect(e) {
3713
3713
  if (this.reconnectPolicy)
@@ -3719,14 +3719,14 @@ class _n {
3719
3719
  * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
3720
3720
  */
3721
3721
  withServerTimeout(e) {
3722
- return U.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
3722
+ return F.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
3723
3723
  }
3724
3724
  /** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
3725
3725
  *
3726
3726
  * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
3727
3727
  */
3728
3728
  withKeepAliveInterval(e) {
3729
- return U.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
3729
+ return F.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
3730
3730
  }
3731
3731
  /** Enables and configures options for the Stateful Reconnect feature.
3732
3732
  *
@@ -3744,7 +3744,7 @@ class _n {
3744
3744
  if (e.logger === void 0 && (e.logger = this.logger), !this.url)
3745
3745
  throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
3746
3746
  const t = new un(this.url, e);
3747
- return et.create(t, this.logger || be.instance, this.protocol || new dn(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
3747
+ return et.create(t, this.logger || Se.instance, this.protocol || new dn(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
3748
3748
  }
3749
3749
  }
3750
3750
  function mn(r) {
@@ -3825,7 +3825,7 @@ const Sn = zt(
3825
3825
  * This source code is licensed under the ISC license.
3826
3826
  * See the LICENSE file in the root directory of this source tree.
3827
3827
  */
3828
- const se = (r, e) => {
3828
+ const ae = (r, e) => {
3829
3829
  const t = zt(
3830
3830
  ({ className: n, ...s }, o) => Ge(Sn, {
3831
3831
  ref: o,
@@ -3859,7 +3859,7 @@ const En = [
3859
3859
  ["path", { d: "M8 18v-2", key: "qcmpov" }],
3860
3860
  ["path", { d: "M8 7V6", key: "1nbb54" }],
3861
3861
  ["circle", { cx: "8", cy: "20", r: "2", key: "ckkr5m" }]
3862
- ], Cn = se("file-archive", En);
3862
+ ], Cn = ae("file-archive", En);
3863
3863
  /**
3864
3864
  * @license lucide-react v0.562.0 - ISC
3865
3865
  *
@@ -3883,7 +3883,7 @@ const xn = [
3883
3883
  "path",
3884
3884
  { d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1", key: "mpwhp6" }
3885
3885
  ]
3886
- ], Tn = se("file-braces", xn);
3886
+ ], Tn = ae("file-braces", xn);
3887
3887
  /**
3888
3888
  * @license lucide-react v0.562.0 - ISC
3889
3889
  *
@@ -3901,7 +3901,7 @@ const kn = [
3901
3901
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
3902
3902
  ["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
3903
3903
  ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
3904
- ], Re = se("file-code", kn);
3904
+ ], Re = ae("file-code", kn);
3905
3905
  /**
3906
3906
  * @license lucide-react v0.562.0 - ISC
3907
3907
  *
@@ -3920,7 +3920,7 @@ const Pn = [
3920
3920
  ["path", { d: "M10 16h2v6", key: "1bxocy" }],
3921
3921
  ["path", { d: "M10 22h4", key: "ceow96" }],
3922
3922
  ["rect", { x: "2", y: "16", width: "4", height: "6", rx: "2", key: "r45zd0" }]
3923
- ], Rn = se("file-digit", Pn);
3923
+ ], Rn = ae("file-digit", Pn);
3924
3924
  /**
3925
3925
  * @license lucide-react v0.562.0 - ISC
3926
3926
  *
@@ -3943,7 +3943,7 @@ const In = [
3943
3943
  key: "1etmh7"
3944
3944
  }
3945
3945
  ]
3946
- ], An = se("file-headphone", In);
3946
+ ], An = ae("file-headphone", In);
3947
3947
  /**
3948
3948
  * @license lucide-react v0.562.0 - ISC
3949
3949
  *
@@ -3961,7 +3961,7 @@ const jn = [
3961
3961
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
3962
3962
  ["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
3963
3963
  ["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
3964
- ], On = se("file-image", jn);
3964
+ ], On = ae("file-image", jn);
3965
3965
  /**
3966
3966
  * @license lucide-react v0.562.0 - ISC
3967
3967
  *
@@ -3984,7 +3984,7 @@ const Dn = [
3984
3984
  key: "1tzo1f"
3985
3985
  }
3986
3986
  ]
3987
- ], Mn = se("file-play", Dn);
3987
+ ], Mn = ae("file-play", Dn);
3988
3988
  /**
3989
3989
  * @license lucide-react v0.562.0 - ISC
3990
3990
  *
@@ -4004,7 +4004,7 @@ const Nn = [
4004
4004
  ["path", { d: "M14 13h2", key: "un5t4a" }],
4005
4005
  ["path", { d: "M8 17h2", key: "2yhykz" }],
4006
4006
  ["path", { d: "M14 17h2", key: "10kma7" }]
4007
- ], $t = se("file-spreadsheet", Nn);
4007
+ ], $t = ae("file-spreadsheet", Nn);
4008
4008
  /**
4009
4009
  * @license lucide-react v0.562.0 - ISC
4010
4010
  *
@@ -4023,7 +4023,7 @@ const $n = [
4023
4023
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
4024
4024
  ["path", { d: "M16 13H8", key: "t4e002" }],
4025
4025
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
4026
- ], Lt = se("file-text", $n);
4026
+ ], Lt = ae("file-text", $n);
4027
4027
  /**
4028
4028
  * @license lucide-react v0.562.0 - ISC
4029
4029
  *
@@ -4042,7 +4042,7 @@ const Ln = [
4042
4042
  ["path", { d: "M11 18h2", key: "12mj7e" }],
4043
4043
  ["path", { d: "M12 12v6", key: "3ahymv" }],
4044
4044
  ["path", { d: "M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5", key: "qbrxap" }]
4045
- ], Bn = se("file-type", Ln);
4045
+ ], Bn = ae("file-type", Ln);
4046
4046
  /**
4047
4047
  * @license lucide-react v0.562.0 - ISC
4048
4048
  *
@@ -4058,7 +4058,7 @@ const zn = [
4058
4058
  }
4059
4059
  ],
4060
4060
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
4061
- ], Bt = se("file", zn);
4061
+ ], Bt = ae("file", zn);
4062
4062
  /**
4063
4063
  * @license lucide-react v0.562.0 - ISC
4064
4064
  *
@@ -4069,7 +4069,7 @@ const Hn = [
4069
4069
  ["path", { d: "M2 3h20", key: "91anmk" }],
4070
4070
  ["path", { d: "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3", key: "2k9sn8" }],
4071
4071
  ["path", { d: "m7 21 5-5 5 5", key: "bip4we" }]
4072
- ], Wn = se("presentation", Hn);
4072
+ ], Wn = ae("presentation", Hn);
4073
4073
  function Un(r) {
4074
4074
  return Oe({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { id: "Square_Remove" }, child: [{ tag: "g", attr: {}, child: [{ tag: "path", attr: { d: "M18.437,20.937H5.563a2.5,2.5,0,0,1-2.5-2.5V5.563a2.5,2.5,0,0,1,2.5-2.5H18.437a2.5,2.5,0,0,1,2.5,2.5V18.437A2.5,2.5,0,0,1,18.437,20.937ZM5.563,4.063a1.5,1.5,0,0,0-1.5,1.5V18.437a1.5,1.5,0,0,0,1.5,1.5H18.437a1.5,1.5,0,0,0,1.5-1.5V5.563a1.5,1.5,0,0,0-1.5-1.5Z" }, child: [] }, { tag: "path", attr: { d: "M13.767,14.477a.5.5,0,0,0,.71-.71L12.707,12l1.77-1.77a.5.5,0,0,0-.71-.7L12,11.3l-1.77-1.77a.5.5,0,0,0-.7.7c.59.59,1.17,1.18,1.77,1.77l-1.77,1.77c-.46.45.25,1.16.7.71L12,12.707Z" }, child: [] }] }] }] })(r);
4075
4075
  }
@@ -4214,7 +4214,7 @@ const Fn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
4214
4214
  textTruncateSize: "100px",
4215
4215
  previewSize: "h-23 w-24"
4216
4216
  }
4217
- }, { iconSize: l, textSize: h, previewSize: f } = c[e], g = i(r.name), E = a(g);
4217
+ }, { iconSize: l, textSize: h, previewSize: f } = c[e], g = i(r.name), S = a(g);
4218
4218
  return /* @__PURE__ */ m.jsx("div", { className: `flex flex-col items-center ${t} mt-2 gap-1`, children: /* @__PURE__ */ m.jsxs(
4219
4219
  "div",
4220
4220
  {
@@ -4233,7 +4233,7 @@ const Fn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
4233
4233
  )
4234
4234
  }
4235
4235
  ) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
4236
- /* @__PURE__ */ m.jsx("div", { className: "mb-2 transform transition-transform duration-200 group-hover:scale-110", children: ae.cloneElement(E, { size: l }) }),
4236
+ /* @__PURE__ */ m.jsx("div", { className: "mb-2 transform transition-transform duration-200 group-hover:scale-110", children: le.cloneElement(S, { size: l }) }),
4237
4237
  n && g && /* @__PURE__ */ m.jsx(
4238
4238
  "div",
4239
4239
  {
@@ -4294,165 +4294,165 @@ const Yn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
4294
4294
  size: i = "large",
4295
4295
  filePreviewMode: a = "grid"
4296
4296
  }) => {
4297
- const [c, l] = te(!0), [h, f] = te(160), [g, E] = te(""), [w, p] = te(
4297
+ const [c, l] = re(!0), [h, f] = re(160), [g, S] = re(""), [w, p] = re(
4298
4298
  "w-32 h-32 md:w-40 md:h-40"
4299
- ), [j, k] = te("w-2 h-2"), [L, D] = te("sm"), [M, y] = te(!1), [q, K] = Dr(
4299
+ ), [A, P] = re("w-2 h-2"), [B, M] = re("sm"), [N, v] = re(!1), [V, Z] = Dr(
4300
4300
  "qrcode-last-session-ids",
4301
4301
  []
4302
- ), [ne, Q] = te(!1), X = me(null), V = me(null), Z = me(q), G = me(""), Y = me(0), [ee, z] = te([]);
4303
- he(() => {
4304
- const v = [...new Set(q)];
4305
- Z.current = v;
4306
- }, [q]), he(() => {
4302
+ ), [se, J] = re(!1), G = ve(null), Y = ve(null), ee = ve(V), K = ve(""), Q = ve(0), [te, z] = re([]), [ie, ne] = re(!1);
4303
+ fe(() => {
4304
+ const x = [...new Set(V)];
4305
+ ee.current = x;
4306
+ }, [V]), fe(() => {
4307
4307
  if (Rr(r))
4308
4308
  return;
4309
- let v = !1, C = null;
4309
+ let x = !1, k = null;
4310
4310
  return (async () => {
4311
- const R = await b();
4312
- if (v) return;
4313
- const B = await u(R);
4311
+ const y = await E();
4312
+ if (x) return;
4313
+ const W = await C(y);
4314
4314
  try {
4315
- if (await B?.start(), v) {
4316
- await B?.stop();
4315
+ if (await W?.start(), x) {
4316
+ await W?.stop();
4317
4317
  return;
4318
4318
  }
4319
- C = B, X.current = B, Q(!0), l(!1), y(!1), console.log("SignalR Connected successfully");
4320
- } catch (S) {
4321
- v || console.error(S);
4319
+ k = W, G.current = W, J(!0), l(!1), v(!1), console.log("SignalR Connected successfully");
4320
+ } catch (ue) {
4321
+ x || console.error(ue);
4322
4322
  }
4323
4323
  })(), () => {
4324
- v = !0, C && C.stop().catch(console.error), X.current === C && (X.current = null);
4324
+ x = !0, k && k.stop().catch(console.error), G.current === k && (G.current = null);
4325
4325
  };
4326
- }, [r]), he(() => {
4326
+ }, [r]), fe(() => {
4327
4327
  switch (i) {
4328
4328
  case "small":
4329
- p("w-16 h-16 md:w-20 md:h-20"), k("w-2 h-2"), f(200), D("xlg");
4329
+ p("w-16 h-16 md:w-20 md:h-20"), P("w-2 h-2"), f(200), M("xlg");
4330
4330
  break;
4331
4331
  case "medium":
4332
- p("w-24 h-24 md:w-30 md:h-30"), k("w-2 h-2"), f(200), D("xlg");
4332
+ p("w-24 h-24 md:w-30 md:h-30"), P("w-2 h-2"), f(200), M("xlg");
4333
4333
  break;
4334
4334
  case "large":
4335
- p("w-32 h-32 md:w-40 md:h-40"), k("w-2 h-2"), f(200), D("xlg");
4335
+ p("w-32 h-32 md:w-40 md:h-40"), P("w-2 h-2"), f(200), M("xlg");
4336
4336
  break;
4337
4337
  case "xlarge":
4338
- p("w-40 h-40 md:w-48 md:h-48"), k("w-2 h-2"), f(200), D("xlg");
4338
+ p("w-40 h-40 md:w-48 md:h-48"), P("w-2 h-2"), f(200), M("xlg");
4339
4339
  break;
4340
4340
  }
4341
4341
  return () => {
4342
4342
  };
4343
4343
  }, [i]);
4344
- async function oe() {
4344
+ async function he() {
4345
4345
  try {
4346
- if (!G.current || Ar(G.current, 60)) {
4347
- const v = await Rt(e, {
4346
+ if (!K.current || Ar(K.current, 60)) {
4347
+ const x = await Rt(e, {
4348
4348
  timeout: 16e4
4349
4349
  });
4350
- G.current = v.access_token;
4350
+ K.current = x.access_token;
4351
4351
  }
4352
- return G.current;
4353
- } catch (v) {
4354
- throw console.error("Error fetching access token:", v), v;
4352
+ return K.current;
4353
+ } catch (x) {
4354
+ throw console.error("Error fetching access token:", x), x;
4355
4355
  } finally {
4356
4356
  }
4357
4357
  }
4358
- const le = async () => {
4359
- if (!V.current) {
4358
+ const _ = async () => {
4359
+ if (!Y.current) {
4360
4360
  l(!0);
4361
4361
  try {
4362
- const v = await Rt(
4362
+ const x = await Rt(
4363
4363
  r,
4364
- { lastSessionIds: Z.current },
4364
+ { lastSessionIds: ee.current },
4365
4365
  {
4366
4366
  timeout: 3e5
4367
4367
  }
4368
4368
  );
4369
- V.current = v;
4370
- const C = I(v);
4371
- E(C), K([v.sessionId]);
4369
+ Y.current = x;
4370
+ const k = j(x);
4371
+ S(k), Z([x.sessionId]);
4372
4372
  } catch {
4373
- M || (y(!0), l(!1));
4373
+ N || (v(!0), l(!1));
4374
4374
  } finally {
4375
4375
  }
4376
4376
  }
4377
- }, ue = async () => {
4378
- V.current && (await Pr(
4379
- `${r}?session_id=${V.current.sessionId}`
4380
- ), Q(!1), y(!1), z([]), V.current = null, X.current?.stop(), X.current = null);
4377
+ }, u = async () => {
4378
+ Y.current && (J(!1), v(!1), z([]), Y.current = null, G.current?.stop(), G.current = null);
4381
4379
  };
4382
- function _(v) {
4383
- return typeof v == "string" && v.trim().length === 0;
4380
+ function b(x) {
4381
+ return typeof x == "string" && x.trim().length === 0;
4384
4382
  }
4385
- const u = async (v) => {
4386
- if (_(v)) {
4383
+ const C = async (x) => {
4384
+ if (b(x)) {
4387
4385
  console.log("Hub URL is empty, cannot create connection.");
4388
4386
  return;
4389
4387
  }
4390
- let C;
4388
+ let k;
4391
4389
  try {
4392
- C = new _n().withUrl(v, {
4390
+ k = new _n().withUrl(x, {
4393
4391
  withCredentials: !1,
4394
4392
  transport: 1,
4395
4393
  //prefer wss
4396
- accessTokenFactory: () => oe()
4394
+ accessTokenFactory: () => he()
4397
4395
  }).configureLogging(d.Information).withAutomaticReconnect({
4398
- nextRetryDelayInMilliseconds: (P) => Math.min(
4396
+ nextRetryDelayInMilliseconds: (D) => Math.min(
4399
4397
  16e3,
4400
- Math.pow(2, P.previousRetryCount) * 1e3
4398
+ Math.pow(2, D.previousRetryCount) * 1e3
4401
4399
  )
4402
- }).build(), C.on("FileAdded", (P) => {
4400
+ }).build(), k.on("FileAdded", (D) => {
4403
4401
  z(
4404
- (R) => R.some((B) => B.name === P.name) ? R : [...R, P]
4402
+ (y) => y.some((W) => W.name === D.name) ? y : [...y, D]
4405
4403
  );
4406
- }), C.on("FileRemoved", (P) => {
4407
- z((R) => R.some((B) => B.name === P.name) ? R.filter((B) => B.name !== P.name) : R);
4408
- }), C.on("FileProgress", (P, R) => {
4404
+ }), k.on("FileRemoved", (D) => {
4405
+ z((y) => y.some((W) => W.name === D.name) ? y.filter((W) => W.name !== D.name) : y);
4406
+ }), k.on("FileProgress", (D, y) => {
4409
4407
  z(
4410
- (B) => B.map(
4411
- (S) => S.id === P ? { ...S, progress: R } : S
4408
+ (W) => W.map(
4409
+ (ue) => ue.id === D ? { ...ue, progress: y } : ue
4412
4410
  )
4413
4411
  );
4414
- }), C.on("FilesCleared", () => {
4412
+ }), k.on("FilesCleared", () => {
4415
4413
  z([]);
4416
- }), C.on("sessionDisconnected", (P) => {
4417
- ue();
4418
- }), C.on("sessionReset", (P) => {
4419
- z([]);
4420
- }), C.onreconnecting((P) => {
4421
- console.log("Connection lost, attempting to reconnect...", P), Y.current >= 2 ? Q(!1) : Y.current += 1, console.log("Retry count:", Y.current);
4422
- }), C.onreconnected((P) => {
4423
- console.log("Connection re-established:", P), Q(!0), l(!1), y(!1), Y.current = 0;
4424
- }), C.onclose((P) => {
4425
- console.log("Connection closed", P), Q(!1), z([]);
4426
- }), C.serverTimeoutInMilliseconds = 3e4, C.keepAliveIntervalInMilliseconds = 15e3;
4427
- } catch (P) {
4428
- console.error("SignalR Connection failed:", P), l(!1), y(!0);
4414
+ }), k.on("sessionDisconnected", (D) => {
4415
+ ne(!1), u();
4416
+ }), k.on("sessionReset", (D) => {
4417
+ ne(!1), z([]);
4418
+ }), k.onreconnecting((D) => {
4419
+ console.log("Connection lost, attempting to reconnect...", D), Q.current >= 2 ? J(!1) : Q.current += 1, console.log("Retry count:", Q.current);
4420
+ }), k.onreconnected((D) => {
4421
+ console.log("Connection re-established:", D), J(!0), l(!1), v(!1), ne(!1), Q.current = 0;
4422
+ }), k.onclose((D) => {
4423
+ console.log("Connection closed", D), ne(!1), J(!1), z([]);
4424
+ }), k.serverTimeoutInMilliseconds = 3e4, k.keepAliveIntervalInMilliseconds = 15e3;
4425
+ } catch (D) {
4426
+ console.error("SignalR Connection failed:", D), l(!1), v(!0);
4429
4427
  } finally {
4430
4428
  }
4431
- return C;
4432
- }, b = async () => (await le(), V.current.hubUrl), x = Zt(
4429
+ return k;
4430
+ }, E = async () => (await _(), Y.current.hubUrl), R = Zt(
4433
4431
  Ir(async () => {
4434
- var v = await b(), C = await u(v);
4435
- return C;
4432
+ var x = await E(), k = await C(x);
4433
+ return k;
4436
4434
  }, 1e3),
4437
4435
  []
4438
- ), O = async () => {
4439
- z([]), await ue(), X.current = await x(), X.current?.start(), Q(!0), l(!1), y(!1);
4436
+ ), T = async () => {
4437
+ z([]), ie || (await Pr(
4438
+ `${r}?session_id=${Y?.current?.sessionId}`
4439
+ ), ne(!0)), await u(), G.current = await R(), G.current?.start(), J(!0), l(!1), v(!1);
4440
4440
  };
4441
- function I(v) {
4442
- return new URL(v.deviceLoginUrl).toString();
4441
+ function j(x) {
4442
+ return new URL(x.deviceLoginUrl).toString();
4443
4443
  }
4444
4444
  return /* @__PURE__ */ m.jsxs("section", { className: "p-2", children: [
4445
4445
  c && /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 bg-white/90 flex items-center justify-center rounded-md z-10", children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center text-center mt-0 gap-2", children: [
4446
4446
  /* @__PURE__ */ m.jsx("div", { className: "animate-spin rounded-full h-6 w-6 border-t-2 border-blue-800 border-dashed" }),
4447
4447
  /* @__PURE__ */ m.jsx("div", { className: "text-center h-10 w-10", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-900", children: "Loading..." }) })
4448
4448
  ] }) }),
4449
- !c && M && /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 bg-white/90 flex items-center justify-center rounded-md z-10", children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center text-center mt-5 gap-2", children: [
4449
+ !c && N && /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 bg-white/90 flex items-center justify-center rounded-md z-10", children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center text-center mt-5 gap-2", children: [
4450
4450
  /* @__PURE__ */ m.jsx("div", { className: "text-center text-xs", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-900", children: "Cannot create session" }) }),
4451
4451
  /* @__PURE__ */ m.jsx(
4452
4452
  "button",
4453
4453
  {
4454
4454
  onClick: async () => {
4455
- await O();
4455
+ await T();
4456
4456
  },
4457
4457
  className: "bg-blue-300 text-white py-1 px-2 rounded-md hover:bg-blue-500 transition-colors",
4458
4458
  children: /* @__PURE__ */ m.jsx(It, { className: "h-4 w-4" })
@@ -4466,7 +4466,7 @@ const Yn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
4466
4466
  {
4467
4467
  "aria-label": "QR Code for file upload",
4468
4468
  onClick: async () => {
4469
- o && await O();
4469
+ o && await T();
4470
4470
  },
4471
4471
  className: `bg-white p-2 rounded-2xl border-2 border-dashed ${w} flex
4472
4472
  border-gray-300 items-center justify-center transition-all duration-300 hover:shadow-lg hover:scale-105`,
@@ -4483,8 +4483,8 @@ const Yn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
4483
4483
  s && /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ m.jsx(
4484
4484
  "div",
4485
4485
  {
4486
- className: `bg-white ${j} rounded flex items-center justify-center`,
4487
- children: /* @__PURE__ */ m.jsx("span", { className: "text-xs font-bold", children: /* @__PURE__ */ m.jsx(kr, { size: i, isConnected: ne }) })
4486
+ className: `bg-white ${A} rounded flex items-center justify-center`,
4487
+ children: /* @__PURE__ */ m.jsx("span", { className: "text-xs font-bold", children: /* @__PURE__ */ m.jsx(kr, { size: i, isConnected: se }) })
4488
4488
  }
4489
4489
  ) }) })
4490
4490
  ] }),
@@ -4499,7 +4499,7 @@ const Yn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
4499
4499
  "button",
4500
4500
  {
4501
4501
  onClick: async () => {
4502
- await O();
4502
+ await T();
4503
4503
  },
4504
4504
  className: "bg-gray-500 text-white py-2 px-4 rounded-md hover:bg-blue-800 transition-colors flex flex-row items-center",
4505
4505
  children: [
@@ -4509,14 +4509,14 @@ const Yn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
4509
4509
  ]
4510
4510
  }
4511
4511
  ) }),
4512
- /* @__PURE__ */ m.jsx("div", { className: "flex flex-row justify-center gap-1 flex-wrap", children: a === "grid" ? ee.map((v, C) => /* @__PURE__ */ m.jsx(
4512
+ /* @__PURE__ */ m.jsx("div", { className: "flex flex-row justify-center gap-1 flex-wrap", children: a === "grid" ? te.map((x, k) => /* @__PURE__ */ m.jsx(
4513
4513
  qn,
4514
4514
  {
4515
- file: v,
4516
- size: L
4515
+ file: x,
4516
+ size: B
4517
4517
  },
4518
- C
4519
- )) : /* @__PURE__ */ m.jsx(Yn, { files: ee }) })
4518
+ k
4519
+ )) : /* @__PURE__ */ m.jsx(Yn, { files: te }) })
4520
4520
  ] })
4521
4521
  ] });
4522
4522
  };