jaml-ui 2.4.0 → 2.5.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.
Files changed (66) hide show
  1. package/dist/assets/searchPoolWorker-DA5uFkl3.js +2 -0
  2. package/dist/assets/searchPoolWorker-DA5uFkl3.js.map +1 -0
  3. package/dist/chunks/{jamlSeeds-CKHvpjhC.js → jamlSeeds-CRthre97.js} +23 -20
  4. package/dist/chunks/{jamlSeeds-CKHvpjhC.js.map → jamlSeeds-CRthre97.js.map} +1 -1
  5. package/dist/chunks/runtime-D7eHq1kP.js +2060 -0
  6. package/dist/chunks/{runtime-Dx5VPTsV.js.map → runtime-D7eHq1kP.js.map} +1 -1
  7. package/dist/chunks/{searchPoolWorker-CEK2FyxS.js → searchPoolWorker-649yzf3l.js} +2 -2
  8. package/dist/chunks/searchPoolWorker-649yzf3l.js.map +1 -0
  9. package/dist/chunks/spriteMapper-BqG15k6f.js +2496 -0
  10. package/dist/chunks/{spriteMapper-C8uYedXB.js.map → spriteMapper-BqG15k6f.js.map} +1 -1
  11. package/dist/chunks/{ui-BK5rM4AS.js → ui-DwggmAYr.js} +1084 -1164
  12. package/dist/chunks/ui-DwggmAYr.js.map +1 -0
  13. package/dist/components/JamlAestheticSelector.d.ts +1 -1
  14. package/dist/components/JamlCurator.d.ts +1 -0
  15. package/dist/components/JamlIdeVisual.d.ts +0 -2
  16. package/dist/components/JimmolateEditor.d.ts +1 -1
  17. package/dist/components/SeedFinderApp.d.ts +1 -1
  18. package/dist/core.js +13 -10
  19. package/dist/core.js.map +1 -1
  20. package/dist/hooks/useAnalyzer.d.ts +1 -6
  21. package/dist/hooks/useSearch.d.ts +3 -4
  22. package/dist/hooks/useSearchPool.d.ts +1 -1
  23. package/dist/index.d.ts +4 -1
  24. package/dist/index.js +15205 -10106
  25. package/dist/index.js.map +1 -1
  26. package/dist/json-render/builders/analyzer.d.ts +23 -0
  27. package/dist/json-render/builders/encyclopedia.d.ts +14 -0
  28. package/dist/json-render/builders/search.d.ts +24 -0
  29. package/dist/json-render/catalog.d.ts +179 -0
  30. package/dist/json-render/components/domain.d.ts +58 -0
  31. package/dist/json-render/components/game.d.ts +22 -0
  32. package/dist/json-render/components/layout.d.ts +50 -0
  33. package/dist/json-render/components/reference.d.ts +38 -0
  34. package/dist/json-render/engine.d.ts +38 -0
  35. package/dist/json-render/index.d.ts +28 -0
  36. package/dist/json-render/knowledge/bosses.d.ts +18 -0
  37. package/dist/json-render/knowledge/decks.d.ts +22 -0
  38. package/dist/json-render/knowledge/jokers.d.ts +23 -0
  39. package/dist/json-render/knowledge/synergies.d.ts +21 -0
  40. package/dist/json-render/registry.d.ts +14 -0
  41. package/dist/lib/hooks/useSeedAnalyzer.d.ts +2 -14
  42. package/dist/lib/jaml/jamlLangCodemirror.d.ts +3 -12
  43. package/dist/lib/motely/runtime.d.ts +31 -4
  44. package/dist/lib/types.d.ts +1 -1
  45. package/dist/lib/utils.d.ts +2 -0
  46. package/dist/motely.d.ts +3 -3
  47. package/dist/motely.js +93 -73
  48. package/dist/motely.js.map +1 -1
  49. package/dist/ui/JimboPanelSplitter.d.ts +8 -0
  50. package/dist/ui/jimbo.css +1 -1
  51. package/dist/ui/showcase.d.ts +38 -0
  52. package/dist/ui.d.ts +0 -1
  53. package/dist/ui.js +2 -2
  54. package/package.json +40 -45
  55. package/dist/assets/searchPoolWorker-BdrYmnig.js +0 -2
  56. package/dist/assets/searchPoolWorker-BdrYmnig.js.map +0 -1
  57. package/dist/chunks/runtime-Dx5VPTsV.js +0 -2031
  58. package/dist/chunks/searchPoolWorker-CEK2FyxS.js.map +0 -1
  59. package/dist/chunks/spriteMapper-C8uYedXB.js +0 -2455
  60. package/dist/chunks/ui-BK5rM4AS.js.map +0 -1
  61. package/dist/r3f/Card3D.d.ts +0 -48
  62. package/dist/r3f/CardTable.d.ts +0 -35
  63. package/dist/r3f.d.ts +0 -2
  64. package/dist/r3f.js +0 -275
  65. package/dist/r3f.js.map +0 -1
  66. package/dist/ui/JimboCookLever.d.ts +0 -30
@@ -1,70 +1,71 @@
1
- import { m as e, n as t, r as n, t as r, u as i, x as a } from "./spriteMapper-C8uYedXB.js";
2
- import o, { createContext as s, createElement as c, forwardRef as l, memo as u, useCallback as d, useContext as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
3
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
4
- import { FiCheck as x, FiCopy as S } from "react-icons/fi";
5
- import { createPortal as C } from "react-dom";
1
+ import { C as e, S as t, n, p as r, r as i, t as a, x as o, y as s } from "./spriteMapper-BqG15k6f.js";
2
+ import c, { createContext as l, createElement as u, forwardRef as d, memo as f, useCallback as p, useContext as m, useEffect as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y } from "react";
3
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
4
+ import { FiCheck as C, FiCopy as w } from "react-icons/fi";
5
+ import { createPortal as ee } from "react-dom";
6
6
  //#region src/ui/tokens.ts
7
- var w = {
8
- RED: "#ff4c40",
9
- BLUE: "#0093ff",
10
- GREEN: "#429f79",
11
- ORANGE: "#ff9800",
12
- GOLD: "#e4b643",
13
- PURPLE: "#9e74ce",
14
- DARK_RED: "#a02721",
15
- DARK_BLUE: "#0057a1",
16
- DARK_ORANGE: "#a05b00",
17
- DARK_GREEN: "#215f46",
18
- DARK_PURPLE: "#5e437e",
19
- DARK_GREY: "#3a5055",
20
- DARKEST: "#1e2b2d",
21
- GREY: "#708386",
22
- TEAL_GREY: "#404c4e",
23
- PANEL_EDGE: "#1e2e32",
24
- INNER_BORDER: "#334461",
25
- BORDER_SILVER: "#b9c2d2",
26
- BORDER_SOUTH: "#777e89",
27
- GOLD_TEXT: "#e4b643",
28
- GREEN_TEXT: "#35bd86",
29
- ORANGE_TEXT: "#ff8f00",
30
- WHITE: "#ffffff",
31
- BLACK: "#000000",
32
- TAROT_BUTTON: "#9e74ce",
33
- PLANET_BUTTON: "#00a7ca",
34
- SPECTRAL_BUTTON: "#2e76fd",
35
- TAROT_BUTTON_DARK: "#5e437e",
36
- PLANET_BUTTON_DARK: "#00657c",
37
- SPECTRAL_BUTTON_DARK: "#14449e"
38
- };
39
- function T(e, t) {
7
+ function te(e, t) {
40
8
  let n = e.replace("#", "");
41
9
  return `rgba(${parseInt(n.slice(0, 2), 16)}, ${parseInt(n.slice(2, 4), 16)}, ${parseInt(n.slice(4, 6), 16)}, ${t})`;
42
10
  }
43
- var E = {
44
- JUICE_UP_SCALE: 1.05,
45
- JUICE_DOWN_SCALE: 1,
46
- JUICE_DURATION: 150,
47
- JUICE_EASING: "cubic-bezier(0.34, 1.56, 0.64, 1)",
48
- SWAY_AMOUNT: 1.5,
49
- SWAY_DURATION: 4e3,
50
- PRESS_TRANSLATE_Y: 2,
51
- PRESS_DURATION: 50,
52
- CARD_TILT_MAX: 6,
53
- MENU_SINK_DURATION: 200,
54
- MENU_RISE_DURATION: 300,
55
- MENU_ORBIT_DURATION: 320,
56
- LETTER_POP_RATE: 3,
57
- LETTER_BUMP_RATE: 2.666
58
- };
11
+ var T, E, D = e((() => {
12
+ T = {
13
+ RED: "#ff4c40",
14
+ BLUE: "#0093ff",
15
+ GREEN: "#429f79",
16
+ ORANGE: "#ff9800",
17
+ GOLD: "#e4b643",
18
+ PURPLE: "#9e74ce",
19
+ DARK_RED: "#a02721",
20
+ DARK_BLUE: "#0057a1",
21
+ DARK_ORANGE: "#a05b00",
22
+ DARK_GREEN: "#215f46",
23
+ DARK_PURPLE: "#5e437e",
24
+ DARK_GREY: "#3a5055",
25
+ DARKEST: "#1e2b2d",
26
+ GREY: "#708386",
27
+ TEAL_GREY: "#404c4e",
28
+ PANEL_EDGE: "#1e2e32",
29
+ INNER_BORDER: "#334461",
30
+ BORDER_SILVER: "#b9c2d2",
31
+ BORDER_SOUTH: "#777e89",
32
+ GOLD_TEXT: "#e4b643",
33
+ GREEN_TEXT: "#35bd86",
34
+ ORANGE_TEXT: "#ff8f00",
35
+ WHITE: "#ffffff",
36
+ BLACK: "#000000",
37
+ TAROT_BUTTON: "#9e74ce",
38
+ PLANET_BUTTON: "#00a7ca",
39
+ SPECTRAL_BUTTON: "#2e76fd",
40
+ TAROT_BUTTON_DARK: "#5e437e",
41
+ PLANET_BUTTON_DARK: "#00657c",
42
+ SPECTRAL_BUTTON_DARK: "#14449e"
43
+ }, E = {
44
+ JUICE_UP_SCALE: 1.05,
45
+ JUICE_DOWN_SCALE: 1,
46
+ JUICE_DURATION: 150,
47
+ JUICE_EASING: "cubic-bezier(0.34, 1.56, 0.64, 1)",
48
+ SWAY_AMOUNT: 1.5,
49
+ SWAY_DURATION: 4e3,
50
+ PRESS_TRANSLATE_Y: 2,
51
+ PRESS_DURATION: 50,
52
+ CARD_TILT_MAX: 6,
53
+ MENU_SINK_DURATION: 200,
54
+ MENU_RISE_DURATION: 300,
55
+ MENU_ORBIT_DURATION: 320,
56
+ LETTER_POP_RATE: 3,
57
+ LETTER_BUMP_RATE: 2.666
58
+ };
59
+ }));
59
60
  //#endregion
60
61
  //#region src/ui/hooks.ts
61
- function D(e) {
62
+ function O(e) {
62
63
  return new Promise((t) => {
63
64
  let n = new window.Image();
64
65
  n.addEventListener("load", () => t(n)), n.addEventListener("error", () => t(null)), n.src = e;
65
66
  });
66
67
  }
67
- function O(e, t, n, r, i) {
68
+ function k(e, t, n, r, i) {
68
69
  if (!n || !r || !r?.pos) return 0;
69
70
  let a = n.width / r.columns, o = n.height / r.rows, s = e.style;
70
71
  if (r.order === 0 && (e.width = a, e.height = o, s.width = `${a}px`, s.height = `${o}px`), s.imageRendering = "pixelated", t.imageSmoothingEnabled = !0, t.save(), r.animated && i) {
@@ -73,9 +74,9 @@ function O(e, t, n, r, i) {
73
74
  }
74
75
  return t.drawImage(n, r.pos.x * a, r.pos.y * o, a, o, 0, 0, e.width, e.height), t.restore(), a / o;
75
76
  }
76
- function k(e) {
77
- let t = g(null);
78
- return p(() => {
77
+ function A(e) {
78
+ let t = v(null);
79
+ return h(() => {
79
80
  if (!e || !t.current) return;
80
81
  let n, r = Date.now(), i = t.current, a = () => {
81
82
  let e = (Date.now() - r) % E.SWAY_DURATION / E.SWAY_DURATION * Math.PI * 2;
@@ -86,30 +87,6 @@ function k(e) {
86
87
  };
87
88
  }, [e]), t;
88
89
  }
89
- var A = {
90
- primary: [
91
- 1,
92
- .2,
93
- .2
94
- ],
95
- secondary: [
96
- 0,
97
- .5,
98
- 1
99
- ],
100
- dark: [
101
- .05,
102
- .08,
103
- .1
104
- ],
105
- speed: 1,
106
- spinRotation: -2,
107
- spinAmount: .35,
108
- pixelFilter: 740 * .33,
109
- contrast: 4.5,
110
- lighting: .5,
111
- transitionMs: 800
112
- };
113
90
  function j(e, t) {
114
91
  if (!e) return t;
115
92
  if (Array.isArray(e)) return [
@@ -126,11 +103,11 @@ function j(e, t) {
126
103
  (r & 255) / 255
127
104
  ];
128
105
  }
129
- function M(e = {}) {
130
- let t = g(null), n = g(e);
131
- return m(() => {
106
+ function ne(e = {}) {
107
+ let t = v(null), n = v(e);
108
+ return g(() => {
132
109
  n.current = e;
133
- }), p(() => {
110
+ }), h(() => {
134
111
  let e = t.current;
135
112
  if (!e) return;
136
113
  let r = e.getContext("webgl");
@@ -165,43 +142,43 @@ function M(e = {}) {
165
142
  let l = r.getAttribLocation(s, "position");
166
143
  r.enableVertexAttribArray(l), r.vertexAttribPointer(l, 2, r.FLOAT, !1, 0, 0);
167
144
  let u = r.getUniformLocation(s, "u_time"), d = r.getUniformLocation(s, "u_resolution"), f = r.getUniformLocation(s, "u_color1"), p = r.getUniformLocation(s, "u_color2"), m = r.getUniformLocation(s, "u_color3"), h = r.getUniformLocation(s, "u_spinRotation"), g = r.getUniformLocation(s, "u_spinSpeed"), _ = r.getUniformLocation(s, "u_spinAmount"), v = r.getUniformLocation(s, "u_pixelFilter"), y = r.getUniformLocation(s, "u_contrast"), b = r.getUniformLocation(s, "u_lighting"), x = (e) => ({
168
- spinRotation: e.spinRotation ?? A.spinRotation,
169
- spinSpeed: 4.5 * (e.speed ?? A.speed),
170
- spinAmount: e.spinAmount ?? A.spinAmount,
171
- pixelFilter: e.pixelFilter ?? A.pixelFilter,
172
- contrast: e.contrast ?? A.contrast,
173
- lighting: e.lighting ?? A.lighting
145
+ spinRotation: e.spinRotation ?? M.spinRotation,
146
+ spinSpeed: 4.5 * (e.speed ?? M.speed),
147
+ spinAmount: e.spinAmount ?? M.spinAmount,
148
+ pixelFilter: e.pixelFilter ?? M.pixelFilter,
149
+ contrast: e.contrast ?? M.contrast,
150
+ lighting: e.lighting ?? M.lighting
174
151
  }), S = n.current, C = [
175
- j(S.primary, A.primary),
176
- j(S.secondary, A.secondary),
177
- j(S.dark, A.dark)
178
- ], w = x(S), T = performance.now(), E = T, D = 0, O = () => {
179
- let t = performance.now(), i = Math.max(0, t - E);
180
- E = t;
152
+ j(S.primary, M.primary),
153
+ j(S.secondary, M.secondary),
154
+ j(S.dark, M.dark)
155
+ ], w = x(S), ee = performance.now(), te = ee, T = 0, E = () => {
156
+ let t = performance.now(), i = Math.max(0, t - te);
157
+ te = t;
181
158
  let a = n.current, o = [
182
- j(a.primary, A.primary),
183
- j(a.secondary, A.secondary),
184
- j(a.dark, A.dark)
185
- ], s = x(a), c = Math.max(1, a.transitionMs ?? A.transitionMs), l = 1 - Math.exp(-i / c);
159
+ j(a.primary, M.primary),
160
+ j(a.secondary, M.secondary),
161
+ j(a.dark, M.dark)
162
+ ], s = x(a), c = Math.max(1, a.transitionMs ?? M.transitionMs), l = 1 - Math.exp(-i / c);
186
163
  for (let e = 0; e < 3; e++) for (let t = 0; t < 3; t++) C[e][t] += (o[e][t] - C[e][t]) * l;
187
164
  let S = (e) => {
188
165
  w[e] += (s[e] - w[e]) * l;
189
166
  };
190
167
  S("spinRotation"), S("spinSpeed"), S("spinAmount"), S("pixelFilter"), S("contrast"), S("lighting");
191
- let k = e.clientWidth, M = e.clientHeight;
192
- (e.width !== k || e.height !== M) && (e.width = k, e.height = M, r.viewport(0, 0, r.drawingBufferWidth, r.drawingBufferHeight)), r.uniform1f(u, (t - T) / 1e3), r.uniform2f(d, e.width, e.height), r.uniform3f(f, C[0][0], C[0][1], C[0][2]), r.uniform3f(p, C[1][0], C[1][1], C[1][2]), r.uniform3f(m, C[2][0], C[2][1], C[2][2]), r.uniform1f(h, w.spinRotation), r.uniform1f(g, w.spinSpeed), r.uniform1f(_, w.spinAmount), r.uniform1f(v, w.pixelFilter), r.uniform1f(y, w.contrast), r.uniform1f(b, w.lighting), r.drawArrays(r.TRIANGLES, 0, 6), D = requestAnimationFrame(O);
168
+ let D = e.clientWidth, O = e.clientHeight;
169
+ (e.width !== D || e.height !== O) && (e.width = D, e.height = O, r.viewport(0, 0, r.drawingBufferWidth, r.drawingBufferHeight)), r.uniform1f(u, (t - ee) / 1e3), r.uniform2f(d, e.width, e.height), r.uniform3f(f, C[0][0], C[0][1], C[0][2]), r.uniform3f(p, C[1][0], C[1][1], C[1][2]), r.uniform3f(m, C[2][0], C[2][1], C[2][2]), r.uniform1f(h, w.spinRotation), r.uniform1f(g, w.spinSpeed), r.uniform1f(_, w.spinAmount), r.uniform1f(v, w.pixelFilter), r.uniform1f(y, w.contrast), r.uniform1f(b, w.lighting), r.drawArrays(r.TRIANGLES, 0, 6), T = requestAnimationFrame(E);
193
170
  };
194
- return D = requestAnimationFrame(O), () => {
195
- cancelAnimationFrame(D), r.deleteProgram(s), r.deleteShader(a), r.deleteShader(o), r.deleteBuffer(c);
171
+ return T = requestAnimationFrame(E), () => {
172
+ cancelAnimationFrame(T), r.deleteProgram(s), r.deleteShader(a), r.deleteShader(o), r.deleteBuffer(c);
196
173
  };
197
174
  }, []), t;
198
175
  }
199
- function ee({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r = !1 }) {
200
- let [i, a] = _(!1), [o, s] = _(null), c = g(null), l = g(null), u = g(null), f = d(() => {
176
+ function re({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r = !1 }) {
177
+ let [i, a] = y(!1), [o, s] = y(null), c = v(null), l = v(null), u = v(null), d = p(() => {
201
178
  r || (u.current && clearTimeout(u.current), u.current = setTimeout(() => a(!0), n));
202
- }, [r, n]), m = d(() => {
179
+ }, [r, n]), f = p(() => {
203
180
  u.current && clearTimeout(u.current), a(!1), s(null);
204
- }, []), h = d(() => {
181
+ }, []), m = p(() => {
205
182
  let e = c.current, n = l.current;
206
183
  if (!e || !n) return;
207
184
  let r = e.getBoundingClientRect(), i = n.getBoundingClientRect(), a = r.top, o = t === "top" ? "top" : t === "bottom" ? "bottom" : a >= i.height + 12 ? "top" : "bottom", u = r.left + r.width / 2 - i.width / 2, d = o === "top" ? r.top - i.height - 8 : r.bottom + 8;
@@ -211,26 +188,26 @@ function ee({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled:
211
188
  align: o
212
189
  });
213
190
  }, [t]);
214
- return p(() => {
191
+ return h(() => {
215
192
  if (!i || e !== "snap") return;
216
- let t = requestAnimationFrame(h);
217
- return window.addEventListener("resize", h), window.addEventListener("scroll", h, !0), () => {
218
- cancelAnimationFrame(t), window.removeEventListener("resize", h), window.removeEventListener("scroll", h, !0);
193
+ let t = requestAnimationFrame(m);
194
+ return window.addEventListener("resize", m), window.addEventListener("scroll", m, !0), () => {
195
+ cancelAnimationFrame(t), window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0);
219
196
  };
220
197
  }, [
221
198
  i,
222
199
  e,
223
- h
224
- ]), p(() => () => {
200
+ m
201
+ ]), h(() => () => {
225
202
  u.current && clearTimeout(u.current);
226
203
  }, []), {
227
204
  visible: i,
228
205
  pos: o,
229
206
  targetRef: c,
230
207
  tooltipRef: l,
231
- show: f,
232
- hide: m,
233
- handleMouseMove: d((t) => {
208
+ show: d,
209
+ hide: f,
210
+ handleMouseMove: p((t) => {
234
211
  e === "mouse" && s({
235
212
  left: t.clientX + 12,
236
213
  top: t.clientY + 16,
@@ -239,51 +216,51 @@ function ee({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled:
239
216
  }, [e])
240
217
  };
241
218
  }
242
- function te({ layers: t, invert: n = !1, hoverTilt: r = !1 }) {
243
- let i = g(null), a = g(null), o = g(/* @__PURE__ */ new Map()), [s, c] = _(3 / 4), [, l] = _(0), u = g(null), f = g({
219
+ function ie({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
220
+ let i = v(null), a = v(null), o = v(/* @__PURE__ */ new Map()), [s, c] = y(3 / 4), [, l] = y(0), u = v(null), d = v({
244
221
  rx: 0,
245
222
  ry: 0,
246
223
  rz: 0
247
- }), m = g({
224
+ }), f = v({
248
225
  rx: 0,
249
226
  ry: 0,
250
227
  rz: 0
251
- }), h = t?.some((e) => e.animated);
252
- p(() => {
253
- let t = !1, n = o.current;
228
+ }), m = e?.some((e) => e.animated);
229
+ h(() => {
230
+ let e = !1, t = o.current;
254
231
  return (async () => {
255
- let r = Array.from(new Set(Object.values(e).map((e) => e.src))), i = await Promise.all(r.map((e) => D(e)));
256
- t || (i.forEach((e, t) => {
257
- e && n.set(r[t], e);
232
+ let n = Array.from(new Set(Object.values(r).map((e) => e.src))), i = await Promise.all(n.map((e) => O(e)));
233
+ e || (i.forEach((e, r) => {
234
+ e && t.set(n[r], e);
258
235
  }), l((e) => e + 1));
259
236
  })().catch((e) => console.error("[JamlCardRenderer]", e)), () => {
260
- t = !0, n.clear();
237
+ e = !0, t.clear();
261
238
  };
262
- }, []), p(() => {
263
- let e = i.current;
264
- if (!e || !t || t.length === 0) return;
265
- let r = e.getContext("2d");
239
+ }, []), h(() => {
240
+ let n = i.current;
241
+ if (!n || !e || e.length === 0) return;
242
+ let r = n.getContext("2d");
266
243
  if (!r) return;
267
244
  let a = !1, s = null, u, d = (i) => {
268
- r.clearRect(0, 0, e.width, e.height), [...t].sort((e, t) => e.order - t.order).forEach((t) => {
269
- let n = o.current.get(t.source);
270
- if (n) {
271
- let a = O(e, r, n, t, h ? i : void 0);
272
- t.order === 0 && c(a);
245
+ r.clearRect(0, 0, n.width, n.height), [...e].sort((e, t) => e.order - t.order).forEach((e) => {
246
+ let t = o.current.get(e.source);
247
+ if (t) {
248
+ let a = k(n, r, t, e, m ? i : void 0);
249
+ e.order === 0 && c(a);
273
250
  return;
274
251
  }
275
- D(t.source).then((n) => {
276
- if (!(a || !n)) {
277
- if (o.current.set(t.source, n), !h) {
278
- let i = O(e, r, n, t);
279
- t.order === 0 && c(i);
252
+ O(e.source).then((t) => {
253
+ if (!(a || !t)) {
254
+ if (o.current.set(e.source, t), !m) {
255
+ let i = k(n, r, t, e);
256
+ e.order === 0 && c(i);
280
257
  }
281
258
  l((e) => e + 1);
282
259
  }
283
260
  });
284
- }), e.style.filter = n ? "invert(0.94)" : "none";
261
+ }), n.style.filter = t ? "invert(0.94)" : "none";
285
262
  };
286
- if (h) {
263
+ if (m) {
287
264
  let e = (t) => {
288
265
  a || (u === void 0 && (u = t), d(t - u), s = requestAnimationFrame(e));
289
266
  };
@@ -293,41 +270,41 @@ function te({ layers: t, invert: n = !1, hoverTilt: r = !1 }) {
293
270
  a = !0, s !== null && cancelAnimationFrame(s);
294
271
  };
295
272
  }, [
273
+ e,
296
274
  t,
297
- n,
298
- h
275
+ m
299
276
  ]);
300
- let v = d(() => {
277
+ let g = p(() => {
301
278
  u.current !== null && (cancelAnimationFrame(u.current), u.current = null);
302
- }, []), y = d(() => {
279
+ }, []), _ = p(() => {
303
280
  let e = i.current;
304
281
  if (!e) return;
305
- let t = m.current;
282
+ let t = f.current;
306
283
  e.style.transform = `rotateX(${t.rx}deg) rotateY(${t.ry}deg) rotateZ(${t.rz}deg)`;
307
- }, []), b = d((e, t) => {
308
- v();
284
+ }, []), b = p((e, t) => {
285
+ g();
309
286
  let n = performance.now(), r = (i) => {
310
287
  let a = Math.min(.05, (i - n) / 1e3);
311
288
  n = i;
312
- let o = f.current, s = m.current, c = 1 - Math.exp(-e * a);
313
- if (s.rx += (o.rx - s.rx) * c, s.ry += (o.ry - s.ry) * c, s.rz += (o.rz - s.rz) * c, y(), Math.abs(o.rx - s.rx) < .02 && Math.abs(o.ry - s.ry) < .02 && Math.abs(o.rz - s.rz) < .02) {
314
- s.rx = o.rx, s.ry = o.ry, s.rz = o.rz, y(), u.current = null, t?.();
289
+ let o = d.current, s = f.current, c = 1 - Math.exp(-e * a);
290
+ if (s.rx += (o.rx - s.rx) * c, s.ry += (o.ry - s.ry) * c, s.rz += (o.rz - s.rz) * c, _(), Math.abs(o.rx - s.rx) < .02 && Math.abs(o.ry - s.ry) < .02 && Math.abs(o.rz - s.rz) < .02) {
291
+ s.rx = o.rx, s.ry = o.ry, s.rz = o.rz, _(), u.current = null, t?.();
315
292
  return;
316
293
  }
317
294
  u.current = requestAnimationFrame(r);
318
295
  };
319
296
  u.current = requestAnimationFrame(r);
320
- }, [v, y]);
321
- return p(() => () => v(), [v]), {
297
+ }, [g, _]);
298
+ return h(() => () => g(), [g]), {
322
299
  canvasRef: i,
323
300
  containerRef: a,
324
301
  ratio: s,
325
302
  handlers: {
326
- onPointerEnter: r ? (e) => {
327
- !r || e.pointerType === "touch" || (a.current?.setAttribute("data-hovered", "true"), b(22));
303
+ onPointerEnter: n ? (e) => {
304
+ !n || e.pointerType === "touch" || (a.current?.setAttribute("data-hovered", "true"), b(22));
328
305
  } : void 0,
329
- onPointerLeave: r ? () => {
330
- r && (a.current?.setAttribute("data-hovered", "false"), f.current = {
306
+ onPointerLeave: n ? () => {
307
+ n && (a.current?.setAttribute("data-hovered", "false"), d.current = {
331
308
  rx: 0,
332
309
  ry: 0,
333
310
  rz: 0
@@ -336,20 +313,20 @@ function te({ layers: t, invert: n = !1, hoverTilt: r = !1 }) {
336
313
  e && (e.style.transform = "");
337
314
  }));
338
315
  } : void 0,
339
- onPointerMove: r ? (e) => {
340
- if (!r || e.pointerType === "touch") return;
341
- let t = e.currentTarget.getBoundingClientRect(), n = Math.max(-1, Math.min(1, ((e.clientX - t.left) / t.width - .5) * 2)), i = Math.max(-1, Math.min(1, ((e.clientY - t.top) / t.height - .5) * 2));
342
- f.current = {
316
+ onPointerMove: n ? (e) => {
317
+ if (!n || e.pointerType === "touch") return;
318
+ let t = e.currentTarget.getBoundingClientRect(), r = Math.max(-1, Math.min(1, ((e.clientX - t.left) / t.width - .5) * 2)), i = Math.max(-1, Math.min(1, ((e.clientY - t.top) / t.height - .5) * 2));
319
+ d.current = {
343
320
  rx: i * -10,
344
- ry: n * 12,
345
- rz: n * i * -1.2
346
- }, a.current?.style.setProperty("--j-card-glare-x", `${(n + 1) * 50}%`), a.current?.style.setProperty("--j-card-glare-y", `${(1 - i) * 50}%`), b(22);
321
+ ry: r * 12,
322
+ rz: r * i * -1.2
323
+ }, a.current?.style.setProperty("--j-card-glare-x", `${(r + 1) * 50}%`), a.current?.style.setProperty("--j-card-glare-y", `${(1 - i) * 50}%`), b(22);
347
324
  } : void 0
348
325
  }
349
326
  };
350
327
  }
351
- function ne(e, t, n) {
352
- let [r, i] = _(null), [a, o] = _(null), [s, c] = _(null), l = d((e, t, n) => {
328
+ function ae(e, t, n) {
329
+ let [r, i] = y(null), [a, o] = y(null), [s, c] = y(null), l = p((e, t, n) => {
353
330
  let r = "touches" in e ? e.touches[0] : e, i = e.currentTarget.getBoundingClientRect();
354
331
  o({
355
332
  clause: t,
@@ -359,22 +336,22 @@ function ne(e, t, n) {
359
336
  offX: r.clientX - i.left,
360
337
  offY: r.clientY - i.top
361
338
  }), c(null);
362
- }, []), u = g(r), f = g(a), h = g(s), v = g(e), y = g(t);
363
- m(() => {
364
- u.current = r, f.current = a, h.current = s, v.current = e, y.current = t;
339
+ }, []), u = v(r), d = v(a), f = v(s), m = v(e), _ = v(t);
340
+ g(() => {
341
+ u.current = r, d.current = a, f.current = s, m.current = e, _.current = t;
365
342
  });
366
343
  let b = r !== null || a !== null;
367
- return p(() => {
344
+ return h(() => {
368
345
  if (!b) return;
369
346
  let e = (e) => {
370
347
  let t = "touches" in e ? e : null, r = t ? t.touches[0] : e;
371
348
  if (!r) return;
372
349
  let a = u.current;
373
- if (!a && f.current) {
374
- let e = r.clientX - f.current.x, t = r.clientY - f.current.y;
350
+ if (!a && d.current) {
351
+ let e = r.clientX - d.current.x, t = r.clientY - d.current.y;
375
352
  if (Math.hypot(e, t) < 8) return;
376
353
  a = {
377
- ...f.current,
354
+ ...d.current,
378
355
  x: r.clientX,
379
356
  y: r.clientY
380
357
  }, o(null), i(a);
@@ -395,10 +372,10 @@ function ne(e, t, n) {
395
372
  }
396
373
  c(l);
397
374
  }, t = () => {
398
- let e = u.current, t = h.current;
375
+ let e = u.current, t = f.current;
399
376
  if (e && t && t !== e.fromZone) {
400
- let n = t, r = v.current;
401
- y.current({
377
+ let n = t, r = m.current;
378
+ _.current({
402
379
  ...r,
403
380
  [e.fromZone]: r[e.fromZone].filter((t) => t.id !== e.clause.id),
404
381
  [n]: [...r[n], { ...e.clause }]
@@ -415,10 +392,35 @@ function ne(e, t, n) {
415
392
  onDragStart: l
416
393
  };
417
394
  }
418
- //#endregion
419
- //#region src/ui/sprites.tsx
420
- function re({ name: e, sheet: i, width: o = 40, height: s, style: c, className: l }) {
421
- let u = n(e), d = i ?? u?.type ?? "Jokers", f = r[d], p = t(d), m = u?.pos ?? p.pos, h = o;
395
+ var M, oe = e((() => {
396
+ D(), s(), M = {
397
+ primary: [
398
+ 1,
399
+ .2,
400
+ .2
401
+ ],
402
+ secondary: [
403
+ 0,
404
+ .5,
405
+ 1
406
+ ],
407
+ dark: [
408
+ .05,
409
+ .08,
410
+ .1
411
+ ],
412
+ speed: 1,
413
+ spinRotation: -2,
414
+ spinAmount: .35,
415
+ pixelFilter: 740 * .33,
416
+ contrast: 4.5,
417
+ lighting: .5,
418
+ transitionMs: 800
419
+ };
420
+ }));
421
+ oe(), o(), s();
422
+ function se({ name: e, sheet: r, width: o = 40, height: s, style: c, className: l }) {
423
+ let u = i(e), d = r ?? u?.type ?? "Jokers", f = a[d], p = n(d), m = u?.pos ?? p.pos, h = o;
422
424
  [
423
425
  "Jokers",
424
426
  "Tarots",
@@ -430,23 +432,23 @@ function re({ name: e, sheet: i, width: o = 40, height: s, style: c, className:
430
432
  ].includes(d) && (h = Math.round(o * 95 / 71));
431
433
  let g = s ?? h;
432
434
  if (!f) return null;
433
- let _ = o * f.cols, v = g * f.rows, b = -(m.x * o), x = -(m.y * g);
434
- return /* @__PURE__ */ y("div", {
435
+ let _ = o * f.cols, v = g * f.rows, y = -(m.x * o), b = -(m.y * g);
436
+ return /* @__PURE__ */ x("div", {
435
437
  className: l,
436
438
  style: {
437
439
  width: o,
438
440
  height: g,
439
441
  flexShrink: 0,
440
- backgroundImage: `url(${a(f.assetKey)})`,
442
+ backgroundImage: `url(${t(f.assetKey)})`,
441
443
  backgroundSize: `${_}px ${v}px`,
442
- backgroundPosition: `${b}px ${x}px`,
444
+ backgroundPosition: `${y}px ${b}px`,
443
445
  backgroundRepeat: "no-repeat",
444
446
  imageRendering: "pixelated",
445
447
  ...c
446
448
  }
447
449
  });
448
450
  }
449
- var ie = [
451
+ var ce = [
450
452
  "White",
451
453
  "Red",
452
454
  "Green",
@@ -456,21 +458,21 @@ var ie = [
456
458
  "Orange",
457
459
  "Gold"
458
460
  ];
459
- function ae({ stake: e, width: t = 29, height: n, style: r }) {
460
- let i = ie.indexOf(e.replace(" Stake", "")), o = i >= 0 ? i : 0, s = o % 5, c = Math.floor(o / 5), l = n ?? t, u = t * 5, d = l * 2;
461
- return /* @__PURE__ */ y("div", { style: {
462
- width: t,
461
+ function le({ stake: e, width: n = 29, height: r, style: i }) {
462
+ let a = ce.indexOf(e.replace(" Stake", "")), o = a >= 0 ? a : 0, s = o % 5, c = Math.floor(o / 5), l = r ?? n, u = n * 5, d = l * 2;
463
+ return /* @__PURE__ */ x("div", { style: {
464
+ width: n,
463
465
  height: l,
464
466
  flexShrink: 0,
465
- backgroundImage: `url(${a("stakes")})`,
467
+ backgroundImage: `url(${t("stakes")})`,
466
468
  backgroundSize: `${u}px ${d}px`,
467
- backgroundPosition: `-${s * t}px -${c * l}px`,
469
+ backgroundPosition: `-${s * n}px -${c * l}px`,
468
470
  backgroundRepeat: "no-repeat",
469
471
  imageRendering: "pixelated",
470
- ...r
472
+ ...i
471
473
  } });
472
474
  }
473
- var oe = {
475
+ var ue = {
474
476
  Red: {
475
477
  x: 0,
476
478
  y: 0
@@ -496,18 +498,18 @@ var oe = {
496
498
  y: 2
497
499
  }
498
500
  };
499
- function se({ deck: t, width: n = 71, height: r, style: i }) {
500
- let o = oe[t.replace(" Deck", "")] ?? oe.Red, s = r ?? n * 95 / 71, c = e.enhancers;
501
- return /* @__PURE__ */ y("div", { style: {
501
+ function de({ deck: e, width: n = 71, height: i, style: a }) {
502
+ let o = ue[e.replace(" Deck", "")] ?? ue.Red, s = i ?? n * 95 / 71, c = r.enhancers;
503
+ return /* @__PURE__ */ x("div", { style: {
502
504
  width: n,
503
505
  height: s,
504
506
  flexShrink: 0,
505
- backgroundImage: `url(${a(c.asset)})`,
507
+ backgroundImage: `url(${t(c.asset)})`,
506
508
  backgroundSize: `${n * c.columns}px ${s * c.rows}px`,
507
509
  backgroundPosition: `${-o.x * n}px ${-o.y * s}px`,
508
510
  backgroundRepeat: "no-repeat",
509
511
  imageRendering: "pixelated",
510
- ...i
512
+ ...a
511
513
  } });
512
514
  }
513
515
  //#endregion
@@ -516,11 +518,11 @@ function N({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1,
516
518
  let u = `j-text--${t}`, d = `j-text--${e}`, f = n ? "" : "j-text--no-shadow", p = r ? "j-text--dance-container" : "", m = {};
517
519
  i != null && (m.letterSpacing = i), s && Object.assign(m, s);
518
520
  let h = c;
519
- return r && typeof c == "string" && (h = c.split("").map((e, t) => /* @__PURE__ */ y("span", {
521
+ return r && typeof c == "string" && (h = c.split("").map((e, t) => /* @__PURE__ */ x("span", {
520
522
  className: "j-font-dance-char",
521
523
  style: { animationDelay: `${t * -.15}s` },
522
524
  children: e === " " ? "\xA0" : e
523
- }, t))), /* @__PURE__ */ y(a, {
525
+ }, t))), /* @__PURE__ */ x(a, {
524
526
  className: `j-text ${u} ${d} ${f} ${p} ${o}`.trim(),
525
527
  style: Object.keys(m).length > 0 ? m : void 0,
526
528
  ...l,
@@ -529,8 +531,8 @@ function N({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1,
529
531
  }
530
532
  //#endregion
531
533
  //#region src/ui/JimboTextInput.tsx
532
- var ce = o.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
533
- return /* @__PURE__ */ y("input", {
534
+ var fe = c.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
535
+ return /* @__PURE__ */ x("input", {
534
536
  ref: i,
535
537
  className: `j-text-input ${e}`.trim(),
536
538
  "aria-invalid": n ?? t,
@@ -540,20 +542,20 @@ var ce = o.forwardRef(function({ className: e = "", invalid: t = !1, "aria-inval
540
542
  });
541
543
  //#endregion
542
544
  //#region src/ui/JimboPicker.tsx
543
- function le({ className: e = "", ...t }) {
544
- return /* @__PURE__ */ y("div", {
545
+ function pe({ className: e = "", ...t }) {
546
+ return /* @__PURE__ */ x("div", {
545
547
  className: `j-picker ${e}`.trim(),
546
548
  ...t
547
549
  });
548
550
  }
549
- function ue({ className: e = "", ...t }) {
550
- return /* @__PURE__ */ y("div", {
551
+ function me({ className: e = "", ...t }) {
552
+ return /* @__PURE__ */ x("div", {
551
553
  className: `j-picker__section ${e}`.trim(),
552
554
  ...t
553
555
  });
554
556
  }
555
- function de({ legendary: e, scroll: t, className: n = "", ...r }) {
556
- return /* @__PURE__ */ y("div", {
557
+ function he({ legendary: e, scroll: t, className: n = "", ...r }) {
558
+ return /* @__PURE__ */ x("div", {
557
559
  className: [
558
560
  "j-picker__grid",
559
561
  e && "j-picker__grid--legendary",
@@ -563,82 +565,82 @@ function de({ legendary: e, scroll: t, className: n = "", ...r }) {
563
565
  ...r
564
566
  });
565
567
  }
566
- function fe({ muted: e, className: t = "", ...n }) {
567
- return /* @__PURE__ */ y("div", {
568
+ function ge({ muted: e, className: t = "", ...n }) {
569
+ return /* @__PURE__ */ x("div", {
568
570
  className: `j-picker__item j-juice-hover ${t}`.trim(),
569
571
  "data-muted": e,
570
572
  ...n
571
573
  });
572
574
  }
573
- function pe({ className: e = "", ...t }) {
574
- return /* @__PURE__ */ y("div", {
575
+ function _e({ className: e = "", ...t }) {
576
+ return /* @__PURE__ */ x("div", {
575
577
  className: `j-picker__search ${e}`.trim(),
576
578
  ...t
577
579
  });
578
580
  }
579
- function me({ className: e = "", ...t }) {
580
- return /* @__PURE__ */ y("div", {
581
+ function ve({ className: e = "", ...t }) {
582
+ return /* @__PURE__ */ x("div", {
581
583
  className: `j-picker__pair ${e}`.trim(),
582
584
  ...t
583
585
  });
584
586
  }
585
- function he({ className: e = "", ...t }) {
586
- return /* @__PURE__ */ y("div", {
587
+ function ye({ className: e = "", ...t }) {
588
+ return /* @__PURE__ */ x("div", {
587
589
  className: `j-picker__empty ${e}`.trim(),
588
590
  ...t
589
591
  });
590
592
  }
591
- function ge({ className: e = "", ...t }) {
592
- return /* @__PURE__ */ y("div", {
593
+ function be({ className: e = "", ...t }) {
594
+ return /* @__PURE__ */ x("div", {
593
595
  className: `j-inner-panel j-picker__hint ${e}`.trim(),
594
596
  ...t
595
597
  });
596
598
  }
597
599
  //#endregion
598
600
  //#region src/ui/panel.tsx
599
- var _e = u(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ b("div", {
600
- ref: k(n),
601
+ var xe = f(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ S("div", {
602
+ ref: A(n),
601
603
  className: `j-panel ${t}`,
602
604
  style: a,
603
605
  ...o,
604
- children: [/* @__PURE__ */ y("div", {
606
+ children: [/* @__PURE__ */ x("div", {
605
607
  className: "j-panel__body",
606
608
  children: e
607
- }), r && !i && /* @__PURE__ */ y("div", {
609
+ }), r && !i && /* @__PURE__ */ x("div", {
608
610
  className: "j-panel__back",
609
- children: /* @__PURE__ */ y(ye, { onClick: r })
611
+ children: /* @__PURE__ */ x(Ce, { onClick: r })
610
612
  })]
611
613
  }));
612
- _e.displayName = "JimboPanel";
613
- var ve = u(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ y("div", {
614
+ xe.displayName = "JimboPanel";
615
+ var Se = f(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ x("div", {
614
616
  className: `j-inner-panel ${t}`,
615
617
  style: n,
616
618
  ...r,
617
619
  children: e
618
620
  }));
619
- ve.displayName = "JimboInnerPanel";
621
+ Se.displayName = "JimboInnerPanel";
620
622
  function P({ tone: e = "orange", size: t = "md", fullWidth: n = !1, disabled: r = !1, onClick: i, style: a, className: o = "", children: s, ...c }) {
621
623
  let l = t === "xs" ? "xs" : t === "sm" ? "sm" : t === "lg" ? "lg" : "md";
622
- return /* @__PURE__ */ y("button", {
624
+ return /* @__PURE__ */ x("button", {
623
625
  type: "button",
624
626
  className: `j-btn j-btn--${e} j-btn--${t} ${n ? "j-btn--full" : ""} ${r ? "j-btn--disabled" : ""} ${o}`,
625
627
  disabled: r,
626
628
  onClick: i,
627
629
  style: a,
628
630
  ...c,
629
- children: /* @__PURE__ */ y("div", {
631
+ children: /* @__PURE__ */ x("div", {
630
632
  className: "j-btn__face",
631
- children: /* @__PURE__ */ y(N, {
633
+ children: /* @__PURE__ */ x(N, {
632
634
  size: l,
633
635
  children: s
634
636
  })
635
637
  })
636
638
  });
637
639
  }
638
- function ye({ onClick: e, size: t = "sm" }) {
639
- return /* @__PURE__ */ y("div", {
640
+ function Ce({ onClick: e, size: t = "sm" }) {
641
+ return /* @__PURE__ */ x("div", {
640
642
  className: "j-back-btn-wrap j-flex j-justify-center j-w-full",
641
- children: /* @__PURE__ */ y(P, {
643
+ children: /* @__PURE__ */ x(P, {
642
644
  tone: "orange",
643
645
  size: t,
644
646
  fullWidth: !0,
@@ -648,16 +650,16 @@ function ye({ onClick: e, size: t = "sm" }) {
648
650
  })
649
651
  });
650
652
  }
651
- function be({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
652
- return t ? /* @__PURE__ */ y("div", {
653
+ function we({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
654
+ return t ? /* @__PURE__ */ x("div", {
653
655
  className: "j-modal-overlay",
654
- children: /* @__PURE__ */ b(_e, {
656
+ children: /* @__PURE__ */ S(xe, {
655
657
  onBack: a ? n : void 0,
656
658
  className: `j-modal ${i ?? ""}`,
657
- children: [r && /* @__PURE__ */ y("div", {
659
+ children: [r && /* @__PURE__ */ x("div", {
658
660
  className: "j-modal__title-wrap",
659
661
  "aria-hidden": !1,
660
- children: /* @__PURE__ */ y(N, {
662
+ children: /* @__PURE__ */ x(N, {
661
663
  as: "h2",
662
664
  size: "lg",
663
665
  className: "j-modal__title",
@@ -669,26 +671,26 @@ function be({ children: e, open: t, onClose: n, title: r, className: i, showBack
669
671
  }
670
672
  //#endregion
671
673
  //#region src/ui/jimboTabs.tsx
672
- function xe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
673
- return /* @__PURE__ */ y("div", {
674
+ function Te({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
675
+ return /* @__PURE__ */ x("div", {
674
676
  className: `j-tabs ${r}`,
675
677
  style: i,
676
678
  children: e.map((e) => {
677
679
  let r = t === e.id;
678
- return /* @__PURE__ */ b("div", {
680
+ return /* @__PURE__ */ S("div", {
679
681
  className: "j-tab",
680
682
  "data-active": r,
681
- children: [/* @__PURE__ */ y("div", {
683
+ children: [/* @__PURE__ */ x("div", {
682
684
  className: "j-tab__indicator",
683
685
  "data-active": r,
684
686
  "aria-hidden": !0,
685
- children: /* @__PURE__ */ y("svg", {
687
+ children: /* @__PURE__ */ x("svg", {
686
688
  width: 14,
687
689
  height: 10,
688
690
  viewBox: "0 0 14 10",
689
- children: /* @__PURE__ */ y("polygon", { points: "7,10 0,0 14,0" })
691
+ children: /* @__PURE__ */ x("polygon", { points: "7,10 0,0 14,0" })
690
692
  })
691
- }), /* @__PURE__ */ y(P, {
693
+ }), /* @__PURE__ */ x(P, {
692
694
  tone: "red",
693
695
  size: "sm",
694
696
  onClick: () => n(e.id),
@@ -700,8 +702,8 @@ function xe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i
700
702
  }
701
703
  //#endregion
702
704
  //#region src/ui/JimboListItem.tsx
703
- var Se = o.forwardRef(function({ active: e = !1, className: t = "", children: n, ...r }, i) {
704
- return /* @__PURE__ */ y("button", {
705
+ var Ee = c.forwardRef(function({ active: e = !1, className: t = "", children: n, ...r }, i) {
706
+ return /* @__PURE__ */ x("button", {
705
707
  ref: i,
706
708
  type: "button",
707
709
  className: `j-list-item ${t}`.trim(),
@@ -709,11 +711,15 @@ var Se = o.forwardRef(function({ active: e = !1, className: t = "", children: n,
709
711
  ...r,
710
712
  children: n
711
713
  });
712
- }), F = w, Ce = {
714
+ });
715
+ //#endregion
716
+ //#region src/ui/JimboIconButton.tsx
717
+ D();
718
+ var F = T, De = {
713
719
  xs: 22,
714
720
  sm: 26,
715
721
  md: 30
716
- }, we = {
722
+ }, Oe = {
717
723
  default: {
718
724
  rest: F.DARKEST,
719
725
  hover: F.DARK_GREY,
@@ -725,9 +731,9 @@ var Se = o.forwardRef(function({ active: e = !1, className: t = "", children: n,
725
731
  border: F.BLACK
726
732
  }
727
733
  };
728
- function Te({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label": i, disabled: a = !1, size: o = "md", tone: s = "default", children: c }) {
729
- let [l, u] = _(!1), d = Ce[o], f = we[s], p = s === "destructive" ? 2 : 1, m = s === "destructive" ? `inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 ${F.BLACK}` : void 0;
730
- return /* @__PURE__ */ y("button", {
734
+ function ke({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label": i, disabled: a = !1, size: o = "md", tone: s = "default", children: c }) {
735
+ let [l, u] = y(!1), d = De[o], f = Oe[s], p = s === "destructive" ? 2 : 1, m = s === "destructive" ? `inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 ${F.BLACK}` : void 0;
736
+ return /* @__PURE__ */ x("button", {
731
737
  "aria-label": i ?? r,
732
738
  disabled: a,
733
739
  onClick: (t) => !a && e?.(t),
@@ -760,8 +766,8 @@ function Te({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label
760
766
  }
761
767
  //#endregion
762
768
  //#region src/ui/JimboInlineEdit.tsx
763
- var Ee = o.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1, className: r = "", ...i }, a) {
764
- return /* @__PURE__ */ y("input", {
769
+ var Ae = c.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1, className: r = "", ...i }, a) {
770
+ return /* @__PURE__ */ x("input", {
765
771
  ref: a,
766
772
  type: "text",
767
773
  className: [
@@ -776,8 +782,8 @@ var Ee = o.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1,
776
782
  });
777
783
  //#endregion
778
784
  //#region src/ui/JimboBadge.tsx
779
- function De({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
780
- return /* @__PURE__ */ y("span", {
785
+ function je({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
786
+ return /* @__PURE__ */ x("span", {
781
787
  className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
782
788
  ...i,
783
789
  children: r
@@ -785,22 +791,22 @@ function De({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i
785
791
  }
786
792
  //#endregion
787
793
  //#region src/ui/jimboFlankNav.tsx
788
- function Oe({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
789
- return /* @__PURE__ */ b("div", {
794
+ function Me({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
795
+ return /* @__PURE__ */ S("div", {
790
796
  className: `j-flank ${s}`,
791
797
  style: c,
792
798
  children: [
793
- /* @__PURE__ */ y(ke, {
799
+ /* @__PURE__ */ x(Ne, {
794
800
  direction: "left",
795
801
  onClick: e,
796
802
  disabled: !n,
797
803
  "aria-label": i
798
804
  }),
799
- /* @__PURE__ */ y("div", {
805
+ /* @__PURE__ */ x("div", {
800
806
  className: "j-flank__content",
801
807
  children: o
802
808
  }),
803
- /* @__PURE__ */ y(ke, {
809
+ /* @__PURE__ */ x(Ne, {
804
810
  direction: "right",
805
811
  onClick: t,
806
812
  disabled: !r,
@@ -809,9 +815,9 @@ function Oe({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
809
815
  ]
810
816
  });
811
817
  }
812
- function ke({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
813
- let [i, a] = o.useState(!1);
814
- return /* @__PURE__ */ y("button", {
818
+ function Ne({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
819
+ let [i, a] = c.useState(!1);
820
+ return /* @__PURE__ */ x("button", {
815
821
  type: "button",
816
822
  className: "j-flank__btn",
817
823
  "data-pressed": i && !n,
@@ -824,11 +830,11 @@ function ke({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
824
830
  onMouseLeave: () => a(!1),
825
831
  onTouchStart: () => !n && a(!0),
826
832
  onTouchEnd: () => a(!1),
827
- children: /* @__PURE__ */ y(Ae, { direction: e })
833
+ children: /* @__PURE__ */ x(Pe, { direction: e })
828
834
  });
829
835
  }
830
- function Ae({ direction: e }) {
831
- return /* @__PURE__ */ y("svg", {
836
+ function Pe({ direction: e }) {
837
+ return /* @__PURE__ */ x("svg", {
832
838
  width: 28,
833
839
  height: 28,
834
840
  viewBox: "0 0 28 28",
@@ -838,14 +844,14 @@ function Ae({ direction: e }) {
838
844
  strokeLinecap: "round",
839
845
  strokeLinejoin: "round",
840
846
  "aria-hidden": !0,
841
- children: /* @__PURE__ */ y("polyline", { points: e === "left" ? "18,4 8,14 18,24" : "10,4 20,14 10,24" })
847
+ children: /* @__PURE__ */ x("polyline", { points: e === "left" ? "18,4 8,14 18,24" : "10,4 20,14 10,24" })
842
848
  });
843
849
  }
844
850
  //#endregion
845
851
  //#region src/ui/JimboSeedCopyChip.tsx
846
- function je({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLabel: r = "Copied!", copiedDurationMs: i = 2e3, onCopy: a, className: o = "", style: s }) {
847
- let [c, l] = _(!1), u = e.trim(), d = !n && u.length > 0;
848
- return /* @__PURE__ */ b("button", {
852
+ function Fe({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLabel: r = "Copied!", copiedDurationMs: i = 2e3, onCopy: a, className: o = "", style: s }) {
853
+ let [c, l] = y(!1), u = e.trim(), d = !n && u.length > 0;
854
+ return /* @__PURE__ */ S("button", {
849
855
  type: "button",
850
856
  className: ["j-seed-copy", o].filter(Boolean).join(" "),
851
857
  style: s,
@@ -860,11 +866,11 @@ function je({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLab
860
866
  disabled: !d,
861
867
  "data-copied": c,
862
868
  "aria-label": d ? `Copy seed ${u}` : "Seed unavailable",
863
- children: [/* @__PURE__ */ y("span", {
869
+ children: [/* @__PURE__ */ x("span", {
864
870
  className: "j-seed-copy__icon",
865
871
  "aria-hidden": !0,
866
- children: y(c ? x : S, { size: 18 })
867
- }), /* @__PURE__ */ y("span", {
872
+ children: x(c ? C : w, { size: 18 })
873
+ }), /* @__PURE__ */ x("span", {
868
874
  className: "j-seed-copy__text",
869
875
  children: c ? r : u || t
870
876
  })]
@@ -872,20 +878,20 @@ function je({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLab
872
878
  }
873
879
  //#endregion
874
880
  //#region src/ui/JimboSpinner.tsx
875
- function Me({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext: a = !0, className: o = "" }) {
876
- return /* @__PURE__ */ b("div", {
881
+ function Ie({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext: a = !0, className: o = "" }) {
882
+ return /* @__PURE__ */ S("div", {
877
883
  className: `j-spinner-wrap ${o}`,
878
- children: [t && /* @__PURE__ */ y("div", {
884
+ children: [t && /* @__PURE__ */ x("div", {
879
885
  className: "j-spinner__label",
880
- children: /* @__PURE__ */ y(N, {
886
+ children: /* @__PURE__ */ x(N, {
881
887
  size: "sm",
882
888
  tone: "white",
883
889
  children: t
884
890
  })
885
- }), /* @__PURE__ */ b("div", {
891
+ }), /* @__PURE__ */ S("div", {
886
892
  className: "j-spinner",
887
893
  children: [
888
- /* @__PURE__ */ y(P, {
894
+ /* @__PURE__ */ x(P, {
889
895
  tone: "red",
890
896
  size: "sm",
891
897
  onClick: n,
@@ -893,15 +899,15 @@ function Me({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext
893
899
  "aria-label": `Previous ${t ?? "value"}`,
894
900
  children: "<"
895
901
  }),
896
- /* @__PURE__ */ y("div", {
902
+ /* @__PURE__ */ x("div", {
897
903
  className: "j-spinner__value",
898
- children: /* @__PURE__ */ y(N, {
904
+ children: /* @__PURE__ */ x(N, {
899
905
  size: "sm",
900
906
  tone: "white",
901
907
  children: e
902
908
  })
903
909
  }),
904
- /* @__PURE__ */ y(P, {
910
+ /* @__PURE__ */ x(P, {
905
911
  tone: "red",
906
912
  size: "sm",
907
913
  onClick: r,
@@ -914,23 +920,140 @@ function Me({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext
914
920
  });
915
921
  }
916
922
  //#endregion
923
+ //#region src/ui/jimboLink.tsx
924
+ function Le({ external: e = !0, className: t = "", children: n, ...r }) {
925
+ let i = e ? {
926
+ target: "_blank",
927
+ rel: "noopener noreferrer"
928
+ } : {};
929
+ return /* @__PURE__ */ x("a", {
930
+ className: `j-link ${t}`.trim(),
931
+ ...i,
932
+ ...r,
933
+ children: n
934
+ });
935
+ }
936
+ //#endregion
937
+ //#region src/ui/JimboBalatroFooter.tsx
938
+ var Re = [
939
+ {
940
+ char: "♥️",
941
+ kf: "jaml-heart"
942
+ },
943
+ {
944
+ char: "♠️",
945
+ kf: "jaml-spade"
946
+ },
947
+ {
948
+ char: "♦️",
949
+ kf: "jaml-diamond"
950
+ },
951
+ {
952
+ char: "♣️",
953
+ kf: "jaml-club"
954
+ }
955
+ ], ze = "5s";
956
+ function Be({ hidden: e = !1, className: t = "", children: n }) {
957
+ return e ? null : /* @__PURE__ */ S("div", {
958
+ className: ["j-footer", t].filter(Boolean).join(" "),
959
+ children: [/* @__PURE__ */ x("div", {
960
+ className: "j-footer__bar",
961
+ children: /* @__PURE__ */ S("p", {
962
+ className: "j-footer__line j-footer__line--wrap",
963
+ children: [
964
+ /* @__PURE__ */ x("span", {
965
+ className: "j-footer__chunk",
966
+ children: "Not affiliated with LocalThunk or PlayStack"
967
+ }),
968
+ /* @__PURE__ */ S("span", {
969
+ className: "j-footer__chunk j-footer__chunk--credit",
970
+ children: [
971
+ "Made with",
972
+ " ",
973
+ /* @__PURE__ */ x("span", {
974
+ style: {
975
+ position: "relative",
976
+ display: "inline-block",
977
+ width: "1.5em",
978
+ height: "1.2em",
979
+ verticalAlign: "middle"
980
+ },
981
+ children: Re.map(({ char: e, kf: t }) => /* @__PURE__ */ x("span", {
982
+ style: {
983
+ position: "absolute",
984
+ inset: 0,
985
+ display: "inline-flex",
986
+ alignItems: "center",
987
+ justifyContent: "center",
988
+ opacity: 0,
989
+ animationName: t,
990
+ animationDuration: ze,
991
+ animationDelay: "0s",
992
+ animationIterationCount: "infinite",
993
+ animationTimingFunction: "ease-out"
994
+ },
995
+ children: e
996
+ }, e))
997
+ }),
998
+ " ",
999
+ "for the ",
1000
+ /* @__PURE__ */ x(Le, {
1001
+ href: "https://playbalatro.com",
1002
+ children: "Balatro"
1003
+ }),
1004
+ " community"
1005
+ ]
1006
+ }),
1007
+ n ? /* @__PURE__ */ x("span", {
1008
+ className: "j-footer__extra",
1009
+ children: n
1010
+ }) : null
1011
+ ]
1012
+ })
1013
+ }), /* @__PURE__ */ x("style", { children: "\n @keyframes jaml-heart { 0%{opacity:0;transform:scale(1)} 1%{opacity:1;transform:scale(1.45)} 3.5%{opacity:1;transform:scale(1)} 61.5%{opacity:1;transform:scale(1)} 62%{opacity:0} 100%{opacity:0} }\n @keyframes jaml-spade { 0%,61.5%{opacity:0} 62%{opacity:1;transform:scale(1.45)} 64.5%{opacity:1;transform:scale(1)} 71.5%{opacity:1} 72%{opacity:0} 100%{opacity:0} }\n @keyframes jaml-diamond { 0%,71.5%{opacity:0} 72%{opacity:1;transform:scale(1.45)} 74.5%{opacity:1;transform:scale(1)} 81.5%{opacity:1} 82%{opacity:0} 100%{opacity:0} }\n @keyframes jaml-club { 0%,81.5%{opacity:0} 82%{opacity:1;transform:scale(1.45)} 84.5%{opacity:1;transform:scale(1)} 95%{opacity:1} 96%{opacity:0} 100%{opacity:0} }\n " })]
1014
+ });
1015
+ }
1016
+ //#endregion
1017
+ //#region src/ui/jimboApp.tsx
1018
+ function Ve({ children: e, className: t = "", ...n }) {
1019
+ return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
1020
+ className: `j-app ${t}`.trim(),
1021
+ ...n,
1022
+ children: e
1023
+ }), /* @__PURE__ */ x(Be, {})] });
1024
+ }
1025
+ function He({ children: e, className: t = "", ...n }) {
1026
+ return /* @__PURE__ */ x("div", {
1027
+ className: `j-app__scroll ${t}`,
1028
+ ...n,
1029
+ children: e
1030
+ });
1031
+ }
1032
+ function Ue({ children: e, className: t = "", ...n }) {
1033
+ return /* @__PURE__ */ x("div", {
1034
+ className: `j-app__footer ${t}`,
1035
+ ...n,
1036
+ children: e
1037
+ });
1038
+ }
1039
+ //#endregion
917
1040
  //#region src/ui/JimboToggleList.tsx
918
- function Ne({ items: e, onToggle: t, title: n, variant: r = "row" }) {
919
- return /* @__PURE__ */ y(_e, { children: /* @__PURE__ */ b("div", {
1041
+ function We({ items: e, onToggle: t, title: n, variant: r = "row" }) {
1042
+ return /* @__PURE__ */ x(xe, { children: /* @__PURE__ */ S("div", {
920
1043
  className: `j-toggle-list j-toggle-list--${r}`,
921
- children: [n && /* @__PURE__ */ y("div", {
1044
+ children: [n && /* @__PURE__ */ x("div", {
922
1045
  className: "j-toggle-list__title",
923
1046
  children: n
924
- }), e.map((e) => /* @__PURE__ */ b("button", {
1047
+ }), e.map((e) => /* @__PURE__ */ S("button", {
925
1048
  type: "button",
926
1049
  className: "j-toggle-item",
927
1050
  "data-variant": r,
928
1051
  "aria-pressed": e.on,
929
1052
  onClick: () => t(e.id),
930
- children: [/* @__PURE__ */ y("span", {
1053
+ children: [/* @__PURE__ */ x("span", {
931
1054
  className: "j-toggle-item__label",
932
1055
  children: e.label
933
- }), /* @__PURE__ */ y("span", {
1056
+ }), /* @__PURE__ */ x("span", {
934
1057
  className: "j-toggle-check",
935
1058
  "data-on": e.on
936
1059
  })]
@@ -939,24 +1062,24 @@ function Ne({ items: e, onToggle: t, title: n, variant: r = "row" }) {
939
1062
  }
940
1063
  //#endregion
941
1064
  //#region src/ui/jimboFilterBar.tsx
942
- function Pe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
943
- return /* @__PURE__ */ b("div", {
1065
+ function Ge({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
1066
+ return /* @__PURE__ */ S("div", {
944
1067
  className: `j-filter-bar ${c}`,
945
1068
  style: l,
946
- children: [t ? /* @__PURE__ */ b("div", {
1069
+ children: [t ? /* @__PURE__ */ S("div", {
947
1070
  className: "j-filter-bar__field",
948
- children: [/* @__PURE__ */ y("div", {
1071
+ children: [/* @__PURE__ */ x("div", {
949
1072
  className: "j-filter-bar__pill",
950
- children: /* @__PURE__ */ y(N, {
1073
+ children: /* @__PURE__ */ x(N, {
951
1074
  size: "xs",
952
1075
  children: r
953
1076
  })
954
- }), /* @__PURE__ */ b("div", {
1077
+ }), /* @__PURE__ */ S("div", {
955
1078
  className: "j-relative",
956
- children: [/* @__PURE__ */ y("div", {
1079
+ children: [/* @__PURE__ */ x("div", {
957
1080
  className: "j-filter-bar__search-icon",
958
- children: /* @__PURE__ */ y(Fe, {})
959
- }), /* @__PURE__ */ y("input", {
1081
+ children: /* @__PURE__ */ x(Ke, {})
1082
+ }), /* @__PURE__ */ x("input", {
960
1083
  type: "text",
961
1084
  value: e ?? "",
962
1085
  onChange: (e) => t(e.target.value),
@@ -964,34 +1087,34 @@ function Pe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
964
1087
  className: "j-filter-bar__input"
965
1088
  })]
966
1089
  })]
967
- }) : null, s && a ? /* @__PURE__ */ b("div", {
1090
+ }) : null, s && a ? /* @__PURE__ */ S("div", {
968
1091
  className: "j-filter-bar__field",
969
- children: [/* @__PURE__ */ y("div", {
1092
+ children: [/* @__PURE__ */ x("div", {
970
1093
  className: "j-filter-bar__pill",
971
- children: /* @__PURE__ */ y(N, {
1094
+ children: /* @__PURE__ */ x(N, {
972
1095
  size: "xs",
973
1096
  children: o
974
1097
  })
975
- }), /* @__PURE__ */ b("div", {
1098
+ }), /* @__PURE__ */ S("div", {
976
1099
  className: "j-relative",
977
- children: [/* @__PURE__ */ y("select", {
1100
+ children: [/* @__PURE__ */ x("select", {
978
1101
  value: i ?? s[0]?.value,
979
1102
  onChange: (e) => a(e.target.value),
980
1103
  className: "j-filter-bar__select",
981
- children: s.map((e) => /* @__PURE__ */ y("option", {
1104
+ children: s.map((e) => /* @__PURE__ */ x("option", {
982
1105
  value: e.value,
983
1106
  children: e.label
984
1107
  }, e.value))
985
- }), /* @__PURE__ */ y("div", {
1108
+ }), /* @__PURE__ */ x("div", {
986
1109
  className: "j-filter-bar__sort-icon",
987
- children: /* @__PURE__ */ y(Ie, {})
1110
+ children: /* @__PURE__ */ x(qe, {})
988
1111
  })]
989
1112
  })]
990
1113
  }) : null]
991
1114
  });
992
1115
  }
993
- function Fe() {
994
- return /* @__PURE__ */ b("svg", {
1116
+ function Ke() {
1117
+ return /* @__PURE__ */ S("svg", {
995
1118
  width: 24,
996
1119
  height: 24,
997
1120
  viewBox: "0 0 24 24",
@@ -1001,11 +1124,11 @@ function Fe() {
1001
1124
  strokeLinecap: "round",
1002
1125
  strokeLinejoin: "round",
1003
1126
  "aria-hidden": !0,
1004
- children: [/* @__PURE__ */ y("circle", {
1127
+ children: [/* @__PURE__ */ x("circle", {
1005
1128
  cx: 11,
1006
1129
  cy: 11,
1007
1130
  r: 8
1008
- }), /* @__PURE__ */ y("line", {
1131
+ }), /* @__PURE__ */ x("line", {
1009
1132
  x1: 21,
1010
1133
  y1: 21,
1011
1134
  x2: 16.65,
@@ -1013,8 +1136,8 @@ function Fe() {
1013
1136
  })]
1014
1137
  });
1015
1138
  }
1016
- function Ie() {
1017
- return /* @__PURE__ */ b("svg", {
1139
+ function qe() {
1140
+ return /* @__PURE__ */ S("svg", {
1018
1141
  width: 20,
1019
1142
  height: 20,
1020
1143
  viewBox: "0 0 24 24",
@@ -1025,67 +1148,69 @@ function Ie() {
1025
1148
  strokeLinejoin: "round",
1026
1149
  "aria-hidden": !0,
1027
1150
  children: [
1028
- /* @__PURE__ */ y("polyline", { points: "7 4 7 20" }),
1029
- /* @__PURE__ */ y("polyline", { points: "3 8 7 4 11 8" }),
1030
- /* @__PURE__ */ y("polyline", { points: "17 20 17 4" }),
1031
- /* @__PURE__ */ y("polyline", { points: "21 16 17 20 13 16" })
1151
+ /* @__PURE__ */ x("polyline", { points: "7 4 7 20" }),
1152
+ /* @__PURE__ */ x("polyline", { points: "3 8 7 4 11 8" }),
1153
+ /* @__PURE__ */ x("polyline", { points: "17 20 17 4" }),
1154
+ /* @__PURE__ */ x("polyline", { points: "21 16 17 20 13 16" })
1032
1155
  ]
1033
1156
  });
1034
1157
  }
1035
1158
  //#endregion
1036
1159
  //#region src/ui/jimboBackground.tsx
1037
- function Le(e) {
1038
- return /* @__PURE__ */ y("canvas", {
1039
- ref: M(e),
1160
+ oe();
1161
+ function Je(e) {
1162
+ return /* @__PURE__ */ x("canvas", {
1163
+ ref: ne(e),
1040
1164
  "aria-hidden": !0,
1041
1165
  className: "j-background-canvas"
1042
1166
  });
1043
1167
  }
1044
1168
  //#endregion
1045
1169
  //#region src/ui/jimboTooltip.tsx
1046
- function Re(e, t) {
1170
+ oe();
1171
+ function Ye(e, t) {
1047
1172
  typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
1048
1173
  }
1049
- function ze({ content: e, badge: t, variant: n = "dark", children: r, mode: i = "snap", placement: a = "auto", delay: s = 80, maxWidth: c = 280, disabled: l = !1 }) {
1050
- let { visible: u, pos: f, targetRef: p, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } = ee({
1174
+ function Xe({ content: e, badge: t, variant: n = "dark", children: r, mode: i = "snap", placement: a = "auto", delay: o = 80, maxWidth: s = 280, disabled: l = !1 }) {
1175
+ let { visible: u, pos: d, targetRef: f, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } = re({
1051
1176
  mode: i,
1052
1177
  placement: a,
1053
- delay: s,
1178
+ delay: o,
1054
1179
  disabled: l
1055
- }), x = o.Children.only(r), S = x.ref, C = d((e) => {
1056
- p.current = e, Re(S, e);
1057
- }, [S, p]);
1058
- return /* @__PURE__ */ b(v, { children: [o.cloneElement(x, {
1180
+ }), v = c.Children.only(r), y = v.ref, C = p((e) => {
1181
+ f.current = e, Ye(y, e);
1182
+ }, [y, f]);
1183
+ return /* @__PURE__ */ S(b, { children: [c.cloneElement(v, {
1059
1184
  ref: C,
1060
1185
  onMouseEnter: (e) => {
1061
- h(), x.props.onMouseEnter?.(e);
1186
+ h(), v.props.onMouseEnter?.(e);
1062
1187
  },
1063
1188
  onMouseLeave: (e) => {
1064
- g(), x.props.onMouseLeave?.(e);
1189
+ g(), v.props.onMouseLeave?.(e);
1065
1190
  },
1066
1191
  onFocus: (e) => {
1067
- h(), x.props.onFocus?.(e);
1192
+ h(), v.props.onFocus?.(e);
1068
1193
  },
1069
1194
  onBlur: (e) => {
1070
- g(), x.props.onBlur?.(e);
1195
+ g(), v.props.onBlur?.(e);
1071
1196
  },
1072
1197
  onMouseMove: (e) => {
1073
- _(e), x.props.onMouseMove?.(e);
1198
+ _(e), v.props.onMouseMove?.(e);
1074
1199
  }
1075
- }), u ? /* @__PURE__ */ b("div", {
1200
+ }), u ? /* @__PURE__ */ S("div", {
1076
1201
  ref: m,
1077
1202
  role: "tooltip",
1078
1203
  className: `j-tooltip j-tooltip--${n}`,
1079
1204
  style: {
1080
- left: f?.left ?? -9999,
1081
- top: f?.top ?? -9999,
1082
- maxWidth: c,
1083
- opacity: +!!f
1205
+ left: d?.left ?? -9999,
1206
+ top: d?.top ?? -9999,
1207
+ maxWidth: s,
1208
+ opacity: +!!d
1084
1209
  },
1085
- children: [/* @__PURE__ */ y("div", {
1210
+ children: [/* @__PURE__ */ x("div", {
1086
1211
  className: "j-tooltip__body",
1087
1212
  children: e
1088
- }), t && /* @__PURE__ */ y("div", {
1213
+ }), t && /* @__PURE__ */ x("div", {
1089
1214
  className: `j-tooltip__badge j-bg--${t.tone}`,
1090
1215
  children: t.label
1091
1216
  })]
@@ -1093,14 +1218,14 @@ function ze({ content: e, badge: t, variant: n = "dark", children: r, mode: i =
1093
1218
  }
1094
1219
  //#endregion
1095
1220
  //#region src/ui/JimboCopyButton.tsx
1096
- function Be({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r = "blue", size: i = "sm", copiedDurationMs: a = 1500, onCopy: o, className: s }) {
1097
- let [c, l] = _(!1);
1221
+ function Ze({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r = "blue", size: i = "sm", copiedDurationMs: a = 1500, onCopy: o, className: s }) {
1222
+ let [c, l] = y(!1);
1098
1223
  function u() {
1099
1224
  navigator.clipboard.writeText(e).then(() => {
1100
1225
  l(!0), o?.(), window.setTimeout(() => l(!1), a);
1101
1226
  });
1102
1227
  }
1103
- return /* @__PURE__ */ y(P, {
1228
+ return /* @__PURE__ */ x(P, {
1104
1229
  tone: r,
1105
1230
  size: i,
1106
1231
  onClick: u,
@@ -1110,173 +1235,56 @@ function Be({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r =
1110
1235
  }
1111
1236
  //#endregion
1112
1237
  //#region src/ui/codeBlock.tsx
1113
- function Ve({ code: e, language: t, filename: n, className: r = "" }) {
1238
+ function Qe({ code: e, language: t, filename: n, className: r = "" }) {
1114
1239
  let i = n?.toLowerCase().endsWith(".jaml") ? "JAML" : t?.toLowerCase() === "yaml" ? void 0 : t;
1115
- return /* @__PURE__ */ b("div", {
1240
+ return /* @__PURE__ */ S("div", {
1116
1241
  className: `j-code-block ${r}`,
1117
- children: [/* @__PURE__ */ b("div", {
1242
+ children: [/* @__PURE__ */ S("div", {
1118
1243
  className: "j-code-block__header",
1119
- children: [/* @__PURE__ */ b("div", {
1244
+ children: [/* @__PURE__ */ S("div", {
1120
1245
  className: "j-code-block__meta",
1121
- children: [n && /* @__PURE__ */ y(N, {
1246
+ children: [n && /* @__PURE__ */ x(N, {
1122
1247
  size: "xs",
1123
1248
  tone: "grey",
1124
1249
  className: "j-code-block__filename",
1125
1250
  children: n
1126
- }), i && /* @__PURE__ */ y("span", {
1251
+ }), i && /* @__PURE__ */ x("span", {
1127
1252
  className: "j-code-block__lang",
1128
- children: /* @__PURE__ */ y(N, {
1253
+ children: /* @__PURE__ */ x(N, {
1129
1254
  size: "micro",
1130
1255
  tone: "blue",
1131
1256
  children: i
1132
1257
  })
1133
1258
  })]
1134
- }), /* @__PURE__ */ y(Be, { value: e })]
1135
- }), /* @__PURE__ */ y("pre", {
1259
+ }), /* @__PURE__ */ x(Ze, { value: e })]
1260
+ }), /* @__PURE__ */ x("pre", {
1136
1261
  className: "j-code-block__pre",
1137
- children: /* @__PURE__ */ y("code", { children: e })
1262
+ children: /* @__PURE__ */ x("code", { children: e })
1138
1263
  })]
1139
1264
  });
1140
1265
  }
1141
1266
  //#endregion
1142
- //#region src/ui/jimboLink.tsx
1143
- function He({ external: e = !0, className: t = "", children: n, ...r }) {
1144
- let i = e ? {
1145
- target: "_blank",
1146
- rel: "noopener noreferrer"
1147
- } : {};
1148
- return /* @__PURE__ */ y("a", {
1149
- className: `j-link ${t}`.trim(),
1150
- ...i,
1151
- ...r,
1152
- children: n
1153
- });
1154
- }
1155
- //#endregion
1156
- //#region src/ui/JimboBalatroFooter.tsx
1157
- var Ue = [
1158
- {
1159
- char: "♥️",
1160
- kf: "jaml-heart"
1161
- },
1162
- {
1163
- char: "♠️",
1164
- kf: "jaml-spade"
1165
- },
1166
- {
1167
- char: "♦️",
1168
- kf: "jaml-diamond"
1169
- },
1170
- {
1171
- char: "♣️",
1172
- kf: "jaml-club"
1173
- }
1174
- ], We = "5s";
1175
- function Ge({ hidden: e = !1, className: t = "", children: n }) {
1176
- return e ? null : /* @__PURE__ */ b("div", {
1177
- className: ["j-footer", t].filter(Boolean).join(" "),
1178
- children: [/* @__PURE__ */ y("div", {
1179
- className: "j-footer__bar",
1180
- children: /* @__PURE__ */ b("p", {
1181
- className: "j-footer__line j-footer__line--wrap",
1182
- children: [
1183
- /* @__PURE__ */ y("span", {
1184
- className: "j-footer__chunk",
1185
- children: "Not affiliated with LocalThunk or PlayStack"
1186
- }),
1187
- /* @__PURE__ */ b("span", {
1188
- className: "j-footer__chunk j-footer__chunk--credit",
1189
- children: [
1190
- "Made with",
1191
- " ",
1192
- /* @__PURE__ */ y("span", {
1193
- style: {
1194
- position: "relative",
1195
- display: "inline-block",
1196
- width: "1.5em",
1197
- height: "1.2em",
1198
- verticalAlign: "middle"
1199
- },
1200
- children: Ue.map(({ char: e, kf: t }) => /* @__PURE__ */ y("span", {
1201
- style: {
1202
- position: "absolute",
1203
- inset: 0,
1204
- display: "inline-flex",
1205
- alignItems: "center",
1206
- justifyContent: "center",
1207
- opacity: 0,
1208
- animationName: t,
1209
- animationDuration: We,
1210
- animationDelay: "0s",
1211
- animationIterationCount: "infinite",
1212
- animationTimingFunction: "ease-out"
1213
- },
1214
- children: e
1215
- }, e))
1216
- }),
1217
- " ",
1218
- "for the ",
1219
- /* @__PURE__ */ y(He, {
1220
- href: "https://playbalatro.com",
1221
- children: "Balatro"
1222
- }),
1223
- " community"
1224
- ]
1225
- }),
1226
- n ? /* @__PURE__ */ y("span", {
1227
- className: "j-footer__extra",
1228
- children: n
1229
- }) : null
1230
- ]
1231
- })
1232
- }), /* @__PURE__ */ y("style", { children: "\n @keyframes jaml-heart { 0%{opacity:0;transform:scale(1)} 1%{opacity:1;transform:scale(1.45)} 3.5%{opacity:1;transform:scale(1)} 61.5%{opacity:1;transform:scale(1)} 62%{opacity:0} 100%{opacity:0} }\n @keyframes jaml-spade { 0%,61.5%{opacity:0} 62%{opacity:1;transform:scale(1.45)} 64.5%{opacity:1;transform:scale(1)} 71.5%{opacity:1} 72%{opacity:0} 100%{opacity:0} }\n @keyframes jaml-diamond { 0%,71.5%{opacity:0} 72%{opacity:1;transform:scale(1.45)} 74.5%{opacity:1;transform:scale(1)} 81.5%{opacity:1} 82%{opacity:0} 100%{opacity:0} }\n @keyframes jaml-club { 0%,81.5%{opacity:0} 82%{opacity:1;transform:scale(1.45)} 84.5%{opacity:1;transform:scale(1)} 95%{opacity:1} 96%{opacity:0} 100%{opacity:0} }\n " })]
1233
- });
1234
- }
1235
- //#endregion
1236
1267
  //#region src/ui/jimboCopyRow.tsx
1237
- function Ke({ value: e, label: t }) {
1238
- return /* @__PURE__ */ b("div", {
1268
+ function $e({ value: e, label: t }) {
1269
+ return /* @__PURE__ */ S("div", {
1239
1270
  className: "j-copy-row",
1240
- children: [t ? /* @__PURE__ */ y(N, {
1271
+ children: [t ? /* @__PURE__ */ x(N, {
1241
1272
  size: "xs",
1242
1273
  tone: "grey",
1243
1274
  className: "j-copy-row__label",
1244
1275
  children: t
1245
- }) : null, /* @__PURE__ */ y(je, { value: e })]
1246
- });
1247
- }
1248
- //#endregion
1249
- //#region src/ui/jimboApp.tsx
1250
- function qe({ children: e, className: t = "", ...n }) {
1251
- return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("div", {
1252
- className: `j-app ${t}`.trim(),
1253
- ...n,
1254
- children: e
1255
- }), /* @__PURE__ */ y(Ge, {})] });
1256
- }
1257
- function Je({ children: e, className: t = "", ...n }) {
1258
- return /* @__PURE__ */ y("div", {
1259
- className: `j-app__scroll ${t}`,
1260
- ...n,
1261
- children: e
1262
- });
1263
- }
1264
- function Ye({ children: e, className: t = "", ...n }) {
1265
- return /* @__PURE__ */ y("div", {
1266
- className: `j-app__footer ${t}`,
1267
- ...n,
1268
- children: e
1276
+ }) : null, /* @__PURE__ */ x(Fe, { value: e })]
1269
1277
  });
1270
1278
  }
1271
1279
  //#endregion
1272
1280
  //#region src/ui/jimboWordmark.tsx
1273
- function Xe({ title: e, subtitle: t, className: n = "" }) {
1274
- return /* @__PURE__ */ b("div", {
1281
+ function et({ title: e, subtitle: t, className: n = "" }) {
1282
+ return /* @__PURE__ */ S("div", {
1275
1283
  className: `j-wordmark ${n}`,
1276
- children: [/* @__PURE__ */ y("div", {
1284
+ children: [/* @__PURE__ */ x("div", {
1277
1285
  className: "j-wordmark__title",
1278
1286
  children: e
1279
- }), t && /* @__PURE__ */ y("div", {
1287
+ }), t && /* @__PURE__ */ x("div", {
1280
1288
  className: "j-wordmark__sub",
1281
1289
  children: t
1282
1290
  })]
@@ -1284,59 +1292,59 @@ function Xe({ title: e, subtitle: t, className: n = "" }) {
1284
1292
  }
1285
1293
  //#endregion
1286
1294
  //#region src/ui/jimboSectionHeader.tsx
1287
- function Ze({ label: e, tone: t = "blue", className: n = "" }) {
1288
- return /* @__PURE__ */ b("div", {
1295
+ function tt({ label: e, tone: t = "blue", className: n = "" }) {
1296
+ return /* @__PURE__ */ S("div", {
1289
1297
  className: `j-section-header ${n}`,
1290
- children: [/* @__PURE__ */ y("div", {
1298
+ children: [/* @__PURE__ */ x("div", {
1291
1299
  className: `j-section-header__tag j-bg--${t}`,
1292
1300
  children: e
1293
- }), /* @__PURE__ */ y("div", { className: `j-section-header__rule j-bg--${t}` })]
1301
+ }), /* @__PURE__ */ x("div", { className: `j-section-header__rule j-bg--${t}` })]
1294
1302
  });
1295
1303
  }
1296
1304
  //#endregion
1297
1305
  //#region src/ui/jimboInfoCard.tsx
1298
- function Qe({ tone: e, children: t, className: n = "", ...r }) {
1299
- return /* @__PURE__ */ y("div", {
1306
+ function nt({ tone: e, children: t, className: n = "", ...r }) {
1307
+ return /* @__PURE__ */ x("div", {
1300
1308
  className: `j-info-card ${e ? `j-border--${e}` : ""} ${n}`,
1301
1309
  style: e ? { borderColor: void 0 } : void 0,
1302
1310
  ...r,
1303
1311
  children: t
1304
1312
  });
1305
1313
  }
1306
- function $e({ children: e, className: t = "" }) {
1307
- return /* @__PURE__ */ y("div", {
1314
+ function rt({ children: e, className: t = "" }) {
1315
+ return /* @__PURE__ */ x("div", {
1308
1316
  className: `j-info-card__body ${t}`,
1309
1317
  children: e
1310
1318
  });
1311
1319
  }
1312
- function et({ children: e, className: t = "" }) {
1313
- return /* @__PURE__ */ y("div", {
1320
+ function it({ children: e, className: t = "" }) {
1321
+ return /* @__PURE__ */ x("div", {
1314
1322
  className: `j-info-card__title ${t}`,
1315
1323
  children: e
1316
1324
  });
1317
1325
  }
1318
- function tt({ children: e, className: t = "" }) {
1319
- return /* @__PURE__ */ y("div", {
1326
+ function at({ children: e, className: t = "" }) {
1327
+ return /* @__PURE__ */ x("div", {
1320
1328
  className: `j-info-card__sub ${t}`,
1321
1329
  children: e
1322
1330
  });
1323
1331
  }
1324
- function nt({ children: e, className: t = "" }) {
1325
- return /* @__PURE__ */ y("div", {
1332
+ function ot({ children: e, className: t = "" }) {
1333
+ return /* @__PURE__ */ x("div", {
1326
1334
  className: `j-info-card__aside ${t}`,
1327
1335
  children: e
1328
1336
  });
1329
1337
  }
1330
1338
  //#endregion
1331
1339
  //#region src/ui/jimboStatGrid.tsx
1332
- function rt({ items: e, className: t = "", ...n }) {
1333
- return /* @__PURE__ */ y("div", {
1340
+ function st({ items: e, className: t = "", ...n }) {
1341
+ return /* @__PURE__ */ x("div", {
1334
1342
  className: `j-stat-grid ${t}`,
1335
1343
  ...n,
1336
- children: e.map((e) => /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("div", {
1344
+ children: e.map((e) => /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("div", {
1337
1345
  className: "j-stat-grid__value",
1338
1346
  children: e.value
1339
- }), /* @__PURE__ */ y("div", {
1347
+ }), /* @__PURE__ */ x("div", {
1340
1348
  className: "j-stat-grid__label",
1341
1349
  children: e.label
1342
1350
  })] }, e.label))
@@ -1344,8 +1352,8 @@ function rt({ items: e, className: t = "", ...n }) {
1344
1352
  }
1345
1353
  //#endregion
1346
1354
  //#region src/ui/jimboLayout.tsx
1347
- function it({ gap: e, align: t, justify: n, className: r = "", ...i }) {
1348
- return /* @__PURE__ */ y("div", {
1355
+ function ct({ gap: e, align: t, justify: n, className: r = "", ...i }) {
1356
+ return /* @__PURE__ */ x("div", {
1349
1357
  className: [
1350
1358
  "j-stack",
1351
1359
  e && `j-stack--gap-${e}`,
@@ -1356,8 +1364,8 @@ function it({ gap: e, align: t, justify: n, className: r = "", ...i }) {
1356
1364
  ...i
1357
1365
  });
1358
1366
  }
1359
- function at({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...a }) {
1360
- return /* @__PURE__ */ y("div", {
1367
+ function lt({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...a }) {
1368
+ return /* @__PURE__ */ x("div", {
1361
1369
  className: [
1362
1370
  "j-row",
1363
1371
  e && `j-row--gap-${e}`,
@@ -1371,8 +1379,8 @@ function at({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...
1371
1379
  }
1372
1380
  //#endregion
1373
1381
  //#region src/ui/jimboInset.tsx
1374
- function ot({ children: e, className: t = "", ...n }) {
1375
- return /* @__PURE__ */ y("div", {
1382
+ function ut({ children: e, className: t = "", ...n }) {
1383
+ return /* @__PURE__ */ x("div", {
1376
1384
  className: `j-inset ${t}`.trim(),
1377
1385
  ...n,
1378
1386
  children: e
@@ -1380,21 +1388,21 @@ function ot({ children: e, className: t = "", ...n }) {
1380
1388
  }
1381
1389
  //#endregion
1382
1390
  //#region src/ui/JimboPanelSpinner.tsx
1383
- function st({ label: e, title: t, description: n, media: r, meta: i, className: a = "", style: o, onPrev: s, onNext: c, prevDisabled: l = !1, nextDisabled: u = !1 }) {
1384
- return /* @__PURE__ */ b("div", {
1391
+ function dt({ label: e, title: t, description: n, media: r, meta: i, className: a = "", style: o, onPrev: s, onNext: c, prevDisabled: l = !1, nextDisabled: u = !1 }) {
1392
+ return /* @__PURE__ */ S("div", {
1385
1393
  className: `j-panel-spinner ${a}`.trim(),
1386
1394
  style: o,
1387
- children: [e ? /* @__PURE__ */ y("div", {
1395
+ children: [e ? /* @__PURE__ */ x("div", {
1388
1396
  className: "j-panel-spinner__label",
1389
- children: /* @__PURE__ */ y(N, {
1397
+ children: /* @__PURE__ */ x(N, {
1390
1398
  size: "xs",
1391
1399
  tone: "grey",
1392
1400
  children: e
1393
1401
  })
1394
- }) : null, /* @__PURE__ */ b("div", {
1402
+ }) : null, /* @__PURE__ */ S("div", {
1395
1403
  className: "j-panel-spinner__row",
1396
1404
  children: [
1397
- /* @__PURE__ */ y(P, {
1405
+ /* @__PURE__ */ x(P, {
1398
1406
  tone: "red",
1399
1407
  size: "lg",
1400
1408
  className: "j-panel-spinner__arrow j-panel-spinner__arrow--left",
@@ -1403,28 +1411,28 @@ function st({ label: e, title: t, description: n, media: r, meta: i, className:
1403
1411
  "aria-label": "Previous",
1404
1412
  children: "<"
1405
1413
  }),
1406
- /* @__PURE__ */ b("div", {
1414
+ /* @__PURE__ */ S("div", {
1407
1415
  className: "j-panel-spinner__panel",
1408
1416
  children: [
1409
- r ? /* @__PURE__ */ y("div", {
1417
+ r ? /* @__PURE__ */ x("div", {
1410
1418
  className: "j-panel-spinner__media",
1411
1419
  children: r
1412
1420
  }) : null,
1413
- /* @__PURE__ */ y("div", {
1421
+ /* @__PURE__ */ x("div", {
1414
1422
  className: "j-panel-spinner__title",
1415
- children: /* @__PURE__ */ y(N, {
1423
+ children: /* @__PURE__ */ x(N, {
1416
1424
  size: "md",
1417
1425
  tone: "white",
1418
1426
  children: t
1419
1427
  })
1420
1428
  }),
1421
- i ? /* @__PURE__ */ y("div", {
1429
+ i ? /* @__PURE__ */ x("div", {
1422
1430
  className: "j-panel-spinner__meta",
1423
1431
  children: i
1424
1432
  }) : null,
1425
- n ? /* @__PURE__ */ y("div", {
1433
+ n ? /* @__PURE__ */ x("div", {
1426
1434
  className: "j-panel-spinner__description",
1427
- children: /* @__PURE__ */ y(N, {
1435
+ children: /* @__PURE__ */ x(N, {
1428
1436
  size: "micro",
1429
1437
  tone: "grey",
1430
1438
  children: n
@@ -1432,7 +1440,7 @@ function st({ label: e, title: t, description: n, media: r, meta: i, className:
1432
1440
  }) : null
1433
1441
  ]
1434
1442
  }),
1435
- /* @__PURE__ */ y(P, {
1443
+ /* @__PURE__ */ x(P, {
1436
1444
  tone: "red",
1437
1445
  size: "lg",
1438
1446
  className: "j-panel-spinner__arrow j-panel-spinner__arrow--right",
@@ -1447,106 +1455,106 @@ function st({ label: e, title: t, description: n, media: r, meta: i, className:
1447
1455
  }
1448
1456
  //#endregion
1449
1457
  //#region src/ui/JimboDeckAndStakeSelectorModal.tsx
1450
- function ct(e, t, n) {
1458
+ function ft(e, t, n) {
1451
1459
  let r = e.indexOf(t);
1452
1460
  return r < 0 ? e[0] ?? t : e[(r + n + e.length) % e.length] ?? t;
1453
1461
  }
1454
- function lt({ open: e, onClose: t, decks: n, stakes: r, deck: i, stake: a, onDeckChange: o, onStakeChange: s, title: c = "Search seeds for", deckDescription: l, stakeDescription: u }) {
1455
- return /* @__PURE__ */ y(be, {
1462
+ function pt({ open: e, onClose: t, decks: n, stakes: r, deck: i, stake: a, onDeckChange: o, onStakeChange: s, title: c = "Search seeds for", deckDescription: l, stakeDescription: u }) {
1463
+ return /* @__PURE__ */ x(we, {
1456
1464
  open: e,
1457
1465
  onClose: t,
1458
1466
  title: c,
1459
- children: /* @__PURE__ */ b(it, {
1467
+ children: /* @__PURE__ */ S(ct, {
1460
1468
  gap: "md",
1461
1469
  align: "stretch",
1462
- children: [/* @__PURE__ */ y(st, {
1470
+ children: [/* @__PURE__ */ x(dt, {
1463
1471
  label: "Deck",
1464
1472
  title: `${i} Deck`,
1465
1473
  description: l ? l(i) : " ",
1466
- media: /* @__PURE__ */ y(se, {
1474
+ media: /* @__PURE__ */ x(de, {
1467
1475
  deck: i,
1468
1476
  width: 64
1469
1477
  }),
1470
- onPrev: () => o(ct(n, i, -1)),
1471
- onNext: () => o(ct(n, i, 1))
1472
- }), /* @__PURE__ */ y(st, {
1478
+ onPrev: () => o(ft(n, i, -1)),
1479
+ onNext: () => o(ft(n, i, 1))
1480
+ }), /* @__PURE__ */ x(dt, {
1473
1481
  label: "Stake",
1474
1482
  title: `${a} Stake`,
1475
1483
  description: u ? u(a) : " ",
1476
- media: /* @__PURE__ */ y(ae, {
1484
+ media: /* @__PURE__ */ x(le, {
1477
1485
  stake: a,
1478
1486
  width: 48
1479
1487
  }),
1480
- onPrev: () => s(ct(r, a, -1)),
1481
- onNext: () => s(ct(r, a, 1))
1488
+ onPrev: () => s(ft(r, a, -1)),
1489
+ onNext: () => s(ft(r, a, 1))
1482
1490
  })]
1483
1491
  })
1484
1492
  });
1485
1493
  }
1486
1494
  //#endregion
1487
1495
  //#region node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
1488
- function ut(e) {
1496
+ function mt(e) {
1489
1497
  return e == null;
1490
1498
  }
1491
- function dt(e) {
1499
+ function ht(e) {
1492
1500
  return typeof e == "object" && !!e;
1493
1501
  }
1494
- function ft(e) {
1495
- return Array.isArray(e) ? e : ut(e) ? [] : [e];
1502
+ function gt(e) {
1503
+ return Array.isArray(e) ? e : mt(e) ? [] : [e];
1496
1504
  }
1497
- function pt(e, t) {
1505
+ function _t(e, t) {
1498
1506
  var n, r, i, a;
1499
1507
  if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
1500
1508
  return e;
1501
1509
  }
1502
- function mt(e, t) {
1510
+ function vt(e, t) {
1503
1511
  var n = "", r;
1504
1512
  for (r = 0; r < t; r += 1) n += e;
1505
1513
  return n;
1506
1514
  }
1507
- function ht(e) {
1515
+ function yt(e) {
1508
1516
  return e === 0 && 1 / e == -Infinity;
1509
1517
  }
1510
1518
  var I = {
1511
- isNothing: ut,
1512
- isObject: dt,
1513
- toArray: ft,
1514
- repeat: mt,
1515
- isNegativeZero: ht,
1516
- extend: pt
1519
+ isNothing: mt,
1520
+ isObject: ht,
1521
+ toArray: gt,
1522
+ repeat: vt,
1523
+ isNegativeZero: yt,
1524
+ extend: _t
1517
1525
  };
1518
- function gt(e, t) {
1526
+ function bt(e, t) {
1519
1527
  var n = "", r = e.reason || "(unknown reason)";
1520
1528
  return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
1521
1529
  }
1522
- function _t(e, t) {
1523
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = gt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
1530
+ function xt(e, t) {
1531
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = bt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
1524
1532
  }
1525
- _t.prototype = Object.create(Error.prototype), _t.prototype.constructor = _t, _t.prototype.toString = function(e) {
1526
- return this.name + ": " + gt(this, e);
1533
+ xt.prototype = Object.create(Error.prototype), xt.prototype.constructor = xt, xt.prototype.toString = function(e) {
1534
+ return this.name + ": " + bt(this, e);
1527
1535
  };
1528
- var L = _t;
1529
- function vt(e, t, n, r, i) {
1536
+ var L = xt;
1537
+ function St(e, t, n, r, i) {
1530
1538
  var a = "", o = "", s = Math.floor(i / 2) - 1;
1531
1539
  return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
1532
1540
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
1533
1541
  pos: r - t + a.length
1534
1542
  };
1535
1543
  }
1536
- function yt(e, t) {
1544
+ function Ct(e, t) {
1537
1545
  return I.repeat(" ", t - e.length) + e;
1538
1546
  }
1539
- function bt(e, t) {
1547
+ function wt(e, t) {
1540
1548
  if (t = Object.create(t || null), !e.buffer) return null;
1541
1549
  t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1542
1550
  for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
1543
1551
  o < 0 && (o = r.length - 1);
1544
1552
  var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
1545
- for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = vt(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = I.repeat(" ", t.indent) + yt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
1546
- for (l = vt(e.buffer, r[o], i[o], e.position, d), s += I.repeat(" ", t.indent) + yt((e.line + 1).toString(), u) + " | " + l.str + "\n", s += I.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = vt(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += I.repeat(" ", t.indent) + yt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
1553
+ for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = St(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = I.repeat(" ", t.indent) + Ct((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
1554
+ for (l = St(e.buffer, r[o], i[o], e.position, d), s += I.repeat(" ", t.indent) + Ct((e.line + 1).toString(), u) + " | " + l.str + "\n", s += I.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = St(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += I.repeat(" ", t.indent) + Ct((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
1547
1555
  return s.replace(/\n$/, "");
1548
1556
  }
1549
- var xt = bt, St = [
1557
+ var Tt = wt, Et = [
1550
1558
  "kind",
1551
1559
  "multi",
1552
1560
  "resolve",
@@ -1557,12 +1565,12 @@ var xt = bt, St = [
1557
1565
  "representName",
1558
1566
  "defaultStyle",
1559
1567
  "styleAliases"
1560
- ], Ct = [
1568
+ ], Dt = [
1561
1569
  "scalar",
1562
1570
  "sequence",
1563
1571
  "mapping"
1564
1572
  ];
1565
- function wt(e) {
1573
+ function Ot(e) {
1566
1574
  var t = {};
1567
1575
  return e !== null && Object.keys(e).forEach(function(n) {
1568
1576
  e[n].forEach(function(e) {
@@ -1570,17 +1578,17 @@ function wt(e) {
1570
1578
  });
1571
1579
  }), t;
1572
1580
  }
1573
- function Tt(e, t) {
1581
+ function kt(e, t) {
1574
1582
  if (t ||= {}, Object.keys(t).forEach(function(t) {
1575
- if (St.indexOf(t) === -1) throw new L("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
1583
+ if (Et.indexOf(t) === -1) throw new L("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
1576
1584
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1577
1585
  return !0;
1578
1586
  }, this.construct = t.construct || function(e) {
1579
1587
  return e;
1580
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = wt(t.styleAliases || null), Ct.indexOf(this.kind) === -1) throw new L("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
1588
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Ot(t.styleAliases || null), Dt.indexOf(this.kind) === -1) throw new L("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
1581
1589
  }
1582
- var R = Tt;
1583
- function Et(e, t) {
1590
+ var R = kt;
1591
+ function At(e, t) {
1584
1592
  var n = [];
1585
1593
  return e[t].forEach(function(e) {
1586
1594
  var t = n.length;
@@ -1589,7 +1597,7 @@ function Et(e, t) {
1589
1597
  }), n[t] = e;
1590
1598
  }), n;
1591
1599
  }
1592
- function Dt() {
1600
+ function jt() {
1593
1601
  var e = {
1594
1602
  scalar: {},
1595
1603
  sequence: {},
@@ -1608,10 +1616,10 @@ function Dt() {
1608
1616
  for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
1609
1617
  return e;
1610
1618
  }
1611
- function Ot(e) {
1619
+ function Mt(e) {
1612
1620
  return this.extend(e);
1613
1621
  }
1614
- Ot.prototype.extend = function(e) {
1622
+ Mt.prototype.extend = function(e) {
1615
1623
  var t = [], n = [];
1616
1624
  if (e instanceof R) n.push(e);
1617
1625
  else if (Array.isArray(e)) n = n.concat(e);
@@ -1624,45 +1632,45 @@ Ot.prototype.extend = function(e) {
1624
1632
  }), n.forEach(function(e) {
1625
1633
  if (!(e instanceof R)) throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1626
1634
  });
1627
- var r = Object.create(Ot.prototype);
1628
- return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Et(r, "implicit"), r.compiledExplicit = Et(r, "explicit"), r.compiledTypeMap = Dt(r.compiledImplicit, r.compiledExplicit), r;
1635
+ var r = Object.create(Mt.prototype);
1636
+ return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap = jt(r.compiledImplicit, r.compiledExplicit), r;
1629
1637
  };
1630
- var kt = Ot, At = new R("tag:yaml.org,2002:str", {
1638
+ var Nt = Mt, Pt = new R("tag:yaml.org,2002:str", {
1631
1639
  kind: "scalar",
1632
1640
  construct: function(e) {
1633
1641
  return e === null ? "" : e;
1634
1642
  }
1635
- }), jt = new R("tag:yaml.org,2002:seq", {
1643
+ }), Ft = new R("tag:yaml.org,2002:seq", {
1636
1644
  kind: "sequence",
1637
1645
  construct: function(e) {
1638
1646
  return e === null ? [] : e;
1639
1647
  }
1640
- }), Mt = new R("tag:yaml.org,2002:map", {
1648
+ }), It = new R("tag:yaml.org,2002:map", {
1641
1649
  kind: "mapping",
1642
1650
  construct: function(e) {
1643
1651
  return e === null ? {} : e;
1644
1652
  }
1645
- }), Nt = new kt({ explicit: [
1646
- At,
1647
- jt,
1648
- Mt
1653
+ }), Lt = new Nt({ explicit: [
1654
+ Pt,
1655
+ Ft,
1656
+ It
1649
1657
  ] });
1650
- function Pt(e) {
1658
+ function Rt(e) {
1651
1659
  if (e === null) return !0;
1652
1660
  var t = e.length;
1653
1661
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1654
1662
  }
1655
- function Ft() {
1663
+ function zt() {
1656
1664
  return null;
1657
1665
  }
1658
- function It(e) {
1666
+ function Bt(e) {
1659
1667
  return e === null;
1660
1668
  }
1661
- var Lt = new R("tag:yaml.org,2002:null", {
1669
+ var Vt = new R("tag:yaml.org,2002:null", {
1662
1670
  kind: "scalar",
1663
- resolve: Pt,
1664
- construct: Ft,
1665
- predicate: It,
1671
+ resolve: Rt,
1672
+ construct: zt,
1673
+ predicate: Bt,
1666
1674
  represent: {
1667
1675
  canonical: function() {
1668
1676
  return "~";
@@ -1682,22 +1690,22 @@ var Lt = new R("tag:yaml.org,2002:null", {
1682
1690
  },
1683
1691
  defaultStyle: "lowercase"
1684
1692
  });
1685
- function Rt(e) {
1693
+ function Ht(e) {
1686
1694
  if (e === null) return !1;
1687
1695
  var t = e.length;
1688
1696
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1689
1697
  }
1690
- function zt(e) {
1698
+ function Ut(e) {
1691
1699
  return e === "true" || e === "True" || e === "TRUE";
1692
1700
  }
1693
- function Bt(e) {
1701
+ function Wt(e) {
1694
1702
  return Object.prototype.toString.call(e) === "[object Boolean]";
1695
1703
  }
1696
- var Vt = new R("tag:yaml.org,2002:bool", {
1704
+ var Gt = new R("tag:yaml.org,2002:bool", {
1697
1705
  kind: "scalar",
1698
- resolve: Rt,
1699
- construct: zt,
1700
- predicate: Bt,
1706
+ resolve: Ht,
1707
+ construct: Ut,
1708
+ predicate: Wt,
1701
1709
  represent: {
1702
1710
  lowercase: function(e) {
1703
1711
  return e ? "true" : "false";
@@ -1711,16 +1719,16 @@ var Vt = new R("tag:yaml.org,2002:bool", {
1711
1719
  },
1712
1720
  defaultStyle: "lowercase"
1713
1721
  });
1714
- function Ht(e) {
1722
+ function Kt(e) {
1715
1723
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1716
1724
  }
1717
- function Ut(e) {
1725
+ function qt(e) {
1718
1726
  return 48 <= e && e <= 55;
1719
1727
  }
1720
- function Wt(e) {
1728
+ function Jt(e) {
1721
1729
  return 48 <= e && e <= 57;
1722
1730
  }
1723
- function Gt(e) {
1731
+ function Yt(e) {
1724
1732
  if (e === null) return !1;
1725
1733
  var t = e.length, n = 0, r = !1, i;
1726
1734
  if (!t) return !1;
@@ -1735,14 +1743,14 @@ function Gt(e) {
1735
1743
  }
1736
1744
  if (i === "x") {
1737
1745
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
1738
- if (!Ht(e.charCodeAt(n))) return !1;
1746
+ if (!Kt(e.charCodeAt(n))) return !1;
1739
1747
  r = !0;
1740
1748
  }
1741
1749
  return r && i !== "_";
1742
1750
  }
1743
1751
  if (i === "o") {
1744
1752
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
1745
- if (!Ut(e.charCodeAt(n))) return !1;
1753
+ if (!qt(e.charCodeAt(n))) return !1;
1746
1754
  r = !0;
1747
1755
  }
1748
1756
  return r && i !== "_";
@@ -1750,12 +1758,12 @@ function Gt(e) {
1750
1758
  }
1751
1759
  if (i === "_") return !1;
1752
1760
  for (; n < t; n++) if (i = e[n], i !== "_") {
1753
- if (!Wt(e.charCodeAt(n))) return !1;
1761
+ if (!Jt(e.charCodeAt(n))) return !1;
1754
1762
  r = !0;
1755
1763
  }
1756
1764
  return !(!r || i === "_");
1757
1765
  }
1758
- function Kt(e) {
1766
+ function Xt(e) {
1759
1767
  var t = e, n = 1, r;
1760
1768
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
1761
1769
  if (r === "0") {
@@ -1765,14 +1773,14 @@ function Kt(e) {
1765
1773
  }
1766
1774
  return n * parseInt(t, 10);
1767
1775
  }
1768
- function qt(e) {
1776
+ function Zt(e) {
1769
1777
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !I.isNegativeZero(e);
1770
1778
  }
1771
- var Jt = new R("tag:yaml.org,2002:int", {
1779
+ var Qt = new R("tag:yaml.org,2002:int", {
1772
1780
  kind: "scalar",
1773
- resolve: Gt,
1774
- construct: Kt,
1775
- predicate: qt,
1781
+ resolve: Yt,
1782
+ construct: Xt,
1783
+ predicate: Zt,
1776
1784
  represent: {
1777
1785
  binary: function(e) {
1778
1786
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1794,16 +1802,16 @@ var Jt = new R("tag:yaml.org,2002:int", {
1794
1802
  decimal: [10, "dec"],
1795
1803
  hexadecimal: [16, "hex"]
1796
1804
  }
1797
- }), Yt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1798
- function Xt(e) {
1799
- return !(e === null || !Yt.test(e) || e[e.length - 1] === "_");
1805
+ }), $t = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1806
+ function en(e) {
1807
+ return !(e === null || !$t.test(e) || e[e.length - 1] === "_");
1800
1808
  }
1801
- function Zt(e) {
1809
+ function tn(e) {
1802
1810
  var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
1803
1811
  return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
1804
1812
  }
1805
- var Qt = /^[-+]?[0-9]+e/;
1806
- function $t(e, t) {
1813
+ var nn = /^[-+]?[0-9]+e/;
1814
+ function rn(e, t) {
1807
1815
  var n;
1808
1816
  if (isNaN(e)) switch (t) {
1809
1817
  case "lowercase": return ".nan";
@@ -1821,30 +1829,30 @@ function $t(e, t) {
1821
1829
  case "camelcase": return "-.Inf";
1822
1830
  }
1823
1831
  else if (I.isNegativeZero(e)) return "-0.0";
1824
- return n = e.toString(10), Qt.test(n) ? n.replace("e", ".e") : n;
1832
+ return n = e.toString(10), nn.test(n) ? n.replace("e", ".e") : n;
1825
1833
  }
1826
- function en(e) {
1834
+ function an(e) {
1827
1835
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || I.isNegativeZero(e));
1828
1836
  }
1829
- var tn = new R("tag:yaml.org,2002:float", {
1837
+ var on = new R("tag:yaml.org,2002:float", {
1830
1838
  kind: "scalar",
1831
- resolve: Xt,
1832
- construct: Zt,
1833
- predicate: en,
1834
- represent: $t,
1839
+ resolve: en,
1840
+ construct: tn,
1841
+ predicate: an,
1842
+ represent: rn,
1835
1843
  defaultStyle: "lowercase"
1836
- }), nn = Nt.extend({ implicit: [
1837
- Lt,
1844
+ }), sn = Lt.extend({ implicit: [
1838
1845
  Vt,
1839
- Jt,
1840
- tn
1841
- ] }), rn = nn, an = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), on = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
1842
- function sn(e) {
1843
- return e === null ? !1 : an.exec(e) !== null || on.exec(e) !== null;
1846
+ Gt,
1847
+ Qt,
1848
+ on
1849
+ ] }), cn = sn, ln = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), un = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
1850
+ function dn(e) {
1851
+ return e === null ? !1 : ln.exec(e) !== null || un.exec(e) !== null;
1844
1852
  }
1845
- function cn(e) {
1853
+ function fn(e) {
1846
1854
  var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
1847
- if (t = an.exec(e), t === null && (t = on.exec(e)), t === null) throw Error("Date resolve error");
1855
+ if (t = ln.exec(e), t === null && (t = un.exec(e)), t === null) throw Error("Date resolve error");
1848
1856
  if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
1849
1857
  if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
1850
1858
  for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
@@ -1852,58 +1860,58 @@ function cn(e) {
1852
1860
  }
1853
1861
  return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
1854
1862
  }
1855
- function ln(e) {
1863
+ function pn(e) {
1856
1864
  return e.toISOString();
1857
1865
  }
1858
- var un = new R("tag:yaml.org,2002:timestamp", {
1866
+ var mn = new R("tag:yaml.org,2002:timestamp", {
1859
1867
  kind: "scalar",
1860
- resolve: sn,
1861
- construct: cn,
1868
+ resolve: dn,
1869
+ construct: fn,
1862
1870
  instanceOf: Date,
1863
- represent: ln
1871
+ represent: pn
1864
1872
  });
1865
- function dn(e) {
1873
+ function hn(e) {
1866
1874
  return e === "<<" || e === null;
1867
1875
  }
1868
- var fn = new R("tag:yaml.org,2002:merge", {
1876
+ var gn = new R("tag:yaml.org,2002:merge", {
1869
1877
  kind: "scalar",
1870
- resolve: dn
1871
- }), pn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
1872
- function mn(e) {
1878
+ resolve: hn
1879
+ }), _n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
1880
+ function vn(e) {
1873
1881
  if (e === null) return !1;
1874
- var t, n, r = 0, i = e.length, a = pn;
1882
+ var t, n, r = 0, i = e.length, a = _n;
1875
1883
  for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
1876
1884
  if (t < 0) return !1;
1877
1885
  r += 6;
1878
1886
  }
1879
1887
  return r % 8 == 0;
1880
1888
  }
1881
- function hn(e) {
1882
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = pn, o = 0, s = [];
1889
+ function yn(e) {
1890
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = _n, o = 0, s = [];
1883
1891
  for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
1884
1892
  return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
1885
1893
  }
1886
- function gn(e) {
1887
- var t = "", n = 0, r, i, a = e.length, o = pn;
1894
+ function bn(e) {
1895
+ var t = "", n = 0, r, i, a = e.length, o = _n;
1888
1896
  for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
1889
1897
  return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
1890
1898
  }
1891
- function _n(e) {
1899
+ function xn(e) {
1892
1900
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1893
1901
  }
1894
- var vn = new R("tag:yaml.org,2002:binary", {
1902
+ var Sn = new R("tag:yaml.org,2002:binary", {
1895
1903
  kind: "scalar",
1896
- resolve: mn,
1897
- construct: hn,
1898
- predicate: _n,
1899
- represent: gn
1900
- }), yn = Object.prototype.hasOwnProperty, bn = Object.prototype.toString;
1901
- function xn(e) {
1904
+ resolve: vn,
1905
+ construct: yn,
1906
+ predicate: xn,
1907
+ represent: bn
1908
+ }), Cn = Object.prototype.hasOwnProperty, wn = Object.prototype.toString;
1909
+ function Tn(e) {
1902
1910
  if (e === null) return !0;
1903
1911
  var t = [], n, r, i, a, o, s = e;
1904
1912
  for (n = 0, r = s.length; n < r; n += 1) {
1905
- if (i = s[n], o = !1, bn.call(i) !== "[object Object]") return !1;
1906
- for (a in i) if (yn.call(i, a)) if (!o) o = !0;
1913
+ if (i = s[n], o = !1, wn.call(i) !== "[object Object]") return !1;
1914
+ for (a in i) if (Cn.call(i, a)) if (!o) o = !0;
1907
1915
  else return !1;
1908
1916
  if (!o) return !1;
1909
1917
  if (t.indexOf(a) === -1) t.push(a);
@@ -1911,57 +1919,57 @@ function xn(e) {
1911
1919
  }
1912
1920
  return !0;
1913
1921
  }
1914
- function Sn(e) {
1922
+ function En(e) {
1915
1923
  return e === null ? [] : e;
1916
1924
  }
1917
- var Cn = new R("tag:yaml.org,2002:omap", {
1925
+ var Dn = new R("tag:yaml.org,2002:omap", {
1918
1926
  kind: "sequence",
1919
- resolve: xn,
1920
- construct: Sn
1921
- }), wn = Object.prototype.toString;
1922
- function Tn(e) {
1927
+ resolve: Tn,
1928
+ construct: En
1929
+ }), On = Object.prototype.toString;
1930
+ function kn(e) {
1923
1931
  if (e === null) return !0;
1924
1932
  var t, n, r, i, a, o = e;
1925
1933
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
1926
- if (r = o[t], wn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
1934
+ if (r = o[t], On.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
1927
1935
  a[t] = [i[0], r[i[0]]];
1928
1936
  }
1929
1937
  return !0;
1930
1938
  }
1931
- function En(e) {
1939
+ function An(e) {
1932
1940
  if (e === null) return [];
1933
1941
  var t, n, r, i, a, o = e;
1934
1942
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
1935
1943
  return a;
1936
1944
  }
1937
- var Dn = new R("tag:yaml.org,2002:pairs", {
1945
+ var jn = new R("tag:yaml.org,2002:pairs", {
1938
1946
  kind: "sequence",
1939
- resolve: Tn,
1940
- construct: En
1941
- }), On = Object.prototype.hasOwnProperty;
1942
- function kn(e) {
1947
+ resolve: kn,
1948
+ construct: An
1949
+ }), Mn = Object.prototype.hasOwnProperty;
1950
+ function Nn(e) {
1943
1951
  if (e === null) return !0;
1944
1952
  var t, n = e;
1945
- for (t in n) if (On.call(n, t) && n[t] !== null) return !1;
1953
+ for (t in n) if (Mn.call(n, t) && n[t] !== null) return !1;
1946
1954
  return !0;
1947
1955
  }
1948
- function An(e) {
1956
+ function Pn(e) {
1949
1957
  return e === null ? {} : e;
1950
1958
  }
1951
- var jn = new R("tag:yaml.org,2002:set", {
1959
+ var Fn = new R("tag:yaml.org,2002:set", {
1952
1960
  kind: "mapping",
1953
- resolve: kn,
1954
- construct: An
1955
- }), Mn = rn.extend({
1956
- implicit: [un, fn],
1961
+ resolve: Nn,
1962
+ construct: Pn
1963
+ }), In = cn.extend({
1964
+ implicit: [mn, gn],
1957
1965
  explicit: [
1958
- vn,
1959
- Cn,
1966
+ Sn,
1960
1967
  Dn,
1961
- jn
1968
+ jn,
1969
+ Fn
1962
1970
  ]
1963
- }), z = Object.prototype.hasOwnProperty, Nn = 1, Pn = 2, Fn = 3, In = 4, Ln = 1, Rn = 2, zn = 3, Bn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vn = /[\x85\u2028\u2029]/, Hn = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Wn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1964
- function Gn(e) {
1971
+ }), z = Object.prototype.hasOwnProperty, Ln = 1, Rn = 2, zn = 3, Bn = 4, Vn = 1, Hn = 2, Un = 3, Wn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Gn = /[\x85\u2028\u2029]/, Kn = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Jn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1972
+ function Yn(e) {
1965
1973
  return Object.prototype.toString.call(e);
1966
1974
  }
1967
1975
  function B(e) {
@@ -1976,23 +1984,23 @@ function H(e) {
1976
1984
  function U(e) {
1977
1985
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1978
1986
  }
1979
- function Kn(e) {
1987
+ function Xn(e) {
1980
1988
  var t;
1981
1989
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
1982
1990
  }
1983
- function qn(e) {
1991
+ function Zn(e) {
1984
1992
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1985
1993
  }
1986
- function Jn(e) {
1994
+ function Qn(e) {
1987
1995
  return 48 <= e && e <= 57 ? e - 48 : -1;
1988
1996
  }
1989
- function Yn(e) {
1997
+ function $n(e) {
1990
1998
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1991
1999
  }
1992
- function Xn(e) {
2000
+ function er(e) {
1993
2001
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
1994
2002
  }
1995
- function Zn(e, t, n) {
2003
+ function tr(e, t, n) {
1996
2004
  t === "__proto__" ? Object.defineProperty(e, t, {
1997
2005
  configurable: !0,
1998
2006
  enumerable: !0,
@@ -2000,11 +2008,11 @@ function Zn(e, t, n) {
2000
2008
  value: n
2001
2009
  }) : e[t] = n;
2002
2010
  }
2003
- for (var Qn = Array(256), $n = Array(256), W = 0; W < 256; W++) Qn[W] = +!!Yn(W), $n[W] = Yn(W);
2004
- function er(e, t) {
2005
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || Mn, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
2011
+ for (var nr = Array(256), rr = Array(256), W = 0; W < 256; W++) nr[W] = +!!$n(W), rr[W] = $n(W);
2012
+ function ir(e, t) {
2013
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || In, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
2006
2014
  }
2007
- function tr(e, t) {
2015
+ function ar(e, t) {
2008
2016
  var n = {
2009
2017
  name: e.filename,
2010
2018
  buffer: e.input.slice(0, -1),
@@ -2012,22 +2020,22 @@ function tr(e, t) {
2012
2020
  line: e.line,
2013
2021
  column: e.position - e.lineStart
2014
2022
  };
2015
- return n.snippet = xt(n), new L(t, n);
2023
+ return n.snippet = Tt(n), new L(t, n);
2016
2024
  }
2017
2025
  function G(e, t) {
2018
- throw tr(e, t);
2026
+ throw ar(e, t);
2019
2027
  }
2020
- function nr(e, t) {
2021
- e.onWarning && e.onWarning.call(null, tr(e, t));
2028
+ function or(e, t) {
2029
+ e.onWarning && e.onWarning.call(null, ar(e, t));
2022
2030
  }
2023
- var rr = {
2031
+ var sr = {
2024
2032
  YAML: function(e, t, n) {
2025
2033
  var r, i, a;
2026
- e.version !== null && G(e, "duplication of %YAML directive"), n.length !== 1 && G(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && G(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && G(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && nr(e, "unsupported YAML version of the document");
2034
+ e.version !== null && G(e, "duplication of %YAML directive"), n.length !== 1 && G(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && G(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && G(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && or(e, "unsupported YAML version of the document");
2027
2035
  },
2028
2036
  TAG: function(e, t, n) {
2029
2037
  var r, i;
2030
- n.length !== 2 && G(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Un.test(r) || G(e, "ill-formed tag handle (first argument) of the TAG directive"), z.call(e.tagMap, r) && G(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Wn.test(i) || G(e, "ill-formed tag prefix (second argument) of the TAG directive");
2038
+ n.length !== 2 && G(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], qn.test(r) || G(e, "ill-formed tag handle (first argument) of the TAG directive"), z.call(e.tagMap, r) && G(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Jn.test(i) || G(e, "ill-formed tag prefix (second argument) of the TAG directive");
2031
2039
  try {
2032
2040
  i = decodeURIComponent(i);
2033
2041
  } catch {
@@ -2040,23 +2048,23 @@ function K(e, t, n, r) {
2040
2048
  var i, a, o, s;
2041
2049
  if (t < n) {
2042
2050
  if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || G(e, "expected valid JSON character");
2043
- else Bn.test(s) && G(e, "the stream contains non-printable characters");
2051
+ else Wn.test(s) && G(e, "the stream contains non-printable characters");
2044
2052
  e.result += s;
2045
2053
  }
2046
2054
  }
2047
- function ir(e, t, n, r) {
2055
+ function cr(e, t, n, r) {
2048
2056
  var i, a, o, s;
2049
- for (I.isObject(n) || G(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], z.call(t, a) || (Zn(t, a, n[a]), r[a] = !0);
2057
+ for (I.isObject(n) || G(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], z.call(t, a) || (tr(t, a, n[a]), r[a] = !0);
2050
2058
  }
2051
2059
  function q(e, t, n, r, i, a, o, s, c) {
2052
2060
  var l, u;
2053
- if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && G(e, "nested arrays are not supported inside keys"), typeof i == "object" && Gn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
2054
- if (typeof i == "object" && Gn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) ir(e, t, a[l], n);
2055
- else ir(e, t, a, n);
2056
- else !e.json && !z.call(n, i) && z.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, G(e, "duplicated mapping key")), Zn(t, i, a), delete n[i];
2061
+ if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && G(e, "nested arrays are not supported inside keys"), typeof i == "object" && Yn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
2062
+ if (typeof i == "object" && Yn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) cr(e, t, a[l], n);
2063
+ else cr(e, t, a, n);
2064
+ else !e.json && !z.call(n, i) && z.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, G(e, "duplicated mapping key")), tr(t, i, a), delete n[i];
2057
2065
  return t;
2058
2066
  }
2059
- function ar(e) {
2067
+ function lr(e) {
2060
2068
  var t = e.input.charCodeAt(e.position);
2061
2069
  t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : G(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2062
2070
  }
@@ -2066,19 +2074,19 @@ function J(e, t, n) {
2066
2074
  if (t && i === 35) do
2067
2075
  i = e.input.charCodeAt(++e.position);
2068
2076
  while (i !== 10 && i !== 13 && i !== 0);
2069
- if (B(i)) for (ar(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
2077
+ if (B(i)) for (lr(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
2070
2078
  else break;
2071
2079
  }
2072
- return n !== -1 && r !== 0 && e.lineIndent < n && nr(e, "deficient indentation"), r;
2080
+ return n !== -1 && r !== 0 && e.lineIndent < n && or(e, "deficient indentation"), r;
2073
2081
  }
2074
- function or(e) {
2082
+ function ur(e) {
2075
2083
  var t = e.position, n = e.input.charCodeAt(t);
2076
2084
  return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || H(n)));
2077
2085
  }
2078
- function sr(e, t) {
2086
+ function dr(e, t) {
2079
2087
  t === 1 ? e.result += " " : t > 1 && (e.result += I.repeat("\n", t - 1));
2080
2088
  }
2081
- function cr(e, t, n) {
2089
+ function fr(e, t, n) {
2082
2090
  var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
2083
2091
  if (H(p) || U(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), H(i) || n && U(i))) return !1;
2084
2092
  for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
@@ -2086,7 +2094,7 @@ function cr(e, t, n) {
2086
2094
  if (i = e.input.charCodeAt(e.position + 1), H(i) || n && U(i)) break;
2087
2095
  } else if (p === 35) {
2088
2096
  if (r = e.input.charCodeAt(e.position - 1), H(r)) break;
2089
- } else if (e.position === e.lineStart && or(e) || n && U(p)) break;
2097
+ } else if (e.position === e.lineStart && ur(e) || n && U(p)) break;
2090
2098
  else if (B(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
2091
2099
  s = !0, p = e.input.charCodeAt(e.position);
2092
2100
  continue;
@@ -2094,51 +2102,51 @@ function cr(e, t, n) {
2094
2102
  e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
2095
2103
  break;
2096
2104
  }
2097
- s &&= (K(e, a, o, !1), sr(e, e.line - c), a = o = e.position, !1), V(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
2105
+ s &&= (K(e, a, o, !1), dr(e, e.line - c), a = o = e.position, !1), V(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
2098
2106
  }
2099
2107
  return K(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
2100
2108
  }
2101
- function lr(e, t) {
2109
+ function pr(e, t) {
2102
2110
  var n = e.input.charCodeAt(e.position), r, i;
2103
2111
  if (n !== 39) return !1;
2104
2112
  for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (K(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
2105
2113
  else return !0;
2106
- else B(n) ? (K(e, r, i, !0), sr(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && or(e) ? G(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2114
+ else B(n) ? (K(e, r, i, !0), dr(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && ur(e) ? G(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2107
2115
  G(e, "unexpected end of the stream within a single quoted scalar");
2108
2116
  }
2109
- function ur(e, t) {
2117
+ function mr(e, t) {
2110
2118
  var n, r, i, a, o, s = e.input.charCodeAt(e.position);
2111
2119
  if (s !== 34) return !1;
2112
2120
  for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return K(e, n, e.position, !0), e.position++, !0;
2113
2121
  else if (s === 92) {
2114
2122
  if (K(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), B(s)) J(e, !1, t);
2115
- else if (s < 256 && Qn[s]) e.result += $n[s], e.position++;
2116
- else if ((o = qn(s)) > 0) {
2117
- for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Kn(s)) >= 0 ? a = (a << 4) + o : G(e, "expected hexadecimal character");
2118
- e.result += Xn(a), e.position++;
2123
+ else if (s < 256 && nr[s]) e.result += rr[s], e.position++;
2124
+ else if ((o = Zn(s)) > 0) {
2125
+ for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Xn(s)) >= 0 ? a = (a << 4) + o : G(e, "expected hexadecimal character");
2126
+ e.result += er(a), e.position++;
2119
2127
  } else G(e, "unknown escape sequence");
2120
2128
  n = r = e.position;
2121
- } else B(s) ? (K(e, n, r, !0), sr(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && or(e) ? G(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2129
+ } else B(s) ? (K(e, n, r, !0), dr(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ur(e) ? G(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2122
2130
  G(e, "unexpected end of the stream within a double quoted scalar");
2123
2131
  }
2124
- function dr(e, t) {
2132
+ function hr(e, t) {
2125
2133
  var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
2126
2134
  if (v === 91) u = 93, p = !1, s = [];
2127
2135
  else if (v === 123) u = 125, p = !0, s = {};
2128
2136
  else return !1;
2129
2137
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
2130
2138
  if (J(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
2131
- n ? v === 44 && G(e, "expected the node content, but found ','") : G(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), H(l) && (d = f = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, Y(e, t, Nn, !1, !0), g = e.tag, h = e.result, J(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), J(e, !0, t), Y(e, t, Nn, !1, !0), _ = e.result), p ? q(e, s, m, g, h, _, r, i, a) : d ? s.push(q(e, null, m, g, h, _, r, i, a)) : s.push(h), J(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
2139
+ n ? v === 44 && G(e, "expected the node content, but found ','") : G(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), H(l) && (d = f = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, Y(e, t, Ln, !1, !0), g = e.tag, h = e.result, J(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), J(e, !0, t), Y(e, t, Ln, !1, !0), _ = e.result), p ? q(e, s, m, g, h, _, r, i, a) : d ? s.push(q(e, null, m, g, h, _, r, i, a)) : s.push(h), J(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
2132
2140
  }
2133
2141
  G(e, "unexpected end of the stream within a flow collection");
2134
2142
  }
2135
- function fr(e, t) {
2136
- var n, r, i = Ln, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
2143
+ function gr(e, t) {
2144
+ var n, r, i = Vn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
2137
2145
  if (d === 124) r = !1;
2138
2146
  else if (d === 62) r = !0;
2139
2147
  else return !1;
2140
- for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Ln === i ? i = d === 43 ? zn : Rn : G(e, "repeat of a chomping mode identifier");
2141
- else if ((u = Jn(d)) >= 0) u === 0 ? G(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? G(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
2148
+ for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Vn === i ? i = d === 43 ? Un : Hn : G(e, "repeat of a chomping mode identifier");
2149
+ else if ((u = Qn(d)) >= 0) u === 0 ? G(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? G(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
2142
2150
  else break;
2143
2151
  if (V(d)) {
2144
2152
  do
@@ -2149,13 +2157,13 @@ function fr(e, t) {
2149
2157
  while (!B(d) && d !== 0);
2150
2158
  }
2151
2159
  for (; d !== 0;) {
2152
- for (ar(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
2160
+ for (lr(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
2153
2161
  if (!o && e.lineIndent > s && (s = e.lineIndent), B(d)) {
2154
2162
  c++;
2155
2163
  continue;
2156
2164
  }
2157
2165
  if (e.lineIndent < s) {
2158
- i === zn ? e.result += I.repeat("\n", a ? 1 + c : c) : i === Ln && a && (e.result += "\n");
2166
+ i === Un ? e.result += I.repeat("\n", a ? 1 + c : c) : i === Vn && a && (e.result += "\n");
2159
2167
  break;
2160
2168
  }
2161
2169
  for (r ? V(d) ? (l = !0, e.result += I.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += I.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += I.repeat("\n", c) : e.result += I.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !B(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
@@ -2163,7 +2171,7 @@ function fr(e, t) {
2163
2171
  }
2164
2172
  return !0;
2165
2173
  }
2166
- function pr(e, t) {
2174
+ function _r(e, t) {
2167
2175
  var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
2168
2176
  if (e.firstTabInLine !== -1) return !1;
2169
2177
  for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, G(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !H(o))));) {
@@ -2171,18 +2179,18 @@ function pr(e, t) {
2171
2179
  a.push(null), c = e.input.charCodeAt(e.position);
2172
2180
  continue;
2173
2181
  }
2174
- if (n = e.line, Y(e, t, Fn, !1, !0), a.push(e.result), J(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) G(e, "bad indentation of a sequence entry");
2182
+ if (n = e.line, Y(e, t, zn, !1, !0), a.push(e.result), J(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) G(e, "bad indentation of a sequence entry");
2175
2183
  else if (e.lineIndent < t) break;
2176
2184
  }
2177
2185
  return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
2178
2186
  }
2179
- function mr(e, t, n) {
2187
+ function vr(e, t, n) {
2180
2188
  var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
2181
2189
  if (e.firstTabInLine !== -1) return !1;
2182
2190
  for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
2183
2191
  if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, G(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && H(r)) v === 63 ? (g && (q(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : G(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
2184
2192
  else {
2185
- if (o = e.line, s = e.lineStart, c = e.position, !Y(e, n, Pn, !1, !0)) break;
2193
+ if (o = e.line, s = e.lineStart, c = e.position, !Y(e, n, Rn, !1, !0)) break;
2186
2194
  if (e.line === a) {
2187
2195
  for (v = e.input.charCodeAt(e.position); V(v);) v = e.input.charCodeAt(++e.position);
2188
2196
  if (v === 58) v = e.input.charCodeAt(++e.position), H(v) || G(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (q(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
@@ -2191,12 +2199,12 @@ function mr(e, t, n) {
2191
2199
  } else if (_) G(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2192
2200
  else return e.tag = l, e.anchor = u, !0;
2193
2201
  }
2194
- if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), Y(e, t, In, !0, i) && (g ? m = e.result : h = e.result), g || (q(e, d, f, p, m, h, o, s, c), p = m = h = null), J(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) G(e, "bad indentation of a mapping entry");
2202
+ if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), Y(e, t, Bn, !0, i) && (g ? m = e.result : h = e.result), g || (q(e, d, f, p, m, h, o, s, c), p = m = h = null), J(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) G(e, "bad indentation of a mapping entry");
2195
2203
  else if (e.lineIndent < t) break;
2196
2204
  }
2197
2205
  return g && q(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
2198
2206
  }
2199
- function hr(e) {
2207
+ function yr(e) {
2200
2208
  var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
2201
2209
  if (o !== 33) return !1;
2202
2210
  if (e.tag !== null && G(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
@@ -2205,10 +2213,10 @@ function hr(e) {
2205
2213
  while (o !== 0 && o !== 62);
2206
2214
  e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : G(e, "unexpected end of the stream within a verbatim tag");
2207
2215
  } else {
2208
- for (; o !== 0 && !H(o);) o === 33 && (r ? G(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Un.test(i) || G(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2209
- a = e.input.slice(t, e.position), Hn.test(a) && G(e, "tag suffix cannot contain flow indicator characters");
2216
+ for (; o !== 0 && !H(o);) o === 33 && (r ? G(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), qn.test(i) || G(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2217
+ a = e.input.slice(t, e.position), Kn.test(a) && G(e, "tag suffix cannot contain flow indicator characters");
2210
2218
  }
2211
- a && !Wn.test(a) && G(e, "tag name cannot contain such characters: " + a);
2219
+ a && !Jn.test(a) && G(e, "tag name cannot contain such characters: " + a);
2212
2220
  try {
2213
2221
  a = decodeURIComponent(a);
2214
2222
  } catch {
@@ -2216,13 +2224,13 @@ function hr(e) {
2216
2224
  }
2217
2225
  return n ? e.tag = a : z.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : G(e, "undeclared tag handle \"" + i + "\""), !0;
2218
2226
  }
2219
- function gr(e) {
2227
+ function br(e) {
2220
2228
  var t, n = e.input.charCodeAt(e.position);
2221
2229
  if (n !== 38) return !1;
2222
2230
  for (e.anchor !== null && G(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !H(n) && !U(n);) n = e.input.charCodeAt(++e.position);
2223
2231
  return e.position === t && G(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2224
2232
  }
2225
- function _r(e) {
2233
+ function xr(e) {
2226
2234
  var t, n, r = e.input.charCodeAt(e.position);
2227
2235
  if (r !== 42) return !1;
2228
2236
  for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !H(r) && !U(r);) r = e.input.charCodeAt(++e.position);
@@ -2230,8 +2238,8 @@ function _r(e) {
2230
2238
  }
2231
2239
  function Y(e, t, n, r, i) {
2232
2240
  var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
2233
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = In === n || Fn === n, r && J(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; hr(e) || gr(e);) J(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
2234
- if (s &&= l || i, (c === 1 || In === n) && (h = Nn === n || Pn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (pr(e, g) || mr(e, g, h)) || dr(e, h) ? u = !0 : (o && fr(e, h) || lr(e, h) || ur(e, h) ? u = !0 : _r(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && G(e, "alias node should not have any properties")) : cr(e, h, Nn === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && pr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2241
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Bn === n || zn === n, r && J(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; yr(e) || br(e);) J(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
2242
+ if (s &&= l || i, (c === 1 || Bn === n) && (h = Ln === n || Rn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (_r(e, g) || vr(e, g, h)) || hr(e, h) ? u = !0 : (o && gr(e, h) || pr(e, h) || mr(e, h) ? u = !0 : xr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && G(e, "alias node should not have any properties")) : fr(e, h, Ln === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && _r(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2235
2243
  else if (e.tag === "?") {
2236
2244
  for (e.result !== null && e.kind !== "scalar" && G(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
2237
2245
  e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
@@ -2247,7 +2255,7 @@ function Y(e, t, n, r, i) {
2247
2255
  }
2248
2256
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
2249
2257
  }
2250
- function vr(e) {
2258
+ function Sr(e) {
2251
2259
  var t = e.position, n, r, i, a = !1, o;
2252
2260
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
2253
2261
  for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !H(o);) o = e.input.charCodeAt(++e.position);
@@ -2263,41 +2271,41 @@ function vr(e) {
2263
2271
  for (n = e.position; o !== 0 && !H(o);) o = e.input.charCodeAt(++e.position);
2264
2272
  i.push(e.input.slice(n, e.position));
2265
2273
  }
2266
- o !== 0 && ar(e), z.call(rr, r) ? rr[r](e, r, i) : nr(e, "unknown document directive \"" + r + "\"");
2274
+ o !== 0 && lr(e), z.call(sr, r) ? sr[r](e, r, i) : or(e, "unknown document directive \"" + r + "\"");
2267
2275
  }
2268
- if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && G(e, "directives end mark is expected"), Y(e, e.lineIndent - 1, In, !1, !0), J(e, !0, -1), e.checkLineBreaks && Vn.test(e.input.slice(t, e.position)) && nr(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && or(e)) {
2276
+ if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && G(e, "directives end mark is expected"), Y(e, e.lineIndent - 1, Bn, !1, !0), J(e, !0, -1), e.checkLineBreaks && Gn.test(e.input.slice(t, e.position)) && or(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ur(e)) {
2269
2277
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
2270
2278
  return;
2271
2279
  }
2272
2280
  if (e.position < e.length - 1) G(e, "end of the stream or a document separator is expected");
2273
2281
  else return;
2274
2282
  }
2275
- function yr(e, t) {
2283
+ function Cr(e, t) {
2276
2284
  e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2277
- var n = new er(e, t), r = e.indexOf("\0");
2285
+ var n = new ir(e, t), r = e.indexOf("\0");
2278
2286
  for (r !== -1 && (n.position = r, G(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
2279
- for (; n.position < n.length - 1;) vr(n);
2287
+ for (; n.position < n.length - 1;) Sr(n);
2280
2288
  return n.documents;
2281
2289
  }
2282
- function br(e, t, n) {
2290
+ function wr(e, t, n) {
2283
2291
  typeof t == "object" && t && n === void 0 && (n = t, t = null);
2284
- var r = yr(e, n);
2292
+ var r = Cr(e, n);
2285
2293
  if (typeof t != "function") return r;
2286
2294
  for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
2287
2295
  }
2288
- function xr(e, t) {
2289
- var n = yr(e, t);
2296
+ function Tr(e, t) {
2297
+ var n = Cr(e, t);
2290
2298
  if (n.length !== 0) {
2291
2299
  if (n.length === 1) return n[0];
2292
2300
  throw new L("expected a single document in the stream, but found more");
2293
2301
  }
2294
2302
  }
2295
- var Sr = {
2296
- loadAll: br,
2297
- load: xr
2298
- }, Cr = Object.prototype.toString, wr = Object.prototype.hasOwnProperty, Tr = 65279, Er = 9, Dr = 10, Or = 13, kr = 32, Ar = 33, jr = 34, Mr = 35, Nr = 37, Pr = 38, Fr = 39, Ir = 42, Lr = 44, Rr = 45, zr = 58, Br = 61, Vr = 62, Hr = 63, Ur = 64, Wr = 91, Gr = 93, Kr = 96, qr = 123, Jr = 124, Yr = 125, X = {};
2303
+ var Er = {
2304
+ loadAll: wr,
2305
+ load: Tr
2306
+ }, Dr = Object.prototype.toString, Or = Object.prototype.hasOwnProperty, kr = 65279, Ar = 9, jr = 10, Mr = 13, Nr = 32, Pr = 33, Fr = 34, Ir = 35, Lr = 37, Rr = 38, zr = 39, Br = 42, Vr = 44, Hr = 45, Ur = 58, Wr = 61, Gr = 62, Kr = 63, qr = 64, Jr = 91, Yr = 93, Xr = 96, Zr = 123, Qr = 124, $r = 125, X = {};
2299
2307
  X[0] = "\\0", X[7] = "\\a", X[8] = "\\b", X[9] = "\\t", X[10] = "\\n", X[11] = "\\v", X[12] = "\\f", X[13] = "\\r", X[27] = "\\e", X[34] = "\\\"", X[92] = "\\\\", X[133] = "\\N", X[160] = "\\_", X[8232] = "\\L", X[8233] = "\\P";
2300
- var Xr = [
2308
+ var ei = [
2301
2309
  "y",
2302
2310
  "Y",
2303
2311
  "yes",
@@ -2314,14 +2322,14 @@ var Xr = [
2314
2322
  "off",
2315
2323
  "Off",
2316
2324
  "OFF"
2317
- ], Zr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2318
- function Qr(e, t) {
2325
+ ], ti = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2326
+ function ni(e, t) {
2319
2327
  var n, r, i, a, o, s, c;
2320
2328
  if (t === null) return {};
2321
- for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && wr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
2329
+ for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Or.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
2322
2330
  return n;
2323
2331
  }
2324
- function $r(e) {
2332
+ function ri(e) {
2325
2333
  var t = e.toString(16).toUpperCase(), n, r;
2326
2334
  if (e <= 255) n = "x", r = 2;
2327
2335
  else if (e <= 65535) n = "u", r = 4;
@@ -2329,138 +2337,138 @@ function $r(e) {
2329
2337
  else throw new L("code point within a string may not be greater than 0xFFFFFFFF");
2330
2338
  return "\\" + n + I.repeat("0", r - t.length) + t;
2331
2339
  }
2332
- var ei = 1, ti = 2;
2333
- function ni(e) {
2334
- this.schema = e.schema || Mn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = I.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Qr(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? ti : ei, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2340
+ var ii = 1, ai = 2;
2341
+ function oi(e) {
2342
+ this.schema = e.schema || In, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = I.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ni(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? ai : ii, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2335
2343
  }
2336
- function ri(e, t) {
2344
+ function si(e, t) {
2337
2345
  for (var n = I.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
2338
2346
  return a;
2339
2347
  }
2340
- function ii(e, t) {
2348
+ function ci(e, t) {
2341
2349
  return "\n" + I.repeat(" ", e.indent * t);
2342
2350
  }
2343
- function ai(e, t) {
2351
+ function li(e, t) {
2344
2352
  var n, r, i;
2345
2353
  for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
2346
2354
  return !1;
2347
2355
  }
2348
- function oi(e) {
2349
- return e === kr || e === Er;
2356
+ function ui(e) {
2357
+ return e === Nr || e === Ar;
2350
2358
  }
2351
- function si(e) {
2352
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Tr || 65536 <= e && e <= 1114111;
2359
+ function di(e) {
2360
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== kr || 65536 <= e && e <= 1114111;
2353
2361
  }
2354
- function ci(e) {
2355
- return si(e) && e !== Tr && e !== Or && e !== Dr;
2362
+ function fi(e) {
2363
+ return di(e) && e !== kr && e !== Mr && e !== jr;
2356
2364
  }
2357
- function li(e, t, n) {
2358
- var r = ci(e), i = r && !oi(e);
2359
- return (n ? r : r && e !== Lr && e !== Wr && e !== Gr && e !== qr && e !== Yr) && e !== Mr && !(t === zr && !i) || ci(t) && !oi(t) && e === Mr || t === zr && i;
2365
+ function pi(e, t, n) {
2366
+ var r = fi(e), i = r && !ui(e);
2367
+ return (n ? r : r && e !== Vr && e !== Jr && e !== Yr && e !== Zr && e !== $r) && e !== Ir && !(t === Ur && !i) || fi(t) && !ui(t) && e === Ir || t === Ur && i;
2360
2368
  }
2361
- function ui(e) {
2362
- return si(e) && e !== Tr && !oi(e) && e !== Rr && e !== Hr && e !== zr && e !== Lr && e !== Wr && e !== Gr && e !== qr && e !== Yr && e !== Mr && e !== Pr && e !== Ir && e !== Ar && e !== Jr && e !== Br && e !== Vr && e !== Fr && e !== jr && e !== Nr && e !== Ur && e !== Kr;
2369
+ function mi(e) {
2370
+ return di(e) && e !== kr && !ui(e) && e !== Hr && e !== Kr && e !== Ur && e !== Vr && e !== Jr && e !== Yr && e !== Zr && e !== $r && e !== Ir && e !== Rr && e !== Br && e !== Pr && e !== Qr && e !== Wr && e !== Gr && e !== zr && e !== Fr && e !== Lr && e !== qr && e !== Xr;
2363
2371
  }
2364
- function di(e) {
2365
- return !oi(e) && e !== zr;
2372
+ function hi(e) {
2373
+ return !ui(e) && e !== Ur;
2366
2374
  }
2367
- function fi(e, t) {
2375
+ function gi(e, t) {
2368
2376
  var n = e.charCodeAt(t), r;
2369
2377
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
2370
2378
  }
2371
- function pi(e) {
2379
+ function _i(e) {
2372
2380
  return /^\n* /.test(e);
2373
2381
  }
2374
- var mi = 1, hi = 2, gi = 3, _i = 4, Z = 5;
2375
- function vi(e, t, n, r, i, a, o, s) {
2376
- var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = ui(fi(e, 0)) && di(fi(e, e.length - 1));
2382
+ var vi = 1, yi = 2, bi = 3, xi = 4, Z = 5;
2383
+ function Si(e, t, n, r, i, a, o, s) {
2384
+ var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = mi(gi(e, 0)) && hi(gi(e, e.length - 1));
2377
2385
  if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
2378
- if (l = fi(e, c), !si(l)) return Z;
2379
- h &&= li(l, u, s), u = l;
2386
+ if (l = gi(e, c), !di(l)) return Z;
2387
+ h &&= pi(l, u, s), u = l;
2380
2388
  }
2381
2389
  else {
2382
2390
  for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
2383
- if (l = fi(e, c), l === Dr) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
2384
- else if (!si(l)) return Z;
2385
- h &&= li(l, u, s), u = l;
2391
+ if (l = gi(e, c), l === jr) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
2392
+ else if (!di(l)) return Z;
2393
+ h &&= pi(l, u, s), u = l;
2386
2394
  }
2387
2395
  f ||= p && c - m - 1 > r && e[m + 1] !== " ";
2388
2396
  }
2389
- return !d && !f ? h && !o && !i(e) ? mi : a === ti ? Z : hi : n > 9 && pi(e) ? Z : o ? a === ti ? Z : hi : f ? _i : gi;
2397
+ return !d && !f ? h && !o && !i(e) ? vi : a === ai ? Z : yi : n > 9 && _i(e) ? Z : o ? a === ai ? Z : yi : f ? xi : bi;
2390
2398
  }
2391
- function yi(e, t, n, r, i) {
2399
+ function Ci(e, t, n, r, i) {
2392
2400
  e.dump = function() {
2393
- if (t.length === 0) return e.quotingType === ti ? "\"\"" : "''";
2394
- if (!e.noCompatMode && (Xr.indexOf(t) !== -1 || Zr.test(t))) return e.quotingType === ti ? "\"" + t + "\"" : "'" + t + "'";
2401
+ if (t.length === 0) return e.quotingType === ai ? "\"\"" : "''";
2402
+ if (!e.noCompatMode && (ei.indexOf(t) !== -1 || ti.test(t))) return e.quotingType === ai ? "\"" + t + "\"" : "'" + t + "'";
2395
2403
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
2396
2404
  function c(t) {
2397
- return ai(e, t);
2405
+ return li(e, t);
2398
2406
  }
2399
- switch (vi(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
2400
- case mi: return t;
2401
- case hi: return "'" + t.replace(/'/g, "''") + "'";
2402
- case gi: return "|" + bi(t, e.indent) + xi(ri(t, a));
2403
- case _i: return ">" + bi(t, e.indent) + xi(ri(Si(t, o), a));
2404
- case Z: return "\"" + wi(t) + "\"";
2407
+ switch (Si(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
2408
+ case vi: return t;
2409
+ case yi: return "'" + t.replace(/'/g, "''") + "'";
2410
+ case bi: return "|" + wi(t, e.indent) + Ti(si(t, a));
2411
+ case xi: return ">" + wi(t, e.indent) + Ti(si(Ei(t, o), a));
2412
+ case Z: return "\"" + Oi(t) + "\"";
2405
2413
  default: throw new L("impossible error: invalid scalar style");
2406
2414
  }
2407
2415
  }();
2408
2416
  }
2409
- function bi(e, t) {
2410
- var n = pi(e) ? String(t) : "", r = e[e.length - 1] === "\n";
2417
+ function wi(e, t) {
2418
+ var n = _i(e) ? String(t) : "", r = e[e.length - 1] === "\n";
2411
2419
  return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
2412
2420
  }
2413
- function xi(e) {
2421
+ function Ti(e) {
2414
2422
  return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
2415
2423
  }
2416
- function Si(e, t) {
2424
+ function Ei(e, t) {
2417
2425
  for (var n = /(\n+)([^\n]*)/g, r = function() {
2418
2426
  var r = e.indexOf("\n");
2419
- return r = r === -1 ? e.length : r, n.lastIndex = r, Ci(e.slice(0, r), t);
2427
+ return r = r === -1 ? e.length : r, n.lastIndex = r, Di(e.slice(0, r), t);
2420
2428
  }(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
2421
2429
  var s = o[1], c = o[2];
2422
- a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Ci(c, t), i = a;
2430
+ a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Di(c, t), i = a;
2423
2431
  }
2424
2432
  return r;
2425
2433
  }
2426
- function Ci(e, t) {
2434
+ function Di(e, t) {
2427
2435
  if (e === "" || e[0] === " ") return e;
2428
2436
  for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
2429
2437
  return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
2430
2438
  }
2431
- function wi(e) {
2432
- for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = fi(e, i), r = X[n], !r && si(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || $r(n);
2439
+ function Oi(e) {
2440
+ for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = gi(e, i), r = X[n], !r && di(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || ri(n);
2433
2441
  return t;
2434
2442
  }
2435
- function Ti(e, t, n) {
2443
+ function ki(e, t, n) {
2436
2444
  var r = "", i = e.tag, a, o, s;
2437
2445
  for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Q(e, t, s, !1, !1) || s === void 0 && Q(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2438
2446
  e.tag = i, e.dump = "[" + r + "]";
2439
2447
  }
2440
- function Ei(e, t, n, r) {
2448
+ function Ai(e, t, n, r) {
2441
2449
  var i = "", a = e.tag, o, s, c;
2442
- for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ii(e, t)), e.dump && Dr === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2450
+ for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ci(e, t)), e.dump && jr === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2443
2451
  e.tag = a, e.dump = i || "[]";
2444
2452
  }
2445
- function Di(e, t, n) {
2453
+ function ji(e, t, n) {
2446
2454
  var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
2447
2455
  for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Q(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Q(e, t, l, !1, !1) && (u += e.dump, r += u));
2448
2456
  e.tag = i, e.dump = "{" + r + "}";
2449
2457
  }
2450
- function Oi(e, t, n, r) {
2458
+ function Mi(e, t, n, r) {
2451
2459
  var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
2452
2460
  if (e.sortKeys === !0) o.sort();
2453
2461
  else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
2454
2462
  else if (e.sortKeys) throw new L("sortKeys must be a boolean or a function");
2455
- for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ii(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Q(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Dr === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ii(e, t)), Q(e, t + 1, u, !0, d) && (e.dump && Dr === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
2463
+ for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ci(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Q(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && jr === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ci(e, t)), Q(e, t + 1, u, !0, d) && (e.dump && jr === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
2456
2464
  e.tag = a, e.dump = i || "{}";
2457
2465
  }
2458
- function ki(e, t, n) {
2466
+ function Ni(e, t, n) {
2459
2467
  var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
2460
2468
  for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
2461
2469
  if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
2462
- if (c = e.styleMap[s.tag] || s.defaultStyle, Cr.call(s.represent) === "[object Function]") r = s.represent(t, c);
2463
- else if (wr.call(s.represent, c)) r = s.represent[c](t, c);
2470
+ if (c = e.styleMap[s.tag] || s.defaultStyle, Dr.call(s.represent) === "[object Function]") r = s.represent(t, c);
2471
+ else if (Or.call(s.represent, c)) r = s.represent[c](t, c);
2464
2472
  else throw new L("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
2465
2473
  e.dump = r;
2466
2474
  }
@@ -2469,15 +2477,15 @@ function ki(e, t, n) {
2469
2477
  return !1;
2470
2478
  }
2471
2479
  function Q(e, t, n, r, i, a, o) {
2472
- e.tag = null, e.dump = n, ki(e, n, !1) || ki(e, n, !0);
2473
- var s = Cr.call(e.dump), c = r, l;
2480
+ e.tag = null, e.dump = n, Ni(e, n, !1) || Ni(e, n, !0);
2481
+ var s = Dr.call(e.dump), c = r, l;
2474
2482
  r &&= e.flowLevel < 0 || e.flowLevel > t;
2475
2483
  var u = s === "[object Object]" || s === "[object Array]", d, f;
2476
2484
  if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
2477
2485
  else {
2478
- if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Oi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Di(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2479
- else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Ei(e, t - 1, e.dump, i) : Ei(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Ti(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2480
- else if (s === "[object String]") e.tag !== "?" && yi(e, e.dump, t, a, c);
2486
+ if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Mi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (ji(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2487
+ else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Ai(e, t - 1, e.dump, i) : Ai(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (ki(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2488
+ else if (s === "[object String]") e.tag !== "?" && Ci(e, e.dump, t, a, c);
2481
2489
  else if (s === "[object Undefined]") return !1;
2482
2490
  else {
2483
2491
  if (e.skipInvalid) return !1;
@@ -2487,63 +2495,63 @@ function Q(e, t, n, r, i, a, o) {
2487
2495
  }
2488
2496
  return !0;
2489
2497
  }
2490
- function Ai(e, t) {
2498
+ function Pi(e, t) {
2491
2499
  var n = [], r = [], i, a;
2492
- for (ji(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
2500
+ for (Fi(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
2493
2501
  t.usedDuplicates = Array(a);
2494
2502
  }
2495
- function ji(e, t, n) {
2503
+ function Fi(e, t, n) {
2496
2504
  var r, i, a;
2497
2505
  if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
2498
- else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) ji(e[i], t, n);
2499
- else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) ji(e[r[i]], t, n);
2506
+ else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Fi(e[i], t, n);
2507
+ else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Fi(e[r[i]], t, n);
2500
2508
  }
2501
- function Mi(e, t) {
2509
+ function Ii(e, t) {
2502
2510
  t ||= {};
2503
- var n = new ni(t);
2504
- n.noRefs || Ai(e, n);
2511
+ var n = new oi(t);
2512
+ n.noRefs || Pi(e, n);
2505
2513
  var r = e;
2506
2514
  return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Q(n, 0, r, !0, !0) ? n.dump + "\n" : "";
2507
2515
  }
2508
- var Ni = { dump: Mi };
2509
- function Pi(e, t) {
2516
+ var Li = { dump: Ii };
2517
+ function Ri(e, t) {
2510
2518
  return function() {
2511
2519
  throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2512
2520
  };
2513
2521
  }
2514
- var Fi = {
2522
+ var zi = {
2515
2523
  Type: R,
2516
- Schema: kt,
2517
- FAILSAFE_SCHEMA: Nt,
2518
- JSON_SCHEMA: nn,
2519
- CORE_SCHEMA: rn,
2520
- DEFAULT_SCHEMA: Mn,
2521
- load: Sr.load,
2522
- loadAll: Sr.loadAll,
2523
- dump: Ni.dump,
2524
+ Schema: Nt,
2525
+ FAILSAFE_SCHEMA: Lt,
2526
+ JSON_SCHEMA: sn,
2527
+ CORE_SCHEMA: cn,
2528
+ DEFAULT_SCHEMA: In,
2529
+ load: Er.load,
2530
+ loadAll: Er.loadAll,
2531
+ dump: Li.dump,
2524
2532
  YAMLException: L,
2525
2533
  types: {
2526
- binary: vn,
2527
- float: tn,
2528
- map: Mt,
2529
- null: Lt,
2530
- pairs: Dn,
2531
- set: jn,
2532
- timestamp: un,
2533
- bool: Vt,
2534
- int: Jt,
2535
- merge: fn,
2536
- omap: Cn,
2537
- seq: jt,
2538
- str: At
2534
+ binary: Sn,
2535
+ float: on,
2536
+ map: It,
2537
+ null: Vt,
2538
+ pairs: jn,
2539
+ set: Fn,
2540
+ timestamp: mn,
2541
+ bool: Gt,
2542
+ int: Qt,
2543
+ merge: gn,
2544
+ omap: Dn,
2545
+ seq: Ft,
2546
+ str: Pt
2539
2547
  },
2540
- safeLoad: Pi("safeLoad", "load"),
2541
- safeLoadAll: Pi("safeLoadAll", "loadAll"),
2542
- safeDump: Pi("safeDump", "dump")
2543
- }, Ii = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Li = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ri = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), zi = (e) => {
2544
- let t = Ri(e);
2548
+ safeLoad: Ri("safeLoad", "load"),
2549
+ safeLoadAll: Ri("safeLoadAll", "loadAll"),
2550
+ safeDump: Ri("safeDump", "dump")
2551
+ }, Bi = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Vi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Hi = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Ui = (e) => {
2552
+ let t = Hi(e);
2545
2553
  return t.charAt(0).toUpperCase() + t.slice(1);
2546
- }, Bi = {
2554
+ }, Wi = {
2547
2555
  xmlns: "http://www.w3.org/2000/svg",
2548
2556
  width: 24,
2549
2557
  height: 24,
@@ -2553,58 +2561,58 @@ var Fi = {
2553
2561
  strokeWidth: 2,
2554
2562
  strokeLinecap: "round",
2555
2563
  strokeLinejoin: "round"
2556
- }, Vi = (e) => {
2564
+ }, Gi = (e) => {
2557
2565
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
2558
2566
  return !1;
2559
- }, Hi = s({}), Ui = () => f(Hi), Wi = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, l) => {
2560
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Ui() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
2561
- return c("svg", {
2562
- ref: l,
2563
- ...Bi,
2564
- width: t ?? u ?? Bi.width,
2565
- height: t ?? u ?? Bi.height,
2567
+ }, Ki = l({}), qi = () => m(Ki), Ji = d(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
2568
+ let { size: l = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = qi() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? l) : n ?? d;
2569
+ return u("svg", {
2570
+ ref: c,
2571
+ ...Wi,
2572
+ width: t ?? l ?? Wi.width,
2573
+ height: t ?? l ?? Wi.height,
2566
2574
  stroke: e ?? p,
2567
2575
  strokeWidth: h,
2568
- className: Ii("lucide", m, i),
2569
- ...!a && !Vi(s) && { "aria-hidden": "true" },
2576
+ className: Bi("lucide", m, i),
2577
+ ...!a && !Gi(s) && { "aria-hidden": "true" },
2570
2578
  ...s
2571
- }, [...o.map(([e, t]) => c(e, t)), ...Array.isArray(a) ? a : [a]]);
2572
- }), Gi = (e, t) => {
2573
- let n = l(({ className: n, ...r }, i) => c(Wi, {
2579
+ }, [...o.map(([e, t]) => u(e, t)), ...Array.isArray(a) ? a : [a]]);
2580
+ }), Yi = (e, t) => {
2581
+ let n = d(({ className: n, ...r }, i) => u(Ji, {
2574
2582
  ref: i,
2575
2583
  iconNode: t,
2576
- className: Ii(`lucide-${Li(zi(e))}`, `lucide-${e}`, n),
2584
+ className: Bi(`lucide-${Vi(Ui(e))}`, `lucide-${e}`, n),
2577
2585
  ...r
2578
2586
  }));
2579
- return n.displayName = zi(e), n;
2580
- }, Ki = Gi("check", [["path", {
2587
+ return n.displayName = Ui(e), n;
2588
+ }, Xi = Yi("check", [["path", {
2581
2589
  d: "M20 6 9 17l-5-5",
2582
2590
  key: "1gmf2c"
2583
- }]]), qi = Gi("minus", [["path", {
2591
+ }]]), Zi = Yi("minus", [["path", {
2584
2592
  d: "M5 12h14",
2585
2593
  key: "1ays0h"
2586
- }]]), Ji = Gi("plus", [["path", {
2594
+ }]]), Qi = Yi("plus", [["path", {
2587
2595
  d: "M5 12h14",
2588
2596
  key: "1ays0h"
2589
2597
  }], ["path", {
2590
2598
  d: "M12 5v14",
2591
2599
  key: "s699le"
2592
- }]]), Yi = [.../* @__PURE__ */ "joker.jokers.commonJoker.commonJokers.uncommonJoker.uncommonJokers.rareJoker.rareJokers.legendaryJoker.legendaryJokers.voucher.vouchers.tarotCard.tarotCards.spectralCard.spectralCards.planetCard.boss.tag.smallBlindTag.bigBlindTag.standardCard.standardCards.erraticRank.erraticSuit.erraticCard.startingDraw.event.luckyMoney.luckyMult.misprintMult.wheelOfFortune.cavendishExtinct.grosMichelExtinct.spaceLevelup.businessPayout.bloodstoneTrigger.parkingPayout.glassDestroy.wheelStaysFlipped.and.or.clauses".split(".")], Xi = [
2600
+ }]]), $i = [.../* @__PURE__ */ "joker.jokers.commonJoker.commonJokers.uncommonJoker.uncommonJokers.rareJoker.rareJokers.legendaryJoker.legendaryJokers.voucher.vouchers.tarotCard.tarotCards.spectralCard.spectralCards.planetCard.boss.tag.smallBlindTag.bigBlindTag.standardCard.standardCards.erraticRank.erraticSuit.erraticCard.startingDraw.event.luckyMoney.luckyMult.misprintMult.wheelOfFortune.cavendishExtinct.grosMichelExtinct.spaceLevelup.businessPayout.bloodstoneTrigger.parkingPayout.glassDestroy.wheelStaysFlipped.and.or.clauses".split(".")], ea = [
2593
2601
  "antes",
2594
2602
  "tags",
2595
2603
  "labels"
2596
- ], Zi = [
2604
+ ], ta = [
2597
2605
  "must",
2598
2606
  "should",
2599
2607
  "mustNot",
2600
2608
  "any",
2601
2609
  "Any",
2602
- ...Yi,
2603
- ...Xi
2604
- ], Qi = class {
2610
+ ...$i,
2611
+ ...ea
2612
+ ], na = class {
2605
2613
  static getCompletions(e) {
2606
2614
  let t = e.toLowerCase();
2607
- return Zi.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
2615
+ return ta.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
2608
2616
  text: e,
2609
2617
  displayText: e,
2610
2618
  type: "keyword"
@@ -2622,14 +2630,14 @@ var Fi = {
2622
2630
  gold: "#efb82d",
2623
2631
  editorBg: "#0f1416",
2624
2632
  editorBgAlt: "#1c2629"
2625
- }, $i = "# My JAML Filter\nname: My Filter\ndeck: Red\nstake: White\n\nmust:\n - joker: Blueprint\n edition: Negative\n antes: [1, 2, 3]\n\nshould:\n - soulJoker: Any\n score: 5\n", ea = [
2633
+ }, ra = "# My JAML Filter\nname: My Filter\ndeck: Red\nstake: White\n\nmust:\n - joker: Blueprint\n edition: Negative\n antes: [1, 2, 3]\n\nshould:\n - soulJoker: Any\n score: 5\n", ia = [
2626
2634
  "name",
2627
2635
  "author",
2628
2636
  "description",
2629
2637
  "deck",
2630
2638
  "stake",
2631
2639
  "label"
2632
- ], ta = [
2640
+ ], aa = [
2633
2641
  "joker",
2634
2642
  "soulJoker",
2635
2643
  "voucher",
@@ -2641,20 +2649,20 @@ var Fi = {
2641
2649
  "boss",
2642
2650
  "event"
2643
2651
  ];
2644
- function na({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
2645
- return e.length === 0 ? /* @__PURE__ */ y("div", {
2652
+ function oa({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
2653
+ return e.length === 0 ? /* @__PURE__ */ x("div", {
2646
2654
  className: "jaml-suggestion-empty",
2647
2655
  children: "No suggestions..."
2648
- }) : /* @__PURE__ */ y("div", {
2656
+ }) : /* @__PURE__ */ x("div", {
2649
2657
  className: "jaml-suggestion-list",
2650
2658
  onMouseDown: (e) => e.preventDefault(),
2651
2659
  children: e.map((e, i) => {
2652
2660
  let a = i === t;
2653
- return /* @__PURE__ */ b("div", {
2661
+ return /* @__PURE__ */ S("div", {
2654
2662
  onClick: () => n(e.text),
2655
2663
  onMouseEnter: () => r(i),
2656
2664
  className: `jaml-suggestion-item${a ? " jaml-suggestion-item--selected" : ""}`,
2657
- children: [/* @__PURE__ */ y("span", { children: e.displayText }), a && /* @__PURE__ */ y("span", {
2665
+ children: [/* @__PURE__ */ x("span", { children: e.displayText }), a && /* @__PURE__ */ x("span", {
2658
2666
  className: "jaml-suggestion-enter",
2659
2667
  children: "↵"
2660
2668
  })]
@@ -2662,13 +2670,13 @@ function na({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
2662
2670
  })
2663
2671
  });
2664
2672
  }
2665
- function ra({ values: e, onToggle: t, color: n }) {
2666
- let [r, i] = _(!1), a = new Set(e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)));
2667
- return r ? /* @__PURE__ */ b("div", {
2673
+ function sa({ values: e, onToggle: t, color: n }) {
2674
+ let [r, i] = y(!1), a = new Set(e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)));
2675
+ return r ? /* @__PURE__ */ S("div", {
2668
2676
  className: "jaml-antes-row",
2669
2677
  children: [Array.from({ length: 9 }, (e, t) => t).map((e) => {
2670
2678
  let r = a.has(e);
2671
- return /* @__PURE__ */ y("div", {
2679
+ return /* @__PURE__ */ x("div", {
2672
2680
  onClick: (n) => {
2673
2681
  n.stopPropagation(), t(e.toString());
2674
2682
  },
@@ -2682,15 +2690,15 @@ function ra({ values: e, onToggle: t, color: n }) {
2682
2690
  },
2683
2691
  children: e
2684
2692
  }, e);
2685
- }), /* @__PURE__ */ y("div", {
2693
+ }), /* @__PURE__ */ x("div", {
2686
2694
  onClick: () => i(!1),
2687
2695
  className: "jaml-block jaml-antes-confirm",
2688
- children: /* @__PURE__ */ y(Ki, {
2696
+ children: /* @__PURE__ */ x(Xi, {
2689
2697
  size: 16,
2690
2698
  strokeWidth: 3
2691
2699
  })
2692
2700
  })]
2693
- }) : /* @__PURE__ */ y("div", {
2701
+ }) : /* @__PURE__ */ x("div", {
2694
2702
  onClick: () => i(!0),
2695
2703
  className: "jaml-block",
2696
2704
  style: {
@@ -2709,9 +2717,9 @@ function ra({ values: e, onToggle: t, color: n }) {
2709
2717
  })()
2710
2718
  });
2711
2719
  }
2712
- function ia(e, t) {
2713
- let [n, r] = _(null);
2714
- return p(() => {
2720
+ function ca(e, t) {
2721
+ let [n, r] = y(null);
2722
+ return h(() => {
2715
2723
  if (!t || !e.current) {
2716
2724
  r(null);
2717
2725
  return;
@@ -2730,8 +2738,8 @@ function ia(e, t) {
2730
2738
  };
2731
2739
  }, [t, e]), n;
2732
2740
  }
2733
- function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2734
- let [r, i] = _([]), [a, o] = _(null), [s, c] = _(null), [l, u] = _(null), f = g(null), p = d((e) => {
2741
+ function la({ initialJaml: e, onJamlChange: t, className: n }) {
2742
+ let [r, i] = y([]), [a, o] = y(null), [s, c] = y(null), [l, u] = y(null), d = v(null), f = p((e) => {
2735
2743
  let t = e.split("\n"), n;
2736
2744
  return t.map((e, t) => {
2737
2745
  let r = e.search(/\S|$/), i = e.trim(), a = i.startsWith("#"), o = i.startsWith("- "), s, c, l = !1, u;
@@ -2739,9 +2747,9 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2739
2747
  let e = i.indexOf(":"), t = i.slice(o ? 2 : 0, e).trim(), n = i.slice(e + 1).trim();
2740
2748
  s = t, c = n || void 0, c && c.startsWith("[") && c.endsWith("]") && (l = !0, u = c.slice(1, -1).split(",").map((e) => e.trim()).filter((e) => e));
2741
2749
  }
2742
- r === 0 && !o && (n = void 0), o && s && ta.includes(s) && (n = s);
2750
+ r === 0 && !o && (n = void 0), o && s && aa.includes(s) && (n = s);
2743
2751
  let d = "complete", f = !1;
2744
- return s && (ea.includes(s) ? d = "metadata" : ta.includes(s) ? d = c ? "complete" : "required-incomplete" : !c && s !== "must" && s !== "should" && s !== "mustNot" && (d = "optional-incomplete"), c && c.startsWith("~") && c.endsWith("~") && (f = !0, d = "invalid")), {
2752
+ return s && (ia.includes(s) ? d = "metadata" : aa.includes(s) ? d = c ? "complete" : "required-incomplete" : !c && s !== "must" && s !== "should" && s !== "mustNot" && (d = "optional-incomplete"), c && c.startsWith("~") && c.endsWith("~") && (f = !0, d = "invalid")), {
2745
2753
  id: `line-${t}`,
2746
2754
  raw: e,
2747
2755
  indent: r,
@@ -2757,13 +2765,13 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2757
2765
  arrayValues: u
2758
2766
  };
2759
2767
  });
2760
- }, []), m = d((e) => e.map((e) => e.raw).join("\n"), []), [v, x] = _(e);
2761
- if (e !== v) {
2762
- x(e);
2763
- let t = e || $i;
2764
- (r.length === 0 || m(r) !== t) && i(p(t));
2768
+ }, []), m = p((e) => e.map((e) => e.raw).join("\n"), []), [h, g] = y(e);
2769
+ if (e !== h) {
2770
+ g(e);
2771
+ let t = e || ra;
2772
+ (r.length === 0 || m(r) !== t) && i(f(t));
2765
2773
  }
2766
- let S = d((e, n, a) => {
2774
+ let b = p((e, n, a) => {
2767
2775
  let o = r.map((t) => {
2768
2776
  if (t.id !== e) return t;
2769
2777
  let r = " ".repeat(t.indent), i = t.isArrayItem ? "- " : "", o = t.raw;
@@ -2780,7 +2788,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2780
2788
  i(o);
2781
2789
  let s = m(o);
2782
2790
  if (t) try {
2783
- t(s, Fi.load(s), !0);
2791
+ t(s, zi.load(s), !0);
2784
2792
  } catch {
2785
2793
  t(s, null, !1);
2786
2794
  }
@@ -2788,7 +2796,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2788
2796
  r,
2789
2797
  m,
2790
2798
  t
2791
- ]), C = d((e, n, a) => {
2799
+ ]), C = p((e, n, a) => {
2792
2800
  let o = r.map((t) => {
2793
2801
  if (t.id !== e || !t.arrayValues) return t;
2794
2802
  let r = [...t.arrayValues];
@@ -2804,7 +2812,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2804
2812
  i(o);
2805
2813
  let s = m(o);
2806
2814
  if (t) try {
2807
- t(s, Fi.load(s), !0);
2815
+ t(s, zi.load(s), !0);
2808
2816
  } catch {
2809
2817
  t(s, null, !1);
2810
2818
  }
@@ -2812,7 +2820,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2812
2820
  r,
2813
2821
  m,
2814
2822
  t
2815
- ]), w = d((e, n) => {
2823
+ ]), w = p((e, n) => {
2816
2824
  let a = r.map((t) => {
2817
2825
  if (t.id !== e) return t;
2818
2826
  let r = [...t.arrayValues || [], n], i = `[${r.join(", ")}]`, a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
@@ -2827,7 +2835,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2827
2835
  i(a);
2828
2836
  let o = m(a);
2829
2837
  if (t) try {
2830
- t(o, Fi.load(o), !0);
2838
+ t(o, zi.load(o), !0);
2831
2839
  } catch {
2832
2840
  t(o, null, !1);
2833
2841
  }
@@ -2835,7 +2843,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2835
2843
  r,
2836
2844
  m,
2837
2845
  t
2838
- ]), T = d((e, n) => {
2846
+ ]), ee = p((e, n) => {
2839
2847
  let a = r.map((t) => {
2840
2848
  if (t.id !== e || !t.arrayValues) return t;
2841
2849
  let r = t.arrayValues.filter((e, t) => t !== n), i = r.length > 0 ? `[${r.join(", ")}]` : "", a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
@@ -2850,7 +2858,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2850
2858
  i(a);
2851
2859
  let o = m(a);
2852
2860
  if (t) try {
2853
- t(o, Fi.load(o), !0);
2861
+ t(o, zi.load(o), !0);
2854
2862
  } catch {
2855
2863
  t(o, null, !1);
2856
2864
  }
@@ -2858,7 +2866,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2858
2866
  r,
2859
2867
  m,
2860
2868
  t
2861
- ]), E = d((e) => {
2869
+ ]), te = p((e) => {
2862
2870
  let n = r.filter((t) => t.id !== e).map((e, t) => ({
2863
2871
  ...e,
2864
2872
  lineNumber: t,
@@ -2867,7 +2875,7 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2867
2875
  i(n);
2868
2876
  let a = m(n);
2869
2877
  if (t) try {
2870
- t(a, Fi.load(a), !0);
2878
+ t(a, zi.load(a), !0);
2871
2879
  } catch {
2872
2880
  t(a, null, !1);
2873
2881
  }
@@ -2875,20 +2883,20 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2875
2883
  r,
2876
2884
  m,
2877
2885
  t
2878
- ]), D = h(() => {
2886
+ ]), T = _(() => {
2879
2887
  let e = {};
2880
2888
  for (let t of r) t.key && (e[t.indent] = Math.min(Math.max(e[t.indent] || 0, t.key.length), 12));
2881
2889
  return e;
2882
2890
  }, [r]);
2883
- return /* @__PURE__ */ b("div", {
2884
- ref: f,
2891
+ return /* @__PURE__ */ S("div", {
2892
+ ref: d,
2885
2893
  className: `jaml-editor ${n ?? ""}`.trim(),
2886
2894
  tabIndex: 0,
2887
- children: [/* @__PURE__ */ y("div", {
2895
+ children: [/* @__PURE__ */ x("div", {
2888
2896
  className: "jaml-editor-lines",
2889
- children: r.map((e) => /* @__PURE__ */ y(oa, {
2897
+ children: r.map((e) => /* @__PURE__ */ x(ua, {
2890
2898
  line: e,
2891
- keyWidth: D[e.indent] || 8,
2899
+ keyWidth: T[e.indent] || 8,
2892
2900
  isEditing: a === e.id,
2893
2901
  editingPart: a === e.id ? s : null,
2894
2902
  editingArrayIndex: a === e.id ? l : null,
@@ -2898,32 +2906,32 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2898
2906
  onEndEdit: () => {
2899
2907
  o(null), c(null), u(null);
2900
2908
  },
2901
- onChange: (t, n) => S(e.id, t, n),
2909
+ onChange: (t, n) => b(e.id, t, n),
2902
2910
  onArrayItemChange: (t, n) => C(e.id, t, n),
2903
2911
  onArrayItemAdd: (t) => w(e.id, t),
2904
- onArrayItemRemove: (t) => T(e.id, t),
2905
- onDelete: () => E(e.id)
2912
+ onArrayItemRemove: (t) => ee(e.id, t),
2913
+ onDelete: () => te(e.id)
2906
2914
  }, e.id))
2907
- }), /* @__PURE__ */ b("div", {
2915
+ }), /* @__PURE__ */ S("div", {
2908
2916
  className: "jaml-legend",
2909
2917
  children: [
2910
- /* @__PURE__ */ b("span", {
2918
+ /* @__PURE__ */ S("span", {
2911
2919
  className: "jaml-legend-item",
2912
- children: [/* @__PURE__ */ y("span", { className: "jaml-legend-dot jaml-legend-dot--red" }), " required"]
2920
+ children: [/* @__PURE__ */ x("span", { className: "jaml-legend-dot jaml-legend-dot--red" }), " required"]
2913
2921
  }),
2914
- /* @__PURE__ */ b("span", {
2922
+ /* @__PURE__ */ S("span", {
2915
2923
  className: "jaml-legend-item",
2916
- children: [/* @__PURE__ */ y("span", { className: "jaml-legend-dot jaml-legend-dot--blue" }), " optional"]
2924
+ children: [/* @__PURE__ */ x("span", { className: "jaml-legend-dot jaml-legend-dot--blue" }), " optional"]
2917
2925
  }),
2918
- /* @__PURE__ */ b("span", {
2926
+ /* @__PURE__ */ S("span", {
2919
2927
  className: "jaml-legend-item",
2920
- children: [/* @__PURE__ */ y("span", { className: "jaml-legend-dot jaml-legend-dot--green" }), " complete"]
2928
+ children: [/* @__PURE__ */ x("span", { className: "jaml-legend-dot jaml-legend-dot--green" }), " complete"]
2921
2929
  }),
2922
- /* @__PURE__ */ b("span", {
2930
+ /* @__PURE__ */ S("span", {
2923
2931
  className: "jaml-legend-item",
2924
- children: [/* @__PURE__ */ y("span", { className: "jaml-legend-dot jaml-legend-dot--purple" }), " metadata"]
2932
+ children: [/* @__PURE__ */ x("span", { className: "jaml-legend-dot jaml-legend-dot--purple" }), " metadata"]
2925
2933
  }),
2926
- /* @__PURE__ */ y("span", {
2934
+ /* @__PURE__ */ x("span", {
2927
2935
  className: "jaml-legend-hint",
2928
2936
  children: "Click to edit • Tab to navigate"
2929
2937
  })
@@ -2931,28 +2939,28 @@ function aa({ initialJaml: e, onJamlChange: t, className: n }) {
2931
2939
  })]
2932
2940
  });
2933
2941
  }
2934
- function oa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
2935
- let [f, m] = _(0), [v, x] = _(""), [S, w] = _(""), [T, E] = _({
2942
+ function ua({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
2943
+ let [f, p] = y(0), [m, g] = y(""), [b, C] = y(""), [w, te] = y({
2936
2944
  isEditing: n,
2937
2945
  editingPart: r,
2938
2946
  editingArrayIndex: i,
2939
2947
  lineRaw: e.raw
2940
2948
  });
2941
- (n !== T.isEditing || r !== T.editingPart || i !== T.editingArrayIndex || e.raw !== T.lineRaw) && (E({
2949
+ (n !== w.isEditing || r !== w.editingPart || i !== w.editingArrayIndex || e.raw !== w.lineRaw) && (te({
2942
2950
  isEditing: n,
2943
2951
  editingPart: r,
2944
2952
  editingArrayIndex: i,
2945
2953
  lineRaw: e.raw
2946
- }), n && x(r === "key" ? e.key || "" : r === "value" ? (e.value || "").replace(/^~|~$/g, "") : r === "arrayItem" && i !== null && e.arrayValues?.[i] || ""));
2947
- let D = h(() => !n || !r ? "" : r === "value" && e.key ? `${e.key}: ${v}` : r === "key" ? v : e.raw, [
2954
+ }), n && g(r === "key" ? e.key || "" : r === "value" ? (e.value || "").replace(/^~|~$/g, "") : r === "arrayItem" && i !== null && e.arrayValues?.[i] || ""));
2955
+ let T = _(() => !n || !r ? "" : r === "value" && e.key ? `${e.key}: ${m}` : r === "key" ? m : e.raw, [
2948
2956
  n,
2949
2957
  r,
2950
- v,
2958
+ m,
2951
2959
  e.raw,
2952
2960
  e.key
2953
- ]), O = h(() => D ? Qi.getCompletions(D).slice(0, 10) : [], [D]);
2954
- D !== S && (w(D), m(0));
2955
- let k = g(null), A = g(null), j = ia(A, n && O.length > 0), M = () => {
2961
+ ]), E = _(() => T ? na.getCompletions(T).slice(0, 10) : [], [T]);
2962
+ T !== b && (C(T), p(0));
2963
+ let D = v(null), O = v(null), k = ca(O, n && E.length > 0), A = () => {
2956
2964
  switch (e.validationState) {
2957
2965
  case "required-incomplete": return $.red;
2958
2966
  case "optional-incomplete": return $.blue;
@@ -2961,7 +2969,7 @@ function oa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2961
2969
  case "metadata": return $.purple;
2962
2970
  default: return "#888";
2963
2971
  }
2964
- }, ee = () => {
2972
+ }, j = () => {
2965
2973
  switch (e.validationState) {
2966
2974
  case "required-incomplete": return $.red;
2967
2975
  case "optional-incomplete": return $.blue;
@@ -2971,118 +2979,118 @@ function oa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2971
2979
  default: return "#FFF";
2972
2980
  }
2973
2981
  };
2974
- p(() => {
2975
- n && k.current && k.current.focus();
2982
+ h(() => {
2983
+ n && D.current && D.current.focus();
2976
2984
  }, [n]);
2977
- let te = (t) => {
2985
+ let ne = (t) => {
2978
2986
  if (t.key === "Enter") {
2979
2987
  t.preventDefault();
2980
- let n = O.length > 0 && f >= 0 ? O[f].text : v;
2988
+ let n = E.length > 0 && f >= 0 ? E[f].text : m;
2981
2989
  r === "key" ? s("key", n) : r === "value" ? s("value", n) : r === "arrayItem" && (i >= (e.arrayValues?.length || 0) ? l(n) : c(i, n)), o();
2982
- } else t.key === "ArrowDown" ? (t.preventDefault(), m(Math.min(f + 1, O.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), m(Math.max(f - 1, 0))) : t.key === "Escape" ? o() : t.key === "Backspace" && v === "" && r === "arrayItem" && (u(i), o());
2990
+ } else t.key === "ArrowDown" ? (t.preventDefault(), p(Math.min(f + 1, E.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), p(Math.max(f - 1, 0))) : t.key === "Escape" ? o() : t.key === "Backspace" && m === "" && r === "arrayItem" && (u(i), o());
2983
2991
  };
2984
- if (e.isComment) return /* @__PURE__ */ y("div", {
2992
+ if (e.isComment) return /* @__PURE__ */ x("div", {
2985
2993
  className: "jaml-line-comment",
2986
2994
  children: e.raw
2987
2995
  });
2988
- if (!e.key && !e.raw.trim()) return /* @__PURE__ */ y("div", { className: "jaml-line-empty" });
2989
- if ((e.key === "must" || e.key === "should" || e.key === "mustNot") && !e.value) return /* @__PURE__ */ y("div", {
2996
+ if (!e.key && !e.raw.trim()) return /* @__PURE__ */ x("div", { className: "jaml-line-empty" });
2997
+ if ((e.key === "must" || e.key === "should" || e.key === "mustNot") && !e.value) return /* @__PURE__ */ x("div", {
2990
2998
  className: "jaml-clause-header",
2991
2999
  style: { "--jaml-color": e.key === "must" ? $.red : $.blue },
2992
3000
  children: e.raw
2993
3001
  });
2994
- let ne = " ".repeat(e.indent), re = e.isArrayItem ? "- " : "", ie = j ? {
2995
- "--popover-top": `${j.top}px`,
2996
- "--popover-left": `${j.left}px`,
2997
- "--popover-transform": j.position === "top" ? "translateY(-100%)" : "none"
3002
+ let re = " ".repeat(e.indent), ie = e.isArrayItem ? "- " : "", ae = k ? {
3003
+ "--popover-top": `${k.top}px`,
3004
+ "--popover-left": `${k.left}px`,
3005
+ "--popover-transform": k.position === "top" ? "translateY(-100%)" : "none"
2998
3006
  } : {};
2999
- return /* @__PURE__ */ b("div", {
3007
+ return /* @__PURE__ */ S("div", {
3000
3008
  className: "jaml-line",
3001
3009
  children: [
3002
- /* @__PURE__ */ y("div", {
3010
+ /* @__PURE__ */ x("div", {
3003
3011
  className: "jaml-line-delete",
3004
3012
  onClick: (e) => {
3005
3013
  e.stopPropagation(), d();
3006
3014
  },
3007
- children: /* @__PURE__ */ y(qi, {
3015
+ children: /* @__PURE__ */ x(Zi, {
3008
3016
  size: 12,
3009
3017
  className: "jaml-line-delete-icon"
3010
3018
  })
3011
3019
  }),
3012
- /* @__PURE__ */ b("span", {
3020
+ /* @__PURE__ */ S("span", {
3013
3021
  className: "jaml-line-indent",
3014
- children: [ne, re]
3022
+ children: [re, ie]
3015
3023
  }),
3016
- e.key && /* @__PURE__ */ b("div", {
3024
+ e.key && /* @__PURE__ */ S("div", {
3017
3025
  className: "jaml-key-wrap",
3018
- children: [/* @__PURE__ */ y("div", {
3019
- ref: r === "key" ? A : null,
3026
+ children: [/* @__PURE__ */ x("div", {
3027
+ ref: r === "key" ? O : null,
3020
3028
  onClick: (e) => {
3021
3029
  e.stopPropagation(), a("key");
3022
3030
  },
3023
3031
  className: "jaml-block jaml-block--start",
3024
3032
  style: {
3025
3033
  "--jaml-min-w": `${t}ch`,
3026
- "--jaml-color": n && r === "key" ? ee() : M(),
3027
- "--jaml-bg": n && r === "key" ? `${ee()}15` : "transparent"
3034
+ "--jaml-color": n && r === "key" ? j() : A(),
3035
+ "--jaml-bg": n && r === "key" ? `${j()}15` : "transparent"
3028
3036
  },
3029
- children: n && r === "key" ? /* @__PURE__ */ y("input", {
3030
- ref: k,
3037
+ children: n && r === "key" ? /* @__PURE__ */ x("input", {
3038
+ ref: D,
3031
3039
  title: "Edit key",
3032
- value: v,
3033
- onChange: (e) => x(e.target.value),
3034
- onKeyDown: te,
3040
+ value: m,
3041
+ onChange: (e) => g(e.target.value),
3042
+ onKeyDown: ne,
3035
3043
  onBlur: () => setTimeout(o, 200),
3036
3044
  className: "jaml-inline-input",
3037
- style: { "--jaml-color": ee() }
3045
+ style: { "--jaml-color": j() }
3038
3046
  }) : e.key
3039
- }), n && r === "key" && O.length > 0 && j && C(/* @__PURE__ */ y("div", {
3047
+ }), n && r === "key" && E.length > 0 && k && ee(/* @__PURE__ */ x("div", {
3040
3048
  className: "jaml-suggestion-popover",
3041
- style: ie,
3042
- children: /* @__PURE__ */ y(na, {
3043
- suggestions: O,
3049
+ style: ae,
3050
+ children: /* @__PURE__ */ x(oa, {
3051
+ suggestions: E,
3044
3052
  selectedIndex: f,
3045
- onHover: m,
3053
+ onHover: p,
3046
3054
  onSelect: (e) => {
3047
3055
  s("key", e), o();
3048
3056
  }
3049
3057
  })
3050
3058
  }), document.body)]
3051
3059
  }),
3052
- e.key && /* @__PURE__ */ y("span", {
3060
+ e.key && /* @__PURE__ */ x("span", {
3053
3061
  className: "jaml-colon",
3054
3062
  children: ":"
3055
3063
  }),
3056
- e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ y(ra, {
3064
+ e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ x(sa, {
3057
3065
  values: e.arrayValues,
3058
3066
  onToggle: (t) => {
3059
3067
  let n = e.arrayValues.indexOf(t);
3060
3068
  n >= 0 ? u(n) : l(t);
3061
3069
  },
3062
- color: ee()
3063
- }) : /* @__PURE__ */ b("div", {
3070
+ color: j()
3071
+ }) : /* @__PURE__ */ S("div", {
3064
3072
  className: "jaml-array-row",
3065
- children: [e.arrayValues.map((e, t) => /* @__PURE__ */ y("div", {
3073
+ children: [e.arrayValues.map((e, t) => /* @__PURE__ */ x("div", {
3066
3074
  onClick: (e) => {
3067
3075
  e.stopPropagation(), a("arrayItem", t);
3068
3076
  },
3069
3077
  className: "jaml-block",
3070
3078
  style: {
3071
3079
  "--jaml-min-w": "24px",
3072
- "--jaml-bg": `${M()}15`,
3073
- "--jaml-border": `1px solid ${M()}40`,
3074
- "--jaml-color": M()
3080
+ "--jaml-bg": `${A()}15`,
3081
+ "--jaml-border": `1px solid ${A()}40`,
3082
+ "--jaml-color": A()
3075
3083
  },
3076
- children: n && r === "arrayItem" && i === t ? /* @__PURE__ */ y("input", {
3077
- ref: k,
3084
+ children: n && r === "arrayItem" && i === t ? /* @__PURE__ */ x("input", {
3085
+ ref: D,
3078
3086
  title: "Edit array item",
3079
- value: v,
3080
- onChange: (e) => x(e.target.value),
3081
- onKeyDown: te,
3087
+ value: m,
3088
+ onChange: (e) => g(e.target.value),
3089
+ onKeyDown: ne,
3082
3090
  onBlur: () => setTimeout(o, 200),
3083
3091
  className: "jaml-array-input"
3084
3092
  }) : e
3085
- }, t)), /* @__PURE__ */ y("div", {
3093
+ }, t)), /* @__PURE__ */ x("div", {
3086
3094
  onClick: (t) => {
3087
3095
  t.stopPropagation(), a("arrayItem", e.arrayValues.length);
3088
3096
  },
@@ -3093,43 +3101,43 @@ function oa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
3093
3101
  "--jaml-border": `1px solid ${$.green}40`,
3094
3102
  "--jaml-color": $.green
3095
3103
  },
3096
- children: /* @__PURE__ */ y(Ji, { size: 12 })
3104
+ children: /* @__PURE__ */ x(Qi, { size: 12 })
3097
3105
  })]
3098
- }) : /* @__PURE__ */ b("div", {
3106
+ }) : /* @__PURE__ */ S("div", {
3099
3107
  className: "jaml-value-wrap",
3100
- children: [/* @__PURE__ */ y("div", {
3101
- ref: r === "value" ? A : null,
3108
+ children: [/* @__PURE__ */ x("div", {
3109
+ ref: r === "value" ? O : null,
3102
3110
  onClick: (e) => {
3103
3111
  e.stopPropagation(), a("value");
3104
3112
  },
3105
3113
  className: "jaml-block",
3106
3114
  style: {
3107
3115
  "--jaml-min-w": e.value ? void 0 : "60px",
3108
- "--jaml-color": e.isInvalidValue ? $.red : e.value ? M() : $.red,
3109
- "--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${M()}10` : `${$.red}08`,
3110
- "--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${M()}40` : `${$.red}40`}`,
3116
+ "--jaml-color": e.isInvalidValue ? $.red : e.value ? A() : $.red,
3117
+ "--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${A()}10` : `${$.red}08`,
3118
+ "--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${A()}40` : `${$.red}40`}`,
3111
3119
  "--jaml-text-decoration": e.isInvalidValue ? "line-through" : "none"
3112
3120
  },
3113
- children: n && r === "value" ? /* @__PURE__ */ y("input", {
3114
- ref: k,
3121
+ children: n && r === "value" ? /* @__PURE__ */ x("input", {
3122
+ ref: D,
3115
3123
  title: "Edit value",
3116
- value: v,
3117
- onChange: (e) => x(e.target.value),
3118
- onKeyDown: te,
3124
+ value: m,
3125
+ onChange: (e) => g(e.target.value),
3126
+ onKeyDown: ne,
3119
3127
  onBlur: () => setTimeout(o, 200),
3120
3128
  className: "jaml-inline-input jaml-inline-input--sized",
3121
3129
  style: {
3122
- "--jaml-color": M(),
3123
- "--jaml-input-w": `${Math.max(v.length, 4)}ch`
3130
+ "--jaml-color": A(),
3131
+ "--jaml-input-w": `${Math.max(m.length, 4)}ch`
3124
3132
  }
3125
3133
  }) : e.isInvalidValue ? e.value?.replace(/~/g, "") : e.value || "???"
3126
- }), n && r === "value" && O.length > 0 && j && C(/* @__PURE__ */ y("div", {
3134
+ }), n && r === "value" && E.length > 0 && k && ee(/* @__PURE__ */ x("div", {
3127
3135
  className: "jaml-suggestion-popover",
3128
- style: ie,
3129
- children: /* @__PURE__ */ y(na, {
3130
- suggestions: O,
3136
+ style: ae,
3137
+ children: /* @__PURE__ */ x(oa, {
3138
+ suggestions: E,
3131
3139
  selectedIndex: f,
3132
- onHover: m,
3140
+ onHover: p,
3133
3141
  onSelect: (e) => {
3134
3142
  s("value", e), o();
3135
3143
  }
@@ -3141,61 +3149,61 @@ function oa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
3141
3149
  }
3142
3150
  //#endregion
3143
3151
  //#region src/ui/JimboInputModal.tsx
3144
- function sa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
3145
- let [u, d] = _(i), [f, m] = _(null), h = g(null), [v, x] = _(e);
3146
- e !== v && (x(e), e && (d(i), m(null))), p(() => {
3152
+ function da({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
3153
+ let [u, d] = y(i), [f, p] = y(null), m = v(null), [g, _] = y(e);
3154
+ e !== g && (_(e), e && (d(i), p(null))), h(() => {
3147
3155
  if (e) {
3148
- let e = setTimeout(() => h.current?.focus(), 30);
3156
+ let e = setTimeout(() => m.current?.focus(), 30);
3149
3157
  return () => clearTimeout(e);
3150
3158
  }
3151
3159
  }, [e]);
3152
- function S() {
3160
+ function b() {
3153
3161
  let e = s?.(u) ?? null;
3154
3162
  if (e) {
3155
- m(e);
3163
+ p(e);
3156
3164
  return;
3157
3165
  }
3158
3166
  c(u);
3159
3167
  }
3160
- return /* @__PURE__ */ b(be, {
3168
+ return /* @__PURE__ */ S(we, {
3161
3169
  onClose: l,
3162
3170
  open: e,
3163
3171
  title: t,
3164
3172
  children: [
3165
- n && /* @__PURE__ */ y(N, {
3173
+ n && /* @__PURE__ */ x(N, {
3166
3174
  size: "sm",
3167
3175
  className: "j-input-modal__message",
3168
3176
  tone: "grey",
3169
3177
  children: n
3170
3178
  }),
3171
- /* @__PURE__ */ y(ce, {
3179
+ /* @__PURE__ */ x(fe, {
3172
3180
  invalid: !!f,
3173
3181
  onChange: (e) => {
3174
- d(e.target.value), f && m(null);
3182
+ d(e.target.value), f && p(null);
3175
3183
  },
3176
3184
  onKeyDown: (e) => {
3177
- e.key === "Enter" && S(), e.key === "Escape" && l();
3185
+ e.key === "Enter" && b(), e.key === "Escape" && l();
3178
3186
  },
3179
3187
  placeholder: r,
3180
- ref: h,
3188
+ ref: m,
3181
3189
  type: "text",
3182
3190
  value: u
3183
3191
  }),
3184
- f && /* @__PURE__ */ y(N, {
3192
+ f && /* @__PURE__ */ x(N, {
3185
3193
  size: "sm",
3186
3194
  className: "j-input-modal__error",
3187
3195
  tone: "red",
3188
3196
  children: f
3189
3197
  }),
3190
- /* @__PURE__ */ b("div", {
3198
+ /* @__PURE__ */ S("div", {
3191
3199
  className: "j-input-modal__actions",
3192
- children: [/* @__PURE__ */ y(P, {
3200
+ children: [/* @__PURE__ */ x(P, {
3193
3201
  onClick: l,
3194
3202
  size: "sm",
3195
3203
  tone: "red",
3196
3204
  children: o
3197
- }), /* @__PURE__ */ y(P, {
3198
- onClick: S,
3205
+ }), /* @__PURE__ */ x(P, {
3206
+ onClick: b,
3199
3207
  size: "sm",
3200
3208
  tone: "blue",
3201
3209
  children: a
@@ -3206,16 +3214,16 @@ function sa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
3206
3214
  }
3207
3215
  //#endregion
3208
3216
  //#region src/ui/JimboSelect.tsx
3209
- function ca({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "aria-label": a, style: o }) {
3217
+ function fa({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "aria-label": a, style: o }) {
3210
3218
  let s = (t.length === 0 ? [] : typeof t[0] == "string" ? t.map((e) => ({ value: e })) : t).filter((e) => !e.disabled), c = Math.max(0, s.findIndex((t) => t.value === e)), l = s[c] ?? s[0];
3211
3219
  if (!l) return null;
3212
3220
  function u(e) {
3213
3221
  r || s.length === 0 || n(s[(c + e + s.length) % s.length].value);
3214
3222
  }
3215
- return /* @__PURE__ */ y("div", {
3223
+ return /* @__PURE__ */ x("div", {
3216
3224
  style: o,
3217
3225
  "aria-label": a,
3218
- children: /* @__PURE__ */ y(Me, {
3226
+ children: /* @__PURE__ */ x(Ie, {
3219
3227
  label: i,
3220
3228
  value: l.label ?? l.value,
3221
3229
  onPrev: () => u(-1),
@@ -3227,21 +3235,21 @@ function ca({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "ar
3227
3235
  }
3228
3236
  //#endregion
3229
3237
  //#region src/ui/JimboStepper.tsx
3230
- function la({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicator", className: i = "", style: a }) {
3238
+ function pa({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicator", className: i = "", style: a }) {
3231
3239
  if (e <= 1) return null;
3232
3240
  let o = !!n;
3233
- return /* @__PURE__ */ y("div", {
3241
+ return /* @__PURE__ */ x("div", {
3234
3242
  className: `j-stepper ${i}`,
3235
3243
  role: "tablist",
3236
3244
  "aria-label": r,
3237
3245
  style: a,
3238
3246
  children: Array.from({ length: e }).map((r, i) => {
3239
- let a = i === t, s = /* @__PURE__ */ y("span", {
3247
+ let a = i === t, s = /* @__PURE__ */ x("span", {
3240
3248
  className: "j-stepper__dot",
3241
3249
  "data-active": a,
3242
3250
  "aria-hidden": !0
3243
3251
  });
3244
- return o ? /* @__PURE__ */ y("button", {
3252
+ return o ? /* @__PURE__ */ x("button", {
3245
3253
  type: "button",
3246
3254
  className: "j-stepper__hit",
3247
3255
  role: "tab",
@@ -3249,7 +3257,7 @@ function la({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicat
3249
3257
  "aria-label": `Page ${i + 1} of ${e}`,
3250
3258
  onClick: () => n?.(i),
3251
3259
  children: s
3252
- }, i) : /* @__PURE__ */ y("span", {
3260
+ }, i) : /* @__PURE__ */ x("span", {
3253
3261
  role: "tab",
3254
3262
  "aria-selected": a,
3255
3263
  children: s
@@ -3259,15 +3267,15 @@ function la({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicat
3259
3267
  }
3260
3268
  //#endregion
3261
3269
  //#region src/ui/JimboValueBadge.tsx
3262
- function ua({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit: a, readOnly: o = !1, className: s = "", style: c }) {
3263
- let [l, u] = _(!1), [d, f] = _(String(e)), m = g(null);
3264
- p(() => {
3265
- l && (m.current?.focus(), m.current?.select());
3270
+ function ma({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit: a, readOnly: o = !1, className: s = "", style: c }) {
3271
+ let [l, u] = y(!1), [d, f] = y(String(e)), p = v(null);
3272
+ h(() => {
3273
+ l && (p.current?.focus(), p.current?.select());
3266
3274
  }, [l]);
3267
- function h() {
3275
+ function m() {
3268
3276
  f(String(e)), u(!0);
3269
3277
  }
3270
- function v() {
3278
+ function g() {
3271
3279
  let e = Number(d);
3272
3280
  if (Number.isFinite(e)) {
3273
3281
  let a = Math.min(r, Math.max(n, e)), o = i > 0 ? Math.round(a / i) * i : a;
@@ -3275,15 +3283,15 @@ function ua({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit
3275
3283
  }
3276
3284
  u(!1);
3277
3285
  }
3278
- function b() {
3286
+ function _() {
3279
3287
  f(String(e)), u(!1);
3280
3288
  }
3281
- let x = !o && !!t, S = a ? `${Math.round(e)}${a}` : String(Math.round(e));
3282
- return l ? /* @__PURE__ */ y("div", {
3289
+ let b = !o && !!t, S = a ? `${Math.round(e)}${a}` : String(Math.round(e));
3290
+ return l ? /* @__PURE__ */ x("div", {
3283
3291
  className: `j-value-badge j-value-badge--editing ${s}`,
3284
3292
  style: c,
3285
- children: /* @__PURE__ */ y("input", {
3286
- ref: m,
3293
+ children: /* @__PURE__ */ x("input", {
3294
+ ref: p,
3287
3295
  className: "j-value-badge__input",
3288
3296
  type: "number",
3289
3297
  min: n,
@@ -3291,19 +3299,19 @@ function ua({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit
3291
3299
  step: i,
3292
3300
  value: d,
3293
3301
  onChange: (e) => f(e.currentTarget.value),
3294
- onBlur: v,
3302
+ onBlur: g,
3295
3303
  onKeyDown: (e) => {
3296
- e.key === "Enter" ? v() : e.key === "Escape" && b();
3304
+ e.key === "Enter" ? g() : e.key === "Escape" && _();
3297
3305
  }
3298
3306
  })
3299
- }) : /* @__PURE__ */ y("button", {
3307
+ }) : /* @__PURE__ */ x("button", {
3300
3308
  type: "button",
3301
- className: `j-value-badge ${x ? "" : "j-value-badge--static"} ${s}`,
3309
+ className: `j-value-badge ${b ? "" : "j-value-badge--static"} ${s}`,
3302
3310
  style: c,
3303
- onClick: x ? h : void 0,
3304
- disabled: !x,
3305
- tabIndex: x ? 0 : -1,
3306
- children: /* @__PURE__ */ y(N, {
3311
+ onClick: b ? m : void 0,
3312
+ disabled: !b,
3313
+ tabIndex: b ? 0 : -1,
3314
+ children: /* @__PURE__ */ x(N, {
3307
3315
  size: "xs",
3308
3316
  tone: "white",
3309
3317
  children: S
@@ -3312,30 +3320,30 @@ function ua({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit
3312
3320
  }
3313
3321
  //#endregion
3314
3322
  //#region src/ui/JimboSlider.tsx
3315
- function da({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChange: a, className: s = "", id: c }) {
3316
- let l = n === t ? 0 : (e - t) / (n - t) * 100, u = o.useId(), d = c ?? u;
3317
- return /* @__PURE__ */ b("div", {
3318
- className: `j-slider-wrap ${s}`,
3319
- children: [i && /* @__PURE__ */ y("label", {
3323
+ function ha({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChange: a, className: o = "", id: s }) {
3324
+ let l = n === t ? 0 : (e - t) / (n - t) * 100, u = c.useId(), d = s ?? u;
3325
+ return /* @__PURE__ */ S("div", {
3326
+ className: `j-slider-wrap ${o}`,
3327
+ children: [i && /* @__PURE__ */ x("label", {
3320
3328
  htmlFor: d,
3321
3329
  className: "j-slider__label",
3322
- children: /* @__PURE__ */ y(N, {
3330
+ children: /* @__PURE__ */ x(N, {
3323
3331
  size: "sm",
3324
3332
  tone: "white",
3325
3333
  children: i
3326
3334
  })
3327
- }), /* @__PURE__ */ b("div", {
3335
+ }), /* @__PURE__ */ S("div", {
3328
3336
  className: "j-slider",
3329
3337
  children: [
3330
- /* @__PURE__ */ y("div", {
3338
+ /* @__PURE__ */ x("div", {
3331
3339
  className: "j-slider__track",
3332
3340
  "aria-hidden": !0,
3333
- children: /* @__PURE__ */ y("div", {
3341
+ children: /* @__PURE__ */ x("div", {
3334
3342
  className: "j-slider__fill",
3335
3343
  style: { width: `${l}%` }
3336
3344
  })
3337
3345
  }),
3338
- /* @__PURE__ */ y("input", {
3346
+ /* @__PURE__ */ x("input", {
3339
3347
  id: d,
3340
3348
  type: "range",
3341
3349
  className: "j-slider__input",
@@ -3345,10 +3353,10 @@ function da({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChang
3345
3353
  value: e,
3346
3354
  onChange: (e) => a?.(Number(e.currentTarget.value))
3347
3355
  }),
3348
- /* @__PURE__ */ y("div", {
3356
+ /* @__PURE__ */ x("div", {
3349
3357
  className: "j-slider__thumb",
3350
3358
  style: { left: `${l}%` },
3351
- children: /* @__PURE__ */ y(ua, {
3359
+ children: /* @__PURE__ */ x(ma, {
3352
3360
  value: e,
3353
3361
  min: t,
3354
3362
  max: n,
@@ -3362,19 +3370,19 @@ function da({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChang
3362
3370
  }
3363
3371
  //#endregion
3364
3372
  //#region src/ui/JimboDualChip.tsx
3365
- function fa({ left: e, right: t, className: n = "" }) {
3366
- return /* @__PURE__ */ b("div", {
3373
+ function ga({ left: e, right: t, className: n = "" }) {
3374
+ return /* @__PURE__ */ S("div", {
3367
3375
  className: `j-dual-chip ${n}`,
3368
- children: [/* @__PURE__ */ y("div", {
3376
+ children: [/* @__PURE__ */ x("div", {
3369
3377
  className: `j-dual-chip__half j-dual-chip__half--left j-dual-chip__half--${e.tone}`,
3370
- children: /* @__PURE__ */ y(N, {
3378
+ children: /* @__PURE__ */ x(N, {
3371
3379
  size: "md",
3372
3380
  tone: e.tone === "gold" ? "default" : "white",
3373
3381
  children: e.value
3374
3382
  })
3375
- }), /* @__PURE__ */ y("div", {
3383
+ }), /* @__PURE__ */ x("div", {
3376
3384
  className: `j-dual-chip__half j-dual-chip__half--${t.tone}`,
3377
- children: /* @__PURE__ */ y(N, {
3385
+ children: /* @__PURE__ */ x(N, {
3378
3386
  size: "md",
3379
3387
  tone: t.tone === "gold" ? "default" : "white",
3380
3388
  children: t.value
@@ -3383,97 +3391,9 @@ function fa({ left: e, right: t, className: n = "" }) {
3383
3391
  });
3384
3392
  }
3385
3393
  //#endregion
3386
- //#region src/ui/JimboCookLever.tsx
3387
- var pa = 56, ma = .7, ha = 3, ga = 90, _a = 80, va = 6;
3388
- function ya() {
3389
- return {
3390
- name: i[Math.floor(Math.random() * i.length)].name,
3391
- sheet: "Jokers"
3392
- };
3393
- }
3394
- function ba({ cooking: e, onCook: t, onStop: n, matchSprites: r, disabled: i = !1, className: a = "" }) {
3395
- let [s, c] = o.useState(null), [l, u] = o.useState(!1), [d, f] = o.useState(() => Array.from({ length: ha }, ya)), [p, m] = o.useState(0), h = o.useRef(0), g = o.useRef(!1), _ = o.useRef(!1), v = o.useRef(r), x = e || l, S = e && (r?.length ?? 0) > 0, C = e && !S;
3396
- return o.useEffect(() => {
3397
- v.current = r;
3398
- }, [r]), o.useEffect(() => {
3399
- _.current && !e && u(!1), !_.current && e && m(0), _.current = e;
3400
- }, [e]), o.useEffect(() => {
3401
- if (!C) return;
3402
- let e = window.setInterval(() => {
3403
- f((e) => e.map(() => ya()));
3404
- }, ga);
3405
- return () => window.clearInterval(e);
3406
- }, [C]), o.useEffect(() => {
3407
- if (!S) return;
3408
- let e = v.current ?? [];
3409
- if (e.length === 0) return;
3410
- let t = Array.from({ length: ha }, (t, n) => window.setTimeout(() => {
3411
- f((t) => t.map((t, r) => r === n ? e[n % e.length] : t)), m(n + 1);
3412
- }, n * _a));
3413
- return () => t.forEach((e) => window.clearTimeout(e));
3414
- }, [S]), /* @__PURE__ */ b("div", {
3415
- className: `j-cook-lever ${a}`.trim(),
3416
- "data-cooking": x || void 0,
3417
- "data-disabled": i || void 0,
3418
- children: [
3419
- /* @__PURE__ */ y("div", {
3420
- className: "j-cook-lever__reels",
3421
- children: d.map((e, t) => /* @__PURE__ */ y("div", {
3422
- className: "j-cook-lever__reel",
3423
- "data-spinning": C && t >= p || void 0,
3424
- "data-locked": t < p || void 0,
3425
- children: /* @__PURE__ */ y(re, {
3426
- name: e.name,
3427
- sheet: e.sheet,
3428
- width: 52,
3429
- className: "j-cook-lever__sprite"
3430
- })
3431
- }, t))
3432
- }),
3433
- /* @__PURE__ */ y("div", {
3434
- className: "j-cook-lever__label",
3435
- children: x ? "jimbo is cooking…" : "let jimbo cook"
3436
- }),
3437
- /* @__PURE__ */ y("div", {
3438
- className: "j-cook-lever__track",
3439
- children: /* @__PURE__ */ y("div", {
3440
- className: "j-cook-lever__knob",
3441
- role: "button",
3442
- tabIndex: i ? -1 : 0,
3443
- "aria-label": x ? "jimbo is cooking… tap to stop" : "let jimbo cook",
3444
- "data-dragging": s !== null || void 0,
3445
- style: s === null ? void 0 : { transform: `translateY(${s}px)` },
3446
- onPointerDown: (e) => {
3447
- i || (e.currentTarget.setPointerCapture(e.pointerId), h.current = e.clientY, g.current = !1, x || c(0));
3448
- },
3449
- onPointerMove: (e) => {
3450
- if (i || s === null) return;
3451
- let t = e.clientY - h.current;
3452
- Math.abs(t) > va && (g.current = !0), c(t <= 0 ? 0 : t <= pa ? t : pa + (t - pa) * .25);
3453
- },
3454
- onPointerUp: () => {
3455
- if (i) return;
3456
- if (x) {
3457
- g.current || (n?.(), u(!1));
3458
- return;
3459
- }
3460
- if (s === null) return;
3461
- let e = s >= pa * ma;
3462
- c(null), e && (u(!0), navigator.vibrate?.(40), t());
3463
- },
3464
- onPointerCancel: () => {
3465
- c(null);
3466
- },
3467
- onKeyDown: (e) => {
3468
- i || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), x ? (n?.(), u(!1)) : (u(!0), t()));
3469
- },
3470
- children: /* @__PURE__ */ y("div", { className: "j-cook-lever__knob-face" })
3471
- })
3472
- })
3473
- ]
3474
- });
3475
- }
3394
+ //#region src/ui.ts
3395
+ D();
3476
3396
  //#endregion
3477
- export { pe as $, ze as A, Se as B, Ye as C, He as D, Ge as E, je as F, be as G, ye as H, Oe as I, he as J, _e as K, De as L, Pe as M, Ne as N, Ve as O, Me as P, me as Q, Ee as R, qe as S, Ke as T, P as U, xe as V, ve as W, ge as X, de as Y, fe as Z, $e as _, la as a, ae as at, Ze as b, aa as c, E as ct, ot as d, ue as et, at as f, nt as g, Qe as h, ua as i, re as it, Le as j, Be as k, lt as l, w as lt, rt as m, fa as n, N as nt, ca as o, te as ot, it as p, le as q, da as r, se as rt, sa as s, ne as st, ba as t, ce as tt, st as u, T as ut, tt as v, Je as w, Xe as x, et as y, Te as z };
3397
+ export { me as $, He as A, Te as B, Ze as C, We as D, Ge as E, Me as F, xe as G, P as H, je as I, he as J, pe as K, Ae as L, Le as M, Ie as N, Ve as O, Fe as P, _e as Q, ke as R, Qe as S, Je as T, Se as U, Ce as V, we as W, ge as X, be as Y, ve as Z, at as _, fa as a, oe as at, et as b, pt as c, E as ct, lt as d, te as dt, fe as et, ct as f, rt as g, ot as h, pa as i, le as it, Be as j, Ue as k, dt as l, T as lt, nt as m, ha as n, de as nt, da as o, ie as ot, st as p, ye as q, ma as r, se as rt, la as s, ae as st, ga as t, N as tt, ut as u, D as ut, it as v, Xe as w, $e as x, tt as y, Ee as z };
3478
3398
 
3479
- //# sourceMappingURL=ui-BK5rM4AS.js.map
3399
+ //# sourceMappingURL=ui-DwggmAYr.js.map