react-luminus-components 2.0.33 → 2.0.35

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,15 +1,15 @@
1
- import { t as re, bR as Oe, c as N, bS as He, R as ce, an as Ue, bT as De, a5 as H, ak as We, S as ie, bU as je, ar as Fe, ap as Be, bd as pe, by as Re, bf as J, aq as ze, bV as Ge, aF as we, bW as Ve, bX as Xe, bY as L, bZ as Ke, b_ as U, b$ as l, c0 as _e, c1 as Le, c2 as V, c3 as E, c4 as q, c5 as ae, c6 as Ie, c7 as Je, c8 as Se, c9 as Qe, ca as Ye, cb as qe, cc as Ze, cd as be, ce as G, cf as Me, cg as Ce, ch as et, ci as fe, cj as $e, ao as tt, b8 as nt, a6 as ot } from "./nivo-bar-wBsr2P1t.js";
2
- import { ck as gn, ah as pn } from "./nivo-bar-wBsr2P1t.js";
3
- import { jsxs as I, jsx as y } from "react/jsx-runtime";
4
- import { useState as R, useContext as z, useEffect as B, useRef as Q, useMemo as F, useCallback as Y, useSyncExternalStore as st } from "react";
5
- import { EventType as ge, InteractionStatus as ye, InteractionRequiredAuthError as rt } from "@azure/msal-browser";
6
- import { useMsal as it, MsalProvider as at } from "@azure/msal-react";
1
+ import { t as re, bR as Ne, c as N, bS as Oe, R as ae, an as He, bT as Ae, a5 as H, ak as Ue, S as ie, bU as We, ar as je, ap as Fe, bd as pe, by as De, bf as J, aq as Be, bV as ze, aF as we, bW as Ge, bX as Ve, bY as R, bZ as Xe, b_ as U, b$ as l, c0 as _e, c1 as Ie, c2 as V, c3 as E, c4 as q, c5 as ce, c6 as Re, c7 as Ke, c8 as Se, c9 as Je, ca as Qe, cb as Ye, cc as qe, cd as be, ce as G, cf as Le, cg as Ce, ch as Ze, ci as fe, cj as Me, ao as et, b8 as tt, a6 as nt } from "./nivo-bar-wBsr2P1t.js";
2
+ import { ck as pn, ah as _n } from "./nivo-bar-wBsr2P1t.js";
3
+ import { jsxs as L, jsx as y } from "react/jsx-runtime";
4
+ import { useState as I, useContext as z, useEffect as B, useRef as Q, useMemo as F, useCallback as Y, useSyncExternalStore as ot } from "react";
5
+ import { EventType as ge, InteractionStatus as st, InteractionRequiredAuthError as rt } from "@azure/msal-browser";
6
+ import { MsalProvider as it, useMsal as ct } from "@azure/msal-react";
7
7
  import "react-router";
8
8
  import "react-dom";
9
9
  import "react-hook-form";
10
10
  import "react-flexmonster";
11
- import { L as ct, b as lt } from "./FormDisabledProvider-CknAF8EI.js";
12
- import { F as mn } from "./FormDisabledProvider-CknAF8EI.js";
11
+ import { L as at, b as lt } from "./FormDisabledProvider-CknAF8EI.js";
12
+ import { F as wn } from "./FormDisabledProvider-CknAF8EI.js";
13
13
  import { a as ht, u as ut } from "./useLocalStorageState-DBd2vOH1.js";
14
14
  import { u as dt } from "./useIsBrowserOnline-RAirIO4c.js";
15
15
  function ft(t) {
@@ -27,103 +27,103 @@ function pt(t, e) {
27
27
  return n >= s && n <= o;
28
28
  }
29
29
  function _t() {
30
- return Oe(Date.now());
30
+ return Ne(Date.now());
31
31
  }
32
32
  const mt = (t) => {
33
33
  const e = N.c(10), {
34
34
  children: n
35
- } = t, [s, o] = R(!1), [i, r] = R(""), [a, c] = R(void 0);
35
+ } = t, [s, o] = I(!1), [i, r] = I(""), [c, a] = I(void 0);
36
36
  let h;
37
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (b, p) => {
38
- o(!0), r(b), c(p);
37
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (S, p) => {
38
+ o(!0), r(S), a(p);
39
39
  }, e[0] = h) : h = e[0];
40
40
  const u = h;
41
- let _;
42
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (_ = () => {
41
+ let w;
42
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (w = () => {
43
43
  o(!1);
44
- }, e[1] = _) : _ = e[1];
45
- const f = _;
44
+ }, e[1] = w) : w = e[1];
45
+ const f = w;
46
46
  let g;
47
- e[2] !== s || e[3] !== i || e[4] !== a ? (g = {
47
+ e[2] !== s || e[3] !== i || e[4] !== c ? (g = {
48
48
  show: s,
49
49
  text: i,
50
50
  showConfirm: u,
51
51
  hideConfirm: f,
52
- textSm: a
53
- }, e[2] = s, e[3] = i, e[4] = a, e[5] = g) : g = e[5];
52
+ textSm: c
53
+ }, e[2] = s, e[3] = i, e[4] = c, e[5] = g) : g = e[5];
54
54
  const m = g;
55
- let S;
56
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(Bt, {}), e[6] = S) : S = e[6];
55
+ let b;
56
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ y(zt, {}), e[6] = b) : b = e[6];
57
57
  let d;
58
- return e[7] !== n || e[8] !== m ? (d = /* @__PURE__ */ I(He.Provider, { value: m, children: [
59
- S,
58
+ return e[7] !== n || e[8] !== m ? (d = /* @__PURE__ */ L(Oe.Provider, { value: m, children: [
59
+ b,
60
60
  n
61
61
  ] }), e[7] = n, e[8] = m, e[9] = d) : d = e[9], d;
62
62
  }, wt = () => {
63
63
  const t = N.c(43), {
64
64
  texts: e
65
- } = z(ce), {
65
+ } = z(ae), {
66
66
  confirm: n
67
67
  } = e, {
68
68
  isShown: s,
69
69
  text: o,
70
70
  onFinish: i
71
- } = Ue(), {
71
+ } = He(), {
72
72
  options: r
73
- } = z(De), [a, c] = R(r.defaultValue ?? "");
73
+ } = z(Ae), [c, a] = I(r.defaultValue ?? "");
74
74
  let h;
75
75
  t[0] !== i ? (h = () => {
76
76
  i(null);
77
77
  }, t[0] = i, t[1] = h) : h = t[1];
78
78
  const u = h;
79
- let _;
80
- t[2] !== i || t[3] !== r.required || t[4] !== a ? (_ = (j) => {
81
- j.preventDefault(), !(r.required && !a) && (i(a), c(""));
82
- }, t[2] = i, t[3] = r.required, t[4] = a, t[5] = _) : _ = t[5];
83
- const f = _;
79
+ let w;
80
+ t[2] !== i || t[3] !== r.required || t[4] !== c ? (w = (j) => {
81
+ j.preventDefault(), !(r.required && !c) && (i(c), a(""));
82
+ }, t[2] = i, t[3] = r.required, t[4] = c, t[5] = w) : w = t[5];
83
+ const f = w;
84
84
  let g;
85
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = (j) => c(j.currentTarget.value), t[6] = g) : g = t[6];
85
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = (j) => a(j.currentTarget.value), t[6] = g) : g = t[6];
86
86
  let m;
87
- t[7] !== a ? (m = {
88
- value: a,
87
+ t[7] !== c ? (m = {
88
+ value: c,
89
89
  onChange: g,
90
90
  className: "w-100",
91
91
  autoFocus: !0,
92
92
  tabIndex: 0
93
- }, t[7] = a, t[8] = m) : m = t[8];
94
- const S = m;
95
- let d, b;
93
+ }, t[7] = c, t[8] = m) : m = t[8];
94
+ const b = m;
95
+ let d, S;
96
96
  t[9] !== s || t[10] !== r.defaultValue ? (d = () => {
97
- s === !0 && c(r.defaultValue ?? "");
98
- }, b = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = b) : (d = t[11], b = t[12]), B(d, b);
97
+ s === !0 && a(r.defaultValue ?? "");
98
+ }, S = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = S) : (d = t[11], S = t[12]), B(d, S);
99
99
  let p;
100
100
  t[13] !== o ? (p = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: /* @__PURE__ */ y(H.Title, { children: o }) }), t[13] = o, t[14] = p) : p = t[14];
101
101
  let C;
102
- t[15] !== S || t[16] !== r.input ? (C = r.input === "textarea" ? /* @__PURE__ */ y("textarea", { ...S, rows: 5 }) : void 0, t[15] = S, t[16] = r.input, t[17] = C) : C = t[17];
103
- let w;
104
- t[18] !== S || t[19] !== r.input || t[20] !== r.type ? (w = r.input === "input" ? /* @__PURE__ */ y(We, { ...S, type: r.type }) : void 0, t[18] = S, t[19] = r.input, t[20] = r.type, t[21] = w) : w = t[21];
102
+ t[15] !== b || t[16] !== r.input ? (C = r.input === "textarea" ? /* @__PURE__ */ y("textarea", { ...b, rows: 5 }) : void 0, t[15] = b, t[16] = r.input, t[17] = C) : C = t[17];
103
+ let _;
104
+ t[18] !== b || t[19] !== r.input || t[20] !== r.type ? (_ = r.input === "input" ? /* @__PURE__ */ y(Ue, { ...b, type: r.type }) : void 0, t[18] = b, t[19] = r.input, t[20] = r.type, t[21] = _) : _ = t[21];
105
105
  let v;
106
- t[22] !== C || t[23] !== w ? (v = /* @__PURE__ */ I(H.Body, { children: [
106
+ t[22] !== C || t[23] !== _ ? (v = /* @__PURE__ */ L(H.Body, { children: [
107
107
  C,
108
- w
109
- ] }), t[22] = C, t[23] = w, t[24] = v) : v = t[24];
108
+ _
109
+ ] }), t[22] = C, t[23] = _, t[24] = v) : v = t[24];
110
110
  let k;
111
111
  t[25] !== n.cancel || t[26] !== u ? (k = /* @__PURE__ */ y(ie, { variant: "outlined", color: "secondary", onClick: u, className: "flex-grow-1", children: n.cancel }), t[25] = n.cancel, t[26] = u, t[27] = k) : k = t[27];
112
- const W = r.required && !a;
112
+ const W = r.required && !c;
113
113
  let P;
114
114
  t[28] !== n.confirm || t[29] !== W ? (P = /* @__PURE__ */ y(ie, { color: "primary", disabled: W, type: "submit", className: "flex-grow-1", children: n.confirm }), t[28] = n.confirm, t[29] = W, t[30] = P) : P = t[30];
115
115
  let M;
116
- t[31] !== k || t[32] !== P ? (M = /* @__PURE__ */ I(H.Footer, { className: "w-100 d-flex gap-5", children: [
116
+ t[31] !== k || t[32] !== P ? (M = /* @__PURE__ */ L(H.Footer, { className: "w-100 d-flex gap-5", children: [
117
117
  k,
118
118
  P
119
119
  ] }), t[31] = k, t[32] = P, t[33] = M) : M = t[33];
120
120
  let x;
121
- t[34] !== f || t[35] !== v || t[36] !== M ? (x = /* @__PURE__ */ I("form", { onSubmit: f, onKeyDown: St, children: [
121
+ t[34] !== f || t[35] !== v || t[36] !== M ? (x = /* @__PURE__ */ L("form", { onSubmit: f, onKeyDown: St, children: [
122
122
  v,
123
123
  M
124
124
  ] }), t[34] = f, t[35] = v, t[36] = M, t[37] = x) : x = t[37];
125
125
  let O;
126
- return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !== p ? (O = /* @__PURE__ */ I(H, { show: s, size: "sm", centered: !0, onHide: u, children: [
126
+ return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !== p ? (O = /* @__PURE__ */ L(H, { show: s, size: "sm", centered: !0, onHide: u, children: [
127
127
  p,
128
128
  x
129
129
  ] }), t[38] = s, t[39] = u, t[40] = x, t[41] = p, t[42] = O) : O = t[42], O;
@@ -134,128 +134,128 @@ function St(t) {
134
134
  const bt = (t) => {
135
135
  const e = N.c(11), {
136
136
  children: n
137
- } = t, [s, o] = R(!1), [i, r] = R("");
138
- let a;
139
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
137
+ } = t, [s, o] = I(!1), [i, r] = I("");
138
+ let c;
139
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
140
140
  input: "textarea",
141
141
  type: "text"
142
- }, e[0] = a) : a = e[0];
143
- const [c, h] = R(a), u = Q(Ct);
144
- let _;
145
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (_ = (C) => {
142
+ }, e[0] = c) : c = e[0];
143
+ const [a, h] = I(c), u = Q(Ct);
144
+ let w;
145
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (w = (C) => {
146
146
  r(C), o(!0);
147
- }, e[1] = _) : _ = e[1];
148
- const f = _;
147
+ }, e[1] = w) : w = e[1];
148
+ const f = w;
149
149
  let g;
150
150
  e[2] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
151
151
  o(!1);
152
152
  }, e[2] = g) : g = e[2];
153
153
  const m = g;
154
- let S;
155
- e[3] !== s || e[4] !== c || e[5] !== i ? (S = {
154
+ let b;
155
+ e[3] !== s || e[4] !== a || e[5] !== i ? (b = {
156
156
  isShown: s,
157
157
  text: i,
158
158
  showPrompt: f,
159
159
  hidePrompt: m,
160
160
  resolveRef: u,
161
- options: c,
161
+ options: a,
162
162
  setOptions: h
163
- }, e[3] = s, e[4] = c, e[5] = i, e[6] = S) : S = e[6];
164
- const d = S;
165
- let b;
166
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ y(wt, {}), e[7] = b) : b = e[7];
163
+ }, e[3] = s, e[4] = a, e[5] = i, e[6] = b) : b = e[6];
164
+ const d = b;
165
+ let S;
166
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(wt, {}), e[7] = S) : S = e[7];
167
167
  let p;
168
- return e[8] !== n || e[9] !== d ? (p = /* @__PURE__ */ I(De.Provider, { value: d, children: [
168
+ return e[8] !== n || e[9] !== d ? (p = /* @__PURE__ */ L(Ae.Provider, { value: d, children: [
169
169
  n,
170
- b
170
+ S
171
171
  ] }), e[8] = n, e[9] = d, e[10] = p) : p = e[10], p;
172
172
  };
173
173
  function Ct() {
174
174
  }
175
- const nn = (t) => {
175
+ const on = (t) => {
176
176
  const e = N.c(14), {
177
177
  cookieDomain: n,
178
178
  axiosOptions: s,
179
179
  language: o,
180
180
  texts: i,
181
181
  ProjectIconComponent: r,
182
- localizationContext: a,
183
- chartColorPalette: c,
182
+ localizationContext: c,
183
+ chartColorPalette: a,
184
184
  children: h
185
185
  } = t;
186
186
  let u;
187
- e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== o || e[5] !== a || e[6] !== i ? (u = {
187
+ e[0] !== r || e[1] !== s || e[2] !== a || e[3] !== n || e[4] !== o || e[5] !== c || e[6] !== i ? (u = {
188
188
  axiosOptions: s,
189
189
  cookieDomain: n,
190
190
  language: o,
191
191
  texts: i,
192
192
  ProjectIconComponent: r,
193
- localizationContext: a,
194
- chartColorPalette: c
195
- }, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = o, e[5] = a, e[6] = i, e[7] = u) : u = e[7];
196
- const _ = u;
193
+ localizationContext: c,
194
+ chartColorPalette: a
195
+ }, e[0] = r, e[1] = s, e[2] = a, e[3] = n, e[4] = o, e[5] = c, e[6] = i, e[7] = u) : u = e[7];
196
+ const w = u;
197
197
  let f;
198
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(je, {}), e[8] = f) : f = e[8];
198
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(We, {}), e[8] = f) : f = e[8];
199
199
  let g;
200
- e[9] !== h ? (g = /* @__PURE__ */ y(mt, { children: /* @__PURE__ */ I(bt, { children: [
200
+ e[9] !== h ? (g = /* @__PURE__ */ y(mt, { children: /* @__PURE__ */ L(bt, { children: [
201
201
  f,
202
202
  h
203
203
  ] }) }), e[9] = h, e[10] = g) : g = e[10];
204
204
  let m;
205
- return e[11] !== _ || e[12] !== g ? (m = /* @__PURE__ */ y(ce.Provider, { value: _, children: g }), e[11] = _, e[12] = g, e[13] = m) : m = e[13], m;
206
- }, on = (t) => {
205
+ return e[11] !== w || e[12] !== g ? (m = /* @__PURE__ */ y(ae.Provider, { value: w, children: g }), e[11] = w, e[12] = g, e[13] = m) : m = e[13], m;
206
+ }, sn = (t) => {
207
207
  const e = N.c(15), {
208
208
  children: n
209
- } = t, [s, o] = R(!1);
209
+ } = t, [s, o] = I(!1);
210
210
  let i;
211
211
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ new Set(), e[0] = i) : i = e[0];
212
- const [r] = R(i);
213
- let a;
214
- e[1] !== r ? (a = (S) => {
215
- r.add(S), o(!0);
216
- }, e[1] = r, e[2] = a) : a = e[2];
217
- const c = a;
212
+ const [r] = I(i);
213
+ let c;
214
+ e[1] !== r ? (c = (b) => {
215
+ r.add(b), o(!0);
216
+ }, e[1] = r, e[2] = c) : c = e[2];
217
+ const a = c;
218
218
  let h;
219
- e[3] !== r ? (h = (S) => {
220
- r.delete(S), r.size === 0 && o(!1);
219
+ e[3] !== r ? (h = (b) => {
220
+ r.delete(b), r.size === 0 && o(!1);
221
221
  }, e[3] = r, e[4] = h) : h = e[4];
222
222
  const u = h;
223
- let _;
224
- e[5] !== s || e[6] !== c || e[7] !== u ? (_ = {
223
+ let w;
224
+ e[5] !== s || e[6] !== a || e[7] !== u ? (w = {
225
225
  isLoading: s,
226
- startLoading: c,
226
+ startLoading: a,
227
227
  stopLoading: u
228
- }, e[5] = s, e[6] = c, e[7] = u, e[8] = _) : _ = e[8];
229
- const f = _;
228
+ }, e[5] = s, e[6] = a, e[7] = u, e[8] = w) : w = e[8];
229
+ const f = w;
230
230
  let g;
231
- e[9] !== s ? (g = s && /* @__PURE__ */ y(ct, {}), e[9] = s, e[10] = g) : g = e[10];
231
+ e[9] !== s ? (g = s && /* @__PURE__ */ y(at, {}), e[9] = s, e[10] = g) : g = e[10];
232
232
  let m;
233
- return e[11] !== n || e[12] !== f || e[13] !== g ? (m = /* @__PURE__ */ I(Fe.Provider, { value: f, children: [
233
+ return e[11] !== n || e[12] !== f || e[13] !== g ? (m = /* @__PURE__ */ L(je.Provider, { value: f, children: [
234
234
  g,
235
235
  n
236
236
  ] }), e[11] = n, e[12] = f, e[13] = g, e[14] = m) : m = e[14], m;
237
- }, sn = (t) => {
237
+ }, rn = (t) => {
238
238
  const e = N.c(39), {
239
239
  children: n
240
- } = t, s = Be(), {
240
+ } = t, s = Fe(), {
241
241
  msalInstance: o,
242
242
  getToken: i
243
243
  } = z(pe), {
244
244
  delegation: r,
245
- setDelegation: a,
246
- setAvailableDelegations: c,
245
+ setDelegation: c,
246
+ setAvailableDelegations: a,
247
247
  refreshAvailableDelegations: h
248
- } = z(Re), [u, _] = R(null);
248
+ } = z(De), [u, w] = I(null);
249
249
  let f;
250
250
  e[0] !== i ? (f = async () => {
251
251
  const A = await i();
252
- A && _(A.token);
252
+ A && w(A.token);
253
253
  }, e[0] = i, e[1] = f) : f = e[1];
254
254
  const g = f;
255
- let m, S;
255
+ let m, b;
256
256
  e[2] !== g ? (m = () => {
257
257
  g();
258
- }, S = [g], e[2] = g, e[3] = m, e[4] = S) : (m = e[3], S = e[4]), B(m, S);
258
+ }, b = [g], e[2] = g, e[3] = m, e[4] = b) : (m = e[3], b = e[4]), B(m, b);
259
259
  let d;
260
260
  if (e[5] === Symbol.for("react.memo_cache_sentinel")) {
261
261
  e: {
@@ -269,13 +269,13 @@ const nn = (t) => {
269
269
  e[5] = d;
270
270
  } else
271
271
  d = e[5];
272
- const b = d;
272
+ const S = d;
273
273
  let p;
274
274
  e[6] === Symbol.for("react.memo_cache_sentinel") ? (p = {
275
- state: b ? J.LOGGED_IN : J.LOGGED_OUT,
276
- user: b
275
+ state: S ? J.LOGGED_IN : J.LOGGED_OUT,
276
+ user: S
277
277
  }, e[6] = p) : p = e[6];
278
- const [C, w] = R(p);
278
+ const [C, _] = I(p);
279
279
  let v;
280
280
  e[7] !== s ? (v = async (A) => {
281
281
  let $ = null;
@@ -291,24 +291,24 @@ const nn = (t) => {
291
291
  }, e[7] = s, e[8] = v) : v = e[8];
292
292
  const k = v;
293
293
  let W;
294
- e[9] !== c || e[10] !== a ? (W = () => {
295
- localStorage.removeItem("user"), w({
294
+ e[9] !== a || e[10] !== c ? (W = () => {
295
+ localStorage.removeItem("user"), _({
296
296
  state: J.LOGGED_OUT,
297
297
  user: null
298
- }), a(null), c(null);
299
- }, e[9] = c, e[10] = a, e[11] = W) : W = e[11];
298
+ }), c(null), a(null);
299
+ }, e[9] = a, e[10] = c, e[11] = W) : W = e[11];
300
300
  const P = W;
301
301
  let M;
302
302
  e[12] !== k || e[13] !== h ? (M = async (A) => {
303
- w({
303
+ _({
304
304
  state: J.LOGGING_IN,
305
305
  user: null
306
306
  });
307
307
  const $ = await k(A);
308
- return $ ? (w({
308
+ return $ ? (_({
309
309
  state: J.LOGGED_IN,
310
310
  user: $
311
- }), localStorage.setItem("user", JSON.stringify($)), await h(), !0) : (w({
311
+ }), localStorage.setItem("user", JSON.stringify($)), await h(), !0) : (_({
312
312
  state: J.LOGIN_FAILED,
313
313
  user: null
314
314
  }), !1);
@@ -320,7 +320,7 @@ const nn = (t) => {
320
320
  const A = o.addEventCallback(($) => {
321
321
  if ($.eventType === ge.LOGIN_SUCCESS && $.payload) {
322
322
  const de = $.payload;
323
- _(de.accessToken);
323
+ w(de.accessToken);
324
324
  }
325
325
  });
326
326
  return () => {
@@ -332,11 +332,11 @@ const nn = (t) => {
332
332
  let j;
333
333
  e[17] !== x || e[18] !== P || e[19] !== o ? (j = [o, x, P], e[17] = x, e[18] = P, e[19] = o, e[20] = j) : j = e[20], B(O, j);
334
334
  let Z;
335
- e[21] !== x || e[22] !== P || e[23] !== a ? (Z = async (A) => {
335
+ e[21] !== x || e[22] !== P || e[23] !== c ? (Z = async (A) => {
336
336
  A && await x(A).catch(() => {
337
- P(), a(null);
337
+ P(), c(null);
338
338
  });
339
- }, e[21] = x, e[22] = P, e[23] = a, e[24] = Z) : Z = e[24];
339
+ }, e[21] = x, e[22] = P, e[23] = c, e[24] = Z) : Z = e[24];
340
340
  const K = Z;
341
341
  let ee;
342
342
  e[25] !== u || e[26] !== K ? (ee = () => {
@@ -354,38 +354,38 @@ const nn = (t) => {
354
354
  }, e[32] = x, e[33] = P, e[34] = C, e[35] = ne) : ne = e[35];
355
355
  const ue = ne;
356
356
  let oe;
357
- return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(ze.Provider, { value: ue, children: n }), e[36] = n, e[37] = ue, e[38] = oe) : oe = e[38], oe;
357
+ return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(Be.Provider, { value: ue, children: n }), e[36] = n, e[37] = ue, e[38] = oe) : oe = e[38], oe;
358
358
  };
359
359
  function yt() {
360
360
  }
361
- const ve = () => {
361
+ const vt = () => {
362
362
  const t = N.c(2);
363
363
  let e;
364
364
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
365
365
  let n;
366
- return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ I("div", { children: [
366
+ return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ L("div", { children: [
367
367
  e,
368
- /* @__PURE__ */ I("p", { children: [
368
+ /* @__PURE__ */ L("p", { children: [
369
369
  "If you are not redirected within 10 seconds, please click",
370
370
  " ",
371
371
  /* @__PURE__ */ y("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
372
372
  ] })
373
373
  ] }), t[1] = n) : n = t[1], n;
374
- }, vt = (t) => {
374
+ }, kt = (t) => {
375
375
  const e = t == null ? void 0 : t.getActiveAccount();
376
376
  console.log("getTokenMsal activeAccount", e);
377
377
  const n = t == null ? void 0 : t.getAllAccounts();
378
378
  console.log("getTokenMsal allAccounts", n);
379
379
  const s = (n == null ? void 0 : n.at(0)) ?? void 0;
380
380
  return console.log("getTokenMsal account", s), s ? (e || t == null || t.setActiveAccount(s), s) : null;
381
- }, rn = ({
381
+ }, ye = ({
382
382
  ...t
383
383
  }) => {
384
384
  const {
385
385
  inProgress: e
386
- } = it(), {
386
+ } = ct(), {
387
387
  cookieDomain: n
388
- } = z(ce), [, s] = Ge(["Authorization"]), o = F(
388
+ } = z(ae), [, s] = ze(["Authorization"]), o = F(
389
389
  () => t.useMsal ? t.msalInstance : null,
390
390
  // eslint-disable-next-line react-hooks/exhaustive-deps
391
391
  [t.useMsal, t.useMsal ? t.msalInstance : null]
@@ -397,7 +397,7 @@ const ve = () => {
397
397
  () => t.useMsal ? t.msalExtraScopes : [],
398
398
  // eslint-disable-next-line react-hooks/exhaustive-deps
399
399
  [t.useMsal, t.useMsal ? t.msalExtraScopes : null]
400
- ), a = Q(null), c = Q(!1), h = Y(() => {
400
+ ), c = Q(null), a = Q(!1), h = Y(() => {
401
401
  const d = localStorage.getItem("token");
402
402
  return d ? {
403
403
  token: d,
@@ -406,11 +406,11 @@ const ve = () => {
406
406
  }, []), u = Y(async () => {
407
407
  if (console.log("getTokenMsal"), o == null)
408
408
  throw console.log("getTokenMsal throwing error because msalInstance is null"), new Error("getTokenMsal: msalInstance is null");
409
- if (a.current)
410
- return console.log("getTokenMsal returning tokenRequestPromise.current", a.current), a.current;
411
- const d = new Promise((b, p) => {
412
- const C = (w) => {
413
- const v = vt(o);
409
+ if (c.current)
410
+ return console.log("getTokenMsal returning tokenRequestPromise.current", c.current), c.current;
411
+ const d = new Promise((S, p) => {
412
+ const C = (_) => {
413
+ const v = kt(o);
414
414
  if (!v) {
415
415
  console.log("getTokenMsal no account found. Redirecting to login"), o == null || o.loginRedirect({
416
416
  scopes: i,
@@ -423,7 +423,7 @@ const ve = () => {
423
423
  account: v,
424
424
  redirectUri: t.useMsal ? t.msalSilentRedirectUri : void 0
425
425
  }).then((k) => {
426
- w(), b({
426
+ _(), S({
427
427
  token: k.accessToken,
428
428
  expiresOn: k.expiresOn ?? new Date(Date.now())
429
429
  });
@@ -431,53 +431,51 @@ const ve = () => {
431
431
  console.error("Error acquiring token", k), k instanceof rt && (console.log("Silent token acquisition failed. Acquiring token using redirect"), o == null || o.acquireTokenRedirect({
432
432
  scopes: i,
433
433
  extraScopesToConsent: r
434
- }), w(), b(null)), w(), p(k);
434
+ }), _(), S(null)), _(), p(k);
435
435
  }).finally(() => {
436
- w(), p(new Error("No access token returned from handleRedirectPromise"));
436
+ _(), p(new Error("No access token returned from handleRedirectPromise"));
437
437
  });
438
438
  };
439
- if (e !== ye.None) {
440
- console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None", e), p(new Error("Authentication in progress"));
441
- return;
442
- }
443
- c.current ? C(() => {
444
- a.current = null;
445
- }) : o.handleRedirectPromise().then((w) => {
446
- if (console.log("getTokenMsal tokenResponse", w), !(w != null && w.accessToken)) {
439
+ a.current ? C(() => {
440
+ c.current = null;
441
+ }) : o.handleRedirectPromise().then((_) => {
442
+ if (console.log("getTokenMsal tokenResponse", _), !(_ != null && _.accessToken)) {
447
443
  C(() => {
448
- a.current = null, c.current = !0;
444
+ c.current = null, a.current = !0;
449
445
  });
450
446
  return;
451
447
  }
452
- a.current = null, c.current = !0, b({
453
- token: w.accessToken,
454
- expiresOn: w.expiresOn ?? new Date(Date.now())
448
+ c.current = null, a.current = !0, S({
449
+ token: _.accessToken,
450
+ expiresOn: _.expiresOn ?? new Date(Date.now())
455
451
  });
456
452
  });
457
453
  });
458
- return a.current = d, d;
459
- }, [e, r, o, i, t.msalSilentRedirectUri, t.useMsal]), _ = Y(async () => t.useMsal ? u() : h(), [h, u, t.useMsal]), f = Y((d) => t.useMsal ? () => {
454
+ return c.current = d, d;
455
+ }, [r, o, i, t.msalSilentRedirectUri, t.useMsal]), w = Y(async () => t.useMsal ? u() : h(), [h, u, t.useMsal]), f = Y((d) => t.useMsal ? () => {
460
456
  } : (window.addEventListener("storage", d), window.addEventListener("dev-auth-change", d), () => {
461
457
  window.removeEventListener("storage", d), window.removeEventListener("dev-auth-change", d);
462
- }), [t.useMsal]), g = st(f, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), m = F(() => {
458
+ }), [t.useMsal]), g = ot(f, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), m = F(() => {
463
459
  var d;
464
- return t.useMsal ? e !== ye.None ? "AUTH_IN_PROGRESS" : (o == null ? void 0 : o.getActiveAccount()) ?? ((d = o == null ? void 0 : o.getAllAccounts()) == null ? void 0 : d[0]) ?? null ? "AUTH_OK" : "NO_AUTH" : g;
465
- }, [g, e, o, t.useMsal]), S = F(() => ({
460
+ return t.useMsal ? e !== st.None ? "AUTH_IN_PROGRESS" : (o == null ? void 0 : o.getActiveAccount()) ?? ((d = o == null ? void 0 : o.getAllAccounts()) == null ? void 0 : d[0]) ?? null ? "AUTH_OK" : "NO_AUTH" : g;
461
+ }, [g, e, o, t.useMsal]);
462
+ console.log("authState", m);
463
+ const b = F(() => ({
466
464
  useMsal: t.useMsal ?? !1,
467
465
  msalInstance: o,
468
466
  msalScopes: i,
469
467
  msalExtraScopes: r,
470
- getToken: _,
468
+ getToken: w,
471
469
  authState: m
472
- }), [t.useMsal, o, i, r, _, m]);
470
+ }), [t.useMsal, o, i, r, w, m]);
473
471
  return B(() => {
474
472
  if (t.useMsal && o) {
475
- const d = o.addEventCallback((b) => {
476
- if (b.eventType === ge.LOGIN_SUCCESS || b.eventType === ge.ACQUIRE_TOKEN_SUCCESS && b.payload) {
477
- const p = b.payload, C = p.account;
473
+ const d = o.addEventCallback((S) => {
474
+ if (S.eventType === ge.LOGIN_SUCCESS || S.eventType === ge.ACQUIRE_TOKEN_SUCCESS && S.payload) {
475
+ const p = S.payload, C = p.account;
478
476
  o.setActiveAccount(C);
479
- const w = p.accessToken, v = p.expiresOn;
480
- s("Authorization", w, {
477
+ const _ = p.accessToken, v = p.expiresOn;
478
+ s("Authorization", _, {
481
479
  path: "/",
482
480
  secure: !0,
483
481
  sameSite: "none",
@@ -485,7 +483,7 @@ const ve = () => {
485
483
  expires: v ?? void 0
486
484
  });
487
485
  }
488
- b.error && console.error("AuthProvider MSAL Error", b);
486
+ S.error && console.error("AuthProvider MSAL Error", S);
489
487
  });
490
488
  return () => {
491
489
  d && o.removeEventCallback(d);
@@ -493,16 +491,29 @@ const ve = () => {
493
491
  }
494
492
  return () => {
495
493
  };
496
- }, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: S, children: t.useMsal ? /* @__PURE__ */ y(at, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ y(ve, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ y(ve, {}) : t.children });
494
+ }, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children: window.location.pathname === "/blank" ? /* @__PURE__ */ y(vt, {}) : t.children });
495
+ }, cn = (t) => {
496
+ const e = N.c(9);
497
+ let n;
498
+ if (e[0] !== t ? ({
499
+ ...n
500
+ } = t, e[0] = t, e[1] = n) : n = e[1], n.useMsal) {
501
+ let o;
502
+ e[2] !== n ? (o = /* @__PURE__ */ y(ye, { ...n }), e[2] = n, e[3] = o) : o = e[3];
503
+ let i;
504
+ return e[4] !== n.msalInstance || e[5] !== o ? (i = /* @__PURE__ */ y(it, { instance: n.msalInstance, children: o }), e[4] = n.msalInstance, e[5] = o, e[6] = i) : i = e[6], i;
505
+ }
506
+ let s;
507
+ return e[7] !== n ? (s = /* @__PURE__ */ y(ye, { ...n }), e[7] = n, e[8] = s) : s = e[8], s;
497
508
  }, an = (t) => {
498
509
  const e = N.c(18), {
499
510
  children: n,
500
511
  relativeEndpoint: s
501
512
  } = t, [o, i, r] = ht("user-delegation", null);
502
- let a;
513
+ let c;
503
514
  e: {
504
515
  if (!o) {
505
- a = null;
516
+ c = null;
506
517
  break e;
507
518
  }
508
519
  const v = o.from ? we(o.from) : _t(), k = o.to ? we(o.to) : gt();
@@ -510,12 +521,12 @@ const ve = () => {
510
521
  start: v,
511
522
  end: k
512
523
  })) {
513
- i(null), a = null;
524
+ i(null), c = null;
514
525
  break e;
515
526
  }
516
- a = o;
527
+ c = o;
517
528
  }
518
- const c = a;
529
+ const a = c;
519
530
  let h;
520
531
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
521
532
  nullStateBeforeLoad: !1,
@@ -523,18 +534,18 @@ const ve = () => {
523
534
  }, e[0] = h) : h = e[0];
524
535
  const {
525
536
  data: u,
526
- setData: _,
537
+ setData: w,
527
538
  reloadData: f
528
539
  } = ut(s, h), g = Q(null);
529
- let m, S;
540
+ let m, b;
530
541
  e[1] !== f ? (m = () => {
531
542
  const v = () => {
532
- f(), g.current = window.setTimeout(v, Ve() + 5e3);
543
+ f(), g.current = window.setTimeout(v, Ge() + 5e3);
533
544
  };
534
545
  return v(), () => {
535
546
  g.current !== null && window.clearTimeout(g.current);
536
547
  };
537
- }, S = [f], e[1] = f, e[2] = m, e[3] = S) : (m = e[2], S = e[3]), B(m, S);
548
+ }, b = [f], e[1] = f, e[2] = m, e[3] = b) : (m = e[2], b = e[3]), B(m, b);
538
549
  let d;
539
550
  e[4] !== r ? (d = () => {
540
551
  const v = () => {
@@ -544,61 +555,61 @@ const ve = () => {
544
555
  window.removeEventListener("focus", v);
545
556
  };
546
557
  }, e[4] = r, e[5] = d) : d = e[5];
547
- let b;
548
- e[6] !== r || e[7] !== f ? (b = [r, f], e[6] = r, e[7] = f, e[8] = b) : b = e[8], B(d, b);
558
+ let S;
559
+ e[6] !== r || e[7] !== f ? (S = [r, f], e[6] = r, e[7] = f, e[8] = S) : S = e[8], B(d, S);
549
560
  let p;
550
- e[9] !== u || e[10] !== f || e[11] !== _ || e[12] !== i || e[13] !== c ? (p = {
551
- delegation: c,
561
+ e[9] !== u || e[10] !== f || e[11] !== w || e[12] !== i || e[13] !== a ? (p = {
562
+ delegation: a,
552
563
  setDelegation: i,
553
564
  availableDelegations: u,
554
- setAvailableDelegations: _,
565
+ setAvailableDelegations: w,
555
566
  refreshAvailableDelegations: f
556
- }, e[9] = u, e[10] = f, e[11] = _, e[12] = i, e[13] = c, e[14] = p) : p = e[14];
567
+ }, e[9] = u, e[10] = f, e[11] = w, e[12] = i, e[13] = a, e[14] = p) : p = e[14];
557
568
  const C = p;
558
- let w;
559
- return e[15] !== n || e[16] !== C ? (w = /* @__PURE__ */ y(Re.Provider, { value: C, children: n }), e[15] = n, e[16] = C, e[17] = w) : w = e[17], w;
560
- }, ke = (t, e) => t ? `${t} | ${e}` : e, cn = (t) => {
569
+ let _;
570
+ return e[15] !== n || e[16] !== C ? (_ = /* @__PURE__ */ y(De.Provider, { value: C, children: n }), e[15] = n, e[16] = C, e[17] = _) : _ = e[17], _;
571
+ }, ve = (t, e) => t ? `${t} | ${e}` : e, ln = (t) => {
561
572
  const e = N.c(18), {
562
573
  defaultHelmet: n,
563
574
  children: s,
564
575
  helmetPrefix: o
565
576
  } = t, i = o ?? "";
566
577
  let r;
567
- e[0] !== n || e[1] !== i ? (r = ke(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
568
- let a;
569
- e[3] !== r ? (a = [r], e[3] = r, e[4] = a) : a = e[4];
570
- const [c, h] = R(a);
578
+ e[0] !== n || e[1] !== i ? (r = ve(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
579
+ let c;
580
+ e[3] !== r ? (c = [r], e[3] = r, e[4] = c) : c = e[4];
581
+ const [a, h] = I(c);
571
582
  let u;
572
- e[5] !== o ? (u = (w) => {
573
- h((v) => [...v, ke(o ?? "", w)]);
583
+ e[5] !== o ? (u = (_) => {
584
+ h((v) => [...v, ve(o ?? "", _)]);
574
585
  }, e[5] = o, e[6] = u) : u = e[6];
575
- const _ = u;
586
+ const w = u;
576
587
  let f;
577
588
  e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
578
- h(kt);
589
+ h(Tt);
579
590
  }, e[7] = f) : f = e[7];
580
591
  const g = f;
581
592
  let m;
582
- e[8] !== c ? (m = c.at(-1) ?? "", e[8] = c, e[9] = m) : m = e[9];
583
- const S = m;
593
+ e[8] !== a ? (m = a.at(-1) ?? "", e[8] = a, e[9] = m) : m = e[9];
594
+ const b = m;
584
595
  let d;
585
- e[10] !== _ ? (d = {
586
- addHelmet: _,
596
+ e[10] !== w ? (d = {
597
+ addHelmet: w,
587
598
  removeHelmet: g
588
- }, e[10] = _, e[11] = d) : d = e[11];
589
- const b = d;
599
+ }, e[10] = w, e[11] = d) : d = e[11];
600
+ const S = d;
590
601
  let p;
591
- e[12] !== S ? (p = /* @__PURE__ */ y("title", { children: S }), e[12] = S, e[13] = p) : p = e[13];
602
+ e[12] !== b ? (p = /* @__PURE__ */ y("title", { children: b }), e[12] = b, e[13] = p) : p = e[13];
592
603
  let C;
593
- return e[14] !== s || e[15] !== b || e[16] !== p ? (C = /* @__PURE__ */ I(Xe.Provider, { value: b, children: [
604
+ return e[14] !== s || e[15] !== S || e[16] !== p ? (C = /* @__PURE__ */ L(Ve.Provider, { value: S, children: [
594
605
  p,
595
606
  s
596
- ] }), e[14] = s, e[15] = b, e[16] = p, e[17] = C) : C = e[17], C;
607
+ ] }), e[14] = s, e[15] = S, e[16] = p, e[17] = C) : C = e[17], C;
597
608
  };
598
- function kt(t) {
609
+ function Tt(t) {
599
610
  return t.length > 1 ? t.slice(0, -1) : t;
600
611
  }
601
- class Ne {
612
+ class $e {
602
613
  constructor(e, n, s) {
603
614
  this.statusCode = e, this.statusText = n, this.content = s;
604
615
  }
@@ -635,13 +646,13 @@ class le {
635
646
  return "";
636
647
  }
637
648
  }
638
- class Tt extends le {
649
+ class Et extends le {
639
650
  constructor(e) {
640
- if (super(), this._logger = e, typeof fetch > "u" || L.isNode) {
651
+ if (super(), this._logger = e, typeof fetch > "u" || R.isNode) {
641
652
  const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
642
653
  this._jar = new (n("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = n("node-fetch") : this._fetchType = fetch, this._fetchType = n("fetch-cookie")(this._fetchType, this._jar);
643
654
  } else
644
- this._fetchType = fetch.bind(Ke());
655
+ this._fetchType = fetch.bind(Xe());
645
656
  if (typeof AbortController > "u") {
646
657
  const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
647
658
  this._abortControllerType = n("abort-controller");
@@ -663,12 +674,12 @@ class Tt extends le {
663
674
  });
664
675
  let o = null;
665
676
  if (e.timeout) {
666
- const c = e.timeout;
677
+ const a = e.timeout;
667
678
  o = setTimeout(() => {
668
679
  n.abort(), this._logger.log(l.Warning, "Timeout from HTTP request."), s = new _e();
669
- }, c);
680
+ }, a);
670
681
  }
671
- e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Le(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
682
+ e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Ie(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
672
683
  let i;
673
684
  try {
674
685
  i = await this._fetchType(e.url, {
@@ -684,24 +695,24 @@ class Tt extends le {
684
695
  redirect: "follow",
685
696
  signal: n.signal
686
697
  });
687
- } catch (c) {
688
- throw s || (this._logger.log(l.Warning, `Error from HTTP request. ${c}.`), c);
698
+ } catch (a) {
699
+ throw s || (this._logger.log(l.Warning, `Error from HTTP request. ${a}.`), a);
689
700
  } finally {
690
701
  o && clearTimeout(o), e.abortSignal && (e.abortSignal.onabort = null);
691
702
  }
692
703
  if (!i.ok) {
693
- const c = await Te(i, "text");
694
- throw new V(c || i.statusText, i.status);
704
+ const a = await ke(i, "text");
705
+ throw new V(a || i.statusText, i.status);
695
706
  }
696
- const a = await Te(i, e.responseType);
697
- return new Ne(i.status, i.statusText, a);
707
+ const c = await ke(i, e.responseType);
708
+ return new $e(i.status, i.statusText, c);
698
709
  }
699
710
  getCookieString(e) {
700
711
  let n = "";
701
- return L.isNode && this._jar && this._jar.getCookies(e, (s, o) => n = o.join("; ")), n;
712
+ return R.isNode && this._jar && this._jar.getCookies(e, (s, o) => n = o.join("; ")), n;
702
713
  }
703
714
  }
704
- function Te(t, e) {
715
+ function ke(t, e) {
705
716
  let n;
706
717
  switch (e) {
707
718
  case "arraybuffer":
@@ -720,7 +731,7 @@ function Te(t, e) {
720
731
  }
721
732
  return n;
722
733
  }
723
- class Et extends le {
734
+ class Pt extends le {
724
735
  constructor(e) {
725
736
  super(), this._logger = e;
726
737
  }
@@ -728,14 +739,14 @@ class Et extends le {
728
739
  send(e) {
729
740
  return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new U()) : e.method ? e.url ? new Promise((n, s) => {
730
741
  const o = new XMLHttpRequest();
731
- o.open(e.method, e.url, !0), o.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Le(e.content) ? o.setRequestHeader("Content-Type", "application/octet-stream") : o.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
742
+ o.open(e.method, e.url, !0), o.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Ie(e.content) ? o.setRequestHeader("Content-Type", "application/octet-stream") : o.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
732
743
  const i = e.headers;
733
744
  i && Object.keys(i).forEach((r) => {
734
745
  o.setRequestHeader(r, i[r]);
735
746
  }), e.responseType && (o.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
736
747
  o.abort(), s(new U());
737
748
  }), e.timeout && (o.timeout = e.timeout), o.onload = () => {
738
- e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new Ne(o.status, o.statusText, o.response || o.responseText)) : s(new V(o.response || o.responseText || o.statusText, o.status));
749
+ e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new $e(o.status, o.statusText, o.response || o.responseText)) : s(new V(o.response || o.responseText || o.statusText, o.status));
739
750
  }, o.onerror = () => {
740
751
  this._logger.log(l.Warning, `Error from HTTP request. ${o.status}: ${o.statusText}.`), s(new V(o.statusText, o.status));
741
752
  }, o.ontimeout = () => {
@@ -744,13 +755,13 @@ class Et extends le {
744
755
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
745
756
  }
746
757
  }
747
- class Pt extends le {
758
+ class xt extends le {
748
759
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
749
760
  constructor(e) {
750
- if (super(), typeof fetch < "u" || L.isNode)
751
- this._httpClient = new Tt(e);
752
- else if (typeof XMLHttpRequest < "u")
761
+ if (super(), typeof fetch < "u" || R.isNode)
753
762
  this._httpClient = new Et(e);
763
+ else if (typeof XMLHttpRequest < "u")
764
+ this._httpClient = new Pt(e);
754
765
  else
755
766
  throw new Error("No usable HttpClient found.");
756
767
  }
@@ -762,10 +773,10 @@ class Pt extends le {
762
773
  return this._httpClient.getCookieString(e);
763
774
  }
764
775
  }
765
- const xt = [0, 2e3, 1e4, 3e4, null];
766
- class Ee {
776
+ const At = [0, 2e3, 1e4, 3e4, null];
777
+ class Te {
767
778
  constructor(e) {
768
- this._retryDelays = e !== void 0 ? [...e, null] : xt;
779
+ this._retryDelays = e !== void 0 ? [...e, null] : At;
769
780
  }
770
781
  nextRetryDelayInMilliseconds(e) {
771
782
  return this._retryDelays[e.previousRetryCount];
@@ -775,7 +786,7 @@ class X {
775
786
  }
776
787
  X.Authorization = "Authorization";
777
788
  X.Cookie = "Cookie";
778
- class At extends le {
789
+ class Dt extends le {
779
790
  constructor(e, n) {
780
791
  super(), this._innerClient = e, this._accessTokenFactory = n;
781
792
  }
@@ -800,7 +811,7 @@ var D;
800
811
  (function(t) {
801
812
  t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
802
813
  })(D || (D = {}));
803
- let Dt = class {
814
+ let It = class {
804
815
  constructor() {
805
816
  this._isAborted = !1, this.onabort = null;
806
817
  }
@@ -814,13 +825,13 @@ let Dt = class {
814
825
  return this._isAborted;
815
826
  }
816
827
  };
817
- class Pe {
828
+ class Ee {
818
829
  // This is an internal type, not exported from 'index' so this is really just internal.
819
830
  get pollAborted() {
820
831
  return this._pollAbort.aborted;
821
832
  }
822
833
  constructor(e, n, s) {
823
- this._httpClient = e, this._logger = n, this._pollAbort = new Dt(), this._options = s, this._running = !1, this.onreceive = null, this.onclose = null;
834
+ this._httpClient = e, this._logger = n, this._pollAbort = new It(), this._options = s, this._running = !1, this.onreceive = null, this.onclose = null;
824
835
  }
825
836
  async connect(e, n) {
826
837
  if (E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, D, "transferFormat"), this._url = e, this._logger.log(l.Trace, "(LongPolling transport) Connecting."), n === D.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
@@ -832,10 +843,10 @@ class Pe {
832
843
  withCredentials: this._options.withCredentials
833
844
  };
834
845
  n === D.Binary && (r.responseType = "arraybuffer");
835
- const a = `${e}&_=${Date.now()}`;
836
- this._logger.log(l.Trace, `(LongPolling transport) polling: ${a}.`);
837
- const c = await this._httpClient.get(a, r);
838
- c.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new V(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, r);
846
+ const c = `${e}&_=${Date.now()}`;
847
+ this._logger.log(l.Trace, `(LongPolling transport) polling: ${c}.`);
848
+ const a = await this._httpClient.get(c, r);
849
+ a.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${a.statusCode}.`), this._closeError = new V(a.statusText || "", a.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, r);
839
850
  }
840
851
  async _poll(e, n) {
841
852
  try {
@@ -844,7 +855,7 @@ class Pe {
844
855
  const s = `${e}&_=${Date.now()}`;
845
856
  this._logger.log(l.Trace, `(LongPolling transport) polling: ${s}.`);
846
857
  const o = await this._httpClient.get(s, n);
847
- o.statusCode === 204 ? (this._logger.log(l.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : o.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${o.statusCode}.`), this._closeError = new V(o.statusText || "", o.statusCode), this._running = !1) : o.content ? (this._logger.log(l.Trace, `(LongPolling transport) data received. ${ae(o.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(o.content)) : this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.");
858
+ o.statusCode === 204 ? (this._logger.log(l.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : o.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${o.statusCode}.`), this._closeError = new V(o.statusText || "", o.statusCode), this._running = !1) : o.content ? (this._logger.log(l.Trace, `(LongPolling transport) data received. ${ce(o.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(o.content)) : this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.");
848
859
  } catch (s) {
849
860
  this._running ? s instanceof _e ? this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = s, this._running = !1) : this._logger.log(l.Trace, `(LongPolling transport) Poll errored after shutdown: ${s.message}`);
850
861
  }
@@ -853,7 +864,7 @@ class Pe {
853
864
  }
854
865
  }
855
866
  async send(e) {
856
- return this._running ? Ie(this._logger, "LongPolling", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
867
+ return this._running ? Re(this._logger, "LongPolling", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
857
868
  }
858
869
  async stop() {
859
870
  this._logger.log(l.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
@@ -896,36 +907,36 @@ class Rt {
896
907
  return;
897
908
  }
898
909
  let r;
899
- if (L.isBrowser || L.isWebWorker)
910
+ if (R.isBrowser || R.isWebWorker)
900
911
  r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
901
912
  else {
902
- const a = this._httpClient.getCookieString(e), c = {};
903
- c.Cookie = a;
913
+ const c = this._httpClient.getCookieString(e), a = {};
914
+ a.Cookie = c;
904
915
  const [h, u] = q();
905
- c[h] = u, r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...c, ...this._options.headers } });
916
+ a[h] = u, r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...a, ...this._options.headers } });
906
917
  }
907
918
  try {
908
- r.onmessage = (a) => {
919
+ r.onmessage = (c) => {
909
920
  if (this.onreceive)
910
921
  try {
911
- this._logger.log(l.Trace, `(SSE transport) data received. ${ae(a.data, this._options.logMessageContent)}.`), this.onreceive(a.data);
912
- } catch (c) {
913
- this._close(c);
922
+ this._logger.log(l.Trace, `(SSE transport) data received. ${ce(c.data, this._options.logMessageContent)}.`), this.onreceive(c.data);
923
+ } catch (a) {
924
+ this._close(a);
914
925
  return;
915
926
  }
916
- }, r.onerror = (a) => {
927
+ }, r.onerror = (c) => {
917
928
  i ? this._close() : o(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
918
929
  }, r.onopen = () => {
919
930
  this._logger.log(l.Information, `SSE connected to ${this._url}`), this._eventSource = r, i = !0, s();
920
931
  };
921
- } catch (a) {
922
- o(a);
932
+ } catch (c) {
933
+ o(c);
923
934
  return;
924
935
  }
925
936
  });
926
937
  }
927
938
  async send(e) {
928
- return this._eventSource ? Ie(this._logger, "SSE", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
939
+ return this._eventSource ? Re(this._logger, "SSE", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
929
940
  }
930
941
  stop() {
931
942
  return this._close(), Promise.resolve();
@@ -944,22 +955,22 @@ class Lt {
944
955
  return this._accessTokenFactory && (s = await this._accessTokenFactory()), new Promise((o, i) => {
945
956
  e = e.replace(/^http/, "ws");
946
957
  let r;
947
- const a = this._httpClient.getCookieString(e);
948
- let c = !1;
949
- if (L.isNode || L.isReactNative) {
950
- const h = {}, [u, _] = q();
951
- h[u] = _, s && (h[X.Authorization] = `Bearer ${s}`), a && (h[X.Cookie] = a), r = new this._webSocketConstructor(e, void 0, {
958
+ const c = this._httpClient.getCookieString(e);
959
+ let a = !1;
960
+ if (R.isNode || R.isReactNative) {
961
+ const h = {}, [u, w] = q();
962
+ h[u] = w, s && (h[X.Authorization] = `Bearer ${s}`), c && (h[X.Cookie] = c), r = new this._webSocketConstructor(e, void 0, {
952
963
  headers: { ...h, ...this._headers }
953
964
  });
954
965
  } else
955
966
  s && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(s)}`);
956
967
  r || (r = new this._webSocketConstructor(e)), n === D.Binary && (r.binaryType = "arraybuffer"), r.onopen = (h) => {
957
- this._logger.log(l.Information, `WebSocket connected to ${e}.`), this._webSocket = r, c = !0, o();
968
+ this._logger.log(l.Information, `WebSocket connected to ${e}.`), this._webSocket = r, a = !0, o();
958
969
  }, r.onerror = (h) => {
959
970
  let u = null;
960
971
  typeof ErrorEvent < "u" && h instanceof ErrorEvent ? u = h.error : u = "There was an error with the transport", this._logger.log(l.Information, `(WebSockets transport) ${u}.`);
961
972
  }, r.onmessage = (h) => {
962
- if (this._logger.log(l.Trace, `(WebSockets transport) data received. ${ae(h.data, this._logMessageContent)}.`), this.onreceive)
973
+ if (this._logger.log(l.Trace, `(WebSockets transport) data received. ${ce(h.data, this._logMessageContent)}.`), this.onreceive)
963
974
  try {
964
975
  this.onreceive(h.data);
965
976
  } catch (u) {
@@ -967,7 +978,7 @@ class Lt {
967
978
  return;
968
979
  }
969
980
  }, r.onclose = (h) => {
970
- if (c)
981
+ if (a)
971
982
  this._close(h);
972
983
  else {
973
984
  let u = null;
@@ -977,7 +988,7 @@ class Lt {
977
988
  });
978
989
  }
979
990
  send(e) {
980
- return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(l.Trace, `(WebSockets transport) sending data. ${ae(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
991
+ return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(l.Trace, `(WebSockets transport) sending data. ${ce(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
981
992
  }
982
993
  stop() {
983
994
  return this._webSocket && this._close(void 0), Promise.resolve();
@@ -992,21 +1003,21 @@ class Lt {
992
1003
  return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
993
1004
  }
994
1005
  }
995
- const xe = 100;
996
- class It {
1006
+ const Pe = 100;
1007
+ class Mt {
997
1008
  constructor(e, n = {}) {
998
1009
  if (this._stopPromiseResolver = () => {
999
- }, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger = Je(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
1010
+ }, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger = Ke(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
1000
1011
  n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
1001
1012
  else
1002
1013
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
1003
1014
  n.timeout = n.timeout === void 0 ? 100 * 1e3 : n.timeout;
1004
1015
  let s = null, o = null;
1005
- if (L.isNode && typeof require < "u") {
1016
+ if (R.isNode && typeof require < "u") {
1006
1017
  const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
1007
1018
  s = i("ws"), o = i("eventsource");
1008
1019
  }
1009
- !L.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : L.isNode && !n.WebSocket && s && (n.WebSocket = s), !L.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : L.isNode && !n.EventSource && typeof o < "u" && (n.EventSource = o), this._httpClient = new At(n.httpClient || new Pt(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
1020
+ !R.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : R.isNode && !n.WebSocket && s && (n.WebSocket = s), !R.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : R.isNode && !n.EventSource && typeof o < "u" && (n.EventSource = o), this._httpClient = new Dt(n.httpClient || new xt(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
1010
1021
  }
1011
1022
  async start(e) {
1012
1023
  if (e = e || D.Binary, E.isIn(e, D, "transferFormat"), this._logger.log(l.Debug, `Starting connection with transfer format '${D[e]}'.`), this._connectionState !== "Disconnected")
@@ -1071,12 +1082,12 @@ class It {
1071
1082
  this._accessTokenFactory = () => i, this._httpClient._accessToken = i, this._httpClient._accessTokenFactory = void 0;
1072
1083
  }
1073
1084
  o++;
1074
- } while (s.url && o < xe);
1075
- if (o === xe && s.url)
1085
+ } while (s.url && o < Pe);
1086
+ if (o === Pe && s.url)
1076
1087
  throw new Error("Negotiate redirection limit exceeded.");
1077
1088
  await this._createTransport(n, this._options.transport, s, e);
1078
1089
  }
1079
- this.transport instanceof Pe && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(l.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
1090
+ this.transport instanceof Ee && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(l.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
1080
1091
  } catch (s) {
1081
1092
  return this._logger.log(l.Error, "Failed to start the connection: " + s), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(s);
1082
1093
  }
@@ -1095,11 +1106,11 @@ class It {
1095
1106
  });
1096
1107
  if (r.statusCode !== 200)
1097
1108
  return Promise.reject(new Error(`Unexpected status code returned from negotiate '${r.statusCode}'`));
1098
- const a = JSON.parse(r.content);
1099
- return (!a.negotiateVersion || a.negotiateVersion < 1) && (a.connectionToken = a.connectionId), a.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Se("Client didn't negotiate Stateful Reconnect but the server did.")) : a;
1109
+ const c = JSON.parse(r.content);
1110
+ return (!c.negotiateVersion || c.negotiateVersion < 1) && (c.connectionToken = c.connectionId), c.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Se("Client didn't negotiate Stateful Reconnect but the server did.")) : c;
1100
1111
  } catch (r) {
1101
- let a = "Failed to complete negotiation with the server: " + r;
1102
- return r instanceof V && r.statusCode === 404 && (a = a + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(l.Error, a), Promise.reject(new Se(a));
1112
+ let c = "Failed to complete negotiation with the server: " + r;
1113
+ return r instanceof V && r.statusCode === 404 && (c = c + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(l.Error, c), Promise.reject(new Se(c));
1103
1114
  }
1104
1115
  }
1105
1116
  _createConnectUrl(e, n) {
@@ -1111,33 +1122,33 @@ class It {
1111
1122
  this._logger.log(l.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = n, await this._startTransport(i, o), this.connectionId = s.connectionId;
1112
1123
  return;
1113
1124
  }
1114
- const r = [], a = s.availableTransports || [];
1115
- let c = s;
1116
- for (const h of a) {
1117
- const u = this._resolveTransportOrError(h, n, o, (c == null ? void 0 : c.useStatefulReconnect) === !0);
1125
+ const r = [], c = s.availableTransports || [];
1126
+ let a = s;
1127
+ for (const h of c) {
1128
+ const u = this._resolveTransportOrError(h, n, o, (a == null ? void 0 : a.useStatefulReconnect) === !0);
1118
1129
  if (u instanceof Error)
1119
1130
  r.push(`${h.transport} failed:`), r.push(u);
1120
1131
  else if (this._isITransport(u)) {
1121
- if (this.transport = u, !c) {
1132
+ if (this.transport = u, !a) {
1122
1133
  try {
1123
- c = await this._getNegotiationResponse(e);
1124
- } catch (_) {
1125
- return Promise.reject(_);
1134
+ a = await this._getNegotiationResponse(e);
1135
+ } catch (w) {
1136
+ return Promise.reject(w);
1126
1137
  }
1127
- i = this._createConnectUrl(e, c.connectionToken);
1138
+ i = this._createConnectUrl(e, a.connectionToken);
1128
1139
  }
1129
1140
  try {
1130
- await this._startTransport(i, o), this.connectionId = c.connectionId;
1141
+ await this._startTransport(i, o), this.connectionId = a.connectionId;
1131
1142
  return;
1132
- } catch (_) {
1133
- if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${_}`), c = void 0, r.push(new Qe(`${h.transport} failed: ${_}`, T[h.transport])), this._connectionState !== "Connecting") {
1143
+ } catch (w) {
1144
+ if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${w}`), a = void 0, r.push(new Je(`${h.transport} failed: ${w}`, T[h.transport])), this._connectionState !== "Connecting") {
1134
1145
  const f = "Failed to select transport before stop() was called.";
1135
1146
  return this._logger.log(l.Debug, f), Promise.reject(new U(f));
1136
1147
  }
1137
1148
  }
1138
1149
  }
1139
1150
  }
1140
- return r.length > 0 ? Promise.reject(new Ye(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`, r)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
1151
+ return r.length > 0 ? Promise.reject(new Qe(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`, r)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
1141
1152
  }
1142
1153
  _constructTransport(e) {
1143
1154
  switch (e) {
@@ -1150,7 +1161,7 @@ class It {
1150
1161
  throw new Error("'EventSource' is not supported in your environment.");
1151
1162
  return new Rt(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
1152
1163
  case T.LongPolling:
1153
- return new Pe(this._httpClient, this._logger, this._options);
1164
+ return new Ee(this._httpClient, this._logger, this._options);
1154
1165
  default:
1155
1166
  throw new Error(`Unknown transport: ${e}.`);
1156
1167
  }
@@ -1175,20 +1186,20 @@ class It {
1175
1186
  const i = T[e.transport];
1176
1187
  if (i == null)
1177
1188
  return this._logger.log(l.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.`);
1178
- if (Mt(n, i))
1179
- if (e.transferFormats.map((a) => D[a]).indexOf(s) >= 0) {
1189
+ if ($t(n, i))
1190
+ if (e.transferFormats.map((c) => D[c]).indexOf(s) >= 0) {
1180
1191
  if (i === T.WebSockets && !this._options.WebSocket || i === T.ServerSentEvents && !this._options.EventSource)
1181
- return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new qe(`'${T[i]}' is not supported in your environment.`, i);
1192
+ return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new Ye(`'${T[i]}' is not supported in your environment.`, i);
1182
1193
  this._logger.log(l.Debug, `Selecting transport '${T[i]}'.`);
1183
1194
  try {
1184
1195
  return this.features.reconnect = i === T.WebSockets ? o : void 0, this._constructTransport(i);
1185
- } catch (a) {
1186
- return a;
1196
+ } catch (c) {
1197
+ return c;
1187
1198
  }
1188
1199
  } else
1189
1200
  return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it does not support the requested transfer format '${D[s]}'.`), new Error(`'${T[i]}' does not support ${D[s]}.`);
1190
1201
  else
1191
- return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new Ze(`'${T[i]}' is disabled by the client.`, i);
1202
+ return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new qe(`'${T[i]}' is disabled by the client.`, i);
1192
1203
  }
1193
1204
  _isITransport(e) {
1194
1205
  return e && typeof e == "object" && "connect" in e;
@@ -1214,7 +1225,7 @@ class It {
1214
1225
  _resolveUrl(e) {
1215
1226
  if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
1216
1227
  return e;
1217
- if (!L.isBrowser)
1228
+ if (!R.isBrowser)
1218
1229
  throw new Error(`Cannot resolve '${e}'.`);
1219
1230
  const n = window.document.createElement("a");
1220
1231
  return n.href = e, this._logger.log(l.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
@@ -1226,7 +1237,7 @@ class It {
1226
1237
  return s.has("negotiateVersion") || s.append("negotiateVersion", this._negotiateVersion.toString()), s.has("useStatefulReconnect") ? s.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && s.append("useStatefulReconnect", "true"), n.search = s.toString(), n.toString();
1227
1238
  }
1228
1239
  }
1229
- function Mt(t, e) {
1240
+ function $t(t, e) {
1230
1241
  return !t || (e & t) !== 0;
1231
1242
  }
1232
1243
  class me {
@@ -1281,10 +1292,10 @@ class se {
1281
1292
  this._rejecter(e);
1282
1293
  }
1283
1294
  }
1284
- const $t = "json";
1285
- class Nt {
1295
+ const Nt = "json";
1296
+ class Ot {
1286
1297
  constructor() {
1287
- this.name = $t, this.version = 2, this.transferFormat = D.Text;
1298
+ this.name = Nt, this.version = 2, this.transferFormat = D.Text;
1288
1299
  }
1289
1300
  /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
1290
1301
  *
@@ -1296,7 +1307,7 @@ class Nt {
1296
1307
  throw new Error("Invalid input for JSON hub protocol. Expected a string.");
1297
1308
  if (!e)
1298
1309
  return [];
1299
- n === null && (n = Me.instance);
1310
+ n === null && (n = Le.instance);
1300
1311
  const s = be.parse(e), o = [];
1301
1312
  for (const i of s) {
1302
1313
  const r = JSON.parse(i);
@@ -1363,7 +1374,7 @@ class Nt {
1363
1374
  throw new Error(n);
1364
1375
  }
1365
1376
  }
1366
- const Ot = {
1377
+ const Ht = {
1367
1378
  trace: l.Trace,
1368
1379
  debug: l.Debug,
1369
1380
  info: l.Information,
@@ -1374,18 +1385,18 @@ const Ot = {
1374
1385
  critical: l.Critical,
1375
1386
  none: l.None
1376
1387
  };
1377
- function Ht(t) {
1378
- const e = Ot[t.toLowerCase()];
1388
+ function Ut(t) {
1389
+ const e = Ht[t.toLowerCase()];
1379
1390
  if (typeof e < "u")
1380
1391
  return e;
1381
1392
  throw new Error(`Unknown log level: ${t}`);
1382
1393
  }
1383
- class Ut {
1394
+ class Wt {
1384
1395
  configureLogging(e) {
1385
- if (E.isRequired(e, "logging"), Wt(e))
1396
+ if (E.isRequired(e, "logging"), jt(e))
1386
1397
  this.logger = e;
1387
1398
  else if (typeof e == "string") {
1388
- const n = Ht(e);
1399
+ const n = Ut(e);
1389
1400
  this.logger = new Ce(n);
1390
1401
  } else
1391
1402
  this.logger = new Ce(e);
@@ -1407,7 +1418,7 @@ class Ut {
1407
1418
  withAutomaticReconnect(e) {
1408
1419
  if (this.reconnectPolicy)
1409
1420
  throw new Error("A reconnectPolicy has already been set.");
1410
- return e ? Array.isArray(e) ? this.reconnectPolicy = new Ee(e) : this.reconnectPolicy = e : this.reconnectPolicy = new Ee(), this;
1421
+ return e ? Array.isArray(e) ? this.reconnectPolicy = new Te(e) : this.reconnectPolicy = e : this.reconnectPolicy = new Te(), this;
1411
1422
  }
1412
1423
  /** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
1413
1424
  *
@@ -1438,14 +1449,14 @@ class Ut {
1438
1449
  const e = this.httpConnectionOptions || {};
1439
1450
  if (e.logger === void 0 && (e.logger = this.logger), !this.url)
1440
1451
  throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
1441
- const n = new It(this.url, e);
1442
- return et.create(n, this.logger || Me.instance, this.protocol || new Nt(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
1452
+ const n = new Mt(this.url, e);
1453
+ return Ze.create(n, this.logger || Le.instance, this.protocol || new Ot(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
1443
1454
  }
1444
1455
  }
1445
- function Wt(t) {
1456
+ function jt(t) {
1446
1457
  return t.log !== void 0;
1447
1458
  }
1448
- const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
1459
+ const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
1449
1460
  children: t,
1450
1461
  apiUrl: e,
1451
1462
  endpoint: n
@@ -1453,67 +1464,73 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
1453
1464
  const {
1454
1465
  authState: s,
1455
1466
  getToken: o
1456
- } = z(pe), i = dt(), [r, a] = R(fe.Disconnected), [c, h] = R(!1), u = Q(null), _ = Q(o);
1457
- _.current = o;
1467
+ } = z(pe), i = dt(), [r, c] = I(fe.Disconnected), [a, h] = I(!1), u = Q(null), w = Q(o);
1468
+ w.current = o;
1458
1469
  const f = Y(() => {
1459
1470
  var d;
1460
- return a(((d = u.current) == null ? void 0 : d.state) ?? fe.Disconnected);
1471
+ return c(((d = u.current) == null ? void 0 : d.state) ?? fe.Disconnected);
1461
1472
  }, []);
1462
1473
  B(() => {
1463
- if (s !== "AUTH_OK" || !i)
1474
+ if (console.log("useEffect apiwebsocket authState", s), s !== "AUTH_OK" || !i)
1464
1475
  return;
1465
- let d = !1, b = null;
1466
- const p = new Ut().withUrl(`${e}/${n}`, {
1467
- accessTokenFactory: () => _.current().then((w) => (w == null ? void 0 : w.token) ?? "")
1476
+ let d = !1, S = null;
1477
+ const p = new Wt().withUrl(`${e}/${n}`, {
1478
+ accessTokenFactory: () => w.current().then((_) => (_ == null ? void 0 : _.token) ?? "")
1468
1479
  }).withAutomaticReconnect({
1469
- nextRetryDelayInMilliseconds: (w) => Math.min(1e3 * 2 ** w.previousRetryCount, Ft)
1480
+ nextRetryDelayInMilliseconds: (_) => Math.min(1e3 * 2 ** _.previousRetryCount, Bt)
1470
1481
  }).build();
1471
- u.current = p, p.on("Connected", (w) => {
1472
- console.log("Server says:", w);
1473
- }), p.onreconnecting((w) => {
1474
- d || (console.log("Reconnecting...", w), f(), h(!0));
1482
+ u.current = p, p.on("Connected", (_) => {
1483
+ console.log("Server says:", _);
1484
+ }), p.onreconnecting((_) => {
1485
+ d || (console.log("Reconnecting...", _), f(), h(!0));
1475
1486
  }), p.onreconnected(() => {
1476
1487
  d || (console.log("Reconnected"), f(), h(!1));
1477
- }), p.onclose((w) => {
1478
- d || (console.log("Connection closed", w), f(), h(!0));
1488
+ }), p.onclose((_) => {
1489
+ d || (console.log("Connection closed", _), f(), h(!0));
1479
1490
  });
1480
1491
  const C = () => {
1481
- p.start().then(() => {
1482
- d || (console.log("Connection started"), f(), h(!1));
1483
- }).catch((w) => {
1484
- d || (console.log("Error starting connection:", w), f(), h(!0), b = window.setTimeout(C, jt));
1492
+ S !== null && window.clearTimeout(S), p.start().then(() => {
1493
+ if (d) {
1494
+ p.stop().catch((_) => {
1495
+ console.log("Error stopping connection:", _);
1496
+ });
1497
+ return;
1498
+ }
1499
+ console.log("Connection started"), f(), h(!1);
1500
+ }).catch((_) => {
1501
+ d || (console.log("Error starting connection:", _), f(), h(!0), S = window.setTimeout(C, Ft));
1485
1502
  });
1486
1503
  };
1487
1504
  return C(), () => {
1488
- d = !0, b !== null && window.clearTimeout(b), u.current = null, p.stop().catch((w) => {
1489
- console.log("Error stopping connection:", w);
1505
+ d = !0, S !== null && window.clearTimeout(S), u.current = null, p.stop().catch((_) => {
1506
+ console.log("Error stopping connection:", _);
1490
1507
  });
1491
1508
  };
1492
1509
  }, [e, s, n, f, i]);
1493
- const g = F(() => r === fe.Connected, [r]), m = F(() => s === "AUTH_OK", [s]), S = F(() => ({
1510
+ const g = F(() => r === fe.Connected, [r]), m = F(() => s === "AUTH_OK", [s]), b = F(() => ({
1494
1511
  isAlive: g,
1495
1512
  shouldBeAlive: m,
1496
1513
  connectionState: r,
1497
- hasLastConnectionEnded: c
1498
- }), [g, m, r, c]);
1499
- return /* @__PURE__ */ y($e.Provider, { value: S, children: t });
1500
- }, un = () => {
1501
- const t = z($e);
1514
+ hasLastConnectionEnded: a
1515
+ }), [g, m, r, a]);
1516
+ return /* @__PURE__ */ y(Me.Provider, { value: b, children: t });
1517
+ }, dn = () => {
1518
+ const t = z(Me);
1502
1519
  if (!t)
1503
1520
  throw new Error("useApiWebSocket must be used within a ApiWebSocketProvider");
1504
1521
  return t;
1505
- }, Ae = 50, Bt = () => {
1522
+ }, xe = 50, zt = () => {
1506
1523
  const t = N.c(22), {
1507
1524
  texts: e
1508
- } = z(ce), {
1525
+ } = z(ae), {
1509
1526
  confirm: n
1510
1527
  } = e, {
1511
1528
  onConfirm: s,
1512
1529
  onCancel: o,
1513
1530
  text: i,
1514
1531
  show: r,
1515
- textSm: a
1516
- } = tt(), c = a === void 0 ? i.length > Ae : a, h = i.length > Ae;
1532
+ textSm: c
1533
+ } = et(), a = c === void 0 ? i.length > xe : c, h = i.length > xe;
1517
1534
  let u;
1518
1535
  t[0] !== o || t[1] !== s || t[2] !== r ? (u = (p) => {
1519
1536
  if (r)
@@ -1527,42 +1544,42 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
1527
1544
  break e;
1528
1545
  }
1529
1546
  }
1530
- }, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3], nt(u);
1547
+ }, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3], tt(u);
1531
1548
  const f = h ? void 0 : "sm";
1532
1549
  let g;
1533
- t[4] !== c || t[5] !== i ? (g = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: c ? /* @__PURE__ */ y(ot, { variant: "body", children: i }) : /* @__PURE__ */ y(H.Title, { children: i }) }), t[4] = c, t[5] = i, t[6] = g) : g = t[6];
1550
+ t[4] !== a || t[5] !== i ? (g = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: a ? /* @__PURE__ */ y(nt, { variant: "body", children: i }) : /* @__PURE__ */ y(H.Title, { children: i }) }), t[4] = a, t[5] = i, t[6] = g) : g = t[6];
1534
1551
  let m;
1535
1552
  t[7] !== n.no || t[8] !== o ? (m = /* @__PURE__ */ y(ie, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: o, children: n.no }), t[7] = n.no, t[8] = o, t[9] = m) : m = t[9];
1536
- let S;
1537
- t[10] !== n.yes || t[11] !== s ? (S = /* @__PURE__ */ y(ie, { type: "button", color: "primary", onClick: s, className: "w-100 ml", children: n.yes }), t[10] = n.yes, t[11] = s, t[12] = S) : S = t[12];
1553
+ let b;
1554
+ t[10] !== n.yes || t[11] !== s ? (b = /* @__PURE__ */ y(ie, { type: "button", color: "primary", onClick: s, className: "w-100 ml", children: n.yes }), t[10] = n.yes, t[11] = s, t[12] = b) : b = t[12];
1538
1555
  let d;
1539
- t[13] !== m || t[14] !== S ? (d = /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */ I("div", { className: "w-100 d-flex gap-5", children: [
1556
+ t[13] !== m || t[14] !== b ? (d = /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */ L("div", { className: "w-100 d-flex gap-5", children: [
1540
1557
  m,
1541
- S
1542
- ] }) }), t[13] = m, t[14] = S, t[15] = d) : d = t[15];
1543
- let b;
1544
- return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !== g || t[20] !== d ? (b = /* @__PURE__ */ I(H, { show: r, size: f, centered: !0, onHide: o, children: [
1558
+ b
1559
+ ] }) }), t[13] = m, t[14] = b, t[15] = d) : d = t[15];
1560
+ let S;
1561
+ return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !== g || t[20] !== d ? (S = /* @__PURE__ */ L(H, { show: r, size: f, centered: !0, onHide: o, children: [
1545
1562
  g,
1546
1563
  d
1547
- ] }), t[16] = o, t[17] = r, t[18] = f, t[19] = g, t[20] = d, t[21] = b) : b = t[21], b;
1564
+ ] }), t[16] = o, t[17] = r, t[18] = f, t[19] = g, t[20] = d, t[21] = S) : S = t[21], S;
1548
1565
  };
1549
1566
  export {
1550
- $e as ApiWebSocketContext,
1551
- hn as ApiWebSocketProvider,
1567
+ Me as ApiWebSocketContext,
1568
+ un as ApiWebSocketProvider,
1552
1569
  pe as AuthContext,
1553
- rn as AuthProvider,
1554
- Re as DelegationContext,
1570
+ cn as AuthProvider,
1571
+ De as DelegationContext,
1555
1572
  an as DelegationProvider,
1556
- gn as FormDisabledContext,
1557
- mn as FormDisabledProvider,
1558
- Xe as HelmetContext,
1559
- cn as HelmetProvider,
1560
- Fe as LoadingContext,
1561
- on as LoadingProvider,
1562
- ce as LuminusComponentsContext,
1563
- nn as LuminusComponentsProvider,
1564
- ze as UserContext,
1565
- sn as UserProvider,
1566
- un as useApiWebSocketContext,
1567
- pn as useFormDisabledContext
1573
+ pn as FormDisabledContext,
1574
+ wn as FormDisabledProvider,
1575
+ Ve as HelmetContext,
1576
+ ln as HelmetProvider,
1577
+ je as LoadingContext,
1578
+ sn as LoadingProvider,
1579
+ ae as LuminusComponentsContext,
1580
+ on as LuminusComponentsProvider,
1581
+ Be as UserContext,
1582
+ rn as UserProvider,
1583
+ dn as useApiWebSocketContext,
1584
+ _n as useFormDisabledContext
1568
1585
  };