@deviceinsight/ng-ui-scale-lib 9.20.0 → 9.23.0

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.
Files changed (27) hide show
  1. package/dist/{AccessEditModal-ee0139fb.js → AccessEditModal-16f1845c.js} +1 -1
  2. package/dist/{BundleManagementContainer-093786e5.js → BundleManagementContainer-4816289d.js} +1 -1
  3. package/dist/{BundlesContainer-54c9cc3a.js → BundlesContainer-64644a1e.js} +2 -2
  4. package/dist/{ContextBarContext-0c28ce9d.js → ContextBarContext-61e5b465.js} +13758 -13632
  5. package/dist/{DatapointImport-6d394cb5.js → DatapointImport-b25d7597.js} +24 -24
  6. package/dist/{FileUploadInput-a23ba785.js → FileUploadInput-f3bb848f.js} +1 -1
  7. package/dist/{Files-4fc0415e.js → Files-69421c29.js} +2 -2
  8. package/dist/GlobalPowerBiReports-18920d83.js +11081 -0
  9. package/dist/{Graph-2840eac2.js → Graph-5cf1608e.js} +1 -1
  10. package/dist/{JsonSettingWidget-8908d40b.js → JsonSettingWidget-1ab26371.js} +16 -17
  11. package/dist/{LicensesEditPage-3332b87c.js → LicensesEditPage-5b6975d2.js} +1 -1
  12. package/dist/{LicensesList-6254cd37.js → LicensesList-71cfff35.js} +1 -1
  13. package/dist/{PropertiesEditPage-5b148652.js → PropertiesEditPage-fec5cee1.js} +18 -20
  14. package/dist/{PropertiesList-06478803.js → PropertiesList-08d0d42e.js} +1 -1
  15. package/dist/{TemplateEditPage-94088888.js → TemplateEditPage-7d8ad12f.js} +45 -47
  16. package/dist/{TemplateTextInput-e8861a0f.js → TemplateTextInput-e4c1ccf0.js} +12 -13
  17. package/dist/{TemplatesListPage-866246c6.js → TemplatesListPage-a60e02d6.js} +2 -2
  18. package/dist/{UserGroupAssignments-6feae326.js → UserGroupAssignments-4d53e0ad.js} +1 -1
  19. package/dist/{UserGroupTheme-7ee8e92e.js → UserGroupTheme-07695780.js} +10 -12
  20. package/dist/api.d.ts +11 -3
  21. package/dist/api.js +54 -53
  22. package/dist/{index-34a2015c.js → index-3cf7ec87.js} +1138 -1117
  23. package/dist/index.js +2957 -2909
  24. package/package.json +1 -1
  25. package/dist/GlobalPowerBiReports-f9bf0765.js +0 -11079
  26. package/dist/objectWithoutPropertiesLoose-a4604547.js +0 -26
  27. package/dist/react-router-d38ecdf4.js +0 -1157
@@ -1,1157 +0,0 @@
1
- import T from "react";
2
- import { a6 as ke, av as _ } from "./ContextBarContext-0c28ce9d.js";
3
- import { _ as W, a as er } from "./objectWithoutPropertiesLoose-a4604547.js";
4
- function xe(e, r) {
5
- return xe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, n) {
6
- return o.__proto__ = n, o;
7
- }, xe(e, r);
8
- }
9
- function F(e, r) {
10
- e.prototype = Object.create(r.prototype), e.prototype.constructor = e, xe(e, r);
11
- }
12
- function Q(e) {
13
- return e.charAt(0) === "/";
14
- }
15
- function Ee(e, r) {
16
- for (var o = r, n = o + 1, t = e.length; n < t; o += 1, n += 1)
17
- e[o] = e[n];
18
- e.pop();
19
- }
20
- function rr(e, r) {
21
- r === void 0 && (r = "");
22
- var o = e && e.split("/") || [], n = r && r.split("/") || [], t = e && Q(e), c = r && Q(r), p = t || c;
23
- if (e && Q(e) ? n = o : o.length && (n.pop(), n = n.concat(o)), !n.length)
24
- return "/";
25
- var u;
26
- if (n.length) {
27
- var d = n[n.length - 1];
28
- u = d === "." || d === ".." || d === "";
29
- } else
30
- u = !1;
31
- for (var f = 0, s = n.length; s >= 0; s--) {
32
- var l = n[s];
33
- l === "." ? Ee(n, s) : l === ".." ? (Ee(n, s), f++) : f && (Ee(n, s), f--);
34
- }
35
- if (!p)
36
- for (; f--; f)
37
- n.unshift("..");
38
- p && n[0] !== "" && (!n[0] || !Q(n[0])) && n.unshift("");
39
- var v = n.join("/");
40
- return u && v.substr(-1) !== "/" && (v += "/"), v;
41
- }
42
- var tr = process.env.NODE_ENV === "production";
43
- function M(e, r) {
44
- if (!tr) {
45
- if (e)
46
- return;
47
- var o = "Warning: " + r;
48
- typeof console < "u" && console.warn(o);
49
- try {
50
- throw Error(o);
51
- } catch {
52
- }
53
- }
54
- }
55
- var nr = process.env.NODE_ENV === "production", _e = "Invariant failed";
56
- function j(e, r) {
57
- if (!e) {
58
- if (nr)
59
- throw new Error(_e);
60
- var o = typeof r == "function" ? r() : r, n = o ? "".concat(_e, ": ").concat(o) : _e;
61
- throw new Error(n);
62
- }
63
- }
64
- function or(e) {
65
- var r = e || "/", o = "", n = "", t = r.indexOf("#");
66
- t !== -1 && (n = r.substr(t), r = r.substr(0, t));
67
- var c = r.indexOf("?");
68
- return c !== -1 && (o = r.substr(c), r = r.substr(0, c)), {
69
- pathname: r,
70
- search: o === "?" ? "" : o,
71
- hash: n === "#" ? "" : n
72
- };
73
- }
74
- function Be(e) {
75
- var r = e.pathname, o = e.search, n = e.hash, t = r || "/";
76
- return o && o !== "?" && (t += o.charAt(0) === "?" ? o : "?" + o), n && n !== "#" && (t += n.charAt(0) === "#" ? n : "#" + n), t;
77
- }
78
- function B(e, r, o, n) {
79
- var t;
80
- typeof e == "string" ? (t = or(e), t.state = r) : (t = W({}, e), t.pathname === void 0 && (t.pathname = ""), t.search ? t.search.charAt(0) !== "?" && (t.search = "?" + t.search) : t.search = "", t.hash ? t.hash.charAt(0) !== "#" && (t.hash = "#" + t.hash) : t.hash = "", r !== void 0 && t.state === void 0 && (t.state = r));
81
- try {
82
- t.pathname = decodeURI(t.pathname);
83
- } catch (c) {
84
- throw c instanceof URIError ? new URIError('Pathname "' + t.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : c;
85
- }
86
- return o && (t.key = o), n ? t.pathname ? t.pathname.charAt(0) !== "/" && (t.pathname = rr(t.pathname, n.pathname)) : t.pathname = n.pathname : t.pathname || (t.pathname = "/"), t;
87
- }
88
- function ir() {
89
- var e = null;
90
- function r(p) {
91
- return process.env.NODE_ENV !== "production" && M(e == null, "A history supports only one prompt at a time"), e = p, function() {
92
- e === p && (e = null);
93
- };
94
- }
95
- function o(p, u, d, f) {
96
- if (e != null) {
97
- var s = typeof e == "function" ? e(p, u) : e;
98
- typeof s == "string" ? typeof d == "function" ? d(s, f) : (process.env.NODE_ENV !== "production" && M(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), f(!0)) : f(s !== !1);
99
- } else
100
- f(!0);
101
- }
102
- var n = [];
103
- function t(p) {
104
- var u = !0;
105
- function d() {
106
- u && p.apply(void 0, arguments);
107
- }
108
- return n.push(d), function() {
109
- u = !1, n = n.filter(function(f) {
110
- return f !== d;
111
- });
112
- };
113
- }
114
- function c() {
115
- for (var p = arguments.length, u = new Array(p), d = 0; d < p; d++)
116
- u[d] = arguments[d];
117
- n.forEach(function(f) {
118
- return f.apply(void 0, u);
119
- });
120
- }
121
- return {
122
- setPrompt: r,
123
- confirmTransitionTo: o,
124
- appendListener: t,
125
- notifyListeners: c
126
- };
127
- }
128
- function Me(e, r, o) {
129
- return Math.min(Math.max(e, r), o);
130
- }
131
- function ar(e) {
132
- e === void 0 && (e = {});
133
- var r = e, o = r.getUserConfirmation, n = r.initialEntries, t = n === void 0 ? ["/"] : n, c = r.initialIndex, p = c === void 0 ? 0 : c, u = r.keyLength, d = u === void 0 ? 6 : u, f = ir();
134
- function s(S) {
135
- W(C, S), C.length = C.entries.length, f.notifyListeners(C.location, C.action);
136
- }
137
- function l() {
138
- return Math.random().toString(36).substr(2, d);
139
- }
140
- var v = Me(p, 0, t.length - 1), h = t.map(function(S) {
141
- return typeof S == "string" ? B(S, void 0, l()) : B(S, void 0, S.key || l());
142
- }), m = Be;
143
- function N(S, w) {
144
- process.env.NODE_ENV !== "production" && M(!(typeof S == "object" && S.state !== void 0 && w !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
145
- var I = "PUSH", O = B(S, w, l(), C.location);
146
- f.confirmTransitionTo(O, I, o, function(Y) {
147
- if (Y) {
148
- var G = C.index, U = G + 1, L = C.entries.slice(0);
149
- L.length > U ? L.splice(U, L.length - U, O) : L.push(O), s({
150
- action: I,
151
- location: O,
152
- index: U,
153
- entries: L
154
- });
155
- }
156
- });
157
- }
158
- function P(S, w) {
159
- process.env.NODE_ENV !== "production" && M(!(typeof S == "object" && S.state !== void 0 && w !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
160
- var I = "REPLACE", O = B(S, w, l(), C.location);
161
- f.confirmTransitionTo(O, I, o, function(Y) {
162
- Y && (C.entries[C.index] = O, s({
163
- action: I,
164
- location: O
165
- }));
166
- });
167
- }
168
- function $(S) {
169
- var w = Me(C.index + S, 0, C.entries.length - 1), I = "POP", O = C.entries[w];
170
- f.confirmTransitionTo(O, I, o, function(Y) {
171
- Y ? s({
172
- action: I,
173
- location: O,
174
- index: w
175
- }) : s();
176
- });
177
- }
178
- function D() {
179
- $(-1);
180
- }
181
- function E() {
182
- $(1);
183
- }
184
- function y(S) {
185
- var w = C.index + S;
186
- return w >= 0 && w < C.entries.length;
187
- }
188
- function i(S) {
189
- return S === void 0 && (S = !1), f.setPrompt(S);
190
- }
191
- function A(S) {
192
- return f.appendListener(S);
193
- }
194
- var C = {
195
- length: h.length,
196
- action: "POP",
197
- location: h[v],
198
- index: v,
199
- entries: h,
200
- createHref: m,
201
- push: N,
202
- replace: P,
203
- go: $,
204
- goBack: D,
205
- goForward: E,
206
- canGo: y,
207
- block: i,
208
- listen: A
209
- };
210
- return C;
211
- }
212
- var H = { exports: {} }, sr = Array.isArray || function(e) {
213
- return Object.prototype.toString.call(e) == "[object Array]";
214
- }, te = sr;
215
- H.exports = Ke;
216
- H.exports.parse = Ce;
217
- H.exports.compile = fr;
218
- H.exports.tokensToFunction = He;
219
- H.exports.tokensToRegExp = Ge;
220
- var cr = new RegExp([
221
- // Match escaped characters that would otherwise appear in future matches.
222
- // This allows the user to escape special characters that won't transform.
223
- "(\\\\.)",
224
- // Match Express-style parameters and un-named parameters with a prefix
225
- // and optional suffixes. Matches appear as:
226
- //
227
- // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
228
- // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
229
- // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
230
- "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
231
- ].join("|"), "g");
232
- function Ce(e, r) {
233
- for (var o = [], n = 0, t = 0, c = "", p = r && r.delimiter || "/", u; (u = cr.exec(e)) != null; ) {
234
- var d = u[0], f = u[1], s = u.index;
235
- if (c += e.slice(t, s), t = s + d.length, f) {
236
- c += f[1];
237
- continue;
238
- }
239
- var l = e[t], v = u[2], h = u[3], m = u[4], N = u[5], P = u[6], $ = u[7];
240
- c && (o.push(c), c = "");
241
- var D = v != null && l != null && l !== v, E = P === "+" || P === "*", y = P === "?" || P === "*", i = v || p, A = m || N, C = v || (typeof o[o.length - 1] == "string" ? o[o.length - 1] : "");
242
- o.push({
243
- name: h || n++,
244
- prefix: v || "",
245
- delimiter: i,
246
- optional: y,
247
- repeat: E,
248
- partial: D,
249
- asterisk: !!$,
250
- pattern: A ? dr(A) : $ ? ".*" : ur(i, C)
251
- });
252
- }
253
- return t < e.length && (c += e.substr(t)), c && o.push(c), o;
254
- }
255
- function ur(e, r) {
256
- return !r || r.indexOf(e) > -1 ? "[^" + z(e) + "]+?" : z(r) + "|(?:(?!" + z(r) + ")[^" + z(e) + "])+?";
257
- }
258
- function fr(e, r) {
259
- return He(Ce(e, r), r);
260
- }
261
- function lr(e) {
262
- return encodeURI(e).replace(/[\/?#]/g, function(r) {
263
- return "%" + r.charCodeAt(0).toString(16).toUpperCase();
264
- });
265
- }
266
- function pr(e) {
267
- return encodeURI(e).replace(/[?#]/g, function(r) {
268
- return "%" + r.charCodeAt(0).toString(16).toUpperCase();
269
- });
270
- }
271
- function He(e, r) {
272
- for (var o = new Array(e.length), n = 0; n < e.length; n++)
273
- typeof e[n] == "object" && (o[n] = new RegExp("^(?:" + e[n].pattern + ")$", $e(r)));
274
- return function(t, c) {
275
- for (var p = "", u = t || {}, d = c || {}, f = d.pretty ? lr : encodeURIComponent, s = 0; s < e.length; s++) {
276
- var l = e[s];
277
- if (typeof l == "string") {
278
- p += l;
279
- continue;
280
- }
281
- var v = u[l.name], h;
282
- if (v == null)
283
- if (l.optional) {
284
- l.partial && (p += l.prefix);
285
- continue;
286
- } else
287
- throw new TypeError('Expected "' + l.name + '" to be defined');
288
- if (te(v)) {
289
- if (!l.repeat)
290
- throw new TypeError('Expected "' + l.name + '" to not repeat, but received `' + JSON.stringify(v) + "`");
291
- if (v.length === 0) {
292
- if (l.optional)
293
- continue;
294
- throw new TypeError('Expected "' + l.name + '" to not be empty');
295
- }
296
- for (var m = 0; m < v.length; m++) {
297
- if (h = f(v[m]), !o[s].test(h))
298
- throw new TypeError('Expected all "' + l.name + '" to match "' + l.pattern + '", but received `' + JSON.stringify(h) + "`");
299
- p += (m === 0 ? l.prefix : l.delimiter) + h;
300
- }
301
- continue;
302
- }
303
- if (h = l.asterisk ? pr(v) : f(v), !o[s].test(h))
304
- throw new TypeError('Expected "' + l.name + '" to match "' + l.pattern + '", but received "' + h + '"');
305
- p += l.prefix + h;
306
- }
307
- return p;
308
- };
309
- }
310
- function z(e) {
311
- return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
312
- }
313
- function dr(e) {
314
- return e.replace(/([=!:$\/()])/g, "\\$1");
315
- }
316
- function Pe(e, r) {
317
- return e.keys = r, e;
318
- }
319
- function $e(e) {
320
- return e && e.sensitive ? "" : "i";
321
- }
322
- function vr(e, r) {
323
- var o = e.source.match(/\((?!\?)/g);
324
- if (o)
325
- for (var n = 0; n < o.length; n++)
326
- r.push({
327
- name: n,
328
- prefix: null,
329
- delimiter: null,
330
- optional: !1,
331
- repeat: !1,
332
- partial: !1,
333
- asterisk: !1,
334
- pattern: null
335
- });
336
- return Pe(e, r);
337
- }
338
- function hr(e, r, o) {
339
- for (var n = [], t = 0; t < e.length; t++)
340
- n.push(Ke(e[t], r, o).source);
341
- var c = new RegExp("(?:" + n.join("|") + ")", $e(o));
342
- return Pe(c, r);
343
- }
344
- function mr(e, r, o) {
345
- return Ge(Ce(e, o), r, o);
346
- }
347
- function Ge(e, r, o) {
348
- te(r) || (o = /** @type {!Object} */
349
- r || o, r = []), o = o || {};
350
- for (var n = o.strict, t = o.end !== !1, c = "", p = 0; p < e.length; p++) {
351
- var u = e[p];
352
- if (typeof u == "string")
353
- c += z(u);
354
- else {
355
- var d = z(u.prefix), f = "(?:" + u.pattern + ")";
356
- r.push(u), u.repeat && (f += "(?:" + d + f + ")*"), u.optional ? u.partial ? f = d + "(" + f + ")?" : f = "(?:" + d + "(" + f + "))?" : f = d + "(" + f + ")", c += f;
357
- }
358
- }
359
- var s = z(o.delimiter || "/"), l = c.slice(-s.length) === s;
360
- return n || (c = (l ? c.slice(0, -s.length) : c) + "(?:" + s + "(?=$))?"), t ? c += "$" : c += n && l ? "" : "(?=" + s + "|$)", Pe(new RegExp("^" + c, $e(o)), r);
361
- }
362
- function Ke(e, r, o) {
363
- return te(r) || (o = /** @type {!Object} */
364
- r || o, r = []), o = o || {}, e instanceof RegExp ? vr(
365
- e,
366
- /** @type {!Array} */
367
- r
368
- ) : te(e) ? hr(
369
- /** @type {!Array} */
370
- e,
371
- /** @type {!Array} */
372
- r,
373
- o
374
- ) : mr(
375
- /** @type {string} */
376
- e,
377
- /** @type {!Array} */
378
- r,
379
- o
380
- );
381
- }
382
- var yr = H.exports;
383
- const Er = /* @__PURE__ */ ke(yr);
384
- var Re = { exports: {} }, b = {};
385
- /** @license React v16.13.1
386
- * react-is.production.min.js
387
- *
388
- * Copyright (c) Facebook, Inc. and its affiliates.
389
- *
390
- * This source code is licensed under the MIT license found in the
391
- * LICENSE file in the root directory of this source tree.
392
- */
393
- var Ne;
394
- function _r() {
395
- if (Ne)
396
- return b;
397
- Ne = 1;
398
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
399
- function E(i) {
400
- if (typeof i == "object" && i !== null) {
401
- var A = i.$$typeof;
402
- switch (A) {
403
- case r:
404
- switch (i = i.type, i) {
405
- case d:
406
- case f:
407
- case n:
408
- case c:
409
- case t:
410
- case l:
411
- return i;
412
- default:
413
- switch (i = i && i.$$typeof, i) {
414
- case u:
415
- case s:
416
- case m:
417
- case h:
418
- case p:
419
- return i;
420
- default:
421
- return A;
422
- }
423
- }
424
- case o:
425
- return A;
426
- }
427
- }
428
- }
429
- function y(i) {
430
- return E(i) === f;
431
- }
432
- return b.AsyncMode = d, b.ConcurrentMode = f, b.ContextConsumer = u, b.ContextProvider = p, b.Element = r, b.ForwardRef = s, b.Fragment = n, b.Lazy = m, b.Memo = h, b.Portal = o, b.Profiler = c, b.StrictMode = t, b.Suspense = l, b.isAsyncMode = function(i) {
433
- return y(i) || E(i) === d;
434
- }, b.isConcurrentMode = y, b.isContextConsumer = function(i) {
435
- return E(i) === u;
436
- }, b.isContextProvider = function(i) {
437
- return E(i) === p;
438
- }, b.isElement = function(i) {
439
- return typeof i == "object" && i !== null && i.$$typeof === r;
440
- }, b.isForwardRef = function(i) {
441
- return E(i) === s;
442
- }, b.isFragment = function(i) {
443
- return E(i) === n;
444
- }, b.isLazy = function(i) {
445
- return E(i) === m;
446
- }, b.isMemo = function(i) {
447
- return E(i) === h;
448
- }, b.isPortal = function(i) {
449
- return E(i) === o;
450
- }, b.isProfiler = function(i) {
451
- return E(i) === c;
452
- }, b.isStrictMode = function(i) {
453
- return E(i) === t;
454
- }, b.isSuspense = function(i) {
455
- return E(i) === l;
456
- }, b.isValidElementType = function(i) {
457
- return typeof i == "string" || typeof i == "function" || i === n || i === f || i === c || i === t || i === l || i === v || typeof i == "object" && i !== null && (i.$$typeof === m || i.$$typeof === h || i.$$typeof === p || i.$$typeof === u || i.$$typeof === s || i.$$typeof === P || i.$$typeof === $ || i.$$typeof === D || i.$$typeof === N);
458
- }, b.typeOf = E, b;
459
- }
460
- var g = {};
461
- /** @license React v16.13.1
462
- * react-is.development.js
463
- *
464
- * Copyright (c) Facebook, Inc. and its affiliates.
465
- *
466
- * This source code is licensed under the MIT license found in the
467
- * LICENSE file in the root directory of this source tree.
468
- */
469
- var we;
470
- function br() {
471
- return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
472
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
473
- function E(a) {
474
- return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
475
- a === n || a === f || a === c || a === t || a === l || a === v || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === h || a.$$typeof === p || a.$$typeof === u || a.$$typeof === s || a.$$typeof === P || a.$$typeof === $ || a.$$typeof === D || a.$$typeof === N);
476
- }
477
- function y(a) {
478
- if (typeof a == "object" && a !== null) {
479
- var q = a.$$typeof;
480
- switch (q) {
481
- case r:
482
- var V = a.type;
483
- switch (V) {
484
- case d:
485
- case f:
486
- case n:
487
- case c:
488
- case t:
489
- case l:
490
- return V;
491
- default:
492
- var J = V && V.$$typeof;
493
- switch (J) {
494
- case u:
495
- case s:
496
- case m:
497
- case h:
498
- case p:
499
- return J;
500
- default:
501
- return q;
502
- }
503
- }
504
- case o:
505
- return q;
506
- }
507
- }
508
- }
509
- var i = d, A = f, C = u, S = p, w = r, I = s, O = n, Y = m, G = h, U = o, L = c, oe = t, ie = l, K = !1;
510
- function ae(a) {
511
- return K || (K = !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.")), X(a) || y(a) === d;
512
- }
513
- function X(a) {
514
- return y(a) === f;
515
- }
516
- function se(a) {
517
- return y(a) === u;
518
- }
519
- function ce(a) {
520
- return y(a) === p;
521
- }
522
- function ue(a) {
523
- return typeof a == "object" && a !== null && a.$$typeof === r;
524
- }
525
- function fe(a) {
526
- return y(a) === s;
527
- }
528
- function le(a) {
529
- return y(a) === n;
530
- }
531
- function pe(a) {
532
- return y(a) === m;
533
- }
534
- function de(a) {
535
- return y(a) === h;
536
- }
537
- function ve(a) {
538
- return y(a) === o;
539
- }
540
- function he(a) {
541
- return y(a) === c;
542
- }
543
- function me(a) {
544
- return y(a) === t;
545
- }
546
- function ye(a) {
547
- return y(a) === l;
548
- }
549
- g.AsyncMode = i, g.ConcurrentMode = A, g.ContextConsumer = C, g.ContextProvider = S, g.Element = w, g.ForwardRef = I, g.Fragment = O, g.Lazy = Y, g.Memo = G, g.Portal = U, g.Profiler = L, g.StrictMode = oe, g.Suspense = ie, g.isAsyncMode = ae, g.isConcurrentMode = X, g.isContextConsumer = se, g.isContextProvider = ce, g.isElement = ue, g.isForwardRef = fe, g.isFragment = le, g.isLazy = pe, g.isMemo = de, g.isPortal = ve, g.isProfiler = he, g.isStrictMode = me, g.isSuspense = ye, g.isValidElementType = E, g.typeOf = y;
550
- }()), g;
551
- }
552
- process.env.NODE_ENV === "production" ? Re.exports = _r() : Re.exports = br();
553
- var gr = Re.exports, Se = { exports: {} }, x = {};
554
- /** @license React v16.13.1
555
- * react-is.production.min.js
556
- *
557
- * Copyright (c) Facebook, Inc. and its affiliates.
558
- *
559
- * This source code is licensed under the MIT license found in the
560
- * LICENSE file in the root directory of this source tree.
561
- */
562
- var Oe;
563
- function xr() {
564
- if (Oe)
565
- return x;
566
- Oe = 1;
567
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
568
- function E(i) {
569
- if (typeof i == "object" && i !== null) {
570
- var A = i.$$typeof;
571
- switch (A) {
572
- case r:
573
- switch (i = i.type, i) {
574
- case d:
575
- case f:
576
- case n:
577
- case c:
578
- case t:
579
- case l:
580
- return i;
581
- default:
582
- switch (i = i && i.$$typeof, i) {
583
- case u:
584
- case s:
585
- case m:
586
- case h:
587
- case p:
588
- return i;
589
- default:
590
- return A;
591
- }
592
- }
593
- case o:
594
- return A;
595
- }
596
- }
597
- }
598
- function y(i) {
599
- return E(i) === f;
600
- }
601
- return x.AsyncMode = d, x.ConcurrentMode = f, x.ContextConsumer = u, x.ContextProvider = p, x.Element = r, x.ForwardRef = s, x.Fragment = n, x.Lazy = m, x.Memo = h, x.Portal = o, x.Profiler = c, x.StrictMode = t, x.Suspense = l, x.isAsyncMode = function(i) {
602
- return y(i) || E(i) === d;
603
- }, x.isConcurrentMode = y, x.isContextConsumer = function(i) {
604
- return E(i) === u;
605
- }, x.isContextProvider = function(i) {
606
- return E(i) === p;
607
- }, x.isElement = function(i) {
608
- return typeof i == "object" && i !== null && i.$$typeof === r;
609
- }, x.isForwardRef = function(i) {
610
- return E(i) === s;
611
- }, x.isFragment = function(i) {
612
- return E(i) === n;
613
- }, x.isLazy = function(i) {
614
- return E(i) === m;
615
- }, x.isMemo = function(i) {
616
- return E(i) === h;
617
- }, x.isPortal = function(i) {
618
- return E(i) === o;
619
- }, x.isProfiler = function(i) {
620
- return E(i) === c;
621
- }, x.isStrictMode = function(i) {
622
- return E(i) === t;
623
- }, x.isSuspense = function(i) {
624
- return E(i) === l;
625
- }, x.isValidElementType = function(i) {
626
- return typeof i == "string" || typeof i == "function" || i === n || i === f || i === c || i === t || i === l || i === v || typeof i == "object" && i !== null && (i.$$typeof === m || i.$$typeof === h || i.$$typeof === p || i.$$typeof === u || i.$$typeof === s || i.$$typeof === P || i.$$typeof === $ || i.$$typeof === D || i.$$typeof === N);
627
- }, x.typeOf = E, x;
628
- }
629
- var R = {};
630
- /** @license React v16.13.1
631
- * react-is.development.js
632
- *
633
- * Copyright (c) Facebook, Inc. and its affiliates.
634
- *
635
- * This source code is licensed under the MIT license found in the
636
- * LICENSE file in the root directory of this source tree.
637
- */
638
- var De;
639
- function Rr() {
640
- return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
641
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
642
- function E(a) {
643
- return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
644
- a === n || a === f || a === c || a === t || a === l || a === v || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === h || a.$$typeof === p || a.$$typeof === u || a.$$typeof === s || a.$$typeof === P || a.$$typeof === $ || a.$$typeof === D || a.$$typeof === N);
645
- }
646
- function y(a) {
647
- if (typeof a == "object" && a !== null) {
648
- var q = a.$$typeof;
649
- switch (q) {
650
- case r:
651
- var V = a.type;
652
- switch (V) {
653
- case d:
654
- case f:
655
- case n:
656
- case c:
657
- case t:
658
- case l:
659
- return V;
660
- default:
661
- var J = V && V.$$typeof;
662
- switch (J) {
663
- case u:
664
- case s:
665
- case m:
666
- case h:
667
- case p:
668
- return J;
669
- default:
670
- return q;
671
- }
672
- }
673
- case o:
674
- return q;
675
- }
676
- }
677
- }
678
- var i = d, A = f, C = u, S = p, w = r, I = s, O = n, Y = m, G = h, U = o, L = c, oe = t, ie = l, K = !1;
679
- function ae(a) {
680
- return K || (K = !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.")), X(a) || y(a) === d;
681
- }
682
- function X(a) {
683
- return y(a) === f;
684
- }
685
- function se(a) {
686
- return y(a) === u;
687
- }
688
- function ce(a) {
689
- return y(a) === p;
690
- }
691
- function ue(a) {
692
- return typeof a == "object" && a !== null && a.$$typeof === r;
693
- }
694
- function fe(a) {
695
- return y(a) === s;
696
- }
697
- function le(a) {
698
- return y(a) === n;
699
- }
700
- function pe(a) {
701
- return y(a) === m;
702
- }
703
- function de(a) {
704
- return y(a) === h;
705
- }
706
- function ve(a) {
707
- return y(a) === o;
708
- }
709
- function he(a) {
710
- return y(a) === c;
711
- }
712
- function me(a) {
713
- return y(a) === t;
714
- }
715
- function ye(a) {
716
- return y(a) === l;
717
- }
718
- R.AsyncMode = i, R.ConcurrentMode = A, R.ContextConsumer = C, R.ContextProvider = S, R.Element = w, R.ForwardRef = I, R.Fragment = O, R.Lazy = Y, R.Memo = G, R.Portal = U, R.Profiler = L, R.StrictMode = oe, R.Suspense = ie, R.isAsyncMode = ae, R.isConcurrentMode = X, R.isContextConsumer = se, R.isContextProvider = ce, R.isElement = ue, R.isForwardRef = fe, R.isFragment = le, R.isLazy = pe, R.isMemo = de, R.isPortal = ve, R.isProfiler = he, R.isStrictMode = me, R.isSuspense = ye, R.isValidElementType = E, R.typeOf = y;
719
- }()), R;
720
- }
721
- process.env.NODE_ENV === "production" ? Se.exports = xr() : Se.exports = Rr();
722
- var Sr = Se.exports, Xe = Sr, Tr = {
723
- $$typeof: !0,
724
- render: !0,
725
- defaultProps: !0,
726
- displayName: !0,
727
- propTypes: !0
728
- }, Cr = {
729
- $$typeof: !0,
730
- compare: !0,
731
- defaultProps: !0,
732
- displayName: !0,
733
- propTypes: !0,
734
- type: !0
735
- }, Je = {};
736
- Je[Xe.ForwardRef] = Tr;
737
- Je[Xe.Memo] = Cr;
738
- var k = 1073741823, Ie = typeof globalThis < "u" ? (
739
- // eslint-disable-next-line no-undef
740
- globalThis
741
- ) : typeof window < "u" ? window : typeof global < "u" ? global : {};
742
- function Pr() {
743
- var e = "__global_unique_id__";
744
- return Ie[e] = (Ie[e] || 0) + 1;
745
- }
746
- function $r(e, r) {
747
- return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
748
- }
749
- function Ar(e) {
750
- var r = [];
751
- return {
752
- on: function(n) {
753
- r.push(n);
754
- },
755
- off: function(n) {
756
- r = r.filter(function(t) {
757
- return t !== n;
758
- });
759
- },
760
- get: function() {
761
- return e;
762
- },
763
- set: function(n, t) {
764
- e = n, r.forEach(function(c) {
765
- return c(e, t);
766
- });
767
- }
768
- };
769
- }
770
- function Mr(e) {
771
- return Array.isArray(e) ? e[0] : e;
772
- }
773
- function Nr(e, r) {
774
- var o, n, t = "__create-react-context-" + Pr() + "__", c = /* @__PURE__ */ function(u) {
775
- F(d, u);
776
- function d() {
777
- for (var s, l = arguments.length, v = new Array(l), h = 0; h < l; h++)
778
- v[h] = arguments[h];
779
- return s = u.call.apply(u, [this].concat(v)) || this, s.emitter = Ar(s.props.value), s;
780
- }
781
- var f = d.prototype;
782
- return f.getChildContext = function() {
783
- var l;
784
- return l = {}, l[t] = this.emitter, l;
785
- }, f.componentWillReceiveProps = function(l) {
786
- if (this.props.value !== l.value) {
787
- var v = this.props.value, h = l.value, m;
788
- $r(v, h) ? m = 0 : (m = typeof r == "function" ? r(v, h) : k, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && M((m & k) === m, "calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: " + m), m |= 0, m !== 0 && this.emitter.set(l.value, m));
789
- }
790
- }, f.render = function() {
791
- return this.props.children;
792
- }, d;
793
- }(T.Component);
794
- c.childContextTypes = (o = {}, o[t] = _.object.isRequired, o);
795
- var p = /* @__PURE__ */ function(u) {
796
- F(d, u);
797
- function d() {
798
- for (var s, l = arguments.length, v = new Array(l), h = 0; h < l; h++)
799
- v[h] = arguments[h];
800
- return s = u.call.apply(u, [this].concat(v)) || this, s.observedBits = void 0, s.state = {
801
- value: s.getValue()
802
- }, s.onUpdate = function(m, N) {
803
- var P = s.observedBits | 0;
804
- P & N && s.setState({
805
- value: s.getValue()
806
- });
807
- }, s;
808
- }
809
- var f = d.prototype;
810
- return f.componentWillReceiveProps = function(l) {
811
- var v = l.observedBits;
812
- this.observedBits = v ?? k;
813
- }, f.componentDidMount = function() {
814
- this.context[t] && this.context[t].on(this.onUpdate);
815
- var l = this.props.observedBits;
816
- this.observedBits = l ?? k;
817
- }, f.componentWillUnmount = function() {
818
- this.context[t] && this.context[t].off(this.onUpdate);
819
- }, f.getValue = function() {
820
- return this.context[t] ? this.context[t].get() : e;
821
- }, f.render = function() {
822
- return Mr(this.props.children)(this.state.value);
823
- }, d;
824
- }(T.Component);
825
- return p.contextTypes = (n = {}, n[t] = _.object, n), {
826
- Provider: c,
827
- Consumer: p
828
- };
829
- }
830
- var wr = T.createContext || Nr, Ze = function(r) {
831
- var o = wr();
832
- return o.displayName = r, o;
833
- }, Or = /* @__PURE__ */ Ze("Router-History"), Z = /* @__PURE__ */ Ze("Router"), ne = /* @__PURE__ */ function(e) {
834
- F(r, e), r.computeRootMatch = function(t) {
835
- return {
836
- path: "/",
837
- url: "/",
838
- params: {},
839
- isExact: t === "/"
840
- };
841
- };
842
- function r(n) {
843
- var t;
844
- return t = e.call(this, n) || this, t.state = {
845
- location: n.history.location
846
- }, t._isMounted = !1, t._pendingLocation = null, n.staticContext || (t.unlisten = n.history.listen(function(c) {
847
- t._pendingLocation = c;
848
- })), t;
849
- }
850
- var o = r.prototype;
851
- return o.componentDidMount = function() {
852
- var t = this;
853
- this._isMounted = !0, this.unlisten && this.unlisten(), this.props.staticContext || (this.unlisten = this.props.history.listen(function(c) {
854
- t._isMounted && t.setState({
855
- location: c
856
- });
857
- })), this._pendingLocation && this.setState({
858
- location: this._pendingLocation
859
- });
860
- }, o.componentWillUnmount = function() {
861
- this.unlisten && (this.unlisten(), this._isMounted = !1, this._pendingLocation = null);
862
- }, o.render = function() {
863
- return /* @__PURE__ */ T.createElement(Z.Provider, {
864
- value: {
865
- history: this.props.history,
866
- location: this.state.location,
867
- match: r.computeRootMatch(this.state.location.pathname),
868
- staticContext: this.props.staticContext
869
- }
870
- }, /* @__PURE__ */ T.createElement(Or.Provider, {
871
- children: this.props.children || null,
872
- value: this.props.history
873
- }));
874
- }, r;
875
- }(T.Component);
876
- process.env.NODE_ENV !== "production" && (ne.propTypes = {
877
- children: _.node,
878
- history: _.object.isRequired,
879
- staticContext: _.object
880
- }, ne.prototype.componentDidUpdate = function(e) {
881
- process.env.NODE_ENV !== "production" && M(e.history === this.props.history, "You cannot change <Router history>");
882
- });
883
- var Ye = /* @__PURE__ */ function(e) {
884
- F(r, e);
885
- function r() {
886
- for (var n, t = arguments.length, c = new Array(t), p = 0; p < t; p++)
887
- c[p] = arguments[p];
888
- return n = e.call.apply(e, [this].concat(c)) || this, n.history = ar(n.props), n;
889
- }
890
- var o = r.prototype;
891
- return o.render = function() {
892
- return /* @__PURE__ */ T.createElement(ne, {
893
- history: this.history,
894
- children: this.props.children
895
- });
896
- }, r;
897
- }(T.Component);
898
- process.env.NODE_ENV !== "production" && (Ye.propTypes = {
899
- initialEntries: _.array,
900
- initialIndex: _.number,
901
- getUserConfirmation: _.func,
902
- keyLength: _.number,
903
- children: _.node
904
- }, Ye.prototype.componentDidMount = function() {
905
- process.env.NODE_ENV !== "production" && M(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.");
906
- });
907
- var Dr = /* @__PURE__ */ function(e) {
908
- F(r, e);
909
- function r() {
910
- return e.apply(this, arguments) || this;
911
- }
912
- var o = r.prototype;
913
- return o.componentDidMount = function() {
914
- this.props.onMount && this.props.onMount.call(this, this);
915
- }, o.componentDidUpdate = function(t) {
916
- this.props.onUpdate && this.props.onUpdate.call(this, this, t);
917
- }, o.componentWillUnmount = function() {
918
- this.props.onUnmount && this.props.onUnmount.call(this, this);
919
- }, o.render = function() {
920
- return null;
921
- }, r;
922
- }(T.Component);
923
- function Ir(e) {
924
- var r = e.message, o = e.when, n = o === void 0 ? !0 : o;
925
- return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(t) {
926
- if (t || (process.env.NODE_ENV !== "production" ? j(!1, "You should not use <Prompt> outside a <Router>") : j(!1)), !n || t.staticContext)
927
- return null;
928
- var c = t.history.block;
929
- return /* @__PURE__ */ T.createElement(Dr, {
930
- onMount: function(u) {
931
- u.release = c(r);
932
- },
933
- onUpdate: function(u, d) {
934
- d.message !== r && (u.release(), u.release = c(r));
935
- },
936
- onUnmount: function(u) {
937
- u.release();
938
- },
939
- message: r
940
- });
941
- });
942
- }
943
- if (process.env.NODE_ENV !== "production") {
944
- var Yr = _.oneOfType([_.func, _.string]);
945
- Ir.propTypes = {
946
- when: _.bool,
947
- message: Yr.isRequired
948
- };
949
- }
950
- process.env.NODE_ENV !== "production" && (_.bool, _.string, _.oneOfType([_.string, _.object]).isRequired);
951
- var Le = {}, Lr = 1e4, Ve = 0;
952
- function Vr(e, r) {
953
- var o = "" + r.end + r.strict + r.sensitive, n = Le[o] || (Le[o] = {});
954
- if (n[e])
955
- return n[e];
956
- var t = [], c = Er(e, t, r), p = {
957
- regexp: c,
958
- keys: t
959
- };
960
- return Ve < Lr && (n[e] = p, Ve++), p;
961
- }
962
- function Qe(e, r) {
963
- r === void 0 && (r = {}), (typeof r == "string" || Array.isArray(r)) && (r = {
964
- path: r
965
- });
966
- var o = r, n = o.path, t = o.exact, c = t === void 0 ? !1 : t, p = o.strict, u = p === void 0 ? !1 : p, d = o.sensitive, f = d === void 0 ? !1 : d, s = [].concat(n);
967
- return s.reduce(function(l, v) {
968
- if (!v && v !== "")
969
- return null;
970
- if (l)
971
- return l;
972
- var h = Vr(v, {
973
- end: c,
974
- strict: u,
975
- sensitive: f
976
- }), m = h.regexp, N = h.keys, P = m.exec(e);
977
- if (!P)
978
- return null;
979
- var $ = P[0], D = P.slice(1), E = e === $;
980
- return c && !E ? null : {
981
- path: v,
982
- // the path used to match
983
- url: v === "/" && $ === "" ? "/" : $,
984
- // the matched portion of the URL
985
- isExact: E,
986
- // whether or not we matched exactly
987
- params: N.reduce(function(y, i, A) {
988
- return y[i.name] = D[A], y;
989
- }, {})
990
- };
991
- }, null);
992
- }
993
- function Te(e) {
994
- return T.Children.count(e) === 0;
995
- }
996
- function Ue(e, r, o) {
997
- var n = e(r);
998
- return process.env.NODE_ENV !== "production" && M(n !== void 0, "You returned `undefined` from the `children` function of " + ("<Route" + (o ? ' path="' + o + '"' : "") + ">, but you ") + "should have returned a React element or `null`"), n || null;
999
- }
1000
- var be = /* @__PURE__ */ function(e) {
1001
- F(r, e);
1002
- function r() {
1003
- return e.apply(this, arguments) || this;
1004
- }
1005
- var o = r.prototype;
1006
- return o.render = function() {
1007
- var t = this;
1008
- return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(c) {
1009
- c || (process.env.NODE_ENV !== "production" ? j(!1, "You should not use <Route> outside a <Router>") : j(!1));
1010
- var p = t.props.location || c.location, u = t.props.computedMatch ? t.props.computedMatch : t.props.path ? Qe(p.pathname, t.props) : c.match, d = W({}, c, {
1011
- location: p,
1012
- match: u
1013
- }), f = t.props, s = f.children, l = f.component, v = f.render;
1014
- return Array.isArray(s) && Te(s) && (s = null), /* @__PURE__ */ T.createElement(Z.Provider, {
1015
- value: d
1016
- }, d.match ? s ? typeof s == "function" ? process.env.NODE_ENV !== "production" ? Ue(s, d, t.props.path) : s(d) : s : l ? /* @__PURE__ */ T.createElement(l, d) : v ? v(d) : null : typeof s == "function" ? process.env.NODE_ENV !== "production" ? Ue(s, d, t.props.path) : s(d) : null);
1017
- });
1018
- }, r;
1019
- }(T.Component);
1020
- process.env.NODE_ENV !== "production" && (be.propTypes = {
1021
- children: _.oneOfType([_.func, _.node]),
1022
- component: function(r, o) {
1023
- if (r[o] && !gr.isValidElementType(r[o]))
1024
- return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
1025
- },
1026
- exact: _.bool,
1027
- location: _.object,
1028
- path: _.oneOfType([_.string, _.arrayOf(_.string)]),
1029
- render: _.func,
1030
- sensitive: _.bool,
1031
- strict: _.bool
1032
- }, be.prototype.componentDidMount = function() {
1033
- process.env.NODE_ENV !== "production" && M(!(this.props.children && !Te(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"), process.env.NODE_ENV !== "production" && M(!(this.props.children && !Te(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"), process.env.NODE_ENV !== "production" && M(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored");
1034
- }, be.prototype.componentDidUpdate = function(e) {
1035
- process.env.NODE_ENV !== "production" && M(!(this.props.location && !e.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'), process.env.NODE_ENV !== "production" && M(!(!this.props.location && e.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
1036
- });
1037
- function Ae(e) {
1038
- return e.charAt(0) === "/" ? e : "/" + e;
1039
- }
1040
- function Ur(e, r) {
1041
- return e ? W({}, r, {
1042
- pathname: Ae(e) + r.pathname
1043
- }) : r;
1044
- }
1045
- function Fr(e, r) {
1046
- if (!e)
1047
- return r;
1048
- var o = Ae(e);
1049
- return r.pathname.indexOf(o) !== 0 ? r : W({}, r, {
1050
- pathname: r.pathname.substr(o.length)
1051
- });
1052
- }
1053
- function Fe(e) {
1054
- return typeof e == "string" ? e : Be(e);
1055
- }
1056
- function ge(e) {
1057
- return function() {
1058
- process.env.NODE_ENV !== "production" ? j(!1, "You cannot %s with <StaticRouter>") : j(!1);
1059
- };
1060
- }
1061
- function je() {
1062
- }
1063
- var qe = /* @__PURE__ */ function(e) {
1064
- F(r, e);
1065
- function r() {
1066
- for (var n, t = arguments.length, c = new Array(t), p = 0; p < t; p++)
1067
- c[p] = arguments[p];
1068
- return n = e.call.apply(e, [this].concat(c)) || this, n.handlePush = function(u) {
1069
- return n.navigateTo(u, "PUSH");
1070
- }, n.handleReplace = function(u) {
1071
- return n.navigateTo(u, "REPLACE");
1072
- }, n.handleListen = function() {
1073
- return je;
1074
- }, n.handleBlock = function() {
1075
- return je;
1076
- }, n;
1077
- }
1078
- var o = r.prototype;
1079
- return o.navigateTo = function(t, c) {
1080
- var p = this.props, u = p.basename, d = u === void 0 ? "" : u, f = p.context, s = f === void 0 ? {} : f;
1081
- s.action = c, s.location = Ur(d, B(t)), s.url = Fe(s.location);
1082
- }, o.render = function() {
1083
- var t = this.props, c = t.basename, p = c === void 0 ? "" : c, u = t.context, d = u === void 0 ? {} : u, f = t.location, s = f === void 0 ? "/" : f, l = er(t, ["basename", "context", "location"]), v = {
1084
- createHref: function(m) {
1085
- return Ae(p + Fe(m));
1086
- },
1087
- action: "POP",
1088
- location: Fr(p, B(s)),
1089
- push: this.handlePush,
1090
- replace: this.handleReplace,
1091
- go: ge(),
1092
- goBack: ge(),
1093
- goForward: ge(),
1094
- listen: this.handleListen,
1095
- block: this.handleBlock
1096
- };
1097
- return /* @__PURE__ */ T.createElement(ne, W({}, l, {
1098
- history: v,
1099
- staticContext: d
1100
- }));
1101
- }, r;
1102
- }(T.Component);
1103
- process.env.NODE_ENV !== "production" && (qe.propTypes = {
1104
- basename: _.string,
1105
- context: _.object,
1106
- location: _.oneOfType([_.string, _.object])
1107
- }, qe.prototype.componentDidMount = function() {
1108
- process.env.NODE_ENV !== "production" && M(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.");
1109
- });
1110
- var ze = /* @__PURE__ */ function(e) {
1111
- F(r, e);
1112
- function r() {
1113
- return e.apply(this, arguments) || this;
1114
- }
1115
- var o = r.prototype;
1116
- return o.render = function() {
1117
- var t = this;
1118
- return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(c) {
1119
- c || (process.env.NODE_ENV !== "production" ? j(!1, "You should not use <Switch> outside a <Router>") : j(!1));
1120
- var p = t.props.location || c.location, u, d;
1121
- return T.Children.forEach(t.props.children, function(f) {
1122
- if (d == null && /* @__PURE__ */ T.isValidElement(f)) {
1123
- u = f;
1124
- var s = f.props.path || f.props.from;
1125
- d = s ? Qe(p.pathname, W({}, f.props, {
1126
- path: s
1127
- })) : c.match;
1128
- }
1129
- }), d ? /* @__PURE__ */ T.cloneElement(u, {
1130
- location: p,
1131
- computedMatch: d
1132
- }) : null;
1133
- });
1134
- }, r;
1135
- }(T.Component);
1136
- process.env.NODE_ENV !== "production" && (ze.propTypes = {
1137
- children: _.node,
1138
- location: _.object
1139
- }, ze.prototype.componentDidUpdate = function(e) {
1140
- process.env.NODE_ENV !== "production" && M(!(this.props.location && !e.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'), process.env.NODE_ENV !== "production" && M(!(!this.props.location && e.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
1141
- });
1142
- T.useContext;
1143
- if (process.env.NODE_ENV !== "production" && typeof window < "u") {
1144
- var ee = window, re = "__react_router_build__", We = {
1145
- cjs: "CommonJS",
1146
- esm: "ES modules",
1147
- umd: "UMD"
1148
- };
1149
- if (ee[re] && ee[re] !== "esm") {
1150
- var jr = We[ee[re]], qr = We.esm;
1151
- throw new Error("You are loading the " + qr + " build of React Router " + ("on a page that is already running the " + jr + " ") + "build, so things won't work right.");
1152
- }
1153
- ee[re] = "esm";
1154
- }
1155
- export {
1156
- Ir as P
1157
- };