@chaibuilder/sdk 4.0.0-beta.35 → 4.0.0-beta.36

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 (87) hide show
  1. package/dist/{2SSKDMRQ-CZ0Vy6ir.cjs → 2SSKDMRQ-C3eivR9y.cjs} +1 -1
  2. package/dist/{2SSKDMRQ-Ce8xH_EE.js → 2SSKDMRQ-rk5vFzuv.js} +5 -5
  3. package/dist/{AP7HFJJL-C_GhxNzR.cjs → AP7HFJJL-2qWLZyWT.cjs} +1 -1
  4. package/dist/{AP7HFJJL-DxRUcy8z.js → AP7HFJJL-BMK2jPSi.js} +1 -1
  5. package/dist/{WDYDFRGG-JMA9G17v.js → WDYDFRGG-1zoPbvu7.js} +6 -6
  6. package/dist/{WDYDFRGG-DPPgf9Va.cjs → WDYDFRGG-Bfra_-3l.cjs} +1 -1
  7. package/dist/{actions-registery-CKEzH855.js → actions-registery-CMKfEXxX.js} +235 -301
  8. package/dist/{actions-registery-Byid-s6S.cjs → actions-registery-CqhNZFV3.cjs} +13 -13
  9. package/dist/actions.cjs +1 -1
  10. package/dist/actions.js +2 -2
  11. package/dist/{active-in-another-tab-CcCrhl7z.cjs → active-in-another-tab-DkOOxZwb.cjs} +1 -1
  12. package/dist/{active-in-another-tab-C-E0cjyu.js → active-in-another-tab-Zrq6x3L9.js} +1 -1
  13. package/dist/{add-new-language-page-DIAFT7Au.cjs → add-new-language-page-Dsze4PNK.cjs} +1 -1
  14. package/dist/{add-new-language-page-D93yJKtJ.js → add-new-language-page-alqCh26P.js} +1 -1
  15. package/dist/{add-new-page-D2IBnynJ.cjs → add-new-page-DtQYPRYM.cjs} +1 -1
  16. package/dist/{add-new-page-DaBpJeHK.js → add-new-page-HoFoI257.js} +1 -1
  17. package/dist/{ai-panel-content-DAXG0iZN.js → ai-panel-content-DZmolAf1.js} +2 -2
  18. package/dist/{ai-panel-content-CZO5fG_R.cjs → ai-panel-content-DcM2BBcL.cjs} +1 -1
  19. package/dist/{ai-panel-default-lang-CwnsdDO8.cjs → ai-panel-default-lang-BmVJcDnH.cjs} +1 -1
  20. package/dist/{ai-panel-default-lang-KI9kwEt7.js → ai-panel-default-lang-Bv8Fms5X.js} +1 -1
  21. package/dist/{ai-panel-other-lang-BpGRrcQQ.cjs → ai-panel-other-lang-BGyP45jz.cjs} +1 -1
  22. package/dist/{ai-panel-other-lang-DgyCpBVD.js → ai-panel-other-lang-CCGz4Tql.js} +2 -2
  23. package/dist/{ai-translation-prompt-BQ0OW9F_.cjs → ai-translation-prompt-DWj1gmKg.cjs} +1 -1
  24. package/dist/{ai-translation-prompt-Cs39rmRE.js → ai-translation-prompt-DXhM0OnM.js} +1 -1
  25. package/dist/{change-password-modal-CdrJct2d.cjs → change-password-modal-BcJsR8sq.cjs} +1 -1
  26. package/dist/{change-password-modal-CfZ3KoDT.js → change-password-modal-D4wVoj8S.js} +1 -1
  27. package/dist/{continue-editing-in-this-client-BkHlxvfG.cjs → continue-editing-in-this-client-BHbRZL8A.cjs} +1 -1
  28. package/dist/{continue-editing-in-this-client-BqgTDohA.js → continue-editing-in-this-client-CoZnDfgk.js} +1 -1
  29. package/dist/{delete-page-Vn6P6hEV.cjs → delete-page-DKBN4nL1.cjs} +1 -1
  30. package/dist/{delete-page-BIP7fPy_.js → delete-page-T2VWcbyP.js} +1 -1
  31. package/dist/{digital-asset-manager-aSXb6slG.js → digital-asset-manager-B1KUqVJc.js} +1 -1
  32. package/dist/{digital-asset-manager-BoNm3Q2W.cjs → digital-asset-manager-DYMrQhJ7.cjs} +1 -1
  33. package/dist/{duplicate-page-C46afThg.js → duplicate-page-Bt36erFD.js} +14 -14
  34. package/dist/{duplicate-page-CwFCJNwW.cjs → duplicate-page-Cop50Nuj.cjs} +1 -1
  35. package/dist/{dynamic-page-selector-txjqS5jX.cjs → dynamic-page-selector-DxJ80Cpv.cjs} +1 -1
  36. package/dist/{dynamic-page-selector-IT9LZDro.js → dynamic-page-selector-jMUcjGtc.js} +1 -1
  37. package/dist/index-DvOWqGdC.cjs +5 -0
  38. package/dist/{index-Bh0hrlXu.js → index-K4yKMKbY.js} +700 -681
  39. package/dist/{json-diff-viewer-CTsxzkiu.cjs → json-diff-viewer-BisiaC_I.cjs} +1 -1
  40. package/dist/{json-diff-viewer-D1Y_t-v4.js → json-diff-viewer-CivVPp1k.js} +33 -33
  41. package/dist/{lang-panel-irJl_yAH.js → lang-panel-DejZsTqE.js} +22 -22
  42. package/dist/{lang-panel-BUXBHMCZ.cjs → lang-panel-DoPGR_AP.cjs} +1 -1
  43. package/dist/{mark-as-template-DqIqHM7P.js → mark-as-template-NPUbCfae.js} +1 -1
  44. package/dist/{mark-as-template-Dr-qn1H7.cjs → mark-as-template-OqwiT2Zm.cjs} +1 -1
  45. package/dist/{no-language-page-content-Cb8CviKU.cjs → no-language-page-content-BGlAr__k.cjs} +1 -1
  46. package/dist/{no-language-page-content-DQK5hRDH.js → no-language-page-content-DfdMEUqE.js} +1 -1
  47. package/dist/{no-language-page-dialog-Bw_oSBFM.js → no-language-page-dialog-3obqd_9-.js} +2 -2
  48. package/dist/{no-language-page-dialog-J36heFUY.cjs → no-language-page-dialog-d1oHBURV.cjs} +1 -1
  49. package/dist/{page-creator-C5g7z8W6.js → page-creator-4ElxexYm.js} +51 -51
  50. package/dist/{page-creator-CMJ9ZDbx.cjs → page-creator-Il_h2vl4.cjs} +1 -1
  51. package/dist/{page-lock-C4R_Or95.js → page-lock-CT54xDQL.js} +2 -2
  52. package/dist/{page-lock-BWomVpCL.cjs → page-lock-s-pfopxQ.cjs} +1 -1
  53. package/dist/{page-locked-dialog-DMZLhad3.cjs → page-locked-dialog-BORNeoXe.cjs} +1 -1
  54. package/dist/{page-locked-dialog-urg4T_WZ.js → page-locked-dialog-CBL04Nga.js} +2 -2
  55. package/dist/{page-manager-new-myexG-Df.cjs → page-manager-new-Bp5QkZD4.cjs} +1 -1
  56. package/dist/{page-manager-new-D_Lwwz4w.js → page-manager-new-DqCkZnWY.js} +91 -91
  57. package/dist/{page-manager-search-and-filter-qv_E2tzW.cjs → page-manager-search-and-filter-BMPaoTAI.cjs} +1 -1
  58. package/dist/{page-manager-search-and-filter-D56yGDSe.js → page-manager-search-and-filter-CUEUB4bN.js} +1 -1
  59. package/dist/{page-revisions-content-BOaT_9og.cjs → page-revisions-content-1kklUJZV.cjs} +1 -1
  60. package/dist/{page-revisions-content-Dyi6EY_V.js → page-revisions-content-mU05KA_O.js} +7 -7
  61. package/dist/pages.cjs +1 -1
  62. package/dist/pages.d.ts +1 -0
  63. package/dist/pages.js +15 -15
  64. package/dist/{publish-pages-content-C0vWbTxI.js → publish-pages-content-CcV-xLsk.js} +80 -73
  65. package/dist/publish-pages-content-CpdTUAds.cjs +1 -0
  66. package/dist/{save-to-lib-BN2EgYkx.js → save-to-lib-CXhaKw5V.js} +57 -57
  67. package/dist/{save-to-lib-Bw6DefI8.cjs → save-to-lib-Uw9LqY5V.cjs} +1 -1
  68. package/dist/{selected-block-display-DQ_eRZxQ.cjs → selected-block-display-DZz78Kuo.cjs} +1 -1
  69. package/dist/{selected-block-display-BE83jvES.js → selected-block-display-_r5ZoSSD.js} +1 -1
  70. package/dist/{seo-panel-Bd5Yt35N.js → seo-panel-CMIMJh2W.js} +12 -12
  71. package/dist/{seo-panel-BZJ-bpPv.cjs → seo-panel-Cj8ky_W6.cjs} +1 -1
  72. package/dist/{shared-json-ld-_tOID7Vv.cjs → shared-json-ld-C28DLkns.cjs} +1 -1
  73. package/dist/{shared-json-ld-FApiYd-N.js → shared-json-ld-LWZfxt-V.js} +1 -1
  74. package/dist/supabase-actions.cjs +1 -1
  75. package/dist/supabase-actions.js +1 -1
  76. package/dist/{take-over-request-BfJbko6g.js → take-over-request-eNwLOB2Q.js} +9 -9
  77. package/dist/{take-over-request-CjcBgl4k.cjs → take-over-request-x9nLTelf.cjs} +1 -1
  78. package/dist/types.d.ts +1 -0
  79. package/dist/{unmark-as-template-DCoIaBeJ.cjs → unmark-as-template-GdqfA8lm.cjs} +1 -1
  80. package/dist/{unmark-as-template-vdqK9CiS.js → unmark-as-template-YGONVpmY.js} +1 -1
  81. package/dist/{unpublish-page-CKeoMtlZ.cjs → unpublish-page-CmwSkit5.cjs} +1 -1
  82. package/dist/{unpublish-page-5a9yi96y.js → unpublish-page-D-A9A9db.js} +1 -1
  83. package/dist/{web-preview-IfmBWYnZ.js → web-preview-CZVcFxwF.js} +1 -1
  84. package/dist/{web-preview-DbcvvsU-.cjs → web-preview-D4_3nlN-.cjs} +1 -1
  85. package/package.json +1 -1
  86. package/dist/index-D76nE1DU.cjs +0 -5
  87. package/dist/publish-pages-content-CqiZED9d.cjs +0 -1
@@ -4,18 +4,18 @@ var ts = (e) => {
4
4
  };
5
5
  var Fr = (e, t, n) => t in e ? Br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
6
  var Pn = (e, t, n) => Fr(e, typeof t != "symbol" ? t + "" : t, n), ns = (e, t, n) => t.has(e) || ts("Cannot " + n);
7
- var T = (e, t, n) => (ns(e, t, "read from private field"), n ? n.call(e) : t.get(e)), x = (e, t, n) => t.has(e) ? ts("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), I = (e, t, n, s) => (ns(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
8
- import { jsxs as g, jsx as o, Fragment as me } from "react/jsx-runtime";
7
+ var T = (e, t, n) => (ns(e, t, "read from private field"), n ? n.call(e) : t.get(e)), G = (e, t, n) => t.has(e) ? ts("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), N = (e, t, n, s) => (ns(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
8
+ import { jsxs as g, jsx as o, Fragment as Ee } from "react/jsx-runtime";
9
9
  import { B as R, h as Kr, v as Vt, e as ss, m as Vr, q as Hr, x as qr, D as $r, F as Qr } from "./register-chai-top-bar-D6GjnauV.js";
10
- import { aI as Wr, $ as On, aJ as zr, aK as jr, aL as Yr, aM as Jr, aN as Zr, r as ln, s as cn, t as un, v as ge, aa as Xr, d as _e, aO as ea, ax as Cs, E as Fe, aP as ta, aw as Ls, w as dn, aQ as Gs, aR as na, x as fn, aS as xs, y as hn, ae as Ht, D as Qn, ag as sa, aT as ra, aU as rs, af as aa, ac as ia, ad as oa, aV as la, aC as ca, aB as ua, aD as da, e as Os, a0 as fa, av as ha, a1 as ga, at as ma, a2 as Ea, a3 as pa, au as ya, a4 as Aa, a5 as Ta, aW as Sa, W as _a, X as wa, f as Pa, g as ba, ay as va, az as Na, aA as bn, aX as vn, T as as } from "./index-DZheQdw-.js";
10
+ import { aI as Wr, $ as On, aJ as zr, aK as jr, aL as Yr, aM as Jr, aN as Zr, r as ln, s as cn, t as un, v as me, aa as Xr, d as _e, aO as ea, ax as Cs, E as Fe, aP as ta, aw as Ls, w as dn, aQ as Gs, aR as na, x as fn, aS as xs, y as hn, ae as Ht, D as Qn, ag as sa, aT as ra, aU as rs, af as aa, ac as ia, ad as oa, aV as la, aC as ca, aB as ua, aD as da, e as Os, a0 as fa, av as ha, a1 as ga, at as ma, a2 as Ea, a3 as pa, au as ya, a4 as Aa, a5 as Ta, aW as Sa, W as _a, X as wa, f as Pa, g as ba, ay as va, az as Na, aA as bn, aX as vn, T as as } from "./index-DZheQdw-.js";
11
11
  import { ZoomInIcon as Ia, LightningBoltIcon as Ca } from "@radix-ui/react-icons";
12
- import { round as La, get as Y, noop as gn, keyBy as Ga, map as Dn, find as ce, values as Wn, reverse as xa, sortBy as Oa, minBy as Ds, first as ks, groupBy as Da, isEmpty as Ee, compact as pt, filter as zn, uniq as ka, each as Ra, upperCase as is, includes as Ua, has as jn, startCase as Ma, isFunction as Ba, pick as Rs, cloneDeep as Fa } from "lodash-es";
12
+ import { round as La, get as Y, noop as gn, keyBy as Ga, map as Dn, find as ce, values as Wn, reverse as xa, sortBy as Oa, minBy as Ds, first as ks, groupBy as Da, isEmpty as fe, compact as yt, filter as zn, uniq as ka, each as Ra, upperCase as is, includes as Ua, has as jn, startCase as Ma, isFunction as Ba, pick as Rs, cloneDeep as Fa } from "lodash-es";
13
13
  import { useAtom as we, atom as Pe, useSetAtom as Yn, useAtomValue as Ka } from "jotai";
14
14
  import { MoreVertical as Us, CopyPlusIcon as Va, Pencil as Ms, Power as Ha, Trash as qa, Loader as Ke, Hash as $a, File as Qa, MoreHorizontal as Wa, Languages as os, ChevronDown as kn, Star as za, Plus as Bs, History as ja, Palette as Ya, Play as Ja, CheckCircle as Za, Save as Xa, Send as ls, Rocket as cs, Eye as Fs, TriangleAlert as ei, Folder as us, ChevronRight as ds, ExternalLink as ti, LanguagesIcon as ni, User as si, X as fs, Trash2 as ri, ImageIcon as hs, Code as ai, Share2 as ii, FileCode2 as oi, AlertTriangle as li } from "lucide-react";
15
15
  import { useTranslation as pe } from "react-i18next";
16
16
  import * as j from "react";
17
- import ci, { useMemo as Q, useState as k, useEffect as J, useCallback as W, useRef as le, lazy as V, Suspense as X, startTransition as gs } from "react";
18
- import { useQuery as ue, useMutation as te, useQueryClient as Z, onlineManager as Ks, QueryClient as ui, QueryClientProvider as di } from "@tanstack/react-query";
17
+ import ci, { useMemo as Q, useState as k, useEffect as Z, useCallback as W, useRef as le, lazy as V, Suspense as X, startTransition as gs } from "react";
18
+ import { useQuery as ue, useMutation as te, useQueryClient as J, onlineManager as Ks, QueryClient as ui, QueryClientProvider as di } from "@tanstack/react-query";
19
19
  import { h as fi } from "./default-theme-options-saBIkWGT.js";
20
20
  import { c as Xt } from "./common-functions-D2lMFR6K.js";
21
21
  import { toast as F } from "sonner";
@@ -37,7 +37,7 @@ const Ei = () => {
37
37
  return /* @__PURE__ */ g("div", { className: "flex h-10 items-center justify-between px-2", children: [
38
38
  /* @__PURE__ */ o("div", { className: "flex h-full space-x-2", children: e ? /* @__PURE__ */ o(jr, {}) : null }),
39
39
  /* @__PURE__ */ g("div", { className: "flex h-full items-center space-x-2", children: [
40
- /* @__PURE__ */ o(Yr, { canvas: !0, openDelay: 400 }),
40
+ /* @__PURE__ */ o(Yr, { canvas: !0, openDelay: 400, activeButtonClass: "bg-gray-200" }),
41
41
  /* @__PURE__ */ o(Ei, {}),
42
42
  /* @__PURE__ */ o(Jr, {})
43
43
  ] }),
@@ -45,7 +45,7 @@ const Ei = () => {
45
45
  /* @__PURE__ */ o(Zr, {}),
46
46
  t ? /* @__PURE__ */ g(ln, { children: [
47
47
  /* @__PURE__ */ o(cn, { asChild: !0, children: /* @__PURE__ */ o(R, { size: "sm", variant: "ghost", className: "size-2 h-7 w-7 rounded-md p-1", children: /* @__PURE__ */ o(Us, { className: "h-2 w-2" }) }) }),
48
- /* @__PURE__ */ o(un, { className: "w-56 border-border text-xs", children: /* @__PURE__ */ g(ge, { className: "flex items-center gap-2", onSelect: (l) => l.preventDefault(), children: [
48
+ /* @__PURE__ */ o(un, { className: "w-56 border-border text-xs", children: /* @__PURE__ */ g(me, { className: "flex items-center gap-2", onSelect: (l) => l.preventDefault(), children: [
49
49
  /* @__PURE__ */ o(Ca, { className: "h-4 w-4 text-gray-500" }),
50
50
  /* @__PURE__ */ o("span", { className: "flex-1", children: r("Data Binding") }),
51
51
  /* @__PURE__ */ o(Xr, { checked: n, onCheckedChange: () => s(!n) })
@@ -53,15 +53,15 @@ const Ei = () => {
53
53
  ] }) : null
54
54
  ] })
55
55
  ] });
56
- }, en = Pe(null), yi = Pe({}), mn = () => we(yi), fe = (e, t) => {
56
+ }, en = Pe(null), yi = Pe({}), mn = () => we(yi), he = (e, t) => {
57
57
  const [n] = mn();
58
58
  return Q(() => Y(n, e, t), [n, e, t]);
59
- }, N = () => fe("apiUrl", "/chai/api"), Vs = () => fe("realtimeAdapter", null);
59
+ }, I = () => he("apiUrl", "/chai/api"), Vs = () => he("realtimeAdapter", null);
60
60
  function Ce() {
61
61
  const [e, t] = k(
62
62
  new URLSearchParams(window.location.search)
63
63
  );
64
- return J(() => {
64
+ return Z(() => {
65
65
  const n = () => {
66
66
  t(new URLSearchParams(window.location.search));
67
67
  };
@@ -142,8 +142,8 @@ const E = {
142
142
  ...n
143
143
  },
144
144
  body: JSON.stringify(t)
145
- }), hu = () => {
146
- const e = G(), t = N();
145
+ }), gu = () => {
146
+ const e = x(), t = I();
147
147
  return W(
148
148
  async ({
149
149
  body: n,
@@ -153,8 +153,8 @@ const E = {
153
153
  }) => e(r, n, s, a),
154
154
  [e]
155
155
  );
156
- }, G = () => {
157
- const e = fe("onLogout", gn), t = fe("getAccessToken"), n = N();
156
+ }, x = () => {
157
+ const e = he("onLogout", gn), t = he("getAccessToken"), n = I();
158
158
  return W(
159
159
  async (s = n, r, a = {}, i = !1) => {
160
160
  const l = await t();
@@ -189,13 +189,13 @@ const E = {
189
189
  };
190
190
  function Ti(e, t) {
191
191
  const [n, s] = k(e);
192
- return J(() => {
192
+ return Z(() => {
193
193
  const r = setTimeout(() => s(e), t);
194
194
  return () => clearTimeout(r);
195
195
  }, [e, t]), n;
196
196
  }
197
197
  const Si = ({ query: e, uuid: t }) => {
198
- const { selectedLang: n, fallbackLang: s } = _e(), { data: r } = he(), a = r == null ? void 0 : r.pageType, i = N(), l = G(), { data: c, isFetching: u } = ue({
198
+ const { selectedLang: n, fallbackLang: s } = _e(), { data: r } = ge(), a = r == null ? void 0 : r.pageType, i = I(), l = x(), { data: c, isFetching: u } = ue({
199
199
  queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
200
200
  staleTime: 3600 * 1e3,
201
201
  placeholderData: [],
@@ -225,8 +225,8 @@ const Si = ({ query: e, uuid: t }) => {
225
225
  updateSearchQuery: f,
226
226
  onChangeLanguage: m
227
227
  };
228
- }, ut = () => {
229
- const e = N(), t = G();
228
+ }, Ve = () => {
229
+ const e = I(), t = x();
230
230
  return ue({
231
231
  queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
232
232
  staleTime: 300 * 1e3,
@@ -244,10 +244,10 @@ const Si = ({ query: e, uuid: t }) => {
244
244
  })
245
245
  });
246
246
  }, Jn = () => {
247
- const { data: e } = ut();
247
+ const { data: e } = Ve();
248
248
  return Q(() => (e == null ? void 0 : e.fallbackLang) || "en", [e]);
249
- }, Ut = () => {
250
- const e = G(), t = N();
249
+ }, dt = () => {
250
+ const e = x(), t = I();
251
251
  return ue({
252
252
  queryKey: [E.GET_WEBSITE_PAGES],
253
253
  staleTime: 1e3 * 60 * 5,
@@ -255,7 +255,7 @@ const Si = ({ query: e, uuid: t }) => {
255
255
  placeholderData: (n) => n || []
256
256
  });
257
257
  }, wi = (e) => {
258
- const t = G(), n = N(), s = Jn();
258
+ const t = x(), n = I(), s = Jn();
259
259
  return ue({
260
260
  queryKey: [E.GET_WEBSITE_PAGES, e, s],
261
261
  staleTime: 1e3 * 60 * 5,
@@ -270,11 +270,11 @@ const Si = ({ query: e, uuid: t }) => {
270
270
  },
271
271
  placeholderData: (r) => r || {}
272
272
  });
273
- }, Pi = Pe({ lastSaved: void 0 }), bi = () => we(Pi), he = () => {
274
- const [e] = Ce(), t = e.get("page"), { data: n, isFetching: s } = Ut();
273
+ }, Pi = Pe({ lastSaved: void 0 }), bi = () => we(Pi), ge = () => {
274
+ const [e] = Ce(), t = e.get("page"), { data: n, isFetching: s } = dt();
275
275
  return { data: Q(() => ({ ...ce(n, { id: t }) || {} }), [n, t]), isFetching: s };
276
276
  }, Le = () => {
277
- const [e] = Ce(), t = e.get("lang") ?? "", n = e.get("page"), { data: s, isFetching: r } = wi(t), { data: a } = Ut();
277
+ const [e] = Ce(), t = e.get("lang") ?? "", n = e.get("page"), { data: s, isFetching: r } = wi(t), { data: a } = dt();
278
278
  return { data: Q(
279
279
  () => ce([...Wn(s), ...a], { lang: t, id: n }) || {},
280
280
  [s, t, n]
@@ -282,10 +282,10 @@ const Si = ({ query: e, uuid: t }) => {
282
282
  };
283
283
  Pe({});
284
284
  const vi = () => {
285
- const { data: e } = Le(), t = En(), n = fe("getLiveUrl", gn), s = e == null ? void 0 : e.slug, r = n(s || "/");
285
+ const { data: e } = Le(), t = En(), n = he("getLiveUrl", gn), s = e == null ? void 0 : e.slug, r = n(s || "/");
286
286
  return t ? r + t : r;
287
287
  }, pn = (e) => {
288
- const t = N(), [n] = Ce(), s = e ?? n.get("page"), r = G(), { languages: a } = _e();
288
+ const t = I(), [n] = Ce(), s = e ?? n.get("page"), r = x(), { languages: a } = _e();
289
289
  return ue({
290
290
  queryKey: [E.GET_LANGUAGE_PAGES, s],
291
291
  staleTime: 1 / 0,
@@ -316,8 +316,8 @@ const vi = () => {
316
316
  RESTORE_REVISION: "restore_revision",
317
317
  DELETE_REVISION: "delete_revision",
318
318
  DELETE_LIBRARY_BLOCK: "delete_library_block"
319
- }, Ve = () => {
320
- const e = N(), t = G();
319
+ }, He = () => {
320
+ const e = I(), t = x();
321
321
  return ue({
322
322
  queryKey: [E.GET_PAGE_TYPES],
323
323
  staleTime: 1 / 0,
@@ -325,10 +325,10 @@ const vi = () => {
325
325
  queryFn: async () => t(e, { action: E.GET_PAGE_TYPES })
326
326
  });
327
327
  }, Ni = (e) => {
328
- const { data: t } = Ve();
328
+ const { data: t } = He();
329
329
  return Q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
330
330
  }, Ii = () => {
331
- const e = N(), t = G();
331
+ const e = I(), t = x();
332
332
  return te({
333
333
  mutationFn: async ({ pageType: n, query: s }) => {
334
334
  try {
@@ -353,12 +353,12 @@ const vi = () => {
353
353
  children: a,
354
354
  isLanguagePage: i
355
355
  }) => {
356
- const { t: l } = pe(), { hasPermission: c } = Cs(), { data: u } = Ve(), d = Q(() => ce(u, { key: e.pageType }), [u, e.pageType]);
356
+ const { t: l } = pe(), { hasPermission: c } = Cs(), { data: u } = He(), d = Q(() => ce(u, { key: e.pageType }), [u, e.pageType]);
357
357
  return !c(Te.EDIT_PAGE) && !c(Te.DELETE_PAGE) && !c(Te.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ g(ln, { children: [
358
358
  /* @__PURE__ */ o(cn, { asChild: !0, onClick: (m) => m.stopPropagation(), children: a }),
359
359
  /* @__PURE__ */ g(un, { align: "center", className: "text-sm", children: [
360
360
  c(Te.ADD_PAGE) && !i && /* @__PURE__ */ g(
361
- ge,
361
+ me,
362
362
  {
363
363
  className: "flex cursor-pointer items-center gap-2",
364
364
  onClick: (m) => {
@@ -371,7 +371,7 @@ const vi = () => {
371
371
  }
372
372
  ),
373
373
  c(Te.EDIT_PAGE) && /* @__PURE__ */ g(
374
- ge,
374
+ me,
375
375
  {
376
376
  className: "flex cursor-pointer items-center gap-2",
377
377
  onClick: (m) => {
@@ -387,7 +387,7 @@ const vi = () => {
387
387
  }
388
388
  ),
389
389
  (e == null ? void 0 : e.online) && c(Te.UNPUBLISH_PAGE) && /* @__PURE__ */ g(
390
- ge,
390
+ me,
391
391
  {
392
392
  className: "flex cursor-pointer items-center gap-2",
393
393
  onClick: (m) => {
@@ -400,7 +400,7 @@ const vi = () => {
400
400
  }
401
401
  ),
402
402
  c(Te.DELETE_PAGE) && /* @__PURE__ */ g(
403
- ge,
403
+ me,
404
404
  {
405
405
  className: "flex cursor-pointer items-center gap-2",
406
406
  onClick: (m) => {
@@ -415,7 +415,7 @@ const vi = () => {
415
415
  ] })
416
416
  ] });
417
417
  }, $s = () => {
418
- const e = fe("currentUser"), t = fe("onLogout");
418
+ const e = he("currentUser"), t = he("onLogout");
419
419
  return {
420
420
  isLoggedIn: !!e,
421
421
  user: e,
@@ -457,14 +457,14 @@ const vi = () => {
457
457
  const { user: e } = $s();
458
458
  return e == null ? void 0 : e.id;
459
459
  }, Ui = () => {
460
- const { data: e } = ut();
460
+ const { data: e } = Ve();
461
461
  return `WEBSITE:${e == null ? void 0 : e.appKey}`;
462
462
  }, Mt = () => {
463
- const { data: e } = he();
463
+ const { data: e } = ge();
464
464
  return e == null ? void 0 : e.id;
465
465
  }, xe = crypto.randomUUID();
466
466
  let Nn = null;
467
- const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
467
+ const gt = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
468
468
  const [e, t] = we(xi);
469
469
  return { pageToUser: e, setPageToUser: t };
470
470
  }, be = () => {
@@ -478,7 +478,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
478
478
  return Q(() => t[e], [t, e]);
479
479
  }, Zn = () => {
480
480
  const e = Vs(), { setPageStatus: t } = be(), [n] = we(Qs);
481
- return J(() => {
481
+ return Z(() => {
482
482
  if (clearTimeout(Nn), !e)
483
483
  return Nn = setTimeout(() => {
484
484
  e || t(re.EDITING);
@@ -486,7 +486,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
486
486
  }, [e, t]), n;
487
487
  }, Vi = () => {
488
488
  const e = Mt(), t = yn(), n = Zn(), { setPageToUser: s } = Ws(), { setPageStatus: r, pageStatus: a } = be(), i = le(e);
489
- return J(() => {
489
+ return Z(() => {
490
490
  i.current = e;
491
491
  }, [e]), W(
492
492
  (l) => {
@@ -509,7 +509,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
509
509
  );
510
510
  }, Hi = () => {
511
511
  const e = yn(), t = Mt(), n = Zn(), s = Ki(), { setPageLockMeta: r } = zs(), a = le(t);
512
- return J(() => {
512
+ return Z(() => {
513
513
  a.current = t;
514
514
  }, [t]), W(
515
515
  async (i, l) => {
@@ -521,7 +521,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
521
521
  );
522
522
  }, qi = () => {
523
523
  const e = yn(), t = Mt(), n = Zn(), { setPageStatus: s } = be(), { setPageLockMeta: r } = zs(), a = Hi(), i = le(t), { savePageAsync: l } = Fe();
524
- return J(() => {
524
+ return Z(() => {
525
525
  i.current = t;
526
526
  }, [t]), W(
527
527
  (c) => async ({ payload: u }) => {
@@ -555,10 +555,10 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
555
555
  },
556
556
  [a, r, s, n, e, l]
557
557
  );
558
- }, gu = () => {
558
+ }, mu = () => {
559
559
  const e = Vs(), t = yn(), n = Mt(), s = Ui(), [r, a] = we(Qs), i = qi(), l = Vi(), c = le(i), u = le(l), d = le(null), f = le(!1), m = le(0), h = le(r), A = le(() => {
560
560
  });
561
- J(() => {
561
+ Z(() => {
562
562
  c.current = i, u.current = l, h.current = r;
563
563
  }, [i, l, r]);
564
564
  const S = W((p) => {
@@ -573,14 +573,14 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
573
573
  });
574
574
  }, []), b = W(() => {
575
575
  if (f.current || !e || !t || !s) return;
576
- if (m.current >= ht) {
576
+ if (m.current >= gt) {
577
577
  console.error(
578
- `Maximum reconnection attempts (${ht}) reached. Stopping reconnection attempts.`
578
+ `Maximum reconnection attempts (${gt}) reached. Stopping reconnection attempts.`
579
579
  );
580
580
  return;
581
581
  }
582
582
  f.current = !0, m.current += 1, console.log(
583
- `Attempting to reconnect realtime channel (attempt ${m.current}/${ht})`
583
+ `Attempting to reconnect realtime channel (attempt ${m.current}/${gt})`
584
584
  ), d.current && (clearTimeout(d.current), d.current = null), h.current && (h.current.unsubscribe(), a(null), h.current = null);
585
585
  const p = Math.min(
586
586
  Mi * Math.pow(Bi, m.current - 1),
@@ -592,16 +592,16 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
592
592
  });
593
593
  S(y), y.subscribe(async (P) => {
594
594
  P === "SUBSCRIBED" ? (console.log("Realtime connection established successfully"), a(y), h.current = y, m.current = 0, f.current = !1) : P === "CHANNEL_ERROR" || P === "TIMED_OUT" ? (console.log(
595
- `Realtime connection failed: ${P}. Attempt ${m.current}/${ht}`
596
- ), m.current < ht ? setTimeout(() => {
595
+ `Realtime connection failed: ${P}. Attempt ${m.current}/${gt}`
596
+ ), m.current < gt ? setTimeout(() => {
597
597
  f.current = !1, A.current();
598
598
  }, 500) : (console.error("Maximum reconnection attempts reached"), f.current = !1)) : P === "CLOSED" && (console.log("Realtime connection closed"), f.current = !1);
599
599
  });
600
600
  }, p);
601
601
  }, [e, t, s, a, S]);
602
- J(() => {
602
+ Z(() => {
603
603
  A.current = b;
604
- }, [b]), J(() => {
604
+ }, [b]), Z(() => {
605
605
  if (!e || !t || !s || r && r.topic === s) return;
606
606
  m.current = 0, f.current = !1;
607
607
  const p = e.channel(s, {
@@ -612,7 +612,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
612
612
  }), () => {
613
613
  d.current && (clearTimeout(d.current), d.current = null), f.current = !1, m.current = 0, h.current === p && (h.current = null), a(null), p.unsubscribe();
614
614
  };
615
- }, [e, t, s, a, b, S]), J(() => {
615
+ }, [e, t, s, a, b, S]), Z(() => {
616
616
  const p = () => {
617
617
  if (document.visibilityState === "visible") {
618
618
  if (console.log("Tab became visible, checking realtime connection..."), !e || !t || !s) {
@@ -629,7 +629,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
629
629
  return document.addEventListener("visibilitychange", p), () => {
630
630
  document.removeEventListener("visibilitychange", p);
631
631
  };
632
- }, [e, t, s, b]), J(() => (r && n && t && r.track({
632
+ }, [e, t, s, b]), Z(() => (r && n && t && r.track({
633
633
  pageId: n,
634
634
  userId: t,
635
635
  clientId: xe,
@@ -637,7 +637,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
637
637
  }), () => {
638
638
  r && n && r.untrack();
639
639
  }), [r, n, t]);
640
- }, $i = V(() => import("./add-new-page-DaBpJeHK.js")), Qi = V(() => import("./delete-page-BIP7fPy_.js")), Wi = V(() => import("./duplicate-page-C46afThg.js")), zi = V(() => import("./mark-as-template-DqIqHM7P.js")), ji = V(() => import("./unmark-as-template-vdqK9CiS.js")), Yi = V(() => import("./unpublish-page-5a9yi96y.js")), Ji = () => {
640
+ }, $i = V(() => import("./add-new-page-HoFoI257.js")), Qi = V(() => import("./delete-page-T2VWcbyP.js")), Wi = V(() => import("./duplicate-page-Bt36erFD.js")), zi = V(() => import("./mark-as-template-NPUbCfae.js")), ji = V(() => import("./unmark-as-template-YGONVpmY.js")), Yi = V(() => import("./unpublish-page-D-A9A9db.js")), Ji = () => {
641
641
  const [e, t] = k(null), [n, s] = k(null), [r, a] = k(null), [i, l] = k(null), [c, u] = k(null), [d, f] = k(null), { data: m, isFetching: h } = Le(), { selectedLang: A, fallbackLang: S } = _e(), { data: b } = pn(), p = b == null ? void 0 : b.find((M) => M.lang === A), { isLocked: y } = be(), P = !(m != null && m.slug), q = Yn(en);
642
642
  if (!m) return null;
643
643
  const H = (M) => {
@@ -647,7 +647,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
647
647
  primaryPage: M == null ? void 0 : M.primaryPage
648
648
  }) : f(M);
649
649
  };
650
- return /* @__PURE__ */ g(me, { children: [
650
+ return /* @__PURE__ */ g(Ee, { children: [
651
651
  /* @__PURE__ */ g("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
652
652
  /* @__PURE__ */ o("p", { className: "flex h-7 max-w-[200px] items-center truncate rounded px-1 text-xs font-medium", children: h ? /* @__PURE__ */ o(Ke, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ g("span", { className: "flex items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
653
653
  P ? /* @__PURE__ */ o($a, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ o(Qa, { className: "mr-1 h-4 w-4" }),
@@ -697,7 +697,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
697
697
  }
698
698
  ) })
699
699
  ] });
700
- }, yt = ({ children: e, className: t = "" }) => /* @__PURE__ */ o(
700
+ }, At = ({ children: e, className: t = "" }) => /* @__PURE__ */ o(
701
701
  "div",
702
702
  {
703
703
  className: Xt(
@@ -706,7 +706,7 @@ const ht = 10, Mi = 1e3, Bi = 2, Fi = 16e3, Ws = () => {
706
706
  ),
707
707
  children: e
708
708
  }
709
- ), Zi = ({ hasDynamicPage: e }) => /* @__PURE__ */ o(yt, { children: /* @__PURE__ */ g("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
709
+ ), Zi = ({ hasDynamicPage: e }) => /* @__PURE__ */ o(At, { children: /* @__PURE__ */ g("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
710
710
  /* @__PURE__ */ o("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
711
711
  /* @__PURE__ */ o("p", { className: "pt-2 text-center text-sm font-light text-gray-600", children: e ? "Please select a page from the list in the top header. This will enable you to edit the page." : "Please add a new page" })
712
712
  ] }) }), qt = {
@@ -902,20 +902,20 @@ function Xi(e, t, n = !1) {
902
902
  const s = e.toString() ? `?${e.toString()}` : "/";
903
903
  n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
904
904
  }
905
- const eo = V(() => import("./add-new-language-page-D93yJKtJ.js")), to = () => {
906
- const e = fe("topLeftCorner", null);
905
+ const eo = V(() => import("./add-new-language-page-alqCh26P.js")), to = () => {
906
+ const e = he("topLeftCorner", null);
907
907
  return e ? /* @__PURE__ */ o("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: ci.createElement(e, {}) }) : null;
908
908
  }, no = ({
909
909
  showAdd: e = !0,
910
910
  goToDefaultLang: t = !1
911
911
  }) => {
912
- const { fallbackLang: n, languages: s, selectedLang: r, setSelectedLang: a } = _e(), i = Ee(r) ? n : r, [, l] = Ce(), { isLocked: c } = be(), { t: u } = pe();
913
- J(() => {
912
+ const { fallbackLang: n, languages: s, selectedLang: r, setSelectedLang: a } = _e(), i = fe(r) ? n : r, [, l] = Ce(), { isLocked: c } = be(), { t: u } = pe();
913
+ Z(() => {
914
914
  const p = new URLSearchParams(window.location.search), y = p.get("lang");
915
915
  y && (s.includes(y) ? a(y) : (p.delete("lang"), l(p), a("")));
916
916
  }, [s, l, a]);
917
- const d = Yn(en), { data: f } = he(), { data: m } = ut(), { data: h } = pn(), A = Q(() => {
918
- const p = pt(
917
+ const d = Yn(en), { data: f } = ge(), { data: m } = Ve(), { data: h } = pn(), A = Q(() => {
918
+ const p = yt(
919
919
  Dn(Y(m, "languages"), (y) => {
920
920
  const P = ce(h, { lang: y });
921
921
  return {
@@ -951,11 +951,11 @@ const eo = V(() => import("./add-new-language-page-D93yJKtJ.js")), to = () => {
951
951
  const y = new URLSearchParams(window.location.search);
952
952
  p === n ? y.delete("lang") : y.set("lang", p), Xi(y, l);
953
953
  };
954
- return Ee(s) ? null : c ? /* @__PURE__ */ g(R, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
954
+ return fe(s) ? null : c ? /* @__PURE__ */ g(R, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
955
955
  /* @__PURE__ */ o(os, { className: "h-4 w-4" }),
956
956
  Y(qt, i, i),
957
957
  /* @__PURE__ */ o(kn, { className: "h-4 w-4" })
958
- ] }) : t ? /* @__PURE__ */ o(R, { onClick: () => b(n), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ o(me, { children: /* @__PURE__ */ g(ln, { children: [
958
+ ] }) : t ? /* @__PURE__ */ o(R, { onClick: () => b(n), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ o(Ee, { children: /* @__PURE__ */ g(ln, { children: [
959
959
  /* @__PURE__ */ o(cn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ g(R, { disabled: !!c, variant: "outline", size: "sm", className: "ml-px h-max gap-2 py-1.5", children: [
960
960
  /* @__PURE__ */ o(os, { className: "h-4 w-4" }),
961
961
  Y(qt, i, i),
@@ -965,7 +965,7 @@ const eo = V(() => import("./add-new-language-page-D93yJKtJ.js")), to = () => {
965
965
  Dn(
966
966
  A.filter((p) => p.isLangPageAdded),
967
967
  (p) => /* @__PURE__ */ g(
968
- ge,
968
+ me,
969
969
  {
970
970
  className: Xt(
971
971
  "flex cursor-pointer items-center justify-between text-xs font-medium text-gray-800",
@@ -983,7 +983,7 @@ const eo = V(() => import("./add-new-language-page-D93yJKtJ.js")), to = () => {
983
983
  p.value
984
984
  )
985
985
  ),
986
- e && !Ee(A.filter((p) => !p.isLangPageAdded)) && /* @__PURE__ */ g(me, { children: [
986
+ e && !fe(A.filter((p) => !p.isLangPageAdded)) && /* @__PURE__ */ g(Ee, { children: [
987
987
  /* @__PURE__ */ o(ta, {}),
988
988
  /* @__PURE__ */ g(
989
989
  R,
@@ -1034,7 +1034,7 @@ function ro() {
1034
1034
  /* @__PURE__ */ o(Ht, { className: "h-8 w-8 rounded-full" })
1035
1035
  ] }, t)) });
1036
1036
  }
1037
- const ao = j.lazy(() => import("./page-revisions-content-Dyi6EY_V.js"));
1037
+ const ao = j.lazy(() => import("./page-revisions-content-mU05KA_O.js"));
1038
1038
  function io() {
1039
1039
  const [e, t] = j.useState(!1);
1040
1040
  return /* @__PURE__ */ o(Ls, { children: /* @__PURE__ */ g(dn, { delayDuration: 0, children: [
@@ -1065,8 +1065,8 @@ const In = ({
1065
1065
  var t;
1066
1066
  const [e] = mn();
1067
1067
  return ((t = e == null ? void 0 : e.flags) == null ? void 0 : t.revisions) ?? !1;
1068
- }, mu = () => {
1069
- const e = N(), t = Z(), n = G(), { data: s } = Ve();
1068
+ }, Eu = () => {
1069
+ const e = I(), t = J(), n = x(), { data: s } = He();
1070
1070
  return te({
1071
1071
  mutationFn: async (r) => await n(e, {
1072
1072
  action: E.CREATE_PAGE,
@@ -1091,8 +1091,8 @@ const In = ({
1091
1091
  });
1092
1092
  }
1093
1093
  });
1094
- }, Eu = () => {
1095
- const e = N(), t = Z(), n = G(), { data: s } = Le(), { data: r } = Ve();
1094
+ }, pu = () => {
1095
+ const e = I(), t = J(), n = x(), { data: s } = Le(), { data: r } = He();
1096
1096
  return te({
1097
1097
  mutationFn: async (a) => await n(e, {
1098
1098
  action: E.UPDATE_PAGE,
@@ -1116,8 +1116,8 @@ const In = ({
1116
1116
  });
1117
1117
  }
1118
1118
  });
1119
- }, pu = () => {
1120
- const e = N(), t = Z(), n = G(), { data: s } = Ve();
1119
+ }, yu = () => {
1120
+ const e = I(), t = J(), n = x(), { data: s } = He();
1121
1121
  return te({
1122
1122
  mutationFn: async (r) => n(e, {
1123
1123
  action: E.DELETE_PAGE,
@@ -1145,8 +1145,8 @@ const In = ({
1145
1145
  });
1146
1146
  }
1147
1147
  });
1148
- }, yu = () => {
1149
- const e = N(), t = Z(), n = G(), { data: s } = Ve();
1148
+ }, Au = () => {
1149
+ const e = I(), t = J(), n = x(), { data: s } = He();
1150
1150
  return te({
1151
1151
  mutationFn: async (r) => n(e, {
1152
1152
  action: E.TAKE_OFFLINE,
@@ -1171,20 +1171,25 @@ const In = ({
1171
1171
  }
1172
1172
  });
1173
1173
  }, Ys = () => {
1174
- const e = N(), t = G(), { savePageAsync: n } = Fe(), s = js();
1174
+ const e = I(), t = x(), n = J(), { savePageAsync: s } = Fe(), r = js();
1175
1175
  return te({
1176
- mutationFn: async ({ ids: r }) => (await n(), t(e, {
1176
+ mutationFn: async ({ ids: a }) => (await s(), t(e, {
1177
1177
  action: E.PUBLISH_CHANGES,
1178
- data: { ids: r, revisions: s }
1178
+ data: { ids: a, revisions: r }
1179
1179
  })),
1180
- onSuccess: () => {
1180
+ onSuccess: (a, { ids: i }) => {
1181
+ n.invalidateQueries({
1182
+ queryKey: [E.GET_WEBSITE_PAGES]
1183
+ }), (i.includes("THEME") || i.includes("DESIGN_TOKENS")) && n.invalidateQueries({
1184
+ queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS]
1185
+ });
1181
1186
  },
1182
- onError: (r) => {
1183
- console.log("##", r), F.error("Failed to publish pages.");
1187
+ onError: (a) => {
1188
+ console.log("##", a), F.error("Failed to publish pages.");
1184
1189
  }
1185
1190
  });
1186
- }, Au = () => {
1187
- const e = N(), t = G(), n = Z();
1191
+ }, Tu = () => {
1192
+ const e = I(), t = x(), n = J();
1188
1193
  return te({
1189
1194
  mutationFn: async (s) => {
1190
1195
  var r;
@@ -1208,8 +1213,8 @@ const In = ({
1208
1213
  F.error("Failed to mark page as template.");
1209
1214
  }
1210
1215
  });
1211
- }, Tu = () => {
1212
- const e = N(), t = G(), n = Z();
1216
+ }, Su = () => {
1217
+ const e = I(), t = x(), n = J();
1213
1218
  return te({
1214
1219
  mutationFn: async (s) => t(e, {
1215
1220
  action: E.UNMARK_AS_TEMPLATE,
@@ -1224,8 +1229,8 @@ const In = ({
1224
1229
  F.error("Failed to unmark page as template.");
1225
1230
  }
1226
1231
  });
1227
- }, Su = () => {
1228
- const e = N(), t = G(), n = Z();
1232
+ }, _u = () => {
1233
+ const e = I(), t = x(), n = J();
1229
1234
  return te({
1230
1235
  mutationFn: async ({ id: s, slug: r }) => t(e, {
1231
1236
  action: E.CHANGE_SLUG,
@@ -1242,7 +1247,7 @@ const In = ({
1242
1247
  F.error("Failed to change slug");
1243
1248
  }
1244
1249
  });
1245
- }, lo = V(() => import("./publish-pages-content-C0vWbTxI.js"));
1250
+ }, lo = V(() => import("./publish-pages-content-CcV-xLsk.js"));
1246
1251
  function co({
1247
1252
  showModal: e = !1,
1248
1253
  onClose: t = () => console.log("Cancelled")
@@ -1252,16 +1257,16 @@ function co({
1252
1257
  } : t, children: e && /* @__PURE__ */ o(X, { fallback: /* @__PURE__ */ o("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ o(lo, { onClose: t, isPending: s, publishPage: n }) }) });
1253
1258
  }
1254
1259
  const uo = () => {
1255
- const [e] = sa(), { data: t } = Ut();
1260
+ const [e] = sa(), { data: t } = dt();
1256
1261
  return W(() => {
1257
1262
  if (!t)
1258
1263
  return { ids: [], names: [], partialBlocksInfo: [] };
1259
- const s = zn(e, (c) => c._type === "PartialBlock"), r = ka(pt(s.map((c) => Y(c, "partialBlockId", "")))), a = pt(
1264
+ const s = zn(e, (c) => c._type === "PartialBlock"), r = ka(yt(s.map((c) => Y(c, "partialBlockId", "")))), a = yt(
1260
1265
  r.map((c) => {
1261
1266
  const u = ce(t, { id: c });
1262
1267
  if (!u) return null;
1263
1268
  if (u.online) {
1264
- if (!Ee(u.changes))
1269
+ if (!fe(u.changes))
1265
1270
  return {
1266
1271
  id: u.id,
1267
1272
  name: u.name || u.slug || u.id,
@@ -1278,34 +1283,28 @@ const uo = () => {
1278
1283
  return { ids: i, names: l, partialBlocksInfo: a };
1279
1284
  }, [e, t]);
1280
1285
  }, fo = (e) => {
1281
- const { fallbackLang: t } = _e(), { data: n } = ut(), { data: s, isFetching: r } = pn(), a = Q(() => {
1286
+ const { fallbackLang: t } = _e(), { data: n } = Ve(), { data: s, isFetching: r } = pn(), a = Q(() => {
1282
1287
  const i = { [t]: !0 };
1283
1288
  return Ra(Y(n, "languages"), (l) => {
1284
1289
  const c = ce(s, { lang: l });
1285
1290
  i[l] = !!c;
1286
1291
  }), i;
1287
1292
  }, [t, s, n]);
1288
- return r || Ee(e) || e && a[e];
1293
+ return r || fe(e) || e && a[e];
1289
1294
  }, ho = () => {
1290
- const e = N(), t = G();
1291
- return ue({
1292
- queryKey: [E.GET_CHANGES],
1293
- queryFn: async () => t(e, { action: E.GET_CHANGES })
1294
- });
1295
- }, go = () => {
1296
- const { data: e, isLoading: t } = ho(), n = Q(() => !e || !Array.isArray(e) ? !1 : e.some((a) => a.id === "THEME"), [e]), s = Q(() => !e || !Array.isArray(e) ? !1 : e.some((a) => a.id === "DESIGN_TOKENS"), [e]);
1295
+ const { data: e, isLoading: t } = Ve(), n = e == null ? void 0 : e.appChanges, s = Q(() => !n || !Array.isArray(n) ? !1 : n.some((i) => i === "THEME"), [n]), r = Q(() => !n || !Array.isArray(n) ? !1 : n.some((i) => i === "DESIGN_TOKENS"), [n]);
1297
1296
  return {
1298
- hasUnpublishedSettings: n || s,
1299
- hasUnpublishedTheme: n,
1300
- hasUnpublishedDesignToken: s,
1297
+ hasUnpublishedSettings: s || r,
1298
+ hasUnpublishedTheme: s,
1299
+ hasUnpublishedDesignToken: r,
1301
1300
  isLoading: t
1302
1301
  };
1303
- }, mo = {
1302
+ }, go = {
1304
1303
  particleCount: 350,
1305
1304
  spread: 120,
1306
1305
  origin: { y: 0.6 },
1307
1306
  angle: 90
1308
- }, Eo = {
1307
+ }, mo = {
1309
1308
  TOP_RIGHT: {
1310
1309
  angle: 225,
1311
1310
  origin: { x: 0.9, y: 0 }
@@ -1314,14 +1313,14 @@ const uo = () => {
1314
1313
  angle: 100,
1315
1314
  origin: { x: 0.9, y: 0.9 }
1316
1315
  }
1317
- }, po = async () => {
1316
+ }, Eo = async () => {
1318
1317
  const { default: e } = await import("canvas-confetti");
1319
1318
  return e;
1320
1319
  }, $t = (e) => {
1321
- let t = Eo[e];
1320
+ let t = mo[e];
1322
1321
  t || (t = {});
1323
- const n = { ...mo, ...t };
1324
- po().then((s) => s(n));
1322
+ const n = { ...go, ...t };
1323
+ Eo().then((s) => s(n));
1325
1324
  };
1326
1325
  function Bt({
1327
1326
  children: e,
@@ -1335,12 +1334,12 @@ function Bt({
1335
1334
  /* @__PURE__ */ o(hn, { side: n, sideOffset: 10, children: /* @__PURE__ */ o("p", { children: t }) })
1336
1335
  ] }) }) : e;
1337
1336
  }
1338
- const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1337
+ const po = V(() => import("./unpublish-page-D-A9A9db.js")), yo = V(
1339
1338
  () => import("./translation-warning-modal-KLjj1aXN.js")
1340
- ), To = V(
1339
+ ), Ao = V(
1341
1340
  () => import("./unpublished-partials-modal-UTkegPmZ.js")
1342
- ), So = V(() => import("./json-diff-viewer-D1Y_t-v4.js")), _o = () => {
1343
- const { t: e } = pe(), { selectedLang: t, fallbackLang: n } = _e(), s = fe("getPreviewUrl", async (m) => m), [r, a] = k(""), { data: i } = he(), { data: l } = pn(), { data: c } = Ve(), u = Q(
1341
+ ), To = V(() => import("./json-diff-viewer-CivVPp1k.js")), So = () => {
1342
+ const { t: e } = pe(), { selectedLang: t, fallbackLang: n } = _e(), s = he("getPreviewUrl", async (m) => m), [r, a] = k(""), { data: i } = ge(), { data: l } = pn(), { data: c } = He(), u = Q(
1344
1343
  () => {
1345
1344
  var m;
1346
1345
  return (m = l == null ? void 0 : l.find((h) => (h == null ? void 0 : h.lang) === t)) == null ? void 0 : m.slug;
@@ -1350,7 +1349,7 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1350
1349
  var h;
1351
1350
  return (h = ce(c, { key: m })) == null ? void 0 : h.hasSlug;
1352
1351
  }, [c]), f = t === n ? "" : t;
1353
- return J(() => {
1352
+ return Z(() => {
1354
1353
  (async () => {
1355
1354
  if (typeof s == "function") {
1356
1355
  const m = !d(i == null ? void 0 : i.pageType), h = await s(
@@ -1360,13 +1359,13 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1360
1359
  } else
1361
1360
  a("");
1362
1361
  })();
1363
- }, [s, u, i == null ? void 0 : i.pageType, d, i == null ? void 0 : i.id, f]), /* @__PURE__ */ g(me, { children: [
1362
+ }, [s, u, i == null ? void 0 : i.pageType, d, i == null ? void 0 : i.id, f]), /* @__PURE__ */ g(Ee, { children: [
1364
1363
  /* @__PURE__ */ o(Bt, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ o("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ o(R, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ o(Ja, { className: "h-4 w-4" }) }) }) }),
1365
1364
  /* @__PURE__ */ o("div", { className: "h-4 w-px bg-gray-200" })
1366
1365
  ] });
1367
- }, wo = () => {
1366
+ }, _o = () => {
1368
1367
  const { t: e } = pe(), [t, n] = ra();
1369
- return /* @__PURE__ */ g(me, { children: [
1368
+ return /* @__PURE__ */ g(Ee, { children: [
1370
1369
  /* @__PURE__ */ o(Bt, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ o(
1371
1370
  R,
1372
1371
  {
@@ -1379,9 +1378,9 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1379
1378
  ) }),
1380
1379
  /* @__PURE__ */ o("div", { className: "h-4 w-px bg-gray-200" })
1381
1380
  ] });
1382
- }, Po = () => {
1381
+ }, wo = () => {
1383
1382
  const { t: e } = pe(), [t, n] = k(!1), { isLocked: s } = be(), { savePageAsync: r, saveState: a } = Fe();
1384
- J(() => {
1383
+ Z(() => {
1385
1384
  const d = (f) => {
1386
1385
  a === "UNSAVED" && (f.preventDefault(), f.returnValue = !1);
1387
1386
  };
@@ -1414,9 +1413,9 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1414
1413
  }
1415
1414
  }, [a, e]);
1416
1415
  return s ? null : /* @__PURE__ */ o(Bt, { content: u, children: /* @__PURE__ */ o(R, { size: "sm", variant: "ghost", onClick: i, className: `${c}`, children: l }) });
1417
- }, bo = () => {
1418
- const { t: e } = pe(), { selectedLang: t } = _e(), { data: n } = Le(), s = uo(), [r, a] = k(!1), [i, l] = k(!1), [c, u] = k(null), [d, f] = k(!1), { savePageAsync: m } = Fe(), [h, A] = k(!1), { hasUnpublishedSettings: S, hasUnpublishedTheme: b, hasUnpublishedDesignToken: p } = go(), [y, P] = k(!1), [q, H] = k([]), [M, de] = k([]), { data: C } = he(), { mutate: O, isPending: w } = Ys(), { needTranslations: v } = Fe(), z = v(), { buttonText: $, buttonClassName: oe, isPublished: ve, hasUnpublishedChanges: ye } = Q(() => {
1419
- const B = C && (C == null ? void 0 : C.online), ae = !Ee(C == null ? void 0 : C.changes);
1416
+ }, Po = () => {
1417
+ const { t: e } = pe(), { selectedLang: t } = _e(), { data: n } = Le(), s = uo(), [r, a] = k(!1), [i, l] = k(!1), [c, u] = k(null), [d, f] = k(!1), { savePageAsync: m } = Fe(), [h, A] = k(!1), { hasUnpublishedSettings: S, hasUnpublishedTheme: b, hasUnpublishedDesignToken: p } = ho(), [y, P] = k(!1), [q, H] = k([]), [M, de] = k([]), { data: C } = ge(), { mutate: O, isPending: w } = Ys(), { needTranslations: v } = Fe(), z = v(), { buttonText: $, buttonClassName: oe, isPublished: ve, hasUnpublishedChanges: ye } = Q(() => {
1418
+ const B = C && (C == null ? void 0 : C.online), ae = !fe(C == null ? void 0 : C.changes);
1420
1419
  let ke = B ? "hover:bg-green-600 bg-green-500" : "", es = e(B ? "Published" : "Publish");
1421
1420
  return B && ae && (ke = "hover:bg-blue-600 bg-blue-500", es = e("Publish")), {
1422
1421
  buttonClassName: ke,
@@ -1429,14 +1428,14 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1429
1428
  A(!0);
1430
1429
  return;
1431
1430
  }
1432
- ft([n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage]);
1431
+ ht([n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage]);
1433
1432
  }, Ne = (B) => {
1434
1433
  const ae = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage, ...Array.isArray(B) ? B : []];
1435
- O({ ids: pt(ae) }, { onSuccess: () => $t("TOP_RIGHT") });
1436
- }, ft = W(
1434
+ O({ ids: yt(ae) }, { onSuccess: () => $t("TOP_RIGHT") });
1435
+ }, ht = W(
1437
1436
  (B) => {
1438
1437
  const { ids: ae, partialBlocksInfo: ke } = s();
1439
- ae.length > 0 ? (H(ae), de(ke), P(!0)) : O({ ids: pt(B) }, { onSuccess: () => $t("TOP_RIGHT") });
1438
+ ae.length > 0 ? (H(ae), de(ke), P(!0)) : O({ ids: yt(B) }, { onSuccess: () => $t("TOP_RIGHT") });
1440
1439
  },
1441
1440
  [s, O]
1442
1441
  ), _n = () => {
@@ -1444,11 +1443,11 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1444
1443
  }, Ft = () => {
1445
1444
  P(!1), H([]), de([]);
1446
1445
  }, wn = () => {
1447
- A(!1), ft([n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage]);
1446
+ A(!1), ht([n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage]);
1448
1447
  }, Kt = async () => {
1449
1448
  A(!1), await m();
1450
1449
  };
1451
- return /* @__PURE__ */ g(me, { children: [
1450
+ return /* @__PURE__ */ g(Ee, { children: [
1452
1451
  /* @__PURE__ */ g("div", { className: "flex", children: [
1453
1452
  /* @__PURE__ */ g(
1454
1453
  R,
@@ -1488,7 +1487,7 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1488
1487
  className: `relative rounded-l-none border-l border-white/50 px-2 text-white ${S ? "bg-gray-500 hover:bg-gray-600" : oe}`,
1489
1488
  children: [
1490
1489
  /* @__PURE__ */ o(kn, { className: "h-4 w-4" }),
1491
- S && /* @__PURE__ */ g(me, { children: [
1490
+ S && /* @__PURE__ */ g(Ee, { children: [
1492
1491
  /* @__PURE__ */ o("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-orange-500" }),
1493
1492
  /* @__PURE__ */ o("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 animate-ping rounded-full bg-orange-500" })
1494
1493
  ] })
@@ -1497,34 +1496,34 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1497
1496
  ) }),
1498
1497
  /* @__PURE__ */ g(un, { align: "end", className: "w-60", children: [
1499
1498
  /* @__PURE__ */ o(rs, { className: "-mt-1 text-xs font-light text-gray-600", children: e("Page") }),
1500
- ve && ye && /* @__PURE__ */ g(ge, { onClick: () => f(!0), className: "cursor-pointer text-xs", children: [
1499
+ ve && ye && /* @__PURE__ */ g(me, { onClick: () => f(!0), className: "cursor-pointer text-xs", children: [
1501
1500
  /* @__PURE__ */ o(Fs, { className: "mr-0.5 h-3 w-3" }),
1502
1501
  e("View Unpublished changes")
1503
1502
  ] }),
1504
1503
  !ve && /* @__PURE__ */ g(
1505
- ge,
1504
+ me,
1506
1505
  {
1507
1506
  disabled: w,
1508
1507
  className: "cursor-pointer text-xs",
1509
- onClick: () => ft([C == null ? void 0 : C.id]),
1508
+ onClick: () => ht([C == null ? void 0 : C.id]),
1510
1509
  children: [
1511
1510
  e("Publish"),
1512
1511
  " page"
1513
1512
  ]
1514
1513
  }
1515
1514
  ),
1516
- ve && /* @__PURE__ */ g(ge, { onClick: () => u(n), className: "cursor-pointer text-xs", children: [
1515
+ ve && /* @__PURE__ */ g(me, { onClick: () => u(n), className: "cursor-pointer text-xs", children: [
1517
1516
  /* @__PURE__ */ o(ei, { className: "mr-0.5 h-3 w-3" }),
1518
1517
  e("Unpublish"),
1519
1518
  " page ",
1520
1519
  t ? `(${is(t)})` : ""
1521
1520
  ] }),
1522
- S && /* @__PURE__ */ g(me, { children: [
1521
+ S && /* @__PURE__ */ g(Ee, { children: [
1523
1522
  /* @__PURE__ */ o(aa, { className: "bg-gray-200" }),
1524
1523
  /* @__PURE__ */ o(rs, { className: "-mt-1 text-xs font-light text-gray-600", children: e("Unpublished website settings") })
1525
1524
  ] }),
1526
1525
  b && /* @__PURE__ */ o(
1527
- ge,
1526
+ me,
1528
1527
  {
1529
1528
  disabled: w,
1530
1529
  className: "cursor-pointer text-xs",
@@ -1537,7 +1536,7 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1537
1536
  }
1538
1537
  ),
1539
1538
  p && /* @__PURE__ */ o(
1540
- ge,
1539
+ me,
1541
1540
  {
1542
1541
  disabled: w,
1543
1542
  className: "cursor-pointer text-xs",
@@ -1553,9 +1552,9 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1553
1552
  ] })
1554
1553
  ] }),
1555
1554
  /* @__PURE__ */ o(co, { showModal: r, onClose: () => a(!1) }),
1556
- c && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(yo, { page: c, onClose: () => u(null) }) }),
1555
+ c && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(po, { page: c, onClose: () => u(null) }) }),
1557
1556
  d && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
1558
- So,
1557
+ To,
1559
1558
  {
1560
1559
  open: d,
1561
1560
  onOpenChange: f,
@@ -1566,7 +1565,7 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1566
1565
  }
1567
1566
  ) }),
1568
1567
  h && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
1569
- Ao,
1568
+ yo,
1570
1569
  {
1571
1570
  isOpen: h,
1572
1571
  onClose: Kt,
@@ -1575,7 +1574,7 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1575
1574
  }
1576
1575
  ) }),
1577
1576
  y && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
1578
- To,
1577
+ Ao,
1579
1578
  {
1580
1579
  isOpen: y,
1581
1580
  onClose: Ft,
@@ -1586,23 +1585,23 @@ const yo = V(() => import("./unpublish-page-5a9yi96y.js")), Ao = V(
1586
1585
  ) })
1587
1586
  ] });
1588
1587
  };
1589
- function vo() {
1588
+ function bo() {
1590
1589
  const { isLocked: e } = be(), [t] = Ce(), n = t.get("lang"), s = fo(n), r = js();
1591
1590
  return e || !s ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ g("div", { className: "flex items-center justify-end gap-1", children: [
1592
1591
  r && /* @__PURE__ */ o(io, {}),
1593
- /* @__PURE__ */ o(In, { permission: Te.EDIT_THEME, children: /* @__PURE__ */ o(wo, {}) }),
1594
- /* @__PURE__ */ o(_o, {}),
1595
- /* @__PURE__ */ o(In, { permission: Te.SAVE_PAGE, children: /* @__PURE__ */ o(Po, {}) }),
1596
- /* @__PURE__ */ o(In, { permission: Te.PUBLISH_PAGE, children: /* @__PURE__ */ o(bo, {}) })
1592
+ /* @__PURE__ */ o(In, { permission: Te.EDIT_THEME, children: /* @__PURE__ */ o(_o, {}) }),
1593
+ /* @__PURE__ */ o(So, {}),
1594
+ /* @__PURE__ */ o(In, { permission: Te.SAVE_PAGE, children: /* @__PURE__ */ o(wo, {}) }),
1595
+ /* @__PURE__ */ o(In, { permission: Te.PUBLISH_PAGE, children: /* @__PURE__ */ o(Po, {}) })
1597
1596
  ] });
1598
1597
  }
1599
- const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children: e }) => {
1600
- const { t } = pe(), [n] = Ce(), s = n.get("page"), { data: r, isFetching: a } = he(), { data: i, isFetching: l } = Ut(), [c, u] = k(!1), [d, f] = k(!0), { savePage: m } = Fe(), h = !!s && !Ee(r), { isLocked: A } = be();
1601
- J(() => {
1598
+ const vo = V(() => import("./page-manager-new-DqCkZnWY.js")), No = ({ children: e }) => {
1599
+ const { t } = pe(), [n] = Ce(), s = n.get("page"), { data: r, isFetching: a } = ge(), { data: i, isFetching: l } = dt(), [c, u] = k(!1), [d, f] = k(!0), { savePage: m } = Fe(), h = !!s && !fe(r), { isLocked: A } = be();
1600
+ Z(() => {
1602
1601
  !l && i && f(!1);
1603
1602
  }, [l, i]);
1604
- const S = !d && !s, b = !d && !a && Ee(r), p = c || S || b;
1605
- return /* @__PURE__ */ g(me, { children: [
1603
+ const S = !d && !s, b = !d && !a && fe(r), p = c || S || b;
1604
+ return /* @__PURE__ */ g(Ee, { children: [
1606
1605
  /* @__PURE__ */ g(dn, { children: [
1607
1606
  /* @__PURE__ */ o(
1608
1607
  fn,
@@ -1644,22 +1643,22 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1644
1643
  ] }),
1645
1644
  /* @__PURE__ */ o(la, { className: "sr-only", children: t("Manage your site structure") })
1646
1645
  ] }),
1647
- /* @__PURE__ */ o("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: p && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(No, { close: () => u(!1) }) }) })
1646
+ /* @__PURE__ */ o("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: p && /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(vo, { close: () => u(!1) }) }) })
1648
1647
  ]
1649
1648
  }
1650
1649
  ) })
1651
1650
  ] });
1652
- }, Co = V(() => import("./dynamic-page-selector-IT9LZDro.js")), Lo = () => {
1651
+ }, Io = V(() => import("./dynamic-page-selector-jMUcjGtc.js")), Co = () => {
1653
1652
  const { dynamicPage: e, allLangPages: t, isFetching: n } = _i(), s = t.length > 0;
1654
1653
  return n ? null : /* @__PURE__ */ g("div", { className: "relative", children: [
1655
1654
  !e && /* @__PURE__ */ o(Zi, { hasDynamicPage: s }),
1656
- /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(Co, {}) })
1655
+ /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(Io, {}) })
1657
1656
  ] });
1658
- }, Go = () => {
1659
- const { data: e, isFetching: t } = Le(), { data: n, isFetching: s } = he(), r = Y(n, "dynamic", !1), a = En(), i = Kr("dynamic-page-selector"), { t: l } = pe(), c = e == null ? void 0 : e.slug, u = !c, d = vi(), f = t || s, h = (u ? `Partial: ${e == null ? void 0 : e.name} ` : `${c}${a}`).replace(window.location.host, "");
1657
+ }, Lo = () => {
1658
+ const { data: e, isFetching: t } = Le(), { data: n, isFetching: s } = ge(), r = Y(n, "dynamic", !1), a = En(), i = Kr("dynamic-page-selector"), { t: l } = pe(), c = e == null ? void 0 : e.slug, u = !c, d = vi(), f = t || s, h = (u ? `Partial: ${e == null ? void 0 : e.name} ` : `${c}${a}`).replace(window.location.host, "");
1660
1659
  return /* @__PURE__ */ g("div", { className: "relative flex items-center", children: [
1661
1660
  /* @__PURE__ */ g("div", { className: "flex items-center", children: [
1662
- /* @__PURE__ */ o("div", { className: Xt("flex h-8 items-center", f && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(Io, {}) }),
1661
+ /* @__PURE__ */ o("div", { className: Xt("flex h-8 items-center", f && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(No, {}) }),
1663
1662
  /* @__PURE__ */ o(ds, { className: "mx-1 h-3 w-3 flex-shrink-0 text-gray-400" }),
1664
1663
  /* @__PURE__ */ o("div", { className: Xt("flex h-8 items-center", f && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(Ji, {}) }),
1665
1664
  /* @__PURE__ */ o(ds, { className: "mx-1 h-3 w-3 flex-shrink-0 text-gray-400" }),
@@ -1677,20 +1676,20 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1677
1676
  !u && /* @__PURE__ */ o(Bt, { content: l("Open page"), children: /* @__PURE__ */ o("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: "", children: /* @__PURE__ */ o("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 opacity-0 transition-opacity group-hover:opacity-100", children: /* @__PURE__ */ o(ti, { className: "h-4 w-4", strokeWidth: 1 }) }) }) })
1678
1677
  ] })
1679
1678
  ] }),
1680
- r && i && /* @__PURE__ */ o(Lo, {})
1679
+ r && i && /* @__PURE__ */ o(Co, {})
1681
1680
  ] });
1682
- }, xo = () => /* @__PURE__ */ g("div", { className: "grid h-full w-full grid-cols-3 items-center px-2", children: [
1681
+ }, Go = () => /* @__PURE__ */ g("div", { className: "grid h-full w-full grid-cols-3 items-center px-2", children: [
1683
1682
  /* @__PURE__ */ g("div", { className: "flex justify-start", children: [
1684
1683
  /* @__PURE__ */ o(so, {}),
1685
- /* @__PURE__ */ o(Go, {})
1684
+ /* @__PURE__ */ o(Lo, {})
1686
1685
  ] }),
1687
1686
  /* @__PURE__ */ o("div", { className: "flex justify-center", children: /* @__PURE__ */ o(pi, {}) }),
1688
1687
  /* @__PURE__ */ g("div", { className: "flex items-center justify-end", children: [
1689
1688
  /* @__PURE__ */ o(no, {}),
1690
- /* @__PURE__ */ o(vo, {})
1689
+ /* @__PURE__ */ o(bo, {})
1691
1690
  ] })
1692
- ] }), Oo = () => {
1693
- const e = Z(), { data: t } = ue({
1691
+ ] }), xo = () => {
1692
+ const e = J(), { data: t } = ue({
1694
1693
  queryKey: [E.AI_CONTEXT],
1695
1694
  initialData: "",
1696
1695
  queryFn: () => "",
@@ -1702,8 +1701,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1702
1701
  },
1703
1702
  [e]
1704
1703
  ), aiContext: t };
1705
- }, Do = () => {
1706
- const e = N(), { aiContext: t } = Oo(), n = G();
1704
+ }, Oo = () => {
1705
+ const e = I(), { aiContext: t } = xo(), n = x();
1707
1706
  return W(
1708
1707
  async (s, r, a, i) => n(e, {
1709
1708
  action: E.ASK_AI,
@@ -1711,12 +1710,12 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1711
1710
  }),
1712
1711
  [e, t, n]
1713
1712
  );
1714
- }, ko = (e) => Q(() => {
1715
- if (!e || Ee(e)) return { blocks: [] };
1713
+ }, Do = (e) => Q(() => {
1714
+ if (!e || fe(e)) return { blocks: [] };
1716
1715
  const t = zn(e, (n) => !Ua(n == null ? void 0 : n._type, "@chai/"));
1717
1716
  return { blocks: hi(t) };
1718
- }, [e]), Ro = () => {
1719
- const [e] = Ce(), t = e.get("page"), n = N(), s = G(), r = Z(), { data: a } = he(), { data: i } = Le(), l = Jn(), c = En();
1717
+ }, [e]), ko = () => {
1718
+ const [e] = Ce(), t = e.get("page"), n = I(), s = x(), r = J(), { data: a } = ge(), { data: i } = Le(), l = Jn(), c = En();
1720
1719
  return ue({
1721
1720
  queryKey: [E.GET_PAGE_ALL_DATA, t, i == null ? void 0 : i.id, c],
1722
1721
  staleTime: 1 / 0,
@@ -1747,8 +1746,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1747
1746
  },
1748
1747
  enabled: !!t && !!(a != null && a.pageType) && !!(i != null && i.id)
1749
1748
  });
1750
- }, Uo = () => {
1751
- const e = N(), t = Z(), n = G();
1749
+ }, Ro = () => {
1750
+ const e = I(), t = J(), n = x();
1752
1751
  return te({
1753
1752
  mutationFn: async (s) => n(e, {
1754
1753
  action: E.UPDATE_WEBSITE_FIELDS,
@@ -1767,8 +1766,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1767
1766
  });
1768
1767
  }
1769
1768
  });
1770
- }, _u = () => {
1771
- const e = N(), t = Z(), n = G(), { selectedLang: s } = _e();
1769
+ }, wu = () => {
1770
+ const e = I(), t = J(), n = x(), { selectedLang: s } = _e();
1772
1771
  return te({
1773
1772
  mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
1774
1773
  onSuccess: () => {
@@ -1782,8 +1781,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1782
1781
  });
1783
1782
  }
1784
1783
  });
1785
- }, wu = () => {
1786
- const e = N(), t = Z(), n = G(), { selectedLang: s } = _e();
1784
+ }, Pu = () => {
1785
+ const e = I(), t = J(), n = x(), { selectedLang: s } = _e();
1787
1786
  return te({
1788
1787
  mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
1789
1788
  onSuccess: () => {
@@ -1797,8 +1796,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1797
1796
  });
1798
1797
  }
1799
1798
  });
1800
- }, Pu = () => {
1801
- const e = N(), t = Z(), n = G();
1799
+ }, bu = () => {
1800
+ const e = I(), t = J(), n = x();
1802
1801
  return te({
1803
1802
  mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
1804
1803
  onSuccess: () => {
@@ -1812,8 +1811,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1812
1811
  });
1813
1812
  }
1814
1813
  });
1815
- }, bu = () => {
1816
- const e = N(), t = G();
1814
+ }, vu = () => {
1815
+ const e = I(), t = x();
1817
1816
  return te({
1818
1817
  mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
1819
1818
  onError: (n) => {
@@ -1822,8 +1821,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1822
1821
  });
1823
1822
  }
1824
1823
  });
1825
- }, vu = () => {
1826
- const e = N(), t = G();
1824
+ }, Nu = () => {
1825
+ const e = I(), t = x();
1827
1826
  return te({
1828
1827
  mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
1829
1828
  onSuccess: (n) => {
@@ -1835,8 +1834,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1835
1834
  });
1836
1835
  }
1837
1836
  });
1838
- }, Nu = () => {
1839
- const e = N(), t = G();
1837
+ }, Iu = () => {
1838
+ const e = I(), t = x();
1840
1839
  return te({
1841
1840
  mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
1842
1841
  onSuccess: (n) => {
@@ -1849,7 +1848,7 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1849
1848
  }
1850
1849
  });
1851
1850
  }, Js = (e = 300) => {
1852
- const t = fe("onLogout", gn), n = fe("getAccessToken"), s = N();
1851
+ const t = he("onLogout", gn), n = he("getAccessToken"), s = I();
1853
1852
  return ue({
1854
1853
  queryKey: ["check-user-access"],
1855
1854
  queryFn: async () => {
@@ -1866,8 +1865,8 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1866
1865
  refetchIntervalInBackground: !0,
1867
1866
  retry: !1
1868
1867
  });
1869
- }, Mo = () => {
1870
- const e = N(), t = G(), [, n] = bi(), s = Z();
1868
+ }, Uo = () => {
1869
+ const e = I(), t = x(), [, n] = bi(), s = J();
1871
1870
  return { onSave: async ({
1872
1871
  page: a,
1873
1872
  blocks: i,
@@ -1886,13 +1885,13 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1886
1885
  return console.error(c), new Error("Failed to save blocks");
1887
1886
  }
1888
1887
  } };
1889
- }, Bo = () => {
1890
- const { data: e } = Ut(), t = N(), n = G();
1888
+ }, Mo = () => {
1889
+ const { data: e } = dt(), t = I(), n = x();
1891
1890
  return {
1892
1891
  getPartialBlocks: W(async () => {
1893
1892
  const s = {};
1894
1893
  for (const r of e ?? [])
1895
- Ee(r == null ? void 0 : r.slug) && (s[r.id] = {
1894
+ fe(r == null ? void 0 : r.slug) && (s[r.id] = {
1896
1895
  type: r.pageType,
1897
1896
  name: Ma(r.name ?? r.slug),
1898
1897
  description: ""
@@ -1915,7 +1914,7 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1915
1914
  [n, t]
1916
1915
  )
1917
1916
  };
1918
- }, Fo = V(() => import("./ai-panel-content-DAXG0iZN.js")), Zs = "chai-chat-panel", Ko = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
1917
+ }, Bo = V(() => import("./ai-panel-content-DZmolAf1.js")), Zs = "chai-chat-panel", Fo = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
1919
1918
  /* @__PURE__ */ o("title", { children: "ai" }),
1920
1919
  /* @__PURE__ */ o("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ o("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ o(
1921
1920
  "path",
@@ -1924,25 +1923,25 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1924
1923
  id: "Combined-Shape"
1925
1924
  }
1926
1925
  ) }) })
1927
- ] }), Vo = ({ isActive: e, show: t }) => On("flags.ai", !1) ? /* @__PURE__ */ o(R, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ o(Ko, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }) : null, Ho = {
1926
+ ] }), Ko = ({ isActive: e, show: t }) => On("flags.ai", !1) ? /* @__PURE__ */ o(R, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ o(Fo, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }) : null, Vo = {
1928
1927
  id: Zs,
1929
1928
  label: "AI Assistant",
1930
- button: Vo,
1931
- panel: Fo,
1929
+ button: Ko,
1930
+ panel: Bo,
1932
1931
  position: "top"
1933
- }, qo = V(() => import("./lang-panel-irJl_yAH.js")), $o = ({ isActive: e, show: t }) => {
1934
- const { data: n } = ut();
1932
+ }, Ho = V(() => import("./lang-panel-DejZsTqE.js")), qo = ({ isActive: e, show: t }) => {
1933
+ const { data: n } = Ve();
1935
1934
  return !jn(n, "languages") || !Y(n, "languages", []).length ? null : /* @__PURE__ */ o(R, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ o(ni, { className: "h-4 w-4" }) });
1936
- }, Xs = "lang", Qo = {
1935
+ }, Xs = "lang", $o = {
1937
1936
  id: Xs,
1938
1937
  label: "Languages",
1939
1938
  position: "top",
1940
- panel: qo,
1941
- button: $o,
1939
+ panel: Ho,
1940
+ button: qo,
1942
1941
  view: "modal",
1943
1942
  width: 400
1944
- }, Wo = V(() => import("./seo-panel-Bd5Yt35N.js")), er = "seo", zo = ({ isActive: e, show: t }) => {
1945
- const { data: n } = he(), s = Ni(n == null ? void 0 : n.pageType);
1943
+ }, Qo = V(() => import("./seo-panel-CMIMJh2W.js")), er = "seo", Wo = ({ isActive: e, show: t }) => {
1944
+ const { data: n } = ge(), s = Ni(n == null ? void 0 : n.pageType);
1946
1945
  return !jn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ o(R, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ g(
1947
1946
  "svg",
1948
1947
  {
@@ -1961,18 +1960,18 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1961
1960
  ]
1962
1961
  }
1963
1962
  ) });
1964
- }, jo = {
1963
+ }, zo = {
1965
1964
  id: er,
1966
1965
  label: "SEO",
1967
- panel: Wo,
1968
- button: zo,
1966
+ panel: Qo,
1967
+ button: Wo,
1969
1968
  position: "top",
1970
1969
  width: 600,
1971
1970
  view: "modal"
1972
- }, Yo = V(
1973
- () => import("./change-password-modal-CfZ3KoDT.js").then((e) => ({ default: e.ChangePasswordModal }))
1974
- ), tr = "user-info", Jo = () => {
1975
- const { t: e } = pe(), { user: t, logout: n } = $s(), s = fe("onLogout", gn), [r, a] = k(!1);
1971
+ }, jo = V(
1972
+ () => import("./change-password-modal-D4wVoj8S.js").then((e) => ({ default: e.ChangePasswordModal }))
1973
+ ), tr = "user-info", Yo = () => {
1974
+ const { t: e } = pe(), { user: t, logout: n } = $s(), s = he("onLogout", gn), [r, a] = k(!1);
1976
1975
  return t ? /* @__PURE__ */ g(ca, { children: [
1977
1976
  /* @__PURE__ */ o(ua, { asChild: !0, children: /* @__PURE__ */ o(R, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ o(si, { className: "h-4 w-4" }) }) }),
1978
1977
  /* @__PURE__ */ g(da, { className: "w-auto space-y-2 p-4", children: [
@@ -1983,7 +1982,7 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
1983
1982
  X,
1984
1983
  {
1985
1984
  fallback: /* @__PURE__ */ o(Qn, { open: r, onOpenChange: a, children: /* @__PURE__ */ o(Os, { className: "sm:max-w-[425px]", children: /* @__PURE__ */ o("div", { className: "flex h-[340px] items-center justify-center", children: /* @__PURE__ */ o(Ke, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) }) }),
1986
- children: /* @__PURE__ */ o(Yo, { open: r, onOpenChange: a })
1985
+ children: /* @__PURE__ */ o(jo, { open: r, onOpenChange: a })
1987
1986
  }
1988
1987
  ),
1989
1988
  /* @__PURE__ */ g(fa, { children: [
@@ -2009,13 +2008,13 @@ const No = V(() => import("./page-manager-new-D_Lwwz4w.js")), Io = ({ children:
2009
2008
  ] })
2010
2009
  ] })
2011
2010
  ] }) : null;
2012
- }, Zo = {
2011
+ }, Jo = {
2013
2012
  id: tr,
2014
2013
  label: "User Info",
2015
- button: Jo,
2014
+ button: Yo,
2016
2015
  position: "bottom"
2017
- }, Xo = () => {
2018
- Vt(er, jo), Vt(Xs, Qo), Vt(tr, Zo), Vt(Zs, Ho);
2016
+ }, Zo = () => {
2017
+ Vt(er, zo), Vt(Xs, $o), Vt(tr, Jo), Vt(Zs, Vo);
2019
2018
  };
2020
2019
  var _ = {
2021
2020
  context: void 0,
@@ -2033,24 +2032,24 @@ function ms(e) {
2033
2032
  const t = String(e), n = t.length - 1;
2034
2033
  return _.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
2035
2034
  }
2036
- function gt(e) {
2035
+ function mt(e) {
2037
2036
  _.context = e;
2038
2037
  }
2039
- var nr = !1, el = (e, t) => e === t, tn = Symbol("solid-proxy"), sr = typeof Proxy == "function", rr = Symbol("solid-track"), nn = {
2040
- equals: el
2038
+ var nr = !1, Xo = (e, t) => e === t, tn = Symbol("solid-proxy"), sr = typeof Proxy == "function", rr = Symbol("solid-track"), nn = {
2039
+ equals: Xo
2041
2040
  }, ar = fr, Ge = 1, sn = 2, ir = {
2042
2041
  owned: null,
2043
2042
  cleanups: null,
2044
2043
  context: null,
2045
2044
  owner: null
2046
- }, Cn = {}, L = null, Ln = null, tl = null, D = null, se = null, Ie = null, An = 0;
2045
+ }, Cn = {}, L = null, Ln = null, el = null, D = null, se = null, Ie = null, An = 0;
2047
2046
  function Me(e, t) {
2048
2047
  const n = D, s = L, r = e.length === 0, a = t === void 0 ? s : t, i = r ? ir : {
2049
2048
  owned: null,
2050
2049
  cleanups: null,
2051
2050
  context: a ? a.context : null,
2052
2051
  owner: a
2053
- }, l = r ? e : () => e(() => ne(() => Tt(i)));
2052
+ }, l = r ? e : () => e(() => ne(() => St(i)));
2054
2053
  L = i, D = null;
2055
2054
  try {
2056
2055
  return Se(l, !0);
@@ -2068,28 +2067,28 @@ function K(e, t) {
2068
2067
  }, s = (r) => (typeof r == "function" && (r = r(n.value)), dr(n, r));
2069
2068
  return [ur.bind(n), s];
2070
2069
  }
2071
- function nl(e, t, n) {
2070
+ function tl(e, t, n) {
2072
2071
  const s = Tn(e, t, !0, Ge);
2073
- dt(s);
2072
+ ft(s);
2074
2073
  }
2075
2074
  function Be(e, t, n) {
2076
2075
  const s = Tn(e, t, !1, Ge);
2077
- dt(s);
2076
+ ft(s);
2078
2077
  }
2079
2078
  function or(e, t, n) {
2080
- ar = dl;
2079
+ ar = ul;
2081
2080
  const s = Tn(e, t, !1, Ge);
2082
- (!n || !n.render) && (s.user = !0), Ie ? Ie.push(s) : dt(s);
2081
+ (!n || !n.render) && (s.user = !0), Ie ? Ie.push(s) : ft(s);
2083
2082
  }
2084
2083
  function ee(e, t, n) {
2085
2084
  n = n ? Object.assign({}, nn, n) : nn;
2086
2085
  const s = Tn(e, t, !0, 0);
2087
- return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, dt(s), ur.bind(s);
2086
+ return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, ft(s), ur.bind(s);
2088
2087
  }
2089
- function sl(e) {
2088
+ function nl(e) {
2090
2089
  return e && typeof e == "object" && "then" in e;
2091
2090
  }
2092
- function rl(e, t, n) {
2091
+ function sl(e, t, n) {
2093
2092
  let s, r, a;
2094
2093
  s = !0, r = e, a = {};
2095
2094
  let i = null, l = Cn, c = null, u = !1, d = "initialValue" in a, f = typeof s == "function" && ee(s);
@@ -2110,7 +2109,7 @@ function rl(e, t, n) {
2110
2109
  }, !1);
2111
2110
  }
2112
2111
  function de() {
2113
- const w = ll, v = h(), z = S();
2112
+ const w = ol, v = h(), z = S();
2114
2113
  if (z !== void 0 && !i) throw z;
2115
2114
  return D && D.user, v;
2116
2115
  }
@@ -2136,7 +2135,7 @@ function rl(e, t, n) {
2136
2135
  if (z !== void 0) {
2137
2136
  H(i, void 0, Jt(z), v);
2138
2137
  return;
2139
- } else if (!sl($))
2138
+ } else if (!nl($))
2140
2139
  return H(i, $, void 0, v), $;
2141
2140
  return i = $, "v" in $ ? ($.s === 1 ? H(i, $.v, void 0, v) : H(i, void 0, Jt($.v), v), $) : (u = !0, queueMicrotask(() => u = !1), Se(() => {
2142
2141
  q(d ? "refreshing" : "pending"), y();
@@ -2165,12 +2164,12 @@ function rl(e, t, n) {
2165
2164
  }
2166
2165
  });
2167
2166
  let O = L;
2168
- return f ? nl(() => (O = L, C(!1))) : C(!1), [de, {
2167
+ return f ? tl(() => (O = L, C(!1))) : C(!1), [de, {
2169
2168
  refetch: (w) => lr(O, () => C(w)),
2170
2169
  mutate: A
2171
2170
  }];
2172
2171
  }
2173
- function Iu(e) {
2172
+ function Cu(e) {
2174
2173
  return Se(e, !1);
2175
2174
  }
2176
2175
  function ne(e) {
@@ -2183,7 +2182,7 @@ function ne(e) {
2183
2182
  D = t;
2184
2183
  }
2185
2184
  }
2186
- function Cu(e, t, n) {
2185
+ function Lu(e, t, n) {
2187
2186
  const s = Array.isArray(e);
2188
2187
  let r, a = n && n.defer;
2189
2188
  return (i) => {
@@ -2198,10 +2197,10 @@ function Cu(e, t, n) {
2198
2197
  return r = l, c;
2199
2198
  };
2200
2199
  }
2201
- function al(e) {
2200
+ function rl(e) {
2202
2201
  or(() => ne(e));
2203
2202
  }
2204
- function At(e) {
2203
+ function Tt(e) {
2205
2204
  return L === null || (L.cleanups === null ? L.cleanups = [e] : L.cleanups.push(e)), e;
2206
2205
  }
2207
2206
  function Es() {
@@ -2218,7 +2217,7 @@ function lr(e, t) {
2218
2217
  L = n, D = s;
2219
2218
  }
2220
2219
  }
2221
- function il(e) {
2220
+ function al(e) {
2222
2221
  const t = D, n = L;
2223
2222
  return Promise.resolve().then(() => {
2224
2223
  D = t, L = n;
@@ -2226,19 +2225,19 @@ function il(e) {
2226
2225
  return Se(e, !1), D = L = null, s ? s.done : void 0;
2227
2226
  });
2228
2227
  }
2229
- var [ol, Lu] = /* @__PURE__ */ K(!1);
2230
- function Gu() {
2231
- return [ol, il];
2228
+ var [il, Gu] = /* @__PURE__ */ K(!1);
2229
+ function xu() {
2230
+ return [il, al];
2232
2231
  }
2233
- function xu(e, t) {
2232
+ function Ou(e, t) {
2234
2233
  const n = Symbol("context");
2235
2234
  return {
2236
2235
  id: n,
2237
- Provider: fl(n),
2236
+ Provider: dl(n),
2238
2237
  defaultValue: e
2239
2238
  };
2240
2239
  }
2241
- function Ou(e) {
2240
+ function Du(e) {
2242
2241
  let t;
2243
2242
  return L && L.context && (t = L.context[e.id]) !== void 0 ? t : e.defaultValue;
2244
2243
  }
@@ -2249,10 +2248,10 @@ function cr(e) {
2249
2248
  return Array.isArray(s) ? s : s != null ? [s] : [];
2250
2249
  }, n;
2251
2250
  }
2252
- var ll;
2251
+ var ol;
2253
2252
  function ur() {
2254
2253
  if (this.sources && this.state)
2255
- if (this.state === Ge) dt(this);
2254
+ if (this.state === Ge) ft(this);
2256
2255
  else {
2257
2256
  const e = se;
2258
2257
  se = null, Se(() => an(this), !1), se = e;
@@ -2274,20 +2273,20 @@ function dr(e, t, n) {
2274
2273
  throw se = [], new Error();
2275
2274
  }, !1)), t;
2276
2275
  }
2277
- function dt(e) {
2276
+ function ft(e) {
2278
2277
  if (!e.fn) return;
2279
- Tt(e);
2278
+ St(e);
2280
2279
  const t = An;
2281
- cl(e, e.value, t);
2280
+ ll(e, e.value, t);
2282
2281
  }
2283
- function cl(e, t, n) {
2282
+ function ll(e, t, n) {
2284
2283
  let s;
2285
2284
  const r = L, a = D;
2286
2285
  D = L = e;
2287
2286
  try {
2288
2287
  s = e.fn(t);
2289
2288
  } catch (i) {
2290
- return e.pure && (e.state = Ge, e.owned && e.owned.forEach(Tt), e.owned = null), e.updatedAt = n + 1, Xn(i);
2289
+ return e.pure && (e.state = Ge, e.owned && e.owned.forEach(St), e.owned = null), e.updatedAt = n + 1, Xn(i);
2291
2290
  } finally {
2292
2291
  D = a, L = r;
2293
2292
  }
@@ -2318,7 +2317,7 @@ function rn(e) {
2318
2317
  e.state && t.push(e);
2319
2318
  for (let n = t.length - 1; n >= 0; n--)
2320
2319
  if (e = t[n], e.state === Ge)
2321
- dt(e);
2320
+ ft(e);
2322
2321
  else if (e.state === sn) {
2323
2322
  const s = se;
2324
2323
  se = null, Se(() => an(e, t[0]), !1), se = s;
@@ -2330,12 +2329,12 @@ function Se(e, t) {
2330
2329
  t || (se = []), Ie ? n = !0 : Ie = [], An++;
2331
2330
  try {
2332
2331
  const s = e();
2333
- return ul(n), s;
2332
+ return cl(n), s;
2334
2333
  } catch (s) {
2335
2334
  n || (Ie = null), se = null, Xn(s);
2336
2335
  }
2337
2336
  }
2338
- function ul(e) {
2337
+ function cl(e) {
2339
2338
  if (se && (fr(se), se = null), e) return;
2340
2339
  const t = Ie;
2341
2340
  Ie = null, t.length && Se(() => ar(t), !1);
@@ -2343,7 +2342,7 @@ function ul(e) {
2343
2342
  function fr(e) {
2344
2343
  for (let t = 0; t < e.length; t++) rn(e[t]);
2345
2344
  }
2346
- function dl(e) {
2345
+ function ul(e) {
2347
2346
  let t, n = 0;
2348
2347
  for (t = 0; t < e.length; t++) {
2349
2348
  const s = e[t];
@@ -2354,7 +2353,7 @@ function dl(e) {
2354
2353
  _.effects || (_.effects = []), _.effects.push(...e.slice(0, n));
2355
2354
  return;
2356
2355
  }
2357
- gt();
2356
+ mt();
2358
2357
  }
2359
2358
  for (_.effects && (_.done || !_.count) && (e = [..._.effects, ...e], n += _.effects.length, delete _.effects), t = 0; t < n; t++) rn(e[t]);
2360
2359
  }
@@ -2374,7 +2373,7 @@ function hr(e) {
2374
2373
  n.state || (n.state = sn, n.pure ? se.push(n) : Ie.push(n), n.observers && hr(n));
2375
2374
  }
2376
2375
  }
2377
- function Tt(e) {
2376
+ function St(e) {
2378
2377
  let t;
2379
2378
  if (e.sources)
2380
2379
  for (; e.sources.length; ) {
@@ -2385,11 +2384,11 @@ function Tt(e) {
2385
2384
  }
2386
2385
  }
2387
2386
  if (e.tOwned) {
2388
- for (t = e.tOwned.length - 1; t >= 0; t--) Tt(e.tOwned[t]);
2387
+ for (t = e.tOwned.length - 1; t >= 0; t--) St(e.tOwned[t]);
2389
2388
  delete e.tOwned;
2390
2389
  }
2391
2390
  if (e.owned) {
2392
- for (t = e.owned.length - 1; t >= 0; t--) Tt(e.owned[t]);
2391
+ for (t = e.owned.length - 1; t >= 0; t--) St(e.owned[t]);
2393
2392
  e.owned = null;
2394
2393
  }
2395
2394
  if (e.cleanups) {
@@ -2418,7 +2417,7 @@ function Rn(e) {
2418
2417
  }
2419
2418
  return e;
2420
2419
  }
2421
- function fl(e, t) {
2420
+ function dl(e, t) {
2422
2421
  return function(s) {
2423
2422
  let r;
2424
2423
  return Be(() => r = ne(() => (L.context = {
@@ -2431,9 +2430,9 @@ var Un = Symbol("fallback");
2431
2430
  function on(e) {
2432
2431
  for (let t = 0; t < e.length; t++) e[t]();
2433
2432
  }
2434
- function hl(e, t, n = {}) {
2433
+ function fl(e, t, n = {}) {
2435
2434
  let s = [], r = [], a = [], i = 0, l = t.length > 1 ? [] : null;
2436
- return At(() => on(a)), () => {
2435
+ return Tt(() => on(a)), () => {
2437
2436
  let c = e() || [], u = c.length, d, f;
2438
2437
  return c[rr], ne(() => {
2439
2438
  let h, A, S, b, p, y, P, q, H;
@@ -2466,9 +2465,9 @@ function hl(e, t, n = {}) {
2466
2465
  }
2467
2466
  };
2468
2467
  }
2469
- function gl(e, t, n = {}) {
2468
+ function hl(e, t, n = {}) {
2470
2469
  let s = [], r = [], a = [], i = [], l = 0, c;
2471
- return At(() => on(a)), () => {
2470
+ return Tt(() => on(a)), () => {
2472
2471
  const u = e() || [], d = u.length;
2473
2472
  return u[rr], ne(() => {
2474
2473
  if (d === 0)
@@ -2519,7 +2518,7 @@ var Mn = {
2519
2518
  function Gn(e) {
2520
2519
  return (e = typeof e == "function" ? e() : e) ? e : {};
2521
2520
  }
2522
- function ml() {
2521
+ function gl() {
2523
2522
  for (let e = 0, t = this.length; e < t; ++e) {
2524
2523
  const n = this[e]();
2525
2524
  if (n !== void 0) return n;
@@ -2563,7 +2562,7 @@ function mr(...e) {
2563
2562
  s[d] = f.get ? {
2564
2563
  enumerable: !0,
2565
2564
  configurable: !0,
2566
- get: ml.bind(n[d] = [f.get.bind(l)])
2565
+ get: gl.bind(n[d] = [f.get.bind(l)])
2567
2566
  } : f.value !== void 0 ? f : void 0;
2568
2567
  else {
2569
2568
  const m = n[d];
@@ -2578,7 +2577,7 @@ function mr(...e) {
2578
2577
  }
2579
2578
  return r;
2580
2579
  }
2581
- function El(e, ...t) {
2580
+ function ml(e, ...t) {
2582
2581
  if (sr && tn in e) {
2583
2582
  const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
2584
2583
  get(l) {
@@ -2620,41 +2619,41 @@ function Er(e) {
2620
2619
  if (a) {
2621
2620
  const [l, c] = K();
2622
2621
  _.count || (_.count = 0), _.count++, (n || (n = e())).then((u) => {
2623
- !_.done && gt(a), _.count--, c(() => u.default), gt();
2622
+ !_.done && mt(a), _.count--, c(() => u.default), mt();
2624
2623
  }), t = l;
2625
2624
  } else if (!t) {
2626
- const [l] = rl(() => (n || (n = e())).then((c) => c.default));
2625
+ const [l] = sl(() => (n || (n = e())).then((c) => c.default));
2627
2626
  t = l;
2628
2627
  }
2629
2628
  let i;
2630
2629
  return ee(() => (i = t()) ? ne(() => {
2631
2630
  if (!a || _.done) return i(r);
2632
2631
  const l = _.context;
2633
- gt(a);
2632
+ mt(a);
2634
2633
  const c = i(r);
2635
- return gt(l), c;
2634
+ return mt(l), c;
2636
2635
  }) : "");
2637
2636
  };
2638
2637
  return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
2639
2638
  }
2640
- var pl = 0;
2641
- function Du() {
2642
- return _.context ? _.getNextContextId() : `cl-${pl++}`;
2639
+ var El = 0;
2640
+ function ku() {
2641
+ return _.context ? _.getNextContextId() : `cl-${El++}`;
2643
2642
  }
2644
2643
  var pr = (e) => `Stale read from <${e}>.`;
2645
- function ku(e) {
2644
+ function Ru(e) {
2646
2645
  const t = "fallback" in e && {
2647
2646
  fallback: () => e.fallback
2648
2647
  };
2649
- return ee(hl(() => e.each, e.children, t || void 0));
2648
+ return ee(fl(() => e.each, e.children, t || void 0));
2650
2649
  }
2651
- function Ru(e) {
2650
+ function Uu(e) {
2652
2651
  const t = "fallback" in e && {
2653
2652
  fallback: () => e.fallback
2654
2653
  };
2655
- return ee(gl(() => e.each, e.children, t || void 0));
2654
+ return ee(hl(() => e.each, e.children, t || void 0));
2656
2655
  }
2657
- function Uu(e) {
2656
+ function Mu(e) {
2658
2657
  const t = e.keyed, n = ee(() => e.when, void 0, void 0), s = t ? n : ee(n, void 0, {
2659
2658
  equals: (r, a) => !r == !a
2660
2659
  });
@@ -2670,7 +2669,7 @@ function Uu(e) {
2670
2669
  return e.fallback;
2671
2670
  }, void 0, void 0);
2672
2671
  }
2673
- function Mu(e) {
2672
+ function Bu(e) {
2674
2673
  const t = cr(() => e.children), n = ee(() => {
2675
2674
  const s = t(), r = Array.isArray(s) ? s : [s];
2676
2675
  let a = () => {
@@ -2694,13 +2693,13 @@ function Mu(e) {
2694
2693
  })) : l;
2695
2694
  }, void 0, void 0);
2696
2695
  }
2697
- function Bu(e) {
2696
+ function Fu(e) {
2698
2697
  return e;
2699
2698
  }
2700
- var yl = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], Al = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...yl]), Tl = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Sl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2699
+ var pl = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], yl = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...pl]), Al = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Tl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2701
2700
  className: "class",
2702
2701
  htmlFor: "for"
2703
- }), _l = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2702
+ }), Sl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2704
2703
  class: "className",
2705
2704
  novalidate: {
2706
2705
  $: "noValidate",
@@ -2729,11 +2728,11 @@ var yl = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
2729
2728
  TEXTAREA: 1
2730
2729
  }
2731
2730
  });
2732
- function wl(e, t) {
2733
- const n = _l[e];
2731
+ function _l(e, t) {
2732
+ const n = Sl[e];
2734
2733
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
2735
2734
  }
2736
- var Pl = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), bl = /* @__PURE__ */ new Set([
2735
+ var wl = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Pl = /* @__PURE__ */ new Set([
2737
2736
  "altGlyph",
2738
2737
  "altGlyphDef",
2739
2738
  "altGlyphItem",
@@ -2811,11 +2810,11 @@ var Pl = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
2811
2810
  "use",
2812
2811
  "view",
2813
2812
  "vkern"
2814
- ]), vl = {
2813
+ ]), bl = {
2815
2814
  xlink: "http://www.w3.org/1999/xlink",
2816
2815
  xml: "http://www.w3.org/XML/1998/namespace"
2817
- }, Fu = (e) => ee(() => e());
2818
- function Nl(e, t, n) {
2816
+ }, Ku = (e) => ee(() => e());
2817
+ function vl(e, t, n) {
2819
2818
  let s = n.length, r = t.length, a = s, i = 0, l = 0, c = t[r - 1].nextSibling, u = null;
2820
2819
  for (; i < r || l < a; ) {
2821
2820
  if (t[i] === n[l]) {
@@ -2854,7 +2853,7 @@ function Nl(e, t, n) {
2854
2853
  }
2855
2854
  }
2856
2855
  }
2857
- var mt = "_$DX_DELEGATE";
2856
+ var Et = "_$DX_DELEGATE";
2858
2857
  function yr(e, t, n, s = {}) {
2859
2858
  let r;
2860
2859
  return Me((a) => {
@@ -2863,7 +2862,7 @@ function yr(e, t, n, s = {}) {
2863
2862
  r(), t.textContent = "";
2864
2863
  };
2865
2864
  }
2866
- function Ku(e, t, n, s) {
2865
+ function Vu(e, t, n, s) {
2867
2866
  let r;
2868
2867
  const a = () => {
2869
2868
  const l = document.createElement("template");
@@ -2871,32 +2870,32 @@ function Ku(e, t, n, s) {
2871
2870
  }, i = () => (r || (r = a())).cloneNode(!0);
2872
2871
  return i.cloneNode = i, i;
2873
2872
  }
2874
- function Il(e, t = window.document) {
2875
- const n = t[mt] || (t[mt] = /* @__PURE__ */ new Set());
2873
+ function Nl(e, t = window.document) {
2874
+ const n = t[Et] || (t[Et] = /* @__PURE__ */ new Set());
2876
2875
  for (let s = 0, r = e.length; s < r; s++) {
2877
2876
  const a = e[s];
2878
2877
  n.has(a) || (n.add(a), t.addEventListener(a, Ar));
2879
2878
  }
2880
2879
  }
2881
- function Vu(e = window.document) {
2882
- if (e[mt]) {
2883
- for (let t of e[mt].keys()) e.removeEventListener(t, Ar);
2884
- delete e[mt];
2880
+ function Hu(e = window.document) {
2881
+ if (e[Et]) {
2882
+ for (let t of e[Et].keys()) e.removeEventListener(t, Ar);
2883
+ delete e[Et];
2885
2884
  }
2886
2885
  }
2887
2886
  function Bn(e, t, n) {
2888
- He(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
2887
+ qe(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
2889
2888
  }
2890
- function Cl(e, t, n, s) {
2891
- He(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
2889
+ function Il(e, t, n, s) {
2890
+ qe(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
2892
2891
  }
2893
- function Ll(e, t, n) {
2894
- He(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
2892
+ function Cl(e, t, n) {
2893
+ qe(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
2895
2894
  }
2896
- function Gl(e, t) {
2897
- He(e) || (t == null ? e.removeAttribute("class") : e.className = t);
2895
+ function Ll(e, t) {
2896
+ qe(e) || (t == null ? e.removeAttribute("class") : e.className = t);
2898
2897
  }
2899
- function xl(e, t, n, s) {
2898
+ function Gl(e, t, n, s) {
2900
2899
  if (s)
2901
2900
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
2902
2901
  else if (Array.isArray(n)) {
@@ -2904,7 +2903,7 @@ function xl(e, t, n, s) {
2904
2903
  e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
2905
2904
  } else e.addEventListener(t, n, typeof n != "function" && n);
2906
2905
  }
2907
- function Ol(e, t, n = {}) {
2906
+ function xl(e, t, n = {}) {
2908
2907
  const s = Object.keys(t || {}), r = Object.keys(n);
2909
2908
  let a, i;
2910
2909
  for (a = 0, i = r.length; a < i; a++) {
@@ -2917,7 +2916,7 @@ function Ol(e, t, n = {}) {
2917
2916
  }
2918
2917
  return n;
2919
2918
  }
2920
- function Dl(e, t, n) {
2919
+ function Ol(e, t, n) {
2921
2920
  if (!t) return n ? Bn(e, "style") : t;
2922
2921
  const s = e.style;
2923
2922
  if (typeof t == "string") return s.cssText = t;
@@ -2929,18 +2928,18 @@ function Dl(e, t, n) {
2929
2928
  r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
2930
2929
  return n;
2931
2930
  }
2932
- function kl(e, t = {}, n, s) {
2931
+ function Dl(e, t = {}, n, s) {
2933
2932
  const r = {};
2934
- return s || Be(() => r.children = St(e, t.children, r.children)), Be(() => typeof t.ref == "function" && Rl(t.ref, e)), Be(() => Ul(e, t, n, !0, r, !0)), r;
2933
+ return s || Be(() => r.children = _t(e, t.children, r.children)), Be(() => typeof t.ref == "function" && kl(t.ref, e)), Be(() => Rl(e, t, n, !0, r, !0)), r;
2935
2934
  }
2936
- function Rl(e, t, n) {
2935
+ function kl(e, t, n) {
2937
2936
  return ne(() => e(t, n));
2938
2937
  }
2939
2938
  function Fn(e, t, n, s) {
2940
- if (n !== void 0 && !s && (s = []), typeof t != "function") return St(e, t, s, n);
2941
- Be((r) => St(e, t(), r, n), s);
2939
+ if (n !== void 0 && !s && (s = []), typeof t != "function") return _t(e, t, s, n);
2940
+ Be((r) => _t(e, t(), r, n), s);
2942
2941
  }
2943
- function Ul(e, t, n, s, r = {}, a = !1) {
2942
+ function Rl(e, t, n, s, r = {}, a = !1) {
2944
2943
  t || (t = {});
2945
2944
  for (const i in r)
2946
2945
  if (!(i in t)) {
@@ -2954,14 +2953,14 @@ function Ul(e, t, n, s, r = {}, a = !1) {
2954
2953
  r[i] = ys(e, i, l, r[i], n, a, t);
2955
2954
  }
2956
2955
  }
2957
- function Ml(e) {
2956
+ function Ul(e) {
2958
2957
  let t, n;
2959
- return !He() || !(t = _.registry.get(n = Fl())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
2958
+ return !qe() || !(t = _.registry.get(n = Bl())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
2960
2959
  }
2961
- function He(e) {
2960
+ function qe(e) {
2962
2961
  return !!_.context && !_.done && (!e || e.isConnected);
2963
2962
  }
2964
- function Bl(e) {
2963
+ function Ml(e) {
2965
2964
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
2966
2965
  }
2967
2966
  function ps(e, t, n) {
@@ -2970,8 +2969,8 @@ function ps(e, t, n) {
2970
2969
  }
2971
2970
  function ys(e, t, n, s, r, a, i) {
2972
2971
  let l, c, u, d, f;
2973
- if (t === "style") return Dl(e, n, s);
2974
- if (t === "classList") return Ol(e, n, s);
2972
+ if (t === "style") return Ol(e, n, s);
2973
+ if (t === "classList") return xl(e, n, s);
2975
2974
  if (n === s) return s;
2976
2975
  if (t === "ref")
2977
2976
  a || n(e);
@@ -2982,24 +2981,24 @@ function ys(e, t, n, s, r, a, i) {
2982
2981
  const m = t.slice(10);
2983
2982
  s && e.removeEventListener(m, s, !0), n && e.addEventListener(m, n, !0);
2984
2983
  } else if (t.slice(0, 2) === "on") {
2985
- const m = t.slice(2).toLowerCase(), h = Pl.has(m);
2984
+ const m = t.slice(2).toLowerCase(), h = wl.has(m);
2986
2985
  if (!h && s) {
2987
2986
  const A = Array.isArray(s) ? s[0] : s;
2988
2987
  e.removeEventListener(m, A);
2989
2988
  }
2990
- (h || n) && (xl(e, m, n, h), h && Il([m]));
2989
+ (h || n) && (Gl(e, m, n, h), h && Nl([m]));
2991
2990
  } else if (t.slice(0, 5) === "attr:")
2992
2991
  Bn(e, t.slice(5), n);
2993
2992
  else if (t.slice(0, 5) === "bool:")
2994
- Ll(e, t.slice(5), n);
2995
- else if ((f = t.slice(0, 5) === "prop:") || (u = Tl.has(t)) || !r && ((d = wl(t, e.tagName)) || (c = Al.has(t))) || (l = e.nodeName.includes("-") || "is" in i)) {
2993
+ Cl(e, t.slice(5), n);
2994
+ else if ((f = t.slice(0, 5) === "prop:") || (u = Al.has(t)) || !r && ((d = _l(t, e.tagName)) || (c = yl.has(t))) || (l = e.nodeName.includes("-") || "is" in i)) {
2996
2995
  if (f)
2997
2996
  t = t.slice(5), c = !0;
2998
- else if (He(e)) return n;
2999
- t === "class" || t === "className" ? Gl(e, n) : l && !c && !u ? e[Bl(t)] = n : e[d || t] = n;
2997
+ else if (qe(e)) return n;
2998
+ t === "class" || t === "className" ? Ll(e, n) : l && !c && !u ? e[Ml(t)] = n : e[d || t] = n;
3000
2999
  } else {
3001
- const m = r && t.indexOf(":") > -1 && vl[t.split(":")[0]];
3002
- m ? Cl(e, m, t, n) : Bn(e, Sl[t] || t, n);
3000
+ const m = r && t.indexOf(":") > -1 && bl[t.split(":")[0]];
3001
+ m ? Il(e, m, t, n) : Bn(e, Tl[t] || t, n);
3003
3002
  }
3004
3003
  return n;
3005
3004
  }
@@ -3039,8 +3038,8 @@ function Ar(e) {
3039
3038
  } else l();
3040
3039
  a(s);
3041
3040
  }
3042
- function St(e, t, n, s, r) {
3043
- const a = He(e);
3041
+ function _t(e, t, n, s, r) {
3042
+ const a = qe(e);
3044
3043
  if (a) {
3045
3044
  !n && (n = [...e.childNodes]);
3046
3045
  let c = [];
@@ -3058,23 +3057,23 @@ function St(e, t, n, s, r) {
3058
3057
  return n;
3059
3058
  if (l) {
3060
3059
  let c = n[0];
3061
- c && c.nodeType === 3 ? c.data !== t && (c.data = t) : c = document.createTextNode(t), n = qe(e, n, s, c);
3060
+ c && c.nodeType === 3 ? c.data !== t && (c.data = t) : c = document.createTextNode(t), n = $e(e, n, s, c);
3062
3061
  } else
3063
3062
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
3064
3063
  } else if (t == null || i === "boolean") {
3065
3064
  if (a) return n;
3066
- n = qe(e, n, s);
3065
+ n = $e(e, n, s);
3067
3066
  } else {
3068
3067
  if (i === "function")
3069
3068
  return Be(() => {
3070
3069
  let c = t();
3071
3070
  for (; typeof c == "function"; ) c = c();
3072
- n = St(e, c, n, s);
3071
+ n = _t(e, c, n, s);
3073
3072
  }), () => n;
3074
3073
  if (Array.isArray(t)) {
3075
3074
  const c = [], u = n && Array.isArray(n);
3076
3075
  if (Kn(c, t, n, r))
3077
- return Be(() => n = St(e, c, n, s, !0)), () => n;
3076
+ return Be(() => n = _t(e, c, n, s, !0)), () => n;
3078
3077
  if (a) {
3079
3078
  if (!c.length) return n;
3080
3079
  if (s === void 0) return n = [...e.childNodes];
@@ -3085,14 +3084,14 @@ function St(e, t, n, s, r) {
3085
3084
  return n = f;
3086
3085
  }
3087
3086
  if (c.length === 0) {
3088
- if (n = qe(e, n, s), l) return n;
3089
- } else u ? n.length === 0 ? As(e, c, s) : Nl(e, n, c) : (n && qe(e), As(e, c));
3087
+ if (n = $e(e, n, s), l) return n;
3088
+ } else u ? n.length === 0 ? As(e, c, s) : vl(e, n, c) : (n && $e(e), As(e, c));
3090
3089
  n = c;
3091
3090
  } else if (t.nodeType) {
3092
3091
  if (a && t.parentNode) return n = l ? [t] : t;
3093
3092
  if (Array.isArray(n)) {
3094
- if (l) return n = qe(e, n, s, t);
3095
- qe(e, n, null, t);
3093
+ if (l) return n = $e(e, n, s, t);
3094
+ $e(e, n, null, t);
3096
3095
  } else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
3097
3096
  n = t;
3098
3097
  }
@@ -3123,7 +3122,7 @@ function Kn(e, t, n, s) {
3123
3122
  function As(e, t, n = null) {
3124
3123
  for (let s = 0, r = t.length; s < r; s++) e.insertBefore(t[s], n);
3125
3124
  }
3126
- function qe(e, t, n, s) {
3125
+ function $e(e, t, n, s) {
3127
3126
  if (n === void 0) return e.textContent = "";
3128
3127
  const r = s || document.createTextNode("");
3129
3128
  if (t.length) {
@@ -3138,14 +3137,14 @@ function qe(e, t, n, s) {
3138
3137
  } else e.insertBefore(r, n);
3139
3138
  return [r];
3140
3139
  }
3141
- function Fl() {
3140
+ function Bl() {
3142
3141
  return _.getNextContextId();
3143
3142
  }
3144
- var Kl = "http://www.w3.org/2000/svg";
3143
+ var Fl = "http://www.w3.org/2000/svg";
3145
3144
  function Tr(e, t = !1) {
3146
- return t ? document.createElementNS(Kl, e) : document.createElement(e);
3145
+ return t ? document.createElementNS(Fl, e) : document.createElement(e);
3147
3146
  }
3148
- function Hu(e) {
3147
+ function qu(e) {
3149
3148
  const {
3150
3149
  useShadow: t
3151
3150
  } = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = Es();
@@ -3155,7 +3154,7 @@ function Hu(e) {
3155
3154
  const l = s();
3156
3155
  if (l instanceof HTMLHeadElement) {
3157
3156
  const [c, u] = K(!1), d = () => u(!0);
3158
- Me((f) => Fn(l, () => c() ? f() : a(), null)), At(d);
3157
+ Me((f) => Fn(l, () => c() ? f() : a(), null)), Tt(d);
3159
3158
  } else {
3160
3159
  const c = Tr(e.isSVG ? "g" : "div", e.isSVG), u = t && c.attachShadow ? c.attachShadow({
3161
3160
  mode: "open"
@@ -3165,13 +3164,13 @@ function Hu(e) {
3165
3164
  return n.parentNode;
3166
3165
  },
3167
3166
  configurable: !0
3168
- }), Fn(u, a), l.appendChild(c), e.ref && e.ref(c), At(() => l.removeChild(c));
3167
+ }), Fn(u, a), l.appendChild(c), e.ref && e.ref(c), Tt(() => l.removeChild(c));
3169
3168
  }
3170
3169
  }, void 0, {
3171
3170
  render: !i
3172
3171
  }), n;
3173
3172
  }
3174
- function Vl(e, t) {
3173
+ function Kl(e, t) {
3175
3174
  const n = ee(e);
3176
3175
  return ee(() => {
3177
3176
  const s = n();
@@ -3179,16 +3178,16 @@ function Vl(e, t) {
3179
3178
  case "function":
3180
3179
  return ne(() => s(t));
3181
3180
  case "string":
3182
- const r = bl.has(s), a = _.context ? Ml() : Tr(s, r);
3183
- return kl(a, t, r), a;
3181
+ const r = Pl.has(s), a = _.context ? Ul() : Tr(s, r);
3182
+ return Dl(a, t, r), a;
3184
3183
  }
3185
3184
  });
3186
3185
  }
3187
- function qu(e) {
3188
- const [, t] = El(e, ["component"]);
3189
- return Vl(() => e.component, t);
3186
+ function $u(e) {
3187
+ const [, t] = ml(e, ["component"]);
3188
+ return Kl(() => e.component, t);
3190
3189
  }
3191
- var Hl = class {
3190
+ var Vl = class {
3192
3191
  constructor() {
3193
3192
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
3194
3193
  }
@@ -3206,7 +3205,7 @@ var Hl = class {
3206
3205
  }
3207
3206
  }, Sr = class {
3208
3207
  constructor(e) {
3209
- this.generateIdentifier = e, this.kv = new Hl();
3208
+ this.generateIdentifier = e, this.kv = new Vl();
3210
3209
  }
3211
3210
  register(e, t) {
3212
3211
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -3220,7 +3219,7 @@ var Hl = class {
3220
3219
  getValue(e) {
3221
3220
  return this.kv.getByKey(e);
3222
3221
  }
3223
- }, ql = class extends Sr {
3222
+ }, Hl = class extends Sr {
3224
3223
  constructor() {
3225
3224
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3226
3225
  }
@@ -3231,7 +3230,7 @@ var Hl = class {
3231
3230
  return this.classToAllowedProps.get(e);
3232
3231
  }
3233
3232
  };
3234
- function $l(e) {
3233
+ function ql(e) {
3235
3234
  if ("values" in Object)
3236
3235
  return Object.values(e);
3237
3236
  const t = [];
@@ -3239,8 +3238,8 @@ function $l(e) {
3239
3238
  e.hasOwnProperty(n) && t.push(e[n]);
3240
3239
  return t;
3241
3240
  }
3242
- function Ql(e, t) {
3243
- const n = $l(e);
3241
+ function $l(e, t) {
3242
+ const n = ql(e);
3244
3243
  if ("find" in n)
3245
3244
  return n.find(t);
3246
3245
  const s = n;
@@ -3250,7 +3249,7 @@ function Ql(e, t) {
3250
3249
  return a;
3251
3250
  }
3252
3251
  }
3253
- function ct(e, t) {
3252
+ function ut(e, t) {
3254
3253
  Object.entries(e).forEach(([n, s]) => t(s, n));
3255
3254
  }
3256
3255
  function Zt(e, t) {
@@ -3263,7 +3262,7 @@ function Ts(e, t) {
3263
3262
  return s;
3264
3263
  }
3265
3264
  }
3266
- var Wl = class {
3265
+ var Ql = class {
3267
3266
  constructor() {
3268
3267
  this.transfomers = {};
3269
3268
  }
@@ -3271,12 +3270,12 @@ var Wl = class {
3271
3270
  this.transfomers[e.name] = e;
3272
3271
  }
3273
3272
  findApplicable(e) {
3274
- return Ql(this.transfomers, (t) => t.isApplicable(e));
3273
+ return $l(this.transfomers, (t) => t.isApplicable(e));
3275
3274
  }
3276
3275
  findByName(e) {
3277
3276
  return this.transfomers[e];
3278
3277
  }
3279
- }, zl = (e) => Object.prototype.toString.call(e).slice(8, -1), _r = (e) => typeof e > "u", jl = (e) => e === null, _t = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Vn = (e) => _t(e) && Object.keys(e).length === 0, Oe = (e) => Array.isArray(e), Yl = (e) => typeof e == "string", Jl = (e) => typeof e == "number" && !isNaN(e), Zl = (e) => typeof e == "boolean", Xl = (e) => e instanceof RegExp, wt = (e) => e instanceof Map, Pt = (e) => e instanceof Set, wr = (e) => zl(e) === "Symbol", ec = (e) => e instanceof Date && !isNaN(e.valueOf()), tc = (e) => e instanceof Error, Ss = (e) => typeof e == "number" && isNaN(e), nc = (e) => Zl(e) || jl(e) || _r(e) || Jl(e) || Yl(e) || wr(e), sc = (e) => typeof e == "bigint", rc = (e) => e === 1 / 0 || e === -1 / 0, ac = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ic = (e) => e instanceof URL, Pr = (e) => e.replace(/\./g, "\\."), xn = (e) => e.map(String).map(Pr).join("."), Et = (e) => {
3278
+ }, Wl = (e) => Object.prototype.toString.call(e).slice(8, -1), _r = (e) => typeof e > "u", zl = (e) => e === null, wt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Vn = (e) => wt(e) && Object.keys(e).length === 0, Oe = (e) => Array.isArray(e), jl = (e) => typeof e == "string", Yl = (e) => typeof e == "number" && !isNaN(e), Jl = (e) => typeof e == "boolean", Zl = (e) => e instanceof RegExp, Pt = (e) => e instanceof Map, bt = (e) => e instanceof Set, wr = (e) => Wl(e) === "Symbol", Xl = (e) => e instanceof Date && !isNaN(e.valueOf()), ec = (e) => e instanceof Error, Ss = (e) => typeof e == "number" && isNaN(e), tc = (e) => Jl(e) || zl(e) || _r(e) || Yl(e) || jl(e) || wr(e), nc = (e) => typeof e == "bigint", sc = (e) => e === 1 / 0 || e === -1 / 0, rc = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ac = (e) => e instanceof URL, Pr = (e) => e.replace(/\./g, "\\."), xn = (e) => e.map(String).map(Pr).join("."), pt = (e) => {
3280
3279
  const t = [];
3281
3280
  let n = "";
3282
3281
  for (let r = 0; r < e.length; r++) {
@@ -3305,9 +3304,9 @@ function Ae(e, t, n, s) {
3305
3304
  var br = [
3306
3305
  Ae(_r, "undefined", () => null, () => {
3307
3306
  }),
3308
- Ae(sc, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3309
- Ae(ec, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3310
- Ae(tc, "Error", (e, t) => {
3307
+ Ae(nc, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3308
+ Ae(Xl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3309
+ Ae(ec, "Error", (e, t) => {
3311
3310
  const n = {
3312
3311
  name: e.name,
3313
3312
  message: e.message
@@ -3321,22 +3320,22 @@ var br = [
3321
3320
  n[s] = e[s];
3322
3321
  }), n;
3323
3322
  }),
3324
- Ae(Xl, "regexp", (e) => "" + e, (e) => {
3323
+ Ae(Zl, "regexp", (e) => "" + e, (e) => {
3325
3324
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
3326
3325
  return new RegExp(t, n);
3327
3326
  }),
3328
3327
  Ae(
3329
- Pt,
3328
+ bt,
3330
3329
  "set",
3331
3330
  // (sets only exist in es6+)
3332
3331
  // eslint-disable-next-line es5/no-es6-methods
3333
3332
  (e) => [...e.values()],
3334
3333
  (e) => new Set(e)
3335
3334
  ),
3336
- Ae(wt, "map", (e) => [...e.entries()], (e) => new Map(e)),
3337
- Ae((e) => Ss(e) || rc(e), "number", (e) => Ss(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3335
+ Ae(Pt, "map", (e) => [...e.entries()], (e) => new Map(e)),
3336
+ Ae((e) => Ss(e) || sc(e), "number", (e) => Ss(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3338
3337
  Ae((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
3339
- Ae(ic, "URL", (e) => e.toString(), (e) => new URL(e))
3338
+ Ae(ac, "URL", (e) => e.toString(), (e) => new URL(e))
3340
3339
  ];
3341
3340
  function Sn(e, t, n, s) {
3342
3341
  return {
@@ -3351,7 +3350,7 @@ var vr = Sn((e, t) => wr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
3351
3350
  if (!s)
3352
3351
  throw new Error("Trying to deserialize unknown symbol");
3353
3352
  return s;
3354
- }), oc = [
3353
+ }), ic = [
3355
3354
  Int8Array,
3356
3355
  Uint8Array,
3357
3356
  Int16Array,
@@ -3361,8 +3360,8 @@ var vr = Sn((e, t) => wr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
3361
3360
  Float32Array,
3362
3361
  Float64Array,
3363
3362
  Uint8ClampedArray
3364
- ].reduce((e, t) => (e[t.name] = t, e), {}), Nr = Sn(ac, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3365
- const n = oc[t[1]];
3363
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Nr = Sn(rc, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3364
+ const n = ic[t[1]];
3366
3365
  if (!n)
3367
3366
  throw new Error("Trying to deserialize unknown typed array");
3368
3367
  return new n(e);
@@ -3388,8 +3387,8 @@ var Cr = Sn(Ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
3388
3387
  if (!s)
3389
3388
  throw new Error("Trying to deserialize unknown custom value");
3390
3389
  return s.deserialize(e);
3391
- }), lc = [Cr, vr, Lr, Nr], _s = (e, t) => {
3392
- const n = Ts(lc, (r) => r.isApplicable(e, t));
3390
+ }), oc = [Cr, vr, Lr, Nr], _s = (e, t) => {
3391
+ const n = Ts(oc, (r) => r.isApplicable(e, t));
3393
3392
  if (n)
3394
3393
  return {
3395
3394
  value: n.transform(e, t),
@@ -3405,7 +3404,7 @@ var Cr = Sn(Ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
3405
3404
  br.forEach((e) => {
3406
3405
  Gr[e.annotation] = e;
3407
3406
  });
3408
- var cc = (e, t, n) => {
3407
+ var lc = (e, t, n) => {
3409
3408
  if (Oe(t))
3410
3409
  switch (t[0]) {
3411
3410
  case "symbol":
@@ -3425,7 +3424,7 @@ var cc = (e, t, n) => {
3425
3424
  throw new Error("Unknown transformation: " + t);
3426
3425
  return s.untransform(e, n);
3427
3426
  }
3428
- }, $e = (e, t) => {
3427
+ }, Qe = (e, t) => {
3429
3428
  if (t > e.size)
3430
3429
  throw new Error("index out of bounds");
3431
3430
  const n = e.keys();
@@ -3441,14 +3440,14 @@ function xr(e) {
3441
3440
  if (Zt(e, "constructor"))
3442
3441
  throw new Error("constructor is not allowed as a property");
3443
3442
  }
3444
- var uc = (e, t) => {
3443
+ var cc = (e, t) => {
3445
3444
  xr(t);
3446
3445
  for (let n = 0; n < t.length; n++) {
3447
3446
  const s = t[n];
3448
- if (Pt(e))
3449
- e = $e(e, +s);
3450
- else if (wt(e)) {
3451
- const r = +s, a = +t[++n] == 0 ? "key" : "value", i = $e(e, r);
3447
+ if (bt(e))
3448
+ e = Qe(e, +s);
3449
+ else if (Pt(e)) {
3450
+ const r = +s, a = +t[++n] == 0 ? "key" : "value", i = Qe(e, r);
3452
3451
  switch (a) {
3453
3452
  case "key":
3454
3453
  e = i;
@@ -3470,15 +3469,15 @@ var uc = (e, t) => {
3470
3469
  if (Oe(s)) {
3471
3470
  const l = +i;
3472
3471
  s = s[l];
3473
- } else if (_t(s))
3472
+ } else if (wt(s))
3474
3473
  s = s[i];
3475
- else if (Pt(s)) {
3474
+ else if (bt(s)) {
3476
3475
  const l = +i;
3477
- s = $e(s, l);
3478
- } else if (wt(s)) {
3476
+ s = Qe(s, l);
3477
+ } else if (Pt(s)) {
3479
3478
  if (a === t.length - 2)
3480
3479
  break;
3481
- const c = +i, u = +t[++a] == 0 ? "key" : "value", d = $e(s, c);
3480
+ const c = +i, u = +t[++a] == 0 ? "key" : "value", d = Qe(s, c);
3482
3481
  switch (u) {
3483
3482
  case "key":
3484
3483
  s = d;
@@ -3490,12 +3489,12 @@ var uc = (e, t) => {
3490
3489
  }
3491
3490
  }
3492
3491
  const r = t[t.length - 1];
3493
- if (Oe(s) ? s[+r] = n(s[+r]) : _t(s) && (s[r] = n(s[r])), Pt(s)) {
3494
- const a = $e(s, +r), i = n(a);
3492
+ if (Oe(s) ? s[+r] = n(s[+r]) : wt(s) && (s[r] = n(s[r])), bt(s)) {
3493
+ const a = Qe(s, +r), i = n(a);
3495
3494
  a !== i && (s.delete(a), s.add(i));
3496
3495
  }
3497
- if (wt(s)) {
3498
- const a = +t[t.length - 2], i = $e(s, a);
3496
+ if (Pt(s)) {
3497
+ const a = +t[t.length - 2], i = Qe(s, a);
3499
3498
  switch (+r == 0 ? "key" : "value") {
3500
3499
  case "key": {
3501
3500
  const c = n(i);
@@ -3514,41 +3513,41 @@ function qn(e, t, n = []) {
3514
3513
  if (!e)
3515
3514
  return;
3516
3515
  if (!Oe(e)) {
3517
- ct(e, (a, i) => qn(a, t, [...n, ...Et(i)]));
3516
+ ut(e, (a, i) => qn(a, t, [...n, ...pt(i)]));
3518
3517
  return;
3519
3518
  }
3520
3519
  const [s, r] = e;
3521
- r && ct(r, (a, i) => {
3522
- qn(a, t, [...n, ...Et(i)]);
3520
+ r && ut(r, (a, i) => {
3521
+ qn(a, t, [...n, ...pt(i)]);
3523
3522
  }), t(s, n);
3524
3523
  }
3525
- function dc(e, t, n) {
3524
+ function uc(e, t, n) {
3526
3525
  return qn(t, (s, r) => {
3527
- e = Hn(e, r, (a) => cc(a, s, n));
3526
+ e = Hn(e, r, (a) => lc(a, s, n));
3528
3527
  }), e;
3529
3528
  }
3530
- function fc(e, t) {
3529
+ function dc(e, t) {
3531
3530
  function n(s, r) {
3532
- const a = uc(e, Et(r));
3533
- s.map(Et).forEach((i) => {
3531
+ const a = cc(e, pt(r));
3532
+ s.map(pt).forEach((i) => {
3534
3533
  e = Hn(e, i, () => a);
3535
3534
  });
3536
3535
  }
3537
3536
  if (Oe(t)) {
3538
3537
  const [s, r] = t;
3539
3538
  s.forEach((a) => {
3540
- e = Hn(e, Et(a), () => e);
3541
- }), r && ct(r, n);
3539
+ e = Hn(e, pt(a), () => e);
3540
+ }), r && ut(r, n);
3542
3541
  } else
3543
- ct(t, n);
3542
+ ut(t, n);
3544
3543
  return e;
3545
3544
  }
3546
- var hc = (e, t) => _t(e) || Oe(e) || wt(e) || Pt(e) || Ir(e, t);
3547
- function gc(e, t, n) {
3545
+ var fc = (e, t) => wt(e) || Oe(e) || Pt(e) || bt(e) || Ir(e, t);
3546
+ function hc(e, t, n) {
3548
3547
  const s = n.get(e);
3549
3548
  s ? s.push(t) : n.set(e, [t]);
3550
3549
  }
3551
- function mc(e, t) {
3550
+ function gc(e, t) {
3552
3551
  const n = {};
3553
3552
  let s;
3554
3553
  return e.forEach((r) => {
@@ -3560,16 +3559,16 @@ function mc(e, t) {
3560
3559
  }), s ? Vn(n) ? [s] : [s, n] : Vn(n) ? void 0 : n;
3561
3560
  }
3562
3561
  var Or = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3563
- const l = nc(e);
3562
+ const l = tc(e);
3564
3563
  if (!l) {
3565
- gc(e, r, t);
3564
+ hc(e, r, t);
3566
3565
  const h = i.get(e);
3567
3566
  if (h)
3568
3567
  return s ? {
3569
3568
  transformedValue: null
3570
3569
  } : h;
3571
3570
  }
3572
- if (!hc(e, n)) {
3571
+ if (!fc(e, n)) {
3573
3572
  const h = _s(e, n), A = h ? {
3574
3573
  transformedValue: h.value,
3575
3574
  annotations: [h.type]
@@ -3583,11 +3582,11 @@ var Or = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3583
3582
  transformedValue: null
3584
3583
  };
3585
3584
  const c = _s(e, n), u = (c == null ? void 0 : c.value) ?? e, d = Oe(u) ? [] : {}, f = {};
3586
- ct(u, (h, A) => {
3585
+ ut(u, (h, A) => {
3587
3586
  if (A === "__proto__" || A === "constructor" || A === "prototype")
3588
3587
  throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);
3589
3588
  const S = Or(h, t, n, s, [...r, A], [...a, e], i);
3590
- d[A] = S.transformedValue, Oe(S.annotations) ? f[A] = S.annotations : _t(S.annotations) && ct(S.annotations, (b, p) => {
3589
+ d[A] = S.transformedValue, Oe(S.annotations) ? f[A] = S.annotations : wt(S.annotations) && ut(S.annotations, (b, p) => {
3591
3590
  f[Pr(A) + "." + p] = b;
3592
3591
  });
3593
3592
  });
@@ -3606,13 +3605,13 @@ function Dr(e) {
3606
3605
  function ws(e) {
3607
3606
  return Dr(e) === "Array";
3608
3607
  }
3609
- function Ec(e) {
3608
+ function mc(e) {
3610
3609
  if (Dr(e) !== "Object")
3611
3610
  return !1;
3612
3611
  const t = Object.getPrototypeOf(e);
3613
3612
  return !!t && t.constructor === Object && t === Object.prototype;
3614
3613
  }
3615
- function pc(e, t, n, s, r) {
3614
+ function Ec(e, t, n, s, r) {
3616
3615
  const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
3617
3616
  a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
3618
3617
  value: n,
@@ -3624,14 +3623,14 @@ function pc(e, t, n, s, r) {
3624
3623
  function $n(e, t = {}) {
3625
3624
  if (ws(e))
3626
3625
  return e.map((r) => $n(r, t));
3627
- if (!Ec(e))
3626
+ if (!mc(e))
3628
3627
  return e;
3629
3628
  const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
3630
3629
  return [...n, ...s].reduce((r, a) => {
3631
3630
  if (ws(t.props) && !t.props.includes(a))
3632
3631
  return r;
3633
3632
  const i = e[a], l = $n(i, t);
3634
- return pc(r, a, l, e, t.nonenumerable), r;
3633
+ return Ec(r, a, l, e, t.nonenumerable), r;
3635
3634
  }, {});
3636
3635
  }
3637
3636
  var U = class {
@@ -3639,7 +3638,7 @@ var U = class {
3639
3638
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3640
3639
  */
3641
3640
  constructor({ dedupe: e = !1 } = {}) {
3642
- this.classRegistry = new ql(), this.symbolRegistry = new Sr((t) => t.description ?? ""), this.customTransformerRegistry = new Wl(), this.allowedErrorProps = [], this.dedupe = e;
3641
+ this.classRegistry = new Hl(), this.symbolRegistry = new Sr((t) => t.description ?? ""), this.customTransformerRegistry = new Ql(), this.allowedErrorProps = [], this.dedupe = e;
3643
3642
  }
3644
3643
  serialize(e) {
3645
3644
  const t = /* @__PURE__ */ new Map(), n = Or(e, t, this, this.dedupe), s = {
@@ -3649,7 +3648,7 @@ var U = class {
3649
3648
  ...s.meta,
3650
3649
  values: n.annotations
3651
3650
  });
3652
- const r = mc(t, this.dedupe);
3651
+ const r = gc(t, this.dedupe);
3653
3652
  return r && (s.meta = {
3654
3653
  ...s.meta,
3655
3654
  referentialEqualities: r
@@ -3658,7 +3657,7 @@ var U = class {
3658
3657
  deserialize(e) {
3659
3658
  const { json: t, meta: n } = e;
3660
3659
  let s = $n(t);
3661
- return n != null && n.values && (s = dc(s, n.values, this)), n != null && n.referentialEqualities && (s = fc(s, n.referentialEqualities)), s;
3660
+ return n != null && n.values && (s = uc(s, n.values, this)), n != null && n.referentialEqualities && (s = dc(s, n.referentialEqualities)), s;
3662
3661
  }
3663
3662
  stringify(e) {
3664
3663
  return JSON.stringify(this.serialize(e));
@@ -3691,50 +3690,50 @@ U.registerClass = U.defaultInstance.registerClass.bind(U.defaultInstance);
3691
3690
  U.registerSymbol = U.defaultInstance.registerSymbol.bind(U.defaultInstance);
3692
3691
  U.registerCustom = U.defaultInstance.registerCustom.bind(U.defaultInstance);
3693
3692
  U.allowErrorProps = U.defaultInstance.allowErrorProps.bind(U.defaultInstance);
3694
- var yc = U.serialize, $u = U.stringify;
3695
- function Qu(e) {
3693
+ var pc = U.serialize, Qu = U.stringify;
3694
+ function Wu(e) {
3696
3695
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
3697
3696
  }
3698
- function Wu(e, t) {
3697
+ function zu(e, t) {
3699
3698
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
3700
3699
  }
3701
- function zu({
3700
+ function ju({
3702
3701
  queryState: e,
3703
3702
  observerCount: t,
3704
3703
  isStale: n
3705
3704
  }) {
3706
3705
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
3707
3706
  }
3708
- function ju({
3707
+ function Yu({
3709
3708
  status: e,
3710
3709
  isPaused: t
3711
3710
  }) {
3712
3711
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
3713
3712
  }
3714
- function Yu(e) {
3713
+ function Ju(e) {
3715
3714
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
3716
3715
  }
3717
- var Ju = (e, t = !1) => {
3716
+ var Zu = (e, t = !1) => {
3718
3717
  const {
3719
3718
  json: n
3720
- } = yc(e);
3719
+ } = pc(e);
3721
3720
  return JSON.stringify(n, null, t ? 2 : void 0);
3722
- }, Wt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Ac = (e, t) => e.queryHash.localeCompare(t.queryHash), kr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Tc = (e, t) => Wt(e) === Wt(t) ? kr(e, t) : Wt(e) > Wt(t) ? 1 : -1, Zu = {
3723
- status: Tc,
3724
- "query hash": Ac,
3721
+ }, Wt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, yc = (e, t) => e.queryHash.localeCompare(t.queryHash), kr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Ac = (e, t) => Wt(e) === Wt(t) ? kr(e, t) : Wt(e) > Wt(t) ? 1 : -1, Xu = {
3722
+ status: Ac,
3723
+ "query hash": yc,
3725
3724
  "last updated": kr
3726
- }, zt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Rr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Sc = (e, t) => zt(e) === zt(t) ? Rr(e, t) : zt(e) > zt(t) ? 1 : -1, Xu = {
3727
- status: Sc,
3725
+ }, zt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Rr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Tc = (e, t) => zt(e) === zt(t) ? Rr(e, t) : zt(e) > zt(t) ? 1 : -1, ed = {
3726
+ status: Tc,
3728
3727
  "last updated": Rr
3729
- }, ed = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), td = () => {
3728
+ }, td = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), nd = () => {
3730
3729
  const [e, t] = K("dark");
3731
- return al(() => {
3730
+ return rl(() => {
3732
3731
  const n = window.matchMedia("(prefers-color-scheme: dark)");
3733
3732
  t(n.matches ? "dark" : "light");
3734
3733
  const s = (r) => {
3735
3734
  t(r.matches ? "dark" : "light");
3736
3735
  };
3737
- n.addEventListener("change", s), At(() => n.removeEventListener("change", s));
3736
+ n.addEventListener("change", s), Tt(() => n.removeEventListener("change", s));
3738
3737
  }), e;
3739
3738
  }, jt = (e, t, n) => {
3740
3739
  if (t.length === 0)
@@ -3800,23 +3799,23 @@ var Ju = (e, t = !1) => {
3800
3799
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
3801
3800
  const s = document.createElement("style"), r = document.createTextNode("");
3802
3801
  s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
3803
- }, Qe, bt, vt, Nt, Re, It, We, ze, je, Ye, Je, Ct, Ze, Xe, Lt, Ns, _c = (Ns = class {
3802
+ }, We, vt, Nt, It, Re, Ct, ze, je, Ye, Je, Ze, Lt, Xe, et, Gt, Ns, Sc = (Ns = class {
3804
3803
  constructor(e) {
3805
- x(this, Qe);
3806
- x(this, bt);
3807
- x(this, vt);
3808
- x(this, Nt);
3809
- x(this, Re, !1);
3810
- x(this, It);
3811
- x(this, We);
3812
- x(this, ze);
3813
- x(this, je);
3814
- x(this, Ye);
3815
- x(this, Je);
3816
- x(this, Ct);
3817
- x(this, Ze);
3818
- x(this, Xe);
3819
- x(this, Lt);
3804
+ G(this, We);
3805
+ G(this, vt);
3806
+ G(this, Nt);
3807
+ G(this, It);
3808
+ G(this, Re, !1);
3809
+ G(this, Ct);
3810
+ G(this, ze);
3811
+ G(this, je);
3812
+ G(this, Ye);
3813
+ G(this, Je);
3814
+ G(this, Ze);
3815
+ G(this, Lt);
3816
+ G(this, Xe);
3817
+ G(this, et);
3818
+ G(this, Gt);
3820
3819
  const {
3821
3820
  client: t,
3822
3821
  queryFlavor: n,
@@ -3831,44 +3830,44 @@ var Ju = (e, t = !1) => {
3831
3830
  hideDisabledQueries: f,
3832
3831
  theme: m
3833
3832
  } = e;
3834
- I(this, Qe, K(t)), I(this, vt, n), I(this, Nt, s), I(this, bt, r), I(this, It, u), I(this, We, d), I(this, ze, K(a)), I(this, je, K(i)), I(this, Ye, K(l)), I(this, Je, K(c)), I(this, Ct, K(f)), I(this, Xe, K(m));
3833
+ N(this, We, K(t)), N(this, Nt, n), N(this, It, s), N(this, vt, r), N(this, Ct, u), N(this, ze, d), N(this, je, K(a)), N(this, Ye, K(i)), N(this, Je, K(l)), N(this, Ze, K(c)), N(this, Lt, K(f)), N(this, et, K(m));
3835
3834
  }
3836
3835
  setButtonPosition(e) {
3837
- T(this, ze)[1](e);
3836
+ T(this, je)[1](e);
3838
3837
  }
3839
3838
  setPosition(e) {
3840
- T(this, je)[1](e);
3839
+ T(this, Ye)[1](e);
3841
3840
  }
3842
3841
  setInitialIsOpen(e) {
3843
- T(this, Ye)[1](e);
3842
+ T(this, Je)[1](e);
3844
3843
  }
3845
3844
  setErrorTypes(e) {
3846
- T(this, Je)[1](e);
3845
+ T(this, Ze)[1](e);
3847
3846
  }
3848
3847
  setClient(e) {
3849
- T(this, Qe)[1](e);
3848
+ T(this, We)[1](e);
3850
3849
  }
3851
3850
  setTheme(e) {
3852
- T(this, Xe)[1](e);
3851
+ T(this, et)[1](e);
3853
3852
  }
3854
3853
  mount(e) {
3855
3854
  if (T(this, Re))
3856
3855
  throw new Error("Devtools is already mounted");
3857
3856
  const t = yr(() => {
3858
- const n = this, [s] = T(this, ze), [r] = T(this, je), [a] = T(this, Ye), [i] = T(this, Je), [l] = T(this, Ct), [c] = T(this, Qe), [u] = T(this, Xe);
3857
+ const n = this, [s] = T(this, je), [r] = T(this, Ye), [a] = T(this, Je), [i] = T(this, Ze), [l] = T(this, Lt), [c] = T(this, We), [u] = T(this, et);
3859
3858
  let d;
3860
- return T(this, Ze) ? d = T(this, Ze) : (d = Er(() => import("./WDYDFRGG-JMA9G17v.js")), I(this, Ze, d)), Ur(T(this, It), T(this, We)), gr(d, mr({
3859
+ return T(this, Xe) ? d = T(this, Xe) : (d = Er(() => import("./WDYDFRGG-1zoPbvu7.js")), N(this, Xe, d)), Ur(T(this, Ct), T(this, ze)), gr(d, mr({
3861
3860
  get queryFlavor() {
3862
- return T(n, vt);
3861
+ return T(n, Nt);
3863
3862
  },
3864
3863
  get version() {
3865
- return T(n, Nt);
3864
+ return T(n, It);
3866
3865
  },
3867
3866
  get onlineManager() {
3868
- return T(n, bt);
3867
+ return T(n, vt);
3869
3868
  },
3870
3869
  get shadowDOMTarget() {
3871
- return T(n, We);
3870
+ return T(n, ze);
3872
3871
  }
3873
3872
  }, {
3874
3873
  get client() {
@@ -3894,32 +3893,32 @@ var Ju = (e, t = !1) => {
3894
3893
  }
3895
3894
  }));
3896
3895
  }, e);
3897
- I(this, Re, !0), I(this, Lt, t);
3896
+ N(this, Re, !0), N(this, Gt, t);
3898
3897
  }
3899
3898
  unmount() {
3900
3899
  var e;
3901
3900
  if (!T(this, Re))
3902
3901
  throw new Error("Devtools is not mounted");
3903
- (e = T(this, Lt)) == null || e.call(this), I(this, Re, !1);
3902
+ (e = T(this, Gt)) == null || e.call(this), N(this, Re, !1);
3904
3903
  }
3905
- }, Qe = new WeakMap(), bt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), Re = new WeakMap(), It = new WeakMap(), We = new WeakMap(), ze = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Ct = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), Lt = new WeakMap(), Ns), et, Gt, xt, Ot, Ue, Dt, tt, nt, st, rt, at, kt, it, ot, lt, Rt, Is, wc = (Is = class {
3904
+ }, We = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), It = new WeakMap(), Re = new WeakMap(), Ct = new WeakMap(), ze = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), Lt = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), Gt = new WeakMap(), Ns), tt, xt, Ot, Dt, Ue, kt, nt, st, rt, at, it, Rt, ot, lt, ct, Ut, Is, _c = (Is = class {
3906
3905
  constructor(e) {
3907
- x(this, et);
3908
- x(this, Gt);
3909
- x(this, xt);
3910
- x(this, Ot);
3911
- x(this, Ue, !1);
3912
- x(this, Dt);
3913
- x(this, tt);
3914
- x(this, nt);
3915
- x(this, st);
3916
- x(this, rt);
3917
- x(this, at);
3918
- x(this, kt);
3919
- x(this, it);
3920
- x(this, ot);
3921
- x(this, lt);
3922
- x(this, Rt);
3906
+ G(this, tt);
3907
+ G(this, xt);
3908
+ G(this, Ot);
3909
+ G(this, Dt);
3910
+ G(this, Ue, !1);
3911
+ G(this, kt);
3912
+ G(this, nt);
3913
+ G(this, st);
3914
+ G(this, rt);
3915
+ G(this, at);
3916
+ G(this, it);
3917
+ G(this, Rt);
3918
+ G(this, ot);
3919
+ G(this, lt);
3920
+ G(this, ct);
3921
+ G(this, Ut);
3923
3922
  const {
3924
3923
  client: t,
3925
3924
  queryFlavor: n,
@@ -3935,47 +3934,47 @@ var Ju = (e, t = !1) => {
3935
3934
  hideDisabledQueries: m,
3936
3935
  theme: h
3937
3936
  } = e;
3938
- I(this, et, K(t)), I(this, xt, n), I(this, Ot, s), I(this, Gt, r), I(this, Dt, u), I(this, tt, d), I(this, nt, K(a)), I(this, st, K(i)), I(this, rt, K(l)), I(this, at, K(c)), I(this, kt, K(m)), I(this, it, K(f)), I(this, lt, K(h));
3937
+ N(this, tt, K(t)), N(this, Ot, n), N(this, Dt, s), N(this, xt, r), N(this, kt, u), N(this, nt, d), N(this, st, K(a)), N(this, rt, K(i)), N(this, at, K(l)), N(this, it, K(c)), N(this, Rt, K(m)), N(this, ot, K(f)), N(this, ct, K(h));
3939
3938
  }
3940
3939
  setButtonPosition(e) {
3941
- T(this, nt)[1](e);
3940
+ T(this, st)[1](e);
3942
3941
  }
3943
3942
  setPosition(e) {
3944
- T(this, st)[1](e);
3943
+ T(this, rt)[1](e);
3945
3944
  }
3946
3945
  setInitialIsOpen(e) {
3947
- T(this, rt)[1](e);
3946
+ T(this, at)[1](e);
3948
3947
  }
3949
3948
  setErrorTypes(e) {
3950
- T(this, at)[1](e);
3949
+ T(this, it)[1](e);
3951
3950
  }
3952
3951
  setClient(e) {
3953
- T(this, et)[1](e);
3952
+ T(this, tt)[1](e);
3954
3953
  }
3955
3954
  setOnClose(e) {
3956
- T(this, it)[1](() => e);
3955
+ T(this, ot)[1](() => e);
3957
3956
  }
3958
3957
  setTheme(e) {
3959
- T(this, lt)[1](e);
3958
+ T(this, ct)[1](e);
3960
3959
  }
3961
3960
  mount(e) {
3962
3961
  if (T(this, Ue))
3963
3962
  throw new Error("Devtools is already mounted");
3964
3963
  const t = yr(() => {
3965
- const n = this, [s] = T(this, nt), [r] = T(this, st), [a] = T(this, rt), [i] = T(this, at), [l] = T(this, kt), [c] = T(this, et), [u] = T(this, it), [d] = T(this, lt);
3964
+ const n = this, [s] = T(this, st), [r] = T(this, rt), [a] = T(this, at), [i] = T(this, it), [l] = T(this, Rt), [c] = T(this, tt), [u] = T(this, ot), [d] = T(this, ct);
3966
3965
  let f;
3967
- return T(this, ot) ? f = T(this, ot) : (f = Er(() => import("./2SSKDMRQ-Ce8xH_EE.js")), I(this, ot, f)), Ur(T(this, Dt), T(this, tt)), gr(f, mr({
3966
+ return T(this, lt) ? f = T(this, lt) : (f = Er(() => import("./2SSKDMRQ-rk5vFzuv.js")), N(this, lt, f)), Ur(T(this, kt), T(this, nt)), gr(f, mr({
3968
3967
  get queryFlavor() {
3969
- return T(n, xt);
3968
+ return T(n, Ot);
3970
3969
  },
3971
3970
  get version() {
3972
- return T(n, Ot);
3971
+ return T(n, Dt);
3973
3972
  },
3974
3973
  get onlineManager() {
3975
- return T(n, Gt);
3974
+ return T(n, xt);
3976
3975
  },
3977
3976
  get shadowDOMTarget() {
3978
- return T(n, tt);
3977
+ return T(n, nt);
3979
3978
  }
3980
3979
  }, {
3981
3980
  get client() {
@@ -4004,17 +4003,17 @@ var Ju = (e, t = !1) => {
4004
4003
  }
4005
4004
  }));
4006
4005
  }, e);
4007
- I(this, Ue, !0), I(this, Rt, t);
4006
+ N(this, Ue, !0), N(this, Ut, t);
4008
4007
  }
4009
4008
  unmount() {
4010
4009
  var e;
4011
4010
  if (!T(this, Ue))
4012
4011
  throw new Error("Devtools is not mounted");
4013
- (e = T(this, Rt)) == null || e.call(this), I(this, Ue, !1);
4012
+ (e = T(this, Ut)) == null || e.call(this), N(this, Ue, !1);
4014
4013
  }
4015
- }, et = new WeakMap(), Gt = new WeakMap(), xt = new WeakMap(), Ot = new WeakMap(), Ue = new WeakMap(), Dt = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Is);
4016
- function Pc(e) {
4017
- const t = Z(e.client), n = j.useRef(null), {
4014
+ }, tt = new WeakMap(), xt = new WeakMap(), Ot = new WeakMap(), Dt = new WeakMap(), Ue = new WeakMap(), kt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), Rt = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Is);
4015
+ function wc(e) {
4016
+ const t = J(e.client), n = j.useRef(null), {
4018
4017
  buttonPosition: s,
4019
4018
  position: r,
4020
4019
  initialIsOpen: a,
@@ -4024,7 +4023,7 @@ function Pc(e) {
4024
4023
  hideDisabledQueries: u,
4025
4024
  theme: d
4026
4025
  } = e, [f] = j.useState(
4027
- new _c({
4026
+ new Sc({
4028
4027
  client: t,
4029
4028
  queryFlavor: "React Query",
4030
4029
  version: "5",
@@ -4055,15 +4054,15 @@ function Pc(e) {
4055
4054
  f.unmount();
4056
4055
  }), [f]), /* @__PURE__ */ o("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
4057
4056
  }
4058
- function bc(e) {
4059
- const t = Z(e.client), n = j.useRef(null), {
4057
+ function Pc(e) {
4058
+ const t = J(e.client), n = j.useRef(null), {
4060
4059
  errorTypes: s,
4061
4060
  styleNonce: r,
4062
4061
  shadowDOMTarget: a,
4063
4062
  hideDisabledQueries: i,
4064
4063
  theme: l
4065
4064
  } = e, [c] = j.useState(
4066
- new wc({
4065
+ new _c({
4067
4066
  client: t,
4068
4067
  queryFlavor: "React Query",
4069
4068
  version: "5",
@@ -4101,16 +4100,16 @@ function bc(e) {
4101
4100
  }
4102
4101
  var Ps = process.env.NODE_ENV !== "development" ? function() {
4103
4102
  return null;
4104
- } : Pc;
4103
+ } : wc;
4105
4104
  process.env.NODE_ENV;
4106
- const vc = Pe(""), Nc = () => {
4105
+ const bc = Pe(""), vc = () => {
4107
4106
  ss("dynamic-page-selector", {
4108
4107
  description: "Dynamic page selector"
4109
4108
  }), ss("enable-add-page-dropdown", {
4110
4109
  description: "Enable add page dropdown"
4111
4110
  });
4112
- }, Ic = () => {
4113
- const { data: e } = he(), { data: t } = Le(), { data: n } = ut(), s = N(), r = G(), a = Q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = le(/* @__PURE__ */ new Map());
4111
+ }, Nc = () => {
4112
+ const { data: e } = ge(), { data: t } = Le(), { data: n } = Ve(), s = I(), r = x(), a = Q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = le(/* @__PURE__ */ new Map());
4114
4113
  return te({
4115
4114
  mutationFn: async ({ block: l }) => {
4116
4115
  const c = l._id, u = (t == null ? void 0 : t.lang) || a, d = `${c}:${u}`;
@@ -4140,7 +4139,7 @@ const vc = Pe(""), Nc = () => {
4140
4139
  }), f;
4141
4140
  }
4142
4141
  });
4143
- }, Cc = () => {
4142
+ }, Ic = () => {
4144
4143
  const [, e] = Ce();
4145
4144
  return W(
4146
4145
  (t, n) => {
@@ -4149,53 +4148,74 @@ const vc = Pe(""), Nc = () => {
4149
4148
  },
4150
4149
  [e]
4151
4150
  );
4152
- }, Lc = () => {
4153
- const e = Cc();
4151
+ }, Cc = () => {
4152
+ const e = Ic();
4154
4153
  return W(
4155
4154
  ({ pageId: t }) => {
4156
4155
  e(t);
4157
4156
  },
4158
4157
  [e]
4159
4158
  );
4160
- }, Gc = {
4161
- SITE_WIDE_USAGE: "SITE_WIDE_USAGE"
4162
4159
  }, Mr = () => {
4163
- const e = G(), t = N(), n = Z();
4160
+ const e = x(), t = I(), n = J();
4164
4161
  return ue({
4165
4162
  queryKey: [E.GET_WEBSITE_DATA],
4166
4163
  staleTime: 300 * 1e3,
4167
4164
  queryFn: async () => {
4168
4165
  const s = await e(t, { action: E.GET_WEBSITE_DATA });
4169
- return n.setQueryData([E.GET_WEBSITE_DRAFT_SETTINGS], s.websiteSettings), n.setQueryData([E.GET_WEBSITE_PAGES], s.websitePages), n.setQueryData([E.GET_PAGE_TYPES], s.pageTypes), n.setQueryData([E.GET_CHANGES], s.changes), n.setQueryData([E.UI_LIBRARIES], s.libraries), n.setQueryData([E.GET_COLLECTIONS], s.collections), n.setQueryData([Gc.SITE_WIDE_USAGE], s.siteWideUsage), s;
4166
+ return n.setQueryData([E.GET_WEBSITE_DRAFT_SETTINGS], s.websiteSettings), n.setQueryData([E.GET_WEBSITE_PAGES], s.websitePages), n.setQueryData([E.GET_PAGE_TYPES], s.pageTypes), n.setQueryData([E.UI_LIBRARIES], s.libraries), n.setQueryData([E.GET_COLLECTIONS], s.collections), s;
4170
4167
  }
4171
4168
  });
4172
- }, xc = V(() => import("./page-lock-C4R_Or95.js")), Oc = V(() => import("./no-language-page-dialog-Bw_oSBFM.js")), Dc = V(() => import("./digital-asset-manager-aSXb6slG.js")), kc = V(() => import("./save-to-lib-BN2EgYkx.js")), Rc = V(() => import("./web-preview-IfmBWYnZ.js"));
4173
- Nc();
4169
+ }, Lc = {
4170
+ SITE_WIDE_USAGE: "SITE_WIDE_USAGE"
4171
+ };
4172
+ function Gc(e) {
4173
+ const t = {};
4174
+ for (const n of e)
4175
+ t[n.id] = {
4176
+ name: n.name,
4177
+ isPartial: fe(n.slug),
4178
+ partialBlocks: n.partialBlocks ? n.partialBlocks.split("|").filter(Boolean) : [],
4179
+ links: n.links ? n.links.split("|").filter(Boolean) : [],
4180
+ designTokens: n.designTokens ?? {}
4181
+ };
4182
+ return t;
4183
+ }
4184
+ const xc = () => {
4185
+ const { data: e } = dt();
4186
+ return ue({
4187
+ queryKey: [Lc.SITE_WIDE_USAGE],
4188
+ queryFn: () => Gc(e ?? []),
4189
+ enabled: !!e,
4190
+ retry: !1
4191
+ });
4192
+ }, Oc = V(() => import("./page-lock-CT54xDQL.js")), Dc = V(() => import("./no-language-page-dialog-3obqd_9-.js")), kc = V(() => import("./digital-asset-manager-B1KUqVJc.js")), Rc = V(() => import("./save-to-lib-CXhaKw5V.js")), Uc = V(() => import("./web-preview-CZVcFxwF.js"));
4193
+ vc();
4174
4194
  gi();
4175
- qr(xo);
4176
- Xo();
4177
- Vr(Dc);
4178
- Hr(kc);
4179
- const Uc = {
4195
+ qr(Go);
4196
+ Zo();
4197
+ Vr(kc);
4198
+ Hr(Rc);
4199
+ const Mc = {
4180
4200
  role: "admin",
4181
4201
  permissions: null
4182
4202
  }, bs = (e) => {
4183
4203
  const { isLoading: t } = Js();
4184
- return t ? /* @__PURE__ */ o(yt, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ o(Mc, { ...e });
4185
- }, Mc = (e) => {
4204
+ return t ? /* @__PURE__ */ o(At, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ o(Bc, { ...e });
4205
+ }, Bc = (e) => {
4186
4206
  const { data: t, isFetching: n, isError: s } = Mr();
4187
- return !t || n ? /* @__PURE__ */ o(yt, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : s ? /* @__PURE__ */ g(yt, { className: "fixed inset-0 bg-white", children: [
4207
+ return !t || n ? /* @__PURE__ */ o(At, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : s ? /* @__PURE__ */ g(At, { className: "fixed inset-0 bg-white", children: [
4188
4208
  /* @__PURE__ */ o("p", { children: "Failed to load website data" }),
4189
4209
  /* @__PURE__ */ o(R, { onClick: () => window.location.reload(), children: "Retry" })
4190
- ] }) : /* @__PURE__ */ o(Bc, { ...e });
4191
- }, Bc = ({ ...e }) => {
4210
+ ] }) : /* @__PURE__ */ o(Fc, { ...e });
4211
+ }, Fc = ({ ...e }) => {
4192
4212
  var Kt;
4193
- const { data: t } = Mr(), { libraries: n, collections: s, pageTypes: r, websiteSettings: a, siteWideUsage: i } = t, l = Q(() => (a == null ? void 0 : a.fallbackLang) || "en", [a]), { data: c, isFetching: u } = Js(), d = c || Uc, [f] = Ce(), m = f.get("page"), { data: h } = he(), { data: A, isFetching: S } = Ro(), { blocks: b } = ko(((Kt = A == null ? void 0 : A.draftPage) == null ? void 0 : Kt.blocks) ?? []), { pageStatus: p } = be(), y = Do(), { onSave: P } = Mo(), { mutateAsync: q } = Ic(), { getPartialBlocks: H, getPartialBlockBlocks: M } = Bo(), { mutateAsync: de } = Ii(), { mutateAsync: C } = Uo(), O = Lc(), [w, v] = k(!1), z = le([]), $ = Q(() => Y(a, "theme", {}) || {}, [a]), oe = Q(() => Y(a, "languages", []) || [], [a]), ve = Q(() => Y(a, "designTokens", {}) || {}, [a]), ye = p === re.EDITING, De = p === re.CHECKING, Ne = S || De;
4194
- J(() => {
4213
+ const { data: t } = Mr(), { data: n } = xc(), { libraries: s, collections: r, pageTypes: a, websiteSettings: i } = t, l = Q(() => (i == null ? void 0 : i.fallbackLang) || "en", [i]), { data: c, isFetching: u } = Js(), d = c || Mc, [f] = Ce(), m = f.get("page"), { data: h } = ge(), { data: A, isFetching: S } = ko(), { blocks: b } = Do(((Kt = A == null ? void 0 : A.draftPage) == null ? void 0 : Kt.blocks) ?? []), { pageStatus: p } = be(), y = Oo(), { onSave: P } = Uo(), { mutateAsync: q } = Nc(), { getPartialBlocks: H, getPartialBlockBlocks: M } = Mo(), { mutateAsync: de } = Ii(), { mutateAsync: C } = Ro(), O = Cc(), [w, v] = k(!1), z = le([]), $ = Q(() => Y(i, "theme", {}) || {}, [i]), oe = Q(() => Y(i, "languages", []) || [], [i]), ve = Q(() => Y(i, "designTokens", {}) || {}, [i]), ye = p === re.EDITING, De = p === re.CHECKING, Ne = S || De;
4214
+ Z(() => {
4195
4215
  z.current = b;
4196
4216
  }, [b]);
4197
- const [ft] = we(vc);
4198
- J(() => {
4217
+ const [ht] = we(bc);
4218
+ Z(() => {
4199
4219
  const B = () => {
4200
4220
  document.hidden ? v(!0) : v(!1);
4201
4221
  };
@@ -4204,26 +4224,26 @@ const Uc = {
4204
4224
  const _n = Q(() => {
4205
4225
  const B = {};
4206
4226
  return d && (B.permissions = Y(d, "permissions", null), B.role = Y(d, "role", "user")), B.pageExternalData = (A == null ? void 0 : A.builderPageData) ?? {}, B;
4207
- }, [d, A]), Ft = Q(() => n == null ? void 0 : n.some((B) => B.isSiteLibrary), [n]), wn = W(
4227
+ }, [d, A]), Ft = Q(() => s == null ? void 0 : s.some((B) => B.isSiteLibrary), [s]), wn = W(
4208
4228
  async (B, ae) => await de({ pageType: B, query: ae }),
4209
4229
  [de]
4210
4230
  );
4211
- return /* @__PURE__ */ g(me, { children: [
4212
- S && /* @__PURE__ */ o(yt, { className: u ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ o(Ke, { className: `animate-spin text-primary ${u ? "h-6 w-6" : "h-5 w-5"}` }) }),
4213
- ft && /* @__PURE__ */ o(
4231
+ return /* @__PURE__ */ g(Ee, { children: [
4232
+ S && /* @__PURE__ */ o(At, { className: u ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ o(Ke, { className: `animate-spin text-primary ${u ? "h-6 w-6" : "h-5 w-5"}` }) }),
4233
+ ht && /* @__PURE__ */ o(
4214
4234
  X,
4215
4235
  {
4216
4236
  fallback: /* @__PURE__ */ o("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }),
4217
- children: /* @__PURE__ */ o(Rc, {})
4237
+ children: /* @__PURE__ */ o(Uc, {})
4218
4238
  }
4219
4239
  ),
4220
4240
  /* @__PURE__ */ o(
4221
4241
  Sa,
4222
4242
  {
4223
- siteWideUsage: i ?? {},
4243
+ siteWideUsage: n ?? {},
4224
4244
  flags: e.flags ? { ...e.flags, librarySite: Ft } : { librarySite: Ft },
4225
4245
  gotoPage: O,
4226
- collections: s ?? [],
4246
+ collections: r ?? [],
4227
4247
  getBlockAsyncProps: q,
4228
4248
  themePresets: e.themePresets ?? [],
4229
4249
  pageId: h == null ? void 0 : h.id,
@@ -4242,7 +4262,7 @@ const Uc = {
4242
4262
  getPartialBlocks: H,
4243
4263
  blocks: S ? [] : b,
4244
4264
  theme: Fa($),
4245
- pageTypes: r,
4265
+ pageTypes: a,
4246
4266
  searchPageTypeItems: wn,
4247
4267
  askAiCallBack: y,
4248
4268
  onSave: async ({ blocks: B, needTranslations: ae }) => {
@@ -4253,12 +4273,12 @@ const Uc = {
4253
4273
  },
4254
4274
  onSaveWebsiteData: async ({ type: B, data: ae }) => (B === "THEME" ? await C({ settings: { theme: ae } }) : B === "DESIGN_TOKENS" && await C({ settings: { designTokens: ae } }), !0),
4255
4275
  ..._n,
4256
- children: /* @__PURE__ */ o(xc, { isFetchingPageData: S })
4276
+ children: /* @__PURE__ */ o(Oc, { isFetchingPageData: S })
4257
4277
  }
4258
4278
  ),
4259
- /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Oc, {}) })
4279
+ /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Dc, {}) })
4260
4280
  ] });
4261
- }, Fc = new ui({
4281
+ }, Kc = new ui({
4262
4282
  defaultOptions: {
4263
4283
  queries: {
4264
4284
  refetchOnWindowFocus: !1,
@@ -4266,9 +4286,9 @@ const Uc = {
4266
4286
  refetchOnMount: !1
4267
4287
  }
4268
4288
  }
4269
- }), nd = (e) => {
4289
+ }), sd = (e) => {
4270
4290
  const [, t] = mn(), [n, s] = k(!1);
4271
- return J(() => (t(
4291
+ return Z(() => (t(
4272
4292
  Rs(e, [
4273
4293
  "apiUrl",
4274
4294
  "usersApiUrl",
@@ -4288,15 +4308,15 @@ const Uc = {
4288
4308
  s(!0);
4289
4309
  }, 200), () => {
4290
4310
  s(!1), t({});
4291
- }), [e, t]), n ? Y(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ g(me, { children: [
4311
+ }), [e, t]), n ? Y(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ g(Ee, { children: [
4292
4312
  /* @__PURE__ */ o(bs, { ...e }),
4293
4313
  /* @__PURE__ */ o(Ps, {})
4294
- ] }) : /* @__PURE__ */ g(di, { client: Fc, children: [
4314
+ ] }) : /* @__PURE__ */ g(di, { client: Kc, children: [
4295
4315
  /* @__PURE__ */ o(bs, { ...e }),
4296
4316
  /* @__PURE__ */ o(Ps, {})
4297
4317
  ] }) : /* @__PURE__ */ o("div", {});
4298
- }, Kc = j.lazy(() => import("./nested-path-selector-content-B4p9qltN.js"));
4299
- function Vc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4318
+ }, Vc = j.lazy(() => import("./nested-path-selector-content-B4p9qltN.js"));
4319
+ function Hc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4300
4320
  const [r, a] = j.useState(!1);
4301
4321
  return /* @__PURE__ */ g(_a, { open: r, onOpenChange: a, children: [
4302
4322
  /* @__PURE__ */ g(dn, { children: [
@@ -4324,7 +4344,7 @@ function Vc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4324
4344
  /* @__PURE__ */ o(hn, { children: "Add field" })
4325
4345
  ] }),
4326
4346
  r && /* @__PURE__ */ o(j.Suspense, { children: /* @__PURE__ */ o(
4327
- Kc,
4347
+ Vc,
4328
4348
  {
4329
4349
  data: e,
4330
4350
  onSelect: t,
@@ -4335,8 +4355,8 @@ function Vc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4335
4355
  ) })
4336
4356
  ] });
4337
4357
  }
4338
- const sd = () => {
4339
- const { data: e } = he(), { data: t } = Le(), n = N(), s = G(), r = Jn(), a = En();
4358
+ const rd = () => {
4359
+ const { data: e } = ge(), { data: t } = Le(), n = I(), s = x(), r = Jn(), a = En();
4340
4360
  return ue({
4341
4361
  queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
4342
4362
  staleTime: 1 / 0,
@@ -4365,18 +4385,18 @@ const sd = () => {
4365
4385
  }),
4366
4386
  enabled: !!(e != null && e.pageType) && !!t.id
4367
4387
  });
4368
- }, rd = () => {
4369
- const { savePageAsync: e } = Fe(), t = Z(), { isLocked: n } = be();
4388
+ }, ad = () => {
4389
+ const { savePageAsync: e } = Fe(), t = J(), { isLocked: n } = be();
4370
4390
  return W(async () => {
4371
4391
  n || await e(), t.invalidateQueries({ queryKey: [E.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [E.GET_BUILDER_PAGE_DATA] });
4372
4392
  }, [e, t, n]);
4373
- }, ad = () => {
4374
- const e = Z();
4393
+ }, id = () => {
4394
+ const e = J();
4375
4395
  return W(() => {
4376
4396
  e.clear();
4377
4397
  }, [e]);
4378
- }, id = () => {
4379
- const e = N(), t = G(), { data: n } = Le(), s = Z();
4398
+ }, od = () => {
4399
+ const e = I(), t = x(), { data: n } = Le(), s = J();
4380
4400
  return te({
4381
4401
  mutationFn: async (r) => {
4382
4402
  if (!(n != null && n.id))
@@ -4400,7 +4420,7 @@ const sd = () => {
4400
4420
  console.error("Failed to update metadata");
4401
4421
  }
4402
4422
  });
4403
- }, Hc = V(() => import("./digital-asset-manager-aSXb6slG.js")), od = ({
4423
+ }, qc = V(() => import("./digital-asset-manager-B1KUqVJc.js")), ld = ({
4404
4424
  assetId: e,
4405
4425
  assetUrl: t,
4406
4426
  onChange: n,
@@ -4482,7 +4502,7 @@ const sd = () => {
4482
4502
  )
4483
4503
  ] }),
4484
4504
  /* @__PURE__ */ o("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
4485
- Hc,
4505
+ qc,
4486
4506
  {
4487
4507
  close: d,
4488
4508
  onSelect: f,
@@ -4492,7 +4512,7 @@ const sd = () => {
4492
4512
  ) }) })
4493
4513
  ] }) })
4494
4514
  ] });
4495
- }, qc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), vs = (e) => {
4515
+ }, $c = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), vs = (e) => {
4496
4516
  if (!e.trim())
4497
4517
  return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
4498
4518
  try {
@@ -4527,13 +4547,13 @@ const sd = () => {
4527
4547
  }
4528
4548
  };
4529
4549
  }
4530
- }, $c = (e, t) => {
4550
+ }, Qc = (e, t) => {
4531
4551
  let s = JSON.stringify(e, null, 2);
4532
4552
  return t.forEach(({ original: r }, a) => {
4533
- const i = `"__placeholder_${a}__"`, l = new RegExp(qc(i), "g");
4553
+ const i = `"__placeholder_${a}__"`, l = new RegExp($c(i), "g");
4534
4554
  s = s.replace(l, r);
4535
4555
  }), s;
4536
- }, Qc = (e, t) => {
4556
+ }, Wc = (e, t) => {
4537
4557
  if (!e) return "";
4538
4558
  let n = JSON.stringify(e, null, 2);
4539
4559
  const s = /{{([^{}]+)}}/g;
@@ -4543,7 +4563,7 @@ const sd = () => {
4543
4563
  n = n.replace(r[0], i);
4544
4564
  }
4545
4565
  return n;
4546
- }, Wc = V(() => import("./shared-json-ld-FApiYd-N.js")), ld = ({
4566
+ }, zc = V(() => import("./shared-json-ld-LWZfxt-V.js")), cd = ({
4547
4567
  value: e,
4548
4568
  onChange: t,
4549
4569
  disabled: n = !1,
@@ -4557,7 +4577,7 @@ const sd = () => {
4557
4577
  copyJsonLDFromDefaultPage: d
4558
4578
  }) => {
4559
4579
  const [f, m] = k("edit"), [h, A] = k(null), [S, b] = k(""), p = le(null), [y] = mn(), P = i === "jsonLD" && Y(y, "flags.sharedJsonLD", !1), q = i === "jsonLD" && !u && !!d;
4560
- J(() => {
4580
+ Z(() => {
4561
4581
  e.trim() === "" && t("{}");
4562
4582
  }, [e, t]);
4563
4583
  const H = (O) => {
@@ -4592,11 +4612,11 @@ const sd = () => {
4592
4612
  }
4593
4613
  }
4594
4614
  };
4595
- J(() => {
4615
+ Z(() => {
4596
4616
  const O = vs(e);
4597
4617
  O.isValid ? gs(() => {
4598
4618
  if (A(null), O.parsed) {
4599
- const w = Qc(O.parsed, l);
4619
+ const w = Wc(O.parsed, l);
4600
4620
  b(w);
4601
4621
  } else
4602
4622
  b("");
@@ -4607,7 +4627,7 @@ const sd = () => {
4607
4627
  const de = () => {
4608
4628
  const O = vs(e);
4609
4629
  if (O.isValid && O.parsed) {
4610
- const w = $c(O.parsed, O.placeholders);
4630
+ const w = Qc(O.parsed, O.placeholders);
4611
4631
  t(w);
4612
4632
  }
4613
4633
  }, C = () => {
@@ -4646,7 +4666,7 @@ const sd = () => {
4646
4666
  )
4647
4667
  ] }),
4648
4668
  q ? null : f === "edit" && !s && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ o(
4649
- Vc,
4669
+ Hc,
4650
4670
  {
4651
4671
  dataType: "value",
4652
4672
  data: l ?? {},
@@ -4718,10 +4738,10 @@ const sd = () => {
4718
4738
  /* @__PURE__ */ o(as, { rows: a, value: S, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4719
4739
  /* @__PURE__ */ o("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
4720
4740
  ] }),
4721
- P && /* @__PURE__ */ o(vn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(Wc, {}) }) })
4741
+ P && /* @__PURE__ */ o(vn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(zc, {}) }) })
4722
4742
  ] }) }) });
4723
- }, cd = (e) => {
4724
- const t = N(), n = G();
4743
+ }, ud = (e) => {
4744
+ const t = I(), n = x();
4725
4745
  return ue({
4726
4746
  queryKey: [E.GET_CHAI_USER, e],
4727
4747
  queryFn: async () => {
@@ -4731,11 +4751,11 @@ const sd = () => {
4731
4751
  }), r = (s == null ? void 0 : s.data) || {};
4732
4752
  return { ...r, name: r.name || r.email };
4733
4753
  },
4734
- enabled: !Ee(e),
4754
+ enabled: !fe(e),
4735
4755
  staleTime: "static"
4736
4756
  });
4737
4757
  };
4738
- class zc {
4758
+ class jc {
4739
4759
  constructor(t) {
4740
4760
  Pn(this, "channel");
4741
4761
  this.channel = t;
@@ -4780,141 +4800,140 @@ class zc {
4780
4800
  return this.channel.presenceState();
4781
4801
  }
4782
4802
  }
4783
- class jc {
4803
+ class Yc {
4784
4804
  constructor(t) {
4785
4805
  Pn(this, "client");
4786
4806
  this.client = t;
4787
4807
  }
4788
4808
  channel(t, n) {
4789
4809
  const s = this.client.channel(t, n);
4790
- return new zc(s);
4810
+ return new jc(s);
4791
4811
  }
4792
4812
  }
4793
- function ud(e) {
4794
- return new jc(e);
4813
+ function dd(e) {
4814
+ return new Yc(e);
4795
4815
  }
4796
4816
  if (typeof window > "u")
4797
4817
  throw new Error("@chaibuilder/pages is not available on the server");
4798
4818
  export {
4799
- Rl as $,
4819
+ Yu as $,
4800
4820
  E as A,
4801
- yt as B,
4802
- gr as C,
4803
- xu as D,
4821
+ At as B,
4822
+ qu as C,
4823
+ Ku as D,
4804
4824
  ie as E,
4805
- K as F,
4806
- al as G,
4807
- or as H,
4808
- Hu as I,
4809
- Fu as J,
4810
- Ku as K,
4825
+ Vu as F,
4826
+ Fn as G,
4827
+ Be as H,
4828
+ Ll as I,
4829
+ Hu as J,
4830
+ Nl as K,
4811
4831
  qt as L,
4812
- Fn as M,
4813
- Be as N,
4814
- Gl as O,
4832
+ Du as M,
4833
+ Tt as N,
4834
+ Xu as O,
4815
4835
  re as P,
4816
- Vu as Q,
4817
- Il as R,
4818
- Uu as S,
4836
+ ed as Q,
4837
+ Lu as R,
4838
+ Mu as S,
4819
4839
  Bt as T,
4820
- Ou as U,
4821
- At as V,
4822
- Zu as W,
4823
- Xu as X,
4824
- Cu as Y,
4825
- Bn as Z,
4840
+ Bn as U,
4841
+ zu as V,
4842
+ kl as W,
4843
+ td as X,
4844
+ ku as Y,
4845
+ Cu as Z,
4826
4846
  Wu as _,
4827
4847
  be as a,
4828
- $s as a$,
4829
- ed as a0,
4830
- Du as a1,
4831
- Iu as a2,
4832
- Qu as a3,
4833
- ju as a4,
4834
- zu as a5,
4835
- Yu as a6,
4836
- Ju as a7,
4837
- ku as a8,
4838
- ne as a9,
4839
- fe as aA,
4840
- bi as aB,
4841
- _u as aC,
4842
- bu as aD,
4843
- ld as aE,
4844
- vs as aF,
4845
- wu as aG,
4846
- vu as aH,
4847
- Nu as aI,
4848
- Pu as aJ,
4849
- sd as aK,
4850
- Ni as aL,
4851
- mn as aM,
4852
- no as aN,
4853
- Vc as aO,
4854
- od as aP,
4855
- Ci as aQ,
4856
- wi as aR,
4857
- Xi as aS,
4858
- nd as aT,
4859
- Le as aU,
4860
- ad as aV,
4861
- Lc as aW,
4862
- Ro as aX,
4863
- rd as aY,
4864
- id as aZ,
4865
- Vs as a_,
4866
- rr as aa,
4867
- Gu as ab,
4868
- kl as ac,
4869
- mr as ad,
4870
- Me as ae,
4871
- yc as af,
4872
- Ru as ag,
4873
- jt as ah,
4874
- xl as ai,
4848
+ Js as a$,
4849
+ ju as a0,
4850
+ Ju as a1,
4851
+ Zu as a2,
4852
+ Ru as a3,
4853
+ ne as a4,
4854
+ rr as a5,
4855
+ xu as a6,
4856
+ Dl as a7,
4857
+ mr as a8,
4858
+ Me as a9,
4859
+ $t as aA,
4860
+ wu as aB,
4861
+ vu as aC,
4862
+ cd as aD,
4863
+ vs as aE,
4864
+ Pu as aF,
4865
+ Nu as aG,
4866
+ Iu as aH,
4867
+ bu as aI,
4868
+ rd as aJ,
4869
+ Ni as aK,
4870
+ mn as aL,
4871
+ no as aM,
4872
+ Hc as aN,
4873
+ ld as aO,
4874
+ Ci as aP,
4875
+ wi as aQ,
4876
+ Xi as aR,
4877
+ sd as aS,
4878
+ Le as aT,
4879
+ id as aU,
4880
+ Cc as aV,
4881
+ ko as aW,
4882
+ ad as aX,
4883
+ od as aY,
4884
+ Vs as aZ,
4885
+ $s as a_,
4886
+ pc as aa,
4887
+ Uu as ab,
4888
+ jt as ac,
4889
+ Gl as ad,
4890
+ Qu as ae,
4891
+ Fu as af,
4892
+ Bu as ag,
4893
+ Yt as ah,
4894
+ ml as ai,
4875
4895
  $u as aj,
4876
- Bu as ak,
4877
- Mu as al,
4878
- Yt as am,
4879
- El as an,
4880
- qu as ao,
4881
- nl as ap,
4882
- Hi as aq,
4883
- Ki as ar,
4884
- N as as,
4885
- G as at,
4886
- Cc as au,
4887
- Su as av,
4888
- en as aw,
4889
- he as ax,
4890
- In as ay,
4891
- Te as az,
4896
+ tl as ak,
4897
+ Hi as al,
4898
+ ud as am,
4899
+ Ki as an,
4900
+ I as ao,
4901
+ x as ap,
4902
+ Ic as aq,
4903
+ _u as ar,
4904
+ en as as,
4905
+ ge as at,
4906
+ In as au,
4907
+ Te as av,
4908
+ he as aw,
4909
+ bi as ax,
4910
+ yn as ay,
4911
+ Ws as az,
4892
4912
  zs as b,
4893
- Js as b0,
4894
- ud as b1,
4895
- jc as b2,
4913
+ dd as b0,
4914
+ Yc as b1,
4896
4915
  Ce as c,
4897
4916
  fo as d,
4898
- Ut as e,
4899
- mu as f,
4900
- Eu as g,
4901
- ut as h,
4917
+ dt as e,
4918
+ Eu as f,
4919
+ pu as g,
4920
+ Ve as h,
4902
4921
  Jn as i,
4903
4922
  pn as j,
4904
- Ve as k,
4923
+ He as k,
4905
4924
  _i as l,
4906
- pu as m,
4907
- Au as n,
4908
- Tu as o,
4909
- vc as p,
4910
- yu as q,
4911
- hu as r,
4912
- yn as s,
4913
- Ws as t,
4914
- gu as u,
4915
- ho as v,
4916
- cd as w,
4917
- $t as x,
4918
- td as y,
4919
- ee as z
4925
+ yu as m,
4926
+ Tu as n,
4927
+ Su as o,
4928
+ bc as p,
4929
+ Au as q,
4930
+ gu as r,
4931
+ nd as s,
4932
+ ee as t,
4933
+ mu as u,
4934
+ gr as v,
4935
+ Ou as w,
4936
+ K as x,
4937
+ rl as y,
4938
+ or as z
4920
4939
  };