@chaibuilder/pages 0.15.21 → 0.15.22

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 (64) hide show
  1. package/dist/{2AITGKQY-JdTvsit7.js → 2AITGKQY-BQI4o1xG.js} +2 -2
  2. package/dist/{2AITGKQY-CuxhppUA.cjs → 2AITGKQY-DXm3iqhg.cjs} +1 -1
  3. package/dist/{NCMVHL6D-CTrkJrNW.js → NCMVHL6D-B3kd8MpE.js} +2 -2
  4. package/dist/{NCMVHL6D-rzEn9a-Z.cjs → NCMVHL6D-C0TW9XJH.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DZa1ZX5H.cjs → ZDWCUMSJ-DzyqbIEt.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-DIAJ5hj-.js → ZDWCUMSJ-IN3g-SXd.js} +1 -1
  7. package/dist/{add-new-language-page-3fFJlIi4.js → add-new-language-page-NXyJYXG-.js} +2 -2
  8. package/dist/{add-new-language-page-DPbVVRnt.cjs → add-new-language-page-zZoQgh6M.cjs} +1 -1
  9. package/dist/{add-new-page-C-DdGfOJ.js → add-new-page-C7Kw3sZO.js} +1 -1
  10. package/dist/{add-new-page-CgsPADOI.cjs → add-new-page-Cf_zoJPL.cjs} +1 -1
  11. package/dist/ai-panel-content-BXnMSm-N.js +614 -0
  12. package/dist/ai-panel-content-xcOgRnxG.cjs +142 -0
  13. package/dist/{delete-page-X6KE9Snl.js → delete-page-CyqJ6iqb.js} +1 -1
  14. package/dist/{delete-page-ftu1i43t.cjs → delete-page-qrzBuLu5.cjs} +1 -1
  15. package/dist/{digital-asset-manager-zEPka3BT.cjs → digital-asset-manager-BfDE0iUu.cjs} +1 -1
  16. package/dist/{digital-asset-manager-CWneIIcn.js → digital-asset-manager-BxM02CBp.js} +1 -1
  17. package/dist/{duplicate-page-Bwp0RTTE.js → duplicate-page-BGXDNCfU.js} +2 -2
  18. package/dist/{duplicate-page-D-2tkgsd.cjs → duplicate-page-CGKrJ-pm.cjs} +1 -1
  19. package/dist/{dynamic-page-selector-DDyEyh7e.cjs → dynamic-page-selector-C1ENQo3c.cjs} +1 -1
  20. package/dist/{dynamic-page-selector-Vl0aOeHK.js → dynamic-page-selector-D0H0U30o.js} +1 -1
  21. package/dist/index-CZxeSGRk.cjs +5 -0
  22. package/dist/{index-DHfaX2M6.js → index-D2g32O6h.js} +850 -842
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/{json-diff-viewer-CM1kUeoR.cjs → json-diff-viewer-D03TdwEh.cjs} +1 -1
  26. package/dist/{json-diff-viewer-BCtaXLmG.js → json-diff-viewer-XF3MMhkA.js} +1 -1
  27. package/dist/{lang-panel-CaOkz8d3.js → lang-panel-8pMYi4Fn.js} +2 -2
  28. package/dist/{lang-panel-DNQEDZ5D.cjs → lang-panel-BQiWaq2_.cjs} +1 -1
  29. package/dist/{mark-as-template-XIeQkqPw.js → mark-as-template-BGe_QmNY.js} +1 -1
  30. package/dist/{mark-as-template-CD1bYgow.cjs → mark-as-template-DwgrP1Vj.cjs} +1 -1
  31. package/dist/{no-language-page-content-BHacGf6H.cjs → no-language-page-content-BiiD91y6.cjs} +1 -1
  32. package/dist/{no-language-page-content-CtN5VB9K.js → no-language-page-content-Cr6wq4o8.js} +1 -1
  33. package/dist/{page-creator-C7j6rkr2.cjs → page-creator-Di9A1gxS.cjs} +1 -1
  34. package/dist/{page-creator-Ci3yqsDv.js → page-creator-PSrGtRIm.js} +2 -2
  35. package/dist/{page-lock-request-01G9AeVF.js → page-lock-request-DQT5Ur0g.js} +1 -1
  36. package/dist/{page-lock-request-BNS3-biN.cjs → page-lock-request-Reyb6vZo.cjs} +1 -1
  37. package/dist/{page-locked-by-dialog-Cei-v0MT.cjs → page-locked-by-dialog-DF1_jPao.cjs} +1 -1
  38. package/dist/{page-locked-by-dialog-BQV9X0UF.js → page-locked-by-dialog-DgIr4-Gd.js} +1 -1
  39. package/dist/{page-manager-new-DE_2H_ow.js → page-manager-new-BuLz6042.js} +2 -2
  40. package/dist/{page-manager-new-XGKr4mup.cjs → page-manager-new-COui-em5.cjs} +1 -1
  41. package/dist/{page-manager-search-and-filter-BDw2AYXn.cjs → page-manager-search-and-filter-6_CVqZc_.cjs} +1 -1
  42. package/dist/{page-manager-search-and-filter-B8zCpxug.js → page-manager-search-and-filter-DxqVJw_A.js} +1 -1
  43. package/dist/{page-revisions-content-BIdaOcUx.cjs → page-revisions-content-BlM1X20k.cjs} +1 -1
  44. package/dist/{page-revisions-content-mih9gx3J.js → page-revisions-content-DagDCr7w.js} +2 -2
  45. package/dist/{publish-pages-content-1knN5SPM.cjs → publish-pages-content-6L8onxVt.cjs} +1 -1
  46. package/dist/{publish-pages-content-jYi-Q1Vl.js → publish-pages-content-eAcMLyLi.js} +2 -2
  47. package/dist/{save-to-lib-B56XAto8.cjs → save-to-lib-BUen2a0-.cjs} +1 -1
  48. package/dist/{save-to-lib-CpFEdU_R.js → save-to-lib-C43iGfOH.js} +1 -1
  49. package/dist/{seo-panel-DRb3uTUp.cjs → seo-panel-BseSTxFf.cjs} +1 -1
  50. package/dist/{seo-panel-D3bp2i90.js → seo-panel-DdE8DfMt.js} +1 -1
  51. package/dist/{shared-json-ld-pNjN-zzY.cjs → shared-json-ld-D-S-SwbU.cjs} +1 -1
  52. package/dist/{shared-json-ld-C4Kjka5m.js → shared-json-ld-OwSauSop.js} +1 -1
  53. package/dist/{slug-input-CKIckRno.js → slug-input-Bh4d19p2.js} +1 -1
  54. package/dist/{slug-input-BeepGXWz.cjs → slug-input-DYne39yC.cjs} +1 -1
  55. package/dist/{theme-panel-footer-DscF7mar.js → theme-panel-footer-BnxQBiM2.js} +1 -1
  56. package/dist/{theme-panel-footer-B0NRCfkL.cjs → theme-panel-footer-DLSf7QAN.cjs} +1 -1
  57. package/dist/{unmark-as-template-Dezq0GEM.js → unmark-as-template-B9xuxdYK.js} +1 -1
  58. package/dist/{unmark-as-template-9-wHwCPl.cjs → unmark-as-template-BTY-g4LE.cjs} +1 -1
  59. package/dist/{unpublish-page-COPOrCk_.js → unpublish-page-CYmJyQH9.js} +1 -1
  60. package/dist/{unpublish-page-DU3jKAJ5.cjs → unpublish-page-D0FunHFp.cjs} +1 -1
  61. package/dist/{web-preview-DBBTePPU.cjs → web-preview-DDnJlhVc.cjs} +1 -1
  62. package/dist/{web-preview-sSS97N-o.js → web-preview-y7dB2S91.js} +1 -1
  63. package/package.json +4 -3
  64. package/dist/index-DOlBrCPx.cjs +0 -5
@@ -1,22 +1,22 @@
1
- var _r = Object.defineProperty;
2
- var Un = (e) => {
1
+ var vr = Object.defineProperty;
2
+ var Bn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Pr = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var Pe = (e, t, n) => Pr(e, typeof t != "symbol" ? t + "" : t, n), Bn = (e, t, n) => t.has(e) || Un("Cannot " + n);
7
- var S = (e, t, n) => (Bn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? Un("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), k = (e, t, n, s) => (Bn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
5
+ var wr = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var Pe = (e, t, n) => wr(e, typeof t != "symbol" ? t + "" : t, n), Mn = (e, t, n) => t.has(e) || Bn("Cannot " + n);
7
+ var S = (e, t, n) => (Mn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? Bn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), k = (e, t, n, s) => (Mn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
8
8
  import { jsx as c, jsxs as m, Fragment as ge } from "react/jsx-runtime";
9
- import { get as V, reverse as vr, sortBy as wr, each as br, find as re, isEmpty as he, groupBy as Ir, minBy as Cr, noop as ds, keyBy as Nr, map as Ut, compact as fs, upperCase as Mn, filter as hs, includes as Lr, has as $t, pick as Pn, keys as kr, pickBy as Or, endsWith as Dr, isArray as Gr, startCase as xr, isFunction as Rr, cloneDeep as Ur, isEqual as Br } from "lodash-es";
9
+ import { get as V, reverse as br, sortBy as Ir, each as Cr, find as re, isEmpty as he, groupBy as Nr, minBy as Lr, noop as ds, keyBy as kr, map as Bt, compact as fs, upperCase as Fn, filter as hs, includes as Or, has as jt, pick as vn, keys as Dr, pickBy as Gr, endsWith as xr, isArray as Rr, startCase as Ur, isFunction as Br, cloneDeep as Mr, isEqual as Fr } from "lodash-es";
10
10
  import * as z from "react";
11
- import Mr, { useMemo as Q, useCallback as j, useState as q, useEffect as se, useRef as at, lazy as K, Suspense as H, createContext as Fr, Component as qr, createElement as Fn } from "react";
11
+ import qr, { useMemo as Q, useCallback as j, useState as K, useEffect as se, useRef as at, lazy as F, Suspense as H, createContext as Kr, Component as Vr, createElement as qn } from "react";
12
12
  import { atom as Ee, useAtom as te } from "jotai";
13
- import { useQuery as ae, useQueryClient as W, useMutation as X, onlineManager as gs, QueryClient as Kr, QueryClientProvider as Vr } from "@tanstack/react-query";
14
- import { useLanguages as Se, useSavePage as Ge, useTranslation as we, mergeClasses as Bt, usePermissions as ms, PERMISSIONS as Hr, useRightPanel as Qr, useChaiFeatureFlag as $r, useIsPageLoaded as jr, registerChaiLibrary as zr, getBlocksFromHTML as Wr, registerChaiSidebarPanel as en, registerChaiFeatureFlag as qn, registerChaiTopBar as Yr, registerChaiMediaManager as Jr, registerChaiSaveToLibrary as Xr, ChaiBuilderEditor as Zr } from "@chaibuilder/sdk";
13
+ import { useQuery as ae, useQueryClient as W, useMutation as X, onlineManager as gs, QueryClient as Hr, QueryClientProvider as Qr } from "@tanstack/react-query";
14
+ import { useLanguages as Se, useSavePage as Ge, useTranslation as we, mergeClasses as Mt, usePermissions as ms, PERMISSIONS as $r, useRightPanel as jr, useChaiFeatureFlag as Es, useIsPageLoaded as zr, registerChaiLibrary as Wr, getBlocksFromHTML as Yr, registerChaiSidebarPanel as Ct, registerChaiFeatureFlag as tn, registerChaiTopBar as Jr, registerChaiMediaManager as Xr, registerChaiSaveToLibrary as Zr, ChaiBuilderEditor as ea } from "@chaibuilder/sdk";
15
15
  import { toast as R } from "sonner";
16
- import { Tooltip as jt, TooltipTrigger as zt, Button as M, TooltipContent as Wt, Sheet as Es, SheetContent as ps, SheetHeader as ea, SheetTitle as ta, SheetDescription as na, DropdownMenu as vn, DropdownMenuTrigger as wn, DropdownMenuContent as bn, DropdownMenuItem as ue, Separator as sa, TooltipProvider as ys, SheetTrigger as ra, Skeleton as Ct, Dialog as As, HoverCard as aa, HoverCardTrigger as ia, HoverCardContent as oa, AlertDialog as la, AlertDialogTrigger as ca, AlertDialogContent as ua, AlertDialogHeader as da, AlertDialogTitle as fa, AlertDialogDescription as ha, AlertDialogFooter as ga, AlertDialogCancel as ma, AlertDialogAction as Ea, Popover as pa, PopoverTrigger as ya, DialogContent as Aa, DialogHeader as Ta, DialogTitle as Sa, Tabs as _a, TabsList as Pa, TabsTrigger as tn, TabsContent as nn, Textarea as Kn, Alert as va, AlertDescription as wa } from "@chaibuilder/sdk/ui";
17
- import { LogsIcon as ba, Folder as Ia, Languages as Vn, ChevronDown as fn, Star as Ca, Plus as Ts, History as Na, Play as La, Palette as ka, CheckCircle as Oa, Loader as Mt, Save as Da, Send as Hn, Rocket as Qn, CopyPlusIcon as Ga, Pencil as xa, Power as Ra, Trash as Ua, SquareLibrary as $n, Hash as Ba, File as Ma, MoreHorizontal as jn, ExternalLink as Fa, LanguagesIcon as qa, User as Ka, X as zn, Trash2 as Va, ImageIcon as Wn, Code as Ha, Eye as Qa, Share2 as $a, FileCode2 as ja, AlertTriangle as za } from "lucide-react";
18
- import { useRegisteredChaiBlocks as Wa, getDefaultBlockProps as Ya } from "@chaibuilder/runtime";
19
- import { loadWebBlocks as Ja } from "@chaibuilder/sdk/web-blocks";
16
+ import { Tooltip as zt, TooltipTrigger as Wt, Button as B, TooltipContent as Yt, Sheet as ps, SheetContent as ys, SheetHeader as ta, SheetTitle as na, SheetDescription as sa, DropdownMenu as wn, DropdownMenuTrigger as bn, DropdownMenuContent as In, DropdownMenuItem as ue, Separator as ra, TooltipProvider as As, SheetTrigger as aa, Skeleton as Nt, Dialog as Ts, HoverCard as ia, HoverCardTrigger as oa, HoverCardContent as la, AlertDialog as ca, AlertDialogTrigger as ua, AlertDialogContent as da, AlertDialogHeader as fa, AlertDialogTitle as ha, AlertDialogDescription as ga, AlertDialogFooter as ma, AlertDialogCancel as Ea, AlertDialogAction as pa, Popover as ya, PopoverTrigger as Aa, DialogContent as Ta, DialogHeader as Sa, DialogTitle as _a, Tabs as Pa, TabsList as va, TabsTrigger as nn, TabsContent as sn, Textarea as Kn, Alert as wa, AlertDescription as ba } from "@chaibuilder/sdk/ui";
17
+ import { LogsIcon as Ia, Folder as Ca, Languages as Vn, ChevronDown as hn, Star as Na, Plus as Ss, History as La, Play as ka, Palette as Oa, CheckCircle as Da, Loader as Ft, Save as Ga, Send as Hn, Rocket as Qn, CopyPlusIcon as xa, Pencil as Ra, Power as Ua, Trash as Ba, SquareLibrary as $n, Hash as Ma, File as Fa, MoreHorizontal as jn, ExternalLink as qa, LanguagesIcon as Ka, User as Va, X as zn, Trash2 as Ha, ImageIcon as Wn, Code as Qa, Eye as $a, Share2 as ja, FileCode2 as za, AlertTriangle as Wa } from "lucide-react";
18
+ import { useRegisteredChaiBlocks as Ya, getDefaultBlockProps as Ja } from "@chaibuilder/runtime";
19
+ import { loadWebBlocks as Xa } from "@chaibuilder/sdk/web-blocks";
20
20
  const E = {
21
21
  GET_GLOBAL_JSONLD_ITEMS: "GET_GLOBAL_JSONLD_ITEMS",
22
22
  GENERATE_SEO_FIELD: "GENERATE_SEO_FIELD",
@@ -81,10 +81,10 @@ const E = {
81
81
  UPDATE_ASSET: "UPDATE_ASSET",
82
82
  GET_ASSETS: "GET_ASSETS",
83
83
  GET_ASSET: "GET_ASSET"
84
- }, Xa = Ee({}), In = () => te(Xa), oe = (e, t) => {
85
- const [n] = In();
84
+ }, Za = Ee({}), Cn = () => te(Za), oe = (e, t) => {
85
+ const [n] = Cn();
86
86
  return Q(() => V(n, e, t), [n, e, t]);
87
- }, N = () => oe("apiUrl", "/chai/api"), Ss = () => oe("usersApiUrl", "/chai/users"), Ic = () => oe("assetsApiUrl", "/chai/assets"), Za = () => oe("websocket", null), _s = async (e, t, n = {}) => await fetch(e, {
87
+ }, N = () => oe("apiUrl", "/chai/api"), _s = () => oe("usersApiUrl", "/chai/users"), Oc = () => oe("assetsApiUrl", "/chai/assets"), ei = () => oe("websocket", null), Ps = async (e, t, n = {}) => await fetch(e, {
88
88
  method: "POST",
89
89
  headers: {
90
90
  "Content-Type": "application/json",
@@ -95,13 +95,13 @@ const E = {
95
95
  if (import.meta.vitest) {
96
96
  const { it: e, expect: t } = import.meta.vitest;
97
97
  e("should fetch API", async () => {
98
- const n = await _s("/v1/api/chai", {
98
+ const n = await Ps("/v1/api/chai", {
99
99
  action: "test"
100
100
  });
101
101
  t(n).toBeDefined();
102
102
  });
103
103
  }
104
- const Cc = () => {
104
+ const Dc = () => {
105
105
  const e = I(), t = N();
106
106
  return j(
107
107
  async ({
@@ -119,7 +119,7 @@ const Cc = () => {
119
119
  if (!i)
120
120
  return console.error("No auth token found"), null;
121
121
  try {
122
- const o = V(r, "action", "").toLowerCase(), l = await _s(s + (o ? `?action=${o}` : ""), r, {
122
+ const o = V(r, "action", "").toLowerCase(), l = await Ps(s + (o ? `?action=${o}` : ""), r, {
123
123
  ...a,
124
124
  Authorization: `Bearer ${i}`
125
125
  });
@@ -143,7 +143,7 @@ const Cc = () => {
143
143
  );
144
144
  };
145
145
  function le() {
146
- const [e, t] = q(
146
+ const [e, t] = K(
147
147
  new URLSearchParams(window.location.search)
148
148
  );
149
149
  return se(() => {
@@ -168,7 +168,7 @@ const xe = (e) => {
168
168
  action: E.GET_LANGUAGE_PAGES,
169
169
  data: { id: s }
170
170
  });
171
- return vr(wr(a, "primaryPage"));
171
+ return br(Ir(a, "primaryPage"));
172
172
  },
173
173
  enabled: !!s
174
174
  });
@@ -188,17 +188,17 @@ const xe = (e) => {
188
188
  data: { draft: !0 }
189
189
  })
190
190
  });
191
- }, Ps = (e) => {
191
+ }, vs = (e) => {
192
192
  const { fallbackLang: t } = Se(), { data: n } = Re(), { data: s, isFetching: r } = xe(), a = Q(() => {
193
193
  const i = { [t]: !0 };
194
- return br(V(n, "languages"), (o) => {
194
+ return Cr(V(n, "languages"), (o) => {
195
195
  const l = re(s, { lang: o });
196
196
  i[o] = !!l;
197
197
  }), i;
198
198
  }, [t, s, n]);
199
199
  return r || he(e) || e && a[e];
200
200
  };
201
- class ei {
201
+ class ti {
202
202
  constructor(t, n, s, r) {
203
203
  Pe(this, "channelId");
204
204
  Pe(this, "websocket");
@@ -242,10 +242,10 @@ class ei {
242
242
  return t.length > 0 ? t[0] : null;
243
243
  }
244
244
  getPageUserMapping() {
245
- const t = this.getOnlineUsers({}), n = Ir(t, "pageId"), s = {};
245
+ const t = this.getOnlineUsers({}), n = Nr(t, "pageId"), s = {};
246
246
  return Object.keys(n).forEach((r) => {
247
247
  var i;
248
- const a = (i = Cr(n[r], "onlineAt")) == null ? void 0 : i.userId;
248
+ const a = (i = Lr(n[r], "onlineAt")) == null ? void 0 : i.userId;
249
249
  a !== this.userId && (s[r] = a);
250
250
  }), s;
251
251
  }
@@ -305,20 +305,20 @@ class ei {
305
305
  }
306
306
  }
307
307
  }
308
- const ti = Ee(
308
+ const ni = Ee(
309
309
  null
310
- ), vs = () => te(ti), Cn = () => {
311
- const [e] = vs();
310
+ ), ws = () => te(ni), Nn = () => {
311
+ const [e] = ws();
312
312
  return (e == null ? void 0 : e.slug) || "";
313
313
  };
314
- function ni(e, t) {
315
- const [n, s] = q(e);
314
+ function si(e, t) {
315
+ const [n, s] = K(e);
316
316
  return se(() => {
317
317
  const r = setTimeout(() => s(e), t);
318
318
  return () => clearTimeout(r);
319
319
  }, [e, t]), n;
320
320
  }
321
- const si = ({ query: e, uuid: t }) => {
321
+ const ri = ({ query: e, uuid: t }) => {
322
322
  const { selectedLang: n, fallbackLang: s } = Se(), { data: r } = ie(), a = r == null ? void 0 : r.pageType, i = N(), o = I(), { data: l, isFetching: u } = ae({
323
323
  queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
324
324
  staleTime: 60 * 60 * 1e3,
@@ -330,8 +330,8 @@ const si = ({ query: e, uuid: t }) => {
330
330
  enabled: !!a
331
331
  }), f = Q(() => n === "" ? l.filter((d) => d.lang === "" || d.lang === s) : l.filter((d) => d.lang === n), [n, s, l]);
332
332
  return { allLangPages: l, data: f, isFetching: u };
333
- }, ri = () => {
334
- const { selectedLang: e, fallbackLang: t } = Se(), [n, s] = vs(), [r, a] = q(""), i = ni(r, 500), { allLangPages: o, data: l, isFetching: u } = si({ query: i }), f = j((g) => s(g), [s]), d = j((g) => a(g), [a]), h = j(() => {
333
+ }, ai = () => {
334
+ const { selectedLang: e, fallbackLang: t } = Se(), [n, s] = ws(), [r, a] = K(""), i = si(r, 500), { allLangPages: o, data: l, isFetching: u } = ri({ query: i }), f = j((g) => s(g), [s]), d = j((g) => a(g), [a]), h = j(() => {
335
335
  if (!n) return;
336
336
  const g = !(n != null && n.primaryPage), A = e.length === 0, T = g ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, y = o.filter(
337
337
  (P) => (P == null ? void 0 : P.primaryPage) === T || P.id === T
@@ -349,24 +349,24 @@ const si = ({ query: e, uuid: t }) => {
349
349
  updateSearchQuery: d,
350
350
  onChangeLanguage: h
351
351
  };
352
- }, ai = Ee({ lastSaved: void 0 }), Nn = () => te(ai), ie = () => {
352
+ }, ii = Ee({ lastSaved: void 0 }), Ln = () => te(ii), ie = () => {
353
353
  const [e] = le(), t = e.get("page"), { data: n, isFetching: s } = xe();
354
354
  return { data: Q(() => ({ ...re(n, { id: t }) || {} }), [n, t]), isFetching: s };
355
355
  }, be = () => {
356
356
  const [e] = le(), t = e.get("lang") ?? "", { data: n, isFetching: s } = xe();
357
357
  return { data: Q(() => re(n, { lang: t }) || {}, [n, t]), isFetching: s };
358
- }, ii = Ee({}), oi = () => te(ii), li = () => {
359
- const { data: e } = be(), t = Cn(), n = oe("getLiveUrl", ds), s = e == null ? void 0 : e.slug, r = n(s || "/");
358
+ }, oi = Ee({}), li = () => te(oi), ci = () => {
359
+ const { data: e } = be(), t = Nn(), n = oe("getLiveUrl", ds), s = e == null ? void 0 : e.slug, r = n(s || "/");
360
360
  return t ? r + t : r;
361
- }, Yt = () => {
361
+ }, Jt = () => {
362
362
  const e = oe("currentUser"), t = oe("onLogout");
363
363
  return {
364
364
  isLoggedIn: !!e,
365
365
  user: e,
366
366
  logout: t
367
367
  };
368
- }, ci = (e) => {
369
- const t = Ss(), n = I();
368
+ }, ui = (e) => {
369
+ const t = _s(), n = I();
370
370
  return ae({
371
371
  queryKey: [E.GET_CHAI_USER, e],
372
372
  queryFn: async () => {
@@ -379,14 +379,14 @@ const si = ({ query: e, uuid: t }) => {
379
379
  enabled: !he(e),
380
380
  staleTime: "static"
381
381
  });
382
- }, ui = Ee({
382
+ }, di = Ee({
383
383
  status: "checking",
384
384
  requestedBy: "",
385
385
  isTakeOverRequested: !1,
386
386
  requestingClientId: "",
387
387
  isActiveInOtherTab: !1
388
- }), di = Ee(""), fi = Ee(null), Ln = Ee({}), Nc = () => te(Ln), Ie = () => {
389
- const [e] = le(), t = e.get("page"), [n, s] = te(ui), [r, a] = te(fi), [i, o] = te(di), [l] = te(Ln);
388
+ }), fi = Ee(""), hi = Ee(null), kn = Ee({}), Gc = () => te(kn), Ie = () => {
389
+ const [e] = le(), t = e.get("page"), [n, s] = te(di), [r, a] = te(hi), [i, o] = te(fi), [l] = te(kn);
390
390
  return {
391
391
  pageLock: n,
392
392
  pageToUser: l,
@@ -399,8 +399,8 @@ const si = ({ query: e, uuid: t }) => {
399
399
  currentEditor: l[t || ""],
400
400
  isLocked: t && n.status === "locked"
401
401
  };
402
- }, hi = () => {
403
- const e = Za(), { data: t } = ie(), { user: n } = Yt(), s = t == null ? void 0 : t.id, { data: r } = Re(), { pageLock: a, setPageLock: i, setLockingStatus: o, realtimeInstance: l, setRealtimeInstance: u } = Ie(), [, f] = te(Ln), d = at(!1), h = at(a), g = at(!1);
402
+ }, gi = () => {
403
+ const e = ei(), { data: t } = ie(), { user: n } = Jt(), s = t == null ? void 0 : t.id, { data: r } = Re(), { pageLock: a, setPageLock: i, setLockingStatus: o, realtimeInstance: l, setRealtimeInstance: u } = Ie(), [, f] = te(kn), d = at(!1), h = at(a), g = at(!1);
404
404
  return se(() => {
405
405
  if (n != null && n.id && e && !l && (r != null && r.appKey) && !g.current) {
406
406
  g.current = !0;
@@ -484,7 +484,7 @@ const si = ({ query: e, uuid: t }) => {
484
484
  });
485
485
  break;
486
486
  }
487
- }, T = new ei(
487
+ }, T = new ti(
488
488
  e,
489
489
  r == null ? void 0 : r.appKey,
490
490
  n == null ? void 0 : n.id,
@@ -506,8 +506,8 @@ const si = ({ query: e, uuid: t }) => {
506
506
  }, o(""), i(h.current), l == null || l.leavePage());
507
507
  };
508
508
  }, [s, l]), a == null ? void 0 : a.status;
509
- }, gi = () => {
510
- const { data: e } = ie(), { user: t } = Yt(), n = e == null ? void 0 : e.id, { pageLock: s, setPageLock: r, realtimeInstance: a } = Ie(), { savePageAsync: i } = Ge(), o = j(() => {
509
+ }, mi = () => {
510
+ const { data: e } = ie(), { user: t } = Jt(), n = e == null ? void 0 : e.id, { pageLock: s, setPageLock: r, realtimeInstance: a } = Ie(), { savePageAsync: i } = Ge(), o = j(() => {
511
511
  !a || !n || !(t != null && t.id) || (r({ ...s, isTakeOverRequested: !0 }), a == null || a.sendEvent("TAKE_OVER_REQUESTED"));
512
512
  }, [a, n, t == null ? void 0 : t.id, r, s]), l = j(async () => {
513
513
  !a || !n || !(t != null && t.id) || (await i(), a == null || a.sendEvent("TAKE_OVER_REQUEST_ACCEPTED", {
@@ -537,12 +537,12 @@ const si = ({ query: e, uuid: t }) => {
537
537
  rejectTakeOver: u,
538
538
  requestTakeOver: o
539
539
  };
540
- }, mi = K(() => import("./no-language-page-content-CtN5VB9K.js")), Ei = K(() => import("./page-locked-by-dialog-BQV9X0UF.js")), sn = K(() => import("./page-lock-request-01G9AeVF.js")), pi = ({ isFetchingPage: e }) => {
541
- const { pageLock: t, requestTakeOver: n } = gi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching: l } = ci(s), [u] = le(), f = u.get("page"), [d] = Nn(), h = W(), g = j(() => {
540
+ }, Ei = F(() => import("./no-language-page-content-Cr6wq4o8.js")), pi = F(() => import("./page-locked-by-dialog-DgIr4-Gd.js")), rn = F(() => import("./page-lock-request-DQT5Ur0g.js")), yi = ({ isFetchingPage: e }) => {
541
+ const { pageLock: t, requestTakeOver: n } = mi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching: l } = ui(s), [u] = le(), f = u.get("page"), [d] = Ln(), h = W(), g = j(() => {
542
542
  n();
543
543
  }, [n]);
544
544
  return !f || e || !i || (t == null ? void 0 : t.status) === "checking" ? null : t != null && t.requestedBy ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
545
- sn,
545
+ rn,
546
546
  {
547
547
  lockingStatus: "",
548
548
  onContinue: () => {
@@ -550,7 +550,7 @@ const si = ({ query: e, uuid: t }) => {
550
550
  }
551
551
  }
552
552
  ) }) : (t == null ? void 0 : t.status) !== "locked" ? r === "take_over_request_accepted" || r === "can_edit_now" ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
553
- sn,
553
+ rn,
554
554
  {
555
555
  lockingStatus: r,
556
556
  onContinue: () => {
@@ -559,8 +559,8 @@ const si = ({ query: e, uuid: t }) => {
559
559
  }), a("");
560
560
  }
561
561
  }
562
- ) }) : null : t != null && t.isActiveInOtherTab ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(sn, { lockingStatus: "page_is_active_in_other_tab", onContinue: n }) }) : /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
563
- Ei,
562
+ ) }) : null : t != null && t.isActiveInOtherTab ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(rn, { lockingStatus: "page_is_active_in_other_tab", onContinue: n }) }) : /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
563
+ pi,
564
564
  {
565
565
  ...o,
566
566
  isFetchingUserInfo: l,
@@ -572,10 +572,10 @@ const si = ({ query: e, uuid: t }) => {
572
572
  isRequestRejected: r === "take_over_request_rejected"
573
573
  }
574
574
  ) });
575
- }, yi = () => {
575
+ }, Ai = () => {
576
576
  const [e] = le(), t = e.get("lang");
577
- return Ps(t) ? null : /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(mi, {}) });
578
- }, Nt = {
577
+ return vs(t) ? null : /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ei, {}) });
578
+ }, Lt = {
579
579
  ab: "Abkhazian",
580
580
  aa: "Afar",
581
581
  af: "Afrikaans",
@@ -764,17 +764,17 @@ const si = ({ query: e, uuid: t }) => {
764
764
  za: "Zhuang, Chuang",
765
765
  zu: "Zulu"
766
766
  };
767
- function ws(e, t, n = !1) {
767
+ function bs(e, t, n = !1) {
768
768
  const s = e.toString() ? `?${e.toString()}` : "/";
769
769
  n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
770
770
  }
771
- const kn = Ee(null), On = () => {
771
+ const On = Ee(null), Dn = () => {
772
772
  const { data: e } = Re();
773
773
  return Q(
774
774
  () => (e == null ? void 0 : e.fallbackLang) || "en",
775
775
  [e]
776
776
  );
777
- }, bs = () => {
777
+ }, Is = () => {
778
778
  const e = I(), t = N();
779
779
  return ae({
780
780
  queryKey: [E.GET_WEBSITE_PAGES],
@@ -782,8 +782,8 @@ const kn = Ee(null), On = () => {
782
782
  queryFn: async () => e(t, { action: E.GET_WEBSITE_PAGES }) || [],
783
783
  placeholderData: (n) => n || []
784
784
  });
785
- }, Lc = (e) => {
786
- const t = I(), n = N(), s = On();
785
+ }, xc = (e) => {
786
+ const t = I(), n = N(), s = Dn();
787
787
  return ae({
788
788
  queryKey: [E.GET_WEBSITE_PAGES, e, s],
789
789
  staleTime: 1e3 * 60 * 5,
@@ -791,65 +791,65 @@ const kn = Ee(null), On = () => {
791
791
  queryFn: async () => {
792
792
  if (s === e) return {};
793
793
  const r = await t(n, { action: E.GET_WEBSITE_PAGES, data: { lang: e } }) || [];
794
- return Nr(
795
- Ut(r, (a) => ({ ...a, lang: e })),
794
+ return kr(
795
+ Bt(r, (a) => ({ ...a, lang: e })),
796
796
  "primaryPage"
797
797
  );
798
798
  },
799
799
  placeholderData: (r) => r || {}
800
800
  });
801
- }, Ai = K(() => import("./page-manager-new-DE_2H_ow.js")), Is = ({ children: e }) => {
802
- const { t } = we(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: l } = bs(), [u, f] = q(!1), [d, h] = q(!0), { savePage: g } = Ge(), A = !!r && !he(a), T = Q(() => {
801
+ }, Ti = F(() => import("./page-manager-new-BuLz6042.js")), Cs = ({ children: e }) => {
802
+ const { t } = we(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: l } = Is(), [u, f] = K(!1), [d, h] = K(!0), { savePage: g } = Ge(), A = !!r && !he(a), T = Q(() => {
803
803
  if (!o || l) return !1;
804
804
  const w = o.find((O) => O.slug === "/");
805
805
  return w == null ? void 0 : w.id;
806
806
  }, [o, l]);
807
807
  se(() => {
808
- if (l || !T || o.some((B) => B.id === r)) return;
808
+ if (l || !T || o.some((M) => M.id === r)) return;
809
809
  const O = new URLSearchParams({ page: T });
810
- ws(O, s), !l && o && h(!1);
810
+ bs(O, s), !l && o && h(!1);
811
811
  }, [r, l, o, T, s]);
812
812
  const p = !d && !r, y = !d && !i && he(a), P = u || p || y;
813
813
  return /* @__PURE__ */ m(ge, { children: [
814
- /* @__PURE__ */ c("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ m(jt, { children: [
814
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ m(zt, { children: [
815
815
  /* @__PURE__ */ c(
816
- zt,
816
+ Wt,
817
817
  {
818
818
  asChild: !0,
819
819
  onClick: () => {
820
820
  g(), f(!0);
821
821
  },
822
- children: e || /* @__PURE__ */ c(M, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(ba, { className: "h-4 w-4" }) }, "template-viewer")
822
+ children: e || /* @__PURE__ */ c(B, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(Ia, { className: "h-4 w-4" }) }, "template-viewer")
823
823
  }
824
824
  ),
825
- /* @__PURE__ */ c(Wt, { side: "right", children: /* @__PURE__ */ c("p", { children: t("Open pages manager") }) })
825
+ /* @__PURE__ */ c(Yt, { side: "right", children: /* @__PURE__ */ c("p", { children: t("Open pages manager") }) })
826
826
  ] }) }) }),
827
- /* @__PURE__ */ c(Es, { open: P, onOpenChange: (w) => !w && A && f(!1), children: /* @__PURE__ */ m(
828
- ps,
827
+ /* @__PURE__ */ c(ps, { open: P, onOpenChange: (w) => !w && A && f(!1), children: /* @__PURE__ */ m(
828
+ ys,
829
829
  {
830
830
  side: "left",
831
831
  "aria-describedby": "pages-manager-description",
832
832
  className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${A ? "" : "sheet-hide-close-btn"}`,
833
833
  children: [
834
- /* @__PURE__ */ m(ea, { className: "mb-3 px-4 pt-4", children: [
835
- /* @__PURE__ */ m(ta, { className: "flex items-center gap-2 text-sm font-semibold", children: [
836
- /* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(Ia, { className: "h-4 w-4" }) }),
834
+ /* @__PURE__ */ m(ta, { className: "mb-3 px-4 pt-4", children: [
835
+ /* @__PURE__ */ m(na, { className: "flex items-center gap-2 text-sm font-semibold", children: [
836
+ /* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(Ca, { className: "h-4 w-4" }) }),
837
837
  /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
838
838
  /* @__PURE__ */ c("span", { className: "text-sm font-semibold", children: t("Pages") }),
839
839
  /* @__PURE__ */ c("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
840
840
  ] })
841
841
  ] }),
842
- /* @__PURE__ */ c(na, { className: "sr-only", children: t("Manage your site structure") })
842
+ /* @__PURE__ */ c(sa, { className: "sr-only", children: t("Manage your site structure") })
843
843
  ] }),
844
- /* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: P && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ai, { close: () => f(!1) }) }) })
844
+ /* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: P && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ti, { close: () => f(!1) }) }) })
845
845
  ]
846
846
  }
847
847
  ) })
848
848
  ] });
849
- }, Ti = K(() => import("./add-new-language-page-3fFJlIi4.js")), Si = () => {
849
+ }, Si = F(() => import("./add-new-language-page-NXyJYXG-.js")), _i = () => {
850
850
  const e = oe("topLeftCorner", null);
851
- return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Mr.createElement(e, {}) }) : null;
852
- }, _i = ({
851
+ return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: qr.createElement(e, {}) }) : null;
852
+ }, Pi = ({
853
853
  showAdd: e = !0,
854
854
  variant: t = "ghost"
855
855
  }) => {
@@ -858,13 +858,13 @@ const kn = Ee(null), On = () => {
858
858
  const p = new URLSearchParams(window.location.search), y = p.get("lang");
859
859
  y && (s.includes(y) ? a(y) : (p.delete("lang"), o(p), a("")));
860
860
  }, [s, o, a]);
861
- const [, u] = te(kn), { data: f } = ie(), { data: d } = Re(), { data: h } = xe(), g = Q(() => {
861
+ const [, u] = te(On), { data: f } = ie(), { data: d } = Re(), { data: h } = xe(), g = Q(() => {
862
862
  const p = fs(
863
- Ut(V(d, "languages"), (y) => {
863
+ Bt(V(d, "languages"), (y) => {
864
864
  const P = re(h, { lang: y });
865
865
  return {
866
866
  key: y,
867
- value: V(Nt, y, y),
867
+ value: V(Lt, y, y),
868
868
  isLangPageAdded: !!P
869
869
  };
870
870
  })
@@ -872,7 +872,7 @@ const kn = Ee(null), On = () => {
872
872
  return [
873
873
  {
874
874
  key: n,
875
- value: V(Nt, n),
875
+ value: V(Lt, n),
876
876
  isLangPageAdded: !0
877
877
  },
878
878
  ...p
@@ -893,15 +893,15 @@ const kn = Ee(null), On = () => {
893
893
  }, T = (p) => {
894
894
  a(p);
895
895
  const y = new URLSearchParams(window.location.search);
896
- p === n ? y.delete("lang") : y.set("lang", p), ws(y, o);
896
+ p === n ? y.delete("lang") : y.set("lang", p), bs(y, o);
897
897
  };
898
- return he(s) ? null : l ? /* @__PURE__ */ m(M, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
898
+ return he(s) ? null : l ? /* @__PURE__ */ m(B, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
899
899
  /* @__PURE__ */ c(Vn, { className: "h-4 w-4" }),
900
- V(Nt, i, i),
901
- /* @__PURE__ */ c(fn, { className: "h-4 w-4" })
902
- ] }) : /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ m(vn, { children: [
903
- /* @__PURE__ */ c(wn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
904
- M,
900
+ V(Lt, i, i),
901
+ /* @__PURE__ */ c(hn, { className: "h-4 w-4" })
902
+ ] }) : /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ m(wn, { children: [
903
+ /* @__PURE__ */ c(bn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
904
+ B,
905
905
  {
906
906
  disabled: !!l,
907
907
  variant: t,
@@ -909,18 +909,18 @@ const kn = Ee(null), On = () => {
909
909
  className: "ml-px h-max gap-2 py-1.5",
910
910
  children: [
911
911
  /* @__PURE__ */ c(Vn, { className: "h-4 w-4" }),
912
- V(Nt, i, i),
913
- /* @__PURE__ */ c(fn, { className: "h-4 w-4" })
912
+ V(Lt, i, i),
913
+ /* @__PURE__ */ c(hn, { className: "h-4 w-4" })
914
914
  ]
915
915
  }
916
916
  ) }),
917
- /* @__PURE__ */ m(bn, { className: "space-y-1 border-border", children: [
918
- Ut(
917
+ /* @__PURE__ */ m(In, { className: "space-y-1 border-border", children: [
918
+ Bt(
919
919
  g.filter((p) => p.isLangPageAdded),
920
920
  (p) => /* @__PURE__ */ m(
921
921
  ue,
922
922
  {
923
- className: Bt(
923
+ className: Mt(
924
924
  "flex cursor-pointer items-center justify-between text-xs font-medium text-gray-800",
925
925
  p.key === i && "!bg-gray-200 text-gray-700"
926
926
  ),
@@ -928,7 +928,7 @@ const kn = Ee(null), On = () => {
928
928
  children: [
929
929
  /* @__PURE__ */ c("div", { className: "text-slate-600", children: p.value }),
930
930
  p.key === n && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
931
- /* @__PURE__ */ c(Ca, { fill: "orange", className: "h-2 w-2" }),
931
+ /* @__PURE__ */ c(Na, { fill: "orange", className: "h-2 w-2" }),
932
932
  "Primary"
933
933
  ] })
934
934
  ]
@@ -937,9 +937,9 @@ const kn = Ee(null), On = () => {
937
937
  )
938
938
  ),
939
939
  e && !he(g.filter((p) => !p.isLangPageAdded)) && /* @__PURE__ */ m(ge, { children: [
940
- /* @__PURE__ */ c(sa, {}),
940
+ /* @__PURE__ */ c(ra, {}),
941
941
  /* @__PURE__ */ m(
942
- M,
942
+ B,
943
943
  {
944
944
  size: "sm",
945
945
  variant: "ghost",
@@ -951,7 +951,7 @@ const kn = Ee(null), On = () => {
951
951
  },
952
952
  className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
953
953
  children: [
954
- /* @__PURE__ */ c(Ts, { className: "mr-1 h-3 w-3" }),
954
+ /* @__PURE__ */ c(Ss, { className: "mr-1 h-3 w-3" }),
955
955
  " Add Langauge"
956
956
  ]
957
957
  }
@@ -960,13 +960,13 @@ const kn = Ee(null), On = () => {
960
960
  ] })
961
961
  ] }) });
962
962
  };
963
- function Pi() {
964
- const [e, t] = te(kn);
963
+ function vi() {
964
+ const [e, t] = te(On);
965
965
  return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
966
- /* @__PURE__ */ c(Si, {}),
967
- /* @__PURE__ */ c(Is, {}),
966
+ /* @__PURE__ */ c(_i, {}),
967
+ /* @__PURE__ */ c(Cs, {}),
968
968
  e && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
969
- Ti,
969
+ Si,
970
970
  {
971
971
  isOpen: !0,
972
972
  id: e == null ? void 0 : e.id,
@@ -978,34 +978,34 @@ function Pi() {
978
978
  ) })
979
979
  ] });
980
980
  }
981
- function vi() {
981
+ function wi() {
982
982
  return /* @__PURE__ */ c("div", { className: "mt-2 space-y-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3 rounded-md border p-2", children: [
983
983
  /* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
984
- /* @__PURE__ */ c(Ct, { className: "h-4 w-3/4" }),
985
- /* @__PURE__ */ c(Ct, { className: "h-3 w-1/2" }),
986
- /* @__PURE__ */ c(Ct, { className: "mt-1 h-5 w-20" })
984
+ /* @__PURE__ */ c(Nt, { className: "h-4 w-3/4" }),
985
+ /* @__PURE__ */ c(Nt, { className: "h-3 w-1/2" }),
986
+ /* @__PURE__ */ c(Nt, { className: "mt-1 h-5 w-20" })
987
987
  ] }),
988
- /* @__PURE__ */ c(Ct, { className: "h-8 w-8 rounded-full" })
988
+ /* @__PURE__ */ c(Nt, { className: "h-8 w-8 rounded-full" })
989
989
  ] }, t)) });
990
990
  }
991
- const wi = z.lazy(() => import("./page-revisions-content-mih9gx3J.js"));
992
- function bi() {
991
+ const bi = z.lazy(() => import("./page-revisions-content-DagDCr7w.js"));
992
+ function Ii() {
993
993
  const [e, t] = z.useState(!1);
994
- return /* @__PURE__ */ c(ys, { children: /* @__PURE__ */ m(jt, { delayDuration: 0, children: [
995
- /* @__PURE__ */ m(Es, { open: e, onOpenChange: t, children: [
996
- /* @__PURE__ */ c(ra, { asChild: !0, children: /* @__PURE__ */ c(zt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
997
- /* @__PURE__ */ m(M, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
998
- /* @__PURE__ */ c(Na, { className: "h-4 w-4" }),
994
+ return /* @__PURE__ */ c(As, { children: /* @__PURE__ */ m(zt, { delayDuration: 0, children: [
995
+ /* @__PURE__ */ m(ps, { open: e, onOpenChange: t, children: [
996
+ /* @__PURE__ */ c(aa, { asChild: !0, children: /* @__PURE__ */ c(Wt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
997
+ /* @__PURE__ */ m(B, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
998
+ /* @__PURE__ */ c(La, { className: "h-4 w-4" }),
999
999
  /* @__PURE__ */ c("span", { className: "sr-only", children: "View revision history" })
1000
1000
  ] }),
1001
1001
  /* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1002
1002
  ] }) }) }),
1003
- /* @__PURE__ */ c(ps, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(H, { fallback: /* @__PURE__ */ c(vi, {}), children: /* @__PURE__ */ c(wi, { isOpen: e }) }) })
1003
+ /* @__PURE__ */ c(ys, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(H, { fallback: /* @__PURE__ */ c(wi, {}), children: /* @__PURE__ */ c(bi, { isOpen: e }) }) })
1004
1004
  ] }),
1005
- /* @__PURE__ */ c(Wt, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
1005
+ /* @__PURE__ */ c(Yt, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
1006
1006
  ] }) });
1007
1007
  }
1008
- const rn = ({
1008
+ const an = ({
1009
1009
  permission: e,
1010
1010
  permissions: t,
1011
1011
  children: n,
@@ -1013,7 +1013,7 @@ const rn = ({
1013
1013
  }) => {
1014
1014
  const { hasPermission: r } = ms();
1015
1015
  return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
1016
- }, Ii = {
1016
+ }, Ci = {
1017
1017
  SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
1018
1018
  }, Ce = () => {
1019
1019
  const e = N(), t = I();
@@ -1023,10 +1023,10 @@ const rn = ({
1023
1023
  placeholderData: [],
1024
1024
  queryFn: async () => t(e, { action: E.GET_PAGE_TYPES })
1025
1025
  });
1026
- }, Ci = (e) => {
1026
+ }, Ni = (e) => {
1027
1027
  const { data: t } = Ce();
1028
1028
  return Q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
1029
- }, Ni = () => {
1029
+ }, Li = () => {
1030
1030
  const e = N(), t = I();
1031
1031
  return X({
1032
1032
  mutationFn: async ({ pageType: n, query: s }) => {
@@ -1043,7 +1043,7 @@ const rn = ({
1043
1043
  }
1044
1044
  }
1045
1045
  });
1046
- }, kc = () => {
1046
+ }, Rc = () => {
1047
1047
  const e = N(), t = W(), n = I(), { data: s } = Ce();
1048
1048
  return X({
1049
1049
  mutationFn: async (r) => await n(e, {
@@ -1065,11 +1065,11 @@ const rn = ({
1065
1065
  onError: (r, a) => {
1066
1066
  const i = re(s, { key: a.pageType });
1067
1067
  R.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
1068
- description: V(Ii, r.message, r.message)
1068
+ description: V(Ci, r.message, r.message)
1069
1069
  });
1070
1070
  }
1071
1071
  });
1072
- }, Oc = () => {
1072
+ }, Uc = () => {
1073
1073
  const e = N(), t = W(), n = I(), { data: s } = be(), { data: r } = Ce();
1074
1074
  return X({
1075
1075
  mutationFn: async (a) => await n(e, {
@@ -1094,7 +1094,7 @@ const rn = ({
1094
1094
  });
1095
1095
  }
1096
1096
  });
1097
- }, Dc = () => {
1097
+ }, Bc = () => {
1098
1098
  const e = N(), t = W(), n = I(), { data: s } = Ce();
1099
1099
  return X({
1100
1100
  mutationFn: async (r) => n(e, {
@@ -1123,7 +1123,7 @@ const rn = ({
1123
1123
  });
1124
1124
  }
1125
1125
  });
1126
- }, Gc = () => {
1126
+ }, Mc = () => {
1127
1127
  const e = N(), t = W(), n = I(), { data: s } = Ce();
1128
1128
  return X({
1129
1129
  mutationFn: async (r) => n(e, {
@@ -1148,7 +1148,7 @@ const rn = ({
1148
1148
  });
1149
1149
  }
1150
1150
  });
1151
- }, Cs = () => {
1151
+ }, Ns = () => {
1152
1152
  const e = N(), t = I(), n = W(), { data: s } = ie(), { savePageAsync: r } = Ge();
1153
1153
  return X({
1154
1154
  mutationFn: async ({ ids: a }) => (await r(), t(e, {
@@ -1168,7 +1168,7 @@ const rn = ({
1168
1168
  console.log("##", a), R.error("Failed to publish pages.");
1169
1169
  }
1170
1170
  });
1171
- }, xc = () => {
1171
+ }, Fc = () => {
1172
1172
  const e = N(), t = I(), n = W();
1173
1173
  return X({
1174
1174
  mutationFn: async (s) => {
@@ -1193,7 +1193,7 @@ const rn = ({
1193
1193
  R.error("Failed to mark page as template.");
1194
1194
  }
1195
1195
  });
1196
- }, Rc = () => {
1196
+ }, qc = () => {
1197
1197
  const e = N(), t = I(), n = W();
1198
1198
  return X({
1199
1199
  mutationFn: async (s) => t(e, {
@@ -1209,7 +1209,7 @@ const rn = ({
1209
1209
  R.error("Failed to unmark page as template.");
1210
1210
  }
1211
1211
  });
1212
- }, Uc = () => {
1212
+ }, Kc = () => {
1213
1213
  const e = N(), t = I(), n = W();
1214
1214
  return X({
1215
1215
  mutationFn: async ({ id: s, slug: r }) => t(e, {
@@ -1227,17 +1227,17 @@ const rn = ({
1227
1227
  R.error("Failed to change slug");
1228
1228
  }
1229
1229
  });
1230
- }, Li = K(() => import("./publish-pages-content-jYi-Q1Vl.js"));
1231
- function ki({
1230
+ }, ki = F(() => import("./publish-pages-content-eAcMLyLi.js"));
1231
+ function Oi({
1232
1232
  showModal: e = !1,
1233
1233
  onClose: t = () => console.log("Cancelled")
1234
1234
  }) {
1235
- const { mutate: n, isPending: s } = Cs();
1236
- return /* @__PURE__ */ c(As, { open: e, onOpenChange: s ? () => {
1237
- } : t, children: e && /* @__PURE__ */ c(H, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(Li, { onClose: t, isPending: s, publishPage: n }) }) });
1235
+ const { mutate: n, isPending: s } = Ns();
1236
+ return /* @__PURE__ */ c(Ts, { open: e, onOpenChange: s ? () => {
1237
+ } : t, children: e && /* @__PURE__ */ c(H, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(ki, { onClose: t, isPending: s, publishPage: n }) }) });
1238
1238
  }
1239
1239
  const ce = {
1240
- ...Hr,
1240
+ ...$r,
1241
1241
  //pages
1242
1242
  ADD_PAGE: "add_page",
1243
1243
  EDIT_PAGE: "edit_page",
@@ -1273,12 +1273,12 @@ const ce = {
1273
1273
  ADD_MEDIA: "add_media",
1274
1274
  EDIT_MEDIA: "edit_media",
1275
1275
  DELETE_MEDIA: "delete_media"
1276
- }, Oi = {
1276
+ }, Di = {
1277
1277
  particleCount: 350,
1278
1278
  spread: 120,
1279
1279
  origin: { y: 0.6 },
1280
1280
  angle: 90
1281
- }, Di = {
1281
+ }, Gi = {
1282
1282
  TOP_RIGHT: {
1283
1283
  angle: 225,
1284
1284
  origin: { x: 0.9, y: 0 }
@@ -1287,29 +1287,29 @@ const ce = {
1287
1287
  angle: 100,
1288
1288
  origin: { x: 0.9, y: 0.9 }
1289
1289
  }
1290
- }, Gi = async () => {
1290
+ }, xi = async () => {
1291
1291
  const { default: e } = await import("./confetti.module-DCmCkDyV.js");
1292
1292
  return e;
1293
- }, an = (e) => {
1294
- let t = Di[e];
1293
+ }, on = (e) => {
1294
+ let t = Gi[e];
1295
1295
  t || (t = {});
1296
- const n = { ...Oi, ...t };
1297
- Gi().then((s) => s(n));
1296
+ const n = { ...Di, ...t };
1297
+ xi().then((s) => s(n));
1298
1298
  };
1299
- function Dn({
1299
+ function Gn({
1300
1300
  children: e,
1301
1301
  content: t,
1302
1302
  side: n = "bottom",
1303
1303
  delayDuration: s = 700,
1304
1304
  showTooltip: r = !0
1305
1305
  }) {
1306
- return r ? /* @__PURE__ */ c(ys, { children: /* @__PURE__ */ m(jt, { delayDuration: s, children: [
1307
- /* @__PURE__ */ c(zt, { asChild: !0, children: e }),
1308
- /* @__PURE__ */ c(Wt, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
1306
+ return r ? /* @__PURE__ */ c(As, { children: /* @__PURE__ */ m(zt, { delayDuration: s, children: [
1307
+ /* @__PURE__ */ c(Wt, { asChild: !0, children: e }),
1308
+ /* @__PURE__ */ c(Yt, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
1309
1309
  ] }) }) : e;
1310
1310
  }
1311
- const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import("./translation-warning-modal-DalBhNQy.js")), Ui = () => {
1312
- const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Se(), s = oe("getPreviewUrl", async (h) => h), [r, a] = q(""), { data: i } = ie(), { data: o } = xe(), { data: l } = Ce(), u = Q(
1311
+ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import("./translation-warning-modal-DalBhNQy.js")), Bi = () => {
1312
+ const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Se(), s = oe("getPreviewUrl", async (h) => h), [r, a] = K(""), { data: i } = ie(), { data: o } = xe(), { data: l } = Ce(), u = Q(
1313
1313
  () => {
1314
1314
  var h;
1315
1315
  return (h = o == null ? void 0 : o.find((g) => (g == null ? void 0 : g.lang) === t)) == null ? void 0 : h.slug;
@@ -1329,24 +1329,24 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1329
1329
  } else
1330
1330
  a("");
1331
1331
  })();
1332
- }, [s, u, i == null ? void 0 : i.pageType, f, i == null ? void 0 : i.id, d]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(Dn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(M, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(La, { className: "h-4 w-4" }) }) }) }) });
1333
- }, Bi = () => {
1334
- const { t: e } = we(), [t, n] = Qr();
1332
+ }, [s, u, i == null ? void 0 : i.pageType, f, i == null ? void 0 : i.id, d]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(Gn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(B, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(ka, { className: "h-4 w-4" }) }) }) }) });
1333
+ }, Mi = () => {
1334
+ const { t: e } = we(), [t, n] = jr();
1335
1335
  return /* @__PURE__ */ m(ge, { children: [
1336
- /* @__PURE__ */ c(Dn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
1337
- M,
1336
+ /* @__PURE__ */ c(Gn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
1337
+ B,
1338
1338
  {
1339
1339
  variant: t === "theme" ? "outline" : "ghost",
1340
1340
  size: "icon",
1341
1341
  className: "gap-2",
1342
1342
  onClick: () => n(t === "theme" ? "block" : "theme"),
1343
- children: /* @__PURE__ */ c(ka, { className: "h-4 w-4" })
1343
+ children: /* @__PURE__ */ c(Oa, { className: "h-4 w-4" })
1344
1344
  }
1345
1345
  ) }),
1346
1346
  /* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1347
1347
  ] });
1348
- }, Mi = () => {
1349
- const { t: e } = we(), [t, n] = q(!1), { isLocked: s } = Ie(), { savePageAsync: r, saveState: a } = Ge();
1348
+ }, Fi = () => {
1349
+ const { t: e } = we(), [t, n] = K(!1), { isLocked: s } = Ie(), { savePageAsync: r, saveState: a } = Ge();
1350
1350
  se(() => {
1351
1351
  const f = (d) => {
1352
1352
  a === "UNSAVED" && (d.preventDefault(), d.returnValue = !1);
@@ -1362,37 +1362,37 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1362
1362
  case "UNSAVED":
1363
1363
  return {
1364
1364
  tooltipContent: e("Save draft"),
1365
- buttonIcon: /* @__PURE__ */ c(Da, { className: "h-4 w-4" }),
1365
+ buttonIcon: /* @__PURE__ */ c(Ga, { className: "h-4 w-4" }),
1366
1366
  buttonClass: "gap-x-1"
1367
1367
  };
1368
1368
  case "SAVING":
1369
1369
  return {
1370
1370
  tooltipContent: e("Saving"),
1371
- buttonIcon: /* @__PURE__ */ c(Mt, { className: "h-4 w-4 animate-spin text-sky-700" }),
1371
+ buttonIcon: /* @__PURE__ */ c(Ft, { className: "h-4 w-4 animate-spin text-sky-700" }),
1372
1372
  buttonClass: "gap-x-1"
1373
1373
  };
1374
1374
  case "SAVED":
1375
1375
  return {
1376
1376
  tooltipContent: e("Saved"),
1377
- buttonIcon: /* @__PURE__ */ c(Oa, { className: "h-4 w-4" }),
1377
+ buttonIcon: /* @__PURE__ */ c(Da, { className: "h-4 w-4" }),
1378
1378
  buttonClass: "text-green-500 gap-x-1"
1379
1379
  };
1380
1380
  }
1381
1381
  }, [a, e]);
1382
- return s ? null : /* @__PURE__ */ m(M, { size: "sm", variant: "ghost", onClick: i, className: `${l} w-24 max-w-24`, children: [
1382
+ return s ? null : /* @__PURE__ */ m(B, { size: "sm", variant: "ghost", onClick: i, className: `${l} w-24 max-w-24`, children: [
1383
1383
  o,
1384
1384
  " ",
1385
1385
  u
1386
1386
  ] });
1387
- }, Fi = () => {
1388
- const { t: e } = we(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = xe(), [r, a] = q(!1), [i, o] = q(!1), [l, u] = q(null), { savePageAsync: f } = Ge(), [d, h] = q(!1), { data: g } = ie(), { mutate: A, isPending: T } = Cs(), { needTranslations: p } = Ge(), y = p(), { buttonText: P, buttonClassName: w, isPublished: O } = Q(() => {
1387
+ }, qi = () => {
1388
+ const { t: e } = we(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = xe(), [r, a] = K(!1), [i, o] = K(!1), [l, u] = K(null), { savePageAsync: f } = Ge(), [d, h] = K(!1), { data: g } = ie(), { mutate: A, isPending: T } = Ns(), { needTranslations: p } = Ge(), y = p(), { buttonText: P, buttonClassName: w, isPublished: O } = Q(() => {
1389
1389
  const v = g && (g == null ? void 0 : g.online);
1390
1390
  return {
1391
1391
  buttonClassName: v ? "hover:bg-green-600 bg-green-500" : "",
1392
1392
  isPublished: v,
1393
1393
  buttonText: e(v ? "Published" : "Publish")
1394
1394
  };
1395
- }, [g, e]), B = async () => {
1395
+ }, [g, e]), M = async () => {
1396
1396
  if (y) {
1397
1397
  h(!0);
1398
1398
  return;
@@ -1400,19 +1400,19 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1400
1400
  L();
1401
1401
  }, L = () => {
1402
1402
  const v = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
1403
- A({ ids: fs(v) }, { onSuccess: () => an("TOP_RIGHT") });
1403
+ A({ ids: fs(v) }, { onSuccess: () => on("TOP_RIGHT") });
1404
1404
  }, pe = () => {
1405
1405
  h(!1), L();
1406
1406
  }, ye = async () => {
1407
1407
  h(!1), await f();
1408
- }, U = Q(() => Ut(s ?? [], "id"), [s]);
1408
+ }, U = Q(() => Bt(s ?? [], "id"), [s]);
1409
1409
  return /* @__PURE__ */ m(ge, { children: [
1410
1410
  /* @__PURE__ */ m("div", { className: "flex", children: [
1411
1411
  /* @__PURE__ */ m(
1412
- M,
1412
+ B,
1413
1413
  {
1414
1414
  size: "sm",
1415
- onClick: B,
1415
+ onClick: M,
1416
1416
  disabled: T || !(g != null && g.id),
1417
1417
  className: `relative flex items-center gap-1 overflow-hidden rounded-r-none text-white transition-all duration-300 ease-in-out ${w}`,
1418
1418
  onMouseEnter: () => o(!0),
@@ -1433,27 +1433,27 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1433
1433
  }
1434
1434
  ),
1435
1435
  /* @__PURE__ */ c("span", { children: P }),
1436
- t ? `(${Mn(t)})` : ""
1436
+ t ? `(${Fn(t)})` : ""
1437
1437
  ]
1438
1438
  }
1439
1439
  ),
1440
- /* @__PURE__ */ m(vn, { children: [
1441
- /* @__PURE__ */ c(wn, { asChild: !0, children: /* @__PURE__ */ c(
1442
- M,
1440
+ /* @__PURE__ */ m(wn, { children: [
1441
+ /* @__PURE__ */ c(bn, { asChild: !0, children: /* @__PURE__ */ c(
1442
+ B,
1443
1443
  {
1444
1444
  size: "sm",
1445
1445
  disabled: T || !(g != null && g.id),
1446
1446
  className: `rounded-l-none border-l border-white/50 px-2 text-white ${w}`,
1447
- children: /* @__PURE__ */ c(fn, { className: "h-4 w-4" })
1447
+ children: /* @__PURE__ */ c(hn, { className: "h-4 w-4" })
1448
1448
  }
1449
1449
  ) }),
1450
- /* @__PURE__ */ m(bn, { align: "end", className: "w-52", children: [
1450
+ /* @__PURE__ */ m(In, { align: "end", className: "w-52", children: [
1451
1451
  /* @__PURE__ */ m(
1452
1452
  ue,
1453
1453
  {
1454
1454
  disabled: T,
1455
1455
  className: "cursor-pointer text-xs",
1456
- onClick: () => A({ ids: U }, { onSuccess: () => an("TOP_RIGHT") }),
1456
+ onClick: () => A({ ids: U }, { onSuccess: () => on("TOP_RIGHT") }),
1457
1457
  children: [
1458
1458
  e("Publish"),
1459
1459
  " with translation pages"
@@ -1465,7 +1465,7 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1465
1465
  {
1466
1466
  disabled: T,
1467
1467
  className: "cursor-pointer text-xs",
1468
- onClick: () => A({ ids: [g == null ? void 0 : g.id] }, { onSuccess: () => an("TOP_RIGHT") }),
1468
+ onClick: () => A({ ids: [g == null ? void 0 : g.id] }, { onSuccess: () => on("TOP_RIGHT") }),
1469
1469
  children: [
1470
1470
  e("Publish"),
1471
1471
  " page"
@@ -1479,15 +1479,15 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1479
1479
  O && /* @__PURE__ */ m(ue, { onClick: () => u(n), className: "cursor-pointer text-xs", children: [
1480
1480
  e("Unpublish"),
1481
1481
  " page ",
1482
- t ? `(${Mn(t)})` : ""
1482
+ t ? `(${Fn(t)})` : ""
1483
1483
  ] })
1484
1484
  ] })
1485
1485
  ] })
1486
1486
  ] }),
1487
- /* @__PURE__ */ c(ki, { showModal: r, onClose: () => a(!1) }),
1488
- l && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(xi, { page: l, onClose: () => u(null) }) }),
1487
+ /* @__PURE__ */ c(Oi, { showModal: r, onClose: () => a(!1) }),
1488
+ l && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ri, { page: l, onClose: () => u(null) }) }),
1489
1489
  d && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
1490
- Ri,
1490
+ Ui,
1491
1491
  {
1492
1492
  isOpen: d,
1493
1493
  onClose: ye,
@@ -1497,17 +1497,17 @@ const xi = K(() => import("./unpublish-page-COPOrCk_.js")), Ri = K(() => import(
1497
1497
  ) })
1498
1498
  ] });
1499
1499
  };
1500
- function qi() {
1501
- const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = Ps(n);
1500
+ function Ki() {
1501
+ const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = vs(n);
1502
1502
  return e || !s ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
1503
- /* @__PURE__ */ c(bi, {}),
1504
- /* @__PURE__ */ c(rn, { permission: ce.EDIT_THEME, children: /* @__PURE__ */ c(Bi, {}) }),
1505
- /* @__PURE__ */ c(Ui, {}),
1506
- /* @__PURE__ */ c(rn, { permission: ce.SAVE_PAGE, children: /* @__PURE__ */ c(Mi, {}) }),
1507
- /* @__PURE__ */ c(rn, { permission: ce.PUBLISH_PAGE, children: /* @__PURE__ */ c(Fi, {}) })
1503
+ /* @__PURE__ */ c(Ii, {}),
1504
+ /* @__PURE__ */ c(an, { permission: ce.EDIT_THEME, children: /* @__PURE__ */ c(Mi, {}) }),
1505
+ /* @__PURE__ */ c(Bi, {}),
1506
+ /* @__PURE__ */ c(an, { permission: ce.SAVE_PAGE, children: /* @__PURE__ */ c(Fi, {}) }),
1507
+ /* @__PURE__ */ c(an, { permission: ce.PUBLISH_PAGE, children: /* @__PURE__ */ c(qi, {}) })
1508
1508
  ] });
1509
1509
  }
1510
- const Ki = ({
1510
+ const Vi = ({
1511
1511
  page: e,
1512
1512
  setDuplicatePage: t,
1513
1513
  setAddEditPage: n,
@@ -1519,9 +1519,9 @@ const Ki = ({
1519
1519
  isLanguagePage: l
1520
1520
  }) => {
1521
1521
  const { t: u } = we(), { hasPermission: f } = ms(), { data: d } = Ce(), h = Q(() => re(d, { key: e.pageType }), [d, e.pageType]), g = Q(() => !!e.isTemplate, [e.isTemplate]), A = Q(() => !!(h != null && h.hasSlug), [h == null ? void 0 : h.hasSlug]);
1522
- return !f(ce.EDIT_PAGE) && !f(ce.DELETE_PAGE) && !f(ce.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(vn, { children: [
1523
- /* @__PURE__ */ c(wn, { asChild: !0, onClick: (p) => p.stopPropagation(), children: o }),
1524
- /* @__PURE__ */ m(bn, { align: "center", className: "text-sm", children: [
1522
+ return !f(ce.EDIT_PAGE) && !f(ce.DELETE_PAGE) && !f(ce.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(wn, { children: [
1523
+ /* @__PURE__ */ c(bn, { asChild: !0, onClick: (p) => p.stopPropagation(), children: o }),
1524
+ /* @__PURE__ */ m(In, { align: "center", className: "text-sm", children: [
1525
1525
  f(ce.ADD_PAGE) && !l && /* @__PURE__ */ m(
1526
1526
  ue,
1527
1527
  {
@@ -1530,7 +1530,7 @@ const Ki = ({
1530
1530
  p.stopPropagation(), t(e);
1531
1531
  },
1532
1532
  children: [
1533
- /* @__PURE__ */ c(Ga, { className: "size-3" }),
1533
+ /* @__PURE__ */ c(xa, { className: "size-3" }),
1534
1534
  "Duplicate page"
1535
1535
  ]
1536
1536
  }
@@ -1546,7 +1546,7 @@ const Ki = ({
1546
1546
  });
1547
1547
  },
1548
1548
  children: [
1549
- /* @__PURE__ */ c(xa, { className: "size-3" }),
1549
+ /* @__PURE__ */ c(Ra, { className: "size-3" }),
1550
1550
  "Edit"
1551
1551
  ]
1552
1552
  }
@@ -1559,7 +1559,7 @@ const Ki = ({
1559
1559
  p.stopPropagation(), s(e);
1560
1560
  },
1561
1561
  children: [
1562
- /* @__PURE__ */ c(Ra, { className: "size-3" }),
1562
+ /* @__PURE__ */ c(Ua, { className: "size-3" }),
1563
1563
  u("Unpublish")
1564
1564
  ]
1565
1565
  }
@@ -1572,7 +1572,7 @@ const Ki = ({
1572
1572
  p.stopPropagation(), r(e);
1573
1573
  },
1574
1574
  children: [
1575
- /* @__PURE__ */ c(Ua, { className: "size-3" }),
1575
+ /* @__PURE__ */ c(Ba, { className: "size-3" }),
1576
1576
  u("Delete")
1577
1577
  ]
1578
1578
  }
@@ -1604,10 +1604,10 @@ const Ki = ({
1604
1604
  ) })
1605
1605
  ] })
1606
1606
  ] });
1607
- }, Vi = K(() => import("./add-new-page-C-DdGfOJ.js")), Hi = K(() => import("./delete-page-X6KE9Snl.js")), Qi = K(() => import("./duplicate-page-Bwp0RTTE.js")), $i = K(() => import("./mark-as-template-XIeQkqPw.js")), ji = K(() => import("./unmark-as-template-Dezq0GEM.js")), zi = K(() => import("./unpublish-page-COPOrCk_.js")), Wi = () => {
1608
- const [e, t] = q(null), [n, s] = q(null), [r, a] = q(null), [i, o] = q(null), [l, u] = q(null), [f, d] = q(null), { data: h, isFetching: g } = be(), { selectedLang: A, fallbackLang: T } = Se(), { data: p } = xe(), y = p == null ? void 0 : p.find((L) => L.lang === A), { isLocked: P } = Ie(), w = !(h != null && h.slug), [, O] = te(kn);
1607
+ }, Hi = F(() => import("./add-new-page-C7Kw3sZO.js")), Qi = F(() => import("./delete-page-CyqJ6iqb.js")), $i = F(() => import("./duplicate-page-BGXDNCfU.js")), ji = F(() => import("./mark-as-template-BGe_QmNY.js")), zi = F(() => import("./unmark-as-template-B9xuxdYK.js")), Wi = F(() => import("./unpublish-page-CYmJyQH9.js")), Yi = () => {
1608
+ const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, u] = K(null), [f, d] = K(null), { data: h, isFetching: g } = be(), { selectedLang: A, fallbackLang: T } = Se(), { data: p } = xe(), y = p == null ? void 0 : p.find((L) => L.lang === A), { isLocked: P } = Ie(), w = !(h != null && h.slug), [, O] = te(On);
1609
1609
  if (!h) return null;
1610
- const B = (L) => {
1610
+ const M = (L) => {
1611
1611
  A.length > 0 && A !== T ? O({
1612
1612
  edit: !0,
1613
1613
  id: L == null ? void 0 : L.id,
@@ -1616,19 +1616,19 @@ const Ki = ({
1616
1616
  };
1617
1617
  return /* @__PURE__ */ m(ge, { children: [
1618
1618
  /* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
1619
- /* @__PURE__ */ c(Is, { children: /* @__PURE__ */ c(
1620
- M,
1619
+ /* @__PURE__ */ c(Cs, { children: /* @__PURE__ */ c(
1620
+ B,
1621
1621
  {
1622
1622
  className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
1623
1623
  variant: "ghost",
1624
- children: g ? /* @__PURE__ */ c(Mt, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
1625
- w ? /* @__PURE__ */ c(Ba, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Ma, { className: "mr-1 h-4 w-4" }),
1624
+ children: g ? /* @__PURE__ */ c(Ft, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
1625
+ w ? /* @__PURE__ */ c(Ma, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Fa, { className: "mr-1 h-4 w-4" }),
1626
1626
  V(y || h, "name") ?? ""
1627
1627
  ] })
1628
1628
  }
1629
1629
  ) }),
1630
1630
  P ? /* @__PURE__ */ c(
1631
- M,
1631
+ B,
1632
1632
  {
1633
1633
  variant: "ghost",
1634
1634
  size: "icon",
@@ -1636,22 +1636,22 @@ const Ki = ({
1636
1636
  children: /* @__PURE__ */ c(jn, { className: "h-4 w-4" })
1637
1637
  }
1638
1638
  ) : /* @__PURE__ */ c(
1639
- Ki,
1639
+ Vi,
1640
1640
  {
1641
1641
  page: h,
1642
1642
  setDuplicatePage: (L) => u(L),
1643
- setAddEditPage: (L) => B(L),
1643
+ setAddEditPage: (L) => M(L),
1644
1644
  setUnpublishPage: (L) => s(L),
1645
1645
  setDeletePage: (L) => t(L),
1646
1646
  setMarkAsTemplate: (L) => a(L),
1647
1647
  setUnmarkAsTemplate: (L) => o(L),
1648
1648
  isLanguagePage: A.length > 0 && A !== T,
1649
- children: /* @__PURE__ */ c(M, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ c(jn, { className: "h-4 w-4" }) })
1649
+ children: /* @__PURE__ */ c(B, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ c(jn, { className: "h-4 w-4" }) })
1650
1650
  }
1651
1651
  )
1652
1652
  ] }),
1653
1653
  f && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
1654
- Vi,
1654
+ Hi,
1655
1655
  {
1656
1656
  closePanel: () => d(null),
1657
1657
  editPage: () => {
@@ -1660,12 +1660,12 @@ const Ki = ({
1660
1660
  setAddEditPage: d
1661
1661
  }
1662
1662
  ) }),
1663
- e && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Hi, { page: e, onClose: () => t(null) }) }),
1664
- n && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(zi, { page: n, onClose: () => s(null) }) }),
1665
- r && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c($i, { page: r, onClose: () => a(null) }) }),
1666
- i && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(ji, { page: i, onClose: () => o(null) }) }),
1663
+ e && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Qi, { page: e, onClose: () => t(null) }) }),
1664
+ n && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Wi, { page: n, onClose: () => s(null) }) }),
1665
+ r && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(ji, { page: r, onClose: () => a(null) }) }),
1666
+ i && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(zi, { page: i, onClose: () => o(null) }) }),
1667
1667
  l && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
1668
- Qi,
1668
+ $i,
1669
1669
  {
1670
1670
  page: l,
1671
1671
  onClose: () => u(null),
@@ -1673,46 +1673,46 @@ const Ki = ({
1673
1673
  }
1674
1674
  ) })
1675
1675
  ] });
1676
- }, Ns = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(
1676
+ }, Ls = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(
1677
1677
  "div",
1678
1678
  {
1679
- className: Bt(
1679
+ className: Mt(
1680
1680
  "fixed bottom-0 left-0 right-0 top-[50px] z-[20] flex w-screen flex-col items-center justify-center bg-black/40 transition-all",
1681
1681
  t
1682
1682
  ),
1683
1683
  children: e
1684
1684
  }
1685
- ), Yi = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Ns, { children: /* @__PURE__ */ m("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: [
1685
+ ), Ji = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Ls, { children: /* @__PURE__ */ m("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: [
1686
1686
  /* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
1687
1687
  /* @__PURE__ */ c("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" })
1688
- ] }) }), Ji = K(() => import("./dynamic-page-selector-Vl0aOeHK.js")), Xi = () => {
1689
- const { dynamicPage: e, allLangPages: t, isFetching: n } = ri(), s = t.length > 0;
1688
+ ] }) }), Xi = F(() => import("./dynamic-page-selector-D0H0U30o.js")), Zi = () => {
1689
+ const { dynamicPage: e, allLangPages: t, isFetching: n } = ai(), s = t.length > 0;
1690
1690
  return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
1691
- !e && /* @__PURE__ */ c(Yi, { hasDynamicPage: s }),
1692
- /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ji, {}) })
1691
+ !e && /* @__PURE__ */ c(Ji, { hasDynamicPage: s }),
1692
+ /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Xi, {}) })
1693
1693
  ] });
1694
- }, Zi = () => {
1695
- const { data: e, isFetching: t } = be(), { data: n, isFetching: s } = ie(), r = V(n, "dynamic", !1), a = Cn(), i = $r("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, u = li(), f = t || s, h = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
1694
+ }, eo = () => {
1695
+ const { data: e, isFetching: t } = be(), { data: n, isFetching: s } = ie(), r = V(n, "dynamic", !1), a = Nn(), i = Es("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, u = ci(), f = t || s, h = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
1696
1696
  return /* @__PURE__ */ m("div", { className: "relative flex items-center gap-x-1", children: [
1697
1697
  /* @__PURE__ */ c(
1698
1698
  "div",
1699
1699
  {
1700
- className: Bt(
1700
+ className: Mt(
1701
1701
  "flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
1702
1702
  f && "max-w-0 overflow-hidden opacity-0"
1703
1703
  ),
1704
- children: /* @__PURE__ */ c(Wi, {})
1704
+ children: /* @__PURE__ */ c(Yi, {})
1705
1705
  }
1706
1706
  ),
1707
1707
  /* @__PURE__ */ m(
1708
1708
  "div",
1709
1709
  {
1710
- className: Bt(
1710
+ className: Mt(
1711
1711
  "flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (l ? " pr-2" : ""),
1712
1712
  f && "max-w-0 overflow-hidden opacity-0"
1713
1713
  ),
1714
1714
  children: [
1715
- /* @__PURE__ */ c(_i, {}),
1715
+ /* @__PURE__ */ c(Pi, {}),
1716
1716
  /* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
1717
1717
  /* @__PURE__ */ c(
1718
1718
  "div",
@@ -1724,18 +1724,18 @@ const Ki = ({
1724
1724
  ] }) : h
1725
1725
  }
1726
1726
  ),
1727
- !l && /* @__PURE__ */ c("a", { href: u, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ c(Fa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
1727
+ !l && /* @__PURE__ */ c("a", { href: u, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ c(qa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
1728
1728
  ] })
1729
1729
  ]
1730
1730
  }
1731
1731
  ),
1732
- r && i && /* @__PURE__ */ c(Xi, {})
1732
+ r && i && /* @__PURE__ */ c(Zi, {})
1733
1733
  ] });
1734
- }, eo = () => /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-between px-2", children: [
1735
- /* @__PURE__ */ c(Pi, {}),
1736
- /* @__PURE__ */ c(Zi, {}),
1737
- /* @__PURE__ */ c(qi, {})
1738
- ] }), Ls = () => {
1734
+ }, to = () => /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-between px-2", children: [
1735
+ /* @__PURE__ */ c(vi, {}),
1736
+ /* @__PURE__ */ c(eo, {}),
1737
+ /* @__PURE__ */ c(Ki, {})
1738
+ ] }), ks = () => {
1739
1739
  const e = W(), { data: t } = ae({
1740
1740
  queryKey: [E.AI_CONTEXT],
1741
1741
  initialData: "",
@@ -1748,8 +1748,8 @@ const Ki = ({
1748
1748
  },
1749
1749
  [e]
1750
1750
  ), aiContext: t };
1751
- }, to = () => {
1752
- const e = N(), { aiContext: t } = Ls(), n = I();
1751
+ }, no = () => {
1752
+ const e = N(), { aiContext: t } = ks(), n = I();
1753
1753
  return j(
1754
1754
  async (s, r, a, i) => n(e, {
1755
1755
  action: E.ASK_AI,
@@ -1757,36 +1757,36 @@ const Ki = ({
1757
1757
  }),
1758
1758
  [e, t, n]
1759
1759
  );
1760
- }, no = (e, t) => t.map((n) => {
1761
- if ($t(e, n._type)) {
1762
- const s = Ya(n._type);
1760
+ }, so = (e, t) => t.map((n) => {
1761
+ if (jt(e, n._type)) {
1762
+ const s = Ja(n._type);
1763
1763
  return {
1764
1764
  ...s,
1765
- ...Pn(n, [
1766
- ...kr(s),
1765
+ ...vn(n, [
1766
+ ...Dr(s),
1767
1767
  "_type",
1768
1768
  "_id",
1769
1769
  "_name",
1770
1770
  "_parent",
1771
1771
  "_bindings"
1772
1772
  ]),
1773
- ...Or(n, (r, a) => Dr(a, "_attrs")),
1773
+ ...Gr(n, (r, a) => xr(a, "_attrs")),
1774
1774
  ...n
1775
1775
  };
1776
1776
  }
1777
1777
  return n;
1778
- }), so = (e) => {
1779
- const t = Wa();
1778
+ }), ro = (e) => {
1779
+ const t = Ya();
1780
1780
  return Q(() => {
1781
1781
  if (!e || he(e)) return { blocks: [] };
1782
1782
  const n = hs(
1783
1783
  e,
1784
- (s) => !Lr(s == null ? void 0 : s._type, "@chai/")
1784
+ (s) => !Or(s == null ? void 0 : s._type, "@chai/")
1785
1785
  );
1786
- return { blocks: no(t, n) };
1786
+ return { blocks: so(t, n) };
1787
1787
  }, [e, t]);
1788
- }, ro = () => {
1789
- const [e] = le(), t = e.get("page"), n = N(), { setAiContext: s } = Ls(), [, r] = Nn(), [, a] = oi(), [, i] = jr(), o = I();
1788
+ }, ao = () => {
1789
+ const [e] = le(), t = e.get("page"), n = N(), { setAiContext: s } = ks(), [, r] = Ln(), [, a] = li(), [, i] = zr(), o = I();
1790
1790
  return ae({
1791
1791
  queryKey: [E.GET_DRAFT_PAGE, t],
1792
1792
  staleTime: 1 / 0,
@@ -1801,8 +1801,8 @@ const Ki = ({
1801
1801
  },
1802
1802
  enabled: !!t
1803
1803
  });
1804
- }, ao = () => {
1805
- const { data: e } = ie(), { data: t } = be(), n = N(), s = I(), r = On(), a = Cn();
1804
+ }, io = () => {
1805
+ const { data: e } = ie(), { data: t } = be(), n = N(), s = I(), r = Dn(), a = Nn();
1806
1806
  return ae({
1807
1807
  queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
1808
1808
  staleTime: 1 / 0,
@@ -1831,7 +1831,7 @@ const Ki = ({
1831
1831
  }),
1832
1832
  enabled: !!(e != null && e.pageType) && !!t.id
1833
1833
  });
1834
- }, io = () => {
1834
+ }, oo = () => {
1835
1835
  const e = N(), t = W(), n = I();
1836
1836
  return X({
1837
1837
  mutationFn: async (s) => n(e, {
@@ -1850,7 +1850,7 @@ const Ki = ({
1850
1850
  });
1851
1851
  }
1852
1852
  });
1853
- }, Bc = () => {
1853
+ }, Vc = () => {
1854
1854
  const e = N(), t = W(), n = I(), { selectedLang: s } = Se();
1855
1855
  return X({
1856
1856
  mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
@@ -1865,7 +1865,7 @@ const Ki = ({
1865
1865
  });
1866
1866
  }
1867
1867
  });
1868
- }, Mc = () => {
1868
+ }, Hc = () => {
1869
1869
  const e = N(), t = W(), n = I(), { selectedLang: s } = Se();
1870
1870
  return X({
1871
1871
  mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
@@ -1880,7 +1880,7 @@ const Ki = ({
1880
1880
  });
1881
1881
  }
1882
1882
  });
1883
- }, Fc = () => {
1883
+ }, Qc = () => {
1884
1884
  const e = N(), t = W(), n = I();
1885
1885
  return X({
1886
1886
  mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
@@ -1895,7 +1895,7 @@ const Ki = ({
1895
1895
  });
1896
1896
  }
1897
1897
  });
1898
- }, qc = () => {
1898
+ }, $c = () => {
1899
1899
  const e = N(), t = I();
1900
1900
  return X({
1901
1901
  mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
@@ -1905,7 +1905,7 @@ const Ki = ({
1905
1905
  });
1906
1906
  }
1907
1907
  });
1908
- }, Kc = () => {
1908
+ }, jc = () => {
1909
1909
  const e = N(), t = I();
1910
1910
  return X({
1911
1911
  mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
@@ -1918,7 +1918,7 @@ const Ki = ({
1918
1918
  });
1919
1919
  }
1920
1920
  });
1921
- }, Vc = () => {
1921
+ }, zc = () => {
1922
1922
  const e = N(), t = I();
1923
1923
  return X({
1924
1924
  mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
@@ -1937,7 +1937,7 @@ const Ki = ({
1937
1937
  action: "GET_LIBRARY_ITEM",
1938
1938
  data: { id: e.id }
1939
1939
  }), r = V(s, "html", ""), a = V(s, "blocks", []);
1940
- return Gr(a) ? a : Wr(r);
1940
+ return Rr(a) ? a : Yr(r);
1941
1941
  },
1942
1942
  async getUILibraryBlocks(e, t, n) {
1943
1943
  try {
@@ -1951,7 +1951,7 @@ const Ki = ({
1951
1951
  return console.error(s), [];
1952
1952
  }
1953
1953
  }
1954
- }, oo = () => {
1954
+ }, lo = () => {
1955
1955
  const e = N(), t = I();
1956
1956
  return ae({
1957
1957
  queryKey: ["uiLibraries"],
@@ -1961,7 +1961,7 @@ const Ki = ({
1961
1961
  ...r
1962
1962
  }));
1963
1963
  return s.forEach((r) => {
1964
- zr(r.id, {
1964
+ Wr(r.id, {
1965
1965
  name: r.isSiteLibrary ? r.name + " (Current Site) " : r.name,
1966
1966
  description: r.description,
1967
1967
  getBlocksList: (a) => Yn.getUILibraryBlocks(a, t, e),
@@ -1970,8 +1970,8 @@ const Ki = ({
1970
1970
  }), s;
1971
1971
  }
1972
1972
  });
1973
- }, lo = () => {
1974
- const e = Ss(), t = I(), { user: n } = Yt(), s = n == null ? void 0 : n.id;
1973
+ }, co = () => {
1974
+ const e = _s(), t = I(), { user: n } = Jt(), s = n == null ? void 0 : n.id;
1975
1975
  return ae({
1976
1976
  queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
1977
1977
  queryFn: () => t(e, {
@@ -1981,8 +1981,8 @@ const Ki = ({
1981
1981
  enabled: !!s,
1982
1982
  staleTime: 1 / 0
1983
1983
  });
1984
- }, co = () => {
1985
- const e = N(), t = I(), [, n] = Nn();
1984
+ }, uo = () => {
1985
+ const e = N(), t = I(), [, n] = Ln();
1986
1986
  return { onSave: async ({
1987
1987
  page: r,
1988
1988
  blocks: a,
@@ -2001,15 +2001,15 @@ const Ki = ({
2001
2001
  return console.error(o), new Error("Failed to save blocks");
2002
2002
  }
2003
2003
  } };
2004
- }, uo = () => {
2005
- const { data: e } = bs(), t = N(), n = I();
2004
+ }, fo = () => {
2005
+ const { data: e } = Is(), t = N(), n = I();
2006
2006
  return {
2007
2007
  getPartialBlocks: j(async () => {
2008
2008
  const s = {};
2009
2009
  for (const r of e ?? [])
2010
2010
  he(r == null ? void 0 : r.slug) && (s[r.id] = {
2011
2011
  type: r.pageType,
2012
- name: xr(r.name ?? r.slug),
2012
+ name: Ur(r.name ?? r.slug),
2013
2013
  description: ""
2014
2014
  });
2015
2015
  return s;
@@ -2022,7 +2022,7 @@ const Ki = ({
2022
2022
  action: "GET_DRAFT_PAGE",
2023
2023
  data: { id: s, draft: !0, editor: !1 }
2024
2024
  });
2025
- return hs(r.blocks, (a) => $t(a, "_id"));
2025
+ return hs(r.blocks, (a) => jt(a, "_id"));
2026
2026
  } catch (r) {
2027
2027
  return console.error(r), [];
2028
2028
  }
@@ -2030,20 +2030,26 @@ const Ki = ({
2030
2030
  [n, t]
2031
2031
  )
2032
2032
  };
2033
- }, fo = K(() => import("./lang-panel-CaOkz8d3.js")), ho = ({ isActive: e, show: t }) => {
2033
+ }, ho = F(() => import("./ai-panel-content-BXnMSm-N.js")), Os = "chaibuilder-ai", go = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ c("svg", { className: e, viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ c("path", { d: "m198.39 128.986-52.16-19.216-19.216-52.16a16 16 0 0 0-30.028 0L77.77 109.77l-52.16 19.216a16 16 0 0 0 0 30.028l52.16 19.216 19.216 52.16a16 16 0 0 0 30.028 0l19.216-52.16 52.16-19.216a16 16 0 0 0 0-30.028m-57.69 34.23a15.97 15.97 0 0 0-9.483 9.483l-19.22 52.152-19.214-52.15a15.97 15.97 0 0 0-9.482-9.484l-52.152-19.22 52.15-19.214a15.97 15.97 0 0 0 9.484-9.482l19.22-52.152 19.214 52.15a15.97 15.97 0 0 0 9.482 9.484l52.152 19.22ZM144 40a8 8 0 0 1 8-8h16V16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 0 16h-16v16a8 8 0 0 1-16 0V48h-16a8 8 0 0 1-8-8m104 48a8 8 0 0 1-8 8h-8v8a8 8 0 0 1-16 0v-8h-8a8 8 0 0 1 0-16h8v-8a8 8 0 0 1 16 0v8h8a8 8 0 0 1 8 8" }) }), mo = ({ isActive: e, show: t }) => Es("enable-ai-chat-panel") ? /* @__PURE__ */ c(B, { size: "icon", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(go, { className: "h-4 w-4" }) }) : null, Eo = {
2034
+ id: Os,
2035
+ label: "AI Assistant",
2036
+ button: mo,
2037
+ panel: ho,
2038
+ position: "top"
2039
+ }, po = F(() => import("./lang-panel-8pMYi4Fn.js")), yo = ({ isActive: e, show: t }) => {
2034
2040
  const { data: n } = Re();
2035
- return !$t(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(qa, { className: "h-4 w-4" }) });
2036
- }, ks = "lang", go = {
2037
- id: ks,
2041
+ return !jt(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */ c(B, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Ka, { className: "h-4 w-4" }) });
2042
+ }, Ds = "lang", Ao = {
2043
+ id: Ds,
2038
2044
  label: "Languages",
2039
2045
  position: "top",
2040
- panel: fo,
2041
- button: ho,
2046
+ panel: po,
2047
+ button: yo,
2042
2048
  view: "modal",
2043
2049
  width: 400
2044
- }, mo = K(() => import("./seo-panel-D3bp2i90.js")), Os = "seo", Eo = ({ isActive: e, show: t }) => {
2045
- const { data: n } = ie(), s = Ci(n == null ? void 0 : n.pageType);
2046
- return !$t(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(M, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
2050
+ }, To = F(() => import("./seo-panel-DdE8DfMt.js")), Gs = "seo", So = ({ isActive: e, show: t }) => {
2051
+ const { data: n } = ie(), s = Ni(n == null ? void 0 : n.pageType);
2052
+ return !jt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(B, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
2047
2053
  "svg",
2048
2054
  {
2049
2055
  stroke: "currentColor",
@@ -2061,35 +2067,35 @@ const Ki = ({
2061
2067
  ]
2062
2068
  }
2063
2069
  ) });
2064
- }, po = {
2065
- id: Os,
2070
+ }, _o = {
2071
+ id: Gs,
2066
2072
  label: "SEO",
2067
- panel: mo,
2068
- button: Eo,
2073
+ panel: To,
2074
+ button: So,
2069
2075
  position: "top",
2070
2076
  width: 600,
2071
2077
  view: "modal"
2072
- }, Ds = "user-info", yo = () => {
2073
- const { t: e } = we(), { user: t, logout: n } = Yt(), s = oe("onLogout", ds);
2074
- return t ? /* @__PURE__ */ m(aa, { children: [
2075
- /* @__PURE__ */ c(ia, { asChild: !0, children: /* @__PURE__ */ c(M, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(Ka, { className: "h-4 w-4" }) }) }),
2076
- /* @__PURE__ */ m(oa, { className: "w-auto space-y-2 p-4", children: [
2078
+ }, xs = "user-info", Po = () => {
2079
+ const { t: e } = we(), { user: t, logout: n } = Jt(), s = oe("onLogout", ds);
2080
+ return t ? /* @__PURE__ */ m(ia, { children: [
2081
+ /* @__PURE__ */ c(oa, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(Va, { className: "h-4 w-4" }) }) }),
2082
+ /* @__PURE__ */ m(la, { className: "w-auto space-y-2 p-4", children: [
2077
2083
  /* @__PURE__ */ c("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
2078
2084
  /* @__PURE__ */ c("div", { className: "text-xs text-muted-foreground", children: t.email }),
2079
- /* @__PURE__ */ m(la, { children: [
2080
- /* @__PURE__ */ c(ca, { asChild: !0, children: /* @__PURE__ */ c(M, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
2081
- /* @__PURE__ */ m(ua, { children: [
2082
- /* @__PURE__ */ m(da, { children: [
2083
- /* @__PURE__ */ c(fa, { children: e("Are you sure you want to logout?") }),
2084
- /* @__PURE__ */ c(ha, { children: e("You will be redirected to the login page.") })
2085
+ /* @__PURE__ */ m(ca, { children: [
2086
+ /* @__PURE__ */ c(ua, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
2087
+ /* @__PURE__ */ m(da, { children: [
2088
+ /* @__PURE__ */ m(fa, { children: [
2089
+ /* @__PURE__ */ c(ha, { children: e("Are you sure you want to logout?") }),
2090
+ /* @__PURE__ */ c(ga, { children: e("You will be redirected to the login page.") })
2085
2091
  ] }),
2086
- /* @__PURE__ */ m(ga, { children: [
2087
- /* @__PURE__ */ c(ma, { children: e("Cancel") }),
2092
+ /* @__PURE__ */ m(ma, { children: [
2093
+ /* @__PURE__ */ c(Ea, { children: e("Cancel") }),
2088
2094
  /* @__PURE__ */ c(
2089
- Ea,
2095
+ pa,
2090
2096
  {
2091
2097
  onClick: () => {
2092
- n(), Rr(s) && s();
2098
+ n(), Br(s) && s();
2093
2099
  },
2094
2100
  children: e("Logout")
2095
2101
  }
@@ -2099,13 +2105,13 @@ const Ki = ({
2099
2105
  ] })
2100
2106
  ] })
2101
2107
  ] }) : null;
2102
- }, Ao = {
2103
- id: Ds,
2108
+ }, vo = {
2109
+ id: xs,
2104
2110
  label: "User Info",
2105
- button: yo,
2111
+ button: Po,
2106
2112
  position: "bottom"
2107
- }, To = () => {
2108
- en(Os, po), en(ks, go), en(Ds, Ao);
2113
+ }, wo = () => {
2114
+ Ct(Gs, _o), Ct(Ds, Ao), Ct(xs, vo), Ct(Os, Eo);
2109
2115
  };
2110
2116
  var _ = {
2111
2117
  context: void 0,
@@ -2126,16 +2132,16 @@ function Jn(e) {
2126
2132
  function rt(e) {
2127
2133
  _.context = e;
2128
2134
  }
2129
- var Gs = !1, So = (e, t) => e === t, Ft = Symbol("solid-proxy"), xs = typeof Proxy == "function", Rs = Symbol("solid-track"), qt = {
2130
- equals: So
2131
- }, Us = Hs, _e = 1, Kt = 2, Bs = {
2135
+ var Rs = !1, bo = (e, t) => e === t, qt = Symbol("solid-proxy"), Us = typeof Proxy == "function", Bs = Symbol("solid-track"), Kt = {
2136
+ equals: bo
2137
+ }, Ms = $s, _e = 1, Vt = 2, Fs = {
2132
2138
  owned: null,
2133
2139
  cleanups: null,
2134
2140
  context: null,
2135
2141
  owner: null
2136
- }, on = {}, C = null, ln = null, _o = null, G = null, ee = null, Te = null, Jt = 0;
2142
+ }, ln = {}, C = null, cn = null, Io = null, G = null, ee = null, Te = null, Xt = 0;
2137
2143
  function Oe(e, t) {
2138
- const n = G, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Bs : {
2144
+ const n = G, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Fs : {
2139
2145
  owned: null,
2140
2146
  cleanups: null,
2141
2147
  context: a ? a.context : null,
@@ -2148,49 +2154,49 @@ function Oe(e, t) {
2148
2154
  G = n, C = s;
2149
2155
  }
2150
2156
  }
2151
- function F(e, t) {
2152
- t = t ? Object.assign({}, qt, t) : qt;
2157
+ function q(e, t) {
2158
+ t = t ? Object.assign({}, Kt, t) : Kt;
2153
2159
  const n = {
2154
2160
  value: e,
2155
2161
  observers: null,
2156
2162
  observerSlots: null,
2157
2163
  comparator: t.equals || void 0
2158
- }, s = (r) => (typeof r == "function" && (r = r(n.value)), Vs(n, r));
2159
- return [Ks.bind(n), s];
2164
+ }, s = (r) => (typeof r == "function" && (r = r(n.value)), Qs(n, r));
2165
+ return [Hs.bind(n), s];
2160
2166
  }
2161
- function Po(e, t, n) {
2162
- const s = Xt(e, t, !0, _e);
2167
+ function Co(e, t, n) {
2168
+ const s = Zt(e, t, !0, _e);
2163
2169
  st(s);
2164
2170
  }
2165
2171
  function De(e, t, n) {
2166
- const s = Xt(e, t, !1, _e);
2172
+ const s = Zt(e, t, !1, _e);
2167
2173
  st(s);
2168
2174
  }
2169
- function Ms(e, t, n) {
2170
- Us = Oo;
2171
- const s = Xt(e, t, !1, _e);
2175
+ function qs(e, t, n) {
2176
+ Ms = Uo;
2177
+ const s = Zt(e, t, !1, _e);
2172
2178
  (!n || !n.render) && (s.user = !0), Te ? Te.push(s) : st(s);
2173
2179
  }
2174
2180
  function J(e, t, n) {
2175
- n = n ? Object.assign({}, qt, n) : qt;
2176
- const s = Xt(e, t, !0, 0);
2177
- return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Ks.bind(s);
2181
+ n = n ? Object.assign({}, Kt, n) : Kt;
2182
+ const s = Zt(e, t, !0, 0);
2183
+ return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Hs.bind(s);
2178
2184
  }
2179
- function vo(e) {
2185
+ function No(e) {
2180
2186
  return e && typeof e == "object" && "then" in e;
2181
2187
  }
2182
- function wo(e, t, n) {
2188
+ function Lo(e, t, n) {
2183
2189
  let s, r, a;
2184
2190
  s = !0, r = e, a = {};
2185
- let i = null, o = on, l = null, u = !1, f = "initialValue" in a, d = typeof s == "function" && J(s);
2186
- const h = /* @__PURE__ */ new Set(), [g, A] = (a.storage || F)(a.initialValue), [T, p] = F(void 0), [y, P] = F(void 0, {
2191
+ let i = null, o = ln, l = null, u = !1, f = "initialValue" in a, d = typeof s == "function" && J(s);
2192
+ const h = /* @__PURE__ */ new Set(), [g, A] = (a.storage || q)(a.initialValue), [T, p] = q(void 0), [y, P] = q(void 0, {
2187
2193
  equals: !1
2188
- }), [w, O] = F(f ? "ready" : "unresolved");
2194
+ }), [w, O] = q(f ? "ready" : "unresolved");
2189
2195
  _.context && (l = _.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : _.load && _.has(l) && (o = _.load(l)));
2190
- function B(v, b, Y, $) {
2196
+ function M(v, b, Y, $) {
2191
2197
  return i === v && (i = null, $ !== void 0 && (f = !0), (v === o || b === o) && a.onHydrated && queueMicrotask(() => a.onHydrated($, {
2192
2198
  value: b
2193
- })), o = on, L(b, Y)), b;
2199
+ })), o = ln, L(b, Y)), b;
2194
2200
  }
2195
2201
  function L(v, b) {
2196
2202
  me(() => {
@@ -2200,7 +2206,7 @@ function wo(e, t, n) {
2200
2206
  }, !1);
2201
2207
  }
2202
2208
  function pe() {
2203
- const v = No, b = g(), Y = T();
2209
+ const v = Go, b = g(), Y = T();
2204
2210
  if (Y !== void 0 && !i) throw Y;
2205
2211
  return G && G.user, b;
2206
2212
  }
@@ -2209,11 +2215,11 @@ function wo(e, t, n) {
2209
2215
  u = !1;
2210
2216
  const b = d ? d() : s;
2211
2217
  if (b == null || b === !1) {
2212
- B(i, Z(g));
2218
+ M(i, Z(g));
2213
2219
  return;
2214
2220
  }
2215
2221
  let Y;
2216
- const $ = o !== on ? o : Z(() => {
2222
+ const $ = o !== ln ? o : Z(() => {
2217
2223
  try {
2218
2224
  return r(b, {
2219
2225
  value: g(),
@@ -2224,13 +2230,13 @@ function wo(e, t, n) {
2224
2230
  }
2225
2231
  });
2226
2232
  if (Y !== void 0) {
2227
- B(i, void 0, xt(Y), b);
2233
+ M(i, void 0, Rt(Y), b);
2228
2234
  return;
2229
- } else if (!vo($))
2230
- return B(i, $, void 0, b), $;
2231
- return i = $, "v" in $ ? ($.s === 1 ? B(i, $.v, void 0, b) : B(i, void 0, xt($.v), b), $) : (u = !0, queueMicrotask(() => u = !1), me(() => {
2235
+ } else if (!No($))
2236
+ return M(i, $, void 0, b), $;
2237
+ return i = $, "v" in $ ? ($.s === 1 ? M(i, $.v, void 0, b) : M(i, void 0, Rt($.v), b), $) : (u = !0, queueMicrotask(() => u = !1), me(() => {
2232
2238
  O(f ? "refreshing" : "pending"), P();
2233
- }, !1), $.then((de) => B($, de, void 0, b), (de) => B($, void 0, xt(de), b)));
2239
+ }, !1), $.then((de) => M($, de, void 0, b), (de) => M($, void 0, Rt(de), b)));
2234
2240
  }
2235
2241
  Object.defineProperties(pe, {
2236
2242
  state: {
@@ -2255,12 +2261,12 @@ function wo(e, t, n) {
2255
2261
  }
2256
2262
  });
2257
2263
  let U = C;
2258
- return d ? Po(() => (U = C, ye(!1))) : ye(!1), [pe, {
2259
- refetch: (v) => Fs(U, () => ye(v)),
2264
+ return d ? Co(() => (U = C, ye(!1))) : ye(!1), [pe, {
2265
+ refetch: (v) => Ks(U, () => ye(v)),
2260
2266
  mutate: A
2261
2267
  }];
2262
2268
  }
2263
- function Hc(e) {
2269
+ function Wc(e) {
2264
2270
  return me(e, !1);
2265
2271
  }
2266
2272
  function Z(e) {
@@ -2273,7 +2279,7 @@ function Z(e) {
2273
2279
  G = t;
2274
2280
  }
2275
2281
  }
2276
- function Qc(e, t, n) {
2282
+ function Yc(e, t, n) {
2277
2283
  const s = Array.isArray(e);
2278
2284
  let r, a = n && n.defer;
2279
2285
  return (i) => {
@@ -2288,8 +2294,8 @@ function Qc(e, t, n) {
2288
2294
  return r = o, l;
2289
2295
  };
2290
2296
  }
2291
- function bo(e) {
2292
- Ms(() => Z(e));
2297
+ function ko(e) {
2298
+ qs(() => Z(e));
2293
2299
  }
2294
2300
  function lt(e) {
2295
2301
  return C === null || (C.cleanups === null ? C.cleanups = [e] : C.cleanups.push(e)), e;
@@ -2297,18 +2303,18 @@ function lt(e) {
2297
2303
  function Xn() {
2298
2304
  return C;
2299
2305
  }
2300
- function Fs(e, t) {
2306
+ function Ks(e, t) {
2301
2307
  const n = C, s = G;
2302
2308
  C = e, G = null;
2303
2309
  try {
2304
2310
  return me(t, !0);
2305
2311
  } catch (r) {
2306
- Gn(r);
2312
+ xn(r);
2307
2313
  } finally {
2308
2314
  C = n, G = s;
2309
2315
  }
2310
2316
  }
2311
- function Io(e) {
2317
+ function Oo(e) {
2312
2318
  const t = G, n = C;
2313
2319
  return Promise.resolve().then(() => {
2314
2320
  G = t, C = n;
@@ -2316,36 +2322,36 @@ function Io(e) {
2316
2322
  return me(e, !1), G = C = null, s ? s.done : void 0;
2317
2323
  });
2318
2324
  }
2319
- var [Co, $c] = /* @__PURE__ */ F(!1);
2320
- function jc() {
2321
- return [Co, Io];
2325
+ var [Do, Jc] = /* @__PURE__ */ q(!1);
2326
+ function Xc() {
2327
+ return [Do, Oo];
2322
2328
  }
2323
- function zc(e, t) {
2329
+ function Zc(e, t) {
2324
2330
  const n = Symbol("context");
2325
2331
  return {
2326
2332
  id: n,
2327
- Provider: Do(n),
2333
+ Provider: Bo(n),
2328
2334
  defaultValue: e
2329
2335
  };
2330
2336
  }
2331
- function Wc(e) {
2337
+ function eu(e) {
2332
2338
  let t;
2333
2339
  return C && C.context && (t = C.context[e.id]) !== void 0 ? t : e.defaultValue;
2334
2340
  }
2335
- function qs(e) {
2336
- const t = J(e), n = J(() => hn(t()));
2341
+ function Vs(e) {
2342
+ const t = J(e), n = J(() => gn(t()));
2337
2343
  return n.toArray = () => {
2338
2344
  const s = n();
2339
2345
  return Array.isArray(s) ? s : s != null ? [s] : [];
2340
2346
  }, n;
2341
2347
  }
2342
- var No;
2343
- function Ks() {
2348
+ var Go;
2349
+ function Hs() {
2344
2350
  if (this.sources && this.state)
2345
2351
  if (this.state === _e) st(this);
2346
2352
  else {
2347
2353
  const e = ee;
2348
- ee = null, me(() => Ht(this), !1), ee = e;
2354
+ ee = null, me(() => Qt(this), !1), ee = e;
2349
2355
  }
2350
2356
  if (G) {
2351
2357
  const e = this.observers ? this.observers.length : 0;
@@ -2353,12 +2359,12 @@ function Ks() {
2353
2359
  }
2354
2360
  return this.value;
2355
2361
  }
2356
- function Vs(e, t, n) {
2362
+ function Qs(e, t, n) {
2357
2363
  let s = e.value;
2358
2364
  return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && me(() => {
2359
2365
  for (let r = 0; r < e.observers.length; r += 1) {
2360
- const a = e.observers[r], i = ln && ln.running;
2361
- i && ln.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && Qs(a)), i || (a.state = _e);
2366
+ const a = e.observers[r], i = cn && cn.running;
2367
+ i && cn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && js(a)), i || (a.state = _e);
2362
2368
  }
2363
2369
  if (ee.length > 1e6)
2364
2370
  throw ee = [], new Error();
@@ -2367,23 +2373,23 @@ function Vs(e, t, n) {
2367
2373
  function st(e) {
2368
2374
  if (!e.fn) return;
2369
2375
  ct(e);
2370
- const t = Jt;
2371
- Lo(e, e.value, t);
2376
+ const t = Xt;
2377
+ xo(e, e.value, t);
2372
2378
  }
2373
- function Lo(e, t, n) {
2379
+ function xo(e, t, n) {
2374
2380
  let s;
2375
2381
  const r = C, a = G;
2376
2382
  G = C = e;
2377
2383
  try {
2378
2384
  s = e.fn(t);
2379
2385
  } catch (i) {
2380
- return e.pure && (e.state = _e, e.owned && e.owned.forEach(ct), e.owned = null), e.updatedAt = n + 1, Gn(i);
2386
+ return e.pure && (e.state = _e, e.owned && e.owned.forEach(ct), e.owned = null), e.updatedAt = n + 1, xn(i);
2381
2387
  } finally {
2382
2388
  G = a, C = r;
2383
2389
  }
2384
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Vs(e, s) : e.value = s, e.updatedAt = n);
2390
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Qs(e, s) : e.value = s, e.updatedAt = n);
2385
2391
  }
2386
- function Xt(e, t, n, s = _e, r) {
2392
+ function Zt(e, t, n, s = _e, r) {
2387
2393
  const a = {
2388
2394
  fn: e,
2389
2395
  state: s,
@@ -2397,47 +2403,47 @@ function Xt(e, t, n, s = _e, r) {
2397
2403
  context: C ? C.context : null,
2398
2404
  pure: n
2399
2405
  };
2400
- return C === null || C !== Bs && (C.owned ? C.owned.push(a) : C.owned = [a]), a;
2406
+ return C === null || C !== Fs && (C.owned ? C.owned.push(a) : C.owned = [a]), a;
2401
2407
  }
2402
- function Vt(e) {
2408
+ function Ht(e) {
2403
2409
  if (e.state === 0) return;
2404
- if (e.state === Kt) return Ht(e);
2410
+ if (e.state === Vt) return Qt(e);
2405
2411
  if (e.suspense && Z(e.suspense.inFallback)) return e.suspense.effects.push(e);
2406
2412
  const t = [e];
2407
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Jt); )
2413
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Xt); )
2408
2414
  e.state && t.push(e);
2409
2415
  for (let n = t.length - 1; n >= 0; n--)
2410
2416
  if (e = t[n], e.state === _e)
2411
2417
  st(e);
2412
- else if (e.state === Kt) {
2418
+ else if (e.state === Vt) {
2413
2419
  const s = ee;
2414
- ee = null, me(() => Ht(e, t[0]), !1), ee = s;
2420
+ ee = null, me(() => Qt(e, t[0]), !1), ee = s;
2415
2421
  }
2416
2422
  }
2417
2423
  function me(e, t) {
2418
2424
  if (ee) return e();
2419
2425
  let n = !1;
2420
- t || (ee = []), Te ? n = !0 : Te = [], Jt++;
2426
+ t || (ee = []), Te ? n = !0 : Te = [], Xt++;
2421
2427
  try {
2422
2428
  const s = e();
2423
- return ko(n), s;
2429
+ return Ro(n), s;
2424
2430
  } catch (s) {
2425
- n || (Te = null), ee = null, Gn(s);
2431
+ n || (Te = null), ee = null, xn(s);
2426
2432
  }
2427
2433
  }
2428
- function ko(e) {
2429
- if (ee && (Hs(ee), ee = null), e) return;
2434
+ function Ro(e) {
2435
+ if (ee && ($s(ee), ee = null), e) return;
2430
2436
  const t = Te;
2431
- Te = null, t.length && me(() => Us(t), !1);
2437
+ Te = null, t.length && me(() => Ms(t), !1);
2432
2438
  }
2433
- function Hs(e) {
2434
- for (let t = 0; t < e.length; t++) Vt(e[t]);
2439
+ function $s(e) {
2440
+ for (let t = 0; t < e.length; t++) Ht(e[t]);
2435
2441
  }
2436
- function Oo(e) {
2442
+ function Uo(e) {
2437
2443
  let t, n = 0;
2438
2444
  for (t = 0; t < e.length; t++) {
2439
2445
  const s = e[t];
2440
- s.user ? e[n++] = s : Vt(s);
2446
+ s.user ? e[n++] = s : Ht(s);
2441
2447
  }
2442
2448
  if (_.context) {
2443
2449
  if (_.count) {
@@ -2446,22 +2452,22 @@ function Oo(e) {
2446
2452
  }
2447
2453
  rt();
2448
2454
  }
2449
- for (_.effects && (_.done || !_.count) && (e = [..._.effects, ...e], n += _.effects.length, delete _.effects), t = 0; t < n; t++) Vt(e[t]);
2455
+ for (_.effects && (_.done || !_.count) && (e = [..._.effects, ...e], n += _.effects.length, delete _.effects), t = 0; t < n; t++) Ht(e[t]);
2450
2456
  }
2451
- function Ht(e, t) {
2457
+ function Qt(e, t) {
2452
2458
  e.state = 0;
2453
2459
  for (let n = 0; n < e.sources.length; n += 1) {
2454
2460
  const s = e.sources[n];
2455
2461
  if (s.sources) {
2456
2462
  const r = s.state;
2457
- r === _e ? s !== t && (!s.updatedAt || s.updatedAt < Jt) && Vt(s) : r === Kt && Ht(s, t);
2463
+ r === _e ? s !== t && (!s.updatedAt || s.updatedAt < Xt) && Ht(s) : r === Vt && Qt(s, t);
2458
2464
  }
2459
2465
  }
2460
2466
  }
2461
- function Qs(e) {
2467
+ function js(e) {
2462
2468
  for (let t = 0; t < e.observers.length; t += 1) {
2463
2469
  const n = e.observers[t];
2464
- n.state || (n.state = Kt, n.pure ? ee.push(n) : Te.push(n), n.observers && Qs(n));
2470
+ n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers && js(n));
2465
2471
  }
2466
2472
  }
2467
2473
  function ct(e) {
@@ -2488,47 +2494,47 @@ function ct(e) {
2488
2494
  }
2489
2495
  e.state = 0;
2490
2496
  }
2491
- function xt(e) {
2497
+ function Rt(e) {
2492
2498
  return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
2493
2499
  cause: e
2494
2500
  });
2495
2501
  }
2496
- function Gn(e, t = C) {
2497
- throw xt(e);
2502
+ function xn(e, t = C) {
2503
+ throw Rt(e);
2498
2504
  }
2499
- function hn(e) {
2500
- if (typeof e == "function" && !e.length) return hn(e());
2505
+ function gn(e) {
2506
+ if (typeof e == "function" && !e.length) return gn(e());
2501
2507
  if (Array.isArray(e)) {
2502
2508
  const t = [];
2503
2509
  for (let n = 0; n < e.length; n++) {
2504
- const s = hn(e[n]);
2510
+ const s = gn(e[n]);
2505
2511
  Array.isArray(s) ? t.push.apply(t, s) : t.push(s);
2506
2512
  }
2507
2513
  return t;
2508
2514
  }
2509
2515
  return e;
2510
2516
  }
2511
- function Do(e, t) {
2517
+ function Bo(e, t) {
2512
2518
  return function(s) {
2513
2519
  let r;
2514
2520
  return De(() => r = Z(() => (C.context = {
2515
2521
  ...C.context,
2516
2522
  [e]: s.value
2517
- }, qs(() => s.children))), void 0), r;
2523
+ }, Vs(() => s.children))), void 0), r;
2518
2524
  };
2519
2525
  }
2520
- var gn = Symbol("fallback");
2521
- function Qt(e) {
2526
+ var mn = Symbol("fallback");
2527
+ function $t(e) {
2522
2528
  for (let t = 0; t < e.length; t++) e[t]();
2523
2529
  }
2524
- function Go(e, t, n = {}) {
2530
+ function Mo(e, t, n = {}) {
2525
2531
  let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
2526
- return lt(() => Qt(a)), () => {
2532
+ return lt(() => $t(a)), () => {
2527
2533
  let l = e() || [], u = l.length, f, d;
2528
- return l[Rs], Z(() => {
2529
- let g, A, T, p, y, P, w, O, B;
2534
+ return l[Bs], Z(() => {
2535
+ let g, A, T, p, y, P, w, O, M;
2530
2536
  if (u === 0)
2531
- i !== 0 && (Qt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [gn], r[0] = Oe((L) => (a[0] = L, n.fallback())), i = 1);
2537
+ i !== 0 && ($t(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [mn], r[0] = Oe((L) => (a[0] = L, n.fallback())), i = 1);
2532
2538
  else if (i === 0) {
2533
2539
  for (r = new Array(u), d = 0; d < u; d++)
2534
2540
  s[d] = l[d], r[d] = Oe(h);
@@ -2538,9 +2544,9 @@ function Go(e, t, n = {}) {
2538
2544
  for (w = i - 1, O = u - 1; w >= P && O >= P && s[w] === l[O]; w--, O--)
2539
2545
  T[O] = r[w], p[O] = a[w], o && (y[O] = o[w]);
2540
2546
  for (g = /* @__PURE__ */ new Map(), A = new Array(O + 1), d = O; d >= P; d--)
2541
- B = l[d], f = g.get(B), A[d] = f === void 0 ? -1 : f, g.set(B, d);
2547
+ M = l[d], f = g.get(M), A[d] = f === void 0 ? -1 : f, g.set(M, d);
2542
2548
  for (f = P; f <= w; f++)
2543
- B = s[f], d = g.get(B), d !== void 0 && d !== -1 ? (T[d] = r[f], p[d] = a[f], o && (y[d] = o[f]), d = A[d], g.set(B, d)) : a[f]();
2549
+ M = s[f], d = g.get(M), d !== void 0 && d !== -1 ? (T[d] = r[f], p[d] = a[f], o && (y[d] = o[f]), d = A[d], g.set(M, d)) : a[f]();
2544
2550
  for (d = P; d < u; d++)
2545
2551
  d in T ? (r[d] = T[d], a[d] = p[d], o && (o[d] = y[d], o[d](d))) : r[d] = Oe(h);
2546
2552
  r = r.slice(0, i = u), s = l.slice(0);
@@ -2549,21 +2555,21 @@ function Go(e, t, n = {}) {
2549
2555
  });
2550
2556
  function h(g) {
2551
2557
  if (a[d] = g, o) {
2552
- const [A, T] = F(d);
2558
+ const [A, T] = q(d);
2553
2559
  return o[d] = T, t(l[d], A);
2554
2560
  }
2555
2561
  return t(l[d]);
2556
2562
  }
2557
2563
  };
2558
2564
  }
2559
- function xo(e, t, n = {}) {
2565
+ function Fo(e, t, n = {}) {
2560
2566
  let s = [], r = [], a = [], i = [], o = 0, l;
2561
- return lt(() => Qt(a)), () => {
2567
+ return lt(() => $t(a)), () => {
2562
2568
  const u = e() || [], f = u.length;
2563
- return u[Rs], Z(() => {
2569
+ return u[Bs], Z(() => {
2564
2570
  if (f === 0)
2565
- return o !== 0 && (Qt(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [gn], r[0] = Oe((h) => (a[0] = h, n.fallback())), o = 1), r;
2566
- for (s[0] === gn && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < f; l++)
2571
+ return o !== 0 && ($t(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [mn], r[0] = Oe((h) => (a[0] = h, n.fallback())), o = 1), r;
2572
+ for (s[0] === mn && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < f; l++)
2567
2573
  l < s.length && s[l] !== u[l] ? i[l](() => u[l]) : l >= s.length && (r[l] = Oe(d));
2568
2574
  for (; l < s.length; l++)
2569
2575
  a[l]();
@@ -2571,26 +2577,26 @@ function xo(e, t, n = {}) {
2571
2577
  });
2572
2578
  function d(h) {
2573
2579
  a[l] = h;
2574
- const [g, A] = F(u[l]);
2580
+ const [g, A] = q(u[l]);
2575
2581
  return i[l] = A, t(g, l);
2576
2582
  }
2577
2583
  };
2578
2584
  }
2579
- function $s(e, t) {
2585
+ function zs(e, t) {
2580
2586
  return Z(() => e(t || {}));
2581
2587
  }
2582
- function Lt() {
2588
+ function kt() {
2583
2589
  return !0;
2584
2590
  }
2585
- var mn = {
2591
+ var En = {
2586
2592
  get(e, t, n) {
2587
- return t === Ft ? n : e.get(t);
2593
+ return t === qt ? n : e.get(t);
2588
2594
  },
2589
2595
  has(e, t) {
2590
- return t === Ft ? !0 : e.has(t);
2596
+ return t === qt ? !0 : e.has(t);
2591
2597
  },
2592
- set: Lt,
2593
- deleteProperty: Lt,
2598
+ set: kt,
2599
+ deleteProperty: kt,
2594
2600
  getOwnPropertyDescriptor(e, t) {
2595
2601
  return {
2596
2602
  configurable: !0,
@@ -2598,48 +2604,48 @@ var mn = {
2598
2604
  get() {
2599
2605
  return e.get(t);
2600
2606
  },
2601
- set: Lt,
2602
- deleteProperty: Lt
2607
+ set: kt,
2608
+ deleteProperty: kt
2603
2609
  };
2604
2610
  },
2605
2611
  ownKeys(e) {
2606
2612
  return e.keys();
2607
2613
  }
2608
2614
  };
2609
- function cn(e) {
2615
+ function un(e) {
2610
2616
  return (e = typeof e == "function" ? e() : e) ? e : {};
2611
2617
  }
2612
- function Ro() {
2618
+ function qo() {
2613
2619
  for (let e = 0, t = this.length; e < t; ++e) {
2614
2620
  const n = this[e]();
2615
2621
  if (n !== void 0) return n;
2616
2622
  }
2617
2623
  }
2618
- function js(...e) {
2624
+ function Ws(...e) {
2619
2625
  let t = !1;
2620
2626
  for (let i = 0; i < e.length; i++) {
2621
2627
  const o = e[i];
2622
- t = t || !!o && Ft in o, e[i] = typeof o == "function" ? (t = !0, J(o)) : o;
2628
+ t = t || !!o && qt in o, e[i] = typeof o == "function" ? (t = !0, J(o)) : o;
2623
2629
  }
2624
- if (xs && t)
2630
+ if (Us && t)
2625
2631
  return new Proxy({
2626
2632
  get(i) {
2627
2633
  for (let o = e.length - 1; o >= 0; o--) {
2628
- const l = cn(e[o])[i];
2634
+ const l = un(e[o])[i];
2629
2635
  if (l !== void 0) return l;
2630
2636
  }
2631
2637
  },
2632
2638
  has(i) {
2633
2639
  for (let o = e.length - 1; o >= 0; o--)
2634
- if (i in cn(e[o])) return !0;
2640
+ if (i in un(e[o])) return !0;
2635
2641
  return !1;
2636
2642
  },
2637
2643
  keys() {
2638
2644
  const i = [];
2639
- for (let o = 0; o < e.length; o++) i.push(...Object.keys(cn(e[o])));
2645
+ for (let o = 0; o < e.length; o++) i.push(...Object.keys(un(e[o])));
2640
2646
  return [...new Set(i)];
2641
2647
  }
2642
- }, mn);
2648
+ }, En);
2643
2649
  const n = {}, s = /* @__PURE__ */ Object.create(null);
2644
2650
  for (let i = e.length - 1; i >= 0; i--) {
2645
2651
  const o = e[i];
@@ -2653,7 +2659,7 @@ function js(...e) {
2653
2659
  s[f] = d.get ? {
2654
2660
  enumerable: !0,
2655
2661
  configurable: !0,
2656
- get: Ro.bind(n[f] = [d.get.bind(o)])
2662
+ get: qo.bind(n[f] = [d.get.bind(o)])
2657
2663
  } : d.value !== void 0 ? d : void 0;
2658
2664
  else {
2659
2665
  const h = n[f];
@@ -2668,8 +2674,8 @@ function js(...e) {
2668
2674
  }
2669
2675
  return r;
2670
2676
  }
2671
- function Uo(e, ...t) {
2672
- if (xs && Ft in e) {
2677
+ function Ko(e, ...t) {
2678
+ if (Us && qt in e) {
2673
2679
  const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
2674
2680
  get(o) {
2675
2681
  return i.includes(o) ? e[o] : void 0;
@@ -2680,7 +2686,7 @@ function Uo(e, ...t) {
2680
2686
  keys() {
2681
2687
  return i.filter((o) => o in e);
2682
2688
  }
2683
- }, mn));
2689
+ }, En));
2684
2690
  return a.push(new Proxy({
2685
2691
  get(i) {
2686
2692
  return r.has(i) ? void 0 : e[i];
@@ -2691,7 +2697,7 @@ function Uo(e, ...t) {
2691
2697
  keys() {
2692
2698
  return Object.keys(e).filter((i) => !r.has(i));
2693
2699
  }
2694
- }, mn)), a;
2700
+ }, En)), a;
2695
2701
  }
2696
2702
  const n = {}, s = t.map(() => ({}));
2697
2703
  for (const r of Object.getOwnPropertyNames(e)) {
@@ -2703,17 +2709,17 @@ function Uo(e, ...t) {
2703
2709
  }
2704
2710
  return [...s, n];
2705
2711
  }
2706
- function zs(e) {
2712
+ function Ys(e) {
2707
2713
  let t, n;
2708
2714
  const s = (r) => {
2709
2715
  const a = _.context;
2710
2716
  if (a) {
2711
- const [o, l] = F();
2717
+ const [o, l] = q();
2712
2718
  _.count || (_.count = 0), _.count++, (n || (n = e())).then((u) => {
2713
2719
  !_.done && rt(a), _.count--, l(() => u.default), rt();
2714
2720
  }), t = o;
2715
2721
  } else if (!t) {
2716
- const [o] = wo(() => (n || (n = e())).then((l) => l.default));
2722
+ const [o] = Lo(() => (n || (n = e())).then((l) => l.default));
2717
2723
  t = o;
2718
2724
  }
2719
2725
  let i;
@@ -2727,24 +2733,24 @@ function zs(e) {
2727
2733
  };
2728
2734
  return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
2729
2735
  }
2730
- var Bo = 0;
2731
- function Yc() {
2732
- return _.context ? _.getNextContextId() : `cl-${Bo++}`;
2736
+ var Vo = 0;
2737
+ function tu() {
2738
+ return _.context ? _.getNextContextId() : `cl-${Vo++}`;
2733
2739
  }
2734
- var Ws = (e) => `Stale read from <${e}>.`;
2735
- function Jc(e) {
2740
+ var Js = (e) => `Stale read from <${e}>.`;
2741
+ function nu(e) {
2736
2742
  const t = "fallback" in e && {
2737
2743
  fallback: () => e.fallback
2738
2744
  };
2739
- return J(Go(() => e.each, e.children, t || void 0));
2745
+ return J(Mo(() => e.each, e.children, t || void 0));
2740
2746
  }
2741
- function Xc(e) {
2747
+ function su(e) {
2742
2748
  const t = "fallback" in e && {
2743
2749
  fallback: () => e.fallback
2744
2750
  };
2745
- return J(xo(() => e.each, e.children, t || void 0));
2751
+ return J(Fo(() => e.each, e.children, t || void 0));
2746
2752
  }
2747
- function Zc(e) {
2753
+ function ru(e) {
2748
2754
  const t = e.keyed, n = J(() => e.when, void 0, void 0), s = t ? n : J(n, void 0, {
2749
2755
  equals: (r, a) => !r == !a
2750
2756
  });
@@ -2753,15 +2759,15 @@ function Zc(e) {
2753
2759
  if (r) {
2754
2760
  const a = e.children;
2755
2761
  return typeof a == "function" && a.length > 0 ? Z(() => a(t ? r : () => {
2756
- if (!Z(s)) throw Ws("Show");
2762
+ if (!Z(s)) throw Js("Show");
2757
2763
  return n();
2758
2764
  })) : a;
2759
2765
  }
2760
2766
  return e.fallback;
2761
2767
  }, void 0, void 0);
2762
2768
  }
2763
- function eu(e) {
2764
- const t = qs(() => e.children), n = J(() => {
2769
+ function au(e) {
2770
+ const t = Vs(() => e.children), n = J(() => {
2765
2771
  const s = t(), r = Array.isArray(s) ? s : [s];
2766
2772
  let a = () => {
2767
2773
  };
@@ -2779,18 +2785,18 @@ function eu(e) {
2779
2785
  const [r, a, i] = s, o = i.children;
2780
2786
  return typeof o == "function" && o.length > 0 ? Z(() => o(i.keyed ? a() : () => {
2781
2787
  var u;
2782
- if (((u = Z(n)()) == null ? void 0 : u[0]) !== r) throw Ws("Match");
2788
+ if (((u = Z(n)()) == null ? void 0 : u[0]) !== r) throw Js("Match");
2783
2789
  return a();
2784
2790
  })) : o;
2785
2791
  }, void 0, void 0);
2786
2792
  }
2787
- function tu(e) {
2793
+ function iu(e) {
2788
2794
  return e;
2789
2795
  }
2790
- var Mo = ["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"], Fo = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...Mo]), qo = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Ko = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2796
+ var Ho = ["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"], Qo = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...Ho]), $o = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), jo = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2791
2797
  className: "class",
2792
2798
  htmlFor: "for"
2793
- }), Vo = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2799
+ }), zo = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2794
2800
  class: "className",
2795
2801
  novalidate: {
2796
2802
  $: "noValidate",
@@ -2819,11 +2825,11 @@ var Mo = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
2819
2825
  TEXTAREA: 1
2820
2826
  }
2821
2827
  });
2822
- function Ho(e, t) {
2823
- const n = Vo[e];
2828
+ function Wo(e, t) {
2829
+ const n = zo[e];
2824
2830
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
2825
2831
  }
2826
- var Qo = /* @__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"]), $o = /* @__PURE__ */ new Set([
2832
+ var Yo = /* @__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"]), Jo = /* @__PURE__ */ new Set([
2827
2833
  "altGlyph",
2828
2834
  "altGlyphDef",
2829
2835
  "altGlyphItem",
@@ -2901,11 +2907,11 @@ var Qo = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
2901
2907
  "use",
2902
2908
  "view",
2903
2909
  "vkern"
2904
- ]), jo = {
2910
+ ]), Xo = {
2905
2911
  xlink: "http://www.w3.org/1999/xlink",
2906
2912
  xml: "http://www.w3.org/XML/1998/namespace"
2907
- }, nu = (e) => J(() => e());
2908
- function zo(e, t, n) {
2913
+ }, ou = (e) => J(() => e());
2914
+ function Zo(e, t, n) {
2909
2915
  let s = n.length, r = t.length, a = s, i = 0, o = 0, l = t[r - 1].nextSibling, u = null;
2910
2916
  for (; i < r || o < a; ) {
2911
2917
  if (t[i] === n[o]) {
@@ -2945,15 +2951,15 @@ function zo(e, t, n) {
2945
2951
  }
2946
2952
  }
2947
2953
  var it = "_$DX_DELEGATE";
2948
- function Ys(e, t, n, s = {}) {
2954
+ function Xs(e, t, n, s = {}) {
2949
2955
  let r;
2950
2956
  return Oe((a) => {
2951
- r = a, t === document ? e() : pn(t, e(), t.firstChild ? null : void 0, n);
2957
+ r = a, t === document ? e() : yn(t, e(), t.firstChild ? null : void 0, n);
2952
2958
  }, s.owner), () => {
2953
2959
  r(), t.textContent = "";
2954
2960
  };
2955
2961
  }
2956
- function su(e, t, n, s) {
2962
+ function lu(e, t, n, s) {
2957
2963
  let r;
2958
2964
  const a = () => {
2959
2965
  const o = document.createElement("template");
@@ -2961,32 +2967,32 @@ function su(e, t, n, s) {
2961
2967
  }, i = () => (r || (r = a())).cloneNode(!0);
2962
2968
  return i.cloneNode = i, i;
2963
2969
  }
2964
- function Wo(e, t = window.document) {
2970
+ function el(e, t = window.document) {
2965
2971
  const n = t[it] || (t[it] = /* @__PURE__ */ new Set());
2966
2972
  for (let s = 0, r = e.length; s < r; s++) {
2967
2973
  const a = e[s];
2968
- n.has(a) || (n.add(a), t.addEventListener(a, Js));
2974
+ n.has(a) || (n.add(a), t.addEventListener(a, Zs));
2969
2975
  }
2970
2976
  }
2971
- function ru(e = window.document) {
2977
+ function cu(e = window.document) {
2972
2978
  if (e[it]) {
2973
- for (let t of e[it].keys()) e.removeEventListener(t, Js);
2979
+ for (let t of e[it].keys()) e.removeEventListener(t, Zs);
2974
2980
  delete e[it];
2975
2981
  }
2976
2982
  }
2977
- function En(e, t, n) {
2983
+ function pn(e, t, n) {
2978
2984
  Ue(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
2979
2985
  }
2980
- function Yo(e, t, n, s) {
2986
+ function tl(e, t, n, s) {
2981
2987
  Ue(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
2982
2988
  }
2983
- function Jo(e, t, n) {
2989
+ function nl(e, t, n) {
2984
2990
  Ue(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
2985
2991
  }
2986
- function Xo(e, t) {
2992
+ function sl(e, t) {
2987
2993
  Ue(e) || (t == null ? e.removeAttribute("class") : e.className = t);
2988
2994
  }
2989
- function Zo(e, t, n, s) {
2995
+ function rl(e, t, n, s) {
2990
2996
  if (s)
2991
2997
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
2992
2998
  else if (Array.isArray(n)) {
@@ -2994,7 +3000,7 @@ function Zo(e, t, n, s) {
2994
3000
  e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
2995
3001
  } else e.addEventListener(t, n, typeof n != "function" && n);
2996
3002
  }
2997
- function el(e, t, n = {}) {
3003
+ function al(e, t, n = {}) {
2998
3004
  const s = Object.keys(t || {}), r = Object.keys(n);
2999
3005
  let a, i;
3000
3006
  for (a = 0, i = r.length; a < i; a++) {
@@ -3007,8 +3013,8 @@ function el(e, t, n = {}) {
3007
3013
  }
3008
3014
  return n;
3009
3015
  }
3010
- function tl(e, t, n) {
3011
- if (!t) return n ? En(e, "style") : t;
3016
+ function il(e, t, n) {
3017
+ if (!t) return n ? pn(e, "style") : t;
3012
3018
  const s = e.style;
3013
3019
  if (typeof t == "string") return s.cssText = t;
3014
3020
  typeof n == "string" && (s.cssText = n = void 0), n || (n = {}), t || (t = {});
@@ -3019,18 +3025,18 @@ function tl(e, t, n) {
3019
3025
  r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
3020
3026
  return n;
3021
3027
  }
3022
- function nl(e, t = {}, n, s) {
3028
+ function ol(e, t = {}, n, s) {
3023
3029
  const r = {};
3024
- return s || De(() => r.children = ut(e, t.children, r.children)), De(() => typeof t.ref == "function" && sl(t.ref, e)), De(() => rl(e, t, n, !0, r, !0)), r;
3030
+ return s || De(() => r.children = ut(e, t.children, r.children)), De(() => typeof t.ref == "function" && ll(t.ref, e)), De(() => cl(e, t, n, !0, r, !0)), r;
3025
3031
  }
3026
- function sl(e, t, n) {
3032
+ function ll(e, t, n) {
3027
3033
  return Z(() => e(t, n));
3028
3034
  }
3029
- function pn(e, t, n, s) {
3035
+ function yn(e, t, n, s) {
3030
3036
  if (n !== void 0 && !s && (s = []), typeof t != "function") return ut(e, t, s, n);
3031
3037
  De((r) => ut(e, t(), r, n), s);
3032
3038
  }
3033
- function rl(e, t, n, s, r = {}, a = !1) {
3039
+ function cl(e, t, n, s, r = {}, a = !1) {
3034
3040
  t || (t = {});
3035
3041
  for (const i in r)
3036
3042
  if (!(i in t)) {
@@ -3044,14 +3050,14 @@ function rl(e, t, n, s, r = {}, a = !1) {
3044
3050
  r[i] = es(e, i, o, r[i], n, a, t);
3045
3051
  }
3046
3052
  }
3047
- function al(e) {
3053
+ function ul(e) {
3048
3054
  let t, n;
3049
- return !Ue() || !(t = _.registry.get(n = ol())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
3055
+ return !Ue() || !(t = _.registry.get(n = fl())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
3050
3056
  }
3051
3057
  function Ue(e) {
3052
3058
  return !!_.context && !_.done && (!e || e.isConnected);
3053
3059
  }
3054
- function il(e) {
3060
+ function dl(e) {
3055
3061
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
3056
3062
  }
3057
3063
  function Zn(e, t, n) {
@@ -3060,8 +3066,8 @@ function Zn(e, t, n) {
3060
3066
  }
3061
3067
  function es(e, t, n, s, r, a, i) {
3062
3068
  let o, l, u, f, d;
3063
- if (t === "style") return tl(e, n, s);
3064
- if (t === "classList") return el(e, n, s);
3069
+ if (t === "style") return il(e, n, s);
3070
+ if (t === "classList") return al(e, n, s);
3065
3071
  if (n === s) return s;
3066
3072
  if (t === "ref")
3067
3073
  a || n(e);
@@ -3072,28 +3078,28 @@ function es(e, t, n, s, r, a, i) {
3072
3078
  const h = t.slice(10);
3073
3079
  s && e.removeEventListener(h, s, !0), n && e.addEventListener(h, n, !0);
3074
3080
  } else if (t.slice(0, 2) === "on") {
3075
- const h = t.slice(2).toLowerCase(), g = Qo.has(h);
3081
+ const h = t.slice(2).toLowerCase(), g = Yo.has(h);
3076
3082
  if (!g && s) {
3077
3083
  const A = Array.isArray(s) ? s[0] : s;
3078
3084
  e.removeEventListener(h, A);
3079
3085
  }
3080
- (g || n) && (Zo(e, h, n, g), g && Wo([h]));
3086
+ (g || n) && (rl(e, h, n, g), g && el([h]));
3081
3087
  } else if (t.slice(0, 5) === "attr:")
3082
- En(e, t.slice(5), n);
3088
+ pn(e, t.slice(5), n);
3083
3089
  else if (t.slice(0, 5) === "bool:")
3084
- Jo(e, t.slice(5), n);
3085
- else if ((d = t.slice(0, 5) === "prop:") || (u = qo.has(t)) || !r && ((f = Ho(t, e.tagName)) || (l = Fo.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
3090
+ nl(e, t.slice(5), n);
3091
+ else if ((d = t.slice(0, 5) === "prop:") || (u = $o.has(t)) || !r && ((f = Wo(t, e.tagName)) || (l = Qo.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
3086
3092
  if (d)
3087
3093
  t = t.slice(5), l = !0;
3088
3094
  else if (Ue(e)) return n;
3089
- t === "class" || t === "className" ? Xo(e, n) : o && !l && !u ? e[il(t)] = n : e[f || t] = n;
3095
+ t === "class" || t === "className" ? sl(e, n) : o && !l && !u ? e[dl(t)] = n : e[f || t] = n;
3090
3096
  } else {
3091
- const h = r && t.indexOf(":") > -1 && jo[t.split(":")[0]];
3092
- h ? Yo(e, h, t, n) : En(e, Ko[t] || t, n);
3097
+ const h = r && t.indexOf(":") > -1 && Xo[t.split(":")[0]];
3098
+ h ? tl(e, h, t, n) : pn(e, jo[t] || t, n);
3093
3099
  }
3094
3100
  return n;
3095
3101
  }
3096
- function Js(e) {
3102
+ function Zs(e) {
3097
3103
  if (_.registry && _.events && _.events.find(([l, u]) => u === e))
3098
3104
  return;
3099
3105
  let t = e.target;
@@ -3163,7 +3169,7 @@ function ut(e, t, n, s, r) {
3163
3169
  }), () => n;
3164
3170
  if (Array.isArray(t)) {
3165
3171
  const l = [], u = n && Array.isArray(n);
3166
- if (yn(l, t, n, r))
3172
+ if (An(l, t, n, r))
3167
3173
  return De(() => n = ut(e, l, n, s, !0)), () => n;
3168
3174
  if (a) {
3169
3175
  if (!l.length) return n;
@@ -3176,7 +3182,7 @@ function ut(e, t, n, s, r) {
3176
3182
  }
3177
3183
  if (l.length === 0) {
3178
3184
  if (n = Me(e, n, s), o) return n;
3179
- } else u ? n.length === 0 ? ts(e, l, s) : zo(e, n, l) : (n && Me(e), ts(e, l));
3185
+ } else u ? n.length === 0 ? ts(e, l, s) : Zo(e, n, l) : (n && Me(e), ts(e, l));
3180
3186
  n = l;
3181
3187
  } else if (t.nodeType) {
3182
3188
  if (a && t.parentNode) return n = o ? [t] : t;
@@ -3189,18 +3195,18 @@ function ut(e, t, n, s, r) {
3189
3195
  }
3190
3196
  return n;
3191
3197
  }
3192
- function yn(e, t, n, s) {
3198
+ function An(e, t, n, s) {
3193
3199
  let r = !1;
3194
3200
  for (let a = 0, i = t.length; a < i; a++) {
3195
3201
  let o = t[a], l = n && n[e.length], u;
3196
3202
  if (!(o == null || o === !0 || o === !1)) if ((u = typeof o) == "object" && o.nodeType)
3197
3203
  e.push(o);
3198
3204
  else if (Array.isArray(o))
3199
- r = yn(e, o, l) || r;
3205
+ r = An(e, o, l) || r;
3200
3206
  else if (u === "function")
3201
3207
  if (s) {
3202
3208
  for (; typeof o == "function"; ) o = o();
3203
- r = yn(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
3209
+ r = An(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
3204
3210
  } else
3205
3211
  e.push(o), r = !0;
3206
3212
  else {
@@ -3228,26 +3234,26 @@ function Me(e, t, n, s) {
3228
3234
  } else e.insertBefore(r, n);
3229
3235
  return [r];
3230
3236
  }
3231
- function ol() {
3237
+ function fl() {
3232
3238
  return _.getNextContextId();
3233
3239
  }
3234
- var ll = "http://www.w3.org/2000/svg";
3235
- function Xs(e, t = !1) {
3236
- return t ? document.createElementNS(ll, e) : document.createElement(e);
3240
+ var hl = "http://www.w3.org/2000/svg";
3241
+ function er(e, t = !1) {
3242
+ return t ? document.createElementNS(hl, e) : document.createElement(e);
3237
3243
  }
3238
- function au(e) {
3244
+ function uu(e) {
3239
3245
  const {
3240
3246
  useShadow: t
3241
3247
  } = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = Xn();
3242
3248
  let a, i = !!_.context;
3243
- return Ms(() => {
3244
- i && (Xn().user = i = !1), a || (a = Fs(r, () => J(() => e.children)));
3249
+ return qs(() => {
3250
+ i && (Xn().user = i = !1), a || (a = Ks(r, () => J(() => e.children)));
3245
3251
  const o = s();
3246
3252
  if (o instanceof HTMLHeadElement) {
3247
- const [l, u] = F(!1), f = () => u(!0);
3248
- Oe((d) => pn(o, () => l() ? d() : a(), null)), lt(f);
3253
+ const [l, u] = q(!1), f = () => u(!0);
3254
+ Oe((d) => yn(o, () => l() ? d() : a(), null)), lt(f);
3249
3255
  } else {
3250
- const l = Xs(e.isSVG ? "g" : "div", e.isSVG), u = t && l.attachShadow ? l.attachShadow({
3256
+ const l = er(e.isSVG ? "g" : "div", e.isSVG), u = t && l.attachShadow ? l.attachShadow({
3251
3257
  mode: "open"
3252
3258
  }) : l;
3253
3259
  Object.defineProperty(l, "_$host", {
@@ -3255,13 +3261,13 @@ function au(e) {
3255
3261
  return n.parentNode;
3256
3262
  },
3257
3263
  configurable: !0
3258
- }), pn(u, a), o.appendChild(l), e.ref && e.ref(l), lt(() => o.removeChild(l));
3264
+ }), yn(u, a), o.appendChild(l), e.ref && e.ref(l), lt(() => o.removeChild(l));
3259
3265
  }
3260
3266
  }, void 0, {
3261
3267
  render: !i
3262
3268
  }), n;
3263
3269
  }
3264
- function cl(e, t) {
3270
+ function gl(e, t) {
3265
3271
  const n = J(e);
3266
3272
  return J(() => {
3267
3273
  const s = n();
@@ -3269,16 +3275,16 @@ function cl(e, t) {
3269
3275
  case "function":
3270
3276
  return Z(() => s(t));
3271
3277
  case "string":
3272
- const r = $o.has(s), a = _.context ? al() : Xs(s, r);
3273
- return nl(a, t, r), a;
3278
+ const r = Jo.has(s), a = _.context ? ul() : er(s, r);
3279
+ return ol(a, t, r), a;
3274
3280
  }
3275
3281
  });
3276
3282
  }
3277
- function iu(e) {
3278
- const [, t] = Uo(e, ["component"]);
3279
- return cl(() => e.component, t);
3283
+ function du(e) {
3284
+ const [, t] = Ko(e, ["component"]);
3285
+ return gl(() => e.component, t);
3280
3286
  }
3281
- var ul = class {
3287
+ var ml = class {
3282
3288
  constructor() {
3283
3289
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
3284
3290
  }
@@ -3294,9 +3300,9 @@ var ul = class {
3294
3300
  clear() {
3295
3301
  this.keyToValue.clear(), this.valueToKey.clear();
3296
3302
  }
3297
- }, Zs = class {
3303
+ }, tr = class {
3298
3304
  constructor(e) {
3299
- this.generateIdentifier = e, this.kv = new ul();
3305
+ this.generateIdentifier = e, this.kv = new ml();
3300
3306
  }
3301
3307
  register(e, t) {
3302
3308
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -3310,7 +3316,7 @@ var ul = class {
3310
3316
  getValue(e) {
3311
3317
  return this.kv.getByKey(e);
3312
3318
  }
3313
- }, dl = class extends Zs {
3319
+ }, El = class extends tr {
3314
3320
  constructor() {
3315
3321
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3316
3322
  }
@@ -3321,7 +3327,7 @@ var ul = class {
3321
3327
  return this.classToAllowedProps.get(e);
3322
3328
  }
3323
3329
  };
3324
- function fl(e) {
3330
+ function pl(e) {
3325
3331
  if ("values" in Object)
3326
3332
  return Object.values(e);
3327
3333
  const t = [];
@@ -3329,8 +3335,8 @@ function fl(e) {
3329
3335
  e.hasOwnProperty(n) && t.push(e[n]);
3330
3336
  return t;
3331
3337
  }
3332
- function hl(e, t) {
3333
- const n = fl(e);
3338
+ function yl(e, t) {
3339
+ const n = pl(e);
3334
3340
  if ("find" in n)
3335
3341
  return n.find(t);
3336
3342
  const s = n;
@@ -3343,7 +3349,7 @@ function hl(e, t) {
3343
3349
  function nt(e, t) {
3344
3350
  Object.entries(e).forEach(([n, s]) => t(s, n));
3345
3351
  }
3346
- function Rt(e, t) {
3352
+ function Ut(e, t) {
3347
3353
  return e.indexOf(t) !== -1;
3348
3354
  }
3349
3355
  function ns(e, t) {
@@ -3353,7 +3359,7 @@ function ns(e, t) {
3353
3359
  return s;
3354
3360
  }
3355
3361
  }
3356
- var gl = class {
3362
+ var Al = class {
3357
3363
  constructor() {
3358
3364
  this.transfomers = {};
3359
3365
  }
@@ -3361,12 +3367,12 @@ var gl = class {
3361
3367
  this.transfomers[e.name] = e;
3362
3368
  }
3363
3369
  findApplicable(e) {
3364
- return hl(this.transfomers, (t) => t.isApplicable(e));
3370
+ return yl(this.transfomers, (t) => t.isApplicable(e));
3365
3371
  }
3366
3372
  findByName(e) {
3367
3373
  return this.transfomers[e];
3368
3374
  }
3369
- }, ml = (e) => Object.prototype.toString.call(e).slice(8, -1), er = (e) => typeof e > "u", El = (e) => e === null, dt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, An = (e) => dt(e) && Object.keys(e).length === 0, ve = (e) => Array.isArray(e), pl = (e) => typeof e == "string", yl = (e) => typeof e == "number" && !isNaN(e), Al = (e) => typeof e == "boolean", Tl = (e) => e instanceof RegExp, ft = (e) => e instanceof Map, ht = (e) => e instanceof Set, tr = (e) => ml(e) === "Symbol", Sl = (e) => e instanceof Date && !isNaN(e.valueOf()), _l = (e) => e instanceof Error, ss = (e) => typeof e == "number" && isNaN(e), Pl = (e) => Al(e) || El(e) || er(e) || yl(e) || pl(e) || tr(e), vl = (e) => typeof e == "bigint", wl = (e) => e === 1 / 0 || e === -1 / 0, bl = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Il = (e) => e instanceof URL, nr = (e) => e.replace(/\./g, "\\."), un = (e) => e.map(String).map(nr).join("."), ot = (e) => {
3375
+ }, Tl = (e) => Object.prototype.toString.call(e).slice(8, -1), nr = (e) => typeof e > "u", Sl = (e) => e === null, dt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Tn = (e) => dt(e) && Object.keys(e).length === 0, ve = (e) => Array.isArray(e), _l = (e) => typeof e == "string", Pl = (e) => typeof e == "number" && !isNaN(e), vl = (e) => typeof e == "boolean", wl = (e) => e instanceof RegExp, ft = (e) => e instanceof Map, ht = (e) => e instanceof Set, sr = (e) => Tl(e) === "Symbol", bl = (e) => e instanceof Date && !isNaN(e.valueOf()), Il = (e) => e instanceof Error, ss = (e) => typeof e == "number" && isNaN(e), Cl = (e) => vl(e) || Sl(e) || nr(e) || Pl(e) || _l(e) || sr(e), Nl = (e) => typeof e == "bigint", Ll = (e) => e === 1 / 0 || e === -1 / 0, kl = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ol = (e) => e instanceof URL, rr = (e) => e.replace(/\./g, "\\."), dn = (e) => e.map(String).map(rr).join("."), ot = (e) => {
3370
3376
  const t = [];
3371
3377
  let n = "";
3372
3378
  for (let r = 0; r < e.length; r++) {
@@ -3392,12 +3398,12 @@ function fe(e, t, n, s) {
3392
3398
  untransform: s
3393
3399
  };
3394
3400
  }
3395
- var sr = [
3396
- fe(er, "undefined", () => null, () => {
3401
+ var ar = [
3402
+ fe(nr, "undefined", () => null, () => {
3397
3403
  }),
3398
- fe(vl, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3399
- fe(Sl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3400
- fe(_l, "Error", (e, t) => {
3404
+ fe(Nl, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3405
+ fe(bl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3406
+ fe(Il, "Error", (e, t) => {
3401
3407
  const n = {
3402
3408
  name: e.name,
3403
3409
  message: e.message
@@ -3411,7 +3417,7 @@ var sr = [
3411
3417
  n[s] = e[s];
3412
3418
  }), n;
3413
3419
  }),
3414
- fe(Tl, "regexp", (e) => "" + e, (e) => {
3420
+ fe(wl, "regexp", (e) => "" + e, (e) => {
3415
3421
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
3416
3422
  return new RegExp(t, n);
3417
3423
  }),
@@ -3424,11 +3430,11 @@ var sr = [
3424
3430
  (e) => new Set(e)
3425
3431
  ),
3426
3432
  fe(ft, "map", (e) => [...e.entries()], (e) => new Map(e)),
3427
- fe((e) => ss(e) || wl(e), "number", (e) => ss(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3433
+ fe((e) => ss(e) || Ll(e), "number", (e) => ss(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3428
3434
  fe((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
3429
- fe(Il, "URL", (e) => e.toString(), (e) => new URL(e))
3435
+ fe(Ol, "URL", (e) => e.toString(), (e) => new URL(e))
3430
3436
  ];
3431
- function Zt(e, t, n, s) {
3437
+ function en(e, t, n, s) {
3432
3438
  return {
3433
3439
  isApplicable: e,
3434
3440
  annotation: t,
@@ -3436,12 +3442,12 @@ function Zt(e, t, n, s) {
3436
3442
  untransform: s
3437
3443
  };
3438
3444
  }
3439
- var rr = Zt((e, t) => tr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3445
+ var ir = en((e, t) => sr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3440
3446
  const s = n.symbolRegistry.getValue(t[1]);
3441
3447
  if (!s)
3442
3448
  throw new Error("Trying to deserialize unknown symbol");
3443
3449
  return s;
3444
- }), Cl = [
3450
+ }), Dl = [
3445
3451
  Int8Array,
3446
3452
  Uint8Array,
3447
3453
  Int16Array,
@@ -3451,16 +3457,16 @@ var rr = Zt((e, t) => tr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
3451
3457
  Float32Array,
3452
3458
  Float64Array,
3453
3459
  Uint8ClampedArray
3454
- ].reduce((e, t) => (e[t.name] = t, e), {}), ar = Zt(bl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3455
- const n = Cl[t[1]];
3460
+ ].reduce((e, t) => (e[t.name] = t, e), {}), or = en(kl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3461
+ const n = Dl[t[1]];
3456
3462
  if (!n)
3457
3463
  throw new Error("Trying to deserialize unknown typed array");
3458
3464
  return new n(e);
3459
3465
  });
3460
- function ir(e, t) {
3466
+ function lr(e, t) {
3461
3467
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
3462
3468
  }
3463
- var or = Zt(ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3469
+ var cr = en(lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3464
3470
  const n = t.classRegistry.getAllowedProps(e.constructor);
3465
3471
  if (!n)
3466
3472
  return { ...e };
@@ -3473,44 +3479,44 @@ var or = Zt(ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
3473
3479
  if (!s)
3474
3480
  throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3475
3481
  return Object.assign(Object.create(s.prototype), e);
3476
- }), lr = Zt((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3482
+ }), ur = en((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3477
3483
  const s = n.customTransformerRegistry.findByName(t[1]);
3478
3484
  if (!s)
3479
3485
  throw new Error("Trying to deserialize unknown custom value");
3480
3486
  return s.deserialize(e);
3481
- }), Nl = [or, rr, lr, ar], rs = (e, t) => {
3482
- const n = ns(Nl, (r) => r.isApplicable(e, t));
3487
+ }), Gl = [cr, ir, ur, or], rs = (e, t) => {
3488
+ const n = ns(Gl, (r) => r.isApplicable(e, t));
3483
3489
  if (n)
3484
3490
  return {
3485
3491
  value: n.transform(e, t),
3486
3492
  type: n.annotation(e, t)
3487
3493
  };
3488
- const s = ns(sr, (r) => r.isApplicable(e, t));
3494
+ const s = ns(ar, (r) => r.isApplicable(e, t));
3489
3495
  if (s)
3490
3496
  return {
3491
3497
  value: s.transform(e, t),
3492
3498
  type: s.annotation
3493
3499
  };
3494
- }, cr = {};
3495
- sr.forEach((e) => {
3496
- cr[e.annotation] = e;
3500
+ }, dr = {};
3501
+ ar.forEach((e) => {
3502
+ dr[e.annotation] = e;
3497
3503
  });
3498
- var Ll = (e, t, n) => {
3504
+ var xl = (e, t, n) => {
3499
3505
  if (ve(t))
3500
3506
  switch (t[0]) {
3501
3507
  case "symbol":
3502
- return rr.untransform(e, t, n);
3508
+ return ir.untransform(e, t, n);
3503
3509
  case "class":
3504
- return or.untransform(e, t, n);
3510
+ return cr.untransform(e, t, n);
3505
3511
  case "custom":
3506
- return lr.untransform(e, t, n);
3512
+ return ur.untransform(e, t, n);
3507
3513
  case "typed-array":
3508
- return ar.untransform(e, t, n);
3514
+ return or.untransform(e, t, n);
3509
3515
  default:
3510
3516
  throw new Error("Unknown transformation: " + t);
3511
3517
  }
3512
3518
  else {
3513
- const s = cr[t];
3519
+ const s = dr[t];
3514
3520
  if (!s)
3515
3521
  throw new Error("Unknown transformation: " + t);
3516
3522
  return s.untransform(e, n);
@@ -3523,16 +3529,16 @@ var Ll = (e, t, n) => {
3523
3529
  n.next(), t--;
3524
3530
  return n.next().value;
3525
3531
  };
3526
- function ur(e) {
3527
- if (Rt(e, "__proto__"))
3532
+ function fr(e) {
3533
+ if (Ut(e, "__proto__"))
3528
3534
  throw new Error("__proto__ is not allowed as a property");
3529
- if (Rt(e, "prototype"))
3535
+ if (Ut(e, "prototype"))
3530
3536
  throw new Error("prototype is not allowed as a property");
3531
- if (Rt(e, "constructor"))
3537
+ if (Ut(e, "constructor"))
3532
3538
  throw new Error("constructor is not allowed as a property");
3533
3539
  }
3534
- var kl = (e, t) => {
3535
- ur(t);
3540
+ var Rl = (e, t) => {
3541
+ fr(t);
3536
3542
  for (let n = 0; n < t.length; n++) {
3537
3543
  const s = t[n];
3538
3544
  if (ht(e))
@@ -3551,8 +3557,8 @@ var kl = (e, t) => {
3551
3557
  e = e[s];
3552
3558
  }
3553
3559
  return e;
3554
- }, Tn = (e, t, n) => {
3555
- if (ur(t), t.length === 0)
3560
+ }, Sn = (e, t, n) => {
3561
+ if (fr(t), t.length === 0)
3556
3562
  return n(e);
3557
3563
  let s = e;
3558
3564
  for (let a = 0; a < t.length - 1; a++) {
@@ -3600,45 +3606,45 @@ var kl = (e, t) => {
3600
3606
  }
3601
3607
  return e;
3602
3608
  };
3603
- function Sn(e, t, n = []) {
3609
+ function _n(e, t, n = []) {
3604
3610
  if (!e)
3605
3611
  return;
3606
3612
  if (!ve(e)) {
3607
- nt(e, (a, i) => Sn(a, t, [...n, ...ot(i)]));
3613
+ nt(e, (a, i) => _n(a, t, [...n, ...ot(i)]));
3608
3614
  return;
3609
3615
  }
3610
3616
  const [s, r] = e;
3611
3617
  r && nt(r, (a, i) => {
3612
- Sn(a, t, [...n, ...ot(i)]);
3618
+ _n(a, t, [...n, ...ot(i)]);
3613
3619
  }), t(s, n);
3614
3620
  }
3615
- function Ol(e, t, n) {
3616
- return Sn(t, (s, r) => {
3617
- e = Tn(e, r, (a) => Ll(a, s, n));
3621
+ function Ul(e, t, n) {
3622
+ return _n(t, (s, r) => {
3623
+ e = Sn(e, r, (a) => xl(a, s, n));
3618
3624
  }), e;
3619
3625
  }
3620
- function Dl(e, t) {
3626
+ function Bl(e, t) {
3621
3627
  function n(s, r) {
3622
- const a = kl(e, ot(r));
3628
+ const a = Rl(e, ot(r));
3623
3629
  s.map(ot).forEach((i) => {
3624
- e = Tn(e, i, () => a);
3630
+ e = Sn(e, i, () => a);
3625
3631
  });
3626
3632
  }
3627
3633
  if (ve(t)) {
3628
3634
  const [s, r] = t;
3629
3635
  s.forEach((a) => {
3630
- e = Tn(e, ot(a), () => e);
3636
+ e = Sn(e, ot(a), () => e);
3631
3637
  }), r && nt(r, n);
3632
3638
  } else
3633
3639
  nt(t, n);
3634
3640
  return e;
3635
3641
  }
3636
- var Gl = (e, t) => dt(e) || ve(e) || ft(e) || ht(e) || ir(e, t);
3637
- function xl(e, t, n) {
3642
+ var Ml = (e, t) => dt(e) || ve(e) || ft(e) || ht(e) || lr(e, t);
3643
+ function Fl(e, t, n) {
3638
3644
  const s = n.get(e);
3639
3645
  s ? s.push(t) : n.set(e, [t]);
3640
3646
  }
3641
- function Rl(e, t) {
3647
+ function ql(e, t) {
3642
3648
  const n = {};
3643
3649
  let s;
3644
3650
  return e.forEach((r) => {
@@ -3646,20 +3652,20 @@ function Rl(e, t) {
3646
3652
  return;
3647
3653
  t || (r = r.map((o) => o.map(String)).sort((o, l) => o.length - l.length));
3648
3654
  const [a, ...i] = r;
3649
- a.length === 0 ? s = i.map(un) : n[un(a)] = i.map(un);
3650
- }), s ? An(n) ? [s] : [s, n] : An(n) ? void 0 : n;
3655
+ a.length === 0 ? s = i.map(dn) : n[dn(a)] = i.map(dn);
3656
+ }), s ? Tn(n) ? [s] : [s, n] : Tn(n) ? void 0 : n;
3651
3657
  }
3652
- var dr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3653
- const o = Pl(e);
3658
+ var hr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3659
+ const o = Cl(e);
3654
3660
  if (!o) {
3655
- xl(e, r, t);
3661
+ Fl(e, r, t);
3656
3662
  const g = i.get(e);
3657
3663
  if (g)
3658
3664
  return s ? {
3659
3665
  transformedValue: null
3660
3666
  } : g;
3661
3667
  }
3662
- if (!Gl(e, n)) {
3668
+ if (!Ml(e, n)) {
3663
3669
  const g = rs(e, n), A = g ? {
3664
3670
  transformedValue: g.value,
3665
3671
  annotations: [g.type]
@@ -3668,7 +3674,7 @@ var dr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3668
3674
  };
3669
3675
  return o || i.set(e, A), A;
3670
3676
  }
3671
- if (Rt(a, e))
3677
+ if (Ut(a, e))
3672
3678
  return {
3673
3679
  transformedValue: null
3674
3680
  };
@@ -3676,12 +3682,12 @@ var dr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3676
3682
  nt(u, (g, A) => {
3677
3683
  if (A === "__proto__" || A === "constructor" || A === "prototype")
3678
3684
  throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);
3679
- const T = dr(g, t, n, s, [...r, A], [...a, e], i);
3685
+ const T = hr(g, t, n, s, [...r, A], [...a, e], i);
3680
3686
  f[A] = T.transformedValue, ve(T.annotations) ? d[A] = T.annotations : dt(T.annotations) && nt(T.annotations, (p, y) => {
3681
- d[nr(A) + "." + y] = p;
3687
+ d[rr(A) + "." + y] = p;
3682
3688
  });
3683
3689
  });
3684
- const h = An(d) ? {
3690
+ const h = Tn(d) ? {
3685
3691
  transformedValue: f,
3686
3692
  annotations: l ? [l.type] : void 0
3687
3693
  } : {
@@ -3690,19 +3696,19 @@ var dr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3690
3696
  };
3691
3697
  return o || i.set(e, h), h;
3692
3698
  };
3693
- function fr(e) {
3699
+ function gr(e) {
3694
3700
  return Object.prototype.toString.call(e).slice(8, -1);
3695
3701
  }
3696
3702
  function as(e) {
3697
- return fr(e) === "Array";
3703
+ return gr(e) === "Array";
3698
3704
  }
3699
- function Ul(e) {
3700
- if (fr(e) !== "Object")
3705
+ function Kl(e) {
3706
+ if (gr(e) !== "Object")
3701
3707
  return !1;
3702
3708
  const t = Object.getPrototypeOf(e);
3703
3709
  return !!t && t.constructor === Object && t === Object.prototype;
3704
3710
  }
3705
- function Bl(e, t, n, s, r) {
3711
+ function Vl(e, t, n, s, r) {
3706
3712
  const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
3707
3713
  a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
3708
3714
  value: n,
@@ -3711,17 +3717,17 @@ function Bl(e, t, n, s, r) {
3711
3717
  configurable: !0
3712
3718
  });
3713
3719
  }
3714
- function _n(e, t = {}) {
3720
+ function Pn(e, t = {}) {
3715
3721
  if (as(e))
3716
- return e.map((r) => _n(r, t));
3717
- if (!Ul(e))
3722
+ return e.map((r) => Pn(r, t));
3723
+ if (!Kl(e))
3718
3724
  return e;
3719
3725
  const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
3720
3726
  return [...n, ...s].reduce((r, a) => {
3721
3727
  if (as(t.props) && !t.props.includes(a))
3722
3728
  return r;
3723
- const i = e[a], o = _n(i, t);
3724
- return Bl(r, a, o, e, t.nonenumerable), r;
3729
+ const i = e[a], o = Pn(i, t);
3730
+ return Vl(r, a, o, e, t.nonenumerable), r;
3725
3731
  }, {});
3726
3732
  }
3727
3733
  var x = class {
@@ -3729,17 +3735,17 @@ var x = class {
3729
3735
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3730
3736
  */
3731
3737
  constructor({ dedupe: e = !1 } = {}) {
3732
- this.classRegistry = new dl(), this.symbolRegistry = new Zs((t) => t.description ?? ""), this.customTransformerRegistry = new gl(), this.allowedErrorProps = [], this.dedupe = e;
3738
+ this.classRegistry = new El(), this.symbolRegistry = new tr((t) => t.description ?? ""), this.customTransformerRegistry = new Al(), this.allowedErrorProps = [], this.dedupe = e;
3733
3739
  }
3734
3740
  serialize(e) {
3735
- const t = /* @__PURE__ */ new Map(), n = dr(e, t, this, this.dedupe), s = {
3741
+ const t = /* @__PURE__ */ new Map(), n = hr(e, t, this, this.dedupe), s = {
3736
3742
  json: n.transformedValue
3737
3743
  };
3738
3744
  n.annotations && (s.meta = {
3739
3745
  ...s.meta,
3740
3746
  values: n.annotations
3741
3747
  });
3742
- const r = Rl(t, this.dedupe);
3748
+ const r = ql(t, this.dedupe);
3743
3749
  return r && (s.meta = {
3744
3750
  ...s.meta,
3745
3751
  referentialEqualities: r
@@ -3747,8 +3753,8 @@ var x = class {
3747
3753
  }
3748
3754
  deserialize(e) {
3749
3755
  const { json: t, meta: n } = e;
3750
- let s = _n(t);
3751
- return n != null && n.values && (s = Ol(s, n.values, this)), n != null && n.referentialEqualities && (s = Dl(s, n.referentialEqualities)), s;
3756
+ let s = Pn(t);
3757
+ return n != null && n.values && (s = Ul(s, n.values, this)), n != null && n.referentialEqualities && (s = Bl(s, n.referentialEqualities)), s;
3752
3758
  }
3753
3759
  stringify(e) {
3754
3760
  return JSON.stringify(this.serialize(e));
@@ -3781,44 +3787,44 @@ x.registerClass = x.defaultInstance.registerClass.bind(x.defaultInstance);
3781
3787
  x.registerSymbol = x.defaultInstance.registerSymbol.bind(x.defaultInstance);
3782
3788
  x.registerCustom = x.defaultInstance.registerCustom.bind(x.defaultInstance);
3783
3789
  x.allowErrorProps = x.defaultInstance.allowErrorProps.bind(x.defaultInstance);
3784
- var Ml = x.serialize, ou = x.stringify;
3785
- function lu(e) {
3790
+ var Hl = x.serialize, fu = x.stringify;
3791
+ function hu(e) {
3786
3792
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
3787
3793
  }
3788
- function cu(e, t) {
3794
+ function gu(e, t) {
3789
3795
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
3790
3796
  }
3791
- function uu({
3797
+ function mu({
3792
3798
  queryState: e,
3793
3799
  observerCount: t,
3794
3800
  isStale: n
3795
3801
  }) {
3796
3802
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
3797
3803
  }
3798
- function du({
3804
+ function Eu({
3799
3805
  status: e,
3800
3806
  isPaused: t
3801
3807
  }) {
3802
3808
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
3803
3809
  }
3804
- function fu(e) {
3810
+ function pu(e) {
3805
3811
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
3806
3812
  }
3807
- var hu = (e, t = !1) => {
3813
+ var yu = (e, t = !1) => {
3808
3814
  const {
3809
3815
  json: n
3810
- } = Ml(e);
3816
+ } = Hl(e);
3811
3817
  return JSON.stringify(n, null, t ? 2 : void 0);
3812
- }, kt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Fl = (e, t) => e.queryHash.localeCompare(t.queryHash), hr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ql = (e, t) => kt(e) === kt(t) ? hr(e, t) : kt(e) > kt(t) ? 1 : -1, gu = {
3813
- status: ql,
3814
- "query hash": Fl,
3815
- "last updated": hr
3816
- }, Ot = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, gr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Kl = (e, t) => Ot(e) === Ot(t) ? gr(e, t) : Ot(e) > Ot(t) ? 1 : -1, mu = {
3817
- status: Kl,
3818
- "last updated": gr
3819
- }, Eu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), pu = () => {
3820
- const [e, t] = F("dark");
3821
- return bo(() => {
3818
+ }, Ot = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Ql = (e, t) => e.queryHash.localeCompare(t.queryHash), mr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, $l = (e, t) => Ot(e) === Ot(t) ? mr(e, t) : Ot(e) > Ot(t) ? 1 : -1, Au = {
3819
+ status: $l,
3820
+ "query hash": Ql,
3821
+ "last updated": mr
3822
+ }, Dt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Er = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, jl = (e, t) => Dt(e) === Dt(t) ? Er(e, t) : Dt(e) > Dt(t) ? 1 : -1, Tu = {
3823
+ status: jl,
3824
+ "last updated": Er
3825
+ }, Su = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), _u = () => {
3826
+ const [e, t] = q("dark");
3827
+ return ko(() => {
3822
3828
  const n = window.matchMedia("(prefers-color-scheme: dark)");
3823
3829
  t(n.matches ? "dark" : "light");
3824
3830
  const s = (r) => {
@@ -3826,7 +3832,7 @@ var hu = (e, t = !1) => {
3826
3832
  };
3827
3833
  n.addEventListener("change", s), lt(() => n.removeEventListener("change", s));
3828
3834
  }), e;
3829
- }, Dt = (e, t, n) => {
3835
+ }, Gt = (e, t, n) => {
3830
3836
  if (t.length === 0)
3831
3837
  return n;
3832
3838
  if (e instanceof Map) {
@@ -3834,10 +3840,10 @@ var hu = (e, t = !1) => {
3834
3840
  if (t.length === 1)
3835
3841
  return s.set(t[0], n), s;
3836
3842
  const [r, ...a] = t;
3837
- return s.set(r, Dt(s.get(r), a, n)), s;
3843
+ return s.set(r, Gt(s.get(r), a, n)), s;
3838
3844
  }
3839
3845
  if (e instanceof Set) {
3840
- const s = Dt(Array.from(e), t, n);
3846
+ const s = Gt(Array.from(e), t, n);
3841
3847
  return new Set(s);
3842
3848
  }
3843
3849
  if (Array.isArray(e)) {
@@ -3845,7 +3851,7 @@ var hu = (e, t = !1) => {
3845
3851
  if (t.length === 1)
3846
3852
  return s[t[0]] = n, s;
3847
3853
  const [r, ...a] = t;
3848
- return s[r] = Dt(s[r], a, n), s;
3854
+ return s[r] = Gt(s[r], a, n), s;
3849
3855
  }
3850
3856
  if (e instanceof Object) {
3851
3857
  const s = {
@@ -3854,19 +3860,19 @@ var hu = (e, t = !1) => {
3854
3860
  if (t.length === 1)
3855
3861
  return s[t[0]] = n, s;
3856
3862
  const [r, ...a] = t;
3857
- return s[r] = Dt(s[r], a, n), s;
3863
+ return s[r] = Gt(s[r], a, n), s;
3858
3864
  }
3859
3865
  return e;
3860
- }, Gt = (e, t) => {
3866
+ }, xt = (e, t) => {
3861
3867
  if (e instanceof Map) {
3862
3868
  const n = new Map(e);
3863
3869
  if (t.length === 1)
3864
3870
  return n.delete(t[0]), n;
3865
3871
  const [s, ...r] = t;
3866
- return n.set(s, Gt(n.get(s), r)), n;
3872
+ return n.set(s, xt(n.get(s), r)), n;
3867
3873
  }
3868
3874
  if (e instanceof Set) {
3869
- const n = Gt(Array.from(e), t);
3875
+ const n = xt(Array.from(e), t);
3870
3876
  return new Set(n);
3871
3877
  }
3872
3878
  if (Array.isArray(e)) {
@@ -3874,7 +3880,7 @@ var hu = (e, t = !1) => {
3874
3880
  if (t.length === 1)
3875
3881
  return n.filter((a, i) => i.toString() !== t[0]);
3876
3882
  const [s, ...r] = t;
3877
- return n[s] = Gt(n[s], r), n;
3883
+ return n[s] = xt(n[s], r), n;
3878
3884
  }
3879
3885
  if (e instanceof Object) {
3880
3886
  const n = {
@@ -3883,14 +3889,14 @@ var hu = (e, t = !1) => {
3883
3889
  if (t.length === 1)
3884
3890
  return delete n[t[0]], n;
3885
3891
  const [s, ...r] = t;
3886
- return n[s] = Gt(n[s], r), n;
3892
+ return n[s] = xt(n[s], r), n;
3887
3893
  }
3888
3894
  return e;
3889
- }, mr = (e, t) => {
3895
+ }, pr = (e, t) => {
3890
3896
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
3891
3897
  const s = document.createElement("style"), r = document.createTextNode("");
3892
3898
  s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
3893
- }, qe, gt, mt, Et, Le, pt, Ke, Ve, He, Qe, $e, yt, je, At, cs, Vl = (cs = class {
3899
+ }, qe, gt, mt, Et, Le, pt, Ke, Ve, He, Qe, $e, yt, je, At, cs, zl = (cs = class {
3894
3900
  constructor(e) {
3895
3901
  D(this, qe);
3896
3902
  D(this, gt);
@@ -3919,7 +3925,7 @@ var hu = (e, t = !1) => {
3919
3925
  shadowDOMTarget: f,
3920
3926
  hideDisabledQueries: d
3921
3927
  } = e;
3922
- k(this, qe, F(t)), k(this, mt, n), k(this, Et, s), k(this, gt, r), k(this, pt, u), k(this, Ke, f), k(this, Ve, F(a)), k(this, He, F(i)), k(this, Qe, F(o)), k(this, $e, F(l)), k(this, yt, F(d));
3928
+ k(this, qe, q(t)), k(this, mt, n), k(this, Et, s), k(this, gt, r), k(this, pt, u), k(this, Ke, f), k(this, Ve, q(a)), k(this, He, q(i)), k(this, Qe, q(o)), k(this, $e, q(l)), k(this, yt, q(d));
3923
3929
  }
3924
3930
  setButtonPosition(e) {
3925
3931
  S(this, Ve)[1](e);
@@ -3939,10 +3945,10 @@ var hu = (e, t = !1) => {
3939
3945
  mount(e) {
3940
3946
  if (S(this, Le))
3941
3947
  throw new Error("Devtools is already mounted");
3942
- const t = Ys(() => {
3948
+ const t = Xs(() => {
3943
3949
  const n = this, [s] = S(this, Ve), [r] = S(this, He), [a] = S(this, Qe), [i] = S(this, $e), [o] = S(this, yt), [l] = S(this, qe);
3944
3950
  let u;
3945
- return S(this, je) ? u = S(this, je) : (u = zs(() => import("./NCMVHL6D-CTrkJrNW.js")), k(this, je, u)), mr(S(this, pt), S(this, Ke)), $s(u, js({
3951
+ return S(this, je) ? u = S(this, je) : (u = Ys(() => import("./NCMVHL6D-B3kd8MpE.js")), k(this, je, u)), pr(S(this, pt), S(this, Ke)), zs(u, Ws({
3946
3952
  get queryFlavor() {
3947
3953
  return S(n, mt);
3948
3954
  },
@@ -3984,7 +3990,7 @@ var hu = (e, t = !1) => {
3984
3990
  throw new Error("Devtools is not mounted");
3985
3991
  (e = S(this, At)) == null || e.call(this), k(this, Le, !1);
3986
3992
  }
3987
- }, qe = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Et = new WeakMap(), Le = new WeakMap(), pt = new WeakMap(), Ke = new WeakMap(), Ve = new WeakMap(), He = new WeakMap(), Qe = new WeakMap(), $e = new WeakMap(), yt = new WeakMap(), je = new WeakMap(), At = new WeakMap(), cs), ze, Tt, St, _t, ke, Pt, We, Ye, Je, Xe, Ze, vt, et, tt, wt, us, Hl = (us = class {
3993
+ }, qe = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Et = new WeakMap(), Le = new WeakMap(), pt = new WeakMap(), Ke = new WeakMap(), Ve = new WeakMap(), He = new WeakMap(), Qe = new WeakMap(), $e = new WeakMap(), yt = new WeakMap(), je = new WeakMap(), At = new WeakMap(), cs), ze, Tt, St, _t, ke, Pt, We, Ye, Je, Xe, Ze, vt, et, tt, wt, us, Wl = (us = class {
3988
3994
  constructor(e) {
3989
3995
  D(this, ze);
3990
3996
  D(this, Tt);
@@ -4015,7 +4021,7 @@ var hu = (e, t = !1) => {
4015
4021
  onClose: d,
4016
4022
  hideDisabledQueries: h
4017
4023
  } = e;
4018
- k(this, ze, F(t)), k(this, St, n), k(this, _t, s), k(this, Tt, r), k(this, Pt, u), k(this, We, f), k(this, Ye, F(a)), k(this, Je, F(i)), k(this, Xe, F(o)), k(this, Ze, F(l)), k(this, vt, F(h)), k(this, et, F(d));
4024
+ k(this, ze, q(t)), k(this, St, n), k(this, _t, s), k(this, Tt, r), k(this, Pt, u), k(this, We, f), k(this, Ye, q(a)), k(this, Je, q(i)), k(this, Xe, q(o)), k(this, Ze, q(l)), k(this, vt, q(h)), k(this, et, q(d));
4019
4025
  }
4020
4026
  setButtonPosition(e) {
4021
4027
  S(this, Ye)[1](e);
@@ -4038,10 +4044,10 @@ var hu = (e, t = !1) => {
4038
4044
  mount(e) {
4039
4045
  if (S(this, ke))
4040
4046
  throw new Error("Devtools is already mounted");
4041
- const t = Ys(() => {
4047
+ const t = Xs(() => {
4042
4048
  const n = this, [s] = S(this, Ye), [r] = S(this, Je), [a] = S(this, Xe), [i] = S(this, Ze), [o] = S(this, vt), [l] = S(this, ze), [u] = S(this, et);
4043
4049
  let f;
4044
- return S(this, tt) ? f = S(this, tt) : (f = zs(() => import("./2AITGKQY-JdTvsit7.js")), k(this, tt, f)), mr(S(this, Pt), S(this, We)), $s(f, js({
4050
+ return S(this, tt) ? f = S(this, tt) : (f = Ys(() => import("./2AITGKQY-BQI4o1xG.js")), k(this, tt, f)), pr(S(this, Pt), S(this, We)), zs(f, Ws({
4045
4051
  get queryFlavor() {
4046
4052
  return S(n, St);
4047
4053
  },
@@ -4087,7 +4093,7 @@ var hu = (e, t = !1) => {
4087
4093
  (e = S(this, wt)) == null || e.call(this), k(this, ke, !1);
4088
4094
  }
4089
4095
  }, ze = new WeakMap(), Tt = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), ke = new WeakMap(), Pt = new WeakMap(), We = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Xe = new WeakMap(), Ze = new WeakMap(), vt = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), us);
4090
- function Ql(e) {
4096
+ function Yl(e) {
4091
4097
  const t = W(e.client), n = z.useRef(null), {
4092
4098
  buttonPosition: s,
4093
4099
  position: r,
@@ -4097,7 +4103,7 @@ function Ql(e) {
4097
4103
  shadowDOMTarget: l,
4098
4104
  hideDisabledQueries: u
4099
4105
  } = e, [f] = z.useState(
4100
- new Vl({
4106
+ new zl({
4101
4107
  client: t,
4102
4108
  queryFlavor: "React Query",
4103
4109
  version: "5",
@@ -4125,9 +4131,9 @@ function Ql(e) {
4125
4131
  f.unmount();
4126
4132
  }), [f]), /* @__PURE__ */ c("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
4127
4133
  }
4128
- function $l(e) {
4134
+ function Jl(e) {
4129
4135
  const t = W(e.client), n = z.useRef(null), { errorTypes: s, styleNonce: r, shadowDOMTarget: a, hideDisabledQueries: i } = e, [o] = z.useState(
4130
- new Hl({
4136
+ new Wl({
4131
4137
  client: t,
4132
4138
  queryFlavor: "React Query",
4133
4139
  version: "5",
@@ -4162,22 +4168,24 @@ function $l(e) {
4162
4168
  }
4163
4169
  var is = process.env.NODE_ENV !== "development" ? function() {
4164
4170
  return null;
4165
- } : Ql;
4171
+ } : Yl;
4166
4172
  process.env.NODE_ENV;
4167
- const jl = Ee(""), zl = () => {
4168
- qn("dynamic-page-selector", {
4173
+ const Xl = Ee(""), Zl = () => {
4174
+ tn("dynamic-page-selector", {
4169
4175
  description: "Dynamic page selector"
4170
- }), qn("enable-add-page-dropdown", {
4176
+ }), tn("enable-add-page-dropdown", {
4171
4177
  description: "Enable add page dropdown"
4178
+ }), tn("enable-ai-chat-panel", {
4179
+ description: "Enable AI chat panel"
4172
4180
  });
4173
- }, Wl = () => {
4181
+ }, ec = () => {
4174
4182
  const e = N(), t = I();
4175
4183
  return ae({
4176
4184
  queryKey: [E.GET_COLLECTIONS],
4177
4185
  staleTime: 1 / 0,
4178
4186
  queryFn: async () => t(e, { action: E.GET_COLLECTIONS })
4179
4187
  });
4180
- }, Yl = () => {
4188
+ }, tc = () => {
4181
4189
  const { data: e } = ie(), { data: t } = be(), { data: n } = Re(), s = N(), r = I(), a = Q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]);
4182
4190
  return X({
4183
4191
  mutationFn: async ({ block: i }) => r(s, {
@@ -4201,7 +4209,7 @@ const jl = Ee(""), zl = () => {
4201
4209
  }
4202
4210
  })
4203
4211
  });
4204
- }, Jl = () => {
4212
+ }, nc = () => {
4205
4213
  const [, e] = le();
4206
4214
  return j(
4207
4215
  (t, n) => {
@@ -4210,56 +4218,56 @@ const jl = Ee(""), zl = () => {
4210
4218
  },
4211
4219
  [e]
4212
4220
  );
4213
- }, Xl = () => {
4214
- const e = Jl();
4221
+ }, sc = () => {
4222
+ const e = nc();
4215
4223
  return j(
4216
4224
  ({ pageId: t }) => {
4217
4225
  e(t);
4218
4226
  },
4219
4227
  [e]
4220
4228
  );
4221
- }, Zl = K(() => import("./digital-asset-manager-CWneIIcn.js")), ec = K(() => import("./save-to-lib-CpFEdU_R.js")), tc = K(() => import("./theme-panel-footer-DscF7mar.js")), nc = K(() => import("./web-preview-sSS97N-o.js"));
4222
- zl();
4223
- Ja();
4224
- Yr(eo);
4225
- To();
4226
- Jr(Zl);
4227
- Xr(ec);
4228
- const sc = {
4229
+ }, rc = F(() => import("./digital-asset-manager-BxM02CBp.js")), ac = F(() => import("./save-to-lib-C43iGfOH.js")), ic = F(() => import("./theme-panel-footer-BnxQBiM2.js")), oc = F(() => import("./web-preview-y7dB2S91.js"));
4230
+ Zl();
4231
+ Xa();
4232
+ Jr(to);
4233
+ wo();
4234
+ Xr(rc);
4235
+ Zr(ac);
4236
+ const lc = {
4229
4237
  role: "",
4230
4238
  permissions: null
4231
4239
  }, os = (e) => {
4232
- const { data: t } = oo();
4233
- hi();
4234
- const n = On(), { data: s = sc, isFetching: r } = lo(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = Wl(), { data: u, isFetching: f } = Re(), d = r || i || l || f, [h] = le(), g = h.get("page"), { data: A } = ie(), { data: T, isFetching: p } = ro(), { blocks: y } = so(T), { lockingStatus: P, pageLock: w } = Ie(), { data: O, isFetching: B } = ao(), L = to(), { onSave: pe } = co(), { mutateAsync: ye } = Yl(), { getPartialBlocks: U, getPartialBlockBlocks: v } = uo(), { mutateAsync: b } = Ni(), { mutateAsync: Y } = io(), $ = Xl(), [de, bt] = q(!1), Ae = at([]), Be = Q(() => V(u, "theme", {}) || {}, [u]), Ne = he(P) && (w == null ? void 0 : w.status) === "editing", Er = (w == null ? void 0 : w.status) === "checking", xn = p || Er || B;
4240
+ const { data: t } = lo();
4241
+ gi();
4242
+ const n = Dn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = ec(), { data: u, isFetching: f } = Re(), d = r || i || l || f, [h] = le(), g = h.get("page"), { data: A } = ie(), { data: T, isFetching: p } = ao(), { blocks: y } = ro(T), { lockingStatus: P, pageLock: w } = Ie(), { data: O, isFetching: M } = io(), L = no(), { onSave: pe } = uo(), { mutateAsync: ye } = tc(), { getPartialBlocks: U, getPartialBlockBlocks: v } = fo(), { mutateAsync: b } = Li(), { mutateAsync: Y } = oo(), $ = sc(), [de, bt] = K(!1), Ae = at([]), Be = Q(() => V(u, "theme", {}) || {}, [u]), Ne = he(P) && (w == null ? void 0 : w.status) === "editing", yr = (w == null ? void 0 : w.status) === "checking", Rn = p || yr || M;
4235
4243
  Ae.current = y;
4236
- const [pr] = te(jl);
4244
+ const [Ar] = te(Xl);
4237
4245
  se(() => {
4238
4246
  const ne = () => {
4239
4247
  document.hidden ? bt(!0) : bt(!1);
4240
4248
  };
4241
4249
  return window.addEventListener("visibilitychange", ne), () => window.removeEventListener("visibilitychange", ne);
4242
4250
  }, []);
4243
- const yr = Q(() => {
4251
+ const Tr = Q(() => {
4244
4252
  const ne = {};
4245
4253
  return s && (ne.permissions = V(s, "permissions", null), ne.role = V(s, "role", "user")), ne;
4246
- }, [s]), Ar = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), Tr = j(
4254
+ }, [s]), Sr = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), _r = j(
4247
4255
  async (ne, It) => await b({ pageType: ne, query: It }),
4248
4256
  [b]
4249
4257
  );
4250
4258
  return /* @__PURE__ */ m(ge, { children: [
4251
- xn && /* @__PURE__ */ c(Ns, { className: d ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ c(Mt, { className: `animate-spin text-primary ${d ? "h-6 w-6" : "h-5 w-5"}` }) }),
4252
- pr && /* @__PURE__ */ c(
4259
+ Rn && /* @__PURE__ */ c(Ls, { className: d ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ c(Ft, { className: `animate-spin text-primary ${d ? "h-6 w-6" : "h-5 w-5"}` }) }),
4260
+ Ar && /* @__PURE__ */ c(
4253
4261
  H,
4254
4262
  {
4255
- fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c(Mt, { className: "h-6 w-6 animate-spin text-primary" }) }),
4256
- children: /* @__PURE__ */ c(nc, {})
4263
+ fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c(Ft, { className: "h-6 w-6 animate-spin text-primary" }) }),
4264
+ children: /* @__PURE__ */ c(oc, {})
4257
4265
  }
4258
4266
  ),
4259
4267
  /* @__PURE__ */ c(
4260
- Zr,
4268
+ ea,
4261
4269
  {
4262
- _tempProps: { librarySite: Ar },
4270
+ _tempProps: { librarySite: Sr },
4263
4271
  gotoPage: $,
4264
4272
  collections: o ?? [],
4265
4273
  getBlockAsyncProps: ye,
@@ -4279,26 +4287,26 @@ const sc = {
4279
4287
  getPartialBlockBlocks: v,
4280
4288
  getPartialBlocks: U,
4281
4289
  blocks: p ? [] : y,
4282
- theme: Ur(Be),
4290
+ theme: Mr(Be),
4283
4291
  pageTypes: a,
4284
- searchPageTypeItems: Tr,
4292
+ searchPageTypeItems: _r,
4285
4293
  askAiCallBack: L,
4286
- onSave: async ({ blocks: ne, theme: It, needTranslations: Sr }) => {
4294
+ onSave: async ({ blocks: ne, theme: It, needTranslations: Pr }) => {
4287
4295
  if (!g) return !0;
4288
4296
  Ae.current = ne;
4289
- const Rn = [...ne];
4290
- return await pe({ page: g, blocks: Rn, needTranslations: Sr }), Ae.current = Rn, Br(It, Be) || await Y({ settings: { theme: It } }), !0;
4297
+ const Un = [...ne];
4298
+ return await pe({ page: g, blocks: Un, needTranslations: Pr }), Ae.current = Un, Fr(It, Be) || await Y({ settings: { theme: It } }), !0;
4291
4299
  },
4292
- themePanelComponent: tc,
4293
- ...yr
4300
+ themePanelComponent: ic,
4301
+ ...Tr
4294
4302
  }
4295
4303
  ),
4296
4304
  /* @__PURE__ */ m("div", { children: [
4297
- /* @__PURE__ */ c(pi, { isFetchingPage: xn }),
4298
- /* @__PURE__ */ c(yi, {})
4305
+ /* @__PURE__ */ c(yi, { isFetchingPage: Rn }),
4306
+ /* @__PURE__ */ c(Ai, {})
4299
4307
  ] })
4300
4308
  ] });
4301
- }, rc = new Kr({
4309
+ }, cc = new Hr({
4302
4310
  defaultOptions: {
4303
4311
  queries: {
4304
4312
  refetchOnWindowFocus: !1,
@@ -4306,10 +4314,10 @@ const sc = {
4306
4314
  refetchOnMount: !1
4307
4315
  }
4308
4316
  }
4309
- }), yu = (e) => {
4310
- const [, t] = In(), [n, s] = q(!1);
4317
+ }), Pu = (e) => {
4318
+ const [, t] = Cn(), [n, s] = K(!1);
4311
4319
  return se(() => (t(
4312
- Pn(e, [
4320
+ vn(e, [
4313
4321
  "apiUrl",
4314
4322
  "usersApiUrl",
4315
4323
  "assetsApiUrl",
@@ -4330,17 +4338,17 @@ const sc = {
4330
4338
  }), [e, t]), n ? V(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(ge, { children: [
4331
4339
  /* @__PURE__ */ c(os, { ...e }),
4332
4340
  /* @__PURE__ */ c(is, {})
4333
- ] }) : /* @__PURE__ */ m(Vr, { client: rc, children: [
4341
+ ] }) : /* @__PURE__ */ m(Qr, { client: cc, children: [
4334
4342
  /* @__PURE__ */ c(os, { ...e }),
4335
4343
  /* @__PURE__ */ c(is, {})
4336
4344
  ] }) : /* @__PURE__ */ c("div", {});
4337
- }, ac = z.lazy(() => import("./nested-path-selector-content-DvIL_EoN.js"));
4338
- function ic({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4345
+ }, uc = z.lazy(() => import("./nested-path-selector-content-DvIL_EoN.js"));
4346
+ function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4339
4347
  const [r, a] = z.useState(!1);
4340
- return /* @__PURE__ */ m(pa, { open: r, onOpenChange: a, children: [
4341
- /* @__PURE__ */ m(jt, { children: [
4342
- /* @__PURE__ */ c(zt, { asChild: !0, children: /* @__PURE__ */ c(ya, { asChild: !0, children: /* @__PURE__ */ c(
4343
- M,
4348
+ return /* @__PURE__ */ m(ya, { open: r, onOpenChange: a, children: [
4349
+ /* @__PURE__ */ m(zt, { children: [
4350
+ /* @__PURE__ */ c(Wt, { asChild: !0, children: /* @__PURE__ */ c(Aa, { asChild: !0, children: /* @__PURE__ */ c(
4351
+ B,
4344
4352
  {
4345
4353
  size: "sm",
4346
4354
  variant: "outline",
@@ -4360,10 +4368,10 @@ function ic({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4360
4368
  ) })
4361
4369
  }
4362
4370
  ) }) }),
4363
- /* @__PURE__ */ c(Wt, { children: "Add field" })
4371
+ /* @__PURE__ */ c(Yt, { children: "Add field" })
4364
4372
  ] }),
4365
4373
  r && /* @__PURE__ */ c(z.Suspense, { children: /* @__PURE__ */ c(
4366
- ac,
4374
+ uc,
4367
4375
  {
4368
4376
  data: e,
4369
4377
  onSelect: t,
@@ -4374,17 +4382,17 @@ function ic({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4374
4382
  ) })
4375
4383
  ] });
4376
4384
  }
4377
- const Au = () => {
4385
+ const vu = () => {
4378
4386
  const { savePageAsync: e } = Ge(), t = W();
4379
4387
  return j(async () => {
4380
4388
  await e(), t.invalidateQueries({ queryKey: [E.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [E.GET_BUILDER_PAGE_DATA] });
4381
4389
  }, [e, t]);
4382
- }, Tu = () => {
4390
+ }, wu = () => {
4383
4391
  const e = W();
4384
4392
  return j(() => {
4385
4393
  e.clear();
4386
4394
  }, [e]);
4387
- }, Su = () => {
4395
+ }, bu = () => {
4388
4396
  const e = N(), t = I(), { data: n } = be(), s = W();
4389
4397
  return X({
4390
4398
  mutationFn: async (r) => {
@@ -4409,7 +4417,7 @@ const Au = () => {
4409
4417
  console.error("Failed to update metadata");
4410
4418
  }
4411
4419
  });
4412
- }, oc = K(() => import("./digital-asset-manager-CWneIIcn.js")), _u = ({
4420
+ }, fc = F(() => import("./digital-asset-manager-BxM02CBp.js")), Iu = ({
4413
4421
  assetId: e,
4414
4422
  assetUrl: t,
4415
4423
  onChange: n,
@@ -4417,13 +4425,13 @@ const Au = () => {
4417
4425
  placeholder: r = "Select an image",
4418
4426
  disabled: a = !1
4419
4427
  }) => {
4420
- const { t: i } = we(), [o, l] = q(!1), u = () => {
4428
+ const { t: i } = we(), [o, l] = K(!1), u = () => {
4421
4429
  a || l(!0);
4422
4430
  }, f = () => {
4423
4431
  l(!1);
4424
4432
  }, d = (A) => {
4425
4433
  const T = Array.isArray(A) ? A[0] : A;
4426
- T != null && T.url && n(Pn(T, ["url", "id"])), l(!1);
4434
+ T != null && T.url && n(vn(T, ["url", "id"])), l(!1);
4427
4435
  }, h = () => {
4428
4436
  n({ url: "", id: "" });
4429
4437
  }, g = (t == null ? void 0 : t.startsWith("{{")) && (t == null ? void 0 : t.endsWith("}}"));
@@ -4440,7 +4448,7 @@ const Au = () => {
4440
4448
  ),
4441
4449
  /* @__PURE__ */ m("div", { className: "absolute right-2 top-2 flex gap-2", children: [
4442
4450
  /* @__PURE__ */ c(
4443
- M,
4451
+ B,
4444
4452
  {
4445
4453
  type: "button",
4446
4454
  variant: "outline",
@@ -4448,11 +4456,11 @@ const Au = () => {
4448
4456
  className: "h-8 w-8 rounded-full bg-white text-red-500",
4449
4457
  onClick: h,
4450
4458
  disabled: a,
4451
- children: g ? /* @__PURE__ */ c(zn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Va, { className: "h-4 w-4" })
4459
+ children: g ? /* @__PURE__ */ c(zn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Ha, { className: "h-4 w-4" })
4452
4460
  }
4453
4461
  ),
4454
4462
  !g && /* @__PURE__ */ c(
4455
- M,
4463
+ B,
4456
4464
  {
4457
4465
  type: "button",
4458
4466
  variant: "outline",
@@ -4475,11 +4483,11 @@ const Au = () => {
4475
4483
  ] })
4476
4484
  }
4477
4485
  ),
4478
- /* @__PURE__ */ c(As, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(Aa, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4479
- /* @__PURE__ */ m(Ta, { className: "hidden border-b px-4 py-2", children: [
4480
- /* @__PURE__ */ c(Sa, { children: i("Select Image") }),
4486
+ /* @__PURE__ */ c(Ts, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(Ta, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4487
+ /* @__PURE__ */ m(Sa, { className: "hidden border-b px-4 py-2", children: [
4488
+ /* @__PURE__ */ c(_a, { children: i("Select Image") }),
4481
4489
  /* @__PURE__ */ c(
4482
- M,
4490
+ B,
4483
4491
  {
4484
4492
  type: "button",
4485
4493
  variant: "ghost",
@@ -4491,7 +4499,7 @@ const Au = () => {
4491
4499
  )
4492
4500
  ] }),
4493
4501
  /* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
4494
- oc,
4502
+ fc,
4495
4503
  {
4496
4504
  close: f,
4497
4505
  onSelect: d,
@@ -4501,13 +4509,13 @@ const Au = () => {
4501
4509
  ) }) })
4502
4510
  ] }) })
4503
4511
  ] });
4504
- }, lc = Fr(null), dn = {
4512
+ }, hc = Kr(null), fn = {
4505
4513
  didCatch: !1,
4506
4514
  error: null
4507
4515
  };
4508
- class cc extends qr {
4516
+ class gc extends Vr {
4509
4517
  constructor(t) {
4510
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = dn;
4518
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = fn;
4511
4519
  }
4512
4520
  static getDerivedStateFromError(t) {
4513
4521
  return {
@@ -4525,7 +4533,7 @@ class cc extends qr {
4525
4533
  (n = (s = this.props).onReset) === null || n === void 0 || n.call(s, {
4526
4534
  args: a,
4527
4535
  reason: "imperative-api"
4528
- }), this.setState(dn);
4536
+ }), this.setState(fn);
4529
4537
  }
4530
4538
  }
4531
4539
  componentDidCatch(t, n) {
@@ -4538,13 +4546,13 @@ class cc extends qr {
4538
4546
  } = this.state, {
4539
4547
  resetKeys: r
4540
4548
  } = this.props;
4541
- if (s && n.error !== null && uc(t.resetKeys, r)) {
4549
+ if (s && n.error !== null && mc(t.resetKeys, r)) {
4542
4550
  var a, i;
4543
4551
  (a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
4544
4552
  next: r,
4545
4553
  prev: t.resetKeys,
4546
4554
  reason: "keys"
4547
- }), this.setState(dn);
4555
+ }), this.setState(fn);
4548
4556
  }
4549
4557
  }
4550
4558
  render() {
@@ -4566,13 +4574,13 @@ class cc extends qr {
4566
4574
  if (typeof n == "function")
4567
4575
  o = n(l);
4568
4576
  else if (s)
4569
- o = Fn(s, l);
4577
+ o = qn(s, l);
4570
4578
  else if (r !== void 0)
4571
4579
  o = r;
4572
4580
  else
4573
4581
  throw i;
4574
4582
  }
4575
- return Fn(lc.Provider, {
4583
+ return qn(hc.Provider, {
4576
4584
  value: {
4577
4585
  didCatch: a,
4578
4586
  error: i,
@@ -4581,11 +4589,11 @@ class cc extends qr {
4581
4589
  }, o);
4582
4590
  }
4583
4591
  }
4584
- function uc() {
4592
+ function mc() {
4585
4593
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
4586
4594
  return e.length !== t.length || e.some((n, s) => !Object.is(n, t[s]));
4587
4595
  }
4588
- const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4596
+ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4589
4597
  if (!e.trim())
4590
4598
  return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
4591
4599
  try {
@@ -4620,13 +4628,13 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4620
4628
  }
4621
4629
  };
4622
4630
  }
4623
- }, fc = (e, t) => {
4631
+ }, pc = (e, t) => {
4624
4632
  let s = JSON.stringify(e, null, 2);
4625
4633
  return t.forEach(({ original: r }, a) => {
4626
- const i = `"__placeholder_${a}__"`, o = new RegExp(dc(i), "g");
4634
+ const i = `"__placeholder_${a}__"`, o = new RegExp(Ec(i), "g");
4627
4635
  s = s.replace(o, r);
4628
4636
  }), s;
4629
- }, hc = (e, t) => {
4637
+ }, yc = (e, t) => {
4630
4638
  if (!e) return "";
4631
4639
  let n = JSON.stringify(e, null, 2);
4632
4640
  const s = /{{([^{}]+)}}/g;
@@ -4636,7 +4644,7 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4636
4644
  n = n.replace(r[0], i);
4637
4645
  }
4638
4646
  return n;
4639
- }, gc = K(() => import("./shared-json-ld-C4Kjka5m.js")), Pu = ({
4647
+ }, Ac = F(() => import("./shared-json-ld-OwSauSop.js")), Cu = ({
4640
4648
  value: e,
4641
4649
  onChange: t,
4642
4650
  disabled: n = !1,
@@ -4649,11 +4657,11 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4649
4657
  hasJsonLdForSelectedLang: u,
4650
4658
  copyJsonLDFromDefaultPage: f
4651
4659
  }) => {
4652
- const [d, h] = q("edit"), [g, A] = q(null), [T, p] = q(""), y = at(null), [P] = In(), w = i === "jsonLD" && V(P, "features.sharedJsonLD", !1), O = i === "jsonLD" && !u && !!f;
4660
+ const [d, h] = K("edit"), [g, A] = K(null), [T, p] = K(""), y = at(null), [P] = Cn(), w = i === "jsonLD" && V(P, "features.sharedJsonLD", !1), O = i === "jsonLD" && !u && !!f;
4653
4661
  se(() => {
4654
4662
  e.trim() === "" && t("{}");
4655
4663
  }, [e, t]);
4656
- const B = (U) => {
4664
+ const M = (U) => {
4657
4665
  if (s) return;
4658
4666
  const v = U.target.value;
4659
4667
  t(v);
@@ -4689,7 +4697,7 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4689
4697
  const U = ls(e);
4690
4698
  if (U.isValid)
4691
4699
  if (A(null), U.parsed) {
4692
- const v = hc(U.parsed, o);
4700
+ const v = yc(U.parsed, o);
4693
4701
  p(v);
4694
4702
  } else
4695
4703
  p("");
@@ -4699,46 +4707,46 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4699
4707
  const pe = () => {
4700
4708
  const U = ls(e);
4701
4709
  if (U.isValid && U.parsed) {
4702
- const v = fc(U.parsed, U.placeholders);
4710
+ const v = pc(U.parsed, U.placeholders);
4703
4711
  t(v);
4704
4712
  }
4705
4713
  }, ye = () => {
4706
4714
  g != null && g.position && y.current && (y.current.focus(), y.current.setSelectionRange(g.position, g.position + 1));
4707
4715
  };
4708
- return /* @__PURE__ */ c(cc, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(_a, { value: d, onValueChange: h, className: "w-full", children: [
4716
+ return /* @__PURE__ */ c(gc, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Pa, { value: d, onValueChange: h, className: "w-full", children: [
4709
4717
  /* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
4710
- /* @__PURE__ */ m(Pa, { className: "w-max", children: [
4711
- /* @__PURE__ */ m(tn, { value: "edit", className: "flex items-center gap-1", children: [
4712
- /* @__PURE__ */ c(Ha, { className: "h-4 w-4" }),
4718
+ /* @__PURE__ */ m(va, { className: "w-max", children: [
4719
+ /* @__PURE__ */ m(nn, { value: "edit", className: "flex items-center gap-1", children: [
4720
+ /* @__PURE__ */ c(Qa, { className: "h-4 w-4" }),
4713
4721
  /* @__PURE__ */ c("span", { children: "Edit" })
4714
4722
  ] }),
4715
4723
  /* @__PURE__ */ m(
4716
- tn,
4724
+ nn,
4717
4725
  {
4718
4726
  value: "preview",
4719
4727
  className: "flex items-center gap-1",
4720
4728
  disabled: !e.trim() || g !== null || O,
4721
4729
  children: [
4722
- /* @__PURE__ */ c(Qa, { className: "h-4 w-4" }),
4730
+ /* @__PURE__ */ c($a, { className: "h-4 w-4" }),
4723
4731
  /* @__PURE__ */ c("span", { children: "Preview" })
4724
4732
  ]
4725
4733
  }
4726
4734
  ),
4727
4735
  w && /* @__PURE__ */ m(
4728
- tn,
4736
+ nn,
4729
4737
  {
4730
4738
  value: "shared",
4731
4739
  className: "flex items-center gap-1",
4732
4740
  disabled: !e.trim() || g !== null,
4733
4741
  children: [
4734
- /* @__PURE__ */ c($a, { className: "h-4 w-4" }),
4742
+ /* @__PURE__ */ c(ja, { className: "h-4 w-4" }),
4735
4743
  /* @__PURE__ */ c("span", { children: "Shared" })
4736
4744
  ]
4737
4745
  }
4738
4746
  )
4739
4747
  ] }),
4740
4748
  O ? null : d === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
4741
- ic,
4749
+ dc,
4742
4750
  {
4743
4751
  dataType: "value",
4744
4752
  data: o ?? {},
@@ -4746,9 +4754,9 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4746
4754
  }
4747
4755
  ) })
4748
4756
  ] }),
4749
- /* @__PURE__ */ m(nn, { value: "edit", className: "relative mt-0", children: [
4750
- !O && d === "edit" && /* @__PURE__ */ c(Dn, { content: "Format JSON", side: "right", showTooltip: !n && !g, children: /* @__PURE__ */ c(
4751
- M,
4757
+ /* @__PURE__ */ m(sn, { value: "edit", className: "relative mt-0", children: [
4758
+ !O && d === "edit" && /* @__PURE__ */ c(Gn, { content: "Format JSON", side: "right", showTooltip: !n && !g, children: /* @__PURE__ */ c(
4759
+ B,
4752
4760
  {
4753
4761
  type: "button",
4754
4762
  variant: "outline",
@@ -4756,13 +4764,13 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4756
4764
  onClick: pe,
4757
4765
  className: "absolute right-1 top-1 h-6 w-6 p-1",
4758
4766
  disabled: !e.trim() || n || g !== null,
4759
- children: /* @__PURE__ */ c(ja, {})
4767
+ children: /* @__PURE__ */ c(za, {})
4760
4768
  }
4761
4769
  ) }),
4762
4770
  O ? /* @__PURE__ */ c("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
4763
4771
  /* @__PURE__ */ c("div", { className: "max-w-xl text-center text-xs text-gray-500", children: "JSON-LD for is not added for selected language. JSON LD will be used from default language." }),
4764
- /* @__PURE__ */ m(M, { type: "button", variant: "default", size: "sm", onClick: f, children: [
4765
- /* @__PURE__ */ c(Ts, {}),
4772
+ /* @__PURE__ */ m(B, { type: "button", variant: "default", size: "sm", onClick: f, children: [
4773
+ /* @__PURE__ */ c(Ss, {}),
4766
4774
  "Copy & Edit from default language"
4767
4775
  ] })
4768
4776
  ] }) }) : /* @__PURE__ */ c(
@@ -4772,7 +4780,7 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4772
4780
  id: i,
4773
4781
  name: i,
4774
4782
  className: `rounded-md border border-input text-xs ${g ? "border-red-500" : ""}`,
4775
- onChange: B,
4783
+ onChange: M,
4776
4784
  onKeyDown: L,
4777
4785
  value: e,
4778
4786
  placeholder: r,
@@ -4781,9 +4789,9 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4781
4789
  readOnly: s
4782
4790
  }
4783
4791
  ),
4784
- g && /* @__PURE__ */ m(va, { variant: "destructive", className: "mt-2", children: [
4785
- /* @__PURE__ */ c(za, { className: "h-4 w-4" }),
4786
- /* @__PURE__ */ m(wa, { className: "flex flex-col", children: [
4792
+ g && /* @__PURE__ */ m(wa, { variant: "destructive", className: "mt-2", children: [
4793
+ /* @__PURE__ */ c(Wa, { className: "h-4 w-4" }),
4794
+ /* @__PURE__ */ m(ba, { className: "flex flex-col", children: [
4787
4795
  /* @__PURE__ */ c("span", { className: "font-medium", children: "Invalid JSON" }),
4788
4796
  /* @__PURE__ */ c("span", { className: "text-sm", children: g.message }),
4789
4797
  g.line && g.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
@@ -4793,7 +4801,7 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4793
4801
  g.column
4794
4802
  ] }),
4795
4803
  /* @__PURE__ */ c(
4796
- M,
4804
+ B,
4797
4805
  {
4798
4806
  type: "button",
4799
4807
  variant: "link",
@@ -4806,127 +4814,127 @@ const dc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4806
4814
  ] })
4807
4815
  ] })
4808
4816
  ] }),
4809
- /* @__PURE__ */ m(nn, { value: "preview", className: "mt-0", children: [
4817
+ /* @__PURE__ */ m(sn, { value: "preview", className: "mt-0", children: [
4810
4818
  /* @__PURE__ */ c(Kn, { rows: a, value: T, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4811
4819
  /* @__PURE__ */ c("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
4812
4820
  ] }),
4813
- w && /* @__PURE__ */ c(nn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(gc, {}) }) })
4821
+ w && /* @__PURE__ */ c(sn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ac, {}) }) })
4814
4822
  ] }) }) });
4815
4823
  };
4816
4824
  if (typeof window > "u")
4817
4825
  throw new Error("@chaibuilder/pages is not available on the server");
4818
4826
  export {
4819
- Jc as $,
4827
+ nu as $,
4820
4828
  E as A,
4821
- Ns as B,
4822
- js as C,
4823
- Uo as D,
4824
- zc as E,
4825
- Wc as F,
4829
+ Ls as B,
4830
+ Ws as C,
4831
+ Ko as D,
4832
+ Zc as E,
4833
+ eu as F,
4826
4834
  De as G,
4827
- En as H,
4828
- Yc as I,
4829
- Qc as J,
4830
- nu as K,
4831
- Nt as L,
4835
+ pn as H,
4836
+ tu as I,
4837
+ Yc as J,
4838
+ ou as K,
4839
+ Lt as L,
4832
4840
  lt as M,
4833
- iu as N,
4834
- su as O,
4835
- au as P,
4836
- bo as Q,
4837
- sl as R,
4838
- Zc as S,
4839
- Dn as T,
4840
- pn as U,
4841
- Xo as V,
4842
- uu as W,
4843
- du as X,
4844
- nl as Y,
4845
- fu as Z,
4846
- hu as _,
4847
- io as a,
4848
- Hc as a0,
4849
- ru as a1,
4841
+ du as N,
4842
+ lu as O,
4843
+ uu as P,
4844
+ ko as Q,
4845
+ ll as R,
4846
+ ru as S,
4847
+ Gn as T,
4848
+ yn as U,
4849
+ sl as V,
4850
+ mu as W,
4851
+ Eu as X,
4852
+ ol as Y,
4853
+ pu as Z,
4854
+ yu as _,
4855
+ oo as a,
4856
+ Wc as a0,
4857
+ cu as a1,
4850
4858
  Z as a2,
4851
- Po as a3,
4852
- Ml as a4,
4853
- Xc as a5,
4854
- Dt as a6,
4855
- Eu as a7,
4856
- cu as a8,
4857
- lu as a9,
4858
- Vc as aA,
4859
- Fc as aB,
4860
- Ki as aC,
4861
- Lc as aD,
4862
- ws as aE,
4863
- ao as aF,
4864
- Ci as aG,
4865
- In as aH,
4866
- _i as aI,
4867
- ic as aJ,
4868
- _u as aK,
4869
- Ic as aL,
4870
- cc as aM,
4871
- yu as aN,
4859
+ Co as a3,
4860
+ Hl as a4,
4861
+ su as a5,
4862
+ Gt as a6,
4863
+ Su as a7,
4864
+ gu as a8,
4865
+ hu as a9,
4866
+ zc as aA,
4867
+ Qc as aB,
4868
+ Vi as aC,
4869
+ xc as aD,
4870
+ bs as aE,
4871
+ io as aF,
4872
+ Ni as aG,
4873
+ Cn as aH,
4874
+ Pi as aI,
4875
+ dc as aJ,
4876
+ Iu as aK,
4877
+ Oc as aL,
4878
+ gc as aM,
4879
+ Pu as aN,
4872
4880
  be as aO,
4873
- Tu as aP,
4874
- Xl as aQ,
4875
- Au as aR,
4876
- Su as aS,
4877
- Yt as aT,
4878
- lo as aU,
4879
- Cc as aV,
4880
- ei as aW,
4881
- Rs as aa,
4881
+ wu as aP,
4882
+ sc as aQ,
4883
+ vu as aR,
4884
+ bu as aS,
4885
+ Jt as aT,
4886
+ co as aU,
4887
+ Dc as aV,
4888
+ ti as aW,
4889
+ Bs as aa,
4882
4890
  Oe as ab,
4883
- Zo as ac,
4884
- ou as ad,
4885
- tu as ae,
4886
- eu as af,
4887
- Gt as ag,
4888
- jc as ah,
4889
- ci as ai,
4890
- gi as aj,
4891
+ rl as ac,
4892
+ fu as ad,
4893
+ iu as ae,
4894
+ au as af,
4895
+ xt as ag,
4896
+ Xc as ah,
4897
+ ui as ai,
4898
+ mi as aj,
4891
4899
  N as ak,
4892
4900
  I as al,
4893
- Jl as am,
4894
- Uc as an,
4895
- kn as ao,
4901
+ nc as am,
4902
+ Kc as an,
4903
+ On as ao,
4896
4904
  ie as ap,
4897
- rn as aq,
4905
+ an as aq,
4898
4906
  ce as ar,
4899
- Nn as as,
4900
- Nc as at,
4901
- Bc as au,
4902
- qc as av,
4903
- Pu as aw,
4907
+ Ln as as,
4908
+ Gc as at,
4909
+ Vc as au,
4910
+ $c as av,
4911
+ Cu as aw,
4904
4912
  ls as ax,
4905
- Mc as ay,
4906
- Kc as az,
4907
- bs as b,
4908
- kc as c,
4909
- Oc as d,
4913
+ Hc as ay,
4914
+ jc as az,
4915
+ Is as b,
4916
+ Rc as c,
4917
+ Uc as d,
4910
4918
  Re as e,
4911
- On as f,
4919
+ Dn as f,
4912
4920
  xe as g,
4913
4921
  Ce as h,
4914
4922
  le as i,
4915
- Ps as j,
4916
- ri as k,
4917
- Gc as l,
4918
- Dc as m,
4919
- xc as n,
4920
- Rc as o,
4921
- jl as p,
4922
- pu as q,
4923
+ vs as j,
4924
+ ai as k,
4925
+ Mc as l,
4926
+ Bc as m,
4927
+ Fc as n,
4928
+ qc as o,
4929
+ Xl as p,
4930
+ _u as q,
4923
4931
  J as r,
4924
- $s as s,
4925
- an as t,
4926
- Cs as u,
4927
- gu as v,
4928
- mu as w,
4929
- F as x,
4930
- Wo as y,
4931
- Ms as z
4932
+ zs as s,
4933
+ on as t,
4934
+ Ns as u,
4935
+ Au as v,
4936
+ Tu as w,
4937
+ q as x,
4938
+ el as y,
4939
+ qs as z
4932
4940
  };