@scanupload/qr-code-generator 0.0.3 → 0.0.4
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.
|
@@ -50,38 +50,38 @@ function rr() {
|
|
|
50
50
|
function r(u) {
|
|
51
51
|
if (u == null) return null;
|
|
52
52
|
if (typeof u == "function")
|
|
53
|
-
return u.$$typeof ===
|
|
53
|
+
return u.$$typeof === V ? null : u.displayName || u.name || null;
|
|
54
54
|
if (typeof u == "string") return u;
|
|
55
55
|
switch (u) {
|
|
56
56
|
case j:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case L:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case k:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case q:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case K:
|
|
65
65
|
return "SuspenseList";
|
|
66
|
-
case
|
|
66
|
+
case X:
|
|
67
67
|
return "Activity";
|
|
68
68
|
}
|
|
69
69
|
if (typeof u == "object")
|
|
70
70
|
switch (typeof u.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), u.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case p:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
75
|
+
case M:
|
|
76
76
|
return u.displayName || "Context";
|
|
77
77
|
case D:
|
|
78
78
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
79
|
-
case
|
|
79
|
+
case y:
|
|
80
80
|
var b = u.render;
|
|
81
81
|
return u = u.displayName, u || (u = b.displayName || b.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
82
|
-
case
|
|
82
|
+
case ne:
|
|
83
83
|
return b = u.displayName || null, b !== null ? b : r(u.type) || "Memo";
|
|
84
|
-
case
|
|
84
|
+
case Q:
|
|
85
85
|
b = u._payload, u = u._init;
|
|
86
86
|
try {
|
|
87
87
|
return r(u(b));
|
|
@@ -102,17 +102,17 @@ function rr() {
|
|
|
102
102
|
}
|
|
103
103
|
if (b) {
|
|
104
104
|
b = console;
|
|
105
|
-
var T = b.error,
|
|
105
|
+
var T = b.error, x = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
106
106
|
return T.call(
|
|
107
107
|
b,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
109
|
+
x
|
|
110
110
|
), e(u);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function n(u) {
|
|
114
114
|
if (u === j) return "<>";
|
|
115
|
-
if (typeof u == "object" && u !== null && u.$$typeof ===
|
|
115
|
+
if (typeof u == "object" && u !== null && u.$$typeof === Q)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
118
|
var b = r(u);
|
|
@@ -122,14 +122,14 @@ function rr() {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function s() {
|
|
125
|
-
var u =
|
|
125
|
+
var u = Z.A;
|
|
126
126
|
return u === null ? null : u.getOwner();
|
|
127
127
|
}
|
|
128
128
|
function o() {
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
131
|
function i(u) {
|
|
132
|
-
if (
|
|
132
|
+
if (G.call(u, "key")) {
|
|
133
133
|
var b = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
134
134
|
if (b && b.isReactWarning) return !1;
|
|
135
135
|
}
|
|
@@ -137,7 +137,7 @@ function rr() {
|
|
|
137
137
|
}
|
|
138
138
|
function a(u, b) {
|
|
139
139
|
function T() {
|
|
140
|
-
|
|
140
|
+
z || (z = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
142
|
b
|
|
143
143
|
));
|
|
@@ -149,19 +149,19 @@ function rr() {
|
|
|
149
149
|
}
|
|
150
150
|
function c() {
|
|
151
151
|
var u = r(this.type);
|
|
152
|
-
return
|
|
152
|
+
return oe[u] || (oe[u] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
155
155
|
}
|
|
156
|
-
function l(u, b, T,
|
|
157
|
-
var
|
|
156
|
+
function l(u, b, T, x, O, I) {
|
|
157
|
+
var v = T.ref;
|
|
158
158
|
return u = {
|
|
159
|
-
$$typeof:
|
|
159
|
+
$$typeof: w,
|
|
160
160
|
type: u,
|
|
161
161
|
key: b,
|
|
162
162
|
props: T,
|
|
163
|
-
_owner:
|
|
164
|
-
}, (
|
|
163
|
+
_owner: x
|
|
164
|
+
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(u, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: c
|
|
167
167
|
}) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
@@ -183,94 +183,94 @@ function rr() {
|
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: I
|
|
187
187
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
188
188
|
}
|
|
189
|
-
function h(u, b, T,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
for (
|
|
195
|
-
f(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
189
|
+
function h(u, b, T, x, O, I) {
|
|
190
|
+
var v = b.children;
|
|
191
|
+
if (v !== void 0)
|
|
192
|
+
if (x)
|
|
193
|
+
if (Y(v)) {
|
|
194
|
+
for (x = 0; x < v.length; x++)
|
|
195
|
+
f(v[x]);
|
|
196
|
+
Object.freeze && Object.freeze(v);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else f(
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
var C = Object.keys(b).filter(function(
|
|
205
|
-
return
|
|
201
|
+
else f(v);
|
|
202
|
+
if (G.call(b, "key")) {
|
|
203
|
+
v = r(u);
|
|
204
|
+
var C = Object.keys(b).filter(function(R) {
|
|
205
|
+
return R !== "key";
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
x = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", _[v + x] || (C = 0 < C.length ? "{" + C.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
211
211
|
React keys must be passed directly to JSX without using spread:
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
x,
|
|
215
|
+
v,
|
|
216
216
|
C,
|
|
217
|
-
|
|
218
|
-
),
|
|
217
|
+
v
|
|
218
|
+
), _[v + x] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
220
|
+
if (v = null, T !== void 0 && (t(T), v = "" + T), i(b) && (t(b.key), v = "" + b.key), "key" in b) {
|
|
221
221
|
T = {};
|
|
222
|
-
for (var
|
|
223
|
-
|
|
222
|
+
for (var P in b)
|
|
223
|
+
P !== "key" && (T[P] = b[P]);
|
|
224
224
|
} else T = b;
|
|
225
|
-
return
|
|
225
|
+
return v && a(
|
|
226
226
|
T,
|
|
227
227
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
228
228
|
), l(
|
|
229
229
|
u,
|
|
230
|
-
|
|
230
|
+
v,
|
|
231
231
|
T,
|
|
232
232
|
s(),
|
|
233
233
|
O,
|
|
234
|
-
|
|
234
|
+
I
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function f(u) {
|
|
238
|
-
g(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof ===
|
|
238
|
+
g(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === Q && (u._payload.status === "fulfilled" ? g(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
|
|
239
239
|
}
|
|
240
240
|
function g(u) {
|
|
241
|
-
return typeof u == "object" && u !== null && u.$$typeof ===
|
|
241
|
+
return typeof u == "object" && u !== null && u.$$typeof === w;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var E = ae, w = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), M = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), Z = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, Y = Array.isArray, ee = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
E = {
|
|
247
247
|
react_stack_bottom_frame: function(u) {
|
|
248
248
|
return u();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var z, oe = {}, le = E.react_stack_bottom_frame.bind(
|
|
252
|
+
E,
|
|
253
253
|
o
|
|
254
|
-
)(), ue =
|
|
254
|
+
)(), ue = ee(n(o)), _ = {};
|
|
255
255
|
ye.Fragment = j, ye.jsx = function(u, b, T) {
|
|
256
|
-
var
|
|
256
|
+
var x = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return h(
|
|
258
258
|
u,
|
|
259
259
|
b,
|
|
260
260
|
T,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
x ? Error("react-stack-top-frame") : le,
|
|
263
|
+
x ? ee(n(u)) : ue
|
|
264
264
|
);
|
|
265
265
|
}, ye.jsxs = function(u, b, T) {
|
|
266
|
-
var
|
|
266
|
+
var x = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return h(
|
|
268
268
|
u,
|
|
269
269
|
b,
|
|
270
270
|
T,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
x ? Error("react-stack-top-frame") : le,
|
|
273
|
+
x ? ee(n(u)) : ue
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), ye;
|
|
@@ -279,7 +279,7 @@ var st;
|
|
|
279
279
|
function nr() {
|
|
280
280
|
return st || (st = 1, process.env.NODE_ENV === "production" ? Ce.exports = tr() : Ce.exports = rr()), Ce.exports;
|
|
281
281
|
}
|
|
282
|
-
var m = nr(), pe = {},
|
|
282
|
+
var m = nr(), pe = {}, xe = { exports: {} }, Te = { exports: {} }, N = {};
|
|
283
283
|
/** @license React v16.13.1
|
|
284
284
|
* react-is.production.min.js
|
|
285
285
|
*
|
|
@@ -292,66 +292,66 @@ var it;
|
|
|
292
292
|
function or() {
|
|
293
293
|
if (it) return N;
|
|
294
294
|
it = 1;
|
|
295
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120,
|
|
296
|
-
function D(
|
|
297
|
-
if (typeof
|
|
298
|
-
var
|
|
299
|
-
switch (
|
|
295
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120, E = r ? Symbol.for("react.memo") : 60115, w = r ? Symbol.for("react.lazy") : 60116, p = r ? Symbol.for("react.block") : 60121, j = r ? Symbol.for("react.fundamental") : 60117, k = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
|
|
296
|
+
function D(y) {
|
|
297
|
+
if (typeof y == "object" && y !== null) {
|
|
298
|
+
var q = y.$$typeof;
|
|
299
|
+
switch (q) {
|
|
300
300
|
case e:
|
|
301
|
-
switch (
|
|
301
|
+
switch (y = y.type, y) {
|
|
302
302
|
case c:
|
|
303
303
|
case l:
|
|
304
304
|
case n:
|
|
305
305
|
case o:
|
|
306
306
|
case s:
|
|
307
307
|
case f:
|
|
308
|
-
return
|
|
308
|
+
return y;
|
|
309
309
|
default:
|
|
310
|
-
switch (
|
|
310
|
+
switch (y = y && y.$$typeof, y) {
|
|
311
311
|
case a:
|
|
312
312
|
case h:
|
|
313
|
-
case
|
|
314
|
-
case
|
|
313
|
+
case w:
|
|
314
|
+
case E:
|
|
315
315
|
case i:
|
|
316
|
-
return
|
|
316
|
+
return y;
|
|
317
317
|
default:
|
|
318
|
-
return
|
|
318
|
+
return q;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
case t:
|
|
322
|
-
return
|
|
322
|
+
return q;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return D(
|
|
328
|
-
}
|
|
329
|
-
return N.AsyncMode = c, N.ConcurrentMode = l, N.ContextConsumer = a, N.ContextProvider = i, N.Element = e, N.ForwardRef = h, N.Fragment = n, N.Lazy =
|
|
330
|
-
return
|
|
331
|
-
}, N.isConcurrentMode =
|
|
332
|
-
return D(
|
|
333
|
-
}, N.isContextProvider = function(
|
|
334
|
-
return D(
|
|
335
|
-
}, N.isElement = function(
|
|
336
|
-
return typeof
|
|
337
|
-
}, N.isForwardRef = function(
|
|
338
|
-
return D(
|
|
339
|
-
}, N.isFragment = function(
|
|
340
|
-
return D(
|
|
341
|
-
}, N.isLazy = function(
|
|
342
|
-
return D(
|
|
343
|
-
}, N.isMemo = function(
|
|
344
|
-
return D(
|
|
345
|
-
}, N.isPortal = function(
|
|
346
|
-
return D(
|
|
347
|
-
}, N.isProfiler = function(
|
|
348
|
-
return D(
|
|
349
|
-
}, N.isStrictMode = function(
|
|
350
|
-
return D(
|
|
351
|
-
}, N.isSuspense = function(
|
|
352
|
-
return D(
|
|
353
|
-
}, N.isValidElementType = function(
|
|
354
|
-
return typeof
|
|
326
|
+
function M(y) {
|
|
327
|
+
return D(y) === l;
|
|
328
|
+
}
|
|
329
|
+
return N.AsyncMode = c, N.ConcurrentMode = l, N.ContextConsumer = a, N.ContextProvider = i, N.Element = e, N.ForwardRef = h, N.Fragment = n, N.Lazy = w, N.Memo = E, N.Portal = t, N.Profiler = o, N.StrictMode = s, N.Suspense = f, N.isAsyncMode = function(y) {
|
|
330
|
+
return M(y) || D(y) === c;
|
|
331
|
+
}, N.isConcurrentMode = M, N.isContextConsumer = function(y) {
|
|
332
|
+
return D(y) === a;
|
|
333
|
+
}, N.isContextProvider = function(y) {
|
|
334
|
+
return D(y) === i;
|
|
335
|
+
}, N.isElement = function(y) {
|
|
336
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
337
|
+
}, N.isForwardRef = function(y) {
|
|
338
|
+
return D(y) === h;
|
|
339
|
+
}, N.isFragment = function(y) {
|
|
340
|
+
return D(y) === n;
|
|
341
|
+
}, N.isLazy = function(y) {
|
|
342
|
+
return D(y) === w;
|
|
343
|
+
}, N.isMemo = function(y) {
|
|
344
|
+
return D(y) === E;
|
|
345
|
+
}, N.isPortal = function(y) {
|
|
346
|
+
return D(y) === t;
|
|
347
|
+
}, N.isProfiler = function(y) {
|
|
348
|
+
return D(y) === o;
|
|
349
|
+
}, N.isStrictMode = function(y) {
|
|
350
|
+
return D(y) === s;
|
|
351
|
+
}, N.isSuspense = function(y) {
|
|
352
|
+
return D(y) === f;
|
|
353
|
+
}, N.isValidElementType = function(y) {
|
|
354
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === l || y === o || y === s || y === f || y === g || typeof y == "object" && y !== null && (y.$$typeof === w || y.$$typeof === E || y.$$typeof === i || y.$$typeof === a || y.$$typeof === h || y.$$typeof === j || y.$$typeof === k || y.$$typeof === L || y.$$typeof === p);
|
|
355
355
|
}, N.typeOf = D, N;
|
|
356
356
|
}
|
|
357
357
|
var $ = {};
|
|
@@ -366,32 +366,32 @@ var $ = {};
|
|
|
366
366
|
var at;
|
|
367
367
|
function sr() {
|
|
368
368
|
return at || (at = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
369
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120,
|
|
370
|
-
function D(
|
|
371
|
-
return typeof
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
function
|
|
375
|
-
if (typeof
|
|
376
|
-
var ce =
|
|
369
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, g = r ? Symbol.for("react.suspense_list") : 60120, E = r ? Symbol.for("react.memo") : 60115, w = r ? Symbol.for("react.lazy") : 60116, p = r ? Symbol.for("react.block") : 60121, j = r ? Symbol.for("react.fundamental") : 60117, k = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
|
|
370
|
+
function D(S) {
|
|
371
|
+
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
372
|
+
S === n || S === l || S === o || S === s || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === w || S.$$typeof === E || S.$$typeof === i || S.$$typeof === a || S.$$typeof === h || S.$$typeof === j || S.$$typeof === k || S.$$typeof === L || S.$$typeof === p);
|
|
373
|
+
}
|
|
374
|
+
function M(S) {
|
|
375
|
+
if (typeof S == "object" && S !== null) {
|
|
376
|
+
var ce = S.$$typeof;
|
|
377
377
|
switch (ce) {
|
|
378
378
|
case e:
|
|
379
|
-
var
|
|
380
|
-
switch (
|
|
379
|
+
var Ee = S.type;
|
|
380
|
+
switch (Ee) {
|
|
381
381
|
case c:
|
|
382
382
|
case l:
|
|
383
383
|
case n:
|
|
384
384
|
case o:
|
|
385
385
|
case s:
|
|
386
386
|
case f:
|
|
387
|
-
return
|
|
387
|
+
return Ee;
|
|
388
388
|
default:
|
|
389
|
-
var rt =
|
|
389
|
+
var rt = Ee && Ee.$$typeof;
|
|
390
390
|
switch (rt) {
|
|
391
391
|
case a:
|
|
392
392
|
case h:
|
|
393
|
-
case
|
|
394
|
-
case
|
|
393
|
+
case w:
|
|
394
|
+
case E:
|
|
395
395
|
case i:
|
|
396
396
|
return rt;
|
|
397
397
|
default:
|
|
@@ -403,61 +403,61 @@ function sr() {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
var
|
|
407
|
-
function ue(
|
|
408
|
-
return
|
|
406
|
+
var y = c, q = l, K = a, ne = i, Q = e, X = h, V = n, Z = w, G = E, Y = t, ee = o, z = s, oe = f, le = !1;
|
|
407
|
+
function ue(S) {
|
|
408
|
+
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(S) || M(S) === c;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
return
|
|
410
|
+
function _(S) {
|
|
411
|
+
return M(S) === l;
|
|
412
412
|
}
|
|
413
|
-
function u(
|
|
414
|
-
return
|
|
413
|
+
function u(S) {
|
|
414
|
+
return M(S) === a;
|
|
415
415
|
}
|
|
416
|
-
function b(
|
|
417
|
-
return
|
|
416
|
+
function b(S) {
|
|
417
|
+
return M(S) === i;
|
|
418
418
|
}
|
|
419
|
-
function T(
|
|
420
|
-
return typeof
|
|
419
|
+
function T(S) {
|
|
420
|
+
return typeof S == "object" && S !== null && S.$$typeof === e;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function x(S) {
|
|
423
|
+
return M(S) === h;
|
|
424
424
|
}
|
|
425
|
-
function O(
|
|
426
|
-
return
|
|
425
|
+
function O(S) {
|
|
426
|
+
return M(S) === n;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
return
|
|
428
|
+
function I(S) {
|
|
429
|
+
return M(S) === w;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return
|
|
431
|
+
function v(S) {
|
|
432
|
+
return M(S) === E;
|
|
433
433
|
}
|
|
434
|
-
function C(
|
|
435
|
-
return
|
|
434
|
+
function C(S) {
|
|
435
|
+
return M(S) === t;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
437
|
+
function P(S) {
|
|
438
|
+
return M(S) === o;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
return
|
|
440
|
+
function R(S) {
|
|
441
|
+
return M(S) === s;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
return
|
|
443
|
+
function B(S) {
|
|
444
|
+
return M(S) === f;
|
|
445
445
|
}
|
|
446
|
-
$.AsyncMode =
|
|
446
|
+
$.AsyncMode = y, $.ConcurrentMode = q, $.ContextConsumer = K, $.ContextProvider = ne, $.Element = Q, $.ForwardRef = X, $.Fragment = V, $.Lazy = Z, $.Memo = G, $.Portal = Y, $.Profiler = ee, $.StrictMode = z, $.Suspense = oe, $.isAsyncMode = ue, $.isConcurrentMode = _, $.isContextConsumer = u, $.isContextProvider = b, $.isElement = T, $.isForwardRef = x, $.isFragment = O, $.isLazy = I, $.isMemo = v, $.isPortal = C, $.isProfiler = P, $.isStrictMode = R, $.isSuspense = B, $.isValidElementType = D, $.typeOf = M;
|
|
447
447
|
})()), $;
|
|
448
448
|
}
|
|
449
449
|
var ct;
|
|
450
450
|
function Ht() {
|
|
451
|
-
return ct || (ct = 1, process.env.NODE_ENV === "production" ?
|
|
451
|
+
return ct || (ct = 1, process.env.NODE_ENV === "production" ? Te.exports = or() : Te.exports = sr()), Te.exports;
|
|
452
452
|
}
|
|
453
453
|
/*
|
|
454
454
|
object-assign
|
|
455
455
|
(c) Sindre Sorhus
|
|
456
456
|
@license MIT
|
|
457
457
|
*/
|
|
458
|
-
var
|
|
458
|
+
var Me, lt;
|
|
459
459
|
function ir() {
|
|
460
|
-
if (lt) return
|
|
460
|
+
if (lt) return Me;
|
|
461
461
|
lt = 1;
|
|
462
462
|
var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
463
463
|
function n(o) {
|
|
@@ -487,7 +487,7 @@ function ir() {
|
|
|
487
487
|
return !1;
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
return
|
|
490
|
+
return Me = s() ? Object.assign : function(o, i) {
|
|
491
491
|
for (var a, c = n(o), l, h = 1; h < arguments.length; h++) {
|
|
492
492
|
a = Object(arguments[h]);
|
|
493
493
|
for (var f in a)
|
|
@@ -499,27 +499,27 @@ function ir() {
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
return c;
|
|
502
|
-
},
|
|
502
|
+
}, Me;
|
|
503
503
|
}
|
|
504
|
-
var
|
|
504
|
+
var Ne, ut;
|
|
505
505
|
function Ke() {
|
|
506
|
-
if (ut) return
|
|
506
|
+
if (ut) return Ne;
|
|
507
507
|
ut = 1;
|
|
508
508
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
509
|
-
return
|
|
509
|
+
return Ne = r, Ne;
|
|
510
510
|
}
|
|
511
|
-
var
|
|
512
|
-
function
|
|
513
|
-
return ht || (ht = 1,
|
|
511
|
+
var $e, ht;
|
|
512
|
+
function Wt() {
|
|
513
|
+
return ht || (ht = 1, $e = Function.call.bind(Object.prototype.hasOwnProperty)), $e;
|
|
514
514
|
}
|
|
515
|
-
var
|
|
515
|
+
var Le, ft;
|
|
516
516
|
function ar() {
|
|
517
|
-
if (ft) return
|
|
517
|
+
if (ft) return Le;
|
|
518
518
|
ft = 1;
|
|
519
519
|
var r = function() {
|
|
520
520
|
};
|
|
521
521
|
if (process.env.NODE_ENV !== "production") {
|
|
522
|
-
var e = /* @__PURE__ */ Ke(), t = {}, n = /* @__PURE__ */
|
|
522
|
+
var e = /* @__PURE__ */ Ke(), t = {}, n = /* @__PURE__ */ Wt();
|
|
523
523
|
r = function(o) {
|
|
524
524
|
var i = "Warning: " + o;
|
|
525
525
|
typeof console < "u" && console.error(i);
|
|
@@ -542,16 +542,16 @@ function ar() {
|
|
|
542
542
|
throw g.name = "Invariant Violation", g;
|
|
543
543
|
}
|
|
544
544
|
f = o[h](i, h, c, a, null, e);
|
|
545
|
-
} catch (
|
|
546
|
-
f =
|
|
545
|
+
} catch (w) {
|
|
546
|
+
f = w;
|
|
547
547
|
}
|
|
548
548
|
if (f && !(f instanceof Error) && r(
|
|
549
549
|
(c || "React class") + ": type specification of " + a + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
550
550
|
), f instanceof Error && !(f.message in t)) {
|
|
551
551
|
t[f.message] = !0;
|
|
552
|
-
var
|
|
552
|
+
var E = l ? l() : "";
|
|
553
553
|
r(
|
|
554
|
-
"Failed " + a + " type: " + f.message + (
|
|
554
|
+
"Failed " + a + " type: " + f.message + (E ?? "")
|
|
555
555
|
);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -559,13 +559,13 @@ function ar() {
|
|
|
559
559
|
}
|
|
560
560
|
return s.resetWarningCache = function() {
|
|
561
561
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
562
|
-
},
|
|
562
|
+
}, Le = s, Le;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
564
|
+
var Be, dt;
|
|
565
565
|
function cr() {
|
|
566
|
-
if (dt) return
|
|
566
|
+
if (dt) return Be;
|
|
567
567
|
dt = 1;
|
|
568
|
-
var r = Ht(), e = ir(), t = /* @__PURE__ */ Ke(), n = /* @__PURE__ */
|
|
568
|
+
var r = Ht(), e = ir(), t = /* @__PURE__ */ Ke(), n = /* @__PURE__ */ Wt(), s = /* @__PURE__ */ ar(), o = function() {
|
|
569
569
|
};
|
|
570
570
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
571
571
|
var c = "Warning: " + a;
|
|
@@ -578,262 +578,262 @@ function cr() {
|
|
|
578
578
|
function i() {
|
|
579
579
|
return null;
|
|
580
580
|
}
|
|
581
|
-
return
|
|
581
|
+
return Be = function(a, c) {
|
|
582
582
|
var l = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
583
|
-
function f(
|
|
584
|
-
var u =
|
|
583
|
+
function f(_) {
|
|
584
|
+
var u = _ && (l && _[l] || _[h]);
|
|
585
585
|
if (typeof u == "function")
|
|
586
586
|
return u;
|
|
587
587
|
}
|
|
588
|
-
var g = "<<anonymous>>",
|
|
589
|
-
array:
|
|
590
|
-
bigint:
|
|
591
|
-
bool:
|
|
592
|
-
func:
|
|
593
|
-
number:
|
|
594
|
-
object:
|
|
595
|
-
string:
|
|
596
|
-
symbol:
|
|
597
|
-
any:
|
|
588
|
+
var g = "<<anonymous>>", E = {
|
|
589
|
+
array: k("array"),
|
|
590
|
+
bigint: k("bigint"),
|
|
591
|
+
bool: k("boolean"),
|
|
592
|
+
func: k("function"),
|
|
593
|
+
number: k("number"),
|
|
594
|
+
object: k("object"),
|
|
595
|
+
string: k("string"),
|
|
596
|
+
symbol: k("symbol"),
|
|
597
|
+
any: L(),
|
|
598
598
|
arrayOf: D,
|
|
599
|
-
element:
|
|
600
|
-
elementType:
|
|
601
|
-
instanceOf:
|
|
602
|
-
node:
|
|
603
|
-
objectOf:
|
|
604
|
-
oneOf:
|
|
605
|
-
oneOfType:
|
|
606
|
-
shape:
|
|
607
|
-
exact:
|
|
599
|
+
element: M(),
|
|
600
|
+
elementType: y(),
|
|
601
|
+
instanceOf: q,
|
|
602
|
+
node: X(),
|
|
603
|
+
objectOf: ne,
|
|
604
|
+
oneOf: K,
|
|
605
|
+
oneOfType: Q,
|
|
606
|
+
shape: Z,
|
|
607
|
+
exact: G
|
|
608
608
|
};
|
|
609
|
-
function
|
|
610
|
-
return
|
|
609
|
+
function w(_, u) {
|
|
610
|
+
return _ === u ? _ !== 0 || 1 / _ === 1 / u : _ !== _ && u !== u;
|
|
611
611
|
}
|
|
612
|
-
function _
|
|
613
|
-
this.message =
|
|
612
|
+
function p(_, u) {
|
|
613
|
+
this.message = _, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
614
614
|
}
|
|
615
|
-
|
|
616
|
-
function j(
|
|
615
|
+
p.prototype = Error.prototype;
|
|
616
|
+
function j(_) {
|
|
617
617
|
if (process.env.NODE_ENV !== "production")
|
|
618
618
|
var u = {}, b = 0;
|
|
619
|
-
function T(O,
|
|
620
|
-
if (C = C || g,
|
|
619
|
+
function T(O, I, v, C, P, R, B) {
|
|
620
|
+
if (C = C || g, R = R || v, B !== t) {
|
|
621
621
|
if (c) {
|
|
622
|
-
var
|
|
622
|
+
var S = new Error(
|
|
623
623
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
624
624
|
);
|
|
625
|
-
throw
|
|
625
|
+
throw S.name = "Invariant Violation", S;
|
|
626
626
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
627
|
-
var ce = C + ":" +
|
|
627
|
+
var ce = C + ":" + v;
|
|
628
628
|
!u[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
629
629
|
b < 3 && (o(
|
|
630
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
630
|
+
"You are manually calling a React.PropTypes validation function for the `" + R + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
631
631
|
), u[ce] = !0, b++);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return
|
|
634
|
+
return I[v] == null ? O ? I[v] === null ? new p("The " + P + " `" + R + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new p("The " + P + " `" + R + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : _(I, v, C, P, R);
|
|
635
635
|
}
|
|
636
|
-
var
|
|
637
|
-
return
|
|
638
|
-
}
|
|
639
|
-
function
|
|
640
|
-
function u(b, T,
|
|
641
|
-
var C = b[T],
|
|
642
|
-
if (
|
|
643
|
-
var
|
|
644
|
-
return new
|
|
645
|
-
"Invalid " + O + " `" +
|
|
646
|
-
{ expectedType:
|
|
636
|
+
var x = T.bind(null, !1);
|
|
637
|
+
return x.isRequired = T.bind(null, !0), x;
|
|
638
|
+
}
|
|
639
|
+
function k(_) {
|
|
640
|
+
function u(b, T, x, O, I, v) {
|
|
641
|
+
var C = b[T], P = z(C);
|
|
642
|
+
if (P !== _) {
|
|
643
|
+
var R = oe(C);
|
|
644
|
+
return new p(
|
|
645
|
+
"Invalid " + O + " `" + I + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("`" + _ + "`."),
|
|
646
|
+
{ expectedType: _ }
|
|
647
647
|
);
|
|
648
648
|
}
|
|
649
649
|
return null;
|
|
650
650
|
}
|
|
651
651
|
return j(u);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function L() {
|
|
654
654
|
return j(i);
|
|
655
655
|
}
|
|
656
|
-
function D(
|
|
657
|
-
function u(b, T,
|
|
658
|
-
if (typeof
|
|
659
|
-
return new
|
|
660
|
-
var
|
|
661
|
-
if (!Array.isArray(
|
|
662
|
-
var C =
|
|
663
|
-
return new
|
|
656
|
+
function D(_) {
|
|
657
|
+
function u(b, T, x, O, I) {
|
|
658
|
+
if (typeof _ != "function")
|
|
659
|
+
return new p("Property `" + I + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
|
|
660
|
+
var v = b[T];
|
|
661
|
+
if (!Array.isArray(v)) {
|
|
662
|
+
var C = z(v);
|
|
663
|
+
return new p("Invalid " + O + " `" + I + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected an array."));
|
|
664
664
|
}
|
|
665
|
-
for (var
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
665
|
+
for (var P = 0; P < v.length; P++) {
|
|
666
|
+
var R = _(v, P, x, O, I + "[" + P + "]", t);
|
|
667
|
+
if (R instanceof Error)
|
|
668
|
+
return R;
|
|
669
669
|
}
|
|
670
670
|
return null;
|
|
671
671
|
}
|
|
672
672
|
return j(u);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
function
|
|
676
|
-
var
|
|
677
|
-
if (!a(
|
|
678
|
-
var
|
|
679
|
-
return new
|
|
674
|
+
function M() {
|
|
675
|
+
function _(u, b, T, x, O) {
|
|
676
|
+
var I = u[b];
|
|
677
|
+
if (!a(I)) {
|
|
678
|
+
var v = z(I);
|
|
679
|
+
return new p("Invalid " + x + " `" + O + "` of type " + ("`" + v + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
680
680
|
}
|
|
681
681
|
return null;
|
|
682
682
|
}
|
|
683
|
-
return j(
|
|
684
|
-
}
|
|
685
|
-
function
|
|
686
|
-
function
|
|
687
|
-
var
|
|
688
|
-
if (!r.isValidElementType(
|
|
689
|
-
var
|
|
690
|
-
return new
|
|
683
|
+
return j(_);
|
|
684
|
+
}
|
|
685
|
+
function y() {
|
|
686
|
+
function _(u, b, T, x, O) {
|
|
687
|
+
var I = u[b];
|
|
688
|
+
if (!r.isValidElementType(I)) {
|
|
689
|
+
var v = z(I);
|
|
690
|
+
return new p("Invalid " + x + " `" + O + "` of type " + ("`" + v + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
691
691
|
}
|
|
692
692
|
return null;
|
|
693
693
|
}
|
|
694
|
-
return j(
|
|
694
|
+
return j(_);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
function u(b, T,
|
|
698
|
-
if (!(b[T] instanceof
|
|
699
|
-
var
|
|
700
|
-
return new
|
|
696
|
+
function q(_) {
|
|
697
|
+
function u(b, T, x, O, I) {
|
|
698
|
+
if (!(b[T] instanceof _)) {
|
|
699
|
+
var v = _.name || g, C = ue(b[T]);
|
|
700
|
+
return new p("Invalid " + O + " `" + I + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected ") + ("instance of `" + v + "`."));
|
|
701
701
|
}
|
|
702
702
|
return null;
|
|
703
703
|
}
|
|
704
704
|
return j(u);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
if (!Array.isArray(
|
|
706
|
+
function K(_) {
|
|
707
|
+
if (!Array.isArray(_))
|
|
708
708
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
709
709
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
710
710
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
711
|
-
function u(b, T,
|
|
712
|
-
for (var
|
|
713
|
-
if (
|
|
711
|
+
function u(b, T, x, O, I) {
|
|
712
|
+
for (var v = b[T], C = 0; C < _.length; C++)
|
|
713
|
+
if (w(v, _[C]))
|
|
714
714
|
return null;
|
|
715
|
-
var
|
|
716
|
-
var ce =
|
|
717
|
-
return ce === "symbol" ? String(
|
|
715
|
+
var P = JSON.stringify(_, function(B, S) {
|
|
716
|
+
var ce = oe(S);
|
|
717
|
+
return ce === "symbol" ? String(S) : S;
|
|
718
718
|
});
|
|
719
|
-
return new
|
|
719
|
+
return new p("Invalid " + O + " `" + I + "` of value `" + String(v) + "` " + ("supplied to `" + x + "`, expected one of " + P + "."));
|
|
720
720
|
}
|
|
721
721
|
return j(u);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
function u(b, T,
|
|
725
|
-
if (typeof
|
|
726
|
-
return new
|
|
727
|
-
var
|
|
723
|
+
function ne(_) {
|
|
724
|
+
function u(b, T, x, O, I) {
|
|
725
|
+
if (typeof _ != "function")
|
|
726
|
+
return new p("Property `" + I + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
|
|
727
|
+
var v = b[T], C = z(v);
|
|
728
728
|
if (C !== "object")
|
|
729
|
-
return new
|
|
730
|
-
for (var
|
|
731
|
-
if (n(
|
|
732
|
-
var
|
|
733
|
-
if (
|
|
734
|
-
return
|
|
729
|
+
return new p("Invalid " + O + " `" + I + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected an object."));
|
|
730
|
+
for (var P in v)
|
|
731
|
+
if (n(v, P)) {
|
|
732
|
+
var R = _(v, P, x, O, I + "." + P, t);
|
|
733
|
+
if (R instanceof Error)
|
|
734
|
+
return R;
|
|
735
735
|
}
|
|
736
736
|
return null;
|
|
737
737
|
}
|
|
738
738
|
return j(u);
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
if (!Array.isArray(
|
|
740
|
+
function Q(_) {
|
|
741
|
+
if (!Array.isArray(_))
|
|
742
742
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
743
|
-
for (var u = 0; u <
|
|
744
|
-
var b =
|
|
743
|
+
for (var u = 0; u < _.length; u++) {
|
|
744
|
+
var b = _[u];
|
|
745
745
|
if (typeof b != "function")
|
|
746
746
|
return o(
|
|
747
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
747
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + le(b) + " at index " + u + "."
|
|
748
748
|
), i;
|
|
749
749
|
}
|
|
750
|
-
function T(
|
|
751
|
-
for (var
|
|
752
|
-
var
|
|
753
|
-
if (
|
|
750
|
+
function T(x, O, I, v, C) {
|
|
751
|
+
for (var P = [], R = 0; R < _.length; R++) {
|
|
752
|
+
var B = _[R], S = B(x, O, I, v, C, t);
|
|
753
|
+
if (S == null)
|
|
754
754
|
return null;
|
|
755
|
-
|
|
755
|
+
S.data && n(S.data, "expectedType") && P.push(S.data.expectedType);
|
|
756
756
|
}
|
|
757
|
-
var ce =
|
|
758
|
-
return new
|
|
757
|
+
var ce = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
758
|
+
return new p("Invalid " + v + " `" + C + "` supplied to " + ("`" + I + "`" + ce + "."));
|
|
759
759
|
}
|
|
760
760
|
return j(T);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
function
|
|
764
|
-
return
|
|
762
|
+
function X() {
|
|
763
|
+
function _(u, b, T, x, O) {
|
|
764
|
+
return Y(u[b]) ? null : new p("Invalid " + x + " `" + O + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
765
765
|
}
|
|
766
|
-
return j(
|
|
766
|
+
return j(_);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
return new
|
|
770
|
-
(
|
|
768
|
+
function V(_, u, b, T, x) {
|
|
769
|
+
return new p(
|
|
770
|
+
(_ || "React class") + ": " + u + " type `" + b + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
|
|
771
771
|
);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
774
|
-
function u(b, T,
|
|
775
|
-
var
|
|
773
|
+
function Z(_) {
|
|
774
|
+
function u(b, T, x, O, I) {
|
|
775
|
+
var v = b[T], C = z(v);
|
|
776
776
|
if (C !== "object")
|
|
777
|
-
return new
|
|
778
|
-
for (var
|
|
779
|
-
var
|
|
780
|
-
if (typeof
|
|
781
|
-
return
|
|
782
|
-
var
|
|
783
|
-
if (
|
|
784
|
-
return
|
|
777
|
+
return new p("Invalid " + O + " `" + I + "` of type `" + C + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
778
|
+
for (var P in _) {
|
|
779
|
+
var R = _[P];
|
|
780
|
+
if (typeof R != "function")
|
|
781
|
+
return V(x, O, I, P, oe(R));
|
|
782
|
+
var B = R(v, P, x, O, I + "." + P, t);
|
|
783
|
+
if (B)
|
|
784
|
+
return B;
|
|
785
785
|
}
|
|
786
786
|
return null;
|
|
787
787
|
}
|
|
788
788
|
return j(u);
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
function u(b, T,
|
|
792
|
-
var
|
|
790
|
+
function G(_) {
|
|
791
|
+
function u(b, T, x, O, I) {
|
|
792
|
+
var v = b[T], C = z(v);
|
|
793
793
|
if (C !== "object")
|
|
794
|
-
return new
|
|
795
|
-
var
|
|
796
|
-
for (var
|
|
797
|
-
var
|
|
798
|
-
if (n(
|
|
799
|
-
return
|
|
800
|
-
if (!
|
|
801
|
-
return new
|
|
802
|
-
"Invalid " + O + " `" +
|
|
803
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
794
|
+
return new p("Invalid " + O + " `" + I + "` of type `" + C + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
795
|
+
var P = e({}, b[T], _);
|
|
796
|
+
for (var R in P) {
|
|
797
|
+
var B = _[R];
|
|
798
|
+
if (n(_, R) && typeof B != "function")
|
|
799
|
+
return V(x, O, I, R, oe(B));
|
|
800
|
+
if (!B)
|
|
801
|
+
return new p(
|
|
802
|
+
"Invalid " + O + " `" + I + "` key `" + R + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(b[T], null, " ") + `
|
|
803
|
+
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
804
804
|
);
|
|
805
|
-
var
|
|
806
|
-
if (
|
|
807
|
-
return
|
|
805
|
+
var S = B(v, R, x, O, I + "." + R, t);
|
|
806
|
+
if (S)
|
|
807
|
+
return S;
|
|
808
808
|
}
|
|
809
809
|
return null;
|
|
810
810
|
}
|
|
811
811
|
return j(u);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
814
|
-
switch (typeof
|
|
813
|
+
function Y(_) {
|
|
814
|
+
switch (typeof _) {
|
|
815
815
|
case "number":
|
|
816
816
|
case "string":
|
|
817
817
|
case "undefined":
|
|
818
818
|
return !0;
|
|
819
819
|
case "boolean":
|
|
820
|
-
return !
|
|
820
|
+
return !_;
|
|
821
821
|
case "object":
|
|
822
|
-
if (Array.isArray(
|
|
823
|
-
return
|
|
824
|
-
if (
|
|
822
|
+
if (Array.isArray(_))
|
|
823
|
+
return _.every(Y);
|
|
824
|
+
if (_ === null || a(_))
|
|
825
825
|
return !0;
|
|
826
|
-
var u = f(
|
|
826
|
+
var u = f(_);
|
|
827
827
|
if (u) {
|
|
828
|
-
var b = u.call(
|
|
829
|
-
if (u !==
|
|
828
|
+
var b = u.call(_), T;
|
|
829
|
+
if (u !== _.entries) {
|
|
830
830
|
for (; !(T = b.next()).done; )
|
|
831
|
-
if (!
|
|
831
|
+
if (!Y(T.value))
|
|
832
832
|
return !1;
|
|
833
833
|
} else
|
|
834
834
|
for (; !(T = b.next()).done; ) {
|
|
835
|
-
var
|
|
836
|
-
if (
|
|
835
|
+
var x = T.value;
|
|
836
|
+
if (x && !Y(x[1]))
|
|
837
837
|
return !1;
|
|
838
838
|
}
|
|
839
839
|
} else
|
|
@@ -843,27 +843,27 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
843
843
|
return !1;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
return
|
|
846
|
+
function ee(_, u) {
|
|
847
|
+
return _ === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
var u = typeof
|
|
851
|
-
return Array.isArray(
|
|
849
|
+
function z(_) {
|
|
850
|
+
var u = typeof _;
|
|
851
|
+
return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : ee(u, _) ? "symbol" : u;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
if (typeof
|
|
855
|
-
return "" +
|
|
856
|
-
var u =
|
|
853
|
+
function oe(_) {
|
|
854
|
+
if (typeof _ > "u" || _ === null)
|
|
855
|
+
return "" + _;
|
|
856
|
+
var u = z(_);
|
|
857
857
|
if (u === "object") {
|
|
858
|
-
if (
|
|
858
|
+
if (_ instanceof Date)
|
|
859
859
|
return "date";
|
|
860
|
-
if (
|
|
860
|
+
if (_ instanceof RegExp)
|
|
861
861
|
return "regexp";
|
|
862
862
|
}
|
|
863
863
|
return u;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
var u =
|
|
865
|
+
function le(_) {
|
|
866
|
+
var u = oe(_);
|
|
867
867
|
switch (u) {
|
|
868
868
|
case "array":
|
|
869
869
|
case "object":
|
|
@@ -876,22 +876,22 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
876
876
|
return u;
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
|
-
function ue(
|
|
880
|
-
return !
|
|
879
|
+
function ue(_) {
|
|
880
|
+
return !_.constructor || !_.constructor.name ? g : _.constructor.name;
|
|
881
881
|
}
|
|
882
|
-
return
|
|
883
|
-
},
|
|
882
|
+
return E.checkPropTypes = s, E.resetWarningCache = s.resetWarningCache, E.PropTypes = E, E;
|
|
883
|
+
}, Be;
|
|
884
884
|
}
|
|
885
|
-
var
|
|
885
|
+
var ze, gt;
|
|
886
886
|
function lr() {
|
|
887
|
-
if (gt) return
|
|
887
|
+
if (gt) return ze;
|
|
888
888
|
gt = 1;
|
|
889
889
|
var r = /* @__PURE__ */ Ke();
|
|
890
890
|
function e() {
|
|
891
891
|
}
|
|
892
892
|
function t() {
|
|
893
893
|
}
|
|
894
|
-
return t.resetWarningCache = e,
|
|
894
|
+
return t.resetWarningCache = e, ze = function() {
|
|
895
895
|
function n(i, a, c, l, h, f) {
|
|
896
896
|
if (f !== r) {
|
|
897
897
|
var g = new Error(
|
|
@@ -928,35 +928,35 @@ function lr() {
|
|
|
928
928
|
resetWarningCache: e
|
|
929
929
|
};
|
|
930
930
|
return o.PropTypes = o, o;
|
|
931
|
-
},
|
|
931
|
+
}, ze;
|
|
932
932
|
}
|
|
933
933
|
var pt;
|
|
934
|
-
function
|
|
935
|
-
if (pt) return
|
|
934
|
+
function Ut() {
|
|
935
|
+
if (pt) return xe.exports;
|
|
936
936
|
if (pt = 1, process.env.NODE_ENV !== "production") {
|
|
937
937
|
var r = Ht(), e = !0;
|
|
938
|
-
|
|
938
|
+
xe.exports = /* @__PURE__ */ cr()(r.isElement, e);
|
|
939
939
|
} else
|
|
940
|
-
|
|
941
|
-
return
|
|
940
|
+
xe.exports = /* @__PURE__ */ lr()();
|
|
941
|
+
return xe.exports;
|
|
942
942
|
}
|
|
943
|
-
var
|
|
943
|
+
var He, _t;
|
|
944
944
|
function Ft() {
|
|
945
|
-
return _t || (_t = 1,
|
|
945
|
+
return _t || (_t = 1, He = {
|
|
946
946
|
L: 1,
|
|
947
947
|
M: 0,
|
|
948
948
|
Q: 3,
|
|
949
949
|
H: 2
|
|
950
|
-
}),
|
|
950
|
+
}), He;
|
|
951
951
|
}
|
|
952
|
-
var
|
|
952
|
+
var We, mt;
|
|
953
953
|
function qt() {
|
|
954
|
-
return mt || (mt = 1,
|
|
954
|
+
return mt || (mt = 1, We = {
|
|
955
955
|
MODE_NUMBER: 1,
|
|
956
956
|
MODE_ALPHA_NUM: 2,
|
|
957
957
|
MODE_8BIT_BYTE: 4,
|
|
958
958
|
MODE_KANJI: 8
|
|
959
|
-
}),
|
|
959
|
+
}), We;
|
|
960
960
|
}
|
|
961
961
|
var Ue, vt;
|
|
962
962
|
function ur() {
|
|
@@ -976,9 +976,9 @@ function ur() {
|
|
|
976
976
|
}
|
|
977
977
|
}, Ue = e, Ue;
|
|
978
978
|
}
|
|
979
|
-
var
|
|
979
|
+
var Fe, yt;
|
|
980
980
|
function hr() {
|
|
981
|
-
if (yt) return
|
|
981
|
+
if (yt) return Fe;
|
|
982
982
|
yt = 1;
|
|
983
983
|
var r = Ft();
|
|
984
984
|
function e(t, n) {
|
|
@@ -1210,12 +1210,12 @@ function hr() {
|
|
|
1210
1210
|
default:
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
|
-
},
|
|
1213
|
+
}, Fe = e, Fe;
|
|
1214
1214
|
}
|
|
1215
|
-
var
|
|
1215
|
+
var qe, wt;
|
|
1216
1216
|
function fr() {
|
|
1217
|
-
if (
|
|
1218
|
-
|
|
1217
|
+
if (wt) return qe;
|
|
1218
|
+
wt = 1;
|
|
1219
1219
|
function r() {
|
|
1220
1220
|
this.buffer = new Array(), this.length = 0;
|
|
1221
1221
|
}
|
|
@@ -1235,12 +1235,12 @@ function fr() {
|
|
|
1235
1235
|
var t = Math.floor(this.length / 8);
|
|
1236
1236
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
1237
1237
|
}
|
|
1238
|
-
},
|
|
1238
|
+
}, qe = r, qe;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Ve, bt;
|
|
1241
1241
|
function Vt() {
|
|
1242
|
-
if (
|
|
1243
|
-
|
|
1242
|
+
if (bt) return Ve;
|
|
1243
|
+
bt = 1;
|
|
1244
1244
|
for (var r = {
|
|
1245
1245
|
glog: function(t) {
|
|
1246
1246
|
if (t < 1)
|
|
@@ -1262,11 +1262,11 @@ function Vt() {
|
|
|
1262
1262
|
r.EXP_TABLE[e] = r.EXP_TABLE[e - 4] ^ r.EXP_TABLE[e - 5] ^ r.EXP_TABLE[e - 6] ^ r.EXP_TABLE[e - 8];
|
|
1263
1263
|
for (var e = 0; e < 255; e++)
|
|
1264
1264
|
r.LOG_TABLE[r.EXP_TABLE[e]] = e;
|
|
1265
|
-
return
|
|
1265
|
+
return Ve = r, Ve;
|
|
1266
1266
|
}
|
|
1267
|
-
var
|
|
1267
|
+
var Ye, St;
|
|
1268
1268
|
function Yt() {
|
|
1269
|
-
if (St) return
|
|
1269
|
+
if (St) return Ye;
|
|
1270
1270
|
St = 1;
|
|
1271
1271
|
var r = Vt();
|
|
1272
1272
|
function e(t, n) {
|
|
@@ -1300,12 +1300,12 @@ function Yt() {
|
|
|
1300
1300
|
s[o] ^= r.gexp(r.glog(t.get(o)) + n);
|
|
1301
1301
|
return new e(s, 0).mod(t);
|
|
1302
1302
|
}
|
|
1303
|
-
},
|
|
1303
|
+
}, Ye = e, Ye;
|
|
1304
1304
|
}
|
|
1305
|
-
var
|
|
1305
|
+
var Qe, Et;
|
|
1306
1306
|
function dr() {
|
|
1307
|
-
if (
|
|
1308
|
-
|
|
1307
|
+
if (Et) return Qe;
|
|
1308
|
+
Et = 1;
|
|
1309
1309
|
var r = qt(), e = Yt(), t = Vt(), n = {
|
|
1310
1310
|
PATTERN000: 0,
|
|
1311
1311
|
PATTERN001: 1,
|
|
@@ -1454,14 +1454,14 @@ function dr() {
|
|
|
1454
1454
|
for (var l = 0; l < i; l++) {
|
|
1455
1455
|
for (var h = 0, f = o.isDark(c, l), g = -1; g <= 1; g++)
|
|
1456
1456
|
if (!(c + g < 0 || i <= c + g))
|
|
1457
|
-
for (var
|
|
1458
|
-
l +
|
|
1457
|
+
for (var E = -1; E <= 1; E++)
|
|
1458
|
+
l + E < 0 || i <= l + E || g == 0 && E == 0 || f == o.isDark(c + g, l + E) && h++;
|
|
1459
1459
|
h > 5 && (a += 3 + h - 5);
|
|
1460
1460
|
}
|
|
1461
1461
|
for (var c = 0; c < i - 1; c++)
|
|
1462
1462
|
for (var l = 0; l < i - 1; l++) {
|
|
1463
|
-
var
|
|
1464
|
-
o.isDark(c, l) &&
|
|
1463
|
+
var w = 0;
|
|
1464
|
+
o.isDark(c, l) && w++, o.isDark(c + 1, l) && w++, o.isDark(c, l + 1) && w++, o.isDark(c + 1, l + 1) && w++, (w == 0 || w == 4) && (a += 3);
|
|
1465
1465
|
}
|
|
1466
1466
|
for (var c = 0; c < i; c++)
|
|
1467
1467
|
for (var l = 0; l < i - 6; l++)
|
|
@@ -1469,19 +1469,19 @@ function dr() {
|
|
|
1469
1469
|
for (var l = 0; l < i; l++)
|
|
1470
1470
|
for (var c = 0; c < i - 6; c++)
|
|
1471
1471
|
o.isDark(c, l) && !o.isDark(c + 1, l) && o.isDark(c + 2, l) && o.isDark(c + 3, l) && o.isDark(c + 4, l) && !o.isDark(c + 5, l) && o.isDark(c + 6, l) && (a += 40);
|
|
1472
|
-
for (var
|
|
1472
|
+
for (var p = 0, l = 0; l < i; l++)
|
|
1473
1473
|
for (var c = 0; c < i; c++)
|
|
1474
|
-
o.isDark(c, l) &&
|
|
1475
|
-
var j = Math.abs(100 *
|
|
1474
|
+
o.isDark(c, l) && p++;
|
|
1475
|
+
var j = Math.abs(100 * p / i / i - 50) / 5;
|
|
1476
1476
|
return a += j * 10, a;
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
return
|
|
1479
|
+
return Qe = s, Qe;
|
|
1480
1480
|
}
|
|
1481
|
-
var
|
|
1481
|
+
var Je, Ct;
|
|
1482
1482
|
function gr() {
|
|
1483
|
-
if (
|
|
1484
|
-
|
|
1483
|
+
if (Ct) return Je;
|
|
1484
|
+
Ct = 1;
|
|
1485
1485
|
var r = ur(), e = hr(), t = fr(), n = dr(), s = Yt();
|
|
1486
1486
|
function o(a, c) {
|
|
1487
1487
|
this.typeNumber = a, this.errorCorrectLevel = c, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
@@ -1536,9 +1536,9 @@ function gr() {
|
|
|
1536
1536
|
var h = a.createEmptyMovieClip(c, l), f = 1;
|
|
1537
1537
|
this.make();
|
|
1538
1538
|
for (var g = 0; g < this.modules.length; g++)
|
|
1539
|
-
for (var
|
|
1540
|
-
var
|
|
1541
|
-
j && (h.beginFill(0, 100), h.moveTo(
|
|
1539
|
+
for (var E = g * f, w = 0; w < this.modules[g].length; w++) {
|
|
1540
|
+
var p = w * f, j = this.modules[g][w];
|
|
1541
|
+
j && (h.beginFill(0, 100), h.moveTo(p, E), h.lineTo(p + f, E), h.lineTo(p + f, E + f), h.lineTo(p, E + f), h.endFill());
|
|
1542
1542
|
}
|
|
1543
1543
|
return h;
|
|
1544
1544
|
}, i.setupTimingPattern = function() {
|
|
@@ -1552,8 +1552,8 @@ function gr() {
|
|
|
1552
1552
|
var h = a[c], f = a[l];
|
|
1553
1553
|
if (this.modules[h][f] == null)
|
|
1554
1554
|
for (var g = -2; g <= 2; g++)
|
|
1555
|
-
for (var
|
|
1556
|
-
g == -2 || g == 2 ||
|
|
1555
|
+
for (var E = -2; E <= 2; E++)
|
|
1556
|
+
g == -2 || g == 2 || E == -2 || E == 2 || g == 0 && E == 0 ? this.modules[h + g][f + E] = !0 : this.modules[h + g][f + E] = !1;
|
|
1557
1557
|
}
|
|
1558
1558
|
}, i.setupTypeNumber = function(a) {
|
|
1559
1559
|
for (var c = n.getBCHTypeNumber(this.typeNumber), l = 0; l < 18; l++) {
|
|
@@ -1575,14 +1575,14 @@ function gr() {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
this.modules[this.moduleCount - 8][8] = !a;
|
|
1577
1577
|
}, i.mapData = function(a, c) {
|
|
1578
|
-
for (var l = -1, h = this.moduleCount - 1, f = 7, g = 0,
|
|
1579
|
-
for (
|
|
1580
|
-
for (var
|
|
1581
|
-
if (this.modules[h][
|
|
1582
|
-
var
|
|
1583
|
-
g < a.length && (
|
|
1584
|
-
var j = n.getMask(c, h,
|
|
1585
|
-
j && (
|
|
1578
|
+
for (var l = -1, h = this.moduleCount - 1, f = 7, g = 0, E = this.moduleCount - 1; E > 0; E -= 2)
|
|
1579
|
+
for (E == 6 && E--; ; ) {
|
|
1580
|
+
for (var w = 0; w < 2; w++)
|
|
1581
|
+
if (this.modules[h][E - w] == null) {
|
|
1582
|
+
var p = !1;
|
|
1583
|
+
g < a.length && (p = (a[g] >>> f & 1) == 1);
|
|
1584
|
+
var j = n.getMask(c, h, E - w);
|
|
1585
|
+
j && (p = !p), this.modules[h][E - w] = p, f--, f == -1 && (g++, f = 7);
|
|
1586
1586
|
}
|
|
1587
1587
|
if (h += l, h < 0 || this.moduleCount <= h) {
|
|
1588
1588
|
h -= l, l = -l;
|
|
@@ -1591,47 +1591,47 @@ function gr() {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}, o.PAD0 = 236, o.PAD1 = 17, o.createData = function(a, c, l) {
|
|
1593
1593
|
for (var h = e.getRSBlocks(a, c), f = new t(), g = 0; g < l.length; g++) {
|
|
1594
|
-
var
|
|
1595
|
-
f.put(
|
|
1596
|
-
}
|
|
1597
|
-
for (var
|
|
1598
|
-
|
|
1599
|
-
if (f.getLengthInBits() >
|
|
1600
|
-
throw new Error("code length overflow. (" + f.getLengthInBits() + ">" +
|
|
1601
|
-
for (f.getLengthInBits() + 4 <=
|
|
1594
|
+
var E = l[g];
|
|
1595
|
+
f.put(E.mode, 4), f.put(E.getLength(), n.getLengthInBits(E.mode, a)), E.write(f);
|
|
1596
|
+
}
|
|
1597
|
+
for (var w = 0, g = 0; g < h.length; g++)
|
|
1598
|
+
w += h[g].dataCount;
|
|
1599
|
+
if (f.getLengthInBits() > w * 8)
|
|
1600
|
+
throw new Error("code length overflow. (" + f.getLengthInBits() + ">" + w * 8 + ")");
|
|
1601
|
+
for (f.getLengthInBits() + 4 <= w * 8 && f.put(0, 4); f.getLengthInBits() % 8 != 0; )
|
|
1602
1602
|
f.putBit(!1);
|
|
1603
|
-
for (; !(f.getLengthInBits() >=
|
|
1603
|
+
for (; !(f.getLengthInBits() >= w * 8 || (f.put(o.PAD0, 8), f.getLengthInBits() >= w * 8)); )
|
|
1604
1604
|
f.put(o.PAD1, 8);
|
|
1605
1605
|
return o.createBytes(f, h);
|
|
1606
1606
|
}, o.createBytes = function(a, c) {
|
|
1607
|
-
for (var l = 0, h = 0, f = 0, g = new Array(c.length),
|
|
1608
|
-
var
|
|
1609
|
-
h = Math.max(h,
|
|
1610
|
-
for (var
|
|
1611
|
-
g[
|
|
1612
|
-
l +=
|
|
1613
|
-
var
|
|
1614
|
-
|
|
1615
|
-
for (var
|
|
1616
|
-
var
|
|
1617
|
-
|
|
1607
|
+
for (var l = 0, h = 0, f = 0, g = new Array(c.length), E = new Array(c.length), w = 0; w < c.length; w++) {
|
|
1608
|
+
var p = c[w].dataCount, j = c[w].totalCount - p;
|
|
1609
|
+
h = Math.max(h, p), f = Math.max(f, j), g[w] = new Array(p);
|
|
1610
|
+
for (var k = 0; k < g[w].length; k++)
|
|
1611
|
+
g[w][k] = 255 & a.buffer[k + l];
|
|
1612
|
+
l += p;
|
|
1613
|
+
var L = n.getErrorCorrectPolynomial(j), D = new s(g[w], L.getLength() - 1), M = D.mod(L);
|
|
1614
|
+
E[w] = new Array(L.getLength() - 1);
|
|
1615
|
+
for (var k = 0; k < E[w].length; k++) {
|
|
1616
|
+
var y = k + M.getLength() - E[w].length;
|
|
1617
|
+
E[w][k] = y >= 0 ? M.get(y) : 0;
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
for (var
|
|
1621
|
-
|
|
1622
|
-
for (var
|
|
1623
|
-
for (var
|
|
1624
|
-
|
|
1625
|
-
for (var
|
|
1626
|
-
for (var
|
|
1627
|
-
|
|
1628
|
-
return
|
|
1629
|
-
},
|
|
1620
|
+
for (var q = 0, k = 0; k < c.length; k++)
|
|
1621
|
+
q += c[k].totalCount;
|
|
1622
|
+
for (var K = new Array(q), ne = 0, k = 0; k < h; k++)
|
|
1623
|
+
for (var w = 0; w < c.length; w++)
|
|
1624
|
+
k < g[w].length && (K[ne++] = g[w][k]);
|
|
1625
|
+
for (var k = 0; k < f; k++)
|
|
1626
|
+
for (var w = 0; w < c.length; w++)
|
|
1627
|
+
k < E[w].length && (K[ne++] = E[w][k]);
|
|
1628
|
+
return K;
|
|
1629
|
+
}, Je = o, Je;
|
|
1630
1630
|
}
|
|
1631
|
-
var
|
|
1631
|
+
var ke = {}, xt;
|
|
1632
1632
|
function pr() {
|
|
1633
|
-
if (xt) return
|
|
1634
|
-
xt = 1, Object.defineProperty(
|
|
1633
|
+
if (xt) return ke;
|
|
1634
|
+
xt = 1, Object.defineProperty(ke, "__esModule", {
|
|
1635
1635
|
value: !0
|
|
1636
1636
|
});
|
|
1637
1637
|
var r = Object.assign || function(l) {
|
|
@@ -1641,7 +1641,7 @@ function pr() {
|
|
|
1641
1641
|
Object.prototype.hasOwnProperty.call(f, g) && (l[g] = f[g]);
|
|
1642
1642
|
}
|
|
1643
1643
|
return l;
|
|
1644
|
-
}, e = /* @__PURE__ */
|
|
1644
|
+
}, e = /* @__PURE__ */ Ut(), t = o(e), n = ae, s = o(n);
|
|
1645
1645
|
function o(l) {
|
|
1646
1646
|
return l && l.__esModule ? l : { default: l };
|
|
1647
1647
|
}
|
|
@@ -1661,20 +1661,20 @@ function pr() {
|
|
|
1661
1661
|
viewBoxSize: t.default.number.isRequired,
|
|
1662
1662
|
xmlns: t.default.string
|
|
1663
1663
|
}, c = (0, n.forwardRef)(function(l, h) {
|
|
1664
|
-
var f = l.bgColor, g = l.bgD,
|
|
1664
|
+
var f = l.bgColor, g = l.bgD, E = l.fgD, w = l.fgColor, p = l.size, j = l.title, k = l.viewBoxSize, L = l.xmlns, D = L === void 0 ? "http://www.w3.org/2000/svg" : L, M = i(l, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
|
|
1665
1665
|
return s.default.createElement(
|
|
1666
1666
|
"svg",
|
|
1667
|
-
r({},
|
|
1667
|
+
r({}, M, { height: p, ref: h, viewBox: "0 0 " + k + " " + k, width: p, xmlns: D }),
|
|
1668
1668
|
j ? s.default.createElement(
|
|
1669
1669
|
"title",
|
|
1670
1670
|
null,
|
|
1671
1671
|
j
|
|
1672
1672
|
) : null,
|
|
1673
1673
|
s.default.createElement("path", { d: g, fill: f }),
|
|
1674
|
-
s.default.createElement("path", { d:
|
|
1674
|
+
s.default.createElement("path", { d: E, fill: w })
|
|
1675
1675
|
);
|
|
1676
1676
|
});
|
|
1677
|
-
return c.displayName = "QRCodeSvg", c.propTypes = a,
|
|
1677
|
+
return c.displayName = "QRCodeSvg", c.propTypes = a, ke.default = c, ke;
|
|
1678
1678
|
}
|
|
1679
1679
|
var Tt;
|
|
1680
1680
|
function _r() {
|
|
@@ -1682,52 +1682,52 @@ function _r() {
|
|
|
1682
1682
|
Tt = 1, Object.defineProperty(pe, "__esModule", {
|
|
1683
1683
|
value: !0
|
|
1684
1684
|
}), pe.QRCode = void 0;
|
|
1685
|
-
var r = Object.assign || function(
|
|
1685
|
+
var r = Object.assign || function(p) {
|
|
1686
1686
|
for (var j = 1; j < arguments.length; j++) {
|
|
1687
|
-
var
|
|
1688
|
-
for (var
|
|
1689
|
-
Object.prototype.hasOwnProperty.call(
|
|
1690
|
-
}
|
|
1691
|
-
return
|
|
1692
|
-
}, e = /* @__PURE__ */
|
|
1693
|
-
function f(
|
|
1694
|
-
return
|
|
1695
|
-
}
|
|
1696
|
-
function g(
|
|
1697
|
-
var
|
|
1698
|
-
for (var
|
|
1699
|
-
j.indexOf(
|
|
1700
|
-
return
|
|
1701
|
-
}
|
|
1702
|
-
var
|
|
1687
|
+
var k = arguments[j];
|
|
1688
|
+
for (var L in k)
|
|
1689
|
+
Object.prototype.hasOwnProperty.call(k, L) && (p[L] = k[L]);
|
|
1690
|
+
}
|
|
1691
|
+
return p;
|
|
1692
|
+
}, e = /* @__PURE__ */ Ut(), t = f(e), n = Ft(), s = f(n), o = gr(), i = f(o), a = ae, c = f(a), l = pr(), h = f(l);
|
|
1693
|
+
function f(p) {
|
|
1694
|
+
return p && p.__esModule ? p : { default: p };
|
|
1695
|
+
}
|
|
1696
|
+
function g(p, j) {
|
|
1697
|
+
var k = {};
|
|
1698
|
+
for (var L in p)
|
|
1699
|
+
j.indexOf(L) >= 0 || Object.prototype.hasOwnProperty.call(p, L) && (k[L] = p[L]);
|
|
1700
|
+
return k;
|
|
1701
|
+
}
|
|
1702
|
+
var E = {
|
|
1703
1703
|
bgColor: t.default.oneOfType([t.default.object, t.default.string]),
|
|
1704
1704
|
fgColor: t.default.oneOfType([t.default.object, t.default.string]),
|
|
1705
1705
|
level: t.default.string,
|
|
1706
1706
|
size: t.default.number,
|
|
1707
1707
|
value: t.default.string.isRequired
|
|
1708
|
-
},
|
|
1709
|
-
var
|
|
1710
|
-
|
|
1711
|
-
var
|
|
1712
|
-
return c.default.createElement(h.default, r({},
|
|
1713
|
-
bgColor:
|
|
1714
|
-
bgD:
|
|
1715
|
-
return
|
|
1716
|
-
return
|
|
1708
|
+
}, w = (0, a.forwardRef)(function(p, j) {
|
|
1709
|
+
var k = p.bgColor, L = k === void 0 ? "#FFFFFF" : k, D = p.fgColor, M = D === void 0 ? "#000000" : D, y = p.level, q = y === void 0 ? "L" : y, K = p.size, ne = K === void 0 ? 256 : K, Q = p.value, X = g(p, ["bgColor", "fgColor", "level", "size", "value"]), V = new i.default(-1, s.default[q]);
|
|
1710
|
+
V.addData(Q), V.make();
|
|
1711
|
+
var Z = V.modules;
|
|
1712
|
+
return c.default.createElement(h.default, r({}, X, {
|
|
1713
|
+
bgColor: L,
|
|
1714
|
+
bgD: Z.map(function(G, Y) {
|
|
1715
|
+
return G.map(function(ee, z) {
|
|
1716
|
+
return ee ? "" : "M " + z + " " + Y + " l 1 0 0 1 -1 0 Z";
|
|
1717
1717
|
}).join(" ");
|
|
1718
1718
|
}).join(" "),
|
|
1719
|
-
fgColor:
|
|
1720
|
-
fgD:
|
|
1721
|
-
return
|
|
1722
|
-
return
|
|
1719
|
+
fgColor: M,
|
|
1720
|
+
fgD: Z.map(function(G, Y) {
|
|
1721
|
+
return G.map(function(ee, z) {
|
|
1722
|
+
return ee ? "M " + z + " " + Y + " l 1 0 0 1 -1 0 Z" : "";
|
|
1723
1723
|
}).join(" ");
|
|
1724
1724
|
}).join(" "),
|
|
1725
1725
|
ref: j,
|
|
1726
|
-
size:
|
|
1727
|
-
viewBoxSize:
|
|
1726
|
+
size: ne,
|
|
1727
|
+
viewBoxSize: Z.length
|
|
1728
1728
|
}));
|
|
1729
1729
|
});
|
|
1730
|
-
return pe.QRCode =
|
|
1730
|
+
return pe.QRCode = w, w.displayName = "QRCode", w.propTypes = E, pe.default = w, pe;
|
|
1731
1731
|
}
|
|
1732
1732
|
var mr = _r();
|
|
1733
1733
|
const vr = /* @__PURE__ */ er(mr);
|
|
@@ -1738,9 +1738,9 @@ var Qt = {
|
|
|
1738
1738
|
style: void 0,
|
|
1739
1739
|
attr: void 0
|
|
1740
1740
|
}, kt = ae.createContext && /* @__PURE__ */ ae.createContext(Qt), yr = ["attr", "size", "title"];
|
|
1741
|
-
function
|
|
1741
|
+
function wr(r, e) {
|
|
1742
1742
|
if (r == null) return {};
|
|
1743
|
-
var t =
|
|
1743
|
+
var t = br(r, e), n, s;
|
|
1744
1744
|
if (Object.getOwnPropertySymbols) {
|
|
1745
1745
|
var o = Object.getOwnPropertySymbols(r);
|
|
1746
1746
|
for (s = 0; s < o.length; s++)
|
|
@@ -1748,7 +1748,7 @@ function br(r, e) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
return t;
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function br(r, e) {
|
|
1752
1752
|
if (r == null) return {};
|
|
1753
1753
|
var t = {};
|
|
1754
1754
|
for (var n in r)
|
|
@@ -1758,15 +1758,15 @@ function wr(r, e) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return t;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1761
|
+
function Ie() {
|
|
1762
|
+
return Ie = Object.assign ? Object.assign.bind() : function(r) {
|
|
1763
1763
|
for (var e = 1; e < arguments.length; e++) {
|
|
1764
1764
|
var t = arguments[e];
|
|
1765
1765
|
for (var n in t)
|
|
1766
1766
|
Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
1767
1767
|
}
|
|
1768
1768
|
return r;
|
|
1769
|
-
},
|
|
1769
|
+
}, Ie.apply(this, arguments);
|
|
1770
1770
|
}
|
|
1771
1771
|
function Pt(r, e) {
|
|
1772
1772
|
var t = Object.keys(r);
|
|
@@ -1778,7 +1778,7 @@ function Pt(r, e) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
return t;
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Ae(r) {
|
|
1782
1782
|
for (var e = 1; e < arguments.length; e++) {
|
|
1783
1783
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1784
1784
|
e % 2 ? Pt(Object(t), !0).forEach(function(n) {
|
|
@@ -1790,13 +1790,13 @@ function Ie(r) {
|
|
|
1790
1790
|
return r;
|
|
1791
1791
|
}
|
|
1792
1792
|
function Sr(r, e, t) {
|
|
1793
|
-
return e =
|
|
1793
|
+
return e = Er(e), e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
var e =
|
|
1795
|
+
function Er(r) {
|
|
1796
|
+
var e = Cr(r, "string");
|
|
1797
1797
|
return typeof e == "symbol" ? e : e + "";
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function Cr(r, e) {
|
|
1800
1800
|
if (typeof r != "object" || !r) return r;
|
|
1801
1801
|
var t = r[Symbol.toPrimitive];
|
|
1802
1802
|
if (t !== void 0) {
|
|
@@ -1807,13 +1807,13 @@ function Er(r, e) {
|
|
|
1807
1807
|
return (e === "string" ? String : Number)(r);
|
|
1808
1808
|
}
|
|
1809
1809
|
function Jt(r) {
|
|
1810
|
-
return r && r.map((e, t) => /* @__PURE__ */ ae.createElement(e.tag,
|
|
1810
|
+
return r && r.map((e, t) => /* @__PURE__ */ ae.createElement(e.tag, Ae({
|
|
1811
1811
|
key: t
|
|
1812
1812
|
}, e.attr), Jt(e.child)));
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1815
|
-
return (e) => /* @__PURE__ */ ae.createElement(xr,
|
|
1816
|
-
attr:
|
|
1814
|
+
function Oe(r) {
|
|
1815
|
+
return (e) => /* @__PURE__ */ ae.createElement(xr, Ie({
|
|
1816
|
+
attr: Ae({}, r.attr)
|
|
1817
1817
|
}, e), Jt(r.child));
|
|
1818
1818
|
}
|
|
1819
1819
|
function xr(r) {
|
|
@@ -1822,14 +1822,14 @@ function xr(r) {
|
|
|
1822
1822
|
attr: n,
|
|
1823
1823
|
size: s,
|
|
1824
1824
|
title: o
|
|
1825
|
-
} = r, i =
|
|
1826
|
-
return t.className && (c = t.className), r.className && (c = (c ? c + " " : "") + r.className), /* @__PURE__ */ ae.createElement("svg",
|
|
1825
|
+
} = r, i = wr(r, yr), a = s || t.size || "1em", c;
|
|
1826
|
+
return t.className && (c = t.className), r.className && (c = (c ? c + " " : "") + r.className), /* @__PURE__ */ ae.createElement("svg", Ie({
|
|
1827
1827
|
stroke: "currentColor",
|
|
1828
1828
|
fill: "currentColor",
|
|
1829
1829
|
strokeWidth: "0"
|
|
1830
1830
|
}, t.attr, n, i, {
|
|
1831
1831
|
className: c,
|
|
1832
|
-
style:
|
|
1832
|
+
style: Ae(Ae({
|
|
1833
1833
|
color: r.color || t.color
|
|
1834
1834
|
}, t.style), r.style),
|
|
1835
1835
|
height: a,
|
|
@@ -1840,7 +1840,7 @@ function xr(r) {
|
|
|
1840
1840
|
return kt !== void 0 ? /* @__PURE__ */ ae.createElement(kt.Consumer, null, (t) => e(t)) : e(Qt);
|
|
1841
1841
|
}
|
|
1842
1842
|
function Tr(r) {
|
|
1843
|
-
return
|
|
1843
|
+
return Oe({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M9.5 6.5v3h-3v-3h3M11 5H5v6h6V5zm-1.5 9.5v3h-3v-3h3M11 13H5v6h6v-6zm6.5-6.5v3h-3v-3h3M19 5h-6v6h6V5zm-6 8h1.5v1.5H13V13zm1.5 1.5H16V16h-1.5v-1.5zM16 13h1.5v1.5H16V13zm-3 3h1.5v1.5H13V16zm1.5 1.5H16V19h-1.5v-1.5zM16 16h1.5v1.5H16V16zm1.5-1.5H19V16h-1.5v-1.5zm0 3H19V19h-1.5v-1.5zM22 7h-2V4h-3V2h5v5zm0 15v-5h-2v3h-3v2h5zM2 22h5v-2H4v-3H2v5zM2 2v5h2V4h3V2H2z" }, child: [] }] })(r);
|
|
1844
1844
|
}
|
|
1845
1845
|
const kr = ({
|
|
1846
1846
|
logoBackgroundCss: r = "bg-gradient-to-br rounded-xl flex items-center justify-center flex-col",
|
|
@@ -1879,7 +1879,7 @@ const kr = ({
|
|
|
1879
1879
|
}
|
|
1880
1880
|
) });
|
|
1881
1881
|
};
|
|
1882
|
-
class
|
|
1882
|
+
class we extends Error {
|
|
1883
1883
|
constructor(e, t, n) {
|
|
1884
1884
|
super(`HTTP ${e}: ${t}`), this.status = e, this.statusText = t, this.response = n, this.name = "ApiError";
|
|
1885
1885
|
}
|
|
@@ -1905,17 +1905,42 @@ async function Rt(r, e, t) {
|
|
|
1905
1905
|
} catch {
|
|
1906
1906
|
c = await i.text();
|
|
1907
1907
|
}
|
|
1908
|
-
throw new
|
|
1908
|
+
throw new we(i.status, i.statusText, c);
|
|
1909
1909
|
}
|
|
1910
1910
|
return i.headers.get("content-type")?.includes("application/json") ? await i.json() : await i.text();
|
|
1911
1911
|
} catch (i) {
|
|
1912
|
-
throw i instanceof
|
|
1912
|
+
throw i instanceof we ? (console.error("API Error:", i.status, i.message), i) : i instanceof we && i.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", i), new Error("Network error occurred"));
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
|
-
function Pr(r) {
|
|
1915
|
+
async function Pr(r, e) {
|
|
1916
|
+
const s = new AbortController().signal;
|
|
1917
|
+
try {
|
|
1918
|
+
const o = await fetch(r, {
|
|
1919
|
+
method: "DELETE",
|
|
1920
|
+
headers: {
|
|
1921
|
+
"Content-Type": "application/json",
|
|
1922
|
+
...e?.headers
|
|
1923
|
+
},
|
|
1924
|
+
signal: s
|
|
1925
|
+
});
|
|
1926
|
+
if (!o.ok) {
|
|
1927
|
+
let i;
|
|
1928
|
+
try {
|
|
1929
|
+
i = await o.json();
|
|
1930
|
+
} catch {
|
|
1931
|
+
i = await o.text();
|
|
1932
|
+
}
|
|
1933
|
+
throw new we(o.status, o.statusText, i);
|
|
1934
|
+
}
|
|
1935
|
+
return;
|
|
1936
|
+
} catch (o) {
|
|
1937
|
+
throw o instanceof we ? (console.error("API Error:", o.status, o.message), o) : o instanceof Error && o.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", o), new Error("Network error occurred"));
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
function Rr(r) {
|
|
1916
1941
|
return !r || r.trim().length === 0;
|
|
1917
1942
|
}
|
|
1918
|
-
function
|
|
1943
|
+
function Ir(r, e) {
|
|
1919
1944
|
let t = null;
|
|
1920
1945
|
return (...n) => new Promise((s, o) => {
|
|
1921
1946
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -1923,7 +1948,7 @@ function Rr(r, e) {
|
|
|
1923
1948
|
}, e);
|
|
1924
1949
|
});
|
|
1925
1950
|
}
|
|
1926
|
-
function
|
|
1951
|
+
function Ar(r, e = 30) {
|
|
1927
1952
|
if (!r) return !0;
|
|
1928
1953
|
try {
|
|
1929
1954
|
const n = JSON.parse(atob(r.split(".")[1])).exp;
|
|
@@ -1933,16 +1958,16 @@ function Ir(r, e = 30) {
|
|
|
1933
1958
|
}
|
|
1934
1959
|
}
|
|
1935
1960
|
function It(r) {
|
|
1936
|
-
return
|
|
1961
|
+
return Oe({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z" }, child: [] }] })(r);
|
|
1937
1962
|
}
|
|
1938
|
-
function
|
|
1963
|
+
function jr(r, e) {
|
|
1939
1964
|
try {
|
|
1940
1965
|
localStorage.setItem(r, JSON.stringify(e));
|
|
1941
1966
|
} catch (t) {
|
|
1942
1967
|
console.error("Error saving to localStorage", t);
|
|
1943
1968
|
}
|
|
1944
1969
|
}
|
|
1945
|
-
function
|
|
1970
|
+
function Or(r) {
|
|
1946
1971
|
try {
|
|
1947
1972
|
const e = localStorage.getItem(r);
|
|
1948
1973
|
return e ? JSON.parse(e) : void 0;
|
|
@@ -1950,10 +1975,10 @@ function jr(r) {
|
|
|
1950
1975
|
console.error("Error reading from localStorage", e);
|
|
1951
1976
|
}
|
|
1952
1977
|
}
|
|
1953
|
-
const
|
|
1954
|
-
const [t, n] = te(() =>
|
|
1978
|
+
const Dr = (r, e) => {
|
|
1979
|
+
const [t, n] = te(() => Or(r) ?? e);
|
|
1955
1980
|
return he(() => {
|
|
1956
|
-
|
|
1981
|
+
jr(r, t), n(t);
|
|
1957
1982
|
}, [r, t]), he(() => {
|
|
1958
1983
|
const s = (o) => {
|
|
1959
1984
|
o.key === r && n(o.newValue ? JSON.parse(o.newValue) : e);
|
|
@@ -1992,7 +2017,7 @@ class ie extends Error {
|
|
|
1992
2017
|
super(e), this.__proto__ = t;
|
|
1993
2018
|
}
|
|
1994
2019
|
}
|
|
1995
|
-
class
|
|
2020
|
+
class Mr extends Error {
|
|
1996
2021
|
/** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
|
|
1997
2022
|
*
|
|
1998
2023
|
* @param {string} message A descriptive error message.
|
|
@@ -2003,7 +2028,7 @@ class Dr extends Error {
|
|
|
2003
2028
|
super(e), this.transport = t, this.errorType = "UnsupportedTransportError", this.__proto__ = n;
|
|
2004
2029
|
}
|
|
2005
2030
|
}
|
|
2006
|
-
class
|
|
2031
|
+
class Nr extends Error {
|
|
2007
2032
|
/** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
|
|
2008
2033
|
*
|
|
2009
2034
|
* @param {string} message A descriptive error message.
|
|
@@ -2014,7 +2039,7 @@ class Mr extends Error {
|
|
|
2014
2039
|
super(e), this.transport = t, this.errorType = "DisabledTransportError", this.__proto__ = n;
|
|
2015
2040
|
}
|
|
2016
2041
|
}
|
|
2017
|
-
class
|
|
2042
|
+
class $r extends Error {
|
|
2018
2043
|
/** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
|
|
2019
2044
|
*
|
|
2020
2045
|
* @param {string} message A descriptive error message.
|
|
@@ -2035,7 +2060,7 @@ class At extends Error {
|
|
|
2035
2060
|
super(e), this.errorType = "FailedToNegotiateWithServerError", this.__proto__ = t;
|
|
2036
2061
|
}
|
|
2037
2062
|
}
|
|
2038
|
-
class
|
|
2063
|
+
class Lr extends Error {
|
|
2039
2064
|
/** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
|
|
2040
2065
|
*
|
|
2041
2066
|
* @param {string} message A descriptive error message.
|
|
@@ -2051,7 +2076,7 @@ class Xt {
|
|
|
2051
2076
|
this.statusCode = e, this.statusText = t, this.content = n;
|
|
2052
2077
|
}
|
|
2053
2078
|
}
|
|
2054
|
-
class
|
|
2079
|
+
class De {
|
|
2055
2080
|
get(e, t) {
|
|
2056
2081
|
return this.send({
|
|
2057
2082
|
...t,
|
|
@@ -2096,8 +2121,8 @@ class be {
|
|
|
2096
2121
|
}
|
|
2097
2122
|
}
|
|
2098
2123
|
be.instance = new be();
|
|
2099
|
-
const
|
|
2100
|
-
class
|
|
2124
|
+
const Br = "10.0.0";
|
|
2125
|
+
class U {
|
|
2101
2126
|
static isRequired(e, t) {
|
|
2102
2127
|
if (e == null)
|
|
2103
2128
|
throw new Error(`The '${t}' argument is required.`);
|
|
@@ -2111,18 +2136,18 @@ class F {
|
|
|
2111
2136
|
throw new Error(`Unknown ${n} value: ${e}.`);
|
|
2112
2137
|
}
|
|
2113
2138
|
}
|
|
2114
|
-
class
|
|
2139
|
+
class W {
|
|
2115
2140
|
// react-native has a window but no document so we should check both
|
|
2116
2141
|
static get isBrowser() {
|
|
2117
|
-
return !
|
|
2142
|
+
return !W.isNode && typeof window == "object" && typeof window.document == "object";
|
|
2118
2143
|
}
|
|
2119
2144
|
// WebWorkers don't have a window object so the isBrowser check would fail
|
|
2120
2145
|
static get isWebWorker() {
|
|
2121
|
-
return !
|
|
2146
|
+
return !W.isNode && typeof self == "object" && "importScripts" in self;
|
|
2122
2147
|
}
|
|
2123
2148
|
// react-native has a window but no document
|
|
2124
2149
|
static get isReactNative() {
|
|
2125
|
-
return !
|
|
2150
|
+
return !W.isNode && typeof window == "object" && typeof window.document > "u";
|
|
2126
2151
|
}
|
|
2127
2152
|
// Node apps shouldn't have a window object, but WebWorkers don't either
|
|
2128
2153
|
// so we need to check for both WebWorker and window
|
|
@@ -2130,11 +2155,11 @@ class H {
|
|
|
2130
2155
|
return typeof process < "u" && process.release && process.release.name === "node";
|
|
2131
2156
|
}
|
|
2132
2157
|
}
|
|
2133
|
-
function
|
|
2158
|
+
function Se(r, e) {
|
|
2134
2159
|
let t = "";
|
|
2135
|
-
return ge(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${
|
|
2160
|
+
return ge(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${zr(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
|
|
2136
2161
|
}
|
|
2137
|
-
function
|
|
2162
|
+
function zr(r) {
|
|
2138
2163
|
const e = new Uint8Array(r);
|
|
2139
2164
|
let t = "";
|
|
2140
2165
|
return e.forEach((n) => {
|
|
@@ -2148,7 +2173,7 @@ function ge(r) {
|
|
|
2148
2173
|
}
|
|
2149
2174
|
async function Gt(r, e, t, n, s, o) {
|
|
2150
2175
|
const i = {}, [a, c] = _e();
|
|
2151
|
-
i[a] = c, r.log(d.Trace, `(${e} transport) sending data. ${
|
|
2176
|
+
i[a] = c, r.log(d.Trace, `(${e} transport) sending data. ${Se(s, o.logMessageContent)}.`);
|
|
2152
2177
|
const l = ge(s) ? "arraybuffer" : "text", h = await t.post(n, {
|
|
2153
2178
|
content: s,
|
|
2154
2179
|
headers: { ...i, ...o.headers },
|
|
@@ -2158,10 +2183,10 @@ async function Gt(r, e, t, n, s, o) {
|
|
|
2158
2183
|
});
|
|
2159
2184
|
r.log(d.Trace, `(${e} transport) request complete. Response status: ${h.statusCode}.`);
|
|
2160
2185
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return r === void 0 ? new
|
|
2186
|
+
function Hr(r) {
|
|
2187
|
+
return r === void 0 ? new je(d.Information) : r === null ? be.instance : r.log !== void 0 ? r : new je(r);
|
|
2163
2188
|
}
|
|
2164
|
-
class
|
|
2189
|
+
class Wr {
|
|
2165
2190
|
constructor(e, t) {
|
|
2166
2191
|
this._subject = e, this._observer = t;
|
|
2167
2192
|
}
|
|
@@ -2171,7 +2196,7 @@ class Hr {
|
|
|
2171
2196
|
});
|
|
2172
2197
|
}
|
|
2173
2198
|
}
|
|
2174
|
-
class
|
|
2199
|
+
class je {
|
|
2175
2200
|
constructor(e) {
|
|
2176
2201
|
this._minLevel = e, this.out = console;
|
|
2177
2202
|
}
|
|
@@ -2198,15 +2223,15 @@ class Ae {
|
|
|
2198
2223
|
}
|
|
2199
2224
|
function _e() {
|
|
2200
2225
|
let r = "X-SignalR-User-Agent";
|
|
2201
|
-
return
|
|
2226
|
+
return W.isNode && (r = "User-Agent"), [r, Ur(Br, Fr(), Vr(), qr())];
|
|
2202
2227
|
}
|
|
2203
2228
|
function Ur(r, e, t, n) {
|
|
2204
2229
|
let s = "Microsoft SignalR/";
|
|
2205
2230
|
const o = r.split(".");
|
|
2206
2231
|
return s += `${o[0]}.${o[1]}`, s += ` (${r}; `, e && e !== "" ? s += `${e}; ` : s += "Unknown OS; ", s += `${t}`, n ? s += `; ${n}` : s += "; Unknown Runtime Version", s += ")", s;
|
|
2207
2232
|
}
|
|
2208
|
-
function
|
|
2209
|
-
if (
|
|
2233
|
+
function Fr() {
|
|
2234
|
+
if (W.isNode)
|
|
2210
2235
|
switch (process.platform) {
|
|
2211
2236
|
case "win32":
|
|
2212
2237
|
return "Windows NT";
|
|
@@ -2220,17 +2245,17 @@ function Wr() {
|
|
|
2220
2245
|
else
|
|
2221
2246
|
return "";
|
|
2222
2247
|
}
|
|
2223
|
-
function
|
|
2224
|
-
if (
|
|
2248
|
+
function qr() {
|
|
2249
|
+
if (W.isNode)
|
|
2225
2250
|
return process.versions.node;
|
|
2226
2251
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2252
|
+
function Vr() {
|
|
2253
|
+
return W.isNode ? "NodeJS" : "Browser";
|
|
2229
2254
|
}
|
|
2230
2255
|
function Xe(r) {
|
|
2231
2256
|
return r.stack ? r.stack : r.message ? r.message : `${r}`;
|
|
2232
2257
|
}
|
|
2233
|
-
function
|
|
2258
|
+
function Yr() {
|
|
2234
2259
|
if (typeof globalThis < "u")
|
|
2235
2260
|
return globalThis;
|
|
2236
2261
|
if (typeof self < "u")
|
|
@@ -2241,13 +2266,13 @@ function Vr() {
|
|
|
2241
2266
|
return global;
|
|
2242
2267
|
throw new Error("could not find global");
|
|
2243
2268
|
}
|
|
2244
|
-
class
|
|
2269
|
+
class Qr extends De {
|
|
2245
2270
|
constructor(e) {
|
|
2246
|
-
if (super(), this._logger = e, typeof fetch > "u" ||
|
|
2271
|
+
if (super(), this._logger = e, typeof fetch > "u" || W.isNode) {
|
|
2247
2272
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
2248
2273
|
this._jar = new (t("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = t("node-fetch") : this._fetchType = fetch, this._fetchType = t("fetch-cookie")(this._fetchType, this._jar);
|
|
2249
2274
|
} else
|
|
2250
|
-
this._fetchType = fetch.bind(
|
|
2275
|
+
this._fetchType = fetch.bind(Yr());
|
|
2251
2276
|
if (typeof AbortController > "u") {
|
|
2252
2277
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
2253
2278
|
this._abortControllerType = t("abort-controller");
|
|
@@ -2304,7 +2329,7 @@ class Yr extends Oe {
|
|
|
2304
2329
|
}
|
|
2305
2330
|
getCookieString(e) {
|
|
2306
2331
|
let t = "";
|
|
2307
|
-
return
|
|
2332
|
+
return W.isNode && this._jar && this._jar.getCookies(e, (n, s) => t = s.join("; ")), t;
|
|
2308
2333
|
}
|
|
2309
2334
|
}
|
|
2310
2335
|
function jt(r, e) {
|
|
@@ -2326,7 +2351,7 @@ function jt(r, e) {
|
|
|
2326
2351
|
}
|
|
2327
2352
|
return t;
|
|
2328
2353
|
}
|
|
2329
|
-
class
|
|
2354
|
+
class Jr extends De {
|
|
2330
2355
|
constructor(e) {
|
|
2331
2356
|
super(), this._logger = e;
|
|
2332
2357
|
}
|
|
@@ -2350,13 +2375,13 @@ class Qr extends Oe {
|
|
|
2350
2375
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
2351
2376
|
}
|
|
2352
2377
|
}
|
|
2353
|
-
class
|
|
2378
|
+
class Xr extends De {
|
|
2354
2379
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
2355
2380
|
constructor(e) {
|
|
2356
|
-
if (super(), typeof fetch < "u" ||
|
|
2357
|
-
this._httpClient = new Yr(e);
|
|
2358
|
-
else if (typeof XMLHttpRequest < "u")
|
|
2381
|
+
if (super(), typeof fetch < "u" || W.isNode)
|
|
2359
2382
|
this._httpClient = new Qr(e);
|
|
2383
|
+
else if (typeof XMLHttpRequest < "u")
|
|
2384
|
+
this._httpClient = new Jr(e);
|
|
2360
2385
|
else
|
|
2361
2386
|
throw new Error("No usable HttpClient found.");
|
|
2362
2387
|
}
|
|
@@ -2368,40 +2393,40 @@ class Jr extends Oe {
|
|
|
2368
2393
|
return this._httpClient.getCookieString(e);
|
|
2369
2394
|
}
|
|
2370
2395
|
}
|
|
2371
|
-
class
|
|
2396
|
+
class re {
|
|
2372
2397
|
static write(e) {
|
|
2373
|
-
return `${e}${
|
|
2398
|
+
return `${e}${re.RecordSeparator}`;
|
|
2374
2399
|
}
|
|
2375
2400
|
static parse(e) {
|
|
2376
|
-
if (e[e.length - 1] !==
|
|
2401
|
+
if (e[e.length - 1] !== re.RecordSeparator)
|
|
2377
2402
|
throw new Error("Message is incomplete.");
|
|
2378
|
-
const t = e.split(
|
|
2403
|
+
const t = e.split(re.RecordSeparator);
|
|
2379
2404
|
return t.pop(), t;
|
|
2380
2405
|
}
|
|
2381
2406
|
}
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
class
|
|
2407
|
+
re.RecordSeparatorCode = 30;
|
|
2408
|
+
re.RecordSeparator = String.fromCharCode(re.RecordSeparatorCode);
|
|
2409
|
+
class Gr {
|
|
2385
2410
|
// Handshake request is always JSON
|
|
2386
2411
|
writeHandshakeRequest(e) {
|
|
2387
|
-
return
|
|
2412
|
+
return re.write(JSON.stringify(e));
|
|
2388
2413
|
}
|
|
2389
2414
|
parseHandshakeResponse(e) {
|
|
2390
2415
|
let t, n;
|
|
2391
2416
|
if (ge(e)) {
|
|
2392
|
-
const a = new Uint8Array(e), c = a.indexOf(
|
|
2417
|
+
const a = new Uint8Array(e), c = a.indexOf(re.RecordSeparatorCode);
|
|
2393
2418
|
if (c === -1)
|
|
2394
2419
|
throw new Error("Message is incomplete.");
|
|
2395
2420
|
const l = c + 1;
|
|
2396
2421
|
t = String.fromCharCode.apply(null, Array.prototype.slice.call(a.slice(0, l))), n = a.byteLength > l ? a.slice(l).buffer : null;
|
|
2397
2422
|
} else {
|
|
2398
|
-
const a = e, c = a.indexOf(
|
|
2423
|
+
const a = e, c = a.indexOf(re.RecordSeparator);
|
|
2399
2424
|
if (c === -1)
|
|
2400
2425
|
throw new Error("Message is incomplete.");
|
|
2401
2426
|
const l = c + 1;
|
|
2402
2427
|
t = a.substring(0, l), n = a.length > l ? a.substring(l) : null;
|
|
2403
2428
|
}
|
|
2404
|
-
const s =
|
|
2429
|
+
const s = re.parse(t), o = JSON.parse(s[0]);
|
|
2405
2430
|
if (o.type)
|
|
2406
2431
|
throw new Error("Expected a handshake response from the server.");
|
|
2407
2432
|
return [n, o];
|
|
@@ -2411,7 +2436,7 @@ var A;
|
|
|
2411
2436
|
(function(r) {
|
|
2412
2437
|
r[r.Invocation = 1] = "Invocation", r[r.StreamItem = 2] = "StreamItem", r[r.Completion = 3] = "Completion", r[r.StreamInvocation = 4] = "StreamInvocation", r[r.CancelInvocation = 5] = "CancelInvocation", r[r.Ping = 6] = "Ping", r[r.Close = 7] = "Close", r[r.Ack = 8] = "Ack", r[r.Sequence = 9] = "Sequence";
|
|
2413
2438
|
})(A || (A = {}));
|
|
2414
|
-
class
|
|
2439
|
+
class Kr {
|
|
2415
2440
|
constructor() {
|
|
2416
2441
|
this.observers = [];
|
|
2417
2442
|
}
|
|
@@ -2428,10 +2453,10 @@ class Gr {
|
|
|
2428
2453
|
e.complete && e.complete();
|
|
2429
2454
|
}
|
|
2430
2455
|
subscribe(e) {
|
|
2431
|
-
return this.observers.push(e), new
|
|
2456
|
+
return this.observers.push(e), new Wr(this, e);
|
|
2432
2457
|
}
|
|
2433
2458
|
}
|
|
2434
|
-
class
|
|
2459
|
+
class Zr {
|
|
2435
2460
|
constructor(e, t, n) {
|
|
2436
2461
|
this._bufferSize = 1e5, this._messages = [], this._totalMessageCount = 0, this._waitForSequenceMessage = !1, this._nextReceivingSequenceId = 1, this._latestReceivedSequenceId = 0, this._bufferedByteCount = 0, this._reconnectInProgress = !1, this._protocol = e, this._connection = t, this._bufferSize = n;
|
|
2437
2462
|
}
|
|
@@ -2445,7 +2470,7 @@ class Kr {
|
|
|
2445
2470
|
};
|
|
2446
2471
|
ge(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (n = new Promise((i, a) => {
|
|
2447
2472
|
s = i, o = a;
|
|
2448
|
-
})), this._messages.push(new
|
|
2473
|
+
})), this._messages.push(new en(t, this._totalMessageCount, s, o));
|
|
2449
2474
|
}
|
|
2450
2475
|
try {
|
|
2451
2476
|
this._reconnectInProgress || await this._connection.send(t);
|
|
@@ -2523,16 +2548,16 @@ class Kr {
|
|
|
2523
2548
|
}, 1e3));
|
|
2524
2549
|
}
|
|
2525
2550
|
}
|
|
2526
|
-
class
|
|
2551
|
+
class en {
|
|
2527
2552
|
constructor(e, t, n, s) {
|
|
2528
2553
|
this._message = e, this._id = t, this._resolver = n, this._rejector = s;
|
|
2529
2554
|
}
|
|
2530
2555
|
}
|
|
2531
|
-
const
|
|
2532
|
-
var
|
|
2556
|
+
const tn = 30 * 1e3, rn = 15 * 1e3, nn = 1e5;
|
|
2557
|
+
var H;
|
|
2533
2558
|
(function(r) {
|
|
2534
2559
|
r.Disconnected = "Disconnected", r.Connecting = "Connecting", r.Connected = "Connected", r.Disconnecting = "Disconnecting", r.Reconnecting = "Reconnecting";
|
|
2535
|
-
})(
|
|
2560
|
+
})(H || (H = {}));
|
|
2536
2561
|
class et {
|
|
2537
2562
|
/** @internal */
|
|
2538
2563
|
// Using a public static factory method means we can have a private constructor and an _internal_
|
|
@@ -2545,7 +2570,7 @@ class et {
|
|
|
2545
2570
|
constructor(e, t, n, s, o, i, a) {
|
|
2546
2571
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
2547
2572
|
this._logger.log(d.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
2548
|
-
},
|
|
2573
|
+
}, U.isRequired(e, "connection"), U.isRequired(t, "logger"), U.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = o ?? tn, this.keepAliveIntervalInMilliseconds = i ?? rn, this._statefulReconnectBufferSize = a ?? nn, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = s, this._handshakeProtocol = new Gr(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = H.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: A.Ping });
|
|
2549
2574
|
}
|
|
2550
2575
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
2551
2576
|
get state() {
|
|
@@ -2567,7 +2592,7 @@ class et {
|
|
|
2567
2592
|
* @param {string} url The url to connect to.
|
|
2568
2593
|
*/
|
|
2569
2594
|
set baseUrl(e) {
|
|
2570
|
-
if (this._connectionState !==
|
|
2595
|
+
if (this._connectionState !== H.Disconnected && this._connectionState !== H.Reconnecting)
|
|
2571
2596
|
throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
|
|
2572
2597
|
if (!e)
|
|
2573
2598
|
throw new Error("The HubConnection url must be a valid url.");
|
|
@@ -2581,13 +2606,13 @@ class et {
|
|
|
2581
2606
|
return this._startPromise = this._startWithStateTransitions(), this._startPromise;
|
|
2582
2607
|
}
|
|
2583
2608
|
async _startWithStateTransitions() {
|
|
2584
|
-
if (this._connectionState !==
|
|
2609
|
+
if (this._connectionState !== H.Disconnected)
|
|
2585
2610
|
return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
|
|
2586
|
-
this._connectionState =
|
|
2611
|
+
this._connectionState = H.Connecting, this._logger.log(d.Debug, "Starting HubConnection.");
|
|
2587
2612
|
try {
|
|
2588
|
-
await this._startInternal(),
|
|
2613
|
+
await this._startInternal(), W.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = H.Connected, this._connectionStarted = !0, this._logger.log(d.Debug, "HubConnection connected successfully.");
|
|
2589
2614
|
} catch (e) {
|
|
2590
|
-
return this._connectionState =
|
|
2615
|
+
return this._connectionState = H.Disconnected, this._logger.log(d.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
|
|
2591
2616
|
}
|
|
2592
2617
|
}
|
|
2593
2618
|
async _startInternal() {
|
|
@@ -2605,7 +2630,7 @@ class et {
|
|
|
2605
2630
|
};
|
|
2606
2631
|
if (this._logger.log(d.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)), this._logger.log(d.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
|
|
2607
2632
|
throw this._stopDuringStartError;
|
|
2608
|
-
(this.connection.features.reconnect || !1) && (this._messageBuffer = new
|
|
2633
|
+
(this.connection.features.reconnect || !1) && (this._messageBuffer = new Zr(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
|
|
2609
2634
|
if (this._messageBuffer)
|
|
2610
2635
|
return this._messageBuffer._resend();
|
|
2611
2636
|
}), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
|
|
@@ -2626,12 +2651,12 @@ class et {
|
|
|
2626
2651
|
}
|
|
2627
2652
|
}
|
|
2628
2653
|
_stopInternal(e) {
|
|
2629
|
-
if (this._connectionState ===
|
|
2654
|
+
if (this._connectionState === H.Disconnected)
|
|
2630
2655
|
return this._logger.log(d.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
|
|
2631
|
-
if (this._connectionState ===
|
|
2656
|
+
if (this._connectionState === H.Disconnecting)
|
|
2632
2657
|
return this._logger.log(d.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
|
|
2633
2658
|
const t = this._connectionState;
|
|
2634
|
-
return this._connectionState =
|
|
2659
|
+
return this._connectionState = H.Disconnecting, this._logger.log(d.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(d.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === H.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ie("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
|
|
2635
2660
|
}
|
|
2636
2661
|
async _sendCloseMessage() {
|
|
2637
2662
|
try {
|
|
@@ -2649,7 +2674,7 @@ class et {
|
|
|
2649
2674
|
stream(e, ...t) {
|
|
2650
2675
|
const [n, s] = this._replaceStreamingParams(t), o = this._createStreamInvocation(e, t, s);
|
|
2651
2676
|
let i;
|
|
2652
|
-
const a = new
|
|
2677
|
+
const a = new Kr();
|
|
2653
2678
|
return a.cancelCallback = () => {
|
|
2654
2679
|
const c = this._createCancelInvocation(o.invocationId);
|
|
2655
2680
|
return delete this._callbacks[o.invocationId], i.then(() => this._sendWithProtocol(c));
|
|
@@ -2819,11 +2844,11 @@ class et {
|
|
|
2819
2844
|
this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds);
|
|
2820
2845
|
let e = this._nextKeepAlive - (/* @__PURE__ */ new Date()).getTime();
|
|
2821
2846
|
if (e < 0) {
|
|
2822
|
-
this._connectionState ===
|
|
2847
|
+
this._connectionState === H.Connected && this._trySendPingMessage();
|
|
2823
2848
|
return;
|
|
2824
2849
|
}
|
|
2825
2850
|
this._pingServerHandle === void 0 && (e < 0 && (e = 0), this._pingServerHandle = setTimeout(async () => {
|
|
2826
|
-
this._connectionState ===
|
|
2851
|
+
this._connectionState === H.Connected && await this._trySendPingMessage();
|
|
2827
2852
|
}, e));
|
|
2828
2853
|
}
|
|
2829
2854
|
}
|
|
@@ -2849,11 +2874,11 @@ class et {
|
|
|
2849
2874
|
c ? await this._sendWithProtocol(c) : o ? (a ? c = this._createCompletionMessage(e.invocationId, `${a}`, null) : i !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, i) : (this._logger.log(d.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : i && this._logger.log(d.Error, `Result given for '${t}' method but server is not expecting a result.`);
|
|
2850
2875
|
}
|
|
2851
2876
|
_connectionClosed(e) {
|
|
2852
|
-
this._logger.log(d.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ie("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState ===
|
|
2877
|
+
this._logger.log(d.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ie("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === H.Disconnecting ? this._completeClose(e) : this._connectionState === H.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === H.Connected && this._completeClose(e);
|
|
2853
2878
|
}
|
|
2854
2879
|
_completeClose(e) {
|
|
2855
2880
|
if (this._connectionStarted) {
|
|
2856
|
-
this._connectionState =
|
|
2881
|
+
this._connectionState = H.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), W.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
|
|
2857
2882
|
try {
|
|
2858
2883
|
this._closedCallbacks.forEach((t) => t.apply(this, [e]));
|
|
2859
2884
|
} catch (t) {
|
|
@@ -2868,13 +2893,13 @@ class et {
|
|
|
2868
2893
|
this._logger.log(d.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
|
|
2869
2894
|
return;
|
|
2870
2895
|
}
|
|
2871
|
-
if (this._connectionState =
|
|
2896
|
+
if (this._connectionState = H.Reconnecting, e ? this._logger.log(d.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(d.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
|
|
2872
2897
|
try {
|
|
2873
2898
|
this._reconnectingCallbacks.forEach((i) => i.apply(this, [e]));
|
|
2874
2899
|
} catch (i) {
|
|
2875
2900
|
this._logger.log(d.Error, `An onreconnecting callback called with error '${e}' threw error '${i}'.`);
|
|
2876
2901
|
}
|
|
2877
|
-
if (this._connectionState !==
|
|
2902
|
+
if (this._connectionState !== H.Reconnecting) {
|
|
2878
2903
|
this._logger.log(d.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
|
|
2879
2904
|
return;
|
|
2880
2905
|
}
|
|
@@ -2882,12 +2907,12 @@ class et {
|
|
|
2882
2907
|
for (; o !== null; ) {
|
|
2883
2908
|
if (this._logger.log(d.Information, `Reconnect attempt number ${n + 1} will start in ${o} ms.`), await new Promise((i) => {
|
|
2884
2909
|
this._reconnectDelayHandle = setTimeout(i, o);
|
|
2885
|
-
}), this._reconnectDelayHandle = void 0, this._connectionState !==
|
|
2910
|
+
}), this._reconnectDelayHandle = void 0, this._connectionState !== H.Reconnecting) {
|
|
2886
2911
|
this._logger.log(d.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
|
|
2887
2912
|
return;
|
|
2888
2913
|
}
|
|
2889
2914
|
try {
|
|
2890
|
-
if (await this._startInternal(), this._connectionState =
|
|
2915
|
+
if (await this._startInternal(), this._connectionState = H.Connected, this._logger.log(d.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
|
|
2891
2916
|
try {
|
|
2892
2917
|
this._reconnectedCallbacks.forEach((i) => i.apply(this, [this.connection.connectionId]));
|
|
2893
2918
|
} catch (i) {
|
|
@@ -2895,8 +2920,8 @@ class et {
|
|
|
2895
2920
|
}
|
|
2896
2921
|
return;
|
|
2897
2922
|
} catch (i) {
|
|
2898
|
-
if (this._logger.log(d.Information, `Reconnect attempt failed because of error '${i}'.`), this._connectionState !==
|
|
2899
|
-
this._logger.log(d.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState ===
|
|
2923
|
+
if (this._logger.log(d.Information, `Reconnect attempt failed because of error '${i}'.`), this._connectionState !== H.Reconnecting) {
|
|
2924
|
+
this._logger.log(d.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === H.Disconnecting && this._completeClose();
|
|
2900
2925
|
return;
|
|
2901
2926
|
}
|
|
2902
2927
|
n++, s = i instanceof Error ? i : new Error(i.toString()), o = this._getNextRetryDelay(n, Date.now() - t, s);
|
|
@@ -3042,10 +3067,10 @@ class et {
|
|
|
3042
3067
|
}
|
|
3043
3068
|
}
|
|
3044
3069
|
}
|
|
3045
|
-
const
|
|
3070
|
+
const on = [0, 2e3, 1e4, 3e4, null];
|
|
3046
3071
|
class Ot {
|
|
3047
3072
|
constructor(e) {
|
|
3048
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
3073
|
+
this._retryDelays = e !== void 0 ? [...e, null] : on;
|
|
3049
3074
|
}
|
|
3050
3075
|
nextRetryDelayInMilliseconds(e) {
|
|
3051
3076
|
return this._retryDelays[e.previousRetryCount];
|
|
@@ -3055,7 +3080,7 @@ class de {
|
|
|
3055
3080
|
}
|
|
3056
3081
|
de.Authorization = "Authorization";
|
|
3057
3082
|
de.Cookie = "Cookie";
|
|
3058
|
-
class
|
|
3083
|
+
class sn extends De {
|
|
3059
3084
|
constructor(e, t) {
|
|
3060
3085
|
super(), this._innerClient = e, this._accessTokenFactory = t;
|
|
3061
3086
|
}
|
|
@@ -3072,15 +3097,15 @@ class on extends Oe {
|
|
|
3072
3097
|
return this._innerClient.getCookieString(e);
|
|
3073
3098
|
}
|
|
3074
3099
|
}
|
|
3075
|
-
var
|
|
3100
|
+
var F;
|
|
3076
3101
|
(function(r) {
|
|
3077
3102
|
r[r.None = 0] = "None", r[r.WebSockets = 1] = "WebSockets", r[r.ServerSentEvents = 2] = "ServerSentEvents", r[r.LongPolling = 4] = "LongPolling";
|
|
3078
|
-
})(
|
|
3079
|
-
var
|
|
3103
|
+
})(F || (F = {}));
|
|
3104
|
+
var J;
|
|
3080
3105
|
(function(r) {
|
|
3081
3106
|
r[r.Text = 1] = "Text", r[r.Binary = 2] = "Binary";
|
|
3082
|
-
})(
|
|
3083
|
-
let
|
|
3107
|
+
})(J || (J = {}));
|
|
3108
|
+
let an = class {
|
|
3084
3109
|
constructor() {
|
|
3085
3110
|
this._isAborted = !1, this.onabort = null;
|
|
3086
3111
|
}
|
|
@@ -3100,10 +3125,10 @@ class Dt {
|
|
|
3100
3125
|
return this._pollAbort.aborted;
|
|
3101
3126
|
}
|
|
3102
3127
|
constructor(e, t, n) {
|
|
3103
|
-
this._httpClient = e, this._logger = t, this._pollAbort = new
|
|
3128
|
+
this._httpClient = e, this._logger = t, this._pollAbort = new an(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
3104
3129
|
}
|
|
3105
3130
|
async connect(e, t) {
|
|
3106
|
-
if (
|
|
3131
|
+
if (U.isRequired(e, "url"), U.isRequired(t, "transferFormat"), U.isIn(t, J, "transferFormat"), this._url = e, this._logger.log(d.Trace, "(LongPolling transport) Connecting."), t === J.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
3107
3132
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
3108
3133
|
const [n, s] = _e(), o = { [n]: s, ...this._options.headers }, i = {
|
|
3109
3134
|
abortSignal: this._pollAbort.signal,
|
|
@@ -3111,7 +3136,7 @@ class Dt {
|
|
|
3111
3136
|
timeout: 1e5,
|
|
3112
3137
|
withCredentials: this._options.withCredentials
|
|
3113
3138
|
};
|
|
3114
|
-
t ===
|
|
3139
|
+
t === J.Binary && (i.responseType = "arraybuffer");
|
|
3115
3140
|
const a = `${e}&_=${Date.now()}`;
|
|
3116
3141
|
this._logger.log(d.Trace, `(LongPolling transport) polling: ${a}.`);
|
|
3117
3142
|
const c = await this._httpClient.get(a, i);
|
|
@@ -3124,7 +3149,7 @@ class Dt {
|
|
|
3124
3149
|
const n = `${e}&_=${Date.now()}`;
|
|
3125
3150
|
this._logger.log(d.Trace, `(LongPolling transport) polling: ${n}.`);
|
|
3126
3151
|
const s = await this._httpClient.get(n, t);
|
|
3127
|
-
s.statusCode === 204 ? (this._logger.log(d.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : s.statusCode !== 200 ? (this._logger.log(d.Error, `(LongPolling transport) Unexpected response code: ${s.statusCode}.`), this._closeError = new fe(s.statusText || "", s.statusCode), this._running = !1) : s.content ? (this._logger.log(d.Trace, `(LongPolling transport) data received. ${
|
|
3152
|
+
s.statusCode === 204 ? (this._logger.log(d.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : s.statusCode !== 200 ? (this._logger.log(d.Error, `(LongPolling transport) Unexpected response code: ${s.statusCode}.`), this._closeError = new fe(s.statusText || "", s.statusCode), this._running = !1) : s.content ? (this._logger.log(d.Trace, `(LongPolling transport) data received. ${Se(s.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(s.content)) : this._logger.log(d.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
3128
3153
|
} catch (n) {
|
|
3129
3154
|
this._running ? n instanceof Ze ? this._logger.log(d.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(d.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
|
|
3130
3155
|
}
|
|
@@ -3164,19 +3189,19 @@ class Dt {
|
|
|
3164
3189
|
}
|
|
3165
3190
|
}
|
|
3166
3191
|
}
|
|
3167
|
-
class
|
|
3192
|
+
class cn {
|
|
3168
3193
|
constructor(e, t, n, s) {
|
|
3169
3194
|
this._httpClient = e, this._accessToken = t, this._logger = n, this._options = s, this.onreceive = null, this.onclose = null;
|
|
3170
3195
|
}
|
|
3171
3196
|
async connect(e, t) {
|
|
3172
|
-
return
|
|
3197
|
+
return U.isRequired(e, "url"), U.isRequired(t, "transferFormat"), U.isIn(t, J, "transferFormat"), this._logger.log(d.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((n, s) => {
|
|
3173
3198
|
let o = !1;
|
|
3174
|
-
if (t !==
|
|
3199
|
+
if (t !== J.Text) {
|
|
3175
3200
|
s(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
3176
3201
|
return;
|
|
3177
3202
|
}
|
|
3178
3203
|
let i;
|
|
3179
|
-
if (
|
|
3204
|
+
if (W.isBrowser || W.isWebWorker)
|
|
3180
3205
|
i = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
|
|
3181
3206
|
else {
|
|
3182
3207
|
const a = this._httpClient.getCookieString(e), c = {};
|
|
@@ -3188,7 +3213,7 @@ class an {
|
|
|
3188
3213
|
i.onmessage = (a) => {
|
|
3189
3214
|
if (this.onreceive)
|
|
3190
3215
|
try {
|
|
3191
|
-
this._logger.log(d.Trace, `(SSE transport) data received. ${
|
|
3216
|
+
this._logger.log(d.Trace, `(SSE transport) data received. ${Se(a.data, this._options.logMessageContent)}.`), this.onreceive(a.data);
|
|
3192
3217
|
} catch (c) {
|
|
3193
3218
|
this._close(c);
|
|
3194
3219
|
return;
|
|
@@ -3214,32 +3239,32 @@ class an {
|
|
|
3214
3239
|
this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
|
|
3215
3240
|
}
|
|
3216
3241
|
}
|
|
3217
|
-
class
|
|
3242
|
+
class ln {
|
|
3218
3243
|
constructor(e, t, n, s, o, i) {
|
|
3219
3244
|
this._logger = n, this._accessTokenFactory = t, this._logMessageContent = s, this._webSocketConstructor = o, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = i;
|
|
3220
3245
|
}
|
|
3221
3246
|
async connect(e, t) {
|
|
3222
|
-
|
|
3247
|
+
U.isRequired(e, "url"), U.isRequired(t, "transferFormat"), U.isIn(t, J, "transferFormat"), this._logger.log(d.Trace, "(WebSockets transport) Connecting.");
|
|
3223
3248
|
let n;
|
|
3224
3249
|
return this._accessTokenFactory && (n = await this._accessTokenFactory()), new Promise((s, o) => {
|
|
3225
3250
|
e = e.replace(/^http/, "ws");
|
|
3226
3251
|
let i;
|
|
3227
3252
|
const a = this._httpClient.getCookieString(e);
|
|
3228
3253
|
let c = !1;
|
|
3229
|
-
if (
|
|
3254
|
+
if (W.isNode || W.isReactNative) {
|
|
3230
3255
|
const l = {}, [h, f] = _e();
|
|
3231
3256
|
l[h] = f, n && (l[de.Authorization] = `Bearer ${n}`), a && (l[de.Cookie] = a), i = new this._webSocketConstructor(e, void 0, {
|
|
3232
3257
|
headers: { ...l, ...this._headers }
|
|
3233
3258
|
});
|
|
3234
3259
|
} else
|
|
3235
3260
|
n && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(n)}`);
|
|
3236
|
-
i || (i = new this._webSocketConstructor(e)), t ===
|
|
3261
|
+
i || (i = new this._webSocketConstructor(e)), t === J.Binary && (i.binaryType = "arraybuffer"), i.onopen = (l) => {
|
|
3237
3262
|
this._logger.log(d.Information, `WebSocket connected to ${e}.`), this._webSocket = i, c = !0, s();
|
|
3238
3263
|
}, i.onerror = (l) => {
|
|
3239
3264
|
let h = null;
|
|
3240
3265
|
typeof ErrorEvent < "u" && l instanceof ErrorEvent ? h = l.error : h = "There was an error with the transport", this._logger.log(d.Information, `(WebSockets transport) ${h}.`);
|
|
3241
3266
|
}, i.onmessage = (l) => {
|
|
3242
|
-
if (this._logger.log(d.Trace, `(WebSockets transport) data received. ${
|
|
3267
|
+
if (this._logger.log(d.Trace, `(WebSockets transport) data received. ${Se(l.data, this._logMessageContent)}.`), this.onreceive)
|
|
3243
3268
|
try {
|
|
3244
3269
|
this.onreceive(l.data);
|
|
3245
3270
|
} catch (h) {
|
|
@@ -3257,7 +3282,7 @@ class cn {
|
|
|
3257
3282
|
});
|
|
3258
3283
|
}
|
|
3259
3284
|
send(e) {
|
|
3260
|
-
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(d.Trace, `(WebSockets transport) sending data. ${
|
|
3285
|
+
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(d.Trace, `(WebSockets transport) sending data. ${Se(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
|
|
3261
3286
|
}
|
|
3262
3287
|
stop() {
|
|
3263
3288
|
return this._webSocket && this._close(void 0), Promise.resolve();
|
|
@@ -3273,23 +3298,23 @@ class cn {
|
|
|
3273
3298
|
}
|
|
3274
3299
|
}
|
|
3275
3300
|
const Mt = 100;
|
|
3276
|
-
class
|
|
3301
|
+
class un {
|
|
3277
3302
|
constructor(e, t = {}) {
|
|
3278
3303
|
if (this._stopPromiseResolver = () => {
|
|
3279
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
3304
|
+
}, this.features = {}, this._negotiateVersion = 1, U.isRequired(e, "url"), this._logger = Hr(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
|
|
3280
3305
|
t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
|
|
3281
3306
|
else
|
|
3282
3307
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
3283
3308
|
t.timeout = t.timeout === void 0 ? 100 * 1e3 : t.timeout;
|
|
3284
3309
|
let n = null, s = null;
|
|
3285
|
-
if (
|
|
3310
|
+
if (W.isNode && typeof require < "u") {
|
|
3286
3311
|
const o = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
3287
3312
|
n = o("ws"), s = o("eventsource");
|
|
3288
3313
|
}
|
|
3289
|
-
!
|
|
3314
|
+
!W.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : W.isNode && !t.WebSocket && n && (t.WebSocket = n), !W.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : W.isNode && !t.EventSource && typeof s < "u" && (t.EventSource = s), this._httpClient = new sn(t.httpClient || new Xr(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
3290
3315
|
}
|
|
3291
3316
|
async start(e) {
|
|
3292
|
-
if (e = e ||
|
|
3317
|
+
if (e = e || J.Binary, U.isIn(e, J, "transferFormat"), this._logger.log(d.Debug, `Starting connection with transfer format '${J[e]}'.`), this._connectionState !== "Disconnected")
|
|
3293
3318
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
3294
3319
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
3295
3320
|
const t = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -3333,8 +3358,8 @@ class ln {
|
|
|
3333
3358
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
3334
3359
|
try {
|
|
3335
3360
|
if (this._options.skipNegotiation)
|
|
3336
|
-
if (this._options.transport ===
|
|
3337
|
-
this.transport = this._constructTransport(
|
|
3361
|
+
if (this._options.transport === F.WebSockets)
|
|
3362
|
+
this.transport = this._constructTransport(F.WebSockets), await this._startTransport(t, e);
|
|
3338
3363
|
else
|
|
3339
3364
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
3340
3365
|
else {
|
|
@@ -3410,26 +3435,26 @@ class ln {
|
|
|
3410
3435
|
await this._startTransport(o, s), this.connectionId = c.connectionId;
|
|
3411
3436
|
return;
|
|
3412
3437
|
} catch (f) {
|
|
3413
|
-
if (this._logger.log(d.Error, `Failed to start the transport '${l.transport}': ${f}`), c = void 0, i.push(new
|
|
3438
|
+
if (this._logger.log(d.Error, `Failed to start the transport '${l.transport}': ${f}`), c = void 0, i.push(new $r(`${l.transport} failed: ${f}`, F[l.transport])), this._connectionState !== "Connecting") {
|
|
3414
3439
|
const g = "Failed to select transport before stop() was called.";
|
|
3415
3440
|
return this._logger.log(d.Debug, g), Promise.reject(new ie(g));
|
|
3416
3441
|
}
|
|
3417
3442
|
}
|
|
3418
3443
|
}
|
|
3419
3444
|
}
|
|
3420
|
-
return i.length > 0 ? Promise.reject(new
|
|
3445
|
+
return i.length > 0 ? Promise.reject(new Lr(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`, i)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
|
|
3421
3446
|
}
|
|
3422
3447
|
_constructTransport(e) {
|
|
3423
3448
|
switch (e) {
|
|
3424
|
-
case
|
|
3449
|
+
case F.WebSockets:
|
|
3425
3450
|
if (!this._options.WebSocket)
|
|
3426
3451
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
3427
|
-
return new
|
|
3428
|
-
case
|
|
3452
|
+
return new ln(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
3453
|
+
case F.ServerSentEvents:
|
|
3429
3454
|
if (!this._options.EventSource)
|
|
3430
3455
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
3431
|
-
return new
|
|
3432
|
-
case
|
|
3456
|
+
return new cn(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
3457
|
+
case F.LongPolling:
|
|
3433
3458
|
return new Dt(this._httpClient, this._logger, this._options);
|
|
3434
3459
|
default:
|
|
3435
3460
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -3452,23 +3477,23 @@ class ln {
|
|
|
3452
3477
|
} : this.transport.onclose = (n) => this._stopConnection(n), this.transport.connect(e, t);
|
|
3453
3478
|
}
|
|
3454
3479
|
_resolveTransportOrError(e, t, n, s) {
|
|
3455
|
-
const o =
|
|
3480
|
+
const o = F[e.transport];
|
|
3456
3481
|
if (o == null)
|
|
3457
3482
|
return this._logger.log(d.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
3458
|
-
if (
|
|
3459
|
-
if (e.transferFormats.map((a) =>
|
|
3460
|
-
if (o ===
|
|
3461
|
-
return this._logger.log(d.Debug, `Skipping transport '${
|
|
3462
|
-
this._logger.log(d.Debug, `Selecting transport '${
|
|
3483
|
+
if (hn(t, o))
|
|
3484
|
+
if (e.transferFormats.map((a) => J[a]).indexOf(n) >= 0) {
|
|
3485
|
+
if (o === F.WebSockets && !this._options.WebSocket || o === F.ServerSentEvents && !this._options.EventSource)
|
|
3486
|
+
return this._logger.log(d.Debug, `Skipping transport '${F[o]}' because it is not supported in your environment.'`), new Mr(`'${F[o]}' is not supported in your environment.`, o);
|
|
3487
|
+
this._logger.log(d.Debug, `Selecting transport '${F[o]}'.`);
|
|
3463
3488
|
try {
|
|
3464
|
-
return this.features.reconnect = o ===
|
|
3489
|
+
return this.features.reconnect = o === F.WebSockets ? s : void 0, this._constructTransport(o);
|
|
3465
3490
|
} catch (a) {
|
|
3466
3491
|
return a;
|
|
3467
3492
|
}
|
|
3468
3493
|
} else
|
|
3469
|
-
return this._logger.log(d.Debug, `Skipping transport '${
|
|
3494
|
+
return this._logger.log(d.Debug, `Skipping transport '${F[o]}' because it does not support the requested transfer format '${J[n]}'.`), new Error(`'${F[o]}' does not support ${J[n]}.`);
|
|
3470
3495
|
else
|
|
3471
|
-
return this._logger.log(d.Debug, `Skipping transport '${
|
|
3496
|
+
return this._logger.log(d.Debug, `Skipping transport '${F[o]}' because it was disabled by the client.`), new Nr(`'${F[o]}' is disabled by the client.`, o);
|
|
3472
3497
|
}
|
|
3473
3498
|
_isITransport(e) {
|
|
3474
3499
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -3494,7 +3519,7 @@ class ln {
|
|
|
3494
3519
|
_resolveUrl(e) {
|
|
3495
3520
|
if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
|
|
3496
3521
|
return e;
|
|
3497
|
-
if (!
|
|
3522
|
+
if (!W.isBrowser)
|
|
3498
3523
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
3499
3524
|
const t = window.document.createElement("a");
|
|
3500
3525
|
return t.href = e, this._logger.log(d.Information, `Normalizing '${e}' to '${t.href}'.`), t.href;
|
|
@@ -3506,15 +3531,15 @@ class ln {
|
|
|
3506
3531
|
return n.has("negotiateVersion") || n.append("negotiateVersion", this._negotiateVersion.toString()), n.has("useStatefulReconnect") ? n.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && n.append("useStatefulReconnect", "true"), t.search = n.toString(), t.toString();
|
|
3507
3532
|
}
|
|
3508
3533
|
}
|
|
3509
|
-
function
|
|
3534
|
+
function hn(r, e) {
|
|
3510
3535
|
return !r || (e & r) !== 0;
|
|
3511
3536
|
}
|
|
3512
3537
|
class tt {
|
|
3513
3538
|
constructor(e) {
|
|
3514
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
3539
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new Pe(), this._transportResult = new Pe(), this._sendLoopPromise = this._sendLoop();
|
|
3515
3540
|
}
|
|
3516
3541
|
send(e) {
|
|
3517
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
3542
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new Pe()), this._transportResult.promise;
|
|
3518
3543
|
}
|
|
3519
3544
|
stop() {
|
|
3520
3545
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -3530,7 +3555,7 @@ class tt {
|
|
|
3530
3555
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
3531
3556
|
break;
|
|
3532
3557
|
}
|
|
3533
|
-
this._sendBufferedData = new
|
|
3558
|
+
this._sendBufferedData = new Pe();
|
|
3534
3559
|
const e = this._transportResult;
|
|
3535
3560
|
this._transportResult = void 0;
|
|
3536
3561
|
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : tt._concatBuffers(this._buffer);
|
|
@@ -3550,7 +3575,7 @@ class tt {
|
|
|
3550
3575
|
return n.buffer;
|
|
3551
3576
|
}
|
|
3552
3577
|
}
|
|
3553
|
-
class
|
|
3578
|
+
class Pe {
|
|
3554
3579
|
constructor() {
|
|
3555
3580
|
this.promise = new Promise((e, t) => [this._resolver, this._rejecter] = [e, t]);
|
|
3556
3581
|
}
|
|
@@ -3561,10 +3586,10 @@ class ke {
|
|
|
3561
3586
|
this._rejecter(e);
|
|
3562
3587
|
}
|
|
3563
3588
|
}
|
|
3564
|
-
const
|
|
3565
|
-
class
|
|
3589
|
+
const fn = "json";
|
|
3590
|
+
class dn {
|
|
3566
3591
|
constructor() {
|
|
3567
|
-
this.name =
|
|
3592
|
+
this.name = fn, this.version = 2, this.transferFormat = J.Text;
|
|
3568
3593
|
}
|
|
3569
3594
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
3570
3595
|
*
|
|
@@ -3577,7 +3602,7 @@ class fn {
|
|
|
3577
3602
|
if (!e)
|
|
3578
3603
|
return [];
|
|
3579
3604
|
t === null && (t = be.instance);
|
|
3580
|
-
const n =
|
|
3605
|
+
const n = re.parse(e), s = [];
|
|
3581
3606
|
for (const o of n) {
|
|
3582
3607
|
const i = JSON.parse(o);
|
|
3583
3608
|
if (typeof i.type != "number")
|
|
@@ -3616,7 +3641,7 @@ class fn {
|
|
|
3616
3641
|
* @returns {string} A string containing the serialized representation of the message.
|
|
3617
3642
|
*/
|
|
3618
3643
|
writeMessage(e) {
|
|
3619
|
-
return
|
|
3644
|
+
return re.write(JSON.stringify(e));
|
|
3620
3645
|
}
|
|
3621
3646
|
_isInvocationMessage(e) {
|
|
3622
3647
|
this._assertNotEmptyString(e.target, "Invalid payload for Invocation message."), e.invocationId !== void 0 && this._assertNotEmptyString(e.invocationId, "Invalid payload for Invocation message.");
|
|
@@ -3643,7 +3668,7 @@ class fn {
|
|
|
3643
3668
|
throw new Error(t);
|
|
3644
3669
|
}
|
|
3645
3670
|
}
|
|
3646
|
-
const
|
|
3671
|
+
const gn = {
|
|
3647
3672
|
trace: d.Trace,
|
|
3648
3673
|
debug: d.Debug,
|
|
3649
3674
|
info: d.Information,
|
|
@@ -3654,25 +3679,25 @@ const dn = {
|
|
|
3654
3679
|
critical: d.Critical,
|
|
3655
3680
|
none: d.None
|
|
3656
3681
|
};
|
|
3657
|
-
function
|
|
3658
|
-
const e =
|
|
3682
|
+
function pn(r) {
|
|
3683
|
+
const e = gn[r.toLowerCase()];
|
|
3659
3684
|
if (typeof e < "u")
|
|
3660
3685
|
return e;
|
|
3661
3686
|
throw new Error(`Unknown log level: ${r}`);
|
|
3662
3687
|
}
|
|
3663
|
-
class
|
|
3688
|
+
class _n {
|
|
3664
3689
|
configureLogging(e) {
|
|
3665
|
-
if (
|
|
3690
|
+
if (U.isRequired(e, "logging"), mn(e))
|
|
3666
3691
|
this.logger = e;
|
|
3667
3692
|
else if (typeof e == "string") {
|
|
3668
|
-
const t =
|
|
3669
|
-
this.logger = new
|
|
3693
|
+
const t = pn(e);
|
|
3694
|
+
this.logger = new je(t);
|
|
3670
3695
|
} else
|
|
3671
|
-
this.logger = new
|
|
3696
|
+
this.logger = new je(e);
|
|
3672
3697
|
return this;
|
|
3673
3698
|
}
|
|
3674
3699
|
withUrl(e, t) {
|
|
3675
|
-
return
|
|
3700
|
+
return U.isRequired(e, "url"), U.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
|
|
3676
3701
|
...this.httpConnectionOptions,
|
|
3677
3702
|
transport: t
|
|
3678
3703
|
}, this;
|
|
@@ -3682,7 +3707,7 @@ class pn {
|
|
|
3682
3707
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
3683
3708
|
*/
|
|
3684
3709
|
withHubProtocol(e) {
|
|
3685
|
-
return
|
|
3710
|
+
return U.isRequired(e, "protocol"), this.protocol = e, this;
|
|
3686
3711
|
}
|
|
3687
3712
|
withAutomaticReconnect(e) {
|
|
3688
3713
|
if (this.reconnectPolicy)
|
|
@@ -3694,14 +3719,14 @@ class pn {
|
|
|
3694
3719
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
3695
3720
|
*/
|
|
3696
3721
|
withServerTimeout(e) {
|
|
3697
|
-
return
|
|
3722
|
+
return U.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
3698
3723
|
}
|
|
3699
3724
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
3700
3725
|
*
|
|
3701
3726
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
3702
3727
|
*/
|
|
3703
3728
|
withKeepAliveInterval(e) {
|
|
3704
|
-
return
|
|
3729
|
+
return U.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
3705
3730
|
}
|
|
3706
3731
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
3707
3732
|
*
|
|
@@ -3718,11 +3743,11 @@ class pn {
|
|
|
3718
3743
|
const e = this.httpConnectionOptions || {};
|
|
3719
3744
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
3720
3745
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
3721
|
-
const t = new
|
|
3722
|
-
return et.create(t, this.logger || be.instance, this.protocol || new
|
|
3746
|
+
const t = new un(this.url, e);
|
|
3747
|
+
return et.create(t, this.logger || be.instance, this.protocol || new dn(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
3723
3748
|
}
|
|
3724
3749
|
}
|
|
3725
|
-
function
|
|
3750
|
+
function mn(r) {
|
|
3726
3751
|
return r.log !== void 0;
|
|
3727
3752
|
}
|
|
3728
3753
|
/**
|
|
@@ -3731,13 +3756,13 @@ function _n(r) {
|
|
|
3731
3756
|
* This source code is licensed under the ISC license.
|
|
3732
3757
|
* See the LICENSE file in the root directory of this source tree.
|
|
3733
3758
|
*/
|
|
3734
|
-
const
|
|
3759
|
+
const vn = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yn = (r) => r.replace(
|
|
3735
3760
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3736
3761
|
(e, t, n) => n ? n.toUpperCase() : t.toLowerCase()
|
|
3737
3762
|
), Nt = (r) => {
|
|
3738
|
-
const e =
|
|
3763
|
+
const e = yn(r);
|
|
3739
3764
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3740
|
-
}, Kt = (...r) => r.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(),
|
|
3765
|
+
}, Kt = (...r) => r.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), wn = (r) => {
|
|
3741
3766
|
for (const e in r)
|
|
3742
3767
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
3743
3768
|
return !0;
|
|
@@ -3765,7 +3790,7 @@ var bn = {
|
|
|
3765
3790
|
* This source code is licensed under the ISC license.
|
|
3766
3791
|
* See the LICENSE file in the root directory of this source tree.
|
|
3767
3792
|
*/
|
|
3768
|
-
const
|
|
3793
|
+
const Sn = zt(
|
|
3769
3794
|
({
|
|
3770
3795
|
color: r = "currentColor",
|
|
3771
3796
|
size: e = 24,
|
|
@@ -3785,7 +3810,7 @@ const wn = zt(
|
|
|
3785
3810
|
stroke: r,
|
|
3786
3811
|
strokeWidth: n ? Number(t) * 24 / Number(e) : t,
|
|
3787
3812
|
className: Kt("lucide", s),
|
|
3788
|
-
...!o && !
|
|
3813
|
+
...!o && !wn(a) && { "aria-hidden": "true" },
|
|
3789
3814
|
...a
|
|
3790
3815
|
},
|
|
3791
3816
|
[
|
|
@@ -3800,13 +3825,13 @@ const wn = zt(
|
|
|
3800
3825
|
* This source code is licensed under the ISC license.
|
|
3801
3826
|
* See the LICENSE file in the root directory of this source tree.
|
|
3802
3827
|
*/
|
|
3803
|
-
const
|
|
3828
|
+
const se = (r, e) => {
|
|
3804
3829
|
const t = zt(
|
|
3805
|
-
({ className: n, ...s }, o) => Ge(
|
|
3830
|
+
({ className: n, ...s }, o) => Ge(Sn, {
|
|
3806
3831
|
ref: o,
|
|
3807
3832
|
iconNode: e,
|
|
3808
3833
|
className: Kt(
|
|
3809
|
-
`lucide-${
|
|
3834
|
+
`lucide-${vn(Nt(r))}`,
|
|
3810
3835
|
`lucide-${r}`,
|
|
3811
3836
|
n
|
|
3812
3837
|
),
|
|
@@ -3821,7 +3846,7 @@ const oe = (r, e) => {
|
|
|
3821
3846
|
* This source code is licensed under the ISC license.
|
|
3822
3847
|
* See the LICENSE file in the root directory of this source tree.
|
|
3823
3848
|
*/
|
|
3824
|
-
const
|
|
3849
|
+
const En = [
|
|
3825
3850
|
[
|
|
3826
3851
|
"path",
|
|
3827
3852
|
{
|
|
@@ -3834,14 +3859,14 @@ const Sn = [
|
|
|
3834
3859
|
["path", { d: "M8 18v-2", key: "qcmpov" }],
|
|
3835
3860
|
["path", { d: "M8 7V6", key: "1nbb54" }],
|
|
3836
3861
|
["circle", { cx: "8", cy: "20", r: "2", key: "ckkr5m" }]
|
|
3837
|
-
], Cn =
|
|
3862
|
+
], Cn = se("file-archive", En);
|
|
3838
3863
|
/**
|
|
3839
3864
|
* @license lucide-react v0.562.0 - ISC
|
|
3840
3865
|
*
|
|
3841
3866
|
* This source code is licensed under the ISC license.
|
|
3842
3867
|
* See the LICENSE file in the root directory of this source tree.
|
|
3843
3868
|
*/
|
|
3844
|
-
const
|
|
3869
|
+
const xn = [
|
|
3845
3870
|
[
|
|
3846
3871
|
"path",
|
|
3847
3872
|
{
|
|
@@ -3858,14 +3883,14 @@ const En = [
|
|
|
3858
3883
|
"path",
|
|
3859
3884
|
{ d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1", key: "mpwhp6" }
|
|
3860
3885
|
]
|
|
3861
|
-
],
|
|
3886
|
+
], Tn = se("file-braces", xn);
|
|
3862
3887
|
/**
|
|
3863
3888
|
* @license lucide-react v0.562.0 - ISC
|
|
3864
3889
|
*
|
|
3865
3890
|
* This source code is licensed under the ISC license.
|
|
3866
3891
|
* See the LICENSE file in the root directory of this source tree.
|
|
3867
3892
|
*/
|
|
3868
|
-
const
|
|
3893
|
+
const kn = [
|
|
3869
3894
|
[
|
|
3870
3895
|
"path",
|
|
3871
3896
|
{
|
|
@@ -3876,14 +3901,14 @@ const Tn = [
|
|
|
3876
3901
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
3877
3902
|
["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
|
|
3878
3903
|
["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
|
|
3879
|
-
],
|
|
3904
|
+
], Re = se("file-code", kn);
|
|
3880
3905
|
/**
|
|
3881
3906
|
* @license lucide-react v0.562.0 - ISC
|
|
3882
3907
|
*
|
|
3883
3908
|
* This source code is licensed under the ISC license.
|
|
3884
3909
|
* See the LICENSE file in the root directory of this source tree.
|
|
3885
3910
|
*/
|
|
3886
|
-
const
|
|
3911
|
+
const Pn = [
|
|
3887
3912
|
[
|
|
3888
3913
|
"path",
|
|
3889
3914
|
{
|
|
@@ -3895,14 +3920,14 @@ const kn = [
|
|
|
3895
3920
|
["path", { d: "M10 16h2v6", key: "1bxocy" }],
|
|
3896
3921
|
["path", { d: "M10 22h4", key: "ceow96" }],
|
|
3897
3922
|
["rect", { x: "2", y: "16", width: "4", height: "6", rx: "2", key: "r45zd0" }]
|
|
3898
|
-
],
|
|
3923
|
+
], Rn = se("file-digit", Pn);
|
|
3899
3924
|
/**
|
|
3900
3925
|
* @license lucide-react v0.562.0 - ISC
|
|
3901
3926
|
*
|
|
3902
3927
|
* This source code is licensed under the ISC license.
|
|
3903
3928
|
* See the LICENSE file in the root directory of this source tree.
|
|
3904
3929
|
*/
|
|
3905
|
-
const
|
|
3930
|
+
const In = [
|
|
3906
3931
|
[
|
|
3907
3932
|
"path",
|
|
3908
3933
|
{
|
|
@@ -3918,14 +3943,14 @@ const Rn = [
|
|
|
3918
3943
|
key: "1etmh7"
|
|
3919
3944
|
}
|
|
3920
3945
|
]
|
|
3921
|
-
],
|
|
3946
|
+
], An = se("file-headphone", In);
|
|
3922
3947
|
/**
|
|
3923
3948
|
* @license lucide-react v0.562.0 - ISC
|
|
3924
3949
|
*
|
|
3925
3950
|
* This source code is licensed under the ISC license.
|
|
3926
3951
|
* See the LICENSE file in the root directory of this source tree.
|
|
3927
3952
|
*/
|
|
3928
|
-
const
|
|
3953
|
+
const jn = [
|
|
3929
3954
|
[
|
|
3930
3955
|
"path",
|
|
3931
3956
|
{
|
|
@@ -3936,14 +3961,14 @@ const An = [
|
|
|
3936
3961
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
3937
3962
|
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
|
|
3938
3963
|
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
|
|
3939
|
-
],
|
|
3964
|
+
], On = se("file-image", jn);
|
|
3940
3965
|
/**
|
|
3941
3966
|
* @license lucide-react v0.562.0 - ISC
|
|
3942
3967
|
*
|
|
3943
3968
|
* This source code is licensed under the ISC license.
|
|
3944
3969
|
* See the LICENSE file in the root directory of this source tree.
|
|
3945
3970
|
*/
|
|
3946
|
-
const
|
|
3971
|
+
const Dn = [
|
|
3947
3972
|
[
|
|
3948
3973
|
"path",
|
|
3949
3974
|
{
|
|
@@ -3959,14 +3984,14 @@ const On = [
|
|
|
3959
3984
|
key: "1tzo1f"
|
|
3960
3985
|
}
|
|
3961
3986
|
]
|
|
3962
|
-
],
|
|
3987
|
+
], Mn = se("file-play", Dn);
|
|
3963
3988
|
/**
|
|
3964
3989
|
* @license lucide-react v0.562.0 - ISC
|
|
3965
3990
|
*
|
|
3966
3991
|
* This source code is licensed under the ISC license.
|
|
3967
3992
|
* See the LICENSE file in the root directory of this source tree.
|
|
3968
3993
|
*/
|
|
3969
|
-
const
|
|
3994
|
+
const Nn = [
|
|
3970
3995
|
[
|
|
3971
3996
|
"path",
|
|
3972
3997
|
{
|
|
@@ -3979,14 +4004,14 @@ const Mn = [
|
|
|
3979
4004
|
["path", { d: "M14 13h2", key: "un5t4a" }],
|
|
3980
4005
|
["path", { d: "M8 17h2", key: "2yhykz" }],
|
|
3981
4006
|
["path", { d: "M14 17h2", key: "10kma7" }]
|
|
3982
|
-
], $t =
|
|
4007
|
+
], $t = se("file-spreadsheet", Nn);
|
|
3983
4008
|
/**
|
|
3984
4009
|
* @license lucide-react v0.562.0 - ISC
|
|
3985
4010
|
*
|
|
3986
4011
|
* This source code is licensed under the ISC license.
|
|
3987
4012
|
* See the LICENSE file in the root directory of this source tree.
|
|
3988
4013
|
*/
|
|
3989
|
-
const
|
|
4014
|
+
const $n = [
|
|
3990
4015
|
[
|
|
3991
4016
|
"path",
|
|
3992
4017
|
{
|
|
@@ -3998,14 +4023,14 @@ const Nn = [
|
|
|
3998
4023
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
3999
4024
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
4000
4025
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
4001
|
-
], Lt =
|
|
4026
|
+
], Lt = se("file-text", $n);
|
|
4002
4027
|
/**
|
|
4003
4028
|
* @license lucide-react v0.562.0 - ISC
|
|
4004
4029
|
*
|
|
4005
4030
|
* This source code is licensed under the ISC license.
|
|
4006
4031
|
* See the LICENSE file in the root directory of this source tree.
|
|
4007
4032
|
*/
|
|
4008
|
-
const
|
|
4033
|
+
const Ln = [
|
|
4009
4034
|
[
|
|
4010
4035
|
"path",
|
|
4011
4036
|
{
|
|
@@ -4017,14 +4042,14 @@ const $n = [
|
|
|
4017
4042
|
["path", { d: "M11 18h2", key: "12mj7e" }],
|
|
4018
4043
|
["path", { d: "M12 12v6", key: "3ahymv" }],
|
|
4019
4044
|
["path", { d: "M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5", key: "qbrxap" }]
|
|
4020
|
-
],
|
|
4045
|
+
], Bn = se("file-type", Ln);
|
|
4021
4046
|
/**
|
|
4022
4047
|
* @license lucide-react v0.562.0 - ISC
|
|
4023
4048
|
*
|
|
4024
4049
|
* This source code is licensed under the ISC license.
|
|
4025
4050
|
* See the LICENSE file in the root directory of this source tree.
|
|
4026
4051
|
*/
|
|
4027
|
-
const
|
|
4052
|
+
const zn = [
|
|
4028
4053
|
[
|
|
4029
4054
|
"path",
|
|
4030
4055
|
{
|
|
@@ -4033,22 +4058,22 @@ const Bn = [
|
|
|
4033
4058
|
}
|
|
4034
4059
|
],
|
|
4035
4060
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
4036
|
-
], Bt =
|
|
4061
|
+
], Bt = se("file", zn);
|
|
4037
4062
|
/**
|
|
4038
4063
|
* @license lucide-react v0.562.0 - ISC
|
|
4039
4064
|
*
|
|
4040
4065
|
* This source code is licensed under the ISC license.
|
|
4041
4066
|
* See the LICENSE file in the root directory of this source tree.
|
|
4042
4067
|
*/
|
|
4043
|
-
const
|
|
4068
|
+
const Hn = [
|
|
4044
4069
|
["path", { d: "M2 3h20", key: "91anmk" }],
|
|
4045
4070
|
["path", { d: "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3", key: "2k9sn8" }],
|
|
4046
4071
|
["path", { d: "m7 21 5-5 5 5", key: "bip4we" }]
|
|
4047
|
-
],
|
|
4072
|
+
], Wn = se("presentation", Hn);
|
|
4048
4073
|
function Un(r) {
|
|
4049
|
-
return
|
|
4074
|
+
return Oe({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { id: "Square_Remove" }, child: [{ tag: "g", attr: {}, child: [{ tag: "path", attr: { d: "M18.437,20.937H5.563a2.5,2.5,0,0,1-2.5-2.5V5.563a2.5,2.5,0,0,1,2.5-2.5H18.437a2.5,2.5,0,0,1,2.5,2.5V18.437A2.5,2.5,0,0,1,18.437,20.937ZM5.563,4.063a1.5,1.5,0,0,0-1.5,1.5V18.437a1.5,1.5,0,0,0,1.5,1.5H18.437a1.5,1.5,0,0,0,1.5-1.5V5.563a1.5,1.5,0,0,0-1.5-1.5Z" }, child: [] }, { tag: "path", attr: { d: "M13.767,14.477a.5.5,0,0,0,.71-.71L12.707,12l1.77-1.77a.5.5,0,0,0-.71-.7L12,11.3l-1.77-1.77a.5.5,0,0,0-.7.7c.59.59,1.17,1.18,1.77,1.77l-1.77,1.77c-.46.45.25,1.16.7.71L12,12.707Z" }, child: [] }] }] }] })(r);
|
|
4050
4075
|
}
|
|
4051
|
-
const
|
|
4076
|
+
const Fn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "mt-3 w-full", children: [
|
|
4052
4077
|
/* @__PURE__ */ m.jsxs("div", { className: "mb-2 flex justify-between", children: [
|
|
4053
4078
|
/* @__PURE__ */ m.jsx("span", { className: "text-sm font-medium text-gray-700 dark:text-gray-500", children: "Uploading..." }),
|
|
4054
4079
|
/* @__PURE__ */ m.jsxs("span", { className: "text-sm font-medium text-gray-700 dark:text-gray-500", children: [
|
|
@@ -4063,7 +4088,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4063
4088
|
style: { width: `${r || 0}%` }
|
|
4064
4089
|
}
|
|
4065
4090
|
) })
|
|
4066
|
-
] }),
|
|
4091
|
+
] }), qn = ({
|
|
4067
4092
|
file: r,
|
|
4068
4093
|
size: e = "md",
|
|
4069
4094
|
className: t = "",
|
|
@@ -4072,33 +4097,33 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4072
4097
|
removeFileMethod: o = () => {
|
|
4073
4098
|
}
|
|
4074
4099
|
}) => {
|
|
4075
|
-
const i = (
|
|
4076
|
-
const
|
|
4077
|
-
return
|
|
4078
|
-
}, a = (
|
|
4079
|
-
const
|
|
4100
|
+
const i = (w) => {
|
|
4101
|
+
const p = w.split(".");
|
|
4102
|
+
return p.length > 1 ? p.pop().toLowerCase() : "";
|
|
4103
|
+
}, a = (w) => {
|
|
4104
|
+
const p = {
|
|
4080
4105
|
className: "text-gray-600"
|
|
4081
4106
|
};
|
|
4082
|
-
switch (
|
|
4107
|
+
switch (w) {
|
|
4083
4108
|
// Documents
|
|
4084
4109
|
case "pdf":
|
|
4085
|
-
return /* @__PURE__ */ m.jsx(Bt, { ...
|
|
4110
|
+
return /* @__PURE__ */ m.jsx(Bt, { ...p, className: "text-red-500" });
|
|
4086
4111
|
case "doc":
|
|
4087
4112
|
case "docx":
|
|
4088
|
-
return /* @__PURE__ */ m.jsx(Lt, { ...
|
|
4113
|
+
return /* @__PURE__ */ m.jsx(Lt, { ...p, className: "text-blue-500" });
|
|
4089
4114
|
case "xls":
|
|
4090
4115
|
case "xlsx":
|
|
4091
|
-
return /* @__PURE__ */ m.jsx($t, { ...
|
|
4116
|
+
return /* @__PURE__ */ m.jsx($t, { ...p, className: "text-green-600" });
|
|
4092
4117
|
case "csv":
|
|
4093
|
-
return /* @__PURE__ */ m.jsx($t, { ...
|
|
4118
|
+
return /* @__PURE__ */ m.jsx($t, { ...p, className: "text-green-500" });
|
|
4094
4119
|
case "ppt":
|
|
4095
4120
|
case "pptx":
|
|
4096
|
-
return /* @__PURE__ */ m.jsx(
|
|
4121
|
+
return /* @__PURE__ */ m.jsx(Wn, { ...p, className: "text-orange-500" });
|
|
4097
4122
|
case "txt":
|
|
4098
4123
|
case "rtf":
|
|
4099
|
-
return /* @__PURE__ */ m.jsx(Lt, { ...
|
|
4124
|
+
return /* @__PURE__ */ m.jsx(Lt, { ...p, className: "text-gray-600" });
|
|
4100
4125
|
case "md":
|
|
4101
|
-
return /* @__PURE__ */ m.jsx(
|
|
4126
|
+
return /* @__PURE__ */ m.jsx(Rn, { ...p });
|
|
4102
4127
|
// Images
|
|
4103
4128
|
case "jpg":
|
|
4104
4129
|
case "jpeg":
|
|
@@ -4108,7 +4133,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4108
4133
|
case "bmp":
|
|
4109
4134
|
case "webp":
|
|
4110
4135
|
case "ico":
|
|
4111
|
-
return /* @__PURE__ */ m.jsx(
|
|
4136
|
+
return /* @__PURE__ */ m.jsx(On, { ...p, className: "text-purple-500" });
|
|
4112
4137
|
// Videos
|
|
4113
4138
|
case "mp4":
|
|
4114
4139
|
case "avi":
|
|
@@ -4117,7 +4142,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4117
4142
|
case "flv":
|
|
4118
4143
|
case "webm":
|
|
4119
4144
|
case "mkv":
|
|
4120
|
-
return /* @__PURE__ */ m.jsx(
|
|
4145
|
+
return /* @__PURE__ */ m.jsx(Mn, { ...p, className: "text-purple-600" });
|
|
4121
4146
|
// Audio
|
|
4122
4147
|
case "mp3":
|
|
4123
4148
|
case "wav":
|
|
@@ -4125,7 +4150,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4125
4150
|
case "flac":
|
|
4126
4151
|
case "m4a":
|
|
4127
4152
|
case "aac":
|
|
4128
|
-
return /* @__PURE__ */ m.jsx(
|
|
4153
|
+
return /* @__PURE__ */ m.jsx(An, { ...p, className: "text-pink-500" });
|
|
4129
4154
|
// Archives
|
|
4130
4155
|
case "zip":
|
|
4131
4156
|
case "rar":
|
|
@@ -4133,28 +4158,28 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4133
4158
|
case "tar":
|
|
4134
4159
|
case "gz":
|
|
4135
4160
|
case "bz2":
|
|
4136
|
-
return /* @__PURE__ */ m.jsx(Cn, { ...
|
|
4161
|
+
return /* @__PURE__ */ m.jsx(Cn, { ...p, className: "text-yellow-600" });
|
|
4137
4162
|
// Code & Data
|
|
4138
4163
|
case "js":
|
|
4139
4164
|
case "jsx":
|
|
4140
|
-
return /* @__PURE__ */ m.jsx(
|
|
4165
|
+
return /* @__PURE__ */ m.jsx(Re, { ...p, className: "text-yellow-500" });
|
|
4141
4166
|
case "ts":
|
|
4142
4167
|
case "tsx":
|
|
4143
|
-
return /* @__PURE__ */ m.jsx(
|
|
4168
|
+
return /* @__PURE__ */ m.jsx(Bn, { ...p, className: "text-blue-600" });
|
|
4144
4169
|
case "html":
|
|
4145
4170
|
case "htm":
|
|
4146
|
-
return /* @__PURE__ */ m.jsx(
|
|
4171
|
+
return /* @__PURE__ */ m.jsx(Re, { ...p, className: "text-orange-600" });
|
|
4147
4172
|
case "css":
|
|
4148
|
-
return /* @__PURE__ */ m.jsx(
|
|
4173
|
+
return /* @__PURE__ */ m.jsx(Re, { ...p, className: "text-blue-400" });
|
|
4149
4174
|
case "json":
|
|
4150
|
-
return /* @__PURE__ */ m.jsx(
|
|
4175
|
+
return /* @__PURE__ */ m.jsx(Tn, { ...p, className: "text-gray-700" });
|
|
4151
4176
|
case "xml":
|
|
4152
4177
|
case "yml":
|
|
4153
4178
|
case "yaml":
|
|
4154
|
-
return /* @__PURE__ */ m.jsx(
|
|
4179
|
+
return /* @__PURE__ */ m.jsx(Re, { ...p, className: "text-gray-600" });
|
|
4155
4180
|
// Default
|
|
4156
4181
|
default:
|
|
4157
|
-
return /* @__PURE__ */ m.jsx(Bt, { ...
|
|
4182
|
+
return /* @__PURE__ */ m.jsx(Bt, { ...p });
|
|
4158
4183
|
}
|
|
4159
4184
|
}, c = {
|
|
4160
4185
|
sm: {
|
|
@@ -4189,7 +4214,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4189
4214
|
textTruncateSize: "100px",
|
|
4190
4215
|
previewSize: "h-23 w-24"
|
|
4191
4216
|
}
|
|
4192
|
-
}, { iconSize: l, textSize: h, previewSize: f } = c[e], g = i(r.name),
|
|
4217
|
+
}, { iconSize: l, textSize: h, previewSize: f } = c[e], g = i(r.name), E = a(g);
|
|
4193
4218
|
return /* @__PURE__ */ m.jsx("div", { className: `flex flex-col items-center ${t} mt-2 gap-1`, children: /* @__PURE__ */ m.jsxs(
|
|
4194
4219
|
"div",
|
|
4195
4220
|
{
|
|
@@ -4208,7 +4233,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4208
4233
|
)
|
|
4209
4234
|
}
|
|
4210
4235
|
) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
4211
|
-
/* @__PURE__ */ m.jsx("div", { className: "mb-2 transform transition-transform duration-200 group-hover:scale-110", children: ae.cloneElement(
|
|
4236
|
+
/* @__PURE__ */ m.jsx("div", { className: "mb-2 transform transition-transform duration-200 group-hover:scale-110", children: ae.cloneElement(E, { size: l }) }),
|
|
4212
4237
|
n && g && /* @__PURE__ */ m.jsx(
|
|
4213
4238
|
"div",
|
|
4214
4239
|
{
|
|
@@ -4236,22 +4261,22 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "
|
|
|
4236
4261
|
}
|
|
4237
4262
|
)
|
|
4238
4263
|
] }),
|
|
4239
|
-
/* @__PURE__ */ m.jsx(
|
|
4264
|
+
/* @__PURE__ */ m.jsx(Fn, { progress: r.progress })
|
|
4240
4265
|
]
|
|
4241
4266
|
}
|
|
4242
4267
|
) });
|
|
4243
4268
|
};
|
|
4244
|
-
function
|
|
4245
|
-
return
|
|
4269
|
+
function Vn(r) {
|
|
4270
|
+
return Oe({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" }, child: [] }] })(r);
|
|
4246
4271
|
}
|
|
4247
|
-
const
|
|
4272
|
+
const Yn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex flex-col divide-y divide-gray-200 rounded-lg border border-gray-200 bg-white", children: r.map((e) => /* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2 p-2", children: [
|
|
4248
4273
|
/* @__PURE__ */ m.jsx("div", { className: "h-12 w-12 flex-shrink-0 overflow-hidden rounded bg-gray-100", children: e.thumbnailBase64 ? /* @__PURE__ */ m.jsx(
|
|
4249
4274
|
"img",
|
|
4250
4275
|
{
|
|
4251
4276
|
src: `data:${e.type};base64,${e.thumbnailBase64}`,
|
|
4252
4277
|
className: "h-full w-full object-cover"
|
|
4253
4278
|
}
|
|
4254
|
-
) : /* @__PURE__ */ m.jsx("div", { className: "flex h-full w-full items-center justify-center text-gray-500", children: /* @__PURE__ */ m.jsx(
|
|
4279
|
+
) : /* @__PURE__ */ m.jsx("div", { className: "flex h-full w-full items-center justify-center text-gray-500", children: /* @__PURE__ */ m.jsx(Vn, { size: 24 }) }) }),
|
|
4255
4280
|
/* @__PURE__ */ m.jsxs("div", { className: "flex flex-col flex-1 min-w-0", children: [
|
|
4256
4281
|
/* @__PURE__ */ m.jsx("span", { className: "text-xs font-medium text-gray-800 truncate w-60", children: e.name }),
|
|
4257
4282
|
/* @__PURE__ */ m.jsxs("span", { className: "text-xs text-gray-500", children: [
|
|
@@ -4259,7 +4284,7 @@ const Vn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
|
|
|
4259
4284
|
" KB"
|
|
4260
4285
|
] })
|
|
4261
4286
|
] })
|
|
4262
|
-
] }, e.id)) }),
|
|
4287
|
+
] }, e.id)) }), Xn = ({
|
|
4263
4288
|
sessionUrl: r,
|
|
4264
4289
|
refreshTokenUrl: e,
|
|
4265
4290
|
header: t,
|
|
@@ -4269,158 +4294,165 @@ const Vn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
|
|
|
4269
4294
|
size: i = "large",
|
|
4270
4295
|
filePreviewMode: a = "grid"
|
|
4271
4296
|
}) => {
|
|
4272
|
-
const [c, l] = te(!0), [h, f] = te(160), [g,
|
|
4297
|
+
const [c, l] = te(!0), [h, f] = te(160), [g, E] = te(""), [w, p] = te(
|
|
4273
4298
|
"w-32 h-32 md:w-40 md:h-40"
|
|
4274
|
-
), [
|
|
4299
|
+
), [j, k] = te("w-2 h-2"), [L, D] = te("sm"), [M, y] = te(!1), [q, K] = Dr(
|
|
4275
4300
|
"qrcode-last-session-ids",
|
|
4276
4301
|
[]
|
|
4277
|
-
), [
|
|
4302
|
+
), [ne, Q] = te(!1), X = me(null), V = me(null), Z = me(q), G = me(""), Y = me(0), [ee, z] = te([]);
|
|
4278
4303
|
he(() => {
|
|
4279
|
-
const
|
|
4280
|
-
Z.current =
|
|
4281
|
-
}, [
|
|
4282
|
-
|
|
4304
|
+
const v = [...new Set(q)];
|
|
4305
|
+
Z.current = v;
|
|
4306
|
+
}, [q]), he(() => {
|
|
4307
|
+
if (Rr(r))
|
|
4308
|
+
return;
|
|
4309
|
+
let v = !1, C = null;
|
|
4310
|
+
return (async () => {
|
|
4311
|
+
const R = await b();
|
|
4312
|
+
if (v) return;
|
|
4313
|
+
const B = await u(R);
|
|
4314
|
+
try {
|
|
4315
|
+
if (await B?.start(), v) {
|
|
4316
|
+
await B?.stop();
|
|
4317
|
+
return;
|
|
4318
|
+
}
|
|
4319
|
+
C = B, X.current = B, Q(!0), l(!1), y(!1), console.log("SignalR Connected successfully");
|
|
4320
|
+
} catch (S) {
|
|
4321
|
+
v || console.error(S);
|
|
4322
|
+
}
|
|
4323
|
+
})(), () => {
|
|
4324
|
+
v = !0, C && C.stop().catch(console.error), X.current === C && (X.current = null);
|
|
4325
|
+
};
|
|
4326
|
+
}, [r]), he(() => {
|
|
4327
|
+
switch (i) {
|
|
4328
|
+
case "small":
|
|
4329
|
+
p("w-16 h-16 md:w-20 md:h-20"), k("w-2 h-2"), f(200), D("xlg");
|
|
4330
|
+
break;
|
|
4331
|
+
case "medium":
|
|
4332
|
+
p("w-24 h-24 md:w-30 md:h-30"), k("w-2 h-2"), f(200), D("xlg");
|
|
4333
|
+
break;
|
|
4334
|
+
case "large":
|
|
4335
|
+
p("w-32 h-32 md:w-40 md:h-40"), k("w-2 h-2"), f(200), D("xlg");
|
|
4336
|
+
break;
|
|
4337
|
+
case "xlarge":
|
|
4338
|
+
p("w-40 h-40 md:w-48 md:h-48"), k("w-2 h-2"), f(200), D("xlg");
|
|
4339
|
+
break;
|
|
4340
|
+
}
|
|
4341
|
+
return () => {
|
|
4342
|
+
};
|
|
4343
|
+
}, [i]);
|
|
4344
|
+
async function oe() {
|
|
4283
4345
|
try {
|
|
4284
|
-
if (!
|
|
4285
|
-
const
|
|
4346
|
+
if (!G.current || Ar(G.current, 60)) {
|
|
4347
|
+
const v = await Rt(e, {
|
|
4286
4348
|
timeout: 16e4
|
|
4287
4349
|
});
|
|
4288
|
-
|
|
4350
|
+
G.current = v.access_token;
|
|
4289
4351
|
}
|
|
4290
|
-
return
|
|
4291
|
-
} catch (
|
|
4292
|
-
throw console.error("Error fetching access token:",
|
|
4352
|
+
return G.current;
|
|
4353
|
+
} catch (v) {
|
|
4354
|
+
throw console.error("Error fetching access token:", v), v;
|
|
4293
4355
|
} finally {
|
|
4294
4356
|
}
|
|
4295
4357
|
}
|
|
4296
|
-
const
|
|
4297
|
-
if (!
|
|
4358
|
+
const le = async () => {
|
|
4359
|
+
if (!V.current) {
|
|
4298
4360
|
l(!0);
|
|
4299
4361
|
try {
|
|
4300
|
-
const
|
|
4362
|
+
const v = await Rt(
|
|
4301
4363
|
r,
|
|
4302
4364
|
{ lastSessionIds: Z.current },
|
|
4303
4365
|
{
|
|
4304
4366
|
timeout: 3e5
|
|
4305
4367
|
}
|
|
4306
4368
|
);
|
|
4307
|
-
|
|
4308
|
-
const
|
|
4309
|
-
|
|
4369
|
+
V.current = v;
|
|
4370
|
+
const C = I(v);
|
|
4371
|
+
E(C), K([v.sessionId]);
|
|
4310
4372
|
} catch {
|
|
4311
|
-
|
|
4373
|
+
M || (y(!0), l(!1));
|
|
4312
4374
|
} finally {
|
|
4313
4375
|
}
|
|
4314
4376
|
}
|
|
4315
|
-
},
|
|
4316
|
-
|
|
4377
|
+
}, ue = async () => {
|
|
4378
|
+
V.current && (await Pr(
|
|
4379
|
+
`${r}?session_id=${V.current.sessionId}`
|
|
4380
|
+
), Q(!1), y(!1), z([]), V.current = null, X.current?.stop(), X.current = null);
|
|
4317
4381
|
};
|
|
4318
|
-
function
|
|
4319
|
-
return typeof
|
|
4382
|
+
function _(v) {
|
|
4383
|
+
return typeof v == "string" && v.trim().length === 0;
|
|
4320
4384
|
}
|
|
4321
|
-
const
|
|
4322
|
-
if (
|
|
4385
|
+
const u = async (v) => {
|
|
4386
|
+
if (_(v)) {
|
|
4323
4387
|
console.log("Hub URL is empty, cannot create connection.");
|
|
4324
4388
|
return;
|
|
4325
4389
|
}
|
|
4390
|
+
let C;
|
|
4326
4391
|
try {
|
|
4327
|
-
|
|
4392
|
+
C = new _n().withUrl(v, {
|
|
4328
4393
|
withCredentials: !1,
|
|
4329
4394
|
transport: 1,
|
|
4330
4395
|
//prefer wss
|
|
4331
|
-
accessTokenFactory: () =>
|
|
4396
|
+
accessTokenFactory: () => oe()
|
|
4332
4397
|
}).configureLogging(d.Information).withAutomaticReconnect({
|
|
4333
|
-
nextRetryDelayInMilliseconds: (
|
|
4398
|
+
nextRetryDelayInMilliseconds: (P) => Math.min(
|
|
4334
4399
|
16e3,
|
|
4335
|
-
Math.pow(2,
|
|
4400
|
+
Math.pow(2, P.previousRetryCount) * 1e3
|
|
4336
4401
|
)
|
|
4337
|
-
}).build(),
|
|
4338
|
-
|
|
4339
|
-
(
|
|
4402
|
+
}).build(), C.on("FileAdded", (P) => {
|
|
4403
|
+
z(
|
|
4404
|
+
(R) => R.some((B) => B.name === P.name) ? R : [...R, P]
|
|
4340
4405
|
);
|
|
4341
|
-
}),
|
|
4342
|
-
|
|
4343
|
-
}),
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
}), M.current.serverTimeoutInMilliseconds = 3e4, M.current.keepAliveIntervalInMilliseconds = 15e3, await M.current.start(), Q(!0), l(!1), Y(!1), console.log("SignalR Connected successfully");
|
|
4365
|
-
} catch (x) {
|
|
4366
|
-
console.error("SignalR Connection failed:", x), l(!1), Y(!0);
|
|
4406
|
+
}), C.on("FileRemoved", (P) => {
|
|
4407
|
+
z((R) => R.some((B) => B.name === P.name) ? R.filter((B) => B.name !== P.name) : R);
|
|
4408
|
+
}), C.on("FileProgress", (P, R) => {
|
|
4409
|
+
z(
|
|
4410
|
+
(B) => B.map(
|
|
4411
|
+
(S) => S.id === P ? { ...S, progress: R } : S
|
|
4412
|
+
)
|
|
4413
|
+
);
|
|
4414
|
+
}), C.on("FilesCleared", () => {
|
|
4415
|
+
z([]);
|
|
4416
|
+
}), C.on("sessionDisconnected", (P) => {
|
|
4417
|
+
ue();
|
|
4418
|
+
}), C.on("sessionReset", (P) => {
|
|
4419
|
+
z([]);
|
|
4420
|
+
}), C.onreconnecting((P) => {
|
|
4421
|
+
console.log("Connection lost, attempting to reconnect...", P), Y.current >= 2 ? Q(!1) : Y.current += 1, console.log("Retry count:", Y.current);
|
|
4422
|
+
}), C.onreconnected((P) => {
|
|
4423
|
+
console.log("Connection re-established:", P), Q(!0), l(!1), y(!1), Y.current = 0;
|
|
4424
|
+
}), C.onclose((P) => {
|
|
4425
|
+
console.log("Connection closed", P), Q(!1), z([]);
|
|
4426
|
+
}), C.serverTimeoutInMilliseconds = 3e4, C.keepAliveIntervalInMilliseconds = 15e3;
|
|
4427
|
+
} catch (P) {
|
|
4428
|
+
console.error("SignalR Connection failed:", P), l(!1), y(!0);
|
|
4367
4429
|
} finally {
|
|
4368
4430
|
}
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4431
|
+
return C;
|
|
4432
|
+
}, b = async () => (await le(), V.current.hubUrl), x = Zt(
|
|
4433
|
+
Ir(async () => {
|
|
4434
|
+
var v = await b(), C = await u(v);
|
|
4435
|
+
return C;
|
|
4436
|
+
}, 1e3),
|
|
4373
4437
|
[]
|
|
4374
|
-
)
|
|
4375
|
-
|
|
4376
|
-
if (Pr(r)) {
|
|
4377
|
-
console.log("No sessionUrl provided, skipping session creation.");
|
|
4378
|
-
return;
|
|
4379
|
-
}
|
|
4380
|
-
return (async () => await E())(), () => {
|
|
4381
|
-
M.current && (M.current.off("FileAdded", (C) => {
|
|
4382
|
-
}), M.current.off(
|
|
4383
|
-
"FileRemoved",
|
|
4384
|
-
(C) => {
|
|
4385
|
-
}
|
|
4386
|
-
), M.current.stop().catch(console.error));
|
|
4387
|
-
};
|
|
4388
|
-
}, []);
|
|
4389
|
-
const R = async () => {
|
|
4390
|
-
G([]), await u(), await O();
|
|
4438
|
+
), O = async () => {
|
|
4439
|
+
z([]), await ue(), X.current = await x(), X.current?.start(), Q(!0), l(!1), y(!1);
|
|
4391
4440
|
};
|
|
4392
|
-
function
|
|
4393
|
-
return new URL(
|
|
4441
|
+
function I(v) {
|
|
4442
|
+
return new URL(v.deviceLoginUrl).toString();
|
|
4394
4443
|
}
|
|
4395
|
-
return
|
|
4396
|
-
switch (i) {
|
|
4397
|
-
case "small":
|
|
4398
|
-
P("w-16 h-16 md:w-20 md:h-20"), D("w-2 h-2"), f(200), v("xlg");
|
|
4399
|
-
break;
|
|
4400
|
-
case "medium":
|
|
4401
|
-
P("w-24 h-24 md:w-30 md:h-30"), D("w-2 h-2"), f(200), v("xlg");
|
|
4402
|
-
break;
|
|
4403
|
-
case "large":
|
|
4404
|
-
P("w-32 h-32 md:w-40 md:h-40"), D("w-2 h-2"), f(200), v("xlg");
|
|
4405
|
-
break;
|
|
4406
|
-
case "xlarge":
|
|
4407
|
-
P("w-40 h-40 md:w-48 md:h-48"), D("w-2 h-2"), f(200), v("xlg");
|
|
4408
|
-
break;
|
|
4409
|
-
}
|
|
4410
|
-
return () => {
|
|
4411
|
-
};
|
|
4412
|
-
}, [i]), /* @__PURE__ */ m.jsxs("section", { className: "p-2", children: [
|
|
4444
|
+
return /* @__PURE__ */ m.jsxs("section", { className: "p-2", children: [
|
|
4413
4445
|
c && /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 bg-white/90 flex items-center justify-center rounded-md z-10", children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center text-center mt-0 gap-2", children: [
|
|
4414
4446
|
/* @__PURE__ */ m.jsx("div", { className: "animate-spin rounded-full h-6 w-6 border-t-2 border-blue-800 border-dashed" }),
|
|
4415
4447
|
/* @__PURE__ */ m.jsx("div", { className: "text-center h-10 w-10", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-900", children: "Loading..." }) })
|
|
4416
4448
|
] }) }),
|
|
4417
|
-
!c &&
|
|
4449
|
+
!c && M && /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 bg-white/90 flex items-center justify-center rounded-md z-10", children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center text-center mt-5 gap-2", children: [
|
|
4418
4450
|
/* @__PURE__ */ m.jsx("div", { className: "text-center text-xs", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-900", children: "Cannot create session" }) }),
|
|
4419
4451
|
/* @__PURE__ */ m.jsx(
|
|
4420
4452
|
"button",
|
|
4421
4453
|
{
|
|
4422
4454
|
onClick: async () => {
|
|
4423
|
-
await
|
|
4455
|
+
await O();
|
|
4424
4456
|
},
|
|
4425
4457
|
className: "bg-blue-300 text-white py-1 px-2 rounded-md hover:bg-blue-500 transition-colors",
|
|
4426
4458
|
children: /* @__PURE__ */ m.jsx(It, { className: "h-4 w-4" })
|
|
@@ -4434,9 +4466,9 @@ const Vn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
|
|
|
4434
4466
|
{
|
|
4435
4467
|
"aria-label": "QR Code for file upload",
|
|
4436
4468
|
onClick: async () => {
|
|
4437
|
-
o && await
|
|
4469
|
+
o && await O();
|
|
4438
4470
|
},
|
|
4439
|
-
className: `bg-white p-2 rounded-2xl border-2 border-dashed ${
|
|
4471
|
+
className: `bg-white p-2 rounded-2xl border-2 border-dashed ${w} flex
|
|
4440
4472
|
border-gray-300 items-center justify-center transition-all duration-300 hover:shadow-lg hover:scale-105`,
|
|
4441
4473
|
children: [
|
|
4442
4474
|
/* @__PURE__ */ m.jsxs("div", { className: "relative inline-block", children: [
|
|
@@ -4451,8 +4483,8 @@ const Vn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
|
|
|
4451
4483
|
s && /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ m.jsx(
|
|
4452
4484
|
"div",
|
|
4453
4485
|
{
|
|
4454
|
-
className: `bg-white ${
|
|
4455
|
-
children: /* @__PURE__ */ m.jsx("span", { className: "text-xs font-bold", children: /* @__PURE__ */ m.jsx(kr, { size: i, isConnected:
|
|
4486
|
+
className: `bg-white ${j} rounded flex items-center justify-center`,
|
|
4487
|
+
children: /* @__PURE__ */ m.jsx("span", { className: "text-xs font-bold", children: /* @__PURE__ */ m.jsx(kr, { size: i, isConnected: ne }) })
|
|
4456
4488
|
}
|
|
4457
4489
|
) }) })
|
|
4458
4490
|
] }),
|
|
@@ -4467,7 +4499,7 @@ const Vn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
|
|
|
4467
4499
|
"button",
|
|
4468
4500
|
{
|
|
4469
4501
|
onClick: async () => {
|
|
4470
|
-
await
|
|
4502
|
+
await O();
|
|
4471
4503
|
},
|
|
4472
4504
|
className: "bg-gray-500 text-white py-2 px-4 rounded-md hover:bg-blue-800 transition-colors flex flex-row items-center",
|
|
4473
4505
|
children: [
|
|
@@ -4477,18 +4509,18 @@ const Vn = ({ files: r }) => /* @__PURE__ */ m.jsx("div", { className: "flex fle
|
|
|
4477
4509
|
]
|
|
4478
4510
|
}
|
|
4479
4511
|
) }),
|
|
4480
|
-
/* @__PURE__ */ m.jsx("div", { className: "flex flex-row justify-center gap-1 flex-wrap", children: a === "grid" ?
|
|
4481
|
-
|
|
4512
|
+
/* @__PURE__ */ m.jsx("div", { className: "flex flex-row justify-center gap-1 flex-wrap", children: a === "grid" ? ee.map((v, C) => /* @__PURE__ */ m.jsx(
|
|
4513
|
+
qn,
|
|
4482
4514
|
{
|
|
4483
|
-
file:
|
|
4515
|
+
file: v,
|
|
4484
4516
|
size: L
|
|
4485
4517
|
},
|
|
4486
|
-
|
|
4487
|
-
)) : /* @__PURE__ */ m.jsx(
|
|
4518
|
+
C
|
|
4519
|
+
)) : /* @__PURE__ */ m.jsx(Yn, { files: ee }) })
|
|
4488
4520
|
] })
|
|
4489
4521
|
] });
|
|
4490
4522
|
};
|
|
4491
4523
|
export {
|
|
4492
|
-
|
|
4524
|
+
Xn as QrCodeGenerator
|
|
4493
4525
|
};
|
|
4494
4526
|
//# sourceMappingURL=qr-code-generator.es.js.map
|