@fde-desktop/fde-core 0.4.8 → 0.4.10

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.
@@ -11,21 +11,21 @@ import { t as N } from "./Paper-DtUYKmYn.js";
11
11
  import { t as P } from "./Group-BzwlMeob.js";
12
12
  import { i as ne, o as F } from "./getRuntime-CCRXVzJH.js";
13
13
  import { t as I } from "./Button-k7SxX1Xl.js";
14
- import { n as re, t as L } from "./AppIcon-DCDuaU-t.js";
15
- import { t as R } from "./Stack-CuDEaP7e.js";
16
- import { t as ie } from "./react-DYmzHD0X.js";
17
- import { ft as ae, o as oe, pt as se } from "./desktopStore-B0R1-BeA.js";
18
- import { t as z } from "./useTranslation-DMRGdqZi.js";
19
- import { i as ce } from "./useCloseInterceptor-CuKAAFnj.js";
20
- import { t as B } from "./useResolvedUrl-DFKXq598.js";
21
- import { n as le } from "./FilePickerApp-DMGuvahM.js";
22
- import { t as ue } from "./Colors-hca6raEG.js";
23
- import { n as de } from "./settingsAppStore-KOeWRO6h.js";
24
- import * as V from "react";
25
- import { createContext as fe, createElement as pe, use as me, useCallback as H, useDeferredValue as he, useEffect as U, useRef as W, useState as G } from "react";
14
+ import { n as L, t as R } from "./AppIcon-DCDuaU-t.js";
15
+ import { t as z } from "./Stack-CuDEaP7e.js";
16
+ import { t as re } from "./react-DYmzHD0X.js";
17
+ import { ft as ie, o as ae, pt as oe } from "./desktopStore-B0R1-BeA.js";
18
+ import { t as B } from "./useTranslation-DMRGdqZi.js";
19
+ import { i as se } from "./useCloseInterceptor-CuKAAFnj.js";
20
+ import { t as V } from "./useResolvedUrl-DFKXq598.js";
21
+ import { n as ce } from "./FilePickerApp-DMGuvahM.js";
22
+ import { t as le } from "./Colors-hca6raEG.js";
23
+ import { n as ue } from "./settingsAppStore-KOeWRO6h.js";
24
+ import { createContext as de, createElement as fe, use as pe, useCallback as H, useDeferredValue as me, useEffect as U, useRef as W, useState as G } from "react";
26
25
  import { jsx as K, jsxs as q } from "react/jsx-runtime";
26
+ import { useQuery as he, useQueryClient as ge } from "@tanstack/react-query";
27
27
  //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/utils/shallow-equal/shallow-equal.mjs
28
- function ge(e, t) {
28
+ function _e(e, t) {
29
29
  if (e === t || Number.isNaN(e) && Number.isNaN(t)) return !0;
30
30
  if (!(e instanceof Object) || !(t instanceof Object)) return !1;
31
31
  let n = Object.keys(e), { length: r } = n;
@@ -38,23 +38,23 @@ function ge(e, t) {
38
38
  }
39
39
  //#endregion
40
40
  //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-shallow-effect/use-shallow-effect.mjs
41
- function _e(e, t) {
41
+ function ve(e, t) {
42
42
  if (!e || !t) return !1;
43
43
  if (e === t) return !0;
44
44
  if (e.length !== t.length) return !1;
45
- for (let n = 0; n < e.length; n += 1) if (!ge(e[n], t[n])) return !1;
45
+ for (let n = 0; n < e.length; n += 1) if (!_e(e[n], t[n])) return !1;
46
46
  return !0;
47
47
  }
48
- function ve(e) {
48
+ function ye(e) {
49
49
  let t = W([]), n = W(0);
50
- return _e(t.current, e) || (t.current = e, n.current += 1), [n.current];
50
+ return ve(t.current, e) || (t.current = e, n.current += 1), [n.current];
51
51
  }
52
- function ye(e, t) {
53
- U(e, ve(t));
52
+ function be(e, t) {
53
+ U(e, ye(t));
54
54
  }
55
55
  //#endregion
56
56
  //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-timeout/use-timeout.mjs
57
- function be(e, t, n = { autoInvoke: !1 }) {
57
+ function xe(e, t, n = { autoInvoke: !1 }) {
58
58
  let r = W(null), i = H((...n) => {
59
59
  r.current ||= window.setTimeout(() => {
60
60
  e(n), r.current = null;
@@ -69,7 +69,7 @@ function be(e, t, n = { autoInvoke: !1 }) {
69
69
  }
70
70
  //#endregion
71
71
  //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-mutation-observer/use-mutation-observer.mjs
72
- function xe(e, t, n) {
72
+ function Se(e, t, n) {
73
73
  let r = W(null);
74
74
  U(() => {
75
75
  r.current &&= (r.current.disconnect(), null);
@@ -85,23 +85,23 @@ function xe(e, t, n) {
85
85
  }
86
86
  //#endregion
87
87
  //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-mounted/use-mounted.mjs
88
- function Se() {
88
+ function Ce() {
89
89
  let [e, t] = G(!1);
90
90
  return U(() => t(!0), []), e;
91
91
  }
92
92
  //#endregion
93
93
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-env/get-env.mjs
94
- function Ce() {
94
+ function we() {
95
95
  return typeof process < "u" && process.env, "development";
96
96
  }
97
97
  //#endregion
98
98
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/primitive/primitive.mjs
99
- function we(e) {
99
+ function Te(e) {
100
100
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint";
101
101
  }
102
102
  //#endregion
103
103
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/FloatingIndicator/use-floating-indicator.mjs
104
- function Te(e, t) {
104
+ function Ee(e, t) {
105
105
  if (!t || !e) return !1;
106
106
  let n = t.parentNode;
107
107
  for (; n != null;) {
@@ -110,7 +110,7 @@ function Te(e, t) {
110
110
  }
111
111
  return !1;
112
112
  }
113
- function Ee({ target: e, parent: t, ref: n, displayAfterTransitionEnd: r, onTransitionStart: i, onTransitionEnd: a }) {
113
+ function De({ target: e, parent: t, ref: n, displayAfterTransitionEnd: r, onTransitionStart: i, onTransitionEnd: a }) {
114
114
  let o = W(-1), s = W(e), [c, l] = G(!1), [u, d] = G(typeof r == "boolean" ? r : !1), f = () => {
115
115
  if (!e || !t || !n.current) return;
116
116
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = window.getComputedStyle(e), o = window.getComputedStyle(t), s = O(a.borderTopWidth) + O(o.borderTopWidth), c = O(a.borderLeftWidth) + O(o.borderLeftWidth), l = {
@@ -132,7 +132,7 @@ function Ee({ target: e, parent: t, ref: n, displayAfterTransitionEnd: r, onTran
132
132
  }, [t, e]), U(() => {
133
133
  if (t) {
134
134
  let e = (e) => {
135
- Te(e.target, t) && (p(), d(!1));
135
+ Ee(e.target, t) && (p(), d(!1));
136
136
  };
137
137
  return t.addEventListener("transitionend", e), () => {
138
138
  t.removeEventListener("transitionend", e);
@@ -147,9 +147,9 @@ function Ee({ target: e, parent: t, ref: n, displayAfterTransitionEnd: r, onTran
147
147
  n.current?.removeEventListener("transitionend", e);
148
148
  };
149
149
  }
150
- }, [a]), be(() => {
151
- Ce() !== "test" && l(!0);
152
- }, 20, { autoInvoke: !0 }), xe((e) => {
150
+ }, [a]), xe(() => {
151
+ we() !== "test" && l(!0);
152
+ }, 20, { autoInvoke: !0 }), Se((e) => {
153
153
  e.forEach((e) => {
154
154
  e.type === "attributes" && e.attributeName === "dir" && p();
155
155
  });
@@ -163,13 +163,13 @@ function Ee({ target: e, parent: t, ref: n, displayAfterTransitionEnd: r, onTran
163
163
  }
164
164
  //#endregion
165
165
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/FloatingIndicator/FloatingIndicator.module.mjs
166
- var De = { root: "m_96b553a6" }, Oe = n((e, { transitionDuration: t }, { shouldReduceMotion: n }) => {
166
+ var Oe = { root: "m_96b553a6" }, ke = n((e, { transitionDuration: t }, { shouldReduceMotion: n }) => {
167
167
  let r = e.respectReducedMotion && n ? "0ms" : typeof t == "number" ? `${t}ms` : t || "150ms";
168
168
  return { root: { "--transition-duration": r } };
169
- }), ke = f((e) => {
169
+ }), Ae = f((e) => {
170
170
  let t = l("FloatingIndicator", null, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, target: u, parent: d, transitionDuration: f, mod: m, displayAfterTransitionEnd: h, onTransitionStart: g, onTransitionEnd: _, attributes: v, ref: y, ...b } = t, S = i({
171
171
  name: "FloatingIndicator",
172
- classes: De,
172
+ classes: Oe,
173
173
  props: t,
174
174
  className: r,
175
175
  style: a,
@@ -178,9 +178,9 @@ var De = { root: "m_96b553a6" }, Oe = n((e, { transitionDuration: t }, { shouldR
178
178
  unstyled: s,
179
179
  attributes: v,
180
180
  vars: c,
181
- varsResolver: Oe,
181
+ varsResolver: ke,
182
182
  stylesCtx: { shouldReduceMotion: x() }
183
- }), C = W(null), { initialized: w, hidden: T } = Ee({
183
+ }), C = W(null), { initialized: w, hidden: T } = De({
184
184
  target: u,
185
185
  parent: d,
186
186
  ref: C,
@@ -198,15 +198,15 @@ var De = { root: "m_96b553a6" }, Oe = n((e, { transitionDuration: t }, { shouldR
198
198
  ...b
199
199
  });
200
200
  });
201
- ke.displayName = "@mantine/core/FloatingIndicator", ke.classes = De, ke.varsResolver = Oe;
201
+ Ae.displayName = "@mantine/core/FloatingIndicator", Ae.classes = Oe, Ae.varsResolver = ke;
202
202
  //#endregion
203
203
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Badge/Badge.module.mjs
204
- var Ae = {
204
+ var je = {
205
205
  root: "m_347db0ec",
206
206
  "root--dot": "m_fbd81e3d",
207
207
  label: "m_5add502a",
208
208
  section: "m_91fdda9b"
209
- }, je = n((e, { radius: n, color: r, gradient: i, variant: a, size: o, autoContrast: c, circle: l }) => {
209
+ }, Me = n((e, { radius: n, color: r, gradient: i, variant: a, size: o, autoContrast: c, circle: l }) => {
210
210
  let u = e.variantColorResolver({
211
211
  color: r || e.primaryColor,
212
212
  theme: e,
@@ -224,11 +224,11 @@ var Ae = {
224
224
  "--badge-bd": r || a ? u.border : void 0,
225
225
  "--badge-dot-color": a === "dot" ? m(r, e) : void 0
226
226
  } };
227
- }), Me = u((e) => {
227
+ }), Ne = u((e) => {
228
228
  let t = l("Badge", null, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, radius: u, color: d, gradient: f, leftSection: m, rightSection: h, children: g, variant: _, fullWidth: v, autoContrast: y, circle: b, mod: x, attributes: S, ...C } = t, w = i({
229
229
  name: "Badge",
230
230
  props: t,
231
- classes: Ae,
231
+ classes: je,
232
232
  className: r,
233
233
  style: a,
234
234
  classNames: n,
@@ -236,7 +236,7 @@ var Ae = {
236
236
  unstyled: s,
237
237
  attributes: S,
238
238
  vars: c,
239
- varsResolver: je
239
+ varsResolver: Me
240
240
  });
241
241
  return /* @__PURE__ */ q(p, {
242
242
  variant: _,
@@ -266,17 +266,17 @@ var Ae = {
266
266
  ]
267
267
  });
268
268
  });
269
- Me.classes = Ae, Me.varsResolver = je, Me.displayName = "@mantine/core/Badge";
269
+ Ne.classes = je, Ne.varsResolver = Me, Ne.displayName = "@mantine/core/Badge";
270
270
  //#endregion
271
271
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Radio/RadioGroup/RadioGroup.mjs
272
- var Ne = fe(null), Pe = o(((e) => {
272
+ var Pe = de(null), Fe = o(((e) => {
273
273
  let { value: t, defaultValue: n, onChange: r, size: i, wrapperProps: a, children: o, name: s, readOnly: c, disabled: u, ...d } = l("RadioGroup", null, e), f = w(s), [p, m] = y({
274
274
  value: t,
275
275
  defaultValue: n,
276
276
  finalValue: "",
277
277
  onChange: r
278
278
  });
279
- return /* @__PURE__ */ K(Ne, {
279
+ return /* @__PURE__ */ K(Pe, {
280
280
  value: {
281
281
  value: p,
282
282
  onChange: (e) => !c && m(typeof e == "string" ? e : e.currentTarget.value),
@@ -297,13 +297,13 @@ var Ne = fe(null), Pe = o(((e) => {
297
297
  })
298
298
  });
299
299
  }));
300
- Pe.classes = b.Wrapper.classes, Pe.displayName = "@mantine/core/RadioGroup";
300
+ Fe.classes = b.Wrapper.classes, Fe.displayName = "@mantine/core/RadioGroup";
301
301
  //#endregion
302
302
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Radio/RadioCard/RadioCard.module.mjs
303
- var Fe = { card: "m_9dc8ae12" }, Ie = fe(null), Le = { withBorder: !0 }, Re = n((e, { radius: t }) => ({ card: { "--card-radius": s(t) } })), ze = f((e) => {
304
- let t = l("RadioCard", Le, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, checked: u, mod: d, withBorder: f, value: p, onClick: m, name: h, onKeyDown: g, attributes: v, ...y } = t, b = i({
303
+ var Ie = { card: "m_9dc8ae12" }, Le = de(null), Re = { withBorder: !0 }, ze = n((e, { radius: t }) => ({ card: { "--card-radius": s(t) } })), Be = f((e) => {
304
+ let t = l("RadioCard", Re, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, checked: u, mod: d, withBorder: f, value: p, onClick: m, name: h, onKeyDown: g, attributes: v, ...y } = t, b = i({
305
305
  name: "RadioCard",
306
- classes: Fe,
306
+ classes: Ie,
307
307
  props: t,
308
308
  className: r,
309
309
  style: a,
@@ -312,9 +312,9 @@ var Fe = { card: "m_9dc8ae12" }, Ie = fe(null), Le = { withBorder: !0 }, Re = n(
312
312
  unstyled: s,
313
313
  attributes: v,
314
314
  vars: c,
315
- varsResolver: Re,
315
+ varsResolver: ze,
316
316
  rootSelector: "card"
317
- }), { dir: x } = _(), S = me(Ne), C = typeof u == "boolean" ? u : S?.value === p || !1, w = h || S?.name, T = (e) => {
317
+ }), { dir: x } = _(), S = pe(Pe), C = typeof u == "boolean" ? u : S?.value === p || !1, w = h || S?.name, T = (e) => {
318
318
  if (g?.(e), w && [
319
319
  "ArrowDown",
320
320
  "ArrowUp",
@@ -326,7 +326,7 @@ var Fe = { card: "m_9dc8ae12" }, Ie = fe(null), Le = { withBorder: !0 }, Re = n(
326
326
  e.nativeEvent.code === "ArrowDown" && (t[r].focus(), t[r].click()), e.nativeEvent.code === "ArrowUp" && (t[i].focus(), t[i].click()), e.nativeEvent.code === "ArrowLeft" && (t[x === "ltr" ? i : r].focus(), t[x === "ltr" ? i : r].click()), e.nativeEvent.code === "ArrowRight" && (t[x === "ltr" ? r : i].focus(), t[x === "ltr" ? r : i].click());
327
327
  }
328
328
  };
329
- return /* @__PURE__ */ K(Ie, {
329
+ return /* @__PURE__ */ K(Le, {
330
330
  value: { checked: C },
331
331
  children: /* @__PURE__ */ K(M, {
332
332
  mod: [{
@@ -345,10 +345,10 @@ var Fe = { card: "m_9dc8ae12" }, Ie = fe(null), Le = { withBorder: !0 }, Re = n(
345
345
  })
346
346
  });
347
347
  });
348
- ze.displayName = "@mantine/core/RadioCard", ze.classes = Fe, ze.varsResolver = Re;
348
+ Be.displayName = "@mantine/core/RadioCard", Be.classes = Ie, Be.varsResolver = ze;
349
349
  //#endregion
350
350
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Radio/RadioIcon.mjs
351
- function Be({ size: t, style: n, ...r }) {
351
+ function Ve({ size: t, style: n, ...r }) {
352
352
  return /* @__PURE__ */ K("svg", {
353
353
  xmlns: "http://www.w3.org/2000/svg",
354
354
  fill: "none",
@@ -370,11 +370,11 @@ function Be({ size: t, style: n, ...r }) {
370
370
  }
371
371
  //#endregion
372
372
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Radio/RadioIndicator/RadioIndicator.module.mjs
373
- var Ve = {
373
+ var He = {
374
374
  indicator: "m_717d7ff6",
375
375
  icon: "m_3e4da632",
376
376
  "indicator--outline": "m_2980836c"
377
- }, He = { icon: Be }, Ue = n((e, { radius: n, color: i, size: a, iconColor: o, variant: c, autoContrast: l }) => {
377
+ }, Ue = { icon: Ve }, We = n((e, { radius: n, color: i, size: a, iconColor: o, variant: c, autoContrast: l }) => {
378
378
  let u = r({
379
379
  color: i || e.primaryColor,
380
380
  theme: e
@@ -390,10 +390,10 @@ var Ve = {
390
390
  autoContrast: l
391
391
  }) : void 0
392
392
  } };
393
- }), We = f((e) => {
394
- let t = l("RadioIndicator", He, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, icon: u, radius: d, color: f, iconColor: m, autoContrast: h, checked: g, mod: _, variant: v, disabled: y, attributes: b, ...x } = t, S = i({
393
+ }), Ge = f((e) => {
394
+ let t = l("RadioIndicator", Ue, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, icon: u, radius: d, color: f, iconColor: m, autoContrast: h, checked: g, mod: _, variant: v, disabled: y, attributes: b, ...x } = t, S = i({
395
395
  name: "RadioIndicator",
396
- classes: Ve,
396
+ classes: He,
397
397
  props: t,
398
398
  className: r,
399
399
  style: a,
@@ -402,9 +402,9 @@ var Ve = {
402
402
  unstyled: s,
403
403
  attributes: b,
404
404
  vars: c,
405
- varsResolver: Ue,
405
+ varsResolver: We,
406
406
  rootSelector: "indicator"
407
- }), C = me(Ie), w = typeof g == "boolean" ? g : C?.checked || !1;
407
+ }), C = pe(Le), w = typeof g == "boolean" ? g : C?.checked || !1;
408
408
  return /* @__PURE__ */ K(p, {
409
409
  ...S("indicator", { variant: v }),
410
410
  variant: v,
@@ -416,19 +416,19 @@ var Ve = {
416
416
  children: /* @__PURE__ */ K(u, { ...S("icon") })
417
417
  });
418
418
  });
419
- We.displayName = "@mantine/core/RadioIndicator", We.classes = Ve, We.varsResolver = Ue;
419
+ Ge.displayName = "@mantine/core/RadioIndicator", Ge.classes = He, Ge.varsResolver = We;
420
420
  //#endregion
421
421
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Radio/Radio.module.mjs
422
- var Ge = {
422
+ var Ke = {
423
423
  root: "m_f3f1af94",
424
424
  inner: "m_89c4f5e4",
425
425
  icon: "m_f3ed6b2b",
426
426
  radio: "m_8a3dbb89",
427
427
  "radio--outline": "m_1bfe9d39"
428
- }, Ke = {
428
+ }, qe = {
429
429
  labelPosition: "right",
430
430
  withErrorStyles: !0
431
- }, qe = n((e, { size: n, radius: i, color: a, iconColor: o, variant: c, autoContrast: l }) => {
431
+ }, Je = n((e, { size: n, radius: i, color: a, iconColor: o, variant: c, autoContrast: l }) => {
432
432
  let u = r({
433
433
  color: a || e.primaryColor,
434
434
  theme: e
@@ -445,9 +445,9 @@ var Ge = {
445
445
  "--radio-icon-size": t(n, "radio-icon-size")
446
446
  } };
447
447
  }), J = f((e) => {
448
- let t = l("Radio", Ke, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, id: u, size: f, label: m, labelPosition: h, description: g, error: _, radius: v, color: y, variant: b, disabled: x, wrapperProps: S, icon: C = Be, rootRef: T, iconColor: E, onChange: O, mod: k, attributes: A, withErrorStyles: ee, checked: j, ...te } = t, M = i({
448
+ let t = l("Radio", qe, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: c, id: u, size: f, label: m, labelPosition: h, description: g, error: _, radius: v, color: y, variant: b, disabled: x, wrapperProps: S, icon: C = Ve, rootRef: T, iconColor: E, onChange: O, mod: k, attributes: A, withErrorStyles: ee, checked: j, ...te } = t, M = i({
449
449
  name: "Radio",
450
- classes: Ge,
450
+ classes: Ke,
451
451
  props: t,
452
452
  className: r,
453
453
  style: a,
@@ -456,9 +456,9 @@ var Ge = {
456
456
  unstyled: s,
457
457
  attributes: A,
458
458
  vars: c,
459
- varsResolver: qe
460
- }), N = me(Ne), P = N?.size ?? f, ne = t.size ? f : P, { styleProps: F, rest: I } = d(te), re = w(u), L = N ? N.value === I.value : void 0, R = {
461
- checked: L ?? j,
459
+ varsResolver: Je
460
+ }), N = pe(Pe), P = N?.size ?? f, ne = t.size ? f : P, { styleProps: F, rest: I } = d(te), L = w(u), R = N ? N.value === I.value : void 0, z = {
461
+ checked: R ?? j,
462
462
  name: I.name ?? N?.name,
463
463
  onChange: (e) => {
464
464
  N?.onChange(e), O?.(e);
@@ -469,17 +469,17 @@ var Ge = {
469
469
  ...M("root"),
470
470
  __staticSelector: "Radio",
471
471
  __stylesApiProps: t,
472
- id: re,
472
+ id: L,
473
473
  size: ne,
474
474
  labelPosition: h,
475
475
  label: m,
476
476
  description: g,
477
477
  error: _,
478
- disabled: R.disabled,
478
+ disabled: z.disabled,
479
479
  classNames: n,
480
480
  styles: o,
481
481
  unstyled: s,
482
- "data-checked": (L ?? j) || void 0,
482
+ "data-checked": (R ?? j) || void 0,
483
483
  variant: b,
484
484
  ref: T,
485
485
  mod: k,
@@ -495,13 +495,13 @@ var Ge = {
495
495
  variant: b
496
496
  }),
497
497
  ...I,
498
- ...R,
498
+ ...z,
499
499
  component: "input",
500
500
  mod: {
501
501
  error: !!_,
502
502
  "with-error-styles": ee
503
503
  },
504
- id: re,
504
+ id: L,
505
505
  type: "radio"
506
506
  }), /* @__PURE__ */ K(C, {
507
507
  ...M("icon"),
@@ -510,17 +510,17 @@ var Ge = {
510
510
  })
511
511
  });
512
512
  });
513
- J.classes = Ge, J.varsResolver = qe, J.displayName = "@mantine/core/Radio", J.Group = Pe, J.Card = ze, J.Indicator = We;
513
+ J.classes = Ke, J.varsResolver = Je, J.displayName = "@mantine/core/Radio", J.Group = Fe, J.Card = Be, J.Indicator = Ge;
514
514
  //#endregion
515
515
  //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/SegmentedControl/SegmentedControl.module.mjs
516
- var Je = {
516
+ var Ye = {
517
517
  root: "m_cf365364",
518
518
  indicator: "m_9e182ccd",
519
519
  label: "m_1738fcb2",
520
520
  input: "m_1714d588",
521
521
  control: "m_69686b9b",
522
522
  innerLabel: "m_78882f40"
523
- }, Ye = { withItemsBorders: !0 }, Xe = n((e, { radius: n, color: r, transitionDuration: i, size: a, transitionTimingFunction: o }) => ({ root: {
523
+ }, Xe = { withItemsBorders: !0 }, Ze = n((e, { radius: n, color: r, transitionDuration: i, size: a, transitionTimingFunction: o }) => ({ root: {
524
524
  "--sc-radius": n === void 0 ? void 0 : s(n),
525
525
  "--sc-color": r ? m(r, e) : void 0,
526
526
  "--sc-shadow": r ? void 0 : "var(--mantine-shadow-xs)",
@@ -528,11 +528,11 @@ var Je = {
528
528
  "--sc-transition-timing-function": o,
529
529
  "--sc-padding": t(a, "sc-padding"),
530
530
  "--sc-font-size": c(a)
531
- } })), Ze = o((e) => {
532
- let t = l("SegmentedControl", Ye, e), { classNames: n, className: r, style: o, styles: s, unstyled: c, vars: u, data: d, value: f, defaultValue: m, onChange: h, size: g, name: _, disabled: v, readOnly: b, fullWidth: x, orientation: C, radius: T, color: E, transitionDuration: D, transitionTimingFunction: O, variant: k, autoContrast: j, withItemsBorders: te, mod: M, attributes: N, ref: P, ...ne } = t, F = i({
531
+ } })), Y = o((e) => {
532
+ let t = l("SegmentedControl", Xe, e), { classNames: n, className: r, style: o, styles: s, unstyled: c, vars: u, data: d, value: f, defaultValue: m, onChange: h, size: g, name: _, disabled: v, readOnly: b, fullWidth: x, orientation: C, radius: T, color: E, transitionDuration: D, transitionTimingFunction: O, variant: k, autoContrast: j, withItemsBorders: te, mod: M, attributes: N, ref: P, ...ne } = t, F = i({
533
533
  name: "SegmentedControl",
534
534
  props: t,
535
- classes: Je,
535
+ classes: Ye,
536
536
  className: r,
537
537
  style: o,
538
538
  classNames: n,
@@ -540,45 +540,45 @@ var Je = {
540
540
  unstyled: c,
541
541
  attributes: N,
542
542
  vars: u,
543
- varsResolver: Xe
544
- }), I = a(), re = d.map((e) => we(e) ? {
543
+ varsResolver: Ze
544
+ }), I = a(), L = d.map((e) => Te(e) ? {
545
545
  label: `${e}`,
546
546
  value: e
547
- } : e), L = Se(), [R, ie] = G(S()), [ae, oe] = G(null), [se, z] = G({}), ce = (e, t) => {
548
- se[t] = e, z(se);
549
- }, [B, le] = y({
547
+ } : e), R = Ce(), [z, re] = G(S()), [ie, ae] = G(null), [oe, B] = G({}), se = (e, t) => {
548
+ oe[t] = e, B(oe);
549
+ }, [V, ce] = y({
550
550
  value: f,
551
551
  defaultValue: m,
552
- finalValue: Array.isArray(d) ? re.find((e) => !e.disabled)?.value ?? d[0]?.value ?? null : null,
552
+ finalValue: Array.isArray(d) ? L.find((e) => !e.disabled)?.value ?? d[0]?.value ?? null : null,
553
553
  onChange: h
554
- }), ue = w(_), de = re.map((e) => /* @__PURE__ */ pe(p, {
554
+ }), le = w(_), ue = L.map((e) => /* @__PURE__ */ fe(p, {
555
555
  ...F("control"),
556
556
  mod: {
557
- active: B === e.value,
557
+ active: V === e.value,
558
558
  orientation: C
559
559
  },
560
560
  key: `${e.value}`
561
- }, /* @__PURE__ */ pe("input", {
561
+ }, /* @__PURE__ */ fe("input", {
562
562
  ...F("input"),
563
563
  disabled: v || e.disabled,
564
564
  type: "radio",
565
- name: ue,
565
+ name: le,
566
566
  value: `${e.value}`,
567
- id: `${ue}-${e.value}`,
568
- checked: B === e.value,
569
- onChange: () => !b && le(e.value),
567
+ id: `${le}-${e.value}`,
568
+ checked: V === e.value,
569
+ onChange: () => !b && ce(e.value),
570
570
  "data-focus-ring": I.focusRing,
571
571
  key: `${e.value}-input`
572
- }), /* @__PURE__ */ pe(p, {
572
+ }), /* @__PURE__ */ fe(p, {
573
573
  component: "label",
574
574
  ...F("label"),
575
575
  mod: {
576
- active: B === e.value && !(v || e.disabled),
576
+ active: V === e.value && !(v || e.disabled),
577
577
  disabled: v || e.disabled,
578
578
  "read-only": b
579
579
  },
580
- htmlFor: `${ue}-${e.value}`,
581
- ref: (t) => ce(t, `${e.value}`),
580
+ htmlFor: `${le}-${e.value}`,
581
+ ref: (t) => se(t, `${e.value}`),
582
582
  __vars: { "--sc-label-color": E === void 0 ? void 0 : ee({
583
583
  color: E,
584
584
  theme: I,
@@ -588,33 +588,33 @@ var Je = {
588
588
  }, /* @__PURE__ */ K("span", {
589
589
  ...F("innerLabel"),
590
590
  children: e.label
591
- })))), V = A(P, (e) => oe(e));
592
- return ye(() => {
593
- ie(S());
591
+ })))), de = A(P, (e) => ae(e));
592
+ return be(() => {
593
+ re(S());
594
594
  }, [d.length]), d.length === 0 ? null : /* @__PURE__ */ q(p, {
595
595
  ...F("root"),
596
596
  variant: k,
597
597
  size: g,
598
- ref: V,
598
+ ref: de,
599
599
  mod: [{
600
600
  "full-width": x,
601
601
  orientation: C,
602
- initialized: L,
602
+ initialized: R,
603
603
  "with-items-borders": te
604
604
  }, M],
605
605
  ...ne,
606
606
  role: "radiogroup",
607
607
  "data-disabled": v,
608
- children: [B !== void 0 && /* @__PURE__ */ K(ke, {
609
- target: se[`${B}`],
610
- parent: ae,
608
+ children: [V !== void 0 && /* @__PURE__ */ K(Ae, {
609
+ target: oe[`${V}`],
610
+ parent: ie,
611
611
  component: "span",
612
612
  transitionDuration: "var(--sc-transition-duration)",
613
613
  ...F("indicator")
614
- }, R), de]
614
+ }, z), ue]
615
615
  });
616
616
  });
617
- Ze.classes = Je, Ze.varsResolver = Xe, Ze.displayName = "@mantine/core/SegmentedControl";
617
+ Y.classes = Ye, Y.varsResolver = Ze, Y.displayName = "@mantine/core/SegmentedControl";
618
618
  //#endregion
619
619
  //#region src/infrastructure/adapters/DefaultThemeProvider.ts
620
620
  var Qe = {
@@ -718,7 +718,7 @@ var Qe = {
718
718
  } catch {
719
719
  return at();
720
720
  }
721
- })(), st = typeof window < "u" && window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light", Y = new et(it ?? st), X = ie()(se((e) => ({
721
+ })(), st = typeof window < "u" && window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light", X = new et(it ?? st), Z = re()(oe((e) => ({
722
722
  wallpaper: null,
723
723
  wallpaperModule: "default",
724
724
  launcherIcon: "FcElectronics",
@@ -726,7 +726,7 @@ var Qe = {
726
726
  downloadedFonts: [],
727
727
  fontSize: 14,
728
728
  animationDuration: .3,
729
- theme: Y.getTheme(),
729
+ theme: X.getTheme(),
730
730
  themeSetManually: it !== null,
731
731
  customThemeColors: null,
732
732
  language: ot,
@@ -738,20 +738,20 @@ var Qe = {
738
738
  setFontSize: (t) => e({ fontSize: t }),
739
739
  setAnimationDuration: (t) => e({ animationDuration: t }),
740
740
  setThemeMode: (t) => {
741
- Y.setMode(t), e({
742
- theme: Y.getTheme(),
741
+ X.setMode(t), e({
742
+ theme: X.getTheme(),
743
743
  themeSetManually: !0
744
744
  });
745
745
  },
746
746
  toggleTheme: () => {
747
- Y.toggle(), e({
748
- theme: Y.getTheme(),
747
+ X.toggle(), e({
748
+ theme: X.getTheme(),
749
749
  themeSetManually: !0
750
750
  });
751
751
  },
752
752
  setThemeAutomatic: () => e({ themeSetManually: !1 }),
753
753
  applySystemTheme: (t) => {
754
- Y.setMode(t), e({ theme: Y.getTheme() });
754
+ X.setMode(t), e({ theme: X.getTheme() });
755
755
  },
756
756
  setCustomThemeColors: (t) => {
757
757
  e({ customThemeColors: t });
@@ -759,7 +759,7 @@ var Qe = {
759
759
  setLanguage: (t) => e({ language: t })
760
760
  }), {
761
761
  name: "fde-desktop:settings",
762
- storage: ae(() => localStorage)
762
+ storage: ie(() => localStorage)
763
763
  })), ct = {
764
764
  container: "_container_a0fjd_1",
765
765
  flag: "_flag_a0fjd_8"
@@ -839,7 +839,7 @@ var Qe = {
839
839
  label: "Open Sans",
840
840
  stack: "\"Open Sans\", monospace"
841
841
  }
842
- ], ft = Object.fromEntries(dt.map((e) => [e.value, e.stack])), Z = {
842
+ ], ft = Object.fromEntries(dt.map((e) => [e.value, e.stack])), Q = {
843
843
  "Source Code Pro": "https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap",
844
844
  "Open Sans": "https://fonts.googleapis.com/css2?family=Open+Sans&display=swap"
845
845
  }, pt = [
@@ -879,7 +879,7 @@ var Qe = {
879
879
  fcIcon: "FcDisclaimer",
880
880
  description: "Reset all settings and data to defaults."
881
881
  }
882
- ], mt = ({ title: e, description: t, children: n }) => /* @__PURE__ */ q(R, {
882
+ ], mt = ({ title: e, description: t, children: n }) => /* @__PURE__ */ q(z, {
883
883
  gap: "md",
884
884
  p: "md",
885
885
  children: [
@@ -896,7 +896,7 @@ var Qe = {
896
896
  n
897
897
  ]
898
898
  }), ht = "/Images/wallpaper.jpg", gt = () => {
899
- let { t: e } = z("settings"), t = X((e) => e.wallpaper), n = X((e) => e.wallpaperModule), r = X((e) => e.setWallpaper), i = X((e) => e.setWallpaperModule), [a, o] = G(""), [s, c] = G(!1), l = W(null), u = B(t ?? void 0) ?? ht, d = H((e) => {
899
+ let { t: e } = B("settings"), t = Z((e) => e.wallpaper), n = Z((e) => e.wallpaperModule), r = Z((e) => e.setWallpaper), i = Z((e) => e.setWallpaperModule), [a, o] = G(""), [s, c] = G(!1), l = W(null), u = V(t ?? void 0) ?? ht, d = H((e) => {
900
900
  let t = e.target.files?.[0];
901
901
  if (!t) return;
902
902
  let n = new FileReader();
@@ -916,7 +916,7 @@ var Qe = {
916
916
  return /* @__PURE__ */ q(mt, {
917
917
  title: e("wallpaper.title"),
918
918
  children: [
919
- /* @__PURE__ */ K("div", { children: /* @__PURE__ */ K(Ze, {
919
+ /* @__PURE__ */ K("div", { children: /* @__PURE__ */ K(Y, {
920
920
  value: n,
921
921
  onChange: i,
922
922
  data: [{
@@ -975,7 +975,7 @@ var Qe = {
975
975
  children: e("common:actions.apply")
976
976
  })]
977
977
  }),
978
- /* @__PURE__ */ K(le, {
978
+ /* @__PURE__ */ K(ce, {
979
979
  opened: s,
980
980
  acceptedMimeTypes: ["image/*"],
981
981
  onConfirm: m,
@@ -984,7 +984,7 @@ var Qe = {
984
984
  ]
985
985
  });
986
986
  }, _t = () => {
987
- let { t: e } = z("settings"), t = X((e) => e.theme.mode), n = X((e) => e.themeSetManually), r = X((e) => e.customThemeColors), i = X((e) => e.animationDuration), a = X((e) => e.setThemeMode), o = X((e) => e.setThemeAutomatic), s = X((e) => e.setCustomThemeColors), c = X((e) => e.setAnimationDuration), l = r ? "custom" : n ? t : "system", u = H((e) => {
987
+ let { t: e } = B("settings"), t = Z((e) => e.theme.mode), n = Z((e) => e.themeSetManually), r = Z((e) => e.customThemeColors), i = Z((e) => e.animationDuration), a = Z((e) => e.setThemeMode), o = Z((e) => e.setThemeAutomatic), s = Z((e) => e.setCustomThemeColors), c = Z((e) => e.setAnimationDuration), l = r ? "custom" : n ? t : "system", u = H((e) => {
988
988
  e === "system" ? (o(), s(null)) : e === "custom" ? s({
989
989
  taskbar: "#339af0",
990
990
  window: "#ffffff",
@@ -1002,7 +1002,7 @@ var Qe = {
1002
1002
  }, [r, s]), f = H((e) => {
1003
1003
  c(e);
1004
1004
  }, [c]), m = l === "custom";
1005
- return /* @__PURE__ */ q(R, {
1005
+ return /* @__PURE__ */ q(z, {
1006
1006
  gap: "md",
1007
1007
  p: "md",
1008
1008
  children: [
@@ -1016,7 +1016,7 @@ var Qe = {
1016
1016
  c: "dimmed",
1017
1017
  children: e("appearance.description")
1018
1018
  }),
1019
- /* @__PURE__ */ K(Ze, {
1019
+ /* @__PURE__ */ K(Y, {
1020
1020
  value: l,
1021
1021
  onChange: u,
1022
1022
  data: [
@@ -1039,7 +1039,7 @@ var Qe = {
1039
1039
  ],
1040
1040
  "aria-label": e("appearance.themeMode", { defaultValue: "Theme mode" })
1041
1041
  }),
1042
- /* @__PURE__ */ q(R, {
1042
+ /* @__PURE__ */ q(z, {
1043
1043
  gap: "sm",
1044
1044
  mt: "md",
1045
1045
  children: [
@@ -1130,7 +1130,7 @@ var Qe = {
1130
1130
  ]
1131
1131
  });
1132
1132
  }, vt = () => {
1133
- let e = X((e) => e.launcherIcon), t = X((e) => e.setLauncherIcon), [n, r] = G([]), [i, a] = G(""), o = he(i);
1133
+ let e = Z((e) => e.launcherIcon), t = Z((e) => e.setLauncherIcon), [n, r] = G([]), [i, a] = G(""), o = me(i);
1134
1134
  U(() => {
1135
1135
  import("./fc-kd8WzIER.js").then((e) => e.r).then((e) => {
1136
1136
  r(Object.keys(e).filter((e) => e.startsWith("Fc")).sort());
@@ -1171,7 +1171,7 @@ var Qe = {
1171
1171
  alignItems: "center",
1172
1172
  justifyContent: "center"
1173
1173
  },
1174
- children: /* @__PURE__ */ K(L, {
1174
+ children: /* @__PURE__ */ K(R, {
1175
1175
  fcIcon: t,
1176
1176
  size: 24
1177
1177
  })
@@ -1180,623 +1180,27 @@ var Qe = {
1180
1180
  })
1181
1181
  })]
1182
1182
  });
1183
- }, yt = class {
1184
- constructor() {
1185
- this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1186
- }
1187
- subscribe(e) {
1188
- return this.listeners.add(e), this.onSubscribe(), () => {
1189
- this.listeners.delete(e), this.onUnsubscribe();
1190
- };
1191
- }
1192
- hasListeners() {
1193
- return this.listeners.size > 0;
1194
- }
1195
- onSubscribe() {}
1196
- onUnsubscribe() {}
1197
- }, bt = new class extends yt {
1198
- #e;
1199
- #t;
1200
- #n;
1201
- constructor() {
1202
- super(), this.#n = (e) => {
1203
- if (typeof window < "u" && window.addEventListener) {
1204
- let t = () => e();
1205
- return window.addEventListener("visibilitychange", t, !1), () => {
1206
- window.removeEventListener("visibilitychange", t);
1207
- };
1208
- }
1209
- };
1210
- }
1211
- onSubscribe() {
1212
- this.#t || this.setEventListener(this.#n);
1213
- }
1214
- onUnsubscribe() {
1215
- this.hasListeners() || (this.#t?.(), this.#t = void 0);
1216
- }
1217
- setEventListener(e) {
1218
- this.#n = e, this.#t?.(), this.#t = e((e) => {
1219
- typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
1220
- });
1221
- }
1222
- setFocused(e) {
1223
- this.#e !== e && (this.#e = e, this.onFocus());
1224
- }
1225
- onFocus() {
1226
- let e = this.isFocused();
1227
- this.listeners.forEach((t) => {
1228
- t(e);
1229
- });
1230
- }
1231
- isFocused() {
1232
- return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
1233
- }
1234
- }(), xt = {
1235
- setTimeout: (e, t) => setTimeout(e, t),
1236
- clearTimeout: (e) => clearTimeout(e),
1237
- setInterval: (e, t) => setInterval(e, t),
1238
- clearInterval: (e) => clearInterval(e)
1239
- }, St = new class {
1240
- #e = xt;
1241
- #t = !1;
1242
- setTimeoutProvider(e) {
1243
- process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
1244
- previous: this.#e,
1245
- provider: e
1246
- }), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
1247
- }
1248
- setTimeout(e, t) {
1249
- return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
1250
- }
1251
- clearTimeout(e) {
1252
- this.#e.clearTimeout(e);
1253
- }
1254
- setInterval(e, t) {
1255
- return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
1256
- }
1257
- clearInterval(e) {
1258
- this.#e.clearInterval(e);
1259
- }
1260
- }();
1261
- function Ct(e) {
1262
- setTimeout(e, 0);
1263
- }
1264
- //#endregion
1265
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/utils.js
1266
- var wt = typeof window > "u" || "Deno" in globalThis;
1267
- function Tt() {}
1268
- function Et(e) {
1269
- return typeof e == "number" && e >= 0 && e !== Infinity;
1270
- }
1271
- function Dt(e, t) {
1272
- return Math.max(e + (t || 0) - Date.now(), 0);
1273
- }
1274
- function Ot(e, t) {
1275
- return typeof e == "function" ? e(t) : e;
1276
- }
1277
- function Q(e, t) {
1278
- return typeof e == "function" ? e(t) : e;
1279
- }
1280
- var kt = Object.prototype.hasOwnProperty;
1281
- function At(e, t, n = 0) {
1282
- if (e === t) return e;
1283
- if (n > 500) return t;
1284
- let r = Mt(e) && Mt(t);
1285
- if (!r && !(Nt(e) && Nt(t))) return t;
1286
- let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
1287
- for (let l = 0; l < o; l++) {
1288
- let o = r ? l : a[l], u = e[o], d = t[o];
1289
- if (u === d) {
1290
- s[o] = u, (r ? l < i : kt.call(e, o)) && c++;
1291
- continue;
1292
- }
1293
- if (u === null || d === null || typeof u != "object" || typeof d != "object") {
1294
- s[o] = d;
1295
- continue;
1296
- }
1297
- let f = At(u, d, n + 1);
1298
- s[o] = f, f === u && c++;
1299
- }
1300
- return i === o && c === i ? e : s;
1301
- }
1302
- function jt(e, t) {
1303
- if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
1304
- for (let n in e) if (e[n] !== t[n]) return !1;
1305
- return !0;
1306
- }
1307
- function Mt(e) {
1308
- return Array.isArray(e) && e.length === Object.keys(e).length;
1309
- }
1310
- function Nt(e) {
1311
- if (!Pt(e)) return !1;
1312
- let t = e.constructor;
1313
- if (t === void 0) return !0;
1314
- let n = t.prototype;
1315
- return !(!Pt(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
1316
- }
1317
- function Pt(e) {
1318
- return Object.prototype.toString.call(e) === "[object Object]";
1319
- }
1320
- function Ft(e, t, n) {
1321
- if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
1322
- if (n.structuralSharing !== !1) {
1323
- if (process.env.NODE_ENV !== "production") try {
1324
- return At(e, t);
1325
- } catch (e) {
1326
- throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
1327
- }
1328
- return At(e, t);
1329
- }
1330
- return t;
1331
- }
1332
- function It(e, t) {
1333
- return typeof e == "function" ? e(...t) : !!e;
1334
- }
1335
- //#endregion
1336
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/environmentManager.js
1337
- var Lt = /* @__PURE__ */ (() => {
1338
- let e = () => wt;
1339
- return {
1340
- isServer() {
1341
- return e();
1342
- },
1343
- setIsServer(t) {
1344
- e = t;
1345
- }
1346
- };
1347
- })();
1348
- //#endregion
1349
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/thenable.js
1350
- function Rt() {
1351
- let e, t, n = new Promise((n, r) => {
1352
- e = n, t = r;
1353
- });
1354
- n.status = "pending", n.catch(() => {});
1355
- function r(e) {
1356
- Object.assign(n, e), delete n.resolve, delete n.reject;
1357
- }
1358
- return n.resolve = (t) => {
1359
- r({
1360
- status: "fulfilled",
1361
- value: t
1362
- }), e(t);
1363
- }, n.reject = (e) => {
1364
- r({
1365
- status: "rejected",
1366
- reason: e
1367
- }), t(e);
1368
- }, n;
1369
- }
1370
- //#endregion
1371
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/notifyManager.js
1372
- var zt = Ct;
1373
- function Bt() {
1374
- let e = [], t = 0, n = (e) => {
1375
- e();
1376
- }, r = (e) => {
1377
- e();
1378
- }, i = zt, a = (r) => {
1379
- t ? e.push(r) : i(() => {
1380
- n(r);
1381
- });
1382
- }, o = () => {
1383
- let t = e;
1384
- e = [], t.length && i(() => {
1385
- r(() => {
1386
- t.forEach((e) => {
1387
- n(e);
1388
- });
1389
- });
1390
- });
1391
- };
1392
- return {
1393
- batch: (e) => {
1394
- let n;
1395
- t++;
1396
- try {
1397
- n = e();
1398
- } finally {
1399
- t--, t || o();
1400
- }
1401
- return n;
1402
- },
1403
- batchCalls: (e) => (...t) => {
1404
- a(() => {
1405
- e(...t);
1406
- });
1407
- },
1408
- schedule: a,
1409
- setNotifyFunction: (e) => {
1410
- n = e;
1411
- },
1412
- setBatchNotifyFunction: (e) => {
1413
- r = e;
1414
- },
1415
- setScheduler: (e) => {
1416
- i = e;
1417
- }
1418
- };
1419
- }
1420
- var Vt = Bt(), Ht = new class extends yt {
1421
- #e = !0;
1422
- #t;
1423
- #n;
1424
- constructor() {
1425
- super(), this.#n = (e) => {
1426
- if (typeof window < "u" && window.addEventListener) {
1427
- let t = () => e(!0), n = () => e(!1);
1428
- return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
1429
- window.removeEventListener("online", t), window.removeEventListener("offline", n);
1430
- };
1431
- }
1432
- };
1433
- }
1434
- onSubscribe() {
1435
- this.#t || this.setEventListener(this.#n);
1436
- }
1437
- onUnsubscribe() {
1438
- this.hasListeners() || (this.#t?.(), this.#t = void 0);
1439
- }
1440
- setEventListener(e) {
1441
- this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
1442
- }
1443
- setOnline(e) {
1444
- this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
1445
- t(e);
1446
- }));
1447
- }
1448
- isOnline() {
1449
- return this.#e;
1450
- }
1451
- }();
1452
- //#endregion
1453
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/retryer.js
1454
- function Ut(e) {
1455
- return (e ?? "online") === "online" ? Ht.isOnline() : !0;
1456
- }
1457
- //#endregion
1458
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/query.js
1459
- function Wt(e, t) {
1460
- return {
1461
- fetchFailureCount: 0,
1462
- fetchFailureReason: null,
1463
- fetchStatus: Ut(t.networkMode) ? "fetching" : "paused",
1464
- ...e === void 0 && {
1465
- error: null,
1466
- status: "pending"
1467
- }
1468
- };
1469
- }
1470
- //#endregion
1471
- //#region ../../node_modules/.bun/@tanstack+query-core@5.96.1/node_modules/@tanstack/query-core/build/modern/queryObserver.js
1472
- var Gt = class extends yt {
1473
- constructor(e, t) {
1474
- super(), this.options = t, this.#e = e, this.#s = null, this.#o = Rt(), this.bindMethods(), this.setOptions(t);
1475
- }
1476
- #e;
1477
- #t = void 0;
1478
- #n = void 0;
1479
- #r = void 0;
1480
- #i;
1481
- #a;
1482
- #o;
1483
- #s;
1484
- #c;
1485
- #l;
1486
- #u;
1487
- #d;
1488
- #f;
1489
- #p;
1490
- #m = /* @__PURE__ */ new Set();
1491
- bindMethods() {
1492
- this.refetch = this.refetch.bind(this);
1493
- }
1494
- onSubscribe() {
1495
- this.listeners.size === 1 && (this.#t.addObserver(this), qt(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
1496
- }
1497
- onUnsubscribe() {
1498
- this.hasListeners() || this.destroy();
1499
- }
1500
- shouldFetchOnReconnect() {
1501
- return Jt(this.#t, this.options, this.options.refetchOnReconnect);
1502
- }
1503
- shouldFetchOnWindowFocus() {
1504
- return Jt(this.#t, this.options, this.options.refetchOnWindowFocus);
1505
- }
1506
- destroy() {
1507
- this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
1508
- }
1509
- setOptions(e) {
1510
- let t = this.options, n = this.#t;
1511
- if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Q(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
1512
- this.#S(), this.#t.setOptions(this.options), t._defaulted && !jt(this.options, t) && this.#e.getQueryCache().notify({
1513
- type: "observerOptionsUpdated",
1514
- query: this.#t,
1515
- observer: this
1516
- });
1517
- let r = this.hasListeners();
1518
- r && Yt(this.#t, n, this.options, t) && this.#h(), this.updateResult(), r && (this.#t !== n || Q(this.options.enabled, this.#t) !== Q(t.enabled, this.#t) || Ot(this.options.staleTime, this.#t) !== Ot(t.staleTime, this.#t)) && this.#g();
1519
- let i = this.#_();
1520
- r && (this.#t !== n || Q(this.options.enabled, this.#t) !== Q(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
1521
- }
1522
- getOptimisticResult(e) {
1523
- let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
1524
- return Zt(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
1525
- }
1526
- getCurrentResult() {
1527
- return this.#r;
1528
- }
1529
- trackResult(e, t) {
1530
- return new Proxy(e, { get: (e, n) => (this.trackProp(n), t?.(n), n === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && this.#o.status === "pending" && this.#o.reject(/* @__PURE__ */ Error("experimental_prefetchInRender feature flag is not enabled"))), Reflect.get(e, n)) });
1531
- }
1532
- trackProp(e) {
1533
- this.#m.add(e);
1534
- }
1535
- getCurrentQuery() {
1536
- return this.#t;
1537
- }
1538
- refetch({ ...e } = {}) {
1539
- return this.fetch({ ...e });
1540
- }
1541
- fetchOptimistic(e) {
1542
- let t = this.#e.defaultQueryOptions(e), n = this.#e.getQueryCache().build(this.#e, t);
1543
- return n.fetch().then(() => this.createResult(n, t));
1544
- }
1545
- fetch(e) {
1546
- return this.#h({
1547
- ...e,
1548
- cancelRefetch: e.cancelRefetch ?? !0
1549
- }).then(() => (this.updateResult(), this.#r));
1550
- }
1551
- #h(e) {
1552
- this.#S();
1553
- let t = this.#t.fetch(this.options, e);
1554
- return e?.throwOnError || (t = t.catch(Tt)), t;
1555
- }
1556
- #g() {
1557
- this.#b();
1558
- let e = Ot(this.options.staleTime, this.#t);
1559
- if (Lt.isServer() || this.#r.isStale || !Et(e)) return;
1560
- let t = Dt(this.#r.dataUpdatedAt, e) + 1;
1561
- this.#d = St.setTimeout(() => {
1562
- this.#r.isStale || this.updateResult();
1563
- }, t);
1564
- }
1565
- #_() {
1566
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
1567
- }
1568
- #v(e) {
1569
- this.#x(), this.#p = e, !(Lt.isServer() || Q(this.options.enabled, this.#t) === !1 || !Et(this.#p) || this.#p === 0) && (this.#f = St.setInterval(() => {
1570
- (this.options.refetchIntervalInBackground || bt.isFocused()) && this.#h();
1571
- }, this.#p));
1572
- }
1573
- #y() {
1574
- this.#g(), this.#v(this.#_());
1575
- }
1576
- #b() {
1577
- this.#d &&= (St.clearTimeout(this.#d), void 0);
1578
- }
1579
- #x() {
1580
- this.#f &&= (St.clearInterval(this.#f), void 0);
1581
- }
1582
- createResult(e, t) {
1583
- let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
1584
- if (t._optimisticResults) {
1585
- let i = this.hasListeners(), a = !i && qt(e, t), o = i && Yt(e, n, t, r);
1586
- (a || o) && (l = {
1587
- ...l,
1588
- ...Wt(c.data, e.options)
1589
- }), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
1590
- }
1591
- let { error: f, errorUpdatedAt: p, status: m } = l;
1592
- d = l.data;
1593
- let h = !1;
1594
- if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
1595
- let e;
1596
- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#u?.state.data, this.#u) : t.placeholderData, e !== void 0 && (m = "success", d = Ft(i?.data, e, t), u = !0);
1597
- }
1598
- if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
1599
- else try {
1600
- this.#c = t.select, d = t.select(d), d = Ft(i?.data, d, t), this.#l = d, this.#s = null;
1601
- } catch (e) {
1602
- this.#s = e;
1603
- }
1604
- this.#s && (f = this.#s, d = this.#l, p = Date.now(), m = "error");
1605
- let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", y = _ && g, b = d !== void 0, x = {
1606
- status: m,
1607
- fetchStatus: l.fetchStatus,
1608
- isPending: _,
1609
- isSuccess: m === "success",
1610
- isError: v,
1611
- isInitialLoading: y,
1612
- isLoading: y,
1613
- data: d,
1614
- dataUpdatedAt: l.dataUpdatedAt,
1615
- error: f,
1616
- errorUpdatedAt: p,
1617
- failureCount: l.fetchFailureCount,
1618
- failureReason: l.fetchFailureReason,
1619
- errorUpdateCount: l.errorUpdateCount,
1620
- isFetched: e.isFetched(),
1621
- isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
1622
- isFetching: g,
1623
- isRefetching: g && !_,
1624
- isLoadingError: v && !b,
1625
- isPaused: l.fetchStatus === "paused",
1626
- isPlaceholderData: u,
1627
- isRefetchError: v && b,
1628
- isStale: Xt(e, t),
1629
- refetch: this.refetch,
1630
- promise: this.#o,
1631
- isEnabled: Q(t.enabled, e) !== !1
1632
- };
1633
- if (this.options.experimental_prefetchInRender) {
1634
- let t = x.data !== void 0, r = x.status === "error" && !t, i = (e) => {
1635
- r ? e.reject(x.error) : t && e.resolve(x.data);
1636
- }, a = () => {
1637
- i(this.#o = x.promise = Rt());
1638
- }, o = this.#o;
1639
- switch (o.status) {
1640
- case "pending":
1641
- e.queryHash === n.queryHash && i(o);
1642
- break;
1643
- case "fulfilled":
1644
- (r || x.data !== o.value) && a();
1645
- break;
1646
- case "rejected":
1647
- (!r || x.error !== o.reason) && a();
1648
- break;
1649
- }
1650
- }
1651
- return x;
1652
- }
1653
- updateResult() {
1654
- let e = this.#r, t = this.createResult(this.#t, this.options);
1655
- this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !jt(t, e) && (this.#r = t, this.#C({ listeners: (() => {
1656
- if (!e) return !0;
1657
- let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
1658
- if (n === "all" || !n && !this.#m.size) return !0;
1659
- let r = new Set(n ?? this.#m);
1660
- return this.options.throwOnError && r.add("error"), Object.keys(this.#r).some((t) => {
1661
- let n = t;
1662
- return this.#r[n] !== e[n] && r.has(n);
1663
- });
1664
- })() }));
1665
- }
1666
- #S() {
1667
- let e = this.#e.getQueryCache().build(this.#e, this.options);
1668
- if (e === this.#t) return;
1669
- let t = this.#t;
1670
- this.#t = e, this.#n = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
1671
- }
1672
- onQueryUpdate() {
1673
- this.updateResult(), this.hasListeners() && this.#y();
1674
- }
1675
- #C(e) {
1676
- Vt.batch(() => {
1677
- e.listeners && this.listeners.forEach((e) => {
1678
- e(this.#r);
1679
- }), this.#e.getQueryCache().notify({
1680
- query: this.#t,
1681
- type: "observerResultsUpdated"
1682
- });
1683
- });
1684
- }
1685
- };
1686
- function Kt(e, t) {
1687
- return Q(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
1688
- }
1689
- function qt(e, t) {
1690
- return Kt(e, t) || e.state.data !== void 0 && Jt(e, t, t.refetchOnMount);
1691
- }
1692
- function Jt(e, t, n) {
1693
- if (Q(t.enabled, e) !== !1 && Ot(t.staleTime, e) !== "static") {
1694
- let r = typeof n == "function" ? n(e) : n;
1695
- return r === "always" || r !== !1 && Xt(e, t);
1696
- }
1697
- return !1;
1698
- }
1699
- function Yt(e, t, n, r) {
1700
- return (e !== t || Q(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Xt(e, n);
1701
- }
1702
- function Xt(e, t) {
1703
- return Q(t.enabled, e) !== !1 && e.isStaleByTime(Ot(t.staleTime, e));
1704
- }
1705
- function Zt(e, t) {
1706
- return !jt(e.getCurrentResult(), t);
1707
- }
1708
- //#endregion
1709
- //#region ../../node_modules/.bun/@tanstack+react-query@5.96.1+b1ab299f0a400331/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
1710
- var Qt = V.createContext(void 0), $t = (e) => {
1711
- let t = V.useContext(Qt);
1712
- if (e) return e;
1713
- if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
1714
- return t;
1715
- }, en = V.createContext(!1), tn = () => V.useContext(en);
1716
- en.Provider;
1717
- //#endregion
1718
- //#region ../../node_modules/.bun/@tanstack+react-query@5.96.1+b1ab299f0a400331/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
1719
- function nn() {
1720
- let e = !1;
1721
- return {
1722
- clearReset: () => {
1723
- e = !1;
1724
- },
1725
- reset: () => {
1726
- e = !0;
1727
- },
1728
- isReset: () => e
1729
- };
1730
- }
1731
- var rn = V.createContext(nn()), an = () => V.useContext(rn), on = (e, t, n) => {
1732
- let r = n?.state.error && typeof e.throwOnError == "function" ? It(e.throwOnError, [n.state.error, n]) : e.throwOnError;
1733
- (e.suspense || e.experimental_prefetchInRender || r) && (t.isReset() || (e.retryOnMount = !1));
1734
- }, sn = (e) => {
1735
- V.useEffect(() => {
1736
- e.clearReset();
1737
- }, [e]);
1738
- }, cn = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || It(n, [e.error, r])), ln = (e) => {
1739
- if (e.suspense) {
1740
- let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
1741
- e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
1742
- }
1743
- }, un = (e, t) => e.isLoading && e.isFetching && !t, dn = (e, t) => e?.suspense && t.isPending, fn = (e, t, n) => t.fetchOptimistic(e).catch(() => {
1744
- n.clearReset();
1745
- });
1746
- //#endregion
1747
- //#region ../../node_modules/.bun/@tanstack+react-query@5.96.1+b1ab299f0a400331/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1748
- function pn(e, t, n) {
1749
- if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e))) throw Error("Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object");
1750
- let r = tn(), i = an(), a = $t(n), o = a.defaultQueryOptions(e);
1751
- a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);
1752
- let s = a.getQueryCache().get(o.queryHash);
1753
- process.env.NODE_ENV !== "production" && (o.queryFn || console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)), o._optimisticResults = r ? "isRestoring" : "optimistic", ln(o), on(o, i, s), sn(i);
1754
- let c = !a.getQueryCache().get(o.queryHash), [l] = V.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && e.subscribed !== !1;
1755
- if (V.useSyncExternalStore(V.useCallback((e) => {
1756
- let t = d ? l.subscribe(Vt.batchCalls(e)) : Tt;
1757
- return l.updateResult(), t;
1758
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), V.useEffect(() => {
1759
- l.setOptions(o);
1760
- }, [o, l]), dn(o, u)) throw fn(o, l, i);
1761
- if (cn({
1762
- result: u,
1763
- errorResetBoundary: i,
1764
- throwOnError: o.throwOnError,
1765
- query: s,
1766
- suspense: o.suspense
1767
- })) throw u.error;
1768
- return a.getDefaultOptions().queries?._experimental_afterQuery?.(o, u), o.experimental_prefetchInRender && !Lt.isServer() && un(u, r) && (c ? fn(o, l, i) : s?.promise)?.catch(Tt).finally(() => {
1769
- l.updateResult();
1770
- }), o.notifyOnChangeProps ? u : l.trackResult(u);
1771
- }
1772
- //#endregion
1773
- //#region ../../node_modules/.bun/@tanstack+react-query@5.96.1+b1ab299f0a400331/node_modules/@tanstack/react-query/build/modern/useQuery.js
1774
- function mn(e, t) {
1775
- return pn(e, Gt, t);
1776
- }
1777
- //#endregion
1778
- //#region src/hooks/injectFontLink.ts
1779
- var hn = (e) => {
1780
- let t = Z[e];
1183
+ }, yt = (e) => {
1184
+ let t = Q[e];
1781
1185
  if (!t || document.head.querySelector(`link[data-font="${e}"]`)) return;
1782
1186
  let n = document.createElement("link");
1783
1187
  n.rel = "stylesheet", n.href = t, n.setAttribute("data-font", e), document.head.appendChild(n);
1784
- }, gn = async (e) => {
1785
- let t = Z[e];
1188
+ }, bt = async (e) => {
1189
+ let t = Q[e];
1786
1190
  if (!t) throw Error(`Font "${e}" not found in Google Fonts`);
1787
1191
  let n = await fetch(t);
1788
1192
  if (!n.ok) throw Error(`Failed to download font: HTTP ${n.status}`);
1789
- return await n.text(), hn(e), {
1193
+ return await n.text(), yt(e), {
1790
1194
  font: e,
1791
1195
  success: !0
1792
1196
  };
1793
- }, _n = (e) => {
1794
- let t = $t(), n = X((e) => e.markFontDownloaded), r = X((e) => e.downloadedFonts), i = e ? r.includes(e) : !1, a = e && !i && Z[e], o = mn({
1197
+ }, xt = (e) => {
1198
+ let t = ge(), n = Z((e) => e.markFontDownloaded), r = Z((e) => e.downloadedFonts), i = e ? r.includes(e) : !1, a = e && !i && Q[e], o = he({
1795
1199
  queryKey: ["font", e ?? ""],
1796
1200
  queryFn: async ({ queryKey: e }) => {
1797
1201
  let [, t] = e;
1798
- if (!t || !Z[t]) throw Error(`Font "${t}" not available`);
1799
- let r = await gn(t);
1202
+ if (!t || !Q[t]) throw Error(`Font "${t}" not available`);
1203
+ let r = await bt(t);
1800
1204
  return r.success && n(t), r;
1801
1205
  },
1802
1206
  enabled: !!a,
@@ -1836,10 +1240,10 @@ var hn = (e) => {
1836
1240
  isDownloaded: i,
1837
1241
  reset: c
1838
1242
  };
1839
- }, vn = ue[1], yn = ({ status: e, error: t, onDownload: n }) => {
1840
- let { t: r } = z("settings");
1841
- return t ? /* @__PURE__ */ K(Me, {
1842
- color: vn,
1243
+ }, St = le[1], Ct = ({ status: e, error: t, onDownload: n }) => {
1244
+ let { t: r } = B("settings");
1245
+ return t ? /* @__PURE__ */ K(Ne, {
1246
+ color: St,
1843
1247
  variant: "filled",
1844
1248
  size: "sm",
1845
1249
  "aria-label": `Download error: ${t}`,
@@ -1852,8 +1256,8 @@ var hn = (e) => {
1852
1256
  "aria-label": r("font.download"),
1853
1257
  children: r("font.download")
1854
1258
  });
1855
- }, bn = () => {
1856
- let { t: e } = z("settings"), t = X((e) => e.font), n = X((e) => e.setFont), r = X((e) => e.fontSize), i = X((e) => e.setFontSize), a = X((e) => e.downloadedFonts), o = X((e) => e.markFontDownloaded), [s, c] = G(null), l = _n(s);
1259
+ }, wt = () => {
1260
+ let { t: e } = B("settings"), t = Z((e) => e.font), n = Z((e) => e.setFont), r = Z((e) => e.fontSize), i = Z((e) => e.setFontSize), a = Z((e) => e.downloadedFonts), o = Z((e) => e.markFontDownloaded), [s, c] = G(null), l = xt(s);
1857
1261
  U(() => {
1858
1262
  l.isSuccess && l.data?.success && s && (a.includes(s) || o(s));
1859
1263
  }, [
@@ -1867,9 +1271,9 @@ var hn = (e) => {
1867
1271
  c(e);
1868
1272
  }, []), d = (e) => a.includes(e) ? "done" : s === e ? l.progress.status : "idle", f = (e) => s === e ? l.progress.error : null, p = H((e) => {
1869
1273
  let t = e.trim();
1870
- t && (Z[t] = `https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g, "+")}&display=swap`, c(t));
1274
+ t && (Q[t] = `https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g, "+")}&display=swap`, c(t));
1871
1275
  }, []), m = dt.map((e) => e.value), h = a.filter((e) => !m.includes(e));
1872
- return /* @__PURE__ */ q(R, {
1276
+ return /* @__PURE__ */ q(z, {
1873
1277
  gap: "md",
1874
1278
  p: "md",
1875
1279
  children: [
@@ -1887,15 +1291,15 @@ var hn = (e) => {
1887
1291
  value: t,
1888
1292
  onChange: n,
1889
1293
  "aria-label": e("font.selectionAria", { defaultValue: "Font selection" }),
1890
- children: /* @__PURE__ */ q(R, {
1294
+ children: /* @__PURE__ */ q(z, {
1891
1295
  gap: "xs",
1892
1296
  children: [dt.map((e) => {
1893
- let t = !!Z[e.value], n = a.includes(e.value), r = d(e.value), i = f(e.value), o = !t || n || r === "done";
1297
+ let t = !!Q[e.value], n = a.includes(e.value), r = d(e.value), i = f(e.value), o = !t || n || r === "done";
1894
1298
  return /* @__PURE__ */ K(N, {
1895
1299
  p: "sm",
1896
1300
  withBorder: !0,
1897
1301
  radius: "md",
1898
- children: /* @__PURE__ */ q(R, {
1302
+ children: /* @__PURE__ */ q(z, {
1899
1303
  gap: "xs",
1900
1304
  children: [/* @__PURE__ */ q(P, {
1901
1305
  justify: "space-between",
@@ -1912,7 +1316,7 @@ var hn = (e) => {
1912
1316
  c: "dimmed",
1913
1317
  style: { fontFamily: e.stack },
1914
1318
  children: "AaBbCcDd"
1915
- }), t && /* @__PURE__ */ K(yn, {
1319
+ }), t && /* @__PURE__ */ K(Ct, {
1916
1320
  fontLabel: e.label,
1917
1321
  status: r,
1918
1322
  error: i,
@@ -1947,7 +1351,7 @@ var hn = (e) => {
1947
1351
  p: "sm",
1948
1352
  withBorder: !0,
1949
1353
  radius: "md",
1950
- children: /* @__PURE__ */ q(R, {
1354
+ children: /* @__PURE__ */ q(z, {
1951
1355
  gap: "xs",
1952
1356
  children: [/* @__PURE__ */ q(P, {
1953
1357
  justify: "space-between",
@@ -1977,15 +1381,15 @@ var hn = (e) => {
1977
1381
  })]
1978
1382
  })
1979
1383
  }),
1980
- /* @__PURE__ */ K(xn, {
1384
+ /* @__PURE__ */ K(Tt, {
1981
1385
  onDownload: p,
1982
1386
  activeDownload: s,
1983
1387
  fontDownload: l
1984
1388
  })
1985
1389
  ]
1986
1390
  });
1987
- }, xn = ({ onDownload: e, activeDownload: t, fontDownload: n }) => {
1988
- let { t: r } = z("settings"), [i, a] = G(""), o = t === i.trim(), s = o ? n.progress.status : "idle", c = o && n.progress.status === "error", l = H((e) => {
1391
+ }, Tt = ({ onDownload: e, activeDownload: t, fontDownload: n }) => {
1392
+ let { t: r } = B("settings"), [i, a] = G(""), o = t === i.trim(), s = o ? n.progress.status : "idle", c = o && n.progress.status === "error", l = H((e) => {
1989
1393
  a(e), c && n.reset?.();
1990
1394
  }, [c, n]), u = H(() => {
1991
1395
  e(i);
@@ -1994,7 +1398,7 @@ var hn = (e) => {
1994
1398
  p: "sm",
1995
1399
  withBorder: !0,
1996
1400
  radius: "md",
1997
- children: /* @__PURE__ */ q(R, {
1401
+ children: /* @__PURE__ */ q(z, {
1998
1402
  gap: "xs",
1999
1403
  children: [
2000
1404
  /* @__PURE__ */ q(F, {
@@ -2039,21 +1443,21 @@ var hn = (e) => {
2039
1443
  ]
2040
1444
  })
2041
1445
  });
2042
- }, Sn = ["en", "es"], Cn = "en", wn = {
1446
+ }, Et = ["en", "es"], Dt = "en", Ot = {
2043
1447
  en: "English",
2044
1448
  es: "Español"
2045
- }, Tn = () => {
2046
- let { t: e } = z("settings"), t = X((e) => e.language), n = X((e) => e.setLanguage), r = H((e) => {
1449
+ }, kt = () => {
1450
+ let { t: e } = B("settings"), t = Z((e) => e.language), n = Z((e) => e.setLanguage), r = H((e) => {
2047
1451
  n(e);
2048
1452
  }, [n]);
2049
1453
  return /* @__PURE__ */ K(mt, {
2050
1454
  title: e("language.title"),
2051
1455
  description: e("language.description"),
2052
- children: /* @__PURE__ */ K(R, {
1456
+ children: /* @__PURE__ */ K(z, {
2053
1457
  gap: "xs",
2054
- children: Sn.map((e) => /* @__PURE__ */ K(M, {
1458
+ children: Et.map((e) => /* @__PURE__ */ K(M, {
2055
1459
  onClick: () => r(e),
2056
- "aria-label": wn[e],
1460
+ "aria-label": Ot[e],
2057
1461
  "aria-pressed": e === t,
2058
1462
  style: {
2059
1463
  padding: "12px 16px",
@@ -2071,7 +1475,7 @@ var hn = (e) => {
2071
1475
  size: 24
2072
1476
  }), /* @__PURE__ */ K(F, {
2073
1477
  fw: e === t ? 600 : 400,
2074
- children: wn[e]
1478
+ children: Ot[e]
2075
1479
  })]
2076
1480
  })
2077
1481
  }, e))
@@ -2080,7 +1484,7 @@ var hn = (e) => {
2080
1484
  };
2081
1485
  //#endregion
2082
1486
  //#region src/utils/clearBrowserData.ts
2083
- async function En(e) {
1487
+ async function At(e) {
2084
1488
  let t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : void 0;
2085
1489
  if (t) {
2086
1490
  if (!e?.keepServiceWorker && "serviceWorker" in t.navigator) {
@@ -2100,20 +1504,20 @@ async function En(e) {
2100
1504
  }
2101
1505
  //#endregion
2102
1506
  //#region src/utils/resetDockerWorkspace.ts
2103
- async function Dn() {
1507
+ async function jt() {
2104
1508
  ne() && (await fetch("/api/fs/reset", { method: "POST" }), await fetch("/api/fs/seed", { method: "POST" }));
2105
1509
  }
2106
1510
  //#endregion
2107
1511
  //#region src/components/Apps/SettingsApp/sections/ResetSettings.tsx
2108
- var On = () => {
2109
- let { t: e } = z("settings"), [t, n] = G(!1), r = H(() => {
1512
+ var Mt = () => {
1513
+ let { t: e } = B("settings"), [t, n] = G(!1), r = H(() => {
2110
1514
  n(!0);
2111
1515
  }, []), i = H(() => {
2112
1516
  n(!1);
2113
1517
  }, []), a = H(async () => {
2114
- await Dn(), await En(), window.location.reload();
1518
+ await jt(), await At(), window.location.reload();
2115
1519
  }, []), o = H(async () => {
2116
- await Dn(), await En({ keepIndexedDB: !0 }), window.location.reload();
1520
+ await jt(), await At({ keepIndexedDB: !0 }), window.location.reload();
2117
1521
  }, []);
2118
1522
  return /* @__PURE__ */ q(mt, {
2119
1523
  title: e("reset.title"),
@@ -2146,7 +1550,7 @@ var On = () => {
2146
1550
  maxWidth: 400,
2147
1551
  width: "100%"
2148
1552
  },
2149
- children: /* @__PURE__ */ q(R, {
1553
+ children: /* @__PURE__ */ q(z, {
2150
1554
  gap: "md",
2151
1555
  children: [
2152
1556
  /* @__PURE__ */ K(F, {
@@ -2198,7 +1602,7 @@ var On = () => {
2198
1602
  toolbar: "_toolbar_77epl_60",
2199
1603
  dirtyIndicator: "_dirtyIndicator_77epl_70",
2200
1604
  versionFooter: "_versionFooter_77epl_77"
2201
- }, kn = {
1605
+ }, Nt = {
2202
1606
  name: "Francisco Núñez Palomares",
2203
1607
  title: "Fullstack Developer & DevOps",
2204
1608
  email: "frannunpal@gmail.com",
@@ -2210,15 +1614,15 @@ var On = () => {
2210
1614
  en: "Desktop/CV_2026_English.pdf",
2211
1615
  es: "Desktop/CV 2026.pdf"
2212
1616
  }
2213
- }, An = "0.4.0", jn = () => An, Mn = {
1617
+ }, Pt = "0.4.0", Ft = () => Pt, It = {
2214
1618
  wallpaper: gt,
2215
1619
  appearance: _t,
2216
1620
  launcher: vt,
2217
- font: bn,
2218
- language: Tn,
2219
- reset: On
2220
- }, Nn = ({ window: e, notifyReady: t }) => {
2221
- let { t: n } = z("settings"), [r, i] = G(null), [a, o] = G(!1), s = oe((e) => e.windows), c = e?.id ?? s.find((e) => e.content === "settings")?.id, l = X((e) => e.wallpaper), u = X((e) => e.wallpaperModule), d = X((e) => e.theme), f = X((e) => e.font), p = X((e) => e.fontSize), m = X((e) => e.launcherIcon), g = X((e) => e.customThemeColors), _ = X((e) => e.animationDuration), v = X((e) => e.setWallpaper), y = X((e) => e.setWallpaperModule), b = X((e) => e.setFont), x = X((e) => e.setFontSize), S = X((e) => e.setLauncherIcon), C = X((e) => e.setThemeMode), w = X((e) => e.setCustomThemeColors), T = X((e) => e.setThemeAutomatic), E = X((e) => e.setAnimationDuration), D = W(null);
1621
+ font: wt,
1622
+ language: kt,
1623
+ reset: Mt
1624
+ }, Lt = ({ window: e, notifyReady: t }) => {
1625
+ let { t: n } = B("settings"), [r, i] = G(null), [a, o] = G(!1), s = ae((e) => e.windows), c = e?.id ?? s.find((e) => e.content === "settings")?.id, l = Z((e) => e.wallpaper), u = Z((e) => e.wallpaperModule), d = Z((e) => e.theme), f = Z((e) => e.font), p = Z((e) => e.fontSize), m = Z((e) => e.launcherIcon), g = Z((e) => e.customThemeColors), _ = Z((e) => e.animationDuration), v = Z((e) => e.setWallpaper), y = Z((e) => e.setWallpaperModule), b = Z((e) => e.setFont), x = Z((e) => e.setFontSize), S = Z((e) => e.setLauncherIcon), C = Z((e) => e.setThemeMode), w = Z((e) => e.setCustomThemeColors), T = Z((e) => e.setThemeAutomatic), E = Z((e) => e.setAnimationDuration), D = W(null);
2222
1626
  U(() => {
2223
1627
  D.current === null && (D.current = {
2224
1628
  wallpaper: l,
@@ -2277,9 +1681,9 @@ var On = () => {
2277
1681
  T
2278
1682
  ]);
2279
1683
  U(() => {
2280
- c && de.getState().reset(c);
1684
+ c && ue.getState().reset(c);
2281
1685
  }, [c]), U(() => {
2282
- c && de.getState().setIsDirty(c, a);
1686
+ c && ue.getState().setIsDirty(c, a);
2283
1687
  }, [c, a]), U(() => {
2284
1688
  t?.({
2285
1689
  ...e?.contentData ?? {},
@@ -2289,18 +1693,18 @@ var On = () => {
2289
1693
  e,
2290
1694
  t,
2291
1695
  O
2292
- ]), ce({
1696
+ ]), se({
2293
1697
  isDirtyGetter: H(() => {
2294
1698
  if (!D.current) return !1;
2295
1699
  let e = {
2296
- wallpaper: X.getState().wallpaper,
2297
- wallpaperModule: X.getState().wallpaperModule,
2298
- themeMode: X.getState().theme.mode,
2299
- font: X.getState().font,
2300
- fontSize: X.getState().fontSize,
2301
- launcherIcon: X.getState().launcherIcon,
2302
- customThemeColors: X.getState().customThemeColors,
2303
- animationDuration: X.getState().animationDuration
1700
+ wallpaper: Z.getState().wallpaper,
1701
+ wallpaperModule: Z.getState().wallpaperModule,
1702
+ themeMode: Z.getState().theme.mode,
1703
+ font: Z.getState().font,
1704
+ fontSize: Z.getState().fontSize,
1705
+ launcherIcon: Z.getState().launcherIcon,
1706
+ customThemeColors: Z.getState().customThemeColors,
1707
+ animationDuration: Z.getState().animationDuration
2304
1708
  };
2305
1709
  return JSON.stringify(e) !== JSON.stringify(D.current);
2306
1710
  }, []),
@@ -2313,8 +1717,8 @@ var On = () => {
2313
1717
  }, []), A = H(() => {
2314
1718
  i(null);
2315
1719
  }, []), ee = H(() => {
2316
- globalThis.location.href = `mailto:${kn.email}`;
2317
- }, []), j = r ? Mn[r] : null;
1720
+ globalThis.location.href = `mailto:${Nt.email}`;
1721
+ }, []), j = r ? It[r] : null;
2318
1722
  return /* @__PURE__ */ q("div", {
2319
1723
  className: $.root,
2320
1724
  children: [/* @__PURE__ */ K("aside", {
@@ -2327,7 +1731,7 @@ var On = () => {
2327
1731
  onClick: A,
2328
1732
  "aria-label": "All Settings",
2329
1733
  "aria-current": r === null ? "page" : void 0,
2330
- children: [/* @__PURE__ */ K(L, {
1734
+ children: [/* @__PURE__ */ K(R, {
2331
1735
  fcIcon: "FcList",
2332
1736
  size: 16
2333
1737
  }), /* @__PURE__ */ K(F, {
@@ -2342,7 +1746,7 @@ var On = () => {
2342
1746
  onClick: () => k(e.id),
2343
1747
  "aria-label": e.label,
2344
1748
  "aria-current": r === e.id ? "page" : void 0,
2345
- children: [/* @__PURE__ */ K(L, {
1749
+ children: [/* @__PURE__ */ K(R, {
2346
1750
  fcIcon: e.fcIcon,
2347
1751
  size: 16
2348
1752
  }), /* @__PURE__ */ K(F, {
@@ -2355,7 +1759,7 @@ var On = () => {
2355
1759
  })
2356
1760
  }), /* @__PURE__ */ K("main", {
2357
1761
  className: $.content,
2358
- children: j ? /* @__PURE__ */ K(j, {}) : /* @__PURE__ */ q(R, {
1762
+ children: j ? /* @__PURE__ */ K(j, {}) : /* @__PURE__ */ q(z, {
2359
1763
  className: $.overviewPadding,
2360
1764
  h: "100%",
2361
1765
  justify: "space-between",
@@ -2370,7 +1774,7 @@ var On = () => {
2370
1774
  }), /* @__PURE__ */ K(h, {
2371
1775
  cols: 2,
2372
1776
  spacing: "sm",
2373
- children: pt.map((e) => /* @__PURE__ */ K(re, {
1777
+ children: pt.map((e) => /* @__PURE__ */ K(L, {
2374
1778
  withBorder: !0,
2375
1779
  padding: "md",
2376
1780
  radius: "md",
@@ -2378,11 +1782,11 @@ var On = () => {
2378
1782
  onClick: () => k(e.id),
2379
1783
  role: "button",
2380
1784
  "aria-label": `Open ${e.label} settings`,
2381
- children: /* @__PURE__ */ q(R, {
1785
+ children: /* @__PURE__ */ q(z, {
2382
1786
  gap: 6,
2383
1787
  align: "flex-start",
2384
1788
  children: [
2385
- /* @__PURE__ */ K(L, {
1789
+ /* @__PURE__ */ K(R, {
2386
1790
  fcIcon: e.fcIcon,
2387
1791
  size: 28
2388
1792
  }),
@@ -2414,7 +1818,7 @@ var On = () => {
2414
1818
  c: "dimmed",
2415
1819
  ta: "center",
2416
1820
  className: $.versionFooter,
2417
- children: jn()
1821
+ children: Ft()
2418
1822
  })
2419
1823
  ]
2420
1824
  })
@@ -2422,4 +1826,4 @@ var On = () => {
2422
1826
  });
2423
1827
  };
2424
1828
  //#endregion
2425
- export { Sn as a, mt as c, ft as d, Z as f, et as g, X as h, Cn as i, pt as l, rt as m, kn as n, _n as o, ut as p, En as r, hn as s, Nn as t, dt as u };
1829
+ export { Et as a, mt as c, ft as d, Q as f, et as g, Z as h, Dt as i, pt as l, rt as m, Nt as n, xt as o, ut as p, At as r, yt as s, Lt as t, dt as u };