@machinemetrics/mm-react-tools 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mm-react-tools.es.js +270 -275
- package/dist/mm-react-tools.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var hk = Object.defineProperty;
|
|
2
2
|
var dk = (r, e, t) => e in r ? hk(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var E = (r, e, t) => dk(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import Fs, { createContext as pk, useState as
|
|
4
|
+
import Fs, { createContext as pk, useState as At, useEffect as pr, useMemo as Io, useContext as ai, useRef as xa, useCallback as mk, forwardRef as yk } from "react";
|
|
5
5
|
import { useSearchParams as gk, Outlet as vk, useNavigate as bk, useLocation as wk, useBlocker as _k, Navigate as xk, createBrowserRouter as Sk, RouterProvider as Ek } from "react-router-dom";
|
|
6
6
|
import V0 from "styled-components";
|
|
7
7
|
function Ok(r, e) {
|
|
@@ -170,9 +170,9 @@ function Ak() {
|
|
|
170
170
|
return null;
|
|
171
171
|
}
|
|
172
172
|
var ke = Object.assign, me = 0, $e, we, ce, Oe, Ne, xe, Ze;
|
|
173
|
-
function
|
|
173
|
+
function St() {
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
St.__reactDisabledLog = !0;
|
|
176
176
|
function lt() {
|
|
177
177
|
{
|
|
178
178
|
if (me === 0) {
|
|
@@ -180,7 +180,7 @@ function Ak() {
|
|
|
180
180
|
var N = {
|
|
181
181
|
configurable: !0,
|
|
182
182
|
enumerable: !0,
|
|
183
|
-
value:
|
|
183
|
+
value: St,
|
|
184
184
|
writable: !0
|
|
185
185
|
};
|
|
186
186
|
Object.defineProperties(console, {
|
|
@@ -388,7 +388,7 @@ function Ak() {
|
|
|
388
388
|
function Ke(N) {
|
|
389
389
|
return _e(N);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Et(N) {
|
|
392
392
|
{
|
|
393
393
|
var ae = typeof Symbol == "function" && Symbol.toStringTag, be = ae && N[Symbol.toStringTag] || N.constructor.name || "Object";
|
|
394
394
|
return be;
|
|
@@ -406,7 +406,7 @@ function Ak() {
|
|
|
406
406
|
}
|
|
407
407
|
function pt(N) {
|
|
408
408
|
if (wt(N))
|
|
409
|
-
return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
409
|
+
return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(N)), Gt(N);
|
|
410
410
|
}
|
|
411
411
|
var Mt = w.ReactCurrentOwner, er = {
|
|
412
412
|
key: !0,
|
|
@@ -459,7 +459,7 @@ function Ak() {
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var Ot = function(N, ae, be, Ce, qe, at, it) {
|
|
463
463
|
var et = {
|
|
464
464
|
// This tag allows us to uniquely identify this as a React Element
|
|
465
465
|
$$typeof: e,
|
|
@@ -503,16 +503,16 @@ function Ak() {
|
|
|
503
503
|
var _ = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
|
|
504
504
|
et && We(it, _), tt && Ve(it, _);
|
|
505
505
|
}
|
|
506
|
-
return
|
|
506
|
+
return Ot(N, et, tt, qe, Ce, Mt.current, it);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
var tr = w.ReactCurrentOwner,
|
|
509
|
+
var tr = w.ReactCurrentOwner, lr = w.ReactDebugCurrentFrame;
|
|
510
510
|
function Nt(N) {
|
|
511
511
|
if (N) {
|
|
512
512
|
var ae = N._owner, be = X(N.type, N._source, ae ? ae.type : null);
|
|
513
|
-
|
|
513
|
+
lr.setExtraStackFrame(be);
|
|
514
514
|
} else
|
|
515
|
-
|
|
515
|
+
lr.setExtraStackFrame(null);
|
|
516
516
|
}
|
|
517
517
|
var zt;
|
|
518
518
|
zt = !1;
|
|
@@ -4525,7 +4525,7 @@ Na.reset();
|
|
|
4525
4525
|
globalThis.__DEV__ !== !1 && Pd("print", function() {
|
|
4526
4526
|
return bo ? bo.size : 0;
|
|
4527
4527
|
});
|
|
4528
|
-
var
|
|
4528
|
+
var cr = Array.isArray;
|
|
4529
4529
|
function kn(r) {
|
|
4530
4530
|
return Array.isArray(r) && r.length > 0;
|
|
4531
4531
|
}
|
|
@@ -4574,7 +4574,7 @@ function Yc(r, e) {
|
|
|
4574
4574
|
Ls(e);
|
|
4575
4575
|
for (var t = bg(""), n = bg(""), i = function(w) {
|
|
4576
4576
|
for (var O = 0, C = void 0; O < w.length && (C = w[O]); ++O)
|
|
4577
|
-
if (!
|
|
4577
|
+
if (!cr(C)) {
|
|
4578
4578
|
if (C.kind === Fe.OPERATION_DEFINITION)
|
|
4579
4579
|
return t(C.name && C.name.value);
|
|
4580
4580
|
if (C.kind === Fe.FRAGMENT_DEFINITION)
|
|
@@ -5712,7 +5712,7 @@ const WC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5712
5712
|
hasClientExports: ib,
|
|
5713
5713
|
hasDirectives: os,
|
|
5714
5714
|
isApolloPayloadResult: Ub,
|
|
5715
|
-
isArray:
|
|
5715
|
+
isArray: cr,
|
|
5716
5716
|
isDocumentNode: yb,
|
|
5717
5717
|
isExecutionPatchIncrementalResult: Ps,
|
|
5718
5718
|
isExecutionPatchInitialResult: jb,
|
|
@@ -6311,9 +6311,9 @@ var Tg = Bn(function() {
|
|
|
6311
6311
|
return fetch;
|
|
6312
6312
|
}) || Tg, xe = Oe.next.bind(Oe);
|
|
6313
6313
|
return Ne(b, Q).then(function(Ze) {
|
|
6314
|
-
var
|
|
6314
|
+
var St;
|
|
6315
6315
|
m.setContext({ response: Ze });
|
|
6316
|
-
var lt = (
|
|
6316
|
+
var lt = (St = Ze.headers) === null || St === void 0 ? void 0 : St.get("content-type");
|
|
6317
6317
|
return lt !== null && /^multipart\/mixed/i.test(lt) ? dP(Ze, xe) : Vb(m)(Ze).then(xe);
|
|
6318
6318
|
}).then(function() {
|
|
6319
6319
|
fe = void 0, Oe.complete();
|
|
@@ -6633,7 +6633,7 @@ function fs(r) {
|
|
|
6633
6633
|
return e ? e[0] : r;
|
|
6634
6634
|
}
|
|
6635
6635
|
function Wh(r, e, t) {
|
|
6636
|
-
return Xt(e) ?
|
|
6636
|
+
return Xt(e) ? cr(e) ? e.every(function(n) {
|
|
6637
6637
|
return Wh(r, n, t);
|
|
6638
6638
|
}) : r.selections.every(function(n) {
|
|
6639
6639
|
if (Pi(n) && Pa(n, t)) {
|
|
@@ -6644,7 +6644,7 @@ function Wh(r, e, t) {
|
|
|
6644
6644
|
}) : !1;
|
|
6645
6645
|
}
|
|
6646
6646
|
function ua(r) {
|
|
6647
|
-
return Xt(r) && !Rt(r) && !
|
|
6647
|
+
return Xt(r) && !Rt(r) && !cr(r);
|
|
6648
6648
|
}
|
|
6649
6649
|
function IP() {
|
|
6650
6650
|
return new Ri();
|
|
@@ -6963,7 +6963,7 @@ function _o(r) {
|
|
|
6963
6963
|
return !!(r instanceof Do && r.group.caching);
|
|
6964
6964
|
}
|
|
6965
6965
|
function RP(r) {
|
|
6966
|
-
return Xt(r) ?
|
|
6966
|
+
return Xt(r) ? cr(r) ? r.slice(0) : j({ __proto__: Object.getPrototypeOf(r) }, r) : r;
|
|
6967
6967
|
}
|
|
6968
6968
|
var Dg = (
|
|
6969
6969
|
/** @class */
|
|
@@ -7132,7 +7132,7 @@ var NP = (
|
|
|
7132
7132
|
variables: u.variables,
|
|
7133
7133
|
from: i
|
|
7134
7134
|
}, u), ee = Ci(C);
|
|
7135
|
-
B === void 0 ? Kc.added(C) || (g = m.merge(g, (D = {}, D[ee] = "Can't find field '".concat(C.name.value, "' on ").concat(Rt(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), D))) :
|
|
7135
|
+
B === void 0 ? Kc.added(C) || (g = m.merge(g, (D = {}, D[ee] = "Can't find field '".concat(C.name.value, "' on ").concat(Rt(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), D))) : cr(B) ? B.length > 0 && (B = b(t.executeSubSelectedArray({
|
|
7136
7136
|
field: C,
|
|
7137
7137
|
array: B,
|
|
7138
7138
|
enclosingRef: a,
|
|
@@ -7159,7 +7159,7 @@ var NP = (
|
|
|
7159
7159
|
return d.missing && (c = f.merge(c, (g = {}, g[y] = d.missing, g))), d.result;
|
|
7160
7160
|
}
|
|
7161
7161
|
return n.selectionSet && (i = i.filter(u.store.canRead)), i = i.map(function(d, y) {
|
|
7162
|
-
return d === null ? null :
|
|
7162
|
+
return d === null ? null : cr(d) ? h(t.executeSubSelectedArray({
|
|
7163
7163
|
field: n,
|
|
7164
7164
|
array: d,
|
|
7165
7165
|
enclosingRef: a,
|
|
@@ -7327,9 +7327,9 @@ function rw(r) {
|
|
|
7327
7327
|
if (!e.paths) {
|
|
7328
7328
|
var t = e.paths = [], n = [];
|
|
7329
7329
|
r.forEach(function(i, a) {
|
|
7330
|
-
|
|
7330
|
+
cr(i) ? (rw(i).forEach(function(u) {
|
|
7331
7331
|
return t.push(n.concat(u));
|
|
7332
|
-
}), n.length = 0) : (n.push(i),
|
|
7332
|
+
}), n.length = 0) : (n.push(i), cr(r[a + 1]) || (t.push(n.slice(0)), n.length = 0));
|
|
7333
7333
|
});
|
|
7334
7334
|
}
|
|
7335
7335
|
return e.paths;
|
|
@@ -7339,13 +7339,13 @@ function nw(r, e) {
|
|
|
7339
7339
|
}
|
|
7340
7340
|
function pa(r, e, t) {
|
|
7341
7341
|
return t = t || nw, iw(e.reduce(function n(i, a) {
|
|
7342
|
-
return
|
|
7342
|
+
return cr(i) ? i.map(function(u) {
|
|
7343
7343
|
return n(u, a);
|
|
7344
7344
|
}) : i && t(i, a);
|
|
7345
7345
|
}, r));
|
|
7346
7346
|
}
|
|
7347
7347
|
function iw(r) {
|
|
7348
|
-
return Xt(r) ?
|
|
7348
|
+
return Xt(r) ? cr(r) ? r.map(iw) : sp(Object.keys(r).sort(), function(e) {
|
|
7349
7349
|
return pa(r, e);
|
|
7350
7350
|
}) : r;
|
|
7351
7351
|
}
|
|
@@ -7378,7 +7378,7 @@ var jP = function() {
|
|
|
7378
7378
|
});
|
|
7379
7379
|
} }), f, h = a && this.getTypePolicy(a), d = h && h.keyFn || this.config.dataIdFromObject; d; ) {
|
|
7380
7380
|
var y = d(j(j({}, e), u), c);
|
|
7381
|
-
if (
|
|
7381
|
+
if (cr(y))
|
|
7382
7382
|
d = qg(y);
|
|
7383
7383
|
else {
|
|
7384
7384
|
f = y;
|
|
@@ -7398,7 +7398,7 @@ var jP = function() {
|
|
|
7398
7398
|
f.merge = typeof h == "function" ? h : h === !0 ? Bg : h === !1 ? Vg : f.merge;
|
|
7399
7399
|
}
|
|
7400
7400
|
c(i, t.merge), i.keyFn = // Pass false to disable normalization for this typename.
|
|
7401
|
-
a === !1 ? jP :
|
|
7401
|
+
a === !1 ? jP : cr(a) ? qg(a) : typeof a == "function" ? a : i.keyFn, u && Object.keys(u).forEach(function(f) {
|
|
7402
7402
|
var h = n.getFieldPolicy(e, f, !0), d = u[f];
|
|
7403
7403
|
if (typeof d == "function")
|
|
7404
7404
|
h.read = d;
|
|
@@ -7406,7 +7406,7 @@ var jP = function() {
|
|
|
7406
7406
|
var y = d.keyArgs, g = d.read, m = d.merge;
|
|
7407
7407
|
h.keyFn = // Pass false to disable argument-based differentiation of
|
|
7408
7408
|
// field identities.
|
|
7409
|
-
y === !1 ? $g :
|
|
7409
|
+
y === !1 ? $g : cr(y) ? Ug(y) : typeof y == "function" ? y : h.keyFn, typeof g == "function" && (h.read = g), c(h, m);
|
|
7410
7410
|
}
|
|
7411
7411
|
h.read && h.merge && (h.keyFn = h.keyFn || $g);
|
|
7412
7412
|
});
|
|
@@ -7495,7 +7495,7 @@ var jP = function() {
|
|
|
7495
7495
|
variables: e.variables
|
|
7496
7496
|
}, f = zh(e); u; ) {
|
|
7497
7497
|
var h = u(f, c);
|
|
7498
|
-
if (
|
|
7498
|
+
if (cr(h))
|
|
7499
7499
|
u = Ug(h);
|
|
7500
7500
|
else {
|
|
7501
7501
|
a = h || n;
|
|
@@ -7588,7 +7588,7 @@ function ap(r, e, t) {
|
|
|
7588
7588
|
}
|
|
7589
7589
|
function sw(r) {
|
|
7590
7590
|
return function(t, n) {
|
|
7591
|
-
if (
|
|
7591
|
+
if (cr(t) || cr(n))
|
|
7592
7592
|
throw nn(8);
|
|
7593
7593
|
if (Xt(t) && Xt(n)) {
|
|
7594
7594
|
var i = r.getFieldValue(t, "__typename"), a = r.getFieldValue(n, "__typename"), u = i && a && i !== a;
|
|
@@ -7737,7 +7737,7 @@ var UP = (
|
|
|
7737
7737
|
return h;
|
|
7738
7738
|
}, r.prototype.processFieldValue = function(e, t, n, i) {
|
|
7739
7739
|
var a = this;
|
|
7740
|
-
return !t.selectionSet || e === null ? globalThis.__DEV__ !== !1 ? zd(e) : e :
|
|
7740
|
+
return !t.selectionSet || e === null ? globalThis.__DEV__ !== !1 ? zd(e) : e : cr(e) ? e.map(function(u, c) {
|
|
7741
7741
|
var f = a.processFieldValue(u, t, n, zg(i, c));
|
|
7742
7742
|
return Hg(i, c), f;
|
|
7743
7743
|
}) : this.processSelectionSet({
|
|
@@ -7792,14 +7792,14 @@ var UP = (
|
|
|
7792
7792
|
// Items in the same position in different arrays are not
|
|
7793
7793
|
// necessarily related to each other, so when incoming is an array
|
|
7794
7794
|
// we process its elements as if there was no existing data.
|
|
7795
|
-
!
|
|
7795
|
+
!cr(n) && // Likewise, existing must be either a Reference or a StoreObject
|
|
7796
7796
|
// in order for its fields to be safe to merge with the fields of
|
|
7797
7797
|
// the incoming object.
|
|
7798
7798
|
(Rt(t) || ua(t)) ? t : void 0
|
|
7799
7799
|
), h = n;
|
|
7800
7800
|
f && !a && (a = [Rt(f) ? f.__ref : f]);
|
|
7801
7801
|
var d, y = function(g, m) {
|
|
7802
|
-
return
|
|
7802
|
+
return cr(g) ? typeof m == "number" ? g[m] : void 0 : i.store.getFieldValue(g, String(m));
|
|
7803
7803
|
};
|
|
7804
7804
|
e.map.forEach(function(g, m) {
|
|
7805
7805
|
var b = y(f, m), A = y(h, m);
|
|
@@ -7808,7 +7808,7 @@ var UP = (
|
|
|
7808
7808
|
var x = c.applyMerges(g, b, A, i, a);
|
|
7809
7809
|
x !== A && (d = d || /* @__PURE__ */ new Map(), d.set(m, x)), a && je(a.pop() === m);
|
|
7810
7810
|
}
|
|
7811
|
-
}), d && (n =
|
|
7811
|
+
}), d && (n = cr(h) ? h.slice(0) : j({}, h), d.forEach(function(g, m) {
|
|
7812
7812
|
n[m] = g;
|
|
7813
7813
|
}));
|
|
7814
7814
|
}
|
|
@@ -7858,7 +7858,7 @@ function $P(r, e, t, n) {
|
|
|
7858
7858
|
if (!Gg.has(h)) {
|
|
7859
7859
|
Gg.add(h);
|
|
7860
7860
|
var d = [];
|
|
7861
|
-
!
|
|
7861
|
+
!cr(a) && !cr(u) && [a, u].forEach(function(y) {
|
|
7862
7862
|
var g = n.getFieldValue(y, "__typename");
|
|
7863
7863
|
typeof g == "string" && !d.includes(g) && d.push(g);
|
|
7864
7864
|
}), globalThis.__DEV__ !== !1 && je.warn(14, f, c, d.length ? "either ensure all objects of type " + d.join(" and ") + " have an ID or a custom merge function, or " : "", h, j({}, a), j({}, u));
|
|
@@ -8032,10 +8032,10 @@ var op = (
|
|
|
8032
8032
|
}(ep)
|
|
8033
8033
|
);
|
|
8034
8034
|
globalThis.__DEV__ !== !1 && (op.prototype.getMemoryInternals = DI);
|
|
8035
|
-
var
|
|
8035
|
+
var Tt;
|
|
8036
8036
|
(function(r) {
|
|
8037
8037
|
r[r.loading = 1] = "loading", r[r.setVariables = 2] = "setVariables", r[r.fetchMore = 3] = "fetchMore", r[r.refetch = 4] = "refetch", r[r.poll = 6] = "poll", r[r.ready = 7] = "ready", r[r.error = 8] = "error";
|
|
8038
|
-
})(
|
|
8038
|
+
})(Tt || (Tt = {}));
|
|
8039
8039
|
function Fo(r) {
|
|
8040
8040
|
return r ? r < 7 : !1;
|
|
8041
8041
|
}
|
|
@@ -8112,7 +8112,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8112
8112
|
this.queryInfo.resetDiff();
|
|
8113
8113
|
}, e.prototype.getCurrentResult = function(t) {
|
|
8114
8114
|
t === void 0 && (t = !0);
|
|
8115
|
-
var n = this.getLastResult(!0), i = this.queryInfo.networkStatus || n && n.networkStatus ||
|
|
8115
|
+
var n = this.getLastResult(!0), i = this.queryInfo.networkStatus || n && n.networkStatus || Tt.ready, a = j(j({}, n), { loading: Fo(i), networkStatus: i }), u = this.options.fetchPolicy, c = u === void 0 ? "cache-first" : u;
|
|
8116
8116
|
if (
|
|
8117
8117
|
// These fetch policies should never deliver data from the cache, unless
|
|
8118
8118
|
// redelivering a previously delivered result.
|
|
@@ -8125,7 +8125,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8125
8125
|
this.queryInfo.updateWatch();
|
|
8126
8126
|
else {
|
|
8127
8127
|
var f = this.queryInfo.getDiff();
|
|
8128
|
-
(f.complete || this.options.returnPartialData) && (a.data = f.result), Ut(a.data, {}) && (a.data = void 0), f.complete ? (delete a.partial, f.complete && a.networkStatus ===
|
|
8128
|
+
(f.complete || this.options.returnPartialData) && (a.data = f.result), Ut(a.data, {}) && (a.data = void 0), f.complete ? (delete a.partial, f.complete && a.networkStatus === Tt.loading && (c === "cache-first" || c === "cache-only") && (a.networkStatus = Tt.ready, a.loading = !1)) : a.partial = !0, globalThis.__DEV__ !== !1 && !f.complete && !this.options.partialRefetch && !a.loading && !a.data && !a.error && uw(f.missing);
|
|
8129
8129
|
}
|
|
8130
8130
|
return t && this.updateLastResult(a), a;
|
|
8131
8131
|
}, e.prototype.isDifferentFromLastResult = function(t, n) {
|
|
@@ -8160,7 +8160,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8160
8160
|
((n = u.name) === null || n === void 0 ? void 0 : n.value) || u
|
|
8161
8161
|
);
|
|
8162
8162
|
}
|
|
8163
|
-
return t && !Ut(this.options.variables, t) && (i.variables = this.options.variables = j(j({}, this.options.variables), t)), this.queryInfo.resetLastWrite(), this.reobserve(i,
|
|
8163
|
+
return t && !Ut(this.options.variables, t) && (i.variables = this.options.variables = j(j({}, this.options.variables), t)), this.queryInfo.resetLastWrite(), this.reobserve(i, Tt.refetch);
|
|
8164
8164
|
}, e.prototype.fetchMore = function(t) {
|
|
8165
8165
|
var n = this, i = j(j({}, t.query ? t : j(j(j(j({}, this.options), { query: this.options.query }), t), { variables: j(j({}, this.options.variables), t.variables) })), {
|
|
8166
8166
|
// The fetchMore request goes immediately to the network and does
|
|
@@ -8174,10 +8174,10 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8174
8174
|
var a = this.queryManager.generateQueryId();
|
|
8175
8175
|
this.lastQuery = t.query ? this.transformDocument(this.options.query) : i.query;
|
|
8176
8176
|
var u = this.queryInfo, c = u.networkStatus;
|
|
8177
|
-
u.networkStatus =
|
|
8177
|
+
u.networkStatus = Tt.fetchMore, i.notifyOnNetworkStatusChange && this.observe();
|
|
8178
8178
|
var f = /* @__PURE__ */ new Set(), h = t == null ? void 0 : t.updateQuery, d = this.options.fetchPolicy !== "no-cache";
|
|
8179
|
-
return d || je(h, 21), this.queryManager.fetchQuery(a, i,
|
|
8180
|
-
if (n.queryManager.removeQuery(a), u.networkStatus ===
|
|
8179
|
+
return d || je(h, 21), this.queryManager.fetchQuery(a, i, Tt.fetchMore).then(function(y) {
|
|
8180
|
+
if (n.queryManager.removeQuery(a), u.networkStatus === Tt.fetchMore && (u.networkStatus = c), d)
|
|
8181
8181
|
n.queryManager.cache.batch({
|
|
8182
8182
|
update: function(b) {
|
|
8183
8183
|
var A = t.updateQuery;
|
|
@@ -8249,7 +8249,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8249
8249
|
// Reset options.fetchPolicy to its original value.
|
|
8250
8250
|
fetchPolicy: this.options.initialFetchPolicy,
|
|
8251
8251
|
variables: t
|
|
8252
|
-
},
|
|
8252
|
+
}, Tt.setVariables) : Promise.resolve());
|
|
8253
8253
|
}, e.prototype.updateQuery = function(t) {
|
|
8254
8254
|
var n = this.queryManager, i = n.cache.diff({
|
|
8255
8255
|
query: this.options.query,
|
|
@@ -8301,7 +8301,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8301
8301
|
// no-cache are both useful for when the user wants to control whether or not the
|
|
8302
8302
|
// polled results are written to the cache.
|
|
8303
8303
|
fetchPolicy: t.options.initialFetchPolicy === "no-cache" ? "no-cache" : "network-only"
|
|
8304
|
-
},
|
|
8304
|
+
}, Tt.poll).then(f, f) : f());
|
|
8305
8305
|
}, f = function() {
|
|
8306
8306
|
var h = t.pollingInfo;
|
|
8307
8307
|
h && (clearTimeout(h.timeout), h.timeout = setTimeout(c, h.interval));
|
|
@@ -8320,11 +8320,11 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8320
8320
|
// Refetching uses a disposable Concast to allow refetches using different
|
|
8321
8321
|
// options/variables, without permanently altering the options of the
|
|
8322
8322
|
// original ObservableQuery.
|
|
8323
|
-
n ===
|
|
8323
|
+
n === Tt.refetch || // The fetchMore method does not actually call the reobserve method, but,
|
|
8324
8324
|
// if it did, it would definitely use a disposable Concast.
|
|
8325
|
-
n ===
|
|
8325
|
+
n === Tt.fetchMore || // Polling uses a disposable Concast so the polling options (which force
|
|
8326
8326
|
// fetchPolicy to be "network-only" or "no-cache") won't override the original options.
|
|
8327
|
-
n ===
|
|
8327
|
+
n === Tt.poll
|
|
8328
8328
|
), u = this.options.variables, c = this.options.fetchPolicy, f = ls(this.options, t || {}), h = a ? (
|
|
8329
8329
|
// Disposable Concast fetches receive a shallow copy of this.options
|
|
8330
8330
|
// (merged with newOptions), leaving this.options unmodified.
|
|
@@ -8335,7 +8335,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8335
8335
|
// using applyNextFetchPolicy. The explicit options.fetchPolicy wins.
|
|
8336
8336
|
(h.fetchPolicy === c || // A `nextFetchPolicy` function has even higher priority, though,
|
|
8337
8337
|
// so in that case `applyNextFetchPolicy` must be called.
|
|
8338
|
-
typeof h.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", h), n === void 0 && (n =
|
|
8338
|
+
typeof h.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", h), n === void 0 && (n = Tt.setVariables))), this.waitForOwnResult && (this.waitForOwnResult = Cf(h.fetchPolicy));
|
|
8339
8339
|
var y = function() {
|
|
8340
8340
|
i.concast === b && (i.waitForOwnResult = !1);
|
|
8341
8341
|
}, g = h.variables && j({}, h.variables), m = this.fetch(h, n, d), b = m.concast, A = m.fromLink, x = {
|
|
@@ -8369,7 +8369,7 @@ var Qg = Object.assign, VP = Object.hasOwnProperty, Oc = (
|
|
|
8369
8369
|
var i = this.getLastError(), a = this.isDifferentFromLastResult(t, n);
|
|
8370
8370
|
(i || !t.partial || this.options.returnPartialData) && this.updateLastResult(t, n), (i || a) && da(this.observers, "next", t);
|
|
8371
8371
|
}, e.prototype.reportError = function(t, n) {
|
|
8372
|
-
var i = j(j({}, this.getLastResult()), { error: t, errors: t.graphQLErrors, networkStatus:
|
|
8372
|
+
var i = j(j({}, this.getLastResult()), { error: t, errors: t.graphQLErrors, networkStatus: Tt.error, loading: !1 });
|
|
8373
8373
|
this.updateLastResult(i, n), da(this.observers, "error", this.last.error = t);
|
|
8374
8374
|
}, e.prototype.hasObservers = function() {
|
|
8375
8375
|
return this.observers.size > 0;
|
|
@@ -8429,8 +8429,8 @@ var Rf = (
|
|
|
8429
8429
|
ca.has(n) || (ca.set(n, 0), Pf(n, "evict"), Pf(n, "modify"), Pf(n, "reset"));
|
|
8430
8430
|
}
|
|
8431
8431
|
return r.prototype.init = function(e) {
|
|
8432
|
-
var t = e.networkStatus ||
|
|
8433
|
-
return this.variables && this.networkStatus !==
|
|
8432
|
+
var t = e.networkStatus || Tt.loading;
|
|
8433
|
+
return this.variables && this.networkStatus !== Tt.loading && !Ut(this.variables, e.variables) && (t = Tt.setVariables), Ut(e.variables, this.variables) || (this.lastDiff = void 0), Object.assign(this, {
|
|
8434
8434
|
document: e.document,
|
|
8435
8435
|
variables: e.variables,
|
|
8436
8436
|
networkError: null,
|
|
@@ -8544,9 +8544,9 @@ var Rf = (
|
|
|
8544
8544
|
!a.stopped && Ut(a.variables, n.variables) && a.updateWatch(n.variables), a.updateLastDiff(g, y), g.complete && (e.data = g.result);
|
|
8545
8545
|
}) : this.lastWrite = void 0);
|
|
8546
8546
|
}, r.prototype.markReady = function() {
|
|
8547
|
-
return this.networkError = null, this.networkStatus =
|
|
8547
|
+
return this.networkError = null, this.networkStatus = Tt.ready;
|
|
8548
8548
|
}, r.prototype.markError = function(e) {
|
|
8549
|
-
return this.networkStatus =
|
|
8549
|
+
return this.networkStatus = Tt.error, this.lastWrite = void 0, this.reset(), e.graphQLErrors && (this.graphQLErrors = e.graphQLErrors), e.networkError && (this.networkError = e.networkError), e;
|
|
8550
8550
|
}, r;
|
|
8551
8551
|
}()
|
|
8552
8552
|
);
|
|
@@ -8844,7 +8844,7 @@ var zP = Object.prototype.hasOwnProperty, Yg = /* @__PURE__ */ Object.create(nul
|
|
|
8844
8844
|
return e === void 0 && (e = {
|
|
8845
8845
|
discardWatches: !0
|
|
8846
8846
|
}), this.cancelPendingFetches(nn(33)), this.queries.forEach(function(t) {
|
|
8847
|
-
t.observableQuery ? t.networkStatus =
|
|
8847
|
+
t.observableQuery ? t.networkStatus = Tt.loading : t.stop();
|
|
8848
8848
|
}), this.mutationStore && (this.mutationStore = /* @__PURE__ */ Object.create(null)), this.cache.reset(e);
|
|
8849
8849
|
}, r.prototype.getObservableQueries = function(e) {
|
|
8850
8850
|
var t = this;
|
|
@@ -8981,16 +8981,16 @@ var zP = Object.prototype.hasOwnProperty, Yg = /* @__PURE__ */ Object.create(nul
|
|
|
8981
8981
|
var d = {
|
|
8982
8982
|
data: u.data,
|
|
8983
8983
|
loading: !1,
|
|
8984
|
-
networkStatus:
|
|
8984
|
+
networkStatus: Tt.ready
|
|
8985
8985
|
};
|
|
8986
|
-
return f && h === "none" && (d.data = void 0), f && h !== "ignore" && (d.errors = c, d.networkStatus =
|
|
8986
|
+
return f && h === "none" && (d.data = void 0), f && h !== "ignore" && (d.errors = c, d.networkStatus = Tt.error), d;
|
|
8987
8987
|
}, function(u) {
|
|
8988
8988
|
var c = Yd(u) ? u : new On({ networkError: u });
|
|
8989
8989
|
throw i >= e.lastRequestId && e.markError(c), c;
|
|
8990
8990
|
});
|
|
8991
8991
|
}, r.prototype.fetchConcastWithInfo = function(e, t, n, i) {
|
|
8992
8992
|
var a = this;
|
|
8993
|
-
n === void 0 && (n =
|
|
8993
|
+
n === void 0 && (n = Tt.loading), i === void 0 && (i = t.query);
|
|
8994
8994
|
var u = this.getVariables(i, t.variables), c = this.getQuery(e), f = this.defaultOptions.watchQuery, h = t.fetchPolicy, d = h === void 0 ? f && f.fetchPolicy || "cache-first" : h, y = t.errorPolicy, g = y === void 0 ? f && f.errorPolicy || "none" : y, m = t.returnPartialData, b = m === void 0 ? !1 : m, A = t.notifyOnNetworkStatusChange, x = A === void 0 ? !1 : A, w = t.context, O = w === void 0 ? {} : w, C = Object.assign({}, t, {
|
|
8995
8995
|
query: i,
|
|
8996
8996
|
variables: u,
|
|
@@ -9111,7 +9111,7 @@ var zP = Object.prototype.hasOwnProperty, Yg = /* @__PURE__ */ Object.create(nul
|
|
|
9111
9111
|
var b = function() {
|
|
9112
9112
|
return e.getDiff();
|
|
9113
9113
|
}, A = function(D, M) {
|
|
9114
|
-
M === void 0 && (M = e.networkStatus ||
|
|
9114
|
+
M === void 0 && (M = e.networkStatus || Tt.loading);
|
|
9115
9115
|
var B = D.result;
|
|
9116
9116
|
globalThis.__DEV__ !== !1 && !d && !Ut(B, {}) && uw(D.missing);
|
|
9117
9117
|
var ee = function(Q) {
|
|
@@ -9125,8 +9125,8 @@ var zP = Object.prototype.hasOwnProperty, Yg = /* @__PURE__ */ Object.create(nul
|
|
|
9125
9125
|
onlyRunForcedResolvers: !0
|
|
9126
9126
|
}).then(function(Q) {
|
|
9127
9127
|
return ee(Q.data || void 0);
|
|
9128
|
-
}) : h === "none" && M ===
|
|
9129
|
-
}, x = c === "no-cache" ? 0 : n ===
|
|
9128
|
+
}) : h === "none" && M === Tt.refetch && Array.isArray(D.missing) ? ee(void 0) : ee(B);
|
|
9129
|
+
}, x = c === "no-cache" ? 0 : n === Tt.refetch && f !== "merge" ? 1 : 2, w = function() {
|
|
9130
9130
|
return i.getResultsFromLink(e, x, {
|
|
9131
9131
|
query: a,
|
|
9132
9132
|
variables: u,
|
|
@@ -9629,7 +9629,7 @@ const ZP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9629
9629
|
InMemoryCache: op,
|
|
9630
9630
|
MissingFieldError: tp,
|
|
9631
9631
|
get NetworkStatus() {
|
|
9632
|
-
return
|
|
9632
|
+
return Tt;
|
|
9633
9633
|
},
|
|
9634
9634
|
Observable: Pt,
|
|
9635
9635
|
ObservableQuery: Oc,
|
|
@@ -9922,7 +9922,7 @@ function oR(r, e, t, n, i, a, u, c, f) {
|
|
|
9922
9922
|
data: O && O.data,
|
|
9923
9923
|
error: w,
|
|
9924
9924
|
loading: !1,
|
|
9925
|
-
networkStatus:
|
|
9925
|
+
networkStatus: Tt.error
|
|
9926
9926
|
}, r, e, t, u, m, h.current);
|
|
9927
9927
|
}, x = { current: e.subscribe(b, A) };
|
|
9928
9928
|
return function() {
|
|
@@ -9972,7 +9972,7 @@ function lR(r, e, t) {
|
|
|
9972
9972
|
if (!r.loading) {
|
|
9973
9973
|
var n = xw(r);
|
|
9974
9974
|
Promise.resolve().then(function() {
|
|
9975
|
-
n ? t.onError(n) : r.data && e !== r.networkStatus && r.networkStatus ===
|
|
9975
|
+
n ? t.onError(n) : r.data && e !== r.networkStatus && r.networkStatus === Tt.ready && t.onCompleted(r.data);
|
|
9976
9976
|
}).catch(function(i) {
|
|
9977
9977
|
globalThis.__DEV__ !== !1 && je.warn(i);
|
|
9978
9978
|
});
|
|
@@ -9996,18 +9996,18 @@ function Ac(r, e, t, n) {
|
|
|
9996
9996
|
return u;
|
|
9997
9997
|
}
|
|
9998
9998
|
function fR(r, e, t) {
|
|
9999
|
-
return r.partial && t && !r.loading && (!r.data || Object.keys(r.data).length === 0) && e.options.fetchPolicy !== "cache-only" ? (e.refetch(), j(j({}, r), { loading: !0, networkStatus:
|
|
9999
|
+
return r.partial && t && !r.loading && (!r.data || Object.keys(r.data).length === 0) && e.options.fetchPolicy !== "cache-only" ? (e.refetch(), j(j({}, r), { loading: !0, networkStatus: Tt.refetch })) : r;
|
|
10000
10000
|
}
|
|
10001
10001
|
var Sw = Oa({
|
|
10002
10002
|
loading: !0,
|
|
10003
10003
|
data: void 0,
|
|
10004
10004
|
error: void 0,
|
|
10005
|
-
networkStatus:
|
|
10005
|
+
networkStatus: Tt.loading
|
|
10006
10006
|
}), Ew = Oa({
|
|
10007
10007
|
loading: !1,
|
|
10008
10008
|
data: void 0,
|
|
10009
10009
|
error: void 0,
|
|
10010
|
-
networkStatus:
|
|
10010
|
+
networkStatus: Tt.ready
|
|
10011
10011
|
});
|
|
10012
10012
|
function hR(r) {
|
|
10013
10013
|
return {
|
|
@@ -10821,7 +10821,7 @@ class qt {
|
|
|
10821
10821
|
);
|
|
10822
10822
|
}
|
|
10823
10823
|
static create(e, t, n, i, a = !1) {
|
|
10824
|
-
const u = e ||
|
|
10824
|
+
const u = e || dr.defaultLocale, c = u || (a ? "en-US" : CR()), f = t || dr.defaultNumberingSystem, h = n || dr.defaultOutputCalendar, d = rd(i) || dr.defaultWeekSettings;
|
|
10825
10825
|
return new qt(c, f, h, d, u);
|
|
10826
10826
|
}
|
|
10827
10827
|
static resetCache() {
|
|
@@ -11169,7 +11169,7 @@ function Xn({ numberingSystem: r }, e = "") {
|
|
|
11169
11169
|
return sa[t] || (sa[t] = {}), sa[t][e] || (sa[t][e] = new RegExp(`${fp[t]}${e}`)), sa[t][e];
|
|
11170
11170
|
}
|
|
11171
11171
|
let av = () => Date.now(), ov = "system", uv = null, cv = null, lv = null, fv = 60, hv, dv = null;
|
|
11172
|
-
class
|
|
11172
|
+
class dr {
|
|
11173
11173
|
/**
|
|
11174
11174
|
* Get the callback for returning the current timestamp.
|
|
11175
11175
|
* @type {function}
|
|
@@ -11509,7 +11509,7 @@ function Mo(r, e = 4, t = 1) {
|
|
|
11509
11509
|
return (ma(r) - n + i) / 7;
|
|
11510
11510
|
}
|
|
11511
11511
|
function nd(r) {
|
|
11512
|
-
return r > 99 ? r : r >
|
|
11512
|
+
return r > 99 ? r : r > dr.twoDigitCutoffYear ? 1900 + r : 2e3 + r;
|
|
11513
11513
|
}
|
|
11514
11514
|
function Xw(r, e, t, n = null) {
|
|
11515
11515
|
const i = new Date(r), a = {
|
|
@@ -12356,7 +12356,7 @@ class It {
|
|
|
12356
12356
|
if (!e)
|
|
12357
12357
|
throw new Gr("need to specify a reason the Duration is invalid");
|
|
12358
12358
|
const n = e instanceof ri ? e : new ri(e, t);
|
|
12359
|
-
if (
|
|
12359
|
+
if (dr.throwOnInvalid)
|
|
12360
12360
|
throw new wR(n);
|
|
12361
12361
|
return new It({ invalid: n });
|
|
12362
12362
|
}
|
|
@@ -12816,12 +12816,12 @@ class It {
|
|
|
12816
12816
|
}
|
|
12817
12817
|
const ra = "Invalid Interval";
|
|
12818
12818
|
function KN(r, e) {
|
|
12819
|
-
return !r || !r.isValid ?
|
|
12819
|
+
return !r || !r.isValid ? hr.invalid("missing or invalid start") : !e || !e.isValid ? hr.invalid("missing or invalid end") : e < r ? hr.invalid(
|
|
12820
12820
|
"end before start",
|
|
12821
12821
|
`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`
|
|
12822
12822
|
) : null;
|
|
12823
12823
|
}
|
|
12824
|
-
class
|
|
12824
|
+
class hr {
|
|
12825
12825
|
/**
|
|
12826
12826
|
* @private
|
|
12827
12827
|
*/
|
|
@@ -12838,9 +12838,9 @@ class dr {
|
|
|
12838
12838
|
if (!e)
|
|
12839
12839
|
throw new Gr("need to specify a reason the Interval is invalid");
|
|
12840
12840
|
const n = e instanceof ri ? e : new ri(e, t);
|
|
12841
|
-
if (
|
|
12841
|
+
if (dr.throwOnInvalid)
|
|
12842
12842
|
throw new bR(n);
|
|
12843
|
-
return new
|
|
12843
|
+
return new hr({ invalid: n });
|
|
12844
12844
|
}
|
|
12845
12845
|
/**
|
|
12846
12846
|
* Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
|
|
@@ -12850,7 +12850,7 @@ class dr {
|
|
|
12850
12850
|
*/
|
|
12851
12851
|
static fromDateTimes(e, t) {
|
|
12852
12852
|
const n = co(e), i = co(t), a = KN(n, i);
|
|
12853
|
-
return a ?? new
|
|
12853
|
+
return a ?? new hr({
|
|
12854
12854
|
start: n,
|
|
12855
12855
|
end: i
|
|
12856
12856
|
});
|
|
@@ -12863,7 +12863,7 @@ class dr {
|
|
|
12863
12863
|
*/
|
|
12864
12864
|
static after(e, t) {
|
|
12865
12865
|
const n = It.fromDurationLike(t), i = co(e);
|
|
12866
|
-
return
|
|
12866
|
+
return hr.fromDateTimes(i, i.plus(n));
|
|
12867
12867
|
}
|
|
12868
12868
|
/**
|
|
12869
12869
|
* Create an Interval from an end DateTime and a Duration to extend backwards to.
|
|
@@ -12873,7 +12873,7 @@ class dr {
|
|
|
12873
12873
|
*/
|
|
12874
12874
|
static before(e, t) {
|
|
12875
12875
|
const n = It.fromDurationLike(t), i = co(e);
|
|
12876
|
-
return
|
|
12876
|
+
return hr.fromDateTimes(i.minus(n), i);
|
|
12877
12877
|
}
|
|
12878
12878
|
/**
|
|
12879
12879
|
* Create an Interval from an ISO 8601 string.
|
|
@@ -12899,18 +12899,18 @@ class dr {
|
|
|
12899
12899
|
f = !1;
|
|
12900
12900
|
}
|
|
12901
12901
|
if (u && f)
|
|
12902
|
-
return
|
|
12902
|
+
return hr.fromDateTimes(a, c);
|
|
12903
12903
|
if (u) {
|
|
12904
12904
|
const h = It.fromISO(i, t);
|
|
12905
12905
|
if (h.isValid)
|
|
12906
|
-
return
|
|
12906
|
+
return hr.after(a, h);
|
|
12907
12907
|
} else if (f) {
|
|
12908
12908
|
const h = It.fromISO(n, t);
|
|
12909
12909
|
if (h.isValid)
|
|
12910
|
-
return
|
|
12910
|
+
return hr.before(c, h);
|
|
12911
12911
|
}
|
|
12912
12912
|
}
|
|
12913
|
-
return
|
|
12913
|
+
return hr.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
|
12914
12914
|
}
|
|
12915
12915
|
/**
|
|
12916
12916
|
* Check if an object is an Interval. Works across context boundaries
|
|
@@ -13025,7 +13025,7 @@ class dr {
|
|
|
13025
13025
|
* @return {Interval}
|
|
13026
13026
|
*/
|
|
13027
13027
|
set({ start: e, end: t } = {}) {
|
|
13028
|
-
return this.isValid ?
|
|
13028
|
+
return this.isValid ? hr.fromDateTimes(e || this.s, t || this.e) : this;
|
|
13029
13029
|
}
|
|
13030
13030
|
/**
|
|
13031
13031
|
* Split this Interval at each of the specified DateTimes
|
|
@@ -13038,7 +13038,7 @@ class dr {
|
|
|
13038
13038
|
let { s: i } = this, a = 0;
|
|
13039
13039
|
for (; i < this.e; ) {
|
|
13040
13040
|
const u = t[a] || this.e, c = +u > +this.e ? this.e : u;
|
|
13041
|
-
n.push(
|
|
13041
|
+
n.push(hr.fromDateTimes(i, c)), i = c, a += 1;
|
|
13042
13042
|
}
|
|
13043
13043
|
return n;
|
|
13044
13044
|
}
|
|
@@ -13056,7 +13056,7 @@ class dr {
|
|
|
13056
13056
|
const u = [];
|
|
13057
13057
|
for (; n < this.e; ) {
|
|
13058
13058
|
const c = this.start.plus(t.mapUnits((f) => f * i));
|
|
13059
|
-
a = +c > +this.e ? this.e : c, u.push(
|
|
13059
|
+
a = +c > +this.e ? this.e : c, u.push(hr.fromDateTimes(n, a)), n = a, i += 1;
|
|
13060
13060
|
}
|
|
13061
13061
|
return u;
|
|
13062
13062
|
}
|
|
@@ -13118,7 +13118,7 @@ class dr {
|
|
|
13118
13118
|
intersection(e) {
|
|
13119
13119
|
if (!this.isValid) return this;
|
|
13120
13120
|
const t = this.s > e.s ? this.s : e.s, n = this.e < e.e ? this.e : e.e;
|
|
13121
|
-
return t >= n ? null :
|
|
13121
|
+
return t >= n ? null : hr.fromDateTimes(t, n);
|
|
13122
13122
|
}
|
|
13123
13123
|
/**
|
|
13124
13124
|
* Return an Interval representing the union of this Interval and the specified Interval.
|
|
@@ -13129,7 +13129,7 @@ class dr {
|
|
|
13129
13129
|
union(e) {
|
|
13130
13130
|
if (!this.isValid) return this;
|
|
13131
13131
|
const t = this.s < e.s ? this.s : e.s, n = this.e > e.e ? this.e : e.e;
|
|
13132
|
-
return
|
|
13132
|
+
return hr.fromDateTimes(t, n);
|
|
13133
13133
|
}
|
|
13134
13134
|
/**
|
|
13135
13135
|
* Merge an array of Intervals into a equivalent minimal set of Intervals.
|
|
@@ -13156,8 +13156,8 @@ class dr {
|
|
|
13156
13156
|
{ time: f.e, type: "e" }
|
|
13157
13157
|
]), u = Array.prototype.concat(...a), c = u.sort((f, h) => f.time - h.time);
|
|
13158
13158
|
for (const f of c)
|
|
13159
|
-
n += f.type === "s" ? 1 : -1, n === 1 ? t = f.time : (t && +t != +f.time && i.push(
|
|
13160
|
-
return
|
|
13159
|
+
n += f.type === "s" ? 1 : -1, n === 1 ? t = f.time : (t && +t != +f.time && i.push(hr.fromDateTimes(t, f.time)), t = null);
|
|
13160
|
+
return hr.merge(i);
|
|
13161
13161
|
}
|
|
13162
13162
|
/**
|
|
13163
13163
|
* Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
|
|
@@ -13165,7 +13165,7 @@ class dr {
|
|
|
13165
13165
|
* @return {Array}
|
|
13166
13166
|
*/
|
|
13167
13167
|
difference(...e) {
|
|
13168
|
-
return
|
|
13168
|
+
return hr.xor([this].concat(e)).map((t) => this.intersection(t)).filter((t) => t && !t.isEmpty());
|
|
13169
13169
|
}
|
|
13170
13170
|
/**
|
|
13171
13171
|
* Returns a string representation of this Interval appropriate for debugging.
|
|
@@ -13267,7 +13267,7 @@ class dr {
|
|
|
13267
13267
|
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
|
13268
13268
|
*/
|
|
13269
13269
|
mapEndpoints(e) {
|
|
13270
|
-
return
|
|
13270
|
+
return hr.fromDateTimes(e(this.s), e(this.e));
|
|
13271
13271
|
}
|
|
13272
13272
|
}
|
|
13273
13273
|
class Hu {
|
|
@@ -13276,7 +13276,7 @@ class Hu {
|
|
|
13276
13276
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
|
13277
13277
|
* @return {boolean}
|
|
13278
13278
|
*/
|
|
13279
|
-
static hasDST(e =
|
|
13279
|
+
static hasDST(e = dr.defaultZone) {
|
|
13280
13280
|
const t = rt.now().setZone(e).set({ month: 12 });
|
|
13281
13281
|
return !e.isUniversal && t.offset !== t.set({ month: 6 }).offset;
|
|
13282
13282
|
}
|
|
@@ -13303,7 +13303,7 @@ class Hu {
|
|
|
13303
13303
|
* @return {Zone}
|
|
13304
13304
|
*/
|
|
13305
13305
|
static normalizeZone(e) {
|
|
13306
|
-
return es(e,
|
|
13306
|
+
return es(e, dr.defaultZone);
|
|
13307
13307
|
}
|
|
13308
13308
|
/**
|
|
13309
13309
|
* Get the weekday on which the week starts according to the given locale.
|
|
@@ -13962,16 +13962,16 @@ function Iv(r) {
|
|
|
13962
13962
|
}
|
|
13963
13963
|
}
|
|
13964
13964
|
function vD(r) {
|
|
13965
|
-
return hc[r] || (fc === void 0 && (fc =
|
|
13965
|
+
return hc[r] || (fc === void 0 && (fc = dr.now()), hc[r] = r.offset(fc)), hc[r];
|
|
13966
13966
|
}
|
|
13967
13967
|
function Cv(r, e) {
|
|
13968
|
-
const t = es(e.zone,
|
|
13968
|
+
const t = es(e.zone, dr.defaultZone);
|
|
13969
13969
|
if (!t.isValid)
|
|
13970
13970
|
return rt.invalid(yo(t));
|
|
13971
13971
|
const n = qt.fromObject(e);
|
|
13972
13972
|
let i, a;
|
|
13973
13973
|
if (nt(r.year))
|
|
13974
|
-
i =
|
|
13974
|
+
i = dr.now();
|
|
13975
13975
|
else {
|
|
13976
13976
|
for (const f of E_)
|
|
13977
13977
|
nt(r[f]) && (r[f] = S_[f]);
|
|
@@ -14004,9 +14004,9 @@ class rt {
|
|
|
14004
14004
|
* @access private
|
|
14005
14005
|
*/
|
|
14006
14006
|
constructor(e) {
|
|
14007
|
-
const t = e.zone ||
|
|
14007
|
+
const t = e.zone || dr.defaultZone;
|
|
14008
14008
|
let n = e.invalid || (Number.isNaN(e.ts) ? new ri("invalid input") : null) || (t.isValid ? null : yo(t));
|
|
14009
|
-
this.ts = nt(e.ts) ?
|
|
14009
|
+
this.ts = nt(e.ts) ? dr.now() : e.ts;
|
|
14010
14010
|
let i = null, a = null;
|
|
14011
14011
|
if (!n)
|
|
14012
14012
|
if (e.old && e.old.ts === this.ts && e.old.zone.equals(t))
|
|
@@ -14093,7 +14093,7 @@ class rt {
|
|
|
14093
14093
|
const n = QR(e) ? e.valueOf() : NaN;
|
|
14094
14094
|
if (Number.isNaN(n))
|
|
14095
14095
|
return rt.invalid("invalid input");
|
|
14096
|
-
const i = es(t.zone,
|
|
14096
|
+
const i = es(t.zone, dr.defaultZone);
|
|
14097
14097
|
return i.isValid ? new rt({
|
|
14098
14098
|
ts: n,
|
|
14099
14099
|
zone: i,
|
|
@@ -14115,7 +14115,7 @@ class rt {
|
|
|
14115
14115
|
if (ns(e))
|
|
14116
14116
|
return e < -Tv || e > Tv ? rt.invalid("Timestamp out of range") : new rt({
|
|
14117
14117
|
ts: e,
|
|
14118
|
-
zone: es(t.zone,
|
|
14118
|
+
zone: es(t.zone, dr.defaultZone),
|
|
14119
14119
|
loc: qt.fromObject(t)
|
|
14120
14120
|
});
|
|
14121
14121
|
throw new Gr(
|
|
@@ -14137,7 +14137,7 @@ class rt {
|
|
|
14137
14137
|
if (ns(e))
|
|
14138
14138
|
return new rt({
|
|
14139
14139
|
ts: e * 1e3,
|
|
14140
|
-
zone: es(t.zone,
|
|
14140
|
+
zone: es(t.zone, dr.defaultZone),
|
|
14141
14141
|
loc: qt.fromObject(t)
|
|
14142
14142
|
});
|
|
14143
14143
|
throw new Gr("fromSeconds requires a numerical input");
|
|
@@ -14177,10 +14177,10 @@ class rt {
|
|
|
14177
14177
|
*/
|
|
14178
14178
|
static fromObject(e, t = {}) {
|
|
14179
14179
|
e = e || {};
|
|
14180
|
-
const n = es(t.zone,
|
|
14180
|
+
const n = es(t.zone, dr.defaultZone);
|
|
14181
14181
|
if (!n.isValid)
|
|
14182
14182
|
return rt.invalid(yo(n));
|
|
14183
|
-
const i = qt.fromObject(t), a = Pc(e, Iv), { minDaysInFirstWeek: u, startOfWeek: c } = yv(a, i), f =
|
|
14183
|
+
const i = qt.fromObject(t), a = Pc(e, Iv), { minDaysInFirstWeek: u, startOfWeek: c } = yv(a, i), f = dr.now(), h = nt(t.specificOffset) ? n.offset(f) : t.specificOffset, d = !nt(a.ordinal), y = !nt(a.year), g = !nt(a.month) || !nt(a.day), m = y || g, b = a.weekYear || a.weekNumber;
|
|
14184
14184
|
if ((m || d) && b)
|
|
14185
14185
|
throw new la(
|
|
14186
14186
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -14334,7 +14334,7 @@ class rt {
|
|
|
14334
14334
|
if (!e)
|
|
14335
14335
|
throw new Gr("need to specify a reason the DateTime is invalid");
|
|
14336
14336
|
const n = e instanceof ri ? e : new ri(e, t);
|
|
14337
|
-
if (
|
|
14337
|
+
if (dr.throwOnInvalid)
|
|
14338
14338
|
throw new vR(n);
|
|
14339
14339
|
return new rt({ invalid: n });
|
|
14340
14340
|
}
|
|
@@ -14753,7 +14753,7 @@ class rt {
|
|
|
14753
14753
|
* @return {DateTime}
|
|
14754
14754
|
*/
|
|
14755
14755
|
toLocal() {
|
|
14756
|
-
return this.setZone(
|
|
14756
|
+
return this.setZone(dr.defaultZone);
|
|
14757
14757
|
}
|
|
14758
14758
|
/**
|
|
14759
14759
|
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
|
@@ -14765,7 +14765,7 @@ class rt {
|
|
|
14765
14765
|
* @return {DateTime}
|
|
14766
14766
|
*/
|
|
14767
14767
|
setZone(e, { keepLocalTime: t = !1, keepCalendarTime: n = !1 } = {}) {
|
|
14768
|
-
if (e = es(e,
|
|
14768
|
+
if (e = es(e, dr.defaultZone), e.equals(this.zone))
|
|
14769
14769
|
return this;
|
|
14770
14770
|
if (e.isValid) {
|
|
14771
14771
|
let i = this.ts;
|
|
@@ -15220,7 +15220,7 @@ class rt {
|
|
|
15220
15220
|
* @return {Interval}
|
|
15221
15221
|
*/
|
|
15222
15222
|
until(e) {
|
|
15223
|
-
return this.isValid ?
|
|
15223
|
+
return this.isValid ? hr.fromDateTimes(this, e) : this;
|
|
15224
15224
|
}
|
|
15225
15225
|
/**
|
|
15226
15226
|
* Return whether this DateTime is in the same unit of time as another DateTime.
|
|
@@ -15573,7 +15573,7 @@ var Rc = { exports: {} };
|
|
|
15573
15573
|
Rc.exports;
|
|
15574
15574
|
(function(r, e) {
|
|
15575
15575
|
(function() {
|
|
15576
|
-
var t, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", y = 1, g = 2, m = 4, b = 1, A = 2, x = 1, w = 2, O = 4, C = 8, D = 16, M = 32, B = 64, ee = 128, Q = 256, re = 512, fe = 30, ye = "...", he = 800, ge = 16, ke = 1, me = 2, $e = 3, we = 1 / 0, ce = 9007199254740991, Oe = 17976931348623157e292, Ne = NaN, xe = 4294967295, Ze = xe - 1,
|
|
15576
|
+
var t, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", y = 1, g = 2, m = 4, b = 1, A = 2, x = 1, w = 2, O = 4, C = 8, D = 16, M = 32, B = 64, ee = 128, Q = 256, re = 512, fe = 30, ye = "...", he = 800, ge = 16, ke = 1, me = 2, $e = 3, we = 1 / 0, ce = 9007199254740991, Oe = 17976931348623157e292, Ne = NaN, xe = 4294967295, Ze = xe - 1, St = xe >>> 1, lt = [
|
|
15577
15577
|
["ary", ee],
|
|
15578
15578
|
["bind", x],
|
|
15579
15579
|
["bindKey", w],
|
|
@@ -15583,7 +15583,7 @@ Rc.exports;
|
|
|
15583
15583
|
["partial", M],
|
|
15584
15584
|
["partialRight", B],
|
|
15585
15585
|
["rearg", Q]
|
|
15586
|
-
], kt = "[object Arguments]", Xe = "[object Array]", Je = "[object AsyncFunction]", dt = "[object Boolean]", De = "[object Date]", bt = "[object DOMException]", z = "[object Error]", K = "[object Function]", V = "[object GeneratorFunction]", J = "[object Map]", X = "[object Number]", G = "[object Null]", Ie = "[object Object]", He = "[object Promise]", Be = "[object Proxy]", le = "[object RegExp]", _e = "[object Set]", Ke = "[object String]",
|
|
15586
|
+
], kt = "[object Arguments]", Xe = "[object Array]", Je = "[object AsyncFunction]", dt = "[object Boolean]", De = "[object Date]", bt = "[object DOMException]", z = "[object Error]", K = "[object Function]", V = "[object GeneratorFunction]", J = "[object Map]", X = "[object Number]", G = "[object Null]", Ie = "[object Object]", He = "[object Promise]", Be = "[object Proxy]", le = "[object RegExp]", _e = "[object Set]", Ke = "[object String]", Et = "[object Symbol]", wt = "[object Undefined]", Gt = "[object WeakMap]", pt = "[object WeakSet]", Mt = "[object ArrayBuffer]", er = "[object DataView]", Pr = "[object Float32Array]", Wt = "[object Float64Array]", Qt = "[object Int8Array]", Yt = "[object Int16Array]", W = "[object Int32Array]", H = "[object Uint8Array]", We = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", Ot = "[object Uint32Array]", Ye = /\b__p \+= '';/g, tr = /\b(__p \+=) '' \+/g, lr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Nt = /&(?:amp|lt|gt|quot|#39);/g, zt = /[&<>"']/g, jr = RegExp(Nt.source), qr = RegExp(zt.source), rr = /<%-([\s\S]+?)%>/g, an = /<%([\s\S]+?)%>/g, br = /<%=([\s\S]+?)%>/g, wr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _r = /^\w*$/, Ar = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, sr = /[\\^$.*+?()[\]{}|]/g, Wr = RegExp(sr.source), kr = /^\s+/, xr = /\s/, Rr = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, on = /\{\n\/\* \[wrapped with (.+)\] \*/, Cn = /,? & /, N = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, ae = /[()=,{}\[\]\/\s]/, be = /\\(\\)?/g, Ce = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, qe = /\w*$/, at = /^[-+]0x[0-9a-f]+$/i, it = /^0b[01]+$/i, et = /^\[object .+?Constructor\]$/, tt = /^0o[0-7]+$/i, _t = /^(?:0|[1-9]\d*)$/, _ = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, I = /($^)/, k = /['\n\r\u2028\u2029\\]/g, P = "\\ud800-\\udfff", F = "\\u0300-\\u036f", U = "\\ufe20-\\ufe2f", ie = "\\u20d0-\\u20ff", de = F + U + ie, Y = "\\u2700-\\u27bf", ne = "a-z\\xdf-\\xf6\\xf8-\\xff", Me = "\\xac\\xb1\\xd7\\xf7", mt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Kt = "\\u2000-\\u206f", mn = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", pi = "A-Z\\xc0-\\xd6\\xd8-\\xde", Np = "\\ufe0e\\ufe0f", Dp = Me + mt + Kt + mn, cl = "['’]", hx = "[" + P + "]", Fp = "[" + Dp + "]", eu = "[" + de + "]", Mp = "\\d+", dx = "[" + Y + "]", Lp = "[" + ne + "]", jp = "[^" + P + Dp + Mp + Y + ne + pi + "]", ll = "\\ud83c[\\udffb-\\udfff]", px = "(?:" + eu + "|" + ll + ")", qp = "[^" + P + "]", fl = "(?:\\ud83c[\\udde6-\\uddff]){2}", hl = "[\\ud800-\\udbff][\\udc00-\\udfff]", $s = "[" + pi + "]", Up = "\\u200d", $p = "(?:" + Lp + "|" + jp + ")", mx = "(?:" + $s + "|" + jp + ")", Bp = "(?:" + cl + "(?:d|ll|m|re|s|t|ve))?", Vp = "(?:" + cl + "(?:D|LL|M|RE|S|T|VE))?", Wp = px + "?", zp = "[" + Np + "]?", yx = "(?:" + Up + "(?:" + [qp, fl, hl].join("|") + ")" + zp + Wp + ")*", gx = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vx = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Hp = zp + Wp + yx, bx = "(?:" + [dx, fl, hl].join("|") + ")" + Hp, wx = "(?:" + [qp + eu + "?", eu, fl, hl, hx].join("|") + ")", _x = RegExp(cl, "g"), xx = RegExp(eu, "g"), dl = RegExp(ll + "(?=" + ll + ")|" + wx + Hp, "g"), Sx = RegExp([
|
|
15587
15587
|
$s + "?" + Lp + "+" + Bp + "(?=" + [Fp, $s, "$"].join("|") + ")",
|
|
15588
15588
|
mx + "+" + Vp + "(?=" + [Fp, $s + $p, "$"].join("|") + ")",
|
|
15589
15589
|
$s + "?" + $p + "+" + Bp,
|
|
@@ -15624,9 +15624,9 @@ Rc.exports;
|
|
|
15624
15624
|
"parseInt",
|
|
15625
15625
|
"setTimeout"
|
|
15626
15626
|
], Ax = -1, Zt = {};
|
|
15627
|
-
Zt[Pr] = Zt[Wt] = Zt[Qt] = Zt[Yt] = Zt[W] = Zt[H] = Zt[We] = Zt[Ve] = Zt[
|
|
15627
|
+
Zt[Pr] = Zt[Wt] = Zt[Qt] = Zt[Yt] = Zt[W] = Zt[H] = Zt[We] = Zt[Ve] = Zt[Ot] = !0, Zt[kt] = Zt[Xe] = Zt[Mt] = Zt[dt] = Zt[er] = Zt[De] = Zt[z] = Zt[K] = Zt[J] = Zt[X] = Zt[Ie] = Zt[le] = Zt[_e] = Zt[Ke] = Zt[Gt] = !1;
|
|
15628
15628
|
var Jt = {};
|
|
15629
|
-
Jt[kt] = Jt[Xe] = Jt[Mt] = Jt[er] = Jt[dt] = Jt[De] = Jt[Pr] = Jt[Wt] = Jt[Qt] = Jt[Yt] = Jt[W] = Jt[J] = Jt[X] = Jt[Ie] = Jt[le] = Jt[_e] = Jt[Ke] = Jt[
|
|
15629
|
+
Jt[kt] = Jt[Xe] = Jt[Mt] = Jt[er] = Jt[dt] = Jt[De] = Jt[Pr] = Jt[Wt] = Jt[Qt] = Jt[Yt] = Jt[W] = Jt[J] = Jt[X] = Jt[Ie] = Jt[le] = Jt[_e] = Jt[Ke] = Jt[Et] = Jt[H] = Jt[We] = Jt[Ve] = Jt[Ot] = !0, Jt[z] = Jt[K] = Jt[Gt] = !1;
|
|
15630
15630
|
var kx = {
|
|
15631
15631
|
// Latin-1 Supplement block.
|
|
15632
15632
|
À: "A",
|
|
@@ -16130,7 +16130,7 @@ Rc.exports;
|
|
|
16130
16130
|
}
|
|
16131
16131
|
}(), fS = te.clearTimeout !== Ur.clearTimeout && te.clearTimeout, hS = Re && Re.now !== Ur.Date.now && Re.now, dS = te.setTimeout !== Ur.setTimeout && te.setTimeout, du = Ir.ceil, pu = Ir.floor, Tl = Ht.getOwnPropertySymbols, pS = uu ? uu.isBuffer : t, ym = te.isFinite, mS = iu.join, yS = cm(Ht.keys, Ht), Cr = Ir.max, zr = Ir.min, gS = Re.now, vS = te.parseInt, gm = Ir.random, bS = iu.reverse, Al = ws(te, "DataView"), Va = ws(te, "Map"), kl = ws(te, "Promise"), Gs = ws(te, "Set"), Wa = ws(te, "WeakMap"), za = ws(Ht, "create"), mu = Wa && new Wa(), Qs = {}, wS = _s(Al), _S = _s(Va), xS = _s(kl), SS = _s(Gs), ES = _s(Wa), yu = Ui ? Ui.prototype : t, Ha = yu ? yu.valueOf : t, vm = yu ? yu.toString : t;
|
|
16132
16132
|
function S(s) {
|
|
16133
|
-
if (
|
|
16133
|
+
if (fr(s) && !ot(s) && !(s instanceof gt)) {
|
|
16134
16134
|
if (s instanceof Dn)
|
|
16135
16135
|
return s;
|
|
16136
16136
|
if ($t.call(s, "__wrapped__"))
|
|
@@ -16610,16 +16610,16 @@ Rc.exports;
|
|
|
16610
16610
|
return p == null ? t : yn(p, s, l);
|
|
16611
16611
|
}
|
|
16612
16612
|
function km(s) {
|
|
16613
|
-
return
|
|
16613
|
+
return fr(s) && Jr(s) == kt;
|
|
16614
16614
|
}
|
|
16615
16615
|
function oE(s) {
|
|
16616
|
-
return
|
|
16616
|
+
return fr(s) && Jr(s) == Mt;
|
|
16617
16617
|
}
|
|
16618
16618
|
function uE(s) {
|
|
16619
|
-
return
|
|
16619
|
+
return fr(s) && Jr(s) == De;
|
|
16620
16620
|
}
|
|
16621
16621
|
function Ya(s, o, l, p, v) {
|
|
16622
|
-
return s === o ? !0 : s == null || o == null || !
|
|
16622
|
+
return s === o ? !0 : s == null || o == null || !fr(s) && !fr(o) ? s !== s && o !== o : cE(s, o, l, p, Ya, v);
|
|
16623
16623
|
}
|
|
16624
16624
|
function cE(s, o, l, p, v, T) {
|
|
16625
16625
|
var R = ot(s), L = ot(o), $ = R ? Xe : Hr(s), se = L ? Xe : Hr(o);
|
|
@@ -16642,7 +16642,7 @@ Rc.exports;
|
|
|
16642
16642
|
return Te ? (T || (T = new Jn()), LE(s, o, l, p, v, T)) : !1;
|
|
16643
16643
|
}
|
|
16644
16644
|
function lE(s) {
|
|
16645
|
-
return
|
|
16645
|
+
return fr(s) && Hr(s) == J;
|
|
16646
16646
|
}
|
|
16647
16647
|
function Fl(s, o, l, p) {
|
|
16648
16648
|
var v = l.length, T = v, R = !p;
|
|
@@ -16676,13 +16676,13 @@ Rc.exports;
|
|
|
16676
16676
|
return o.test(_s(s));
|
|
16677
16677
|
}
|
|
16678
16678
|
function fE(s) {
|
|
16679
|
-
return
|
|
16679
|
+
return fr(s) && Jr(s) == le;
|
|
16680
16680
|
}
|
|
16681
16681
|
function hE(s) {
|
|
16682
|
-
return
|
|
16682
|
+
return fr(s) && Hr(s) == _e;
|
|
16683
16683
|
}
|
|
16684
16684
|
function dE(s) {
|
|
16685
|
-
return
|
|
16685
|
+
return fr(s) && Lu(s.length) && !!Zt[Jr(s)];
|
|
16686
16686
|
}
|
|
16687
16687
|
function Cm(s) {
|
|
16688
16688
|
return typeof s == "function" ? s : s == null ? fn : typeof s == "object" ? ot(s) ? Nm(s[0], s[1]) : Rm(s) : Zy(s);
|
|
@@ -16875,7 +16875,7 @@ Rc.exports;
|
|
|
16875
16875
|
}
|
|
16876
16876
|
function xu(s, o, l) {
|
|
16877
16877
|
var p = 0, v = s == null ? p : s.length;
|
|
16878
|
-
if (typeof o == "number" && o === o && v <=
|
|
16878
|
+
if (typeof o == "number" && o === o && v <= St) {
|
|
16879
16879
|
for (; p < v; ) {
|
|
16880
16880
|
var T = p + v >>> 1, R = s[T];
|
|
16881
16881
|
R !== null && !bn(R) && (l ? R <= o : R < o) ? p = T + 1 : v = T;
|
|
@@ -17442,7 +17442,7 @@ Rc.exports;
|
|
|
17442
17442
|
p |= A, R.set(s, o);
|
|
17443
17443
|
var oe = oy(L(s), L(o), p, v, T, R);
|
|
17444
17444
|
return R.delete(s), oe;
|
|
17445
|
-
case
|
|
17445
|
+
case Et:
|
|
17446
17446
|
if (Ha)
|
|
17447
17447
|
return Ha.call(s) == Ha.call(o);
|
|
17448
17448
|
}
|
|
@@ -17617,7 +17617,7 @@ Rc.exports;
|
|
|
17617
17617
|
case H:
|
|
17618
17618
|
case We:
|
|
17619
17619
|
case Ve:
|
|
17620
|
-
case
|
|
17620
|
+
case Ot:
|
|
17621
17621
|
return Hm(s, l);
|
|
17622
17622
|
case J:
|
|
17623
17623
|
return new p();
|
|
@@ -17628,7 +17628,7 @@ Rc.exports;
|
|
|
17628
17628
|
return TE(s);
|
|
17629
17629
|
case _e:
|
|
17630
17630
|
return new p();
|
|
17631
|
-
case
|
|
17631
|
+
case Et:
|
|
17632
17632
|
return AE(s);
|
|
17633
17633
|
}
|
|
17634
17634
|
}
|
|
@@ -18445,20 +18445,20 @@ Rc.exports;
|
|
|
18445
18445
|
}), xs = km(/* @__PURE__ */ function() {
|
|
18446
18446
|
return arguments;
|
|
18447
18447
|
}()) ? km : function(s) {
|
|
18448
|
-
return
|
|
18448
|
+
return fr(s) && $t.call(s, "callee") && !pm.call(s, "callee");
|
|
18449
18449
|
}, ot = Z.isArray, X1 = Jp ? gn(Jp) : oE;
|
|
18450
18450
|
function cn(s) {
|
|
18451
18451
|
return s != null && Lu(s.length) && !_i(s);
|
|
18452
18452
|
}
|
|
18453
18453
|
function mr(s) {
|
|
18454
|
-
return
|
|
18454
|
+
return fr(s) && cn(s);
|
|
18455
18455
|
}
|
|
18456
18456
|
function eT(s) {
|
|
18457
|
-
return s === !0 || s === !1 ||
|
|
18457
|
+
return s === !0 || s === !1 || fr(s) && Jr(s) == dt;
|
|
18458
18458
|
}
|
|
18459
18459
|
var zi = pS || bf, tT = Yp ? gn(Yp) : uE;
|
|
18460
18460
|
function rT(s) {
|
|
18461
|
-
return
|
|
18461
|
+
return fr(s) && s.nodeType === 1 && !to(s);
|
|
18462
18462
|
}
|
|
18463
18463
|
function nT(s) {
|
|
18464
18464
|
if (s == null)
|
|
@@ -18484,7 +18484,7 @@ Rc.exports;
|
|
|
18484
18484
|
return p === t ? Ya(s, o, t, l) : !!p;
|
|
18485
18485
|
}
|
|
18486
18486
|
function cf(s) {
|
|
18487
|
-
if (!
|
|
18487
|
+
if (!fr(s))
|
|
18488
18488
|
return !1;
|
|
18489
18489
|
var o = Jr(s);
|
|
18490
18490
|
return o == z || o == bt || typeof s.message == "string" && typeof s.name == "string" && !to(s);
|
|
@@ -18508,7 +18508,7 @@ Rc.exports;
|
|
|
18508
18508
|
var o = typeof s;
|
|
18509
18509
|
return s != null && (o == "object" || o == "function");
|
|
18510
18510
|
}
|
|
18511
|
-
function
|
|
18511
|
+
function fr(s) {
|
|
18512
18512
|
return s != null && typeof s == "object";
|
|
18513
18513
|
}
|
|
18514
18514
|
var Ly = Kp ? gn(Kp) : lE;
|
|
@@ -18533,10 +18533,10 @@ Rc.exports;
|
|
|
18533
18533
|
return s == null;
|
|
18534
18534
|
}
|
|
18535
18535
|
function jy(s) {
|
|
18536
|
-
return typeof s == "number" ||
|
|
18536
|
+
return typeof s == "number" || fr(s) && Jr(s) == X;
|
|
18537
18537
|
}
|
|
18538
18538
|
function to(s) {
|
|
18539
|
-
if (!
|
|
18539
|
+
if (!fr(s) || Jr(s) != Ie)
|
|
18540
18540
|
return !1;
|
|
18541
18541
|
var o = lu(s);
|
|
18542
18542
|
if (o === null)
|
|
@@ -18550,20 +18550,20 @@ Rc.exports;
|
|
|
18550
18550
|
}
|
|
18551
18551
|
var qy = Xp ? gn(Xp) : hE;
|
|
18552
18552
|
function ju(s) {
|
|
18553
|
-
return typeof s == "string" || !ot(s) &&
|
|
18553
|
+
return typeof s == "string" || !ot(s) && fr(s) && Jr(s) == Ke;
|
|
18554
18554
|
}
|
|
18555
18555
|
function bn(s) {
|
|
18556
|
-
return typeof s == "symbol" ||
|
|
18556
|
+
return typeof s == "symbol" || fr(s) && Jr(s) == Et;
|
|
18557
18557
|
}
|
|
18558
18558
|
var Xs = em ? gn(em) : dE;
|
|
18559
18559
|
function pT(s) {
|
|
18560
18560
|
return s === t;
|
|
18561
18561
|
}
|
|
18562
18562
|
function mT(s) {
|
|
18563
|
-
return
|
|
18563
|
+
return fr(s) && Hr(s) == Gt;
|
|
18564
18564
|
}
|
|
18565
18565
|
function yT(s) {
|
|
18566
|
-
return
|
|
18566
|
+
return fr(s) && Jr(s) == pt;
|
|
18567
18567
|
}
|
|
18568
18568
|
var gT = ku(Ll), vT = ku(function(s, o) {
|
|
18569
18569
|
return s <= o;
|
|
@@ -18888,7 +18888,7 @@ __p += '`), xt && (pe += `' +
|
|
|
18888
18888
|
`;
|
|
18889
18889
|
else if (ae.test(Ge))
|
|
18890
18890
|
throw new st(c);
|
|
18891
|
-
pe = ($ ? pe.replace(Ye, "") : pe).replace(tr, "$1").replace(
|
|
18891
|
+
pe = ($ ? pe.replace(Ye, "") : pe).replace(tr, "$1").replace(lr, "$1;"), pe = "function(" + (Ge || "obj") + `) {
|
|
18892
18892
|
` + (Ge ? "" : `obj || (obj = {});
|
|
18893
18893
|
`) + "var __t, __p = ''" + (L ? ", __e = _.escape" : "") + ($ ? `, __j = Array.prototype.join;
|
|
18894
18894
|
function print() { __p += __j.call(arguments, '') }
|
|
@@ -19133,7 +19133,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
19133
19133
|
function fk(s, o) {
|
|
19134
19134
|
return s && s.length ? _l(s, ze(o, 2)) : 0;
|
|
19135
19135
|
}
|
|
19136
|
-
return S.after = N1, S.ary = Iy, S.assign = wT, S.assignIn = Vy, S.assignInWith = qu, S.assignWith = _T, S.at = xT, S.before = Cy, S.bind = of, S.bindAll = AA, S.bindKey = Py, S.castArray = z1, S.chain = Ty, S.chunk = eO, S.compact = tO, S.concat = rO, S.cond = kA, S.conforms = IA, S.constant = pf, S.countBy = l1, S.create = ST, S.curry = Ry, S.curryRight = Ny, S.debounce = Dy, S.defaults = ET, S.defaultsDeep = OT, S.defer = D1, S.delay = F1, S.difference = nO, S.differenceBy = iO, S.differenceWith = sO, S.drop = aO, S.dropRight = oO, S.dropRightWhile = uO, S.dropWhile = cO, S.fill = lO, S.filter = h1, S.flatMap = m1, S.flatMapDeep = y1, S.flatMapDepth = g1, S.flatten = xy, S.flattenDeep = fO, S.flattenDepth = hO, S.flip = M1, S.flow = PA, S.flowRight = RA, S.fromPairs = dO, S.functions = RT, S.functionsIn = NT, S.groupBy = v1, S.initial = mO, S.intersection = yO, S.intersectionBy = gO, S.intersectionWith = vO, S.invert = FT, S.invertBy = MT, S.invokeMap = w1, S.iteratee = mf, S.keyBy = _1, S.keys = Nr, S.keysIn = ln, S.map = Nu, S.mapKeys = jT, S.mapValues = qT, S.matches = NA, S.matchesProperty = DA, S.memoize = Fu, S.merge = UT, S.mergeWith = Wy, S.method = FA, S.methodOf = MA, S.mixin = yf, S.negate = Mu, S.nthArg = jA, S.omit = $T, S.omitBy = BT, S.once = L1, S.orderBy = x1, S.over = qA, S.overArgs = j1, S.overEvery = UA, S.overSome = $A, S.partial = uf, S.partialRight = Fy, S.partition = S1, S.pick = VT, S.pickBy = zy, S.property = Zy, S.propertyOf = BA, S.pull = xO, S.pullAll = Ey, S.pullAllBy = SO, S.pullAllWith = EO, S.pullAt = OO, S.range = VA, S.rangeRight = WA, S.rearg = q1, S.reject = T1, S.remove = TO, S.rest = U1, S.reverse = sf, S.sampleSize = k1, S.set = zT, S.setWith = HT, S.shuffle = I1, S.slice = AO, S.sortBy = R1, S.sortedUniq = DO, S.sortedUniqBy = FO, S.split = mA, S.spread = $1, S.tail = MO, S.take = LO, S.takeRight = jO, S.takeRightWhile = qO, S.takeWhile = UO, S.tap = t1, S.throttle = B1, S.thru = Ru, S.toArray = Uy, S.toPairs = Hy, S.toPairsIn = Gy, S.toPath = JA, S.toPlainObject = By, S.transform = GT, S.unary = V1, S.union = $O, S.unionBy = BO, S.unionWith = VO, S.uniq = WO, S.uniqBy = zO, S.uniqWith = HO, S.unset = QT, S.unzip = af, S.unzipWith = Oy, S.update = JT, S.updateWith = YT, S.values = ea, S.valuesIn = KT, S.without = GO, S.words = Yy, S.wrap = W1, S.xor = QO, S.xorBy = JO, S.xorWith = YO, S.zip = KO, S.zipObject = ZO, S.zipObjectDeep = XO, S.zipWith = e1, S.entries = Hy, S.entriesIn = Gy, S.extend = Vy, S.extendWith = qu, yf(S, S), S.add = KA, S.attempt = Ky, S.camelCase = tA, S.capitalize = Qy, S.ceil = ZA, S.clamp = ZT, S.clone = H1, S.cloneDeep = Q1, S.cloneDeepWith = J1, S.cloneWith = G1, S.conformsTo = Y1, S.deburr = Jy, S.defaultTo = CA, S.divide = XA, S.endsWith = rA, S.eq = Yn, S.escape = nA, S.escapeRegExp = iA, S.every = f1, S.find = d1, S.findIndex = wy, S.findKey = TT, S.findLast = p1, S.findLastIndex = _y, S.findLastKey = AT, S.floor = ek, S.forEach = Ay, S.forEachRight = ky, S.forIn = kT, S.forInRight = IT, S.forOwn = CT, S.forOwnRight = PT, S.get = ff, S.gt = K1, S.gte = Z1, S.has = DT, S.hasIn = hf, S.head = Sy, S.identity = fn, S.includes = b1, S.indexOf = pO, S.inRange = XT, S.invoke = LT, S.isArguments = xs, S.isArray = ot, S.isArrayBuffer = X1, S.isArrayLike = cn, S.isArrayLikeObject = mr, S.isBoolean = eT, S.isBuffer = zi, S.isDate = tT, S.isElement = rT, S.isEmpty = nT, S.isEqual = iT, S.isEqualWith = sT, S.isError = cf, S.isFinite = aT, S.isFunction = _i, S.isInteger = My, S.isLength = Lu, S.isMap = Ly, S.isMatch = oT, S.isMatchWith = uT, S.isNaN = cT, S.isNative = lT, S.isNil = hT, S.isNull = fT, S.isNumber = jy, S.isObject = ar, S.isObjectLike =
|
|
19136
|
+
return S.after = N1, S.ary = Iy, S.assign = wT, S.assignIn = Vy, S.assignInWith = qu, S.assignWith = _T, S.at = xT, S.before = Cy, S.bind = of, S.bindAll = AA, S.bindKey = Py, S.castArray = z1, S.chain = Ty, S.chunk = eO, S.compact = tO, S.concat = rO, S.cond = kA, S.conforms = IA, S.constant = pf, S.countBy = l1, S.create = ST, S.curry = Ry, S.curryRight = Ny, S.debounce = Dy, S.defaults = ET, S.defaultsDeep = OT, S.defer = D1, S.delay = F1, S.difference = nO, S.differenceBy = iO, S.differenceWith = sO, S.drop = aO, S.dropRight = oO, S.dropRightWhile = uO, S.dropWhile = cO, S.fill = lO, S.filter = h1, S.flatMap = m1, S.flatMapDeep = y1, S.flatMapDepth = g1, S.flatten = xy, S.flattenDeep = fO, S.flattenDepth = hO, S.flip = M1, S.flow = PA, S.flowRight = RA, S.fromPairs = dO, S.functions = RT, S.functionsIn = NT, S.groupBy = v1, S.initial = mO, S.intersection = yO, S.intersectionBy = gO, S.intersectionWith = vO, S.invert = FT, S.invertBy = MT, S.invokeMap = w1, S.iteratee = mf, S.keyBy = _1, S.keys = Nr, S.keysIn = ln, S.map = Nu, S.mapKeys = jT, S.mapValues = qT, S.matches = NA, S.matchesProperty = DA, S.memoize = Fu, S.merge = UT, S.mergeWith = Wy, S.method = FA, S.methodOf = MA, S.mixin = yf, S.negate = Mu, S.nthArg = jA, S.omit = $T, S.omitBy = BT, S.once = L1, S.orderBy = x1, S.over = qA, S.overArgs = j1, S.overEvery = UA, S.overSome = $A, S.partial = uf, S.partialRight = Fy, S.partition = S1, S.pick = VT, S.pickBy = zy, S.property = Zy, S.propertyOf = BA, S.pull = xO, S.pullAll = Ey, S.pullAllBy = SO, S.pullAllWith = EO, S.pullAt = OO, S.range = VA, S.rangeRight = WA, S.rearg = q1, S.reject = T1, S.remove = TO, S.rest = U1, S.reverse = sf, S.sampleSize = k1, S.set = zT, S.setWith = HT, S.shuffle = I1, S.slice = AO, S.sortBy = R1, S.sortedUniq = DO, S.sortedUniqBy = FO, S.split = mA, S.spread = $1, S.tail = MO, S.take = LO, S.takeRight = jO, S.takeRightWhile = qO, S.takeWhile = UO, S.tap = t1, S.throttle = B1, S.thru = Ru, S.toArray = Uy, S.toPairs = Hy, S.toPairsIn = Gy, S.toPath = JA, S.toPlainObject = By, S.transform = GT, S.unary = V1, S.union = $O, S.unionBy = BO, S.unionWith = VO, S.uniq = WO, S.uniqBy = zO, S.uniqWith = HO, S.unset = QT, S.unzip = af, S.unzipWith = Oy, S.update = JT, S.updateWith = YT, S.values = ea, S.valuesIn = KT, S.without = GO, S.words = Yy, S.wrap = W1, S.xor = QO, S.xorBy = JO, S.xorWith = YO, S.zip = KO, S.zipObject = ZO, S.zipObjectDeep = XO, S.zipWith = e1, S.entries = Hy, S.entriesIn = Gy, S.extend = Vy, S.extendWith = qu, yf(S, S), S.add = KA, S.attempt = Ky, S.camelCase = tA, S.capitalize = Qy, S.ceil = ZA, S.clamp = ZT, S.clone = H1, S.cloneDeep = Q1, S.cloneDeepWith = J1, S.cloneWith = G1, S.conformsTo = Y1, S.deburr = Jy, S.defaultTo = CA, S.divide = XA, S.endsWith = rA, S.eq = Yn, S.escape = nA, S.escapeRegExp = iA, S.every = f1, S.find = d1, S.findIndex = wy, S.findKey = TT, S.findLast = p1, S.findLastIndex = _y, S.findLastKey = AT, S.floor = ek, S.forEach = Ay, S.forEachRight = ky, S.forIn = kT, S.forInRight = IT, S.forOwn = CT, S.forOwnRight = PT, S.get = ff, S.gt = K1, S.gte = Z1, S.has = DT, S.hasIn = hf, S.head = Sy, S.identity = fn, S.includes = b1, S.indexOf = pO, S.inRange = XT, S.invoke = LT, S.isArguments = xs, S.isArray = ot, S.isArrayBuffer = X1, S.isArrayLike = cn, S.isArrayLikeObject = mr, S.isBoolean = eT, S.isBuffer = zi, S.isDate = tT, S.isElement = rT, S.isEmpty = nT, S.isEqual = iT, S.isEqualWith = sT, S.isError = cf, S.isFinite = aT, S.isFunction = _i, S.isInteger = My, S.isLength = Lu, S.isMap = Ly, S.isMatch = oT, S.isMatchWith = uT, S.isNaN = cT, S.isNative = lT, S.isNil = hT, S.isNull = fT, S.isNumber = jy, S.isObject = ar, S.isObjectLike = fr, S.isPlainObject = to, S.isRegExp = lf, S.isSafeInteger = dT, S.isSet = qy, S.isString = ju, S.isSymbol = bn, S.isTypedArray = Xs, S.isUndefined = pT, S.isWeakMap = mT, S.isWeakSet = yT, S.join = bO, S.kebabCase = sA, S.last = Ln, S.lastIndexOf = wO, S.lowerCase = aA, S.lowerFirst = oA, S.lt = gT, S.lte = vT, S.max = tk, S.maxBy = rk, S.mean = nk, S.meanBy = ik, S.min = sk, S.minBy = ak, S.stubArray = vf, S.stubFalse = bf, S.stubObject = zA, S.stubString = HA, S.stubTrue = GA, S.multiply = ok, S.nth = _O, S.noConflict = LA, S.noop = gf, S.now = Du, S.pad = uA, S.padEnd = cA, S.padStart = lA, S.parseInt = fA, S.random = eA, S.reduce = E1, S.reduceRight = O1, S.repeat = hA, S.replace = dA, S.result = WT, S.round = uk, S.runInContext = q, S.sample = A1, S.size = C1, S.snakeCase = pA, S.some = P1, S.sortedIndex = kO, S.sortedIndexBy = IO, S.sortedIndexOf = CO, S.sortedLastIndex = PO, S.sortedLastIndexBy = RO, S.sortedLastIndexOf = NO, S.startCase = yA, S.startsWith = gA, S.subtract = ck, S.sum = lk, S.sumBy = fk, S.template = vA, S.times = QA, S.toFinite = xi, S.toInteger = ut, S.toLength = $y, S.toLower = bA, S.toNumber = jn, S.toSafeInteger = bT, S.toString = Lt, S.toUpper = wA, S.trim = _A, S.trimEnd = xA, S.trimStart = SA, S.truncate = EA, S.unescape = OA, S.uniqueId = YA, S.upperCase = TA, S.upperFirst = df, S.each = Ay, S.eachRight = ky, S.first = Sy, yf(S, function() {
|
|
19137
19137
|
var s = {};
|
|
19138
19138
|
return oi(S, function(o, l) {
|
|
19139
19139
|
$t.call(S.prototype, l) || (s[l] = o);
|
|
@@ -19234,39 +19234,34 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
19234
19234
|
})(Rc, Rc.exports);
|
|
19235
19235
|
var bD = Rc.exports;
|
|
19236
19236
|
const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContext(), A_ = pk(), wD = ({ children: r }) => {
|
|
19237
|
-
const [e, t] = gk(), [n, i] =
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
}, [a, t]);
|
|
19251
|
-
const c = (h) => {
|
|
19252
|
-
i((d) => ({ ...d, ...h })), u((d) => ({ ...d, ...h }));
|
|
19253
|
-
}, f = Io(
|
|
19254
|
-
() => [Object.fromEntries(e.entries()), c],
|
|
19237
|
+
const [e, t] = gk(), [n, i] = At({});
|
|
19238
|
+
pr(() => {
|
|
19239
|
+
Object.keys(n).length > 0 && (t((c) => {
|
|
19240
|
+
const f = new URLSearchParams(c);
|
|
19241
|
+
return Object.entries(n).forEach(([h, d]) => {
|
|
19242
|
+
d == null || d === "" ? f.delete(h) : f.set(h, d);
|
|
19243
|
+
}), f;
|
|
19244
|
+
}), i({}));
|
|
19245
|
+
}, [n, t]);
|
|
19246
|
+
const a = (c) => {
|
|
19247
|
+
i((f) => ({ ...f, ...c }));
|
|
19248
|
+
}, u = Io(
|
|
19249
|
+
() => [Object.fromEntries(e.entries()), a],
|
|
19255
19250
|
[e]
|
|
19256
19251
|
);
|
|
19257
|
-
return /* @__PURE__ */ ur.jsx(A_.Provider, { value:
|
|
19252
|
+
return /* @__PURE__ */ ur.jsx(A_.Provider, { value: u, children: r });
|
|
19258
19253
|
}, ja = Fs.createContext(), Z2 = (r, e, t = (i) => i, n = (i) => i) => {
|
|
19259
|
-
const [i, a] = ai(A_),
|
|
19260
|
-
return [
|
|
19261
|
-
if (typeof
|
|
19262
|
-
const
|
|
19263
|
-
|
|
19264
|
-
}
|
|
19265
|
-
const
|
|
19266
|
-
a({ [r]:
|
|
19254
|
+
const [i, a] = ai(A_), u = i[r];
|
|
19255
|
+
return [u ? t(u) : e, (h) => {
|
|
19256
|
+
if (typeof h == "function") {
|
|
19257
|
+
const y = i[r];
|
|
19258
|
+
h = h(y ? t(y) : e);
|
|
19259
|
+
}
|
|
19260
|
+
const d = n(h);
|
|
19261
|
+
a({ [r]: d });
|
|
19267
19262
|
}];
|
|
19268
19263
|
}, nl = async (r, e, t) => {
|
|
19269
|
-
|
|
19264
|
+
pr(() => {
|
|
19270
19265
|
const n = new window.AbortController();
|
|
19271
19266
|
async function i() {
|
|
19272
19267
|
return await r(n.signal);
|
|
@@ -19277,7 +19272,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19277
19272
|
}, [...e]);
|
|
19278
19273
|
}, X2 = (r, e, t) => {
|
|
19279
19274
|
const n = xa(r);
|
|
19280
|
-
|
|
19275
|
+
pr(() => {
|
|
19281
19276
|
n.current = r;
|
|
19282
19277
|
}, [r]);
|
|
19283
19278
|
const i = mk(
|
|
@@ -19286,10 +19281,10 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19286
19281
|
}, e),
|
|
19287
19282
|
[]
|
|
19288
19283
|
);
|
|
19289
|
-
|
|
19284
|
+
pr(i, [...t]);
|
|
19290
19285
|
}, Nc = (r, e = null, t) => {
|
|
19291
19286
|
const n = xa(r);
|
|
19292
|
-
|
|
19287
|
+
pr(() => {
|
|
19293
19288
|
n.current = r;
|
|
19294
19289
|
}, [r]), nl(
|
|
19295
19290
|
async (i) => {
|
|
@@ -19302,7 +19297,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19302
19297
|
[e, ...t]
|
|
19303
19298
|
);
|
|
19304
19299
|
}, _D = (r, e, t) => {
|
|
19305
|
-
const [n, i] =
|
|
19300
|
+
const [n, i] = At(), [a, u] = At(!0), [c, f] = At(), { urls: h, request: d } = di();
|
|
19306
19301
|
return Nc(
|
|
19307
19302
|
async (y) => {
|
|
19308
19303
|
try {
|
|
@@ -19323,8 +19318,8 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19323
19318
|
[r, e]
|
|
19324
19319
|
), { data: n, error: c, loading: a };
|
|
19325
19320
|
}, eL = (r, e) => {
|
|
19326
|
-
const [t, n] =
|
|
19327
|
-
return
|
|
19321
|
+
const [t, n] = At(), [i, a] = At(!0), [u, c] = At(null), [f, h] = At(), { urls: d, request: y } = di();
|
|
19322
|
+
return pr(() => {
|
|
19328
19323
|
a(u === null || u > 0);
|
|
19329
19324
|
}, [u]), Nc(
|
|
19330
19325
|
async (g) => {
|
|
@@ -19347,7 +19342,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19347
19342
|
[r]
|
|
19348
19343
|
), { data: t, error: f, loading: i };
|
|
19349
19344
|
}, tL = ({ machineRef: r, key: e, skip: t }) => {
|
|
19350
|
-
const [n, i] =
|
|
19345
|
+
const [n, i] = At(), [a, u] = At(), [c, f] = At(), [h, d] = At(), [y, g] = At(), [m, b] = At(), A = hs`
|
|
19351
19346
|
subscription MMToolsQuantityStreamSubscription {
|
|
19352
19347
|
currentQuantities(
|
|
19353
19348
|
where: { machineRef: { _eq: ${y} }, key: { _eq: "${m}" } }
|
|
@@ -19356,10 +19351,10 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19356
19351
|
eventTime
|
|
19357
19352
|
}
|
|
19358
19353
|
}
|
|
19359
|
-
`, { data: x } = yR(A, { skip: t }), [w, O] =
|
|
19360
|
-
|
|
19354
|
+
`, { data: x } = yR(A, { skip: t }), [w, O] = At();
|
|
19355
|
+
pr(() => {
|
|
19361
19356
|
r !== y && g(r), e !== m && b(e), d(), i(), f(), u();
|
|
19362
|
-
}, [r, e, m, y]),
|
|
19357
|
+
}, [r, e, m, y]), pr(() => {
|
|
19363
19358
|
if (M || !r || !e)
|
|
19364
19359
|
return;
|
|
19365
19360
|
const B = h || rt.utc().minus({ hours: 1 }).format(), ee = hs`
|
|
@@ -19371,7 +19366,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19371
19366
|
}
|
|
19372
19367
|
`;
|
|
19373
19368
|
O(ee);
|
|
19374
|
-
}, [y, m, h]),
|
|
19369
|
+
}, [y, m, h]), pr(() => {
|
|
19375
19370
|
w && C();
|
|
19376
19371
|
}, [w, x]);
|
|
19377
19372
|
const [C, { data: D, loading: M }] = pR(
|
|
@@ -19380,7 +19375,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19380
19375
|
fetchPolicy: "no-cache"
|
|
19381
19376
|
}
|
|
19382
19377
|
);
|
|
19383
|
-
return
|
|
19378
|
+
return pr(() => {
|
|
19384
19379
|
if (!D || !D.quantities)
|
|
19385
19380
|
return;
|
|
19386
19381
|
const B = fi.last(D.quantities);
|
|
@@ -19392,7 +19387,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19392
19387
|
}
|
|
19393
19388
|
}, [D]), { data: n, error: c, loading: a };
|
|
19394
19389
|
}, rL = (r) => {
|
|
19395
|
-
const [e, t] =
|
|
19390
|
+
const [e, t] = At(), [n, i] = At(!0), [a, u] = At(), { urls: c, request: f } = di();
|
|
19396
19391
|
return nl(
|
|
19397
19392
|
async (h) => {
|
|
19398
19393
|
try {
|
|
@@ -19411,8 +19406,8 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19411
19406
|
[r]
|
|
19412
19407
|
), { data: e, error: a, loading: n };
|
|
19413
19408
|
}, nL = (r) => {
|
|
19414
|
-
const [e, t] =
|
|
19415
|
-
return
|
|
19409
|
+
const [e, t] = At(), { urls: n, request: i, clientId: a } = di(), u = `lab:${a}:${r}`, { data: c, loading: f, error: h } = _D("/templates");
|
|
19410
|
+
return pr(() => {
|
|
19416
19411
|
if (!c)
|
|
19417
19412
|
return;
|
|
19418
19413
|
const m = fi.filter(c.templates, { namespace: u });
|
|
@@ -19450,8 +19445,8 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19450
19445
|
{ templates: e, loading: f, error: h }
|
|
19451
19446
|
];
|
|
19452
19447
|
}, iL = () => {
|
|
19453
|
-
const [r, e] =
|
|
19454
|
-
return
|
|
19448
|
+
const [r, e] = At(), [t, n] = At(), { urls: i } = di();
|
|
19449
|
+
return pr(() => {
|
|
19455
19450
|
window === window.top ? (n(window.location.hash.substring(1)), e(!0)) : (window.addEventListener("message", (a) => {
|
|
19456
19451
|
switch (a.data.event) {
|
|
19457
19452
|
case "init":
|
|
@@ -19464,7 +19459,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19464
19459
|
},
|
|
19465
19460
|
i.appUrl
|
|
19466
19461
|
));
|
|
19467
|
-
}, [i]),
|
|
19462
|
+
}, [i]), pr(() => {
|
|
19468
19463
|
r && (window === window.top ? window.location.hash = t : window.top.postMessage(
|
|
19469
19464
|
{
|
|
19470
19465
|
event: "set-hash",
|
|
@@ -19480,7 +19475,7 @@ const fi = /* @__PURE__ */ W0(bD), O_ = Fs.createContext(), T_ = Fs.createContex
|
|
|
19480
19475
|
return r;
|
|
19481
19476
|
}, uL = (r, e, t = []) => {
|
|
19482
19477
|
const { addSetting: n } = ai(ja);
|
|
19483
|
-
|
|
19478
|
+
pr(() => {
|
|
19484
19479
|
n(r, e);
|
|
19485
19480
|
}, [...t]);
|
|
19486
19481
|
}, cL = () => ai(O_), lL = () => {
|
|
@@ -20133,14 +20128,14 @@ function JD(r) {
|
|
|
20133
20128
|
}
|
|
20134
20129
|
D.emit("connecting", re);
|
|
20135
20130
|
const xe = new C(typeof e == "function" ? await e() : e, HD);
|
|
20136
|
-
let Ze,
|
|
20131
|
+
let Ze, St;
|
|
20137
20132
|
function lt() {
|
|
20138
|
-
isFinite(u) && u > 0 && (clearTimeout(
|
|
20133
|
+
isFinite(u) && u > 0 && (clearTimeout(St), St = setTimeout(() => {
|
|
20139
20134
|
xe.readyState === C.OPEN && (xe.send(lo({ type: gr.Ping })), D.emit("ping", !1, void 0));
|
|
20140
20135
|
}, u));
|
|
20141
20136
|
}
|
|
20142
20137
|
M((Xe) => {
|
|
20143
|
-
B = void 0, clearTimeout(Ze), clearTimeout(
|
|
20138
|
+
B = void 0, clearTimeout(Ze), clearTimeout(St), Ne(Xe), Xe instanceof Uv && (xe.close(4499, "Terminated"), xe.onerror = null, xe.onclose = null);
|
|
20144
20139
|
}), xe.onerror = (Xe) => D.emit("error", Xe), xe.onclose = (Xe) => D.emit("closed", Xe), xe.onopen = async () => {
|
|
20145
20140
|
try {
|
|
20146
20141
|
D.emit("opened", xe);
|
|
@@ -20255,7 +20250,7 @@ function JD(r) {
|
|
|
20255
20250
|
return (async () => {
|
|
20256
20251
|
for (ee++; ; )
|
|
20257
20252
|
try {
|
|
20258
|
-
const [xe, Ze,
|
|
20253
|
+
const [xe, Ze, St] = await he();
|
|
20259
20254
|
if (ce)
|
|
20260
20255
|
return Ze();
|
|
20261
20256
|
const lt = D.onMessage(we, (kt) => {
|
|
@@ -20283,7 +20278,7 @@ function JD(r) {
|
|
|
20283
20278
|
id: we,
|
|
20284
20279
|
type: gr.Complete
|
|
20285
20280
|
}, x)), ee--, ce = !0, Ze();
|
|
20286
|
-
}, await
|
|
20281
|
+
}, await St.finally(lt);
|
|
20287
20282
|
return;
|
|
20288
20283
|
} catch (xe) {
|
|
20289
20284
|
if (!ge(xe))
|
|
@@ -20765,8 +20760,8 @@ function qa() {
|
|
|
20765
20760
|
if (Ne === "%" && Oe !== "%")
|
|
20766
20761
|
throw new a("invalid intrinsic syntax, expected opening `%`");
|
|
20767
20762
|
var xe = [];
|
|
20768
|
-
return fe(ce, ge, function(Ze,
|
|
20769
|
-
xe[xe.length] = lt ? fe(kt, ke, "$1") :
|
|
20763
|
+
return fe(ce, ge, function(Ze, St, lt, kt) {
|
|
20764
|
+
xe[xe.length] = lt ? fe(kt, ke, "$1") : St || Ze;
|
|
20770
20765
|
}), xe;
|
|
20771
20766
|
}, $e = function(ce, Oe) {
|
|
20772
20767
|
var Ne = ce, xe;
|
|
@@ -20789,14 +20784,14 @@ function qa() {
|
|
|
20789
20784
|
throw new u('"allowMissing" argument must be a boolean');
|
|
20790
20785
|
if (he(/^%?[^%]*%?$/, ce) === null)
|
|
20791
20786
|
throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
20792
|
-
var Ne = me(ce), xe = Ne.length > 0 ? Ne[0] : "", Ze = $e("%" + xe + "%", Oe),
|
|
20787
|
+
var Ne = me(ce), xe = Ne.length > 0 ? Ne[0] : "", Ze = $e("%" + xe + "%", Oe), St = Ze.name, lt = Ze.value, kt = !1, Xe = Ze.alias;
|
|
20793
20788
|
Xe && (xe = Xe[0], re(Ne, Q([0, 1], Xe)));
|
|
20794
20789
|
for (var Je = 1, dt = !0; Je < Ne.length; Je += 1) {
|
|
20795
20790
|
var De = Ne[Je], bt = ye(De, 0, 1), z = ye(De, -1);
|
|
20796
20791
|
if ((bt === '"' || bt === "'" || bt === "`" || z === '"' || z === "'" || z === "`") && bt !== z)
|
|
20797
20792
|
throw new a("property names with quotes must have matching quotes");
|
|
20798
|
-
if ((De === "constructor" || !dt) && (kt = !0), xe += "." + De,
|
|
20799
|
-
lt = O[
|
|
20793
|
+
if ((De === "constructor" || !dt) && (kt = !0), xe += "." + De, St = "%" + xe + "%", ee(O, St))
|
|
20794
|
+
lt = O[St];
|
|
20800
20795
|
else if (lt != null) {
|
|
20801
20796
|
if (!(De in lt)) {
|
|
20802
20797
|
if (!Oe)
|
|
@@ -20808,7 +20803,7 @@ function qa() {
|
|
|
20808
20803
|
dt = !!K, dt && "get" in K && !("originalValue" in K.get) ? lt = K.get : lt = lt[De];
|
|
20809
20804
|
} else
|
|
20810
20805
|
dt = ee(lt, De), lt = lt[De];
|
|
20811
|
-
dt && !kt && (O[
|
|
20806
|
+
dt && !kt && (O[St] = lt);
|
|
20812
20807
|
}
|
|
20813
20808
|
}
|
|
20814
20809
|
return lt;
|
|
@@ -20967,14 +20962,14 @@ function vF() {
|
|
|
20967
20962
|
if (typeof W == "number") {
|
|
20968
20963
|
var Ve = W < 0 ? -fe(-W) : fe(W);
|
|
20969
20964
|
if (Ve !== W) {
|
|
20970
|
-
var
|
|
20971
|
-
return C.call(
|
|
20965
|
+
var Ot = String(Ve), Ye = O.call(H, Ot.length + 1);
|
|
20966
|
+
return C.call(Ot, We, "$&_") + "." + C.call(C.call(Ye, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
20972
20967
|
}
|
|
20973
20968
|
}
|
|
20974
20969
|
return C.call(H, We, "$&_");
|
|
20975
20970
|
}
|
|
20976
20971
|
var Oe = gF, Ne = Oe.custom, xe = z(Ne) ? Ne : null;
|
|
20977
|
-
fh = function W(H, We, Ve,
|
|
20972
|
+
fh = function W(H, We, Ve, Ot) {
|
|
20978
20973
|
var Ye = We || {};
|
|
20979
20974
|
if (J(Ye, "quoteStyle") && Ye.quoteStyle !== "single" && Ye.quoteStyle !== "double")
|
|
20980
20975
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -20987,7 +20982,7 @@ function vF() {
|
|
|
20987
20982
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
20988
20983
|
if (J(Ye, "numericSeparator") && typeof Ye.numericSeparator != "boolean")
|
|
20989
20984
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
20990
|
-
var
|
|
20985
|
+
var lr = Ye.numericSeparator;
|
|
20991
20986
|
if (typeof H > "u")
|
|
20992
20987
|
return "undefined";
|
|
20993
20988
|
if (H === null)
|
|
@@ -21000,28 +20995,28 @@ function vF() {
|
|
|
21000
20995
|
if (H === 0)
|
|
21001
20996
|
return 1 / 0 / H > 0 ? "0" : "-0";
|
|
21002
20997
|
var Nt = String(H);
|
|
21003
|
-
return
|
|
20998
|
+
return lr ? ce(H, Nt) : Nt;
|
|
21004
20999
|
}
|
|
21005
21000
|
if (typeof H == "bigint") {
|
|
21006
21001
|
var zt = String(H) + "n";
|
|
21007
|
-
return
|
|
21002
|
+
return lr ? ce(H, zt) : zt;
|
|
21008
21003
|
}
|
|
21009
21004
|
var jr = typeof Ye.depth > "u" ? 5 : Ye.depth;
|
|
21010
21005
|
if (typeof Ve > "u" && (Ve = 0), Ve >= jr && jr > 0 && typeof H == "object")
|
|
21011
21006
|
return lt(H) ? "[Array]" : "[Object]";
|
|
21012
21007
|
var qr = Wt(Ye, Ve);
|
|
21013
|
-
if (typeof
|
|
21014
|
-
|
|
21015
|
-
else if (Ie(
|
|
21008
|
+
if (typeof Ot > "u")
|
|
21009
|
+
Ot = [];
|
|
21010
|
+
else if (Ie(Ot, H) >= 0)
|
|
21016
21011
|
return "[Circular]";
|
|
21017
21012
|
function rr(qe, at, it) {
|
|
21018
|
-
if (at && (
|
|
21013
|
+
if (at && (Ot = re.call(Ot), Ot.push(at)), it) {
|
|
21019
21014
|
var et = {
|
|
21020
21015
|
depth: Ye.depth
|
|
21021
21016
|
};
|
|
21022
|
-
return J(Ye, "quoteStyle") && (et.quoteStyle = Ye.quoteStyle), W(qe, et, Ve + 1,
|
|
21017
|
+
return J(Ye, "quoteStyle") && (et.quoteStyle = Ye.quoteStyle), W(qe, et, Ve + 1, Ot);
|
|
21023
21018
|
}
|
|
21024
|
-
return W(qe, Ye, Ve + 1,
|
|
21019
|
+
return W(qe, Ye, Ve + 1, Ot);
|
|
21025
21020
|
}
|
|
21026
21021
|
if (typeof H == "function" && !Xe(H)) {
|
|
21027
21022
|
var an = G(H), br = Yt(H, rr);
|
|
@@ -21031,9 +21026,9 @@ function vF() {
|
|
|
21031
21026
|
var wr = ke ? C.call(String(H), /^(Symbol\(.*\))_[^)]*$/, "$1") : ge.call(H);
|
|
21032
21027
|
return typeof H == "object" && !ke ? pt(wr) : wr;
|
|
21033
21028
|
}
|
|
21034
|
-
if (
|
|
21029
|
+
if (Et(H)) {
|
|
21035
21030
|
for (var _r = "<" + M.call(String(H.nodeName)), Ar = H.attributes || [], sr = 0; sr < Ar.length; sr++)
|
|
21036
|
-
_r += " " + Ar[sr].name + "=" + Ze(
|
|
21031
|
+
_r += " " + Ar[sr].name + "=" + Ze(St(Ar[sr].value), "double", Ye);
|
|
21037
21032
|
return _r += ">", H.childNodes && H.childNodes.length && (_r += "..."), _r += "</" + M.call(String(H.nodeName)) + ">", _r;
|
|
21038
21033
|
}
|
|
21039
21034
|
if (lt(H)) {
|
|
@@ -21092,7 +21087,7 @@ function vF() {
|
|
|
21092
21087
|
var Ve = (We.quoteStyle || H) === "double" ? '"' : "'";
|
|
21093
21088
|
return Ve + W + Ve;
|
|
21094
21089
|
}
|
|
21095
|
-
function
|
|
21090
|
+
function St(W) {
|
|
21096
21091
|
return C.call(String(W), /"/g, """);
|
|
21097
21092
|
}
|
|
21098
21093
|
function lt(W) {
|
|
@@ -21230,7 +21225,7 @@ function vF() {
|
|
|
21230
21225
|
}
|
|
21231
21226
|
return !1;
|
|
21232
21227
|
}
|
|
21233
|
-
function
|
|
21228
|
+
function Et(W) {
|
|
21234
21229
|
return !W || typeof W != "object" ? !1 : typeof HTMLElement < "u" && W instanceof HTMLElement ? !0 : typeof W.nodeName == "string" && typeof W.getAttribute == "function";
|
|
21235
21230
|
}
|
|
21236
21231
|
function wt(W, H) {
|
|
@@ -21238,8 +21233,8 @@ function vF() {
|
|
|
21238
21233
|
var We = W.length - H.maxStringLength, Ve = "... " + We + " more character" + (We > 1 ? "s" : "");
|
|
21239
21234
|
return wt(O.call(W, 0, H.maxStringLength), H) + Ve;
|
|
21240
21235
|
}
|
|
21241
|
-
var
|
|
21242
|
-
return Ze(
|
|
21236
|
+
var Ot = C.call(C.call(W, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Gt);
|
|
21237
|
+
return Ze(Ot, "single", H);
|
|
21243
21238
|
}
|
|
21244
21239
|
function Gt(W) {
|
|
21245
21240
|
var H = W.charCodeAt(0), We = {
|
|
@@ -21258,8 +21253,8 @@ function vF() {
|
|
|
21258
21253
|
return W + " { ? }";
|
|
21259
21254
|
}
|
|
21260
21255
|
function er(W, H, We, Ve) {
|
|
21261
|
-
var
|
|
21262
|
-
return W + " (" + H + ") {" +
|
|
21256
|
+
var Ot = Ve ? Qt(We, Ve) : Q.call(We, ", ");
|
|
21257
|
+
return W + " (" + H + ") {" + Ot + "}";
|
|
21263
21258
|
}
|
|
21264
21259
|
function Pr(W) {
|
|
21265
21260
|
for (var H = 0; H < W.length; H++)
|
|
@@ -21293,14 +21288,14 @@ function vF() {
|
|
|
21293
21288
|
var We = lt(W), Ve = [];
|
|
21294
21289
|
if (We) {
|
|
21295
21290
|
Ve.length = W.length;
|
|
21296
|
-
for (var
|
|
21297
|
-
Ve[
|
|
21291
|
+
for (var Ot = 0; Ot < W.length; Ot++)
|
|
21292
|
+
Ve[Ot] = J(W, Ot) ? H(W[Ot], W) : "";
|
|
21298
21293
|
}
|
|
21299
21294
|
var Ye = typeof he == "function" ? he(W) : [], tr;
|
|
21300
21295
|
if (ke) {
|
|
21301
21296
|
tr = {};
|
|
21302
|
-
for (var
|
|
21303
|
-
tr["$" + Ye[
|
|
21297
|
+
for (var lr = 0; lr < Ye.length; lr++)
|
|
21298
|
+
tr["$" + Ye[lr]] = Ye[lr];
|
|
21304
21299
|
}
|
|
21305
21300
|
for (var Nt in W)
|
|
21306
21301
|
J(W, Nt) && (We && String(Number(Nt)) === Nt && Nt < W.length || ke && tr["$" + Nt] instanceof Symbol || (B.call(/[^\w$]/, Nt) ? Ve.push(H(Nt, W) + ": " + H(W[Nt], W)) : Ve.push(Nt + ": " + H(W[Nt], W))));
|
|
@@ -21575,8 +21570,8 @@ function wF() {
|
|
|
21575
21570
|
}
|
|
21576
21571
|
if (y(ce) || e.isBuffer(ce)) {
|
|
21577
21572
|
if (Q) {
|
|
21578
|
-
var
|
|
21579
|
-
return [ke(
|
|
21573
|
+
var St = me ? w : Q(w, d.encoder, $e, "key", ge);
|
|
21574
|
+
return [ke(St) + "=" + ke(Q(ce, d.encoder, $e, "value", ge))];
|
|
21580
21575
|
}
|
|
21581
21576
|
return [ke(w) + "=" + ke(String(ce))];
|
|
21582
21577
|
}
|
|
@@ -21978,7 +21973,7 @@ function xF() {
|
|
|
21978
21973
|
case 0:
|
|
21979
21974
|
return J = V.fragmentMap, X = V.contextValue, G = V.variableValues, Ie = {}, He = function(_e) {
|
|
21980
21975
|
return u(Be, void 0, void 0, function() {
|
|
21981
|
-
var Ke,
|
|
21976
|
+
var Ke, Et, wt, Gt, pt;
|
|
21982
21977
|
return c(this, function(Mt) {
|
|
21983
21978
|
switch (Mt.label) {
|
|
21984
21979
|
case 0:
|
|
@@ -21987,7 +21982,7 @@ function xF() {
|
|
|
21987
21982
|
/*return*/
|
|
21988
21983
|
];
|
|
21989
21984
|
case 1:
|
|
21990
|
-
return Ke = Mt.sent(),
|
|
21985
|
+
return Ke = Mt.sent(), Et = i.resultKeyNameFromField(_e), Ke !== void 0 && (Ie[Et] === void 0 ? Ie[Et] = Ke : d(Ie[Et], Ke)), [
|
|
21991
21986
|
2
|
|
21992
21987
|
/*return*/
|
|
21993
21988
|
];
|
|
@@ -22229,10 +22224,10 @@ function xF() {
|
|
|
22229
22224
|
var le = He + Be.length;
|
|
22230
22225
|
if (Be[0] === "{" && Be[Be.length - 1] === "}") {
|
|
22231
22226
|
var _e = Be.slice(1, Be.length - 1).split(".");
|
|
22232
|
-
X.push(function(Ke,
|
|
22227
|
+
X.push(function(Ke, Et) {
|
|
22233
22228
|
try {
|
|
22234
22229
|
var wt = he(Ke, _e);
|
|
22235
|
-
return !
|
|
22230
|
+
return !Et || typeof wt != "object" || wt == null ? String(wt) : a.stringify(wt);
|
|
22236
22231
|
} catch {
|
|
22237
22232
|
var Gt = [K, _e.join(".")].join("|");
|
|
22238
22233
|
return Gt in z.warnTable || (console.warn("Warning: RestLink caught an error while unpacking", Gt, "This tends to happen if you forgot to pass a parameter needed for creating an @rest(path, or if RestLink was configured to deeply unpack a path parameter that wasn't provided. This message will only log once per detected instance. Trouble-shooting hint: check @rest(path: and the variables provided to this query."), z.warnTable[Gt] = !0), "";
|
|
@@ -22309,7 +22304,7 @@ function xF() {
|
|
|
22309
22304
|
var V = K;
|
|
22310
22305
|
return V;
|
|
22311
22306
|
}
|
|
22312
|
-
},
|
|
22307
|
+
}, St = function(z, K, V) {
|
|
22313
22308
|
var J = new Error(V);
|
|
22314
22309
|
throw J.response = z, J.statusCode = z.status, J.result = K, J;
|
|
22315
22310
|
}, lt = function(z, K) {
|
|
@@ -22318,29 +22313,29 @@ function xF() {
|
|
|
22318
22313
|
}) : (z.__typename = K, z);
|
|
22319
22314
|
}, kt = function(z, K, V, J, X) {
|
|
22320
22315
|
return w(void 0, void 0, void 0, function() {
|
|
22321
|
-
var G, Ie, He, Be, le, _e, Ke,
|
|
22316
|
+
var G, Ie, He, Be, le, _e, Ke, Et, wt, Gt, pt, Mt, er, Pr, Wt, Qt, Yt, W, H, We, Ve, Ot, Ye, tr, lr, Nt, zt, jr, qr, rr, an, br, wr, _r, Ar, sr, Wr, kr, xr, Rr, on, Cn, N, ae, be, Ce, qe, at, it, et;
|
|
22322
22317
|
return O(this, function(tt) {
|
|
22323
22318
|
switch (tt.label) {
|
|
22324
22319
|
case 0:
|
|
22325
22320
|
if (G = X.directives, Ie = X.isLeaf, He = X.resultKey, Be = J.exportVariablesByNode, le = Be.get(K) || {}, _e = function(_t) {
|
|
22326
22321
|
return _t instanceof Array ? _t.forEach(_e) : Be.set(_t, x({}, le)), _t;
|
|
22327
|
-
}, Ke = (K || {})[He],
|
|
22322
|
+
}, Ke = (K || {})[He], Et = (K || {})[z], K && G && G.export && (le[G.export.as] = Et), wt = G && G.type, !Ie && wt) {
|
|
22328
22323
|
if (G.rest)
|
|
22329
22324
|
throw new Error("Invalid use of @type(name: ...) directive on a call that also has @rest(...)");
|
|
22330
|
-
return _e(
|
|
22325
|
+
return _e(Et), [2, lt(Et, G.type.name)];
|
|
22331
22326
|
}
|
|
22332
22327
|
if (Gt = !G || !G.rest, Gt)
|
|
22333
|
-
return [2, _e(Ke ||
|
|
22334
|
-
if (pt = J.credentials, Mt = J.endpoints, er = J.headers, Pr = J.customFetch, Wt = J.operationType, Qt = J.typePatcher, Yt = J.mainDefinition, W = J.fragmentDefinitions, H = J.fieldNameNormalizer, We = J.fieldNameDenormalizer, Ve = J.serializers,
|
|
22328
|
+
return [2, _e(Ke || Et)];
|
|
22329
|
+
if (pt = J.credentials, Mt = J.endpoints, er = J.headers, Pr = J.customFetch, Wt = J.operationType, Qt = J.typePatcher, Yt = J.mainDefinition, W = J.fragmentDefinitions, H = J.fieldNameNormalizer, We = J.fieldNameDenormalizer, Ve = J.serializers, Ot = J.responseTransformer, Ye = i.createFragmentMap(W), tr = G.rest, lr = tr.path, Nt = tr.endpoint, zt = tr.pathBuilder, jr = re(Mt, Nt), qr = lr == null && zt == null, qr)
|
|
22335
22330
|
throw new Error('One of ("path" | "pathBuilder") must be set in the @rest() directive. This request had neither, please add one');
|
|
22336
|
-
if (zt || (
|
|
22331
|
+
if (zt || (lr.includes(":") ? (console.warn("Deprecated: '@rest(path:' contains a ':' colon, this format will be removed in future versions"), zt = function(_t) {
|
|
22337
22332
|
var _ = _t.args, I = _t.exportVariables, k = x(x({}, _), I), P = Object.keys(k).reduce(function(F, U) {
|
|
22338
22333
|
return fe(F, U, k[U]);
|
|
22339
|
-
},
|
|
22334
|
+
}, lr);
|
|
22340
22335
|
if (P.includes(":"))
|
|
22341
22336
|
throw new Error('Missing parameters to run query, specify it in the query params or use an export directive. (If you need to use ":" inside a variable string make sure to encode the variables properly using `encodeURIComponent`. Alternatively see documentation about using pathBuilder.)');
|
|
22342
22337
|
return P;
|
|
22343
|
-
}) : zt = ye.replacerForPath(
|
|
22338
|
+
}) : zt = ye.replacerForPath(lr)), rr = {
|
|
22344
22339
|
args: V,
|
|
22345
22340
|
exportVariables: le,
|
|
22346
22341
|
context: J,
|
|
@@ -22378,9 +22373,9 @@ function xF() {
|
|
|
22378
22373
|
case 7:
|
|
22379
22374
|
return at = tt.sent(), [3, 8];
|
|
22380
22375
|
case 8:
|
|
22381
|
-
|
|
22376
|
+
St(Ce, at, "Response not successful: Received status code " + Ce.status), tt.label = 9;
|
|
22382
22377
|
case 9:
|
|
22383
|
-
if (it = jr.responseTransformer ||
|
|
22378
|
+
if (it = jr.responseTransformer || Ot, !it) return [3, 14];
|
|
22384
22379
|
tt.label = 10;
|
|
22385
22380
|
case 10:
|
|
22386
22381
|
return tt.trys.push([10, 12, , 13]), [4, it(qe, _r)];
|
|
@@ -22416,7 +22411,7 @@ function xF() {
|
|
|
22416
22411
|
function(z) {
|
|
22417
22412
|
A(K, z);
|
|
22418
22413
|
function K(V) {
|
|
22419
|
-
var J, X = V.uri, G = V.endpoints, Ie = V.headers, He = V.fieldNameNormalizer, Be = V.fieldNameDenormalizer, le = V.typePatcher, _e = V.customFetch, Ke = V.credentials,
|
|
22414
|
+
var J, X = V.uri, G = V.endpoints, Ie = V.headers, He = V.fieldNameNormalizer, Be = V.fieldNameDenormalizer, le = V.typePatcher, _e = V.customFetch, Ke = V.credentials, Et = V.bodySerializers, wt = V.defaultSerializer, Gt = V.responseTransformer, pt = z.call(this) || this, Mt = {};
|
|
22420
22415
|
if (Mt[Xe] = X || "", pt.endpoints = Object.assign({}, G || Mt), X == null && G == null)
|
|
22421
22416
|
throw new Error("A RestLink must be initialized with either 1 uri, or a map of keyed-endpoints");
|
|
22422
22417
|
if (X != null) {
|
|
@@ -22452,7 +22447,7 @@ function xF() {
|
|
|
22452
22447
|
};
|
|
22453
22448
|
} else
|
|
22454
22449
|
throw new Error("RestLink was configured with a typePatcher of invalid type!");
|
|
22455
|
-
return
|
|
22450
|
+
return Et && Et.hasOwnProperty(Je) && console.warn("RestLink was configured to override the default serializer! This may result in unexpected behavior"), pt.responseTransformer = Gt || null, pt.fieldNameNormalizer = He || null, pt.fieldNameDenormalizer = Be || null, pt.headers = we(Ie), pt.credentials = Ke || null, pt.customFetch = _e, pt.serializers = x((J = {}, J[Je] = wt || dt, J), Et || {}), pt.processedDocuments = /* @__PURE__ */ new Map(), pt;
|
|
22456
22451
|
}
|
|
22457
22452
|
return K.prototype.removeRestSetsFromDocument = function(V) {
|
|
22458
22453
|
var J = this.processedDocuments.get(V);
|
|
@@ -22467,10 +22462,10 @@ function xF() {
|
|
|
22467
22462
|
return J(V);
|
|
22468
22463
|
var _e = this.removeRestSetsFromDocument(X), Ke = Be.headersMergePolicy;
|
|
22469
22464
|
Ke == null && Array.isArray(Be.headersToOverride) ? Ke = Ne(Be.headersToOverride) : Ke == null && (Ke = ce);
|
|
22470
|
-
var
|
|
22471
|
-
|
|
22465
|
+
var Et = Ke(this.headers, Be.headers);
|
|
22466
|
+
Et.has("Accept") || Et.append("Accept", "application/json");
|
|
22472
22467
|
var wt = Be.credentials || this.credentials, Gt = i.addTypenameToDocument(X), pt = i.getMainDefinition(X), Mt = i.getFragmentDefinitions(X), er = (pt || {}).operation || "query", Pr = {
|
|
22473
|
-
headers:
|
|
22468
|
+
headers: Et,
|
|
22474
22469
|
endpoints: this.endpoints,
|
|
22475
22470
|
// Provide an empty map for this request's exports to be stuffed into
|
|
22476
22471
|
exportVariablesByNode: /* @__PURE__ */ new Map(),
|
|
@@ -22506,8 +22501,8 @@ function xF() {
|
|
|
22506
22501
|
})(cd, cd.exports);
|
|
22507
22502
|
var SF = cd.exports;
|
|
22508
22503
|
const il = Fs.createContext(), EF = () => {
|
|
22509
|
-
const { isAuthenticated: r, login: e } = di(), { children: t, isEmbedded: n, setIsEmbedded: i } = ai(il), a = bk(), u = wk(), [c, f] =
|
|
22510
|
-
|
|
22504
|
+
const { isAuthenticated: r, login: e } = di(), { children: t, isEmbedded: n, setIsEmbedded: i } = ai(il), a = bk(), u = wk(), [c, f] = At(!1), [h, d] = At(), [y, g] = At(), [m, b] = At({}), [A, x] = At({}), [w, O] = At({}), [C, D] = At(!1);
|
|
22505
|
+
pr(() => {
|
|
22511
22506
|
if (!(!u || u.pathname !== "/mm-embedded-login")) {
|
|
22512
22507
|
if (r) {
|
|
22513
22508
|
window.close();
|
|
@@ -22515,7 +22510,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22515
22510
|
}
|
|
22516
22511
|
r === !1 && e();
|
|
22517
22512
|
}
|
|
22518
|
-
}, [u]),
|
|
22513
|
+
}, [u]), pr(() => {
|
|
22519
22514
|
var ke, me;
|
|
22520
22515
|
if (r === null || !u || u.pathname !== "/mm-embedded-interop")
|
|
22521
22516
|
return;
|
|
@@ -22562,7 +22557,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22562
22557
|
}, [u, r]), _k(({ nextLocation: ye }) => {
|
|
22563
22558
|
var he;
|
|
22564
22559
|
return n ? (he = ye.state) != null && he.fromParent ? (f(!0), !1) : (M(`${ye.pathname}${ye.search}`), !0) : !1;
|
|
22565
|
-
}),
|
|
22560
|
+
}), pr(() => {
|
|
22566
22561
|
if (!n || !h)
|
|
22567
22562
|
return;
|
|
22568
22563
|
const ye = (he) => {
|
|
@@ -22577,7 +22572,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22577
22572
|
return window.addEventListener("keydown", ye), () => {
|
|
22578
22573
|
window.removeEventListener("keydown", ye);
|
|
22579
22574
|
};
|
|
22580
|
-
}, [n, h]),
|
|
22575
|
+
}, [n, h]), pr(() => {
|
|
22581
22576
|
if (!n || !h)
|
|
22582
22577
|
return;
|
|
22583
22578
|
const ye = ({ origin: he, data: ge }) => {
|
|
@@ -22731,11 +22726,11 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22731
22726
|
);
|
|
22732
22727
|
return /* @__PURE__ */ ur.jsx(ja.Provider, { value: fe, children: u.pathname !== "/mm-embedded-interop" && u.pathname !== "/mm-embedded-login" ? t : /* @__PURE__ */ ur.jsx(ur.Fragment, {}) });
|
|
22733
22728
|
}, OF = () => {
|
|
22734
|
-
const { urls: r, jwtRef: e, accessToken: t } = di(), { graphQLRoleOverride: n, children: i } = ai(il), [a, u] =
|
|
22729
|
+
const { urls: r, jwtRef: e, accessToken: t } = di(), { graphQLRoleOverride: n, children: i } = ai(il), [a, u] = At(), [c, f] = At(), h = () => {
|
|
22735
22730
|
const g = new URL(r.graphQLUrl);
|
|
22736
22731
|
return `//${g.host}${g.pathname}`;
|
|
22737
22732
|
}, d = () => n ? { "X-Hasura-Role": n } : {};
|
|
22738
|
-
|
|
22733
|
+
pr(() => {
|
|
22739
22734
|
const g = new WD(
|
|
22740
22735
|
JD({
|
|
22741
22736
|
url: `wss:${h()}`,
|
|
@@ -22775,7 +22770,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22775
22770
|
new SF.RestLink({ uri: r.apiUrl })
|
|
22776
22771
|
);
|
|
22777
22772
|
f(sn.from([O, x]));
|
|
22778
|
-
}, []),
|
|
22773
|
+
}, []), pr(() => {
|
|
22779
22774
|
c && u(
|
|
22780
22775
|
new up({
|
|
22781
22776
|
link: c,
|
|
@@ -22796,7 +22791,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22796
22791
|
text-align: center;
|
|
22797
22792
|
margin-top: 300px;
|
|
22798
22793
|
`, kF = () => {
|
|
22799
|
-
const [r, e] =
|
|
22794
|
+
const [r, e] = At(), { isAuthenticated: t } = di(), { authorize: n, isEmbedded: i } = ai(il);
|
|
22800
22795
|
return nl(async (a) => {
|
|
22801
22796
|
try {
|
|
22802
22797
|
await n(a);
|
|
@@ -22848,7 +22843,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22848
22843
|
r && console.warn(
|
|
22849
22844
|
"MMProvider domain is no longer used. It is inferred from the url."
|
|
22850
22845
|
);
|
|
22851
|
-
const [f, h] =
|
|
22846
|
+
const [f, h] = At(!1);
|
|
22852
22847
|
let d;
|
|
22853
22848
|
if (fo[a])
|
|
22854
22849
|
d = fo[a];
|
|
@@ -22859,8 +22854,8 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22859
22854
|
);
|
|
22860
22855
|
}
|
|
22861
22856
|
d = fi.merge(d, c);
|
|
22862
|
-
const [y, g] =
|
|
22863
|
-
|
|
22857
|
+
const [y, g] = At(jD());
|
|
22858
|
+
pr(() => {
|
|
22864
22859
|
qD(y);
|
|
22865
22860
|
}, [y]);
|
|
22866
22861
|
const m = (Q) => {
|
|
@@ -22911,7 +22906,7 @@ const il = Fs.createContext(), EF = () => {
|
|
|
22911
22906
|
await x(`${d.loginUrl}/logout`, {
|
|
22912
22907
|
method: "DELETE"
|
|
22913
22908
|
}), A();
|
|
22914
|
-
}, [O, C] =
|
|
22909
|
+
}, [O, C] = At(), D = xa(), M = xa();
|
|
22915
22910
|
Nc(
|
|
22916
22911
|
async () => {
|
|
22917
22912
|
if (!y) {
|
|
@@ -25948,7 +25943,7 @@ var Ee;
|
|
|
25948
25943
|
for (var P, F = ~(k - 1), U = 0; U < 16; U++)
|
|
25949
25944
|
P = F & (_[U] ^ I[U]), _[U] ^= P, I[U] ^= P;
|
|
25950
25945
|
}
|
|
25951
|
-
function
|
|
25946
|
+
function St(_, I) {
|
|
25952
25947
|
var k, P, F, U = t(), ie = t();
|
|
25953
25948
|
for (k = 0; k < 16; k++) ie[k] = I[k];
|
|
25954
25949
|
for (xe(ie), xe(ie), xe(ie), P = 0; P < 2; P++) {
|
|
@@ -25961,11 +25956,11 @@ var Ee;
|
|
|
25961
25956
|
}
|
|
25962
25957
|
function lt(_, I) {
|
|
25963
25958
|
var k = new Uint8Array(32), P = new Uint8Array(32);
|
|
25964
|
-
return
|
|
25959
|
+
return St(k, _), St(P, I), M(k, 0, P, 0);
|
|
25965
25960
|
}
|
|
25966
25961
|
function kt(_) {
|
|
25967
25962
|
var I = new Uint8Array(32);
|
|
25968
|
-
return
|
|
25963
|
+
return St(I, _), I[0] & 1;
|
|
25969
25964
|
}
|
|
25970
25965
|
function Xe(_, I) {
|
|
25971
25966
|
var k;
|
|
@@ -26018,7 +26013,7 @@ var Ee;
|
|
|
26018
26013
|
for (ie = 0; ie < 16; ie++)
|
|
26019
26014
|
F[ie + 16] = de[ie], F[ie + 32] = ne[ie], F[ie + 48] = Y[ie], F[ie + 64] = Me[ie];
|
|
26020
26015
|
var mn = F.subarray(32), pi = F.subarray(16);
|
|
26021
|
-
return z(mn, mn), De(pi, pi, mn),
|
|
26016
|
+
return z(mn, mn), De(pi, pi, mn), St(_, pi), 0;
|
|
26022
26017
|
}
|
|
26023
26018
|
function J(_, I) {
|
|
26024
26019
|
return V(_, I, a);
|
|
@@ -26048,7 +26043,7 @@ var Ee;
|
|
|
26048
26043
|
function Ke(_, I) {
|
|
26049
26044
|
return new e(_.hi >>> I, _.lo >>> I | _.hi << 32 - I);
|
|
26050
26045
|
}
|
|
26051
|
-
function
|
|
26046
|
+
function Et() {
|
|
26052
26047
|
var _ = 0, I = 0, k;
|
|
26053
26048
|
for (k = 0; k < arguments.length; k++)
|
|
26054
26049
|
_ ^= arguments[k].lo, I ^= arguments[k].hi;
|
|
@@ -26067,16 +26062,16 @@ var Ee;
|
|
|
26067
26062
|
return new e(P, F);
|
|
26068
26063
|
}
|
|
26069
26064
|
function Mt(_) {
|
|
26070
|
-
return
|
|
26065
|
+
return Et(wt(_, 28), wt(_, 34), wt(_, 39));
|
|
26071
26066
|
}
|
|
26072
26067
|
function er(_) {
|
|
26073
|
-
return
|
|
26068
|
+
return Et(wt(_, 14), wt(_, 18), wt(_, 41));
|
|
26074
26069
|
}
|
|
26075
26070
|
function Pr(_) {
|
|
26076
|
-
return
|
|
26071
|
+
return Et(wt(_, 1), wt(_, 8), Ke(_, 7));
|
|
26077
26072
|
}
|
|
26078
26073
|
function Wt(_) {
|
|
26079
|
-
return
|
|
26074
|
+
return Et(wt(_, 19), wt(_, 61), Ke(_, 6));
|
|
26080
26075
|
}
|
|
26081
26076
|
var Qt = [
|
|
26082
26077
|
new e(1116352408, 3609767458),
|
|
@@ -26262,9 +26257,9 @@ var Ee;
|
|
|
26262
26257
|
for (P = 0; P < 4; P++)
|
|
26263
26258
|
Ze(_[P], I[P], k);
|
|
26264
26259
|
}
|
|
26265
|
-
function
|
|
26260
|
+
function Ot(_, I) {
|
|
26266
26261
|
var k = t(), P = t(), F = t();
|
|
26267
|
-
z(F, I[2]), De(k, I[0], F), De(P, I[1], F),
|
|
26262
|
+
z(F, I[2]), De(k, I[0], F), De(P, I[1], F), St(_, P), _[31] ^= kt(k) << 7;
|
|
26268
26263
|
}
|
|
26269
26264
|
function Ye(_, I, k) {
|
|
26270
26265
|
var P, F;
|
|
@@ -26280,14 +26275,14 @@ var Ee;
|
|
|
26280
26275
|
];
|
|
26281
26276
|
Ne(k[0], y), Ne(k[1], g), Ne(k[2], c), De(k[3], y, g), Ye(_, k, I);
|
|
26282
26277
|
}
|
|
26283
|
-
function
|
|
26278
|
+
function lr(_, I, k) {
|
|
26284
26279
|
var P = new Uint8Array(64), F = [
|
|
26285
26280
|
t(),
|
|
26286
26281
|
t(),
|
|
26287
26282
|
t(),
|
|
26288
26283
|
t()
|
|
26289
26284
|
], U;
|
|
26290
|
-
for (k || n(I, 32), H(P, I, 32), P[0] &= 248, P[31] &= 127, P[31] |= 64, tr(F, P),
|
|
26285
|
+
for (k || n(I, 32), H(P, I, 32), P[0] &= 248, P[31] &= 127, P[31] |= 64, tr(F, P), Ot(_, F), U = 0; U < 32; U++) I[U + 32] = _[U];
|
|
26291
26286
|
return 0;
|
|
26292
26287
|
}
|
|
26293
26288
|
var Nt = new Float64Array([
|
|
@@ -26354,7 +26349,7 @@ var Ee;
|
|
|
26354
26349
|
var mt = k + 64;
|
|
26355
26350
|
for (de = 0; de < k; de++) _[64 + de] = I[de];
|
|
26356
26351
|
for (de = 0; de < 32; de++) _[32 + de] = F[32 + de];
|
|
26357
|
-
for (H(ie, _.subarray(32), k + 32), jr(ie), tr(Me, ie),
|
|
26352
|
+
for (H(ie, _.subarray(32), k + 32), jr(ie), tr(Me, ie), Ot(_, Me), de = 32; de < 64; de++) _[de] = P[de];
|
|
26358
26353
|
for (H(U, _, k + 64), jr(U), de = 0; de < 64; de++) ne[de] = 0;
|
|
26359
26354
|
for (de = 0; de < 32; de++) ne[de] = ie[de];
|
|
26360
26355
|
for (de = 0; de < 32; de++)
|
|
@@ -26381,7 +26376,7 @@ var Ee;
|
|
|
26381
26376
|
if (k < 64 || rr(Y, P)) return -1;
|
|
26382
26377
|
for (F = 0; F < k; F++) _[F] = I[F];
|
|
26383
26378
|
for (F = 0; F < 32; F++) _[F + 32] = P[F];
|
|
26384
|
-
if (H(ie, _, k), jr(ie), Ye(de, Y, ie), tr(Y, I.subarray(32)), We(de, Y),
|
|
26379
|
+
if (H(ie, _, k), jr(ie), Ye(de, Y, ie), tr(Y, I.subarray(32)), We(de, Y), Ot(U, de), k -= 64, M(I, 0, U, 0)) {
|
|
26385
26380
|
for (F = 0; F < k; F++) _[F] = 0;
|
|
26386
26381
|
return -1;
|
|
26387
26382
|
}
|
|
@@ -26410,7 +26405,7 @@ var Ee;
|
|
|
26410
26405
|
crypto_box_keypair: X,
|
|
26411
26406
|
crypto_hash: H,
|
|
26412
26407
|
crypto_sign: qr,
|
|
26413
|
-
crypto_sign_keypair:
|
|
26408
|
+
crypto_sign_keypair: lr,
|
|
26414
26409
|
crypto_sign_open: an,
|
|
26415
26410
|
crypto_secretbox_KEYBYTES: br,
|
|
26416
26411
|
crypto_secretbox_NONCEBYTES: wr,
|
|
@@ -26432,7 +26427,7 @@ var Ee;
|
|
|
26432
26427
|
gf: t,
|
|
26433
26428
|
D: h,
|
|
26434
26429
|
L: Nt,
|
|
26435
|
-
pack25519:
|
|
26430
|
+
pack25519: St,
|
|
26436
26431
|
unpack25519: Xe,
|
|
26437
26432
|
M: De,
|
|
26438
26433
|
A: Je,
|
|
@@ -26525,7 +26520,7 @@ var Ee;
|
|
|
26525
26520
|
return an(F, P, P.length, k) >= 0;
|
|
26526
26521
|
}, r.sign.keyPair = function() {
|
|
26527
26522
|
var _ = new Uint8Array(be), I = new Uint8Array(Ce);
|
|
26528
|
-
return
|
|
26523
|
+
return lr(_, I), {
|
|
26529
26524
|
publicKey: _,
|
|
26530
26525
|
secretKey: I
|
|
26531
26526
|
};
|
|
@@ -26539,7 +26534,7 @@ var Ee;
|
|
|
26539
26534
|
}, r.sign.keyPair.fromSeed = function(_) {
|
|
26540
26535
|
if (tt(_), _.length !== qe) throw new Error("bad seed size");
|
|
26541
26536
|
for (var I = new Uint8Array(be), k = new Uint8Array(Ce), P = 0; P < 32; P++) k[P] = _[P];
|
|
26542
|
-
return
|
|
26537
|
+
return lr(I, k, !0), {
|
|
26543
26538
|
publicKey: I,
|
|
26544
26539
|
secretKey: k
|
|
26545
26540
|
};
|
|
@@ -31212,7 +31207,7 @@ const $0 = (r, e) => {
|
|
|
31212
31207
|
"Multiple filters are not supported. Only the first filter will be used."
|
|
31213
31208
|
);
|
|
31214
31209
|
const { urls: u, natsCredsRef: c } = di(), f = xa(), h = xa();
|
|
31215
|
-
return
|
|
31210
|
+
return pr(() => !u.natsUrl || !c.current || !e || !t ? void 0 : ((async () => {
|
|
31216
31211
|
try {
|
|
31217
31212
|
const y = await B2(u.natsUrl, c.current);
|
|
31218
31213
|
f.current = y;
|