@chaibuilder/sdk 1.2.19 → 1.2.20

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 (94) hide show
  1. package/dist/{AddBlocks-gcTaEIKO.js → AddBlocks-VIWJkaHJ.js} +24 -26
  2. package/dist/AddBlocks-X9eh8OWJ.cjs +1 -0
  3. package/dist/{BrandingOptions-bfiFY0VR.js → BrandingOptions-5ss0k1nb.js} +12 -14
  4. package/dist/BrandingOptions-PzPdafIT.cjs +1 -0
  5. package/dist/CanvasArea-TTGqlBKO.js +908 -0
  6. package/dist/CanvasArea-hoyr4dfb.cjs +55 -0
  7. package/dist/CurrentPage-EddxgHU-.cjs +1 -0
  8. package/dist/{CurrentPage-0Ap2N0uc.js → CurrentPage-a3T2uy8Q.js} +13 -16
  9. package/dist/ListTree-kergCZrw.js +126 -0
  10. package/dist/ListTree-tADrgsqZ.cjs +1 -0
  11. package/dist/Outline-3IHYlOzF.cjs +1 -0
  12. package/dist/Outline-rNFJGkap.js +294 -0
  13. package/dist/{PagesPanel-Pk-C1956.js → PagesPanel-0bL28ofN.js} +5 -8
  14. package/dist/PagesPanel-B33hWN11.cjs +1 -0
  15. package/dist/ProjectPanel-qtRTXNOP.cjs +1 -0
  16. package/dist/{ProjectPanel-_KQBhuPO.js → ProjectPanel-sBRkUXnY.js} +15 -18
  17. package/dist/{Settings-XtAatoiu.js → Settings-HgGe1ANj.js} +587 -555
  18. package/dist/Settings-rXxS3RGM.cjs +1 -0
  19. package/dist/{SidePanels-O52zKXbH.js → SidePanels-R_g9rSjP.js} +5 -8
  20. package/dist/SidePanels-aAm-2A3s.cjs +1 -0
  21. package/dist/{Topbar-oTx7a12r.js → Topbar-AUTKpVHO.js} +3 -5
  22. package/dist/Topbar-cXtxVswU.cjs +1 -0
  23. package/dist/TypeIcon-ElNNPazl.cjs +1 -0
  24. package/dist/TypeIcon-qO96rNbV.js +69 -0
  25. package/dist/{UnsplashImages-5A21uzMK.js → UnsplashImages-1RFHZIte.js} +13 -15
  26. package/dist/UnsplashImages-p34UJJWJ.cjs +1 -0
  27. package/dist/UploadImages-CLfyNo1i.cjs +1 -0
  28. package/dist/{UploadImages-V_54lCAO.js → UploadImages-G2orrhmZ.js} +8 -10
  29. package/dist/{add-page-modal-dKQLw7RQ.js → add-page-modal-DUthvJNJ.js} +16 -19
  30. package/dist/add-page-modal-KCy_Khfe.cjs +1 -0
  31. package/dist/confirm-alert-T8vimDRx.cjs +1 -0
  32. package/dist/{confirm-alert-8GP3bKH_.js → confirm-alert-nk2WQHud.js} +3 -5
  33. package/dist/{controls-Dy1qa8Dc.cjs → controls-KK2oLIa8.cjs} +1 -1
  34. package/dist/{controls-XPXGHKht.js → controls-OfJWSEqC.js} +29 -28
  35. package/dist/core.cjs +1 -1
  36. package/dist/core.d.ts +1 -1
  37. package/dist/core.js +45 -48
  38. package/dist/{delete-page-modal-Zb5ld6O-.js → delete-page-modal-WvWRQUgU.js} +8 -11
  39. package/dist/delete-page-modal-_pFjWLJn.cjs +1 -0
  40. package/dist/email-blocks.cjs +1 -1
  41. package/dist/email-blocks.js +5 -5
  42. package/dist/email.cjs +1 -1
  43. package/dist/email.d.ts +1 -0
  44. package/dist/email.js +4 -7
  45. package/dist/{form-o6_55v8F.cjs → form-YnnWtUGk.cjs} +1 -1
  46. package/dist/{form-yyU2x7So.js → form-kXQX4L2W.js} +1 -1
  47. package/dist/{index-lFcrvDFC.js → index--Pt4B5bv.js} +3 -3
  48. package/dist/index-DeHH1q_1.cjs +1 -0
  49. package/dist/{index-BMZLAJUV.cjs → index-JqRQZLN5.cjs} +1 -1
  50. package/dist/{index-yILWlilS.js → index-QIbDWoML.js} +8306 -8170
  51. package/dist/{index-JdnF6lYP.cjs → index-e5cgISUO.cjs} +51 -51
  52. package/dist/{index-WP7IRkij.js → index-la4rqGKN.js} +800 -792
  53. package/dist/page-viewer-6phtctz6.cjs +1 -0
  54. package/dist/{page-viewer-3QXwPGpg.js → page-viewer-s_lHBVfx.js} +9 -12
  55. package/dist/project-general-setting-SaNOMXEl.cjs +1 -0
  56. package/dist/{project-general-setting-UalRmyHm.js → project-general-setting-gj4A0X5W.js} +7 -10
  57. package/dist/{project-seo-setting-8FsvPSPl.js → project-seo-setting-aCPg-IIc.js} +5 -7
  58. package/dist/project-seo-setting-bMDdgKRZ.cjs +1 -0
  59. package/dist/{single-page-detail-GaB85dNv.js → single-page-detail-TP-cxVIT.js} +36 -39
  60. package/dist/single-page-detail-er8i2FIF.cjs +1 -0
  61. package/dist/studio.cjs +1 -1
  62. package/dist/studio.d.ts +1 -0
  63. package/dist/studio.js +4 -7
  64. package/dist/ui.cjs +1 -1
  65. package/dist/ui.js +138 -140
  66. package/dist/{useAddBlockByDrop-6EbioQV4.cjs → useAddBlockByDrop-LSV8adwE.cjs} +1 -1
  67. package/dist/{useAddBlockByDrop-BIK2fdgj.js → useAddBlockByDrop-_vczk5o_.js} +1 -1
  68. package/dist/web-blocks.cjs +1 -1
  69. package/dist/web-blocks.js +1 -1
  70. package/package.json +3 -14
  71. package/dist/AddBlocks-KeHVFaIr.cjs +0 -1
  72. package/dist/BrandingOptions-I2I8w6E9.cjs +0 -1
  73. package/dist/CanvasArea-JfHkTnQD.cjs +0 -60
  74. package/dist/CanvasArea-xvMCbQDL.js +0 -1404
  75. package/dist/CurrentPage-vj52UxMA.cjs +0 -1
  76. package/dist/ListTree-Vq0_s1wC.cjs +0 -1
  77. package/dist/ListTree-k-QMO740.js +0 -96
  78. package/dist/Outline-HI6-c9nf.js +0 -359
  79. package/dist/Outline-fAflJ_lN.cjs +0 -1
  80. package/dist/PagesPanel-ug8Tmva6.cjs +0 -1
  81. package/dist/ProjectPanel-o8-6cPX-.cjs +0 -1
  82. package/dist/Settings-Cc9eV4VG.cjs +0 -1
  83. package/dist/SidePanels-ugRobm34.cjs +0 -1
  84. package/dist/Topbar-e5MGWX9n.cjs +0 -1
  85. package/dist/UnsplashImages-KSbKGs91.cjs +0 -1
  86. package/dist/UploadImages-V42YSRVO.cjs +0 -1
  87. package/dist/add-page-modal-xMedOdsp.cjs +0 -1
  88. package/dist/confirm-alert-KtW-4OjG.cjs +0 -1
  89. package/dist/delete-page-modal-lebJCBBe.cjs +0 -1
  90. package/dist/index-thKfFhmr.cjs +0 -1
  91. package/dist/page-viewer-DTIblLiz.cjs +0 -1
  92. package/dist/project-general-setting-g7WhM3hc.cjs +0 -1
  93. package/dist/project-seo-setting-xoeLQVj3.cjs +0 -1
  94. package/dist/single-page-detail-XdBysrE_.cjs +0 -1
@@ -1,45 +1,43 @@
1
1
  import * as m from "react";
2
- import et, { createContext as Ms, useContext as Ds, useRef as br, createElement as xr, useReducer as Es, useEffect as Ae, useDebugValue as Os, useCallback as L, useMemo as Ls, useState as Ce, Suspense as vt } from "react";
3
- import { has as fe, get as F, filter as M, map as R, includes as q, find as te, isUndefined as vr, without as Et, set as je, isEmpty as _e, forIn as Ot, each as de, isObject as zs, flatten as ne, first as Q, omit as tt, noop as Vs, keys as $s, startsWith as Lt, isNull as He, pick as yt, sortBy as wt, isString as zt } from "lodash-es";
4
- import { g as le, a as Fs } from "./Functions-7jnEwJyw.js";
2
+ import et, { createContext as Is, useContext as Ms, useRef as gr, createElement as br, useReducer as Ds, useEffect as Ae, useDebugValue as Es, useCallback as L, useMemo as Os, useState as Ce, Suspense as vt } from "react";
3
+ import { has as pe, get as F, flatten as ne, filter as M, isString as Et, find as te, map as R, omit as tt, each as ue, set as je, includes as q, isUndefined as hr, without as Ot, isEmpty as Ee, forIn as Lt, isObject as Ls, first as Q, noop as zs, keys as Vs, startsWith as zt, isNull as He, pick as yt, sortBy as wt } from "lodash-es";
4
+ import { g as ce, a as $s } from "./Functions-7jnEwJyw.js";
5
5
  import { getBlockComponent as Oe } from "@chaibuilder/runtime";
6
- import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as Be } from "jotai";
7
- import { a as ue, I as Vt, S as qe, B as Ke } from "./MODIFIERS-WQdaNvb8.js";
8
- import { g as Us } from "./_commonjsHelpers-UyOWmZb0.js";
9
- import { useThrottledCallback as Ws } from "@react-hookz/web";
10
- import $t from "flat-to-nested";
6
+ import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as _e } from "jotai";
7
+ import { a as me, I as Vt, S as qe, B as Ke } from "./MODIFIERS-WQdaNvb8.js";
8
+ import { g as Fs } from "./_commonjsHelpers-UyOWmZb0.js";
9
+ import { useThrottledCallback as Us } from "@react-hookz/web";
11
10
  import { j as a } from "./jsx-runtime-WbnYoNE9.js";
12
- import * as Ft from "@radix-ui/react-toggle";
13
- import { cva as pe } from "class-variance-authority";
14
- import { a as d, c as Ie } from "./Class-3k8xjeiM.js";
11
+ import * as $t from "@radix-ui/react-toggle";
12
+ import { cva as ge } from "class-variance-authority";
13
+ import { a as d, c as Pe } from "./Class-3k8xjeiM.js";
15
14
  import * as Je from "@radix-ui/react-switch";
16
- import { Slot as Gs } from "@radix-ui/react-slot";
17
- import * as me from "@radix-ui/react-accordion";
18
- import { ChevronDownIcon as Hs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as Le, DotFilledIcon as nt, CaretSortIcon as qs, MagnifyingGlassIcon as Ks } from "@radix-ui/react-icons";
15
+ import { Slot as Ws } from "@radix-ui/react-slot";
16
+ import * as fe from "@radix-ui/react-accordion";
17
+ import { ChevronDownIcon as Gs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as Le, DotFilledIcon as nt, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
19
18
  import * as U from "@radix-ui/react-alert-dialog";
20
19
  import * as B from "@radix-ui/react-dialog";
21
- import * as Ut from "@radix-ui/react-label";
22
- import * as ce from "@radix-ui/react-scroll-area";
23
- import * as ge from "@radix-ui/react-tabs";
20
+ import * as Ft from "@radix-ui/react-label";
21
+ import * as de from "@radix-ui/react-scroll-area";
22
+ import * as be from "@radix-ui/react-tabs";
24
23
  import * as ve from "@radix-ui/react-tooltip";
25
24
  import * as Se from "@radix-ui/react-popover";
26
25
  import * as C from "@radix-ui/react-menubar";
27
26
  import * as ze from "@radix-ui/react-hover-card";
28
27
  import * as z from "@radix-ui/react-select";
29
28
  import * as T from "@radix-ui/react-dropdown-menu";
30
- import * as Wt from "@radix-ui/react-separator";
29
+ import * as Ut from "@radix-ui/react-separator";
31
30
  import * as Y from "@radix-ui/react-toast";
32
31
  import { Command as K } from "cmdk";
33
32
  import * as P from "@radix-ui/react-context-menu";
34
- import Js, { IconPickerItem as Ys } from "react-icons-picker";
35
- import Qs from "react-dom";
36
- import Xs from "react-quill";
37
- import { isEmpty as Or } from "lodash";
33
+ import Ks, { IconPickerItem as Js } from "react-icons-picker";
34
+ import Ys from "react-dom";
35
+ import Qs from "react-quill";
38
36
  import "react-i18next";
39
37
  var V = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
40
- let Zs = 0;
38
+ let Xs = 0;
41
39
  function oe(e, t) {
42
- const s = `atom${++Zs}`, o = {
40
+ const s = `atom${++Xs}`, o = {
43
41
  toString: () => s
44
42
  };
45
43
  return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, i, r) => i(
@@ -47,21 +45,21 @@ function oe(e, t) {
47
45
  typeof r == "function" ? r(n(o)) : r
48
46
  )), t && (o.write = t), o;
49
47
  }
50
- const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new WeakMap(), eo = (e, t) => {
51
- Ee.set(e, t), e.catch(() => {
52
- }).finally(() => Ee.delete(e));
48
+ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new WeakMap(), Zs = (e, t) => {
49
+ De.set(e, t), e.catch(() => {
50
+ }).finally(() => De.delete(e));
53
51
  }, Nt = (e, t) => {
54
- const s = Ee.get(e);
55
- s && (Ee.delete(e), s(t));
52
+ const s = De.get(e);
53
+ s && (De.delete(e), s(t));
56
54
  }, kt = (e, t) => {
57
55
  e.status = "fulfilled", e.value = t;
58
56
  }, jt = (e, t) => {
59
57
  e.status = "rejected", e.reason = t;
60
- }, to = (e) => typeof (e == null ? void 0 : e.then) == "function", we = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), St = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), he = (e) => "v" in e && e.v instanceof Promise, so = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Pe = (e) => {
58
+ }, eo = (e) => typeof (e == null ? void 0 : e.then) == "function", we = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), St = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), he = (e) => "v" in e && e.v instanceof Promise, to = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Te = (e) => {
61
59
  if ("e" in e)
62
60
  throw e.e;
63
61
  return e.v;
64
- }, oo = () => {
62
+ }, so = () => {
65
63
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
66
64
  let o, n, i;
67
65
  (V ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
@@ -85,14 +83,14 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
85
83
  };
86
84
  if (v && p(u, y, v), b && we(b, y) && b.d === y.d)
87
85
  return b;
88
- if (b && he(b) && he(y) && so(b, y)) {
86
+ if (b && he(b) && he(y) && to(b, y)) {
89
87
  if (b.d === y.d)
90
88
  return b;
91
89
  y.v = b.v;
92
90
  }
93
91
  return c(u, y), y;
94
92
  }, f = (u, g, v, b) => {
95
- if (to(g)) {
93
+ if (eo(g)) {
96
94
  let y;
97
95
  const h = new Promise((j, E) => {
98
96
  let S = !1;
@@ -126,7 +124,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
126
124
  ), j(_));
127
125
  };
128
126
  });
129
- return h.orig = g, h.status = "pending", eo(h, (j) => {
127
+ return h.orig = g, h.status = "pending", Zs(h, (j) => {
130
128
  j && y(j), b == null || b();
131
129
  }), l(u, h, v);
132
130
  }
@@ -153,13 +151,13 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
153
151
  if (S === u) {
154
152
  const A = r(S);
155
153
  if (A)
156
- return v.set(S, A), Pe(A);
154
+ return v.set(S, A), Te(A);
157
155
  if ($e(S))
158
156
  return v.set(S, void 0), S.init;
159
157
  throw new Error("no atom init");
160
158
  }
161
159
  const _ = N(S);
162
- return v.set(S, _), Pe(_);
160
+ return v.set(S, _), Te(_);
163
161
  };
164
162
  let h, j;
165
163
  const E = {
@@ -186,12 +184,12 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
186
184
  } finally {
187
185
  b = !1;
188
186
  }
189
- }, k = (u) => Pe(N(u)), I = (u) => {
187
+ }, k = (u) => Te(N(u)), I = (u) => {
190
188
  let g = t.get(u);
191
189
  return g || (g = Z(u)), g;
192
190
  }, O = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), W = (u) => {
193
191
  const g = t.get(u);
194
- g && O(u, g) && ie(u);
192
+ g && O(u, g) && le(u);
195
193
  }, G = (u) => {
196
194
  const g = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new WeakMap(), b = (h) => {
197
195
  const j = t.get(h);
@@ -212,8 +210,8 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
212
210
  if (_ && v.set(E, --_), !_) {
213
211
  let A = !!((S = g.get(E)) != null && S.size);
214
212
  if (A) {
215
- const ee = r(E), Is = N(E);
216
- A = !ee || !we(ee, Is);
213
+ const ee = r(E), Ps = N(E);
214
+ A = !ee || !we(ee, Ps);
217
215
  }
218
216
  A || g.forEach((ee) => ee.delete(E));
219
217
  }
@@ -224,7 +222,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
224
222
  y(u);
225
223
  }, H = (u, ...g) => {
226
224
  let v = !0;
227
- const b = (j) => Pe(N(j)), y = (j, ...E) => {
225
+ const b = (j) => Te(N(j)), y = (j, ...E) => {
228
226
  let S;
229
227
  if (j === u) {
230
228
  if (!$e(j))
@@ -234,7 +232,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
234
232
  } else
235
233
  S = H(j, ...E);
236
234
  if (!v) {
237
- const _ = ae();
235
+ const _ = re();
238
236
  (V ? "production" : void 0) !== "production" && n.forEach(
239
237
  (A) => A({ type: "async-write", flushed: _ })
240
238
  );
@@ -243,7 +241,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
243
241
  }, h = u.write(b, y, ...g);
244
242
  return v = !1, h;
245
243
  }, $ = (u, ...g) => {
246
- const v = H(u, ...g), b = ae();
244
+ const v = H(u, ...g), b = re();
247
245
  return (V ? "production" : void 0) !== "production" && n.forEach(
248
246
  (y) => y({ type: "write", flushed: b })
249
247
  ), v;
@@ -260,7 +258,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
260
258
  b && (v.u = b);
261
259
  }
262
260
  return v;
263
- }, ie = (u) => {
261
+ }, le = (u) => {
264
262
  var g;
265
263
  const v = (g = t.get(u)) == null ? void 0 : g.u;
266
264
  v && v(), t.delete(u), (V ? "production" : void 0) !== "production" && i.delete(u);
@@ -268,7 +266,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
268
266
  b ? (he(b) && Nt(b.v), b.d.forEach((y, h) => {
269
267
  if (h !== u) {
270
268
  const j = t.get(h);
271
- j && (j.t.delete(u), O(h, j) && ie(h));
269
+ j && (j.t.delete(u), O(h, j) && le(h));
272
270
  }
273
271
  })) : (V ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
274
272
  }, J = (u, g, v) => {
@@ -279,12 +277,12 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
279
277
  return;
280
278
  }
281
279
  const j = t.get(h);
282
- j && (j.t.delete(u), O(h, j) && ie(h));
280
+ j && (j.t.delete(u), O(h, j) && le(h));
283
281
  }), b.forEach((y) => {
284
282
  const h = t.get(y);
285
283
  h ? h.t.add(u) : t.has(u) && Z(y, u);
286
284
  });
287
- }, ae = () => {
285
+ }, re = () => {
288
286
  let u;
289
287
  for ((V ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
290
288
  const g = Array.from(s);
@@ -302,8 +300,8 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
302
300
  }
303
301
  if ((V ? "production" : void 0) !== "production")
304
302
  return o.forEach((g) => g("state")), u;
305
- }, re = (u, g) => {
306
- const v = I(u), b = ae(), y = v.l;
303
+ }, ie = (u, g) => {
304
+ const v = I(u), b = re(), y = v.l;
307
305
  return y.add(g), (V ? "production" : void 0) !== "production" && (o.forEach((h) => h("sub")), n.forEach(
308
306
  (h) => h({ type: "sub", flushed: b })
309
307
  )), () => {
@@ -313,7 +311,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
313
311
  return (V ? "production" : void 0) !== "production" ? {
314
312
  get: k,
315
313
  set: $,
316
- sub: re,
314
+ sub: ie,
317
315
  // store dev methods (these are tentative and subject to change without notice)
318
316
  dev_subscribe_store: (u, g) => g !== 2 ? (console.warn(
319
317
  "The current StoreListener revision is 2. The older ones are deprecated."
@@ -328,7 +326,7 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
328
326
  dev_restore_atoms: (u) => {
329
327
  for (const [v, b] of u)
330
328
  $e(v) && (f(v, b), G(v));
331
- const g = ae();
329
+ const g = re();
332
330
  n.forEach(
333
331
  (v) => v({ type: "restore", flushed: g })
334
332
  );
@@ -336,17 +334,17 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new W
336
334
  } : {
337
335
  get: k,
338
336
  set: $,
339
- sub: re
337
+ sub: ie
340
338
  };
341
339
  };
342
340
  let Ue;
343
- const no = () => (Ue || (Ue = oo()), Ue);
344
- var ao = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
345
- const ro = Ms(void 0), Gt = (e) => {
346
- const t = Ds(ro);
347
- return (e == null ? void 0 : e.store) || t || no();
341
+ const oo = () => (Ue || (Ue = so()), Ue);
342
+ var no = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
343
+ const ao = Is(void 0), Wt = (e) => {
344
+ const t = Ms(ao);
345
+ return (e == null ? void 0 : e.store) || t || oo();
348
346
  };
349
- const io = (e) => typeof (e == null ? void 0 : e.then) == "function", lo = et.use || ((e) => {
347
+ const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = et.use || ((e) => {
350
348
  if (e.status === "pending")
351
349
  throw e;
352
350
  if (e.status === "fulfilled")
@@ -360,8 +358,8 @@ const io = (e) => typeof (e == null ? void 0 : e.then) == "function", lo = et.us
360
358
  }
361
359
  ), e);
362
360
  });
363
- function co(e, t) {
364
- const s = Gt(t), [[o, n, i], r] = Es(
361
+ function lo(e, t) {
362
+ const s = Wt(t), [[o, n, i], r] = Ds(
365
363
  (l) => {
366
364
  const f = s.get(e);
367
365
  return Object.is(l[0], f) && l[1] === s && l[2] === e ? l : [f, s, e];
@@ -381,34 +379,34 @@ function co(e, t) {
381
379
  r();
382
380
  });
383
381
  return r(), l;
384
- }, [s, e, p]), Os(c), io(c) ? lo(c) : c;
382
+ }, [s, e, p]), Es(c), ro(c) ? io(c) : c;
385
383
  }
386
- function uo(e, t) {
387
- const s = Gt(t);
384
+ function co(e, t) {
385
+ const s = Wt(t);
388
386
  return L(
389
387
  (...n) => {
390
- if ((ao ? "production" : void 0) !== "production" && !("write" in e))
388
+ if ((no ? "production" : void 0) !== "production" && !("write" in e))
391
389
  throw new Error("not writable atom");
392
390
  return s.set(e, ...n);
393
391
  },
394
392
  [s, e]
395
393
  );
396
394
  }
397
- function zr(e, t) {
395
+ function Dr(e, t) {
398
396
  return [
399
- co(e, t),
397
+ lo(e, t),
400
398
  // We do wrong type assertion here, which results in throwing an error.
401
- uo(e, t)
399
+ co(e, t)
402
400
  ];
403
401
  }
404
402
  var at = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
405
- const Ht = Symbol();
406
- const At = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), mo = /* @__PURE__ */ new WeakMap(), fo = (e, t, s) => {
407
- const o = At(() => /* @__PURE__ */ new WeakMap(), mo, t);
403
+ const Gt = Symbol();
404
+ const At = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), uo = /* @__PURE__ */ new WeakMap(), mo = (e, t, s) => {
405
+ const o = At(() => /* @__PURE__ */ new WeakMap(), uo, t);
408
406
  return At(e, o, s);
409
- }, po = {}, Ct = (e) => !!e.write, go = (e) => typeof e == "function";
410
- function bo(e, t) {
411
- return fo(
407
+ }, fo = {}, Ct = (e) => !!e.write, po = (e) => typeof e == "function";
408
+ function go(e, t) {
409
+ return mo(
412
410
  () => {
413
411
  const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
414
412
  let p = s.get(r);
@@ -426,21 +424,21 @@ function bo(e, t) {
426
424
  const W = (H) => {
427
425
  const $ = H(n), Z = H(e), J = o(Z, $ == null ? void 0 : $.arr).keyList.indexOf(I);
428
426
  if (J < 0 || J >= Z.length) {
429
- const ae = r[o(r).keyList.indexOf(I)];
430
- if (ae)
431
- return ae;
427
+ const re = r[o(r).keyList.indexOf(I)];
428
+ if (re)
429
+ return re;
432
430
  throw new Error("splitAtom: index out of bounds for read");
433
431
  }
434
432
  return Z[J];
435
433
  }, G = (H, $, Z) => {
436
- const ie = H(n), J = H(e), re = o(J, ie == null ? void 0 : ie.arr).keyList.indexOf(I);
437
- if (re < 0 || re >= J.length)
434
+ const le = H(n), J = H(e), ie = o(J, le == null ? void 0 : le.arr).keyList.indexOf(I);
435
+ if (ie < 0 || ie >= J.length)
438
436
  throw new Error("splitAtom: index out of bounds for write");
439
- const u = go(Z) ? Z(J[re]) : Z;
437
+ const u = po(Z) ? Z(J[ie]) : Z;
440
438
  $(e, [
441
- ...J.slice(0, re),
439
+ ...J.slice(0, ie),
442
440
  u,
443
- ...J.slice(re + 1)
441
+ ...J.slice(ie + 1)
444
442
  ]);
445
443
  };
446
444
  f[k] = Ct(e) ? oe(W, G) : oe(W);
@@ -501,10 +499,10 @@ function bo(e, t) {
501
499
  return i;
502
500
  },
503
501
  e,
504
- t || po
502
+ t || fo
505
503
  );
506
504
  }
507
- function Vr(e) {
505
+ function Er(e) {
508
506
  const t = Symbol(), s = oe(t);
509
507
  (at ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
510
508
  const o = oe(
@@ -513,7 +511,7 @@ function Vr(e) {
513
511
  return r !== t ? r : e(n, i);
514
512
  },
515
513
  (n, i, r) => {
516
- if (r === Ht)
514
+ if (r === Gt)
517
515
  i(s, t);
518
516
  else if (typeof r == "function") {
519
517
  const c = n(o);
@@ -524,8 +522,8 @@ function Vr(e) {
524
522
  );
525
523
  return o;
526
524
  }
527
- const xo = (e) => typeof (e == null ? void 0 : e.then) == "function";
528
- function ho(e) {
525
+ const bo = (e) => typeof (e == null ? void 0 : e.then) == "function";
526
+ function xo(e) {
529
527
  let t, s;
530
528
  const o = {
531
529
  getItem: (n, i) => {
@@ -541,7 +539,7 @@ function ho(e) {
541
539
  }
542
540
  return s;
543
541
  }, l = (c = (r = e()) == null ? void 0 : r.getItem(n)) != null ? c : null;
544
- return xo(l) ? l.then(p) : p(l);
542
+ return bo(l) ? l.then(p) : p(l);
545
543
  },
546
544
  setItem: (n, i) => {
547
545
  var r;
@@ -572,10 +570,10 @@ function ho(e) {
572
570
  };
573
571
  }), o;
574
572
  }
575
- const vo = ho(
573
+ const ho = xo(
576
574
  () => typeof window < "u" ? window.localStorage : void 0
577
575
  );
578
- function Re(e, t, s = vo, o) {
576
+ function Be(e, t, s = ho, o) {
579
577
  const n = o == null ? void 0 : o.unstable_getOnInit, i = oe(
580
578
  n ? s.getItem(e, t) : t
581
579
  );
@@ -587,54 +585,112 @@ function Re(e, t, s = vo, o) {
587
585
  (c) => c(i),
588
586
  (c, p, l) => {
589
587
  const f = typeof l == "function" ? l(c(i)) : l;
590
- return f === Ht ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((x) => (p(i, x), s.setItem(e, x))) : (p(i, f), s.setItem(e, f));
588
+ return f === Gt ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((x) => (p(i, x), s.setItem(e, x))) : (p(i, f), s.setItem(e, f));
591
589
  }
592
590
  );
593
591
  }
594
- const qt = w(null);
595
- qt.debugLabel = "chaiBuilderPropsAtom";
596
- const yo = w({});
597
- yo.debugLabel = "chaiExternalDataAtom";
598
- const $r = () => !1, wo = (e) => {
599
- const t = e.replace(ue, "").split(",");
592
+ const Ht = w(null);
593
+ Ht.debugLabel = "chaiBuilderPropsAtom";
594
+ const vo = w({});
595
+ vo.debugLabel = "chaiExternalDataAtom";
596
+ const Or = () => !1, yo = (e) => {
597
+ const t = e.replace(me, "").split(",");
600
598
  return { baseClasses: t[0], classes: t[1] };
601
599
  }, Ye = (e, t) => {
602
600
  if (!e)
603
601
  return !0;
604
602
  const s = Oe(e);
605
- return s && fe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
606
- }, No = (e, t) => {
603
+ return s && pe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
604
+ }, wo = (e, t) => {
607
605
  const s = Oe(t);
608
- return s && fe(s, "canBeNested") ? s.canBeNested(e) : !0;
609
- }, Fr = (e) => {
606
+ return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
607
+ }, Lr = (e) => {
610
608
  const t = Oe(e);
611
- return t && fe(t, "canDuplicate") ? t.canDuplicate() : !0;
612
- }, Ur = (e) => {
609
+ return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
610
+ }, zr = (e) => {
613
611
  const t = Oe(e);
614
- return t && fe(t, "canDelete") ? t.canDelete() : !0;
615
- }, Wr = (e, { dragSource: t, dropTarget: s }) => {
612
+ return t && pe(t, "canDelete") ? t.canDelete() : !0;
613
+ }, Vr = (e, { dragSource: t, dropTarget: s }) => {
616
614
  const o = F(t, "data._type", ""), n = F(s, "data._type", "");
617
615
  return Ye(n, o);
618
616
  };
619
- const be = w([]);
620
- be.debugLabel = "presentBlocksAtom";
621
- const rt = bo(be);
617
+ function qt(e, t, s) {
618
+ const o = M(e, (i) => i._parent === t), n = [];
619
+ for (let i = 0; i < o.length; i++) {
620
+ const r = Jt(o[i]);
621
+ if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
622
+ o[i][c] = `slot:${ce()}`;
623
+ }), M(e, { _parent: o[i]._id }).length > 0) {
624
+ const c = ce();
625
+ n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(qt(e, o[i]._id, c)));
626
+ } else
627
+ n.push({
628
+ ...o[i],
629
+ oldId: o[i]._id,
630
+ _id: ce(),
631
+ _parent: s
632
+ });
633
+ }
634
+ return ne(n);
635
+ }
636
+ function Kt(e) {
637
+ const t = {};
638
+ e.forEach((o) => {
639
+ t[o._id] = { ...o, children: [] };
640
+ });
641
+ const s = [];
642
+ return e.forEach((o) => {
643
+ if (o._parent) {
644
+ const n = t[o._parent];
645
+ n && n.children.push(t[o._id]);
646
+ } else
647
+ s.push(t[o._id]);
648
+ }), s;
649
+ }
650
+ const Jt = (e) => {
651
+ const t = {};
652
+ return Object.keys(e).forEach((s) => {
653
+ Et(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
654
+ }), t;
655
+ }, No = (e, t, s = null) => {
656
+ let o = te(e, { _id: t });
657
+ o = { ...o, oldId: o._id, _id: ce() }, s && (o = { ...o, _parent: s });
658
+ const n = [o];
659
+ M(e, { _parent: t }).length > 0 && n.push(ne(qt(e, t, o._id)));
660
+ const i = ne(n);
661
+ return R(i, (r) => {
662
+ const c = r, p = Jt(c);
663
+ return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
664
+ const f = te(i, { oldId: p[l].replace("slot:", "") });
665
+ c[l] = `slot:${f._id}`;
666
+ }), tt(c, ["global", "oldId"]);
667
+ });
668
+ };
669
+ const ae = w([]);
670
+ ae.debugLabel = "presentBlocksAtom";
671
+ const ko = w((e) => {
672
+ const t = e(ae);
673
+ return Kt([...t]);
674
+ });
675
+ ko.debugLabel = "treeDSBlocks";
676
+ ae.debugLabel = "presentBlocksAtom";
677
+ const rt = go(ae);
622
678
  rt.debugLabel = "pageBlocksAtomsAtom";
623
- const ko = w("");
624
- ko.debugLabel = "builderActivePageAtom";
625
- const jo = w(-1);
626
- jo.debugLabel = "destinationDropIndexAtom";
627
- const Kt = w([]);
628
- Kt.debugLabel = "buildingBlocksAtom";
629
- const So = w((e) => {
630
- const t = e(Kt);
631
- return M(t, (s) => fe(s, "blockId"));
679
+ const jo = w("");
680
+ jo.debugLabel = "builderActivePageAtom";
681
+ const So = w(-1);
682
+ So.debugLabel = "destinationDropIndexAtom";
683
+ const Yt = w([]);
684
+ Yt.debugLabel = "buildingBlocksAtom";
685
+ const Ao = w((e) => {
686
+ const t = e(Yt);
687
+ return M(t, (s) => pe(s, "blockId"));
632
688
  });
633
- So.debugLabel = "globalBlocksAtom";
689
+ Ao.debugLabel = "globalBlocksAtom";
634
690
  const it = w([]);
635
691
  it.debugLabel = "selectedBlockIdsAtom";
636
692
  const lt = w((e) => {
637
- const t = e(be), s = e(it);
693
+ const t = e(ae), s = e(it);
638
694
  return R(
639
695
  M(t, ({ _id: o }) => q(s, o)),
640
696
  (o) => ({ ...o })
@@ -649,27 +705,27 @@ const ct = w((e) => {
649
705
  };
650
706
  });
651
707
  ct.debugLabel = "selectedBlockAtom";
652
- const Ao = (e) => F(e, "parent", null), Co = w((e) => {
653
- const t = e(lt), s = R(t, Ao);
654
- return M(e(be), (o) => q(s, o._id));
708
+ const Co = (e) => F(e, "parent", null), _o = w((e) => {
709
+ const t = e(lt), s = R(t, Co);
710
+ return M(e(ae), (o) => q(s, o._id));
655
711
  });
656
- Co.debugLabel = "selectedBlocksParentsAtom";
657
- const Jt = w(() => !1);
658
- Jt.debugLabel = "selectedBlockFlexChildAtom";
659
- const Yt = w(() => !1);
660
- Yt.debugLabel = "selectedBlockGridChildAtom";
712
+ _o.debugLabel = "selectedBlocksParentsAtom";
713
+ const Qt = w(() => !1);
714
+ Qt.debugLabel = "selectedBlockFlexChildAtom";
715
+ const Xt = w(() => !1);
716
+ Xt.debugLabel = "selectedBlockGridChildAtom";
661
717
  const dt = w("");
662
718
  dt.debugLabel = "styleStateAtom";
663
- const Qt = Re("styleBreakpoint", "xs");
664
- Qt.debugLabel = "styleBreakpointAtom";
665
- const Gr = () => ({
666
- flexChild: X(Jt),
667
- gridChild: X(Yt)
668
- }), Hr = () => X(ct);
719
+ const Zt = Be("styleBreakpoint", "xs");
720
+ Zt.debugLabel = "styleBreakpointAtom";
721
+ const $r = () => ({
722
+ flexChild: X(Qt),
723
+ gridChild: X(Xt)
724
+ }), Fr = () => X(ct);
669
725
  const Ve = () => {
670
726
  const [e, t] = D(it), s = L(
671
727
  (o) => {
672
- t((n) => q(n, o) ? Et(n, o) : [...n, o]);
728
+ t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
673
729
  },
674
730
  [t]
675
731
  );
@@ -737,41 +793,41 @@ const Ve = () => {
737
793
  default:
738
794
  return {};
739
795
  }
740
- }, Xt = (e) => {
796
+ }, es = (e) => {
741
797
  if (!e)
742
798
  return {};
743
799
  const t = {};
744
800
  return Object.keys(e).forEach((s) => {
745
- t[s] = Bo(e[s]);
801
+ t[s] = Ro(e[s]);
746
802
  }), t;
747
- }, _o = (e) => {
748
- if (_e(e.default))
803
+ }, Bo = (e) => {
804
+ if (Ee(e.default))
749
805
  return [];
750
806
  const { itemProperties: t } = e;
751
807
  return R(e.default, (s) => {
752
808
  const o = { ...s };
753
- return Ot(s, (n, i) => {
754
- fe(t, i) && F(t[i], "i18n", !1) && (o[i] = Vt);
809
+ return Lt(s, (n, i) => {
810
+ pe(t, i) && F(t[i], "i18n", !1) && (o[i] = Vt);
755
811
  }), o;
756
812
  });
757
- }, Bo = (e) => {
813
+ }, Ro = (e) => {
758
814
  switch (e.type) {
759
815
  case "styles":
760
816
  return e.default;
761
817
  case "slot":
762
- return `${qe}${le()}`;
818
+ return `${qe}${ce()}`;
763
819
  case "singular":
764
820
  const { i18n: t, schema: s } = e;
765
821
  return t ? Vt : F(s, "default", "");
766
822
  case "model":
767
- return Xt(e.properties);
823
+ return es(e.properties);
768
824
  case "list":
769
- return _o(e);
825
+ return Bo(e);
770
826
  default:
771
827
  return "";
772
828
  }
773
829
  };
774
- var ut = { exports: {} }, qr = ut.exports;
830
+ var ut = { exports: {} }, Ur = ut.exports;
775
831
  (function(e) {
776
832
  (function() {
777
833
  "use strict";
@@ -876,17 +932,16 @@ var ut = { exports: {} }, qr = ut.exports;
876
932
  e.exports ? e.exports = s : window.UndoManager = s;
877
933
  })();
878
934
  })(ut);
879
- var Ro = ut.exports;
880
- const To = /* @__PURE__ */ Us(Ro), Po = w(Ke), Io = w(null), Zt = () => {
881
- const [e, t] = D(Po);
935
+ var To = ut.exports;
936
+ const Po = /* @__PURE__ */ Fs(To), Io = w(Ke), Mo = w(null), ts = () => {
937
+ const [e, t] = D(Io);
882
938
  return [
883
- zs(e) ? { ...Ke, ...e } : Ke,
939
+ Ls(e) ? { ...Ke, ...e } : Ke,
884
940
  t
885
941
  ];
886
- }, Kr = () => D(Io), Mo = w(null), Do = () => ({ currentPage: X(Mo) }), es = new $t({});
887
- function Eo(e) {
888
- let t = es.convert(e);
889
- return t = !t.type && t.children && t.children.length ? t.children : _e(t) ? [] : [t], t;
942
+ }, Wr = () => D(Mo), Do = w(null), Eo = () => ({ currentPage: X(Do) });
943
+ function Oo(e) {
944
+ return Kt(e);
890
945
  }
891
946
  const mt = (e, t) => ne(
892
947
  e.map((s) => {
@@ -908,63 +963,62 @@ function ft(e, t = !1) {
908
963
  } : o.children && o.children.length && ft(o.children);
909
964
  }
910
965
  }
911
- function ts(e) {
966
+ function ss(e) {
912
967
  let t = [], s = M(e, { type: "GlobalBlock" });
913
- return s.length > 0 && (s = R(s, ss), de(s, (o) => {
914
- t = [...t, ...Oo(o)];
968
+ return s.length > 0 && (s = R(s, os), ue(s, (o) => {
969
+ t = [...t, ...Lo(o)];
915
970
  })), t;
916
971
  }
917
- function Oo(e) {
972
+ function Lo(e) {
918
973
  let t = [];
919
974
  const s = F(Q(e), "parent", null);
920
975
  je(Q(e), "parent", null);
921
- const o = [es.convert(os(e))];
976
+ const o = [flatToNestedInstance.convert(ns(e))];
922
977
  ft(o, !0);
923
978
  let n = mt(o, e[0]._id);
924
- return n = je(n, "0.parent", s), t = [...t, n, ...ts(n)], t;
979
+ return n = je(n, "0.parent", s), t = [...t, n, ...ss(n)], t;
925
980
  }
926
- function ss(e) {
981
+ function os(e) {
927
982
  const t = te(Qe, { _id: e._id });
928
983
  if (!t)
929
984
  return [];
930
985
  const s = [t], o = M(Qe, { _parent: e._id });
931
- return o.length ? ne([...s, ...ne(R(o, ss))]) : ne(s);
986
+ return o.length ? ne([...s, ...ne(R(o, os))]) : ne(s);
932
987
  }
933
- const os = (e) => JSON.parse(JSON.stringify(e));
988
+ const ns = (e) => JSON.parse(JSON.stringify(e));
934
989
  let Qe = [];
935
- function Lo(e) {
990
+ function zo(e) {
936
991
  Qe = e;
937
- const t = Eo(os(e));
992
+ const t = Oo(ns(e));
938
993
  ft(t);
939
- const s = mt(t, null), o = ts(s), n = {};
940
- return de(o, (i) => je(n, Q(i).blockId, i)), [s, n];
994
+ const s = mt(t, null), o = ss(s), n = {};
995
+ return ue(o, (i) => je(n, Q(i).blockId, i)), [s, n];
941
996
  }
942
- const zo = () => {
943
- const [e] = Zt(), { currentPage: t } = Do(), [s] = ye();
997
+ const Vo = () => {
998
+ const [e] = ts(), { currentPage: t } = Eo(), [s] = ye();
944
999
  return L(() => {
945
1000
  const o = R(
946
1001
  s,
947
- (r) => tt(r, ["expanded", "order", "title", "siblings", "tempClasses"])
948
- ), [n = [], i = []] = Lo(o);
1002
+ (i) => tt(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1003
+ ), [n = []] = zo(o);
949
1004
  return {
950
1005
  currentPage: t,
951
- blocks: n,
952
- globalBlocks: i
1006
+ blocks: n
953
1007
  };
954
1008
  }, [e, t, s]);
955
1009
  }, Ne = (e, t = void 0) => {
956
- const s = X(qt);
1010
+ const s = X(Ht);
957
1011
  return F(s, e, t);
958
- }, ns = w([]);
959
- ns.debugLabel = "dataProvidersAtom";
960
- const Vo = () => D(ns), pt = w("SAVED");
1012
+ }, as = w([]);
1013
+ as.debugLabel = "dataProvidersAtom";
1014
+ const $o = () => D(as), pt = w("SAVED");
961
1015
  pt.debugLabel = "pageSyncStateAtom";
962
- const Jr = () => {
1016
+ const Gr = () => {
963
1017
  const [e, t] = D(pt), s = Ne("onSavePage", async (l) => {
964
1018
  }), o = Ne("onSave", async (l) => {
965
1019
  }), n = Ne("onSyncStatusChange", (l) => {
966
- }), i = zo(), [r] = Vo(), [c] = Zt();
967
- return { savePage: Ws(
1020
+ }), i = Vo(), [r] = $o(), [c] = ts();
1021
+ return { savePage: Us(
968
1022
  async () => {
969
1023
  t("SAVING"), n("SAVING");
970
1024
  const l = i();
@@ -976,12 +1030,12 @@ const Jr = () => {
976
1030
  5e3
977
1031
  // save only every 5 seconds
978
1032
  ), syncState: e, setSyncState: t };
979
- }, se = new To();
1033
+ }, se = new Po();
980
1034
  se.setLimit(50);
981
- const as = () => {
1035
+ const rs = () => {
982
1036
  const [, e] = D(pt);
983
1037
  return Ae(() => (se.setCallback(() => e("UNSAVED")), () => {
984
- se.setCallback(Vs);
1038
+ se.setCallback(zs);
985
1039
  }), []), {
986
1040
  add: se.add,
987
1041
  undo: se.undo,
@@ -992,8 +1046,8 @@ const as = () => {
992
1046
  };
993
1047
  }, gt = (e, t) => {
994
1048
  const s = [], o = M(e, (n) => q(t, n._id) || q(t, n._parent) ? (s.push(n._id), !1) : !0);
995
- return _e(s) ? o : gt(o, s);
996
- }, Yr = () => {
1049
+ return Ee(s) ? o : gt(o, s);
1050
+ }, Hr = () => {
997
1051
  const [e] = ye(), [t, s] = Ve(), { setNewBlocks: o } = xe();
998
1052
  return L(
999
1053
  (n) => {
@@ -1004,7 +1058,7 @@ const as = () => {
1004
1058
  [e, s, t]
1005
1059
  );
1006
1060
  };
1007
- function $o(e, t, s, o) {
1061
+ function Fo(e, t, s, o) {
1008
1062
  let n = e.filter((c) => !c._parent);
1009
1063
  s && (n = e.filter((c) => c._parent === s));
1010
1064
  const i = o !== void 0 ? o : n.length;
@@ -1019,14 +1073,14 @@ function $o(e, t, s, o) {
1019
1073
  }
1020
1074
  return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
1021
1075
  }
1022
- const Fo = () => {
1076
+ const Uo = () => {
1023
1077
  const [, e] = ye();
1024
1078
  return {
1025
1079
  setNewBlocks: (t) => {
1026
1080
  e(t);
1027
1081
  },
1028
1082
  addBlocks: (t, s, o) => {
1029
- e((n) => $o(n, t, s, o));
1083
+ e((n) => Fo(n, t, s, o));
1030
1084
  },
1031
1085
  removeBlocks: (t) => {
1032
1086
  e((s) => gt(s, t));
@@ -1044,13 +1098,13 @@ const Fo = () => {
1044
1098
  });
1045
1099
  }
1046
1100
  };
1047
- }, ye = () => D(be), xe = () => {
1048
- const { add: e } = as(), [t] = ye(), {
1101
+ }, ye = () => D(ae), xe = () => {
1102
+ const { add: e } = rs(), [t] = ye(), {
1049
1103
  setNewBlocks: s,
1050
1104
  addBlocks: o,
1051
1105
  removeBlocks: n,
1052
1106
  updateBlocksProps: i
1053
- } = Fo();
1107
+ } = Uo();
1054
1108
  return {
1055
1109
  addBlocks: (x, N, k) => {
1056
1110
  o(x, N, k), e({
@@ -1071,10 +1125,10 @@ const Fo = () => {
1071
1125
  if (k)
1072
1126
  I = R(x, (O) => ({ _id: O, ...k }));
1073
1127
  else {
1074
- const O = $s(N);
1128
+ const O = Vs(N);
1075
1129
  I = R(x, (W) => {
1076
1130
  const G = t.find(($) => $._id === W), H = { _id: W };
1077
- return de(O, ($) => H[$] = G[$]), H;
1131
+ return ue(O, ($) => H[$] = G[$]), H;
1078
1132
  });
1079
1133
  }
1080
1134
  i(R(x, (O) => ({ _id: O, ...N }))), e({
@@ -1092,7 +1146,7 @@ const Fo = () => {
1092
1146
  });
1093
1147
  }
1094
1148
  };
1095
- }, Uo = pe(
1149
+ }, Wo = ge(
1096
1150
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1097
1151
  {
1098
1152
  variants: {
@@ -1111,9 +1165,9 @@ const Fo = () => {
1111
1165
  size: "default"
1112
1166
  }
1113
1167
  }
1114
- ), Wo = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: n, className: d(Uo({ variant: t, size: s, className: e })), ...o }));
1115
- Wo.displayName = Ft.Root.displayName;
1116
- const Go = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1168
+ ), Go = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: d(Wo({ variant: t, size: s, className: e })), ...o }));
1169
+ Go.displayName = $t.Root.displayName;
1170
+ const Ho = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1117
1171
  Je.Root,
1118
1172
  {
1119
1173
  className: d(
@@ -1132,8 +1186,8 @@ const Go = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1132
1186
  )
1133
1187
  }
1134
1188
  ));
1135
- Go.displayName = Je.Root.displayName;
1136
- const bt = pe(
1189
+ Ho.displayName = Je.Root.displayName;
1190
+ const bt = ge(
1137
1191
  "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
1138
1192
  {
1139
1193
  variants: {
@@ -1157,17 +1211,17 @@ const bt = pe(
1157
1211
  size: "default"
1158
1212
  }
1159
1213
  }
1160
- ), Ho = m.forwardRef(
1214
+ ), qo = m.forwardRef(
1161
1215
  ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
1162
- const r = o ? Gs : "button";
1216
+ const r = o ? Ws : "button";
1163
1217
  return /* @__PURE__ */ a.jsx(r, { className: d(bt({ variant: t, size: s, className: e })), ref: i, ...n });
1164
1218
  }
1165
1219
  );
1166
- Ho.displayName = "Button";
1167
- const Qr = me.Root, qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: d("border-b", e), ...t }));
1168
- qo.displayName = "AccordionItem";
1169
- const Ko = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1170
- me.Trigger,
1220
+ qo.displayName = "Button";
1221
+ const qr = fe.Root, Ko = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(fe.Item, { ref: s, className: d("border-b", e), ...t }));
1222
+ Ko.displayName = "AccordionItem";
1223
+ const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(fe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1224
+ fe.Trigger,
1171
1225
  {
1172
1226
  ref: o,
1173
1227
  className: d(
@@ -1177,13 +1231,13 @@ const Ko = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1177
1231
  ...s,
1178
1232
  children: [
1179
1233
  t,
1180
- /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1234
+ /* @__PURE__ */ a.jsx(Gs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1181
1235
  ]
1182
1236
  }
1183
1237
  ) }));
1184
- Ko.displayName = me.Trigger.displayName;
1185
- const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1186
- me.Content,
1238
+ Jo.displayName = fe.Trigger.displayName;
1239
+ const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1240
+ fe.Content,
1187
1241
  {
1188
1242
  ref: o,
1189
1243
  className: d(
@@ -1194,8 +1248,8 @@ const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1194
1248
  children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1195
1249
  }
1196
1250
  ));
1197
- Jo.displayName = me.Content.displayName;
1198
- const Yo = pe(
1251
+ Yo.displayName = fe.Content.displayName;
1252
+ const Qo = ge(
1199
1253
  "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1200
1254
  {
1201
1255
  variants: {
@@ -1208,17 +1262,17 @@ const Yo = pe(
1208
1262
  variant: "default"
1209
1263
  }
1210
1264
  }
1211
- ), Qo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Yo({ variant: t }), e), ...s }));
1212
- Qo.displayName = "Alert";
1213
- const Xo = m.forwardRef(
1265
+ ), Xo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Qo({ variant: t }), e), ...s }));
1266
+ Xo.displayName = "Alert";
1267
+ const Zo = m.forwardRef(
1214
1268
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
1215
1269
  );
1216
- Xo.displayName = "AlertTitle";
1217
- const Zo = m.forwardRef(
1270
+ Zo.displayName = "AlertTitle";
1271
+ const en = m.forwardRef(
1218
1272
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
1219
1273
  );
1220
- Zo.displayName = "AlertDescription";
1221
- const en = pe(
1274
+ en.displayName = "AlertDescription";
1275
+ const tn = ge(
1222
1276
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
1223
1277
  {
1224
1278
  variants: {
@@ -1233,9 +1287,9 @@ const en = pe(
1233
1287
  variant: "default"
1234
1288
  }
1235
1289
  }
1236
- ), Xr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(en({ variant: t }), e), ...s }), Zr = U.Root, ei = U.Trigger, rs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(U.Portal, { className: d(e), ...t });
1237
- rs.displayName = U.Portal.displayName;
1238
- const is = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1290
+ ), Kr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(tn({ variant: t }), e), ...s }), Jr = U.Root, Yr = U.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(U.Portal, { className: d(e), ...t });
1291
+ is.displayName = U.Portal.displayName;
1292
+ const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1239
1293
  U.Overlay,
1240
1294
  {
1241
1295
  className: d(
@@ -1246,9 +1300,9 @@ const is = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1246
1300
  ref: s
1247
1301
  }
1248
1302
  ));
1249
- is.displayName = U.Overlay.displayName;
1250
- const tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(rs, { children: [
1251
- /* @__PURE__ */ a.jsx(is, {}),
1303
+ ls.displayName = U.Overlay.displayName;
1304
+ const sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
1305
+ /* @__PURE__ */ a.jsx(ls, {}),
1252
1306
  /* @__PURE__ */ a.jsx(
1253
1307
  U.Content,
1254
1308
  {
@@ -1261,18 +1315,18 @@ const tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(rs
1261
1315
  }
1262
1316
  )
1263
1317
  ] }));
1264
- tn.displayName = U.Content.displayName;
1265
- const sn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1266
- sn.displayName = "AlertDialogHeader";
1267
- const on = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1268
- on.displayName = "AlertDialogFooter";
1269
- const nn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1270
- nn.displayName = U.Title.displayName;
1271
- const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1272
- an.displayName = U.Description.displayName;
1273
- const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(bt(), e), ...t }));
1274
- rn.displayName = U.Action.displayName;
1275
- const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1318
+ sn.displayName = U.Content.displayName;
1319
+ const on = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1320
+ on.displayName = "AlertDialogHeader";
1321
+ const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1322
+ nn.displayName = "AlertDialogFooter";
1323
+ const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1324
+ an.displayName = U.Title.displayName;
1325
+ const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1326
+ rn.displayName = U.Description.displayName;
1327
+ const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(bt(), e), ...t }));
1328
+ ln.displayName = U.Action.displayName;
1329
+ const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1276
1330
  U.Cancel,
1277
1331
  {
1278
1332
  ref: s,
@@ -1280,10 +1334,10 @@ const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1280
1334
  ...t
1281
1335
  }
1282
1336
  ));
1283
- ln.displayName = U.Cancel.displayName;
1284
- const ls = B.Root, cn = B.Trigger, cs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1285
- cs.displayName = B.Portal.displayName;
1286
- const ds = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1337
+ cn.displayName = U.Cancel.displayName;
1338
+ const cs = B.Root, dn = B.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1339
+ ds.displayName = B.Portal.displayName;
1340
+ const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1287
1341
  B.Overlay,
1288
1342
  {
1289
1343
  ref: s,
@@ -1294,9 +1348,9 @@ const ds = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1294
1348
  ...t
1295
1349
  }
1296
1350
  ));
1297
- ds.displayName = B.Overlay.displayName;
1298
- const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(cs, { children: [
1299
- /* @__PURE__ */ a.jsx(ds, {}),
1351
+ us.displayName = B.Overlay.displayName;
1352
+ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ds, { children: [
1353
+ /* @__PURE__ */ a.jsx(us, {}),
1300
1354
  /* @__PURE__ */ a.jsxs(
1301
1355
  B.Content,
1302
1356
  {
@@ -1317,11 +1371,11 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1317
1371
  )
1318
1372
  ] }));
1319
1373
  xt.displayName = B.Content.displayName;
1320
- const dn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1321
- dn.displayName = "DialogHeader";
1322
- const un = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1323
- un.displayName = "DialogFooter";
1324
- const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1374
+ const un = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1375
+ un.displayName = "DialogHeader";
1376
+ const mn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1377
+ mn.displayName = "DialogFooter";
1378
+ const fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1325
1379
  B.Title,
1326
1380
  {
1327
1381
  ref: s,
@@ -1329,32 +1383,32 @@ const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1329
1383
  ...t
1330
1384
  }
1331
1385
  ));
1332
- mn.displayName = B.Title.displayName;
1333
- const fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1334
- fn.displayName = B.Description.displayName;
1335
- const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1336
- pn.displayName = "Card";
1337
- const gn = m.forwardRef(
1386
+ fn.displayName = B.Title.displayName;
1387
+ const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1388
+ pn.displayName = B.Description.displayName;
1389
+ const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1390
+ gn.displayName = "Card";
1391
+ const bn = m.forwardRef(
1338
1392
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
1339
1393
  );
1340
- gn.displayName = "CardHeader";
1341
- const bn = m.forwardRef(
1394
+ bn.displayName = "CardHeader";
1395
+ const xn = m.forwardRef(
1342
1396
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
1343
1397
  );
1344
- bn.displayName = "CardTitle";
1345
- const xn = m.forwardRef(
1398
+ xn.displayName = "CardTitle";
1399
+ const hn = m.forwardRef(
1346
1400
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
1347
1401
  );
1348
- xn.displayName = "CardDescription";
1349
- const hn = m.forwardRef(
1402
+ hn.displayName = "CardDescription";
1403
+ const vn = m.forwardRef(
1350
1404
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
1351
1405
  );
1352
- hn.displayName = "CardContent";
1353
- const vn = m.forwardRef(
1406
+ vn.displayName = "CardContent";
1407
+ const yn = m.forwardRef(
1354
1408
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
1355
1409
  );
1356
- vn.displayName = "CardFooter";
1357
- const yn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1410
+ yn.displayName = "CardFooter";
1411
+ const wn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1358
1412
  "input",
1359
1413
  {
1360
1414
  type: t,
@@ -1366,10 +1420,10 @@ const yn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
1366
1420
  ...s
1367
1421
  }
1368
1422
  ));
1369
- yn.displayName = "Input";
1370
- const wn = pe("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Nn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ut.Root, { ref: s, className: d(wn(), e), ...t }));
1371
- Nn.displayName = Ut.Root.displayName;
1372
- const kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1423
+ wn.displayName = "Input";
1424
+ const Nn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: d(Nn(), e), ...t }));
1425
+ kn.displayName = Ft.Root.displayName;
1426
+ const jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1373
1427
  "textarea",
1374
1428
  {
1375
1429
  className: d(
@@ -1380,15 +1434,15 @@ const kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1380
1434
  ...t
1381
1435
  }
1382
1436
  ));
1383
- kn.displayName = "Textarea";
1384
- const jn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ce.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1385
- /* @__PURE__ */ a.jsx(ce.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1386
- /* @__PURE__ */ a.jsx(us, {}),
1387
- /* @__PURE__ */ a.jsx(ce.Corner, {})
1437
+ jn.displayName = "Textarea";
1438
+ const Sn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(de.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1439
+ /* @__PURE__ */ a.jsx(de.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1440
+ /* @__PURE__ */ a.jsx(ms, {}),
1441
+ /* @__PURE__ */ a.jsx(de.Corner, {})
1388
1442
  ] }));
1389
- jn.displayName = ce.Root.displayName;
1390
- const us = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1391
- ce.ScrollAreaScrollbar,
1443
+ Sn.displayName = de.Root.displayName;
1444
+ const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1445
+ de.ScrollAreaScrollbar,
1392
1446
  {
1393
1447
  ref: o,
1394
1448
  orientation: t,
@@ -1399,12 +1453,12 @@ const us = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
1399
1453
  e
1400
1454
  ),
1401
1455
  ...s,
1402
- children: /* @__PURE__ */ a.jsx(ce.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1456
+ children: /* @__PURE__ */ a.jsx(de.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1403
1457
  }
1404
1458
  ));
1405
- us.displayName = ce.ScrollAreaScrollbar.displayName;
1406
- const Sn = ge.Root, ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1407
- ge.List,
1459
+ ms.displayName = de.ScrollAreaScrollbar.displayName;
1460
+ const An = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1461
+ be.List,
1408
1462
  {
1409
1463
  ref: s,
1410
1464
  className: d(
@@ -1414,9 +1468,9 @@ const Sn = ge.Root, ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
1414
1468
  ...t
1415
1469
  }
1416
1470
  ));
1417
- ms.displayName = ge.List.displayName;
1471
+ fs.displayName = be.List.displayName;
1418
1472
  const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1419
- ge.Trigger,
1473
+ be.Trigger,
1420
1474
  {
1421
1475
  ref: s,
1422
1476
  className: d(
@@ -1426,9 +1480,9 @@ const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1426
1480
  ...t
1427
1481
  }
1428
1482
  ));
1429
- Xe.displayName = ge.Trigger.displayName;
1483
+ Xe.displayName = be.Trigger.displayName;
1430
1484
  const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1431
- ge.Content,
1485
+ be.Content,
1432
1486
  {
1433
1487
  ref: s,
1434
1488
  className: d(
@@ -1438,8 +1492,8 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1438
1492
  ...t
1439
1493
  }
1440
1494
  ));
1441
- Ze.displayName = ge.Content.displayName;
1442
- const ti = ve.Portal, si = ve.Provider, oi = ve.Root, ni = ve.Trigger, An = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1495
+ Ze.displayName = be.Content.displayName;
1496
+ const Qr = ve.Portal, Xr = ve.Provider, Zr = ve.Root, ei = ve.Trigger, Cn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1443
1497
  ve.Content,
1444
1498
  {
1445
1499
  ref: o,
@@ -1451,8 +1505,8 @@ const ti = ve.Portal, si = ve.Provider, oi = ve.Root, ni = ve.Trigger, An = m.fo
1451
1505
  ...s
1452
1506
  }
1453
1507
  ));
1454
- An.displayName = ve.Content.displayName;
1455
- const ai = Se.Root, ri = Se.Trigger, Cn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1508
+ Cn.displayName = ve.Content.displayName;
1509
+ const ti = Se.Root, si = Se.Trigger, _n = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1456
1510
  Se.Content,
1457
1511
  {
1458
1512
  ref: n,
@@ -1465,8 +1519,8 @@ const ai = Se.Root, ri = Se.Trigger, Cn = m.forwardRef(({ className: e, align: t
1465
1519
  ...o
1466
1520
  }
1467
1521
  ) }));
1468
- Cn.displayName = Se.Content.displayName;
1469
- const ii = C.Menu, li = C.Group, ci = C.Portal, di = C.Sub, ui = C.RadioGroup, _n = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1522
+ _n.displayName = Se.Content.displayName;
1523
+ const oi = C.Menu, ni = C.Group, ai = C.Portal, ri = C.Sub, ii = C.RadioGroup, Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1470
1524
  C.Root,
1471
1525
  {
1472
1526
  ref: s,
@@ -1474,8 +1528,8 @@ const ii = C.Menu, li = C.Group, ci = C.Portal, di = C.Sub, ui = C.RadioGroup, _
1474
1528
  ...t
1475
1529
  }
1476
1530
  ));
1477
- _n.displayName = C.Root.displayName;
1478
- const Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1531
+ Bn.displayName = C.Root.displayName;
1532
+ const Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1479
1533
  C.Trigger,
1480
1534
  {
1481
1535
  ref: s,
@@ -1486,8 +1540,8 @@ const Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1486
1540
  ...t
1487
1541
  }
1488
1542
  ));
1489
- Bn.displayName = C.Trigger.displayName;
1490
- const Rn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1543
+ Rn.displayName = C.Trigger.displayName;
1544
+ const Tn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1491
1545
  C.SubTrigger,
1492
1546
  {
1493
1547
  ref: n,
@@ -1503,8 +1557,8 @@ const Rn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
1503
1557
  ]
1504
1558
  }
1505
1559
  ));
1506
- Rn.displayName = C.SubTrigger.displayName;
1507
- const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1560
+ Tn.displayName = C.SubTrigger.displayName;
1561
+ const Pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1508
1562
  C.SubContent,
1509
1563
  {
1510
1564
  ref: s,
@@ -1515,8 +1569,8 @@ const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1515
1569
  ...t
1516
1570
  }
1517
1571
  ));
1518
- Tn.displayName = C.SubContent.displayName;
1519
- const Pn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1572
+ Pn.displayName = C.SubContent.displayName;
1573
+ const In = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1520
1574
  C.Content,
1521
1575
  {
1522
1576
  ref: i,
@@ -1530,8 +1584,8 @@ const Pn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
1530
1584
  ...n
1531
1585
  }
1532
1586
  ) }));
1533
- Pn.displayName = C.Content.displayName;
1534
- const In = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1587
+ In.displayName = C.Content.displayName;
1588
+ const Mn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1535
1589
  C.Item,
1536
1590
  {
1537
1591
  ref: o,
@@ -1543,8 +1597,8 @@ const In = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1543
1597
  ...s
1544
1598
  }
1545
1599
  ));
1546
- In.displayName = C.Item.displayName;
1547
- const Mn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1600
+ Mn.displayName = C.Item.displayName;
1601
+ const Dn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1548
1602
  C.CheckboxItem,
1549
1603
  {
1550
1604
  ref: n,
@@ -1560,8 +1614,8 @@ const Mn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1560
1614
  ]
1561
1615
  }
1562
1616
  ));
1563
- Mn.displayName = C.CheckboxItem.displayName;
1564
- const Dn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1617
+ Dn.displayName = C.CheckboxItem.displayName;
1618
+ const En = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1565
1619
  C.RadioItem,
1566
1620
  {
1567
1621
  ref: o,
@@ -1576,8 +1630,8 @@ const Dn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1576
1630
  ]
1577
1631
  }
1578
1632
  ));
1579
- Dn.displayName = C.RadioItem.displayName;
1580
- const En = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1633
+ En.displayName = C.RadioItem.displayName;
1634
+ const On = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1581
1635
  C.Label,
1582
1636
  {
1583
1637
  ref: o,
@@ -1585,12 +1639,12 @@ const En = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1585
1639
  ...s
1586
1640
  }
1587
1641
  ));
1588
- En.displayName = C.Label.displayName;
1589
- const On = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1590
- On.displayName = C.Separator.displayName;
1591
- const Ln = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1592
- Ln.displayname = "MenubarShortcut";
1593
- const mi = ze.Root, fi = ze.Trigger, zn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1642
+ On.displayName = C.Label.displayName;
1643
+ const Ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1644
+ Ln.displayName = C.Separator.displayName;
1645
+ const zn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1646
+ zn.displayname = "MenubarShortcut";
1647
+ const li = ze.Root, ci = ze.Trigger, Vn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1594
1648
  ze.Content,
1595
1649
  {
1596
1650
  ref: n,
@@ -1603,8 +1657,8 @@ const mi = ze.Root, fi = ze.Trigger, zn = m.forwardRef(({ className: e, align: t
1603
1657
  ...o
1604
1658
  }
1605
1659
  ));
1606
- zn.displayName = ze.Content.displayName;
1607
- const pi = z.Root, gi = z.Group, bi = z.Value, Vn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1660
+ Vn.displayName = ze.Content.displayName;
1661
+ const di = z.Root, ui = z.Group, mi = z.Value, $n = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1608
1662
  z.Trigger,
1609
1663
  {
1610
1664
  ref: o,
@@ -1615,12 +1669,12 @@ const pi = z.Root, gi = z.Group, bi = z.Value, Vn = m.forwardRef(({ className: e
1615
1669
  ...s,
1616
1670
  children: [
1617
1671
  t,
1618
- /* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(qs, { className: "h-4 w-4 opacity-50" }) })
1672
+ /* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
1619
1673
  ]
1620
1674
  }
1621
1675
  ));
1622
- Vn.displayName = z.Trigger.displayName;
1623
- const $n = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(z.Portal, { children: /* @__PURE__ */ a.jsx(
1676
+ $n.displayName = z.Trigger.displayName;
1677
+ const Fn = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(z.Portal, { children: /* @__PURE__ */ a.jsx(
1624
1678
  z.Content,
1625
1679
  {
1626
1680
  ref: n,
@@ -1643,10 +1697,10 @@ const $n = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
1643
1697
  )
1644
1698
  }
1645
1699
  ) }));
1646
- $n.displayName = z.Content.displayName;
1647
- const Fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
1648
- Fn.displayName = z.Label.displayName;
1649
- const Un = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1700
+ Fn.displayName = z.Content.displayName;
1701
+ const Un = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
1702
+ Un.displayName = z.Label.displayName;
1703
+ const Wn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1650
1704
  z.Item,
1651
1705
  {
1652
1706
  ref: o,
@@ -1661,12 +1715,12 @@ const Un = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1661
1715
  ]
1662
1716
  }
1663
1717
  ));
1664
- Un.displayName = z.Item.displayName;
1665
- const Wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1666
- Wn.displayName = z.Separator.displayName;
1667
- const xi = B.Root, hi = B.Trigger, vi = B.Close, fs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1668
- fs.displayName = B.Portal.displayName;
1669
- const ps = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1718
+ Wn.displayName = z.Item.displayName;
1719
+ const Gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1720
+ Gn.displayName = z.Separator.displayName;
1721
+ const fi = B.Root, pi = B.Trigger, gi = B.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1722
+ ps.displayName = B.Portal.displayName;
1723
+ const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1670
1724
  B.Overlay,
1671
1725
  {
1672
1726
  className: d(
@@ -1677,8 +1731,8 @@ const ps = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1677
1731
  ref: s
1678
1732
  }
1679
1733
  ));
1680
- ps.displayName = B.Overlay.displayName;
1681
- const Gn = pe(
1734
+ gs.displayName = B.Overlay.displayName;
1735
+ const Hn = ge(
1682
1736
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1683
1737
  {
1684
1738
  variants: {
@@ -1693,10 +1747,10 @@ const Gn = pe(
1693
1747
  side: "right"
1694
1748
  }
1695
1749
  }
1696
- ), Hn = m.forwardRef(
1697
- ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(fs, { children: [
1698
- /* @__PURE__ */ a.jsx(ps, {}),
1699
- /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: d(Gn({ side: e }), t), ...o, children: [
1750
+ ), qn = m.forwardRef(
1751
+ ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(ps, { children: [
1752
+ /* @__PURE__ */ a.jsx(gs, {}),
1753
+ /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: d(Hn({ side: e }), t), ...o, children: [
1700
1754
  s,
1701
1755
  /* @__PURE__ */ a.jsxs(B.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
1702
1756
  /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
@@ -1705,16 +1759,16 @@ const Gn = pe(
1705
1759
  ] })
1706
1760
  ] })
1707
1761
  );
1708
- Hn.displayName = B.Content.displayName;
1709
- const qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1710
- qn.displayName = "SheetHeader";
1711
- const Kn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1712
- Kn.displayName = "SheetFooter";
1713
- const Jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1714
- Jn.displayName = B.Title.displayName;
1715
- const Yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1716
- Yn.displayName = B.Description.displayName;
1717
- const yi = T.Root, wi = T.Trigger, Ni = T.Group, ki = T.Portal, ji = T.Sub, Si = T.RadioGroup, Qn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1762
+ qn.displayName = B.Content.displayName;
1763
+ const Kn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1764
+ Kn.displayName = "SheetHeader";
1765
+ const Jn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1766
+ Jn.displayName = "SheetFooter";
1767
+ const Yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1768
+ Yn.displayName = B.Title.displayName;
1769
+ const Qn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1770
+ Qn.displayName = B.Description.displayName;
1771
+ const bi = T.Root, xi = T.Trigger, hi = T.Group, vi = T.Portal, yi = T.Sub, wi = T.RadioGroup, Xn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1718
1772
  T.SubTrigger,
1719
1773
  {
1720
1774
  ref: n,
@@ -1730,8 +1784,8 @@ const yi = T.Root, wi = T.Trigger, Ni = T.Group, ki = T.Portal, ji = T.Sub, Si =
1730
1784
  ]
1731
1785
  }
1732
1786
  ));
1733
- Qn.displayName = T.SubTrigger.displayName;
1734
- const Xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1787
+ Xn.displayName = T.SubTrigger.displayName;
1788
+ const Zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1735
1789
  T.SubContent,
1736
1790
  {
1737
1791
  ref: s,
@@ -1742,8 +1796,8 @@ const Xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1742
1796
  ...t
1743
1797
  }
1744
1798
  ));
1745
- Xn.displayName = T.SubContent.displayName;
1746
- const Zn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
1799
+ Zn.displayName = T.SubContent.displayName;
1800
+ const ea = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
1747
1801
  T.Content,
1748
1802
  {
1749
1803
  ref: o,
@@ -1756,8 +1810,8 @@ const Zn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
1756
1810
  ...s
1757
1811
  }
1758
1812
  ) }));
1759
- Zn.displayName = T.Content.displayName;
1760
- const ea = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1813
+ ea.displayName = T.Content.displayName;
1814
+ const ta = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1761
1815
  T.Item,
1762
1816
  {
1763
1817
  ref: o,
@@ -1769,8 +1823,8 @@ const ea = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1769
1823
  ...s
1770
1824
  }
1771
1825
  ));
1772
- ea.displayName = T.Item.displayName;
1773
- const ta = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1826
+ ta.displayName = T.Item.displayName;
1827
+ const sa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1774
1828
  T.CheckboxItem,
1775
1829
  {
1776
1830
  ref: n,
@@ -1786,8 +1840,8 @@ const ta = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1786
1840
  ]
1787
1841
  }
1788
1842
  ));
1789
- ta.displayName = T.CheckboxItem.displayName;
1790
- const sa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1843
+ sa.displayName = T.CheckboxItem.displayName;
1844
+ const oa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1791
1845
  T.RadioItem,
1792
1846
  {
1793
1847
  ref: o,
@@ -1802,8 +1856,8 @@ const sa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1802
1856
  ]
1803
1857
  }
1804
1858
  ));
1805
- sa.displayName = T.RadioItem.displayName;
1806
- const oa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1859
+ oa.displayName = T.RadioItem.displayName;
1860
+ const na = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1807
1861
  T.Label,
1808
1862
  {
1809
1863
  ref: o,
@@ -1811,13 +1865,13 @@ const oa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1811
1865
  ...s
1812
1866
  }
1813
1867
  ));
1814
- oa.displayName = T.Label.displayName;
1815
- const na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1816
- na.displayName = T.Separator.displayName;
1817
- const aa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1818
- aa.displayName = "DropdownMenuShortcut";
1819
- const ra = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1820
- Wt.Root,
1868
+ na.displayName = T.Label.displayName;
1869
+ const aa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1870
+ aa.displayName = T.Separator.displayName;
1871
+ const ra = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1872
+ ra.displayName = "DropdownMenuShortcut";
1873
+ const ia = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1874
+ Ut.Root,
1821
1875
  {
1822
1876
  ref: n,
1823
1877
  decorative: s,
@@ -1826,10 +1880,10 @@ const ra = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
1826
1880
  ...o
1827
1881
  }
1828
1882
  ));
1829
- ra.displayName = Wt.Root.displayName;
1830
- const ia = 1, la = 1e6;
1883
+ ia.displayName = Ut.Root.displayName;
1884
+ const la = 1, ca = 1e6;
1831
1885
  let We = 0;
1832
- function ca() {
1886
+ function da() {
1833
1887
  return We = (We + 1) % Number.MAX_VALUE, We.toString();
1834
1888
  }
1835
1889
  const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
@@ -1840,14 +1894,14 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1840
1894
  type: "REMOVE_TOAST",
1841
1895
  toastId: e
1842
1896
  });
1843
- }, la);
1897
+ }, ca);
1844
1898
  Ge.set(e, t);
1845
- }, da = (e, t) => {
1899
+ }, ua = (e, t) => {
1846
1900
  switch (t.type) {
1847
1901
  case "ADD_TOAST":
1848
1902
  return {
1849
1903
  ...e,
1850
- toasts: [t.toast, ...e.toasts].slice(0, ia)
1904
+ toasts: [t.toast, ...e.toasts].slice(0, la)
1851
1905
  };
1852
1906
  case "UPDATE_TOAST":
1853
1907
  return {
@@ -1877,15 +1931,15 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1877
1931
  toasts: e.toasts.filter((s) => s.id !== t.toastId)
1878
1932
  };
1879
1933
  }
1880
- }, Me = [];
1881
- let De = { toasts: [] };
1934
+ }, Ie = [];
1935
+ let Me = { toasts: [] };
1882
1936
  function ke(e) {
1883
- De = da(De, e), Me.forEach((t) => {
1884
- t(De);
1937
+ Me = ua(Me, e), Ie.forEach((t) => {
1938
+ t(Me);
1885
1939
  });
1886
1940
  }
1887
- function ua({ ...e }) {
1888
- const t = ca(), s = (n) => ke({
1941
+ function ma({ ...e }) {
1942
+ const t = da(), s = (n) => ke({
1889
1943
  type: "UPDATE_TOAST",
1890
1944
  toast: { ...n, id: t }
1891
1945
  }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
@@ -1905,18 +1959,18 @@ function ua({ ...e }) {
1905
1959
  update: s
1906
1960
  };
1907
1961
  }
1908
- function gs() {
1909
- const [e, t] = m.useState(De);
1910
- return m.useEffect(() => (Me.push(t), () => {
1911
- const s = Me.indexOf(t);
1912
- s > -1 && Me.splice(s, 1);
1962
+ function bs() {
1963
+ const [e, t] = m.useState(Me);
1964
+ return m.useEffect(() => (Ie.push(t), () => {
1965
+ const s = Ie.indexOf(t);
1966
+ s > -1 && Ie.splice(s, 1);
1913
1967
  }), [e]), {
1914
1968
  ...e,
1915
- toast: ua,
1969
+ toast: ma,
1916
1970
  dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
1917
1971
  };
1918
1972
  }
1919
- const ma = Y.Provider, bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1973
+ const fa = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1920
1974
  Y.Viewport,
1921
1975
  {
1922
1976
  ref: s,
@@ -1927,8 +1981,8 @@ const ma = Y.Provider, bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
1927
1981
  ...t
1928
1982
  }
1929
1983
  ));
1930
- bs.displayName = Y.Viewport.displayName;
1931
- const fa = pe(
1984
+ xs.displayName = Y.Viewport.displayName;
1985
+ const pa = ge(
1932
1986
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1933
1987
  {
1934
1988
  variants: {
@@ -1941,9 +1995,9 @@ const fa = pe(
1941
1995
  variant: "default"
1942
1996
  }
1943
1997
  }
1944
- ), xs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Y.Root, { ref: o, className: d(fa({ variant: t }), e), ...s }));
1945
- xs.displayName = Y.Root.displayName;
1946
- const pa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1998
+ ), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Y.Root, { ref: o, className: d(pa({ variant: t }), e), ...s }));
1999
+ hs.displayName = Y.Root.displayName;
2000
+ const ga = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1947
2001
  Y.Action,
1948
2002
  {
1949
2003
  ref: s,
@@ -1954,8 +2008,8 @@ const pa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1954
2008
  ...t
1955
2009
  }
1956
2010
  ));
1957
- pa.displayName = Y.Action.displayName;
1958
- const hs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2011
+ ga.displayName = Y.Action.displayName;
2012
+ const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1959
2013
  Y.Close,
1960
2014
  {
1961
2015
  ref: s,
@@ -1968,26 +2022,26 @@ const hs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1968
2022
  children: /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" })
1969
2023
  }
1970
2024
  ));
1971
- hs.displayName = Y.Close.displayName;
1972
- const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
1973
- vs.displayName = Y.Title.displayName;
1974
- const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
1975
- ys.displayName = Y.Description.displayName;
1976
- function Ai() {
1977
- const { toasts: e } = gs();
1978
- return /* @__PURE__ */ a.jsxs(ma, { children: [
1979
- e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(xs, { ...i, children: [
2025
+ vs.displayName = Y.Close.displayName;
2026
+ const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2027
+ ys.displayName = Y.Title.displayName;
2028
+ const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
2029
+ ws.displayName = Y.Description.displayName;
2030
+ function Ni() {
2031
+ const { toasts: e } = bs();
2032
+ return /* @__PURE__ */ a.jsxs(fa, { children: [
2033
+ e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(hs, { ...i, children: [
1980
2034
  /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
1981
- s && /* @__PURE__ */ a.jsx(vs, { children: s }),
1982
- o && /* @__PURE__ */ a.jsx(ys, { children: o })
2035
+ s && /* @__PURE__ */ a.jsx(ys, { children: s }),
2036
+ o && /* @__PURE__ */ a.jsx(ws, { children: o })
1983
2037
  ] }),
1984
2038
  n,
1985
- /* @__PURE__ */ a.jsx(hs, {})
2039
+ /* @__PURE__ */ a.jsx(vs, {})
1986
2040
  ] }, t)),
1987
- /* @__PURE__ */ a.jsx(bs, {})
2041
+ /* @__PURE__ */ a.jsx(xs, {})
1988
2042
  ] });
1989
2043
  }
1990
- const Ci = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2044
+ const ki = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1991
2045
  K,
1992
2046
  {
1993
2047
  ref: s,
@@ -1998,9 +2052,9 @@ const Ci = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
1998
2052
  ...t
1999
2053
  }
2000
2054
  ));
2001
- ws.displayName = K.displayName;
2002
- const _i = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ls, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(ws, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), ga = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2003
- /* @__PURE__ */ a.jsx(Ks, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2055
+ Ns.displayName = K.displayName;
2056
+ const ji = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ns, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2057
+ /* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2004
2058
  /* @__PURE__ */ a.jsx(
2005
2059
  K.Input,
2006
2060
  {
@@ -2013,8 +2067,8 @@ const _i = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ls, { ...t, children
2013
2067
  }
2014
2068
  )
2015
2069
  ] }));
2016
- ga.displayName = K.Input.displayName;
2017
- const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2070
+ ba.displayName = K.Input.displayName;
2071
+ const xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2018
2072
  K.List,
2019
2073
  {
2020
2074
  ref: s,
@@ -2022,10 +2076,10 @@ const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2022
2076
  ...t
2023
2077
  }
2024
2078
  ));
2025
- ba.displayName = K.List.displayName;
2026
- const xa = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(K.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2027
- xa.displayName = K.Empty.displayName;
2028
- const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2079
+ xa.displayName = K.List.displayName;
2080
+ const ha = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(K.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2081
+ ha.displayName = K.Empty.displayName;
2082
+ const va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2029
2083
  K.Group,
2030
2084
  {
2031
2085
  ref: s,
@@ -2036,10 +2090,10 @@ const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2036
2090
  ...t
2037
2091
  }
2038
2092
  ));
2039
- ha.displayName = K.Group.displayName;
2040
- const va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(K.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2041
- va.displayName = K.Separator.displayName;
2042
- const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2093
+ va.displayName = K.Group.displayName;
2094
+ const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(K.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2095
+ ya.displayName = K.Separator.displayName;
2096
+ const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2043
2097
  K.Item,
2044
2098
  {
2045
2099
  ref: s,
@@ -2050,10 +2104,10 @@ const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2050
2104
  ...t
2051
2105
  }
2052
2106
  ));
2053
- ya.displayName = K.Item.displayName;
2054
- const wa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2055
- wa.displayName = "CommandShortcut";
2056
- const Bi = P.Root, Ri = P.Trigger, Ti = P.Group, Pi = P.Portal, Ii = P.Sub, Mi = P.RadioGroup, Na = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2107
+ wa.displayName = K.Item.displayName;
2108
+ const Na = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2109
+ Na.displayName = "CommandShortcut";
2110
+ const Si = P.Root, Ai = P.Trigger, Ci = P.Group, _i = P.Portal, Bi = P.Sub, Ri = P.RadioGroup, ka = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2057
2111
  P.SubTrigger,
2058
2112
  {
2059
2113
  ref: n,
@@ -2069,8 +2123,8 @@ const Bi = P.Root, Ri = P.Trigger, Ti = P.Group, Pi = P.Portal, Ii = P.Sub, Mi =
2069
2123
  ]
2070
2124
  }
2071
2125
  ));
2072
- Na.displayName = P.SubTrigger.displayName;
2073
- const ka = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2126
+ ka.displayName = P.SubTrigger.displayName;
2127
+ const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2074
2128
  P.SubContent,
2075
2129
  {
2076
2130
  ref: s,
@@ -2081,8 +2135,8 @@ const ka = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2081
2135
  ...t
2082
2136
  }
2083
2137
  ));
2084
- ka.displayName = P.SubContent.displayName;
2085
- const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2138
+ ja.displayName = P.SubContent.displayName;
2139
+ const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2086
2140
  P.Content,
2087
2141
  {
2088
2142
  ref: s,
@@ -2093,8 +2147,8 @@ const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.P
2093
2147
  ...t
2094
2148
  }
2095
2149
  ) }));
2096
- ja.displayName = P.Content.displayName;
2097
- const Sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2150
+ Sa.displayName = P.Content.displayName;
2151
+ const Aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2098
2152
  P.Item,
2099
2153
  {
2100
2154
  ref: o,
@@ -2106,8 +2160,8 @@ const Sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2106
2160
  ...s
2107
2161
  }
2108
2162
  ));
2109
- Sa.displayName = P.Item.displayName;
2110
- const Aa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2163
+ Aa.displayName = P.Item.displayName;
2164
+ const Ca = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2111
2165
  P.CheckboxItem,
2112
2166
  {
2113
2167
  ref: n,
@@ -2123,8 +2177,8 @@ const Aa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2123
2177
  ]
2124
2178
  }
2125
2179
  ));
2126
- Aa.displayName = P.CheckboxItem.displayName;
2127
- const Ca = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2180
+ Ca.displayName = P.CheckboxItem.displayName;
2181
+ const _a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2128
2182
  P.RadioItem,
2129
2183
  {
2130
2184
  ref: o,
@@ -2139,8 +2193,8 @@ const Ca = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2139
2193
  ]
2140
2194
  }
2141
2195
  ));
2142
- Ca.displayName = P.RadioItem.displayName;
2143
- const _a = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2196
+ _a.displayName = P.RadioItem.displayName;
2197
+ const Ba = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2144
2198
  P.Label,
2145
2199
  {
2146
2200
  ref: o,
@@ -2148,15 +2202,15 @@ const _a = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2148
2202
  ...s
2149
2203
  }
2150
2204
  ));
2151
- _a.displayName = P.Label.displayName;
2152
- const Ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
2153
- Ba.displayName = P.Separator.displayName;
2154
- const Ra = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2155
- Ra.displayName = "ContextMenuShortcut";
2156
- const Ta = (e) => {
2205
+ Ba.displayName = P.Label.displayName;
2206
+ const Ra = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
2207
+ Ra.displayName = P.Separator.displayName;
2208
+ const Ta = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2209
+ Ta.displayName = "ContextMenuShortcut";
2210
+ const Pa = (e) => {
2157
2211
  try {
2158
2212
  const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2159
- Qs.render(/* @__PURE__ */ a.jsx(Ys, { value: e }), s), t.appendChild(s), s.hidden = !0;
2213
+ Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
2160
2214
  let o = s.innerHTML;
2161
2215
  setTimeout(() => t.removeChild(s), 100);
2162
2216
  const i = new DOMParser().parseFromString(o, "image/svg+xml"), r = i.querySelector("svg");
@@ -2164,10 +2218,10 @@ const Ta = (e) => {
2164
2218
  } catch (t) {
2165
2219
  return console.error(t), "";
2166
2220
  }
2167
- }, Di = ({ value: e, onChange: t }) => {
2221
+ }, Ti = ({ value: e, onChange: t }) => {
2168
2222
  const s = (o) => {
2169
2223
  t("<svg />");
2170
- const n = Ta(o);
2224
+ const n = Pa(o);
2171
2225
  t(n);
2172
2226
  };
2173
2227
  return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
@@ -2182,7 +2236,7 @@ const Ta = (e) => {
2182
2236
  }
2183
2237
  ),
2184
2238
  /* @__PURE__ */ a.jsx(
2185
- Js,
2239
+ Ks,
2186
2240
  {
2187
2241
  value: e ? "BiSolidGrid" : null,
2188
2242
  onChange: s,
@@ -2218,7 +2272,7 @@ const Ta = (e) => {
2218
2272
  }
2219
2273
  )
2220
2274
  ] });
2221
- }, Pa = et.lazy(() => import("./UnsplashImages-5A21uzMK.js")), Ia = et.lazy(() => import("./UploadImages-V_54lCAO.js")), Ns = ({
2275
+ }, Ia = et.lazy(() => import("./UnsplashImages-1RFHZIte.js")), Ma = et.lazy(() => import("./UploadImages-G2orrhmZ.js")), ks = ({
2222
2276
  isModalView: e = !1,
2223
2277
  onSelect: t = () => {
2224
2278
  }
@@ -2226,29 +2280,29 @@ const Ta = (e) => {
2226
2280
  const [s, o] = Ce("upload");
2227
2281
  return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2228
2282
  /* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: /* @__PURE__ */ a.jsx("h1", { className: "px-1 font-semibold", children: e ? "Select or upload images" : "Images" }) }),
2229
- /* @__PURE__ */ a.jsxs(Sn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2230
- /* @__PURE__ */ a.jsxs(ms, { className: "w-full", children: [
2283
+ /* @__PURE__ */ a.jsxs(An, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2284
+ /* @__PURE__ */ a.jsxs(fs, { className: "w-full", children: [
2231
2285
  /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2232
2286
  /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2233
2287
  ] }),
2234
- s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Pa, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ia, { isModalView: e, onSelect: t }) }) })
2288
+ s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ia, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ma, { isModalView: e, onSelect: t }) }) })
2235
2289
  ] })
2236
2290
  ] });
2237
- }, Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2291
+ }, Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2238
2292
  __proto__: null,
2239
- default: Ns
2293
+ default: ks
2240
2294
  }, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
2241
2295
  const [s, o] = Ce(!1), n = (...i) => {
2242
2296
  t.call(void 0, ...i), o(!1);
2243
2297
  };
2244
- return /* @__PURE__ */ a.jsxs(ls, { open: s, onOpenChange: (i) => o(i), children: [
2245
- /* @__PURE__ */ a.jsx(cn, { asChild: !0, children: e }),
2246
- /* @__PURE__ */ a.jsx(xt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Ns, { isModalView: !0, onSelect: n }) }) })
2298
+ return /* @__PURE__ */ a.jsxs(cs, { open: s, onOpenChange: (i) => o(i), children: [
2299
+ /* @__PURE__ */ a.jsx(dn, { asChild: !0, children: e }),
2300
+ /* @__PURE__ */ a.jsx(xt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(ks, { isModalView: !0, onSelect: n }) }) })
2247
2301
  ] });
2248
- }, Oi = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2302
+ }, Ii = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2249
2303
  e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Tt, { onSelect: t, children: /* @__PURE__ */ a.jsx("div", { className: "h-20 w-20 cursor-pointer rounded-md border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px] hover:border-gray-400" }) }),
2250
2304
  /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2251
- /* @__PURE__ */ a.jsx(Tt, { onSelect: t, children: /* @__PURE__ */ a.jsx("small", { className: "cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700", children: e || !_e(e) ? "Replace Image" : "Choose Image" }) }),
2305
+ /* @__PURE__ */ a.jsx(Tt, { onSelect: t, children: /* @__PURE__ */ a.jsx("small", { className: "cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700", children: e || !Ee(e) ? "Replace Image" : "Choose Image" }) }),
2252
2306
  /* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
2253
2307
  /* @__PURE__ */ a.jsx(
2254
2308
  "input",
@@ -2262,7 +2316,7 @@ const Ta = (e) => {
2262
2316
  }
2263
2317
  )
2264
2318
  ] })
2265
- ] }), Li = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2319
+ ] }), Mi = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2266
2320
  const i = {
2267
2321
  toolbar: [
2268
2322
  ["bold", "italic", "underline", "strike", "blockquote"],
@@ -2286,7 +2340,7 @@ const Ta = (e) => {
2286
2340
  "image"
2287
2341
  ];
2288
2342
  return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
2289
- Xs,
2343
+ Qs,
2290
2344
  {
2291
2345
  id: e,
2292
2346
  value: s,
@@ -2298,7 +2352,7 @@ const Ta = (e) => {
2298
2352
  className: "mt-1 rounded-md"
2299
2353
  }
2300
2354
  );
2301
- }, zi = ({ schema: e, formData: t, onChange: s }) => {
2355
+ }, Di = ({ schema: e, formData: t, onChange: s }) => {
2302
2356
  const [o, n] = Ce([]), i = Ne("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
2303
2357
  return Ae(() => {
2304
2358
  (async () => {
@@ -2351,13 +2405,13 @@ const Ta = (e) => {
2351
2405
  ] })
2352
2406
  ] })
2353
2407
  ] });
2354
- }, Vi = () => {
2355
- const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = gs(), n = L(
2408
+ }, Ei = () => {
2409
+ const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = bs(), n = L(
2356
2410
  (r, c, p) => {
2357
2411
  var k;
2358
2412
  for (let I = 0; I < r.length; I++) {
2359
2413
  const { _id: O } = r[I];
2360
- r[I]._id = le();
2414
+ r[I]._id = ce();
2361
2415
  const W = M(r, { _parent: O });
2362
2416
  for (let G = 0; G < W.length; G++)
2363
2417
  W[G]._parent = r[I]._id;
@@ -2370,13 +2424,13 @@ const Ta = (e) => {
2370
2424
  );
2371
2425
  return { addCoreBlock: L(
2372
2426
  (r, c, p) => {
2373
- if (fe(r, "blocks")) {
2427
+ if (pe(r, "blocks")) {
2374
2428
  const G = r.blocks;
2375
2429
  return n(G, c, p);
2376
2430
  }
2377
- const l = le(), f = Xt(r.props), x = [];
2378
- Ot(f, (G, H) => {
2379
- if (Lt(G, qe)) {
2431
+ const l = ce(), f = es(r.props), x = [];
2432
+ Lt(f, (G, H) => {
2433
+ if (zt(G, qe)) {
2380
2434
  const $ = G.replace(qe, "");
2381
2435
  x.push({
2382
2436
  _id: $,
@@ -2394,7 +2448,7 @@ const Ta = (e) => {
2394
2448
  ...f
2395
2449
  };
2396
2450
  let k, I;
2397
- if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !No(k == null ? void 0 : k._type, r.type)) {
2451
+ if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !wo(k == null ? void 0 : k._type, r.type)) {
2398
2452
  o({
2399
2453
  variant: "destructive",
2400
2454
  title: "Error",
@@ -2416,7 +2470,7 @@ const Ta = (e) => {
2416
2470
  xl: 1280,
2417
2471
  "2xl": 1536
2418
2472
  }, It = ["xs", "sm", "md", "lg", "xl", "2xl"];
2419
- function Ma(e, t) {
2473
+ function Da(e, t) {
2420
2474
  if (t === null)
2421
2475
  return "baseClasses";
2422
2476
  const s = t.mq;
@@ -2437,23 +2491,23 @@ function Ma(e, t) {
2437
2491
  return o;
2438
2492
  }
2439
2493
  const Mt = [];
2440
- function Da(e = "", t = "", s = []) {
2494
+ function Ea(e = "", t = "", s = []) {
2441
2495
  e = e.trim().replace(/ +/g, "");
2442
2496
  let o = M(
2443
- R(e.split(" "), Ie),
2497
+ R(e.split(" "), Pe),
2444
2498
  (l) => !He(l)
2445
- ), n = M(R(t.split(" "), Ie), (l) => !He(l));
2499
+ ), n = M(R(t.split(" "), Pe), (l) => !He(l));
2446
2500
  n = M(
2447
2501
  n,
2448
2502
  (l) => !q(Mt, l.property)
2449
2503
  );
2450
2504
  const i = [], r = [];
2451
- de(s, (l) => {
2452
- const f = Ie(l), x = te(o, yt(f, ["dark", "mq", "mod", "property"]));
2505
+ ue(s, (l) => {
2506
+ const f = Pe(l), x = te(o, yt(f, ["dark", "mq", "mod", "property"]));
2453
2507
  if (x && (o = M(
2454
2508
  o,
2455
2509
  (N) => N.fullCls !== (x == null ? void 0 : x.fullCls)
2456
- )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.property)), Ma(o, f) === "baseClasses" && !q(Mt, f.property)) {
2510
+ )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.property)), Da(o, f) === "baseClasses" && !q(Mt, f.property)) {
2457
2511
  const N = te(n, yt(f, ["property"]));
2458
2512
  x && (n = M(
2459
2513
  n,
@@ -2474,28 +2528,28 @@ function Da(e = "", t = "", s = []) {
2474
2528
  "fullCls"
2475
2529
  ).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
2476
2530
  }
2477
- const Te = w([]);
2478
- Te.debugLabel = "selectedStylingBlocksAtom";
2479
- const Ea = () => D(Te), Oa = (e) => {
2480
- const t = e.replace(ue, "").split(",");
2531
+ const Re = w([]);
2532
+ Re.debugLabel = "selectedStylingBlocksAtom";
2533
+ const Oa = () => D(Re), La = (e) => {
2534
+ const t = e.replace(me, "").split(",");
2481
2535
  return { baseClasses: t[0], classes: t[1] };
2482
- }, La = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2536
+ }, za = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2483
2537
  const n = M(
2484
2538
  e(rt),
2485
2539
  (r) => (
2486
2540
  // @ts-ignore
2487
2541
  s.includes(e(r)._id)
2488
2542
  )
2489
- ), i = Q(e(Te));
2543
+ ), i = Q(e(Re));
2490
2544
  return R(n, (r) => {
2491
- const c = e(r), p = F(c, i.prop, `${ue},`), { baseClasses: l, classes: f } = Oa(p);
2545
+ const c = e(r), p = F(c, i.prop, `${me},`), { baseClasses: l, classes: f } = La(p);
2492
2546
  return {
2493
2547
  ids: [c._id],
2494
- props: { [i.prop]: `${ue}${Da(f, l, o)}` }
2548
+ props: { [i.prop]: `${me}${Ea(f, l, o)}` }
2495
2549
  };
2496
2550
  });
2497
- }), $i = () => {
2498
- const e = Be(La), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2551
+ }), Oi = () => {
2552
+ const e = _e(za), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2499
2553
  return L(
2500
2554
  (o, n, i = !1) => {
2501
2555
  const r = e({ blockIds: o, newClasses: n });
@@ -2507,104 +2561,60 @@ const Ea = () => D(Te), Oa = (e) => {
2507
2561
  },
2508
2562
  [e]
2509
2563
  );
2510
- }, za = () => D(Qt), ks = Re("canvasWidth", 800), js = w((e) => {
2511
- const t = e(ks);
2512
- return Fs(t).toLowerCase();
2513
- }), Fi = () => {
2514
- const [e, t] = D(ks), s = X(js), [o, n] = za();
2564
+ }, Va = () => D(Zt), js = Be("canvasWidth", 800), Ss = w((e) => {
2565
+ const t = e(js);
2566
+ return $s(t).toLowerCase();
2567
+ }), Li = () => {
2568
+ const [e, t] = D(js), s = X(Ss), [o, n] = Va();
2515
2569
  return Ae(() => {
2516
2570
  o !== "xs" && n(s);
2517
2571
  }, [s, o, n]), [e, s, t];
2518
- }, Va = Re("canvasZoom", 100), Ui = () => D(Va), Ss = w([]), $a = () => {
2519
- const [e, t] = D(Ss), s = Be(ht), o = L(
2572
+ }, $a = Be("canvasZoom", 100), zi = () => D($a), As = w([]), Fa = () => {
2573
+ const [e, t] = D(As), s = _e(ht), o = L(
2520
2574
  (n) => {
2521
2575
  t(n), s([]);
2522
2576
  },
2523
2577
  [t, s]
2524
2578
  );
2525
2579
  return [e, o];
2526
- }, ht = w([]), Wi = () => {
2527
- const [e, t] = D(ht), s = Be(Ss), o = L(
2580
+ }, ht = w([]), Vi = () => {
2581
+ const [e, t] = D(ht), s = _e(As), o = L(
2528
2582
  (n) => {
2529
2583
  t(n), s([]);
2530
2584
  },
2531
2585
  [t, s]
2532
2586
  );
2533
2587
  return [e, o];
2534
- }, As = Re("darkMode", !1), Gi = () => {
2535
- const [e, t] = D(As);
2588
+ }, Cs = Be("darkMode", !1), $i = () => {
2589
+ const [e, t] = D(Cs);
2536
2590
  return [e, t];
2537
- }, Hi = new $t({
2538
- children: "children",
2539
- id: "_id",
2540
- parent: "_parent",
2541
- options: { deleteParent: !1 }
2542
- });
2543
- function Cs(e, t, s) {
2544
- const o = M(e, (i) => i._parent === t), n = [];
2545
- for (let i = 0; i < o.length; i++) {
2546
- const r = _s(o[i]);
2547
- if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
2548
- o[i][c] = `slot:${le()}`;
2549
- }), M(e, { _parent: o[i]._id }).length > 0) {
2550
- const c = le();
2551
- n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(Cs(e, o[i]._id, c)));
2552
- } else
2553
- n.push({
2554
- ...o[i],
2555
- oldId: o[i]._id,
2556
- _id: le(),
2557
- _parent: s
2558
- });
2559
- }
2560
- return ne(n);
2561
- }
2562
- const _s = (e) => {
2563
- const t = {};
2564
- return Object.keys(e).forEach((s) => {
2565
- zt(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
2566
- }), t;
2567
- }, Fa = (e, t, s = null) => {
2568
- let o = te(e, { _id: t });
2569
- o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
2570
- const n = [o];
2571
- M(e, { _parent: t }).length > 0 && n.push(ne(Cs(e, t, o._id)));
2572
- const i = ne(n);
2573
- return R(i, (r) => {
2574
- const c = r, p = _s(c);
2575
- return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
2576
- const f = te(i, { oldId: p[l].replace("slot:", "") });
2577
- c[l] = `slot:${f._id}`;
2578
- }), tt(c, ["global", "oldId"]);
2579
- });
2580
- };
2581
- const Ua = () => {
2591
+ }, Ua = () => {
2582
2592
  const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe();
2583
2593
  return L(
2584
2594
  (o, n = null) => {
2585
2595
  const i = [];
2586
- de(o, (r) => {
2596
+ ue(o, (r) => {
2587
2597
  const c = e.find((N) => N._id === r);
2588
2598
  n || (n = c._parent);
2589
2599
  const f = M(
2590
2600
  e,
2591
- (N) => zt(n) ? N._parent === n : !c._parent
2592
- ).indexOf(c) + 1, x = Fa(e, r, n);
2601
+ (N) => Et(n) ? N._parent === n : !c._parent
2602
+ ).indexOf(c) + 1, x = No(e, r, n);
2593
2603
  s(x, n, f), i.push(F(x, "0._id", ""));
2594
2604
  }), t(i);
2595
2605
  },
2596
2606
  [e, t]
2597
2607
  );
2598
- }, Wa = w([]), qi = () => {
2608
+ }, Wa = w([]), Fi = () => {
2599
2609
  const [e, t] = D(Wa), s = L(
2600
2610
  (o) => {
2601
- t((n) => q(n, o) ? Et(n, o) : [...n, o]);
2611
+ t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
2602
2612
  },
2603
2613
  [t]
2604
2614
  );
2605
2615
  return [e, t, s];
2606
2616
  }, Ga = w(""), Ha = () => D(Ga), qa = () => {
2607
- const e = X(be);
2617
+ const e = X(ae);
2608
2618
  return L(
2609
2619
  (t, s) => {
2610
2620
  const o = R(e, (n) => (q(t, F(n, "_id")) && je(n, "_parent", s), n));
@@ -2612,26 +2622,26 @@ const Ua = () => {
2612
2622
  },
2613
2623
  [e]
2614
2624
  );
2615
- }, Ki = () => {
2625
+ }, Ui = () => {
2616
2626
  console.warn("usePasteBlocks is not implemented");
2617
- const e = X(ht), [t, s] = $a(), o = Ua(), n = qa();
2627
+ const e = X(ht), [t, s] = Fa(), o = Ua(), n = qa();
2618
2628
  return {
2619
- canPaste: Ls(
2629
+ canPaste: Os(
2620
2630
  () => t.length > 0 || e.length > 0,
2621
2631
  [e, t]
2622
2632
  ),
2623
2633
  pasteBlocks: L(
2624
2634
  (r) => {
2625
- _e(e) ? n(t, r) : o(e, r), s(() => []);
2635
+ Ee(e) ? n(t, r) : o(e, r), s(() => []);
2626
2636
  },
2627
2637
  [t, e, o, n, s]
2628
2638
  )
2629
2639
  };
2630
- }, Ka = w(!1), Ji = () => {
2640
+ }, Ka = w(!1), Wi = () => {
2631
2641
  const [e, t] = D(Ka);
2632
2642
  return [e, t];
2633
2643
  }, Ja = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2634
- const n = Q(e(Te)), i = M(
2644
+ const n = Q(e(Re)), i = M(
2635
2645
  e(rt),
2636
2646
  (r) => (
2637
2647
  // @ts-ignore
@@ -2640,24 +2650,24 @@ const Ua = () => {
2640
2650
  );
2641
2651
  return R(i, (r) => {
2642
2652
  const c = e(r), p = o;
2643
- let { classes: l, baseClasses: f } = wo(F(c, n.prop, "styles:,"));
2644
- return de(p, (x) => {
2653
+ let { classes: l, baseClasses: f } = yo(F(c, n.prop, "styles:,"));
2654
+ return ue(p, (x) => {
2645
2655
  const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2646
2656
  l = l.replace(N, " ").replace(/ +/g, " ").trim();
2647
2657
  const k = Q(x.split(":"));
2648
2658
  q(["2xl", "xl", "lg", "md", "sm"], k) && p.push(x.split(":").pop().trim());
2649
- }), de(p, (x) => {
2659
+ }), ue(p, (x) => {
2650
2660
  const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2651
2661
  f = f.replace(N, " ").replace(/ +/g, " ").trim();
2652
2662
  }), {
2653
2663
  ids: [c._id],
2654
2664
  props: {
2655
- [n.prop]: `${ue}${f},${l}`
2665
+ [n.prop]: `${me}${f},${l}`
2656
2666
  }
2657
2667
  };
2658
2668
  });
2659
- }), Yi = () => {
2660
- const { updateBlocks: e } = xe(), t = Be(Ja);
2669
+ }), Gi = () => {
2670
+ const { updateBlocks: e } = xe(), t = _e(Ja);
2661
2671
  return L(
2662
2672
  (s, o) => {
2663
2673
  const n = t({ blockIds: s, fullClasses: o });
@@ -2665,16 +2675,16 @@ const Ua = () => {
2665
2675
  },
2666
2676
  [t]
2667
2677
  );
2668
- }, Bs = w((e) => {
2669
- const t = Q(e(Te)), s = e(ct);
2678
+ }, _s = w((e) => {
2679
+ const t = Q(e(Re)), s = e(ct);
2670
2680
  if (!t || t.blockId !== F(s, "_id", null))
2671
2681
  return [];
2672
- const n = F(s, t.prop, `${ue},`).replace(ue, "").split(",").join(" ");
2673
- return M(R(n.trim().split(" "), Ie), (i) => !He(i));
2674
- }), Qi = () => X(Bs), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ya = w((e) => {
2675
- const t = e(js), s = e(dt), o = e(As), n = Qa(t);
2676
- let i = M(e(Bs), { mod: s });
2677
- return Lt(s, "_") || (i = M(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = M(i, { dark: !1 })), i;
2682
+ const n = F(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
2683
+ return M(R(n.trim().split(" "), Pe), (i) => !He(i));
2684
+ }), Hi = () => X(_s), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ya = w((e) => {
2685
+ const t = e(Ss), s = e(dt), o = e(Cs), n = Qa(t);
2686
+ let i = M(e(_s), { mod: s });
2687
+ return zt(s, "_") || (i = M(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = M(i, { dark: !1 })), i;
2678
2688
  }), Qa = (e) => {
2679
2689
  let t = [];
2680
2690
  switch (e) {
@@ -2701,7 +2711,7 @@ const Ua = () => {
2701
2711
  break;
2702
2712
  }
2703
2713
  return t;
2704
- }, Xi = () => X(Ya), Zi = () => D(dt), el = () => {
2714
+ }, qi = () => X(Ya), Ki = () => D(dt), Ji = () => {
2705
2715
  const { updateBlocks: e } = xe();
2706
2716
  return L(
2707
2717
  (t, s, o) => {
@@ -2709,7 +2719,7 @@ const Ua = () => {
2709
2719
  },
2710
2720
  [e]
2711
2721
  );
2712
- }, tl = () => {
2722
+ }, Yi = () => {
2713
2723
  const { updateBlocksRuntime: e } = xe();
2714
2724
  return L(
2715
2725
  (t, s) => {
@@ -2717,12 +2727,12 @@ const Ua = () => {
2717
2727
  },
2718
2728
  [e]
2719
2729
  );
2720
- }, Rs = {
2730
+ }, Bs = {
2721
2731
  name: "",
2722
2732
  props: {},
2723
2733
  modalProps: {},
2724
2734
  backdropClose: !0
2725
- }, Xa = w(Rs), sl = () => {
2735
+ }, Xa = w(Bs), Qi = () => {
2726
2736
  const [e, t] = D(Xa), s = L(
2727
2737
  (n, i = {}, r = {}) => {
2728
2738
  t({ name: n, props: i, modalProps: r });
@@ -2731,7 +2741,7 @@ const Ua = () => {
2731
2741
  ), o = L(
2732
2742
  (...n) => {
2733
2743
  F(e, "props.onClose", () => {
2734
- })(...n), t(Rs);
2744
+ })(...n), t(Bs);
2735
2745
  },
2736
2746
  [t, e]
2737
2747
  );
@@ -2740,48 +2750,46 @@ const Ua = () => {
2740
2750
  openModal: s,
2741
2751
  closeModal: o
2742
2752
  };
2743
- }, ol = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(be)), Ts = w(!1);
2744
- Ts.debugLabel = "readOnlyModeAtom";
2745
- const Za = w(!1);
2746
- Za.debugLabel = "advanceStylingOpenAtom";
2747
- const er = w("online");
2748
- er.debugLabel = "networkModeAtom";
2753
+ }, Xi = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(ae)), Rs = w(!1);
2754
+ Rs.debugLabel = "readOnlyModeAtom";
2755
+ const Za = w("online");
2756
+ Za.debugLabel = "networkModeAtom";
2757
+ const er = w(!1);
2758
+ er.debugLabel = "codeEditorOpenAtom";
2749
2759
  const tr = w(!1);
2750
- tr.debugLabel = "codeEditorOpenAtom";
2751
- const sr = w(!1);
2752
- sr.debugLabel = "editLayerNameAtom";
2760
+ tr.debugLabel = "editLayerNameAtom";
2761
+ const sr = w("");
2762
+ sr.debugLabel = "activeLanguageAtom";
2753
2763
  const or = w("");
2754
- or.debugLabel = "activeLanguageAtom";
2755
- const nr = w("");
2756
- nr.debugLabel = "primaryLanguageAtom";
2757
- const ar = w(null);
2758
- ar.debugLabel = "canvasIframeAtom";
2759
- const rr = w("outline");
2760
- rr.debugLabel = "activePanelAtom";
2764
+ or.debugLabel = "primaryLanguageAtom";
2765
+ const nr = w(null);
2766
+ nr.debugLabel = "canvasIframeAtom";
2767
+ const ar = w("outline");
2768
+ ar.debugLabel = "activePanelAtom";
2769
+ const rr = w("");
2770
+ rr.debugLabel = "showPredefinedBlockCategoryAtom";
2771
+ const Ts = w({ undoCount: 0, redoCount: 0 });
2772
+ Ts.debugLabel = "historyStatesAtom";
2761
2773
  const ir = w("");
2762
- ir.debugLabel = "showPredefinedBlockCategoryAtom";
2763
- const Ps = w({ undoCount: 0, redoCount: 0 });
2764
- Ps.debugLabel = "historyStatesAtom";
2765
- const lr = w("");
2766
- lr.debugLabel = "inlineEditingActiveAtom";
2767
- const cr = w(!1);
2768
- cr.debugLabel = "draggingFlagAtom";
2769
- const dr = w("");
2770
- dr.debugLabel = "draggedBlockIdAtom";
2771
- const nl = () => X(Ts), ur = w(""), mr = w(null), al = () => D(ur), rl = () => D(mr), fr = Re("selectedBreakpoints", ["XS", "MD", "XL"]), il = () => {
2772
- const [e, t] = D(fr);
2774
+ ir.debugLabel = "inlineEditingActiveAtom";
2775
+ const lr = w(!1);
2776
+ lr.debugLabel = "draggingFlagAtom";
2777
+ const cr = w("");
2778
+ cr.debugLabel = "draggedBlockIdAtom";
2779
+ const Zi = () => X(Rs), dr = w(""), ur = w(null), el = () => D(dr), tl = () => D(ur), mr = Be("selectedBreakpoints", ["XS", "MD", "XL"]), sl = () => {
2780
+ const [e, t] = D(mr);
2773
2781
  return [e, t];
2774
- }, ll = () => {
2775
- const e = Be(Ps), { clear: t } = as(), [, s] = Ve(), [, o] = Ha(), [, n] = Ea();
2782
+ }, ol = () => {
2783
+ const e = _e(Ts), { clear: t } = rs(), [, s] = Ve(), [, o] = Ha(), [, n] = Oa();
2776
2784
  return () => {
2777
2785
  s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
2778
2786
  };
2779
- }, pr = w([]), cl = () => {
2780
- const [e, t] = Ce(!1), [s, o] = D(pr), n = Ne("getUILibraryBlocks", () => []);
2787
+ }, fr = w([]), nl = () => {
2788
+ const [e, t] = Ce(!1), [s, o] = D(fr), n = Ne("getUILibraryBlocks", () => []);
2781
2789
  return Ae(() => {
2782
2790
  (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
2783
2791
  }, []), { data: s, isLoading: e };
2784
- }, dl = () => {
2792
+ }, al = () => {
2785
2793
  const [e, t] = Ce(null), s = L(async (o) => {
2786
2794
  if (!(navigator != null && navigator.clipboard))
2787
2795
  return console.warn("Clipboard not supported"), !1;
@@ -2794,213 +2802,213 @@ const nl = () => X(Ts), ur = w(""), mr = w(null), al = () => D(ur), rl = () => D
2794
2802
  return [e, s];
2795
2803
  };
2796
2804
  export {
2797
- Xi as $,
2798
- Zr as A,
2799
- Ho as B,
2805
+ qi as $,
2806
+ Jr as A,
2807
+ qo as B,
2800
2808
  pt as C,
2801
- $r as D,
2809
+ Or as D,
2802
2810
  ye as E,
2803
- Zt as F,
2804
- qt as G,
2805
- ns as H,
2806
- Ai as I,
2807
- nl as J,
2808
- sl as K,
2809
- Vi as L,
2810
- $i as M,
2811
- Fi as N,
2812
- Ui as O,
2813
- Wi as P,
2814
- dl as Q,
2815
- Do as R,
2816
- Ci as S,
2817
- si as T,
2818
- $a as U,
2819
- Gi as V,
2820
- zo as W,
2821
- qi as X,
2811
+ ts as F,
2812
+ Ht as G,
2813
+ as as H,
2814
+ Ni as I,
2815
+ Zi as J,
2816
+ Qi as K,
2817
+ Ei as L,
2818
+ Oi as M,
2819
+ Li as N,
2820
+ zi as O,
2821
+ Vi as P,
2822
+ al as Q,
2823
+ Eo as R,
2824
+ ki as S,
2825
+ Xr as T,
2826
+ Fa as U,
2827
+ $i as V,
2828
+ Vo as W,
2829
+ Fi as X,
2822
2830
  Ha as Y,
2823
- Ki as Z,
2824
- Yi as _,
2825
- ei as a,
2826
- xa as a$,
2827
- Qi as a0,
2828
- Hr as a1,
2829
- za as a2,
2830
- cl as a3,
2831
- Zi as a4,
2832
- el as a5,
2833
- tl as a6,
2834
- Gr as a7,
2835
- ol as a8,
2836
- al as a9,
2837
- ra as aA,
2838
- Nn as aB,
2839
- Go as aC,
2840
- mi as aD,
2841
- fi as aE,
2842
- zn as aF,
2843
- yi as aG,
2844
- wi as aH,
2845
- Zn as aI,
2846
- oa as aJ,
2847
- na as aK,
2848
- ta as aL,
2831
+ Ui as Z,
2832
+ Gi as _,
2833
+ Yr as a,
2834
+ ha as a$,
2835
+ Hi as a0,
2836
+ Fr as a1,
2837
+ Va as a2,
2838
+ nl as a3,
2839
+ Ki as a4,
2840
+ Ji as a5,
2841
+ Yi as a6,
2842
+ $r as a7,
2843
+ Xi as a8,
2844
+ el as a9,
2845
+ ia as aA,
2846
+ kn as aB,
2847
+ Ho as aC,
2848
+ li as aD,
2849
+ ci as aE,
2850
+ Vn as aF,
2851
+ bi as aG,
2852
+ xi as aH,
2853
+ ea as aI,
2854
+ na as aJ,
2855
+ aa as aK,
2856
+ sa as aL,
2849
2857
  xe as aM,
2850
- cr as aN,
2851
- lr as aO,
2852
- sr as aP,
2853
- dr as aQ,
2854
- Fr as aR,
2855
- Ur as aS,
2856
- er as aT,
2857
- ar as aU,
2858
- ai as aV,
2859
- ri as aW,
2860
- Cn as aX,
2861
- ws as aY,
2862
- ga as aZ,
2863
- ba as a_,
2864
- rl as aa,
2865
- il as ab,
2866
- Ea as ac,
2867
- ls as ad,
2858
+ lr as aN,
2859
+ ir as aO,
2860
+ tr as aP,
2861
+ cr as aQ,
2862
+ Lr as aR,
2863
+ zr as aS,
2864
+ Za as aT,
2865
+ nr as aU,
2866
+ ti as aV,
2867
+ si as aW,
2868
+ _n as aX,
2869
+ Ns as aY,
2870
+ ba as aZ,
2871
+ xa as a_,
2872
+ tl as aa,
2873
+ sl as ab,
2874
+ Oa as ac,
2875
+ cs as ad,
2868
2876
  xt as ae,
2869
- dn as af,
2870
- mn as ag,
2871
- fn as ah,
2872
- rn as ai,
2873
- pi as aj,
2874
- Vn as ak,
2875
- bi as al,
2876
- $n as am,
2877
- Un as an,
2878
- cn as ao,
2879
- oi as ap,
2880
- ni as aq,
2881
- An as ar,
2882
- Xr as as,
2883
- rr as at,
2884
- Sn as au,
2885
- ms as av,
2877
+ un as af,
2878
+ fn as ag,
2879
+ pn as ah,
2880
+ ln as ai,
2881
+ di as aj,
2882
+ $n as ak,
2883
+ mi as al,
2884
+ Fn as am,
2885
+ Wn as an,
2886
+ dn as ao,
2887
+ Zr as ap,
2888
+ ei as aq,
2889
+ Cn as ar,
2890
+ Kr as as,
2891
+ ar as at,
2892
+ An as au,
2893
+ fs as av,
2886
2894
  Xe as aw,
2887
2895
  Ze as ax,
2888
- gi as ay,
2889
- Fn as az,
2890
- tn as b,
2891
- Yn as b$,
2892
- ha as b0,
2893
- ya as b1,
2894
- un as b2,
2896
+ ui as ay,
2897
+ Un as az,
2898
+ sn as b,
2899
+ Kn as b$,
2900
+ va as b0,
2901
+ wa as b1,
2902
+ mn as b2,
2895
2903
  Bt as b3,
2896
2904
  _t as b4,
2897
- Li as b5,
2898
- Di as b6,
2899
- Oi as b7,
2900
- zi as b8,
2901
- Qr as b9,
2902
- en as bA,
2903
- bn as bB,
2904
- us as bC,
2905
- _n as bD,
2906
- ii as bE,
2907
- Bn as bF,
2908
- Pn as bG,
2909
- In as bH,
2910
- On as bI,
2911
- En as bJ,
2905
+ Mi as b5,
2906
+ Ti as b6,
2907
+ Ii as b7,
2908
+ Di as b8,
2909
+ qr as b9,
2910
+ Wo as bA,
2911
+ bt as bB,
2912
+ en as bC,
2913
+ tn as bD,
2914
+ xn as bE,
2915
+ ms as bF,
2916
+ Bn as bG,
2917
+ oi as bH,
2918
+ Rn as bI,
2919
+ In as bJ,
2912
2920
  Mn as bK,
2913
- ui as bL,
2914
- Dn as bM,
2915
- ci as bN,
2916
- Tn as bO,
2917
- Rn as bP,
2918
- li as bQ,
2919
- di as bR,
2920
- Ln as bS,
2921
- Wn as bT,
2922
- xi as bU,
2923
- hi as bV,
2924
- vi as bW,
2925
- Hn as bX,
2926
- qn as bY,
2927
- Kn as bZ,
2928
- Jn as b_,
2929
- qo as ba,
2930
- Ko as bb,
2931
- Jo as bc,
2932
- yn as bd,
2933
- ti as be,
2934
- Za as bf,
2935
- jn as bg,
2936
- pn as bh,
2937
- gn as bi,
2938
- xn as bj,
2939
- hn as bk,
2940
- kn as bl,
2921
+ Ln as bL,
2922
+ On as bM,
2923
+ Dn as bN,
2924
+ ii as bO,
2925
+ En as bP,
2926
+ ai as bQ,
2927
+ Pn as bR,
2928
+ Tn as bS,
2929
+ ni as bT,
2930
+ ri as bU,
2931
+ zn as bV,
2932
+ Gn as bW,
2933
+ fi as bX,
2934
+ pi as bY,
2935
+ gi as bZ,
2936
+ qn as b_,
2937
+ Ko as ba,
2938
+ Jo as bb,
2939
+ Yo as bc,
2940
+ wn as bd,
2941
+ Qr as be,
2942
+ Sn as bf,
2943
+ hi as bg,
2944
+ ta as bh,
2945
+ ra as bi,
2946
+ gn as bj,
2947
+ bn as bk,
2948
+ hn as bl,
2941
2949
  vn as bm,
2942
- Qo as bn,
2943
- Xo as bo,
2944
- ir as bp,
2945
- Sa as bq,
2946
- ja as br,
2947
- Bi as bs,
2948
- Ri as bt,
2949
- Kr as bu,
2950
- Wr as bv,
2951
- Wo as bw,
2952
- Uo as bx,
2953
- bt as by,
2954
- Zo as bz,
2955
- sn as c,
2956
- ea as c0,
2957
- sa as c1,
2958
- aa as c2,
2959
- Ni as c3,
2960
- ki as c4,
2961
- ji as c5,
2962
- Xn as c6,
2963
- Qn as c7,
2964
- Si as c8,
2965
- da as c9,
2966
- gs as ca,
2967
- ua as cb,
2968
- _i as cc,
2969
- wa as cd,
2970
- va as ce,
2971
- Aa as cf,
2972
- Ca as cg,
2973
- _a as ch,
2974
- Ba as ci,
2975
- Ra as cj,
2976
- Ti as ck,
2977
- Pi as cl,
2978
- Ii as cm,
2979
- ka as cn,
2980
- Na as co,
2981
- Mi as cp,
2982
- Ei as cq,
2983
- nn as d,
2984
- an as e,
2985
- on as f,
2986
- ln as g,
2950
+ jn as bn,
2951
+ yn as bo,
2952
+ Xo as bp,
2953
+ Zo as bq,
2954
+ rr as br,
2955
+ Aa as bs,
2956
+ Sa as bt,
2957
+ Si as bu,
2958
+ Ai as bv,
2959
+ Wr as bw,
2960
+ Vr as bx,
2961
+ ko as by,
2962
+ Go as bz,
2963
+ on as c,
2964
+ Jn as c0,
2965
+ Yn as c1,
2966
+ Qn as c2,
2967
+ oa as c3,
2968
+ vi as c4,
2969
+ yi as c5,
2970
+ Zn as c6,
2971
+ Xn as c7,
2972
+ wi as c8,
2973
+ ua as c9,
2974
+ bs as ca,
2975
+ ma as cb,
2976
+ ji as cc,
2977
+ Na as cd,
2978
+ ya as ce,
2979
+ Ca as cf,
2980
+ _a as cg,
2981
+ Ba as ch,
2982
+ Ra as ci,
2983
+ Ta as cj,
2984
+ Ci as ck,
2985
+ _i as cl,
2986
+ Bi as cm,
2987
+ ja as cn,
2988
+ ka as co,
2989
+ Ri as cp,
2990
+ Pi as cq,
2991
+ an as d,
2992
+ rn as e,
2993
+ nn as f,
2994
+ cn as g,
2987
2995
  Ne as h,
2988
- Gt as i,
2989
- zr as j,
2990
- oo as k,
2996
+ Wt as i,
2997
+ Dr as j,
2998
+ so as k,
2991
2999
  oe as l,
2992
- uo as m,
2993
- co as n,
2994
- Re as o,
2995
- Vr as p,
2996
- Ji as q,
3000
+ co as m,
3001
+ lo as n,
3002
+ Be as o,
3003
+ Er as p,
3004
+ Wi as q,
2997
3005
  Ve as r,
2998
- Yr as s,
3006
+ Hr as s,
2999
3007
  Ua as t,
3000
- ll as u,
3001
- as as v,
3002
- be as w,
3003
- yo as x,
3004
- Vo as y,
3005
- Jr as z
3008
+ ol as u,
3009
+ rs as v,
3010
+ ae as w,
3011
+ vo as x,
3012
+ $o as y,
3013
+ Gr as z
3006
3014
  };