@banou/stub 0.0.48 → 0.0.50
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/build/assets/{index-IQgJldX5.js → index-oKTwCBqt.js} +269 -269
- package/build/assets/{lib-worker-BvP1hZ3q.js → lib-worker-B4bhXBRt.js} +1 -1
- package/build/assets/{lib-worker-ZXJfhVkF.js → lib-worker-ClrG_6Et.js} +38 -10
- package/build/assets/lib-worker-index-CoM3SF4K.js +2453 -0
- package/build/assets/{main-DtRPyu8m.js → main-D5AZX5ak.js} +208 -108
- package/build/assets/{worker-HiPGVuwy.js → worker-BqPITUlQ.js} +1 -1
- package/build/assets/worker-NHcxxJEX.js +1 -0
- package/build/index.html +2 -2
- package/build/index.js +5533 -5231
- package/fkn.json +1 -1
- package/package.json +1 -1
- package/build/assets/lib-worker-index-BCIwHeuI.js +0 -2453
- package/build/assets/worker-B9CHWfL2.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./lib-worker-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./lib-worker-ClrG_6Et.js";
|
|
2
2
|
export { f as exportAnswers, s as exportAsks, u as exportStore, i as graphCounts, e as handleRequest, c as registerRemoteSource, d as remotePicker, t as remotePlayer, a as selectRemoteRelease, p as traceAnswer, n as traceGraph, r as trackerCheck, l as trackerFocused, o as unregisterRemoteSource };
|
|
@@ -10717,7 +10717,7 @@ typeof window < "u" && _(() => {
|
|
|
10717
10717
|
//#endregion
|
|
10718
10718
|
//#region src/worker/index.ts?worker
|
|
10719
10719
|
function Sm(e) {
|
|
10720
|
-
return new Worker(new URL("lib-worker-index-
|
|
10720
|
+
return new Worker(new URL("lib-worker-index-CoM3SF4K.js", import.meta.url).href, {
|
|
10721
10721
|
type: "module",
|
|
10722
10722
|
name: e?.name
|
|
10723
10723
|
});
|
|
@@ -11097,21 +11097,49 @@ var Cm = (e, t) => yu.fetch(e, t), wm = "banou26/stub", Tm = "season-seed", Em =
|
|
|
11097
11097
|
frames: zh,
|
|
11098
11098
|
connections: Bh
|
|
11099
11099
|
}), t === "cloud" && (await Qm(Uh[e]), Nh.record(e, "signed-out"));
|
|
11100
|
-
}, qh = async (e) => e === "anilist" ? kh(await zh.use(e, (e) => e.graphql({ query: Oh }))) : Ah(await zh.use(e, (e) => e.whoami({}))), Jh = new
|
|
11101
|
-
|
|
11100
|
+
}, qh = async (e) => e === "anilist" ? kh(await zh.use(e, (e) => e.graphql({ query: Oh }))) : Ah(await zh.use(e, (e) => e.whoami({}))), Jh = "stub.sources.disabled", Yh = /* @__PURE__ */ new Set(), Xh = () => {
|
|
11101
|
+
try {
|
|
11102
|
+
let e = JSON.parse(globalThis.localStorage.getItem("stub.sources.disabled") ?? "[]");
|
|
11103
|
+
return Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
11104
|
+
} catch {
|
|
11105
|
+
return [];
|
|
11106
|
+
}
|
|
11107
|
+
}, Zh = (e, t) => {
|
|
11108
|
+
let n = new Set(Xh());
|
|
11109
|
+
t ? n.delete(e) : n.add(e);
|
|
11110
|
+
try {
|
|
11111
|
+
n.size ? globalThis.localStorage.setItem(Jh, JSON.stringify([...n])) : globalThis.localStorage.removeItem(Jh);
|
|
11112
|
+
} catch {}
|
|
11113
|
+
for (let e of Yh) e();
|
|
11114
|
+
}, Qh = () => {
|
|
11115
|
+
try {
|
|
11116
|
+
globalThis.localStorage.removeItem(Jh);
|
|
11117
|
+
} catch {}
|
|
11118
|
+
for (let e of Yh) e();
|
|
11119
|
+
}, $h = (e) => {
|
|
11120
|
+
let t = (t) => {
|
|
11121
|
+
(t.key === "stub.sources.disabled" || t.key === null) && e();
|
|
11122
|
+
};
|
|
11123
|
+
return Yh.add(e), globalThis.addEventListener?.("storage", t), () => {
|
|
11124
|
+
Yh.delete(e), globalThis.removeEventListener?.("storage", t);
|
|
11125
|
+
};
|
|
11126
|
+
}, eg = new Sm();
|
|
11127
|
+
fm(eg).catch((e) => console.warn("tracking: FKN relay", e)), i({ fetch: (e, t) => Wm(location.href, e) ? new Response(null, {
|
|
11102
11128
|
status: 404,
|
|
11103
11129
|
statusText: "the season seed is switched off for this page"
|
|
11104
11130
|
}) : Cm(e, t) }, {
|
|
11105
|
-
transport:
|
|
11131
|
+
transport: eg,
|
|
11106
11132
|
key: "fetch"
|
|
11107
11133
|
}), i(Vh, {
|
|
11108
|
-
transport:
|
|
11134
|
+
transport: eg,
|
|
11109
11135
|
key: "sessions"
|
|
11110
11136
|
});
|
|
11111
|
-
var { handleRequest:
|
|
11112
|
-
transport:
|
|
11137
|
+
var { handleRequest: tg, registerRemoteSource: ng, unregisterRemoteSource: rg, remotePicker: ig, remotePlayer: ag, selectRemoteRelease: og, exportStore: sg, exportAnswers: cg, exportAsks: lg, graphCounts: ug, traceGraph: dg, traceAnswer: fg, setGraphEnabled: pg, setReadStore: mg, setDisabledSources: hg, trackerCheck: gg, trackerFocused: _g } = await i({}, {
|
|
11138
|
+
transport: eg,
|
|
11113
11139
|
key: "yoga"
|
|
11114
|
-
}),
|
|
11115
|
-
Rm(location.href) ?
|
|
11140
|
+
}), vg = new URLSearchParams(location.search);
|
|
11141
|
+
Rm(location.href) ? pg(vg.has("graph")) : await mg("graph"), await hg(Xh()), $h(() => {
|
|
11142
|
+
hg(Xh());
|
|
11143
|
+
});
|
|
11116
11144
|
//#endregion
|
|
11117
|
-
export {
|
|
11145
|
+
export { rh as A, op as B, Hh as C, Ph as D, Ih as E, Mm as F, Ya as G, go as H, Fm as I, ro as K, Bm as L, Qm as M, Zm as N, Nh as O, Nm as P, lm as R, Kh as S, jh as T, _o as U, Eu as V, io as W, Zh as _, tg as a, qh as b, ag as c, dg as d, gg as f, Xh as g, Jh as h, ug as i, $m as j, dh as k, og as l, rg as m, lg as n, ng as o, _g as p, sg as r, ig as s, cg as t, fg as u, Qh as v, Gh as w, Wh as x, $h as y, Jp as z };
|