jaml-ui 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{JimboSwipeDeck-eog6nv7F.js → JimboSwipeDeck-DUwjKBbo.js} +4 -4
- package/dist/chunks/{JimboSwipeDeck-eog6nv7F.js.map → JimboSwipeDeck-DUwjKBbo.js.map} +1 -1
- package/dist/components/DeckStakePicker.d.ts +2 -1
- package/dist/index.js +148 -147
- package/dist/index.js.map +1 -1
- package/dist/ui/JimboBackground.d.ts +6 -1
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +136 -136
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var Cy = Object.defineProperty;
|
|
3
3
|
var Ay = (t, e, n) => e in t ? Cy(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
4
4
|
var Jt = (t, e, n) => Ay(t, typeof e != "symbol" ? e + "" : e, n);
|
|
5
|
-
import { d as N, f as Bd, c as it, X as I, y as wt, T as Re, R as Ty, L as
|
|
6
|
-
import { A as AN, F as TN, b as ON, i as _N, k as MN, m as EN, r as NN, u as PN, w as $N, x as IN, M as RN, Q as jN, V as LN, Y as DN, _ as zN, $ as BN, a0 as JN, a1 as FN, a2 as WN, a3 as HN, a4 as VN, a5 as ZN, a6 as UN, a7 as KN, a8 as GN, a9 as qN, aa as YN, ab as XN, ac as QN, ad as eP, ae as tP, af as nP, ag as iP, ah as rP, ai as sP, aj as oP, ak as aP, al as lP, am as cP } from "./chunks/JimboSwipeDeck-
|
|
5
|
+
import { d as N, f as Bd, c as it, X as I, y as wt, T as Re, R as Ty, L as ae, N as Ir, O as Oy, ao as to, o as sn, s as _y, ap as Jd, q as $t, e as $e, aq as Fd, ar as My, as as Ey, Z as no, at as Wd, l as Ny, au as Py, av as $y, aw as Iy, z as Dc, J as zc, h as _e, S as Hi, an as Xi, B as Hd, K as Ry, D as Sa, I as Vd, C as Zd, G as Ud, E as jy, H as Ly, t as Kd, W as Gd, v as qd, ax as Dy, p as Mo, n as zy, g as By, j as Jy, U as Yd, P as Bc, a as Fy } from "./chunks/JimboSwipeDeck-DUwjKBbo.js";
|
|
6
|
+
import { A as AN, F as TN, b as ON, i as _N, k as MN, m as EN, r as NN, u as PN, w as $N, x as IN, M as RN, Q as jN, V as LN, Y as DN, _ as zN, $ as BN, a0 as JN, a1 as FN, a2 as WN, a3 as HN, a4 as VN, a5 as ZN, a6 as UN, a7 as KN, a8 as GN, a9 as qN, aa as YN, ab as XN, ac as QN, ad as eP, ae as tP, af as nP, ag as iP, ah as rP, ai as sP, aj as oP, ak as aP, al as lP, am as cP } from "./chunks/JimboSwipeDeck-DUwjKBbo.js";
|
|
7
7
|
import { jsxs as A, jsx as b, Fragment as Xd } from "react/jsx-runtime";
|
|
8
8
|
import pn, { useRef as ke, useState as V, useEffect as gt, useCallback as me, useMemo as de, useSyncExternalStore as Wy, useContext as Rr, createContext as jr } from "react";
|
|
9
9
|
import { SPRITE_SHEETS as X, BOSSES as $l, JOKERS as Ei, JOKER_FACES as Hy, TAROTS_AND_PLANETS as Ni, CONSUMABLE_FACES as Vy, ENHANCER_MAP as Qd, SUIT_MAP as Il, RANK_MAP as Rl, EDITION_MAP as ef, STICKER_MAP as Eo, SEAL_MAP as tf, TAGS as jl, VOUCHERS as Sr, BOOSTER_PACKS as nf } from "./sprites.js";
|
|
@@ -533,7 +533,7 @@ function of({
|
|
|
533
533
|
canNext: s < r
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
/* @__PURE__ */ A(
|
|
536
|
+
/* @__PURE__ */ A(ae, { gap: "md", align: "center", children: [
|
|
537
537
|
/* @__PURE__ */ b(Ir, { value: t.seed }),
|
|
538
538
|
/* @__PURE__ */ b(I, { size: "xs", tone: "gold", children: t.score }),
|
|
539
539
|
e !== void 0 && /* @__PURE__ */ b(I, { size: "xs", tone: "grey", children: h0(e) }),
|
|
@@ -552,7 +552,7 @@ function of({
|
|
|
552
552
|
] }),
|
|
553
553
|
/* @__PURE__ */ A(Re, { gap: "xs", align: "center", children: [
|
|
554
554
|
/* @__PURE__ */ b(I, { size: "micro", tone: "grey", children: "Tags" }),
|
|
555
|
-
/* @__PURE__ */ A(
|
|
555
|
+
/* @__PURE__ */ A(ae, { gap: "sm", align: "end", children: [
|
|
556
556
|
/* @__PURE__ */ A(Re, { gap: "xs", align: "center", children: [
|
|
557
557
|
/* @__PURE__ */ b(Wc, { tagName: l, scale: 0.55 }),
|
|
558
558
|
/* @__PURE__ */ b(I, { size: "micro", className: "j-text-center", children: l })
|
|
@@ -831,8 +831,8 @@ function uf({
|
|
|
831
831
|
].filter(Boolean).join(" "),
|
|
832
832
|
style: a,
|
|
833
833
|
children: [
|
|
834
|
-
/* @__PURE__ */ A(
|
|
835
|
-
/* @__PURE__ */ A(
|
|
834
|
+
/* @__PURE__ */ A(ae, { gap: "sm", align: "center", justify: "between", className: "j-jamlyzer-seed-card__header", children: [
|
|
835
|
+
/* @__PURE__ */ A(ae, { gap: "xs", align: "center", children: [
|
|
836
836
|
r && /* @__PURE__ */ b(
|
|
837
837
|
N,
|
|
838
838
|
{
|
|
@@ -854,7 +854,7 @@ function uf({
|
|
|
854
854
|
),
|
|
855
855
|
/* @__PURE__ */ b(Ir, { value: t.seed })
|
|
856
856
|
] }),
|
|
857
|
-
/* @__PURE__ */ b(
|
|
857
|
+
/* @__PURE__ */ b(ae, { gap: "xs", align: "center", children: /* @__PURE__ */ A(
|
|
858
858
|
it,
|
|
859
859
|
{
|
|
860
860
|
size: "sm",
|
|
@@ -867,7 +867,7 @@ function uf({
|
|
|
867
867
|
}
|
|
868
868
|
) })
|
|
869
869
|
] }),
|
|
870
|
-
l.length > 0 && /* @__PURE__ */ b(
|
|
870
|
+
l.length > 0 && /* @__PURE__ */ b(ae, { wrap: !0, gap: "xs", align: "center", className: "j-jamlyzer-seed-card__milestones", children: l.map((u, d) => /* @__PURE__ */ A(it, { size: "sm", tone: u.tone, children: [
|
|
871
871
|
"A",
|
|
872
872
|
u.ante,
|
|
873
873
|
": ",
|
|
@@ -957,12 +957,12 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
957
957
|
return Fe - Q;
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
|
-
}, [F, d, p, g, v]), pe = Math.max(1, Math.ceil(te.length / Po)), ye = Math.min(w, pe - 1),
|
|
960
|
+
}, [F, d, p, g, v]), pe = Math.max(1, Math.ceil(te.length / Po)), ye = Math.min(w, pe - 1), he = de(
|
|
961
961
|
() => te.slice(ye * Po, (ye + 1) * Po),
|
|
962
962
|
[te, ye]
|
|
963
963
|
), H = de(
|
|
964
|
-
() => F.find((G) => G.seed === S) ??
|
|
965
|
-
[F, S,
|
|
964
|
+
() => F.find((G) => G.seed === S) ?? he[0] ?? F[0],
|
|
965
|
+
[F, S, he]
|
|
966
966
|
), ee = de(
|
|
967
967
|
() => Math.max(0, ...F.map((G) => G.score ?? 0)),
|
|
968
968
|
[F]
|
|
@@ -997,16 +997,16 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
997
997
|
typeof navigator < "u" && ((U = navigator.clipboard) != null && U.writeText) && (await navigator.clipboard.writeText(JSON.stringify(G, null, 2)), _(!0), setTimeout(() => _(!1), 2e3));
|
|
998
998
|
} catch {
|
|
999
999
|
}
|
|
1000
|
-
},
|
|
1000
|
+
}, ue = ["j-jamlyzer", l].filter(Boolean).join(" ");
|
|
1001
1001
|
if (h.status === "loading")
|
|
1002
|
-
return /* @__PURE__ */ b(Re, { gap: "sm", align: "stretch", className:
|
|
1002
|
+
return /* @__PURE__ */ b(Re, { gap: "sm", align: "stretch", className: ue, style: c, children: /* @__PURE__ */ b(wt, { className: "j-jamlyzer__panel j-jamlyzer__panel--hint", children: /* @__PURE__ */ b(I, { size: "sm", tone: "white", className: "j-text-center", children: "Analyzing candidate seeds with Motely WASM…" }) }) });
|
|
1003
1003
|
if (h.status === "error")
|
|
1004
|
-
return /* @__PURE__ */ b(Re, { gap: "sm", align: "stretch", className:
|
|
1004
|
+
return /* @__PURE__ */ b(Re, { gap: "sm", align: "stretch", className: ue, style: c, children: /* @__PURE__ */ b(wt, { className: "j-jamlyzer__panel j-jamlyzer__panel--hint", children: /* @__PURE__ */ b(I, { size: "xs", tone: "red", className: "j-text-center", children: h.message }) }) });
|
|
1005
1005
|
const { elapsedMs: ze } = h;
|
|
1006
|
-
return /* @__PURE__ */ A(Re, { gap: "md", align: "stretch", className:
|
|
1006
|
+
return /* @__PURE__ */ A(Re, { gap: "md", align: "stretch", className: ue, style: c, children: [
|
|
1007
1007
|
/* @__PURE__ */ A($t, { className: "j-jamlyzer-header", children: [
|
|
1008
|
-
/* @__PURE__ */ A(
|
|
1009
|
-
/* @__PURE__ */ A(
|
|
1008
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "md", align: "center", justify: "between", children: [
|
|
1009
|
+
/* @__PURE__ */ A(ae, { gap: "sm", align: "center", children: [
|
|
1010
1010
|
/* @__PURE__ */ A(it, { size: "md", tone: "orange", children: [
|
|
1011
1011
|
F.length.toLocaleString(),
|
|
1012
1012
|
" Seeds"
|
|
@@ -1024,7 +1024,7 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
1024
1024
|
" ms"
|
|
1025
1025
|
] })
|
|
1026
1026
|
] }),
|
|
1027
|
-
/* @__PURE__ */ b(
|
|
1027
|
+
/* @__PURE__ */ b(ae, { gap: "xs", align: "center", children: /* @__PURE__ */ A(
|
|
1028
1028
|
$e,
|
|
1029
1029
|
{
|
|
1030
1030
|
size: "xs",
|
|
@@ -1037,7 +1037,7 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
1037
1037
|
}
|
|
1038
1038
|
) })
|
|
1039
1039
|
] }),
|
|
1040
|
-
/* @__PURE__ */ A(
|
|
1040
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "sm", align: "center", justify: "between", className: "j-jamlyzer-toolbar", children: [
|
|
1041
1041
|
/* @__PURE__ */ A(N, { className: "j-jamlyzer-search-wrap", children: [
|
|
1042
1042
|
/* @__PURE__ */ b(Ey, { className: "j-jamlyzer-search-icon" }),
|
|
1043
1043
|
/* @__PURE__ */ b(
|
|
@@ -1062,7 +1062,7 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
1062
1062
|
}
|
|
1063
1063
|
)
|
|
1064
1064
|
] }),
|
|
1065
|
-
/* @__PURE__ */ A(
|
|
1065
|
+
/* @__PURE__ */ A(ae, { gap: "xs", align: "center", className: "j-jamlyzer-filter-chips", children: [
|
|
1066
1066
|
/* @__PURE__ */ A(
|
|
1067
1067
|
$e,
|
|
1068
1068
|
{
|
|
@@ -1113,7 +1113,7 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
1113
1113
|
}
|
|
1114
1114
|
)
|
|
1115
1115
|
] }),
|
|
1116
|
-
/* @__PURE__ */ A(
|
|
1116
|
+
/* @__PURE__ */ A(ae, { gap: "xs", align: "center", children: [
|
|
1117
1117
|
/* @__PURE__ */ b(I, { size: "xs", tone: "grey", children: "Sort:" }),
|
|
1118
1118
|
/* @__PURE__ */ b(
|
|
1119
1119
|
$e,
|
|
@@ -1150,14 +1150,14 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
1150
1150
|
] }),
|
|
1151
1151
|
/* @__PURE__ */ A(N, { className: "j-jamlyzer-split", children: [
|
|
1152
1152
|
/* @__PURE__ */ A(N, { className: "j-jamlyzer-candidate-pane", children: [
|
|
1153
|
-
/* @__PURE__ */ b($t, { className: "j-jamlyzer-candidate-header", children: /* @__PURE__ */ A(
|
|
1153
|
+
/* @__PURE__ */ b($t, { className: "j-jamlyzer-candidate-header", children: /* @__PURE__ */ A(ae, { gap: "xs", align: "center", justify: "between", children: [
|
|
1154
1154
|
/* @__PURE__ */ A(I, { size: "xs", tone: "gold", children: [
|
|
1155
1155
|
"Showing ",
|
|
1156
1156
|
te.length.toLocaleString(),
|
|
1157
1157
|
" candidate",
|
|
1158
1158
|
te.length === 1 ? "" : "s"
|
|
1159
1159
|
] }),
|
|
1160
|
-
pe > 1 && /* @__PURE__ */ A(
|
|
1160
|
+
pe > 1 && /* @__PURE__ */ A(ae, { gap: "xs", align: "center", children: [
|
|
1161
1161
|
/* @__PURE__ */ b(
|
|
1162
1162
|
$e,
|
|
1163
1163
|
{
|
|
@@ -1185,7 +1185,7 @@ ${e.map((Q) => typeof Q == "string" ? Q : Q.seed).map((Q) => ` - ${Q}`).join(`
|
|
|
1185
1185
|
)
|
|
1186
1186
|
] })
|
|
1187
1187
|
] }) }),
|
|
1188
|
-
/* @__PURE__ */ b(N, { className: "j-jamlyzer-candidate-list", children:
|
|
1188
|
+
/* @__PURE__ */ b(N, { className: "j-jamlyzer-candidate-list", children: he.length === 0 ? /* @__PURE__ */ b($t, { className: "j-text-center", children: /* @__PURE__ */ b(I, { size: "xs", tone: "grey", children: "No candidate seeds match your search filters." }) }) : he.map((G) => /* @__PURE__ */ b(
|
|
1189
1189
|
uf,
|
|
1190
1190
|
{
|
|
1191
1191
|
result: G,
|
|
@@ -1259,7 +1259,7 @@ function Uc({
|
|
|
1259
1259
|
")"
|
|
1260
1260
|
] })
|
|
1261
1261
|
] }),
|
|
1262
|
-
/* @__PURE__ */ b(
|
|
1262
|
+
/* @__PURE__ */ b(ae, { wrap: !0, gap: "xs", align: "center", children: e.length > 0 ? e.map((o) => /* @__PURE__ */ A(it, { tone: s, size: "sm", children: [
|
|
1263
1263
|
"Ante ",
|
|
1264
1264
|
o
|
|
1265
1265
|
] }, o)) : /* @__PURE__ */ b(I, { size: "micro", tone: "grey", children: "no hits" }) })
|
|
@@ -1279,14 +1279,14 @@ function ZE({
|
|
|
1279
1279
|
[t, m, o]
|
|
1280
1280
|
);
|
|
1281
1281
|
return t.length === 0 ? /* @__PURE__ */ b(wt, { body: !0, children: /* @__PURE__ */ b(I, { tone: "grey", children: "No seeds to analyze." }) }) : /* @__PURE__ */ A(wt, { title: "Bulk seed analysis", tone: "gold", children: [
|
|
1282
|
-
/* @__PURE__ */ A(
|
|
1282
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "md", align: "center", justify: "between", children: [
|
|
1283
1283
|
/* @__PURE__ */ A(I, { tone: "grey", children: [
|
|
1284
1284
|
t.length.toLocaleString(),
|
|
1285
1285
|
" seed",
|
|
1286
1286
|
t.length === 1 ? "" : "s",
|
|
1287
1287
|
" analyzed"
|
|
1288
1288
|
] }),
|
|
1289
|
-
p > 1 && /* @__PURE__ */ A(
|
|
1289
|
+
p > 1 && /* @__PURE__ */ A(ae, { gap: "xs", align: "center", children: [
|
|
1290
1290
|
/* @__PURE__ */ b(
|
|
1291
1291
|
$e,
|
|
1292
1292
|
{
|
|
@@ -1318,7 +1318,7 @@ function ZE({
|
|
|
1318
1318
|
/* @__PURE__ */ b(Re, { gap: "sm", align: "stretch", children: g.map((y, v) => {
|
|
1319
1319
|
const k = m * o + v, S = T0(y, u), x = a === y.seed, w = i && k < i.length ? i[k] : void 0;
|
|
1320
1320
|
return /* @__PURE__ */ A(wt, { body: !0, children: [
|
|
1321
|
-
/* @__PURE__ */ A(
|
|
1321
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "md", align: "center", children: [
|
|
1322
1322
|
/* @__PURE__ */ b(Ir, { value: y.seed }),
|
|
1323
1323
|
/* @__PURE__ */ A(I, { tone: "grey", children: [
|
|
1324
1324
|
"Score: ",
|
|
@@ -1334,7 +1334,7 @@ function ZE({
|
|
|
1334
1334
|
}
|
|
1335
1335
|
)
|
|
1336
1336
|
] }),
|
|
1337
|
-
d.length > 0 && /* @__PURE__ */ b(
|
|
1337
|
+
d.length > 0 && /* @__PURE__ */ b(ae, { wrap: !0, gap: "md", align: "start", children: d.map((C, T) => {
|
|
1338
1338
|
const _ = w && T < w.length ? w[T] : void 0;
|
|
1339
1339
|
return /* @__PURE__ */ b(
|
|
1340
1340
|
Uc,
|
|
@@ -1346,7 +1346,7 @@ function ZE({
|
|
|
1346
1346
|
T
|
|
1347
1347
|
);
|
|
1348
1348
|
}) }),
|
|
1349
|
-
f.length > 0 && /* @__PURE__ */ b(
|
|
1349
|
+
f.length > 0 && /* @__PURE__ */ b(ae, { wrap: !0, gap: "md", align: "start", children: f.map((C, T) => /* @__PURE__ */ b(
|
|
1350
1350
|
Uc,
|
|
1351
1351
|
{
|
|
1352
1352
|
clause: C,
|
|
@@ -1472,7 +1472,7 @@ function UE({
|
|
|
1472
1472
|
}, [i.status, h]);
|
|
1473
1473
|
const { tape: u, rollOffset: d, pages: f, status: p, error: m } = i, g = u.luckyMoney.length;
|
|
1474
1474
|
return /* @__PURE__ */ A(wt, { title: "PRNG tape", tone: "gold", children: [
|
|
1475
|
-
/* @__PURE__ */ A(
|
|
1475
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "sm", align: "center", children: [
|
|
1476
1476
|
/* @__PURE__ */ A(I, { size: "xs", tone: "grey", children: [
|
|
1477
1477
|
"roll offset ",
|
|
1478
1478
|
/* @__PURE__ */ b("span", { style: { fontFamily: "var(--j-font-code)" }, children: d })
|
|
@@ -1497,7 +1497,7 @@ function UE({
|
|
|
1497
1497
|
if (!v.length) return null;
|
|
1498
1498
|
const k = y.kind === "bool" ? v.filter(Boolean).length : v.filter((x) => x !== 0).length, S = v.length ? (k / v.length * 100).toFixed(1) : "0.0";
|
|
1499
1499
|
return /* @__PURE__ */ A($t, { className: "j-stack j-stack--gap-xs", children: [
|
|
1500
|
-
/* @__PURE__ */ A(
|
|
1500
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "xs", align: "center", children: [
|
|
1501
1501
|
/* @__PURE__ */ b(I, { size: "xs", tone: "grey", children: y.label }),
|
|
1502
1502
|
y.fresh && /* @__PURE__ */ b(it, { tone: "orange", size: "sm", children: "never rendered before" }),
|
|
1503
1503
|
/* @__PURE__ */ A(I, { size: "micro", tone: "grey", children: [
|
|
@@ -1563,7 +1563,7 @@ function Zn(t) {
|
|
|
1563
1563
|
return t.toUpperCase().replace(/0/g, "O").replace(/[^A-Z0-9]/g, "").slice(0, 8);
|
|
1564
1564
|
}
|
|
1565
1565
|
const E0 = {
|
|
1566
|
-
normal: "",
|
|
1566
|
+
normal: "j-seed-input--normal",
|
|
1567
1567
|
dark: "j-seed-input--dark",
|
|
1568
1568
|
alt: "j-seed-input--alt"
|
|
1569
1569
|
}, N0 = pn.forwardRef(function({
|
|
@@ -1591,7 +1591,7 @@ const E0 = {
|
|
|
1591
1591
|
k(M), n == null || n(M);
|
|
1592
1592
|
};
|
|
1593
1593
|
return /* @__PURE__ */ A(N, { className: `j-seed-input ${E0[s]} ${o ?? ""}`.trim(), style: a, children: [
|
|
1594
|
-
r ? /* @__PURE__ */ b(I, { size: "xs", tone: "grey", children: r }) : null,
|
|
1594
|
+
typeof r == "string" ? /* @__PURE__ */ b(I, { size: "xs", tone: "grey", children: r }) : r ?? null,
|
|
1595
1595
|
/* @__PURE__ */ b(
|
|
1596
1596
|
N,
|
|
1597
1597
|
{
|
|
@@ -1905,9 +1905,9 @@ function YE({
|
|
|
1905
1905
|
className: ["j-daily-ritual", o].filter(Boolean).join(" "),
|
|
1906
1906
|
style: a,
|
|
1907
1907
|
children: /* @__PURE__ */ A(Re, { gap: "md", align: "stretch", children: [
|
|
1908
|
-
/* @__PURE__ */ b($t, { className: "j-daily-ritual__hero", children: /* @__PURE__ */ A(
|
|
1908
|
+
/* @__PURE__ */ b($t, { className: "j-daily-ritual__hero", children: /* @__PURE__ */ A(ae, { wrap: !0, gap: "md", align: "center", justify: "between", children: [
|
|
1909
1909
|
/* @__PURE__ */ A(Re, { gap: "xs", align: "start", children: [
|
|
1910
|
-
/* @__PURE__ */ A(
|
|
1910
|
+
/* @__PURE__ */ A(ae, { gap: "xs", align: "center", children: [
|
|
1911
1911
|
n != null && /* @__PURE__ */ A(it, { size: "sm", tone: "orange", children: [
|
|
1912
1912
|
"Day #",
|
|
1913
1913
|
n
|
|
@@ -1918,7 +1918,7 @@ function YE({
|
|
|
1918
1918
|
/* @__PURE__ */ b(I, { size: "lg", tone: "gold", className: "j-daily-ritual__title", children: l.title }),
|
|
1919
1919
|
l.description && /* @__PURE__ */ b(I, { size: "xs", tone: "white", children: l.description })
|
|
1920
1920
|
] }),
|
|
1921
|
-
/* @__PURE__ */ b(N, { className: "j-daily-ritual__cards", children: /* @__PURE__ */ A(
|
|
1921
|
+
/* @__PURE__ */ b(N, { className: "j-daily-ritual__cards", children: /* @__PURE__ */ A(ae, { gap: "sm", align: "center", children: [
|
|
1922
1922
|
l.targetJoker && /* @__PURE__ */ b(N, { className: "j-daily-ritual__card-wrap", children: /* @__PURE__ */ b(
|
|
1923
1923
|
Ll,
|
|
1924
1924
|
{
|
|
@@ -1936,7 +1936,7 @@ function YE({
|
|
|
1936
1936
|
) })
|
|
1937
1937
|
] }) })
|
|
1938
1938
|
] }) }),
|
|
1939
|
-
(l.flavor || l.hint) && /* @__PURE__ */ A(
|
|
1939
|
+
(l.flavor || l.hint) && /* @__PURE__ */ A(ae, { wrap: !0, gap: "md", align: "stretch", children: [
|
|
1940
1940
|
l.flavor && /* @__PURE__ */ A($t, { className: "j-daily-ritual__flavor-box", children: [
|
|
1941
1941
|
/* @__PURE__ */ b(I, { size: "xs", tone: "grey", className: "j-daily-ritual__flavor-label", children: "Flavor:" }),
|
|
1942
1942
|
/* @__PURE__ */ b(I, { size: "xs", tone: "white", children: l.flavor })
|
|
@@ -1946,8 +1946,8 @@ function YE({
|
|
|
1946
1946
|
/* @__PURE__ */ b(I, { size: "xs", tone: "white", children: l.hint })
|
|
1947
1947
|
] })
|
|
1948
1948
|
] }),
|
|
1949
|
-
/* @__PURE__ */ A(
|
|
1950
|
-
/* @__PURE__ */ A(
|
|
1949
|
+
/* @__PURE__ */ A(ae, { wrap: !0, gap: "sm", align: "center", justify: "between", children: [
|
|
1950
|
+
/* @__PURE__ */ A(ae, { gap: "xs", align: "center", children: [
|
|
1951
1951
|
s && /* @__PURE__ */ A(
|
|
1952
1952
|
$e,
|
|
1953
1953
|
{
|
|
@@ -3816,9 +3816,10 @@ function nN({
|
|
|
3816
3816
|
stake: e,
|
|
3817
3817
|
onDeckChange: n,
|
|
3818
3818
|
onStakeChange: i,
|
|
3819
|
-
|
|
3819
|
+
layout: r = "stack",
|
|
3820
|
+
className: s = ""
|
|
3820
3821
|
}) {
|
|
3821
|
-
return /* @__PURE__ */ A(Re, { gap: "md", className:
|
|
3822
|
+
return /* @__PURE__ */ A(r === "row" ? ae : Re, { gap: "md", className: s, align: "center", justify: "center", children: [
|
|
3822
3823
|
/* @__PURE__ */ b(
|
|
3823
3824
|
Dc,
|
|
3824
3825
|
{
|
|
@@ -4888,7 +4889,7 @@ function Ff(t) {
|
|
|
4888
4889
|
function mh(t) {
|
|
4889
4890
|
return t < 65536 ? 1 : 2;
|
|
4890
4891
|
}
|
|
4891
|
-
class
|
|
4892
|
+
class ce {
|
|
4892
4893
|
/**
|
|
4893
4894
|
Get the line description around the given position.
|
|
4894
4895
|
*/
|
|
@@ -5020,10 +5021,10 @@ class le {
|
|
|
5020
5021
|
static of(e) {
|
|
5021
5022
|
if (e.length == 0)
|
|
5022
5023
|
throw new RangeError("A document must have at least one line");
|
|
5023
|
-
return e.length == 1 && !e[0] ?
|
|
5024
|
+
return e.length == 1 && !e[0] ? ce.empty : e.length <= 32 ? new Ee(e) : Ut.from(Ee.split(e, []));
|
|
5024
5025
|
}
|
|
5025
5026
|
}
|
|
5026
|
-
class Ee extends
|
|
5027
|
+
class Ee extends ce {
|
|
5027
5028
|
constructor(e, n = tk(e)) {
|
|
5028
5029
|
super(), this.text = e, this.length = n;
|
|
5029
5030
|
}
|
|
@@ -5085,7 +5086,7 @@ class Ee extends le {
|
|
|
5085
5086
|
return r > -1 && n.push(new Ee(i, r)), n;
|
|
5086
5087
|
}
|
|
5087
5088
|
}
|
|
5088
|
-
class Ut extends
|
|
5089
|
+
class Ut extends ce {
|
|
5089
5090
|
constructor(e, n) {
|
|
5090
5091
|
super(), this.children = e, this.length = n, this.lines = 0;
|
|
5091
5092
|
for (let i of e)
|
|
@@ -5182,7 +5183,7 @@ class Ut extends le {
|
|
|
5182
5183
|
return d(), a.length == 1 ? a[0] : new Ut(a, n);
|
|
5183
5184
|
}
|
|
5184
5185
|
}
|
|
5185
|
-
|
|
5186
|
+
ce.empty = /* @__PURE__ */ new Ee([""], 0);
|
|
5186
5187
|
function tk(t) {
|
|
5187
5188
|
let e = -1;
|
|
5188
5189
|
for (let n of t)
|
|
@@ -5262,7 +5263,7 @@ class Hf {
|
|
|
5262
5263
|
return !1;
|
|
5263
5264
|
}
|
|
5264
5265
|
}
|
|
5265
|
-
typeof Symbol < "u" && (
|
|
5266
|
+
typeof Symbol < "u" && (ce.prototype[Symbol.iterator] = function() {
|
|
5266
5267
|
return this.iter();
|
|
5267
5268
|
}, fr.prototype[Symbol.iterator] = Wf.prototype[Symbol.iterator] = Hf.prototype[Symbol.iterator] = function() {
|
|
5268
5269
|
return this;
|
|
@@ -5500,8 +5501,8 @@ class je extends en {
|
|
|
5500
5501
|
n[r] = a, n[r + 1] = o;
|
|
5501
5502
|
let l = r >> 1;
|
|
5502
5503
|
for (; i.length < l; )
|
|
5503
|
-
i.push(
|
|
5504
|
-
i.push(o ? e.slice(s, s + o) :
|
|
5504
|
+
i.push(ce.empty);
|
|
5505
|
+
i.push(o ? e.slice(s, s + o) : ce.empty);
|
|
5505
5506
|
}
|
|
5506
5507
|
s += o;
|
|
5507
5508
|
}
|
|
@@ -5615,7 +5616,7 @@ class je extends en {
|
|
|
5615
5616
|
let { from: u, to: d = u, insert: f } = h;
|
|
5616
5617
|
if (u > d || u < 0 || d > n)
|
|
5617
5618
|
throw new RangeError(`Invalid change range ${u} to ${d} (in doc of length ${n})`);
|
|
5618
|
-
let p = f ? typeof f == "string" ?
|
|
5619
|
+
let p = f ? typeof f == "string" ? ce.of(f.split(i || $a)) : f : ce.empty, m = p.length;
|
|
5619
5620
|
if (u == d && m == 0)
|
|
5620
5621
|
return;
|
|
5621
5622
|
u < o && l(), u > o && Ke(r, u - o, -1), Ke(r, d - u, m), Cn(s, r, p), o = d;
|
|
@@ -5648,8 +5649,8 @@ class je extends en {
|
|
|
5648
5649
|
n.push(s[0], 0);
|
|
5649
5650
|
else {
|
|
5650
5651
|
for (; i.length < r; )
|
|
5651
|
-
i.push(
|
|
5652
|
-
i[r] =
|
|
5652
|
+
i.push(ce.empty);
|
|
5653
|
+
i[r] = ce.of(s.slice(1)), n.push(s[0], i[r].length);
|
|
5653
5654
|
}
|
|
5654
5655
|
}
|
|
5655
5656
|
}
|
|
@@ -5676,7 +5677,7 @@ function Cn(t, e, n) {
|
|
|
5676
5677
|
t[t.length - 1] = t[t.length - 1].append(n);
|
|
5677
5678
|
else {
|
|
5678
5679
|
for (; t.length < i; )
|
|
5679
|
-
t.push(
|
|
5680
|
+
t.push(ce.empty);
|
|
5680
5681
|
t.push(n);
|
|
5681
5682
|
}
|
|
5682
5683
|
}
|
|
@@ -5687,7 +5688,7 @@ function Ia(t, e, n) {
|
|
|
5687
5688
|
if (l < 0)
|
|
5688
5689
|
r += a, s += a;
|
|
5689
5690
|
else {
|
|
5690
|
-
let c = r, h = s, u =
|
|
5691
|
+
let c = r, h = s, u = ce.empty;
|
|
5691
5692
|
for (; c += a, h += l, l && i && (u = u.append(i[o - 2 >> 1])), !(n || o == t.sections.length || t.sections[o + 1] < 0); )
|
|
5692
5693
|
a = t.sections[o++], l = t.sections[o++];
|
|
5693
5694
|
e(r, c, s, h, u), r = c, s = h;
|
|
@@ -5766,11 +5767,11 @@ class xr {
|
|
|
5766
5767
|
}
|
|
5767
5768
|
get text() {
|
|
5768
5769
|
let { inserted: e } = this.set, n = this.i - 2 >> 1;
|
|
5769
|
-
return n >= e.length ?
|
|
5770
|
+
return n >= e.length ? ce.empty : e[n];
|
|
5770
5771
|
}
|
|
5771
5772
|
textBit(e) {
|
|
5772
5773
|
let { inserted: n } = this.set, i = this.i - 2 >> 1;
|
|
5773
|
-
return i >= n.length && !e ?
|
|
5774
|
+
return i >= n.length && !e ? ce.empty : n[i].slice(this.off, e == null ? void 0 : this.off + e);
|
|
5774
5775
|
}
|
|
5775
5776
|
forward(e) {
|
|
5776
5777
|
e == this.len ? this.next() : (this.len -= e, this.off += e);
|
|
@@ -6741,7 +6742,7 @@ class be {
|
|
|
6741
6742
|
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
|
|
6742
6743
|
*/
|
|
6743
6744
|
toText(e) {
|
|
6744
|
-
return
|
|
6745
|
+
return ce.of(e.split(this.facet(be.lineSeparator) || $a));
|
|
6745
6746
|
}
|
|
6746
6747
|
/**
|
|
6747
6748
|
Return the given range of the document as a string.
|
|
@@ -6803,7 +6804,7 @@ class be {
|
|
|
6803
6804
|
transactions.
|
|
6804
6805
|
*/
|
|
6805
6806
|
static create(e = {}) {
|
|
6806
|
-
let n = Ms.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof
|
|
6807
|
+
let n = Ms.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof ce ? e.doc : ce.of((e.doc || "").split(n.staticFacet(be.lineSeparator) || $a)), r = e.selection ? e.selection instanceof P ? e.selection : P.single(e.selection.anchor, e.selection.head) : P.single(0);
|
|
6807
6808
|
return Zf(r, i.length), n.staticFacet(Da) || (r = r.asSingle()), new be(n, i, r, n.dynamicSlots.map(() => null), (s, o) => o.create(s), null);
|
|
6808
6809
|
}
|
|
6809
6810
|
/**
|
|
@@ -7035,7 +7036,7 @@ class Vl {
|
|
|
7035
7036
|
return { mapped: o.length ? new Vl(a, l, o, h) : null, pos: c };
|
|
7036
7037
|
}
|
|
7037
7038
|
}
|
|
7038
|
-
class
|
|
7039
|
+
class le {
|
|
7039
7040
|
constructor(e, n, i, r) {
|
|
7040
7041
|
this.chunkPos = e, this.chunk = n, this.nextLayer = i, this.maxPoint = r;
|
|
7041
7042
|
}
|
|
@@ -7043,7 +7044,7 @@ class ae {
|
|
|
7043
7044
|
@internal
|
|
7044
7045
|
*/
|
|
7045
7046
|
static create(e, n, i, r) {
|
|
7046
|
-
return new
|
|
7047
|
+
return new le(e, n, i, r);
|
|
7047
7048
|
}
|
|
7048
7049
|
/**
|
|
7049
7050
|
@internal
|
|
@@ -7083,14 +7084,14 @@ class ae {
|
|
|
7083
7084
|
if (n.length == 0 && !o)
|
|
7084
7085
|
return this;
|
|
7085
7086
|
if (i && (n = n.slice().sort(Fa)), this.isEmpty)
|
|
7086
|
-
return n.length ?
|
|
7087
|
+
return n.length ? le.of(n) : this;
|
|
7087
7088
|
let a = new ip(this, null, -1).goto(0), l = 0, c = [], h = new qn();
|
|
7088
7089
|
for (; a.value || l < n.length; )
|
|
7089
7090
|
if (l < n.length && (a.from - n[l].from || a.startSide - n[l].value.startSide) >= 0) {
|
|
7090
7091
|
let u = n[l++];
|
|
7091
7092
|
h.addInner(u.from, u.to, u.value) || c.push(u);
|
|
7092
7093
|
} else a.rangeIndex == 1 && a.chunkIndex < this.chunk.length && (l == n.length || this.chunkEnd(a.chunkIndex) < n[l].from) && (!o || r > this.chunkEnd(a.chunkIndex) || s < this.chunkPos[a.chunkIndex]) && h.addChunk(this.chunkPos[a.chunkIndex], this.chunk[a.chunkIndex]) ? a.nextChunk() : ((!o || r > a.to || s < a.from || o(a.from, a.to, a.value)) && (h.addInner(a.from, a.to, a.value) || c.push(Ja.create(a.from, a.to, a.value))), a.next());
|
|
7093
|
-
return h.finishInner(this.nextLayer.isEmpty && !c.length ?
|
|
7094
|
+
return h.finishInner(this.nextLayer.isEmpty && !c.length ? le.empty : this.nextLayer.update({ add: c, filter: o, filterFrom: r, filterTo: s }));
|
|
7094
7095
|
}
|
|
7095
7096
|
/**
|
|
7096
7097
|
Map this range set through a set of changes, return the new set.
|
|
@@ -7111,7 +7112,7 @@ class ae {
|
|
|
7111
7112
|
}
|
|
7112
7113
|
}
|
|
7113
7114
|
let a = this.nextLayer.map(e);
|
|
7114
|
-
return s && (a = s.finishInner(a)), n.length == 0 ? a : new
|
|
7115
|
+
return s && (a = s.finishInner(a)), n.length == 0 ? a : new le(i, n, a || le.empty, r);
|
|
7115
7116
|
}
|
|
7116
7117
|
/**
|
|
7117
7118
|
Iterate over the ranges that touch the region `from` to `to`,
|
|
@@ -7215,15 +7216,15 @@ class ae {
|
|
|
7215
7216
|
*/
|
|
7216
7217
|
static join(e) {
|
|
7217
7218
|
if (!e.length)
|
|
7218
|
-
return
|
|
7219
|
+
return le.empty;
|
|
7219
7220
|
let n = fi(e);
|
|
7220
7221
|
for (let i = e.length - 2; i >= 0; i--)
|
|
7221
|
-
for (let r = e[i]; r !=
|
|
7222
|
-
n = new
|
|
7222
|
+
for (let r = e[i]; r != le.empty; r = r.nextLayer)
|
|
7223
|
+
n = new le(r.chunkPos, r.chunk, n, Math.max(r.maxPoint, n.maxPoint));
|
|
7223
7224
|
return n;
|
|
7224
7225
|
}
|
|
7225
7226
|
}
|
|
7226
|
-
|
|
7227
|
+
le.empty = /* @__PURE__ */ new le([], [], null, -1);
|
|
7227
7228
|
function fi(t) {
|
|
7228
7229
|
return t[t.length - 1];
|
|
7229
7230
|
}
|
|
@@ -7237,7 +7238,7 @@ function yk(t) {
|
|
|
7237
7238
|
}
|
|
7238
7239
|
return t;
|
|
7239
7240
|
}
|
|
7240
|
-
|
|
7241
|
+
le.empty.nextLayer = le.empty;
|
|
7241
7242
|
class qn {
|
|
7242
7243
|
finishChunk(e) {
|
|
7243
7244
|
this.chunks.push(new Vl(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
@@ -7279,7 +7280,7 @@ class qn {
|
|
|
7279
7280
|
used anymore after this has been called.
|
|
7280
7281
|
*/
|
|
7281
7282
|
finish() {
|
|
7282
|
-
return this.finishInner(
|
|
7283
|
+
return this.finishInner(le.empty);
|
|
7283
7284
|
}
|
|
7284
7285
|
/**
|
|
7285
7286
|
@internal
|
|
@@ -7287,7 +7288,7 @@ class qn {
|
|
|
7287
7288
|
finishInner(e) {
|
|
7288
7289
|
if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
|
|
7289
7290
|
return e;
|
|
7290
|
-
let n =
|
|
7291
|
+
let n = le.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
|
|
7291
7292
|
return this.from = null, n;
|
|
7292
7293
|
}
|
|
7293
7294
|
}
|
|
@@ -7962,7 +7963,7 @@ class ve extends _n {
|
|
|
7962
7963
|
pass `true` for `sort` to make the library sort them for you.
|
|
7963
7964
|
*/
|
|
7964
7965
|
static set(e, n = !1) {
|
|
7965
|
-
return
|
|
7966
|
+
return le.of(e, n);
|
|
7966
7967
|
}
|
|
7967
7968
|
/**
|
|
7968
7969
|
@internal
|
|
@@ -7971,7 +7972,7 @@ class ve extends _n {
|
|
|
7971
7972
|
return this.widget ? this.widget.estimatedHeight > -1 : !1;
|
|
7972
7973
|
}
|
|
7973
7974
|
}
|
|
7974
|
-
ve.none =
|
|
7975
|
+
ve.none = le.empty;
|
|
7975
7976
|
class Dr extends ve {
|
|
7976
7977
|
constructor(e) {
|
|
7977
7978
|
let { start: n, end: i } = op(e);
|
|
@@ -8054,7 +8055,7 @@ class Tr extends _n {
|
|
|
8054
8055
|
Create a range set from the given block wrapper ranges.
|
|
8055
8056
|
*/
|
|
8056
8057
|
static set(e, n = !1) {
|
|
8057
|
-
return
|
|
8058
|
+
return le.of(e, n);
|
|
8058
8059
|
}
|
|
8059
8060
|
}
|
|
8060
8061
|
Tr.prototype.startSide = Tr.prototype.endSide = -1;
|
|
@@ -8723,7 +8724,7 @@ function Eh(t, e) {
|
|
|
8723
8724
|
if (!n.length)
|
|
8724
8725
|
return n;
|
|
8725
8726
|
let i = n.map((s) => s instanceof Function ? s(t) : s), r = [];
|
|
8726
|
-
return
|
|
8727
|
+
return le.spans(i, e.from, e.to, {
|
|
8727
8728
|
point() {
|
|
8728
8729
|
},
|
|
8729
8730
|
span(s, o, a, l) {
|
|
@@ -9216,10 +9217,10 @@ class ni extends Me {
|
|
|
9216
9217
|
}
|
|
9217
9218
|
get overrideDOMText() {
|
|
9218
9219
|
if (!this.length)
|
|
9219
|
-
return
|
|
9220
|
+
return ce.empty;
|
|
9220
9221
|
let { root: e } = this;
|
|
9221
9222
|
if (!e)
|
|
9222
|
-
return
|
|
9223
|
+
return ce.empty;
|
|
9223
9224
|
let n = this.posAtStart;
|
|
9224
9225
|
return e.view.state.doc.slice(n, n + this.length);
|
|
9225
9226
|
}
|
|
@@ -9239,7 +9240,7 @@ class Is extends Me {
|
|
|
9239
9240
|
return !0;
|
|
9240
9241
|
}
|
|
9241
9242
|
get overrideDOMText() {
|
|
9242
|
-
return
|
|
9243
|
+
return ce.empty;
|
|
9243
9244
|
}
|
|
9244
9245
|
coordsIn(e, n, i) {
|
|
9245
9246
|
let r = this.dom.getBoundingClientRect();
|
|
@@ -9542,7 +9543,7 @@ class Kk {
|
|
|
9542
9543
|
}
|
|
9543
9544
|
class Gk {
|
|
9544
9545
|
constructor(e, n, i, r, s) {
|
|
9545
|
-
this.view = e, this.decorations = r, this.disallowBlockEffectsFor = s, this.openWidget = !1, this.openMarks = 0, this.cache = new Kk(e), this.text = new Uk(e.state.doc), this.builder = new Zk(this.cache, new fo(e, e.contentDOM),
|
|
9546
|
+
this.view = e, this.decorations = r, this.disallowBlockEffectsFor = s, this.openWidget = !1, this.openMarks = 0, this.cache = new Kk(e), this.text = new Uk(e.state.doc), this.builder = new Zk(this.cache, new fo(e, e.contentDOM), le.iter(i)), this.cache.reused.set(
|
|
9546
9547
|
n,
|
|
9547
9548
|
2
|
|
9548
9549
|
/* Reused.DOM */
|
|
@@ -9615,7 +9616,7 @@ class Gk {
|
|
|
9615
9616
|
}), this.text.skip(e);
|
|
9616
9617
|
}
|
|
9617
9618
|
emit(e, n) {
|
|
9618
|
-
let i = null, r = this.builder, s = -1, o =
|
|
9619
|
+
let i = null, r = this.builder, s = -1, o = le.spans(this.decorations, e, n, {
|
|
9619
9620
|
point: (a, l, c, h, u, d) => {
|
|
9620
9621
|
if (c instanceof ei) {
|
|
9621
9622
|
if (this.disallowBlockEffectsFor[d]) {
|
|
@@ -10004,7 +10005,7 @@ class $h {
|
|
|
10004
10005
|
let a = typeof s == "function";
|
|
10005
10006
|
return a && (i = !0), a ? s(this.view) : s;
|
|
10006
10007
|
});
|
|
10007
|
-
for (r.length && (this.dynamicDecorationMap[e++] = i, n.push(
|
|
10008
|
+
for (r.length && (this.dynamicDecorationMap[e++] = i, n.push(le.join(r))), this.decorations = [
|
|
10008
10009
|
this.editContextFormatting,
|
|
10009
10010
|
...n,
|
|
10010
10011
|
this.computeBlockGapDeco(),
|
|
@@ -10116,7 +10117,7 @@ let nv = class {
|
|
|
10116
10117
|
};
|
|
10117
10118
|
function iv(t, e, n) {
|
|
10118
10119
|
let i = new nv();
|
|
10119
|
-
return
|
|
10120
|
+
return le.compare(t, e, n, i), i.changes;
|
|
10120
10121
|
}
|
|
10121
10122
|
class rv {
|
|
10122
10123
|
constructor() {
|
|
@@ -10133,7 +10134,7 @@ class rv {
|
|
|
10133
10134
|
}
|
|
10134
10135
|
function sv(t, e, n) {
|
|
10135
10136
|
let i = new rv();
|
|
10136
|
-
return
|
|
10137
|
+
return le.compare(t, e, n, i), i.changes;
|
|
10137
10138
|
}
|
|
10138
10139
|
function ov(t, e) {
|
|
10139
10140
|
for (let n = t; n && n != e; n = n.assignedSlot || n.parentNode)
|
|
@@ -10604,21 +10605,21 @@ function Dp(t, e) {
|
|
|
10604
10605
|
!s.empty && s.from >= a && s.to <= l && (e.typeOver || u != e.text) && u.slice(0, s.from - a) == e.text.slice(0, s.from - a) && u.slice(s.to - a) == e.text.slice(d = e.text.length - (u.length - (s.to - a))) ? n = {
|
|
10605
10606
|
from: s.from,
|
|
10606
10607
|
to: s.to,
|
|
10607
|
-
insert:
|
|
10608
|
+
insert: ce.of(e.text.slice(s.from - a, d).split(pi))
|
|
10608
10609
|
} : (f = zp(u, e.text, c - a, h)) && (j.chrome && o == 13 && f.toB == f.from + 2 && e.text.slice(f.from, f.toB) == pi + pi && f.toB--, n = {
|
|
10609
10610
|
from: a + f.from,
|
|
10610
10611
|
to: a + f.toA,
|
|
10611
|
-
insert:
|
|
10612
|
+
insert: ce.of(e.text.slice(f.from, f.toB).split(pi))
|
|
10612
10613
|
});
|
|
10613
10614
|
} else i && (!t.hasFocus && r.facet(on) || js(i, s)) && (i = null);
|
|
10614
10615
|
if (!n && !i)
|
|
10615
10616
|
return !1;
|
|
10616
|
-
if ((j.mac || j.android) && n && n.from == n.to && n.from == s.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (i && n.insert.length == 2 && (i = P.single(i.main.anchor - 1, i.main.head - 1)), n = { from: n.from, to: n.to, insert:
|
|
10617
|
+
if ((j.mac || j.android) && n && n.from == n.to && n.from == s.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (i && n.insert.length == 2 && (i = P.single(i.main.anchor - 1, i.main.head - 1)), n = { from: n.from, to: n.to, insert: ce.of([n.insert.toString().replace(".", " ")]) }) : r.doc.lineAt(s.from).to < s.to && t.docView.lineHasWidget(s.to) && t.inputState.insertingTextAt > Date.now() - 50 ? n = {
|
|
10617
10618
|
from: s.from,
|
|
10618
10619
|
to: s.to,
|
|
10619
10620
|
insert: r.toText(t.inputState.insertingText)
|
|
10620
10621
|
} : j.chrome && n && n.from == n.to && n.from == s.head && n.insert.toString() == `
|
|
10621
|
-
` && t.lineWrapping && (i && (i = P.single(i.main.anchor - 1, i.main.head - 1)), n = { from: s.from, to: s.to, insert:
|
|
10622
|
+
` && t.lineWrapping && (i && (i = P.single(i.main.anchor - 1, i.main.head - 1)), n = { from: s.from, to: s.to, insert: ce.of([" "]) }), n)
|
|
10622
10623
|
return ec(t, n, i, o);
|
|
10623
10624
|
if (i && !js(i, s)) {
|
|
10624
10625
|
let a = !1, l = "select";
|
|
@@ -11200,7 +11201,7 @@ function Hh() {
|
|
|
11200
11201
|
}
|
|
11201
11202
|
class Dv {
|
|
11202
11203
|
constructor(e) {
|
|
11203
|
-
this.lineWrapping = e, this.doc =
|
|
11204
|
+
this.lineWrapping = e, this.doc = ce.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
|
|
11204
11205
|
}
|
|
11205
11206
|
heightForGap(e, n) {
|
|
11206
11207
|
let i = this.doc.lineAt(n).number - this.doc.lineAt(e).number + 1;
|
|
@@ -11639,12 +11640,12 @@ class tc {
|
|
|
11639
11640
|
// to each other.
|
|
11640
11641
|
static build(e, n, i, r) {
|
|
11641
11642
|
let s = new tc(i, e);
|
|
11642
|
-
return
|
|
11643
|
+
return le.spans(n, i, r, s, 0), s.finish(i);
|
|
11643
11644
|
}
|
|
11644
11645
|
}
|
|
11645
11646
|
function Wv(t, e, n) {
|
|
11646
11647
|
let i = new Hv();
|
|
11647
|
-
return
|
|
11648
|
+
return le.compare(t, e, n, i, 0), i.changes;
|
|
11648
11649
|
}
|
|
11649
11650
|
class Hv {
|
|
11650
11651
|
constructor() {
|
|
@@ -11729,7 +11730,7 @@ class Zh {
|
|
|
11729
11730
|
constructor(e, n) {
|
|
11730
11731
|
this.view = e, this.state = n, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scaleX = 1, this.scaleY = 1, this.scrollOffset = 0, this.scrolledToBottom = !1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Uh, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Se.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
11731
11732
|
let i = n.facet(Yl).some((r) => typeof r != "function" && r.class == "cm-lineWrapping");
|
|
11732
|
-
this.heightOracle = new Dv(i), this.stateDeco = Kh(n), this.heightMap = rt.empty().applyChanges(this.stateDeco,
|
|
11733
|
+
this.heightOracle = new Dv(i), this.stateDeco = Kh(n), this.heightMap = rt.empty().applyChanges(this.stateDeco, ce.empty, this.heightOracle.setDoc(n.doc), [new bt(0, 0, 0, n.doc.length)]);
|
|
11733
11734
|
for (let r = 0; r < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); r++)
|
|
11734
11735
|
;
|
|
11735
11736
|
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = ve.set(this.lineGaps.map((r) => r.draw(this, !1))), this.scrollParent = e.scrollDOM, this.computeVisibleRanges();
|
|
@@ -11796,7 +11797,7 @@ class Zh {
|
|
|
11796
11797
|
g > 0 && y > 0 ? h = Math.max(g, y) : g < 0 && y < 0 && (h = Math.min(g, y)), Hh();
|
|
11797
11798
|
for (let w of this.viewports) {
|
|
11798
11799
|
let C = w.from == this.viewport.from ? x : e.docView.measureVisibleLineHeights(w);
|
|
11799
|
-
this.heightMap = (o ? rt.empty().applyChanges(this.stateDeco,
|
|
11800
|
+
this.heightMap = (o ? rt.empty().applyChanges(this.stateDeco, ce.empty, this.heightOracle, [new bt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, o, new zv(w.from, C));
|
|
11800
11801
|
}
|
|
11801
11802
|
ji && (c |= 2);
|
|
11802
11803
|
}
|
|
@@ -11924,7 +11925,7 @@ class Zh {
|
|
|
11924
11925
|
let n = this.stateDeco;
|
|
11925
11926
|
this.lineGaps.length && (n = n.concat(this.lineGapDeco));
|
|
11926
11927
|
let i = [];
|
|
11927
|
-
|
|
11928
|
+
le.spans(n, this.viewport.from, this.viewport.to, {
|
|
11928
11929
|
span(s, o) {
|
|
11929
11930
|
i.push({ from: s, to: o });
|
|
11930
11931
|
},
|
|
@@ -11971,7 +11972,7 @@ class Yr {
|
|
|
11971
11972
|
}
|
|
11972
11973
|
function Gv(t, e, n) {
|
|
11973
11974
|
let i = [], r = t, s = 0;
|
|
11974
|
-
return
|
|
11975
|
+
return le.spans(n, t, e, {
|
|
11975
11976
|
span() {
|
|
11976
11977
|
},
|
|
11977
11978
|
point(o, a) {
|
|
@@ -12022,7 +12023,7 @@ const Uh = {
|
|
|
12022
12023
|
};
|
|
12023
12024
|
function Kh(t) {
|
|
12024
12025
|
let e = t.facet(ho).filter((i) => typeof i != "function"), n = t.facet(Xl).filter((i) => typeof i != "function");
|
|
12025
|
-
return n.length && e.push(
|
|
12026
|
+
return n.length && e.push(le.join(n)), e;
|
|
12026
12027
|
}
|
|
12027
12028
|
class nc {
|
|
12028
12029
|
constructor(e, n, i) {
|
|
@@ -12639,10 +12640,10 @@ class tw {
|
|
|
12639
12640
|
let u = {
|
|
12640
12641
|
from: h.from + a,
|
|
12641
12642
|
to: h.toA + a,
|
|
12642
|
-
insert:
|
|
12643
|
+
insert: ce.of(i.text.slice(h.from, h.toB).split(`
|
|
12643
12644
|
`))
|
|
12644
12645
|
};
|
|
12645
|
-
if ((j.mac || j.android) && u.from == o - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (u = { from: a, to: l, insert:
|
|
12646
|
+
if ((j.mac || j.android) && u.from == o - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (u = { from: a, to: l, insert: ce.of([i.text.replace(".", " ")]) }), this.pendingContextChange = u, !e.state.readOnly) {
|
|
12646
12647
|
let d = this.to - this.from + (u.to - u.from + u.insert.length);
|
|
12647
12648
|
ec(e, u, P.single(this.toEditorPos(i.selectionStart, d), this.toEditorPos(i.selectionEnd, d)));
|
|
12648
12649
|
}
|
|
@@ -13723,8 +13724,8 @@ function hw(t, e, n) {
|
|
|
13723
13724
|
function k(x, w, C) {
|
|
13724
13725
|
let T = 1e9, _ = -1e9, M = [];
|
|
13725
13726
|
function E(z, F, te, pe, ye) {
|
|
13726
|
-
let
|
|
13727
|
-
!
|
|
13727
|
+
let he = t.coordsAtPos(z, z == C.to ? -2 : 2), H = t.coordsAtPos(te, te == C.from ? 2 : -2);
|
|
13728
|
+
!he || !H || (T = Math.min(he.top, H.top, T), _ = Math.max(he.bottom, H.bottom, _), ye == Se.LTR ? M.push(s && F ? u : he.left, s && pe ? d : H.right) : M.push(!s && pe ? u : H.left, !s && F ? d : he.right));
|
|
13728
13729
|
}
|
|
13729
13730
|
let $ = x ?? C.from, L = w ?? C.to;
|
|
13730
13731
|
for (let z of t.visibleRanges)
|
|
@@ -13732,10 +13733,10 @@ function hw(t, e, n) {
|
|
|
13732
13733
|
for (let F = Math.max(z.from, $), te = Math.min(z.to, L); ; ) {
|
|
13733
13734
|
let pe = t.state.doc.lineAt(F);
|
|
13734
13735
|
for (let ye of t.bidiSpans(pe)) {
|
|
13735
|
-
let
|
|
13736
|
-
if (
|
|
13736
|
+
let he = ye.from + pe.from, H = ye.to + pe.from;
|
|
13737
|
+
if (he >= te)
|
|
13737
13738
|
break;
|
|
13738
|
-
H > F && E(Math.max(
|
|
13739
|
+
H > F && E(Math.max(he, F), x == null && he <= $, Math.min(H, te), w == null && H >= L, ye.dir);
|
|
13739
13740
|
}
|
|
13740
13741
|
if (F = pe.to + 1, F >= te)
|
|
13741
13742
|
break;
|
|
@@ -14561,7 +14562,7 @@ const jw = /* @__PURE__ */ Ye.fromClass(class {
|
|
|
14561
14562
|
syncGutters(t) {
|
|
14562
14563
|
let e = this.dom.nextSibling;
|
|
14563
14564
|
t && (this.dom.remove(), this.domAfter && this.domAfter.remove());
|
|
14564
|
-
let n =
|
|
14565
|
+
let n = le.iter(this.view.state.facet(Xo), this.view.viewport.from), i = [], r = this.gutters.map((s) => new Lw(s, this.view.viewport, -this.view.documentPadding.top));
|
|
14565
14566
|
for (let s of this.view.viewportLineBlocks)
|
|
14566
14567
|
if (i.length && (i = []), Array.isArray(s.type)) {
|
|
14567
14568
|
let o = !0;
|
|
@@ -14586,7 +14587,7 @@ const jw = /* @__PURE__ */ Ye.fromClass(class {
|
|
|
14586
14587
|
t && (this.view.scrollDOM.insertBefore(this.dom, e), this.domAfter && this.view.scrollDOM.appendChild(this.domAfter));
|
|
14587
14588
|
}
|
|
14588
14589
|
updateGutters(t) {
|
|
14589
|
-
let e = t.startState.facet(Cs), n = t.state.facet(Cs), i = t.docChanged || t.heightChanged || t.viewportChanged || !
|
|
14590
|
+
let e = t.startState.facet(Cs), n = t.state.facet(Cs), i = t.docChanged || t.heightChanged || t.viewportChanged || !le.eq(t.startState.facet(Xo), t.state.facet(Xo), t.view.viewport.from, t.view.viewport.to);
|
|
14590
14591
|
if (e == n)
|
|
14591
14592
|
for (let r of this.gutters)
|
|
14592
14593
|
r.update(t) && (i = !0);
|
|
@@ -14628,7 +14629,7 @@ function hl(t, e, n) {
|
|
|
14628
14629
|
}
|
|
14629
14630
|
class Lw {
|
|
14630
14631
|
constructor(e, n, i) {
|
|
14631
|
-
this.gutter = e, this.height = i, this.i = 0, this.cursor =
|
|
14632
|
+
this.gutter = e, this.height = i, this.i = 0, this.cursor = le.iter(e.markers, n.from);
|
|
14632
14633
|
}
|
|
14633
14634
|
addElement(e, n, i) {
|
|
14634
14635
|
let { gutter: r } = this, s = (n.top - this.height) / e.scaleY, o = n.height / e.scaleY;
|
|
@@ -14688,7 +14689,7 @@ class lu {
|
|
|
14688
14689
|
r != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [r]);
|
|
14689
14690
|
}
|
|
14690
14691
|
let i = e.view.viewport;
|
|
14691
|
-
return !
|
|
14692
|
+
return !le.eq(this.markers, n, i.from, i.to) || (this.config.lineMarkerChange ? this.config.lineMarkerChange(e) : !1);
|
|
14692
14693
|
}
|
|
14693
14694
|
destroy() {
|
|
14694
14695
|
for (let e of this.elements)
|
|
@@ -15881,19 +15882,19 @@ function Gw(t) {
|
|
|
15881
15882
|
return;
|
|
15882
15883
|
} else
|
|
15883
15884
|
throw new RangeError(`Unrecognized record size: ${z}`);
|
|
15884
|
-
let pe = l[E], ye,
|
|
15885
|
-
if (L - $ <= r && (
|
|
15886
|
-
let ee = new Uint16Array(
|
|
15885
|
+
let pe = l[E], ye, he, H = $ - x;
|
|
15886
|
+
if (L - $ <= r && (he = g(a.pos - w, _))) {
|
|
15887
|
+
let ee = new Uint16Array(he.size - he.skip), K = a.pos - he.size, B = ee.length;
|
|
15887
15888
|
for (; a.pos > K; )
|
|
15888
|
-
B = y(
|
|
15889
|
-
ye = new Pn(ee, L -
|
|
15889
|
+
B = y(he.start, ee, B);
|
|
15890
|
+
ye = new Pn(ee, L - he.start, i), H = he.start - x;
|
|
15890
15891
|
} else {
|
|
15891
15892
|
let ee = a.pos - z;
|
|
15892
15893
|
a.next();
|
|
15893
|
-
let K = [], B = [], Y = E >= o ? E : -1, ne = 0,
|
|
15894
|
+
let K = [], B = [], Y = E >= o ? E : -1, ne = 0, ue = L;
|
|
15894
15895
|
for (; a.pos > ee; )
|
|
15895
|
-
Y >= 0 && a.id == Y && a.size >= 0 ? (a.end <=
|
|
15896
|
-
if (Y >= 0 && ne > 0 && ne < K.length && p(K, B, $, ne, $,
|
|
15896
|
+
Y >= 0 && a.id == Y && a.size >= 0 ? (a.end <= ue - r && (p(K, B, $, ne, a.end, ue, Y, F, te), ne = K.length, ue = a.end), a.next()) : M > 2500 ? d($, ee, K, B) : u($, ee, K, B, Y, M + 1);
|
|
15897
|
+
if (Y >= 0 && ne > 0 && ne < K.length && p(K, B, $, ne, $, ue, Y, F, te), K.reverse(), B.reverse(), Y > -1 && ne > 0) {
|
|
15897
15898
|
let ze = f(pe, te);
|
|
15898
15899
|
ye = lc(pe, K, B, 0, K.length, 0, L - $, ze, ze);
|
|
15899
15900
|
} else
|
|
@@ -18128,7 +18129,7 @@ const jm = (t, e, n) => Jr(t, (i) => {
|
|
|
18128
18129
|
if (t.readOnly)
|
|
18129
18130
|
return !1;
|
|
18130
18131
|
let n = t.changeByRange((i) => ({
|
|
18131
|
-
changes: { from: i.from, to: i.to, insert:
|
|
18132
|
+
changes: { from: i.from, to: i.to, insert: ce.of(["", ""]) },
|
|
18132
18133
|
range: P.cursor(i.from)
|
|
18133
18134
|
}));
|
|
18134
18135
|
return e(t.update(n, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
@@ -18232,7 +18233,7 @@ function Fm(t) {
|
|
|
18232
18233
|
l ? { from: s, to: o } = l : s > a.from && s < a.from + 100 && !/\S/.test(a.text.slice(0, s)) && (s = a.from);
|
|
18233
18234
|
let u = ["", Ws(e, h)];
|
|
18234
18235
|
return l && u.push(Ws(e, c.lineIndent(a.from, -1))), {
|
|
18235
|
-
changes: { from: s, to: o, insert:
|
|
18236
|
+
changes: { from: s, to: o, insert: ce.of(u) },
|
|
18236
18237
|
range: P.cursor(s + 1 + u[1].length)
|
|
18237
18238
|
};
|
|
18238
18239
|
});
|
|
@@ -20253,11 +20254,11 @@ function ig({
|
|
|
20253
20254
|
const re = Hx(U);
|
|
20254
20255
|
x(re), te(U), z(re), n == null || n(re);
|
|
20255
20256
|
}
|
|
20256
|
-
},
|
|
20257
|
-
|
|
20257
|
+
}, he = ["visual", "code", "inspect"], H = !!(a || l || h);
|
|
20258
|
+
he.includes(v) || k("visual");
|
|
20258
20259
|
const [ee, K] = V(null), [B, Y] = V("category"), ne = (U) => {
|
|
20259
20260
|
K(U), Y("category");
|
|
20260
|
-
},
|
|
20261
|
+
}, ue = (U) => {
|
|
20261
20262
|
if (!ee) return;
|
|
20262
20263
|
const re = {
|
|
20263
20264
|
id: `${Date.now()}-${Math.random()}`,
|
|
@@ -20318,11 +20319,11 @@ function ig({
|
|
|
20318
20319
|
onClose: ze,
|
|
20319
20320
|
title: B === "category" ? "Select Category" : B === "joker" ? "Select Joker" : ((G = Fu[B]) == null ? void 0 : G.title) ?? "Select Item",
|
|
20320
20321
|
className: "j-picker-modal",
|
|
20321
|
-
children: ee !== null && (B === "category" ? /* @__PURE__ */ b(Lf, { onSelect: (U) => Y(U) }) : B === "joker" ? /* @__PURE__ */ b(Mf, { onSelect:
|
|
20322
|
+
children: ee !== null && (B === "category" ? /* @__PURE__ */ b(Lf, { onSelect: (U) => Y(U) }) : B === "joker" ? /* @__PURE__ */ b(Mf, { onSelect: ue }) : /* @__PURE__ */ b(
|
|
20322
20323
|
Ef,
|
|
20323
20324
|
{
|
|
20324
20325
|
config: Fu[B],
|
|
20325
|
-
onSelect:
|
|
20326
|
+
onSelect: ue
|
|
20326
20327
|
}
|
|
20327
20328
|
))
|
|
20328
20329
|
}
|
|
@@ -20571,11 +20572,11 @@ function uN({
|
|
|
20571
20572
|
if (!T) return;
|
|
20572
20573
|
const _ = 220;
|
|
20573
20574
|
x.width !== Math.round(T * C) && (x.width = Math.round(T * C), x.height = Math.round(_ * C)), w.setTransform(C, 0, 0, C, 0, 0);
|
|
20574
|
-
const M = hi("--j-gold", "#e4b643"), E = hi("--j-red", "#fe5148"), $ = hi("--j-blue", "#0093ff"), L = hi("--j-green", "#429f79"), z = hi("--j-grey", "#a8bcbf"), F = hi("--j-darkest", "#1e2b2d"), te = T, pe = _, ye = 40,
|
|
20575
|
+
const M = hi("--j-gold", "#e4b643"), E = hi("--j-red", "#fe5148"), $ = hi("--j-blue", "#0093ff"), L = hi("--j-green", "#429f79"), z = hi("--j-grey", "#a8bcbf"), F = hi("--j-darkest", "#1e2b2d"), te = T, pe = _, ye = 40, he = 12, H = 12, ee = 30, K = te - ye - he, B = pe - H - ee, Y = sr / p * 1.06, ne = (Q) => ye + Q * K, ue = (Q) => H + (1 - Q) * B, ze = (Q) => Math.exp(-p * Q);
|
|
20575
20576
|
w.clearRect(0, 0, te, pe), w.fillStyle = F, w.fillRect(0, 0, te, pe), w.strokeStyle = "rgba(168,188,191,0.14)", w.lineWidth = 1, w.fillStyle = z, w.font = "10px 'JetBrains Mono', monospace";
|
|
20576
20577
|
for (let Q = 0; Q <= 4; Q++) {
|
|
20577
20578
|
const Fe = H + Q / 4 * B;
|
|
20578
|
-
w.beginPath(), w.moveTo(ye, Fe), w.lineTo(te -
|
|
20579
|
+
w.beginPath(), w.moveTo(ye, Fe), w.lineTo(te - he, Fe), w.stroke(), w.textAlign = "right", w.fillText(100 - Q * 25 + "%", ye - 6, Fe + 3);
|
|
20579
20580
|
}
|
|
20580
20581
|
const G = [
|
|
20581
20582
|
["median", ua / p, M],
|
|
@@ -20589,25 +20590,25 @@ function uN({
|
|
|
20589
20590
|
const li = ne(Yi);
|
|
20590
20591
|
w.strokeStyle = _t + "66", w.setLineDash([3, 4]), w.beginPath(), w.moveTo(li, H), w.lineTo(li, H + B), w.stroke(), w.setLineDash([]), w.fillStyle = _t, w.fillText(Q, li, H + B + 20);
|
|
20591
20592
|
}
|
|
20592
|
-
w.fillStyle = z, w.textAlign = "left", w.fillText("0", ye, H + B + 20), w.textAlign = "right", w.fillText(rn(Y) + " seeds →", te -
|
|
20593
|
+
w.fillStyle = z, w.textAlign = "left", w.fillText("0", ye, H + B + 20), w.textAlign = "right", w.fillText(rn(Y) + " seeds →", te - he, H + B + 20);
|
|
20593
20594
|
const U = 160;
|
|
20594
|
-
w.beginPath(), w.moveTo(ne(0),
|
|
20595
|
-
for (let Q = 0; Q <= U; Q++) w.lineTo(ne(Q / U),
|
|
20596
|
-
w.lineTo(ne(1),
|
|
20595
|
+
w.beginPath(), w.moveTo(ne(0), ue(0));
|
|
20596
|
+
for (let Q = 0; Q <= U; Q++) w.lineTo(ne(Q / U), ue(ze(Q / U * Y)));
|
|
20597
|
+
w.lineTo(ne(1), ue(0)), w.closePath(), w.fillStyle = E + "4d", w.fill(), w.beginPath();
|
|
20597
20598
|
for (let Q = 0; Q <= U; Q++) {
|
|
20598
|
-
const Fe = ne(Q / U), _t =
|
|
20599
|
+
const Fe = ne(Q / U), _t = ue(ze(Q / U * Y));
|
|
20599
20600
|
Q ? w.lineTo(Fe, _t) : w.moveTo(Fe, _t);
|
|
20600
20601
|
}
|
|
20601
20602
|
w.strokeStyle = M, w.lineWidth = 3, w.lineJoin = "round", w.stroke(), w.beginPath();
|
|
20602
20603
|
for (let Q = 0; Q <= U; Q++) {
|
|
20603
|
-
const Fe = ne(Q / U), _t =
|
|
20604
|
+
const Fe = ne(Q / U), _t = ue(1 - ze(Q / U * Y));
|
|
20604
20605
|
Q ? w.lineTo(Fe, _t) : w.moveTo(Fe, _t);
|
|
20605
20606
|
}
|
|
20606
20607
|
w.strokeStyle = $, w.lineWidth = 3, w.stroke();
|
|
20607
20608
|
const re = Math.min(Math.max(l, 0), 1), Be = re * Y, Bt = ze(Be), gn = ne(re);
|
|
20608
20609
|
w.strokeStyle = z, w.lineWidth = 1.5, w.setLineDash([2, 3]), w.beginPath(), w.moveTo(gn, H), w.lineTo(gn, H + B), w.stroke(), w.setLineDash([]);
|
|
20609
20610
|
for (const [Q, Fe] of [[Bt, M], [1 - Bt, $]])
|
|
20610
|
-
w.beginPath(), w.arc(gn,
|
|
20611
|
+
w.beginPath(), w.arc(gn, ue(Q), 4.5, 0, 7), w.fillStyle = Fe, w.fill(), w.strokeStyle = F, w.lineWidth = 2, w.stroke();
|
|
20611
20612
|
}, [p, l]);
|
|
20612
20613
|
gt(() => {
|
|
20613
20614
|
g();
|
|
@@ -20645,7 +20646,7 @@ function uN({
|
|
|
20645
20646
|
] }),
|
|
20646
20647
|
/* @__PURE__ */ A("div", { className: "j-seedcalc__dials", children: [
|
|
20647
20648
|
/* @__PURE__ */ A("label", { className: "j-seedcalc__dial", children: [
|
|
20648
|
-
/* @__PURE__ */ A(
|
|
20649
|
+
/* @__PURE__ */ A(ae, { justify: "between", children: [
|
|
20649
20650
|
/* @__PURE__ */ b(I, { size: "micro", tone: "grey", children: "RARITY" }),
|
|
20650
20651
|
/* @__PURE__ */ A(I, { size: "sm", tone: "white", children: [
|
|
20651
20652
|
"1 in ",
|
|
@@ -20666,7 +20667,7 @@ function uN({
|
|
|
20666
20667
|
)
|
|
20667
20668
|
] }),
|
|
20668
20669
|
/* @__PURE__ */ A("label", { className: "j-seedcalc__dial", children: [
|
|
20669
|
-
/* @__PURE__ */ A(
|
|
20670
|
+
/* @__PURE__ */ A(ae, { justify: "between", children: [
|
|
20670
20671
|
/* @__PURE__ */ b(I, { size: "micro", tone: "grey", children: "RIG SPEED" }),
|
|
20671
20672
|
/* @__PURE__ */ A(I, { size: "sm", tone: "white", children: [
|
|
20672
20673
|
rn(f),
|
|
@@ -20693,7 +20694,7 @@ function uN({
|
|
|
20693
20694
|
/* @__PURE__ */ b(fs, { suit: "♣", tone: "green", label: "ALMOST CERTAIN", value: rn(m.p95), unit: `seeds · ${da(m.p95 / f)}`, formula: "ln 20 / p — 95%" })
|
|
20694
20695
|
] }),
|
|
20695
20696
|
/* @__PURE__ */ A(Re, { gap: "sm", children: [
|
|
20696
|
-
/* @__PURE__ */ A(
|
|
20697
|
+
/* @__PURE__ */ A(ae, { gap: "md", align: "center", children: [
|
|
20697
20698
|
/* @__PURE__ */ b(I, { size: "xs", tone: "gold", children: "— still hunting" }),
|
|
20698
20699
|
/* @__PURE__ */ b(I, { size: "xs", tone: "red", children: "▨ where it lands" }),
|
|
20699
20700
|
/* @__PURE__ */ b(I, { size: "xs", tone: "blue", children: "— done" })
|
|
@@ -26240,10 +26241,10 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
26240
26241
|
if (T) {
|
|
26241
26242
|
o.push(`AVAILABLE COMPONENTS (${t.componentNames.length}):`), o.push("");
|
|
26242
26243
|
for (const [H, ee] of Object.entries(T)) {
|
|
26243
|
-
const K = ee.props ? Mt(ee.props) : "{}", B = ee.slots ?? [], Y = B.filter((re) => re !== "default"), ne = B.includes("default"),
|
|
26244
|
+
const K = ee.props ? Mt(ee.props) : "{}", B = ee.slots ?? [], Y = B.filter((re) => re !== "default"), ne = B.includes("default"), ue = f ? [
|
|
26244
26245
|
ne ? "accepts children" : "",
|
|
26245
26246
|
Y.length > 0 ? `slots: ${Y.join(", ")}` : ""
|
|
26246
|
-
].filter(Boolean).join("; ") : B.length > 0 ? "accepts children" : "", ze =
|
|
26247
|
+
].filter(Boolean).join("; ") : B.length > 0 ? "accepts children" : "", ze = ue ? ` [${ue}]` : "", G = ee.events && ee.events.length > 0 ? ` [events: ${ee.events.join(", ")}]` : "", U = ee.description ? ` - ${ee.description}` : "";
|
|
26247
26248
|
o.push(`- ${H}: ${K}${U}${ze}${G}`);
|
|
26248
26249
|
}
|
|
26249
26250
|
o.push("");
|
|
@@ -27355,12 +27356,12 @@ var vy = pn.memo(function t({
|
|
|
27355
27356
|
await h(ne);
|
|
27356
27357
|
continue;
|
|
27357
27358
|
}
|
|
27358
|
-
const
|
|
27359
|
+
const ue = {
|
|
27359
27360
|
...m,
|
|
27360
27361
|
stateModel: u()
|
|
27361
27362
|
}, ze = {};
|
|
27362
27363
|
for (const [G, U] of Object.entries(ne.params))
|
|
27363
|
-
ze[G] = Md(U,
|
|
27364
|
+
ze[G] = Md(U, ue);
|
|
27364
27365
|
await h({ ...ne, params: ze });
|
|
27365
27366
|
}
|
|
27366
27367
|
},
|
|
@@ -27371,7 +27372,7 @@ var vy = pn.memo(function t({
|
|
|
27371
27372
|
if (!B)
|
|
27372
27373
|
return { emit: () => {
|
|
27373
27374
|
}, shouldPreventDefault: !1, bound: !1 };
|
|
27374
|
-
const ne = (Array.isArray(B) ? B : [B]).some((
|
|
27375
|
+
const ne = (Array.isArray(B) ? B : [B]).some((ue) => ue.preventDefault);
|
|
27375
27376
|
return {
|
|
27376
27377
|
emit: () => S(K),
|
|
27377
27378
|
shouldPreventDefault: ne,
|
|
@@ -27403,9 +27404,9 @@ var vy = pn.memo(function t({
|
|
|
27403
27404
|
for (const ne of K) {
|
|
27404
27405
|
if (Y) break;
|
|
27405
27406
|
if (_[ne] !== B[ne]) {
|
|
27406
|
-
const
|
|
27407
|
-
if (!
|
|
27408
|
-
const ze = Array.isArray(
|
|
27407
|
+
const ue = w[ne];
|
|
27408
|
+
if (!ue) continue;
|
|
27409
|
+
const ze = Array.isArray(ue) ? ue : [ue];
|
|
27409
27410
|
for (const G of ze) {
|
|
27410
27411
|
if (Y) break;
|
|
27411
27412
|
if (!G.params) {
|
|
@@ -27444,9 +27445,9 @@ var vy = pn.memo(function t({
|
|
|
27444
27445
|
const ne = i.elements[Y];
|
|
27445
27446
|
if (!ne) {
|
|
27446
27447
|
if (!s) {
|
|
27447
|
-
const
|
|
27448
|
+
const ue = B ? `in slot "${B}" of "${L.type}"` : `as child of "${L.type}"`;
|
|
27448
27449
|
console.warn(
|
|
27449
|
-
`[json-render] Missing element "${Y}" referenced ${
|
|
27450
|
+
`[json-render] Missing element "${Y}" referenced ${ue}. This element will not render.`
|
|
27450
27451
|
);
|
|
27451
27452
|
}
|
|
27452
27453
|
return null;
|
|
@@ -27478,7 +27479,7 @@ var vy = pn.memo(function t({
|
|
|
27478
27479
|
K,
|
|
27479
27480
|
te(B, K)
|
|
27480
27481
|
])
|
|
27481
|
-
) : void 0,
|
|
27482
|
+
) : void 0, he = /* @__PURE__ */ b(
|
|
27482
27483
|
z,
|
|
27483
27484
|
{
|
|
27484
27485
|
element: L,
|
|
@@ -27489,7 +27490,7 @@ var vy = pn.memo(function t({
|
|
|
27489
27490
|
loading: s,
|
|
27490
27491
|
children: pe
|
|
27491
27492
|
}
|
|
27492
|
-
), H = a && n ? /* @__PURE__ */ b("span", { "data-jr-key": n, style: { display: "contents" }, children:
|
|
27493
|
+
), H = a && n ? /* @__PURE__ */ b("span", { "data-jr-key": n, style: { display: "contents" }, children: he }) : he;
|
|
27493
27494
|
return /* @__PURE__ */ b(OE, { elementType: L.type, children: H });
|
|
27494
27495
|
});
|
|
27495
27496
|
function NE({
|
|
@@ -27857,7 +27858,7 @@ const $E = vE.createCatalog({
|
|
|
27857
27858
|
JimboPanel: ({ props: t, children: e }) => /* @__PURE__ */ b(wt, { title: t.title, tone: t.tone, children: e }),
|
|
27858
27859
|
JimboInnerPanel: ({ props: t, children: e }) => /* @__PURE__ */ b($t, { className: t.className, children: e }),
|
|
27859
27860
|
JimboRow: ({ props: t, children: e }) => /* @__PURE__ */ b(
|
|
27860
|
-
|
|
27861
|
+
ae,
|
|
27861
27862
|
{
|
|
27862
27863
|
gap: t.gap,
|
|
27863
27864
|
wrap: t.wrap,
|
|
@@ -28032,7 +28033,7 @@ export {
|
|
|
28032
28033
|
Ly as JimboPickerPair,
|
|
28033
28034
|
Vd as JimboPickerSearch,
|
|
28034
28035
|
Ry as JimboPickerSection,
|
|
28035
|
-
|
|
28036
|
+
ae as JimboRow,
|
|
28036
28037
|
RN as JimboSectionHeader,
|
|
28037
28038
|
Ir as JimboSeedCopyChip,
|
|
28038
28039
|
Oy as JimboShopBelt,
|