@obb871001/api-integration-sdk 1.0.36 → 1.0.37

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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useQueries as tt, QueryClient as nt, QueryClientProvider as at } from "@tanstack/react-query";
2
- import ye, { createContext as ut, useContext as ot, useCallback as de, useRef as ir, useMemo as Je, useEffect as Ce } from "react";
2
+ import ye, { createContext as ut, useContext as ot, useCallback as de, useRef as ir, useMemo as Ge, useEffect as Ce } from "react";
3
3
  import ct from "axios";
4
4
  import { get as we } from "lodash";
5
5
  import it from "react-dom";
@@ -61,7 +61,7 @@ const lt = () => {
61
61
  userFavoriteGameApi: _,
62
62
  userCurrencyExchangeApi: v
63
63
  };
64
- }, Nt = () => {
64
+ }, kt = () => {
65
65
  const { getToken: r } = Pr(), { userInfoApi: g } = lt(), O = tt({
66
66
  queries: [
67
67
  {
@@ -77,8 +77,8 @@ const lt = () => {
77
77
  function ft(r) {
78
78
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
79
79
  }
80
- var Le = {}, F = {}, Ue = {}, sr;
81
- function V() {
80
+ var je = {}, F = {}, Ue = {}, sr;
81
+ function H() {
82
82
  return sr || (sr = 1, (function(r) {
83
83
  Object.defineProperty(r, "__esModule", { value: !0 }), r.isEventSourceSupported = r.isReactNative = r.ReadyState = r.DEFAULT_HEARTBEAT = r.UNPARSABLE_JSON_OBJECT = r.DEFAULT_RECONNECT_INTERVAL_MS = r.DEFAULT_RECONNECT_LIMIT = r.SOCKET_IO_PING_CODE = r.SOCKET_IO_PATH = r.SOCKET_IO_PING_INTERVAL = r.DEFAULT_EVENT_SOURCE_OPTIONS = r.EMPTY_EVENT_HANDLERS = r.DEFAULT_OPTIONS = void 0;
84
84
  var g = 1, O = 1e3 * g;
@@ -105,7 +105,7 @@ function V() {
105
105
  })(Ue)), Ue;
106
106
  }
107
107
  var _e = {}, We = {}, lr;
108
- function Ge() {
108
+ function Je() {
109
109
  return lr || (lr = 1, (function(r) {
110
110
  Object.defineProperty(r, "__esModule", { value: !0 }), r.resetWebSockets = r.sharedWebSockets = void 0, r.sharedWebSockets = {};
111
111
  var g = function(O) {
@@ -118,11 +118,11 @@ function Ge() {
118
118
  r.resetWebSockets = g;
119
119
  })(We)), We;
120
120
  }
121
- var te = {}, B = {}, fr;
121
+ var te = {}, K = {}, fr;
122
122
  function Ve() {
123
- if (fr) return B;
124
- fr = 1, Object.defineProperty(B, "__esModule", { value: !0 }), B.setUpSocketIOPing = B.appendQueryParams = B.parseSocketIOUrl = void 0;
125
- var r = V(), g = function(v) {
123
+ if (fr) return K;
124
+ fr = 1, Object.defineProperty(K, "__esModule", { value: !0 }), K.setUpSocketIOPing = K.appendQueryParams = K.parseSocketIOUrl = void 0;
125
+ var r = H(), g = function(v) {
126
126
  if (v) {
127
127
  var _ = /^https|wss/.test(v), S = v.replace(/^(https?|wss?)(:\/\/)?/, ""), d = S.replace(/\/$/, ""), c = _ ? "wss" : "ws";
128
128
  return "".concat(c, "://").concat(d).concat(r.SOCKET_IO_PATH);
@@ -132,7 +132,7 @@ function Ve() {
132
132
  }
133
133
  return v;
134
134
  };
135
- B.parseSocketIOUrl = g;
135
+ K.parseSocketIOUrl = g;
136
136
  var O = function(v, _) {
137
137
  _ === void 0 && (_ = {});
138
138
  var S = /\?([\w]+=[\w]+)/, d = S.test(v), c = "".concat(Object.entries(_).reduce(function(l, u) {
@@ -141,7 +141,7 @@ function Ve() {
141
141
  }, "").slice(0, -1));
142
142
  return "".concat(v).concat(d ? "&" : "?").concat(c);
143
143
  };
144
- B.appendQueryParams = O;
144
+ K.appendQueryParams = O;
145
145
  var h = function(v, _) {
146
146
  _ === void 0 && (_ = r.SOCKET_IO_PING_INTERVAL);
147
147
  var S = function() {
@@ -149,13 +149,13 @@ function Ve() {
149
149
  };
150
150
  return window.setInterval(S, _);
151
151
  };
152
- return B.setUpSocketIOPing = h, B;
152
+ return K.setUpSocketIOPing = h, K;
153
153
  }
154
154
  var Ae = {}, vr;
155
- function kr() {
155
+ function Ir() {
156
156
  if (vr) return Ae;
157
157
  vr = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.heartbeat = O;
158
- var r = V();
158
+ var r = H();
159
159
  function g(h) {
160
160
  return Array.isArray(h) ? h.reduce(function(v, _) {
161
161
  return v.current > _.current ? v : _;
@@ -181,7 +181,7 @@ function kr() {
181
181
  return Ae;
182
182
  }
183
183
  var Ee = {}, Fe = {}, dr;
184
- function $e() {
184
+ function He() {
185
185
  return dr || (dr = 1, (function(r) {
186
186
  Object.defineProperty(r, "__esModule", { value: !0 }), r.resetSubscribers = r.removeSubscriber = r.addSubscriber = r.hasSubscribers = r.getSubscribers = void 0;
187
187
  var g = {}, O = [], h = function(c) {
@@ -212,10 +212,10 @@ function $e() {
212
212
  })(Fe)), Fe;
213
213
  }
214
214
  var _r;
215
- function He() {
215
+ function $e() {
216
216
  if (_r) return Ee;
217
217
  _r = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.assertIsWebSocket = O, Ee.resetGlobalState = h;
218
- var r = Ge(), g = $e();
218
+ var r = Je(), g = He();
219
219
  function O(v, _) {
220
220
  if (!_ && !(v instanceof WebSocket))
221
221
  throw new Error("");
@@ -239,7 +239,7 @@ function vt() {
239
239
  }, r.apply(this, arguments);
240
240
  };
241
241
  Object.defineProperty(te, "__esModule", { value: !0 }), te.attachListeners = void 0;
242
- var g = Ve(), O = kr(), h = V(), v = He(), _ = function(u, a, i, t) {
242
+ var g = Ve(), O = Ir(), h = H(), v = $e(), _ = function(u, a, i, t) {
243
243
  u.onmessage = function(n) {
244
244
  var f;
245
245
  a.current.onMessage && a.current.onMessage(n), typeof t?.current == "number" && (t.current = Date.now()), !(typeof a.current.filter == "function" && a.current.filter(n) !== !0) && (a.current.heartbeat && typeof a.current.heartbeat != "boolean" && ((f = a.current.heartbeat) === null || f === void 0 ? void 0 : f.returnMessage) === n.data || i(n));
@@ -262,10 +262,10 @@ function vt() {
262
262
  if (a.current.onClose && a.current.onClose(E), i(h.ReadyState.CLOSED), a.current.shouldReconnect && a.current.shouldReconnect(E)) {
263
263
  var y = (o = a.current.reconnectAttempts) !== null && o !== void 0 ? o : h.DEFAULT_RECONNECT_LIMIT;
264
264
  if (n.current < y) {
265
- var m = typeof a.current.reconnectInterval == "function" ? a.current.reconnectInterval(n.current) : a.current.reconnectInterval;
265
+ var C = typeof a.current.reconnectInterval == "function" ? a.current.reconnectInterval(n.current) : a.current.reconnectInterval;
266
266
  f = window.setTimeout(function() {
267
267
  n.current++, t();
268
- }, m ?? h.DEFAULT_RECONNECT_INTERVAL_MS);
268
+ }, C ?? h.DEFAULT_RECONNECT_INTERVAL_MS);
269
269
  } else
270
270
  a.current.onReconnectStop && a.current.onReconnectStop(y), console.warn("Max reconnect attempts of ".concat(y, " exceeded"));
271
271
  }
@@ -288,9 +288,9 @@ function vt() {
288
288
  return f && window.clearTimeout(f);
289
289
  };
290
290
  }, l = function(u, a, i, t, n, f, E) {
291
- var o = a.setLastMessage, y = a.setReadyState, m, M, T;
292
- return i.current.fromSocketIO && (m = (0, g.setUpSocketIOPing)(E)), _(u, i, o, f), S(u, i, y, n, f), M = d(u, i, y, t, n), T = c(u, i, y, t, n), function() {
293
- y(h.ReadyState.CLOSING), M(), T(), u.close(), m && clearInterval(m);
291
+ var o = a.setLastMessage, y = a.setReadyState, C, P, T;
292
+ return i.current.fromSocketIO && (C = (0, g.setUpSocketIOPing)(E)), _(u, i, o, f), S(u, i, y, n, f), P = d(u, i, y, t, n), T = c(u, i, y, t, n), function() {
293
+ y(h.ReadyState.CLOSING), P(), T(), u.close(), C && clearInterval(C);
294
294
  };
295
295
  };
296
296
  return te.attachListeners = l, te;
@@ -309,7 +309,7 @@ function dt() {
309
309
  }, r.apply(this, arguments);
310
310
  };
311
311
  Object.defineProperty(ne, "__esModule", { value: !0 }), ne.attachSharedListeners = void 0;
312
- var g = Ge(), O = V(), h = $e(), v = Ve(), _ = kr(), S = function(a, i, t) {
312
+ var g = Je(), O = H(), h = He(), v = Ve(), _ = Ir(), S = function(a, i, t) {
313
313
  a.onmessage = function(n) {
314
314
  (0, h.getSubscribers)(i).forEach(function(f) {
315
315
  var E;
@@ -361,7 +361,7 @@ var hr;
361
361
  function _t() {
362
362
  if (hr) return _e;
363
363
  hr = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.createOrJoinSocket = void 0;
364
- var r = Ge(), g = V(), O = vt(), h = dt(), v = $e(), _ = function(d, c, l, u, a) {
364
+ var r = Je(), g = H(), O = vt(), h = dt(), v = He(), _ = function(d, c, l, u, a) {
365
365
  return function() {
366
366
  if ((0, v.removeSubscriber)(d, c), !(0, v.hasSubscribers)(d)) {
367
367
  try {
@@ -400,10 +400,10 @@ function _t() {
400
400
  };
401
401
  return _e.createOrJoinSocket = S, _e;
402
402
  }
403
- var K = {}, yr;
403
+ var x = {}, yr;
404
404
  function Et() {
405
405
  return yr || (yr = 1, (function(r) {
406
- var g = K && K.__awaiter || function(c, l, u, a) {
406
+ var g = x && x.__awaiter || function(c, l, u, a) {
407
407
  function i(t) {
408
408
  return t instanceof u ? t : new u(function(n) {
409
409
  n(t);
@@ -413,15 +413,15 @@ function Et() {
413
413
  function f(y) {
414
414
  try {
415
415
  o(a.next(y));
416
- } catch (m) {
417
- n(m);
416
+ } catch (C) {
417
+ n(C);
418
418
  }
419
419
  }
420
420
  function E(y) {
421
421
  try {
422
422
  o(a.throw(y));
423
- } catch (m) {
424
- n(m);
423
+ } catch (C) {
424
+ n(C);
425
425
  }
426
426
  }
427
427
  function o(y) {
@@ -429,7 +429,7 @@ function Et() {
429
429
  }
430
430
  o((a = a.apply(c, l || [])).next());
431
431
  });
432
- }, O = K && K.__generator || function(c, l) {
432
+ }, O = x && x.__generator || function(c, l) {
433
433
  var u = { label: 0, sent: function() {
434
434
  if (t[0] & 1) throw t[1];
435
435
  return t[1];
@@ -488,13 +488,13 @@ function Et() {
488
488
  if (o[0] & 5) throw o[1];
489
489
  return { value: o[0] ? o[1] : void 0, done: !0 };
490
490
  }
491
- }, h = K && K.__spreadArray || function(c, l, u) {
491
+ }, h = x && x.__spreadArray || function(c, l, u) {
492
492
  if (u || arguments.length === 2) for (var a = 0, i = l.length, t; a < i; a++)
493
493
  (t || !(a in l)) && (t || (t = Array.prototype.slice.call(l, 0, a)), t[a] = l[a]);
494
494
  return c.concat(t || Array.prototype.slice.call(l));
495
495
  };
496
496
  Object.defineProperty(r, "__esModule", { value: !0 }), r.getUrl = void 0;
497
- var v = Ve(), _ = V(), S = function(c) {
497
+ var v = Ve(), _ = H(), S = function(c) {
498
498
  return new Promise(function(l) {
499
499
  return window.setTimeout(l, c);
500
500
  });
@@ -502,7 +502,7 @@ function Et() {
502
502
  for (var u = [], a = 2; a < arguments.length; a++)
503
503
  u[a - 2] = arguments[a];
504
504
  return g(void 0, h([c, l], u, !0), void 0, function(i, t, n) {
505
- var f, E, o, y, m, M, T, A;
505
+ var f, E, o, y, C, P, T, A;
506
506
  return n === void 0 && (n = 0), O(this, function(k) {
507
507
  switch (k.label) {
508
508
  case 0:
@@ -513,7 +513,7 @@ function Et() {
513
513
  case 2:
514
514
  return f = k.sent(), [3, 9];
515
515
  case 3:
516
- return k.sent(), t.current.retryOnError ? (E = (M = t.current.reconnectAttempts) !== null && M !== void 0 ? M : _.DEFAULT_RECONNECT_LIMIT, n < E ? (o = typeof t.current.reconnectInterval == "function" ? t.current.reconnectInterval(n) : t.current.reconnectInterval, [4, S(o ?? _.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
516
+ return k.sent(), t.current.retryOnError ? (E = (P = t.current.reconnectAttempts) !== null && P !== void 0 ? P : _.DEFAULT_RECONNECT_LIMIT, n < E ? (o = typeof t.current.reconnectInterval == "function" ? t.current.reconnectInterval(n) : t.current.reconnectInterval, [4, S(o ?? _.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
517
517
  case 4:
518
518
  return k.sent(), [2, (0, r.getUrl)(i, t, n + 1)];
519
519
  case 5:
@@ -529,13 +529,13 @@ function Et() {
529
529
  case 10:
530
530
  f = i, k.label = 11;
531
531
  case 11:
532
- return y = t.current.fromSocketIO ? (0, v.parseSocketIOUrl)(f) : f, m = t.current.queryParams ? (0, v.appendQueryParams)(y, t.current.queryParams) : y, [2, m];
532
+ return y = t.current.fromSocketIO ? (0, v.parseSocketIOUrl)(f) : f, C = t.current.queryParams ? (0, v.appendQueryParams)(y, t.current.queryParams) : y, [2, C];
533
533
  }
534
534
  });
535
535
  });
536
536
  };
537
537
  r.getUrl = d;
538
- })(K)), K;
538
+ })(x)), x;
539
539
  }
540
540
  var qe = {}, br;
541
541
  function St() {
@@ -575,14 +575,14 @@ function Ye() {
575
575
  });
576
576
  }
577
577
  return new (n || (n = Promise))(function(o, y) {
578
- function m(A) {
578
+ function C(A) {
579
579
  try {
580
580
  T(f.next(A));
581
581
  } catch (k) {
582
582
  y(k);
583
583
  }
584
584
  }
585
- function M(A) {
585
+ function P(A) {
586
586
  try {
587
587
  T(f.throw(A));
588
588
  } catch (k) {
@@ -590,7 +590,7 @@ function Ye() {
590
590
  }
591
591
  }
592
592
  function T(A) {
593
- A.done ? o(A.value) : E(A.value).then(m, M);
593
+ A.done ? o(A.value) : E(A.value).then(C, P);
594
594
  }
595
595
  T((f = f.apply(i, t || [])).next());
596
596
  });
@@ -599,15 +599,15 @@ function Ye() {
599
599
  if (o[0] & 1) throw o[1];
600
600
  return o[1];
601
601
  }, trys: [], ops: [] }, f, E, o, y = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
602
- return y.next = m(0), y.throw = m(1), y.return = m(2), typeof Symbol == "function" && (y[Symbol.iterator] = function() {
602
+ return y.next = C(0), y.throw = C(1), y.return = C(2), typeof Symbol == "function" && (y[Symbol.iterator] = function() {
603
603
  return this;
604
604
  }), y;
605
- function m(T) {
605
+ function C(T) {
606
606
  return function(A) {
607
- return M([T, A]);
607
+ return P([T, A]);
608
608
  };
609
609
  }
610
- function M(T) {
610
+ function P(T) {
611
611
  if (f) throw new TypeError("Generator is already executing.");
612
612
  for (; y && (y = 0, T[0] && (n = 0)), n; ) try {
613
613
  if (f = 1, E && (o = T[0] & 2 ? E.return : T[0] ? E.throw || ((o = E.return) && o.call(E), 0) : E.next) && !(o = o.call(E, T[1])).done) return o;
@@ -657,9 +657,9 @@ function Ye() {
657
657
  return i && i.__esModule ? i : { default: i };
658
658
  };
659
659
  Object.defineProperty(F, "__esModule", { value: !0 }), F.useWebSocket = void 0;
660
- var v = ye, _ = it, S = V(), d = _t(), c = Et(), l = h(St()), u = He(), a = function(i, t, n) {
660
+ var v = ye, _ = it, S = H(), d = _t(), c = Et(), l = h(St()), u = $e(), a = function(i, t, n) {
661
661
  t === void 0 && (t = S.DEFAULT_OPTIONS), n === void 0 && (n = !0);
662
- var f = (0, v.useState)(null), E = f[0], o = f[1], y = (0, v.useState)({}), m = y[0], M = y[1], T = (0, v.useMemo)(function() {
662
+ var f = (0, v.useState)(null), E = f[0], o = f[1], y = (0, v.useState)({}), C = y[0], P = y[1], T = (0, v.useMemo)(function() {
663
663
  if (!t.disableJson && E)
664
664
  try {
665
665
  return JSON.parse(E.data);
@@ -668,49 +668,49 @@ function Ye() {
668
668
  }
669
669
  return null;
670
670
  }, [E, t.disableJson]), A = (0, v.useRef)(null), k = (0, v.useRef)(null), se = (0, v.useRef)(function() {
671
- }), le = (0, v.useRef)(0), ke = (0, v.useRef)(Date.now()), be = (0, v.useRef)([]), G = (0, v.useRef)(null), j = (0, v.useRef)(t);
672
- j.current = t;
673
- var J = A.current && m[A.current] !== void 0 ? m[A.current] : i !== null && n === !0 ? S.ReadyState.CONNECTING : S.ReadyState.UNINSTANTIATED, X = t.queryParams ? JSON.stringify(t.queryParams) : null, $ = (0, v.useCallback)(function(D, L) {
674
- var H;
675
- if (L === void 0 && (L = !0), S.isEventSourceSupported && k.current instanceof EventSource) {
671
+ }), le = (0, v.useRef)(0), Ie = (0, v.useRef)(Date.now()), be = (0, v.useRef)([]), J = (0, v.useRef)(null), L = (0, v.useRef)(t);
672
+ L.current = t;
673
+ var G = A.current && C[A.current] !== void 0 ? C[A.current] : i !== null && n === !0 ? S.ReadyState.CONNECTING : S.ReadyState.UNINSTANTIATED, X = t.queryParams ? JSON.stringify(t.queryParams) : null, $ = (0, v.useCallback)(function(D, j) {
674
+ var Y;
675
+ if (j === void 0 && (j = !0), S.isEventSourceSupported && k.current instanceof EventSource) {
676
676
  console.warn("Unable to send a message from an eventSource");
677
677
  return;
678
678
  }
679
- ((H = k.current) === null || H === void 0 ? void 0 : H.readyState) === S.ReadyState.OPEN ? ((0, u.assertIsWebSocket)(k.current, j.current.skipAssert), k.current.send(D)) : L && be.current.push(D);
680
- }, []), ge = (0, v.useCallback)(function(D, L) {
681
- L === void 0 && (L = !0), $(JSON.stringify(D), L);
679
+ ((Y = k.current) === null || Y === void 0 ? void 0 : Y.readyState) === S.ReadyState.OPEN ? ((0, u.assertIsWebSocket)(k.current, L.current.skipAssert), k.current.send(D)) : j && be.current.push(D);
680
+ }, []), ge = (0, v.useCallback)(function(D, j) {
681
+ j === void 0 && (j = !0), $(JSON.stringify(D), j);
682
682
  }, [$]), Oe = (0, v.useCallback)(function() {
683
- return j.current.share !== !0 || S.isEventSourceSupported && k.current instanceof EventSource ? k.current : (G.current === null && k.current && ((0, u.assertIsWebSocket)(k.current, j.current.skipAssert), G.current = (0, l.default)(k.current, se)), G.current);
683
+ return L.current.share !== !0 || S.isEventSourceSupported && k.current instanceof EventSource ? k.current : (J.current === null && k.current && ((0, u.assertIsWebSocket)(k.current, L.current.skipAssert), J.current = (0, l.default)(k.current, se)), J.current);
684
684
  }, []);
685
685
  return (0, v.useEffect)(function() {
686
686
  if (i !== null && n === !0) {
687
- var D, L = !1, H = !0, fe = function() {
687
+ var D, j = !1, Y = !0, fe = function() {
688
688
  return g(void 0, void 0, void 0, function() {
689
689
  var Z, z, pe;
690
690
  return O(this, function(ue) {
691
691
  switch (ue.label) {
692
692
  case 0:
693
- return Z = A, [4, (0, c.getUrl)(i, j)];
693
+ return Z = A, [4, (0, c.getUrl)(i, L)];
694
694
  case 1:
695
695
  return Z.current = ue.sent(), A.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), A.current = "ABORTED", (0, _.flushSync)(function() {
696
- return M(function(Y) {
697
- return r(r({}, Y), { ABORTED: S.ReadyState.CLOSED });
696
+ return P(function(B) {
697
+ return r(r({}, B), { ABORTED: S.ReadyState.CLOSED });
698
698
  });
699
699
  }), [
700
700
  2
701
701
  /*return*/
702
- ]) : (z = function(Y) {
703
- L || (0, _.flushSync)(function() {
704
- return o(Y);
702
+ ]) : (z = function(B) {
703
+ j || (0, _.flushSync)(function() {
704
+ return o(B);
705
705
  });
706
- }, pe = function(Y) {
707
- L || (0, _.flushSync)(function() {
708
- return M(function(oe) {
706
+ }, pe = function(B) {
707
+ j || (0, _.flushSync)(function() {
708
+ return P(function(oe) {
709
709
  var ee;
710
- return r(r({}, oe), A.current && (ee = {}, ee[A.current] = Y, ee));
710
+ return r(r({}, oe), A.current && (ee = {}, ee[A.current] = B, ee));
711
711
  });
712
712
  });
713
- }, H && (D = (0, d.createOrJoinSocket)(k, A.current, pe, j, z, se, le, ke, $)), [
713
+ }, Y && (D = (0, d.createOrJoinSocket)(k, A.current, pe, L, z, se, le, Ie, $)), [
714
714
  2
715
715
  /*return*/
716
716
  ]);
@@ -719,24 +719,24 @@ function Ye() {
719
719
  });
720
720
  };
721
721
  return se.current = function() {
722
- L || (G.current && (G.current = null), D?.(), fe());
722
+ j || (J.current && (J.current = null), D?.(), fe());
723
723
  }, fe(), function() {
724
- L = !0, H = !1, G.current && (G.current = null), D?.(), o(null);
724
+ j = !0, Y = !1, J.current && (J.current = null), D?.(), o(null);
725
725
  };
726
- } else (i === null || n === !1) && (le.current = 0, M(function(Z) {
726
+ } else (i === null || n === !1) && (le.current = 0, P(function(Z) {
727
727
  var z;
728
728
  return r(r({}, Z), A.current && (z = {}, z[A.current] = S.ReadyState.CLOSED, z));
729
729
  }));
730
730
  }, [i, n, X, $]), (0, v.useEffect)(function() {
731
- J === S.ReadyState.OPEN && be.current.splice(0).forEach(function(D) {
731
+ G === S.ReadyState.OPEN && be.current.splice(0).forEach(function(D) {
732
732
  $(D);
733
733
  });
734
- }, [J]), {
734
+ }, [G]), {
735
735
  sendMessage: $,
736
736
  sendJsonMessage: ge,
737
737
  lastMessage: E,
738
738
  lastJsonMessage: T,
739
- readyState: J,
739
+ readyState: G,
740
740
  getWebSocket: Oe
741
741
  };
742
742
  };
@@ -756,7 +756,7 @@ function ht() {
756
756
  }, r.apply(this, arguments);
757
757
  };
758
758
  Object.defineProperty(ae, "__esModule", { value: !0 }), ae.useSocketIO = void 0;
759
- var g = ye, O = Ye(), h = V(), v = {
759
+ var g = ye, O = Ye(), h = H(), v = {
760
760
  type: "empty",
761
761
  payload: null
762
762
  }, _ = function(d) {
@@ -788,11 +788,11 @@ function ht() {
788
788
  };
789
789
  return ae.useSocketIO = S, ae;
790
790
  }
791
- var x = {}, pr;
791
+ var Q = {}, pr;
792
792
  function yt() {
793
- if (pr) return x;
793
+ if (pr) return Q;
794
794
  pr = 1;
795
- var r = x && x.__assign || function() {
795
+ var r = Q && Q.__assign || function() {
796
796
  return r = Object.assign || function(S) {
797
797
  for (var d, c = 1, l = arguments.length; c < l; c++) {
798
798
  d = arguments[c];
@@ -800,7 +800,7 @@ function yt() {
800
800
  }
801
801
  return S;
802
802
  }, r.apply(this, arguments);
803
- }, g = x && x.__rest || function(S, d) {
803
+ }, g = Q && Q.__rest || function(S, d) {
804
804
  var c = {};
805
805
  for (var l in S) Object.prototype.hasOwnProperty.call(S, l) && d.indexOf(l) < 0 && (c[l] = S[l]);
806
806
  if (S != null && typeof Object.getOwnPropertySymbols == "function")
@@ -808,8 +808,8 @@ function yt() {
808
808
  d.indexOf(l[u]) < 0 && Object.prototype.propertyIsEnumerable.call(S, l[u]) && (c[l[u]] = S[l[u]]);
809
809
  return c;
810
810
  };
811
- Object.defineProperty(x, "__esModule", { value: !0 }), x.useEventSource = void 0;
812
- var O = ye, h = Ye(), v = V(), _ = function(S, d, c) {
811
+ Object.defineProperty(Q, "__esModule", { value: !0 }), Q.useEventSource = void 0;
812
+ var O = ye, h = Ye(), v = H(), _ = function(S, d, c) {
813
813
  d === void 0 && (d = v.DEFAULT_EVENT_SOURCE_OPTIONS);
814
814
  var l = d.withCredentials, u = d.events, a = g(d, ["withCredentials", "events"]);
815
815
  c === void 0 && (c = !0);
@@ -820,8 +820,8 @@ function yt() {
820
820
  var n = (0, h.useWebSocket)(S, i, c), f = n.lastMessage, E = n.readyState, o = n.getWebSocket;
821
821
  return (0, O.useEffect)(function() {
822
822
  f?.type && Object.entries(t.current).forEach(function(y) {
823
- var m = y[0], M = y[1];
824
- m === f.type && M(f);
823
+ var C = y[0], P = y[1];
824
+ C === f.type && P(f);
825
825
  });
826
826
  }, [f]), {
827
827
  lastEvent: f,
@@ -829,7 +829,7 @@ function yt() {
829
829
  getEventSource: o
830
830
  };
831
831
  };
832
- return x.useEventSource = _, x;
832
+ return Q.useEventSource = _, Q;
833
833
  }
834
834
  var Tr;
835
835
  function bt() {
@@ -843,7 +843,7 @@ function bt() {
843
843
  Object.defineProperty(r, "useSocketIO", { enumerable: !0, get: function() {
844
844
  return O.useSocketIO;
845
845
  } });
846
- var h = V();
846
+ var h = H();
847
847
  Object.defineProperty(r, "ReadyState", { enumerable: !0, get: function() {
848
848
  return h.ReadyState;
849
849
  } });
@@ -851,14 +851,14 @@ function bt() {
851
851
  Object.defineProperty(r, "useEventSource", { enumerable: !0, get: function() {
852
852
  return v.useEventSource;
853
853
  } });
854
- var _ = He();
854
+ var _ = $e();
855
855
  Object.defineProperty(r, "resetGlobalState", { enumerable: !0, get: function() {
856
856
  return _.resetGlobalState;
857
857
  } });
858
- })(Le)), Le;
858
+ })(je)), je;
859
859
  }
860
860
  var gt = bt();
861
- const Ot = /* @__PURE__ */ ft(gt), Q = {
861
+ const Ot = /* @__PURE__ */ ft(gt), V = {
862
862
  DEPOSIT: "deposit",
863
863
  TRANS_CODE: "transCode",
864
864
  ERROR: "error",
@@ -867,8 +867,9 @@ const Ot = /* @__PURE__ */ ft(gt), Q = {
867
867
  MAINTAIN_NOTICE_MEMBER: "maintain_notice_member",
868
868
  RELOAD: "reload",
869
869
  TRANSFER_IN_GAME: "transfer_in_game",
870
- CHECK_REQUEST: "CHECK_RREQUEST"
871
- }, pt = 3e4, It = ({
870
+ CHECK_REQUEST: "CHECK_RREQUEST",
871
+ CASH_REGISTER_LIMIT: "cash_register_limit"
872
+ }, pt = 3e4, Nt = ({
872
873
  socketUrl: r,
873
874
  socketHandlers: g = {},
874
875
  options: O = {}
@@ -891,7 +892,7 @@ const Ot = /* @__PURE__ */ ft(gt), Q = {
891
892
  reconnectAttempts: 9999,
892
893
  reconnectInterval: 1e3,
893
894
  ...O
894
- }), l = Je(() => {
895
+ }), l = Ge(() => {
895
896
  try {
896
897
  return JSON.parse(d?.data);
897
898
  } catch {
@@ -916,40 +917,44 @@ const Ot = /* @__PURE__ */ ft(gt), Q = {
916
917
  onMaintainNotice: n,
917
918
  onMaintainNoticeMember: f,
918
919
  onReload: E,
919
- onTransferInGame: o
920
- } = v.current, y = we(l, "type", ""), m = {
920
+ onTransferInGame: o,
921
+ onCashRegisterLimit: y
922
+ } = v.current, C = we(l, "type", ""), P = {
921
923
  memberInfoUid: we(l, "member_info_uid", null),
922
924
  data: we(l, "data", null),
923
925
  memo: we(l, "memo", null)
924
926
  };
925
- switch (y) {
926
- case Q.DEPOSIT:
927
- u?.(m);
927
+ switch (C) {
928
+ case V.DEPOSIT:
929
+ u?.(P);
930
+ break;
931
+ case V.TRANS_CODE:
932
+ a?.(P);
928
933
  break;
929
- case Q.TRANS_CODE:
930
- a?.(m);
934
+ case V.ERROR:
935
+ i?.(P);
931
936
  break;
932
- case Q.ERROR:
933
- i?.(m);
937
+ case V.UPDATE_MEMBER:
938
+ t?.(P);
934
939
  break;
935
- case Q.UPDATE_MEMBER:
936
- t?.(m);
940
+ case V.MAINTAIN_NOTICE:
941
+ n?.(P);
937
942
  break;
938
- case Q.MAINTAIN_NOTICE:
939
- n?.(m);
943
+ case V.MAINTAIN_NOTICE_MEMBER:
944
+ f?.(P);
940
945
  break;
941
- case Q.MAINTAIN_NOTICE_MEMBER:
942
- f?.(m);
946
+ case V.RELOAD:
947
+ E?.(P);
943
948
  break;
944
- case Q.RELOAD:
945
- E?.(m);
949
+ case V.TRANSFER_IN_GAME:
950
+ case V.CHECK_REQUEST:
951
+ o?.(P);
946
952
  break;
947
- case Q.TRANSFER_IN_GAME:
948
- case Q.CHECK_REQUEST:
949
- o?.(m);
953
+ case V.CASH_REGISTER_LIMIT:
954
+ y?.(P);
950
955
  break;
951
956
  default:
952
- console.warn("Unknown socket type:", y);
957
+ console.warn("Unknown socket type:", C);
953
958
  break;
954
959
  }
955
960
  }, [l]), Ce(() => () => h.current = !0, []), {
@@ -1008,23 +1013,23 @@ function mt() {
1008
1013
  {
1009
1014
  for (var s = arguments.length, b = new Array(s > 1 ? s - 1 : 0), p = 1; p < s; p++)
1010
1015
  b[p - 1] = arguments[p];
1011
- m("error", e, b);
1016
+ C("error", e, b);
1012
1017
  }
1013
1018
  }
1014
- function m(e, s, b) {
1019
+ function C(e, s, b) {
1015
1020
  {
1016
1021
  var p = o.ReactDebugCurrentFrame, w = p.getStackAddendum();
1017
1022
  w !== "" && (s += "%s", b = b.concat([w]));
1018
- var P = b.map(function(C) {
1019
- return String(C);
1023
+ var I = b.map(function(R) {
1024
+ return String(R);
1020
1025
  });
1021
- P.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, P);
1026
+ I.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, I);
1022
1027
  }
1023
1028
  }
1024
- var M = !1, T = !1, A = !1, k = !1, se = !1, le;
1029
+ var P = !1, T = !1, A = !1, k = !1, se = !1, le;
1025
1030
  le = Symbol.for("react.module.reference");
1026
- function ke(e) {
1027
- return !!(typeof e == "string" || typeof e == "function" || e === h || e === _ || se || e === v || e === l || e === u || k || e === t || M || T || A || typeof e == "object" && e !== null && (e.$$typeof === i || e.$$typeof === a || e.$$typeof === S || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
1031
+ function Ie(e) {
1032
+ return !!(typeof e == "string" || typeof e == "function" || e === h || e === _ || se || e === v || e === l || e === u || k || e === t || P || T || A || typeof e == "object" && e !== null && (e.$$typeof === i || e.$$typeof === a || e.$$typeof === S || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
1028
1033
  // types supported by any Flight configuration anywhere since
1029
1034
  // we don't know which Flight build this will end up being used
1030
1035
  // with.
@@ -1037,10 +1042,10 @@ function mt() {
1037
1042
  var w = s.displayName || s.name || "";
1038
1043
  return w !== "" ? b + "(" + w + ")" : b;
1039
1044
  }
1040
- function G(e) {
1045
+ function J(e) {
1041
1046
  return e.displayName || "Context";
1042
1047
  }
1043
- function j(e) {
1048
+ function L(e) {
1044
1049
  if (e == null)
1045
1050
  return null;
1046
1051
  if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -1065,19 +1070,19 @@ function mt() {
1065
1070
  switch (e.$$typeof) {
1066
1071
  case d:
1067
1072
  var s = e;
1068
- return G(s) + ".Consumer";
1073
+ return J(s) + ".Consumer";
1069
1074
  case S:
1070
1075
  var b = e;
1071
- return G(b._context) + ".Provider";
1076
+ return J(b._context) + ".Provider";
1072
1077
  case c:
1073
1078
  return be(e, e.render, "ForwardRef");
1074
1079
  case a:
1075
1080
  var p = e.displayName || null;
1076
- return p !== null ? p : j(e.type) || "Memo";
1081
+ return p !== null ? p : L(e.type) || "Memo";
1077
1082
  case i: {
1078
- var w = e, P = w._payload, C = w._init;
1083
+ var w = e, I = w._payload, R = w._init;
1079
1084
  try {
1080
- return j(C(P));
1085
+ return L(R(I));
1081
1086
  } catch {
1082
1087
  return null;
1083
1088
  }
@@ -1085,14 +1090,14 @@ function mt() {
1085
1090
  }
1086
1091
  return null;
1087
1092
  }
1088
- var J = Object.assign, X = 0, $, ge, Oe, D, L, H, fe;
1093
+ var G = Object.assign, X = 0, $, ge, Oe, D, j, Y, fe;
1089
1094
  function Z() {
1090
1095
  }
1091
1096
  Z.__reactDisabledLog = !0;
1092
1097
  function z() {
1093
1098
  {
1094
1099
  if (X === 0) {
1095
- $ = console.log, ge = console.info, Oe = console.warn, D = console.error, L = console.group, H = console.groupCollapsed, fe = console.groupEnd;
1100
+ $ = console.log, ge = console.info, Oe = console.warn, D = console.error, j = console.group, Y = console.groupCollapsed, fe = console.groupEnd;
1096
1101
  var e = {
1097
1102
  configurable: !0,
1098
1103
  enumerable: !0,
@@ -1121,25 +1126,25 @@ function mt() {
1121
1126
  writable: !0
1122
1127
  };
1123
1128
  Object.defineProperties(console, {
1124
- log: J({}, e, {
1129
+ log: G({}, e, {
1125
1130
  value: $
1126
1131
  }),
1127
- info: J({}, e, {
1132
+ info: G({}, e, {
1128
1133
  value: ge
1129
1134
  }),
1130
- warn: J({}, e, {
1135
+ warn: G({}, e, {
1131
1136
  value: Oe
1132
1137
  }),
1133
- error: J({}, e, {
1138
+ error: G({}, e, {
1134
1139
  value: D
1135
1140
  }),
1136
- group: J({}, e, {
1137
- value: L
1141
+ group: G({}, e, {
1142
+ value: j
1138
1143
  }),
1139
- groupCollapsed: J({}, e, {
1140
- value: H
1144
+ groupCollapsed: G({}, e, {
1145
+ value: Y
1141
1146
  }),
1142
- groupEnd: J({}, e, {
1147
+ groupEnd: G({}, e, {
1143
1148
  value: fe
1144
1149
  })
1145
1150
  });
@@ -1147,24 +1152,24 @@ function mt() {
1147
1152
  X < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1148
1153
  }
1149
1154
  }
1150
- var ue = o.ReactCurrentDispatcher, Y;
1155
+ var ue = o.ReactCurrentDispatcher, B;
1151
1156
  function oe(e, s, b) {
1152
1157
  {
1153
- if (Y === void 0)
1158
+ if (B === void 0)
1154
1159
  try {
1155
1160
  throw Error();
1156
1161
  } catch (w) {
1157
1162
  var p = w.stack.trim().match(/\n( *(at )?)/);
1158
- Y = p && p[1] || "";
1163
+ B = p && p[1] || "";
1159
1164
  }
1160
1165
  return `
1161
- ` + Y + e;
1166
+ ` + B + e;
1162
1167
  }
1163
1168
  }
1164
1169
  var ee = !1, Te;
1165
1170
  {
1166
- var Nr = typeof WeakMap == "function" ? WeakMap : Map;
1167
- Te = new Nr();
1171
+ var kr = typeof WeakMap == "function" ? WeakMap : Map;
1172
+ Te = new kr();
1168
1173
  }
1169
1174
  function Be(e, s) {
1170
1175
  if (!e || ee)
@@ -1178,31 +1183,31 @@ function mt() {
1178
1183
  ee = !0;
1179
1184
  var w = Error.prepareStackTrace;
1180
1185
  Error.prepareStackTrace = void 0;
1181
- var P;
1182
- P = ue.current, ue.current = null, z();
1186
+ var I;
1187
+ I = ue.current, ue.current = null, z();
1183
1188
  try {
1184
1189
  if (s) {
1185
- var C = function() {
1190
+ var R = function() {
1186
1191
  throw Error();
1187
1192
  };
1188
- if (Object.defineProperty(C.prototype, "props", {
1193
+ if (Object.defineProperty(R.prototype, "props", {
1189
1194
  set: function() {
1190
1195
  throw Error();
1191
1196
  }
1192
1197
  }), typeof Reflect == "object" && Reflect.construct) {
1193
1198
  try {
1194
- Reflect.construct(C, []);
1199
+ Reflect.construct(R, []);
1195
1200
  } catch (W) {
1196
1201
  p = W;
1197
1202
  }
1198
- Reflect.construct(e, [], C);
1203
+ Reflect.construct(e, [], R);
1199
1204
  } else {
1200
1205
  try {
1201
- C.call();
1206
+ R.call();
1202
1207
  } catch (W) {
1203
1208
  p = W;
1204
1209
  }
1205
- e.call(C.prototype);
1210
+ e.call(R.prototype);
1206
1211
  }
1207
1212
  } else {
1208
1213
  try {
@@ -1214,30 +1219,30 @@ function mt() {
1214
1219
  }
1215
1220
  } catch (W) {
1216
1221
  if (W && p && typeof W.stack == "string") {
1217
- for (var R = W.stack.split(`
1222
+ for (var m = W.stack.split(`
1218
1223
  `), U = p.stack.split(`
1219
- `), N = R.length - 1, I = U.length - 1; N >= 1 && I >= 0 && R[N] !== U[I]; )
1220
- I--;
1221
- for (; N >= 1 && I >= 0; N--, I--)
1222
- if (R[N] !== U[I]) {
1223
- if (N !== 1 || I !== 1)
1224
+ `), N = m.length - 1, M = U.length - 1; N >= 1 && M >= 0 && m[N] !== U[M]; )
1225
+ M--;
1226
+ for (; N >= 1 && M >= 0; N--, M--)
1227
+ if (m[N] !== U[M]) {
1228
+ if (N !== 1 || M !== 1)
1224
1229
  do
1225
- if (N--, I--, I < 0 || R[N] !== U[I]) {
1230
+ if (N--, M--, M < 0 || m[N] !== U[M]) {
1226
1231
  var q = `
1227
- ` + R[N].replace(" at new ", " at ");
1232
+ ` + m[N].replace(" at new ", " at ");
1228
1233
  return e.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", e.displayName)), typeof e == "function" && Te.set(e, q), q;
1229
1234
  }
1230
- while (N >= 1 && I >= 0);
1235
+ while (N >= 1 && M >= 0);
1231
1236
  break;
1232
1237
  }
1233
1238
  }
1234
1239
  } finally {
1235
- ee = !1, ue.current = P, pe(), Error.prepareStackTrace = w;
1240
+ ee = !1, ue.current = I, pe(), Error.prepareStackTrace = w;
1236
1241
  }
1237
1242
  var ie = e ? e.displayName || e.name : "", re = ie ? oe(ie) : "";
1238
1243
  return typeof e == "function" && Te.set(e, re), re;
1239
1244
  }
1240
- function Ir(e, s, b) {
1245
+ function Nr(e, s, b) {
1241
1246
  return Be(e, !1);
1242
1247
  }
1243
1248
  function Mr(e) {
@@ -1260,13 +1265,13 @@ function mt() {
1260
1265
  if (typeof e == "object")
1261
1266
  switch (e.$$typeof) {
1262
1267
  case c:
1263
- return Ir(e.render);
1268
+ return Nr(e.render);
1264
1269
  case a:
1265
1270
  return me(e.type, s, b);
1266
1271
  case i: {
1267
- var p = e, w = p._payload, P = p._init;
1272
+ var p = e, w = p._payload, I = p._init;
1268
1273
  try {
1269
- return me(P(w), s, b);
1274
+ return me(I(w), s, b);
1270
1275
  } catch {
1271
1276
  }
1272
1277
  }
@@ -1283,28 +1288,28 @@ function mt() {
1283
1288
  }
1284
1289
  function Dr(e, s, b, p, w) {
1285
1290
  {
1286
- var P = Function.call.bind(ve);
1287
- for (var C in e)
1288
- if (P(e, C)) {
1289
- var R = void 0;
1291
+ var I = Function.call.bind(ve);
1292
+ for (var R in e)
1293
+ if (I(e, R)) {
1294
+ var m = void 0;
1290
1295
  try {
1291
- if (typeof e[C] != "function") {
1292
- var U = Error((p || "React class") + ": " + b + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1296
+ if (typeof e[R] != "function") {
1297
+ var U = Error((p || "React class") + ": " + b + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1293
1298
  throw U.name = "Invariant Violation", U;
1294
1299
  }
1295
- R = e[C](s, C, p, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1300
+ m = e[R](s, R, p, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1296
1301
  } catch (N) {
1297
- R = N;
1302
+ m = N;
1298
1303
  }
1299
- R && !(R instanceof Error) && (Re(w), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", b, C, typeof R), Re(null)), R instanceof Error && !(R.message in Ke) && (Ke[R.message] = !0, Re(w), y("Failed %s type: %s", b, R.message), Re(null));
1304
+ m && !(m instanceof Error) && (Re(w), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", b, R, typeof m), Re(null)), m instanceof Error && !(m.message in Ke) && (Ke[m.message] = !0, Re(w), y("Failed %s type: %s", b, m.message), Re(null));
1300
1305
  }
1301
1306
  }
1302
1307
  }
1303
- var jr = Array.isArray;
1304
- function Ne(e) {
1305
- return jr(e);
1308
+ var Lr = Array.isArray;
1309
+ function ke(e) {
1310
+ return Lr(e);
1306
1311
  }
1307
- function Lr(e) {
1312
+ function jr(e) {
1308
1313
  {
1309
1314
  var s = typeof Symbol == "function" && Symbol.toStringTag, b = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
1310
1315
  return b;
@@ -1322,7 +1327,7 @@ function mt() {
1322
1327
  }
1323
1328
  function ze(e) {
1324
1329
  if (Ur(e))
1325
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lr(e)), Qe(e);
1330
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jr(e)), Qe(e);
1326
1331
  }
1327
1332
  var Xe = o.ReactCurrentOwner, Wr = {
1328
1333
  key: !0,
@@ -1346,10 +1351,10 @@ function mt() {
1346
1351
  }
1347
1352
  return e.key !== void 0;
1348
1353
  }
1349
- function Jr(e, s) {
1354
+ function Gr(e, s) {
1350
1355
  typeof e.ref == "string" && Xe.current;
1351
1356
  }
1352
- function Gr(e, s) {
1357
+ function Jr(e, s) {
1353
1358
  {
1354
1359
  var b = function() {
1355
1360
  Ze || (Ze = !0, y("%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://reactjs.org/link/special-props)", s));
@@ -1371,54 +1376,54 @@ function mt() {
1371
1376
  });
1372
1377
  }
1373
1378
  }
1374
- var $r = function(e, s, b, p, w, P, C) {
1375
- var R = {
1379
+ var Hr = function(e, s, b, p, w, I, R) {
1380
+ var m = {
1376
1381
  // This tag allows us to uniquely identify this as a React Element
1377
1382
  $$typeof: g,
1378
1383
  // Built-in properties that belong on the element
1379
1384
  type: e,
1380
1385
  key: s,
1381
1386
  ref: b,
1382
- props: C,
1387
+ props: R,
1383
1388
  // Record the component responsible for creating this element.
1384
- _owner: P
1389
+ _owner: I
1385
1390
  };
1386
- return R._store = {}, Object.defineProperty(R._store, "validated", {
1391
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
1387
1392
  configurable: !1,
1388
1393
  enumerable: !1,
1389
1394
  writable: !0,
1390
1395
  value: !1
1391
- }), Object.defineProperty(R, "_self", {
1396
+ }), Object.defineProperty(m, "_self", {
1392
1397
  configurable: !1,
1393
1398
  enumerable: !1,
1394
1399
  writable: !1,
1395
1400
  value: p
1396
- }), Object.defineProperty(R, "_source", {
1401
+ }), Object.defineProperty(m, "_source", {
1397
1402
  configurable: !1,
1398
1403
  enumerable: !1,
1399
1404
  writable: !1,
1400
1405
  value: w
1401
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
1406
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
1402
1407
  };
1403
- function Hr(e, s, b, p, w) {
1408
+ function $r(e, s, b, p, w) {
1404
1409
  {
1405
- var P, C = {}, R = null, U = null;
1406
- b !== void 0 && (ze(b), R = "" + b), qr(s) && (ze(s.key), R = "" + s.key), Fr(s) && (U = s.ref, Jr(s, w));
1407
- for (P in s)
1408
- ve.call(s, P) && !Wr.hasOwnProperty(P) && (C[P] = s[P]);
1410
+ var I, R = {}, m = null, U = null;
1411
+ b !== void 0 && (ze(b), m = "" + b), qr(s) && (ze(s.key), m = "" + s.key), Fr(s) && (U = s.ref, Gr(s, w));
1412
+ for (I in s)
1413
+ ve.call(s, I) && !Wr.hasOwnProperty(I) && (R[I] = s[I]);
1409
1414
  if (e && e.defaultProps) {
1410
1415
  var N = e.defaultProps;
1411
- for (P in N)
1412
- C[P] === void 0 && (C[P] = N[P]);
1416
+ for (I in N)
1417
+ R[I] === void 0 && (R[I] = N[I]);
1413
1418
  }
1414
- if (R || U) {
1415
- var I = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1416
- R && Gr(C, I), U && Vr(C, I);
1419
+ if (m || U) {
1420
+ var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1421
+ m && Jr(R, M), U && Vr(R, M);
1417
1422
  }
1418
- return $r(e, R, U, w, p, Xe.current, C);
1423
+ return Hr(e, m, U, w, p, Xe.current, R);
1419
1424
  }
1420
1425
  }
1421
- var Ie = o.ReactCurrentOwner, rr = o.ReactDebugCurrentFrame;
1426
+ var Ne = o.ReactCurrentOwner, rr = o.ReactDebugCurrentFrame;
1422
1427
  function ce(e) {
1423
1428
  if (e) {
1424
1429
  var s = e._owner, b = me(e.type, e._source, s ? s.type : null);
@@ -1433,8 +1438,8 @@ function mt() {
1433
1438
  }
1434
1439
  function tr() {
1435
1440
  {
1436
- if (Ie.current) {
1437
- var e = j(Ie.current.type);
1441
+ if (Ne.current) {
1442
+ var e = L(Ne.current.type);
1438
1443
  if (e)
1439
1444
  return `
1440
1445
 
@@ -1469,14 +1474,14 @@ Check the top-level render call using <` + b + ">.");
1469
1474
  return;
1470
1475
  nr[b] = !0;
1471
1476
  var p = "";
1472
- e && e._owner && e._owner !== Ie.current && (p = " It was passed a child from " + j(e._owner.type) + "."), ce(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, p), ce(null);
1477
+ e && e._owner && e._owner !== Ne.current && (p = " It was passed a child from " + L(e._owner.type) + "."), ce(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, p), ce(null);
1473
1478
  }
1474
1479
  }
1475
1480
  function ur(e, s) {
1476
1481
  {
1477
1482
  if (typeof e != "object")
1478
1483
  return;
1479
- if (Ne(e))
1484
+ if (ke(e))
1480
1485
  for (var b = 0; b < e.length; b++) {
1481
1486
  var p = e[b];
1482
1487
  De(p) && ar(p, s);
@@ -1486,8 +1491,8 @@ Check the top-level render call using <` + b + ">.");
1486
1491
  else if (e) {
1487
1492
  var w = E(e);
1488
1493
  if (typeof w == "function" && w !== e.entries)
1489
- for (var P = w.call(e), C; !(C = P.next()).done; )
1490
- De(C.value) && ar(C.value, s);
1494
+ for (var I = w.call(e), R; !(R = I.next()).done; )
1495
+ De(R.value) && ar(R.value, s);
1491
1496
  }
1492
1497
  }
1493
1498
  }
@@ -1506,11 +1511,11 @@ Check the top-level render call using <` + b + ">.");
1506
1511
  else
1507
1512
  return;
1508
1513
  if (b) {
1509
- var p = j(s);
1514
+ var p = L(s);
1510
1515
  Dr(b, e.props, "prop", p, e);
1511
1516
  } else if (s.PropTypes !== void 0 && !Me) {
1512
1517
  Me = !0;
1513
- var w = j(s);
1518
+ var w = L(s);
1514
1519
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
1515
1520
  }
1516
1521
  typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -1529,25 +1534,25 @@ Check the top-level render call using <` + b + ">.");
1529
1534
  }
1530
1535
  }
1531
1536
  var or = {};
1532
- function cr(e, s, b, p, w, P) {
1537
+ function cr(e, s, b, p, w, I) {
1533
1538
  {
1534
- var C = ke(e);
1535
- if (!C) {
1536
- var R = "";
1537
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1539
+ var R = Ie(e);
1540
+ if (!R) {
1541
+ var m = "";
1542
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1538
1543
  var U = Yr();
1539
- U ? R += U : R += tr();
1544
+ U ? m += U : m += tr();
1540
1545
  var N;
1541
- e === null ? N = "null" : Ne(e) ? N = "array" : e !== void 0 && e.$$typeof === g ? (N = "<" + (j(e.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, R);
1546
+ e === null ? N = "null" : ke(e) ? N = "array" : e !== void 0 && e.$$typeof === g ? (N = "<" + (L(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, m);
1542
1547
  }
1543
- var I = Hr(e, s, b, w, P);
1544
- if (I == null)
1545
- return I;
1546
- if (C) {
1548
+ var M = $r(e, s, b, w, I);
1549
+ if (M == null)
1550
+ return M;
1551
+ if (R) {
1547
1552
  var q = s.children;
1548
1553
  if (q !== void 0)
1549
1554
  if (p)
1550
- if (Ne(q)) {
1555
+ if (ke(q)) {
1551
1556
  for (var ie = 0; ie < q.length; ie++)
1552
1557
  ur(q[ie], e);
1553
1558
  Object.freeze && Object.freeze(q);
@@ -1557,20 +1562,20 @@ Check the top-level render call using <` + b + ">.");
1557
1562
  ur(q, e);
1558
1563
  }
1559
1564
  if (ve.call(s, "key")) {
1560
- var re = j(e), W = Object.keys(s).filter(function(rt) {
1565
+ var re = L(e), W = Object.keys(s).filter(function(rt) {
1561
1566
  return rt !== "key";
1562
- }), je = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
1563
- if (!or[re + je]) {
1567
+ }), Le = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
1568
+ if (!or[re + Le]) {
1564
1569
  var et = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
1565
1570
  y(`A props object containing a "key" prop is being spread into JSX:
1566
1571
  let props = %s;
1567
1572
  <%s {...props} />
1568
1573
  React keys must be passed directly to JSX without using spread:
1569
1574
  let props = %s;
1570
- <%s key={someKey} {...props} />`, je, re, et, re), or[re + je] = !0;
1575
+ <%s key={someKey} {...props} />`, Le, re, et, re), or[re + Le] = !0;
1571
1576
  }
1572
1577
  }
1573
- return e === h ? xr(I) : Kr(I), I;
1578
+ return e === h ? xr(M) : Kr(M), M;
1574
1579
  }
1575
1580
  }
1576
1581
  function Qr(e, s, b) {
@@ -1589,7 +1594,7 @@ function Rt() {
1589
1594
  }
1590
1595
  var wr = Rt();
1591
1596
  function Mt({ children: r, ...g }) {
1592
- const O = Je(() => st(g), [g]), v = Je(
1597
+ const O = Ge(() => st(g), [g]), v = Ge(
1593
1598
  () => new nt({
1594
1599
  defaultOptions: {
1595
1600
  queries: {
@@ -1606,6 +1611,6 @@ export {
1606
1611
  Ar as ApiCtx,
1607
1612
  Mt as ApiProvider,
1608
1613
  Pr as useApiContext,
1609
- It as useClientWebSocket,
1610
- Nt as usePeriodicDataUpdater
1614
+ Nt as useClientWebSocket,
1615
+ kt as usePeriodicDataUpdater
1611
1616
  };