@livestore/devtools-vite 0.4.0-dev.4 → 0.4.0-dev.5
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/devtools-bundle/{data-grid-overlay-editor-CMMRKYHE.js → data-grid-overlay-editor-DmKXKLFX.js} +1 -1
- package/dist/devtools-bundle/{devtools-react-bundle-BB-mneLm.js → devtools-react-bundle-CuIn9u0H.js} +174 -174
- package/dist/devtools-bundle/{index-X1OlSdrm.js → index-mcs6CxYf.js} +1 -1
- package/dist/devtools-bundle/index.js +1 -1
- package/dist/devtools-bundle/{number-overlay-editor-BY8SCmy8.js → number-overlay-editor-BBlyY6Ih.js} +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +3 -3
package/dist/devtools-bundle/{devtools-react-bundle-BB-mneLm.js → devtools-react-bundle-CuIn9u0H.js}
RENAMED
|
@@ -15383,10 +15383,10 @@ class Y6 extends Hr {
|
|
|
15383
15383
|
return f(Pr(this.ref), D(t), D(([n, r]) => f(Cc(this.ref, r), xr(n), TS(zS(this.pubsub, r)))), this.semaphore.withPermits(1));
|
|
15384
15384
|
}
|
|
15385
15385
|
}
|
|
15386
|
-
const X6 = (e) => Pr(e.ref), Z6 = (e) => f(bS([Dv(), ws(e), vS(1)]), oe(([t, n, r]) => new Y6(n, t, r))),
|
|
15386
|
+
const X6 = (e) => Pr(e.ref), Z6 = (e) => f(bS([Dv(), ws(e), vS(1)]), oe(([t, n, r]) => new Y6(n, t, r))), eQ = /* @__PURE__ */ l(2, (e, t) => f(Cc(e.ref, t), TS(zS(e.pubsub, t)), e.semaphore.withPermits(1))), tQ = X6, rO = Z6, ya = eQ, nQ = (e) => \`\${e.getHours().toString().padStart(2, "0")}:\${e.getMinutes().toString().padStart(2, "0")}:\${e.getSeconds().toString().padStart(2, "0")}.\${e.getMilliseconds().toString().padStart(3, "0")}\`, rQ = (e, t = {}) => f6(
|
|
15387
15387
|
h6,
|
|
15388
15388
|
p6({
|
|
15389
|
-
formatDate: (n) => \`\${
|
|
15389
|
+
formatDate: (n) => \`\${nQ(n)} \${e}\`,
|
|
15390
15390
|
mode: t.mode
|
|
15391
15391
|
})
|
|
15392
15392
|
);
|
|
@@ -15394,12 +15394,12 @@ var Fs;
|
|
|
15394
15394
|
(function(e) {
|
|
15395
15395
|
e[e.INTERNAL = 0] = "INTERNAL", e[e.SERVER = 1] = "SERVER", e[e.CLIENT = 2] = "CLIENT", e[e.PRODUCER = 3] = "PRODUCER", e[e.CONSUMER = 4] = "CONSUMER";
|
|
15396
15396
|
})(Fs || (Fs = {}));
|
|
15397
|
-
const
|
|
15397
|
+
const sQ = /* @__PURE__ */ Symbol.for("@effect/opentelemetry/Tracer/OtelSpan");
|
|
15398
15398
|
Fs.INTERNAL, Fs.CLIENT, Fs.SERVER, Fs.PRODUCER, Fs.CONSUMER;
|
|
15399
|
-
const
|
|
15399
|
+
const oQ = /* @__PURE__ */ D(RS, (e) => sQ in e ? Se(e.span) : Wn(new Yd())), sO = oQ, Zf = l(
|
|
15400
15400
|
2,
|
|
15401
15401
|
(e, t) => f(e.changes, ko(t), Yf(1), p4, oe(Sd))
|
|
15402
|
-
),
|
|
15402
|
+
), iQ = {}, oO = () => typeof process < "u" && process.env !== void 0 ? process.env.NODE_ENV !== "production" : iQ !== void 0 ? !1 : !!(typeof globalThis < "u" && globalThis.__DEV__), cQ = (e) => {
|
|
15403
15403
|
const t = e?.toString();
|
|
15404
15404
|
if (t !== "[object Object]") return t;
|
|
15405
15405
|
try {
|
|
@@ -15411,7 +15411,7 @@ const o8 = /* @__PURE__ */ D(RS, (e) => s8 in e ? Se(e.span) : Wn(new Yd())), sO
|
|
|
15411
15411
|
if (console.error(e, ...t), oO())
|
|
15412
15412
|
debugger;
|
|
15413
15413
|
throw new Error(\`This should never happen: \${e}\`);
|
|
15414
|
-
}, E$ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_GIT_HASH: "
|
|
15414
|
+
}, E$ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_GIT_HASH: "b6f6579a", VITE_GRAFANA_ENDPOINT: "http://dev2.tail8108.ts.net:30003", VITE_OTEL: "1", VITE_OTEL_EXPORTER_OTLP_ENDPOINT: "http://dev2.tail8108.ts.net:4318", VITE_OTEL_EXPORTER_WEBSOCKET_ENDPOINT: "wss://dev2.tail8108.ts.net:44318" }, ru = (e) => {
|
|
15415
15415
|
if (typeof process < "u" && process.env !== void 0)
|
|
15416
15416
|
return process.env[e];
|
|
15417
15417
|
if (E$ !== void 0)
|
|
@@ -15425,15 +15425,15 @@ const k$ = (e) => e !== void 0, El = (e, t, n = " ") => e.split(\`
|
|
|
15425
15425
|
\`);
|
|
15426
15426
|
function iO(e) {
|
|
15427
15427
|
debugger;
|
|
15428
|
-
throw new Error(\`A case was not handled for value: \${
|
|
15428
|
+
throw new Error(\`A case was not handled for value: \${aQ(cQ(e), 1e3)}\`);
|
|
15429
15429
|
}
|
|
15430
|
-
const
|
|
15430
|
+
const aQ = (e, t) => e.length > t ? \`\${e.slice(0, t)}...\` : e, uQ = (e) => (t, n) => {
|
|
15431
15431
|
const r = [];
|
|
15432
15432
|
return Tm(e.ast, t, n, "", r), r;
|
|
15433
15433
|
}, Tm = (e, t, n, r, s) => {
|
|
15434
15434
|
if (TR({ ast: e })(t, n) === !1)
|
|
15435
15435
|
if (Xu(e))
|
|
15436
|
-
if (
|
|
15436
|
+
if (lQ(e)) {
|
|
15437
15437
|
s.push({ path: r, a: t, b: n, ast: e });
|
|
15438
15438
|
return;
|
|
15439
15439
|
} else
|
|
@@ -15449,7 +15449,7 @@ const a8 = (e, t) => e.length > t ? \`\${e.slice(0, t)}...\` : e, u8 = (e) => (t
|
|
|
15449
15449
|
Tm(c.type, t[c.name], n[c.name], \`\${r}.\${c.name.toString()}\`, s);
|
|
15450
15450
|
} else
|
|
15451
15451
|
s.push({ path: r, a: t, b: n, ast: e });
|
|
15452
|
-
},
|
|
15452
|
+
}, lQ = (e) => {
|
|
15453
15453
|
if (Xu(e))
|
|
15454
15454
|
return e.types.every((t) => Hf(t) === !1 ? !1 : fa(t).some((r) => r.name.toString() === "_tag"));
|
|
15455
15455
|
}, xb = (e, t) => (n, r) => L(function* () {
|
|
@@ -15457,11 +15457,11 @@ const a8 = (e, t) => e.length > t ? \`\${e.slice(0, t)}...\` : e, u8 = (e) => (t
|
|
|
15457
15457
|
return [yield* tl(e, t)(n, r).pipe(
|
|
15458
15458
|
gi(eo, s)
|
|
15459
15459
|
), s.unsafeRead()];
|
|
15460
|
-
}),
|
|
15460
|
+
}), fQ = (e) => sc(kt(e), Jh(e), {
|
|
15461
15461
|
decode: TV(e),
|
|
15462
15462
|
encode: vV(e)
|
|
15463
15463
|
});
|
|
15464
|
-
|
|
15464
|
+
fQ(SJ);
|
|
15465
15465
|
const ic = se(
|
|
15466
15466
|
P,
|
|
15467
15467
|
Jt,
|
|
@@ -15475,7 +15475,7 @@ const ic = se(
|
|
|
15475
15475
|
e(n),
|
|
15476
15476
|
oe(() => n)
|
|
15477
15477
|
)
|
|
15478
|
-
),
|
|
15478
|
+
), dQ = l(
|
|
15479
15479
|
2,
|
|
15480
15480
|
(e, t) => f(
|
|
15481
15481
|
ws(F()),
|
|
@@ -15491,12 +15491,12 @@ const ic = se(
|
|
|
15491
15491
|
);
|
|
15492
15492
|
l(
|
|
15493
15493
|
2,
|
|
15494
|
-
(e, t) =>
|
|
15494
|
+
(e, t) => dQ(
|
|
15495
15495
|
e,
|
|
15496
15496
|
(n) => n._tag === "None" ? a4(t) : OR
|
|
15497
15497
|
)
|
|
15498
15498
|
);
|
|
15499
|
-
const
|
|
15499
|
+
const hQ = (e) => (t) => {
|
|
15500
15500
|
if (U(console, "createTask") === !1)
|
|
15501
15501
|
return t;
|
|
15502
15502
|
const n = L(function* () {
|
|
@@ -15520,7 +15520,7 @@ const h8 = (e) => (t) => {
|
|
|
15520
15520
|
}, Ho = (e) => L(function* () {
|
|
15521
15521
|
const t = yield* ph();
|
|
15522
15522
|
return yield* gr((n) => mt(t, n)), yield* e(t).pipe(hh(t));
|
|
15523
|
-
}),
|
|
15523
|
+
}), pQ = (...e) => gr(
|
|
15524
15524
|
(t) => vv(...e, t._tag === "Success" ? "with success" : \`with failure: \${Ay(t.cause)}\`)
|
|
15525
15525
|
), Ct = (e) => Rc(
|
|
15526
15526
|
e,
|
|
@@ -15563,9 +15563,9 @@ const h8 = (e) => (t) => {
|
|
|
15563
15563
|
}), aO = () => {
|
|
15564
15564
|
const e = Wj();
|
|
15565
15565
|
return e._tag === "None" || e.value.currentSpan === void 0 ? "No current fiber" : "";
|
|
15566
|
-
},
|
|
15566
|
+
}, gQ = () => console.log(aO());
|
|
15567
15567
|
globalThis.getSpanTrace = aO;
|
|
15568
|
-
globalThis.logSpanTrace =
|
|
15568
|
+
globalThis.logSpanTrace = gQ;
|
|
15569
15569
|
const Mt = Symbol("WebChannel"), ou = ce("WebChannel.DebugPing", {
|
|
15570
15570
|
message: P,
|
|
15571
15571
|
payload: en(P)
|
|
@@ -15573,7 +15573,7 @@ const Mt = Symbol("WebChannel"), ou = ce("WebChannel.DebugPing", {
|
|
|
15573
15573
|
requestId: P
|
|
15574
15574
|
}), td = ce("WebChannel.Pong", {
|
|
15575
15575
|
requestId: P
|
|
15576
|
-
}),
|
|
15576
|
+
}), mQ = se(ed, td), I$ = (e) => ({
|
|
15577
15577
|
send: se(e.send, ou, ed, td),
|
|
15578
15578
|
listen: se(e.listen, ou, ed, td)
|
|
15579
15579
|
}), ol = (e) => U(e, "send") && U(e, "listen") ? I$(e) : I$({ send: e, listen: e }), rp = (e) => (t) => t.pipe(
|
|
@@ -15737,7 +15737,7 @@ const T$ = ({ port: e, schema: t, debugId: n }) => Ho(
|
|
|
15737
15737
|
// TODO implement this on the "chunk" level for better performance
|
|
15738
15738
|
t?.heartbeat ? FR(
|
|
15739
15739
|
PS(function* (o) {
|
|
15740
|
-
if (o._tag === "Right" && ct(
|
|
15740
|
+
if (o._tag === "Right" && ct(mQ)(o.right)) {
|
|
15741
15741
|
if (o.right._tag === "WebChannel.Ping")
|
|
15742
15742
|
yield* e.send(td.make({ requestId: o.right.requestId }));
|
|
15743
15743
|
else {
|
|
@@ -15781,14 +15781,14 @@ const T$ = ({ port: e, schema: t, debugId: n }) => Ho(
|
|
|
15781
15781
|
listenQueueSize: n
|
|
15782
15782
|
}
|
|
15783
15783
|
};
|
|
15784
|
-
}),
|
|
15784
|
+
}), yQ = ee({
|
|
15785
15785
|
tableName: P,
|
|
15786
15786
|
hashes: ee({
|
|
15787
15787
|
expected: Jt,
|
|
15788
15788
|
actual: en(Jt)
|
|
15789
15789
|
})
|
|
15790
|
-
}),
|
|
15791
|
-
migrations: We(
|
|
15790
|
+
}), SQ = ee({
|
|
15791
|
+
migrations: We(yQ)
|
|
15792
15792
|
});
|
|
15793
15793
|
class be extends an()("LiveStore.UnexpectedError", {
|
|
15794
15794
|
cause: Eo,
|
|
@@ -15803,7 +15803,7 @@ class be extends an()("LiveStore.UnexpectedError", {
|
|
|
15803
15803
|
f4((n) => ct(be)(n) ? n : new be({ cause: n }))
|
|
15804
15804
|
);
|
|
15805
15805
|
}
|
|
15806
|
-
class
|
|
15806
|
+
class bQ extends an()(
|
|
15807
15807
|
"LiveStore.MaterializerHashMismatchError",
|
|
15808
15808
|
{
|
|
15809
15809
|
eventName: P,
|
|
@@ -15813,7 +15813,7 @@ class b8 extends an()(
|
|
|
15813
15813
|
}
|
|
15814
15814
|
) {
|
|
15815
15815
|
}
|
|
15816
|
-
class
|
|
15816
|
+
class _Q extends an()(
|
|
15817
15817
|
"LiveStore.IntentionalShutdownCause",
|
|
15818
15818
|
{
|
|
15819
15819
|
reason: ae("devtools-reset", "devtools-import", "adapter-reset", "manual")
|
|
@@ -15824,7 +15824,7 @@ class yY extends an()("LiveStore.StoreInterrupted", {
|
|
|
15824
15824
|
reason: P
|
|
15825
15825
|
}) {
|
|
15826
15826
|
}
|
|
15827
|
-
class
|
|
15827
|
+
class wQ extends an()("LiveStore.SqliteError", {
|
|
15828
15828
|
query: en(
|
|
15829
15829
|
ee({
|
|
15830
15830
|
sql: P,
|
|
@@ -15840,37 +15840,37 @@ class w8 extends an()("LiveStore.SqliteError", {
|
|
|
15840
15840
|
note: en(P)
|
|
15841
15841
|
}) {
|
|
15842
15842
|
}
|
|
15843
|
-
class $
|
|
15844
|
-
cause: se(
|
|
15843
|
+
class $Q extends an()("LiveStore.MaterializeError", {
|
|
15844
|
+
cause: se(bQ, wQ),
|
|
15845
15845
|
note: en(P)
|
|
15846
15846
|
}) {
|
|
15847
15847
|
}
|
|
15848
15848
|
const jp = ee({
|
|
15849
15849
|
done: Jt,
|
|
15850
15850
|
total: Jt
|
|
15851
|
-
}),
|
|
15851
|
+
}), EQ = se(
|
|
15852
15852
|
ee({ stage: ae("loading") }),
|
|
15853
15853
|
ee({ stage: ae("migrating"), progress: jp }),
|
|
15854
15854
|
ee({ stage: ae("rehydrating"), progress: jp }),
|
|
15855
15855
|
ee({ stage: ae("syncing"), progress: jp }),
|
|
15856
15856
|
ee({ stage: ae("done") })
|
|
15857
|
-
).annotations({ title: "BootStatus" }),
|
|
15857
|
+
).annotations({ title: "BootStatus" }), kQ = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
15858
15858
|
let nd = (e = 21) => {
|
|
15859
15859
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
15860
15860
|
for (; e--; )
|
|
15861
|
-
t +=
|
|
15861
|
+
t += kQ[n[e] & 63];
|
|
15862
15862
|
return t;
|
|
15863
15863
|
};
|
|
15864
|
-
const
|
|
15864
|
+
const CQ = ce("RequestSessions", {}), IQ = ce("SessionInfo", {
|
|
15865
15865
|
storeId: P,
|
|
15866
15866
|
clientId: P,
|
|
15867
15867
|
sessionId: P,
|
|
15868
15868
|
schemaAlias: P,
|
|
15869
15869
|
isLeader: $o
|
|
15870
|
-
}),
|
|
15870
|
+
}), vQ = se(CQ, IQ), TQ = NR(), RQ = cR(TQ)(Za), OQ = NR(), iu = cR(OQ)(Za), rd = 0, Rm = 0, Gt = ee({
|
|
15871
15871
|
global: iu,
|
|
15872
15872
|
/** Only increments for clientOnly events */
|
|
15873
|
-
client:
|
|
15873
|
+
client: RQ,
|
|
15874
15874
|
// TODO also provide a way to see "confirmation level" of event (e.g. confirmed by leader/sync backend)
|
|
15875
15875
|
// Client only
|
|
15876
15876
|
rebaseGeneration: Za
|
|
@@ -15880,7 +15880,7 @@ const C8 = ce("RequestSessions", {}), I8 = ce("SessionInfo", {
|
|
|
15880
15880
|
}), cc = (e) => {
|
|
15881
15881
|
const t = e.rebaseGeneration > 0 ? \`r\${e.rebaseGeneration}\` : "";
|
|
15882
15882
|
return e.client === 0 ? \`e\${e.global}\${t}\` : \`e\${e.global}+\${e.client}\${t}\`;
|
|
15883
|
-
},
|
|
15883
|
+
}, PQ = ({
|
|
15884
15884
|
seqNum: e,
|
|
15885
15885
|
isClient: t,
|
|
15886
15886
|
rebaseGeneration: n
|
|
@@ -15908,21 +15908,21 @@ ee({
|
|
|
15908
15908
|
clientId: P,
|
|
15909
15909
|
sessionId: P
|
|
15910
15910
|
}).annotations({ title: "LiveStoreEvent.AnyDecoded" });
|
|
15911
|
-
const
|
|
15911
|
+
const FQ = ee({
|
|
15912
15912
|
name: P,
|
|
15913
15913
|
args: sn,
|
|
15914
15914
|
seqNum: Gt,
|
|
15915
15915
|
parentSeqNum: Gt,
|
|
15916
15916
|
clientId: P,
|
|
15917
15917
|
sessionId: P
|
|
15918
|
-
}).annotations({ title: "LiveStoreEvent.AnyEncoded" }),
|
|
15918
|
+
}).annotations({ title: "LiveStoreEvent.AnyEncoded" }), MQ = ee({
|
|
15919
15919
|
name: P,
|
|
15920
15920
|
args: sn,
|
|
15921
15921
|
seqNum: iu,
|
|
15922
15922
|
parentSeqNum: iu,
|
|
15923
15923
|
clientId: P,
|
|
15924
15924
|
sessionId: P
|
|
15925
|
-
}).annotations({ title: "LiveStoreEvent.AnyEncodedGlobal" }),
|
|
15925
|
+
}).annotations({ title: "LiveStoreEvent.AnyEncodedGlobal" }), xQ = ee({
|
|
15926
15926
|
name: P,
|
|
15927
15927
|
args: sn
|
|
15928
15928
|
});
|
|
@@ -15994,7 +15994,7 @@ class Rn extends Wo("LiveStoreEvent.EncodedWithMeta")({
|
|
|
15994
15994
|
rebaseGeneration: r
|
|
15995
15995
|
}) => new Rn({
|
|
15996
15996
|
...this,
|
|
15997
|
-
...
|
|
15997
|
+
...PQ({ seqNum: t, isClient: n, rebaseGeneration: r })
|
|
15998
15998
|
});
|
|
15999
15999
|
static fromGlobal = (t, n) => new Rn({
|
|
16000
16000
|
...t,
|
|
@@ -16021,18 +16021,18 @@ class Rn extends Wo("LiveStoreEvent.EncodedWithMeta")({
|
|
|
16021
16021
|
parentSeqNum: this.parentSeqNum.global
|
|
16022
16022
|
});
|
|
16023
16023
|
}
|
|
16024
|
-
const fO = "0.4.0-dev.
|
|
16024
|
+
const fO = "0.4.0-dev.5", AQ = ee({
|
|
16025
16025
|
isConnected: $o,
|
|
16026
16026
|
timestampMs: Jt,
|
|
16027
16027
|
/** Whether the network status devtools latch is closed. Used to simulate network disconnection. */
|
|
16028
16028
|
latchClosed: $o
|
|
16029
|
-
}), Bl = P,
|
|
16029
|
+
}), Bl = P, NQ = P, Hl = ae(fO), dO = (e, t) => ce(e, {
|
|
16030
16030
|
liveStoreVersion: Hl,
|
|
16031
16031
|
...t
|
|
16032
|
-
}).annotations({ identifier: e }),
|
|
16033
|
-
clientId:
|
|
16032
|
+
}).annotations({ identifier: e }), LQ = (e, t) => dO(e, {
|
|
16033
|
+
clientId: NQ,
|
|
16034
16034
|
...t
|
|
16035
|
-
}), He = (e, t) =>
|
|
16035
|
+
}), He = (e, t) => LQ(e, {
|
|
16036
16036
|
requestId: Bl,
|
|
16037
16037
|
...t
|
|
16038
16038
|
}), Ab = (e, t) => {
|
|
@@ -16080,16 +16080,16 @@ class pO extends ce("upstream-advance", {
|
|
|
16080
16080
|
newEvents: We(Rn)
|
|
16081
16081
|
}) {
|
|
16082
16082
|
}
|
|
16083
|
-
class
|
|
16083
|
+
class DQ extends ce("local-push", {
|
|
16084
16084
|
newEvents: We(Rn)
|
|
16085
16085
|
}) {
|
|
16086
16086
|
}
|
|
16087
|
-
class
|
|
16087
|
+
class qQ extends se(hO, pO, DQ) {
|
|
16088
16088
|
}
|
|
16089
16089
|
class gO extends se(hO, pO) {
|
|
16090
16090
|
}
|
|
16091
16091
|
class Nb extends Wo("MergeContext")({
|
|
16092
|
-
payload:
|
|
16092
|
+
payload: qQ,
|
|
16093
16093
|
syncState: sp
|
|
16094
16094
|
}) {
|
|
16095
16095
|
toJSON = () => ({
|
|
@@ -16112,7 +16112,7 @@ class Nb extends Wo("MergeContext")({
|
|
|
16112
16112
|
syncState: this.syncState.toJSON()
|
|
16113
16113
|
});
|
|
16114
16114
|
}
|
|
16115
|
-
class
|
|
16115
|
+
class UQ extends Wo("MergeResultAdvance")({
|
|
16116
16116
|
_tag: ae("advance"),
|
|
16117
16117
|
newSyncState: sp,
|
|
16118
16118
|
newEvents: We(Rn),
|
|
@@ -16128,7 +16128,7 @@ class U8 extends Wo("MergeResultAdvance")({
|
|
|
16128
16128
|
mergeContext: this.mergeContext.toJSON()
|
|
16129
16129
|
});
|
|
16130
16130
|
}
|
|
16131
|
-
class
|
|
16131
|
+
class jQ extends Wo("MergeResultRebase")({
|
|
16132
16132
|
_tag: ae("rebase"),
|
|
16133
16133
|
newSyncState: sp,
|
|
16134
16134
|
newEvents: We(Rn),
|
|
@@ -16144,7 +16144,7 @@ class j8 extends Wo("MergeResultRebase")({
|
|
|
16144
16144
|
mergeContext: this.mergeContext.toJSON()
|
|
16145
16145
|
});
|
|
16146
16146
|
}
|
|
16147
|
-
class
|
|
16147
|
+
class zQ extends Wo("MergeResultReject")({
|
|
16148
16148
|
_tag: ae("reject"),
|
|
16149
16149
|
/** The minimum id that the new events must have */
|
|
16150
16150
|
expectedMinimumId: Gt,
|
|
@@ -16156,89 +16156,89 @@ class z8 extends Wo("MergeResultReject")({
|
|
|
16156
16156
|
mergeContext: this.mergeContext.toJSON()
|
|
16157
16157
|
});
|
|
16158
16158
|
}
|
|
16159
|
-
class
|
|
16159
|
+
class WQ extends Wo("MergeResultUnexpectedError")({
|
|
16160
16160
|
_tag: ae("unexpected-error"),
|
|
16161
16161
|
message: P
|
|
16162
16162
|
}) {
|
|
16163
16163
|
}
|
|
16164
16164
|
class SY extends se(
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16165
|
+
UQ,
|
|
16166
|
+
jQ,
|
|
16167
|
+
zQ,
|
|
16168
|
+
WQ
|
|
16169
16169
|
) {
|
|
16170
16170
|
}
|
|
16171
16171
|
class bY extends He("LSD.Leader.ResetAllDataReq", {
|
|
16172
16172
|
mode: ae("all-data", "only-app-db")
|
|
16173
16173
|
}) {
|
|
16174
16174
|
}
|
|
16175
|
-
class
|
|
16175
|
+
class KQ extends He("LSD.Leader.DatabaseFileInfoReq", {}) {
|
|
16176
16176
|
}
|
|
16177
16177
|
class O$ extends ee({
|
|
16178
16178
|
fileSize: Jt,
|
|
16179
16179
|
persistenceInfo: ee({ fileName: P }, { key: P, value: sn })
|
|
16180
16180
|
}) {
|
|
16181
16181
|
}
|
|
16182
|
-
class
|
|
16182
|
+
class BQ extends He("LSD.Leader.DatabaseFileInfoRes", {
|
|
16183
16183
|
state: O$,
|
|
16184
16184
|
eventlog: O$
|
|
16185
16185
|
}) {
|
|
16186
16186
|
}
|
|
16187
|
-
class
|
|
16187
|
+
class HQ extends He("LSD.Leader.NetworkStatusSubscribe", {
|
|
16188
16188
|
subscriptionId: P
|
|
16189
16189
|
}) {
|
|
16190
16190
|
}
|
|
16191
|
-
class
|
|
16191
|
+
class VQ extends He("LSD.Leader.NetworkStatusUnsubscribe", {
|
|
16192
16192
|
subscriptionId: P
|
|
16193
16193
|
}) {
|
|
16194
16194
|
}
|
|
16195
|
-
class
|
|
16196
|
-
networkStatus:
|
|
16195
|
+
class JQ extends He("LSD.Leader.NetworkStatusRes", {
|
|
16196
|
+
networkStatus: AQ,
|
|
16197
16197
|
subscriptionId: P
|
|
16198
16198
|
}) {
|
|
16199
16199
|
}
|
|
16200
|
-
class
|
|
16200
|
+
class GQ extends He("LSD.Leader.SyncingInfoReq", {}) {
|
|
16201
16201
|
}
|
|
16202
|
-
class
|
|
16202
|
+
class QQ extends ee({
|
|
16203
16203
|
enabled: $o,
|
|
16204
16204
|
metadata: Xh({ key: P, value: sn })
|
|
16205
16205
|
}) {
|
|
16206
16206
|
}
|
|
16207
|
-
class
|
|
16208
|
-
syncingInfo:
|
|
16207
|
+
class YQ extends He("LSD.Leader.SyncingInfoRes", {
|
|
16208
|
+
syncingInfo: QQ
|
|
16209
16209
|
}) {
|
|
16210
16210
|
}
|
|
16211
|
-
class
|
|
16211
|
+
class XQ extends He("LSD.Leader.SyncHistorySubscribe", {
|
|
16212
16212
|
subscriptionId: P
|
|
16213
16213
|
}) {
|
|
16214
16214
|
}
|
|
16215
|
-
class
|
|
16215
|
+
class ZQ extends He("LSD.Leader.SyncHistoryUnsubscribe", {
|
|
16216
16216
|
subscriptionId: P
|
|
16217
16217
|
}) {
|
|
16218
16218
|
}
|
|
16219
|
-
class
|
|
16220
|
-
eventEncoded:
|
|
16219
|
+
class e8 extends He("LSD.Leader.SyncHistoryRes", {
|
|
16220
|
+
eventEncoded: MQ,
|
|
16221
16221
|
metadata: Wl(ic),
|
|
16222
16222
|
subscriptionId: P
|
|
16223
16223
|
}) {
|
|
16224
16224
|
}
|
|
16225
|
-
class
|
|
16225
|
+
class t8 extends He("LSD.Leader.SyncHeadSubscribe", {
|
|
16226
16226
|
subscriptionId: P
|
|
16227
16227
|
}) {
|
|
16228
16228
|
}
|
|
16229
|
-
class
|
|
16229
|
+
class n8 extends He("LSD.Leader.SyncHeadUnsubscribe", {
|
|
16230
16230
|
subscriptionId: P
|
|
16231
16231
|
}) {
|
|
16232
16232
|
}
|
|
16233
|
-
class
|
|
16233
|
+
class r8 extends He("LSD.Leader.SyncHeadRes", {
|
|
16234
16234
|
local: Gt,
|
|
16235
16235
|
upstream: Gt,
|
|
16236
16236
|
subscriptionId: P
|
|
16237
16237
|
}) {
|
|
16238
16238
|
}
|
|
16239
|
-
class
|
|
16239
|
+
class s8 extends He("LSD.Leader.SnapshotReq", {}) {
|
|
16240
16240
|
}
|
|
16241
|
-
class
|
|
16241
|
+
class o8 extends He("LSD.Leader.SnapshotRes", {
|
|
16242
16242
|
snapshot: Lc
|
|
16243
16243
|
}) {
|
|
16244
16244
|
}
|
|
@@ -16255,25 +16255,25 @@ const mO = Ab("LSD.Leader.LoadDatabaseFile", {
|
|
|
16255
16255
|
)
|
|
16256
16256
|
}
|
|
16257
16257
|
});
|
|
16258
|
-
class
|
|
16258
|
+
class i8 extends dO("LSD.Leader.SyncPull", {
|
|
16259
16259
|
payload: gO
|
|
16260
16260
|
}) {
|
|
16261
16261
|
}
|
|
16262
|
-
class
|
|
16263
|
-
eventEncoded:
|
|
16262
|
+
class c8 extends He("LSD.Leader.CommitEventReq", {
|
|
16263
|
+
eventEncoded: xQ
|
|
16264
16264
|
}) {
|
|
16265
16265
|
}
|
|
16266
|
-
class
|
|
16266
|
+
class a8 extends He("LSD.Leader.CommitEventRes", {}) {
|
|
16267
16267
|
}
|
|
16268
|
-
class
|
|
16268
|
+
class u8 extends He("LSD.Leader.EventlogReq", {}) {
|
|
16269
16269
|
}
|
|
16270
|
-
class
|
|
16270
|
+
class l8 extends He("LSD.Leader.EventlogRes", {
|
|
16271
16271
|
eventlog: Lc
|
|
16272
16272
|
}) {
|
|
16273
16273
|
}
|
|
16274
|
-
class
|
|
16274
|
+
class f8 extends He("LSD.Leader.Ping", {}) {
|
|
16275
16275
|
}
|
|
16276
|
-
class
|
|
16276
|
+
class d8 extends He("LSD.Leader.Pong", {}) {
|
|
16277
16277
|
}
|
|
16278
16278
|
class yO extends He("LSD.Leader.Disconnect", {}) {
|
|
16279
16279
|
}
|
|
@@ -16287,41 +16287,41 @@ const SO = Ab("LSD.Leader.SetSyncLatch", {
|
|
|
16287
16287
|
mode: ae("all-data", "only-app-db")
|
|
16288
16288
|
},
|
|
16289
16289
|
success: {}
|
|
16290
|
-
}),
|
|
16291
|
-
|
|
16290
|
+
}), h8 = se(
|
|
16291
|
+
s8,
|
|
16292
16292
|
mO.Request,
|
|
16293
|
-
|
|
16293
|
+
u8,
|
|
16294
16294
|
bO.Request,
|
|
16295
|
-
|
|
16296
|
-
|
|
16295
|
+
HQ,
|
|
16296
|
+
VQ,
|
|
16297
16297
|
yO,
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16298
|
+
c8,
|
|
16299
|
+
f8,
|
|
16300
|
+
KQ,
|
|
16301
|
+
XQ,
|
|
16302
|
+
ZQ,
|
|
16303
|
+
GQ,
|
|
16304
|
+
t8,
|
|
16305
|
+
n8,
|
|
16306
16306
|
SO.Request
|
|
16307
16307
|
).annotations({ identifier: "LSD.Leader.MessageToApp" });
|
|
16308
16308
|
se(
|
|
16309
|
-
|
|
16309
|
+
o8,
|
|
16310
16310
|
mO.Response,
|
|
16311
|
-
|
|
16311
|
+
l8,
|
|
16312
16312
|
yO,
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16313
|
+
i8,
|
|
16314
|
+
JQ,
|
|
16315
|
+
a8,
|
|
16316
|
+
d8,
|
|
16317
|
+
BQ,
|
|
16318
|
+
e8,
|
|
16319
|
+
YQ,
|
|
16320
|
+
r8,
|
|
16321
16321
|
bO.Success,
|
|
16322
16322
|
SO.Success
|
|
16323
16323
|
).annotations({ identifier: "LSD.Leader.MessageFromApp" });
|
|
16324
|
-
const
|
|
16324
|
+
const p8 = se(
|
|
16325
16325
|
ce("node", {
|
|
16326
16326
|
/** WebSocket URL */
|
|
16327
16327
|
url: P
|
|
@@ -16329,14 +16329,14 @@ const pQ = se(
|
|
|
16329
16329
|
ce("web", {}),
|
|
16330
16330
|
ce("browser-extension", {})
|
|
16331
16331
|
);
|
|
16332
|
-
|
|
16333
|
-
const
|
|
16332
|
+
p8.pipe(cJ("_tag"), kt);
|
|
16333
|
+
const g8 = {
|
|
16334
16334
|
client: {
|
|
16335
16335
|
session: ({ storeId: e, clientId: t, sessionId: n }) => \`client-session-\${e}-\${t}-\${n}\`,
|
|
16336
16336
|
leader: ({ storeId: e, clientId: t }) => \`client-leader-\${e}-\${t}\`
|
|
16337
16337
|
}
|
|
16338
16338
|
};
|
|
16339
|
-
class
|
|
16339
|
+
class m8 extends an()("EdgeAlreadyExistsError", {
|
|
16340
16340
|
target: P
|
|
16341
16341
|
}) {
|
|
16342
16342
|
}
|
|
@@ -16479,7 +16479,7 @@ class kl extends ce("DirectChannelPing", {}) {
|
|
|
16479
16479
|
}
|
|
16480
16480
|
class Cl extends ce("DirectChannelPong", {}) {
|
|
16481
16481
|
}
|
|
16482
|
-
const
|
|
16482
|
+
const y8 = ue, S8 = ({
|
|
16483
16483
|
nodeName: e,
|
|
16484
16484
|
incomingPacketsQueue: t,
|
|
16485
16485
|
target: n,
|
|
@@ -16491,7 +16491,7 @@ const yQ = ue, SQ = ({
|
|
|
16491
16491
|
scope: a,
|
|
16492
16492
|
sourceId: u
|
|
16493
16493
|
}) => L(function* () {
|
|
16494
|
-
const d = yield*
|
|
16494
|
+
const d = yield* y8(), h = yield* sO.pipe(_S(() => Se(void 0))), p = {
|
|
16495
16495
|
send: se(o.send, kl, Cl),
|
|
16496
16496
|
listen: se(o.listen, kl, Cl)
|
|
16497
16497
|
}, g = {
|
|
@@ -16623,7 +16623,7 @@ const yQ = ue, SQ = ({
|
|
|
16623
16623
|
return yield* dn(\`No transferable edges found for \${S.source}→\${S.target}\`), yield* Wn(C);
|
|
16624
16624
|
yield* i(S), h?.addEvent(\`initial edge request sent (\${S.id})\`);
|
|
16625
16625
|
}), yield* d);
|
|
16626
|
-
}).pipe(OS(\`makeDirectChannel:\${c}\`)),
|
|
16626
|
+
}).pipe(OS(\`makeDirectChannel:\${c}\`)), b8 = ({
|
|
16627
16627
|
schema: e,
|
|
16628
16628
|
newEdgeAvailablePubSub: t,
|
|
16629
16629
|
channelName: n,
|
|
@@ -16655,7 +16655,7 @@ const yQ = ue, SQ = ({
|
|
|
16655
16655
|
Un,
|
|
16656
16656
|
xr("new-edge"),
|
|
16657
16657
|
ES
|
|
16658
|
-
), v =
|
|
16658
|
+
), v = S8({
|
|
16659
16659
|
nodeName: s,
|
|
16660
16660
|
sourceId: u,
|
|
16661
16661
|
incomingPacketsQueue: o,
|
|
@@ -16725,7 +16725,7 @@ const yQ = ue, SQ = ({
|
|
|
16725
16725
|
initialEdgeDeferred: p
|
|
16726
16726
|
};
|
|
16727
16727
|
})
|
|
16728
|
-
),
|
|
16728
|
+
), _8 = ({
|
|
16729
16729
|
queue: e,
|
|
16730
16730
|
nodeName: t,
|
|
16731
16731
|
newEdgeAvailablePubSub: n,
|
|
@@ -16970,7 +16970,7 @@ class qb {
|
|
|
16970
16970
|
}
|
|
16971
16971
|
onShutdown = () => clearTimeout(this.timeoutHandle);
|
|
16972
16972
|
}
|
|
16973
|
-
const
|
|
16973
|
+
const w8 = (e) => L(function* () {
|
|
16974
16974
|
const t = /* @__PURE__ */ new Map(), n = yield* qb.make(HE(1)), r = yield* Dv().pipe(st(jg)), s = /* @__PURE__ */ new Map(), o = yield* fn().pipe(
|
|
16975
16975
|
st(jt)
|
|
16976
16976
|
), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), a = (m) => {
|
|
@@ -17074,7 +17074,7 @@ const wQ = (e) => L(function* () {
|
|
|
17074
17074
|
if ($)
|
|
17075
17075
|
yield* h(m).pipe(tr);
|
|
17076
17076
|
else
|
|
17077
|
-
return yield* new
|
|
17077
|
+
return yield* new m8({ target: m });
|
|
17078
17078
|
const I = yield* w.listen.pipe(
|
|
17079
17079
|
eu(),
|
|
17080
17080
|
Ar(
|
|
@@ -17173,7 +17173,7 @@ const wQ = (e) => L(function* () {
|
|
|
17173
17173
|
Ct,
|
|
17174
17174
|
mn
|
|
17175
17175
|
);
|
|
17176
|
-
const { webChannel: K, initialEdgeDeferred: Ne } = yield*
|
|
17176
|
+
const { webChannel: K, initialEdgeDeferred: Ne } = yield* b8({
|
|
17177
17177
|
nodeName: e,
|
|
17178
17178
|
incomingPacketsQueue: ie,
|
|
17179
17179
|
newEdgeAvailablePubSub: r,
|
|
@@ -17185,7 +17185,7 @@ const wQ = (e) => L(function* () {
|
|
|
17185
17185
|
});
|
|
17186
17186
|
return s.set(A, { queue: Q, debugInfo: { channel: K, target: m } }), yield* Ne, K;
|
|
17187
17187
|
} else {
|
|
17188
|
-
const ie = yield*
|
|
17188
|
+
const ie = yield* _8({
|
|
17189
17189
|
nodeName: e,
|
|
17190
17190
|
newEdgeAvailablePubSub: r,
|
|
17191
17191
|
target: m,
|
|
@@ -17313,30 +17313,30 @@ const wQ = (e) => L(function* () {
|
|
|
17313
17313
|
}
|
|
17314
17314
|
};
|
|
17315
17315
|
}).pipe(It(\`makeMeshNode:\${e}\`), Ys({ "makeMeshNode.nodeName": e }));
|
|
17316
|
-
class $
|
|
17316
|
+
class $8 extends an()("IsOfflineError", {
|
|
17317
17317
|
cause: Eo
|
|
17318
17318
|
}) {
|
|
17319
17319
|
}
|
|
17320
17320
|
const P$ = P.annotations({ title: "@livestore/sync-cf:BackendId" });
|
|
17321
|
-
class
|
|
17321
|
+
class E8 extends an()("BackendIdMismatchError", {
|
|
17322
17322
|
expected: P$,
|
|
17323
17323
|
received: P$
|
|
17324
17324
|
}) {
|
|
17325
17325
|
}
|
|
17326
|
-
class
|
|
17326
|
+
class k8 extends an()("ServerAheadError", {
|
|
17327
17327
|
minimumExpectedNum: iu,
|
|
17328
17328
|
providedNum: iu
|
|
17329
17329
|
}) {
|
|
17330
17330
|
}
|
|
17331
17331
|
class vO extends an()("InvalidPushError", {
|
|
17332
|
-
cause: se(be,
|
|
17332
|
+
cause: se(be, k8, E8)
|
|
17333
17333
|
}) {
|
|
17334
17334
|
}
|
|
17335
17335
|
class TO extends an()("InvalidPullError", {
|
|
17336
17336
|
cause: Eo
|
|
17337
17337
|
}) {
|
|
17338
17338
|
}
|
|
17339
|
-
class
|
|
17339
|
+
class C8 extends an()("LeaderAheadError", {
|
|
17340
17340
|
minimumExpectedNum: Gt,
|
|
17341
17341
|
providedNum: Gt
|
|
17342
17342
|
/** Generation number the client session should use for subsequent pushes */
|
|
@@ -17357,9 +17357,9 @@ class wY extends se(op) {
|
|
|
17357
17357
|
}
|
|
17358
17358
|
uO({
|
|
17359
17359
|
channelName: "session-info",
|
|
17360
|
-
schema:
|
|
17360
|
+
schema: vQ
|
|
17361
17361
|
});
|
|
17362
|
-
const
|
|
17362
|
+
const I8 = {
|
|
17363
17363
|
sharedWorker: ({ storeId: e }) => \`shared-worker-\${e}\`,
|
|
17364
17364
|
// TODO refactor shared-worker setup so there's only a single shared-worker per origin
|
|
17365
17365
|
// sharedWorker: () => \`shared-worker\`,
|
|
@@ -17389,13 +17389,13 @@ ve(
|
|
|
17389
17389
|
ids: { own: "client-session-static", other: "contentscript-main-static" }
|
|
17390
17390
|
})
|
|
17391
17391
|
);
|
|
17392
|
-
const
|
|
17392
|
+
const v8 = ({
|
|
17393
17393
|
node: e,
|
|
17394
17394
|
target: t,
|
|
17395
17395
|
worker: n
|
|
17396
17396
|
}) => L(function* () {
|
|
17397
17397
|
const r = new MessageChannel(), s = yield* ue();
|
|
17398
|
-
su && (yield*
|
|
17398
|
+
su && (yield* pQ(
|
|
17399
17399
|
\`@livestore/devtools-web-common: closing message channel \${e.nodeName} → \${t}\`
|
|
17400
17400
|
)), yield* n.execute(op.make({ from: e.nodeName, port: r.port1 })).pipe(
|
|
17401
17401
|
Ar(() => De(s, !0)),
|
|
@@ -17411,29 +17411,29 @@ const vQ = ({
|
|
|
17411
17411
|
}).pipe(be.mapToUnexpectedError);
|
|
17412
17412
|
class cl extends WE("@livestore/devtools-web-common:CacheService")() {
|
|
17413
17413
|
static layer = ({ nodeName: t }) => L(function* () {
|
|
17414
|
-
const n = yield*
|
|
17414
|
+
const n = yield* w8(t);
|
|
17415
17415
|
return globalThis.__debugWebmeshNode = n, { node: n };
|
|
17416
17416
|
}).pipe(BW(cl));
|
|
17417
17417
|
}
|
|
17418
|
-
const
|
|
17418
|
+
const T8 = ({ from: e, port: t }) => ZJ(
|
|
17419
17419
|
(n) => L(function* () {
|
|
17420
17420
|
const { node: r } = yield* cl, s = yield* lO({ port: t, schema: Db });
|
|
17421
17421
|
yield* r.addEdge({ target: e, edgeChannel: s, replaceIfExists: !0 }), su && (yield* wn(\`@livestore/devtools-web-common: accepted edge: \${r.nodeName} ← \${e}\`)), n.single({}), yield* dn({ connectedTo: [...r.edgeKeys] });
|
|
17422
17422
|
}).pipe(tr)
|
|
17423
17423
|
).pipe(S4(\`@livestore/devtools-web-common:worker:create-connection:\${e}\`));
|
|
17424
|
-
class
|
|
17425
|
-
|
|
17424
|
+
class R8 extends se(
|
|
17425
|
+
_Q,
|
|
17426
17426
|
be,
|
|
17427
|
-
$
|
|
17427
|
+
$8,
|
|
17428
17428
|
vO,
|
|
17429
17429
|
TO,
|
|
17430
|
-
$
|
|
17430
|
+
$Q
|
|
17431
17431
|
) {
|
|
17432
17432
|
}
|
|
17433
|
-
const
|
|
17433
|
+
const O8 = (e) => uO({
|
|
17434
17434
|
channelName: \`livestore.shutdown.\${e}\`,
|
|
17435
|
-
schema:
|
|
17436
|
-
}),
|
|
17435
|
+
schema: R8
|
|
17436
|
+
}), P8 = ee({
|
|
17437
17437
|
type: ae("opfs"),
|
|
17438
17438
|
/**
|
|
17439
17439
|
* Default is \`livestore-\${storeId}\`
|
|
@@ -17442,12 +17442,12 @@ const OQ = (e) => uO({
|
|
|
17442
17442
|
* conflicts with other LiveStore apps.
|
|
17443
17443
|
*/
|
|
17444
17444
|
directory: en(P)
|
|
17445
|
-
}),
|
|
17446
|
-
|
|
17445
|
+
}), F8 = se(
|
|
17446
|
+
P8
|
|
17447
17447
|
// StorageTypeIndexeddb
|
|
17448
17448
|
);
|
|
17449
17449
|
Xh({ key: P, value: ic });
|
|
17450
|
-
class
|
|
17450
|
+
class M8 extends Qt()(
|
|
17451
17451
|
"InitialMessage",
|
|
17452
17452
|
{
|
|
17453
17453
|
payload: { port: np, storeId: P, clientId: P },
|
|
@@ -17456,13 +17456,13 @@ class MQ extends Qt()(
|
|
|
17456
17456
|
}
|
|
17457
17457
|
) {
|
|
17458
17458
|
}
|
|
17459
|
-
class $Y extends se(
|
|
17459
|
+
class $Y extends se(M8) {
|
|
17460
17460
|
}
|
|
17461
17461
|
class Ub extends Qt()(
|
|
17462
17462
|
"InitialMessage",
|
|
17463
17463
|
{
|
|
17464
17464
|
payload: {
|
|
17465
|
-
storageOptions:
|
|
17465
|
+
storageOptions: F8,
|
|
17466
17466
|
devtoolsEnabled: $o,
|
|
17467
17467
|
storeId: P,
|
|
17468
17468
|
clientId: P,
|
|
@@ -17478,7 +17478,7 @@ class RO extends Qt()(
|
|
|
17478
17478
|
"BootStatusStream",
|
|
17479
17479
|
{
|
|
17480
17480
|
payload: {},
|
|
17481
|
-
success:
|
|
17481
|
+
success: EQ,
|
|
17482
17482
|
failure: be
|
|
17483
17483
|
}
|
|
17484
17484
|
) {
|
|
@@ -17487,10 +17487,10 @@ class OO extends Qt()(
|
|
|
17487
17487
|
"PushToLeader",
|
|
17488
17488
|
{
|
|
17489
17489
|
payload: {
|
|
17490
|
-
batch: We(
|
|
17490
|
+
batch: We(FQ)
|
|
17491
17491
|
},
|
|
17492
17492
|
success: zo,
|
|
17493
|
-
failure: se(be,
|
|
17493
|
+
failure: se(be, C8)
|
|
17494
17494
|
}
|
|
17495
17495
|
) {
|
|
17496
17496
|
}
|
|
@@ -17525,7 +17525,7 @@ class xO extends Qt()(
|
|
|
17525
17525
|
payload: {},
|
|
17526
17526
|
success: ee({
|
|
17527
17527
|
snapshot: Lc,
|
|
17528
|
-
migrationsReport:
|
|
17528
|
+
migrationsReport: SQ
|
|
17529
17529
|
}),
|
|
17530
17530
|
failure: be
|
|
17531
17531
|
}
|
|
@@ -17559,7 +17559,7 @@ class DO extends Qt()(
|
|
|
17559
17559
|
"ExtraDevtoolsMessage",
|
|
17560
17560
|
{
|
|
17561
17561
|
payload: {
|
|
17562
|
-
message:
|
|
17562
|
+
message: h8
|
|
17563
17563
|
},
|
|
17564
17564
|
success: zo,
|
|
17565
17565
|
failure: be
|
|
@@ -17580,13 +17580,13 @@ se(
|
|
|
17580
17580
|
DO,
|
|
17581
17581
|
op
|
|
17582
17582
|
);
|
|
17583
|
-
class
|
|
17583
|
+
class x8 extends ce("FromClientSession", {
|
|
17584
17584
|
initialMessage: Ub
|
|
17585
17585
|
}) {
|
|
17586
17586
|
}
|
|
17587
|
-
class
|
|
17587
|
+
class A8 extends Qt()("InitialMessage", {
|
|
17588
17588
|
payload: {
|
|
17589
|
-
payload: se(
|
|
17589
|
+
payload: se(x8, ce("FromWebBridge", {})),
|
|
17590
17590
|
// To guard against scenarios where a client session is already running a newer version of LiveStore
|
|
17591
17591
|
// We should probably find a better way to handle those cases once they become more common.
|
|
17592
17592
|
liveStoreVersion: ae(fO)
|
|
@@ -17595,7 +17595,7 @@ class AQ extends Qt()("InitialMessage", {
|
|
|
17595
17595
|
failure: be
|
|
17596
17596
|
}) {
|
|
17597
17597
|
}
|
|
17598
|
-
class
|
|
17598
|
+
class N8 extends Qt()(
|
|
17599
17599
|
"UpdateMessagePort",
|
|
17600
17600
|
{
|
|
17601
17601
|
payload: {
|
|
@@ -17606,9 +17606,9 @@ class NQ extends Qt()(
|
|
|
17606
17606
|
}
|
|
17607
17607
|
) {
|
|
17608
17608
|
}
|
|
17609
|
-
class
|
|
17610
|
-
|
|
17611
|
-
|
|
17609
|
+
class L8 extends se(
|
|
17610
|
+
A8,
|
|
17611
|
+
N8,
|
|
17612
17612
|
// Proxied requests
|
|
17613
17613
|
RO,
|
|
17614
17614
|
OO,
|
|
@@ -17628,7 +17628,7 @@ oO() && (globalThis.__debugLiveStoreUtils = {
|
|
|
17628
17628
|
runSync: (e) => cs(e),
|
|
17629
17629
|
runFork: (e) => Es(e)
|
|
17630
17630
|
});
|
|
17631
|
-
const
|
|
17631
|
+
const D8 = L(function* () {
|
|
17632
17632
|
const e = yield* rO(void 0), t = yield* ue().pipe(mi(ws)), n = Zf(e, k$).pipe(
|
|
17633
17633
|
oe((c) => c.worker)
|
|
17634
17634
|
), r = (c) => n.pipe(
|
|
@@ -17662,7 +17662,7 @@ const DQ = L(function* () {
|
|
|
17662
17662
|
PR(wn(\`shutting down stream for \${c._tag}\`)),
|
|
17663
17663
|
be.mapToUnexpectedErrorStream
|
|
17664
17664
|
), o = L(function* () {
|
|
17665
|
-
const c = yield*
|
|
17665
|
+
const c = yield* tQ(e);
|
|
17666
17666
|
c !== void 0 && (yield* ya(e, void 0), yield* lW(), yield* mt(c.scope, Ft).pipe(
|
|
17667
17667
|
C$({
|
|
17668
17668
|
label: "@livestore/adapter-web:shared-worker:close-previous-worker",
|
|
@@ -17674,7 +17674,7 @@ const DQ = L(function* () {
|
|
|
17674
17674
|
const c = yield* ue();
|
|
17675
17675
|
yield* Cc(t, c), yield* o;
|
|
17676
17676
|
});
|
|
17677
|
-
return l6(
|
|
17677
|
+
return l6(L8, {
|
|
17678
17678
|
InitialMessage: (c) => L(function* () {
|
|
17679
17679
|
if (c.payload._tag === "FromWebBridge") return;
|
|
17680
17680
|
const a = yield* Pr(t), u = yield* gf(a), d = c.payload.initialMessage;
|
|
@@ -17683,7 +17683,7 @@ const DQ = L(function* () {
|
|
|
17683
17683
|
iJ("devtoolsEnabled", "debugInstanceId")
|
|
17684
17684
|
);
|
|
17685
17685
|
if (TR(p)(d, h.initialMessage) === !1) {
|
|
17686
|
-
const y =
|
|
17686
|
+
const y = uQ(p)(h.initialMessage, d);
|
|
17687
17687
|
return yield* new be({
|
|
17688
17688
|
cause: "Initial message already sent and was different now",
|
|
17689
17689
|
payload: {
|
|
@@ -17703,7 +17703,7 @@ const DQ = L(function* () {
|
|
|
17703
17703
|
yield* o;
|
|
17704
17704
|
const u = yield* ph();
|
|
17705
17705
|
yield* L(function* () {
|
|
17706
|
-
yield* (yield*
|
|
17706
|
+
yield* (yield* O8(a.initialMessage.storeId)).listen.pipe(
|
|
17707
17707
|
eu(),
|
|
17708
17708
|
Ar(() => i),
|
|
17709
17709
|
Un,
|
|
@@ -17718,10 +17718,10 @@ const DQ = L(function* () {
|
|
|
17718
17718
|
pn(h),
|
|
17719
17719
|
It("@livestore/adapter-web:shared-worker:makeWorkerProxyFromPort")
|
|
17720
17720
|
), { node: g } = yield* cl, { storeId: y, clientId: E } = a.initialMessage;
|
|
17721
|
-
yield*
|
|
17721
|
+
yield* v8({
|
|
17722
17722
|
node: g,
|
|
17723
17723
|
worker: p,
|
|
17724
|
-
target:
|
|
17724
|
+
target: g8.client.leader({ storeId: y, clientId: E })
|
|
17725
17725
|
}).pipe(Ct, mn), yield* ya(e, { worker: p, scope: u });
|
|
17726
17726
|
}).pipe(Ct, hh(u), Zt(u));
|
|
17727
17727
|
}).pipe(
|
|
@@ -17742,28 +17742,28 @@ const DQ = L(function* () {
|
|
|
17742
17742
|
Shutdown: r,
|
|
17743
17743
|
ExtraDevtoolsMessage: r,
|
|
17744
17744
|
// Accept devtools connections (from leader and client sessions)
|
|
17745
|
-
"DevtoolsWebCommon.CreateConnection":
|
|
17745
|
+
"DevtoolsWebCommon.CreateConnection": T8
|
|
17746
17746
|
});
|
|
17747
|
-
}).pipe(GW),
|
|
17747
|
+
}).pipe(GW), q8 = () => {
|
|
17748
17748
|
const e = self.name.replace("livestore-shared-worker-", "");
|
|
17749
|
-
|
|
17749
|
+
D8.pipe(
|
|
17750
17750
|
AS(R6),
|
|
17751
17751
|
// WorkerRunner.launch,
|
|
17752
17752
|
WW,
|
|
17753
17753
|
bo,
|
|
17754
17754
|
Ct,
|
|
17755
17755
|
Ys({ thread: self.name }),
|
|
17756
|
-
pn(
|
|
17756
|
+
pn(rQ(self.name)),
|
|
17757
17757
|
pn(_6),
|
|
17758
|
-
pn(cl.layer({ nodeName:
|
|
17759
|
-
su ?
|
|
17758
|
+
pn(cl.layer({ nodeName: I8.sharedWorker({ storeId: e }) })),
|
|
17759
|
+
su ? hQ((t) => console.createTask(t)) : q,
|
|
17760
17760
|
// TODO remove type-cast (currently needed to silence a tsc bug)
|
|
17761
17761
|
(t) => t,
|
|
17762
17762
|
d6(Dy),
|
|
17763
17763
|
Es
|
|
17764
17764
|
);
|
|
17765
17765
|
};
|
|
17766
|
-
|
|
17766
|
+
q8();
|
|
17767
17767
|
`;
|
|
17768
17768
|
function ALA(A) {
|
|
17769
17769
|
return new SharedWorker(
|
|
@@ -78091,7 +78091,7 @@ const boe = (A) => c$.make(cD(function* (e) {
|
|
|
78091
78091
|
if (console.error(A, ...e), Bu())
|
|
78092
78092
|
debugger;
|
|
78093
78093
|
throw new Error(`This should never happen: ${A}`);
|
|
78094
|
-
}, hoA = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_GIT_HASH: "
|
|
78094
|
+
}, hoA = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_GIT_HASH: "b6f6579a", VITE_GRAFANA_ENDPOINT: "http://dev2.tail8108.ts.net:30003", VITE_OTEL: "1", VITE_OTEL_EXPORTER_OTLP_ENDPOINT: "http://dev2.tail8108.ts.net:4318", VITE_OTEL_EXPORTER_WEBSOCKET_ENDPOINT: "wss://dev2.tail8108.ts.net:44318" }, tG = (A) => {
|
|
78095
78095
|
if (typeof process < "u" && process.env !== void 0)
|
|
78096
78096
|
return process.env[A];
|
|
78097
78097
|
if (hoA !== void 0)
|
|
@@ -82597,7 +82597,7 @@ const Fh = ({
|
|
|
82597
82597
|
tables: [...n.values()].map((i) => i.sqliteDef.ast)
|
|
82598
82598
|
});
|
|
82599
82599
|
return { sqlite: { tables: n, migrations: A.migrations ?? { strategy: "auto" }, hash: g }, materializers: t };
|
|
82600
|
-
}, Oo = "0.4.0-dev.
|
|
82600
|
+
}, Oo = "0.4.0-dev.5", LoA = 6, M$ = He({
|
|
82601
82601
|
isConnected: Rr,
|
|
82602
82602
|
timestampMs: gt,
|
|
82603
82603
|
/** Whether the network status devtools latch is closed. Used to simulate network disconnection. */
|
|
@@ -104597,7 +104597,7 @@ function wUA(A, e) {
|
|
|
104597
104597
|
const [n, ...t] = e;
|
|
104598
104598
|
return t[0] === -1 ? A[n] : wUA(A[n].subGroups ?? [], t);
|
|
104599
104599
|
}
|
|
104600
|
-
const _he = U.lazy(async () => await import("./data-grid-overlay-editor-
|
|
104600
|
+
const _he = U.lazy(async () => await import("./data-grid-overlay-editor-DmKXKLFX.js"));
|
|
104601
104601
|
let Jhe = 0;
|
|
104602
104602
|
function Khe(A) {
|
|
104603
104603
|
return Lle(GIA(GIA(A).filter((e) => e.span !== void 0).map((e) => N0((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
@@ -106576,7 +106576,7 @@ function Qfe(A, e, n) {
|
|
|
106576
106576
|
}
|
|
106577
106577
|
t.fillStyle = r.textMedium, t.fillText(e, f + a + r.cellHorizontalPadding + 0.5, B + l / 2 + kh(t, r)), t.beginPath();
|
|
106578
106578
|
}
|
|
106579
|
-
const Efe = U.lazy(async () => await import("./number-overlay-editor-
|
|
106579
|
+
const Efe = U.lazy(async () => await import("./number-overlay-editor-BBlyY6Ih.js")), cfe = {
|
|
106580
106580
|
getAccessibilityString: (A) => A.data?.toString() ?? "",
|
|
106581
106581
|
kind: An.Number,
|
|
106582
106582
|
needsHover: !1,
|
|
@@ -111060,7 +111060,7 @@ const Dwe = (A) => {
|
|
|
111060
111060
|
}), QNA = () => {
|
|
111061
111061
|
const [A, e] = W.useState(() => (n) => n);
|
|
111062
111062
|
return W.useEffect(() => {
|
|
111063
|
-
Promise.all([import("./mod-2ScWT2NO.js"), import("./index-
|
|
111063
|
+
Promise.all([import("./mod-2ScWT2NO.js"), import("./index-mcs6CxYf.js").then((n) => n.i)]).then(([{ createFromBuffer: n }, { getBuffer: t }]) => {
|
|
111064
111064
|
const g = n(t());
|
|
111065
111065
|
e(() => (i) => g.formatText({ filePath: "some.sql", fileText: i }));
|
|
111066
111066
|
}).catch((n) => {
|
|
@@ -119289,7 +119289,7 @@ const kb = {}, Ha = () => typeof process < "u" && process.env !== void 0 ? proce
|
|
|
119289
119289
|
if (console.error(A, ...g), Ha())
|
|
119290
119290
|
debugger;
|
|
119291
119291
|
throw new Error(\`This should never happen: \${A}\`);
|
|
119292
|
-
}, y0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_GIT_HASH: "
|
|
119292
|
+
}, y0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_GIT_HASH: "b6f6579a", VITE_GRAFANA_ENDPOINT: "http://dev2.tail8108.ts.net:30003", VITE_OTEL: "1", VITE_OTEL_EXPORTER_OTLP_ENDPOINT: "http://dev2.tail8108.ts.net:4318", VITE_OTEL_EXPORTER_WEBSOCKET_ENDPOINT: "wss://dev2.tail8108.ts.net:44318" }, Si = (A) => {
|
|
119293
119293
|
if (typeof process < "u" && process.env !== void 0)
|
|
119294
119294
|
return process.env[A];
|
|
119295
119295
|
if (y0 !== void 0)
|
|
@@ -136856,7 +136856,7 @@ const iB = ({
|
|
|
136856
136856
|
tables: [...I.values()].map((B) => B.sqliteDef.ast)
|
|
136857
136857
|
});
|
|
136858
136858
|
return { sqlite: { tables: I, migrations: A.migrations ?? { strategy: "auto" }, hash: C }, materializers: Q };
|
|
136859
|
-
}, gh = "0.4.0-dev.
|
|
136859
|
+
}, gh = "0.4.0-dev.5", Sf = 6, em = gA({
|
|
136860
136860
|
isConnected: KI,
|
|
136861
136861
|
timestampMs: Ig,
|
|
136862
136862
|
/** Whether the network status devtools latch is closed. Used to simulate network disconnection. */
|