@scanupload/qr-code-generator 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ae, { useState as
|
|
1
|
+
import ae, { useState as te, useEffect as he, forwardRef as zt, createElement as Ge, useRef as me, useCallback as Zt } from "react";
|
|
2
2
|
function er(r) {
|
|
3
3
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
4
4
|
}
|
|
@@ -50,20 +50,20 @@ function rr() {
|
|
|
50
50
|
function r(u) {
|
|
51
51
|
if (u == null) return null;
|
|
52
52
|
if (typeof u == "function")
|
|
53
|
-
return u.$$typeof ===
|
|
53
|
+
return u.$$typeof === Q ? null : u.displayName || u.name || null;
|
|
54
54
|
if (typeof u == "string") return u;
|
|
55
55
|
switch (u) {
|
|
56
|
-
case
|
|
56
|
+
case j:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case B:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case P:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case V:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case Y:
|
|
65
65
|
return "SuspenseList";
|
|
66
|
-
case
|
|
66
|
+
case le:
|
|
67
67
|
return "Activity";
|
|
68
68
|
}
|
|
69
69
|
if (typeof u == "object")
|
|
@@ -72,19 +72,19 @@ function rr() {
|
|
|
72
72
|
), u.$$typeof) {
|
|
73
73
|
case _:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
75
|
+
case L:
|
|
76
76
|
return u.displayName || "Context";
|
|
77
|
-
case
|
|
77
|
+
case D:
|
|
78
78
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
79
|
-
case
|
|
80
|
-
var
|
|
81
|
-
return u = u.displayName, u || (u =
|
|
82
|
-
case
|
|
83
|
-
return
|
|
79
|
+
case v:
|
|
80
|
+
var b = u.render;
|
|
81
|
+
return u = u.displayName, u || (u = b.displayName || b.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
82
|
+
case ee:
|
|
83
|
+
return b = u.displayName || null, b !== null ? b : r(u.type) || "Memo";
|
|
84
84
|
case se:
|
|
85
|
-
|
|
85
|
+
b = u._payload, u = u._init;
|
|
86
86
|
try {
|
|
87
|
-
return r(u(
|
|
87
|
+
return r(u(b));
|
|
88
88
|
} catch {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -96,72 +96,72 @@ function rr() {
|
|
|
96
96
|
function t(u) {
|
|
97
97
|
try {
|
|
98
98
|
e(u);
|
|
99
|
-
var
|
|
99
|
+
var b = !1;
|
|
100
100
|
} catch {
|
|
101
|
-
|
|
101
|
+
b = !0;
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
return
|
|
107
|
-
|
|
103
|
+
if (b) {
|
|
104
|
+
b = console;
|
|
105
|
+
var T = b.error, E = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
106
|
+
return T.call(
|
|
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
|
+
E
|
|
110
110
|
), e(u);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function n(u) {
|
|
114
|
-
if (u ===
|
|
114
|
+
if (u === j) return "<>";
|
|
115
115
|
if (typeof u == "object" && u !== null && u.$$typeof === se)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var b = r(u);
|
|
119
|
+
return b ? "<" + b + ">" : "<...>";
|
|
120
120
|
} catch {
|
|
121
121
|
return "<...>";
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function s() {
|
|
125
|
-
var u =
|
|
125
|
+
var u = M.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 (
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
132
|
+
if (J.call(u, "key")) {
|
|
133
|
+
var b = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
134
|
+
if (b && b.isReactWarning) return !1;
|
|
135
135
|
}
|
|
136
136
|
return u.key !== void 0;
|
|
137
137
|
}
|
|
138
|
-
function a(u,
|
|
139
|
-
function
|
|
140
|
-
|
|
138
|
+
function a(u, b) {
|
|
139
|
+
function T() {
|
|
140
|
+
U || (U = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
|
-
|
|
142
|
+
b
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
get:
|
|
145
|
+
T.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
146
|
+
get: T,
|
|
147
147
|
configurable: !0
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
function c() {
|
|
151
151
|
var u = r(this.type);
|
|
152
|
-
return
|
|
152
|
+
return re[u] || (re[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,
|
|
157
|
-
var
|
|
156
|
+
function l(u, b, T, E, O, R) {
|
|
157
|
+
var k = T.ref;
|
|
158
158
|
return u = {
|
|
159
159
|
$$typeof: y,
|
|
160
160
|
type: u,
|
|
161
|
-
key:
|
|
162
|
-
props:
|
|
163
|
-
_owner:
|
|
164
|
-
}, (
|
|
161
|
+
key: b,
|
|
162
|
+
props: T,
|
|
163
|
+
_owner: E
|
|
164
|
+
}, (k !== void 0 ? k : 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", {
|
|
@@ -178,60 +178,60 @@ function rr() {
|
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
|
-
value:
|
|
181
|
+
value: O
|
|
182
182
|
}), Object.defineProperty(u, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: R
|
|
187
187
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
188
188
|
}
|
|
189
|
-
function h(u,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
for (
|
|
195
|
-
f(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
189
|
+
function h(u, b, T, E, O, R) {
|
|
190
|
+
var k = b.children;
|
|
191
|
+
if (k !== void 0)
|
|
192
|
+
if (E)
|
|
193
|
+
if (Z(k)) {
|
|
194
|
+
for (E = 0; E < k.length; E++)
|
|
195
|
+
f(k[E]);
|
|
196
|
+
Object.freeze && Object.freeze(k);
|
|
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(
|
|
205
|
-
return
|
|
201
|
+
else f(k);
|
|
202
|
+
if (J.call(b, "key")) {
|
|
203
|
+
k = r(u);
|
|
204
|
+
var C = Object.keys(b).filter(function(I) {
|
|
205
|
+
return I !== "key";
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
E = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", p[k + E] || (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
|
+
E,
|
|
215
|
+
k,
|
|
216
216
|
C,
|
|
217
|
-
|
|
218
|
-
), p[
|
|
217
|
+
k
|
|
218
|
+
), p[k + E] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
for (var
|
|
223
|
-
|
|
224
|
-
} else
|
|
225
|
-
return
|
|
226
|
-
|
|
220
|
+
if (k = null, T !== void 0 && (t(T), k = "" + T), i(b) && (t(b.key), k = "" + b.key), "key" in b) {
|
|
221
|
+
T = {};
|
|
222
|
+
for (var x in b)
|
|
223
|
+
x !== "key" && (T[x] = b[x]);
|
|
224
|
+
} else T = b;
|
|
225
|
+
return k && a(
|
|
226
|
+
T,
|
|
227
227
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
228
228
|
), l(
|
|
229
229
|
u,
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
k,
|
|
231
|
+
T,
|
|
232
232
|
s(),
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
O,
|
|
234
|
+
R
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function f(u) {
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function g(u) {
|
|
241
241
|
return typeof u == "object" && u !== null && u.$$typeof === y;
|
|
242
242
|
}
|
|
243
|
-
var S = ae, y = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"),
|
|
243
|
+
var S = ae, y = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), L = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), M = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, Z = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
S = {
|
|
@@ -248,29 +248,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return u();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var U, re = {}, G = S.react_stack_bottom_frame.bind(
|
|
252
252
|
S,
|
|
253
253
|
o
|
|
254
|
-
)(), ue =
|
|
255
|
-
ye.Fragment =
|
|
256
|
-
var
|
|
254
|
+
)(), ue = X(n(o)), p = {};
|
|
255
|
+
ye.Fragment = j, ye.jsx = function(u, b, T) {
|
|
256
|
+
var E = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return h(
|
|
258
258
|
u,
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
b,
|
|
260
|
+
T,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
E ? Error("react-stack-top-frame") : G,
|
|
263
|
+
E ? X(n(u)) : ue
|
|
264
264
|
);
|
|
265
|
-
}, ye.jsxs = function(u,
|
|
266
|
-
var
|
|
265
|
+
}, ye.jsxs = function(u, b, T) {
|
|
266
|
+
var E = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return h(
|
|
268
268
|
u,
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
b,
|
|
270
|
+
T,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
E ? Error("react-stack-top-frame") : G,
|
|
273
|
+
E ? X(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
|
|
282
|
+
var m = nr(), pe = {}, Ee = { exports: {} }, xe = { exports: {} }, N = {};
|
|
283
283
|
/** @license React v16.13.1
|
|
284
284
|
* react-is.production.min.js
|
|
285
285
|
*
|
|
@@ -292,67 +292,67 @@ 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, S = r ? Symbol.for("react.memo") : 60115, y = r ? Symbol.for("react.lazy") : 60116, _ = r ? Symbol.for("react.block") : 60121,
|
|
296
|
-
function
|
|
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, S = r ? Symbol.for("react.memo") : 60115, y = r ? Symbol.for("react.lazy") : 60116, _ = r ? Symbol.for("react.block") : 60121, j = r ? Symbol.for("react.fundamental") : 60117, P = r ? Symbol.for("react.responder") : 60118, B = r ? Symbol.for("react.scope") : 60119;
|
|
296
|
+
function D(v) {
|
|
297
|
+
if (typeof v == "object" && v !== null) {
|
|
298
|
+
var V = v.$$typeof;
|
|
299
|
+
switch (V) {
|
|
300
300
|
case e:
|
|
301
|
-
switch (
|
|
301
|
+
switch (v = v.type, v) {
|
|
302
302
|
case c:
|
|
303
303
|
case l:
|
|
304
304
|
case n:
|
|
305
305
|
case o:
|
|
306
306
|
case s:
|
|
307
307
|
case f:
|
|
308
|
-
return
|
|
308
|
+
return v;
|
|
309
309
|
default:
|
|
310
|
-
switch (
|
|
310
|
+
switch (v = v && v.$$typeof, v) {
|
|
311
311
|
case a:
|
|
312
312
|
case h:
|
|
313
313
|
case y:
|
|
314
314
|
case S:
|
|
315
315
|
case i:
|
|
316
|
-
return
|
|
316
|
+
return v;
|
|
317
317
|
default:
|
|
318
|
-
return
|
|
318
|
+
return V;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
case t:
|
|
322
|
-
return
|
|
322
|
+
return V;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
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 = y, N.Memo = S, N.Portal = t, N.Profiler = o, N.StrictMode = s, N.Suspense = f, N.isAsyncMode = function(
|
|
330
|
-
return
|
|
331
|
-
}, N.isConcurrentMode =
|
|
332
|
-
return
|
|
333
|
-
}, N.isContextProvider = function(
|
|
334
|
-
return
|
|
335
|
-
}, N.isElement = function(
|
|
336
|
-
return typeof
|
|
337
|
-
}, N.isForwardRef = function(
|
|
338
|
-
return
|
|
339
|
-
}, N.isFragment = function(
|
|
340
|
-
return
|
|
341
|
-
}, N.isLazy = function(
|
|
342
|
-
return
|
|
343
|
-
}, N.isMemo = function(
|
|
344
|
-
return
|
|
345
|
-
}, N.isPortal = function(
|
|
346
|
-
return
|
|
347
|
-
}, N.isProfiler = function(
|
|
348
|
-
return
|
|
349
|
-
}, N.isStrictMode = function(
|
|
350
|
-
return
|
|
351
|
-
}, N.isSuspense = function(
|
|
352
|
-
return
|
|
353
|
-
}, N.isValidElementType = function(
|
|
354
|
-
return typeof
|
|
355
|
-
}, N.typeOf =
|
|
326
|
+
function L(v) {
|
|
327
|
+
return D(v) === 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 = y, N.Memo = S, N.Portal = t, N.Profiler = o, N.StrictMode = s, N.Suspense = f, N.isAsyncMode = function(v) {
|
|
330
|
+
return L(v) || D(v) === c;
|
|
331
|
+
}, N.isConcurrentMode = L, N.isContextConsumer = function(v) {
|
|
332
|
+
return D(v) === a;
|
|
333
|
+
}, N.isContextProvider = function(v) {
|
|
334
|
+
return D(v) === i;
|
|
335
|
+
}, N.isElement = function(v) {
|
|
336
|
+
return typeof v == "object" && v !== null && v.$$typeof === e;
|
|
337
|
+
}, N.isForwardRef = function(v) {
|
|
338
|
+
return D(v) === h;
|
|
339
|
+
}, N.isFragment = function(v) {
|
|
340
|
+
return D(v) === n;
|
|
341
|
+
}, N.isLazy = function(v) {
|
|
342
|
+
return D(v) === y;
|
|
343
|
+
}, N.isMemo = function(v) {
|
|
344
|
+
return D(v) === S;
|
|
345
|
+
}, N.isPortal = function(v) {
|
|
346
|
+
return D(v) === t;
|
|
347
|
+
}, N.isProfiler = function(v) {
|
|
348
|
+
return D(v) === o;
|
|
349
|
+
}, N.isStrictMode = function(v) {
|
|
350
|
+
return D(v) === s;
|
|
351
|
+
}, N.isSuspense = function(v) {
|
|
352
|
+
return D(v) === f;
|
|
353
|
+
}, N.isValidElementType = function(v) {
|
|
354
|
+
return typeof v == "string" || typeof v == "function" || v === n || v === l || v === o || v === s || v === f || v === g || typeof v == "object" && v !== null && (v.$$typeof === y || v.$$typeof === S || v.$$typeof === i || v.$$typeof === a || v.$$typeof === h || v.$$typeof === j || v.$$typeof === P || v.$$typeof === B || v.$$typeof === _);
|
|
355
|
+
}, N.typeOf = D, N;
|
|
356
356
|
}
|
|
357
357
|
var $ = {};
|
|
358
358
|
/** @license React v16.13.1
|
|
@@ -366,17 +366,17 @@ 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, S = r ? Symbol.for("react.memo") : 60115, y = r ? Symbol.for("react.lazy") : 60116, _ = r ? Symbol.for("react.block") : 60121,
|
|
370
|
-
function
|
|
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, S = r ? Symbol.for("react.memo") : 60115, y = r ? Symbol.for("react.lazy") : 60116, _ = r ? Symbol.for("react.block") : 60121, j = r ? Symbol.for("react.fundamental") : 60117, P = r ? Symbol.for("react.responder") : 60118, B = r ? Symbol.for("react.scope") : 60119;
|
|
370
|
+
function D(w) {
|
|
371
|
+
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
372
|
+
w === n || w === l || w === o || w === s || w === f || w === g || typeof w == "object" && w !== null && (w.$$typeof === y || w.$$typeof === S || w.$$typeof === i || w.$$typeof === a || w.$$typeof === h || w.$$typeof === j || w.$$typeof === P || w.$$typeof === B || w.$$typeof === _);
|
|
373
|
+
}
|
|
374
|
+
function L(w) {
|
|
375
|
+
if (typeof w == "object" && w !== null) {
|
|
376
|
+
var ce = w.$$typeof;
|
|
377
377
|
switch (ce) {
|
|
378
378
|
case e:
|
|
379
|
-
var Se =
|
|
379
|
+
var Se = w.type;
|
|
380
380
|
switch (Se) {
|
|
381
381
|
case c:
|
|
382
382
|
case l:
|
|
@@ -403,47 +403,47 @@ function sr() {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
var
|
|
407
|
-
function ue(
|
|
408
|
-
return
|
|
406
|
+
var v = c, V = l, Y = a, ee = i, se = e, le = h, Q = n, M = y, J = S, Z = t, X = o, U = s, re = f, G = !1;
|
|
407
|
+
function ue(w) {
|
|
408
|
+
return G || (G = !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.")), p(w) || L(w) === c;
|
|
409
409
|
}
|
|
410
|
-
function p(
|
|
411
|
-
return
|
|
410
|
+
function p(w) {
|
|
411
|
+
return L(w) === l;
|
|
412
412
|
}
|
|
413
|
-
function u(
|
|
414
|
-
return
|
|
413
|
+
function u(w) {
|
|
414
|
+
return L(w) === a;
|
|
415
415
|
}
|
|
416
|
-
function w
|
|
417
|
-
return
|
|
416
|
+
function b(w) {
|
|
417
|
+
return L(w) === i;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
return typeof
|
|
419
|
+
function T(w) {
|
|
420
|
+
return typeof w == "object" && w !== null && w.$$typeof === e;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function E(w) {
|
|
423
|
+
return L(w) === h;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
return
|
|
425
|
+
function O(w) {
|
|
426
|
+
return L(w) === n;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
return
|
|
428
|
+
function R(w) {
|
|
429
|
+
return L(w) === y;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return
|
|
431
|
+
function k(w) {
|
|
432
|
+
return L(w) === S;
|
|
433
433
|
}
|
|
434
|
-
function C(
|
|
435
|
-
return
|
|
434
|
+
function C(w) {
|
|
435
|
+
return L(w) === t;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
437
|
+
function x(w) {
|
|
438
|
+
return L(w) === o;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
return
|
|
440
|
+
function I(w) {
|
|
441
|
+
return L(w) === s;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
return
|
|
443
|
+
function W(w) {
|
|
444
|
+
return L(w) === f;
|
|
445
445
|
}
|
|
446
|
-
$.AsyncMode =
|
|
446
|
+
$.AsyncMode = v, $.ConcurrentMode = V, $.ContextConsumer = Y, $.ContextProvider = ee, $.Element = se, $.ForwardRef = le, $.Fragment = Q, $.Lazy = M, $.Memo = J, $.Portal = Z, $.Profiler = X, $.StrictMode = U, $.Suspense = re, $.isAsyncMode = ue, $.isConcurrentMode = p, $.isContextConsumer = u, $.isContextProvider = b, $.isElement = T, $.isForwardRef = E, $.isFragment = O, $.isLazy = R, $.isMemo = k, $.isPortal = C, $.isProfiler = x, $.isStrictMode = I, $.isSuspense = W, $.isValidElementType = D, $.typeOf = L;
|
|
447
447
|
})()), $;
|
|
448
448
|
}
|
|
449
449
|
var ct;
|
|
@@ -455,9 +455,9 @@ object-assign
|
|
|
455
455
|
(c) Sindre Sorhus
|
|
456
456
|
@license MIT
|
|
457
457
|
*/
|
|
458
|
-
var
|
|
458
|
+
var De, lt;
|
|
459
459
|
function ir() {
|
|
460
|
-
if (lt) return
|
|
460
|
+
if (lt) return De;
|
|
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 De = 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
|
+
}, De;
|
|
503
503
|
}
|
|
504
|
-
var
|
|
505
|
-
function
|
|
506
|
-
if (ut) return
|
|
504
|
+
var Me, ut;
|
|
505
|
+
function Ke() {
|
|
506
|
+
if (ut) return Me;
|
|
507
507
|
ut = 1;
|
|
508
508
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
509
|
-
return
|
|
509
|
+
return Me = r, Me;
|
|
510
510
|
}
|
|
511
|
-
var
|
|
511
|
+
var Ne, ht;
|
|
512
512
|
function Ut() {
|
|
513
|
-
return ht || (ht = 1,
|
|
513
|
+
return ht || (ht = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
|
|
514
514
|
}
|
|
515
|
-
var
|
|
515
|
+
var $e, ft;
|
|
516
516
|
function ar() {
|
|
517
|
-
if (ft) return
|
|
517
|
+
if (ft) return $e;
|
|
518
518
|
ft = 1;
|
|
519
519
|
var r = function() {
|
|
520
520
|
};
|
|
521
521
|
if (process.env.NODE_ENV !== "production") {
|
|
522
|
-
var e = /* @__PURE__ */
|
|
522
|
+
var e = /* @__PURE__ */ Ke(), t = {}, n = /* @__PURE__ */ Ut();
|
|
523
523
|
r = function(o) {
|
|
524
524
|
var i = "Warning: " + o;
|
|
525
525
|
typeof console < "u" && console.error(i);
|
|
@@ -559,13 +559,13 @@ function ar() {
|
|
|
559
559
|
}
|
|
560
560
|
return s.resetWarningCache = function() {
|
|
561
561
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
562
|
-
},
|
|
562
|
+
}, $e = s, $e;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
564
|
+
var Le, dt;
|
|
565
565
|
function cr() {
|
|
566
|
-
if (dt) return
|
|
566
|
+
if (dt) return Le;
|
|
567
567
|
dt = 1;
|
|
568
|
-
var r = Ht(), e = ir(), t = /* @__PURE__ */
|
|
568
|
+
var r = Ht(), e = ir(), t = /* @__PURE__ */ Ke(), n = /* @__PURE__ */ Ut(), s = /* @__PURE__ */ ar(), o = function() {
|
|
569
569
|
};
|
|
570
570
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
571
571
|
var c = "Warning: " + a;
|
|
@@ -578,7 +578,7 @@ function cr() {
|
|
|
578
578
|
function i() {
|
|
579
579
|
return null;
|
|
580
580
|
}
|
|
581
|
-
return
|
|
581
|
+
return Le = function(a, c) {
|
|
582
582
|
var l = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
583
583
|
function f(p) {
|
|
584
584
|
var u = p && (l && p[l] || p[h]);
|
|
@@ -586,25 +586,25 @@ function cr() {
|
|
|
586
586
|
return u;
|
|
587
587
|
}
|
|
588
588
|
var g = "<<anonymous>>", S = {
|
|
589
|
-
array:
|
|
590
|
-
bigint:
|
|
591
|
-
bool:
|
|
592
|
-
func:
|
|
593
|
-
number:
|
|
594
|
-
object:
|
|
595
|
-
string:
|
|
596
|
-
symbol:
|
|
597
|
-
any:
|
|
598
|
-
arrayOf:
|
|
599
|
-
element:
|
|
600
|
-
elementType:
|
|
601
|
-
instanceOf:
|
|
602
|
-
node:
|
|
603
|
-
objectOf:
|
|
604
|
-
oneOf:
|
|
589
|
+
array: P("array"),
|
|
590
|
+
bigint: P("bigint"),
|
|
591
|
+
bool: P("boolean"),
|
|
592
|
+
func: P("function"),
|
|
593
|
+
number: P("number"),
|
|
594
|
+
object: P("object"),
|
|
595
|
+
string: P("string"),
|
|
596
|
+
symbol: P("symbol"),
|
|
597
|
+
any: B(),
|
|
598
|
+
arrayOf: D,
|
|
599
|
+
element: L(),
|
|
600
|
+
elementType: v(),
|
|
601
|
+
instanceOf: V,
|
|
602
|
+
node: le(),
|
|
603
|
+
objectOf: ee,
|
|
604
|
+
oneOf: Y,
|
|
605
605
|
oneOfType: se,
|
|
606
|
-
shape:
|
|
607
|
-
exact:
|
|
606
|
+
shape: M,
|
|
607
|
+
exact: J
|
|
608
608
|
};
|
|
609
609
|
function y(p, u) {
|
|
610
610
|
return p === u ? p !== 0 || 1 / p === 1 / u : p !== p && u !== u;
|
|
@@ -613,204 +613,204 @@ function cr() {
|
|
|
613
613
|
this.message = p, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
614
614
|
}
|
|
615
615
|
_.prototype = Error.prototype;
|
|
616
|
-
function
|
|
616
|
+
function j(p) {
|
|
617
617
|
if (process.env.NODE_ENV !== "production")
|
|
618
|
-
var u = {},
|
|
619
|
-
function
|
|
620
|
-
if (C = C || g,
|
|
618
|
+
var u = {}, b = 0;
|
|
619
|
+
function T(O, R, k, C, x, I, W) {
|
|
620
|
+
if (C = C || g, I = I || k, W !== t) {
|
|
621
621
|
if (c) {
|
|
622
|
-
var
|
|
622
|
+
var w = 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 w.name = "Invariant Violation", w;
|
|
626
626
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
627
|
-
var ce = C + ":" +
|
|
627
|
+
var ce = C + ":" + k;
|
|
628
628
|
!u[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
629
|
-
|
|
630
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
631
|
-
), u[ce] = !0,
|
|
629
|
+
b < 3 && (o(
|
|
630
|
+
"You are manually calling a React.PropTypes validation function for the `" + I + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
631
|
+
), u[ce] = !0, b++);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return
|
|
634
|
+
return R[k] == null ? O ? R[k] === null ? new _("The " + x + " `" + I + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new _("The " + x + " `" + I + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : p(R, k, C, x, I);
|
|
635
635
|
}
|
|
636
|
-
var
|
|
637
|
-
return
|
|
638
|
-
}
|
|
639
|
-
function
|
|
640
|
-
function u(
|
|
641
|
-
var C =
|
|
642
|
-
if (
|
|
643
|
-
var
|
|
636
|
+
var E = T.bind(null, !1);
|
|
637
|
+
return E.isRequired = T.bind(null, !0), E;
|
|
638
|
+
}
|
|
639
|
+
function P(p) {
|
|
640
|
+
function u(b, T, E, O, R, k) {
|
|
641
|
+
var C = b[T], x = U(C);
|
|
642
|
+
if (x !== p) {
|
|
643
|
+
var I = re(C);
|
|
644
644
|
return new _(
|
|
645
|
-
"Invalid " +
|
|
645
|
+
"Invalid " + O + " `" + R + "` of type " + ("`" + I + "` supplied to `" + E + "`, expected ") + ("`" + p + "`."),
|
|
646
646
|
{ expectedType: p }
|
|
647
647
|
);
|
|
648
648
|
}
|
|
649
649
|
return null;
|
|
650
650
|
}
|
|
651
|
-
return
|
|
651
|
+
return j(u);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
653
|
+
function B() {
|
|
654
|
+
return j(i);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
function u(
|
|
656
|
+
function D(p) {
|
|
657
|
+
function u(b, T, E, O, R) {
|
|
658
658
|
if (typeof p != "function")
|
|
659
|
-
return new _("Property `" +
|
|
660
|
-
var
|
|
661
|
-
if (!Array.isArray(
|
|
662
|
-
var C =
|
|
663
|
-
return new _("Invalid " +
|
|
659
|
+
return new _("Property `" + R + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
660
|
+
var k = b[T];
|
|
661
|
+
if (!Array.isArray(k)) {
|
|
662
|
+
var C = U(k);
|
|
663
|
+
return new _("Invalid " + O + " `" + R + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected an array."));
|
|
664
664
|
}
|
|
665
|
-
for (var
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
665
|
+
for (var x = 0; x < k.length; x++) {
|
|
666
|
+
var I = p(k, x, E, O, R + "[" + x + "]", t);
|
|
667
|
+
if (I instanceof Error)
|
|
668
|
+
return I;
|
|
669
669
|
}
|
|
670
670
|
return null;
|
|
671
671
|
}
|
|
672
|
-
return
|
|
673
|
-
}
|
|
674
|
-
function
|
|
675
|
-
function p(u,
|
|
676
|
-
var
|
|
677
|
-
if (!a(
|
|
678
|
-
var
|
|
679
|
-
return new _("Invalid " +
|
|
672
|
+
return j(u);
|
|
673
|
+
}
|
|
674
|
+
function L() {
|
|
675
|
+
function p(u, b, T, E, O) {
|
|
676
|
+
var R = u[b];
|
|
677
|
+
if (!a(R)) {
|
|
678
|
+
var k = U(R);
|
|
679
|
+
return new _("Invalid " + E + " `" + O + "` of type " + ("`" + k + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
680
680
|
}
|
|
681
681
|
return null;
|
|
682
682
|
}
|
|
683
|
-
return
|
|
684
|
-
}
|
|
685
|
-
function
|
|
686
|
-
function p(u,
|
|
687
|
-
var
|
|
688
|
-
if (!r.isValidElementType(
|
|
689
|
-
var
|
|
690
|
-
return new _("Invalid " +
|
|
683
|
+
return j(p);
|
|
684
|
+
}
|
|
685
|
+
function v() {
|
|
686
|
+
function p(u, b, T, E, O) {
|
|
687
|
+
var R = u[b];
|
|
688
|
+
if (!r.isValidElementType(R)) {
|
|
689
|
+
var k = U(R);
|
|
690
|
+
return new _("Invalid " + E + " `" + O + "` of type " + ("`" + k + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
691
691
|
}
|
|
692
692
|
return null;
|
|
693
693
|
}
|
|
694
|
-
return
|
|
694
|
+
return j(p);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
function u(
|
|
698
|
-
if (!(
|
|
699
|
-
var
|
|
700
|
-
return new _("Invalid " +
|
|
696
|
+
function V(p) {
|
|
697
|
+
function u(b, T, E, O, R) {
|
|
698
|
+
if (!(b[T] instanceof p)) {
|
|
699
|
+
var k = p.name || g, C = ue(b[T]);
|
|
700
|
+
return new _("Invalid " + O + " `" + R + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected ") + ("instance of `" + k + "`."));
|
|
701
701
|
}
|
|
702
702
|
return null;
|
|
703
703
|
}
|
|
704
|
-
return
|
|
704
|
+
return j(u);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Y(p) {
|
|
707
707
|
if (!Array.isArray(p))
|
|
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(
|
|
712
|
-
for (var
|
|
713
|
-
if (y(
|
|
711
|
+
function u(b, T, E, O, R) {
|
|
712
|
+
for (var k = b[T], C = 0; C < p.length; C++)
|
|
713
|
+
if (y(k, p[C]))
|
|
714
714
|
return null;
|
|
715
|
-
var
|
|
716
|
-
var ce =
|
|
717
|
-
return ce === "symbol" ? String(
|
|
715
|
+
var x = JSON.stringify(p, function(W, w) {
|
|
716
|
+
var ce = re(w);
|
|
717
|
+
return ce === "symbol" ? String(w) : w;
|
|
718
718
|
});
|
|
719
|
-
return new _("Invalid " +
|
|
719
|
+
return new _("Invalid " + O + " `" + R + "` of value `" + String(k) + "` " + ("supplied to `" + E + "`, expected one of " + x + "."));
|
|
720
720
|
}
|
|
721
|
-
return
|
|
721
|
+
return j(u);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
function u(
|
|
723
|
+
function ee(p) {
|
|
724
|
+
function u(b, T, E, O, R) {
|
|
725
725
|
if (typeof p != "function")
|
|
726
|
-
return new _("Property `" +
|
|
727
|
-
var
|
|
726
|
+
return new _("Property `" + R + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
727
|
+
var k = b[T], C = U(k);
|
|
728
728
|
if (C !== "object")
|
|
729
|
-
return new _("Invalid " +
|
|
730
|
-
for (var
|
|
731
|
-
if (n(
|
|
732
|
-
var
|
|
733
|
-
if (
|
|
734
|
-
return
|
|
729
|
+
return new _("Invalid " + O + " `" + R + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected an object."));
|
|
730
|
+
for (var x in k)
|
|
731
|
+
if (n(k, x)) {
|
|
732
|
+
var I = p(k, x, E, O, R + "." + x, t);
|
|
733
|
+
if (I instanceof Error)
|
|
734
|
+
return I;
|
|
735
735
|
}
|
|
736
736
|
return null;
|
|
737
737
|
}
|
|
738
|
-
return
|
|
738
|
+
return j(u);
|
|
739
739
|
}
|
|
740
740
|
function se(p) {
|
|
741
741
|
if (!Array.isArray(p))
|
|
742
742
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
743
743
|
for (var u = 0; u < p.length; u++) {
|
|
744
|
-
var
|
|
745
|
-
if (typeof
|
|
744
|
+
var b = p[u];
|
|
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 " + G(b) + " at index " + u + "."
|
|
748
748
|
), i;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
for (var
|
|
752
|
-
var
|
|
753
|
-
if (
|
|
750
|
+
function T(E, O, R, k, C) {
|
|
751
|
+
for (var x = [], I = 0; I < p.length; I++) {
|
|
752
|
+
var W = p[I], w = W(E, O, R, k, C, t);
|
|
753
|
+
if (w == null)
|
|
754
754
|
return null;
|
|
755
|
-
|
|
755
|
+
w.data && n(w.data, "expectedType") && x.push(w.data.expectedType);
|
|
756
756
|
}
|
|
757
|
-
var ce =
|
|
758
|
-
return new _("Invalid " +
|
|
757
|
+
var ce = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
|
|
758
|
+
return new _("Invalid " + k + " `" + C + "` supplied to " + ("`" + R + "`" + ce + "."));
|
|
759
759
|
}
|
|
760
|
-
return
|
|
760
|
+
return j(T);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
function p(u,
|
|
764
|
-
return
|
|
762
|
+
function le() {
|
|
763
|
+
function p(u, b, T, E, O) {
|
|
764
|
+
return Z(u[b]) ? null : new _("Invalid " + E + " `" + O + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
765
765
|
}
|
|
766
|
-
return
|
|
766
|
+
return j(p);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Q(p, u, b, T, E) {
|
|
769
769
|
return new _(
|
|
770
|
-
(p || "React class") + ": " + u + " type `" +
|
|
770
|
+
(p || "React class") + ": " + u + " type `" + b + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
771
771
|
);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
774
|
-
function u(
|
|
775
|
-
var
|
|
773
|
+
function M(p) {
|
|
774
|
+
function u(b, T, E, O, R) {
|
|
775
|
+
var k = b[T], C = U(k);
|
|
776
776
|
if (C !== "object")
|
|
777
|
-
return new _("Invalid " +
|
|
778
|
-
for (var
|
|
779
|
-
var
|
|
780
|
-
if (typeof
|
|
781
|
-
return
|
|
782
|
-
var
|
|
783
|
-
if (
|
|
784
|
-
return
|
|
777
|
+
return new _("Invalid " + O + " `" + R + "` of type `" + C + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
778
|
+
for (var x in p) {
|
|
779
|
+
var I = p[x];
|
|
780
|
+
if (typeof I != "function")
|
|
781
|
+
return Q(E, O, R, x, re(I));
|
|
782
|
+
var W = I(k, x, E, O, R + "." + x, t);
|
|
783
|
+
if (W)
|
|
784
|
+
return W;
|
|
785
785
|
}
|
|
786
786
|
return null;
|
|
787
787
|
}
|
|
788
|
-
return
|
|
788
|
+
return j(u);
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
function u(
|
|
792
|
-
var
|
|
790
|
+
function J(p) {
|
|
791
|
+
function u(b, T, E, O, R) {
|
|
792
|
+
var k = b[T], C = U(k);
|
|
793
793
|
if (C !== "object")
|
|
794
|
-
return new _("Invalid " +
|
|
795
|
-
var
|
|
796
|
-
for (var
|
|
797
|
-
var
|
|
798
|
-
if (n(p,
|
|
799
|
-
return
|
|
800
|
-
if (!
|
|
794
|
+
return new _("Invalid " + O + " `" + R + "` of type `" + C + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
795
|
+
var x = e({}, b[T], p);
|
|
796
|
+
for (var I in x) {
|
|
797
|
+
var W = p[I];
|
|
798
|
+
if (n(p, I) && typeof W != "function")
|
|
799
|
+
return Q(E, O, R, I, re(W));
|
|
800
|
+
if (!W)
|
|
801
801
|
return new _(
|
|
802
|
-
"Invalid " +
|
|
802
|
+
"Invalid " + O + " `" + R + "` key `" + I + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(b[T], null, " ") + `
|
|
803
803
|
Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
804
804
|
);
|
|
805
|
-
var
|
|
806
|
-
if (
|
|
807
|
-
return
|
|
805
|
+
var w = W(k, I, E, O, R + "." + I, t);
|
|
806
|
+
if (w)
|
|
807
|
+
return w;
|
|
808
808
|
}
|
|
809
809
|
return null;
|
|
810
810
|
}
|
|
811
|
-
return
|
|
811
|
+
return j(u);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Z(p) {
|
|
814
814
|
switch (typeof p) {
|
|
815
815
|
case "number":
|
|
816
816
|
case "string":
|
|
@@ -820,20 +820,20 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
820
820
|
return !p;
|
|
821
821
|
case "object":
|
|
822
822
|
if (Array.isArray(p))
|
|
823
|
-
return p.every(
|
|
823
|
+
return p.every(Z);
|
|
824
824
|
if (p === null || a(p))
|
|
825
825
|
return !0;
|
|
826
826
|
var u = f(p);
|
|
827
827
|
if (u) {
|
|
828
|
-
var
|
|
828
|
+
var b = u.call(p), T;
|
|
829
829
|
if (u !== p.entries) {
|
|
830
|
-
for (; !(
|
|
831
|
-
if (!
|
|
830
|
+
for (; !(T = b.next()).done; )
|
|
831
|
+
if (!Z(T.value))
|
|
832
832
|
return !1;
|
|
833
833
|
} else
|
|
834
|
-
for (; !(
|
|
835
|
-
var
|
|
836
|
-
if (
|
|
834
|
+
for (; !(T = b.next()).done; ) {
|
|
835
|
+
var E = T.value;
|
|
836
|
+
if (E && !Z(E[1]))
|
|
837
837
|
return !1;
|
|
838
838
|
}
|
|
839
839
|
} else
|
|
@@ -843,17 +843,17 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
843
843
|
return !1;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function X(p, u) {
|
|
847
847
|
return p === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function U(p) {
|
|
850
850
|
var u = typeof p;
|
|
851
|
-
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" :
|
|
851
|
+
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : X(u, p) ? "symbol" : u;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function re(p) {
|
|
854
854
|
if (typeof p > "u" || p === null)
|
|
855
855
|
return "" + p;
|
|
856
|
-
var u =
|
|
856
|
+
var u = U(p);
|
|
857
857
|
if (u === "object") {
|
|
858
858
|
if (p instanceof Date)
|
|
859
859
|
return "date";
|
|
@@ -862,8 +862,8 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
862
862
|
}
|
|
863
863
|
return u;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
var u =
|
|
865
|
+
function G(p) {
|
|
866
|
+
var u = re(p);
|
|
867
867
|
switch (u) {
|
|
868
868
|
case "array":
|
|
869
869
|
case "object":
|
|
@@ -880,18 +880,18 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
880
880
|
return !p.constructor || !p.constructor.name ? g : p.constructor.name;
|
|
881
881
|
}
|
|
882
882
|
return S.checkPropTypes = s, S.resetWarningCache = s.resetWarningCache, S.PropTypes = S, S;
|
|
883
|
-
},
|
|
883
|
+
}, Le;
|
|
884
884
|
}
|
|
885
|
-
var
|
|
885
|
+
var Be, gt;
|
|
886
886
|
function lr() {
|
|
887
|
-
if (gt) return
|
|
887
|
+
if (gt) return Be;
|
|
888
888
|
gt = 1;
|
|
889
|
-
var r = /* @__PURE__ */
|
|
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, Be = function() {
|
|
895
895
|
function n(i, a, c, l, h, f) {
|
|
896
896
|
if (f !== r) {
|
|
897
897
|
var g = new Error(
|
|
@@ -928,7 +928,7 @@ function lr() {
|
|
|
928
928
|
resetWarningCache: e
|
|
929
929
|
};
|
|
930
930
|
return o.PropTypes = o, o;
|
|
931
|
-
},
|
|
931
|
+
}, Be;
|
|
932
932
|
}
|
|
933
933
|
var pt;
|
|
934
934
|
function Wt() {
|
|
@@ -940,27 +940,27 @@ function Wt() {
|
|
|
940
940
|
Ee.exports = /* @__PURE__ */ lr()();
|
|
941
941
|
return Ee.exports;
|
|
942
942
|
}
|
|
943
|
-
var
|
|
943
|
+
var ze, _t;
|
|
944
944
|
function Ft() {
|
|
945
|
-
return _t || (_t = 1,
|
|
945
|
+
return _t || (_t = 1, ze = {
|
|
946
946
|
L: 1,
|
|
947
947
|
M: 0,
|
|
948
948
|
Q: 3,
|
|
949
949
|
H: 2
|
|
950
|
-
}),
|
|
950
|
+
}), ze;
|
|
951
951
|
}
|
|
952
|
-
var
|
|
952
|
+
var He, mt;
|
|
953
953
|
function qt() {
|
|
954
|
-
return mt || (mt = 1,
|
|
954
|
+
return mt || (mt = 1, He = {
|
|
955
955
|
MODE_NUMBER: 1,
|
|
956
956
|
MODE_ALPHA_NUM: 2,
|
|
957
957
|
MODE_8BIT_BYTE: 4,
|
|
958
958
|
MODE_KANJI: 8
|
|
959
|
-
}),
|
|
959
|
+
}), He;
|
|
960
960
|
}
|
|
961
|
-
var
|
|
961
|
+
var Ue, vt;
|
|
962
962
|
function ur() {
|
|
963
|
-
if (vt) return
|
|
963
|
+
if (vt) return Ue;
|
|
964
964
|
vt = 1;
|
|
965
965
|
var r = qt();
|
|
966
966
|
function e(t) {
|
|
@@ -974,11 +974,11 @@ function ur() {
|
|
|
974
974
|
for (var n = 0; n < this.data.length; n++)
|
|
975
975
|
t.put(this.data.charCodeAt(n), 8);
|
|
976
976
|
}
|
|
977
|
-
},
|
|
977
|
+
}, Ue = e, Ue;
|
|
978
978
|
}
|
|
979
|
-
var
|
|
979
|
+
var We, yt;
|
|
980
980
|
function hr() {
|
|
981
|
-
if (yt) return
|
|
981
|
+
if (yt) return We;
|
|
982
982
|
yt = 1;
|
|
983
983
|
var r = Ft();
|
|
984
984
|
function e(t, n) {
|
|
@@ -1210,11 +1210,11 @@ function hr() {
|
|
|
1210
1210
|
default:
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
|
-
},
|
|
1213
|
+
}, We = e, We;
|
|
1214
1214
|
}
|
|
1215
|
-
var
|
|
1215
|
+
var Fe, bt;
|
|
1216
1216
|
function fr() {
|
|
1217
|
-
if (bt) return
|
|
1217
|
+
if (bt) return Fe;
|
|
1218
1218
|
bt = 1;
|
|
1219
1219
|
function r() {
|
|
1220
1220
|
this.buffer = new Array(), this.length = 0;
|
|
@@ -1235,11 +1235,11 @@ 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
|
+
}, Fe = r, Fe;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var qe, wt;
|
|
1241
1241
|
function Vt() {
|
|
1242
|
-
if (wt) return
|
|
1242
|
+
if (wt) return qe;
|
|
1243
1243
|
wt = 1;
|
|
1244
1244
|
for (var r = {
|
|
1245
1245
|
glog: function(t) {
|
|
@@ -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 qe = r, qe;
|
|
1266
1266
|
}
|
|
1267
|
-
var
|
|
1267
|
+
var Ve, St;
|
|
1268
1268
|
function Yt() {
|
|
1269
|
-
if (St) return
|
|
1269
|
+
if (St) return Ve;
|
|
1270
1270
|
St = 1;
|
|
1271
1271
|
var r = Vt();
|
|
1272
1272
|
function e(t, n) {
|
|
@@ -1300,11 +1300,11 @@ 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
|
+
}, Ve = e, Ve;
|
|
1304
1304
|
}
|
|
1305
|
-
var
|
|
1305
|
+
var Ye, Ct;
|
|
1306
1306
|
function dr() {
|
|
1307
|
-
if (Ct) return
|
|
1307
|
+
if (Ct) return Ye;
|
|
1308
1308
|
Ct = 1;
|
|
1309
1309
|
var r = qt(), e = Yt(), t = Vt(), n = {
|
|
1310
1310
|
PATTERN000: 0,
|
|
@@ -1472,15 +1472,15 @@ function dr() {
|
|
|
1472
1472
|
for (var _ = 0, l = 0; l < i; l++)
|
|
1473
1473
|
for (var c = 0; c < i; c++)
|
|
1474
1474
|
o.isDark(c, l) && _++;
|
|
1475
|
-
var
|
|
1476
|
-
return a +=
|
|
1475
|
+
var j = Math.abs(100 * _ / i / i - 50) / 5;
|
|
1476
|
+
return a += j * 10, a;
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
return
|
|
1479
|
+
return Ye = s, Ye;
|
|
1480
1480
|
}
|
|
1481
|
-
var
|
|
1481
|
+
var Qe, Et;
|
|
1482
1482
|
function gr() {
|
|
1483
|
-
if (Et) return
|
|
1483
|
+
if (Et) return Qe;
|
|
1484
1484
|
Et = 1;
|
|
1485
1485
|
var r = ur(), e = hr(), t = fr(), n = dr(), s = Yt();
|
|
1486
1486
|
function o(a, c) {
|
|
@@ -1537,8 +1537,8 @@ function gr() {
|
|
|
1537
1537
|
this.make();
|
|
1538
1538
|
for (var g = 0; g < this.modules.length; g++)
|
|
1539
1539
|
for (var S = g * f, y = 0; y < this.modules[g].length; y++) {
|
|
1540
|
-
var _ = y * f,
|
|
1541
|
-
|
|
1540
|
+
var _ = y * f, j = this.modules[g][y];
|
|
1541
|
+
j && (h.beginFill(0, 100), h.moveTo(_, S), h.lineTo(_ + f, S), h.lineTo(_ + f, S + f), h.lineTo(_, S + f), h.endFill());
|
|
1542
1542
|
}
|
|
1543
1543
|
return h;
|
|
1544
1544
|
}, i.setupTimingPattern = function() {
|
|
@@ -1581,8 +1581,8 @@ function gr() {
|
|
|
1581
1581
|
if (this.modules[h][S - y] == null) {
|
|
1582
1582
|
var _ = !1;
|
|
1583
1583
|
g < a.length && (_ = (a[g] >>> f & 1) == 1);
|
|
1584
|
-
var
|
|
1585
|
-
|
|
1584
|
+
var j = n.getMask(c, h, S - y);
|
|
1585
|
+
j && (_ = !_), this.modules[h][S - y] = _, f--, f == -1 && (g++, f = 7);
|
|
1586
1586
|
}
|
|
1587
1587
|
if (h += l, h < 0 || this.moduleCount <= h) {
|
|
1588
1588
|
h -= l, l = -l;
|
|
@@ -1605,28 +1605,28 @@ function gr() {
|
|
|
1605
1605
|
return o.createBytes(f, h);
|
|
1606
1606
|
}, o.createBytes = function(a, c) {
|
|
1607
1607
|
for (var l = 0, h = 0, f = 0, g = new Array(c.length), S = new Array(c.length), y = 0; y < c.length; y++) {
|
|
1608
|
-
var _ = c[y].dataCount,
|
|
1609
|
-
h = Math.max(h, _), f = Math.max(f,
|
|
1610
|
-
for (var
|
|
1611
|
-
g[y][
|
|
1608
|
+
var _ = c[y].dataCount, j = c[y].totalCount - _;
|
|
1609
|
+
h = Math.max(h, _), f = Math.max(f, j), g[y] = new Array(_);
|
|
1610
|
+
for (var P = 0; P < g[y].length; P++)
|
|
1611
|
+
g[y][P] = 255 & a.buffer[P + l];
|
|
1612
1612
|
l += _;
|
|
1613
|
-
var
|
|
1614
|
-
S[y] = new Array(
|
|
1615
|
-
for (var
|
|
1616
|
-
var
|
|
1617
|
-
S[y][
|
|
1613
|
+
var B = n.getErrorCorrectPolynomial(j), D = new s(g[y], B.getLength() - 1), L = D.mod(B);
|
|
1614
|
+
S[y] = new Array(B.getLength() - 1);
|
|
1615
|
+
for (var P = 0; P < S[y].length; P++) {
|
|
1616
|
+
var v = P + L.getLength() - S[y].length;
|
|
1617
|
+
S[y][P] = v >= 0 ? L.get(v) : 0;
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
for (var
|
|
1621
|
-
|
|
1622
|
-
for (var
|
|
1620
|
+
for (var V = 0, P = 0; P < c.length; P++)
|
|
1621
|
+
V += c[P].totalCount;
|
|
1622
|
+
for (var Y = new Array(V), ee = 0, P = 0; P < h; P++)
|
|
1623
1623
|
for (var y = 0; y < c.length; y++)
|
|
1624
|
-
|
|
1625
|
-
for (var
|
|
1624
|
+
P < g[y].length && (Y[ee++] = g[y][P]);
|
|
1625
|
+
for (var P = 0; P < f; P++)
|
|
1626
1626
|
for (var y = 0; y < c.length; y++)
|
|
1627
|
-
|
|
1628
|
-
return
|
|
1629
|
-
},
|
|
1627
|
+
P < S[y].length && (Y[ee++] = S[y][P]);
|
|
1628
|
+
return Y;
|
|
1629
|
+
}, Qe = o, Qe;
|
|
1630
1630
|
}
|
|
1631
1631
|
var Te = {}, xt;
|
|
1632
1632
|
function pr() {
|
|
@@ -1661,14 +1661,14 @@ 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, S = l.fgD, y = l.fgColor, _ = l.size,
|
|
1664
|
+
var f = l.bgColor, g = l.bgD, S = l.fgD, y = l.fgColor, _ = l.size, j = l.title, P = l.viewBoxSize, B = l.xmlns, D = B === void 0 ? "http://www.w3.org/2000/svg" : B, L = i(l, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
|
|
1665
1665
|
return s.default.createElement(
|
|
1666
1666
|
"svg",
|
|
1667
|
-
r({},
|
|
1668
|
-
|
|
1667
|
+
r({}, L, { height: _, ref: h, viewBox: "0 0 " + P + " " + P, width: _, xmlns: D }),
|
|
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
1674
|
s.default.createElement("path", { d: S, fill: y })
|
|
@@ -1683,21 +1683,21 @@ function _r() {
|
|
|
1683
1683
|
value: !0
|
|
1684
1684
|
}), pe.QRCode = void 0;
|
|
1685
1685
|
var r = Object.assign || function(_) {
|
|
1686
|
-
for (var
|
|
1687
|
-
var
|
|
1688
|
-
for (var
|
|
1689
|
-
Object.prototype.hasOwnProperty.call(
|
|
1686
|
+
for (var j = 1; j < arguments.length; j++) {
|
|
1687
|
+
var P = arguments[j];
|
|
1688
|
+
for (var B in P)
|
|
1689
|
+
Object.prototype.hasOwnProperty.call(P, B) && (_[B] = P[B]);
|
|
1690
1690
|
}
|
|
1691
1691
|
return _;
|
|
1692
1692
|
}, e = /* @__PURE__ */ Wt(), t = f(e), n = Ft(), s = f(n), o = gr(), i = f(o), a = ae, c = f(a), l = pr(), h = f(l);
|
|
1693
1693
|
function f(_) {
|
|
1694
1694
|
return _ && _.__esModule ? _ : { default: _ };
|
|
1695
1695
|
}
|
|
1696
|
-
function g(_,
|
|
1697
|
-
var
|
|
1698
|
-
for (var
|
|
1699
|
-
|
|
1700
|
-
return
|
|
1696
|
+
function g(_, j) {
|
|
1697
|
+
var P = {};
|
|
1698
|
+
for (var B in _)
|
|
1699
|
+
j.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(_, B) && (P[B] = _[B]);
|
|
1700
|
+
return P;
|
|
1701
1701
|
}
|
|
1702
1702
|
var S = {
|
|
1703
1703
|
bgColor: t.default.oneOfType([t.default.object, t.default.string]),
|
|
@@ -1705,26 +1705,26 @@ function _r() {
|
|
|
1705
1705
|
level: t.default.string,
|
|
1706
1706
|
size: t.default.number,
|
|
1707
1707
|
value: t.default.string.isRequired
|
|
1708
|
-
}, y = (0, a.forwardRef)(function(_,
|
|
1709
|
-
var
|
|
1710
|
-
|
|
1711
|
-
var
|
|
1712
|
-
return c.default.createElement(h.default, r({},
|
|
1713
|
-
bgColor:
|
|
1714
|
-
bgD:
|
|
1715
|
-
return
|
|
1716
|
-
return
|
|
1708
|
+
}, y = (0, a.forwardRef)(function(_, j) {
|
|
1709
|
+
var P = _.bgColor, B = P === void 0 ? "#FFFFFF" : P, D = _.fgColor, L = D === void 0 ? "#000000" : D, v = _.level, V = v === void 0 ? "L" : v, Y = _.size, ee = Y === void 0 ? 256 : Y, se = _.value, le = g(_, ["bgColor", "fgColor", "level", "size", "value"]), Q = new i.default(-1, s.default[V]);
|
|
1710
|
+
Q.addData(se), Q.make();
|
|
1711
|
+
var M = Q.modules;
|
|
1712
|
+
return c.default.createElement(h.default, r({}, le, {
|
|
1713
|
+
bgColor: B,
|
|
1714
|
+
bgD: M.map(function(J, Z) {
|
|
1715
|
+
return J.map(function(X, U) {
|
|
1716
|
+
return X ? "" : "M " + U + " " + Z + " l 1 0 0 1 -1 0 Z";
|
|
1717
1717
|
}).join(" ");
|
|
1718
1718
|
}).join(" "),
|
|
1719
|
-
fgColor:
|
|
1720
|
-
fgD:
|
|
1721
|
-
return
|
|
1722
|
-
return
|
|
1719
|
+
fgColor: L,
|
|
1720
|
+
fgD: M.map(function(J, Z) {
|
|
1721
|
+
return J.map(function(X, U) {
|
|
1722
|
+
return X ? "M " + U + " " + Z + " l 1 0 0 1 -1 0 Z" : "";
|
|
1723
1723
|
}).join(" ");
|
|
1724
1724
|
}).join(" "),
|
|
1725
|
-
ref:
|
|
1726
|
-
size:
|
|
1727
|
-
viewBoxSize:
|
|
1725
|
+
ref: j,
|
|
1726
|
+
size: ee,
|
|
1727
|
+
viewBoxSize: M.length
|
|
1728
1728
|
}));
|
|
1729
1729
|
});
|
|
1730
1730
|
return pe.QRCode = y, y.displayName = "QRCode", y.propTypes = S, pe.default = y, pe;
|
|
@@ -1811,7 +1811,7 @@ function Jt(r) {
|
|
|
1811
1811
|
key: t
|
|
1812
1812
|
}, e.attr), Jt(e.child)));
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function je(r) {
|
|
1815
1815
|
return (e) => /* @__PURE__ */ ae.createElement(xr, Re({
|
|
1816
1816
|
attr: Ie({}, r.attr)
|
|
1817
1817
|
}, e), Jt(r.child));
|
|
@@ -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 je({ 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",
|
|
@@ -1848,7 +1848,7 @@ const kr = ({
|
|
|
1848
1848
|
size: t = "small",
|
|
1849
1849
|
isConnected: n = !1
|
|
1850
1850
|
}) => {
|
|
1851
|
-
const [s, o] =
|
|
1851
|
+
const [s, o] = te("w-2 h-2"), [i, a] = te("w-4 h-4"), [c, l] = te(
|
|
1852
1852
|
n ? "from-green-200 to-green-600" : "from-red-600 to-red-800"
|
|
1853
1853
|
);
|
|
1854
1854
|
return he(() => {
|
|
@@ -1872,14 +1872,14 @@ const kr = ({
|
|
|
1872
1872
|
l(
|
|
1873
1873
|
n ? "bg-gradient-to-r from-green-200 to-green-500" : " bg-gradient-to-r from-red-600 to-red-800"
|
|
1874
1874
|
);
|
|
1875
|
-
}, [n]), /* @__PURE__ */
|
|
1875
|
+
}, [n]), /* @__PURE__ */ m.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ m.jsx(
|
|
1876
1876
|
Tr,
|
|
1877
1877
|
{
|
|
1878
1878
|
className: `${s} ${e} ${c} rounded-2xl p-1`
|
|
1879
1879
|
}
|
|
1880
1880
|
) });
|
|
1881
1881
|
};
|
|
1882
|
-
class
|
|
1882
|
+
class Je extends Error {
|
|
1883
1883
|
constructor(e, t, n) {
|
|
1884
1884
|
super(`HTTP ${e}: ${t}`), this.status = e, this.statusText = t, this.response = n, this.name = "ApiError";
|
|
1885
1885
|
}
|
|
@@ -1905,11 +1905,11 @@ async function Rt(r, e, t) {
|
|
|
1905
1905
|
} catch {
|
|
1906
1906
|
c = await i.text();
|
|
1907
1907
|
}
|
|
1908
|
-
throw new
|
|
1908
|
+
throw new Je(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 Je ? (console.error("API Error:", i.status, i.message), i) : i instanceof Je && i.name === "AbortError" ? (console.error("Request was aborted"), new Error("Request timeout")) : (console.error("Network error:", i), new Error("Network error occurred"));
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
1915
|
function Pr(r) {
|
|
@@ -1933,7 +1933,7 @@ function Ir(r, e = 30) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
function It(r) {
|
|
1936
|
-
return
|
|
1936
|
+
return je({ 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
1937
|
}
|
|
1938
1938
|
function Ar(r, e) {
|
|
1939
1939
|
try {
|
|
@@ -1942,7 +1942,7 @@ function Ar(r, e) {
|
|
|
1942
1942
|
console.error("Error saving to localStorage", t);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function jr(r) {
|
|
1946
1946
|
try {
|
|
1947
1947
|
const e = localStorage.getItem(r);
|
|
1948
1948
|
return e ? JSON.parse(e) : void 0;
|
|
@@ -1950,8 +1950,8 @@ function Or(r) {
|
|
|
1950
1950
|
console.error("Error reading from localStorage", e);
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
const
|
|
1954
|
-
const [t, n] =
|
|
1953
|
+
const Or = (r, e) => {
|
|
1954
|
+
const [t, n] = te(() => jr(r) ?? e);
|
|
1955
1955
|
return he(() => {
|
|
1956
1956
|
Ar(r, t), n(t);
|
|
1957
1957
|
}, [r, t]), he(() => {
|
|
@@ -2097,7 +2097,7 @@ class be {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
be.instance = new be();
|
|
2099
2099
|
const Lr = "10.0.0";
|
|
2100
|
-
class
|
|
2100
|
+
class F {
|
|
2101
2101
|
static isRequired(e, t) {
|
|
2102
2102
|
if (e == null)
|
|
2103
2103
|
throw new Error(`The '${t}' argument is required.`);
|
|
@@ -2227,7 +2227,7 @@ function Fr() {
|
|
|
2227
2227
|
function qr() {
|
|
2228
2228
|
return H.isNode ? "NodeJS" : "Browser";
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Xe(r) {
|
|
2231
2231
|
return r.stack ? r.stack : r.message ? r.message : `${r}`;
|
|
2232
2232
|
}
|
|
2233
2233
|
function Vr() {
|
|
@@ -2296,10 +2296,10 @@ class Yr extends Oe {
|
|
|
2296
2296
|
s && clearTimeout(s), e.abortSignal && (e.abortSignal.onabort = null);
|
|
2297
2297
|
}
|
|
2298
2298
|
if (!o.ok) {
|
|
2299
|
-
const c = await
|
|
2299
|
+
const c = await jt(o, "text");
|
|
2300
2300
|
throw new fe(c || o.statusText, o.status);
|
|
2301
2301
|
}
|
|
2302
|
-
const a = await
|
|
2302
|
+
const a = await jt(o, e.responseType);
|
|
2303
2303
|
return new Xt(o.status, o.statusText, a);
|
|
2304
2304
|
}
|
|
2305
2305
|
getCookieString(e) {
|
|
@@ -2307,7 +2307,7 @@ class Yr extends Oe {
|
|
|
2307
2307
|
return H.isNode && this._jar && this._jar.getCookies(e, (n, s) => t = s.join("; ")), t;
|
|
2308
2308
|
}
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function jt(r, e) {
|
|
2311
2311
|
let t;
|
|
2312
2312
|
switch (e) {
|
|
2313
2313
|
case "arraybuffer":
|
|
@@ -2368,40 +2368,40 @@ class Jr extends Oe {
|
|
|
2368
2368
|
return this._httpClient.getCookieString(e);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
|
-
class
|
|
2371
|
+
class ne {
|
|
2372
2372
|
static write(e) {
|
|
2373
|
-
return `${e}${
|
|
2373
|
+
return `${e}${ne.RecordSeparator}`;
|
|
2374
2374
|
}
|
|
2375
2375
|
static parse(e) {
|
|
2376
|
-
if (e[e.length - 1] !==
|
|
2376
|
+
if (e[e.length - 1] !== ne.RecordSeparator)
|
|
2377
2377
|
throw new Error("Message is incomplete.");
|
|
2378
|
-
const t = e.split(
|
|
2378
|
+
const t = e.split(ne.RecordSeparator);
|
|
2379
2379
|
return t.pop(), t;
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
|
|
2383
|
-
|
|
2382
|
+
ne.RecordSeparatorCode = 30;
|
|
2383
|
+
ne.RecordSeparator = String.fromCharCode(ne.RecordSeparatorCode);
|
|
2384
2384
|
class Xr {
|
|
2385
2385
|
// Handshake request is always JSON
|
|
2386
2386
|
writeHandshakeRequest(e) {
|
|
2387
|
-
return
|
|
2387
|
+
return ne.write(JSON.stringify(e));
|
|
2388
2388
|
}
|
|
2389
2389
|
parseHandshakeResponse(e) {
|
|
2390
2390
|
let t, n;
|
|
2391
2391
|
if (ge(e)) {
|
|
2392
|
-
const a = new Uint8Array(e), c = a.indexOf(
|
|
2392
|
+
const a = new Uint8Array(e), c = a.indexOf(ne.RecordSeparatorCode);
|
|
2393
2393
|
if (c === -1)
|
|
2394
2394
|
throw new Error("Message is incomplete.");
|
|
2395
2395
|
const l = c + 1;
|
|
2396
2396
|
t = String.fromCharCode.apply(null, Array.prototype.slice.call(a.slice(0, l))), n = a.byteLength > l ? a.slice(l).buffer : null;
|
|
2397
2397
|
} else {
|
|
2398
|
-
const a = e, c = a.indexOf(
|
|
2398
|
+
const a = e, c = a.indexOf(ne.RecordSeparator);
|
|
2399
2399
|
if (c === -1)
|
|
2400
2400
|
throw new Error("Message is incomplete.");
|
|
2401
2401
|
const l = c + 1;
|
|
2402
2402
|
t = a.substring(0, l), n = a.length > l ? a.substring(l) : null;
|
|
2403
2403
|
}
|
|
2404
|
-
const s =
|
|
2404
|
+
const s = ne.parse(t), o = JSON.parse(s[0]);
|
|
2405
2405
|
if (o.type)
|
|
2406
2406
|
throw new Error("Expected a handshake response from the server.");
|
|
2407
2407
|
return [n, o];
|
|
@@ -2545,7 +2545,7 @@ class et {
|
|
|
2545
2545
|
constructor(e, t, n, s, o, i, a) {
|
|
2546
2546
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
2547
2547
|
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
|
-
},
|
|
2548
|
+
}, F.isRequired(e, "connection"), F.isRequired(t, "logger"), F.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = o ?? en, this.keepAliveIntervalInMilliseconds = i ?? tn, this._statefulReconnectBufferSize = a ?? rn, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = s, this._handshakeProtocol = new Xr(), 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 = z.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: A.Ping });
|
|
2549
2549
|
}
|
|
2550
2550
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
2551
2551
|
get state() {
|
|
@@ -2755,7 +2755,7 @@ class et {
|
|
|
2755
2755
|
switch (n.type) {
|
|
2756
2756
|
case A.Invocation:
|
|
2757
2757
|
this._invokeClientMethod(n).catch((s) => {
|
|
2758
|
-
this._logger.log(d.Error, `Invoke client method threw error: ${
|
|
2758
|
+
this._logger.log(d.Error, `Invoke client method threw error: ${Xe(s)}`);
|
|
2759
2759
|
});
|
|
2760
2760
|
break;
|
|
2761
2761
|
case A.StreamItem:
|
|
@@ -2766,7 +2766,7 @@ class et {
|
|
|
2766
2766
|
try {
|
|
2767
2767
|
s(n);
|
|
2768
2768
|
} catch (o) {
|
|
2769
|
-
this._logger.log(d.Error, `Stream callback threw error: ${
|
|
2769
|
+
this._logger.log(d.Error, `Stream callback threw error: ${Xe(o)}`);
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
2772
|
break;
|
|
@@ -2922,7 +2922,7 @@ class et {
|
|
|
2922
2922
|
try {
|
|
2923
2923
|
s(null, e);
|
|
2924
2924
|
} catch (o) {
|
|
2925
|
-
this._logger.log(d.Error, `Stream 'error' callback called with '${e}' threw error: ${
|
|
2925
|
+
this._logger.log(d.Error, `Stream 'error' callback called with '${e}' threw error: ${Xe(o)}`);
|
|
2926
2926
|
}
|
|
2927
2927
|
});
|
|
2928
2928
|
}
|
|
@@ -3043,7 +3043,7 @@ class et {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
}
|
|
3045
3045
|
const nn = [0, 2e3, 1e4, 3e4, null];
|
|
3046
|
-
class
|
|
3046
|
+
class Ot {
|
|
3047
3047
|
constructor(e) {
|
|
3048
3048
|
this._retryDelays = e !== void 0 ? [...e, null] : nn;
|
|
3049
3049
|
}
|
|
@@ -3072,10 +3072,10 @@ class on extends Oe {
|
|
|
3072
3072
|
return this._innerClient.getCookieString(e);
|
|
3073
3073
|
}
|
|
3074
3074
|
}
|
|
3075
|
-
var
|
|
3075
|
+
var q;
|
|
3076
3076
|
(function(r) {
|
|
3077
3077
|
r[r.None = 0] = "None", r[r.WebSockets = 1] = "WebSockets", r[r.ServerSentEvents = 2] = "ServerSentEvents", r[r.LongPolling = 4] = "LongPolling";
|
|
3078
|
-
})(
|
|
3078
|
+
})(q || (q = {}));
|
|
3079
3079
|
var K;
|
|
3080
3080
|
(function(r) {
|
|
3081
3081
|
r[r.Text = 1] = "Text", r[r.Binary = 2] = "Binary";
|
|
@@ -3103,7 +3103,7 @@ class Dt {
|
|
|
3103
3103
|
this._httpClient = e, this._logger = t, this._pollAbort = new sn(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
3104
3104
|
}
|
|
3105
3105
|
async connect(e, t) {
|
|
3106
|
-
if (
|
|
3106
|
+
if (F.isRequired(e, "url"), F.isRequired(t, "transferFormat"), F.isIn(t, K, "transferFormat"), this._url = e, this._logger.log(d.Trace, "(LongPolling transport) Connecting."), t === K.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
3107
3107
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
3108
3108
|
const [n, s] = _e(), o = { [n]: s, ...this._options.headers }, i = {
|
|
3109
3109
|
abortSignal: this._pollAbort.signal,
|
|
@@ -3169,7 +3169,7 @@ class an {
|
|
|
3169
3169
|
this._httpClient = e, this._accessToken = t, this._logger = n, this._options = s, this.onreceive = null, this.onclose = null;
|
|
3170
3170
|
}
|
|
3171
3171
|
async connect(e, t) {
|
|
3172
|
-
return
|
|
3172
|
+
return F.isRequired(e, "url"), F.isRequired(t, "transferFormat"), F.isIn(t, K, "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
3173
|
let o = !1;
|
|
3174
3174
|
if (t !== K.Text) {
|
|
3175
3175
|
s(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
@@ -3219,7 +3219,7 @@ class cn {
|
|
|
3219
3219
|
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
3220
|
}
|
|
3221
3221
|
async connect(e, t) {
|
|
3222
|
-
|
|
3222
|
+
F.isRequired(e, "url"), F.isRequired(t, "transferFormat"), F.isIn(t, K, "transferFormat"), this._logger.log(d.Trace, "(WebSockets transport) Connecting.");
|
|
3223
3223
|
let n;
|
|
3224
3224
|
return this._accessTokenFactory && (n = await this._accessTokenFactory()), new Promise((s, o) => {
|
|
3225
3225
|
e = e.replace(/^http/, "ws");
|
|
@@ -3276,7 +3276,7 @@ const Mt = 100;
|
|
|
3276
3276
|
class ln {
|
|
3277
3277
|
constructor(e, t = {}) {
|
|
3278
3278
|
if (this._stopPromiseResolver = () => {
|
|
3279
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
3279
|
+
}, this.features = {}, this._negotiateVersion = 1, F.isRequired(e, "url"), this._logger = zr(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
3280
|
t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
|
|
3281
3281
|
else
|
|
3282
3282
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -3289,7 +3289,7 @@ class ln {
|
|
|
3289
3289
|
!H.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : H.isNode && !t.WebSocket && n && (t.WebSocket = n), !H.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : H.isNode && !t.EventSource && typeof s < "u" && (t.EventSource = s), this._httpClient = new on(t.httpClient || new Jr(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
3290
3290
|
}
|
|
3291
3291
|
async start(e) {
|
|
3292
|
-
if (e = e || K.Binary,
|
|
3292
|
+
if (e = e || K.Binary, F.isIn(e, K, "transferFormat"), this._logger.log(d.Debug, `Starting connection with transfer format '${K[e]}'.`), this._connectionState !== "Disconnected")
|
|
3293
3293
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
3294
3294
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
3295
3295
|
const t = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -3333,8 +3333,8 @@ class ln {
|
|
|
3333
3333
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
3334
3334
|
try {
|
|
3335
3335
|
if (this._options.skipNegotiation)
|
|
3336
|
-
if (this._options.transport ===
|
|
3337
|
-
this.transport = this._constructTransport(
|
|
3336
|
+
if (this._options.transport === q.WebSockets)
|
|
3337
|
+
this.transport = this._constructTransport(q.WebSockets), await this._startTransport(t, e);
|
|
3338
3338
|
else
|
|
3339
3339
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
3340
3340
|
else {
|
|
@@ -3410,7 +3410,7 @@ class ln {
|
|
|
3410
3410
|
await this._startTransport(o, s), this.connectionId = c.connectionId;
|
|
3411
3411
|
return;
|
|
3412
3412
|
} catch (f) {
|
|
3413
|
-
if (this._logger.log(d.Error, `Failed to start the transport '${l.transport}': ${f}`), c = void 0, i.push(new Nr(`${l.transport} failed: ${f}`,
|
|
3413
|
+
if (this._logger.log(d.Error, `Failed to start the transport '${l.transport}': ${f}`), c = void 0, i.push(new Nr(`${l.transport} failed: ${f}`, q[l.transport])), this._connectionState !== "Connecting") {
|
|
3414
3414
|
const g = "Failed to select transport before stop() was called.";
|
|
3415
3415
|
return this._logger.log(d.Debug, g), Promise.reject(new ie(g));
|
|
3416
3416
|
}
|
|
@@ -3421,15 +3421,15 @@ class ln {
|
|
|
3421
3421
|
}
|
|
3422
3422
|
_constructTransport(e) {
|
|
3423
3423
|
switch (e) {
|
|
3424
|
-
case
|
|
3424
|
+
case q.WebSockets:
|
|
3425
3425
|
if (!this._options.WebSocket)
|
|
3426
3426
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
3427
3427
|
return new cn(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
3428
|
-
case
|
|
3428
|
+
case q.ServerSentEvents:
|
|
3429
3429
|
if (!this._options.EventSource)
|
|
3430
3430
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
3431
3431
|
return new an(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
3432
|
-
case
|
|
3432
|
+
case q.LongPolling:
|
|
3433
3433
|
return new Dt(this._httpClient, this._logger, this._options);
|
|
3434
3434
|
default:
|
|
3435
3435
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -3452,23 +3452,23 @@ class ln {
|
|
|
3452
3452
|
} : this.transport.onclose = (n) => this._stopConnection(n), this.transport.connect(e, t);
|
|
3453
3453
|
}
|
|
3454
3454
|
_resolveTransportOrError(e, t, n, s) {
|
|
3455
|
-
const o =
|
|
3455
|
+
const o = q[e.transport];
|
|
3456
3456
|
if (o == null)
|
|
3457
3457
|
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
3458
|
if (un(t, o))
|
|
3459
3459
|
if (e.transferFormats.map((a) => K[a]).indexOf(n) >= 0) {
|
|
3460
|
-
if (o ===
|
|
3461
|
-
return this._logger.log(d.Debug, `Skipping transport '${
|
|
3462
|
-
this._logger.log(d.Debug, `Selecting transport '${
|
|
3460
|
+
if (o === q.WebSockets && !this._options.WebSocket || o === q.ServerSentEvents && !this._options.EventSource)
|
|
3461
|
+
return this._logger.log(d.Debug, `Skipping transport '${q[o]}' because it is not supported in your environment.'`), new Dr(`'${q[o]}' is not supported in your environment.`, o);
|
|
3462
|
+
this._logger.log(d.Debug, `Selecting transport '${q[o]}'.`);
|
|
3463
3463
|
try {
|
|
3464
|
-
return this.features.reconnect = o ===
|
|
3464
|
+
return this.features.reconnect = o === q.WebSockets ? s : void 0, this._constructTransport(o);
|
|
3465
3465
|
} catch (a) {
|
|
3466
3466
|
return a;
|
|
3467
3467
|
}
|
|
3468
3468
|
} else
|
|
3469
|
-
return this._logger.log(d.Debug, `Skipping transport '${
|
|
3469
|
+
return this._logger.log(d.Debug, `Skipping transport '${q[o]}' because it does not support the requested transfer format '${K[n]}'.`), new Error(`'${q[o]}' does not support ${K[n]}.`);
|
|
3470
3470
|
else
|
|
3471
|
-
return this._logger.log(d.Debug, `Skipping transport '${
|
|
3471
|
+
return this._logger.log(d.Debug, `Skipping transport '${q[o]}' because it was disabled by the client.`), new Mr(`'${q[o]}' is disabled by the client.`, o);
|
|
3472
3472
|
}
|
|
3473
3473
|
_isITransport(e) {
|
|
3474
3474
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -3577,7 +3577,7 @@ class fn {
|
|
|
3577
3577
|
if (!e)
|
|
3578
3578
|
return [];
|
|
3579
3579
|
t === null && (t = be.instance);
|
|
3580
|
-
const n =
|
|
3580
|
+
const n = ne.parse(e), s = [];
|
|
3581
3581
|
for (const o of n) {
|
|
3582
3582
|
const i = JSON.parse(o);
|
|
3583
3583
|
if (typeof i.type != "number")
|
|
@@ -3616,7 +3616,7 @@ class fn {
|
|
|
3616
3616
|
* @returns {string} A string containing the serialized representation of the message.
|
|
3617
3617
|
*/
|
|
3618
3618
|
writeMessage(e) {
|
|
3619
|
-
return
|
|
3619
|
+
return ne.write(JSON.stringify(e));
|
|
3620
3620
|
}
|
|
3621
3621
|
_isInvocationMessage(e) {
|
|
3622
3622
|
this._assertNotEmptyString(e.target, "Invalid payload for Invocation message."), e.invocationId !== void 0 && this._assertNotEmptyString(e.invocationId, "Invalid payload for Invocation message.");
|
|
@@ -3662,7 +3662,7 @@ function gn(r) {
|
|
|
3662
3662
|
}
|
|
3663
3663
|
class pn {
|
|
3664
3664
|
configureLogging(e) {
|
|
3665
|
-
if (
|
|
3665
|
+
if (F.isRequired(e, "logging"), _n(e))
|
|
3666
3666
|
this.logger = e;
|
|
3667
3667
|
else if (typeof e == "string") {
|
|
3668
3668
|
const t = gn(e);
|
|
@@ -3672,7 +3672,7 @@ class pn {
|
|
|
3672
3672
|
return this;
|
|
3673
3673
|
}
|
|
3674
3674
|
withUrl(e, t) {
|
|
3675
|
-
return
|
|
3675
|
+
return F.isRequired(e, "url"), F.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
|
|
3676
3676
|
...this.httpConnectionOptions,
|
|
3677
3677
|
transport: t
|
|
3678
3678
|
}, this;
|
|
@@ -3682,26 +3682,26 @@ class pn {
|
|
|
3682
3682
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
3683
3683
|
*/
|
|
3684
3684
|
withHubProtocol(e) {
|
|
3685
|
-
return
|
|
3685
|
+
return F.isRequired(e, "protocol"), this.protocol = e, this;
|
|
3686
3686
|
}
|
|
3687
3687
|
withAutomaticReconnect(e) {
|
|
3688
3688
|
if (this.reconnectPolicy)
|
|
3689
3689
|
throw new Error("A reconnectPolicy has already been set.");
|
|
3690
|
-
return e ? Array.isArray(e) ? this.reconnectPolicy = new
|
|
3690
|
+
return e ? Array.isArray(e) ? this.reconnectPolicy = new Ot(e) : this.reconnectPolicy = e : this.reconnectPolicy = new Ot(), this;
|
|
3691
3691
|
}
|
|
3692
3692
|
/** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
3693
3693
|
*
|
|
3694
3694
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
3695
3695
|
*/
|
|
3696
3696
|
withServerTimeout(e) {
|
|
3697
|
-
return
|
|
3697
|
+
return F.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
3698
3698
|
}
|
|
3699
3699
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
3700
3700
|
*
|
|
3701
3701
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
3702
3702
|
*/
|
|
3703
3703
|
withKeepAliveInterval(e) {
|
|
3704
|
-
return
|
|
3704
|
+
return F.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
3705
3705
|
}
|
|
3706
3706
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
3707
3707
|
*
|
|
@@ -3775,7 +3775,7 @@ const wn = zt(
|
|
|
3775
3775
|
children: o,
|
|
3776
3776
|
iconNode: i,
|
|
3777
3777
|
...a
|
|
3778
|
-
}, c) =>
|
|
3778
|
+
}, c) => Ge(
|
|
3779
3779
|
"svg",
|
|
3780
3780
|
{
|
|
3781
3781
|
ref: c,
|
|
@@ -3789,7 +3789,7 @@ const wn = zt(
|
|
|
3789
3789
|
...a
|
|
3790
3790
|
},
|
|
3791
3791
|
[
|
|
3792
|
-
...i.map(([l, h]) =>
|
|
3792
|
+
...i.map(([l, h]) => Ge(l, h)),
|
|
3793
3793
|
...Array.isArray(o) ? o : [o]
|
|
3794
3794
|
]
|
|
3795
3795
|
)
|
|
@@ -3802,7 +3802,7 @@ const wn = zt(
|
|
|
3802
3802
|
*/
|
|
3803
3803
|
const oe = (r, e) => {
|
|
3804
3804
|
const t = zt(
|
|
3805
|
-
({ className: n, ...s }, o) =>
|
|
3805
|
+
({ className: n, ...s }, o) => Ge(wn, {
|
|
3806
3806
|
ref: o,
|
|
3807
3807
|
iconNode: e,
|
|
3808
3808
|
className: Kt(
|
|
@@ -3936,14 +3936,14 @@ const An = [
|
|
|
3936
3936
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
3937
3937
|
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
|
|
3938
3938
|
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
|
|
3939
|
-
],
|
|
3939
|
+
], jn = oe("file-image", An);
|
|
3940
3940
|
/**
|
|
3941
3941
|
* @license lucide-react v0.562.0 - ISC
|
|
3942
3942
|
*
|
|
3943
3943
|
* This source code is licensed under the ISC license.
|
|
3944
3944
|
* See the LICENSE file in the root directory of this source tree.
|
|
3945
3945
|
*/
|
|
3946
|
-
const
|
|
3946
|
+
const On = [
|
|
3947
3947
|
[
|
|
3948
3948
|
"path",
|
|
3949
3949
|
{
|
|
@@ -3959,7 +3959,7 @@ const jn = [
|
|
|
3959
3959
|
key: "1tzo1f"
|
|
3960
3960
|
}
|
|
3961
3961
|
]
|
|
3962
|
-
], Dn = oe("file-play",
|
|
3962
|
+
], Dn = oe("file-play", On);
|
|
3963
3963
|
/**
|
|
3964
3964
|
* @license lucide-react v0.562.0 - ISC
|
|
3965
3965
|
*
|
|
@@ -4046,17 +4046,17 @@ const zn = [
|
|
|
4046
4046
|
["path", { d: "m7 21 5-5 5 5", key: "bip4we" }]
|
|
4047
4047
|
], Hn = oe("presentation", zn);
|
|
4048
4048
|
function Un(r) {
|
|
4049
|
-
return
|
|
4049
|
+
return je({ 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
4050
|
}
|
|
4051
|
-
const Wn = ({ progress: r = 0 }) => /* @__PURE__ */
|
|
4052
|
-
/* @__PURE__ */
|
|
4053
|
-
/* @__PURE__ */
|
|
4054
|
-
/* @__PURE__ */
|
|
4051
|
+
const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ m.jsxs("div", { className: "mt-3 w-full", children: [
|
|
4052
|
+
/* @__PURE__ */ m.jsxs("div", { className: "mb-2 flex justify-between", children: [
|
|
4053
|
+
/* @__PURE__ */ m.jsx("span", { className: "text-sm font-medium text-gray-700 dark:text-gray-500", children: "Uploading..." }),
|
|
4054
|
+
/* @__PURE__ */ m.jsxs("span", { className: "text-sm font-medium text-gray-700 dark:text-gray-500", children: [
|
|
4055
4055
|
Math.round(r || 0),
|
|
4056
4056
|
"%"
|
|
4057
4057
|
] })
|
|
4058
4058
|
] }),
|
|
4059
|
-
/* @__PURE__ */
|
|
4059
|
+
/* @__PURE__ */ m.jsx("div", { className: "h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-200", children: /* @__PURE__ */ m.jsx(
|
|
4060
4060
|
"div",
|
|
4061
4061
|
{
|
|
4062
4062
|
className: "h-2.5 rounded-full bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.4)] transition-all duration-300 ease-out",
|
|
@@ -4082,23 +4082,23 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4082
4082
|
switch (y) {
|
|
4083
4083
|
// Documents
|
|
4084
4084
|
case "pdf":
|
|
4085
|
-
return /* @__PURE__ */
|
|
4085
|
+
return /* @__PURE__ */ m.jsx(Bt, { ..._, className: "text-red-500" });
|
|
4086
4086
|
case "doc":
|
|
4087
4087
|
case "docx":
|
|
4088
|
-
return /* @__PURE__ */
|
|
4088
|
+
return /* @__PURE__ */ m.jsx(Lt, { ..._, className: "text-blue-500" });
|
|
4089
4089
|
case "xls":
|
|
4090
4090
|
case "xlsx":
|
|
4091
|
-
return /* @__PURE__ */
|
|
4091
|
+
return /* @__PURE__ */ m.jsx($t, { ..._, className: "text-green-600" });
|
|
4092
4092
|
case "csv":
|
|
4093
|
-
return /* @__PURE__ */
|
|
4093
|
+
return /* @__PURE__ */ m.jsx($t, { ..._, className: "text-green-500" });
|
|
4094
4094
|
case "ppt":
|
|
4095
4095
|
case "pptx":
|
|
4096
|
-
return /* @__PURE__ */
|
|
4096
|
+
return /* @__PURE__ */ m.jsx(Hn, { ..._, className: "text-orange-500" });
|
|
4097
4097
|
case "txt":
|
|
4098
4098
|
case "rtf":
|
|
4099
|
-
return /* @__PURE__ */
|
|
4099
|
+
return /* @__PURE__ */ m.jsx(Lt, { ..._, className: "text-gray-600" });
|
|
4100
4100
|
case "md":
|
|
4101
|
-
return /* @__PURE__ */
|
|
4101
|
+
return /* @__PURE__ */ m.jsx(Pn, { ..._ });
|
|
4102
4102
|
// Images
|
|
4103
4103
|
case "jpg":
|
|
4104
4104
|
case "jpeg":
|
|
@@ -4108,7 +4108,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4108
4108
|
case "bmp":
|
|
4109
4109
|
case "webp":
|
|
4110
4110
|
case "ico":
|
|
4111
|
-
return /* @__PURE__ */
|
|
4111
|
+
return /* @__PURE__ */ m.jsx(jn, { ..._, className: "text-purple-500" });
|
|
4112
4112
|
// Videos
|
|
4113
4113
|
case "mp4":
|
|
4114
4114
|
case "avi":
|
|
@@ -4117,7 +4117,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4117
4117
|
case "flv":
|
|
4118
4118
|
case "webm":
|
|
4119
4119
|
case "mkv":
|
|
4120
|
-
return /* @__PURE__ */
|
|
4120
|
+
return /* @__PURE__ */ m.jsx(Dn, { ..._, className: "text-purple-600" });
|
|
4121
4121
|
// Audio
|
|
4122
4122
|
case "mp3":
|
|
4123
4123
|
case "wav":
|
|
@@ -4125,7 +4125,7 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4125
4125
|
case "flac":
|
|
4126
4126
|
case "m4a":
|
|
4127
4127
|
case "aac":
|
|
4128
|
-
return /* @__PURE__ */
|
|
4128
|
+
return /* @__PURE__ */ m.jsx(In, { ..._, className: "text-pink-500" });
|
|
4129
4129
|
// Archives
|
|
4130
4130
|
case "zip":
|
|
4131
4131
|
case "rar":
|
|
@@ -4133,28 +4133,28 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4133
4133
|
case "tar":
|
|
4134
4134
|
case "gz":
|
|
4135
4135
|
case "bz2":
|
|
4136
|
-
return /* @__PURE__ */
|
|
4136
|
+
return /* @__PURE__ */ m.jsx(Cn, { ..._, className: "text-yellow-600" });
|
|
4137
4137
|
// Code & Data
|
|
4138
4138
|
case "js":
|
|
4139
4139
|
case "jsx":
|
|
4140
|
-
return /* @__PURE__ */
|
|
4140
|
+
return /* @__PURE__ */ m.jsx(Pe, { ..._, className: "text-yellow-500" });
|
|
4141
4141
|
case "ts":
|
|
4142
4142
|
case "tsx":
|
|
4143
|
-
return /* @__PURE__ */
|
|
4143
|
+
return /* @__PURE__ */ m.jsx(Ln, { ..._, className: "text-blue-600" });
|
|
4144
4144
|
case "html":
|
|
4145
4145
|
case "htm":
|
|
4146
|
-
return /* @__PURE__ */
|
|
4146
|
+
return /* @__PURE__ */ m.jsx(Pe, { ..._, className: "text-orange-600" });
|
|
4147
4147
|
case "css":
|
|
4148
|
-
return /* @__PURE__ */
|
|
4148
|
+
return /* @__PURE__ */ m.jsx(Pe, { ..._, className: "text-blue-400" });
|
|
4149
4149
|
case "json":
|
|
4150
|
-
return /* @__PURE__ */
|
|
4150
|
+
return /* @__PURE__ */ m.jsx(xn, { ..._, className: "text-gray-700" });
|
|
4151
4151
|
case "xml":
|
|
4152
4152
|
case "yml":
|
|
4153
4153
|
case "yaml":
|
|
4154
|
-
return /* @__PURE__ */
|
|
4154
|
+
return /* @__PURE__ */ m.jsx(Pe, { ..._, className: "text-gray-600" });
|
|
4155
4155
|
// Default
|
|
4156
4156
|
default:
|
|
4157
|
-
return /* @__PURE__ */
|
|
4157
|
+
return /* @__PURE__ */ m.jsx(Bt, { ..._ });
|
|
4158
4158
|
}
|
|
4159
4159
|
}, c = {
|
|
4160
4160
|
sm: {
|
|
@@ -4190,16 +4190,16 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4190
4190
|
previewSize: "h-23 w-24"
|
|
4191
4191
|
}
|
|
4192
4192
|
}, { iconSize: l, textSize: h, previewSize: f } = c[e], g = i(r.name), S = a(g);
|
|
4193
|
-
return /* @__PURE__ */
|
|
4193
|
+
return /* @__PURE__ */ m.jsx("div", { className: `flex flex-col items-center ${t} mt-2 gap-1`, children: /* @__PURE__ */ m.jsxs(
|
|
4194
4194
|
"div",
|
|
4195
4195
|
{
|
|
4196
4196
|
className: "group flex max-w-[160px] cursor-default flex-col items-center justify-center rounded-lg border border-gray-200 bg-white p-3 shadow-sm transition-colors duration-200 hover:bg-gray-50 hover:shadow-md sm:max-w-[180px] md:max-w-[200px]",
|
|
4197
4197
|
children: [
|
|
4198
|
-
r.thumbnailBase64 ? /* @__PURE__ */
|
|
4198
|
+
r.thumbnailBase64 ? /* @__PURE__ */ m.jsx(
|
|
4199
4199
|
"div",
|
|
4200
4200
|
{
|
|
4201
4201
|
className: `${f} w-20 transform overflow-hidden rounded transition-transform duration-200 group-hover:scale-110`,
|
|
4202
|
-
children: /* @__PURE__ */
|
|
4202
|
+
children: /* @__PURE__ */ m.jsx(
|
|
4203
4203
|
"img",
|
|
4204
4204
|
{
|
|
4205
4205
|
src: `data:${r.type};base64,${r.thumbnailBase64}`,
|
|
@@ -4207,149 +4207,169 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4207
4207
|
}
|
|
4208
4208
|
)
|
|
4209
4209
|
}
|
|
4210
|
-
) : /* @__PURE__ */
|
|
4211
|
-
/* @__PURE__ */
|
|
4212
|
-
n && g && /* @__PURE__ */
|
|
4210
|
+
) : /* @__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(S, { size: l }) }),
|
|
4212
|
+
n && g && /* @__PURE__ */ m.jsx(
|
|
4213
4213
|
"div",
|
|
4214
4214
|
{
|
|
4215
4215
|
className: `${h} px-1 text-center font-medium break-all`,
|
|
4216
|
-
children: /* @__PURE__ */
|
|
4216
|
+
children: /* @__PURE__ */ m.jsx("span", { className: "inline-block rounded bg-gray-100 px-2 py-0.5 text-gray-700", children: g.toUpperCase() })
|
|
4217
4217
|
}
|
|
4218
4218
|
)
|
|
4219
4219
|
] }),
|
|
4220
|
-
/* @__PURE__ */
|
|
4221
|
-
/* @__PURE__ */
|
|
4222
|
-
/* @__PURE__ */
|
|
4223
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ m.jsxs("div", { className: "flex flex-row items-center justify-between gap-1 p-2", children: [
|
|
4221
|
+
/* @__PURE__ */ m.jsxs("div", { className: "mt-1", children: [
|
|
4222
|
+
/* @__PURE__ */ m.jsx("p", { className: "w-25 truncate text-start text-xs font-medium text-gray-800", children: r.name }),
|
|
4223
|
+
/* @__PURE__ */ m.jsxs("p", { className: "text-start text-xs text-gray-500", children: [
|
|
4224
4224
|
"(",
|
|
4225
4225
|
(r.size / 1024).toFixed(1),
|
|
4226
4226
|
" KB)"
|
|
4227
4227
|
] })
|
|
4228
4228
|
] }),
|
|
4229
|
-
s && /* @__PURE__ */
|
|
4229
|
+
s && /* @__PURE__ */ m.jsx(
|
|
4230
4230
|
"button",
|
|
4231
4231
|
{
|
|
4232
4232
|
className: "h-6 w-6 rounded-md p-0 text-gray-400 transition hover:bg-gray-100 hover:text-gray-700",
|
|
4233
4233
|
"aria-label": "Remove File",
|
|
4234
4234
|
onClick: () => o(r.id),
|
|
4235
|
-
children: /* @__PURE__ */
|
|
4235
|
+
children: /* @__PURE__ */ m.jsx(Un, { className: "h-10 w-10 text-gray-400" })
|
|
4236
4236
|
}
|
|
4237
4237
|
)
|
|
4238
4238
|
] }),
|
|
4239
|
-
/* @__PURE__ */
|
|
4239
|
+
/* @__PURE__ */ m.jsx(Wn, { progress: r.progress })
|
|
4240
4240
|
]
|
|
4241
4241
|
}
|
|
4242
4242
|
) });
|
|
4243
|
-
}
|
|
4243
|
+
};
|
|
4244
|
+
function qn(r) {
|
|
4245
|
+
return je({ 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
|
+
}
|
|
4247
|
+
const Vn = ({ 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
|
+
/* @__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
|
+
"img",
|
|
4250
|
+
{
|
|
4251
|
+
src: `data:${e.type};base64,${e.thumbnailBase64}`,
|
|
4252
|
+
className: "h-full w-full object-cover"
|
|
4253
|
+
}
|
|
4254
|
+
) : /* @__PURE__ */ m.jsx("div", { className: "flex h-full w-full items-center justify-center text-gray-500", children: /* @__PURE__ */ m.jsx(qn, { size: 24 }) }) }),
|
|
4255
|
+
/* @__PURE__ */ m.jsxs("div", { className: "flex flex-col flex-1 min-w-0", children: [
|
|
4256
|
+
/* @__PURE__ */ m.jsx("span", { className: "text-xs font-medium text-gray-800 truncate w-60", children: e.name }),
|
|
4257
|
+
/* @__PURE__ */ m.jsxs("span", { className: "text-xs text-gray-500", children: [
|
|
4258
|
+
(e.size / 1024).toFixed(1),
|
|
4259
|
+
" KB"
|
|
4260
|
+
] })
|
|
4261
|
+
] })
|
|
4262
|
+
] }, e.id)) }), Jn = ({
|
|
4244
4263
|
sessionUrl: r,
|
|
4245
4264
|
refreshTokenUrl: e,
|
|
4246
4265
|
header: t,
|
|
4247
4266
|
showHeader: n = !1,
|
|
4248
4267
|
showLogo: s = !0,
|
|
4249
4268
|
clickQrCodeToReload: o = !1,
|
|
4250
|
-
size: i = "large"
|
|
4269
|
+
size: i = "large",
|
|
4270
|
+
filePreviewMode: a = "grid"
|
|
4251
4271
|
}) => {
|
|
4252
|
-
const [
|
|
4272
|
+
const [c, l] = te(!0), [h, f] = te(160), [g, S] = te(""), [y, _] = te(""), [j, P] = te(
|
|
4253
4273
|
"w-32 h-32 md:w-40 md:h-40"
|
|
4254
|
-
), [
|
|
4274
|
+
), [B, D] = te("w-2 h-2"), [L, v] = te("sm"), [V, Y] = te(!1), [ee, se] = Or(
|
|
4255
4275
|
"qrcode-last-session-ids",
|
|
4256
4276
|
[]
|
|
4257
|
-
), [
|
|
4277
|
+
), [le, Q] = te(!1), M = me(null), J = me(null), Z = me(ee), X = me(""), U = me(0), [re, G] = te([]);
|
|
4258
4278
|
he(() => {
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4261
|
-
}, [
|
|
4262
|
-
async function
|
|
4279
|
+
const C = [...new Set(ee)];
|
|
4280
|
+
Z.current = C;
|
|
4281
|
+
}, [ee]);
|
|
4282
|
+
async function ue() {
|
|
4263
4283
|
try {
|
|
4264
|
-
if (!
|
|
4265
|
-
const
|
|
4284
|
+
if (!X.current || Ir(X.current, 60)) {
|
|
4285
|
+
const C = await Rt(e, {
|
|
4266
4286
|
timeout: 16e4
|
|
4267
4287
|
});
|
|
4268
|
-
|
|
4288
|
+
X.current = C.access_token;
|
|
4269
4289
|
}
|
|
4270
|
-
return
|
|
4271
|
-
} catch (
|
|
4272
|
-
throw console.error("Error fetching access token:",
|
|
4290
|
+
return X.current;
|
|
4291
|
+
} catch (C) {
|
|
4292
|
+
throw console.error("Error fetching access token:", C), C;
|
|
4273
4293
|
} finally {
|
|
4274
4294
|
}
|
|
4275
4295
|
}
|
|
4276
|
-
const
|
|
4277
|
-
if (!
|
|
4278
|
-
|
|
4296
|
+
const p = async () => {
|
|
4297
|
+
if (!J.current) {
|
|
4298
|
+
l(!0);
|
|
4279
4299
|
try {
|
|
4280
|
-
const
|
|
4300
|
+
const C = await Rt(
|
|
4281
4301
|
r,
|
|
4282
|
-
{ lastSessionIds:
|
|
4302
|
+
{ lastSessionIds: Z.current },
|
|
4283
4303
|
{
|
|
4284
4304
|
timeout: 3e5
|
|
4285
4305
|
}
|
|
4286
4306
|
);
|
|
4287
|
-
|
|
4288
|
-
const
|
|
4289
|
-
console.log("Generated Device login URL:",
|
|
4307
|
+
J.current = C;
|
|
4308
|
+
const x = k(C);
|
|
4309
|
+
console.log("Generated Device login URL:", x), S(x), _(C.hubUrl), se([C.sessionId]);
|
|
4290
4310
|
} catch {
|
|
4291
|
-
|
|
4311
|
+
V || (console.log("Enabling retry button..."), Y(!0), l(!1));
|
|
4292
4312
|
} finally {
|
|
4293
4313
|
}
|
|
4294
4314
|
}
|
|
4295
|
-
},
|
|
4296
|
-
|
|
4315
|
+
}, u = async () => {
|
|
4316
|
+
J.current && (Q(!1), Y(!1), G([]), J.current = null, M.current = null);
|
|
4297
4317
|
};
|
|
4298
|
-
function
|
|
4299
|
-
return typeof
|
|
4318
|
+
function b(C) {
|
|
4319
|
+
return typeof C == "string" && C.trim().length === 0;
|
|
4300
4320
|
}
|
|
4301
|
-
const
|
|
4302
|
-
if (
|
|
4321
|
+
const T = async (C) => {
|
|
4322
|
+
if (b(C)) {
|
|
4303
4323
|
console.log("Hub URL is empty, cannot create connection.");
|
|
4304
4324
|
return;
|
|
4305
4325
|
}
|
|
4306
4326
|
try {
|
|
4307
|
-
|
|
4327
|
+
M.current = new pn().withUrl(C, {
|
|
4308
4328
|
withCredentials: !1,
|
|
4309
4329
|
transport: 1,
|
|
4310
4330
|
//prefer wss
|
|
4311
|
-
accessTokenFactory: () =>
|
|
4331
|
+
accessTokenFactory: () => ue()
|
|
4312
4332
|
}).configureLogging(d.Information).withAutomaticReconnect({
|
|
4313
|
-
nextRetryDelayInMilliseconds: (
|
|
4333
|
+
nextRetryDelayInMilliseconds: (x) => Math.min(
|
|
4314
4334
|
16e3,
|
|
4315
|
-
Math.pow(2,
|
|
4335
|
+
Math.pow(2, x.previousRetryCount) * 1e3
|
|
4316
4336
|
)
|
|
4317
|
-
}).build(),
|
|
4318
|
-
console.log(
|
|
4319
|
-
(
|
|
4337
|
+
}).build(), M.current.on("FileAdded", (x) => {
|
|
4338
|
+
console.log(x), G(
|
|
4339
|
+
(I) => I.some((W) => W.name === x.name) ? I : [...I, x]
|
|
4320
4340
|
);
|
|
4321
|
-
}),
|
|
4322
|
-
|
|
4323
|
-
}),
|
|
4341
|
+
}), M.current.on("FileRemoved", (x) => {
|
|
4342
|
+
G((I) => I.some((W) => W.name === x.name) ? I.filter((W) => W.name !== x.name) : I);
|
|
4343
|
+
}), M.current.on(
|
|
4324
4344
|
"FileProgress",
|
|
4325
|
-
(
|
|
4326
|
-
console.log(
|
|
4327
|
-
(
|
|
4328
|
-
(
|
|
4345
|
+
(x, I) => {
|
|
4346
|
+
console.log(x, I), G(
|
|
4347
|
+
(W) => W.map(
|
|
4348
|
+
(w) => w.id === x ? { ...w, progress: I } : w
|
|
4329
4349
|
)
|
|
4330
4350
|
);
|
|
4331
4351
|
}
|
|
4332
|
-
),
|
|
4333
|
-
console.log("Files cleared"),
|
|
4334
|
-
}),
|
|
4335
|
-
console.log("Session disconnected:",
|
|
4336
|
-
}),
|
|
4337
|
-
console.log("Session reset:",
|
|
4338
|
-
}),
|
|
4339
|
-
console.log("Connection lost, attempting to reconnect...",
|
|
4340
|
-
}),
|
|
4341
|
-
console.log("Connection re-established:",
|
|
4342
|
-
}),
|
|
4343
|
-
console.log("Connection closed",
|
|
4344
|
-
}),
|
|
4345
|
-
} catch (
|
|
4346
|
-
console.error("SignalR Connection failed:",
|
|
4352
|
+
), M.current.on("FilesCleared", () => {
|
|
4353
|
+
console.log("Files cleared"), G([]);
|
|
4354
|
+
}), M.current.on("sessionDisconnected", (x) => {
|
|
4355
|
+
console.log("Session disconnected:", x), u();
|
|
4356
|
+
}), M.current.on("sessionReset", (x) => {
|
|
4357
|
+
console.log("Session reset:", x), G([]);
|
|
4358
|
+
}), M.current.onreconnecting((x) => {
|
|
4359
|
+
console.log("Connection lost, attempting to reconnect...", x), U.current >= 2 ? Q(!1) : U.current += 1, console.log("Retry count:", U.current);
|
|
4360
|
+
}), M.current.onreconnected((x) => {
|
|
4361
|
+
console.log("Connection re-established:", x), Q(!0), U.current = 0;
|
|
4362
|
+
}), M.current.onclose((x) => {
|
|
4363
|
+
console.log("Connection closed", x), Q(!1), G([]);
|
|
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);
|
|
4347
4367
|
} finally {
|
|
4348
4368
|
}
|
|
4349
|
-
},
|
|
4350
|
-
await
|
|
4351
|
-
},
|
|
4352
|
-
Rr(
|
|
4369
|
+
}, E = async () => {
|
|
4370
|
+
await p(), await T(J.current.hubUrl ?? "");
|
|
4371
|
+
}, O = Zt(
|
|
4372
|
+
Rr(E, 1e3),
|
|
4353
4373
|
[]
|
|
4354
4374
|
);
|
|
4355
4375
|
he(() => {
|
|
@@ -4357,118 +4377,118 @@ const Wn = ({ progress: r = 0 }) => /* @__PURE__ */ v.jsxs("div", { className: "
|
|
|
4357
4377
|
console.log("No sessionUrl provided, skipping session creation.");
|
|
4358
4378
|
return;
|
|
4359
4379
|
}
|
|
4360
|
-
return (async () => await
|
|
4361
|
-
|
|
4362
|
-
}),
|
|
4380
|
+
return (async () => await E())(), () => {
|
|
4381
|
+
M.current && (M.current.off("FileAdded", (C) => {
|
|
4382
|
+
}), M.current.off(
|
|
4363
4383
|
"FileRemoved",
|
|
4364
|
-
(
|
|
4384
|
+
(C) => {
|
|
4365
4385
|
}
|
|
4366
|
-
),
|
|
4386
|
+
), M.current.stop().catch(console.error));
|
|
4367
4387
|
};
|
|
4368
4388
|
}, []);
|
|
4369
|
-
const
|
|
4370
|
-
|
|
4389
|
+
const R = async () => {
|
|
4390
|
+
G([]), await u(), await O();
|
|
4371
4391
|
};
|
|
4372
|
-
function
|
|
4373
|
-
return new URL(
|
|
4392
|
+
function k(C) {
|
|
4393
|
+
return new URL(C.deviceLoginUrl).toString();
|
|
4374
4394
|
}
|
|
4375
4395
|
return he(() => {
|
|
4376
4396
|
switch (i) {
|
|
4377
4397
|
case "small":
|
|
4378
|
-
P("w-16 h-16 md:w-20 md:h-20"),
|
|
4398
|
+
P("w-16 h-16 md:w-20 md:h-20"), D("w-2 h-2"), f(200), v("xlg");
|
|
4379
4399
|
break;
|
|
4380
4400
|
case "medium":
|
|
4381
|
-
P("w-24 h-24 md:w-30 md:h-30"),
|
|
4401
|
+
P("w-24 h-24 md:w-30 md:h-30"), D("w-2 h-2"), f(200), v("xlg");
|
|
4382
4402
|
break;
|
|
4383
4403
|
case "large":
|
|
4384
|
-
P("w-32 h-32 md:w-40 md:h-40"),
|
|
4404
|
+
P("w-32 h-32 md:w-40 md:h-40"), D("w-2 h-2"), f(200), v("xlg");
|
|
4385
4405
|
break;
|
|
4386
4406
|
case "xlarge":
|
|
4387
|
-
P("w-40 h-40 md:w-48 md:h-48"),
|
|
4407
|
+
P("w-40 h-40 md:w-48 md:h-48"), D("w-2 h-2"), f(200), v("xlg");
|
|
4388
4408
|
break;
|
|
4389
4409
|
}
|
|
4390
4410
|
return () => {
|
|
4391
4411
|
};
|
|
4392
|
-
}, [i]), /* @__PURE__ */
|
|
4393
|
-
|
|
4394
|
-
/* @__PURE__ */
|
|
4395
|
-
/* @__PURE__ */
|
|
4412
|
+
}, [i]), /* @__PURE__ */ m.jsxs("section", { className: "p-2", children: [
|
|
4413
|
+
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
|
+
/* @__PURE__ */ m.jsx("div", { className: "animate-spin rounded-full h-6 w-6 border-t-2 border-blue-800 border-dashed" }),
|
|
4415
|
+
/* @__PURE__ */ m.jsx("div", { className: "text-center h-10 w-10", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-900", children: "Loading..." }) })
|
|
4396
4416
|
] }) }),
|
|
4397
|
-
!
|
|
4398
|
-
/* @__PURE__ */
|
|
4399
|
-
/* @__PURE__ */
|
|
4417
|
+
!c && V && /* @__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
|
+
/* @__PURE__ */ m.jsx("div", { className: "text-center text-xs", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-900", children: "Cannot create session" }) }),
|
|
4419
|
+
/* @__PURE__ */ m.jsx(
|
|
4400
4420
|
"button",
|
|
4401
4421
|
{
|
|
4402
4422
|
onClick: async () => {
|
|
4403
|
-
await
|
|
4423
|
+
await R();
|
|
4404
4424
|
},
|
|
4405
4425
|
className: "bg-blue-300 text-white py-1 px-2 rounded-md hover:bg-blue-500 transition-colors",
|
|
4406
|
-
children: /* @__PURE__ */
|
|
4426
|
+
children: /* @__PURE__ */ m.jsx(It, { className: "h-4 w-4" })
|
|
4407
4427
|
}
|
|
4408
4428
|
)
|
|
4409
4429
|
] }) }),
|
|
4410
|
-
/* @__PURE__ */
|
|
4411
|
-
n && /* @__PURE__ */
|
|
4412
|
-
/* @__PURE__ */
|
|
4430
|
+
/* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center text-center", children: [
|
|
4431
|
+
n && /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx("header", { className: "mb-2", children: /* @__PURE__ */ m.jsx("h1", { className: "text-xl font-semibold text-gray-600", children: t }) }) }),
|
|
4432
|
+
/* @__PURE__ */ m.jsxs(
|
|
4413
4433
|
"div",
|
|
4414
4434
|
{
|
|
4415
4435
|
"aria-label": "QR Code for file upload",
|
|
4416
4436
|
onClick: async () => {
|
|
4417
|
-
o && await
|
|
4437
|
+
o && await R();
|
|
4418
4438
|
},
|
|
4419
|
-
className: `bg-white p-2 rounded-2xl border-2 border-dashed ${
|
|
4439
|
+
className: `bg-white p-2 rounded-2xl border-2 border-dashed ${j} flex
|
|
4420
4440
|
border-gray-300 items-center justify-center transition-all duration-300 hover:shadow-lg hover:scale-105`,
|
|
4421
4441
|
children: [
|
|
4422
|
-
/* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4442
|
+
/* @__PURE__ */ m.jsxs("div", { className: "relative inline-block", children: [
|
|
4443
|
+
/* @__PURE__ */ m.jsx(
|
|
4424
4444
|
vr,
|
|
4425
4445
|
{
|
|
4426
|
-
value:
|
|
4427
|
-
size:
|
|
4446
|
+
value: g,
|
|
4447
|
+
size: h,
|
|
4428
4448
|
className: "w-full h-full"
|
|
4429
4449
|
}
|
|
4430
4450
|
),
|
|
4431
|
-
s && /* @__PURE__ */
|
|
4451
|
+
s && /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ m.jsx(
|
|
4432
4452
|
"div",
|
|
4433
4453
|
{
|
|
4434
|
-
className: `bg-white ${
|
|
4435
|
-
children: /* @__PURE__ */
|
|
4454
|
+
className: `bg-white ${B} rounded flex items-center justify-center`,
|
|
4455
|
+
children: /* @__PURE__ */ m.jsx("span", { className: "text-xs font-bold", children: /* @__PURE__ */ m.jsx(kr, { size: i, isConnected: le }) })
|
|
4436
4456
|
}
|
|
4437
4457
|
) }) })
|
|
4438
4458
|
] }),
|
|
4439
|
-
/* @__PURE__ */
|
|
4459
|
+
/* @__PURE__ */ m.jsxs("p", { className: "sr-only", children: [
|
|
4440
4460
|
"QR Code that allows uploads from ",
|
|
4441
|
-
|
|
4461
|
+
g
|
|
4442
4462
|
] })
|
|
4443
4463
|
]
|
|
4444
4464
|
}
|
|
4445
4465
|
),
|
|
4446
|
-
o ? /* @__PURE__ */
|
|
4466
|
+
o ? /* @__PURE__ */ m.jsx("div", { className: "flex flex-row mt-3", children: /* @__PURE__ */ m.jsx("p", { className: "text-gray-500", children: "Click QR code to reload" }) }) : /* @__PURE__ */ m.jsx("div", { className: "flex flex-row mt-3", children: /* @__PURE__ */ m.jsxs(
|
|
4447
4467
|
"button",
|
|
4448
4468
|
{
|
|
4449
4469
|
onClick: async () => {
|
|
4450
|
-
await
|
|
4470
|
+
await R();
|
|
4451
4471
|
},
|
|
4452
4472
|
className: "bg-gray-500 text-white py-2 px-4 rounded-md hover:bg-blue-800 transition-colors flex flex-row items-center",
|
|
4453
4473
|
children: [
|
|
4454
|
-
/* @__PURE__ */
|
|
4474
|
+
/* @__PURE__ */ m.jsx(It, { className: "h-4 w-4" }),
|
|
4455
4475
|
" ",
|
|
4456
|
-
/* @__PURE__ */
|
|
4476
|
+
/* @__PURE__ */ m.jsx("span", { className: "ml-3", children: "Reload" })
|
|
4457
4477
|
]
|
|
4458
4478
|
}
|
|
4459
4479
|
) }),
|
|
4460
|
-
/* @__PURE__ */
|
|
4480
|
+
/* @__PURE__ */ m.jsx("div", { className: "flex flex-row justify-center gap-1 flex-wrap", children: a === "grid" ? re.map((C, x) => /* @__PURE__ */ m.jsx(
|
|
4461
4481
|
Fn,
|
|
4462
4482
|
{
|
|
4463
|
-
file:
|
|
4464
|
-
size:
|
|
4483
|
+
file: C,
|
|
4484
|
+
size: L
|
|
4465
4485
|
},
|
|
4466
|
-
|
|
4467
|
-
)) }) })
|
|
4486
|
+
x
|
|
4487
|
+
)) : /* @__PURE__ */ m.jsx(Vn, { files: re }) })
|
|
4468
4488
|
] })
|
|
4469
4489
|
] });
|
|
4470
4490
|
};
|
|
4471
4491
|
export {
|
|
4472
|
-
|
|
4492
|
+
Jn as QrCodeGenerator
|
|
4473
4493
|
};
|
|
4474
4494
|
//# sourceMappingURL=qr-code-generator.es.js.map
|