@instantdb/react 0.22.76-experimental.drewh-explorer-component.19938835959.1 → 0.22.76-experimental.enable-deno-cli.19945278199.1
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/standalone/index.js +200 -200
- package/dist/standalone/index.umd.cjs +1 -1
- package/package.json +4 -4
package/dist/standalone/index.js
CHANGED
|
@@ -232,7 +232,7 @@ function fe(t) {
|
|
|
232
232
|
var e;
|
|
233
233
|
t.assignedMap = (e = t.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), t.operated || (t.operated = !0, t.parent && fe(t.parent));
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Tr() {
|
|
236
236
|
throw new Error("Cannot modify frozen object");
|
|
237
237
|
}
|
|
238
238
|
function Me(t, e, n, r, i) {
|
|
@@ -260,12 +260,12 @@ function Me(t, e, n, r, i) {
|
|
|
260
260
|
case 2:
|
|
261
261
|
for (const [a, u] of t)
|
|
262
262
|
Me(a, a, n, r, i), Me(u, a, n, r, i);
|
|
263
|
-
t.set = t.clear = t.delete =
|
|
263
|
+
t.set = t.clear = t.delete = Tr;
|
|
264
264
|
break;
|
|
265
265
|
case 3:
|
|
266
266
|
for (const a of t)
|
|
267
267
|
Me(a, a, n, r, i);
|
|
268
|
-
t.add = t.clear = t.delete =
|
|
268
|
+
t.add = t.clear = t.delete = Tr;
|
|
269
269
|
break;
|
|
270
270
|
case 1:
|
|
271
271
|
Object.freeze(t);
|
|
@@ -529,7 +529,7 @@ const jt = (t, e, n = !1) => {
|
|
|
529
529
|
[vt]() {
|
|
530
530
|
return this.entries();
|
|
531
531
|
}
|
|
532
|
-
}, Ds = Reflect.ownKeys(an),
|
|
532
|
+
}, Ds = Reflect.ownKeys(an), wr = (t, e, { isValuesIterator: n }) => () => {
|
|
533
533
|
var r, i;
|
|
534
534
|
const s = e.next();
|
|
535
535
|
if (s.done)
|
|
@@ -590,7 +590,7 @@ const jt = (t, e, n = !1) => {
|
|
|
590
590
|
const e = t.setMap.keys();
|
|
591
591
|
return {
|
|
592
592
|
[Symbol.iterator]: () => this.values(),
|
|
593
|
-
next:
|
|
593
|
+
next: wr(t, e, { isValuesIterator: !0 })
|
|
594
594
|
};
|
|
595
595
|
},
|
|
596
596
|
entries() {
|
|
@@ -599,7 +599,7 @@ const jt = (t, e, n = !1) => {
|
|
|
599
599
|
const e = t.setMap.keys();
|
|
600
600
|
return {
|
|
601
601
|
[Symbol.iterator]: () => this.entries(),
|
|
602
|
-
next:
|
|
602
|
+
next: wr(t, e, {
|
|
603
603
|
isValuesIterator: !1
|
|
604
604
|
})
|
|
605
605
|
};
|
|
@@ -757,10 +757,10 @@ function Ln(t) {
|
|
|
757
757
|
var p, y;
|
|
758
758
|
const b = j(u);
|
|
759
759
|
let _ = c.type === 3 ? c.setMap : c.copy;
|
|
760
|
-
const
|
|
760
|
+
const w = be(_, r), g = j(w);
|
|
761
761
|
if (g) {
|
|
762
762
|
let m = g.original;
|
|
763
|
-
g.operated && (m = $n(
|
|
763
|
+
g.operated && (m = $n(w)), sn(g), on(g, ut, f, l), c.options.enableAutoFreeze && (c.options.updatedValues = (p = c.options.updatedValues) !== null && p !== void 0 ? p : /* @__PURE__ */ new WeakMap(), c.options.updatedValues.set(m, g.original)), ct(_, r, m);
|
|
764
764
|
}
|
|
765
765
|
(y = b.callbacks) === null || y === void 0 || y.forEach((m) => {
|
|
766
766
|
m(f, l);
|
|
@@ -890,22 +890,22 @@ const Ns = (t) => function e(n, r, i) {
|
|
|
890
890
|
};
|
|
891
891
|
if (!ae(f, _) && typeof f == "object" && f !== null)
|
|
892
892
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
893
|
-
const [
|
|
893
|
+
const [w, g] = Fs(f, _);
|
|
894
894
|
if (typeof r != "function") {
|
|
895
895
|
if (!ae(f, _))
|
|
896
896
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
897
|
-
return [
|
|
897
|
+
return [w, g];
|
|
898
898
|
}
|
|
899
899
|
let m;
|
|
900
900
|
try {
|
|
901
|
-
m = d(
|
|
901
|
+
m = d(w);
|
|
902
902
|
} catch (S) {
|
|
903
|
-
throw rn(j(
|
|
903
|
+
throw rn(j(w)), S;
|
|
904
904
|
}
|
|
905
905
|
const E = (S) => {
|
|
906
|
-
const I = j(
|
|
906
|
+
const I = j(w);
|
|
907
907
|
if (!je(S)) {
|
|
908
|
-
if (S !== void 0 && !ye(S,
|
|
908
|
+
if (S !== void 0 && !ye(S, w) && (I != null && I.operated))
|
|
909
909
|
throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
|
|
910
910
|
const B = S == null ? void 0 : S[js];
|
|
911
911
|
if (B) {
|
|
@@ -919,7 +919,7 @@ const Ns = (t) => function e(n, r, i) {
|
|
|
919
919
|
if (S !== void 0)
|
|
920
920
|
return typeof S == "object" && S !== null && un({ rootDraft: I, value: S }), g([S]);
|
|
921
921
|
}
|
|
922
|
-
if (S ===
|
|
922
|
+
if (S === w || S === void 0)
|
|
923
923
|
return g([]);
|
|
924
924
|
const x = j(S);
|
|
925
925
|
if (_ === x.options) {
|
|
@@ -930,7 +930,7 @@ const Ns = (t) => function e(n, r, i) {
|
|
|
930
930
|
return g([S]);
|
|
931
931
|
};
|
|
932
932
|
return m instanceof Promise ? m.then(E, (S) => {
|
|
933
|
-
throw rn(j(
|
|
933
|
+
throw rn(j(w)), S;
|
|
934
934
|
}) : E(m);
|
|
935
935
|
}, Pt = Ns();
|
|
936
936
|
Object.prototype.constructor.toString();
|
|
@@ -952,7 +952,7 @@ function Fn(t) {
|
|
|
952
952
|
r !== void 0 && (e[n] = r);
|
|
953
953
|
return e;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Ti(t, e) {
|
|
956
956
|
if (!Ze(t) || !Ze(e))
|
|
957
957
|
return e;
|
|
958
958
|
const n = Object.assign({}, t);
|
|
@@ -964,7 +964,7 @@ function wi(t, e) {
|
|
|
964
964
|
continue;
|
|
965
965
|
}
|
|
966
966
|
const i = Ze(t[r]) && Ze(e[r]);
|
|
967
|
-
n[r] = i ?
|
|
967
|
+
n[r] = i ? Ti(t[r], e[r]) : e[r];
|
|
968
968
|
}
|
|
969
969
|
return n;
|
|
970
970
|
}
|
|
@@ -992,7 +992,7 @@ function Sr(t, e, n) {
|
|
|
992
992
|
}
|
|
993
993
|
r[e[e.length - 1]] = n;
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function wi(t, e) {
|
|
996
996
|
if (!t || e.length === 0)
|
|
997
997
|
return;
|
|
998
998
|
const [n, ...r] = e;
|
|
@@ -1001,7 +1001,7 @@ function Ti(t, e) {
|
|
|
1001
1001
|
Array.isArray(t) ? t.splice(n, 1) : delete t[n];
|
|
1002
1002
|
return;
|
|
1003
1003
|
}
|
|
1004
|
-
|
|
1004
|
+
wi(t[n], r), qs(t[n]) && delete t[n];
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
function qs(t) {
|
|
@@ -1475,7 +1475,7 @@ function uo(t, e) {
|
|
|
1475
1475
|
const d = (n = u.values().next()) === null || n === void 0 ? void 0 : n.value;
|
|
1476
1476
|
if (!d)
|
|
1477
1477
|
return;
|
|
1478
|
-
const c = d[2], f =
|
|
1478
|
+
const c = d[2], f = Ti(c, o), l = [
|
|
1479
1479
|
i,
|
|
1480
1480
|
s,
|
|
1481
1481
|
f,
|
|
@@ -1506,8 +1506,8 @@ function dn(t, e) {
|
|
|
1506
1506
|
const d = t.vae.get(a) && X(t.vae.get(a), 2);
|
|
1507
1507
|
d && d.forEach((c) => {
|
|
1508
1508
|
var f, l, p;
|
|
1509
|
-
const [y, b, _] = c,
|
|
1510
|
-
(!s || !
|
|
1509
|
+
const [y, b, _] = c, w = t.attrs[b];
|
|
1510
|
+
(!s || !w || ((f = w["reverse-identity"]) === null || f === void 0 ? void 0 : f[1]) === s) && (oe(t.eav, [y, b, _]), oe(t.aev, [b, y, _]), oe(t.vae, [_, b, y])), w && w["on-delete"] === "cascade" && ((l = w["reverse-identity"]) === null || l === void 0 ? void 0 : l[1]) === s && dn(t, [y, (p = w["forward-identity"]) === null || p === void 0 ? void 0 : p[1]]);
|
|
1511
1511
|
}), ((r = t.vae.get(a)) === null || r === void 0 ? void 0 : r.size) === 0 && oe(t.vae, [a]);
|
|
1512
1512
|
}
|
|
1513
1513
|
function ji(t, e) {
|
|
@@ -1671,7 +1671,7 @@ function bo(t, e, n) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
return i;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Te(t, e, n) {
|
|
1675
1675
|
var r;
|
|
1676
1676
|
return (r = t.attrIndexes.forwardIdents.get(e)) === null || r === void 0 ? void 0 : r.get(n);
|
|
1677
1677
|
}
|
|
@@ -1695,7 +1695,7 @@ function go(t, e) {
|
|
|
1695
1695
|
if (qe(t.attrs, i))
|
|
1696
1696
|
return We(t.eav, [r, i]);
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function To(t, e) {
|
|
1699
1699
|
const n = e.filter(([r, i, s, o, a]) => {
|
|
1700
1700
|
if (r !== "add-triple" && r !== "deep-merge-triple")
|
|
1701
1701
|
return !0;
|
|
@@ -1716,7 +1716,7 @@ function wo(t, e) {
|
|
|
1716
1716
|
});
|
|
1717
1717
|
});
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function wo(t) {
|
|
1720
1720
|
return typeof t == "string" && t.startsWith("?");
|
|
1721
1721
|
}
|
|
1722
1722
|
function mo(t, e, n) {
|
|
@@ -1770,7 +1770,7 @@ function fn(t, e, n = [{}]) {
|
|
|
1770
1770
|
return e.reduce((r, i) => ko(t, i, r), n);
|
|
1771
1771
|
}
|
|
1772
1772
|
function Wn(t, e) {
|
|
1773
|
-
return Array.isArray(e) ? e.map((n) => Wn(t, n)) :
|
|
1773
|
+
return Array.isArray(e) ? e.map((n) => Wn(t, n)) : wo(e) ? t[e] : e;
|
|
1774
1774
|
}
|
|
1775
1775
|
function jo(t, { find: e, where: n }) {
|
|
1776
1776
|
return fn(t, n).map((i) => Wn(i, e));
|
|
@@ -1876,7 +1876,7 @@ function zo(t, e, n) {
|
|
|
1876
1876
|
return t.map((r) => r === e ? n : r);
|
|
1877
1877
|
}
|
|
1878
1878
|
function Ri(t, e, n, r, i) {
|
|
1879
|
-
const s =
|
|
1879
|
+
const s = Te(e, n, i), o = Pi(e, n, i), a = s || o;
|
|
1880
1880
|
if (!a)
|
|
1881
1881
|
throw new Ne(`Could not find attr for ${[n, i]}`);
|
|
1882
1882
|
if (a["value-type"] !== "ref")
|
|
@@ -1965,11 +1965,11 @@ function Vo(t, e) {
|
|
|
1965
1965
|
return e;
|
|
1966
1966
|
}
|
|
1967
1967
|
function Bo(t, e, n, r, i, s) {
|
|
1968
|
-
const o =
|
|
1968
|
+
const o = Te(e, n, i), a = Pi(e, n, i), u = o || a;
|
|
1969
1969
|
if (!u)
|
|
1970
1970
|
throw new Ne(`No attr for etype = ${n} label = ${i}`);
|
|
1971
1971
|
if (s != null && s.hasOwnProperty("$isNull")) {
|
|
1972
|
-
const d =
|
|
1972
|
+
const d = Te(e, n, "id");
|
|
1973
1973
|
if (!d)
|
|
1974
1974
|
throw new Ne(`No attr for etype = ${n} label = id`);
|
|
1975
1975
|
return [
|
|
@@ -2076,17 +2076,17 @@ function na(t, e, { etype: n, level: r, form: i }, s) {
|
|
|
2076
2076
|
var p, y, b;
|
|
2077
2077
|
const _ = !!(e.cardinalityInference && (!((b = (y = (p = e.linkIndex) === null || p === void 0 ? void 0 : p[n]) === null || y === void 0 ? void 0 : y[l]) === null || b === void 0) && b.isSingular));
|
|
2078
2078
|
try {
|
|
2079
|
-
const [
|
|
2080
|
-
etype:
|
|
2079
|
+
const [w, g, m] = ta(t, e, n, r, l, u), E = Di(e, {
|
|
2080
|
+
etype: w,
|
|
2081
2081
|
level: g,
|
|
2082
2082
|
form: i[l],
|
|
2083
2083
|
join: m
|
|
2084
2084
|
}), S = _ ? E[0] : E;
|
|
2085
2085
|
return { [l]: S };
|
|
2086
|
-
} catch (
|
|
2087
|
-
if (
|
|
2086
|
+
} catch (w) {
|
|
2087
|
+
if (w instanceof Ne)
|
|
2088
2088
|
return { [l]: _ ? void 0 : [] };
|
|
2089
|
-
throw
|
|
2089
|
+
throw w;
|
|
2090
2090
|
}
|
|
2091
2091
|
}).reduce(function(l, p) {
|
|
2092
2092
|
return Object.assign(Object.assign({}, l), p);
|
|
@@ -2119,7 +2119,7 @@ function sa(t, e) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
function oa(t, e, n) {
|
|
2121
2121
|
const r = Object.keys(n)[0];
|
|
2122
|
-
return
|
|
2122
|
+
return Te(t, e, r);
|
|
2123
2123
|
}
|
|
2124
2124
|
function aa(t, e, n, r) {
|
|
2125
2125
|
if (n)
|
|
@@ -2133,11 +2133,11 @@ function ua(t, e, n) {
|
|
|
2133
2133
|
return _o(t, e);
|
|
2134
2134
|
const s = /* @__PURE__ */ new Map();
|
|
2135
2135
|
for (const o of n.fields) {
|
|
2136
|
-
const a =
|
|
2136
|
+
const a = Te(t, e, o), u = (r = a == null ? void 0 : a["forward-identity"]) === null || r === void 0 ? void 0 : r[2];
|
|
2137
2137
|
u && Kn(a) && s.set(u, a);
|
|
2138
2138
|
}
|
|
2139
2139
|
if (!s.has("id")) {
|
|
2140
|
-
const o =
|
|
2140
|
+
const o = Te(t, e, "id"), a = (i = o == null ? void 0 : o["forward-identity"]) === null || i === void 0 ? void 0 : i[2];
|
|
2141
2141
|
a && s.set(a, o);
|
|
2142
2142
|
}
|
|
2143
2143
|
return s;
|
|
@@ -2149,16 +2149,16 @@ function ca(t, { etype: e, pageInfo: n, dq: r, form: i }) {
|
|
|
2149
2149
|
const f = n == null ? void 0 : n["start-cursor"], l = aa(t, e, f, a);
|
|
2150
2150
|
if (l && ((o = l == null ? void 0 : l["forward-identity"]) === null || o === void 0 ? void 0 : o[2]) !== "id") {
|
|
2151
2151
|
const b = l["checked-data-type"] === "date", _ = l.id;
|
|
2152
|
-
c = c.map(([
|
|
2152
|
+
c = c.map(([w]) => {
|
|
2153
2153
|
var g, m, E, S, I;
|
|
2154
|
-
let x = (I = (S = (E = (m = (g = t.eav.get(
|
|
2155
|
-
return b && (x = hn(x)), [
|
|
2154
|
+
let x = (I = (S = (E = (m = (g = t.eav.get(w)) === null || g === void 0 ? void 0 : g.get(_)) === null || m === void 0 ? void 0 : m.values()) === null || E === void 0 ? void 0 : E.next()) === null || S === void 0 ? void 0 : S.value) === null || I === void 0 ? void 0 : I[2];
|
|
2155
|
+
return b && (x = hn(x)), [w, x];
|
|
2156
2156
|
});
|
|
2157
2157
|
}
|
|
2158
|
-
c.sort(d === "asc" ? function(_,
|
|
2159
|
-
return It(_,
|
|
2160
|
-
} : function(_,
|
|
2161
|
-
return It(
|
|
2158
|
+
c.sort(d === "asc" ? function(_, w) {
|
|
2159
|
+
return It(_, w, l == null ? void 0 : l["checked-data-type"]);
|
|
2160
|
+
} : function(_, w) {
|
|
2161
|
+
return It(w, _, l == null ? void 0 : l["checked-data-type"]);
|
|
2162
2162
|
});
|
|
2163
2163
|
let p = {};
|
|
2164
2164
|
const y = ua(t, e, r);
|
|
@@ -2166,8 +2166,8 @@ function ca(t, { etype: e, pageInfo: n, dq: r, form: i }) {
|
|
|
2166
2166
|
const [_] = b;
|
|
2167
2167
|
if (p[_] || !u && f && l && ia(f, l, d, b))
|
|
2168
2168
|
continue;
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2169
|
+
const w = bo(t, y, _);
|
|
2170
|
+
w && (p[_] = w);
|
|
2171
2171
|
}
|
|
2172
2172
|
return p;
|
|
2173
2173
|
}
|
|
@@ -2334,7 +2334,7 @@ function Ae(t, e, n) {
|
|
|
2334
2334
|
return o === e && a === n;
|
|
2335
2335
|
});
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Ta(t) {
|
|
2338
2338
|
if (Array.isArray(t))
|
|
2339
2339
|
return t;
|
|
2340
2340
|
const e = Object.entries(t);
|
|
@@ -2353,7 +2353,7 @@ function bn(t) {
|
|
|
2353
2353
|
throw new Error(`${t} is not a valid lookup attribute.`);
|
|
2354
2354
|
return e;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function wa(t, e, n) {
|
|
2357
2357
|
if (!yn(t, e, n))
|
|
2358
2358
|
return V(t, e, n);
|
|
2359
2359
|
const r = bn(n), i = V(t, e, r) || Ae(t, e, r);
|
|
@@ -2362,13 +2362,13 @@ function Ta(t, e, n) {
|
|
|
2362
2362
|
return i;
|
|
2363
2363
|
}
|
|
2364
2364
|
function _n(t) {
|
|
2365
|
-
return typeof t == "string" && !Mt(t) ? null : typeof t == "string" && Mt(t) ? Li(t) :
|
|
2365
|
+
return typeof t == "string" && !Mt(t) ? null : typeof t == "string" && Mt(t) ? Li(t) : Ta(t);
|
|
2366
2366
|
}
|
|
2367
2367
|
function ee(t, e, n) {
|
|
2368
2368
|
const r = _n(n);
|
|
2369
2369
|
if (r === null)
|
|
2370
2370
|
return n;
|
|
2371
|
-
const [i, s] = r, o =
|
|
2371
|
+
const [i, s] = r, o = wa(t, e, i);
|
|
2372
2372
|
if (!o || !o["unique?"])
|
|
2373
2373
|
throw new Error(`${i} is not a unique attribute.`);
|
|
2374
2374
|
return [o.id, s];
|
|
@@ -2539,7 +2539,7 @@ function Ma(t, e, n) {
|
|
|
2539
2539
|
"checked-data-type": u
|
|
2540
2540
|
};
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function Tt(t, e, n, r) {
|
|
2543
2543
|
const i = t ? Ma(t, e, n) : null, s = K(), a = [K(), e, n];
|
|
2544
2544
|
return Object.assign(Object.assign({ id: s, "forward-identity": a, "value-type": "blob", cardinality: "one", "unique?": !1, "index?": !1, isUnsynced: !0 }, i || {}), r || {});
|
|
2545
2545
|
}
|
|
@@ -2610,32 +2610,32 @@ function Ka({ attrs: t, schema: e }, n) {
|
|
|
2610
2610
|
const b = p[0];
|
|
2611
2611
|
if (y) {
|
|
2612
2612
|
c(l, y);
|
|
2613
|
-
const _ = V(o, l, y),
|
|
2614
|
-
d(_), d(
|
|
2615
|
-
const g = ((r = _ == null ? void 0 : _["reverse-identity"]) === null || r === void 0 ? void 0 : r[1]) || ((i =
|
|
2613
|
+
const _ = V(o, l, y), w = Ae(o, l, y);
|
|
2614
|
+
d(_), d(w);
|
|
2615
|
+
const g = ((r = _ == null ? void 0 : _["reverse-identity"]) === null || r === void 0 ? void 0 : r[1]) || ((i = w == null ? void 0 : w["forward-identity"]) === null || i === void 0 ? void 0 : i[1]) || y;
|
|
2616
2616
|
if (yn(o, g, b))
|
|
2617
2617
|
c(g, bn(b));
|
|
2618
2618
|
else {
|
|
2619
2619
|
const m = V(o, g, b);
|
|
2620
|
-
m || u(
|
|
2620
|
+
m || u(Tt(e, g, b, gn)), d(m);
|
|
2621
2621
|
}
|
|
2622
2622
|
} else if (yn(o, l, b))
|
|
2623
2623
|
c(l, bn(b));
|
|
2624
2624
|
else {
|
|
2625
2625
|
const _ = V(o, l, b);
|
|
2626
|
-
_ || u(
|
|
2626
|
+
_ || u(Tt(e, l, b, gn)), d(_);
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
2629
|
for (const f of n) {
|
|
2630
2630
|
const [l, p, y, b] = f;
|
|
2631
2631
|
if ($a.has(l)) {
|
|
2632
2632
|
const _ = V(o, p, "id");
|
|
2633
|
-
d(_), _ || u(
|
|
2634
|
-
for (const
|
|
2635
|
-
const g = V(o, p,
|
|
2636
|
-
if (d(g), Ua.has(l) && (g || u(
|
|
2637
|
-
const m = Ae(o, p,
|
|
2638
|
-
!g && !m && u(Mr(e, p,
|
|
2633
|
+
d(_), _ || u(Tt(e, p, "id", { "unique?": !0 }));
|
|
2634
|
+
for (const w of Object.keys(b)) {
|
|
2635
|
+
const g = V(o, p, w);
|
|
2636
|
+
if (d(g), Ua.has(l) && (g || u(Tt(e, p, w, w === "id" ? { "unique?": !0 } : null))), Da.has(l)) {
|
|
2637
|
+
const m = Ae(o, p, w);
|
|
2638
|
+
!g && !m && u(Mr(e, p, w)), d(m);
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
@@ -2681,7 +2681,7 @@ class Wa {
|
|
|
2681
2681
|
constructor(e, n) {
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
2684
|
-
class
|
|
2684
|
+
class Tn {
|
|
2685
2685
|
constructor(e) {
|
|
2686
2686
|
var n, r;
|
|
2687
2687
|
this._subs = [], this._nextSave = null, this._nextGc = null, this._pendingSaveKeys = /* @__PURE__ */ new Set(), this._loadedKeys = /* @__PURE__ */ new Set(), this._version = 0, this._meta = {
|
|
@@ -2996,8 +2996,8 @@ function Qa(t, e, n) {
|
|
|
2996
2996
|
};
|
|
2997
2997
|
f[y] = g;
|
|
2998
2998
|
}
|
|
2999
|
-
const
|
|
3000
|
-
i.add(
|
|
2999
|
+
const w = n.put(_, y);
|
|
3000
|
+
i.add(w);
|
|
3001
3001
|
}
|
|
3002
3002
|
const l = { objects: f }, p = n.put(l, it);
|
|
3003
3003
|
i.add(p);
|
|
@@ -3032,8 +3032,8 @@ function Ha(t, e) {
|
|
|
3032
3032
|
y.onsuccess = () => {
|
|
3033
3033
|
const _ = y.result;
|
|
3034
3034
|
if (_) {
|
|
3035
|
-
const
|
|
3036
|
-
b.push([
|
|
3035
|
+
const w = _.key, g = _.value;
|
|
3036
|
+
b.push([w, g]), _.continue();
|
|
3037
3037
|
} else
|
|
3038
3038
|
c(b);
|
|
3039
3039
|
}, y.onerror = (_) => {
|
|
@@ -3550,7 +3550,7 @@ function Nr(t) {
|
|
|
3550
3550
|
}, e;
|
|
3551
3551
|
}, {});
|
|
3552
3552
|
}
|
|
3553
|
-
const Bn = "v0.22.76-experimental.
|
|
3553
|
+
const Bn = "v0.22.76-experimental.enable-deno-cli.19945278199.1";
|
|
3554
3554
|
function fu(t, e) {
|
|
3555
3555
|
return {
|
|
3556
3556
|
info: t ? (...n) => console.info(...n, e()) : () => {
|
|
@@ -3879,7 +3879,7 @@ const Hi = (t) => t.length > 0 ? t.join(", ") : "none", bu = (t, e) => new ie(`E
|
|
|
3879
3879
|
unlink: Vr,
|
|
3880
3880
|
delete: () => {
|
|
3881
3881
|
}
|
|
3882
|
-
},
|
|
3882
|
+
}, Tu = (t, e) => {
|
|
3883
3883
|
if (!e)
|
|
3884
3884
|
return;
|
|
3885
3885
|
const [n, r, i, s] = t;
|
|
@@ -3889,7 +3889,7 @@ const Hi = (t) => t.length > 0 ? t.join(", ") : "none", bu = (t, e) => new ie(`E
|
|
|
3889
3889
|
throw new ie(`Entity name must be a string, but received: ${typeof r}`);
|
|
3890
3890
|
const o = gu[n];
|
|
3891
3891
|
o && s !== void 0 && o(r, s, e);
|
|
3892
|
-
},
|
|
3892
|
+
}, wu = (t, e) => {
|
|
3893
3893
|
const n = Array.isArray(t) ? t : [t];
|
|
3894
3894
|
for (const r of n) {
|
|
3895
3895
|
if (!r || typeof r != "object")
|
|
@@ -3899,7 +3899,7 @@ const Hi = (t) => t.length > 0 ? t.join(", ") : "none", bu = (t, e) => new ie(`E
|
|
|
3899
3899
|
for (const i of r.__ops) {
|
|
3900
3900
|
if (!Array.isArray(i))
|
|
3901
3901
|
throw new ie(`Transaction operation must be an array, but received: ${typeof i}`);
|
|
3902
|
-
|
|
3902
|
+
Tu(i, e);
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
3905
|
};
|
|
@@ -4103,7 +4103,7 @@ function Zt(t, e) {
|
|
|
4103
4103
|
}
|
|
4104
4104
|
function Hr(t, e, n) {
|
|
4105
4105
|
var r;
|
|
4106
|
-
const i = (r =
|
|
4106
|
+
const i = (r = Te(e, t.table, "id")) === null || r === void 0 ? void 0 : r.id;
|
|
4107
4107
|
if (!i)
|
|
4108
4108
|
return -1;
|
|
4109
4109
|
const s = We(e.eav, [n, i, n]);
|
|
@@ -4145,14 +4145,14 @@ function Eu(t, e) {
|
|
|
4145
4145
|
}
|
|
4146
4146
|
return o;
|
|
4147
4147
|
}
|
|
4148
|
-
function
|
|
4148
|
+
function wt(t, e) {
|
|
4149
4149
|
return { [t.table]: e.map((n) => n.entity) };
|
|
4150
4150
|
}
|
|
4151
4151
|
function Au(t, e) {
|
|
4152
4152
|
var n;
|
|
4153
4153
|
if (t.orderFieldType)
|
|
4154
4154
|
return t.orderFieldType;
|
|
4155
|
-
const r = t.orderField === "serverCreatedAt" ? "number" : (n =
|
|
4155
|
+
const r = t.orderField === "serverCreatedAt" ? "number" : (n = Te(e([]), t.table, t.orderField)) === null || n === void 0 ? void 0 : n["checked-data-type"];
|
|
4156
4156
|
return t.orderFieldType = r, r;
|
|
4157
4157
|
}
|
|
4158
4158
|
function ku(t, e, n) {
|
|
@@ -4178,7 +4178,7 @@ var ve;
|
|
|
4178
4178
|
})(ve || (ve = {}));
|
|
4179
4179
|
class ju {
|
|
4180
4180
|
constructor(e, n, r, i, s) {
|
|
4181
|
-
this.callbacks = {}, this.idToHash = {}, this.trySend = e, this.config = r, this.log = i, this.createStore = s, this.subs = new
|
|
4181
|
+
this.callbacks = {}, this.idToHash = {}, this.trySend = e, this.config = r, this.log = i, this.createStore = s, this.subs = new Tn({
|
|
4182
4182
|
persister: n,
|
|
4183
4183
|
merge: Ou,
|
|
4184
4184
|
serialize: Su,
|
|
@@ -4246,7 +4246,7 @@ class ju {
|
|
|
4246
4246
|
if (u && u.state && u.state.txId) {
|
|
4247
4247
|
this.sendResync(u, u.state, u.state.txId), !((i = u.values) === null || i === void 0) && i.entities && r && r({
|
|
4248
4248
|
type: ve.LoadFromStorage,
|
|
4249
|
-
data:
|
|
4249
|
+
data: wt(u, (s = u.values) === null || s === void 0 ? void 0 : s.entities)
|
|
4250
4250
|
});
|
|
4251
4251
|
return;
|
|
4252
4252
|
}
|
|
@@ -4321,7 +4321,7 @@ class ju {
|
|
|
4321
4321
|
c[s] = a, c[s].updatedAt = Date.now();
|
|
4322
4322
|
}), a.values && this.notifyCbs(s, {
|
|
4323
4323
|
type: ve.InitialSyncBatch,
|
|
4324
|
-
data:
|
|
4324
|
+
data: wt(a, a.values.entities),
|
|
4325
4325
|
batch: o
|
|
4326
4326
|
});
|
|
4327
4327
|
}
|
|
@@ -4346,7 +4346,7 @@ class ju {
|
|
|
4346
4346
|
const s = this.subs.currentValue[i];
|
|
4347
4347
|
s && this.notifyCbs(i, {
|
|
4348
4348
|
type: ve.InitialSyncComplete,
|
|
4349
|
-
data:
|
|
4349
|
+
data: wt(s, ((n = s.values) === null || n === void 0 ? void 0 : n.entities) || [])
|
|
4350
4350
|
});
|
|
4351
4351
|
}
|
|
4352
4352
|
onSyncUpdateTriples(e) {
|
|
@@ -4417,10 +4417,10 @@ class ju {
|
|
|
4417
4417
|
const _ = [];
|
|
4418
4418
|
for (const g of c.sort().reverse())
|
|
4419
4419
|
_.push(p[g].entity), p.splice(g, 1);
|
|
4420
|
-
const
|
|
4421
|
-
ku(a,
|
|
4420
|
+
const w = Au(a, this.createStore);
|
|
4421
|
+
ku(a, w, p), this.notifyCbs(o, {
|
|
4422
4422
|
type: ve.SyncTransaction,
|
|
4423
|
-
data:
|
|
4423
|
+
data: wt(a, (i = a.values) === null || i === void 0 ? void 0 : i.entities),
|
|
4424
4424
|
added: b,
|
|
4425
4425
|
removed: _,
|
|
4426
4426
|
updated: y
|
|
@@ -4597,7 +4597,7 @@ class Ku {
|
|
|
4597
4597
|
}, this.notifyQueryError = (d, c) => {
|
|
4598
4598
|
(this.queryCbs[d] || []).forEach((l) => l.cb({ error: c }));
|
|
4599
4599
|
}, this.pushTx = (d) => {
|
|
4600
|
-
this.config.disableValidation ||
|
|
4600
|
+
this.config.disableValidation || wu(d, this.config.schema);
|
|
4601
4601
|
try {
|
|
4602
4602
|
const c = qa({
|
|
4603
4603
|
attrs: this.optimisticAttrs(),
|
|
@@ -4726,7 +4726,7 @@ class Ku {
|
|
|
4726
4726
|
this.kv.waitForKeyToLoad("pendingMutations").then(() => this.notifyOne(e));
|
|
4727
4727
|
}
|
|
4728
4728
|
_initStorage(e) {
|
|
4729
|
-
this.querySubs = new
|
|
4729
|
+
this.querySubs = new Tn({
|
|
4730
4730
|
persister: new e(this.config.appId, "querySubs"),
|
|
4731
4731
|
merge: Nu,
|
|
4732
4732
|
serialize: Uu,
|
|
@@ -4746,7 +4746,7 @@ class Ku {
|
|
|
4746
4746
|
maxSize: 1e6
|
|
4747
4747
|
// 1 million triples
|
|
4748
4748
|
}
|
|
4749
|
-
}), this.querySubs.onKeyLoaded = (n) => this._onQuerySubLoaded(n), this.kv = new
|
|
4749
|
+
}), this.querySubs.onKeyLoaded = (n) => this._onQuerySubLoaded(n), this.kv = new Tn({
|
|
4750
4750
|
persister: new e(this.config.appId, "kv"),
|
|
4751
4751
|
merge: this._onMergeKv,
|
|
4752
4752
|
serialize: Fu,
|
|
@@ -4822,7 +4822,7 @@ class Ku {
|
|
|
4822
4822
|
const { q: l, result: p } = n, y = z(l);
|
|
4823
4823
|
if (!this._hasQueryListeners() && !this.querySubs.currentValue[y])
|
|
4824
4824
|
break;
|
|
4825
|
-
const b = (o = (s = p == null ? void 0 : p[0]) === null || s === void 0 ? void 0 : s.data) === null || o === void 0 ? void 0 : o["page-info"], _ = (u = (a = p == null ? void 0 : p[0]) === null || a === void 0 ? void 0 : a.data) === null || u === void 0 ? void 0 : u.aggregate,
|
|
4825
|
+
const b = (o = (s = p == null ? void 0 : p[0]) === null || s === void 0 ? void 0 : s.data) === null || o === void 0 ? void 0 : o["page-info"], _ = (u = (a = p == null ? void 0 : p[0]) === null || a === void 0 ? void 0 : a.data) === null || u === void 0 ? void 0 : u.aggregate, w = Fr(p), g = Et(this.attrs, w, d, this._linkIndex, this.config.useDateObjects);
|
|
4826
4826
|
this.querySubs.updateInPlace((m) => {
|
|
4827
4827
|
if (!m[y]) {
|
|
4828
4828
|
this._log.info("Missing value in querySubs", { hash: y, q: l });
|
|
@@ -4860,12 +4860,12 @@ class Ku {
|
|
|
4860
4860
|
b !== this._pendingMutations() && this.kv.updateInPlace((g) => {
|
|
4861
4861
|
g.pendingMutations = b;
|
|
4862
4862
|
});
|
|
4863
|
-
const _ = Zr(b.entries()),
|
|
4863
|
+
const _ = Zr(b.entries()), w = l.map((g) => {
|
|
4864
4864
|
var m, E, S, I;
|
|
4865
4865
|
const x = g["instaql-query"], B = g["instaql-result"], Ve = z(x), lt = Fr(B), Ft = Et(this.attrs, lt, d, this._linkIndex, this.config.useDateObjects), Nt = this._applyOptimisticUpdates(Ft, _, y), ht = (E = (m = B == null ? void 0 : B[0]) === null || m === void 0 ? void 0 : m.data) === null || E === void 0 ? void 0 : E["page-info"], ce = (I = (S = B == null ? void 0 : B[0]) === null || S === void 0 ? void 0 : S.data) === null || I === void 0 ? void 0 : I.aggregate;
|
|
4866
4866
|
return { q: x, hash: Ve, store: Nt, pageInfo: ht, aggregate: ce };
|
|
4867
4867
|
});
|
|
4868
|
-
|
|
4868
|
+
w.forEach(({ hash: g, q: m, store: E, pageInfo: S, aggregate: I }) => {
|
|
4869
4869
|
this.querySubs.updateInPlace((x) => {
|
|
4870
4870
|
if (!x[g]) {
|
|
4871
4871
|
this._log.error("Missing value in querySubs", { hash: g, q: m });
|
|
@@ -4873,7 +4873,7 @@ class Ku {
|
|
|
4873
4873
|
}
|
|
4874
4874
|
x[g].result = { store: E, pageInfo: S, aggregate: I, processedTxId: y };
|
|
4875
4875
|
});
|
|
4876
|
-
}), this._cleanupPendingMutationsQueries(),
|
|
4876
|
+
}), this._cleanupPendingMutationsQueries(), w.forEach(({ hash: g }) => {
|
|
4877
4877
|
this.notifyOne(g);
|
|
4878
4878
|
});
|
|
4879
4879
|
break;
|
|
@@ -4884,10 +4884,10 @@ class Ku {
|
|
|
4884
4884
|
const b = this._rewriteMutations(this.attrs, this._pendingMutations()).get(l);
|
|
4885
4885
|
if (!b)
|
|
4886
4886
|
break;
|
|
4887
|
-
this._updatePendingMutations((
|
|
4888
|
-
|
|
4887
|
+
this._updatePendingMutations((w) => {
|
|
4888
|
+
w.set(l, Object.assign(Object.assign({}, w.get(l)), { "tx-id": p, confirmed: Date.now() }));
|
|
4889
4889
|
});
|
|
4890
|
-
const _ = b["tx-steps"].filter(([
|
|
4890
|
+
const _ = b["tx-steps"].filter(([w, ...g]) => w === "add-attr").map(([w, g]) => g).concat(Object.values(this.attrs));
|
|
4891
4891
|
this._setAttrs(_), this._finishTransaction("synced", l), this._cleanupPendingMutationsTimeout();
|
|
4892
4892
|
break;
|
|
4893
4893
|
}
|
|
@@ -5084,15 +5084,15 @@ class Ku {
|
|
|
5084
5084
|
for (const p of c) {
|
|
5085
5085
|
const [y] = p;
|
|
5086
5086
|
if (y === "add-attr") {
|
|
5087
|
-
const [_,
|
|
5088
|
-
if (g &&
|
|
5089
|
-
o.attrIdMap[
|
|
5087
|
+
const [_, w] = p, g = i(w);
|
|
5088
|
+
if (g && w.id !== g.id) {
|
|
5089
|
+
o.attrIdMap[w.id] = g.id, a = !0;
|
|
5090
5090
|
continue;
|
|
5091
5091
|
}
|
|
5092
|
-
if (
|
|
5093
|
-
const m = s(
|
|
5092
|
+
if (w["value-type"] === "ref") {
|
|
5093
|
+
const m = s(w);
|
|
5094
5094
|
if (m) {
|
|
5095
|
-
o.attrIdMap[
|
|
5095
|
+
o.attrIdMap[w.id] = m.id, o.refSwapAttrIds.add(w.id), a = !0;
|
|
5096
5096
|
continue;
|
|
5097
5097
|
}
|
|
5098
5098
|
}
|
|
@@ -5149,7 +5149,7 @@ class Ku {
|
|
|
5149
5149
|
}
|
|
5150
5150
|
_applyOptimisticUpdates(e, n, r) {
|
|
5151
5151
|
for (const [i, s] of n)
|
|
5152
|
-
(!s["tx-id"] || r && s["tx-id"] > r) && (e =
|
|
5152
|
+
(!s["tx-id"] || r && s["tx-id"] > r) && (e = To(e, s["tx-steps"]));
|
|
5153
5153
|
return e;
|
|
5154
5154
|
}
|
|
5155
5155
|
/** Re-compute all subscriptions */
|
|
@@ -5674,7 +5674,7 @@ class Ku {
|
|
|
5674
5674
|
Sr(d, c, l);
|
|
5675
5675
|
break;
|
|
5676
5676
|
case "-":
|
|
5677
|
-
|
|
5677
|
+
wi(d, c);
|
|
5678
5678
|
break;
|
|
5679
5679
|
}
|
|
5680
5680
|
delete d[this._sessionId];
|
|
@@ -5954,7 +5954,7 @@ function oc() {
|
|
|
5954
5954
|
var t;
|
|
5955
5955
|
return globalThis.__instantDbStore = (t = globalThis.__instantDbStore) !== null && t !== void 0 ? t : {}, globalThis.__instantDbStore;
|
|
5956
5956
|
}
|
|
5957
|
-
function
|
|
5957
|
+
function wn(t) {
|
|
5958
5958
|
const e = t.__adminToken;
|
|
5959
5959
|
return t.appId + "_" + (t.websocketURI || "default_ws_uri") + "_" + (t.apiURI || "default_api_uri") + "_" + (e || "client_only") + "_" + t.useDateObjects;
|
|
5960
5960
|
}
|
|
@@ -6115,7 +6115,7 @@ class dc {
|
|
|
6115
6115
|
};
|
|
6116
6116
|
}
|
|
6117
6117
|
shutdown() {
|
|
6118
|
-
delete mn[
|
|
6118
|
+
delete mn[wn(this._reactor.config)], this._reactor.shutdown();
|
|
6119
6119
|
}
|
|
6120
6120
|
/**
|
|
6121
6121
|
* Use this for one-off queries.
|
|
@@ -6162,11 +6162,11 @@ function fc(t, e) {
|
|
|
6162
6162
|
}
|
|
6163
6163
|
function lc(t, e, n, r, i) {
|
|
6164
6164
|
var s;
|
|
6165
|
-
const o = Object.assign(Object.assign({}, t), { useDateObjects: (s = t.useDateObjects) !== null && s !== void 0 ? s : !1 }), a = mn[
|
|
6165
|
+
const o = Object.assign(Object.assign({}, t), { useDateObjects: (s = t.useDateObjects) !== null && s !== void 0 ? s : !1 }), a = mn[wn(o)];
|
|
6166
6166
|
if (a)
|
|
6167
6167
|
return fc(a, o.schema) && a._reactor.updateSchema(o.schema), a;
|
|
6168
6168
|
const u = new Ku(Object.assign(Object.assign(Object.assign({}, ic), o), { cardinalityInference: !!o.schema }), e || Ki, n || qi, Object.assign(Object.assign({}, r || {}), { "@instantdb/core": Bn }), i), d = new dc(u);
|
|
6169
|
-
return mn[
|
|
6169
|
+
return mn[wn(o)] = d, hc(o.appId, o.devtool), d;
|
|
6170
6170
|
}
|
|
6171
6171
|
function hc(t, e) {
|
|
6172
6172
|
if (typeof window > "u" || typeof window.location > "u" || typeof document > "u" || typeof e == "boolean" && !e)
|
|
@@ -6214,28 +6214,28 @@ function yc() {
|
|
|
6214
6214
|
*/
|
|
6215
6215
|
return t.NODE_ENV !== "production" && function() {
|
|
6216
6216
|
var e = ci, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), b = Symbol.iterator, _ = "@@iterator";
|
|
6217
|
-
function
|
|
6217
|
+
function w(h) {
|
|
6218
6218
|
if (h === null || typeof h != "object")
|
|
6219
6219
|
return null;
|
|
6220
|
-
var
|
|
6221
|
-
return typeof
|
|
6220
|
+
var T = b && h[b] || h[_];
|
|
6221
|
+
return typeof T == "function" ? T : null;
|
|
6222
6222
|
}
|
|
6223
6223
|
var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
6224
6224
|
function m(h) {
|
|
6225
6225
|
{
|
|
6226
|
-
for (var
|
|
6226
|
+
for (var T = arguments.length, v = new Array(T > 1 ? T - 1 : 0), O = 1; O < T; O++)
|
|
6227
6227
|
v[O - 1] = arguments[O];
|
|
6228
6228
|
E("error", h, v);
|
|
6229
6229
|
}
|
|
6230
6230
|
}
|
|
6231
|
-
function E(h,
|
|
6231
|
+
function E(h, T, v) {
|
|
6232
6232
|
{
|
|
6233
6233
|
var O = g.ReactDebugCurrentFrame, P = O.getStackAddendum();
|
|
6234
|
-
P !== "" && (
|
|
6234
|
+
P !== "" && (T += "%s", v = v.concat([P]));
|
|
6235
6235
|
var M = v.map(function(C) {
|
|
6236
6236
|
return String(C);
|
|
6237
6237
|
});
|
|
6238
|
-
M.unshift("Warning: " +
|
|
6238
|
+
M.unshift("Warning: " + T), Function.prototype.apply.call(console[h], console, M);
|
|
6239
6239
|
}
|
|
6240
6240
|
}
|
|
6241
6241
|
var S = !1, I = !1, x = !1, B = !1, Ve = !1, lt;
|
|
@@ -6247,11 +6247,11 @@ function yc() {
|
|
|
6247
6247
|
// with.
|
|
6248
6248
|
h.$$typeof === lt || h.getModuleId !== void 0));
|
|
6249
6249
|
}
|
|
6250
|
-
function Nt(h,
|
|
6250
|
+
function Nt(h, T, v) {
|
|
6251
6251
|
var O = h.displayName;
|
|
6252
6252
|
if (O)
|
|
6253
6253
|
return O;
|
|
6254
|
-
var P =
|
|
6254
|
+
var P = T.displayName || T.name || "";
|
|
6255
6255
|
return P !== "" ? v + "(" + P + ")" : v;
|
|
6256
6256
|
}
|
|
6257
6257
|
function ht(h) {
|
|
@@ -6281,8 +6281,8 @@ function yc() {
|
|
|
6281
6281
|
if (typeof h == "object")
|
|
6282
6282
|
switch (h.$$typeof) {
|
|
6283
6283
|
case u:
|
|
6284
|
-
var
|
|
6285
|
-
return ht(
|
|
6284
|
+
var T = h;
|
|
6285
|
+
return ht(T) + ".Consumer";
|
|
6286
6286
|
case a:
|
|
6287
6287
|
var v = h;
|
|
6288
6288
|
return ht(v._context) + ".Provider";
|
|
@@ -6302,7 +6302,7 @@ function yc() {
|
|
|
6302
6302
|
}
|
|
6303
6303
|
return null;
|
|
6304
6304
|
}
|
|
6305
|
-
var
|
|
6305
|
+
var we = Object.assign, Be = 0, Hn, Yn, Jn, Zn, Xn, er, tr;
|
|
6306
6306
|
function nr() {
|
|
6307
6307
|
}
|
|
6308
6308
|
nr.__reactDisabledLog = !0;
|
|
@@ -6338,25 +6338,25 @@ function yc() {
|
|
|
6338
6338
|
writable: !0
|
|
6339
6339
|
};
|
|
6340
6340
|
Object.defineProperties(console, {
|
|
6341
|
-
log:
|
|
6341
|
+
log: we({}, h, {
|
|
6342
6342
|
value: Hn
|
|
6343
6343
|
}),
|
|
6344
|
-
info:
|
|
6344
|
+
info: we({}, h, {
|
|
6345
6345
|
value: Yn
|
|
6346
6346
|
}),
|
|
6347
|
-
warn:
|
|
6347
|
+
warn: we({}, h, {
|
|
6348
6348
|
value: Jn
|
|
6349
6349
|
}),
|
|
6350
|
-
error:
|
|
6350
|
+
error: we({}, h, {
|
|
6351
6351
|
value: Zn
|
|
6352
6352
|
}),
|
|
6353
|
-
group:
|
|
6353
|
+
group: we({}, h, {
|
|
6354
6354
|
value: Xn
|
|
6355
6355
|
}),
|
|
6356
|
-
groupCollapsed:
|
|
6356
|
+
groupCollapsed: we({}, h, {
|
|
6357
6357
|
value: er
|
|
6358
6358
|
}),
|
|
6359
|
-
groupEnd:
|
|
6359
|
+
groupEnd: we({}, h, {
|
|
6360
6360
|
value: tr
|
|
6361
6361
|
})
|
|
6362
6362
|
});
|
|
@@ -6365,7 +6365,7 @@ function yc() {
|
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
6367
6367
|
var Kt = g.ReactCurrentDispatcher, qt;
|
|
6368
|
-
function pt(h,
|
|
6368
|
+
function pt(h, T, v) {
|
|
6369
6369
|
{
|
|
6370
6370
|
if (qt === void 0)
|
|
6371
6371
|
try {
|
|
@@ -6383,7 +6383,7 @@ function yc() {
|
|
|
6383
6383
|
var ns = typeof WeakMap == "function" ? WeakMap : Map;
|
|
6384
6384
|
yt = new ns();
|
|
6385
6385
|
}
|
|
6386
|
-
function rr(h,
|
|
6386
|
+
function rr(h, T) {
|
|
6387
6387
|
if (!h || Wt)
|
|
6388
6388
|
return "";
|
|
6389
6389
|
{
|
|
@@ -6398,7 +6398,7 @@ function yc() {
|
|
|
6398
6398
|
var M;
|
|
6399
6399
|
M = Kt.current, Kt.current = null, es();
|
|
6400
6400
|
try {
|
|
6401
|
-
if (
|
|
6401
|
+
if (T) {
|
|
6402
6402
|
var C = function() {
|
|
6403
6403
|
throw Error();
|
|
6404
6404
|
};
|
|
@@ -6454,14 +6454,14 @@ function yc() {
|
|
|
6454
6454
|
var Ie = h ? h.displayName || h.name : "", me = Ie ? pt(Ie) : "";
|
|
6455
6455
|
return typeof h == "function" && yt.set(h, me), me;
|
|
6456
6456
|
}
|
|
6457
|
-
function rs(h,
|
|
6457
|
+
function rs(h, T, v) {
|
|
6458
6458
|
return rr(h, !1);
|
|
6459
6459
|
}
|
|
6460
6460
|
function is(h) {
|
|
6461
|
-
var
|
|
6462
|
-
return !!(
|
|
6461
|
+
var T = h.prototype;
|
|
6462
|
+
return !!(T && T.isReactComponent);
|
|
6463
6463
|
}
|
|
6464
|
-
function bt(h,
|
|
6464
|
+
function bt(h, T, v) {
|
|
6465
6465
|
if (h == null)
|
|
6466
6466
|
return "";
|
|
6467
6467
|
if (typeof h == "function")
|
|
@@ -6479,11 +6479,11 @@ function yc() {
|
|
|
6479
6479
|
case d:
|
|
6480
6480
|
return rs(h.render);
|
|
6481
6481
|
case l:
|
|
6482
|
-
return bt(h.type,
|
|
6482
|
+
return bt(h.type, T, v);
|
|
6483
6483
|
case p: {
|
|
6484
6484
|
var O = h, P = O._payload, M = O._init;
|
|
6485
6485
|
try {
|
|
6486
|
-
return bt(M(P),
|
|
6486
|
+
return bt(M(P), T, v);
|
|
6487
6487
|
} catch {
|
|
6488
6488
|
}
|
|
6489
6489
|
}
|
|
@@ -6493,12 +6493,12 @@ function yc() {
|
|
|
6493
6493
|
var Ge = Object.prototype.hasOwnProperty, ir = {}, sr = g.ReactDebugCurrentFrame;
|
|
6494
6494
|
function _t(h) {
|
|
6495
6495
|
if (h) {
|
|
6496
|
-
var
|
|
6496
|
+
var T = h._owner, v = bt(h.type, h._source, T ? T.type : null);
|
|
6497
6497
|
sr.setExtraStackFrame(v);
|
|
6498
6498
|
} else
|
|
6499
6499
|
sr.setExtraStackFrame(null);
|
|
6500
6500
|
}
|
|
6501
|
-
function ss(h,
|
|
6501
|
+
function ss(h, T, v, O, P) {
|
|
6502
6502
|
{
|
|
6503
6503
|
var M = Function.call.bind(Ge);
|
|
6504
6504
|
for (var C in h)
|
|
@@ -6509,7 +6509,7 @@ function yc() {
|
|
|
6509
6509
|
var G = Error((O || "React class") + ": " + v + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
6510
6510
|
throw G.name = "Invariant Violation", G;
|
|
6511
6511
|
}
|
|
6512
|
-
k = h[C](
|
|
6512
|
+
k = h[C](T, C, O, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
6513
6513
|
} catch (D) {
|
|
6514
6514
|
k = D;
|
|
6515
6515
|
}
|
|
@@ -6523,7 +6523,7 @@ function yc() {
|
|
|
6523
6523
|
}
|
|
6524
6524
|
function as(h) {
|
|
6525
6525
|
{
|
|
6526
|
-
var
|
|
6526
|
+
var T = typeof Symbol == "function" && Symbol.toStringTag, v = T && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
6527
6527
|
return v;
|
|
6528
6528
|
}
|
|
6529
6529
|
}
|
|
@@ -6549,27 +6549,27 @@ function yc() {
|
|
|
6549
6549
|
}, cr, dr;
|
|
6550
6550
|
function ds(h) {
|
|
6551
6551
|
if (Ge.call(h, "ref")) {
|
|
6552
|
-
var
|
|
6553
|
-
if (
|
|
6552
|
+
var T = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
6553
|
+
if (T && T.isReactWarning)
|
|
6554
6554
|
return !1;
|
|
6555
6555
|
}
|
|
6556
6556
|
return h.ref !== void 0;
|
|
6557
6557
|
}
|
|
6558
6558
|
function fs(h) {
|
|
6559
6559
|
if (Ge.call(h, "key")) {
|
|
6560
|
-
var
|
|
6561
|
-
if (
|
|
6560
|
+
var T = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
6561
|
+
if (T && T.isReactWarning)
|
|
6562
6562
|
return !1;
|
|
6563
6563
|
}
|
|
6564
6564
|
return h.key !== void 0;
|
|
6565
6565
|
}
|
|
6566
|
-
function ls(h,
|
|
6566
|
+
function ls(h, T) {
|
|
6567
6567
|
typeof h.ref == "string" && ur.current;
|
|
6568
6568
|
}
|
|
6569
|
-
function hs(h,
|
|
6569
|
+
function hs(h, T) {
|
|
6570
6570
|
{
|
|
6571
6571
|
var v = function() {
|
|
6572
|
-
cr || (cr = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
6572
|
+
cr || (cr = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", T));
|
|
6573
6573
|
};
|
|
6574
6574
|
v.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
6575
6575
|
get: v,
|
|
@@ -6577,10 +6577,10 @@ function yc() {
|
|
|
6577
6577
|
});
|
|
6578
6578
|
}
|
|
6579
6579
|
}
|
|
6580
|
-
function ps(h,
|
|
6580
|
+
function ps(h, T) {
|
|
6581
6581
|
{
|
|
6582
6582
|
var v = function() {
|
|
6583
|
-
dr || (dr = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
6583
|
+
dr || (dr = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", T));
|
|
6584
6584
|
};
|
|
6585
6585
|
v.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
6586
6586
|
get: v,
|
|
@@ -6588,13 +6588,13 @@ function yc() {
|
|
|
6588
6588
|
});
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
6591
|
-
var ys = function(h,
|
|
6591
|
+
var ys = function(h, T, v, O, P, M, C) {
|
|
6592
6592
|
var k = {
|
|
6593
6593
|
// This tag allows us to uniquely identify this as a React Element
|
|
6594
6594
|
$$typeof: n,
|
|
6595
6595
|
// Built-in properties that belong on the element
|
|
6596
6596
|
type: h,
|
|
6597
|
-
key:
|
|
6597
|
+
key: T,
|
|
6598
6598
|
ref: v,
|
|
6599
6599
|
props: C,
|
|
6600
6600
|
// Record the component responsible for creating this element.
|
|
@@ -6617,12 +6617,12 @@ function yc() {
|
|
|
6617
6617
|
value: P
|
|
6618
6618
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
6619
6619
|
};
|
|
6620
|
-
function bs(h,
|
|
6620
|
+
function bs(h, T, v, O, P) {
|
|
6621
6621
|
{
|
|
6622
6622
|
var M, C = {}, k = null, G = null;
|
|
6623
|
-
v !== void 0 && (ar(v), k = "" + v), fs(
|
|
6624
|
-
for (M in
|
|
6625
|
-
Ge.call(
|
|
6623
|
+
v !== void 0 && (ar(v), k = "" + v), fs(T) && (ar(T.key), k = "" + T.key), ds(T) && (G = T.ref, ls(T, P));
|
|
6624
|
+
for (M in T)
|
|
6625
|
+
Ge.call(T, M) && !cs.hasOwnProperty(M) && (C[M] = T[M]);
|
|
6626
6626
|
if (h && h.defaultProps) {
|
|
6627
6627
|
var D = h.defaultProps;
|
|
6628
6628
|
for (M in D)
|
|
@@ -6638,7 +6638,7 @@ function yc() {
|
|
|
6638
6638
|
var Vt = g.ReactCurrentOwner, fr = g.ReactDebugCurrentFrame;
|
|
6639
6639
|
function Pe(h) {
|
|
6640
6640
|
if (h) {
|
|
6641
|
-
var
|
|
6641
|
+
var T = h._owner, v = bt(h.type, h._source, T ? T.type : null);
|
|
6642
6642
|
fr.setExtraStackFrame(v);
|
|
6643
6643
|
} else
|
|
6644
6644
|
fr.setExtraStackFrame(null);
|
|
@@ -6666,22 +6666,22 @@ Check the render method of \`` + h + "`.";
|
|
|
6666
6666
|
var hr = {};
|
|
6667
6667
|
function gs(h) {
|
|
6668
6668
|
{
|
|
6669
|
-
var
|
|
6670
|
-
if (!
|
|
6669
|
+
var T = lr();
|
|
6670
|
+
if (!T) {
|
|
6671
6671
|
var v = typeof h == "string" ? h : h.displayName || h.name;
|
|
6672
|
-
v && (
|
|
6672
|
+
v && (T = `
|
|
6673
6673
|
|
|
6674
6674
|
Check the top-level render call using <` + v + ">.");
|
|
6675
6675
|
}
|
|
6676
|
-
return
|
|
6676
|
+
return T;
|
|
6677
6677
|
}
|
|
6678
6678
|
}
|
|
6679
|
-
function pr(h,
|
|
6679
|
+
function pr(h, T) {
|
|
6680
6680
|
{
|
|
6681
6681
|
if (!h._store || h._store.validated || h.key != null)
|
|
6682
6682
|
return;
|
|
6683
6683
|
h._store.validated = !0;
|
|
6684
|
-
var v = gs(
|
|
6684
|
+
var v = gs(T);
|
|
6685
6685
|
if (hr[v])
|
|
6686
6686
|
return;
|
|
6687
6687
|
hr[v] = !0;
|
|
@@ -6689,54 +6689,54 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6689
6689
|
h && h._owner && h._owner !== Vt.current && (O = " It was passed a child from " + ce(h._owner.type) + "."), Pe(h), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, O), Pe(null);
|
|
6690
6690
|
}
|
|
6691
6691
|
}
|
|
6692
|
-
function yr(h,
|
|
6692
|
+
function yr(h, T) {
|
|
6693
6693
|
{
|
|
6694
6694
|
if (typeof h != "object")
|
|
6695
6695
|
return;
|
|
6696
6696
|
if (zt(h))
|
|
6697
6697
|
for (var v = 0; v < h.length; v++) {
|
|
6698
6698
|
var O = h[v];
|
|
6699
|
-
Gt(O) && pr(O,
|
|
6699
|
+
Gt(O) && pr(O, T);
|
|
6700
6700
|
}
|
|
6701
6701
|
else if (Gt(h))
|
|
6702
6702
|
h._store && (h._store.validated = !0);
|
|
6703
6703
|
else if (h) {
|
|
6704
|
-
var P =
|
|
6704
|
+
var P = w(h);
|
|
6705
6705
|
if (typeof P == "function" && P !== h.entries)
|
|
6706
6706
|
for (var M = P.call(h), C; !(C = M.next()).done; )
|
|
6707
|
-
Gt(C.value) && pr(C.value,
|
|
6707
|
+
Gt(C.value) && pr(C.value, T);
|
|
6708
6708
|
}
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
|
-
function
|
|
6711
|
+
function Ts(h) {
|
|
6712
6712
|
{
|
|
6713
|
-
var
|
|
6714
|
-
if (
|
|
6713
|
+
var T = h.type;
|
|
6714
|
+
if (T == null || typeof T == "string")
|
|
6715
6715
|
return;
|
|
6716
6716
|
var v;
|
|
6717
|
-
if (typeof
|
|
6718
|
-
v =
|
|
6719
|
-
else if (typeof
|
|
6717
|
+
if (typeof T == "function")
|
|
6718
|
+
v = T.propTypes;
|
|
6719
|
+
else if (typeof T == "object" && (T.$$typeof === d || // Note: Memo only checks outer props here.
|
|
6720
6720
|
// Inner props are checked in the reconciler.
|
|
6721
|
-
|
|
6722
|
-
v =
|
|
6721
|
+
T.$$typeof === l))
|
|
6722
|
+
v = T.propTypes;
|
|
6723
6723
|
else
|
|
6724
6724
|
return;
|
|
6725
6725
|
if (v) {
|
|
6726
|
-
var O = ce(
|
|
6726
|
+
var O = ce(T);
|
|
6727
6727
|
ss(v, h.props, "prop", O, h);
|
|
6728
|
-
} else if (
|
|
6728
|
+
} else if (T.PropTypes !== void 0 && !Bt) {
|
|
6729
6729
|
Bt = !0;
|
|
6730
|
-
var P = ce(
|
|
6730
|
+
var P = ce(T);
|
|
6731
6731
|
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
6732
6732
|
}
|
|
6733
|
-
typeof
|
|
6733
|
+
typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
6734
6734
|
}
|
|
6735
6735
|
}
|
|
6736
|
-
function
|
|
6736
|
+
function ws(h) {
|
|
6737
6737
|
{
|
|
6738
|
-
for (var
|
|
6739
|
-
var O =
|
|
6738
|
+
for (var T = Object.keys(h.props), v = 0; v < T.length; v++) {
|
|
6739
|
+
var O = T[v];
|
|
6740
6740
|
if (O !== "children" && O !== "key") {
|
|
6741
6741
|
Pe(h), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Pe(null);
|
|
6742
6742
|
break;
|
|
@@ -6746,7 +6746,7 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6746
6746
|
}
|
|
6747
6747
|
}
|
|
6748
6748
|
var br = {};
|
|
6749
|
-
function _r(h,
|
|
6749
|
+
function _r(h, T, v, O, P, M) {
|
|
6750
6750
|
{
|
|
6751
6751
|
var C = Ft(h);
|
|
6752
6752
|
if (!C) {
|
|
@@ -6757,11 +6757,11 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6757
6757
|
var D;
|
|
6758
6758
|
h === null ? D = "null" : zt(h) ? D = "array" : h !== void 0 && h.$$typeof === n ? (D = "<" + (ce(h.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : D = typeof h, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, k);
|
|
6759
6759
|
}
|
|
6760
|
-
var L = bs(h,
|
|
6760
|
+
var L = bs(h, T, v, P, M);
|
|
6761
6761
|
if (L == null)
|
|
6762
6762
|
return L;
|
|
6763
6763
|
if (C) {
|
|
6764
|
-
var re =
|
|
6764
|
+
var re = T.children;
|
|
6765
6765
|
if (re !== void 0)
|
|
6766
6766
|
if (O)
|
|
6767
6767
|
if (zt(re)) {
|
|
@@ -6773,8 +6773,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6773
6773
|
else
|
|
6774
6774
|
yr(re, h);
|
|
6775
6775
|
}
|
|
6776
|
-
if (Ge.call(
|
|
6777
|
-
var me = ce(h), Y = Object.keys(
|
|
6776
|
+
if (Ge.call(T, "key")) {
|
|
6777
|
+
var me = ce(h), Y = Object.keys(T).filter(function(As) {
|
|
6778
6778
|
return As !== "key";
|
|
6779
6779
|
}), Qt = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
6780
6780
|
if (!br[me + Qt]) {
|
|
@@ -6787,14 +6787,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
6787
6787
|
<%s key={someKey} {...props} />`, Qt, me, Es, me), br[me + Qt] = !0;
|
|
6788
6788
|
}
|
|
6789
6789
|
}
|
|
6790
|
-
return h === i ?
|
|
6790
|
+
return h === i ? ws(L) : Ts(L), L;
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
|
-
function ms(h,
|
|
6794
|
-
return _r(h,
|
|
6793
|
+
function ms(h, T, v) {
|
|
6794
|
+
return _r(h, T, v, !0);
|
|
6795
6795
|
}
|
|
6796
|
-
function vs(h,
|
|
6797
|
-
return _r(h,
|
|
6796
|
+
function vs(h, T, v) {
|
|
6797
|
+
return _r(h, T, v, !1);
|
|
6798
6798
|
}
|
|
6799
6799
|
var Ss = vs, Os = ms;
|
|
6800
6800
|
Ye.Fragment = i, Ye.jsx = Ss, Ye.jsxs = Os;
|
|
@@ -6832,7 +6832,7 @@ function gc(t, e, n) {
|
|
|
6832
6832
|
);
|
|
6833
6833
|
return { state: tn(o, () => s.current, () => _c), query: r };
|
|
6834
6834
|
}
|
|
6835
|
-
function
|
|
6835
|
+
function Tc() {
|
|
6836
6836
|
const t = at(null);
|
|
6837
6837
|
ke(() => {
|
|
6838
6838
|
n();
|
|
@@ -6845,7 +6845,7 @@ function wc() {
|
|
|
6845
6845
|
}
|
|
6846
6846
|
return { set: e, clear: n };
|
|
6847
6847
|
}
|
|
6848
|
-
const
|
|
6848
|
+
const wc = 1e3;
|
|
6849
6849
|
function mc(t, e, n) {
|
|
6850
6850
|
const r = at(n);
|
|
6851
6851
|
r.current = n, ke(() => t.core._reactor.subscribeTopic(t.id, e, (s, o) => {
|
|
@@ -6883,7 +6883,7 @@ function Oc(t, e, n) {
|
|
|
6883
6883
|
ke(() => t.core._reactor.joinRoom(t.id, e), [t.id]), ke(() => t.core._reactor.publishPresence(t.type, t.id, e), [t.type, t.id, n ?? JSON.stringify(e)]);
|
|
6884
6884
|
}
|
|
6885
6885
|
function Ec(t, e, n = {}) {
|
|
6886
|
-
const r =
|
|
6886
|
+
const r = Tc(), i = Se.usePresence(t, {
|
|
6887
6887
|
keys: [e]
|
|
6888
6888
|
}), s = nn(() => {
|
|
6889
6889
|
var c;
|
|
@@ -6893,7 +6893,7 @@ function Ec(t, e, n = {}) {
|
|
|
6893
6893
|
var f;
|
|
6894
6894
|
t.core._reactor.publishPresence(t.type, t.id, {
|
|
6895
6895
|
[e]: c
|
|
6896
|
-
}), c && ((n == null ? void 0 : n.timeout) === null || (n == null ? void 0 : n.timeout) === 0 || r.set((f = n == null ? void 0 : n.timeout) !== null && f !== void 0 ? f :
|
|
6896
|
+
}), c && ((n == null ? void 0 : n.timeout) === null || (n == null ? void 0 : n.timeout) === 0 || r.set((f = n == null ? void 0 : n.timeout) !== null && f !== void 0 ? f : wc, () => {
|
|
6897
6897
|
t.core._reactor.publishPresence(t.type, t.id, {
|
|
6898
6898
|
[e]: null
|
|
6899
6899
|
});
|
|
@@ -7047,8 +7047,8 @@ function Pc(t) {
|
|
|
7047
7047
|
const { onEvent: e = en, onError: n = en, onRetry: r = en, onComment: i } = t;
|
|
7048
7048
|
let s = "", o = !0, a, u = "", d = "";
|
|
7049
7049
|
function c(b) {
|
|
7050
|
-
const _ = o ? b.replace(/^\xEF\xBB\xBF/, "") : b, [
|
|
7051
|
-
for (const m of
|
|
7050
|
+
const _ = o ? b.replace(/^\xEF\xBB\xBF/, "") : b, [w, g] = Ic(`${s}${_}`);
|
|
7051
|
+
for (const m of w)
|
|
7052
7052
|
f(m);
|
|
7053
7053
|
s = g, o = !1;
|
|
7054
7054
|
}
|
|
@@ -7063,13 +7063,13 @@ function Pc(t) {
|
|
|
7063
7063
|
}
|
|
7064
7064
|
const _ = b.indexOf(":");
|
|
7065
7065
|
if (_ !== -1) {
|
|
7066
|
-
const
|
|
7067
|
-
l(
|
|
7066
|
+
const w = b.slice(0, _), g = b[_ + 1] === " " ? 2 : 1, m = b.slice(_ + g);
|
|
7067
|
+
l(w, m, b);
|
|
7068
7068
|
return;
|
|
7069
7069
|
}
|
|
7070
7070
|
l(b, "", b);
|
|
7071
7071
|
}
|
|
7072
|
-
function l(b, _,
|
|
7072
|
+
function l(b, _, w) {
|
|
7073
7073
|
switch (b) {
|
|
7074
7074
|
case "event":
|
|
7075
7075
|
d = _;
|
|
@@ -7086,7 +7086,7 @@ function Pc(t) {
|
|
|
7086
7086
|
new ii(`Invalid \`retry\` value: "${_}"`, {
|
|
7087
7087
|
type: "invalid-retry",
|
|
7088
7088
|
value: _,
|
|
7089
|
-
line:
|
|
7089
|
+
line: w
|
|
7090
7090
|
})
|
|
7091
7091
|
);
|
|
7092
7092
|
break;
|
|
@@ -7094,7 +7094,7 @@ function Pc(t) {
|
|
|
7094
7094
|
n(
|
|
7095
7095
|
new ii(
|
|
7096
7096
|
`Unknown field "${b.length > 20 ? `${b.slice(0, 20)}…` : b}"`,
|
|
7097
|
-
{ type: "unknown-field", field: b, value: _, line:
|
|
7097
|
+
{ type: "unknown-field", field: b, value: _, line: w }
|
|
7098
7098
|
)
|
|
7099
7099
|
);
|
|
7100
7100
|
break;
|
|
@@ -7461,7 +7461,7 @@ function Wc({
|
|
|
7461
7461
|
p(E, m);
|
|
7462
7462
|
}
|
|
7463
7463
|
}
|
|
7464
|
-
function
|
|
7464
|
+
function w(g) {
|
|
7465
7465
|
f.publishPresence({
|
|
7466
7466
|
[c]: void 0
|
|
7467
7467
|
});
|
|
@@ -7472,7 +7472,7 @@ function Wc({
|
|
|
7472
7472
|
onMouseMove: y,
|
|
7473
7473
|
onMouseOut: b,
|
|
7474
7474
|
onTouchMove: _,
|
|
7475
|
-
onTouchEnd:
|
|
7475
|
+
onTouchEnd: w,
|
|
7476
7476
|
className: r,
|
|
7477
7477
|
style: {
|
|
7478
7478
|
position: "relative",
|