@dxos/shell 0.4.10-main.c42bfdb → 0.4.10-main.c5e8686
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/bundle/{index-Ba36DtoM.mjs → index-BhenUoML.mjs} +2 -2
- package/dist/bundle/{index-Ba36DtoM.mjs.map → index-BhenUoML.mjs.map} +1 -1
- package/dist/bundle/{index-CnChDHv2.mjs → index-DLLGn1Su.mjs} +932 -876
- package/dist/bundle/index-DLLGn1Su.mjs.map +1 -0
- package/dist/bundle/shell.mjs +2 -3
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +22 -22
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +33 -31
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/components/InvitationList/InvitationListItem.js +5 -5
- package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +5 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +3 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +3 -4
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +2 -2
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/package.json +21 -20
- package/src/components/InvitationList/InvitationListItem.tsx +5 -5
- package/src/panels/IdentityPanel/useAgentHandlers.ts +5 -1
- package/src/panels/SpacePanel/steps/SpaceManager.tsx +3 -1
- package/src/steps/InvitationManager.tsx +4 -4
- package/src/stories/Invitations.e2e-stories.tsx +3 -3
- package/dist/bundle/index-CnChDHv2.mjs.map +0 -1
|
@@ -1683,8 +1683,8 @@ var checkedLoadedFor = {}, Translator = function($) {
|
|
|
1683
1683
|
Ue.push(He[Ie]);
|
|
1684
1684
|
else
|
|
1685
1685
|
this.options.saveMissingTo === "all" ? Ue = this.languageUtils.toResolveHierarchy(K.lng || this.language) : Ue.push(K.lng || this.language);
|
|
1686
|
-
var Re = function(be, ye,
|
|
1687
|
-
var Ye = at &&
|
|
1686
|
+
var Re = function(be, ye, Me) {
|
|
1687
|
+
var Ye = at && Me !== ce ? Me : qe;
|
|
1688
1688
|
J.options.missingKeyHandler ? J.options.missingKeyHandler(be, re, ye, Ye, nt, K) : J.backendConnector && J.backendConnector.saveMissing && J.backendConnector.saveMissing(be, re, ye, Ye, nt, K), J.emit("missingKey", be, re, ye, ce);
|
|
1689
1689
|
};
|
|
1690
1690
|
this.options.saveMissing && (this.options.saveMissingPlurals && lt ? Ue.forEach(function(Te) {
|
|
@@ -6241,7 +6241,7 @@ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = "Popper", [$cf1ac5d9fe0e8206$var$cre
|
|
|
6241
6241
|
mt,
|
|
6242
6242
|
Re
|
|
6243
6243
|
]);
|
|
6244
|
-
const Te = (G = Ue.arrow) === null || G === void 0 ? void 0 : G.x, be = (K = Ue.arrow) === null || K === void 0 ? void 0 : K.y, ye = ((Y = Ue.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [
|
|
6244
|
+
const Te = (G = Ue.arrow) === null || G === void 0 ? void 0 : G.x, be = (K = Ue.arrow) === null || K === void 0 ? void 0 : K.y, ye = ((Y = Ue.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [Me, Ye] = useState();
|
|
6245
6245
|
return $9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
6246
6246
|
$e && Ye(window.getComputedStyle($e).zIndex);
|
|
6247
6247
|
}, [
|
|
@@ -6254,7 +6254,7 @@ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = "Popper", [$cf1ac5d9fe0e8206$var$cre
|
|
|
6254
6254
|
transform: mt ? qe.transform : "translate(0, -200%)",
|
|
6255
6255
|
// keep off the page when measuring
|
|
6256
6256
|
minWidth: "max-content",
|
|
6257
|
-
zIndex:
|
|
6257
|
+
zIndex: Me,
|
|
6258
6258
|
"--radix-popper-transform-origin": [
|
|
6259
6259
|
(J = Ue.transformOrigin) === null || J === void 0 ? void 0 : J.x,
|
|
6260
6260
|
(Z = Ue.transformOrigin) === null || Z === void 0 ? void 0 : Z.y
|
|
@@ -7658,8 +7658,8 @@ function requireReactJsxRuntime_development() {
|
|
|
7658
7658
|
{
|
|
7659
7659
|
var Et = le.ReactDebugCurrentFrame, Rt = Et.getStackAddendum();
|
|
7660
7660
|
Rt !== "" && (ot += "%s", dt = dt.concat([Rt]));
|
|
7661
|
-
var Bt = dt.map(function(
|
|
7662
|
-
return String(
|
|
7661
|
+
var Bt = dt.map(function(Mt) {
|
|
7662
|
+
return String(Mt);
|
|
7663
7663
|
});
|
|
7664
7664
|
Bt.unshift("Warning: " + ot), Function.prototype.apply.call(console[Ne], console, Bt);
|
|
7665
7665
|
}
|
|
@@ -7718,9 +7718,9 @@ function requireReactJsxRuntime_development() {
|
|
|
7718
7718
|
var Et = Ne.displayName || null;
|
|
7719
7719
|
return Et !== null ? Et : Be(Ne.type) || "Memo";
|
|
7720
7720
|
case ne: {
|
|
7721
|
-
var Rt = Ne, Bt = Rt._payload,
|
|
7721
|
+
var Rt = Ne, Bt = Rt._payload, Mt = Rt._init;
|
|
7722
7722
|
try {
|
|
7723
|
-
return Be(
|
|
7723
|
+
return Be(Mt(Bt));
|
|
7724
7724
|
} catch {
|
|
7725
7725
|
return null;
|
|
7726
7726
|
}
|
|
@@ -7825,27 +7825,27 @@ function requireReactJsxRuntime_development() {
|
|
|
7825
7825
|
Bt = Ue.current, Ue.current = null, nt();
|
|
7826
7826
|
try {
|
|
7827
7827
|
if (ot) {
|
|
7828
|
-
var
|
|
7828
|
+
var Mt = function() {
|
|
7829
7829
|
throw Error();
|
|
7830
7830
|
};
|
|
7831
|
-
if (Object.defineProperty(
|
|
7831
|
+
if (Object.defineProperty(Mt.prototype, "props", {
|
|
7832
7832
|
set: function() {
|
|
7833
7833
|
throw Error();
|
|
7834
7834
|
}
|
|
7835
7835
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
7836
7836
|
try {
|
|
7837
|
-
Reflect.construct(
|
|
7837
|
+
Reflect.construct(Mt, []);
|
|
7838
7838
|
} catch (dn) {
|
|
7839
7839
|
Et = dn;
|
|
7840
7840
|
}
|
|
7841
|
-
Reflect.construct(Ne, [],
|
|
7841
|
+
Reflect.construct(Ne, [], Mt);
|
|
7842
7842
|
} else {
|
|
7843
7843
|
try {
|
|
7844
|
-
|
|
7844
|
+
Mt.call();
|
|
7845
7845
|
} catch (dn) {
|
|
7846
7846
|
Et = dn;
|
|
7847
7847
|
}
|
|
7848
|
-
Ne.call(
|
|
7848
|
+
Ne.call(Mt.prototype);
|
|
7849
7849
|
}
|
|
7850
7850
|
} else {
|
|
7851
7851
|
try {
|
|
@@ -7880,7 +7880,7 @@ function requireReactJsxRuntime_development() {
|
|
|
7880
7880
|
var xn = Ne ? Ne.displayName || Ne.name : "", Yn = xn ? Ie(xn) : "";
|
|
7881
7881
|
return typeof Ne == "function" && Te.set(Ne, Yn), Yn;
|
|
7882
7882
|
}
|
|
7883
|
-
function
|
|
7883
|
+
function Me(Ne, ot, dt) {
|
|
7884
7884
|
return ye(Ne, !1);
|
|
7885
7885
|
}
|
|
7886
7886
|
function Ye(Ne) {
|
|
@@ -7903,7 +7903,7 @@ function requireReactJsxRuntime_development() {
|
|
|
7903
7903
|
if (typeof Ne == "object")
|
|
7904
7904
|
switch (Ne.$$typeof) {
|
|
7905
7905
|
case Z:
|
|
7906
|
-
return
|
|
7906
|
+
return Me(Ne.render);
|
|
7907
7907
|
case te:
|
|
7908
7908
|
return ct(Ne.type, ot, dt);
|
|
7909
7909
|
case ne: {
|
|
@@ -7927,19 +7927,19 @@ function requireReactJsxRuntime_development() {
|
|
|
7927
7927
|
function Ut(Ne, ot, dt, Et, Rt) {
|
|
7928
7928
|
{
|
|
7929
7929
|
var Bt = Function.call.bind(ut);
|
|
7930
|
-
for (var
|
|
7931
|
-
if (Bt(Ne,
|
|
7930
|
+
for (var Mt in Ne)
|
|
7931
|
+
if (Bt(Ne, Mt)) {
|
|
7932
7932
|
var Ot = void 0;
|
|
7933
7933
|
try {
|
|
7934
|
-
if (typeof Ne[
|
|
7935
|
-
var Zt = Error((Et || "React class") + ": " + dt + " type `" +
|
|
7934
|
+
if (typeof Ne[Mt] != "function") {
|
|
7935
|
+
var Zt = Error((Et || "React class") + ": " + dt + " type `" + Mt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Ne[Mt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
7936
7936
|
throw Zt.name = "Invariant Violation", Zt;
|
|
7937
7937
|
}
|
|
7938
|
-
Ot = Ne[
|
|
7938
|
+
Ot = Ne[Mt](ot, Mt, Et, dt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
7939
7939
|
} catch (Qt) {
|
|
7940
7940
|
Ot = Qt;
|
|
7941
7941
|
}
|
|
7942
|
-
Ot && !(Ot instanceof Error) && (it(Rt), ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Et || "React class", dt,
|
|
7942
|
+
Ot && !(Ot instanceof Error) && (it(Rt), ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Et || "React class", dt, Mt, typeof Ot), it(null)), Ot instanceof Error && !(Ot.message in wt) && (wt[Ot.message] = !0, it(Rt), ce("Failed %s type: %s", dt, Ot.message), it(null));
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
7945
|
}
|
|
@@ -8018,7 +8018,7 @@ function requireReactJsxRuntime_development() {
|
|
|
8018
8018
|
});
|
|
8019
8019
|
}
|
|
8020
8020
|
}
|
|
8021
|
-
var Pt = function(Ne, ot, dt, Et, Rt, Bt,
|
|
8021
|
+
var Pt = function(Ne, ot, dt, Et, Rt, Bt, Mt) {
|
|
8022
8022
|
var Ot = {
|
|
8023
8023
|
// This tag allows us to uniquely identify this as a React Element
|
|
8024
8024
|
$$typeof: I,
|
|
@@ -8026,7 +8026,7 @@ function requireReactJsxRuntime_development() {
|
|
|
8026
8026
|
type: Ne,
|
|
8027
8027
|
key: ot,
|
|
8028
8028
|
ref: dt,
|
|
8029
|
-
props:
|
|
8029
|
+
props: Mt,
|
|
8030
8030
|
// Record the component responsible for creating this element.
|
|
8031
8031
|
_owner: Bt
|
|
8032
8032
|
};
|
|
@@ -8049,20 +8049,20 @@ function requireReactJsxRuntime_development() {
|
|
|
8049
8049
|
};
|
|
8050
8050
|
function At(Ne, ot, dt, Et, Rt) {
|
|
8051
8051
|
{
|
|
8052
|
-
var Bt,
|
|
8052
|
+
var Bt, Mt = {}, Ot = null, Zt = null;
|
|
8053
8053
|
dt !== void 0 && (zt(dt), Ot = "" + dt), De(ot) && (zt(ot.key), Ot = "" + ot.key), Se(ot) && (Zt = ot.ref, _t(ot, Rt));
|
|
8054
8054
|
for (Bt in ot)
|
|
8055
|
-
ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (
|
|
8055
|
+
ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (Mt[Bt] = ot[Bt]);
|
|
8056
8056
|
if (Ne && Ne.defaultProps) {
|
|
8057
8057
|
var Qt = Ne.defaultProps;
|
|
8058
8058
|
for (Bt in Qt)
|
|
8059
|
-
|
|
8059
|
+
Mt[Bt] === void 0 && (Mt[Bt] = Qt[Bt]);
|
|
8060
8060
|
}
|
|
8061
8061
|
if (Ot || Zt) {
|
|
8062
8062
|
var Yt = typeof Ne == "function" ? Ne.displayName || Ne.name || "Unknown" : Ne;
|
|
8063
|
-
Ot && Dt(
|
|
8063
|
+
Ot && Dt(Mt, Yt), Zt && Tt(Mt, Yt);
|
|
8064
8064
|
}
|
|
8065
|
-
return Pt(Ne, Ot, Zt, Rt, Et, de.current,
|
|
8065
|
+
return Pt(Ne, Ot, Zt, Rt, Et, de.current, Mt);
|
|
8066
8066
|
}
|
|
8067
8067
|
}
|
|
8068
8068
|
var Sn = le.ReactCurrentOwner, bn = le.ReactDebugCurrentFrame;
|
|
@@ -8141,8 +8141,8 @@ Check the top-level render call using <` + dt + ">.");
|
|
|
8141
8141
|
else if (Ne) {
|
|
8142
8142
|
var Rt = fe(Ne);
|
|
8143
8143
|
if (typeof Rt == "function" && Rt !== Ne.entries)
|
|
8144
|
-
for (var Bt = Rt.call(Ne),
|
|
8145
|
-
Tn(
|
|
8144
|
+
for (var Bt = Rt.call(Ne), Mt; !(Mt = Bt.next()).done; )
|
|
8145
|
+
Tn(Mt.value) && Nn(Mt.value, ot);
|
|
8146
8146
|
}
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
@@ -8185,8 +8185,8 @@ Check the top-level render call using <` + dt + ">.");
|
|
|
8185
8185
|
}
|
|
8186
8186
|
function _n(Ne, ot, dt, Et, Rt, Bt) {
|
|
8187
8187
|
{
|
|
8188
|
-
var
|
|
8189
|
-
if (!
|
|
8188
|
+
var Mt = Ce(Ne);
|
|
8189
|
+
if (!Mt) {
|
|
8190
8190
|
var Ot = "";
|
|
8191
8191
|
(Ne === void 0 || typeof Ne == "object" && Ne !== null && Object.keys(Ne).length === 0) && (Ot += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
8192
8192
|
var Zt = Pn(Rt);
|
|
@@ -8197,7 +8197,7 @@ Check the top-level render call using <` + dt + ">.");
|
|
|
8197
8197
|
var Yt = At(Ne, ot, dt, Rt, Bt);
|
|
8198
8198
|
if (Yt == null)
|
|
8199
8199
|
return Yt;
|
|
8200
|
-
if (
|
|
8200
|
+
if (Mt) {
|
|
8201
8201
|
var sn = ot.children;
|
|
8202
8202
|
if (sn !== void 0)
|
|
8203
8203
|
if (Et)
|
|
@@ -10836,10 +10836,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10836
10836
|
return ae(it, Q);
|
|
10837
10837
|
}
|
|
10838
10838
|
$.isNumberObject = ye;
|
|
10839
|
-
function
|
|
10839
|
+
function Me(it) {
|
|
10840
10840
|
return ae(it, ee);
|
|
10841
10841
|
}
|
|
10842
|
-
$.isStringObject =
|
|
10842
|
+
$.isStringObject = Me;
|
|
10843
10843
|
function Ye(it) {
|
|
10844
10844
|
return ae(it, te);
|
|
10845
10845
|
}
|
|
@@ -10853,7 +10853,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10853
10853
|
}
|
|
10854
10854
|
$.isSymbolObject = ut;
|
|
10855
10855
|
function wt(it) {
|
|
10856
|
-
return ye(it) ||
|
|
10856
|
+
return ye(it) || Me(it) || Ye(it) || ct(it) || ut(it);
|
|
10857
10857
|
}
|
|
10858
10858
|
$.isBoxedPrimitive = wt;
|
|
10859
10859
|
function St(it) {
|
|
@@ -11035,8 +11035,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
11035
11035
|
}
|
|
11036
11036
|
var Te = "", be = !1, ye = ["{", "}"];
|
|
11037
11037
|
if (fe(qe) && (be = !0, ye = ["[", "]"]), xe(qe)) {
|
|
11038
|
-
var
|
|
11039
|
-
Te = " [Function" +
|
|
11038
|
+
var Me = qe.name ? ": " + qe.name : "";
|
|
11039
|
+
Te = " [Function" + Me + "]";
|
|
11040
11040
|
}
|
|
11041
11041
|
if (_e(qe) && (Te = " " + RegExp.prototype.toString.call(qe)), Ce(qe) && (Te = " " + Date.prototype.toUTCString.call(qe)), Ee(qe) && (Te = " " + ne(qe)), He.length === 0 && (!be || qe.length == 0))
|
|
11042
11042
|
return ye[0] + Te + ye[1];
|
|
@@ -11998,13 +11998,13 @@ var require_base64_js = __commonJS({
|
|
|
11998
11998
|
}, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
|
|
11999
11999
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] * 16777216 + (this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3]);
|
|
12000
12000
|
}, J.prototype.readBigUInt64LE = Ct(function(ie) {
|
|
12001
|
-
ie = ie >>> 0,
|
|
12001
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
12002
12002
|
const oe = this[ie], pe = this[ie + 7];
|
|
12003
12003
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12004
12004
|
const ke = oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24, Se = this[++ie] + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + pe * 2 ** 24;
|
|
12005
12005
|
return BigInt(ke) + (BigInt(Se) << BigInt(32));
|
|
12006
12006
|
}), J.prototype.readBigUInt64BE = Ct(function(ie) {
|
|
12007
|
-
ie = ie >>> 0,
|
|
12007
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
12008
12008
|
const oe = this[ie], pe = this[ie + 7];
|
|
12009
12009
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12010
12010
|
const ke = oe * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + this[++ie], Se = this[++ie] * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + pe;
|
|
@@ -12036,13 +12036,13 @@ var require_base64_js = __commonJS({
|
|
|
12036
12036
|
}, J.prototype.readInt32BE = function(ie, oe) {
|
|
12037
12037
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] << 24 | this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3];
|
|
12038
12038
|
}, J.prototype.readBigInt64LE = Ct(function(ie) {
|
|
12039
|
-
ie = ie >>> 0,
|
|
12039
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
12040
12040
|
const oe = this[ie], pe = this[ie + 7];
|
|
12041
12041
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12042
12042
|
const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
|
|
12043
12043
|
return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
|
|
12044
12044
|
}), J.prototype.readBigInt64BE = Ct(function(ie) {
|
|
12045
|
-
ie = ie >>> 0,
|
|
12045
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
12046
12046
|
const oe = this[ie], pe = this[ie + 7];
|
|
12047
12047
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12048
12048
|
const ke = (oe << 24) + // Overflow
|
|
@@ -12268,7 +12268,7 @@ var require_base64_js = __commonJS({
|
|
|
12268
12268
|
return `${de.slice(0, oe)}${ie}`;
|
|
12269
12269
|
}
|
|
12270
12270
|
function be(de, ie, oe) {
|
|
12271
|
-
|
|
12271
|
+
Me(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
|
|
12272
12272
|
}
|
|
12273
12273
|
function ye(de, ie, oe, pe, ke, Se) {
|
|
12274
12274
|
if (de > oe || de < ie) {
|
|
@@ -12278,12 +12278,12 @@ var require_base64_js = __commonJS({
|
|
|
12278
12278
|
}
|
|
12279
12279
|
be(pe, ke, Se);
|
|
12280
12280
|
}
|
|
12281
|
-
function
|
|
12281
|
+
function Me(de, ie) {
|
|
12282
12282
|
if (typeof de != "number")
|
|
12283
12283
|
throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
|
|
12284
12284
|
}
|
|
12285
12285
|
function Ye(de, ie, oe) {
|
|
12286
|
-
throw Math.floor(de) !== de ? (
|
|
12286
|
+
throw Math.floor(de) !== de ? (Me(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
|
|
12287
12287
|
oe || "offset",
|
|
12288
12288
|
`>= ${oe ? 1 : 0} and <= ${ie}`,
|
|
12289
12289
|
de
|
|
@@ -12435,35 +12435,35 @@ lodash_defaultsdeep.exports;
|
|
|
12435
12435
|
} catch {
|
|
12436
12436
|
}
|
|
12437
12437
|
}(), ye = be && be.isTypedArray;
|
|
12438
|
-
function
|
|
12438
|
+
function Me(we, Le, Ze) {
|
|
12439
12439
|
switch (Ze.length) {
|
|
12440
12440
|
case 0:
|
|
12441
|
-
return we.call(
|
|
12441
|
+
return we.call(Le);
|
|
12442
12442
|
case 1:
|
|
12443
|
-
return we.call(
|
|
12443
|
+
return we.call(Le, Ze[0]);
|
|
12444
12444
|
case 2:
|
|
12445
|
-
return we.call(
|
|
12445
|
+
return we.call(Le, Ze[0], Ze[1]);
|
|
12446
12446
|
case 3:
|
|
12447
|
-
return we.call(
|
|
12447
|
+
return we.call(Le, Ze[0], Ze[1], Ze[2]);
|
|
12448
12448
|
}
|
|
12449
|
-
return we.apply(
|
|
12449
|
+
return we.apply(Le, Ze);
|
|
12450
12450
|
}
|
|
12451
|
-
function Ye(we,
|
|
12451
|
+
function Ye(we, Le) {
|
|
12452
12452
|
for (var Ze = -1, $t = Array(we); ++Ze < we; )
|
|
12453
|
-
$t[Ze] =
|
|
12453
|
+
$t[Ze] = Le(Ze);
|
|
12454
12454
|
return $t;
|
|
12455
12455
|
}
|
|
12456
12456
|
function ct(we) {
|
|
12457
|
-
return function(
|
|
12458
|
-
return we(
|
|
12457
|
+
return function(Le) {
|
|
12458
|
+
return we(Le);
|
|
12459
12459
|
};
|
|
12460
12460
|
}
|
|
12461
|
-
function ut(we,
|
|
12462
|
-
return we == null ? void 0 : we[
|
|
12461
|
+
function ut(we, Le) {
|
|
12462
|
+
return we == null ? void 0 : we[Le];
|
|
12463
12463
|
}
|
|
12464
|
-
function wt(we,
|
|
12464
|
+
function wt(we, Le) {
|
|
12465
12465
|
return function(Ze) {
|
|
12466
|
-
return we(
|
|
12466
|
+
return we(Le(Ze));
|
|
12467
12467
|
};
|
|
12468
12468
|
}
|
|
12469
12469
|
var St = Array.prototype, it = Function.prototype, Ut = Object.prototype, Kt = Ue["__core-js_shared__"], It = it.toString, Ht = Ut.hasOwnProperty, rn = function() {
|
|
@@ -12480,20 +12480,20 @@ lodash_defaultsdeep.exports;
|
|
|
12480
12480
|
}(), At = ie ? ie.isBuffer : void 0, Sn = Math.max, bn = Date.now, vn = kt(Ue, "Map"), mn = kt(Object, "create"), Tn = /* @__PURE__ */ function() {
|
|
12481
12481
|
function we() {
|
|
12482
12482
|
}
|
|
12483
|
-
return function(
|
|
12484
|
-
if (!en(
|
|
12483
|
+
return function(Le) {
|
|
12484
|
+
if (!en(Le))
|
|
12485
12485
|
return {};
|
|
12486
12486
|
if (De)
|
|
12487
|
-
return De(
|
|
12488
|
-
we.prototype =
|
|
12487
|
+
return De(Le);
|
|
12488
|
+
we.prototype = Le;
|
|
12489
12489
|
var Ze = new we();
|
|
12490
12490
|
return we.prototype = void 0, Ze;
|
|
12491
12491
|
};
|
|
12492
12492
|
}();
|
|
12493
12493
|
function un(we) {
|
|
12494
|
-
var
|
|
12495
|
-
for (this.clear(); ++
|
|
12496
|
-
var $t = we[
|
|
12494
|
+
var Le = -1, Ze = we == null ? 0 : we.length;
|
|
12495
|
+
for (this.clear(); ++Le < Ze; ) {
|
|
12496
|
+
var $t = we[Le];
|
|
12497
12497
|
this.set($t[0], $t[1]);
|
|
12498
12498
|
}
|
|
12499
12499
|
}
|
|
@@ -12501,30 +12501,30 @@ lodash_defaultsdeep.exports;
|
|
|
12501
12501
|
this.__data__ = mn ? mn(null) : {}, this.size = 0;
|
|
12502
12502
|
}
|
|
12503
12503
|
function $n(we) {
|
|
12504
|
-
var
|
|
12505
|
-
return this.size -=
|
|
12504
|
+
var Le = this.has(we) && delete this.__data__[we];
|
|
12505
|
+
return this.size -= Le ? 1 : 0, Le;
|
|
12506
12506
|
}
|
|
12507
12507
|
function Vn(we) {
|
|
12508
|
-
var
|
|
12508
|
+
var Le = this.__data__;
|
|
12509
12509
|
if (mn) {
|
|
12510
|
-
var Ze =
|
|
12510
|
+
var Ze = Le[we];
|
|
12511
12511
|
return Ze === q ? void 0 : Ze;
|
|
12512
12512
|
}
|
|
12513
|
-
return Ht.call(
|
|
12513
|
+
return Ht.call(Le, we) ? Le[we] : void 0;
|
|
12514
12514
|
}
|
|
12515
12515
|
function Nn(we) {
|
|
12516
|
-
var
|
|
12517
|
-
return mn ?
|
|
12516
|
+
var Le = this.__data__;
|
|
12517
|
+
return mn ? Le[we] !== void 0 : Ht.call(Le, we);
|
|
12518
12518
|
}
|
|
12519
|
-
function Fn(we,
|
|
12519
|
+
function Fn(we, Le) {
|
|
12520
12520
|
var Ze = this.__data__;
|
|
12521
|
-
return this.size += this.has(we) ? 0 : 1, Ze[we] = mn &&
|
|
12521
|
+
return this.size += this.has(we) ? 0 : 1, Ze[we] = mn && Le === void 0 ? q : Le, this;
|
|
12522
12522
|
}
|
|
12523
12523
|
un.prototype.clear = Pn, un.prototype.delete = $n, un.prototype.get = Vn, un.prototype.has = Nn, un.prototype.set = Fn;
|
|
12524
12524
|
function ln(we) {
|
|
12525
|
-
var
|
|
12526
|
-
for (this.clear(); ++
|
|
12527
|
-
var $t = we[
|
|
12525
|
+
var Le = -1, Ze = we == null ? 0 : we.length;
|
|
12526
|
+
for (this.clear(); ++Le < Ze; ) {
|
|
12527
|
+
var $t = we[Le];
|
|
12528
12528
|
this.set($t[0], $t[1]);
|
|
12529
12529
|
}
|
|
12530
12530
|
}
|
|
@@ -12532,28 +12532,28 @@ lodash_defaultsdeep.exports;
|
|
|
12532
12532
|
this.__data__ = [], this.size = 0;
|
|
12533
12533
|
}
|
|
12534
12534
|
function _n(we) {
|
|
12535
|
-
var
|
|
12535
|
+
var Le = this.__data__, Ze = dn(Le, we);
|
|
12536
12536
|
if (Ze < 0)
|
|
12537
12537
|
return !1;
|
|
12538
|
-
var $t =
|
|
12539
|
-
return Ze == $t ?
|
|
12538
|
+
var $t = Le.length - 1;
|
|
12539
|
+
return Ze == $t ? Le.pop() : Dt.call(Le, Ze, 1), --this.size, !0;
|
|
12540
12540
|
}
|
|
12541
12541
|
function Kn(we) {
|
|
12542
|
-
var
|
|
12543
|
-
return Ze < 0 ? void 0 :
|
|
12542
|
+
var Le = this.__data__, Ze = dn(Le, we);
|
|
12543
|
+
return Ze < 0 ? void 0 : Le[Ze][1];
|
|
12544
12544
|
}
|
|
12545
12545
|
function We(we) {
|
|
12546
12546
|
return dn(this.__data__, we) > -1;
|
|
12547
12547
|
}
|
|
12548
|
-
function vt(we,
|
|
12548
|
+
function vt(we, Le) {
|
|
12549
12549
|
var Ze = this.__data__, $t = dn(Ze, we);
|
|
12550
|
-
return $t < 0 ? (++this.size, Ze.push([we,
|
|
12550
|
+
return $t < 0 ? (++this.size, Ze.push([we, Le])) : Ze[$t][1] = Le, this;
|
|
12551
12551
|
}
|
|
12552
12552
|
ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
|
|
12553
12553
|
function xt(we) {
|
|
12554
|
-
var
|
|
12555
|
-
for (this.clear(); ++
|
|
12556
|
-
var $t = we[
|
|
12554
|
+
var Le = -1, Ze = we == null ? 0 : we.length;
|
|
12555
|
+
for (this.clear(); ++Le < Ze; ) {
|
|
12556
|
+
var $t = we[Le];
|
|
12557
12557
|
this.set($t[0], $t[1]);
|
|
12558
12558
|
}
|
|
12559
12559
|
}
|
|
@@ -12565,8 +12565,8 @@ lodash_defaultsdeep.exports;
|
|
|
12565
12565
|
};
|
|
12566
12566
|
}
|
|
12567
12567
|
function ot(we) {
|
|
12568
|
-
var
|
|
12569
|
-
return this.size -=
|
|
12568
|
+
var Le = bt(this, we).delete(we);
|
|
12569
|
+
return this.size -= Le ? 1 : 0, Le;
|
|
12570
12570
|
}
|
|
12571
12571
|
function dt(we) {
|
|
12572
12572
|
return bt(this, we).get(we);
|
|
@@ -12574,21 +12574,21 @@ lodash_defaultsdeep.exports;
|
|
|
12574
12574
|
function Et(we) {
|
|
12575
12575
|
return bt(this, we).has(we);
|
|
12576
12576
|
}
|
|
12577
|
-
function Rt(we,
|
|
12577
|
+
function Rt(we, Le) {
|
|
12578
12578
|
var Ze = bt(this, we), $t = Ze.size;
|
|
12579
|
-
return Ze.set(we,
|
|
12579
|
+
return Ze.set(we, Le), this.size += Ze.size == $t ? 0 : 1, this;
|
|
12580
12580
|
}
|
|
12581
12581
|
xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
|
|
12582
12582
|
function Bt(we) {
|
|
12583
|
-
var
|
|
12584
|
-
this.size =
|
|
12583
|
+
var Le = this.__data__ = new ln(we);
|
|
12584
|
+
this.size = Le.size;
|
|
12585
12585
|
}
|
|
12586
|
-
function
|
|
12586
|
+
function Mt() {
|
|
12587
12587
|
this.__data__ = new ln(), this.size = 0;
|
|
12588
12588
|
}
|
|
12589
12589
|
function Ot(we) {
|
|
12590
|
-
var
|
|
12591
|
-
return this.size =
|
|
12590
|
+
var Le = this.__data__, Ze = Le.delete(we);
|
|
12591
|
+
return this.size = Le.size, Ze;
|
|
12592
12592
|
}
|
|
12593
12593
|
function Zt(we) {
|
|
12594
12594
|
return this.__data__.get(we);
|
|
@@ -12596,51 +12596,51 @@ lodash_defaultsdeep.exports;
|
|
|
12596
12596
|
function Qt(we) {
|
|
12597
12597
|
return this.__data__.has(we);
|
|
12598
12598
|
}
|
|
12599
|
-
function Yt(we,
|
|
12599
|
+
function Yt(we, Le) {
|
|
12600
12600
|
var Ze = this.__data__;
|
|
12601
12601
|
if (Ze instanceof ln) {
|
|
12602
12602
|
var $t = Ze.__data__;
|
|
12603
12603
|
if (!vn || $t.length < U - 1)
|
|
12604
|
-
return $t.push([we,
|
|
12604
|
+
return $t.push([we, Le]), this.size = ++Ze.size, this;
|
|
12605
12605
|
Ze = this.__data__ = new xt($t);
|
|
12606
12606
|
}
|
|
12607
|
-
return Ze.set(we,
|
|
12607
|
+
return Ze.set(we, Le), this.size = Ze.size, this;
|
|
12608
12608
|
}
|
|
12609
|
-
Bt.prototype.clear =
|
|
12610
|
-
function sn(we,
|
|
12609
|
+
Bt.prototype.clear = Mt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
|
|
12610
|
+
function sn(we, Le) {
|
|
12611
12611
|
var Ze = yt(we), $t = !Ze && et(we), jt = !Ze && !$t && qt(we), Ft = !Ze && !$t && !jt && kn(we), Vt = Ze || $t || jt || Ft, Gt = Vt ? Ye(we.length, String) : [], Xt = Gt.length;
|
|
12612
12612
|
for (var En in we)
|
|
12613
|
-
(
|
|
12613
|
+
(Le || Ht.call(we, En)) && !(Vt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
12614
12614
|
(En == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
12615
12615
|
jt && (En == "offset" || En == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
12616
12616
|
Ft && (En == "buffer" || En == "byteLength" || En == "byteOffset") || // Skip index properties.
|
|
12617
12617
|
Jt(En, Xt))) && Gt.push(En);
|
|
12618
12618
|
return Gt;
|
|
12619
12619
|
}
|
|
12620
|
-
function xn(we,
|
|
12621
|
-
(Ze !== void 0 && !Fe(we[
|
|
12620
|
+
function xn(we, Le, Ze) {
|
|
12621
|
+
(Ze !== void 0 && !Fe(we[Le], Ze) || Ze === void 0 && !(Le in we)) && Bn(we, Le, Ze);
|
|
12622
12622
|
}
|
|
12623
|
-
function Yn(we,
|
|
12624
|
-
var $t = we[
|
|
12625
|
-
(!(Ht.call(we,
|
|
12623
|
+
function Yn(we, Le, Ze) {
|
|
12624
|
+
var $t = we[Le];
|
|
12625
|
+
(!(Ht.call(we, Le) && Fe($t, Ze)) || Ze === void 0 && !(Le in we)) && Bn(we, Le, Ze);
|
|
12626
12626
|
}
|
|
12627
|
-
function dn(we,
|
|
12627
|
+
function dn(we, Le) {
|
|
12628
12628
|
for (var Ze = we.length; Ze--; )
|
|
12629
|
-
if (Fe(we[Ze][0],
|
|
12629
|
+
if (Fe(we[Ze][0], Le))
|
|
12630
12630
|
return Ze;
|
|
12631
12631
|
return -1;
|
|
12632
12632
|
}
|
|
12633
|
-
function Bn(we,
|
|
12634
|
-
|
|
12633
|
+
function Bn(we, Le, Ze) {
|
|
12634
|
+
Le == "__proto__" && Pt ? Pt(we, Le, {
|
|
12635
12635
|
configurable: !0,
|
|
12636
12636
|
enumerable: !0,
|
|
12637
12637
|
value: Ze,
|
|
12638
12638
|
writable: !0
|
|
12639
|
-
}) : we[
|
|
12639
|
+
}) : we[Le] = Ze;
|
|
12640
12640
|
}
|
|
12641
12641
|
var jn = pt();
|
|
12642
12642
|
function An(we) {
|
|
12643
|
-
return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ?
|
|
12643
|
+
return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ? Lt(we) : Zn(we);
|
|
12644
12644
|
}
|
|
12645
12645
|
function Un(we) {
|
|
12646
12646
|
return hn(we) && An(we) == J;
|
|
@@ -12648,8 +12648,8 @@ lodash_defaultsdeep.exports;
|
|
|
12648
12648
|
function Xn(we) {
|
|
12649
12649
|
if (!en(we) || cn(we))
|
|
12650
12650
|
return !1;
|
|
12651
|
-
var
|
|
12652
|
-
return
|
|
12651
|
+
var Le = pn(we) ? de : tt;
|
|
12652
|
+
return Le.test(qn(we));
|
|
12653
12653
|
}
|
|
12654
12654
|
function nr(we) {
|
|
12655
12655
|
return hn(we) && an(we.length) && !!qe[An(we)];
|
|
@@ -12657,173 +12657,173 @@ lodash_defaultsdeep.exports;
|
|
|
12657
12657
|
function rr(we) {
|
|
12658
12658
|
if (!en(we))
|
|
12659
12659
|
return Hn(we);
|
|
12660
|
-
var
|
|
12660
|
+
var Le = wn(we), Ze = [];
|
|
12661
12661
|
for (var $t in we)
|
|
12662
|
-
$t == "constructor" && (
|
|
12662
|
+
$t == "constructor" && (Le || !Ht.call(we, $t)) || Ze.push($t);
|
|
12663
12663
|
return Ze;
|
|
12664
12664
|
}
|
|
12665
|
-
function zn(we,
|
|
12666
|
-
we !==
|
|
12665
|
+
function zn(we, Le, Ze, $t, jt) {
|
|
12666
|
+
we !== Le && jn(Le, function(Ft, Vt) {
|
|
12667
12667
|
if (jt || (jt = new Bt()), en(Ft))
|
|
12668
|
-
ir(we,
|
|
12668
|
+
ir(we, Le, Vt, Ze, zn, $t, jt);
|
|
12669
12669
|
else {
|
|
12670
|
-
var Gt = $t ? $t(
|
|
12670
|
+
var Gt = $t ? $t(Ln(we, Vt), Ft, Vt + "", we, Le, jt) : void 0;
|
|
12671
12671
|
Gt === void 0 && (Gt = Ft), xn(we, Vt, Gt);
|
|
12672
12672
|
}
|
|
12673
12673
|
}, Cn);
|
|
12674
12674
|
}
|
|
12675
|
-
function ir(we,
|
|
12676
|
-
var Gt =
|
|
12675
|
+
function ir(we, Le, Ze, $t, jt, Ft, Vt) {
|
|
12676
|
+
var Gt = Ln(we, Ze), Xt = Ln(Le, Ze), En = Vt.get(Xt);
|
|
12677
12677
|
if (En) {
|
|
12678
12678
|
xn(we, Ze, En);
|
|
12679
12679
|
return;
|
|
12680
12680
|
}
|
|
12681
|
-
var Rn = Ft ? Ft(Gt, Xt, Ze + "", we,
|
|
12681
|
+
var Rn = Ft ? Ft(Gt, Xt, Ze + "", we, Le, Vt) : void 0, er = Rn === void 0;
|
|
12682
12682
|
if (er) {
|
|
12683
12683
|
var cr = yt(Xt), hr = !cr && qt(Xt), mr = !cr && !hr && kn(Xt);
|
|
12684
12684
|
Rn = Xt, cr || hr || mr ? yt(Gt) ? Rn = Gt : nn(Gt) ? Rn = Qe(Gt) : hr ? (er = !1, Rn = Ve(Xt, !0)) : mr ? (er = !1, Rn = Je(Xt, !0)) : Rn = [] : yn(Xt) || et(Xt) ? (Rn = Gt, et(Gt) ? Rn = gn(Gt) : (!en(Gt) || pn(Gt)) && (Rn = Wt(Xt))) : er = !1;
|
|
12685
12685
|
}
|
|
12686
12686
|
er && (Vt.set(Xt, Rn), jt(Rn, Xt, $t, Ft, Vt), Vt.delete(Xt)), xn(we, Ze, Rn);
|
|
12687
12687
|
}
|
|
12688
|
-
function tr(we,
|
|
12689
|
-
return sr(Wn(we,
|
|
12688
|
+
function tr(we, Le) {
|
|
12689
|
+
return sr(Wn(we, Le, Pe), we + "");
|
|
12690
12690
|
}
|
|
12691
|
-
var Ae = Pt ? function(we,
|
|
12691
|
+
var Ae = Pt ? function(we, Le) {
|
|
12692
12692
|
return Pt(we, "toString", {
|
|
12693
12693
|
configurable: !0,
|
|
12694
12694
|
enumerable: !1,
|
|
12695
|
-
value: Dn(
|
|
12695
|
+
value: Dn(Le),
|
|
12696
12696
|
writable: !0
|
|
12697
12697
|
});
|
|
12698
12698
|
} : Pe;
|
|
12699
|
-
function Ve(we,
|
|
12700
|
-
if (
|
|
12699
|
+
function Ve(we, Le) {
|
|
12700
|
+
if (Le)
|
|
12701
12701
|
return we.slice();
|
|
12702
12702
|
var Ze = we.length, $t = ke ? ke(Ze) : new we.constructor(Ze);
|
|
12703
12703
|
return we.copy($t), $t;
|
|
12704
12704
|
}
|
|
12705
12705
|
function Oe(we) {
|
|
12706
|
-
var
|
|
12707
|
-
return new pe(
|
|
12706
|
+
var Le = new we.constructor(we.byteLength);
|
|
12707
|
+
return new pe(Le).set(new pe(we)), Le;
|
|
12708
12708
|
}
|
|
12709
|
-
function Je(we,
|
|
12710
|
-
var Ze =
|
|
12709
|
+
function Je(we, Le) {
|
|
12710
|
+
var Ze = Le ? Oe(we.buffer) : we.buffer;
|
|
12711
12711
|
return new we.constructor(Ze, we.byteOffset, we.length);
|
|
12712
12712
|
}
|
|
12713
|
-
function Qe(we,
|
|
12713
|
+
function Qe(we, Le) {
|
|
12714
12714
|
var Ze = -1, $t = we.length;
|
|
12715
|
-
for (
|
|
12716
|
-
|
|
12717
|
-
return
|
|
12715
|
+
for (Le || (Le = Array($t)); ++Ze < $t; )
|
|
12716
|
+
Le[Ze] = we[Ze];
|
|
12717
|
+
return Le;
|
|
12718
12718
|
}
|
|
12719
|
-
function Ke(we,
|
|
12719
|
+
function Ke(we, Le, Ze, $t) {
|
|
12720
12720
|
var jt = !Ze;
|
|
12721
12721
|
Ze || (Ze = {});
|
|
12722
|
-
for (var Ft = -1, Vt =
|
|
12723
|
-
var Gt =
|
|
12722
|
+
for (var Ft = -1, Vt = Le.length; ++Ft < Vt; ) {
|
|
12723
|
+
var Gt = Le[Ft], Xt = $t ? $t(Ze[Gt], we[Gt], Gt, Ze, we) : void 0;
|
|
12724
12724
|
Xt === void 0 && (Xt = we[Gt]), jt ? Bn(Ze, Gt, Xt) : Yn(Ze, Gt, Xt);
|
|
12725
12725
|
}
|
|
12726
12726
|
return Ze;
|
|
12727
12727
|
}
|
|
12728
12728
|
function ft(we) {
|
|
12729
|
-
return tr(function(
|
|
12729
|
+
return tr(function(Le, Ze) {
|
|
12730
12730
|
var $t = -1, jt = Ze.length, Ft = jt > 1 ? Ze[jt - 1] : void 0, Vt = jt > 2 ? Ze[2] : void 0;
|
|
12731
|
-
for (Ft = we.length > 3 && typeof Ft == "function" ? (jt--, Ft) : void 0, Vt && tn(Ze[0], Ze[1], Vt) && (Ft = jt < 3 ? void 0 : Ft, jt = 1),
|
|
12731
|
+
for (Ft = we.length > 3 && typeof Ft == "function" ? (jt--, Ft) : void 0, Vt && tn(Ze[0], Ze[1], Vt) && (Ft = jt < 3 ? void 0 : Ft, jt = 1), Le = Object(Le); ++$t < jt; ) {
|
|
12732
12732
|
var Gt = Ze[$t];
|
|
12733
|
-
Gt && we(
|
|
12733
|
+
Gt && we(Le, Gt, $t, Ft);
|
|
12734
12734
|
}
|
|
12735
|
-
return
|
|
12735
|
+
return Le;
|
|
12736
12736
|
});
|
|
12737
12737
|
}
|
|
12738
12738
|
function pt(we) {
|
|
12739
|
-
return function(
|
|
12740
|
-
for (var jt = -1, Ft = Object(
|
|
12739
|
+
return function(Le, Ze, $t) {
|
|
12740
|
+
for (var jt = -1, Ft = Object(Le), Vt = $t(Le), Gt = Vt.length; Gt--; ) {
|
|
12741
12741
|
var Xt = Vt[we ? Gt : ++jt];
|
|
12742
12742
|
if (Ze(Ft[Xt], Xt, Ft) === !1)
|
|
12743
12743
|
break;
|
|
12744
12744
|
}
|
|
12745
|
-
return
|
|
12745
|
+
return Le;
|
|
12746
12746
|
};
|
|
12747
12747
|
}
|
|
12748
|
-
function gt(we,
|
|
12749
|
-
return en(we) && en(
|
|
12748
|
+
function gt(we, Le, Ze, $t, jt, Ft) {
|
|
12749
|
+
return en(we) && en(Le) && (Ft.set(Le, we), zn(we, Le, void 0, gt, Ft), Ft.delete(Le)), we;
|
|
12750
12750
|
}
|
|
12751
|
-
function bt(we,
|
|
12751
|
+
function bt(we, Le) {
|
|
12752
12752
|
var Ze = we.__data__;
|
|
12753
|
-
return fn(
|
|
12753
|
+
return fn(Le) ? Ze[typeof Le == "string" ? "string" : "hash"] : Ze.map;
|
|
12754
12754
|
}
|
|
12755
|
-
function kt(we,
|
|
12756
|
-
var Ze = ut(we,
|
|
12755
|
+
function kt(we, Le) {
|
|
12756
|
+
var Ze = ut(we, Le);
|
|
12757
12757
|
return Xn(Ze) ? Ze : void 0;
|
|
12758
12758
|
}
|
|
12759
|
-
function
|
|
12760
|
-
var
|
|
12759
|
+
function Lt(we) {
|
|
12760
|
+
var Le = Ht.call(we, Tt), Ze = we[Tt];
|
|
12761
12761
|
try {
|
|
12762
12762
|
we[Tt] = void 0;
|
|
12763
12763
|
var $t = !0;
|
|
12764
12764
|
} catch {
|
|
12765
12765
|
}
|
|
12766
12766
|
var jt = Ct.call(we);
|
|
12767
|
-
return $t && (
|
|
12767
|
+
return $t && (Le ? we[Tt] = Ze : delete we[Tt]), jt;
|
|
12768
12768
|
}
|
|
12769
12769
|
function Wt(we) {
|
|
12770
12770
|
return typeof we.constructor == "function" && !wn(we) ? Tn(Se(we)) : {};
|
|
12771
12771
|
}
|
|
12772
|
-
function Jt(we,
|
|
12772
|
+
function Jt(we, Le) {
|
|
12773
12773
|
var Ze = typeof we;
|
|
12774
|
-
return
|
|
12774
|
+
return Le = Le ?? Y, !!Le && (Ze == "number" || Ze != "symbol" && ze.test(we)) && we > -1 && we % 1 == 0 && we < Le;
|
|
12775
12775
|
}
|
|
12776
|
-
function tn(we,
|
|
12776
|
+
function tn(we, Le, Ze) {
|
|
12777
12777
|
if (!en(Ze))
|
|
12778
12778
|
return !1;
|
|
12779
|
-
var $t = typeof
|
|
12780
|
-
return ($t == "number" ? Nt(Ze) && Jt(
|
|
12779
|
+
var $t = typeof Le;
|
|
12780
|
+
return ($t == "number" ? Nt(Ze) && Jt(Le, Ze.length) : $t == "string" && Le in Ze) ? Fe(Ze[Le], we) : !1;
|
|
12781
12781
|
}
|
|
12782
12782
|
function fn(we) {
|
|
12783
|
-
var
|
|
12784
|
-
return
|
|
12783
|
+
var Le = typeof we;
|
|
12784
|
+
return Le == "string" || Le == "number" || Le == "symbol" || Le == "boolean" ? we !== "__proto__" : we === null;
|
|
12785
12785
|
}
|
|
12786
12786
|
function cn(we) {
|
|
12787
12787
|
return !!rn && rn in we;
|
|
12788
12788
|
}
|
|
12789
12789
|
function wn(we) {
|
|
12790
|
-
var
|
|
12790
|
+
var Le = we && we.constructor, Ze = typeof Le == "function" && Le.prototype || Ut;
|
|
12791
12791
|
return we === Ze;
|
|
12792
12792
|
}
|
|
12793
12793
|
function Hn(we) {
|
|
12794
|
-
var
|
|
12794
|
+
var Le = [];
|
|
12795
12795
|
if (we != null)
|
|
12796
12796
|
for (var Ze in Object(we))
|
|
12797
|
-
|
|
12798
|
-
return
|
|
12797
|
+
Le.push(Ze);
|
|
12798
|
+
return Le;
|
|
12799
12799
|
}
|
|
12800
12800
|
function Zn(we) {
|
|
12801
12801
|
return Ct.call(we);
|
|
12802
12802
|
}
|
|
12803
|
-
function Wn(we,
|
|
12804
|
-
return
|
|
12805
|
-
for (var $t = arguments, jt = -1, Ft = Sn($t.length -
|
|
12806
|
-
Vt[jt] = $t[
|
|
12803
|
+
function Wn(we, Le, Ze) {
|
|
12804
|
+
return Le = Sn(Le === void 0 ? we.length - 1 : Le, 0), function() {
|
|
12805
|
+
for (var $t = arguments, jt = -1, Ft = Sn($t.length - Le, 0), Vt = Array(Ft); ++jt < Ft; )
|
|
12806
|
+
Vt[jt] = $t[Le + jt];
|
|
12807
12807
|
jt = -1;
|
|
12808
|
-
for (var Gt = Array(
|
|
12808
|
+
for (var Gt = Array(Le + 1); ++jt < Le; )
|
|
12809
12809
|
Gt[jt] = $t[jt];
|
|
12810
|
-
return Gt[
|
|
12810
|
+
return Gt[Le] = Ze(Vt), Me(we, this, Gt);
|
|
12811
12811
|
};
|
|
12812
12812
|
}
|
|
12813
|
-
function
|
|
12814
|
-
if (!(
|
|
12815
|
-
return we[
|
|
12813
|
+
function Ln(we, Le) {
|
|
12814
|
+
if (!(Le === "constructor" && typeof we[Le] == "function") && Le != "__proto__")
|
|
12815
|
+
return we[Le];
|
|
12816
12816
|
}
|
|
12817
12817
|
var sr = ar(Ae);
|
|
12818
12818
|
function ar(we) {
|
|
12819
|
-
var
|
|
12819
|
+
var Le = 0, Ze = 0;
|
|
12820
12820
|
return function() {
|
|
12821
12821
|
var $t = bn(), jt = K - ($t - Ze);
|
|
12822
12822
|
if (Ze = $t, jt > 0) {
|
|
12823
|
-
if (++
|
|
12823
|
+
if (++Le >= G)
|
|
12824
12824
|
return arguments[0];
|
|
12825
12825
|
} else
|
|
12826
|
-
|
|
12826
|
+
Le = 0;
|
|
12827
12827
|
return we.apply(void 0, arguments);
|
|
12828
12828
|
};
|
|
12829
12829
|
}
|
|
@@ -12840,8 +12840,8 @@ lodash_defaultsdeep.exports;
|
|
|
12840
12840
|
}
|
|
12841
12841
|
return "";
|
|
12842
12842
|
}
|
|
12843
|
-
function Fe(we,
|
|
12844
|
-
return we ===
|
|
12843
|
+
function Fe(we, Le) {
|
|
12844
|
+
return we === Le || we !== we && Le !== Le;
|
|
12845
12845
|
}
|
|
12846
12846
|
var et = Un(/* @__PURE__ */ function() {
|
|
12847
12847
|
return arguments;
|
|
@@ -12858,15 +12858,15 @@ lodash_defaultsdeep.exports;
|
|
|
12858
12858
|
function pn(we) {
|
|
12859
12859
|
if (!en(we))
|
|
12860
12860
|
return !1;
|
|
12861
|
-
var
|
|
12862
|
-
return
|
|
12861
|
+
var Le = An(we);
|
|
12862
|
+
return Le == re || Le == ae || Le == Q || Le == ue;
|
|
12863
12863
|
}
|
|
12864
12864
|
function an(we) {
|
|
12865
12865
|
return typeof we == "number" && we > -1 && we % 1 == 0 && we <= Y;
|
|
12866
12866
|
}
|
|
12867
12867
|
function en(we) {
|
|
12868
|
-
var
|
|
12869
|
-
return we != null && (
|
|
12868
|
+
var Le = typeof we;
|
|
12869
|
+
return we != null && (Le == "object" || Le == "function");
|
|
12870
12870
|
}
|
|
12871
12871
|
function hn(we) {
|
|
12872
12872
|
return we != null && typeof we == "object";
|
|
@@ -12874,10 +12874,10 @@ lodash_defaultsdeep.exports;
|
|
|
12874
12874
|
function yn(we) {
|
|
12875
12875
|
if (!hn(we) || An(we) != ce)
|
|
12876
12876
|
return !1;
|
|
12877
|
-
var
|
|
12878
|
-
if (
|
|
12877
|
+
var Le = Se(we);
|
|
12878
|
+
if (Le === null)
|
|
12879
12879
|
return !0;
|
|
12880
|
-
var Ze = Ht.call(
|
|
12880
|
+
var Ze = Ht.call(Le, "constructor") && Le.constructor;
|
|
12881
12881
|
return typeof Ze == "function" && Ze instanceof Ze && It.call(Ze) == zt;
|
|
12882
12882
|
}
|
|
12883
12883
|
var kn = ye ? ct(ye) : nr;
|
|
@@ -12885,13 +12885,13 @@ lodash_defaultsdeep.exports;
|
|
|
12885
12885
|
return Ke(we, Cn(we));
|
|
12886
12886
|
}
|
|
12887
12887
|
var In = tr(function(we) {
|
|
12888
|
-
return we.push(void 0, gt),
|
|
12888
|
+
return we.push(void 0, gt), Me(Mn, void 0, we);
|
|
12889
12889
|
});
|
|
12890
12890
|
function Cn(we) {
|
|
12891
12891
|
return Nt(we) ? sn(we, !0) : rr(we);
|
|
12892
12892
|
}
|
|
12893
|
-
var
|
|
12894
|
-
zn(we,
|
|
12893
|
+
var Mn = ft(function(we, Le, Ze, $t) {
|
|
12894
|
+
zn(we, Le, Ze, $t);
|
|
12895
12895
|
});
|
|
12896
12896
|
function Dn(we) {
|
|
12897
12897
|
return function() {
|
|
@@ -13356,6 +13356,9 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
13356
13356
|
toJSON() {
|
|
13357
13357
|
return this.toHex();
|
|
13358
13358
|
}
|
|
13359
|
+
toJSONL() {
|
|
13360
|
+
return this.truncate();
|
|
13361
|
+
}
|
|
13359
13362
|
get length() {
|
|
13360
13363
|
return this._value.length;
|
|
13361
13364
|
}
|
|
@@ -14085,8 +14088,8 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
14085
14088
|
};
|
|
14086
14089
|
let G = setTimeout(q, U);
|
|
14087
14090
|
return () => clearTimeout(G);
|
|
14088
|
-
}, arrayToBuffer = ($) => export_Buffer.from($.buffer, $.byteOffset, $.byteLength),
|
|
14089
|
-
if (I >
|
|
14091
|
+
}, arrayToBuffer = ($) => export_Buffer.from($.buffer, $.byteOffset, $.byteLength), LOG_MAX_DEPTH = 7, jsonlogify = ($, I = 0, U = /* @__PURE__ */ new WeakSet()) => {
|
|
14092
|
+
if (I > LOG_MAX_DEPTH)
|
|
14090
14093
|
return null;
|
|
14091
14094
|
if (typeof $ == "function")
|
|
14092
14095
|
return null;
|
|
@@ -14098,13 +14101,15 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
14098
14101
|
if ($ instanceof Uint8Array)
|
|
14099
14102
|
return arrayToBuffer($).toString("hex");
|
|
14100
14103
|
if (Array.isArray($))
|
|
14101
|
-
return $.map((q) =>
|
|
14104
|
+
return $.map((q) => jsonlogify(q, I + 1, U));
|
|
14105
|
+
if (typeof $.toJSONL == "function")
|
|
14106
|
+
return $.toJSONL();
|
|
14102
14107
|
if (typeof $.toJSON == "function")
|
|
14103
14108
|
return $.toJSON();
|
|
14104
14109
|
{
|
|
14105
14110
|
const q = {};
|
|
14106
14111
|
for (const G of Object.keys($))
|
|
14107
|
-
q[G] =
|
|
14112
|
+
q[G] = jsonlogify($[G], I + 1, U);
|
|
14108
14113
|
return q;
|
|
14109
14114
|
}
|
|
14110
14115
|
} finally {
|
|
@@ -14399,6 +14404,8 @@ var logInfoProperties = Symbol("logInfoProperties"), logInfo = ($, I, U) => {
|
|
|
14399
14404
|
const J = Y.value, Z = K;
|
|
14400
14405
|
Y.value = function(...Q) {
|
|
14401
14406
|
const ee = {
|
|
14407
|
+
F: "",
|
|
14408
|
+
L: 0,
|
|
14402
14409
|
...q ?? {},
|
|
14403
14410
|
S: this
|
|
14404
14411
|
}, te = Q.map((ne) => export_inspect(ne, !1, 1, !0)).join(", ");
|
|
@@ -14515,10 +14522,16 @@ var logInfoProperties = Symbol("logInfoProperties"), logInfo = ($, I, U) => {
|
|
|
14515
14522
|
]);
|
|
14516
14523
|
const J = Y[I.level] ?? console.log;
|
|
14517
14524
|
typeof ((ee = I.meta) == null ? void 0 : ee.C) == "function" ? I.meta.C(J, q) : J(...q);
|
|
14518
|
-
}, BROWSER_PROCESSOR = CONFIG.useTestProcessor ? TEST_BROWSER_PROCESSOR : APP_BROWSER_PROCESSOR,
|
|
14525
|
+
}, BROWSER_PROCESSOR = CONFIG.useTestProcessor ? TEST_BROWSER_PROCESSOR : APP_BROWSER_PROCESSOR, getRelativeFilename2 = ($) => {
|
|
14526
|
+
const I = $.match(/.+\/(packages\/.+\/.+)/);
|
|
14527
|
+
if (I) {
|
|
14528
|
+
const [, U] = I;
|
|
14529
|
+
return U;
|
|
14530
|
+
}
|
|
14531
|
+
return $;
|
|
14532
|
+
}, EAGAIN_MAX_DURATION = 1e3, createFileProcessor = ({ pathOrFd: $, levels: I, filters: U }) => {
|
|
14519
14533
|
let q;
|
|
14520
14534
|
return (G, K) => {
|
|
14521
|
-
var Z, Q;
|
|
14522
14535
|
if (I.length > 0 && !I.includes(K.level) || !shouldLog(K, U))
|
|
14523
14536
|
return;
|
|
14524
14537
|
if (typeof $ == "number")
|
|
@@ -14533,24 +14546,26 @@ var logInfoProperties = Symbol("logInfoProperties"), logInfo = ($, I, U) => {
|
|
|
14533
14546
|
const Y = {
|
|
14534
14547
|
...K,
|
|
14535
14548
|
timestamp: Date.now(),
|
|
14536
|
-
meta
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14549
|
+
...K.meta ? {
|
|
14550
|
+
meta: {
|
|
14551
|
+
file: getRelativeFilename2(K.meta.F),
|
|
14552
|
+
line: K.meta.L
|
|
14553
|
+
}
|
|
14554
|
+
} : {},
|
|
14555
|
+
context: jsonlogify(getContextFromEntry(K))
|
|
14541
14556
|
};
|
|
14542
14557
|
let J = 0;
|
|
14543
14558
|
for (; ; )
|
|
14544
14559
|
try {
|
|
14545
14560
|
return appendFileSync(q, JSON.stringify(Y) + `
|
|
14546
14561
|
`);
|
|
14547
|
-
} catch (
|
|
14548
|
-
if (
|
|
14549
|
-
throw
|
|
14562
|
+
} catch (Z) {
|
|
14563
|
+
if (Z.code !== "EAGAIN")
|
|
14564
|
+
throw Z;
|
|
14550
14565
|
if (J === 0)
|
|
14551
14566
|
J = performance.now();
|
|
14552
14567
|
else if (performance.now() - J > EAGAIN_MAX_DURATION)
|
|
14553
|
-
throw console.log(`could not write after ${EAGAIN_MAX_DURATION}ms of EAGAIN failures, giving up`),
|
|
14568
|
+
throw console.log(`could not write after ${EAGAIN_MAX_DURATION}ms of EAGAIN failures, giving up`), Z;
|
|
14554
14569
|
}
|
|
14555
14570
|
};
|
|
14556
14571
|
}, logFilePath, getLogFilePath = () => (logFilePath ?? (logFilePath = process.env.LOG_FILE ?? (process.env.HOME ? `${process.env.HOME}/.dxlog/${(/* @__PURE__ */ new Date()).toISOString()}.log` : void 0)), logFilePath);
|
|
@@ -16018,7 +16033,7 @@ const arrow$1 = ($) => {
|
|
|
16018
16033
|
Re,
|
|
16019
16034
|
ye
|
|
16020
16035
|
]);
|
|
16021
|
-
const
|
|
16036
|
+
const Me = (G = He.arrow) === null || G === void 0 ? void 0 : G.x, Ye = (K = He.arrow) === null || K === void 0 ? void 0 : K.y, ct = ((Y = He.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [ut, wt] = useState();
|
|
16022
16037
|
$9f79659886946c16$export$e5c5a5f917a5871c$1(() => {
|
|
16023
16038
|
_e && wt(window.getComputedStyle(_e).zIndex);
|
|
16024
16039
|
}, [
|
|
@@ -16078,7 +16093,7 @@ const arrow$1 = ($) => {
|
|
|
16078
16093
|
scope: ee,
|
|
16079
16094
|
placedSide: Te,
|
|
16080
16095
|
onArrowChange: xe,
|
|
16081
|
-
arrowX:
|
|
16096
|
+
arrowX: Me,
|
|
16082
16097
|
arrowY: Ye,
|
|
16083
16098
|
shouldHideArrow: ct
|
|
16084
16099
|
}, Ut ? /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$var$PositionContextProvider, {
|
|
@@ -17837,12 +17852,13 @@ var Message$1 = {
|
|
|
17837
17852
|
className: q("scrollArea.viewport", "scroll-area", {}, $),
|
|
17838
17853
|
ref: U
|
|
17839
17854
|
});
|
|
17840
|
-
}), ScrollAreaScrollbar = /* @__PURE__ */ forwardRef(({ classNames: $,
|
|
17841
|
-
const { tx:
|
|
17855
|
+
}), ScrollAreaScrollbar = /* @__PURE__ */ forwardRef(({ classNames: $, variant: I = "fine", ...U }, q) => {
|
|
17856
|
+
const { tx: G } = useThemeContext();
|
|
17842
17857
|
return /* @__PURE__ */ React__default.createElement($57acba87d6e25586$export$9a4e88b92edfce6b, {
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17858
|
+
"data-variant": I,
|
|
17859
|
+
...U,
|
|
17860
|
+
className: G("scrollArea.scrollbar", "scroll-area__scrollbar", {}, $),
|
|
17861
|
+
ref: q
|
|
17846
17862
|
});
|
|
17847
17863
|
}), ScrollAreaThumb = /* @__PURE__ */ forwardRef(({ classNames: $, ...I }, U) => {
|
|
17848
17864
|
const { tx: q } = useThemeContext();
|
|
@@ -20184,7 +20200,7 @@ lodash_merge.exports;
|
|
|
20184
20200
|
} catch {
|
|
20185
20201
|
}
|
|
20186
20202
|
}(), ye = be && be.isTypedArray;
|
|
20187
|
-
function
|
|
20203
|
+
function Me(Pe, Xe, we) {
|
|
20188
20204
|
switch (we.length) {
|
|
20189
20205
|
case 0:
|
|
20190
20206
|
return Pe.call(Xe);
|
|
@@ -20198,9 +20214,9 @@ lodash_merge.exports;
|
|
|
20198
20214
|
return Pe.apply(Xe, we);
|
|
20199
20215
|
}
|
|
20200
20216
|
function Ye(Pe, Xe) {
|
|
20201
|
-
for (var we = -1,
|
|
20202
|
-
|
|
20203
|
-
return
|
|
20217
|
+
for (var we = -1, Le = Array(Pe); ++we < Pe; )
|
|
20218
|
+
Le[we] = Xe(we);
|
|
20219
|
+
return Le;
|
|
20204
20220
|
}
|
|
20205
20221
|
function ct(Pe) {
|
|
20206
20222
|
return function(Xe) {
|
|
@@ -20242,8 +20258,8 @@ lodash_merge.exports;
|
|
|
20242
20258
|
function un(Pe) {
|
|
20243
20259
|
var Xe = -1, we = Pe == null ? 0 : Pe.length;
|
|
20244
20260
|
for (this.clear(); ++Xe < we; ) {
|
|
20245
|
-
var
|
|
20246
|
-
this.set(
|
|
20261
|
+
var Le = Pe[Xe];
|
|
20262
|
+
this.set(Le[0], Le[1]);
|
|
20247
20263
|
}
|
|
20248
20264
|
}
|
|
20249
20265
|
function Pn() {
|
|
@@ -20273,8 +20289,8 @@ lodash_merge.exports;
|
|
|
20273
20289
|
function ln(Pe) {
|
|
20274
20290
|
var Xe = -1, we = Pe == null ? 0 : Pe.length;
|
|
20275
20291
|
for (this.clear(); ++Xe < we; ) {
|
|
20276
|
-
var
|
|
20277
|
-
this.set(
|
|
20292
|
+
var Le = Pe[Xe];
|
|
20293
|
+
this.set(Le[0], Le[1]);
|
|
20278
20294
|
}
|
|
20279
20295
|
}
|
|
20280
20296
|
function Gn() {
|
|
@@ -20284,8 +20300,8 @@ lodash_merge.exports;
|
|
|
20284
20300
|
var Xe = this.__data__, we = dn(Xe, Pe);
|
|
20285
20301
|
if (we < 0)
|
|
20286
20302
|
return !1;
|
|
20287
|
-
var
|
|
20288
|
-
return we ==
|
|
20303
|
+
var Le = Xe.length - 1;
|
|
20304
|
+
return we == Le ? Xe.pop() : Dt.call(Xe, we, 1), --this.size, !0;
|
|
20289
20305
|
}
|
|
20290
20306
|
function Kn(Pe) {
|
|
20291
20307
|
var Xe = this.__data__, we = dn(Xe, Pe);
|
|
@@ -20295,15 +20311,15 @@ lodash_merge.exports;
|
|
|
20295
20311
|
return dn(this.__data__, Pe) > -1;
|
|
20296
20312
|
}
|
|
20297
20313
|
function vt(Pe, Xe) {
|
|
20298
|
-
var we = this.__data__,
|
|
20299
|
-
return
|
|
20314
|
+
var we = this.__data__, Le = dn(we, Pe);
|
|
20315
|
+
return Le < 0 ? (++this.size, we.push([Pe, Xe])) : we[Le][1] = Xe, this;
|
|
20300
20316
|
}
|
|
20301
20317
|
ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
|
|
20302
20318
|
function xt(Pe) {
|
|
20303
20319
|
var Xe = -1, we = Pe == null ? 0 : Pe.length;
|
|
20304
20320
|
for (this.clear(); ++Xe < we; ) {
|
|
20305
|
-
var
|
|
20306
|
-
this.set(
|
|
20321
|
+
var Le = Pe[Xe];
|
|
20322
|
+
this.set(Le[0], Le[1]);
|
|
20307
20323
|
}
|
|
20308
20324
|
}
|
|
20309
20325
|
function Ne() {
|
|
@@ -20324,15 +20340,15 @@ lodash_merge.exports;
|
|
|
20324
20340
|
return gt(this, Pe).has(Pe);
|
|
20325
20341
|
}
|
|
20326
20342
|
function Rt(Pe, Xe) {
|
|
20327
|
-
var we = gt(this, Pe),
|
|
20328
|
-
return we.set(Pe, Xe), this.size += we.size ==
|
|
20343
|
+
var we = gt(this, Pe), Le = we.size;
|
|
20344
|
+
return we.set(Pe, Xe), this.size += we.size == Le ? 0 : 1, this;
|
|
20329
20345
|
}
|
|
20330
20346
|
xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
|
|
20331
20347
|
function Bt(Pe) {
|
|
20332
20348
|
var Xe = this.__data__ = new ln(Pe);
|
|
20333
20349
|
this.size = Xe.size;
|
|
20334
20350
|
}
|
|
20335
|
-
function
|
|
20351
|
+
function Mt() {
|
|
20336
20352
|
this.__data__ = new ln(), this.size = 0;
|
|
20337
20353
|
}
|
|
20338
20354
|
function Ot(Pe) {
|
|
@@ -20348,16 +20364,16 @@ lodash_merge.exports;
|
|
|
20348
20364
|
function Yt(Pe, Xe) {
|
|
20349
20365
|
var we = this.__data__;
|
|
20350
20366
|
if (we instanceof ln) {
|
|
20351
|
-
var
|
|
20352
|
-
if (!vn ||
|
|
20353
|
-
return
|
|
20354
|
-
we = this.__data__ = new xt(
|
|
20367
|
+
var Le = we.__data__;
|
|
20368
|
+
if (!vn || Le.length < U - 1)
|
|
20369
|
+
return Le.push([Pe, Xe]), this.size = ++we.size, this;
|
|
20370
|
+
we = this.__data__ = new xt(Le);
|
|
20355
20371
|
}
|
|
20356
20372
|
return we.set(Pe, Xe), this.size = we.size, this;
|
|
20357
20373
|
}
|
|
20358
|
-
Bt.prototype.clear =
|
|
20374
|
+
Bt.prototype.clear = Mt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
|
|
20359
20375
|
function sn(Pe, Xe) {
|
|
20360
|
-
var we = et(Pe),
|
|
20376
|
+
var we = et(Pe), Le = !we && Fe(Pe), Ze = !we && !Le && nn(Pe), $t = !we && !Le && !Ze && yn(Pe), jt = we || Le || Ze || $t, Ft = jt ? Ye(Pe.length, String) : [], Vt = Ft.length;
|
|
20361
20377
|
for (var Gt in Pe)
|
|
20362
20378
|
(Xe || Ht.call(Pe, Gt)) && !(jt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
20363
20379
|
(Gt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -20370,8 +20386,8 @@ lodash_merge.exports;
|
|
|
20370
20386
|
(we !== void 0 && !qn(Pe[Xe], we) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
|
|
20371
20387
|
}
|
|
20372
20388
|
function Yn(Pe, Xe, we) {
|
|
20373
|
-
var
|
|
20374
|
-
(!(Ht.call(Pe, Xe) && qn(
|
|
20389
|
+
var Le = Pe[Xe];
|
|
20390
|
+
(!(Ht.call(Pe, Xe) && qn(Le, we)) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
|
|
20375
20391
|
}
|
|
20376
20392
|
function dn(Pe, Xe) {
|
|
20377
20393
|
for (var we = Pe.length; we--; )
|
|
@@ -20407,21 +20423,21 @@ lodash_merge.exports;
|
|
|
20407
20423
|
if (!an(Pe))
|
|
20408
20424
|
return wn(Pe);
|
|
20409
20425
|
var Xe = cn(Pe), we = [];
|
|
20410
|
-
for (var
|
|
20411
|
-
|
|
20426
|
+
for (var Le in Pe)
|
|
20427
|
+
Le == "constructor" && (Xe || !Ht.call(Pe, Le)) || we.push(Le);
|
|
20412
20428
|
return we;
|
|
20413
20429
|
}
|
|
20414
|
-
function zn(Pe, Xe, we,
|
|
20430
|
+
function zn(Pe, Xe, we, Le, Ze) {
|
|
20415
20431
|
Pe !== Xe && jn(Xe, function($t, jt) {
|
|
20416
20432
|
if (Ze || (Ze = new Bt()), an($t))
|
|
20417
|
-
ir(Pe, Xe, jt, we, zn,
|
|
20433
|
+
ir(Pe, Xe, jt, we, zn, Le, Ze);
|
|
20418
20434
|
else {
|
|
20419
|
-
var Ft =
|
|
20435
|
+
var Ft = Le ? Le(Wn(Pe, jt), $t, jt + "", Pe, Xe, Ze) : void 0;
|
|
20420
20436
|
Ft === void 0 && (Ft = $t), xn(Pe, jt, Ft);
|
|
20421
20437
|
}
|
|
20422
20438
|
}, gn);
|
|
20423
20439
|
}
|
|
20424
|
-
function ir(Pe, Xe, we,
|
|
20440
|
+
function ir(Pe, Xe, we, Le, Ze, $t, jt) {
|
|
20425
20441
|
var Ft = Wn(Pe, we), Vt = Wn(Xe, we), Gt = jt.get(Vt);
|
|
20426
20442
|
if (Gt) {
|
|
20427
20443
|
xn(Pe, we, Gt);
|
|
@@ -20430,12 +20446,12 @@ lodash_merge.exports;
|
|
|
20430
20446
|
var Xt = $t ? $t(Ft, Vt, we + "", Pe, Xe, jt) : void 0, En = Xt === void 0;
|
|
20431
20447
|
if (En) {
|
|
20432
20448
|
var Rn = et(Vt), er = !Rn && nn(Vt), cr = !Rn && !er && yn(Vt);
|
|
20433
|
-
Xt = Vt, Rn || er || cr ? et(Ft) ? Xt = Ft : Nt(Ft) ? Xt = Qe(Ft) : er ? (En = !1, Xt = Ve(Vt, !0)) : cr ? (En = !1, Xt = Je(Vt, !0)) : Xt = [] : hn(Vt) || Fe(Vt) ? (Xt = Ft, Fe(Ft) ? Xt = kn(Ft) : (!an(Ft) || qt(Ft)) && (Xt =
|
|
20449
|
+
Xt = Vt, Rn || er || cr ? et(Ft) ? Xt = Ft : Nt(Ft) ? Xt = Qe(Ft) : er ? (En = !1, Xt = Ve(Vt, !0)) : cr ? (En = !1, Xt = Je(Vt, !0)) : Xt = [] : hn(Vt) || Fe(Vt) ? (Xt = Ft, Fe(Ft) ? Xt = kn(Ft) : (!an(Ft) || qt(Ft)) && (Xt = Lt(Vt))) : En = !1;
|
|
20434
20450
|
}
|
|
20435
|
-
En && (jt.set(Vt, Xt), Ze(Xt, Vt,
|
|
20451
|
+
En && (jt.set(Vt, Xt), Ze(Xt, Vt, Le, $t, jt), jt.delete(Vt)), xn(Pe, we, Xt);
|
|
20436
20452
|
}
|
|
20437
20453
|
function tr(Pe, Xe) {
|
|
20438
|
-
return
|
|
20454
|
+
return Ln(Zn(Pe, Xe, Mn), Pe + "");
|
|
20439
20455
|
}
|
|
20440
20456
|
var Ae = Pt ? function(Pe, Xe) {
|
|
20441
20457
|
return Pt(Pe, "toString", {
|
|
@@ -20444,12 +20460,12 @@ lodash_merge.exports;
|
|
|
20444
20460
|
value: Cn(Xe),
|
|
20445
20461
|
writable: !0
|
|
20446
20462
|
});
|
|
20447
|
-
} :
|
|
20463
|
+
} : Mn;
|
|
20448
20464
|
function Ve(Pe, Xe) {
|
|
20449
20465
|
if (Xe)
|
|
20450
20466
|
return Pe.slice();
|
|
20451
|
-
var we = Pe.length,
|
|
20452
|
-
return Pe.copy(
|
|
20467
|
+
var we = Pe.length, Le = ke ? ke(we) : new Pe.constructor(we);
|
|
20468
|
+
return Pe.copy(Le), Le;
|
|
20453
20469
|
}
|
|
20454
20470
|
function Oe(Pe) {
|
|
20455
20471
|
var Xe = new Pe.constructor(Pe.byteLength);
|
|
@@ -20460,33 +20476,33 @@ lodash_merge.exports;
|
|
|
20460
20476
|
return new Pe.constructor(we, Pe.byteOffset, Pe.length);
|
|
20461
20477
|
}
|
|
20462
20478
|
function Qe(Pe, Xe) {
|
|
20463
|
-
var we = -1,
|
|
20464
|
-
for (Xe || (Xe = Array(
|
|
20479
|
+
var we = -1, Le = Pe.length;
|
|
20480
|
+
for (Xe || (Xe = Array(Le)); ++we < Le; )
|
|
20465
20481
|
Xe[we] = Pe[we];
|
|
20466
20482
|
return Xe;
|
|
20467
20483
|
}
|
|
20468
|
-
function Ke(Pe, Xe, we,
|
|
20484
|
+
function Ke(Pe, Xe, we, Le) {
|
|
20469
20485
|
var Ze = !we;
|
|
20470
20486
|
we || (we = {});
|
|
20471
20487
|
for (var $t = -1, jt = Xe.length; ++$t < jt; ) {
|
|
20472
|
-
var Ft = Xe[$t], Vt =
|
|
20488
|
+
var Ft = Xe[$t], Vt = Le ? Le(we[Ft], Pe[Ft], Ft, we, Pe) : void 0;
|
|
20473
20489
|
Vt === void 0 && (Vt = Pe[Ft]), Ze ? Bn(we, Ft, Vt) : Yn(we, Ft, Vt);
|
|
20474
20490
|
}
|
|
20475
20491
|
return we;
|
|
20476
20492
|
}
|
|
20477
20493
|
function ft(Pe) {
|
|
20478
20494
|
return tr(function(Xe, we) {
|
|
20479
|
-
var
|
|
20480
|
-
for ($t = Pe.length > 3 && typeof $t == "function" ? (Ze--, $t) : void 0, jt && Jt(we[0], we[1], jt) && ($t = Ze < 3 ? void 0 : $t, Ze = 1), Xe = Object(Xe); ++
|
|
20481
|
-
var Ft = we[
|
|
20482
|
-
Ft && Pe(Xe, Ft,
|
|
20495
|
+
var Le = -1, Ze = we.length, $t = Ze > 1 ? we[Ze - 1] : void 0, jt = Ze > 2 ? we[2] : void 0;
|
|
20496
|
+
for ($t = Pe.length > 3 && typeof $t == "function" ? (Ze--, $t) : void 0, jt && Jt(we[0], we[1], jt) && ($t = Ze < 3 ? void 0 : $t, Ze = 1), Xe = Object(Xe); ++Le < Ze; ) {
|
|
20497
|
+
var Ft = we[Le];
|
|
20498
|
+
Ft && Pe(Xe, Ft, Le, $t);
|
|
20483
20499
|
}
|
|
20484
20500
|
return Xe;
|
|
20485
20501
|
});
|
|
20486
20502
|
}
|
|
20487
20503
|
function pt(Pe) {
|
|
20488
|
-
return function(Xe, we,
|
|
20489
|
-
for (var Ze = -1, $t = Object(Xe), jt =
|
|
20504
|
+
return function(Xe, we, Le) {
|
|
20505
|
+
for (var Ze = -1, $t = Object(Xe), jt = Le(Xe), Ft = jt.length; Ft--; ) {
|
|
20490
20506
|
var Vt = jt[Pe ? Ft : ++Ze];
|
|
20491
20507
|
if (we($t[Vt], Vt, $t) === !1)
|
|
20492
20508
|
break;
|
|
@@ -20506,13 +20522,13 @@ lodash_merge.exports;
|
|
|
20506
20522
|
var Xe = Ht.call(Pe, Tt), we = Pe[Tt];
|
|
20507
20523
|
try {
|
|
20508
20524
|
Pe[Tt] = void 0;
|
|
20509
|
-
var
|
|
20525
|
+
var Le = !0;
|
|
20510
20526
|
} catch {
|
|
20511
20527
|
}
|
|
20512
20528
|
var Ze = Ct.call(Pe);
|
|
20513
|
-
return
|
|
20529
|
+
return Le && (Xe ? Pe[Tt] = we : delete Pe[Tt]), Ze;
|
|
20514
20530
|
}
|
|
20515
|
-
function
|
|
20531
|
+
function Lt(Pe) {
|
|
20516
20532
|
return typeof Pe.constructor == "function" && !cn(Pe) ? Tn(Se(Pe)) : {};
|
|
20517
20533
|
}
|
|
20518
20534
|
function Wt(Pe, Xe) {
|
|
@@ -20522,8 +20538,8 @@ lodash_merge.exports;
|
|
|
20522
20538
|
function Jt(Pe, Xe, we) {
|
|
20523
20539
|
if (!an(we))
|
|
20524
20540
|
return !1;
|
|
20525
|
-
var
|
|
20526
|
-
return (
|
|
20541
|
+
var Le = typeof Xe;
|
|
20542
|
+
return (Le == "number" ? yt(we) && Wt(Xe, we.length) : Le == "string" && Xe in we) ? qn(we[Xe], Pe) : !1;
|
|
20527
20543
|
}
|
|
20528
20544
|
function tn(Pe) {
|
|
20529
20545
|
var Xe = typeof Pe;
|
|
@@ -20548,24 +20564,24 @@ lodash_merge.exports;
|
|
|
20548
20564
|
}
|
|
20549
20565
|
function Zn(Pe, Xe, we) {
|
|
20550
20566
|
return Xe = Sn(Xe === void 0 ? Pe.length - 1 : Xe, 0), function() {
|
|
20551
|
-
for (var
|
|
20552
|
-
jt[Ze] =
|
|
20567
|
+
for (var Le = arguments, Ze = -1, $t = Sn(Le.length - Xe, 0), jt = Array($t); ++Ze < $t; )
|
|
20568
|
+
jt[Ze] = Le[Xe + Ze];
|
|
20553
20569
|
Ze = -1;
|
|
20554
20570
|
for (var Ft = Array(Xe + 1); ++Ze < Xe; )
|
|
20555
|
-
Ft[Ze] =
|
|
20556
|
-
return Ft[Xe] = we(jt),
|
|
20571
|
+
Ft[Ze] = Le[Ze];
|
|
20572
|
+
return Ft[Xe] = we(jt), Me(Pe, this, Ft);
|
|
20557
20573
|
};
|
|
20558
20574
|
}
|
|
20559
20575
|
function Wn(Pe, Xe) {
|
|
20560
20576
|
if (!(Xe === "constructor" && typeof Pe[Xe] == "function") && Xe != "__proto__")
|
|
20561
20577
|
return Pe[Xe];
|
|
20562
20578
|
}
|
|
20563
|
-
var
|
|
20579
|
+
var Ln = sr(Ae);
|
|
20564
20580
|
function sr(Pe) {
|
|
20565
20581
|
var Xe = 0, we = 0;
|
|
20566
20582
|
return function() {
|
|
20567
|
-
var
|
|
20568
|
-
if (we =
|
|
20583
|
+
var Le = bn(), Ze = K - (Le - we);
|
|
20584
|
+
if (we = Le, Ze > 0) {
|
|
20569
20585
|
if (++Xe >= G)
|
|
20570
20586
|
return arguments[0];
|
|
20571
20587
|
} else
|
|
@@ -20641,7 +20657,7 @@ lodash_merge.exports;
|
|
|
20641
20657
|
return Pe;
|
|
20642
20658
|
};
|
|
20643
20659
|
}
|
|
20644
|
-
function
|
|
20660
|
+
function Mn(Pe) {
|
|
20645
20661
|
return Pe;
|
|
20646
20662
|
}
|
|
20647
20663
|
function Dn() {
|
|
@@ -24362,7 +24378,7 @@ var hueTheme = {
|
|
|
24362
24378
|
text: ({ hue: $ }) => hueTokenThemes[$].text,
|
|
24363
24379
|
textHover: ({ hue: $ }) => hueTokenThemes[$].textHover,
|
|
24364
24380
|
fill: ({ hue: $ }) => hueTokenThemes[$].fill
|
|
24365
|
-
}, bounceLayout = "fixed inset-0 z-0 overflow-auto overscroll-auto
|
|
24381
|
+
}, bounceLayout = "fixed inset-0 z-0 overflow-auto overscroll-auto", popperMotion = "will-change-[opacity,transform] data-[side=top]:animate-slideDownAndFade data-[side=right]:animate-slideLeftAndFade data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade", dialogMotion = "will-change-[opacity,transform] animate-slideUpAndFade", separatorBorderColor = "separator-separator", inlineSeparator = "self-stretch border-ie", blockSeparator = "self-stretch border-be", ghostHighlighted = "data-[highlighted]:bg-primary-100 dark:data-[highlighted]:bg-primary-850 hover:data-[highlighted]:bg-primary-150 hover:dark:data-[highlighted]:bg-primary-800", fixedSurface = "base-surface md:fixed-surface backdrop-blur-md dark:backdrop-blur-lg", fixedBorder = "separator-separator", groupBorder = "separator-separator", modalSurface = "modal-surface", getLength = () => [
|
|
24366
24382
|
validators.isLength
|
|
24367
24383
|
], getLengthWithAuto = () => [
|
|
24368
24384
|
"auto",
|
|
@@ -25233,7 +25249,7 @@ var hueTheme = {
|
|
|
25233
25249
|
content: popoverContent,
|
|
25234
25250
|
viewport: popoverViewport,
|
|
25235
25251
|
arrow: popoverArrow
|
|
25236
|
-
}, scrollAreaRoot = ($, ...I) => mx("overflow-hidden", ...I), scrollAreaViewport = ($, ...I) => mx("is-full bs-full
|
|
25252
|
+
}, scrollAreaRoot = ($, ...I) => mx("overflow-hidden", ...I), scrollAreaViewport = ($, ...I) => mx("is-full bs-full [&>div]:table-fixed [&>div]:is-full", ...I), scrollAreaScrollbar = ($, ...I) => mx("flex select-none touch-none p-0.5 ease-out", "data-[orientation=vertical]:is-1.5 sm:data-[orientation=vertical]:data-[variant=coarse]:is-3", "data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:bs-1.5 sm:data-[orientation=horizontal]:data-[variant=coarse]:bs-3", "sm:data-[variant=coarse]:surface-separator rounded-full", "[&>div]:surface-unAccent sm:[&[data-variant=coarse]>div]:surface-attention", ...I), scrollAreaThumb = ($, ...I) => mx("flex-1 rounded-full relative", "before:content-[''] before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-[6px] before:min-h-[6px]", ...I), scrollAreaCorner = ($, ...I) => mx(...I), scrollAreaTheme = {
|
|
25237
25253
|
root: scrollAreaRoot,
|
|
25238
25254
|
viewport: scrollAreaViewport,
|
|
25239
25255
|
scrollbar: scrollAreaScrollbar,
|
|
@@ -69486,7 +69502,7 @@ function formatDistance($, I, U) {
|
|
|
69486
69502
|
function formatDistanceToNow($, I) {
|
|
69487
69503
|
return formatDistance($, Date.now(), I);
|
|
69488
69504
|
}
|
|
69489
|
-
var LogLevel;
|
|
69505
|
+
var RPC_TIMEOUT = 2e4, LogLevel;
|
|
69490
69506
|
(function($) {
|
|
69491
69507
|
$[$.TRACE = 5] = "TRACE", $[$.DEBUG = 10] = "DEBUG", $[$.INFO = 11] = "INFO", $[$.WARN = 12] = "WARN", $[$.ERROR = 13] = "ERROR";
|
|
69492
69508
|
})(LogLevel || (LogLevel = {}));
|
|
@@ -69541,11 +69557,11 @@ var CreateEpochRequest;
|
|
|
69541
69557
|
var Invitation;
|
|
69542
69558
|
(function($) {
|
|
69543
69559
|
(function(I) {
|
|
69544
|
-
I[I.INTERACTIVE = 0] = "INTERACTIVE", I[I.
|
|
69560
|
+
I[I.INTERACTIVE = 0] = "INTERACTIVE", I[I.DELEGATED = 1] = "DELEGATED", I[I.MULTIUSE = 2] = "MULTIUSE";
|
|
69545
69561
|
})($.Type || ($.Type = {})), function(I) {
|
|
69546
69562
|
I[I.DEVICE = 0] = "DEVICE", I[I.SPACE = 1] = "SPACE";
|
|
69547
69563
|
}($.Kind || ($.Kind = {})), function(I) {
|
|
69548
|
-
I[I.NONE = 0] = "NONE", I[I.SHARED_SECRET = 1] = "SHARED_SECRET";
|
|
69564
|
+
I[I.NONE = 0] = "NONE", I[I.SHARED_SECRET = 1] = "SHARED_SECRET", I[I.KNOWN_PUBLIC_KEY = 2] = "KNOWN_PUBLIC_KEY";
|
|
69549
69565
|
}($.AuthMethod || ($.AuthMethod = {})), function(I) {
|
|
69550
69566
|
I[I.INIT = 0] = "INIT", I[I.CONNECTING = 1] = "CONNECTING", I[I.CONNECTED = 2] = "CONNECTED", I[I.READY_FOR_AUTHENTICATION = 3] = "READY_FOR_AUTHENTICATION", I[I.AUTHENTICATING = 4] = "AUTHENTICATING", I[I.SUCCESS = 5] = "SUCCESS", I[I.CANCELLED = 6] = "CANCELLED", I[I.TIMEOUT = 7] = "TIMEOUT", I[I.ERROR = 8] = "ERROR", I[I.EXPIRED = 9] = "EXPIRED";
|
|
69551
69567
|
}($.State || ($.State = {}));
|
|
@@ -69628,37 +69644,33 @@ var __dxlog_file$7 = "/home/runner/work/dxos/dxos/packages/common/context/src/co
|
|
|
69628
69644
|
}
|
|
69629
69645
|
/**
|
|
69630
69646
|
* Runs all dispose callbacks.
|
|
69631
|
-
*
|
|
69632
|
-
* Async callbacks are run in parallel.
|
|
69647
|
+
* Callbacks are run in the reverse order they were added.
|
|
69633
69648
|
* This function never throws.
|
|
69634
69649
|
* It is safe to ignore the returned promise if the caller does not wish to wait for callbacks to complete.
|
|
69635
69650
|
* Disposing context means that onDispose will throw an error and any errors raised will be logged and not propagated.
|
|
69636
69651
|
*/
|
|
69637
|
-
dispose() {
|
|
69652
|
+
async dispose() {
|
|
69638
69653
|
if (this._disposePromise)
|
|
69639
69654
|
return this._disposePromise;
|
|
69640
69655
|
this._isDisposed = !0;
|
|
69641
69656
|
let I;
|
|
69642
|
-
this._disposePromise = new Promise((
|
|
69643
|
-
I =
|
|
69657
|
+
this._disposePromise = new Promise((q) => {
|
|
69658
|
+
I = q;
|
|
69644
69659
|
});
|
|
69645
|
-
const U =
|
|
69646
|
-
|
|
69647
|
-
|
|
69648
|
-
|
|
69649
|
-
|
|
69650
|
-
|
|
69651
|
-
|
|
69652
|
-
|
|
69653
|
-
|
|
69654
|
-
|
|
69655
|
-
|
|
69656
|
-
|
|
69657
|
-
|
|
69658
|
-
|
|
69659
|
-
return this._disposeCallbacks.length = 0, Promise.all(U).then(() => {
|
|
69660
|
-
I();
|
|
69661
|
-
}), this._disposePromise;
|
|
69660
|
+
const U = Array.from(this._disposeCallbacks).reverse();
|
|
69661
|
+
this._disposeCallbacks.length = 0;
|
|
69662
|
+
for (const q of U)
|
|
69663
|
+
try {
|
|
69664
|
+
await q();
|
|
69665
|
+
} catch (G) {
|
|
69666
|
+
log$2.catch(G, void 0, {
|
|
69667
|
+
F: __dxlog_file$7,
|
|
69668
|
+
L: 136,
|
|
69669
|
+
S: this,
|
|
69670
|
+
C: (K, Y) => K(...Y)
|
|
69671
|
+
});
|
|
69672
|
+
}
|
|
69673
|
+
I();
|
|
69662
69674
|
}
|
|
69663
69675
|
/**
|
|
69664
69676
|
* Raise the error inside the context.
|
|
@@ -70959,13 +70971,13 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
70959
70971
|
}, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
|
|
70960
70972
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] * 16777216 + (this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3]);
|
|
70961
70973
|
}, J.prototype.readBigUInt64LE = Ct(function(ie) {
|
|
70962
|
-
ie = ie >>> 0,
|
|
70974
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
70963
70975
|
const oe = this[ie], pe = this[ie + 7];
|
|
70964
70976
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
70965
70977
|
const ke = oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24, Se = this[++ie] + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + pe * 2 ** 24;
|
|
70966
70978
|
return BigInt(ke) + (BigInt(Se) << BigInt(32));
|
|
70967
70979
|
}), J.prototype.readBigUInt64BE = Ct(function(ie) {
|
|
70968
|
-
ie = ie >>> 0,
|
|
70980
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
70969
70981
|
const oe = this[ie], pe = this[ie + 7];
|
|
70970
70982
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
70971
70983
|
const ke = oe * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + this[++ie], Se = this[++ie] * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + pe;
|
|
@@ -70997,13 +71009,13 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
70997
71009
|
}, J.prototype.readInt32BE = function(ie, oe) {
|
|
70998
71010
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] << 24 | this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3];
|
|
70999
71011
|
}, J.prototype.readBigInt64LE = Ct(function(ie) {
|
|
71000
|
-
ie = ie >>> 0,
|
|
71012
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
71001
71013
|
const oe = this[ie], pe = this[ie + 7];
|
|
71002
71014
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
71003
71015
|
const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
|
|
71004
71016
|
return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
|
|
71005
71017
|
}), J.prototype.readBigInt64BE = Ct(function(ie) {
|
|
71006
|
-
ie = ie >>> 0,
|
|
71018
|
+
ie = ie >>> 0, Me(ie, "offset");
|
|
71007
71019
|
const oe = this[ie], pe = this[ie + 7];
|
|
71008
71020
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
71009
71021
|
const ke = (oe << 24) + // Overflow
|
|
@@ -71229,7 +71241,7 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
71229
71241
|
return `${de.slice(0, oe)}${ie}`;
|
|
71230
71242
|
}
|
|
71231
71243
|
function be(de, ie, oe) {
|
|
71232
|
-
|
|
71244
|
+
Me(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
|
|
71233
71245
|
}
|
|
71234
71246
|
function ye(de, ie, oe, pe, ke, Se) {
|
|
71235
71247
|
if (de > oe || de < ie) {
|
|
@@ -71239,12 +71251,12 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
71239
71251
|
}
|
|
71240
71252
|
be(pe, ke, Se);
|
|
71241
71253
|
}
|
|
71242
|
-
function
|
|
71254
|
+
function Me(de, ie) {
|
|
71243
71255
|
if (typeof de != "number")
|
|
71244
71256
|
throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
|
|
71245
71257
|
}
|
|
71246
71258
|
function Ye(de, ie, oe) {
|
|
71247
|
-
throw Math.floor(de) !== de ? (
|
|
71259
|
+
throw Math.floor(de) !== de ? (Me(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
|
|
71248
71260
|
oe || "offset",
|
|
71249
71261
|
`>= ${oe ? 1 : 0} and <= ${ie}`,
|
|
71250
71262
|
de
|
|
@@ -71787,8 +71799,8 @@ function require_stream_writable() {
|
|
|
71787
71799
|
var ye = Ee(He, Re, Te);
|
|
71788
71800
|
Re !== ye && (Ie = !0, Te = "buffer", Re = ye);
|
|
71789
71801
|
}
|
|
71790
|
-
var
|
|
71791
|
-
He.length +=
|
|
71802
|
+
var Me = He.objectMode ? 1 : Re.length;
|
|
71803
|
+
He.length += Me;
|
|
71792
71804
|
var Ye = He.length < He.highWaterMark;
|
|
71793
71805
|
if (Ye || (He.needDrain = !0), He.writing || He.corked) {
|
|
71794
71806
|
var ct = He.lastBufferedRequest;
|
|
@@ -71800,7 +71812,7 @@ function require_stream_writable() {
|
|
|
71800
71812
|
next: null
|
|
71801
71813
|
}, ct ? ct.next = He.lastBufferedRequest : He.bufferedRequest = He.lastBufferedRequest, He.bufferedRequestCount += 1;
|
|
71802
71814
|
} else
|
|
71803
|
-
Be(Ue, He, !1,
|
|
71815
|
+
Be(Ue, He, !1, Me, Re, Te, be);
|
|
71804
71816
|
return Ye;
|
|
71805
71817
|
}
|
|
71806
71818
|
function Be(Ue, He, Ie, Re, Te, be, ye) {
|
|
@@ -71835,9 +71847,9 @@ function require_stream_writable() {
|
|
|
71835
71847
|
if (Ue._writev && Ie && Ie.next) {
|
|
71836
71848
|
var Re = He.bufferedRequestCount, Te = new Array(Re), be = He.corkedRequestsFree;
|
|
71837
71849
|
be.entry = Ie;
|
|
71838
|
-
for (var ye = 0,
|
|
71839
|
-
Te[ye] = Ie, Ie.isBuf || (
|
|
71840
|
-
Te.allBuffers =
|
|
71850
|
+
for (var ye = 0, Me = !0; Ie; )
|
|
71851
|
+
Te[ye] = Ie, Ie.isBuf || (Me = !1), Ie = Ie.next, ye += 1;
|
|
71852
|
+
Te.allBuffers = Me, Be(Ue, He, !0, He.length, Te, "", be.finish), He.pendingcb++, He.lastBufferedRequest = null, be.next ? (He.corkedRequestsFree = be.next, be.next = null) : He.corkedRequestsFree = new $(He), He.bufferedRequestCount = 0;
|
|
71841
71853
|
} else {
|
|
71842
71854
|
for (; Ie; ) {
|
|
71843
71855
|
var Ye = Ie.chunk, ct = Ie.encoding, ut = Ie.callback, wt = He.objectMode ? 1 : Ye.length;
|
|
@@ -72343,8 +72355,8 @@ function require_stream_readable() {
|
|
|
72343
72355
|
hasRequired_stream_readable = 1, _stream_readable = $e;
|
|
72344
72356
|
var $;
|
|
72345
72357
|
$e.ReadableState = _e, eventsExports.EventEmitter;
|
|
72346
|
-
var I = function(ye,
|
|
72347
|
-
return ye.listeners(
|
|
72358
|
+
var I = function(ye, Me) {
|
|
72359
|
+
return ye.listeners(Me).length;
|
|
72348
72360
|
}, U = streamBrowser, q = buffer.Buffer, G = commonjsGlobal.Uint8Array || function() {
|
|
72349
72361
|
};
|
|
72350
72362
|
function K(be) {
|
|
@@ -72359,13 +72371,13 @@ function require_stream_readable() {
|
|
|
72359
72371
|
var Q = requireBuffer_list(), ee = destroy_1, te = state, ne = te.getHighWaterMark, re = errorsBrowser.codes, ae = re.ERR_INVALID_ARG_TYPE, se = re.ERR_STREAM_PUSH_AFTER_EOF, fe = re.ERR_METHOD_NOT_IMPLEMENTED, le = re.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, ce, ue, he;
|
|
72360
72372
|
inherits_browserExports($e, U);
|
|
72361
72373
|
var ve = ee.errorOrDestroy, me = ["error", "close", "destroy", "pause", "resume"];
|
|
72362
|
-
function ge(be, ye,
|
|
72374
|
+
function ge(be, ye, Me) {
|
|
72363
72375
|
if (typeof be.prependListener == "function")
|
|
72364
|
-
return be.prependListener(ye,
|
|
72365
|
-
!be._events || !be._events[ye] ? be.on(ye,
|
|
72376
|
+
return be.prependListener(ye, Me);
|
|
72377
|
+
!be._events || !be._events[ye] ? be.on(ye, Me) : Array.isArray(be._events[ye]) ? be._events[ye].unshift(Me) : be._events[ye] = [Me, be._events[ye]];
|
|
72366
72378
|
}
|
|
72367
|
-
function _e(be, ye,
|
|
72368
|
-
$ = $ || require_stream_duplex(), be = be || {}, typeof
|
|
72379
|
+
function _e(be, ye, Me) {
|
|
72380
|
+
$ = $ || require_stream_duplex(), be = be || {}, typeof Me != "boolean" && (Me = ye instanceof $), this.objectMode = !!be.objectMode, Me && (this.objectMode = this.objectMode || !!be.readableObjectMode), this.highWaterMark = ne(this, be, "readableHighWaterMark", Me), this.buffer = new Q(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = be.emitClose !== !1, this.autoDestroy = !!be.autoDestroy, this.destroyed = !1, this.defaultEncoding = be.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, be.encoding && (ce || (ce = requireString_decoder().StringDecoder), this.decoder = new ce(be.encoding), this.encoding = be.encoding);
|
|
72369
72381
|
}
|
|
72370
72382
|
function $e(be) {
|
|
72371
72383
|
if ($ = $ || require_stream_duplex(), !(this instanceof $e))
|
|
@@ -72387,12 +72399,12 @@ function require_stream_readable() {
|
|
|
72387
72399
|
}), $e.prototype.destroy = ee.destroy, $e.prototype._undestroy = ee.undestroy, $e.prototype._destroy = function(be, ye) {
|
|
72388
72400
|
ye(be);
|
|
72389
72401
|
}, $e.prototype.push = function(be, ye) {
|
|
72390
|
-
var
|
|
72391
|
-
return
|
|
72402
|
+
var Me = this._readableState, Ye;
|
|
72403
|
+
return Me.objectMode ? Ye = !0 : typeof be == "string" && (ye = ye || Me.defaultEncoding, ye !== Me.encoding && (be = q.from(be, ye), ye = ""), Ye = !0), Ce(this, be, ye, !1, Ye);
|
|
72392
72404
|
}, $e.prototype.unshift = function(be) {
|
|
72393
72405
|
return Ce(this, be, null, !0, !1);
|
|
72394
72406
|
};
|
|
72395
|
-
function Ce(be, ye,
|
|
72407
|
+
function Ce(be, ye, Me, Ye, ct) {
|
|
72396
72408
|
Z("readableAddChunk", ye);
|
|
72397
72409
|
var ut = be._readableState;
|
|
72398
72410
|
if (ye === null)
|
|
@@ -72409,19 +72421,19 @@ function require_stream_readable() {
|
|
|
72409
72421
|
else {
|
|
72410
72422
|
if (ut.destroyed)
|
|
72411
72423
|
return !1;
|
|
72412
|
-
ut.reading = !1, ut.decoder && !
|
|
72424
|
+
ut.reading = !1, ut.decoder && !Me ? (ye = ut.decoder.write(ye), ut.objectMode || ye.length !== 0 ? Ee(be, ut, ye, !1) : at(be, ut)) : Ee(be, ut, ye, !1);
|
|
72413
72425
|
}
|
|
72414
72426
|
else
|
|
72415
72427
|
Ye || (ut.reading = !1, at(be, ut));
|
|
72416
72428
|
}
|
|
72417
72429
|
return !ut.ended && (ut.length < ut.highWaterMark || ut.length === 0);
|
|
72418
72430
|
}
|
|
72419
|
-
function Ee(be, ye,
|
|
72420
|
-
ye.flowing && ye.length === 0 && !ye.sync ? (ye.awaitDrain = 0, be.emit("data",
|
|
72431
|
+
function Ee(be, ye, Me, Ye) {
|
|
72432
|
+
ye.flowing && ye.length === 0 && !ye.sync ? (ye.awaitDrain = 0, be.emit("data", Me)) : (ye.length += ye.objectMode ? 1 : Me.length, Ye ? ye.buffer.unshift(Me) : ye.buffer.push(Me), ye.needReadable && st(be)), at(be, ye);
|
|
72421
72433
|
}
|
|
72422
72434
|
function xe(be, ye) {
|
|
72423
|
-
var
|
|
72424
|
-
return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (
|
|
72435
|
+
var Me;
|
|
72436
|
+
return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (Me = new ae("chunk", ["string", "Buffer", "Uint8Array"], ye)), Me;
|
|
72425
72437
|
}
|
|
72426
72438
|
$e.prototype.isPaused = function() {
|
|
72427
72439
|
return this._readableState.flowing === !1;
|
|
@@ -72429,8 +72441,8 @@ function require_stream_readable() {
|
|
|
72429
72441
|
ce || (ce = requireString_decoder().StringDecoder);
|
|
72430
72442
|
var ye = new ce(be);
|
|
72431
72443
|
this._readableState.decoder = ye, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
72432
|
-
for (var
|
|
72433
|
-
Ye += ye.write(
|
|
72444
|
+
for (var Me = this._readableState.buffer.head, Ye = ""; Me !== null; )
|
|
72445
|
+
Ye += ye.write(Me.data), Me = Me.next;
|
|
72434
72446
|
return this._readableState.buffer.clear(), Ye !== "" && this._readableState.buffer.push(Ye), this._readableState.length = Ye.length, this;
|
|
72435
72447
|
};
|
|
72436
72448
|
var Be = 1073741824;
|
|
@@ -72442,21 +72454,21 @@ function require_stream_readable() {
|
|
|
72442
72454
|
}
|
|
72443
72455
|
$e.prototype.read = function(be) {
|
|
72444
72456
|
Z("read", be), be = parseInt(be, 10);
|
|
72445
|
-
var ye = this._readableState,
|
|
72457
|
+
var ye = this._readableState, Me = be;
|
|
72446
72458
|
if (be !== 0 && (ye.emittedReadable = !1), be === 0 && ye.needReadable && ((ye.highWaterMark !== 0 ? ye.length >= ye.highWaterMark : ye.length > 0) || ye.ended))
|
|
72447
72459
|
return Z("read: emitReadable", ye.length, ye.ended), ye.length === 0 && ye.ended ? Ie(this) : st(this), null;
|
|
72448
72460
|
if (be = Ge(be, ye), be === 0 && ye.ended)
|
|
72449
72461
|
return ye.length === 0 && Ie(this), null;
|
|
72450
72462
|
var Ye = ye.needReadable;
|
|
72451
|
-
Z("need readable", Ye), (ye.length === 0 || ye.length - be < ye.highWaterMark) && (Ye = !0, Z("length less than watermark", Ye)), ye.ended || ye.reading ? (Ye = !1, Z("reading or ended", Ye)) : Ye && (Z("do read"), ye.reading = !0, ye.sync = !0, ye.length === 0 && (ye.needReadable = !0), this._read(ye.highWaterMark), ye.sync = !1, ye.reading || (be = Ge(
|
|
72463
|
+
Z("need readable", Ye), (ye.length === 0 || ye.length - be < ye.highWaterMark) && (Ye = !0, Z("length less than watermark", Ye)), ye.ended || ye.reading ? (Ye = !1, Z("reading or ended", Ye)) : Ye && (Z("do read"), ye.reading = !0, ye.sync = !0, ye.length === 0 && (ye.needReadable = !0), this._read(ye.highWaterMark), ye.sync = !1, ye.reading || (be = Ge(Me, ye)));
|
|
72452
72464
|
var ct;
|
|
72453
|
-
return be > 0 ? ct = He(be, ye) : ct = null, ct === null ? (ye.needReadable = ye.length <= ye.highWaterMark, be = 0) : (ye.length -= be, ye.awaitDrain = 0), ye.length === 0 && (ye.ended || (ye.needReadable = !0),
|
|
72465
|
+
return be > 0 ? ct = He(be, ye) : ct = null, ct === null ? (ye.needReadable = ye.length <= ye.highWaterMark, be = 0) : (ye.length -= be, ye.awaitDrain = 0), ye.length === 0 && (ye.ended || (ye.needReadable = !0), Me !== be && ye.ended && Ie(this)), ct !== null && this.emit("data", ct), ct;
|
|
72454
72466
|
};
|
|
72455
72467
|
function rt(be, ye) {
|
|
72456
72468
|
if (Z("onEofChunk"), !ye.ended) {
|
|
72457
72469
|
if (ye.decoder) {
|
|
72458
|
-
var
|
|
72459
|
-
|
|
72470
|
+
var Me = ye.decoder.end();
|
|
72471
|
+
Me && Me.length && (ye.buffer.push(Me), ye.length += ye.objectMode ? 1 : Me.length);
|
|
72460
72472
|
}
|
|
72461
72473
|
ye.ended = !0, ye.sync ? st(be) : (ye.needReadable = !1, ye.emittedReadable || (ye.emittedReadable = !0, lt(be)));
|
|
72462
72474
|
}
|
|
@@ -72474,8 +72486,8 @@ function require_stream_readable() {
|
|
|
72474
72486
|
}
|
|
72475
72487
|
function ht(be, ye) {
|
|
72476
72488
|
for (; !ye.reading && !ye.ended && (ye.length < ye.highWaterMark || ye.flowing && ye.length === 0); ) {
|
|
72477
|
-
var
|
|
72478
|
-
if (Z("maybeReadMore read 0"), be.read(0),
|
|
72489
|
+
var Me = ye.length;
|
|
72490
|
+
if (Z("maybeReadMore read 0"), be.read(0), Me === ye.length)
|
|
72479
72491
|
break;
|
|
72480
72492
|
}
|
|
72481
72493
|
ye.readingMore = !1;
|
|
@@ -72483,7 +72495,7 @@ function require_stream_readable() {
|
|
|
72483
72495
|
$e.prototype._read = function(be) {
|
|
72484
72496
|
ve(this, new fe("_read()"));
|
|
72485
72497
|
}, $e.prototype.pipe = function(be, ye) {
|
|
72486
|
-
var
|
|
72498
|
+
var Me = this, Ye = this._readableState;
|
|
72487
72499
|
switch (Ye.pipesCount) {
|
|
72488
72500
|
case 0:
|
|
72489
72501
|
Ye.pipes = be;
|
|
@@ -72497,24 +72509,24 @@ function require_stream_readable() {
|
|
|
72497
72509
|
}
|
|
72498
72510
|
Ye.pipesCount += 1, Z("pipe count=%d opts=%j", Ye.pipesCount, ye);
|
|
72499
72511
|
var ct = (!ye || ye.end !== !1) && be !== process.stdout && be !== process.stderr, ut = ct ? St : zt;
|
|
72500
|
-
Ye.endEmitted ? process.nextTick(ut) :
|
|
72512
|
+
Ye.endEmitted ? process.nextTick(ut) : Me.once("end", ut), be.on("unpipe", wt);
|
|
72501
72513
|
function wt(de, ie) {
|
|
72502
|
-
Z("onunpipe"), de ===
|
|
72514
|
+
Z("onunpipe"), de === Me && ie && ie.hasUnpiped === !1 && (ie.hasUnpiped = !0, Kt());
|
|
72503
72515
|
}
|
|
72504
72516
|
function St() {
|
|
72505
72517
|
Z("onend"), be.end();
|
|
72506
72518
|
}
|
|
72507
|
-
var it = tt(
|
|
72519
|
+
var it = tt(Me);
|
|
72508
72520
|
be.on("drain", it);
|
|
72509
72521
|
var Ut = !1;
|
|
72510
72522
|
function Kt() {
|
|
72511
|
-
Z("cleanup"), be.removeListener("close", rn), be.removeListener("finish", Ct), be.removeListener("drain", it), be.removeListener("error", Ht), be.removeListener("unpipe", wt),
|
|
72523
|
+
Z("cleanup"), be.removeListener("close", rn), be.removeListener("finish", Ct), be.removeListener("drain", it), be.removeListener("error", Ht), be.removeListener("unpipe", wt), Me.removeListener("end", St), Me.removeListener("end", zt), Me.removeListener("data", It), Ut = !0, Ye.awaitDrain && (!be._writableState || be._writableState.needDrain) && it();
|
|
72512
72524
|
}
|
|
72513
|
-
|
|
72525
|
+
Me.on("data", It);
|
|
72514
72526
|
function It(de) {
|
|
72515
72527
|
Z("ondata");
|
|
72516
72528
|
var ie = be.write(de);
|
|
72517
|
-
Z("dest.write", ie), ie === !1 && ((Ye.pipesCount === 1 && Ye.pipes === be || Ye.pipesCount > 1 && Te(Ye.pipes, be) !== -1) && !Ut && (Z("false write response, pause", Ye.awaitDrain), Ye.awaitDrain++),
|
|
72529
|
+
Z("dest.write", ie), ie === !1 && ((Ye.pipesCount === 1 && Ye.pipes === be || Ye.pipesCount > 1 && Te(Ye.pipes, be) !== -1) && !Ut && (Z("false write response, pause", Ye.awaitDrain), Ye.awaitDrain++), Me.pause());
|
|
72518
72530
|
}
|
|
72519
72531
|
function Ht(de) {
|
|
72520
72532
|
Z("onerror", de), zt(), be.removeListener("error", Ht), I(be, "error") === 0 && ve(be, de);
|
|
@@ -72529,24 +72541,24 @@ function require_stream_readable() {
|
|
|
72529
72541
|
}
|
|
72530
72542
|
be.once("finish", Ct);
|
|
72531
72543
|
function zt() {
|
|
72532
|
-
Z("unpipe"),
|
|
72544
|
+
Z("unpipe"), Me.unpipe(be);
|
|
72533
72545
|
}
|
|
72534
|
-
return be.emit("pipe",
|
|
72546
|
+
return be.emit("pipe", Me), Ye.flowing || (Z("pipe resume"), Me.resume()), be;
|
|
72535
72547
|
};
|
|
72536
72548
|
function tt(be) {
|
|
72537
72549
|
return function() {
|
|
72538
|
-
var
|
|
72539
|
-
Z("pipeOnDrain",
|
|
72550
|
+
var Me = be._readableState;
|
|
72551
|
+
Z("pipeOnDrain", Me.awaitDrain), Me.awaitDrain && Me.awaitDrain--, Me.awaitDrain === 0 && I(be, "data") && (Me.flowing = !0, Ue(be));
|
|
72540
72552
|
};
|
|
72541
72553
|
}
|
|
72542
72554
|
$e.prototype.unpipe = function(be) {
|
|
72543
|
-
var ye = this._readableState,
|
|
72555
|
+
var ye = this._readableState, Me = {
|
|
72544
72556
|
hasUnpiped: !1
|
|
72545
72557
|
};
|
|
72546
72558
|
if (ye.pipesCount === 0)
|
|
72547
72559
|
return this;
|
|
72548
72560
|
if (ye.pipesCount === 1)
|
|
72549
|
-
return be && be !== ye.pipes ? this : (be || (be = ye.pipes), ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1, be && be.emit("unpipe", this,
|
|
72561
|
+
return be && be !== ye.pipes ? this : (be || (be = ye.pipes), ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1, be && be.emit("unpipe", this, Me), this);
|
|
72550
72562
|
if (!be) {
|
|
72551
72563
|
var Ye = ye.pipes, ct = ye.pipesCount;
|
|
72552
72564
|
ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1;
|
|
@@ -72557,13 +72569,13 @@ function require_stream_readable() {
|
|
|
72557
72569
|
return this;
|
|
72558
72570
|
}
|
|
72559
72571
|
var wt = Te(ye.pipes, be);
|
|
72560
|
-
return wt === -1 ? this : (ye.pipes.splice(wt, 1), ye.pipesCount -= 1, ye.pipesCount === 1 && (ye.pipes = ye.pipes[0]), be.emit("unpipe", this,
|
|
72572
|
+
return wt === -1 ? this : (ye.pipes.splice(wt, 1), ye.pipesCount -= 1, ye.pipesCount === 1 && (ye.pipes = ye.pipes[0]), be.emit("unpipe", this, Me), this);
|
|
72561
72573
|
}, $e.prototype.on = function(be, ye) {
|
|
72562
|
-
var
|
|
72563
|
-
return be === "data" ? (Ye.readableListening = this.listenerCount("readable") > 0, Ye.flowing !== !1 && this.resume()) : be === "readable" && !Ye.endEmitted && !Ye.readableListening && (Ye.readableListening = Ye.needReadable = !0, Ye.flowing = !1, Ye.emittedReadable = !1, Z("on readable", Ye.length, Ye.reading), Ye.length ? st(this) : Ye.reading || process.nextTick(qe, this)),
|
|
72574
|
+
var Me = U.prototype.on.call(this, be, ye), Ye = this._readableState;
|
|
72575
|
+
return be === "data" ? (Ye.readableListening = this.listenerCount("readable") > 0, Ye.flowing !== !1 && this.resume()) : be === "readable" && !Ye.endEmitted && !Ye.readableListening && (Ye.readableListening = Ye.needReadable = !0, Ye.flowing = !1, Ye.emittedReadable = !1, Z("on readable", Ye.length, Ye.reading), Ye.length ? st(this) : Ye.reading || process.nextTick(qe, this)), Me;
|
|
72564
72576
|
}, $e.prototype.addListener = $e.prototype.on, $e.prototype.removeListener = function(be, ye) {
|
|
72565
|
-
var
|
|
72566
|
-
return be === "readable" && process.nextTick(ze, this),
|
|
72577
|
+
var Me = U.prototype.removeListener.call(this, be, ye);
|
|
72578
|
+
return be === "readable" && process.nextTick(ze, this), Me;
|
|
72567
72579
|
}, $e.prototype.removeAllListeners = function(be) {
|
|
72568
72580
|
var ye = U.prototype.removeAllListeners.apply(this, arguments);
|
|
72569
72581
|
return (be === "readable" || be === void 0) && process.nextTick(ze, this), ye;
|
|
@@ -72594,15 +72606,15 @@ function require_stream_readable() {
|
|
|
72594
72606
|
;
|
|
72595
72607
|
}
|
|
72596
72608
|
$e.prototype.wrap = function(be) {
|
|
72597
|
-
var ye = this,
|
|
72609
|
+
var ye = this, Me = this._readableState, Ye = !1;
|
|
72598
72610
|
be.on("end", function() {
|
|
72599
|
-
if (Z("wrapped end"),
|
|
72600
|
-
var wt =
|
|
72611
|
+
if (Z("wrapped end"), Me.decoder && !Me.ended) {
|
|
72612
|
+
var wt = Me.decoder.end();
|
|
72601
72613
|
wt && wt.length && ye.push(wt);
|
|
72602
72614
|
}
|
|
72603
72615
|
ye.push(null);
|
|
72604
72616
|
}), be.on("data", function(wt) {
|
|
72605
|
-
if (Z("wrapped data"),
|
|
72617
|
+
if (Z("wrapped data"), Me.decoder && (wt = Me.decoder.write(wt)), !(Me.objectMode && wt == null) && !(!Me.objectMode && (!wt || !wt.length))) {
|
|
72606
72618
|
var St = ye.push(wt);
|
|
72607
72619
|
St || (Ye = !0, be.pause());
|
|
72608
72620
|
}
|
|
@@ -72659,8 +72671,8 @@ function require_stream_readable() {
|
|
|
72659
72671
|
function He(be, ye) {
|
|
72660
72672
|
if (ye.length === 0)
|
|
72661
72673
|
return null;
|
|
72662
|
-
var
|
|
72663
|
-
return ye.objectMode ?
|
|
72674
|
+
var Me;
|
|
72675
|
+
return ye.objectMode ? Me = ye.buffer.shift() : !be || be >= ye.length ? (ye.decoder ? Me = ye.buffer.join("") : ye.buffer.length === 1 ? Me = ye.buffer.first() : Me = ye.buffer.concat(ye.length), ye.buffer.clear()) : Me = ye.buffer.consume(be, ye.decoder), Me;
|
|
72664
72676
|
}
|
|
72665
72677
|
function Ie(be) {
|
|
72666
72678
|
var ye = be._readableState;
|
|
@@ -72668,17 +72680,17 @@ function require_stream_readable() {
|
|
|
72668
72680
|
}
|
|
72669
72681
|
function Re(be, ye) {
|
|
72670
72682
|
if (Z("endReadableNT", be.endEmitted, be.length), !be.endEmitted && be.length === 0 && (be.endEmitted = !0, ye.readable = !1, ye.emit("end"), be.autoDestroy)) {
|
|
72671
|
-
var
|
|
72672
|
-
(!
|
|
72683
|
+
var Me = ye._writableState;
|
|
72684
|
+
(!Me || Me.autoDestroy && Me.finished) && ye.destroy();
|
|
72673
72685
|
}
|
|
72674
72686
|
}
|
|
72675
72687
|
typeof Symbol == "function" && ($e.from = function(be, ye) {
|
|
72676
72688
|
return he === void 0 && (he = requireFromBrowser()), he($e, be, ye);
|
|
72677
72689
|
});
|
|
72678
72690
|
function Te(be, ye) {
|
|
72679
|
-
for (var
|
|
72680
|
-
if (be[
|
|
72681
|
-
return
|
|
72691
|
+
for (var Me = 0, Ye = be.length; Me < Ye; Me++)
|
|
72692
|
+
if (be[Me] === ye)
|
|
72693
|
+
return Me;
|
|
72682
72694
|
return -1;
|
|
72683
72695
|
}
|
|
72684
72696
|
return _stream_readable;
|
|
@@ -73331,7 +73343,7 @@ var DeferredTask = class {
|
|
|
73331
73343
|
action: J
|
|
73332
73344
|
}, {
|
|
73333
73345
|
F: __dxlog_file$6,
|
|
73334
|
-
L:
|
|
73346
|
+
L: 81,
|
|
73335
73347
|
S: void 0,
|
|
73336
73348
|
C: (Z, Q) => Z(...Q)
|
|
73337
73349
|
}), {
|
|
@@ -73413,7 +73425,7 @@ var DeferredTask = class {
|
|
|
73413
73425
|
authCode: Y
|
|
73414
73426
|
}, {
|
|
73415
73427
|
F: __dxlog_file$6,
|
|
73416
|
-
L:
|
|
73428
|
+
L: 165,
|
|
73417
73429
|
S: void 0,
|
|
73418
73430
|
C: (J, Z) => J(...Z)
|
|
73419
73431
|
}), I.observable.authenticate(Y)), [
|
|
@@ -73436,6 +73448,7 @@ var DeferredTask = class {
|
|
|
73436
73448
|
connect: q,
|
|
73437
73449
|
authenticate: G,
|
|
73438
73450
|
id: Y == null ? void 0 : Y.invitationId,
|
|
73451
|
+
multiUse: Y == null ? void 0 : Y.multiUse,
|
|
73439
73452
|
invitationCode: Y ? InvitationEncoder.encode(Y) : void 0,
|
|
73440
73453
|
authCode: Y == null ? void 0 : Y.authCode,
|
|
73441
73454
|
authMethod: Y == null ? void 0 : Y.authMethod,
|
|
@@ -73520,7 +73533,7 @@ const AuthCode = ($) => {
|
|
|
73520
73533
|
reverseEffects: K,
|
|
73521
73534
|
...Y
|
|
73522
73535
|
}) => {
|
|
73523
|
-
const { t: J } = useTranslation("os"), { cancel: Z, status: Q, invitationCode: ee, authCode: te,
|
|
73536
|
+
const { t: J } = useTranslation("os"), { cancel: Z, status: Q, invitationCode: ee, authCode: te, multiUse: ne } = I, re = !([Invitation.State.ERROR, Invitation.State.TIMEOUT, Invitation.State.CANCELLED].indexOf(Q) >= 0), ae = ne || [Invitation.State.INIT, Invitation.State.CONNECTING, Invitation.State.CONNECTED].indexOf(Q) >= 0, se = Q === Invitation.State.READY_FOR_AUTHENTICATION, fe = useCallback(() => q == null ? void 0 : q($), [$, q]), le = ee && G(ee), ce = $ == null ? void 0 : $.get().invitationId, ue = $ == null ? void 0 : $.get().lifetime, he = $ != null && $.expiry ? formatDistanceToNow($ == null ? void 0 : $.expiry, { addSuffix: !0 }) : void 0, ve = [
|
|
73524
73537
|
Invitation.State.INIT,
|
|
73525
73538
|
Invitation.State.CONNECTING,
|
|
73526
73539
|
Invitation.State.CONNECTED,
|
|
@@ -73541,9 +73554,9 @@ const AuthCode = ($) => {
|
|
|
73541
73554
|
...Y,
|
|
73542
73555
|
classNames: ["flex gap-2 pis-3 pie-1 items-center relative", Y.classNames]
|
|
73543
73556
|
},
|
|
73544
|
-
/* @__PURE__ */ React__default.createElement(ListItem.Heading, { classNames: "sr-only" }, J(ne
|
|
73545
|
-
ne
|
|
73546
|
-
/* @__PURE__ */ React__default.createElement(Tooltip.Root, null, /* @__PURE__ */ React__default.createElement(Avatar.Root, { ...avatarProps, animation: ve, status: _e }, /* @__PURE__ */ React__default.createElement(Tooltip.Trigger, { asChild: !0 }, /* @__PURE__ */ React__default.createElement(Avatar.Frame, { tabIndex: 0, classNames: [focusRing, "relative rounded-full place-self-center"] }, /* @__PURE__ */ React__default.createElement(Avatar.Fallback, { text: hexToEmoji(ce) })))), /* @__PURE__ */ React__default.createElement(Tooltip.Portal, null, /* @__PURE__ */ React__default.createElement(Tooltip.Content, { side: "left", classNames: "z-[70]" }, J(ne
|
|
73557
|
+
/* @__PURE__ */ React__default.createElement(ListItem.Heading, { classNames: "sr-only" }, J(ne ? "invite many list item label" : "invite one list item label")),
|
|
73558
|
+
ne && /* @__PURE__ */ React__default.createElement(AvatarStackEffect, { status: _e, animation: ve, reverseEffects: K }),
|
|
73559
|
+
/* @__PURE__ */ React__default.createElement(Tooltip.Root, null, /* @__PURE__ */ React__default.createElement(Avatar.Root, { ...avatarProps, animation: ve, status: _e }, /* @__PURE__ */ React__default.createElement(Tooltip.Trigger, { asChild: !0 }, /* @__PURE__ */ React__default.createElement(Avatar.Frame, { tabIndex: 0, classNames: [focusRing, "relative rounded-full place-self-center"] }, /* @__PURE__ */ React__default.createElement(Avatar.Fallback, { text: hexToEmoji(ce) })))), /* @__PURE__ */ React__default.createElement(Tooltip.Portal, null, /* @__PURE__ */ React__default.createElement(Tooltip.Content, { side: "left", classNames: "z-[70]" }, J(ne ? "invite many qr label" : "invite one qr label"), /* @__PURE__ */ React__default.createElement(Tooltip.Arrow, null)))),
|
|
73547
73560
|
ae && le ? /* @__PURE__ */ React__default.createElement(Tooltip.Root, null, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tooltip.Trigger, { asChild: !0 }, /* @__PURE__ */ React__default.createElement(
|
|
73548
73561
|
Button,
|
|
73549
73562
|
{
|
|
@@ -78239,8 +78252,8 @@ function parse($, I, U) {
|
|
|
78239
78252
|
function xe(Re, Te, be) {
|
|
78240
78253
|
var ye = G.line;
|
|
78241
78254
|
if (Re && (typeof Re.comment != "string" && (Re.comment = Q()), Re.filename = parse.filename), Z("{", !0)) {
|
|
78242
|
-
for (var
|
|
78243
|
-
Te(
|
|
78255
|
+
for (var Me; (Me = K()) !== "}"; )
|
|
78256
|
+
Te(Me);
|
|
78244
78257
|
Z(";", !0);
|
|
78245
78258
|
} else
|
|
78246
78259
|
be && be(), Z(";"), Re && (typeof Re.comment != "string" || q) && (Re.comment = Q(ye) || Re.comment);
|
|
@@ -78249,21 +78262,21 @@ function parse($, I, U) {
|
|
|
78249
78262
|
if (!nameRe.test(Te = K()))
|
|
78250
78263
|
throw ce(Te, "type name");
|
|
78251
78264
|
var be = new Type(Te);
|
|
78252
|
-
xe(be, function(
|
|
78253
|
-
if (!Ee(be,
|
|
78254
|
-
switch (
|
|
78265
|
+
xe(be, function(Me) {
|
|
78266
|
+
if (!Ee(be, Me))
|
|
78267
|
+
switch (Me) {
|
|
78255
78268
|
case "map":
|
|
78256
78269
|
rt(be);
|
|
78257
78270
|
break;
|
|
78258
78271
|
case "required":
|
|
78259
78272
|
case "repeated":
|
|
78260
|
-
je(be,
|
|
78273
|
+
je(be, Me);
|
|
78261
78274
|
break;
|
|
78262
78275
|
case "optional":
|
|
78263
78276
|
se ? je(be, "proto3_optional") : je(be, "optional");
|
|
78264
78277
|
break;
|
|
78265
78278
|
case "oneof":
|
|
78266
|
-
st(be,
|
|
78279
|
+
st(be, Me);
|
|
78267
78280
|
break;
|
|
78268
78281
|
case "extensions":
|
|
78269
78282
|
ve(be.extensions || (be.extensions = []));
|
|
@@ -78272,9 +78285,9 @@ function parse($, I, U) {
|
|
|
78272
78285
|
ve(be.reserved || (be.reserved = []), !0);
|
|
78273
78286
|
break;
|
|
78274
78287
|
default:
|
|
78275
|
-
if (!se || !typeRefRe.test(
|
|
78276
|
-
throw ce(
|
|
78277
|
-
Y(
|
|
78288
|
+
if (!se || !typeRefRe.test(Me))
|
|
78289
|
+
throw ce(Me);
|
|
78290
|
+
Y(Me), je(be, "optional");
|
|
78278
78291
|
break;
|
|
78279
78292
|
}
|
|
78280
78293
|
}), Re.add(be);
|
|
@@ -78287,11 +78300,11 @@ function parse($, I, U) {
|
|
|
78287
78300
|
}
|
|
78288
78301
|
if (!typeRefRe.test(ye))
|
|
78289
78302
|
throw ce(ye, "type");
|
|
78290
|
-
var
|
|
78291
|
-
if (!nameRe.test(
|
|
78292
|
-
throw ce(
|
|
78293
|
-
|
|
78294
|
-
var Ye = new Field(
|
|
78303
|
+
var Me = K();
|
|
78304
|
+
if (!nameRe.test(Me))
|
|
78305
|
+
throw ce(Me, "name");
|
|
78306
|
+
Me = le(Me), Z("=");
|
|
78307
|
+
var Ye = new Field(Me, ge(K()), ye, Te, be);
|
|
78295
78308
|
if (xe(Ye, function(wt) {
|
|
78296
78309
|
if (wt === "option")
|
|
78297
78310
|
ht(Ye, wt), Z(";");
|
|
@@ -78300,7 +78313,7 @@ function parse($, I, U) {
|
|
|
78300
78313
|
}, function() {
|
|
78301
78314
|
nt(Ye);
|
|
78302
78315
|
}), Te === "proto3_optional") {
|
|
78303
|
-
var ct = new OneOf("_" +
|
|
78316
|
+
var ct = new OneOf("_" + Me);
|
|
78304
78317
|
Ye.setOption("proto3_optional", !0), ct.add(Ye), Re.add(ct);
|
|
78305
78318
|
} else
|
|
78306
78319
|
Re.add(Ye);
|
|
@@ -78317,9 +78330,9 @@ function parse($, I, U) {
|
|
|
78317
78330
|
throw ce(be, "name");
|
|
78318
78331
|
var ye = util.lcFirst(be);
|
|
78319
78332
|
be === ye && (be = util.ucFirst(be)), Z("=");
|
|
78320
|
-
var
|
|
78333
|
+
var Me = ge(K()), Ye = new Type(be);
|
|
78321
78334
|
Ye.group = !0;
|
|
78322
|
-
var ct = new Field(ye,
|
|
78335
|
+
var ct = new Field(ye, Me, be, Te);
|
|
78323
78336
|
ct.filename = parse.filename, xe(Ye, function(wt) {
|
|
78324
78337
|
switch (wt) {
|
|
78325
78338
|
case "option":
|
|
@@ -78357,38 +78370,38 @@ function parse($, I, U) {
|
|
|
78357
78370
|
if (!nameRe.test(ye))
|
|
78358
78371
|
throw ce(ye, "name");
|
|
78359
78372
|
Z("=");
|
|
78360
|
-
var
|
|
78361
|
-
xe(
|
|
78373
|
+
var Me = new MapField(le(ye), ge(K()), Te, be);
|
|
78374
|
+
xe(Me, function(ct) {
|
|
78362
78375
|
if (ct === "option")
|
|
78363
|
-
ht(
|
|
78376
|
+
ht(Me, ct), Z(";");
|
|
78364
78377
|
else
|
|
78365
78378
|
throw ce(ct);
|
|
78366
78379
|
}, function() {
|
|
78367
|
-
nt(
|
|
78368
|
-
}), Re.add(
|
|
78380
|
+
nt(Me);
|
|
78381
|
+
}), Re.add(Me);
|
|
78369
78382
|
}
|
|
78370
78383
|
function st(Re, Te) {
|
|
78371
78384
|
if (!nameRe.test(Te = K()))
|
|
78372
78385
|
throw ce(Te, "name");
|
|
78373
78386
|
var be = new OneOf(le(Te));
|
|
78374
|
-
xe(be, function(
|
|
78375
|
-
|
|
78387
|
+
xe(be, function(Me) {
|
|
78388
|
+
Me === "option" ? (ht(be, Me), Z(";")) : (Y(Me), je(be, "optional"));
|
|
78376
78389
|
}), Re.add(be);
|
|
78377
78390
|
}
|
|
78378
78391
|
function lt(Re, Te) {
|
|
78379
78392
|
if (!nameRe.test(Te = K()))
|
|
78380
78393
|
throw ce(Te, "name");
|
|
78381
78394
|
var be = new Enum(Te);
|
|
78382
|
-
xe(be, function(
|
|
78383
|
-
switch (
|
|
78395
|
+
xe(be, function(Me) {
|
|
78396
|
+
switch (Me) {
|
|
78384
78397
|
case "option":
|
|
78385
|
-
ht(be,
|
|
78398
|
+
ht(be, Me), Z(";");
|
|
78386
78399
|
break;
|
|
78387
78400
|
case "reserved":
|
|
78388
78401
|
ve(be.reserved || (be.reserved = []), !0);
|
|
78389
78402
|
break;
|
|
78390
78403
|
default:
|
|
78391
|
-
at(be,
|
|
78404
|
+
at(be, Me);
|
|
78392
78405
|
}
|
|
78393
78406
|
}), Re.add(be);
|
|
78394
78407
|
}
|
|
@@ -78399,8 +78412,8 @@ function parse($, I, U) {
|
|
|
78399
78412
|
var be = ge(K(), !0), ye = {
|
|
78400
78413
|
options: void 0
|
|
78401
78414
|
};
|
|
78402
|
-
ye.setOption = function(
|
|
78403
|
-
this.options === void 0 && (this.options = {}), this.options[
|
|
78415
|
+
ye.setOption = function(Me, Ye) {
|
|
78416
|
+
this.options === void 0 && (this.options = {}), this.options[Me] = Ye;
|
|
78404
78417
|
}, xe(ye, function(Ye) {
|
|
78405
78418
|
if (Ye === "option")
|
|
78406
78419
|
ht(ye, Ye), Z(";");
|
|
@@ -78414,17 +78427,17 @@ function parse($, I, U) {
|
|
|
78414
78427
|
var be = Z("(", !0);
|
|
78415
78428
|
if (!typeRefRe.test(Te = K()))
|
|
78416
78429
|
throw ce(Te, "name");
|
|
78417
|
-
var ye = Te,
|
|
78418
|
-
be && (Z(")"), ye = "(" + ye + ")",
|
|
78430
|
+
var ye = Te, Me = ye, Ye;
|
|
78431
|
+
be && (Z(")"), ye = "(" + ye + ")", Me = ye, Te = J(), fqTypeRefRe.test(Te) && (Ye = Te.slice(1), ye += Te, K())), Z("=");
|
|
78419
78432
|
var ct = tt(Re, ye);
|
|
78420
|
-
qe(Re,
|
|
78433
|
+
qe(Re, Me, ct, Ye);
|
|
78421
78434
|
}
|
|
78422
78435
|
function tt(Re, Te) {
|
|
78423
78436
|
if (Z("{", !0)) {
|
|
78424
78437
|
for (var be = {}; !Z("}", !0); ) {
|
|
78425
78438
|
if (!nameRe.test(Ie = K()))
|
|
78426
78439
|
throw ce(Ie, "name");
|
|
78427
|
-
var ye,
|
|
78440
|
+
var ye, Me = Ie;
|
|
78428
78441
|
if (Z(":", !0), J() === "{")
|
|
78429
78442
|
ye = tt(Re, Te + "." + Ie);
|
|
78430
78443
|
else if (J() === "[") {
|
|
@@ -78438,8 +78451,8 @@ function parse($, I, U) {
|
|
|
78438
78451
|
}
|
|
78439
78452
|
} else
|
|
78440
78453
|
ye = he(!0), ze(Re, Te + "." + Ie, ye);
|
|
78441
|
-
var ct = be[
|
|
78442
|
-
ct && (ye = [].concat(ct).concat(ye)), be[
|
|
78454
|
+
var ct = be[Me];
|
|
78455
|
+
ct && (ye = [].concat(ct).concat(ye)), be[Me] = ye, Z(",", !0), Z(";", !0);
|
|
78443
78456
|
}
|
|
78444
78457
|
return be;
|
|
78445
78458
|
}
|
|
@@ -78465,23 +78478,23 @@ function parse($, I, U) {
|
|
|
78465
78478
|
if (!nameRe.test(Te = K()))
|
|
78466
78479
|
throw ce(Te, "service name");
|
|
78467
78480
|
var be = new Service(Te);
|
|
78468
|
-
xe(be, function(
|
|
78469
|
-
if (!Ee(be,
|
|
78470
|
-
if (
|
|
78471
|
-
Ue(be,
|
|
78481
|
+
xe(be, function(Me) {
|
|
78482
|
+
if (!Ee(be, Me))
|
|
78483
|
+
if (Me === "rpc")
|
|
78484
|
+
Ue(be, Me);
|
|
78472
78485
|
else
|
|
78473
|
-
throw ce(
|
|
78486
|
+
throw ce(Me);
|
|
78474
78487
|
}), Re.add(be);
|
|
78475
78488
|
}
|
|
78476
78489
|
function Ue(Re, Te) {
|
|
78477
78490
|
var be = Q(), ye = Te;
|
|
78478
78491
|
if (!nameRe.test(Te = K()))
|
|
78479
78492
|
throw ce(Te, "name");
|
|
78480
|
-
var
|
|
78493
|
+
var Me = Te, Ye, ct, ut, wt;
|
|
78481
78494
|
if (Z("("), Z("stream", !0) && (ct = !0), !typeRefRe.test(Te = K()) || (Ye = Te, Z(")"), Z("returns"), Z("("), Z("stream", !0) && (wt = !0), !typeRefRe.test(Te = K())))
|
|
78482
78495
|
throw ce(Te);
|
|
78483
78496
|
ut = Te, Z(")");
|
|
78484
|
-
var St = new Method(
|
|
78497
|
+
var St = new Method(Me, ye, Ye, ut, ct, wt);
|
|
78485
78498
|
St.comment = be, xe(St, function(Ut) {
|
|
78486
78499
|
if (Ut === "option")
|
|
78487
78500
|
ht(St, Ut), Z(";");
|
|
@@ -78493,19 +78506,19 @@ function parse($, I, U) {
|
|
|
78493
78506
|
if (!typeRefRe.test(Te = K()))
|
|
78494
78507
|
throw ce(Te, "reference");
|
|
78495
78508
|
var be = Te;
|
|
78496
|
-
xe(null, function(
|
|
78497
|
-
switch (
|
|
78509
|
+
xe(null, function(Me) {
|
|
78510
|
+
switch (Me) {
|
|
78498
78511
|
case "required":
|
|
78499
78512
|
case "repeated":
|
|
78500
|
-
je(Re,
|
|
78513
|
+
je(Re, Me, be);
|
|
78501
78514
|
break;
|
|
78502
78515
|
case "optional":
|
|
78503
78516
|
se ? je(Re, "proto3_optional", be) : je(Re, "optional", be);
|
|
78504
78517
|
break;
|
|
78505
78518
|
default:
|
|
78506
|
-
if (!se || !typeRefRe.test(
|
|
78507
|
-
throw ce(
|
|
78508
|
-
Y(
|
|
78519
|
+
if (!se || !typeRefRe.test(Me))
|
|
78520
|
+
throw ce(Me);
|
|
78521
|
+
Y(Me), je(Re, "optional", be);
|
|
78509
78522
|
break;
|
|
78510
78523
|
}
|
|
78511
78524
|
});
|
|
@@ -79921,7 +79934,7 @@ lodash_ismatch.exports;
|
|
|
79921
79934
|
Nt[yt] = et(yt);
|
|
79922
79935
|
return Nt;
|
|
79923
79936
|
}
|
|
79924
|
-
function
|
|
79937
|
+
function Me(Fe) {
|
|
79925
79938
|
return function(et) {
|
|
79926
79939
|
return Fe(et);
|
|
79927
79940
|
};
|
|
@@ -80043,10 +80056,10 @@ lodash_ismatch.exports;
|
|
|
80043
80056
|
function Bt(Fe) {
|
|
80044
80057
|
return Je(this, Fe).has(Fe);
|
|
80045
80058
|
}
|
|
80046
|
-
function
|
|
80059
|
+
function Mt(Fe, et) {
|
|
80047
80060
|
return Je(this, Fe).set(Fe, et), this;
|
|
80048
80061
|
}
|
|
80049
|
-
ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set =
|
|
80062
|
+
ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set = Mt;
|
|
80050
80063
|
function Ot(Fe) {
|
|
80051
80064
|
var et = -1, yt = Fe ? Fe.length : 0;
|
|
80052
80065
|
for (this.__data__ = new ot(); ++et < yt; )
|
|
@@ -80101,7 +80114,7 @@ lodash_ismatch.exports;
|
|
|
80101
80114
|
return zt.call(Fe);
|
|
80102
80115
|
}
|
|
80103
80116
|
function Xn(Fe, et, yt, Nt, nn) {
|
|
80104
|
-
return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !
|
|
80117
|
+
return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !Ln(et) ? Fe !== Fe && et !== et : nr(Fe, et, Xn, yt, Nt, nn);
|
|
80105
80118
|
}
|
|
80106
80119
|
function nr(Fe, et, yt, Nt, nn, qt) {
|
|
80107
80120
|
var pn = fn(Fe), an = fn(et), en = Z, hn = Z;
|
|
@@ -80112,8 +80125,8 @@ lodash_ismatch.exports;
|
|
|
80112
80125
|
if (!(nn & K)) {
|
|
80113
80126
|
var In = yn && Ct.call(Fe, "__wrapped__"), Cn = kn && Ct.call(et, "__wrapped__");
|
|
80114
80127
|
if (In || Cn) {
|
|
80115
|
-
var
|
|
80116
|
-
return qt || (qt = new Yt()), yt(
|
|
80128
|
+
var Mn = In ? Fe.value() : Fe, Dn = Cn ? et.value() : et;
|
|
80129
|
+
return qt || (qt = new Yt()), yt(Mn, Dn, Nt, nn, qt);
|
|
80117
80130
|
}
|
|
80118
80131
|
}
|
|
80119
80132
|
return gn ? (qt || (qt = new Yt()), Oe(Fe, et, yt, Nt, nn, qt)) : !1;
|
|
@@ -80150,7 +80163,7 @@ lodash_ismatch.exports;
|
|
|
80150
80163
|
return et.test(Wt(Fe));
|
|
80151
80164
|
}
|
|
80152
80165
|
function ir(Fe) {
|
|
80153
|
-
return
|
|
80166
|
+
return Ln(Fe) && Zn(Fe.length) && !!tt[zt.call(Fe)];
|
|
80154
80167
|
}
|
|
80155
80168
|
function tr(Fe) {
|
|
80156
80169
|
if (!kt(Fe))
|
|
@@ -80171,9 +80184,9 @@ lodash_ismatch.exports;
|
|
|
80171
80184
|
for (qt.set(Fe, et), qt.set(et, Fe); ++yn < an; ) {
|
|
80172
80185
|
var In = Fe[yn], Cn = et[yn];
|
|
80173
80186
|
if (Nt)
|
|
80174
|
-
var
|
|
80175
|
-
if (
|
|
80176
|
-
if (
|
|
80187
|
+
var Mn = pn ? Nt(Cn, In, yn, et, Fe, qt) : Nt(In, Cn, yn, Fe, et, qt);
|
|
80188
|
+
if (Mn !== void 0) {
|
|
80189
|
+
if (Mn)
|
|
80177
80190
|
continue;
|
|
80178
80191
|
kn = !1;
|
|
80179
80192
|
break;
|
|
@@ -80242,7 +80255,7 @@ lodash_ismatch.exports;
|
|
|
80242
80255
|
return In == et;
|
|
80243
80256
|
var Cn = !0;
|
|
80244
80257
|
qt.set(Fe, et), qt.set(et, Fe);
|
|
80245
|
-
for (var
|
|
80258
|
+
for (var Mn = pn; ++kn < en; ) {
|
|
80246
80259
|
gn = an[kn];
|
|
80247
80260
|
var Dn = Fe[gn], Pe = et[gn];
|
|
80248
80261
|
if (Nt)
|
|
@@ -80251,11 +80264,11 @@ lodash_ismatch.exports;
|
|
|
80251
80264
|
Cn = !1;
|
|
80252
80265
|
break;
|
|
80253
80266
|
}
|
|
80254
|
-
|
|
80267
|
+
Mn || (Mn = gn == "constructor");
|
|
80255
80268
|
}
|
|
80256
|
-
if (Cn && !
|
|
80257
|
-
var we = Fe.constructor,
|
|
80258
|
-
we !=
|
|
80269
|
+
if (Cn && !Mn) {
|
|
80270
|
+
var we = Fe.constructor, Le = et.constructor;
|
|
80271
|
+
we != Le && "constructor" in Fe && "constructor" in et && !(typeof we == "function" && we instanceof we && typeof Le == "function" && Le instanceof Le) && (Cn = !1);
|
|
80259
80272
|
}
|
|
80260
80273
|
return qt.delete(Fe), qt.delete(et), Cn;
|
|
80261
80274
|
}
|
|
@@ -80266,7 +80279,7 @@ lodash_ismatch.exports;
|
|
|
80266
80279
|
function Qe(Fe) {
|
|
80267
80280
|
for (var et = qn(Fe), yt = et.length; yt--; ) {
|
|
80268
80281
|
var Nt = et[yt], nn = Fe[Nt];
|
|
80269
|
-
et[yt] = [Nt, nn,
|
|
80282
|
+
et[yt] = [Nt, nn, Lt(nn)];
|
|
80270
80283
|
}
|
|
80271
80284
|
return et;
|
|
80272
80285
|
}
|
|
@@ -80306,7 +80319,7 @@ lodash_ismatch.exports;
|
|
|
80306
80319
|
var et = Fe && Fe.constructor, yt = typeof et == "function" && et.prototype || Kt;
|
|
80307
80320
|
return Fe === yt;
|
|
80308
80321
|
}
|
|
80309
|
-
function
|
|
80322
|
+
function Lt(Fe) {
|
|
80310
80323
|
return Fe === Fe && !Wn(Fe);
|
|
80311
80324
|
}
|
|
80312
80325
|
function Wt(Fe) {
|
|
@@ -80333,7 +80346,7 @@ lodash_ismatch.exports;
|
|
|
80333
80346
|
return Fe != null && Zn(Fe.length) && !Hn(Fe);
|
|
80334
80347
|
}
|
|
80335
80348
|
function wn(Fe) {
|
|
80336
|
-
return
|
|
80349
|
+
return Ln(Fe) && cn(Fe);
|
|
80337
80350
|
}
|
|
80338
80351
|
function Hn(Fe) {
|
|
80339
80352
|
var et = Wn(Fe) ? zt.call(Fe) : "";
|
|
@@ -80346,13 +80359,13 @@ lodash_ismatch.exports;
|
|
|
80346
80359
|
var et = typeof Fe;
|
|
80347
80360
|
return !!Fe && (et == "object" || et == "function");
|
|
80348
80361
|
}
|
|
80349
|
-
function
|
|
80362
|
+
function Ln(Fe) {
|
|
80350
80363
|
return !!Fe && typeof Fe == "object";
|
|
80351
80364
|
}
|
|
80352
80365
|
function sr(Fe, et) {
|
|
80353
80366
|
return Fe === et || rr(Fe, et, Qe(et));
|
|
80354
80367
|
}
|
|
80355
|
-
var ar = Te ?
|
|
80368
|
+
var ar = Te ? Me(Te) : ir;
|
|
80356
80369
|
function qn(Fe) {
|
|
80357
80370
|
return cn(Fe) ? jn(Fe) : tr(Fe);
|
|
80358
80371
|
}
|
|
@@ -81050,8 +81063,8 @@ var localforage = { exports: {} };
|
|
|
81050
81063
|
return Oe.db = kt, Ge(Oe, Ve._defaultConfig.version) ? je(Oe) : kt;
|
|
81051
81064
|
}).then(function(kt) {
|
|
81052
81065
|
Oe.db = Qe.db = kt, Ve._dbInfo = Oe;
|
|
81053
|
-
for (var
|
|
81054
|
-
var Wt = bt[
|
|
81066
|
+
for (var Lt = 0; Lt < bt.length; Lt++) {
|
|
81067
|
+
var Wt = bt[Lt];
|
|
81055
81068
|
Wt !== Ve && (Wt._dbInfo.db = Oe.db, Wt._dbInfo.version = Oe.version);
|
|
81056
81069
|
}
|
|
81057
81070
|
});
|
|
@@ -81089,19 +81102,19 @@ var localforage = { exports: {} };
|
|
|
81089
81102
|
try {
|
|
81090
81103
|
var gt = pt.objectStore(Oe._dbInfo.storeName), bt = gt.openCursor(), kt = 1;
|
|
81091
81104
|
bt.onsuccess = function() {
|
|
81092
|
-
var
|
|
81093
|
-
if (
|
|
81094
|
-
var Wt =
|
|
81105
|
+
var Lt = bt.result;
|
|
81106
|
+
if (Lt) {
|
|
81107
|
+
var Wt = Lt.value;
|
|
81095
81108
|
lt(Wt) && (Wt = st(Wt));
|
|
81096
|
-
var Jt = Ae(Wt,
|
|
81097
|
-
Jt !== void 0 ? Qe(Jt) :
|
|
81109
|
+
var Jt = Ae(Wt, Lt.key, kt++);
|
|
81110
|
+
Jt !== void 0 ? Qe(Jt) : Lt.continue();
|
|
81098
81111
|
} else
|
|
81099
81112
|
Qe();
|
|
81100
81113
|
}, bt.onerror = function() {
|
|
81101
81114
|
Ke(bt.error);
|
|
81102
81115
|
};
|
|
81103
|
-
} catch (
|
|
81104
|
-
Ke(
|
|
81116
|
+
} catch (Lt) {
|
|
81117
|
+
Ke(Lt);
|
|
81105
81118
|
}
|
|
81106
81119
|
});
|
|
81107
81120
|
}).catch(Ke);
|
|
@@ -81122,9 +81135,9 @@ var localforage = { exports: {} };
|
|
|
81122
81135
|
if (bt)
|
|
81123
81136
|
return ft(bt);
|
|
81124
81137
|
try {
|
|
81125
|
-
var
|
|
81138
|
+
var Lt = kt.objectStore(Je._dbInfo.storeName);
|
|
81126
81139
|
gt === null && (gt = void 0);
|
|
81127
|
-
var Wt =
|
|
81140
|
+
var Wt = Lt.put(gt, Ae);
|
|
81128
81141
|
kt.oncomplete = function() {
|
|
81129
81142
|
gt === void 0 && (gt = null), Ke(gt);
|
|
81130
81143
|
}, kt.onabort = kt.onerror = function() {
|
|
@@ -81221,17 +81234,17 @@ var localforage = { exports: {} };
|
|
|
81221
81234
|
try {
|
|
81222
81235
|
var gt = pt.objectStore(Oe._dbInfo.storeName), bt = !1, kt = gt.openKeyCursor();
|
|
81223
81236
|
kt.onsuccess = function() {
|
|
81224
|
-
var
|
|
81225
|
-
if (!
|
|
81237
|
+
var Lt = kt.result;
|
|
81238
|
+
if (!Lt) {
|
|
81226
81239
|
Qe(null);
|
|
81227
81240
|
return;
|
|
81228
81241
|
}
|
|
81229
|
-
Ae === 0 || bt ? Qe(
|
|
81242
|
+
Ae === 0 || bt ? Qe(Lt.key) : (bt = !0, Lt.advance(Ae));
|
|
81230
81243
|
}, kt.onerror = function() {
|
|
81231
81244
|
Ke(kt.error);
|
|
81232
81245
|
};
|
|
81233
|
-
} catch (
|
|
81234
|
-
Ke(
|
|
81246
|
+
} catch (Lt) {
|
|
81247
|
+
Ke(Lt);
|
|
81235
81248
|
}
|
|
81236
81249
|
});
|
|
81237
81250
|
}).catch(Ke);
|
|
@@ -81285,8 +81298,8 @@ var localforage = { exports: {} };
|
|
|
81285
81298
|
$e(Ae);
|
|
81286
81299
|
var bt = ce[Ae.name], kt = bt.forages;
|
|
81287
81300
|
pt.close();
|
|
81288
|
-
for (var
|
|
81289
|
-
var Wt = kt[
|
|
81301
|
+
for (var Lt = 0; Lt < kt.length; Lt++) {
|
|
81302
|
+
var Wt = kt[Lt];
|
|
81290
81303
|
Wt._dbInfo.db = null, Wt._dbInfo.version = gt;
|
|
81291
81304
|
}
|
|
81292
81305
|
var Jt = new te(function(tn, fn) {
|
|
@@ -81318,8 +81331,8 @@ var localforage = { exports: {} };
|
|
|
81318
81331
|
var gt = ce[Ae.name], bt = gt.forages;
|
|
81319
81332
|
pt.close();
|
|
81320
81333
|
for (var kt = 0; kt < bt.length; kt++) {
|
|
81321
|
-
var
|
|
81322
|
-
|
|
81334
|
+
var Lt = bt[kt];
|
|
81335
|
+
Lt._dbInfo.db = null;
|
|
81323
81336
|
}
|
|
81324
81337
|
var Wt = new te(function(Jt, tn) {
|
|
81325
81338
|
var fn = Z.deleteDatabase(Ae.name);
|
|
@@ -81347,7 +81360,7 @@ var localforage = { exports: {} };
|
|
|
81347
81360
|
}
|
|
81348
81361
|
return ne(Qe, Ve), Qe;
|
|
81349
81362
|
}
|
|
81350
|
-
var
|
|
81363
|
+
var Me = {
|
|
81351
81364
|
_driver: "asyncStorage",
|
|
81352
81365
|
_initStorage: qe,
|
|
81353
81366
|
_support: Q(),
|
|
@@ -81498,7 +81511,7 @@ var localforage = { exports: {} };
|
|
|
81498
81511
|
var ft = Oe._dbInfo;
|
|
81499
81512
|
ft.db.transaction(function(pt) {
|
|
81500
81513
|
bn(pt, ft, "SELECT * FROM " + ft.storeName, [], function(gt, bt) {
|
|
81501
|
-
for (var kt = bt.rows,
|
|
81514
|
+
for (var kt = bt.rows, Lt = kt.length, Wt = 0; Wt < Lt; Wt++) {
|
|
81502
81515
|
var Jt = kt.item(Wt), tn = Jt.value;
|
|
81503
81516
|
if (tn && (tn = ft.serializer.deserialize(tn)), tn = Ae(tn, Jt.key, Wt + 1), tn !== void 0) {
|
|
81504
81517
|
Qe(tn);
|
|
@@ -81521,8 +81534,8 @@ var localforage = { exports: {} };
|
|
|
81521
81534
|
Qe.ready().then(function() {
|
|
81522
81535
|
Ve === void 0 && (Ve = null);
|
|
81523
81536
|
var gt = Ve, bt = Qe._dbInfo;
|
|
81524
|
-
bt.serializer.serialize(Ve, function(kt,
|
|
81525
|
-
|
|
81537
|
+
bt.serializer.serialize(Ve, function(kt, Lt) {
|
|
81538
|
+
Lt ? pt(Lt) : bt.db.transaction(function(Wt) {
|
|
81526
81539
|
bn(Wt, bt, "INSERT OR REPLACE INTO " + bt.storeName + " (key, value) VALUES (?, ?)", [Ae, kt], function() {
|
|
81527
81540
|
ft(gt);
|
|
81528
81541
|
}, function(Jt, tn) {
|
|
@@ -81667,8 +81680,8 @@ var localforage = { exports: {} };
|
|
|
81667
81680
|
});
|
|
81668
81681
|
});
|
|
81669
81682
|
}
|
|
81670
|
-
for (var kt = [],
|
|
81671
|
-
kt.push(bt(Ke.storeNames[
|
|
81683
|
+
for (var kt = [], Lt = 0, Wt = Ke.storeNames.length; Lt < Wt; Lt++)
|
|
81684
|
+
kt.push(bt(Ke.storeNames[Lt]));
|
|
81672
81685
|
te.all(kt).then(function() {
|
|
81673
81686
|
ft();
|
|
81674
81687
|
}).catch(function(Jt) {
|
|
@@ -81747,9 +81760,9 @@ var localforage = { exports: {} };
|
|
|
81747
81760
|
for (var Qe = Oe._dbInfo, Ke = Qe.keyPrefix, ft = Ke.length, pt = localStorage.length, gt = 1, bt = 0; bt < pt; bt++) {
|
|
81748
81761
|
var kt = localStorage.key(bt);
|
|
81749
81762
|
if (kt.indexOf(Ke) === 0) {
|
|
81750
|
-
var
|
|
81751
|
-
if (
|
|
81752
|
-
return
|
|
81763
|
+
var Lt = localStorage.getItem(kt);
|
|
81764
|
+
if (Lt && (Lt = Qe.serializer.deserialize(Lt)), Lt = Ae(Lt, kt.substring(ft), gt++), Lt !== void 0)
|
|
81765
|
+
return Lt;
|
|
81753
81766
|
}
|
|
81754
81767
|
}
|
|
81755
81768
|
});
|
|
@@ -81777,7 +81790,7 @@ var localforage = { exports: {} };
|
|
|
81777
81790
|
});
|
|
81778
81791
|
return ne(Oe, Ae), Oe;
|
|
81779
81792
|
}
|
|
81780
|
-
function
|
|
81793
|
+
function Mt(Ae) {
|
|
81781
81794
|
var Ve = this, Oe = Ve.keys().then(function(Je) {
|
|
81782
81795
|
return Je.length;
|
|
81783
81796
|
});
|
|
@@ -81806,8 +81819,8 @@ var localforage = { exports: {} };
|
|
|
81806
81819
|
else
|
|
81807
81820
|
try {
|
|
81808
81821
|
localStorage.setItem(gt.keyPrefix + Ae, bt), ft(Ke);
|
|
81809
|
-
} catch (
|
|
81810
|
-
(
|
|
81822
|
+
} catch (Lt) {
|
|
81823
|
+
(Lt.name === "QuotaExceededError" || Lt.name === "NS_ERROR_DOM_QUOTA_REACHED") && pt(Lt), pt(Lt);
|
|
81811
81824
|
}
|
|
81812
81825
|
});
|
|
81813
81826
|
});
|
|
@@ -81838,7 +81851,7 @@ var localforage = { exports: {} };
|
|
|
81838
81851
|
setItem: Zt,
|
|
81839
81852
|
removeItem: Ot,
|
|
81840
81853
|
clear: ot,
|
|
81841
|
-
length:
|
|
81854
|
+
length: Mt,
|
|
81842
81855
|
key: Rt,
|
|
81843
81856
|
keys: Bt,
|
|
81844
81857
|
dropInstance: Qt
|
|
@@ -81854,7 +81867,7 @@ var localforage = { exports: {} };
|
|
|
81854
81867
|
}, Yn = Array.isArray || function(Ae) {
|
|
81855
81868
|
return Object.prototype.toString.call(Ae) === "[object Array]";
|
|
81856
81869
|
}, dn = {}, Bn = {}, jn = {
|
|
81857
|
-
INDEXEDDB:
|
|
81870
|
+
INDEXEDDB: Me,
|
|
81858
81871
|
WEBSQL: _n,
|
|
81859
81872
|
LOCALSTORAGE: Yt
|
|
81860
81873
|
}, An = [jn.INDEXEDDB._driver, jn.WEBSQL._driver, jn.LOCALSTORAGE._driver], Un = ["dropInstance"], Xn = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Un), nr = {
|
|
@@ -81915,8 +81928,8 @@ var localforage = { exports: {} };
|
|
|
81915
81928
|
pt(bt);
|
|
81916
81929
|
return;
|
|
81917
81930
|
}
|
|
81918
|
-
for (var kt = Xn.concat("_initStorage"),
|
|
81919
|
-
var Jt = kt[
|
|
81931
|
+
for (var kt = Xn.concat("_initStorage"), Lt = 0, Wt = kt.length; Lt < Wt; Lt++) {
|
|
81932
|
+
var Jt = kt[Lt], tn = !xn(Un, Jt);
|
|
81920
81933
|
if ((tn || Oe[Jt]) && typeof Oe[Jt] != "function") {
|
|
81921
81934
|
pt(bt);
|
|
81922
81935
|
return;
|
|
@@ -81929,8 +81942,8 @@ var localforage = { exports: {} };
|
|
|
81929
81942
|
return ne(Fe, arguments[arguments.length - 1]), Fe;
|
|
81930
81943
|
};
|
|
81931
81944
|
}, Zn = 0, Wn = Un.length; Zn < Wn; Zn++) {
|
|
81932
|
-
var
|
|
81933
|
-
Oe[
|
|
81945
|
+
var Ln = Un[Zn];
|
|
81946
|
+
Oe[Ln] || (Oe[Ln] = Hn(Ln));
|
|
81934
81947
|
}
|
|
81935
81948
|
};
|
|
81936
81949
|
fn();
|
|
@@ -81963,15 +81976,15 @@ var localforage = { exports: {} };
|
|
|
81963
81976
|
function pt() {
|
|
81964
81977
|
Ke._config.driver = Ke.driver();
|
|
81965
81978
|
}
|
|
81966
|
-
function gt(
|
|
81967
|
-
return Ke._extend(
|
|
81979
|
+
function gt(Lt) {
|
|
81980
|
+
return Ke._extend(Lt), pt(), Ke._ready = Ke._initStorage(Ke._config), Ke._ready;
|
|
81968
81981
|
}
|
|
81969
|
-
function bt(
|
|
81982
|
+
function bt(Lt) {
|
|
81970
81983
|
return function() {
|
|
81971
81984
|
var Wt = 0;
|
|
81972
81985
|
function Jt() {
|
|
81973
|
-
for (; Wt <
|
|
81974
|
-
var tn =
|
|
81986
|
+
for (; Wt < Lt.length; ) {
|
|
81987
|
+
var tn = Lt[Wt];
|
|
81975
81988
|
return Wt++, Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(tn).then(gt).catch(Jt);
|
|
81976
81989
|
}
|
|
81977
81990
|
pt();
|
|
@@ -81985,14 +81998,14 @@ var localforage = { exports: {} };
|
|
|
81985
81998
|
return te.resolve();
|
|
81986
81999
|
}) : te.resolve();
|
|
81987
82000
|
return this._driverSet = kt.then(function() {
|
|
81988
|
-
var
|
|
81989
|
-
return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(
|
|
82001
|
+
var Lt = ft[0];
|
|
82002
|
+
return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(Lt).then(function(Wt) {
|
|
81990
82003
|
Ke._driver = Wt._driver, pt(), Ke._wrapLibraryMethodsWithReady(), Ke._initDriver = bt(ft);
|
|
81991
82004
|
});
|
|
81992
82005
|
}).catch(function() {
|
|
81993
82006
|
pt();
|
|
81994
|
-
var
|
|
81995
|
-
return Ke._driverSet = te.reject(
|
|
82007
|
+
var Lt = new Error("No available storage method found.");
|
|
82008
|
+
return Ke._driverSet = te.reject(Lt), Ke._driverSet;
|
|
81996
82009
|
}), re(this._driverSet, Je, Qe), this._driverSet;
|
|
81997
82010
|
}, Ae.prototype.supports = function(Oe) {
|
|
81998
82011
|
return !!Bn[Oe];
|
|
@@ -83096,7 +83109,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83096
83109
|
async sendMessage($) {
|
|
83097
83110
|
this._performance.sentMessages++, await this._clientReady.wait(), invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83098
83111
|
F: __dxlog_file3$3,
|
|
83099
|
-
L:
|
|
83112
|
+
L: 224,
|
|
83100
83113
|
S: this,
|
|
83101
83114
|
A: [
|
|
83102
83115
|
"this._state === SignalState.CONNECTED",
|
|
@@ -83109,7 +83122,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83109
83122
|
peerId: $
|
|
83110
83123
|
}, {
|
|
83111
83124
|
F: __dxlog_file3$3,
|
|
83112
|
-
L:
|
|
83125
|
+
L: 229,
|
|
83113
83126
|
S: this,
|
|
83114
83127
|
C: (I, U) => I(...U)
|
|
83115
83128
|
}), this._subscribedMessages.add({
|
|
@@ -83122,7 +83135,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83122
83135
|
peerId: $
|
|
83123
83136
|
}, {
|
|
83124
83137
|
F: __dxlog_file3$3,
|
|
83125
|
-
L:
|
|
83138
|
+
L: 235,
|
|
83126
83139
|
S: this,
|
|
83127
83140
|
C: (U, q) => U(...q)
|
|
83128
83141
|
}), this._subscribedMessages.delete({
|
|
@@ -83139,7 +83152,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83139
83152
|
status: this.getStatus()
|
|
83140
83153
|
}, {
|
|
83141
83154
|
F: __dxlog_file3$3,
|
|
83142
|
-
L:
|
|
83155
|
+
L: 254,
|
|
83143
83156
|
S: this,
|
|
83144
83157
|
C: (I, U) => I(...U)
|
|
83145
83158
|
}), this.statusChanged.emit(this.getStatus());
|
|
@@ -83150,12 +83163,12 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83150
83163
|
state: this._state
|
|
83151
83164
|
}, {
|
|
83152
83165
|
F: __dxlog_file3$3,
|
|
83153
|
-
L:
|
|
83166
|
+
L: 259,
|
|
83154
83167
|
S: this,
|
|
83155
83168
|
C: ($, I) => $(...I)
|
|
83156
83169
|
}), invariant(!this._client, "Client already created", {
|
|
83157
83170
|
F: __dxlog_file3$3,
|
|
83158
|
-
L:
|
|
83171
|
+
L: 260,
|
|
83159
83172
|
S: this,
|
|
83160
83173
|
A: [
|
|
83161
83174
|
"!this._client",
|
|
@@ -83164,7 +83177,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83164
83177
|
}), this._connectionStarted = /* @__PURE__ */ new Date(), this._connectionCtx = this._ctx.derive(), this._connectionCtx.onDispose(async () => {
|
|
83165
83178
|
log$2("connection context disposed", void 0, {
|
|
83166
83179
|
F: __dxlog_file3$3,
|
|
83167
|
-
L:
|
|
83180
|
+
L: 267,
|
|
83168
83181
|
S: this,
|
|
83169
83182
|
C: ($, I) => $(...I)
|
|
83170
83183
|
}), await Promise.all(Array.from(this._swarmStreams.values()).map(($) => $.close())), await Promise.all(Array.from(this._messageStreams.values()).map(($) => $.close())), this._swarmStreams.clear(), this._messageStreams.clear();
|
|
@@ -83176,7 +83189,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83176
83189
|
onConnected: () => {
|
|
83177
83190
|
log$2("socket connected", void 0, {
|
|
83178
83191
|
F: __dxlog_file3$3,
|
|
83179
|
-
L:
|
|
83192
|
+
L: 279,
|
|
83180
83193
|
S: this,
|
|
83181
83194
|
C: ($, I) => $(...I)
|
|
83182
83195
|
}), this._lastError = void 0, this._reconnectAfter = DEFAULT_RECONNECT_TIMEOUT, this._setState(SignalState.CONNECTED), this._clientReady.wake(), this._reconcileTask.schedule();
|
|
@@ -83186,7 +83199,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83186
83199
|
state: this._state
|
|
83187
83200
|
}, {
|
|
83188
83201
|
F: __dxlog_file3$3,
|
|
83189
|
-
L:
|
|
83202
|
+
L: 288,
|
|
83190
83203
|
S: this,
|
|
83191
83204
|
C: ($, I) => $(...I)
|
|
83192
83205
|
}), this._state === SignalState.ERROR) {
|
|
@@ -83201,7 +83214,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83201
83214
|
state: this._state
|
|
83202
83215
|
}, {
|
|
83203
83216
|
F: __dxlog_file3$3,
|
|
83204
|
-
L:
|
|
83217
|
+
L: 303,
|
|
83205
83218
|
S: this,
|
|
83206
83219
|
C: (I, U) => I(...U)
|
|
83207
83220
|
}), this._lastError = $, this._state !== SignalState.CONNECTED && this._state !== SignalState.CONNECTING && this._incrementReconnectTimeout(), this._setState(SignalState.ERROR), this._reconnectTask.schedule();
|
|
@@ -83222,13 +83235,13 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83222
83235
|
state: this._state
|
|
83223
83236
|
}, {
|
|
83224
83237
|
F: __dxlog_file3$3,
|
|
83225
|
-
L:
|
|
83238
|
+
L: 331,
|
|
83226
83239
|
S: this,
|
|
83227
83240
|
C: (U, q) => U(...q)
|
|
83228
83241
|
}), this._performance.reconnectCounter++, this._state === SignalState.RECONNECTING) {
|
|
83229
83242
|
log$2.warn("Signal api already reconnecting.", void 0, {
|
|
83230
83243
|
F: __dxlog_file3$3,
|
|
83231
|
-
L:
|
|
83244
|
+
L: 335,
|
|
83232
83245
|
S: this,
|
|
83233
83246
|
C: (U, q) => U(...q)
|
|
83234
83247
|
});
|
|
@@ -83243,7 +83256,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83243
83256
|
const $ = this._client;
|
|
83244
83257
|
invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83245
83258
|
F: __dxlog_file3$3,
|
|
83246
|
-
L:
|
|
83259
|
+
L: 360,
|
|
83247
83260
|
S: this,
|
|
83248
83261
|
A: [
|
|
83249
83262
|
"this._state === SignalState.CONNECTED",
|
|
@@ -83276,7 +83289,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83276
83289
|
swarmEvent: K
|
|
83277
83290
|
}, {
|
|
83278
83291
|
F: __dxlog_file3$3,
|
|
83279
|
-
L:
|
|
83292
|
+
L: 387,
|
|
83280
83293
|
S: this,
|
|
83281
83294
|
C: (Y, J) => Y(...J)
|
|
83282
83295
|
}), await this._onSwarmEvent({
|
|
@@ -83295,7 +83308,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83295
83308
|
const $ = this._client;
|
|
83296
83309
|
invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83297
83310
|
F: __dxlog_file3$3,
|
|
83298
|
-
L:
|
|
83311
|
+
L: 400,
|
|
83299
83312
|
S: this,
|
|
83300
83313
|
A: [
|
|
83301
83314
|
"this._state === SignalState.CONNECTED",
|
|
@@ -85702,13 +85715,13 @@ var Connection = class {
|
|
|
85702
85715
|
stream: this._protocol.stream,
|
|
85703
85716
|
sendSignal: async ($) => this._sendSignal($),
|
|
85704
85717
|
sessionId: this.sessionId
|
|
85705
|
-
}), this._transport.connected.once(async () => {
|
|
85718
|
+
}), await this._transport.open(), this._transport.connected.once(async () => {
|
|
85706
85719
|
var $, I;
|
|
85707
85720
|
this._changeState("CONNECTED"), await this.connectedTimeoutContext.dispose(), (I = ($ = this._callbacks) == null ? void 0 : $.onConnected) == null || I.call($), scheduleTaskInterval(this._ctx, async () => this._emitTransportStats(), TRANSPORT_STATS_INTERVAL);
|
|
85708
85721
|
}), this._transport.closed.once(() => {
|
|
85709
85722
|
this._transport = void 0, log$2("abort triggered by transport close", void 0, {
|
|
85710
85723
|
F: __dxlog_file$2,
|
|
85711
|
-
L:
|
|
85724
|
+
L: 218,
|
|
85712
85725
|
S: this,
|
|
85713
85726
|
C: ($, I) => $(...I)
|
|
85714
85727
|
}), this.abort().catch(($) => this.errors.raise($));
|
|
@@ -85717,35 +85730,35 @@ var Connection = class {
|
|
|
85717
85730
|
err: $
|
|
85718
85731
|
}, {
|
|
85719
85732
|
F: __dxlog_file$2,
|
|
85720
|
-
L:
|
|
85733
|
+
L: 223,
|
|
85721
85734
|
S: this,
|
|
85722
85735
|
C: (I, U) => I(...U)
|
|
85723
85736
|
}), this.closeReason || (this.closeReason = $ == null ? void 0 : $.message), $ instanceof ConnectionResetError ? (log$2.info("aborting due to transport ConnectionResetError", void 0, {
|
|
85724
85737
|
F: __dxlog_file$2,
|
|
85725
|
-
L:
|
|
85738
|
+
L: 230,
|
|
85726
85739
|
S: this,
|
|
85727
85740
|
C: (I, U) => I(...U)
|
|
85728
85741
|
}), this.abort().catch((I) => this.errors.raise(I))) : $ instanceof ConnectivityError ? (log$2.info("aborting due to transport ConnectivityError", void 0, {
|
|
85729
85742
|
F: __dxlog_file$2,
|
|
85730
|
-
L:
|
|
85743
|
+
L: 233,
|
|
85731
85744
|
S: this,
|
|
85732
85745
|
C: (I, U) => I(...U)
|
|
85733
85746
|
}), this.abort().catch((I) => this.errors.raise(I))) : $ instanceof UnknownProtocolError && log$2.warn("unsure what to do with UnknownProtocolError, will keep on truckin", {
|
|
85734
85747
|
err: $
|
|
85735
85748
|
}, {
|
|
85736
85749
|
F: __dxlog_file$2,
|
|
85737
|
-
L:
|
|
85750
|
+
L: 236,
|
|
85738
85751
|
S: this,
|
|
85739
85752
|
C: (I, U) => I(...U)
|
|
85740
85753
|
}), this._state !== "CLOSED" && this._state !== "CLOSING" && (await this.connectedTimeoutContext.dispose(), this.errors.raise($));
|
|
85741
85754
|
});
|
|
85742
85755
|
for (const $ of this._incomingSignalBuffer)
|
|
85743
|
-
this._transport.
|
|
85756
|
+
this._transport.onSignal($);
|
|
85744
85757
|
this._incomingSignalBuffer = [], log$2.trace("dxos.mesh.connection.open-connection", trace$1.end({
|
|
85745
85758
|
id: this._instanceId
|
|
85746
85759
|
}), {
|
|
85747
85760
|
F: __dxlog_file$2,
|
|
85748
|
-
L:
|
|
85761
|
+
L: 252,
|
|
85749
85762
|
S: this,
|
|
85750
85763
|
C: ($, I) => $(...I)
|
|
85751
85764
|
});
|
|
@@ -85756,13 +85769,13 @@ var Connection = class {
|
|
|
85756
85769
|
err: $
|
|
85757
85770
|
}, {
|
|
85758
85771
|
F: __dxlog_file$2,
|
|
85759
|
-
L:
|
|
85772
|
+
L: 259,
|
|
85760
85773
|
S: this,
|
|
85761
85774
|
C: (G, K) => G(...K)
|
|
85762
85775
|
}), this._state === "CLOSED" || this._state === "ABORTED") {
|
|
85763
85776
|
log$2(`abort ignored: already ${this._state}`, this.closeReason, {
|
|
85764
85777
|
F: __dxlog_file$2,
|
|
85765
|
-
L:
|
|
85778
|
+
L: 261,
|
|
85766
85779
|
S: this,
|
|
85767
85780
|
C: (G, K) => G(...K)
|
|
85768
85781
|
});
|
|
@@ -85772,24 +85785,24 @@ var Connection = class {
|
|
|
85772
85785
|
try {
|
|
85773
85786
|
log$2("aborting protocol... ", void 0, {
|
|
85774
85787
|
F: __dxlog_file$2,
|
|
85775
|
-
L:
|
|
85788
|
+
L: 275,
|
|
85776
85789
|
S: this,
|
|
85777
85790
|
C: (G, K) => G(...K)
|
|
85778
85791
|
}), await this._protocol.abort();
|
|
85779
85792
|
} catch (G) {
|
|
85780
85793
|
log$2.catch(G, void 0, {
|
|
85781
85794
|
F: __dxlog_file$2,
|
|
85782
|
-
L:
|
|
85795
|
+
L: 278,
|
|
85783
85796
|
S: this,
|
|
85784
85797
|
C: (K, Y) => K(...Y)
|
|
85785
85798
|
});
|
|
85786
85799
|
}
|
|
85787
85800
|
try {
|
|
85788
|
-
await ((I = this._transport) == null ? void 0 : I.
|
|
85801
|
+
await ((I = this._transport) == null ? void 0 : I.close());
|
|
85789
85802
|
} catch (G) {
|
|
85790
85803
|
log$2.catch(G, void 0, {
|
|
85791
85804
|
F: __dxlog_file$2,
|
|
85792
|
-
L:
|
|
85805
|
+
L: 285,
|
|
85793
85806
|
S: this,
|
|
85794
85807
|
C: (K, Y) => K(...Y)
|
|
85795
85808
|
});
|
|
@@ -85799,7 +85812,7 @@ var Connection = class {
|
|
|
85799
85812
|
} catch (G) {
|
|
85800
85813
|
log$2.catch(G, void 0, {
|
|
85801
85814
|
F: __dxlog_file$2,
|
|
85802
|
-
L:
|
|
85815
|
+
L: 291,
|
|
85803
85816
|
S: this,
|
|
85804
85817
|
C: (K, Y) => K(...Y)
|
|
85805
85818
|
});
|
|
@@ -85815,7 +85828,7 @@ var Connection = class {
|
|
|
85815
85828
|
peerId: this.ownId
|
|
85816
85829
|
}, {
|
|
85817
85830
|
F: __dxlog_file$2,
|
|
85818
|
-
L:
|
|
85831
|
+
L: 316,
|
|
85819
85832
|
S: this,
|
|
85820
85833
|
C: (Y, J) => Y(...J)
|
|
85821
85834
|
}), I === "CONNECTED") {
|
|
@@ -85824,17 +85837,17 @@ var Connection = class {
|
|
|
85824
85837
|
} catch (Y) {
|
|
85825
85838
|
log$2.catch(Y, void 0, {
|
|
85826
85839
|
F: __dxlog_file$2,
|
|
85827
|
-
L:
|
|
85840
|
+
L: 323,
|
|
85828
85841
|
S: this,
|
|
85829
85842
|
C: (J, Z) => J(...Z)
|
|
85830
85843
|
});
|
|
85831
85844
|
}
|
|
85832
85845
|
try {
|
|
85833
|
-
await ((U = this._transport) == null ? void 0 : U.
|
|
85846
|
+
await ((U = this._transport) == null ? void 0 : U.close());
|
|
85834
85847
|
} catch (Y) {
|
|
85835
85848
|
log$2.catch(Y, void 0, {
|
|
85836
85849
|
F: __dxlog_file$2,
|
|
85837
|
-
L:
|
|
85850
|
+
L: 330,
|
|
85838
85851
|
S: this,
|
|
85839
85852
|
C: (J, Z) => J(...Z)
|
|
85840
85853
|
});
|
|
@@ -85842,7 +85855,7 @@ var Connection = class {
|
|
|
85842
85855
|
} else {
|
|
85843
85856
|
log$2.info(`graceful close requested when we were in ${I} state? aborting`, void 0, {
|
|
85844
85857
|
F: __dxlog_file$2,
|
|
85845
|
-
L:
|
|
85858
|
+
L: 333,
|
|
85846
85859
|
S: this,
|
|
85847
85860
|
C: (Y, J) => Y(...J)
|
|
85848
85861
|
});
|
|
@@ -85851,17 +85864,17 @@ var Connection = class {
|
|
|
85851
85864
|
} catch (Y) {
|
|
85852
85865
|
log$2.catch(Y, void 0, {
|
|
85853
85866
|
F: __dxlog_file$2,
|
|
85854
|
-
L:
|
|
85867
|
+
L: 337,
|
|
85855
85868
|
S: this,
|
|
85856
85869
|
C: (J, Z) => J(...Z)
|
|
85857
85870
|
});
|
|
85858
85871
|
}
|
|
85859
85872
|
try {
|
|
85860
|
-
await ((q = this._transport) == null ? void 0 : q.
|
|
85873
|
+
await ((q = this._transport) == null ? void 0 : q.close());
|
|
85861
85874
|
} catch (Y) {
|
|
85862
85875
|
log$2.catch(Y, void 0, {
|
|
85863
85876
|
F: __dxlog_file$2,
|
|
85864
|
-
L:
|
|
85877
|
+
L: 342,
|
|
85865
85878
|
S: this,
|
|
85866
85879
|
C: (J, Z) => J(...Z)
|
|
85867
85880
|
});
|
|
@@ -85871,7 +85884,7 @@ var Connection = class {
|
|
|
85871
85884
|
peerId: this.ownId
|
|
85872
85885
|
}, {
|
|
85873
85886
|
F: __dxlog_file$2,
|
|
85874
|
-
L:
|
|
85887
|
+
L: 346,
|
|
85875
85888
|
S: this,
|
|
85876
85889
|
C: (Y, J) => Y(...J)
|
|
85877
85890
|
}), this._changeState("CLOSED"), (K = (G = this._callbacks) == null ? void 0 : G.onClosed) == null || K.call(G, $);
|
|
@@ -85905,7 +85918,7 @@ var Connection = class {
|
|
|
85905
85918
|
err: I
|
|
85906
85919
|
}, {
|
|
85907
85920
|
F: __dxlog_file$2,
|
|
85908
|
-
L:
|
|
85921
|
+
L: 384,
|
|
85909
85922
|
S: this,
|
|
85910
85923
|
C: (U, q) => U(...q)
|
|
85911
85924
|
}), await this.close(new ConnectivityError("signal message failed to deliver", I));
|
|
@@ -85918,7 +85931,7 @@ var Connection = class {
|
|
|
85918
85931
|
var U, q;
|
|
85919
85932
|
if (invariant($.sessionId, void 0, {
|
|
85920
85933
|
F: __dxlog_file$2,
|
|
85921
|
-
L:
|
|
85934
|
+
L: 393,
|
|
85922
85935
|
S: this,
|
|
85923
85936
|
A: [
|
|
85924
85937
|
"msg.sessionId",
|
|
@@ -85927,7 +85940,7 @@ var Connection = class {
|
|
|
85927
85940
|
}), !$.sessionId.equals(this.sessionId)) {
|
|
85928
85941
|
log$2("dropping signal for incorrect session id", void 0, {
|
|
85929
85942
|
F: __dxlog_file$2,
|
|
85930
|
-
L:
|
|
85943
|
+
L: 395,
|
|
85931
85944
|
S: this,
|
|
85932
85945
|
C: (G, K) => G(...K)
|
|
85933
85946
|
});
|
|
@@ -85935,7 +85948,7 @@ var Connection = class {
|
|
|
85935
85948
|
}
|
|
85936
85949
|
invariant($.data.signal || $.data.signalBatch, void 0, {
|
|
85937
85950
|
F: __dxlog_file$2,
|
|
85938
|
-
L:
|
|
85951
|
+
L: 398,
|
|
85939
85952
|
S: this,
|
|
85940
85953
|
A: [
|
|
85941
85954
|
"msg.data.signal || msg.data.signalBatch",
|
|
@@ -85943,7 +85956,7 @@ var Connection = class {
|
|
|
85943
85956
|
]
|
|
85944
85957
|
}), invariant((U = $.author) == null ? void 0 : U.equals(this.remoteId), void 0, {
|
|
85945
85958
|
F: __dxlog_file$2,
|
|
85946
|
-
L:
|
|
85959
|
+
L: 399,
|
|
85947
85960
|
S: this,
|
|
85948
85961
|
A: [
|
|
85949
85962
|
"msg.author?.equals(this.remoteId)",
|
|
@@ -85951,7 +85964,7 @@ var Connection = class {
|
|
|
85951
85964
|
]
|
|
85952
85965
|
}), invariant((q = $.recipient) == null ? void 0 : q.equals(this.ownId), void 0, {
|
|
85953
85966
|
F: __dxlog_file$2,
|
|
85954
|
-
L:
|
|
85967
|
+
L: 400,
|
|
85955
85968
|
S: this,
|
|
85956
85969
|
A: [
|
|
85957
85970
|
"msg.recipient?.equals(this.ownId)",
|
|
@@ -85971,12 +85984,12 @@ var Connection = class {
|
|
|
85971
85984
|
msg: $.data
|
|
85972
85985
|
}, {
|
|
85973
85986
|
F: __dxlog_file$2,
|
|
85974
|
-
L:
|
|
85987
|
+
L: 409,
|
|
85975
85988
|
S: this,
|
|
85976
85989
|
C: (K, Y) => K(...Y)
|
|
85977
85990
|
}), this._incomingSignalBuffer.push(G)) : (invariant(this._transport, "Connection not ready to accept signals.", {
|
|
85978
85991
|
F: __dxlog_file$2,
|
|
85979
|
-
L:
|
|
85992
|
+
L: 412,
|
|
85980
85993
|
S: this,
|
|
85981
85994
|
A: [
|
|
85982
85995
|
"this._transport",
|
|
@@ -85988,10 +86001,10 @@ var Connection = class {
|
|
|
85988
86001
|
msg: $.data
|
|
85989
86002
|
}, {
|
|
85990
86003
|
F: __dxlog_file$2,
|
|
85991
|
-
L:
|
|
86004
|
+
L: 413,
|
|
85992
86005
|
S: this,
|
|
85993
86006
|
C: (K, Y) => K(...Y)
|
|
85994
|
-
}), await this._transport.
|
|
86007
|
+
}), await this._transport.onSignal(G)));
|
|
85995
86008
|
}
|
|
85996
86009
|
initiate() {
|
|
85997
86010
|
this._changeState("INITIAL");
|
|
@@ -86003,12 +86016,12 @@ var Connection = class {
|
|
|
86003
86016
|
peerId: this.ownId
|
|
86004
86017
|
}, {
|
|
86005
86018
|
F: __dxlog_file$2,
|
|
86006
|
-
L:
|
|
86019
|
+
L: 424,
|
|
86007
86020
|
S: this,
|
|
86008
86021
|
C: (I, U) => I(...U)
|
|
86009
86022
|
}), invariant($ !== this._state, "Already in this state.", {
|
|
86010
86023
|
F: __dxlog_file$2,
|
|
86011
|
-
L:
|
|
86024
|
+
L: 425,
|
|
86012
86025
|
S: this,
|
|
86013
86026
|
A: [
|
|
86014
86027
|
"state !== this._state",
|
|
@@ -86247,7 +86260,6 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86247
86260
|
super("Connection displaced by remote initiator.");
|
|
86248
86261
|
}
|
|
86249
86262
|
}, CONNECTION_COUNTS_STABLE_AFTER = 5e3, Peer = class {
|
|
86250
|
-
// TODO(burdon): Convert to map?
|
|
86251
86263
|
constructor($, I, U, q, G, K, Y, J) {
|
|
86252
86264
|
this.id = $, this.topic = I, this.localPeerId = U, this._signalMessaging = q, this._protocolProvider = G, this._transportFactory = K, this._connectionLimiter = Y, this._callbacks = J, this._availableAfter = 0, this.availableToConnect = !0, this._ctx = new Context(), this.advertizing = !1, this.initiating = !1, this.connectionDisplaced = new Event$1();
|
|
86253
86265
|
}
|
|
@@ -86264,7 +86276,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86264
86276
|
].includes(this.connection.state))
|
|
86265
86277
|
return log$2.info(`received offer when connection already in ${this.connection.state} state`, void 0, {
|
|
86266
86278
|
F: __dxlog_file3$1,
|
|
86267
|
-
L:
|
|
86279
|
+
L: 114,
|
|
86268
86280
|
S: this,
|
|
86269
86281
|
C: (q, G) => q(...G)
|
|
86270
86282
|
}), {
|
|
@@ -86279,7 +86291,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86279
86291
|
sessionId: (U = this.connection) == null ? void 0 : U.sessionId
|
|
86280
86292
|
}, {
|
|
86281
86293
|
F: __dxlog_file3$1,
|
|
86282
|
-
L:
|
|
86294
|
+
L: 123,
|
|
86283
86295
|
S: this,
|
|
86284
86296
|
C: (q, G) => q(...G)
|
|
86285
86297
|
}), this.connection && await this.closeConnection(new ConnectionDisplacedError());
|
|
@@ -86290,7 +86302,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86290
86302
|
if (await this._callbacks.onOffer(I) && !this.connection) {
|
|
86291
86303
|
invariant($.sessionId, void 0, {
|
|
86292
86304
|
F: __dxlog_file3$1,
|
|
86293
|
-
L:
|
|
86305
|
+
L: 143,
|
|
86294
86306
|
S: this,
|
|
86295
86307
|
A: [
|
|
86296
86308
|
"message.sessionId",
|
|
@@ -86308,7 +86320,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86308
86320
|
err: G
|
|
86309
86321
|
}, {
|
|
86310
86322
|
F: __dxlog_file3$1,
|
|
86311
|
-
L:
|
|
86323
|
+
L: 153,
|
|
86312
86324
|
S: this,
|
|
86313
86325
|
C: (K, Y) => K(...Y)
|
|
86314
86326
|
}), await this.closeConnection(G);
|
|
@@ -86327,7 +86339,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86327
86339
|
async initiateConnection() {
|
|
86328
86340
|
invariant(!this.initiating, "Initiation in progress.", {
|
|
86329
86341
|
F: __dxlog_file3$1,
|
|
86330
|
-
L:
|
|
86342
|
+
L: 170,
|
|
86331
86343
|
S: this,
|
|
86332
86344
|
A: [
|
|
86333
86345
|
"!this.initiating",
|
|
@@ -86335,7 +86347,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86335
86347
|
]
|
|
86336
86348
|
}), invariant(!this.connection, "Already connected.", {
|
|
86337
86349
|
F: __dxlog_file3$1,
|
|
86338
|
-
L:
|
|
86350
|
+
L: 171,
|
|
86339
86351
|
S: this,
|
|
86340
86352
|
A: [
|
|
86341
86353
|
"!this.connection",
|
|
@@ -86350,7 +86362,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86350
86362
|
sessionId: $
|
|
86351
86363
|
}, {
|
|
86352
86364
|
F: __dxlog_file3$1,
|
|
86353
|
-
L:
|
|
86365
|
+
L: 173,
|
|
86354
86366
|
S: this,
|
|
86355
86367
|
C: (q, G) => q(...G)
|
|
86356
86368
|
});
|
|
@@ -86373,13 +86385,13 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86373
86385
|
remoteId: this.id
|
|
86374
86386
|
}, {
|
|
86375
86387
|
F: __dxlog_file3$1,
|
|
86376
|
-
L:
|
|
86388
|
+
L: 190,
|
|
86377
86389
|
S: this,
|
|
86378
86390
|
C: (q, G) => q(...G)
|
|
86379
86391
|
}), I.state !== ConnectionState.INITIAL) {
|
|
86380
86392
|
log$2("ignoring response", void 0, {
|
|
86381
86393
|
F: __dxlog_file3$1,
|
|
86382
|
-
L:
|
|
86394
|
+
L: 192,
|
|
86383
86395
|
S: this,
|
|
86384
86396
|
C: (q, G) => q(...G)
|
|
86385
86397
|
});
|
|
@@ -86393,7 +86405,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86393
86405
|
remoteId: this.id
|
|
86394
86406
|
}, {
|
|
86395
86407
|
F: __dxlog_file3$1,
|
|
86396
|
-
L:
|
|
86408
|
+
L: 196,
|
|
86397
86409
|
S: this,
|
|
86398
86410
|
C: (G, K) => G(...K)
|
|
86399
86411
|
}), await I.abort(q), q;
|
|
@@ -86413,7 +86425,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86413
86425
|
remoteId: this.id
|
|
86414
86426
|
}, {
|
|
86415
86427
|
F: __dxlog_file3$1,
|
|
86416
|
-
L:
|
|
86428
|
+
L: 209,
|
|
86417
86429
|
S: this,
|
|
86418
86430
|
C: (G, K) => G(...K)
|
|
86419
86431
|
}), await I.abort(q), q;
|
|
@@ -86423,7 +86435,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86423
86435
|
try {
|
|
86424
86436
|
log$2("opening connection as initiator", void 0, {
|
|
86425
86437
|
F: __dxlog_file3$1,
|
|
86426
|
-
L:
|
|
86438
|
+
L: 222,
|
|
86427
86439
|
S: this,
|
|
86428
86440
|
C: (q, G) => q(...G)
|
|
86429
86441
|
}), await I.openConnection(), this._callbacks.onAccepted();
|
|
@@ -86435,14 +86447,14 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86435
86447
|
remoteId: this.id
|
|
86436
86448
|
}, {
|
|
86437
86449
|
F: __dxlog_file3$1,
|
|
86438
|
-
L:
|
|
86450
|
+
L: 226,
|
|
86439
86451
|
S: this,
|
|
86440
86452
|
C: (G, K) => G(...K)
|
|
86441
86453
|
}), log$2.warn("closing connection due to unhandled error on openConnection", {
|
|
86442
86454
|
err: q
|
|
86443
86455
|
}, {
|
|
86444
86456
|
F: __dxlog_file3$1,
|
|
86445
|
-
L:
|
|
86457
|
+
L: 233,
|
|
86446
86458
|
S: this,
|
|
86447
86459
|
C: (G, K) => G(...K)
|
|
86448
86460
|
}), await this.closeConnection(q), q;
|
|
@@ -86464,12 +86476,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86464
86476
|
sessionId: I
|
|
86465
86477
|
}, {
|
|
86466
86478
|
F: __dxlog_file3$1,
|
|
86467
|
-
L:
|
|
86479
|
+
L: 247,
|
|
86468
86480
|
S: this,
|
|
86469
86481
|
C: (G, K) => G(...K)
|
|
86470
86482
|
}), invariant(!this.connection, "Already connected.", {
|
|
86471
86483
|
F: __dxlog_file3$1,
|
|
86472
|
-
L:
|
|
86484
|
+
L: 254,
|
|
86473
86485
|
S: this,
|
|
86474
86486
|
A: [
|
|
86475
86487
|
"!this.connection",
|
|
@@ -86501,7 +86513,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86501
86513
|
initiator: $
|
|
86502
86514
|
}, {
|
|
86503
86515
|
F: __dxlog_file3$1,
|
|
86504
|
-
L:
|
|
86516
|
+
L: 273,
|
|
86505
86517
|
S: this,
|
|
86506
86518
|
C: (G, K) => G(...K)
|
|
86507
86519
|
});
|
|
@@ -86514,12 +86526,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86514
86526
|
initiator: $
|
|
86515
86527
|
}, {
|
|
86516
86528
|
F: __dxlog_file3$1,
|
|
86517
|
-
L:
|
|
86529
|
+
L: 282,
|
|
86518
86530
|
S: this,
|
|
86519
86531
|
C: (K, Y) => K(...Y)
|
|
86520
86532
|
}), this._connectionLimiter.doneConnecting(I), invariant(this.connection === U, "Connection mismatch (race condition).", {
|
|
86521
86533
|
F: __dxlog_file3$1,
|
|
86522
|
-
L:
|
|
86534
|
+
L: 287,
|
|
86523
86535
|
S: this,
|
|
86524
86536
|
A: [
|
|
86525
86537
|
"this.connection === connection",
|
|
@@ -86533,7 +86545,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86533
86545
|
initiator: $
|
|
86534
86546
|
}, {
|
|
86535
86547
|
F: __dxlog_file3$1,
|
|
86536
|
-
L:
|
|
86548
|
+
L: 289,
|
|
86537
86549
|
S: this,
|
|
86538
86550
|
C: (K, Y) => K(...Y)
|
|
86539
86551
|
}), G instanceof ConnectionDisplacedError ? this.connectionDisplaced.emit(this.connection) : (this._lastConnectionTime && this._lastConnectionTime + CONNECTION_COUNTS_STABLE_AFTER < Date.now() ? this._availableAfter = 0 : (this.availableToConnect = !1, this._availableAfter = increaseInterval(this._availableAfter)), this._callbacks.onDisconnected(), scheduleTask(this._connectionCtx, () => {
|
|
@@ -86551,7 +86563,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86551
86563
|
err: G
|
|
86552
86564
|
}, {
|
|
86553
86565
|
F: __dxlog_file3$1,
|
|
86554
|
-
L:
|
|
86566
|
+
L: 329,
|
|
86555
86567
|
S: this,
|
|
86556
86568
|
C: (K, Y) => K(...Y)
|
|
86557
86569
|
}), log$2.trace("dxos.mesh.connection.error", {
|
|
@@ -86563,7 +86575,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86563
86575
|
err: G
|
|
86564
86576
|
}, {
|
|
86565
86577
|
F: __dxlog_file3$1,
|
|
86566
|
-
L:
|
|
86578
|
+
L: 336,
|
|
86567
86579
|
S: this,
|
|
86568
86580
|
C: (K, Y) => K(...Y)
|
|
86569
86581
|
}), this.closeConnection(G);
|
|
@@ -86578,7 +86590,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86578
86590
|
sessionId: I.sessionId
|
|
86579
86591
|
}, {
|
|
86580
86592
|
F: __dxlog_file3$1,
|
|
86581
|
-
L:
|
|
86593
|
+
L: 361,
|
|
86582
86594
|
S: this,
|
|
86583
86595
|
C: (U, q) => U(...q)
|
|
86584
86596
|
}), await I.close($), log$2("closed", {
|
|
@@ -86586,7 +86598,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86586
86598
|
sessionId: I.sessionId
|
|
86587
86599
|
}, {
|
|
86588
86600
|
F: __dxlog_file3$1,
|
|
86589
|
-
L:
|
|
86601
|
+
L: 367,
|
|
86590
86602
|
S: this,
|
|
86591
86603
|
C: (U, q) => U(...q)
|
|
86592
86604
|
});
|
|
@@ -86597,7 +86609,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86597
86609
|
message: $
|
|
86598
86610
|
}, {
|
|
86599
86611
|
F: __dxlog_file3$1,
|
|
86600
|
-
L:
|
|
86612
|
+
L: 372,
|
|
86601
86613
|
S: this,
|
|
86602
86614
|
C: (I, U) => I(...U)
|
|
86603
86615
|
});
|
|
@@ -86612,7 +86624,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86612
86624
|
topic: this.topic
|
|
86613
86625
|
}, {
|
|
86614
86626
|
F: __dxlog_file3$1,
|
|
86615
|
-
L:
|
|
86627
|
+
L: 382,
|
|
86616
86628
|
S: this,
|
|
86617
86629
|
C: (U, q) => U(...q)
|
|
86618
86630
|
}), await ((I = this == null ? void 0 : this.connection) == null ? void 0 : I.close($));
|
|
@@ -87040,88 +87052,88 @@ var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-man
|
|
|
87040
87052
|
}
|
|
87041
87053
|
}), Qn, MemoryTransport = (Qn = class {
|
|
87042
87054
|
constructor(I) {
|
|
87043
|
-
this.
|
|
87055
|
+
this._options = I, this._instanceId = PublicKey.random(), this._remote = new Trigger(), this._outgoingDelay = createStreamDelay(MEMORY_TRANSPORT_DELAY), this._incomingDelay = createStreamDelay(MEMORY_TRANSPORT_DELAY), this._closed = !1, this.closed = new Event$1(), this.connected = new Event$1(), this.errors = new ErrorStream(), invariant(!Qn._connections.has(this._instanceId), "Duplicate memory connection", {
|
|
87044
87056
|
F: __dxlog_file11,
|
|
87045
87057
|
L: 64,
|
|
87046
87058
|
S: this,
|
|
87047
|
-
C: (U, q) => U(...q)
|
|
87048
|
-
}), invariant(!Qn._connections.has(this._instanceId), "Duplicate memory connection", {
|
|
87049
|
-
F: __dxlog_file11,
|
|
87050
|
-
L: 66,
|
|
87051
|
-
S: this,
|
|
87052
87059
|
A: [
|
|
87053
87060
|
"!MemoryTransport._connections.has(this._instanceId)",
|
|
87054
87061
|
"'Duplicate memory connection'"
|
|
87055
87062
|
]
|
|
87056
|
-
}), Qn._connections.set(this._instanceId, this)
|
|
87063
|
+
}), Qn._connections.set(this._instanceId, this);
|
|
87064
|
+
}
|
|
87065
|
+
get isOpen() {
|
|
87066
|
+
return !this._closed;
|
|
87067
|
+
}
|
|
87068
|
+
async open() {
|
|
87069
|
+
if (log$2("opening...", void 0, {
|
|
87070
|
+
F: __dxlog_file11,
|
|
87071
|
+
L: 74,
|
|
87072
|
+
S: this,
|
|
87073
|
+
C: (I, U) => I(...U)
|
|
87074
|
+
}), this._options.initiator) {
|
|
87057
87075
|
log$2("sending signal", void 0, {
|
|
87058
87076
|
F: __dxlog_file11,
|
|
87059
|
-
L:
|
|
87077
|
+
L: 78,
|
|
87060
87078
|
S: this,
|
|
87061
|
-
C: (
|
|
87062
|
-
}), this.options.sendSignal({
|
|
87063
|
-
payload: {
|
|
87064
|
-
transportId: this._instanceId.toHex()
|
|
87065
|
-
}
|
|
87066
|
-
}).catch((U) => {
|
|
87067
|
-
this._destroyed || this.errors.raise(U);
|
|
87079
|
+
C: (I, U) => I(...U)
|
|
87068
87080
|
});
|
|
87069
|
-
|
|
87070
|
-
|
|
87071
|
-
|
|
87072
|
-
|
|
87073
|
-
|
|
87074
|
-
|
|
87075
|
-
|
|
87076
|
-
|
|
87077
|
-
invariant(!this._remoteConnection._remoteConnection, `Remote already connected: ${this._remoteInstanceId}`, {
|
|
87078
|
-
F: __dxlog_file11,
|
|
87079
|
-
L: 99,
|
|
87080
|
-
S: this,
|
|
87081
|
-
A: [
|
|
87082
|
-
"!this._remoteConnection._remoteConnection",
|
|
87083
|
-
"`Remote already connected: ${this._remoteInstanceId}`"
|
|
87084
|
-
]
|
|
87085
|
-
}), this._remoteConnection._remoteConnection = this, this._remoteConnection._remoteInstanceId = this._instanceId, log$2("connected", void 0, {
|
|
87086
|
-
F: __dxlog_file11,
|
|
87087
|
-
L: 103,
|
|
87088
|
-
S: this,
|
|
87089
|
-
C: (q, G) => q(...G)
|
|
87090
|
-
}), this.options.stream.pipe(this._outgoingDelay).pipe(this._remoteConnection.options.stream).pipe(this._incomingDelay).pipe(this.options.stream), this.connected.emit(), this._remoteConnection.connected.emit();
|
|
87081
|
+
try {
|
|
87082
|
+
await this._options.sendSignal({
|
|
87083
|
+
payload: {
|
|
87084
|
+
transportId: this._instanceId.toHex()
|
|
87085
|
+
}
|
|
87086
|
+
});
|
|
87087
|
+
} catch (I) {
|
|
87088
|
+
this._closed || this.errors.raise(toError(I));
|
|
87091
87089
|
}
|
|
87092
|
-
}
|
|
87093
|
-
this.
|
|
87094
|
-
|
|
87090
|
+
} else
|
|
87091
|
+
this._remote.wait({
|
|
87092
|
+
timeout: this._options.timeout ?? 1e3
|
|
87093
|
+
}).then((I) => {
|
|
87094
|
+
if (!this._closed) {
|
|
87095
|
+
if (this._remoteInstanceId = I, this._remoteConnection = Qn._connections.get(this._remoteInstanceId), !this._remoteConnection) {
|
|
87096
|
+
this._closed = !0, this.closed.emit();
|
|
87097
|
+
return;
|
|
87098
|
+
}
|
|
87099
|
+
invariant(!this._remoteConnection._remoteConnection, `Remote already connected: ${this._remoteInstanceId}`, {
|
|
87100
|
+
F: __dxlog_file11,
|
|
87101
|
+
L: 104,
|
|
87102
|
+
S: this,
|
|
87103
|
+
A: [
|
|
87104
|
+
"!this._remoteConnection._remoteConnection",
|
|
87105
|
+
"`Remote already connected: ${this._remoteInstanceId}`"
|
|
87106
|
+
]
|
|
87107
|
+
}), this._remoteConnection._remoteConnection = this, this._remoteConnection._remoteInstanceId = this._instanceId, log$2("connected", void 0, {
|
|
87108
|
+
F: __dxlog_file11,
|
|
87109
|
+
L: 108,
|
|
87110
|
+
S: this,
|
|
87111
|
+
C: (U, q) => U(...q)
|
|
87112
|
+
}), this._options.stream.pipe(this._outgoingDelay).pipe(this._remoteConnection._options.stream).pipe(this._incomingDelay).pipe(this._options.stream), this.connected.emit(), this._remoteConnection.connected.emit();
|
|
87113
|
+
}
|
|
87114
|
+
}).catch((I) => {
|
|
87115
|
+
this._closed || this.errors.raise(I);
|
|
87116
|
+
});
|
|
87095
87117
|
}
|
|
87096
|
-
async
|
|
87097
|
-
log$2("closing", void 0, {
|
|
87098
|
-
F: __dxlog_file11,
|
|
87099
|
-
L: 124,
|
|
87100
|
-
S: this,
|
|
87101
|
-
C: (I, U) => I(...U)
|
|
87102
|
-
}), this._destroyed = !0, Qn._connections.delete(this._instanceId), this._remoteConnection && (log$2("closing", void 0, {
|
|
87118
|
+
async close() {
|
|
87119
|
+
log$2("closing...", void 0, {
|
|
87103
87120
|
F: __dxlog_file11,
|
|
87104
87121
|
L: 129,
|
|
87105
87122
|
S: this,
|
|
87106
87123
|
C: (I, U) => I(...U)
|
|
87107
|
-
}), this._remoteConnection.
|
|
87124
|
+
}), this._closed = !0, Qn._connections.delete(this._instanceId), this._remoteConnection && (this._remoteConnection._closed = !0, Qn._connections.delete(this._remoteInstanceId), this._options.stream.unpipe(this._incomingDelay), this._incomingDelay.unpipe(this._remoteConnection._options.stream), this._remoteConnection._options.stream.unpipe(this._outgoingDelay), this._outgoingDelay.unpipe(this._options.stream), this._options.stream.unpipe(this._outgoingDelay), this._remoteConnection.closed.emit(), this._remoteConnection._remoteConnection = void 0, this._remoteConnection = void 0), this.closed.emit(), log$2("closed", void 0, {
|
|
87108
87125
|
F: __dxlog_file11,
|
|
87109
|
-
L:
|
|
87110
|
-
S: this,
|
|
87111
|
-
C: (I, U) => I(...U)
|
|
87112
|
-
})), this.closed.emit(), log$2("closed", void 0, {
|
|
87113
|
-
F: __dxlog_file11,
|
|
87114
|
-
L: 154,
|
|
87126
|
+
L: 157,
|
|
87115
87127
|
S: this,
|
|
87116
87128
|
C: (I, U) => I(...U)
|
|
87117
87129
|
});
|
|
87118
87130
|
}
|
|
87119
|
-
|
|
87131
|
+
async onSignal({ payload: I }) {
|
|
87120
87132
|
if (log$2("received signal", {
|
|
87121
87133
|
payload: I
|
|
87122
87134
|
}, {
|
|
87123
87135
|
F: __dxlog_file11,
|
|
87124
|
-
L:
|
|
87136
|
+
L: 161,
|
|
87125
87137
|
S: this,
|
|
87126
87138
|
C: (q, G) => q(...G)
|
|
87127
87139
|
}), !(I != null && I.transportId))
|
|
@@ -87150,9 +87162,9 @@ _ts_decorate4$1([
|
|
|
87150
87162
|
_ts_decorate4$1([
|
|
87151
87163
|
logInfo
|
|
87152
87164
|
], MemoryTransport.prototype, "_remoteInstanceId", void 0);
|
|
87153
|
-
var TransportKind;
|
|
87165
|
+
var toError = ($) => $ instanceof Error ? $ : new Error(String($)), TransportKind;
|
|
87154
87166
|
(function($) {
|
|
87155
|
-
$.SIMPLE_PEER = "SIMPLE_PEER", $.
|
|
87167
|
+
$.SIMPLE_PEER = "SIMPLE_PEER", $.SIMPLE_PEER_PROXY = "SIMPLE_PEER_PROXY", $.LIBDATACHANNEL = "LIBDATACHANNEL", $.MEMORY = "MEMORY", $.TCP = "TCP";
|
|
87156
87168
|
})(TransportKind || (TransportKind = {}));
|
|
87157
87169
|
var wrtc = null;
|
|
87158
87170
|
try {
|
|
@@ -87170,115 +87182,146 @@ function _ts_decorate5$1($, I, U, q) {
|
|
|
87170
87182
|
}
|
|
87171
87183
|
var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/libdatachannel-transport.ts", DATACHANNEL_LABEL = "dxos.mesh.transport", MAX_BUFFERED_AMOUNT = 64 * 1024, MAX_MESSAGE_SIZE = 64 * 1024, or, LibDataChannelTransport = (or = class {
|
|
87172
87184
|
constructor(I) {
|
|
87173
|
-
this.
|
|
87174
|
-
|
|
87175
|
-
|
|
87176
|
-
|
|
87177
|
-
|
|
87178
|
-
|
|
87179
|
-
|
|
87180
|
-
|
|
87181
|
-
|
|
87182
|
-
|
|
87183
|
-
|
|
87184
|
-
|
|
87185
|
-
|
|
87186
|
-
|
|
87187
|
-
|
|
87188
|
-
|
|
87189
|
-
|
|
87190
|
-
|
|
87191
|
-
|
|
87192
|
-
|
|
87193
|
-
|
|
87194
|
-
|
|
87195
|
-
|
|
87196
|
-
|
|
87197
|
-
|
|
87198
|
-
|
|
87199
|
-
|
|
87200
|
-
|
|
87201
|
-
|
|
87202
|
-
|
|
87203
|
-
|
|
87204
|
-
|
|
87205
|
-
|
|
87206
|
-
|
|
87207
|
-
|
|
87208
|
-
|
|
87209
|
-
|
|
87210
|
-
|
|
87211
|
-
|
|
87212
|
-
|
|
87213
|
-
|
|
87214
|
-
|
|
87215
|
-
|
|
87216
|
-
|
|
87217
|
-
|
|
87218
|
-
|
|
87185
|
+
this._options = I, this._closed = !1, this._connected = !1, this._writeCallback = null, this._readyForCandidates = new Trigger(), this.closed = new Event$1(), this.connected = new Event$1(), this.errors = new ErrorStream();
|
|
87186
|
+
}
|
|
87187
|
+
get isOpen() {
|
|
87188
|
+
return !!this._peer && !this._closed;
|
|
87189
|
+
}
|
|
87190
|
+
async open() {
|
|
87191
|
+
this._closed && this.errors.raise(new Error("connection already closed"));
|
|
87192
|
+
const { RTCPeerConnection: I } = (await importESM("node-datachannel/polyfill")).default;
|
|
87193
|
+
this._options.webrtcConfig ? this._options.webrtcConfig.iceServers = this._options.webrtcConfig.iceServers ?? [] : this._options.webrtcConfig = {
|
|
87194
|
+
iceServers: []
|
|
87195
|
+
}, this._peer = new I(this._options.webrtcConfig), this._peer.onicecandidateerror = (U) => {
|
|
87196
|
+
log$2.error("peer.onicecandidateerror", {
|
|
87197
|
+
event: U
|
|
87198
|
+
}, {
|
|
87199
|
+
F: __dxlog_file15,
|
|
87200
|
+
L: 77,
|
|
87201
|
+
S: this,
|
|
87202
|
+
C: (q, G) => q(...G)
|
|
87203
|
+
});
|
|
87204
|
+
}, this._peer.onconnectionstatechange = (U) => {
|
|
87205
|
+
var q;
|
|
87206
|
+
log$2.debug("peer.onconnectionstatechange", {
|
|
87207
|
+
event: U,
|
|
87208
|
+
peerConnectionState: (q = this._peer) == null ? void 0 : q.connectionState,
|
|
87209
|
+
transportConnectionState: this._connected
|
|
87210
|
+
}, {
|
|
87211
|
+
F: __dxlog_file15,
|
|
87212
|
+
L: 81,
|
|
87213
|
+
S: this,
|
|
87214
|
+
C: (G, K) => G(...K)
|
|
87215
|
+
});
|
|
87216
|
+
}, this._peer.onicecandidate = async (U) => {
|
|
87217
|
+
if (log$2.debug("peer.onicecandidate", {
|
|
87218
|
+
event: U
|
|
87219
|
+
}, {
|
|
87220
|
+
F: __dxlog_file15,
|
|
87221
|
+
L: 91,
|
|
87222
|
+
S: this,
|
|
87223
|
+
C: (q, G) => q(...G)
|
|
87224
|
+
}), U.candidate)
|
|
87225
|
+
try {
|
|
87226
|
+
await this._options.sendSignal({
|
|
87227
|
+
payload: {
|
|
87228
|
+
data: {
|
|
87229
|
+
type: "candidate",
|
|
87230
|
+
candidate: {
|
|
87231
|
+
candidate: U.candidate.candidate,
|
|
87232
|
+
// These fields never seem to be not null, but connecting to Chrome doesn't work if they are.
|
|
87233
|
+
sdpMLineIndex: U.candidate.sdpMLineIndex ?? 0,
|
|
87234
|
+
sdpMid: U.candidate.sdpMid ?? 0
|
|
87219
87235
|
}
|
|
87220
87236
|
}
|
|
87221
|
-
}
|
|
87222
|
-
}
|
|
87223
|
-
|
|
87224
|
-
|
|
87225
|
-
|
|
87226
|
-
F: __dxlog_file15,
|
|
87227
|
-
L: 93,
|
|
87228
|
-
S: this,
|
|
87229
|
-
C: (Y, J) => Y(...J)
|
|
87230
|
-
});
|
|
87231
|
-
}
|
|
87232
|
-
}, I.initiator ? (q.createOffer().then(async (G) => {
|
|
87233
|
-
if (!this._closed)
|
|
87234
|
-
return q.connectionState !== "connecting" && (log$2.error("i am initiator but peer not in state connecting", {
|
|
87235
|
-
peer: q
|
|
87236
|
-
}, {
|
|
87237
|
-
F: __dxlog_file15,
|
|
87238
|
-
L: 106,
|
|
87239
|
-
S: this,
|
|
87240
|
-
C: (K, Y) => K(...Y)
|
|
87241
|
-
}), this.errors.raise(new Error("invalid state: peer is initiator, but other peer not in state connecting"))), log$2.debug(`im the initiator, creating offer, peer is in state ${q.connectionState}`, {
|
|
87242
|
-
offer: G
|
|
87237
|
+
}
|
|
87238
|
+
});
|
|
87239
|
+
} catch (q) {
|
|
87240
|
+
log$2.info("signaling error", {
|
|
87241
|
+
err: q
|
|
87243
87242
|
}, {
|
|
87244
87243
|
F: __dxlog_file15,
|
|
87245
|
-
L:
|
|
87244
|
+
L: 108,
|
|
87246
87245
|
S: this,
|
|
87247
|
-
C: (
|
|
87248
|
-
})
|
|
87249
|
-
|
|
87250
|
-
|
|
87251
|
-
|
|
87252
|
-
|
|
87253
|
-
|
|
87254
|
-
|
|
87255
|
-
|
|
87256
|
-
|
|
87257
|
-
|
|
87258
|
-
|
|
87246
|
+
C: (G, K) => G(...K)
|
|
87247
|
+
});
|
|
87248
|
+
}
|
|
87249
|
+
}, this._options.initiator ? (invariant(this._peer, "not open", {
|
|
87250
|
+
F: __dxlog_file15,
|
|
87251
|
+
L: 114,
|
|
87252
|
+
S: this,
|
|
87253
|
+
A: [
|
|
87254
|
+
"this._peer",
|
|
87255
|
+
"'not open'"
|
|
87256
|
+
]
|
|
87257
|
+
}), this._peer.createOffer().then(async (U) => {
|
|
87258
|
+
var q;
|
|
87259
|
+
this._closed || (((q = this._peer) == null ? void 0 : q.connectionState) !== "connecting" && (log$2.error("peer not connecting", {
|
|
87260
|
+
peer: this._peer
|
|
87261
|
+
}, {
|
|
87259
87262
|
F: __dxlog_file15,
|
|
87260
|
-
L:
|
|
87263
|
+
L: 125,
|
|
87261
87264
|
S: this,
|
|
87262
87265
|
C: (G, K) => G(...K)
|
|
87263
|
-
}),
|
|
87264
|
-
this.
|
|
87265
|
-
|
|
87266
|
-
|
|
87267
|
-
|
|
87268
|
-
|
|
87269
|
-
|
|
87270
|
-
|
|
87271
|
-
|
|
87272
|
-
|
|
87273
|
-
|
|
87274
|
-
|
|
87275
|
-
|
|
87266
|
+
}), this.errors.raise(new Error("invalid state: peer is initiator, but other peer not in state connecting"))), log$2.debug("creating offer", {
|
|
87267
|
+
peer: this._peer,
|
|
87268
|
+
offer: U
|
|
87269
|
+
}, {
|
|
87270
|
+
F: __dxlog_file15,
|
|
87271
|
+
L: 129,
|
|
87272
|
+
S: this,
|
|
87273
|
+
C: (G, K) => G(...K)
|
|
87274
|
+
}), await this._peer.setLocalDescription(U), await this._options.sendSignal({
|
|
87275
|
+
payload: {
|
|
87276
|
+
data: {
|
|
87277
|
+
type: U.type,
|
|
87278
|
+
sdp: U.sdp
|
|
87279
|
+
}
|
|
87280
|
+
}
|
|
87281
|
+
}));
|
|
87282
|
+
}).catch((U) => {
|
|
87283
|
+
this.errors.raise(U);
|
|
87284
|
+
}), this._handleChannel(this._peer.createDataChannel(DATACHANNEL_LABEL)), log$2.debug("created data channel", void 0, {
|
|
87285
|
+
F: __dxlog_file15,
|
|
87286
|
+
L: 139,
|
|
87287
|
+
S: this,
|
|
87288
|
+
C: (U, q) => U(...q)
|
|
87289
|
+
}), this._peer.ondatachannel = () => {
|
|
87290
|
+
this.errors.raise(new Error("unexpected ondatachannel event for initiator"));
|
|
87291
|
+
}) : this._peer.ondatachannel = (U) => {
|
|
87292
|
+
log$2.debug("peer.ondatachannel (non-initiator)", {
|
|
87293
|
+
event: U
|
|
87294
|
+
}, {
|
|
87295
|
+
F: __dxlog_file15,
|
|
87296
|
+
L: 145,
|
|
87297
|
+
S: this,
|
|
87298
|
+
C: (q, G) => q(...G)
|
|
87299
|
+
}), U.channel.label !== DATACHANNEL_LABEL && this.errors.raise(new Error(`unexpected channel label ${U.channel.label}`)), this._handleChannel(U.channel);
|
|
87300
|
+
}, or._instanceCount++;
|
|
87301
|
+
}
|
|
87302
|
+
async close() {
|
|
87303
|
+
await this._close(), --or._instanceCount === 0 && (await importESM("node-datachannel")).cleanup();
|
|
87304
|
+
}
|
|
87305
|
+
async _close() {
|
|
87306
|
+
var I;
|
|
87307
|
+
if (!this._closed) {
|
|
87308
|
+
await this._disconnectStreams();
|
|
87309
|
+
try {
|
|
87310
|
+
(I = this._peer) == null || I.close();
|
|
87311
|
+
} catch (U) {
|
|
87312
|
+
this.errors.raise(U);
|
|
87313
|
+
}
|
|
87314
|
+
this._peer = void 0, this._closed = !0, this.closed.emit();
|
|
87315
|
+
}
|
|
87276
87316
|
}
|
|
87277
|
-
|
|
87317
|
+
/**
|
|
87318
|
+
* Handle data channel events.
|
|
87319
|
+
*/
|
|
87320
|
+
_handleChannel(I) {
|
|
87278
87321
|
this._channel = I, this._channel.onopen = () => {
|
|
87279
|
-
log$2.debug("
|
|
87322
|
+
log$2.debug("channel.onopen", void 0, {
|
|
87280
87323
|
F: __dxlog_file15,
|
|
87281
|
-
L:
|
|
87324
|
+
L: 190,
|
|
87282
87325
|
S: this,
|
|
87283
87326
|
C: (q, G) => q(...G)
|
|
87284
87327
|
});
|
|
@@ -87292,146 +87335,131 @@ var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-man
|
|
|
87292
87335
|
} catch (Y) {
|
|
87293
87336
|
this.errors.raise(Y), await this._close();
|
|
87294
87337
|
}
|
|
87295
|
-
this._channel.bufferedAmount > MAX_BUFFERED_AMOUNT ? (this._writeCallback !== null && log$2.error("consumer trying to write before we
|
|
87338
|
+
this._channel.bufferedAmount > MAX_BUFFERED_AMOUNT ? (this._writeCallback !== null && log$2.error("consumer trying to write before we are ready for more data", void 0, {
|
|
87296
87339
|
F: __dxlog_file15,
|
|
87297
|
-
L:
|
|
87340
|
+
L: 207,
|
|
87298
87341
|
S: this,
|
|
87299
87342
|
C: (Y, J) => Y(...J)
|
|
87300
87343
|
}), this._writeCallback = K) : K();
|
|
87301
87344
|
}
|
|
87302
87345
|
});
|
|
87303
|
-
U.pipe(this.
|
|
87304
|
-
}, this._channel.onerror = async (U) => {
|
|
87305
|
-
this.errors.raise(new Error("channel error: " + U.toString())), await this._close();
|
|
87346
|
+
U.pipe(this._options.stream).pipe(U), this._stream = U, this._connected = !0, this.connected.emit();
|
|
87306
87347
|
}, this._channel.onclose = async (U) => {
|
|
87307
|
-
log$2.info("channel
|
|
87348
|
+
log$2.info("channel.onclose", {
|
|
87308
87349
|
err: U
|
|
87309
87350
|
}, {
|
|
87310
87351
|
F: __dxlog_file15,
|
|
87311
|
-
L:
|
|
87352
|
+
L: 223,
|
|
87312
87353
|
S: this,
|
|
87313
87354
|
C: (q, G) => q(...G)
|
|
87314
87355
|
}), await this._close();
|
|
87315
|
-
}, this._channel.
|
|
87316
|
-
|
|
87317
|
-
q instanceof ArrayBuffer && (q = export_Buffer.from(q)), this._stream.push(q);
|
|
87356
|
+
}, this._channel.onerror = async (U) => {
|
|
87357
|
+
this.errors.raise(new Error("channel error: " + U.toString())), await this._close();
|
|
87318
87358
|
}, this._channel.onbufferedamountlow = () => {
|
|
87319
87359
|
const U = this._writeCallback;
|
|
87320
87360
|
this._writeCallback = null, U == null || U();
|
|
87361
|
+
}, this._channel.onmessage = (U) => {
|
|
87362
|
+
let q = U.data;
|
|
87363
|
+
q instanceof ArrayBuffer && (q = export_Buffer.from(q)), this._stream.push(q);
|
|
87321
87364
|
};
|
|
87322
87365
|
}
|
|
87323
|
-
async
|
|
87324
|
-
|
|
87325
|
-
|
|
87326
|
-
|
|
87327
|
-
|
|
87366
|
+
async onSignal(I) {
|
|
87367
|
+
invariant(this._peer, "not open", {
|
|
87368
|
+
F: __dxlog_file15,
|
|
87369
|
+
L: 249,
|
|
87370
|
+
S: this,
|
|
87371
|
+
A: [
|
|
87372
|
+
"this._peer",
|
|
87373
|
+
"'not open'"
|
|
87374
|
+
]
|
|
87375
|
+
});
|
|
87328
87376
|
try {
|
|
87329
|
-
I.
|
|
87330
|
-
|
|
87331
|
-
this.errors.raise(U);
|
|
87332
|
-
}
|
|
87333
|
-
this._closed = !0, this.closed.emit();
|
|
87334
|
-
}
|
|
87335
|
-
signal(I) {
|
|
87336
|
-
this._peer.then(async (U) => {
|
|
87337
|
-
const q = I.payload.data;
|
|
87338
|
-
switch (q.type) {
|
|
87377
|
+
const U = I.payload.data;
|
|
87378
|
+
switch (U.type) {
|
|
87339
87379
|
case "offer": {
|
|
87340
|
-
if (
|
|
87380
|
+
if (this._peer.connectionState !== "new") {
|
|
87341
87381
|
log$2.error("received offer but peer not in state new", {
|
|
87342
|
-
peer:
|
|
87382
|
+
peer: this._peer
|
|
87343
87383
|
}, {
|
|
87344
87384
|
F: __dxlog_file15,
|
|
87345
|
-
L:
|
|
87385
|
+
L: 256,
|
|
87346
87386
|
S: this,
|
|
87347
|
-
C: (
|
|
87387
|
+
C: (q, G) => q(...G)
|
|
87348
87388
|
}), this.errors.raise(new Error("invalid signalling state: received offer when peer is not in state new"));
|
|
87349
87389
|
break;
|
|
87350
87390
|
}
|
|
87351
87391
|
try {
|
|
87352
|
-
await
|
|
87353
|
-
type:
|
|
87354
|
-
sdp:
|
|
87392
|
+
await this._peer.setRemoteDescription({
|
|
87393
|
+
type: U.type,
|
|
87394
|
+
sdp: U.sdp
|
|
87355
87395
|
});
|
|
87356
|
-
const
|
|
87357
|
-
await
|
|
87396
|
+
const q = await this._peer.createAnswer();
|
|
87397
|
+
await this._peer.setLocalDescription(q), await this._options.sendSignal({
|
|
87358
87398
|
payload: {
|
|
87359
87399
|
data: {
|
|
87360
|
-
type:
|
|
87361
|
-
sdp:
|
|
87400
|
+
type: q.type,
|
|
87401
|
+
sdp: q.sdp
|
|
87362
87402
|
}
|
|
87363
87403
|
}
|
|
87364
87404
|
}), this._readyForCandidates.wake();
|
|
87365
|
-
} catch (
|
|
87366
|
-
log$2.error("
|
|
87367
|
-
err:
|
|
87405
|
+
} catch (q) {
|
|
87406
|
+
log$2.error("cannot handle offer from signalling server", {
|
|
87407
|
+
err: q
|
|
87368
87408
|
}, {
|
|
87369
87409
|
F: __dxlog_file15,
|
|
87370
|
-
L:
|
|
87410
|
+
L: 268,
|
|
87371
87411
|
S: this,
|
|
87372
|
-
C: (
|
|
87412
|
+
C: (G, K) => G(...K)
|
|
87373
87413
|
}), this.errors.raise(new Error("error handling offer"));
|
|
87374
87414
|
}
|
|
87375
87415
|
break;
|
|
87376
87416
|
}
|
|
87377
87417
|
case "answer":
|
|
87378
87418
|
try {
|
|
87379
|
-
await
|
|
87380
|
-
type:
|
|
87381
|
-
sdp:
|
|
87419
|
+
await this._peer.setRemoteDescription({
|
|
87420
|
+
type: U.type,
|
|
87421
|
+
sdp: U.sdp
|
|
87382
87422
|
}), this._readyForCandidates.wake();
|
|
87383
|
-
} catch (
|
|
87384
|
-
log$2.error("
|
|
87385
|
-
err:
|
|
87423
|
+
} catch (q) {
|
|
87424
|
+
log$2.error("cannot handle answer from signalling server", {
|
|
87425
|
+
err: q
|
|
87386
87426
|
}, {
|
|
87387
87427
|
F: __dxlog_file15,
|
|
87388
|
-
L:
|
|
87428
|
+
L: 279,
|
|
87389
87429
|
S: this,
|
|
87390
|
-
C: (
|
|
87430
|
+
C: (G, K) => G(...K)
|
|
87391
87431
|
}), this.errors.raise(new Error("error handling answer"));
|
|
87392
87432
|
}
|
|
87393
87433
|
break;
|
|
87394
87434
|
case "candidate":
|
|
87395
|
-
await this._readyForCandidates.wait(), await
|
|
87396
|
-
candidate:
|
|
87435
|
+
await this._readyForCandidates.wait(), await this._peer.addIceCandidate({
|
|
87436
|
+
candidate: U.candidate.candidate
|
|
87397
87437
|
});
|
|
87398
87438
|
break;
|
|
87399
87439
|
default:
|
|
87400
87440
|
log$2.error("unhandled signal type", {
|
|
87401
|
-
type:
|
|
87441
|
+
type: U.type,
|
|
87402
87442
|
signal: I
|
|
87403
87443
|
}, {
|
|
87404
87444
|
F: __dxlog_file15,
|
|
87405
|
-
L:
|
|
87445
|
+
L: 290,
|
|
87406
87446
|
S: this,
|
|
87407
|
-
C: (
|
|
87408
|
-
}), this.errors.raise(new Error(`unhandled signal type ${
|
|
87447
|
+
C: (q, G) => q(...G)
|
|
87448
|
+
}), this.errors.raise(new Error(`unhandled signal type ${U.type}`));
|
|
87409
87449
|
}
|
|
87410
|
-
}
|
|
87450
|
+
} catch (U) {
|
|
87411
87451
|
log$2.catch(U, void 0, {
|
|
87412
87452
|
F: __dxlog_file15,
|
|
87413
|
-
L:
|
|
87453
|
+
L: 294,
|
|
87414
87454
|
S: this,
|
|
87415
87455
|
C: (q, G) => q(...G)
|
|
87416
87456
|
});
|
|
87417
|
-
}
|
|
87457
|
+
}
|
|
87418
87458
|
}
|
|
87419
87459
|
async getDetails() {
|
|
87420
87460
|
const I = await this._getStats(), U = I == null ? void 0 : I.remoteCandidate;
|
|
87421
87461
|
return U ? U.candidateType === "relay" ? `${U.ip}:${U.port} relay for ${U.relatedAddress}:${U.relatedPort}` : `${U.ip}:${U.port} ${U.candidateType}` : "unavailable";
|
|
87422
87462
|
}
|
|
87423
|
-
async _getStats() {
|
|
87424
|
-
return this._peer.then(async (I) => {
|
|
87425
|
-
const U = await I.getStats(), q = Array.from(U.entries()), G = q.filter((Z) => Z[1].type === "transport")[0][1], K = q.filter((Z) => Z[0] === G.selectedCandidatePairId);
|
|
87426
|
-
let Y, J;
|
|
87427
|
-
return K.length > 0 && (Y = K[0][1], J = q.filter((Z) => Z[0] === Y.remoteCandidateId)[0][1]), {
|
|
87428
|
-
transport: G,
|
|
87429
|
-
selectedCandidatePair: Y,
|
|
87430
|
-
remoteCandidate: J,
|
|
87431
|
-
raw: Object.fromEntries(U)
|
|
87432
|
-
};
|
|
87433
|
-
});
|
|
87434
|
-
}
|
|
87435
87463
|
async getStats() {
|
|
87436
87464
|
const I = await this._getStats();
|
|
87437
87465
|
return I ? {
|
|
@@ -87448,12 +87476,28 @@ var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-man
|
|
|
87448
87476
|
rawStats: {}
|
|
87449
87477
|
};
|
|
87450
87478
|
}
|
|
87451
|
-
async
|
|
87452
|
-
|
|
87479
|
+
async _getStats() {
|
|
87480
|
+
invariant(this._peer, "not open", {
|
|
87481
|
+
F: __dxlog_file15,
|
|
87482
|
+
L: 334,
|
|
87483
|
+
S: this,
|
|
87484
|
+
A: [
|
|
87485
|
+
"this._peer",
|
|
87486
|
+
"'not open'"
|
|
87487
|
+
]
|
|
87488
|
+
});
|
|
87489
|
+
const I = await this._peer.getStats(), U = Array.from(I.entries()), q = U.filter((J) => J[1].type === "transport")[0][1], G = U.filter((J) => J[0] === q.selectedCandidatePairId);
|
|
87490
|
+
let K, Y;
|
|
87491
|
+
return G.length > 0 && (K = G[0][1], Y = U.filter((J) => J[0] === K.remoteCandidateId)[0][1]), {
|
|
87492
|
+
transport: q,
|
|
87493
|
+
selectedCandidatePair: K,
|
|
87494
|
+
remoteCandidate: Y,
|
|
87495
|
+
raw: Object.fromEntries(I)
|
|
87496
|
+
};
|
|
87453
87497
|
}
|
|
87454
87498
|
async _disconnectStreams() {
|
|
87455
87499
|
var I, U, q, G;
|
|
87456
|
-
(G = (q = (U = (I = this.
|
|
87500
|
+
(G = (q = (U = (I = this._options.stream).unpipe) == null ? void 0 : U.call(I, this._stream)) == null ? void 0 : q.unpipe) == null || G.call(q, this._options.stream);
|
|
87457
87501
|
}
|
|
87458
87502
|
}, or._instanceCount = 0, or);
|
|
87459
87503
|
_ts_decorate5$1([
|
|
@@ -87471,7 +87515,7 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
|
|
|
87471
87515
|
for (var zt = {}, de = 0; de < Ct.length; de++)
|
|
87472
87516
|
zt[Ct[de].toUpperCase()] = Ct[de];
|
|
87473
87517
|
return zt;
|
|
87474
|
-
},
|
|
87518
|
+
}, Me = function(Ct, zt) {
|
|
87475
87519
|
return typeof Ct === ee ? Ye(zt).indexOf(Ye(Ct)) !== -1 : !1;
|
|
87476
87520
|
}, Ye = function(Ct) {
|
|
87477
87521
|
return Ct.toLowerCase();
|
|
@@ -87493,9 +87537,9 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
|
|
|
87493
87537
|
for (var de in zt)
|
|
87494
87538
|
if (typeof zt[de] === Q && zt[de].length > 0) {
|
|
87495
87539
|
for (var ie = 0; ie < zt[de].length; ie++)
|
|
87496
|
-
if (
|
|
87540
|
+
if (Me(zt[de][ie], Ct))
|
|
87497
87541
|
return de === Y ? q : de;
|
|
87498
|
-
} else if (
|
|
87542
|
+
} else if (Me(zt[de], Ct))
|
|
87499
87543
|
return de === Y ? q : de;
|
|
87500
87544
|
return Ct;
|
|
87501
87545
|
}, it = {
|
|
@@ -88710,7 +88754,7 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
|
|
|
88710
88754
|
return this._client.rpc;
|
|
88711
88755
|
}
|
|
88712
88756
|
async open() {
|
|
88713
|
-
const { WebsocketRpcClient: $ } = await import("./index-
|
|
88757
|
+
const { WebsocketRpcClient: $ } = await import("./index-BhenUoML.mjs");
|
|
88714
88758
|
this._client = new $({
|
|
88715
88759
|
url: getUnixSocket(this._profile, "ws+unix"),
|
|
88716
88760
|
requested: clientServiceBundle,
|
|
@@ -88851,12 +88895,14 @@ var IFrameManager = class {
|
|
|
88851
88895
|
var I;
|
|
88852
88896
|
log$2("set layout", $, {
|
|
88853
88897
|
F: __dxlog_file3,
|
|
88854
|
-
L:
|
|
88898
|
+
L: 51,
|
|
88855
88899
|
S: this,
|
|
88856
88900
|
C: (U, q) => U(...q)
|
|
88857
88901
|
}), this._display = ShellDisplay.FULLSCREEN, this.contextUpdate.emit({
|
|
88858
88902
|
display: this._display
|
|
88859
|
-
}), await ((I = this._shellRpc) == null ? void 0 : I.rpc.ShellService.setLayout(
|
|
88903
|
+
}), await ((I = this._shellRpc) == null ? void 0 : I.rpc.ShellService.setLayout($, {
|
|
88904
|
+
timeout: RPC_TIMEOUT
|
|
88905
|
+
}));
|
|
88860
88906
|
}
|
|
88861
88907
|
async open() {
|
|
88862
88908
|
if (this._shellRpc)
|
|
@@ -88879,7 +88925,7 @@ var IFrameManager = class {
|
|
|
88879
88925
|
setContext: async (q) => {
|
|
88880
88926
|
log$2("set context", q, {
|
|
88881
88927
|
F: __dxlog_file3,
|
|
88882
|
-
L:
|
|
88928
|
+
L: 98,
|
|
88883
88929
|
S: this,
|
|
88884
88930
|
C: (G, K) => G(...K)
|
|
88885
88931
|
}), q.display && (this._display = q.display), this.contextUpdate.emit(q);
|
|
@@ -89068,17 +89114,19 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89068
89114
|
id: this._instanceId
|
|
89069
89115
|
}), {
|
|
89070
89116
|
F: __dxlog_file5,
|
|
89071
|
-
L:
|
|
89117
|
+
L: 142,
|
|
89072
89118
|
S: this,
|
|
89073
89119
|
C: (I, U) => I(...U)
|
|
89074
89120
|
}), await this._iframeManager.open(), this._clientServicesProxy = new ClientServicesProxy(this._appPort), await this._clientServicesProxy.open(), this._loggingStream = this._clientServicesProxy.services.LoggingService.queryLogs({
|
|
89075
89121
|
filters: this._logFilter
|
|
89122
|
+
}, {
|
|
89123
|
+
timeout: RPC_TIMEOUT
|
|
89076
89124
|
}), this._loggingStream.subscribe((I) => {
|
|
89077
89125
|
switch (I.level) {
|
|
89078
89126
|
case LogLevel.DEBUG:
|
|
89079
89127
|
log$2.debug(`[vault] ${I.message}`, I.context, {
|
|
89080
89128
|
F: __dxlog_file5,
|
|
89081
|
-
L:
|
|
89129
|
+
L: 157,
|
|
89082
89130
|
S: this,
|
|
89083
89131
|
C: (U, q) => U(...q)
|
|
89084
89132
|
});
|
|
@@ -89086,7 +89134,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89086
89134
|
case LogLevel.INFO:
|
|
89087
89135
|
log$2.info(`[vault] ${I.message}`, I.context, {
|
|
89088
89136
|
F: __dxlog_file5,
|
|
89089
|
-
L:
|
|
89137
|
+
L: 160,
|
|
89090
89138
|
S: this,
|
|
89091
89139
|
C: (U, q) => U(...q)
|
|
89092
89140
|
});
|
|
@@ -89094,7 +89142,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89094
89142
|
case LogLevel.WARN:
|
|
89095
89143
|
log$2.warn(`[vault] ${I.message}`, I.context, {
|
|
89096
89144
|
F: __dxlog_file5,
|
|
89097
|
-
L:
|
|
89145
|
+
L: 163,
|
|
89098
89146
|
S: this,
|
|
89099
89147
|
C: (U, q) => U(...q)
|
|
89100
89148
|
});
|
|
@@ -89102,7 +89150,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89102
89150
|
case LogLevel.ERROR:
|
|
89103
89151
|
log$2.error(`[vault] ${I.message}`, I.context, {
|
|
89104
89152
|
F: __dxlog_file5,
|
|
89105
|
-
L:
|
|
89153
|
+
L: 166,
|
|
89106
89154
|
S: this,
|
|
89107
89155
|
C: (U, q) => U(...q)
|
|
89108
89156
|
});
|
|
@@ -89116,7 +89164,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89116
89164
|
id: this._instanceId
|
|
89117
89165
|
}), {
|
|
89118
89166
|
F: __dxlog_file5,
|
|
89119
|
-
L:
|
|
89167
|
+
L: 180,
|
|
89120
89168
|
S: this,
|
|
89121
89169
|
C: (q, G) => q(...G)
|
|
89122
89170
|
});
|
|
@@ -89152,7 +89200,7 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89152
89200
|
return;
|
|
89153
89201
|
log$2("opening...", void 0, {
|
|
89154
89202
|
F: __dxlog_file7,
|
|
89155
|
-
L:
|
|
89203
|
+
L: 88,
|
|
89156
89204
|
S: this,
|
|
89157
89205
|
C: (K, Y) => K(...Y)
|
|
89158
89206
|
});
|
|
@@ -89178,12 +89226,14 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89178
89226
|
})), await this._services.open(), navigator.locks.request(LOCK_KEY, () => {
|
|
89179
89227
|
log$2("terminated", void 0, {
|
|
89180
89228
|
F: __dxlog_file7,
|
|
89181
|
-
L:
|
|
89229
|
+
L: 115,
|
|
89182
89230
|
S: this,
|
|
89183
89231
|
C: (K, Y) => K(...Y)
|
|
89184
89232
|
}), this._isOpen && this.closed.emit(new Error("Shared worker terminated."));
|
|
89185
89233
|
}), this._loggingStream = this._services.services.LoggingService.queryLogs({
|
|
89186
89234
|
filters: this._logFilter
|
|
89235
|
+
}, {
|
|
89236
|
+
timeout: RPC_TIMEOUT
|
|
89187
89237
|
}), this._loggingStream.subscribe((K) => {
|
|
89188
89238
|
switch (K.level) {
|
|
89189
89239
|
case LogLevel.DEBUG:
|
|
@@ -89201,7 +89251,7 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89201
89251
|
}
|
|
89202
89252
|
}), log$2("opened", void 0, {
|
|
89203
89253
|
F: __dxlog_file7,
|
|
89204
|
-
L:
|
|
89254
|
+
L: 144,
|
|
89205
89255
|
S: this,
|
|
89206
89256
|
C: (K, Y) => K(...Y)
|
|
89207
89257
|
}), this._isOpen = !0;
|
|
@@ -89210,12 +89260,12 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89210
89260
|
var $;
|
|
89211
89261
|
this._isOpen && (log$2("closing...", void 0, {
|
|
89212
89262
|
F: __dxlog_file7,
|
|
89213
|
-
L:
|
|
89263
|
+
L: 154,
|
|
89214
89264
|
S: this,
|
|
89215
89265
|
C: (I, U) => I(...U)
|
|
89216
89266
|
}), await (($ = this._loggingStream) == null ? void 0 : $.close()), await this._runtime.close(), await this._services.close(), log$2("closed", void 0, {
|
|
89217
89267
|
F: __dxlog_file7,
|
|
89218
|
-
L:
|
|
89268
|
+
L: 159,
|
|
89219
89269
|
S: this,
|
|
89220
89270
|
C: (I, U) => I(...U)
|
|
89221
89271
|
}), this._isOpen = !1);
|
|
@@ -89846,18 +89896,18 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89846
89896
|
if (sn && Ne && typeof sn.stack == "string") {
|
|
89847
89897
|
for (var Rt = sn.stack.split(`
|
|
89848
89898
|
`), Bt = Ne.stack.split(`
|
|
89849
|
-
`),
|
|
89899
|
+
`), Mt = Rt.length - 1, Ot = Bt.length - 1; Mt >= 1 && Ot >= 0 && Rt[Mt] !== Bt[Ot]; )
|
|
89850
89900
|
Ot--;
|
|
89851
|
-
for (;
|
|
89852
|
-
if (Rt[
|
|
89853
|
-
if (
|
|
89901
|
+
for (; Mt >= 1 && Ot >= 0; Mt--, Ot--)
|
|
89902
|
+
if (Rt[Mt] !== Bt[Ot]) {
|
|
89903
|
+
if (Mt !== 1 || Ot !== 1)
|
|
89854
89904
|
do
|
|
89855
|
-
if (
|
|
89905
|
+
if (Mt--, Ot--, Ot < 0 || Rt[Mt] !== Bt[Ot]) {
|
|
89856
89906
|
var Zt = `
|
|
89857
|
-
` + Rt[
|
|
89907
|
+
` + Rt[Mt].replace(" at new ", " at ");
|
|
89858
89908
|
return We.displayName && Zt.includes("<anonymous>") && (Zt = Zt.replace("<anonymous>", We.displayName)), typeof We == "function" && Te.set(We, Zt), Zt;
|
|
89859
89909
|
}
|
|
89860
|
-
while (
|
|
89910
|
+
while (Mt >= 1 && Ot >= 0);
|
|
89861
89911
|
break;
|
|
89862
89912
|
}
|
|
89863
89913
|
}
|
|
@@ -89867,7 +89917,7 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89867
89917
|
var Qt = We ? We.displayName || We.name : "", Yt = Qt ? Ie(Qt) : "";
|
|
89868
89918
|
return typeof We == "function" && Te.set(We, Yt), Yt;
|
|
89869
89919
|
}
|
|
89870
|
-
function
|
|
89920
|
+
function Me(We, vt, xt) {
|
|
89871
89921
|
return ye(We, !1);
|
|
89872
89922
|
}
|
|
89873
89923
|
function Ye(We) {
|
|
@@ -89890,7 +89940,7 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89890
89940
|
if (typeof We == "object")
|
|
89891
89941
|
switch (We.$$typeof) {
|
|
89892
89942
|
case Z:
|
|
89893
|
-
return
|
|
89943
|
+
return Me(We.render);
|
|
89894
89944
|
case te:
|
|
89895
89945
|
return ct(We.type, vt, xt);
|
|
89896
89946
|
case ne: {
|
|
@@ -89923,8 +89973,8 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89923
89973
|
throw Bt.name = "Invariant Violation", Bt;
|
|
89924
89974
|
}
|
|
89925
89975
|
Rt = We[Et](vt, Et, Ne, xt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
89926
|
-
} catch (
|
|
89927
|
-
Rt =
|
|
89976
|
+
} catch (Mt) {
|
|
89977
|
+
Rt = Mt;
|
|
89928
89978
|
}
|
|
89929
89979
|
Rt && !(Rt instanceof Error) && (it(ot), ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ne || "React class", xt, Et, typeof Rt), it(null)), Rt instanceof Error && !(Rt.message in wt) && (wt[Rt.message] = !0, it(ot), ce("Failed %s type: %s", xt, Rt.message), it(null));
|
|
89930
89980
|
}
|
|
@@ -90041,9 +90091,9 @@ function requireReactJsxDevRuntime_development() {
|
|
|
90041
90091
|
for (dt in vt)
|
|
90042
90092
|
ut.call(vt, dt) && !ie.hasOwnProperty(dt) && (Et[dt] = vt[dt]);
|
|
90043
90093
|
if (We && We.defaultProps) {
|
|
90044
|
-
var
|
|
90045
|
-
for (dt in
|
|
90046
|
-
Et[dt] === void 0 && (Et[dt] =
|
|
90094
|
+
var Mt = We.defaultProps;
|
|
90095
|
+
for (dt in Mt)
|
|
90096
|
+
Et[dt] === void 0 && (Et[dt] = Mt[dt]);
|
|
90047
90097
|
}
|
|
90048
90098
|
if (Rt || Bt) {
|
|
90049
90099
|
var Ot = typeof We == "function" ? We.displayName || We.name || "Unknown" : We;
|
|
@@ -90178,8 +90228,8 @@ Check the top-level render call using <` + xt + ">.");
|
|
|
90178
90228
|
(We === void 0 || typeof We == "object" && We !== null && Object.keys(We).length === 0) && (Rt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
90179
90229
|
var Bt = Pn(ot);
|
|
90180
90230
|
Bt ? Rt += Bt : Rt += un();
|
|
90181
|
-
var
|
|
90182
|
-
We === null ?
|
|
90231
|
+
var Mt;
|
|
90232
|
+
We === null ? Mt = "null" : It(We) ? Mt = "array" : We !== void 0 && We.$$typeof === I ? (Mt = "<" + (Be(We.type) || "Unknown") + " />", Rt = " Did you accidentally export a JSX literal instead of a component?") : Mt = typeof We, ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Mt, Rt);
|
|
90183
90233
|
}
|
|
90184
90234
|
var Ot = At(We, vt, xt, ot, dt);
|
|
90185
90235
|
if (Ot == null)
|
|
@@ -93631,7 +93681,11 @@ const identityMachine = createMachine(
|
|
|
93631
93681
|
}
|
|
93632
93682
|
}, []);
|
|
93633
93683
|
return { onAgentCreate: async () => {
|
|
93634
|
-
I.forEach((ae) => ae.cancel()), $.halo.share({
|
|
93684
|
+
I.forEach((ae) => ae.cancel()), $.halo.share({
|
|
93685
|
+
type: Invitation.Type.INTERACTIVE,
|
|
93686
|
+
authMethod: Invitation.AuthMethod.NONE,
|
|
93687
|
+
multiUse: !0
|
|
93688
|
+
}).subscribe(ee);
|
|
93635
93689
|
}, onAgentDestroy: async () => {
|
|
93636
93690
|
const re = $.halo.identity.get();
|
|
93637
93691
|
invariant(re, "Identity not found");
|
|
@@ -93650,8 +93704,8 @@ var qrcode = { exports: {} };
|
|
|
93650
93704
|
xe = $e * 4 + 17, Ee = function(Te) {
|
|
93651
93705
|
for (var be = new Array(Te), ye = 0; ye < Te; ye += 1) {
|
|
93652
93706
|
be[ye] = new Array(Te);
|
|
93653
|
-
for (var
|
|
93654
|
-
be[ye][
|
|
93707
|
+
for (var Me = 0; Me < Te; Me += 1)
|
|
93708
|
+
be[ye][Me] = null;
|
|
93655
93709
|
}
|
|
93656
93710
|
return be;
|
|
93657
93711
|
}(xe), st(0, 0), st(xe - 7, 0), st(0, xe - 7), ht(), at(), ze(Ie, Re), $e >= 7 && tt(Ie), Be == null && (Be = mt($e, Ce, je)), qe(Be, Re);
|
|
@@ -93677,9 +93731,9 @@ var qrcode = { exports: {} };
|
|
|
93677
93731
|
for (var Te = 0; Te < Ie.length; Te += 1) {
|
|
93678
93732
|
var be = Ie[Re], ye = Ie[Te];
|
|
93679
93733
|
if (Ee[be][ye] == null)
|
|
93680
|
-
for (var
|
|
93734
|
+
for (var Me = -2; Me <= 2; Me += 1)
|
|
93681
93735
|
for (var Ye = -2; Ye <= 2; Ye += 1)
|
|
93682
|
-
|
|
93736
|
+
Me == -2 || Me == 2 || Ye == -2 || Ye == 2 || Me == 0 && Ye == 0 ? Ee[be + Me][ye + Ye] = !0 : Ee[be + Me][ye + Ye] = !1;
|
|
93683
93737
|
}
|
|
93684
93738
|
}, tt = function(Ie) {
|
|
93685
93739
|
for (var Re = J.getBCHTypeNumber($e), Te = 0; Te < 18; Te += 1) {
|
|
@@ -93692,23 +93746,23 @@ var qrcode = { exports: {} };
|
|
|
93692
93746
|
}
|
|
93693
93747
|
}, ze = function(Ie, Re) {
|
|
93694
93748
|
for (var Te = Ce << 3 | Re, be = J.getBCHTypeInfo(Te), ye = 0; ye < 15; ye += 1) {
|
|
93695
|
-
var
|
|
93696
|
-
ye < 6 ? Ee[ye][8] =
|
|
93749
|
+
var Me = !Ie && (be >> ye & 1) == 1;
|
|
93750
|
+
ye < 6 ? Ee[ye][8] = Me : ye < 8 ? Ee[ye + 1][8] = Me : Ee[xe - 15 + ye][8] = Me;
|
|
93697
93751
|
}
|
|
93698
93752
|
for (var ye = 0; ye < 15; ye += 1) {
|
|
93699
|
-
var
|
|
93700
|
-
ye < 8 ? Ee[8][xe - ye - 1] =
|
|
93753
|
+
var Me = !Ie && (be >> ye & 1) == 1;
|
|
93754
|
+
ye < 8 ? Ee[8][xe - ye - 1] = Me : ye < 9 ? Ee[8][15 - ye - 1 + 1] = Me : Ee[8][15 - ye - 1] = Me;
|
|
93701
93755
|
}
|
|
93702
93756
|
Ee[xe - 8][8] = !Ie;
|
|
93703
93757
|
}, qe = function(Ie, Re) {
|
|
93704
|
-
for (var Te = -1, be = xe - 1, ye = 7,
|
|
93758
|
+
for (var Te = -1, be = xe - 1, ye = 7, Me = 0, Ye = J.getMaskFunction(Re), ct = xe - 1; ct > 0; ct -= 2)
|
|
93705
93759
|
for (ct == 6 && (ct -= 1); ; ) {
|
|
93706
93760
|
for (var ut = 0; ut < 2; ut += 1)
|
|
93707
93761
|
if (Ee[be][ct - ut] == null) {
|
|
93708
93762
|
var wt = !1;
|
|
93709
|
-
|
|
93763
|
+
Me < Ie.length && (wt = (Ie[Me] >>> ye & 1) == 1);
|
|
93710
93764
|
var St = Ye(be, ct - ut);
|
|
93711
|
-
St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (
|
|
93765
|
+
St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (Me += 1, ye = 7);
|
|
93712
93766
|
}
|
|
93713
93767
|
if (be += Te, be < 0 || xe <= be) {
|
|
93714
93768
|
be -= Te, Te = -Te;
|
|
@@ -93716,13 +93770,13 @@ var qrcode = { exports: {} };
|
|
|
93716
93770
|
}
|
|
93717
93771
|
}
|
|
93718
93772
|
}, nt = function(Ie, Re) {
|
|
93719
|
-
for (var Te = 0, be = 0, ye = 0,
|
|
93773
|
+
for (var Te = 0, be = 0, ye = 0, Me = new Array(Re.length), Ye = new Array(Re.length), ct = 0; ct < Re.length; ct += 1) {
|
|
93720
93774
|
var ut = Re[ct].dataCount, wt = Re[ct].totalCount - ut;
|
|
93721
|
-
be = Math.max(be, ut), ye = Math.max(ye, wt),
|
|
93722
|
-
for (var St = 0; St <
|
|
93723
|
-
|
|
93775
|
+
be = Math.max(be, ut), ye = Math.max(ye, wt), Me[ct] = new Array(ut);
|
|
93776
|
+
for (var St = 0; St < Me[ct].length; St += 1)
|
|
93777
|
+
Me[ct][St] = 255 & Ie.getBuffer()[St + Te];
|
|
93724
93778
|
Te += ut;
|
|
93725
|
-
var it = J.getErrorCorrectPolynomial(wt), Ut = Q(
|
|
93779
|
+
var it = J.getErrorCorrectPolynomial(wt), Ut = Q(Me[ct], it.getLength() - 1), Kt = Ut.mod(it);
|
|
93726
93780
|
Ye[ct] = new Array(it.getLength() - 1);
|
|
93727
93781
|
for (var St = 0; St < Ye[ct].length; St += 1) {
|
|
93728
93782
|
var It = St + Kt.getLength() - Ye[ct].length;
|
|
@@ -93733,18 +93787,18 @@ var qrcode = { exports: {} };
|
|
|
93733
93787
|
Ht += Re[St].totalCount;
|
|
93734
93788
|
for (var rn = new Array(Ht), Ct = 0, St = 0; St < be; St += 1)
|
|
93735
93789
|
for (var ct = 0; ct < Re.length; ct += 1)
|
|
93736
|
-
St <
|
|
93790
|
+
St < Me[ct].length && (rn[Ct] = Me[ct][St], Ct += 1);
|
|
93737
93791
|
for (var St = 0; St < ye; St += 1)
|
|
93738
93792
|
for (var ct = 0; ct < Re.length; ct += 1)
|
|
93739
93793
|
St < Ye[ct].length && (rn[Ct] = Ye[ct][St], Ct += 1);
|
|
93740
93794
|
return rn;
|
|
93741
93795
|
}, mt = function(Ie, Re, Te) {
|
|
93742
|
-
for (var be = ee.getRSBlocks(Ie, Re), ye = te(),
|
|
93743
|
-
var Ye = Te[
|
|
93796
|
+
for (var be = ee.getRSBlocks(Ie, Re), ye = te(), Me = 0; Me < Te.length; Me += 1) {
|
|
93797
|
+
var Ye = Te[Me];
|
|
93744
93798
|
ye.put(Ye.getMode(), 4), ye.put(Ye.getLength(), J.getLengthInBits(Ye.getMode(), Ie)), Ye.write(ye);
|
|
93745
93799
|
}
|
|
93746
|
-
for (var ct = 0,
|
|
93747
|
-
ct += be[
|
|
93800
|
+
for (var ct = 0, Me = 0; Me < be.length; Me += 1)
|
|
93801
|
+
ct += be[Me].dataCount;
|
|
93748
93802
|
if (ye.getLengthInBits() > ct * 8)
|
|
93749
93803
|
throw "code length overflow. (" + ye.getLengthInBits() + ">" + ct * 8 + ")";
|
|
93750
93804
|
for (ye.getLengthInBits() + 4 <= ct * 8 && ye.put(0, 4); ye.getLengthInBits() % 8 != 0; )
|
|
@@ -93786,9 +93840,9 @@ var qrcode = { exports: {} };
|
|
|
93786
93840
|
var ye = je[be];
|
|
93787
93841
|
Te.put(ye.getMode(), 4), Te.put(ye.getLength(), J.getLengthInBits(ye.getMode(), Ie)), ye.write(Te);
|
|
93788
93842
|
}
|
|
93789
|
-
for (var
|
|
93790
|
-
|
|
93791
|
-
if (Te.getLengthInBits() <=
|
|
93843
|
+
for (var Me = 0, be = 0; be < Re.length; be++)
|
|
93844
|
+
Me += Re[be].dataCount;
|
|
93845
|
+
if (Te.getLengthInBits() <= Me * 8)
|
|
93792
93846
|
break;
|
|
93793
93847
|
}
|
|
93794
93848
|
$e = Ie;
|
|
@@ -93808,17 +93862,17 @@ var qrcode = { exports: {} };
|
|
|
93808
93862
|
}, Ge.createSvgTag = function(Ie, Re, Te, be) {
|
|
93809
93863
|
var ye = {};
|
|
93810
93864
|
typeof arguments[0] == "object" && (ye = arguments[0], Ie = ye.cellSize, Re = ye.margin, Te = ye.alt, be = ye.title), Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re, Te = typeof Te == "string" ? { text: Te } : Te || {}, Te.text = Te.text || null, Te.id = Te.text ? Te.id || "qrcode-description" : null, be = typeof be == "string" ? { text: be } : be || {}, be.text = be.text || null, be.id = be.text ? be.id || "qrcode-title" : null;
|
|
93811
|
-
var
|
|
93812
|
-
for (it = "l" + Ie + ",0 0," + Ie + " -" + Ie + ",0 0,-" + Ie + "z ", St += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', St += ye.scalable ? "" : ' width="' +
|
|
93865
|
+
var Me = Ge.getModuleCount() * Ie + Re * 2, Ye, ct, ut, wt, St = "", it;
|
|
93866
|
+
for (it = "l" + Ie + ",0 0," + Ie + " -" + Ie + ",0 0,-" + Ie + "z ", St += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', St += ye.scalable ? "" : ' width="' + Me + 'px" height="' + Me + 'px"', St += ' viewBox="0 0 ' + Me + " " + Me + '" ', St += ' preserveAspectRatio="xMinYMin meet"', St += be.text || Te.text ? ' role="img" aria-labelledby="' + Ue([be.id, Te.id].join(" ").trim()) + '"' : "", St += ">", St += be.text ? '<title id="' + Ue(be.id) + '">' + Ue(be.text) + "</title>" : "", St += Te.text ? '<description id="' + Ue(Te.id) + '">' + Ue(Te.text) + "</description>" : "", St += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', St += '<path d="', ut = 0; ut < Ge.getModuleCount(); ut += 1)
|
|
93813
93867
|
for (wt = ut * Ie + Re, Ye = 0; Ye < Ge.getModuleCount(); Ye += 1)
|
|
93814
93868
|
Ge.isDark(ut, Ye) && (ct = Ye * Ie + Re, St += "M" + ct + "," + wt + it);
|
|
93815
93869
|
return St += '" stroke="transparent" fill="black"/>', St += "</svg>", St;
|
|
93816
93870
|
}, Ge.createDataURL = function(Ie, Re) {
|
|
93817
93871
|
Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re;
|
|
93818
93872
|
var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re;
|
|
93819
|
-
return he(Te, Te, function(
|
|
93820
|
-
if (be <=
|
|
93821
|
-
var ct = Math.floor((
|
|
93873
|
+
return he(Te, Te, function(Me, Ye) {
|
|
93874
|
+
if (be <= Me && Me < ye && be <= Ye && Ye < ye) {
|
|
93875
|
+
var ct = Math.floor((Me - be) / Ie), ut = Math.floor((Ye - be) / Ie);
|
|
93822
93876
|
return Ge.isDark(ut, ct) ? 0 : 1;
|
|
93823
93877
|
} else
|
|
93824
93878
|
return 1;
|
|
@@ -93853,7 +93907,7 @@ var qrcode = { exports: {} };
|
|
|
93853
93907
|
}, He = function(Ie) {
|
|
93854
93908
|
var Re = 1;
|
|
93855
93909
|
Ie = typeof Ie > "u" ? Re * 2 : Ie;
|
|
93856
|
-
var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie,
|
|
93910
|
+
var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie, Me, Ye, ct, ut, wt, St = {
|
|
93857
93911
|
"██": "█",
|
|
93858
93912
|
"█ ": "▀",
|
|
93859
93913
|
" █": "▄",
|
|
@@ -93864,9 +93918,9 @@ var qrcode = { exports: {} };
|
|
|
93864
93918
|
" █": " ",
|
|
93865
93919
|
" ": " "
|
|
93866
93920
|
}, Ut = "";
|
|
93867
|
-
for (
|
|
93868
|
-
for (ct = Math.floor((
|
|
93869
|
-
wt = "█", be <= Ye && Ye < ye && be <=
|
|
93921
|
+
for (Me = 0; Me < Te; Me += 2) {
|
|
93922
|
+
for (ct = Math.floor((Me - be) / Re), ut = Math.floor((Me + 1 - be) / Re), Ye = 0; Ye < Te; Ye += 1)
|
|
93923
|
+
wt = "█", be <= Ye && Ye < ye && be <= Me && Me < ye && Ge.isDark(ct, Math.floor((Ye - be) / Re)) && (wt = " "), be <= Ye && Ye < ye && be <= Me + 1 && Me + 1 < ye && Ge.isDark(ut, Math.floor((Ye - be) / Re)) ? wt += " " : wt += "█", Ut += Ie < 1 && Me + 1 >= ye ? it[wt] : St[wt];
|
|
93870
93924
|
Ut += `
|
|
93871
93925
|
`;
|
|
93872
93926
|
}
|
|
@@ -93876,10 +93930,10 @@ var qrcode = { exports: {} };
|
|
|
93876
93930
|
if (Ie = Ie || 1, Ie < 2)
|
|
93877
93931
|
return He(Re);
|
|
93878
93932
|
Ie -= 1, Re = typeof Re > "u" ? Ie * 2 : Re;
|
|
93879
|
-
var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re,
|
|
93880
|
-
for (
|
|
93881
|
-
for (ct = Math.floor((
|
|
93882
|
-
ut = 1, be <= Ye && Ye < ye && be <=
|
|
93933
|
+
var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re, Me, Ye, ct, ut, wt = Array(Ie + 1).join("██"), St = Array(Ie + 1).join(" "), it = "", Ut = "";
|
|
93934
|
+
for (Me = 0; Me < Te; Me += 1) {
|
|
93935
|
+
for (ct = Math.floor((Me - be) / Ie), Ut = "", Ye = 0; Ye < Te; Ye += 1)
|
|
93936
|
+
ut = 1, be <= Ye && Ye < ye && be <= Me && Me < ye && Ge.isDark(ct, Math.floor((Ye - be) / Ie)) && (ut = 0), Ut += ut ? wt : St;
|
|
93883
93937
|
for (ct = 0; ct < Ie; ct += 1)
|
|
93884
93938
|
it += Ut + `
|
|
93885
93939
|
`;
|
|
@@ -94821,11 +94875,11 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
|
|
|
94821
94875
|
active: I,
|
|
94822
94876
|
send: U,
|
|
94823
94877
|
status: q,
|
|
94824
|
-
|
|
94878
|
+
multiUse: G,
|
|
94825
94879
|
authCode: K,
|
|
94826
94880
|
id: Y = "0"
|
|
94827
94881
|
}) => {
|
|
94828
|
-
const { t: J } = useTranslation("os"), Z = useId("invitation-manager__qr-code"), Q = G
|
|
94882
|
+
const { t: J } = useTranslation("os"), Z = useId("invitation-manager__qr-code"), Q = G ? 0 : invitationStatusValue.get(q) ?? 0, ee = Q === 3, te = hexToEmoji(Y), ne = useMemo(() => {
|
|
94829
94883
|
switch (!0) {
|
|
94830
94884
|
case Q === 5:
|
|
94831
94885
|
case Q < 0:
|
|
@@ -94836,7 +94890,7 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
|
|
|
94836
94890
|
return "showing qr";
|
|
94837
94891
|
}
|
|
94838
94892
|
}, [Q]);
|
|
94839
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Viewport.Root, { activeView: ne, classNames: "grow plb-1" }, /* @__PURE__ */ React__default.createElement(Viewport.Views, null, /* @__PURE__ */ React__default.createElement(InvitationManagerView, { id: "showing qr", emoji: te }, /* @__PURE__ */ React__default.createElement("p", { className: "text-sm mlb-1 font-normal text-center" }, J(G
|
|
94893
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Viewport.Root, { activeView: ne, classNames: "grow plb-1" }, /* @__PURE__ */ React__default.createElement(Viewport.Views, null, /* @__PURE__ */ React__default.createElement(InvitationManagerView, { id: "showing qr", emoji: te }, /* @__PURE__ */ React__default.createElement("p", { className: "text-sm mlb-1 font-normal text-center" }, J(G ? "invite many qr label" : "invite one qr label")), /* @__PURE__ */ React__default.createElement("div", { role: "none", className: mx(descriptionText, "is-full max-is-[14rem] relative") }, /* @__PURE__ */ React__default.createElement(
|
|
94840
94894
|
QR,
|
|
94841
94895
|
{
|
|
94842
94896
|
rounding: 100,
|
|
@@ -96096,6 +96150,7 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
|
|
|
96096
96150
|
const Z = (Q = I.share) == null ? void 0 : Q.call(I, {
|
|
96097
96151
|
type: Invitation.Type.INTERACTIVE,
|
|
96098
96152
|
authMethod: Invitation.AuthMethod.SHARED_SECRET,
|
|
96153
|
+
multiUse: !1,
|
|
96099
96154
|
target: U
|
|
96100
96155
|
});
|
|
96101
96156
|
Z && ((ne = (te = (ee = G.values.runtime) == null ? void 0 : ee.app) == null ? void 0 : te.env) == null ? void 0 : ne.DX_ENVIRONMENT) !== "production" && Z.subscribe(Y);
|
|
@@ -96108,8 +96163,9 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
|
|
|
96108
96163
|
onClick: useCallback(() => {
|
|
96109
96164
|
var Q, ee, te, ne;
|
|
96110
96165
|
const Z = (Q = I.share) == null ? void 0 : Q.call(I, {
|
|
96111
|
-
type: Invitation.Type.
|
|
96166
|
+
type: Invitation.Type.INTERACTIVE,
|
|
96112
96167
|
authMethod: Invitation.AuthMethod.NONE,
|
|
96168
|
+
multiUse: !0,
|
|
96113
96169
|
target: U
|
|
96114
96170
|
});
|
|
96115
96171
|
Z && ((ne = (te = (ee = G.values.runtime) == null ? void 0 : ee.app) == null ? void 0 : te.env) == null ? void 0 : ne.DX_ENVIRONMENT) !== "production" && Z.subscribe(Y);
|
|
@@ -96550,4 +96606,4 @@ export {
|
|
|
96550
96606
|
log$2 as l,
|
|
96551
96607
|
runShell as r
|
|
96552
96608
|
};
|
|
96553
|
-
//# sourceMappingURL=index-
|
|
96609
|
+
//# sourceMappingURL=index-DLLGn1Su.mjs.map
|