@chaibuilder/sdk 1.2.22 → 1.2.24

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 (107) hide show
  1. package/dist/AddBlocks-l1JENNvq.js +206 -0
  2. package/dist/AddBlocks-zPPKkeKs.cjs +1 -0
  3. package/dist/BrandingOptions-DkpqGARR.cjs +1 -0
  4. package/dist/{BrandingOptions-4961TxX2.js → BrandingOptions-udtH5yJs.js} +11 -10
  5. package/dist/CanvasArea-IqeMbtOf.js +951 -0
  6. package/dist/CanvasArea-plZTWifU.cjs +55 -0
  7. package/dist/{Class-MmCxz2Ay.cjs → Class-PoYusiA5.cjs} +1 -1
  8. package/dist/{Class-3k8xjeiM.js → Class-lGzsNBOK.js} +1 -1
  9. package/dist/CurrentPage-7_s9LtEJ.cjs +1 -0
  10. package/dist/{CurrentPage-oPZN6Gwj.js → CurrentPage-AA0XHYMU.js} +23 -24
  11. package/dist/ListTree-LAN7QmHQ.cjs +1 -0
  12. package/dist/ListTree-ZNEtds1d.js +309 -0
  13. package/dist/MODIFIERS-0g14w5RS.cjs +1 -0
  14. package/dist/{MODIFIERS-WQdaNvb8.js → MODIFIERS-dytZ-osO.js} +4 -8
  15. package/dist/PagesPanel-5qMZBatP.cjs +1 -0
  16. package/dist/{PagesPanel-pRKHw-AZ.js → PagesPanel-883P3_su.js} +9 -10
  17. package/dist/{ProjectPanel-iU6DY-Yp.js → ProjectPanel-Y8Qcmsn0.js} +11 -12
  18. package/dist/ProjectPanel-otQb9ceP.cjs +1 -0
  19. package/dist/STRINGS--j49GZJP.js +7 -0
  20. package/dist/STRINGS-gPz7CUOk.cjs +1 -0
  21. package/dist/Settings-Rt342VJ3.cjs +1 -0
  22. package/dist/{Settings-BhSrj-cE.js → Settings-pIePR1Id.js} +862 -865
  23. package/dist/{SidePanels-OLOUpKn4.js → SidePanels-NznSn5RN.js} +121 -125
  24. package/dist/SidePanels-PaQkgjLa.cjs +1 -0
  25. package/dist/Topbar-CqW7G360.cjs +1 -0
  26. package/dist/{Topbar-Ny9T-7Zb.js → Topbar-pWzBEOed.js} +39 -35
  27. package/dist/UnsplashImages-NGskB93R.cjs +1 -0
  28. package/dist/{UnsplashImages-Y8RGFVSh.js → UnsplashImages-qvwFbV-E.js} +17 -16
  29. package/dist/{UploadImages-dd8LfyFr.js → UploadImages-9NapgXBq.js} +12 -11
  30. package/dist/UploadImages-Oh7Glr9A.cjs +1 -0
  31. package/dist/{add-page-modal-Jni6CY1x.js → add-page-modal-4PiRJgX5.js} +11 -12
  32. package/dist/add-page-modal-4o2L_7T7.cjs +1 -0
  33. package/dist/confirm-alert-C4M9eF-o.cjs +1 -0
  34. package/dist/{confirm-alert-sc8RaWvD.js → confirm-alert-GUhZ_G8w.js} +7 -6
  35. package/dist/core.cjs +1 -1
  36. package/dist/core.d.ts +5 -3
  37. package/dist/core.js +48 -49
  38. package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
  39. package/dist/{defaultTheme-gunU_Fe5.js → defaultTheme-D8B4-wHO.js} +1 -1
  40. package/dist/{delete-page-modal-0WiMZFxr.js → delete-page-modal-4l5-RhQB.js} +10 -11
  41. package/dist/delete-page-modal-Bek5bCf-.cjs +1 -0
  42. package/dist/email.cjs +1 -1
  43. package/dist/email.d.ts +3 -1
  44. package/dist/email.js +16 -16
  45. package/dist/{form-Nj6Kdn3g.js → form-STUz-6nE.js} +1 -1
  46. package/dist/{form-n1Q6u16z.cjs → form-lBQ_76Uw.cjs} +1 -1
  47. package/dist/html-to-json-efmv1pCj.cjs +1 -0
  48. package/dist/{html-to-json-C5sExaSD.js → html-to-json-ngX9ef2u.js} +31 -29
  49. package/dist/{index-IPJAbzzO.js → index-Gk6sASBd.js} +1242 -1213
  50. package/dist/{index-0bwkNnA0.cjs → index-dgm-fd8U.cjs} +42 -42
  51. package/dist/{index-UP_4awU9.js → index-gS-3liKK.js} +4479 -4484
  52. package/dist/index-h-hd6EvN.cjs +1 -0
  53. package/dist/index-oCYKBYyT.cjs +1 -0
  54. package/dist/{index-_VPpjzJu.js → index-xZWaF8AW.js} +118 -119
  55. package/dist/lib.cjs +3 -3
  56. package/dist/lib.js +17 -16
  57. package/dist/page-viewer-JlKEwACu.cjs +1 -0
  58. package/dist/{page-viewer-L1Dmgj-c.js → page-viewer-rCXavxpd.js} +15 -16
  59. package/dist/project-general-setting-2FGoUZ-z.cjs +1 -0
  60. package/dist/{project-general-setting-sUP7JqWK.js → project-general-setting-rmAVpDu9.js} +11 -12
  61. package/dist/project-seo-setting-mlxL_e2_.cjs +1 -0
  62. package/dist/{project-seo-setting-NNvAGt4T.js → project-seo-setting-pX34Qsym.js} +8 -7
  63. package/dist/render.cjs +1 -1
  64. package/dist/render.js +14 -13
  65. package/dist/single-page-detail-c6-wRWyN.cjs +1 -0
  66. package/dist/{single-page-detail-FXg_NebW.js → single-page-detail-rSQomrY5.js} +12 -13
  67. package/dist/studio.cjs +1 -1
  68. package/dist/studio.d.ts +3 -1
  69. package/dist/studio.js +8 -9
  70. package/dist/ui.cjs +1 -1
  71. package/dist/ui.js +139 -138
  72. package/dist/web-blocks.cjs +6 -1
  73. package/dist/web-blocks.js +462 -354
  74. package/package.json +3 -5
  75. package/dist/AddBlocks-157fSrJX.cjs +0 -1
  76. package/dist/AddBlocks-WgpssWmQ.js +0 -223
  77. package/dist/BrandingOptions-nwXR9TMl.cjs +0 -1
  78. package/dist/CanvasArea-MajWGr9z.js +0 -908
  79. package/dist/CanvasArea-MmTlc5Vb.cjs +0 -55
  80. package/dist/CurrentPage-LpLr0lDI.cjs +0 -1
  81. package/dist/ListTree-dvxHTXs4.js +0 -167
  82. package/dist/ListTree-gTmusfso.cjs +0 -1
  83. package/dist/MODIFIERS-9EwxLM8V.cjs +0 -1
  84. package/dist/Outline-2OxsXs1-.js +0 -294
  85. package/dist/Outline-7CCnnzmK.cjs +0 -1
  86. package/dist/PagesPanel-8536oBWB.cjs +0 -1
  87. package/dist/ProjectPanel-oILsUWOH.cjs +0 -1
  88. package/dist/Settings-jHiYmt0y.cjs +0 -1
  89. package/dist/SidePanels-bcJJocSq.cjs +0 -1
  90. package/dist/Topbar-NMvzqQHW.cjs +0 -1
  91. package/dist/TypeIcon-ElNNPazl.cjs +0 -1
  92. package/dist/TypeIcon-qO96rNbV.js +0 -69
  93. package/dist/UnsplashImages-6tZv1q2_.cjs +0 -1
  94. package/dist/UploadImages-VLlVg9Ur.cjs +0 -1
  95. package/dist/add-page-modal-IsqDdK7X.cjs +0 -1
  96. package/dist/confirm-alert-f26zJ7Js.cjs +0 -1
  97. package/dist/defaultTheme-7Lk2zq60.cjs +0 -1
  98. package/dist/delete-page-modal-c3b-GCap.cjs +0 -1
  99. package/dist/html-to-json-FGufPv9R.cjs +0 -1
  100. package/dist/index-9PHdn80L.cjs +0 -1
  101. package/dist/index-nwAgi0aD.cjs +0 -1
  102. package/dist/page-viewer-TnxHhq7S.cjs +0 -1
  103. package/dist/project-general-setting-1Ot1RU43.cjs +0 -1
  104. package/dist/project-seo-setting-3-vBkx2v.cjs +0 -1
  105. package/dist/single-page-detail-btEKYXjE.cjs +0 -1
  106. package/dist/useAddBlockByDrop-V8xo-PNQ.js +0 -20
  107. package/dist/useAddBlockByDrop-qRHgy8_0.cjs +0 -1
@@ -1,43 +1,44 @@
1
- import * as m from "react";
2
- import et, { createContext as Is, useContext as Ms, useRef as br, createElement as xr, useReducer as Ds, useEffect as Ae, useDebugValue as Es, useCallback as F, useMemo as Os, useState as Ce, Suspense as vt } from "react";
3
- import { has as pe, get as H, flatten as ae, filter as D, isString as Et, find as se, map as P, omit as tt, each as ce, set as je, includes as Y, isUndefined as vr, without as Ot, isEmpty as Ee, forIn as Lt, isObject as Ls, first as Z, 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 de, a as $s } from "./Functions-7jnEwJyw.js";
5
- import { getBlockComponent as Oe } from "@chaibuilder/runtime";
6
- import { atom as w, useAtomValue as ee, useAtom as E, 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";
1
+ import * as f from "react";
2
+ import tt, { createContext as Es, useContext as Os, useRef as xr, createElement as vr, useReducer as Ls, useEffect as Ae, useDebugValue as zs, useCallback as $, useMemo as Vs, useState as Ce, Suspense as yt } from "react";
3
+ import { memoize as Oe, has as pe, get as J, flatten as re, filter as E, isString as zt, find as oe, map as I, omit as st, each as ce, set as Se, includes as Y, isUndefined as wr, without as Vt, isEmpty as Be, forIn as $t, isObject as $s, first as ee, noop as qe, keys as Fs, startsWith as Ft, isNull as Ke, pick as wt, sortBy as Nt } from "lodash-es";
4
+ import { g as de, a as Us } from "./Functions-7jnEwJyw.js";
5
+ import { getBlockComponent as Le } from "@chaibuilder/runtime";
6
+ import { atom as w, useAtomValue as te, useAtom as O, useSetAtom as _e } from "jotai";
7
+ import { a as fe, I as Ut, S as Je } from "./STRINGS--j49GZJP.js";
8
+ import { g as Ws } from "./_commonjsHelpers-UyOWmZb0.js";
9
+ import { useThrottledCallback as Gs } from "@react-hookz/web";
10
+ import { B as Ye } from "./MODIFIERS-dytZ-osO.js";
11
+ import { a as d, c as Ie } from "./Class-lGzsNBOK.js";
12
+ import "react-i18next";
10
13
  import { j as a } from "./jsx-runtime-WbnYoNE9.js";
11
- import * as $t from "@radix-ui/react-toggle";
14
+ import * as Wt from "@radix-ui/react-toggle";
12
15
  import { cva as ge } from "class-variance-authority";
13
- import { a as d, c as Pe } from "./Class-3k8xjeiM.js";
14
- import * as Je from "@radix-ui/react-switch";
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";
18
- import * as q from "@radix-ui/react-alert-dialog";
19
- import * as T from "@radix-ui/react-dialog";
20
- import * as Ft from "@radix-ui/react-label";
16
+ import * as Qe from "@radix-ui/react-switch";
17
+ import { Slot as Hs } from "@radix-ui/react-slot";
18
+ import * as me from "@radix-ui/react-accordion";
19
+ import { ChevronDownIcon as qs, Cross2Icon as ot, ChevronRightIcon as nt, CheckIcon as ze, DotFilledIcon as at, CaretSortIcon as Ks, MagnifyingGlassIcon as Js } from "@radix-ui/react-icons";
20
+ import * as H from "@radix-ui/react-alert-dialog";
21
+ import * as P from "@radix-ui/react-dialog";
22
+ import * as Gt from "@radix-ui/react-label";
21
23
  import * as ue from "@radix-ui/react-scroll-area";
22
24
  import * as be from "@radix-ui/react-tabs";
23
- import * as ve from "@radix-ui/react-tooltip";
24
- import * as Se from "@radix-ui/react-popover";
25
- import * as B from "@radix-ui/react-menubar";
26
- import * as ze from "@radix-ui/react-hover-card";
25
+ import * as ye from "@radix-ui/react-tooltip";
26
+ import * as je from "@radix-ui/react-popover";
27
+ import * as _ from "@radix-ui/react-menubar";
28
+ import * as Ve from "@radix-ui/react-hover-card";
27
29
  import * as U from "@radix-ui/react-select";
28
- import * as I from "@radix-ui/react-dropdown-menu";
29
- import * as Ut from "@radix-ui/react-separator";
30
- import * as X from "@radix-ui/react-toast";
30
+ import * as M from "@radix-ui/react-dropdown-menu";
31
+ import * as Ht from "@radix-ui/react-separator";
32
+ import * as Z from "@radix-ui/react-toast";
31
33
  import { Command as Q } from "cmdk";
32
- import * as M from "@radix-ui/react-context-menu";
33
- import Ks, { IconPickerItem as Js } from "react-icons-picker";
34
- import Ys from "react-dom";
35
- import Qs from "react-quill";
36
- import "react-i18next";
37
- var G = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
38
- let Xs = 0;
39
- function ne(e, t) {
40
- const s = `atom${++Xs}`, o = {
34
+ import * as D from "@radix-ui/react-context-menu";
35
+ import Ys, { IconPickerItem as Qs } from "react-icons-picker";
36
+ import Xs from "react-dom";
37
+ import Zs from "react-quill";
38
+ var W = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
39
+ let eo = 0;
40
+ function ae(e, t) {
41
+ const s = `atom${++eo}`, o = {
41
42
  toString: () => s
42
43
  };
43
44
  return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, i, r) => i(
@@ -45,272 +46,272 @@ function ne(e, t) {
45
46
  typeof r == "function" ? r(n(o)) : r
46
47
  )), t && (o.write = t), o;
47
48
  }
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));
51
- }, Nt = (e, t) => {
52
- const s = De.get(e);
53
- s && (De.delete(e), s(t));
49
+ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new WeakMap(), to = (e, t) => {
50
+ Ee.set(e, t), e.catch(() => {
51
+ }).finally(() => Ee.delete(e));
54
52
  }, kt = (e, t) => {
53
+ const s = Ee.get(e);
54
+ s && (Ee.delete(e), s(t));
55
+ }, St = (e, t) => {
55
56
  e.status = "fulfilled", e.value = t;
56
57
  }, jt = (e, t) => {
57
58
  e.status = "rejected", e.reason = t;
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) => {
59
+ }, so = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), At = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), xe = (e) => "v" in e && e.v instanceof Promise, oo = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Te = (e) => {
59
60
  if ("e" in e)
60
61
  throw e.e;
61
62
  return e.v;
62
- }, so = () => {
63
+ }, no = () => {
63
64
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
64
65
  let o, n, i;
65
- (G ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
66
+ (W ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
66
67
  const r = (u) => e.get(u), c = (u, g) => {
67
- (G ? "production" : void 0) !== "production" && Object.freeze(g);
68
- const h = e.get(u);
69
- if (e.set(u, g), s.has(u) || s.set(u, h), h && he(h)) {
68
+ (W ? "production" : void 0) !== "production" && Object.freeze(g);
69
+ const x = e.get(u);
70
+ if (e.set(u, g), s.has(u) || s.set(u, x), x && xe(x)) {
70
71
  const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
71
- Nt(h.v, b);
72
+ kt(x.v, b);
72
73
  }
73
- }, p = (u, g, h) => {
74
+ }, p = (u, g, x) => {
74
75
  const b = /* @__PURE__ */ new Map();
75
76
  let y = !1;
76
- h.forEach((x, k) => {
77
- !x && k === u && (x = g), x ? (b.set(k, x), g.d.get(k) !== x && (y = !0)) : (G ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
77
+ x.forEach((h, k) => {
78
+ !h && k === u && (h = g), h ? (b.set(k, h), g.d.get(k) !== h && (y = !0)) : (W ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
78
79
  }), (y || g.d.size !== b.size) && (g.d = b);
79
- }, l = (u, g, h) => {
80
+ }, l = (u, g, x) => {
80
81
  const b = r(u), y = {
81
82
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
82
83
  v: g
83
84
  };
84
- if (h && p(u, y, h), b && we(b, y) && b.d === y.d)
85
+ if (x && p(u, y, x), b && Ne(b, y) && b.d === y.d)
85
86
  return b;
86
- if (b && he(b) && he(y) && to(b, y)) {
87
+ if (b && xe(b) && xe(y) && oo(b, y)) {
87
88
  if (b.d === y.d)
88
89
  return b;
89
90
  y.v = b.v;
90
91
  }
91
92
  return c(u, y), y;
92
- }, f = (u, g, h, b) => {
93
- if (eo(g)) {
93
+ }, m = (u, g, x, b) => {
94
+ if (so(g)) {
94
95
  let y;
95
- const x = new Promise((k, O) => {
96
+ const h = new Promise((k, z) => {
96
97
  let A = !1;
97
98
  g.then(
98
99
  (R) => {
99
100
  if (!A) {
100
101
  A = !0;
101
- const _ = r(u), te = l(
102
+ const C = r(u), se = l(
102
103
  u,
103
- x,
104
- h
104
+ h,
105
+ x
105
106
  );
106
- kt(x, R), k(R), (_ == null ? void 0 : _.d) !== te.d && V(u, te, _ == null ? void 0 : _.d);
107
+ St(h, R), k(R), (C == null ? void 0 : C.d) !== se.d && q(u, se, C == null ? void 0 : C.d);
107
108
  }
108
109
  },
109
110
  (R) => {
110
111
  if (!A) {
111
112
  A = !0;
112
- const _ = r(u), te = l(
113
+ const C = r(u), se = l(
113
114
  u,
114
- x,
115
- h
115
+ h,
116
+ x
116
117
  );
117
- jt(x, R), O(R), (_ == null ? void 0 : _.d) !== te.d && V(u, te, _ == null ? void 0 : _.d);
118
+ jt(h, R), z(R), (C == null ? void 0 : C.d) !== se.d && q(u, se, C == null ? void 0 : C.d);
118
119
  }
119
120
  }
120
121
  ), y = (R) => {
121
122
  A || (A = !0, R.then(
122
- (_) => kt(x, _),
123
- (_) => jt(x, _)
123
+ (C) => St(h, C),
124
+ (C) => jt(h, C)
124
125
  ), k(R));
125
126
  };
126
127
  });
127
- return x.orig = g, x.status = "pending", Zs(x, (k) => {
128
+ return h.orig = g, h.status = "pending", to(h, (k) => {
128
129
  k && y(k), b == null || b();
129
- }), l(u, x, h);
130
+ }), l(u, h, x);
130
131
  }
131
- return l(u, g, h);
132
- }, N = (u, g, h) => {
132
+ return l(u, g, x);
133
+ }, N = (u, g, x) => {
133
134
  const b = r(u), y = {
134
135
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
135
136
  e: g
136
137
  };
137
- return h && p(u, y, h), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
138
- }, j = (u) => {
138
+ return x && p(u, y, x), b && At(b, y) && b.d === y.d ? b : (c(u, y), y);
139
+ }, S = (u) => {
139
140
  const g = r(u);
140
141
  if (g && (g.d.forEach((A, R) => {
141
- R !== u && !t.has(R) && j(R);
142
+ R !== u && !t.has(R) && S(R);
142
143
  }), Array.from(g.d).every(([A, R]) => {
143
- const _ = r(A);
144
- return A === u || _ === R || // TODO This is a hack, we should find a better solution.
145
- _ && !he(_) && we(_, R);
144
+ const C = r(A);
145
+ return A === u || C === R || // TODO This is a hack, we should find a better solution.
146
+ C && !xe(C) && Ne(C, R);
146
147
  })))
147
148
  return g;
148
- const h = /* @__PURE__ */ new Map();
149
+ const x = /* @__PURE__ */ new Map();
149
150
  let b = !0;
150
151
  const y = (A) => {
151
152
  if (A === u) {
152
- const _ = r(A);
153
- if (_)
154
- return h.set(A, _), Te(_);
155
- if ($e(A))
156
- return h.set(A, void 0), A.init;
153
+ const C = r(A);
154
+ if (C)
155
+ return x.set(A, C), Te(C);
156
+ if (Fe(A))
157
+ return x.set(A, void 0), A.init;
157
158
  throw new Error("no atom init");
158
159
  }
159
- const R = j(A);
160
- return h.set(A, R), Te(R);
160
+ const R = S(A);
161
+ return x.set(A, R), Te(R);
161
162
  };
162
- let x, k;
163
- const O = {
163
+ let h, k;
164
+ const z = {
164
165
  get signal() {
165
- return x || (x = new AbortController()), x.signal;
166
+ return h || (h = new AbortController()), h.signal;
166
167
  },
167
168
  get setSelf() {
168
- return (G ? "production" : void 0) !== "production" && !Fe(u) && console.warn("setSelf function cannot be used with read-only atom"), !k && Fe(u) && (k = (...A) => {
169
- if ((G ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
170
- return $(u, ...A);
169
+ return (W ? "production" : void 0) !== "production" && !Ue(u) && console.warn("setSelf function cannot be used with read-only atom"), !k && Ue(u) && (k = (...A) => {
170
+ if ((W ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
171
+ return G(u, ...A);
171
172
  }), k;
172
173
  }
173
174
  };
174
175
  try {
175
- const A = u.read(y, O);
176
- return f(
176
+ const A = u.read(y, z);
177
+ return m(
177
178
  u,
178
179
  A,
179
- h,
180
- () => x == null ? void 0 : x.abort()
180
+ x,
181
+ () => h == null ? void 0 : h.abort()
181
182
  );
182
183
  } catch (A) {
183
- return N(u, A, h);
184
+ return N(u, A, x);
184
185
  } finally {
185
186
  b = !1;
186
187
  }
187
- }, v = (u) => Te(j(u)), S = (u) => {
188
+ }, v = (u) => Te(S(u)), j = (u) => {
188
189
  let g = t.get(u);
189
- return g || (g = K(u)), g;
190
- }, L = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), W = (u) => {
190
+ return g || (g = V(u)), g;
191
+ }, L = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), F = (u) => {
191
192
  const g = t.get(u);
192
- g && L(u, g) && J(u);
193
- }, C = (u) => {
194
- const g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), b = (x) => {
195
- const k = t.get(x);
196
- k == null || k.t.forEach((O) => {
197
- O !== x && (g.set(
198
- O,
199
- (g.get(O) || /* @__PURE__ */ new Set()).add(x)
200
- ), h.set(O, (h.get(O) || 0) + 1), b(O));
193
+ g && L(u, g) && X(u);
194
+ }, B = (u) => {
195
+ const g = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new WeakMap(), b = (h) => {
196
+ const k = t.get(h);
197
+ k == null || k.t.forEach((z) => {
198
+ z !== h && (g.set(
199
+ z,
200
+ (g.get(z) || /* @__PURE__ */ new Set()).add(h)
201
+ ), x.set(z, (x.get(z) || 0) + 1), b(z));
201
202
  });
202
203
  };
203
204
  b(u);
204
- const y = (x) => {
205
- const k = t.get(x);
206
- k == null || k.t.forEach((O) => {
205
+ const y = (h) => {
206
+ const k = t.get(h);
207
+ k == null || k.t.forEach((z) => {
207
208
  var A;
208
- if (O !== x) {
209
- let R = h.get(O);
210
- if (R && h.set(O, --R), !R) {
211
- let _ = !!((A = g.get(O)) != null && A.size);
212
- if (_) {
213
- const te = r(O), Ps = j(O);
214
- _ = !te || !we(te, Ps);
209
+ if (z !== h) {
210
+ let R = x.get(z);
211
+ if (R && x.set(z, --R), !R) {
212
+ let C = !!((A = g.get(z)) != null && A.size);
213
+ if (C) {
214
+ const se = r(z), Ds = S(z);
215
+ C = !se || !Ne(se, Ds);
215
216
  }
216
- _ || g.forEach((te) => te.delete(O));
217
+ C || g.forEach((se) => se.delete(z));
217
218
  }
218
- y(O);
219
+ y(z);
219
220
  }
220
221
  });
221
222
  };
222
223
  y(u);
223
- }, z = (u, ...g) => {
224
- let h = !0;
225
- const b = (k) => Te(j(k)), y = (k, ...O) => {
224
+ }, T = (u, ...g) => {
225
+ let x = !0;
226
+ const b = (k) => Te(S(k)), y = (k, ...z) => {
226
227
  let A;
227
228
  if (k === u) {
228
- if (!$e(k))
229
+ if (!Fe(k))
229
230
  throw new Error("atom not writable");
230
- const R = r(k), _ = f(k, O[0]);
231
- (!R || !we(R, _)) && C(k);
231
+ const R = r(k), C = m(k, z[0]);
232
+ (!R || !Ne(R, C)) && B(k);
232
233
  } else
233
- A = z(k, ...O);
234
- if (!h) {
235
- const R = ie();
236
- (G ? "production" : void 0) !== "production" && n.forEach(
237
- (_) => _({ type: "async-write", flushed: R })
234
+ A = T(k, ...z);
235
+ if (!x) {
236
+ const R = K();
237
+ (W ? "production" : void 0) !== "production" && n.forEach(
238
+ (C) => C({ type: "async-write", flushed: R })
238
239
  );
239
240
  }
240
241
  return A;
241
- }, x = u.write(b, y, ...g);
242
- return h = !1, x;
243
- }, $ = (u, ...g) => {
244
- const h = z(u, ...g), b = ie();
245
- return (G ? "production" : void 0) !== "production" && n.forEach(
242
+ }, h = u.write(b, y, ...g);
243
+ return x = !1, h;
244
+ }, G = (u, ...g) => {
245
+ const x = T(u, ...g), b = K();
246
+ return (W ? "production" : void 0) !== "production" && n.forEach(
246
247
  (y) => y({ type: "write", flushed: b })
247
- ), h;
248
- }, K = (u, g) => {
249
- const h = {
248
+ ), x;
249
+ }, V = (u, g) => {
250
+ const x = {
250
251
  t: new Set(g && [g]),
251
252
  l: /* @__PURE__ */ new Set()
252
253
  };
253
- if (t.set(u, h), (G ? "production" : void 0) !== "production" && i.add(u), j(u).d.forEach((b, y) => {
254
- const x = t.get(y);
255
- x ? x.t.add(u) : y !== u && K(y, u);
256
- }), j(u), Fe(u) && u.onMount) {
257
- const b = u.onMount((...y) => $(u, ...y));
258
- b && (h.u = b);
254
+ if (t.set(u, x), (W ? "production" : void 0) !== "production" && i.add(u), S(u).d.forEach((b, y) => {
255
+ const h = t.get(y);
256
+ h ? h.t.add(u) : y !== u && V(y, u);
257
+ }), S(u), Ue(u) && u.onMount) {
258
+ const b = u.onMount((...y) => G(u, ...y));
259
+ b && (x.u = b);
259
260
  }
260
- return h;
261
- }, J = (u) => {
261
+ return x;
262
+ }, X = (u) => {
262
263
  var g;
263
- const h = (g = t.get(u)) == null ? void 0 : g.u;
264
- h && h(), t.delete(u), (G ? "production" : void 0) !== "production" && i.delete(u);
264
+ const x = (g = t.get(u)) == null ? void 0 : g.u;
265
+ x && x(), t.delete(u), (W ? "production" : void 0) !== "production" && i.delete(u);
265
266
  const b = r(u);
266
- b ? (he(b) && Nt(b.v), b.d.forEach((y, x) => {
267
- if (x !== u) {
268
- const k = t.get(x);
269
- k && (k.t.delete(u), L(x, k) && J(x));
267
+ b ? (xe(b) && kt(b.v), b.d.forEach((y, h) => {
268
+ if (h !== u) {
269
+ const k = t.get(h);
270
+ k && (k.t.delete(u), L(h, k) && X(h));
270
271
  }
271
- })) : (G ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
272
- }, V = (u, g, h) => {
272
+ })) : (W ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
273
+ }, q = (u, g, x) => {
273
274
  const b = new Set(g.d.keys());
274
- h == null || h.forEach((y, x) => {
275
- if (b.has(x)) {
276
- b.delete(x);
275
+ x == null || x.forEach((y, h) => {
276
+ if (b.has(h)) {
277
+ b.delete(h);
277
278
  return;
278
279
  }
279
- const k = t.get(x);
280
- k && (k.t.delete(u), L(x, k) && J(x));
280
+ const k = t.get(h);
281
+ k && (k.t.delete(u), L(h, k) && X(h));
281
282
  }), b.forEach((y) => {
282
- const x = t.get(y);
283
- x ? x.t.add(u) : t.has(u) && K(y, u);
283
+ const h = t.get(y);
284
+ h ? h.t.add(u) : t.has(u) && V(y, u);
284
285
  });
285
- }, ie = () => {
286
+ }, K = () => {
286
287
  let u;
287
- for ((G ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
288
+ for ((W ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
288
289
  const g = Array.from(s);
289
- s.clear(), g.forEach(([h, b]) => {
290
- const y = r(h);
290
+ s.clear(), g.forEach(([x, b]) => {
291
+ const y = r(x);
291
292
  if (y) {
292
- y.d !== (b == null ? void 0 : b.d) && V(h, y, b == null ? void 0 : b.d);
293
- const x = t.get(h);
294
- x && !// TODO This seems pretty hacky. Hope to fix it.
293
+ y.d !== (b == null ? void 0 : b.d) && q(x, y, b == null ? void 0 : b.d);
294
+ const h = t.get(x);
295
+ h && !// TODO This seems pretty hacky. Hope to fix it.
295
296
  // Maybe we could `mountDependencies` in `setAtomState`?
296
- (b && !he(b) && (we(b, y) || St(b, y))) && (x.l.forEach((k) => k()), (G ? "production" : void 0) !== "production" && u.add(h));
297
+ (b && !xe(b) && (Ne(b, y) || At(b, y))) && (h.l.forEach((k) => k()), (W ? "production" : void 0) !== "production" && u.add(x));
297
298
  } else
298
- (G ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
299
+ (W ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
299
300
  });
300
301
  }
301
- if ((G ? "production" : void 0) !== "production")
302
+ if ((W ? "production" : void 0) !== "production")
302
303
  return o.forEach((g) => g("state")), u;
303
304
  }, le = (u, g) => {
304
- const h = S(u), b = ie(), y = h.l;
305
- return y.add(g), (G ? "production" : void 0) !== "production" && (o.forEach((x) => x("sub")), n.forEach(
306
- (x) => x({ type: "sub", flushed: b })
305
+ const x = j(u), b = K(), y = x.l;
306
+ return y.add(g), (W ? "production" : void 0) !== "production" && (o.forEach((h) => h("sub")), n.forEach(
307
+ (h) => h({ type: "sub", flushed: b })
307
308
  )), () => {
308
- y.delete(g), W(u), (G ? "production" : void 0) !== "production" && (o.forEach((x) => x("unsub")), n.forEach((x) => x({ type: "unsub" })));
309
+ y.delete(g), F(u), (W ? "production" : void 0) !== "production" && (o.forEach((h) => h("unsub")), n.forEach((h) => h({ type: "unsub" })));
309
310
  };
310
311
  };
311
- return (G ? "production" : void 0) !== "production" ? {
312
+ return (W ? "production" : void 0) !== "production" ? {
312
313
  get: v,
313
- set: $,
314
+ set: G,
314
315
  sub: le,
315
316
  // store dev methods (these are tentative and subject to change without notice)
316
317
  dev_subscribe_store: (u, g) => g !== 2 ? (console.warn(
@@ -324,27 +325,27 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
324
325
  dev_get_atom_state: (u) => e.get(u),
325
326
  dev_get_mounted: (u) => t.get(u),
326
327
  dev_restore_atoms: (u) => {
327
- for (const [h, b] of u)
328
- $e(h) && (f(h, b), C(h));
329
- const g = ie();
328
+ for (const [x, b] of u)
329
+ Fe(x) && (m(x, b), B(x));
330
+ const g = K();
330
331
  n.forEach(
331
- (h) => h({ type: "restore", flushed: g })
332
+ (x) => x({ type: "restore", flushed: g })
332
333
  );
333
334
  }
334
335
  } : {
335
336
  get: v,
336
- set: $,
337
+ set: G,
337
338
  sub: le
338
339
  };
339
340
  };
340
- let Ue;
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();
341
+ let We;
342
+ const ao = () => (We || (We = no()), We);
343
+ var ro = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
344
+ const io = Es(void 0), qt = (e) => {
345
+ const t = Os(io);
346
+ return (e == null ? void 0 : e.store) || t || ao();
346
347
  };
347
- const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = et.use || ((e) => {
348
+ const lo = (e) => typeof (e == null ? void 0 : e.then) == "function", co = tt.use || ((e) => {
348
349
  if (e.status === "pending")
349
350
  throw e;
350
351
  if (e.status === "fulfilled")
@@ -358,11 +359,11 @@ const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = et.us
358
359
  }
359
360
  ), e);
360
361
  });
361
- function lo(e, t) {
362
- const s = Wt(t), [[o, n, i], r] = Ds(
362
+ function uo(e, t) {
363
+ const s = qt(t), [[o, n, i], r] = Ls(
363
364
  (l) => {
364
- const f = s.get(e);
365
- return Object.is(l[0], f) && l[1] === s && l[2] === e ? l : [f, s, e];
365
+ const m = s.get(e);
366
+ return Object.is(l[0], m) && l[1] === s && l[2] === e ? l : [m, s, e];
366
367
  },
367
368
  void 0,
368
369
  () => [s.get(e), s, e]
@@ -379,86 +380,86 @@ function lo(e, t) {
379
380
  r();
380
381
  });
381
382
  return r(), l;
382
- }, [s, e, p]), Es(c), ro(c) ? io(c) : c;
383
+ }, [s, e, p]), zs(c), lo(c) ? co(c) : c;
383
384
  }
384
- function co(e, t) {
385
- const s = Wt(t);
386
- return F(
385
+ function fo(e, t) {
386
+ const s = qt(t);
387
+ return $(
387
388
  (...n) => {
388
- if ((no ? "production" : void 0) !== "production" && !("write" in e))
389
+ if ((ro ? "production" : void 0) !== "production" && !("write" in e))
389
390
  throw new Error("not writable atom");
390
391
  return s.set(e, ...n);
391
392
  },
392
393
  [s, e]
393
394
  );
394
395
  }
395
- function Er(e, t) {
396
+ function zr(e, t) {
396
397
  return [
397
- lo(e, t),
398
+ uo(e, t),
398
399
  // We do wrong type assertion here, which results in throwing an error.
399
- co(e, t)
400
+ fo(e, t)
400
401
  ];
401
402
  }
402
- var at = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
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);
406
- return At(e, o, s);
407
- }, fo = {}, Ct = (e) => !!e.write, po = (e) => typeof e == "function";
408
- function go(e, t) {
409
- return mo(
403
+ var rt = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
404
+ const Kt = Symbol();
405
+ const Ct = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), mo = /* @__PURE__ */ new WeakMap(), po = (e, t, s) => {
406
+ const o = Ct(() => /* @__PURE__ */ new WeakMap(), mo, t);
407
+ return Ct(e, o, s);
408
+ }, go = {}, Bt = (e) => !!e.write, bo = (e) => typeof e == "function";
409
+ function ho(e, t) {
410
+ return po(
410
411
  () => {
411
412
  const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
412
413
  let p = s.get(r);
413
414
  if (p)
414
415
  return p;
415
- const l = c && s.get(c), f = [], N = [];
416
- return r.forEach((j, v) => {
417
- const S = t ? t(j) : v;
418
- N[v] = S;
419
- const L = l && l.atomList[l.keyList.indexOf(S)];
416
+ const l = c && s.get(c), m = [], N = [];
417
+ return r.forEach((S, v) => {
418
+ const j = t ? t(S) : v;
419
+ N[v] = j;
420
+ const L = l && l.atomList[l.keyList.indexOf(j)];
420
421
  if (L) {
421
- f[v] = L;
422
+ m[v] = L;
422
423
  return;
423
424
  }
424
- const W = (z) => {
425
- const $ = z(n), K = z(e), V = o(K, $ == null ? void 0 : $.arr).keyList.indexOf(S);
426
- if (V < 0 || V >= K.length) {
427
- const ie = r[o(r).keyList.indexOf(S)];
428
- if (ie)
429
- return ie;
425
+ const F = (T) => {
426
+ const G = T(n), V = T(e), q = o(V, G == null ? void 0 : G.arr).keyList.indexOf(j);
427
+ if (q < 0 || q >= V.length) {
428
+ const K = r[o(r).keyList.indexOf(j)];
429
+ if (K)
430
+ return K;
430
431
  throw new Error("splitAtom: index out of bounds for read");
431
432
  }
432
- return K[V];
433
- }, C = (z, $, K) => {
434
- const J = z(n), V = z(e), le = o(V, J == null ? void 0 : J.arr).keyList.indexOf(S);
435
- if (le < 0 || le >= V.length)
433
+ return V[q];
434
+ }, B = (T, G, V) => {
435
+ const X = T(n), q = T(e), le = o(q, X == null ? void 0 : X.arr).keyList.indexOf(j);
436
+ if (le < 0 || le >= q.length)
436
437
  throw new Error("splitAtom: index out of bounds for write");
437
- const u = po(K) ? K(V[le]) : K;
438
- $(e, [
439
- ...V.slice(0, le),
438
+ const u = bo(V) ? V(q[le]) : V;
439
+ G(e, [
440
+ ...q.slice(0, le),
440
441
  u,
441
- ...V.slice(le + 1)
442
+ ...q.slice(le + 1)
442
443
  ]);
443
444
  };
444
- f[v] = Ct(e) ? ne(W, C) : ne(W);
445
- }), l && l.keyList.length === N.length && l.keyList.every((j, v) => j === N[v]) ? p = l : p = { arr: r, atomList: f, keyList: N }, s.set(r, p), p;
446
- }, n = ne((r) => {
445
+ m[v] = Bt(e) ? ae(F, B) : ae(F);
446
+ }), l && l.keyList.length === N.length && l.keyList.every((S, v) => S === N[v]) ? p = l : p = { arr: r, atomList: m, keyList: N }, s.set(r, p), p;
447
+ }, n = ae((r) => {
447
448
  const c = r(n), p = r(e);
448
449
  return o(p, c == null ? void 0 : c.arr);
449
450
  });
450
- (at ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
451
- const i = Ct(e) ? ne(
451
+ (rt ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
452
+ const i = Bt(e) ? ae(
452
453
  (r) => r(n).atomList,
453
454
  (r, c, p) => {
454
455
  switch (p.type) {
455
456
  case "remove": {
456
457
  const l = r(i).indexOf(p.atom);
457
458
  if (l >= 0) {
458
- const f = r(e);
459
+ const m = r(e);
459
460
  c(e, [
460
- ...f.slice(0, l),
461
- ...f.slice(l + 1)
461
+ ...m.slice(0, l),
462
+ ...m.slice(l + 1)
462
463
  ]);
463
464
  }
464
465
  break;
@@ -466,28 +467,28 @@ function go(e, t) {
466
467
  case "insert": {
467
468
  const l = p.before ? r(i).indexOf(p.before) : r(i).length;
468
469
  if (l >= 0) {
469
- const f = r(e);
470
+ const m = r(e);
470
471
  c(e, [
471
- ...f.slice(0, l),
472
+ ...m.slice(0, l),
472
473
  p.value,
473
- ...f.slice(l)
474
+ ...m.slice(l)
474
475
  ]);
475
476
  }
476
477
  break;
477
478
  }
478
479
  case "move": {
479
- const l = r(i).indexOf(p.atom), f = p.before ? r(i).indexOf(p.before) : r(i).length;
480
- if (l >= 0 && f >= 0) {
480
+ const l = r(i).indexOf(p.atom), m = p.before ? r(i).indexOf(p.before) : r(i).length;
481
+ if (l >= 0 && m >= 0) {
481
482
  const N = r(e);
482
- l < f ? c(e, [
483
+ l < m ? c(e, [
483
484
  ...N.slice(0, l),
484
- ...N.slice(l + 1, f),
485
+ ...N.slice(l + 1, m),
485
486
  N[l],
486
- ...N.slice(f)
487
+ ...N.slice(m)
487
488
  ]) : c(e, [
488
- ...N.slice(0, f),
489
+ ...N.slice(0, m),
489
490
  N[l],
490
- ...N.slice(f, l),
491
+ ...N.slice(m, l),
491
492
  ...N.slice(l + 1)
492
493
  ]);
493
494
  }
@@ -495,23 +496,23 @@ function go(e, t) {
495
496
  }
496
497
  }
497
498
  }
498
- ) : ne((r) => r(n).atomList);
499
+ ) : ae((r) => r(n).atomList);
499
500
  return i;
500
501
  },
501
502
  e,
502
- t || fo
503
+ t || go
503
504
  );
504
505
  }
505
- function Or(e) {
506
- const t = Symbol(), s = ne(t);
507
- (at ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
508
- const o = ne(
506
+ function Vr(e) {
507
+ const t = Symbol(), s = ae(t);
508
+ (rt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
509
+ const o = ae(
509
510
  (n, i) => {
510
511
  const r = n(s);
511
512
  return r !== t ? r : e(n, i);
512
513
  },
513
514
  (n, i, r) => {
514
- if (r === Gt)
515
+ if (r === Kt)
515
516
  i(s, t);
516
517
  else if (typeof r == "function") {
517
518
  const c = n(o);
@@ -522,24 +523,24 @@ function Or(e) {
522
523
  );
523
524
  return o;
524
525
  }
525
- const bo = (e) => typeof (e == null ? void 0 : e.then) == "function";
526
- function xo(e) {
526
+ const xo = (e) => typeof (e == null ? void 0 : e.then) == "function";
527
+ function vo(e) {
527
528
  let t, s;
528
529
  const o = {
529
530
  getItem: (n, i) => {
530
531
  var r, c;
531
- const p = (f) => {
532
- if (f = f || "", t !== f) {
532
+ const p = (m) => {
533
+ if (m = m || "", t !== m) {
533
534
  try {
534
- s = JSON.parse(f);
535
+ s = JSON.parse(m);
535
536
  } catch {
536
537
  return i;
537
538
  }
538
- t = f;
539
+ t = m;
539
540
  }
540
541
  return s;
541
542
  }, l = (c = (r = e()) == null ? void 0 : r.getItem(n)) != null ? c : null;
542
- return bo(l) ? l.then(p) : p(l);
543
+ return xo(l) ? l.then(p) : p(l);
543
544
  },
544
545
  setItem: (n, i) => {
545
546
  var r;
@@ -570,59 +571,56 @@ function xo(e) {
570
571
  };
571
572
  }), o;
572
573
  }
573
- const ho = xo(
574
+ const yo = vo(
574
575
  () => typeof window < "u" ? window.localStorage : void 0
575
576
  );
576
- function Be(e, t, s = ho, o) {
577
- const n = o == null ? void 0 : o.unstable_getOnInit, i = ne(
577
+ function Re(e, t, s = yo, o) {
578
+ const n = o == null ? void 0 : o.unstable_getOnInit, i = ae(
578
579
  n ? s.getItem(e, t) : t
579
580
  );
580
- return (at ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
581
+ return (rt ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
581
582
  n || c(s.getItem(e, t));
582
583
  let p;
583
584
  return s.subscribe && (p = s.subscribe(e, c, t)), p;
584
- }, ne(
585
+ }, ae(
585
586
  (c) => c(i),
586
587
  (c, p, l) => {
587
- const f = typeof l == "function" ? l(c(i)) : l;
588
- return f === Gt ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((N) => (p(i, N), s.setItem(e, N))) : (p(i, f), s.setItem(e, f));
588
+ const m = typeof l == "function" ? l(c(i)) : l;
589
+ return m === Kt ? (p(i, t), s.removeItem(e)) : m instanceof Promise ? m.then((N) => (p(i, N), s.setItem(e, N))) : (p(i, m), s.setItem(e, m));
589
590
  }
590
591
  );
591
592
  }
592
- const Ht = w(null);
593
- Ht.debugLabel = "chaiBuilderPropsAtom";
594
- const vo = w({});
595
- vo.debugLabel = "chaiExternalDataAtom";
596
- const Lr = () => !1, yo = (e) => {
597
- const t = e.replace(me, "").split(",");
593
+ const Jt = w(null);
594
+ Jt.debugLabel = "chaiBuilderPropsAtom";
595
+ const wo = w({});
596
+ wo.debugLabel = "chaiExternalDataAtom";
597
+ const $r = () => !1, No = (e) => {
598
+ const t = e.replace(fe, "").split(",");
598
599
  return { baseClasses: t[0], classes: t[1] };
599
- }, Ye = (e, t) => {
600
+ }, _t = Oe((e, t) => {
600
601
  if (!e)
601
602
  return !0;
602
- const s = Oe(e);
603
+ const s = Le(e);
603
604
  return s && pe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
604
- }, wo = (e, t) => {
605
- const s = Oe(t);
605
+ }), ko = Oe((e, t) => {
606
+ const s = Le(t);
606
607
  return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
607
- }, zr = (e) => {
608
- const t = Oe(e);
608
+ }), Fr = Oe((e) => {
609
+ const t = Le(e);
609
610
  return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
610
- }, Vr = (e) => {
611
- const t = Oe(e);
611
+ }), Ur = Oe((e) => {
612
+ const t = Le(e);
612
613
  return t && pe(t, "canDelete") ? t.canDelete() : !0;
613
- }, $r = (e, { dragSource: t, dropTarget: s }) => {
614
- const o = H(t, "data._type", ""), n = H(s, "data._type", "");
615
- return Ye(n, o);
616
- };
617
- function qt(e, t, s) {
618
- const o = D(e, (i) => i._parent === t), n = [];
614
+ });
615
+ function Yt(e, t, s) {
616
+ const o = E(e, (i) => i._parent === t), n = [];
619
617
  for (let i = 0; i < o.length; i++) {
620
- const r = Jt(o[i]);
618
+ const r = Xt(o[i]);
621
619
  if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
622
620
  o[i][c] = `slot:${de()}`;
623
- }), D(e, { _parent: o[i]._id }).length > 0) {
621
+ }), E(e, { _parent: o[i]._id }).length > 0) {
624
622
  const c = de();
625
- n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ae(qt(e, o[i]._id, c)));
623
+ n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(re(Yt(e, o[i]._id, c)));
626
624
  } else
627
625
  n.push({
628
626
  ...o[i],
@@ -631,9 +629,9 @@ function qt(e, t, s) {
631
629
  _parent: s
632
630
  });
633
631
  }
634
- return ae(n);
632
+ return re(n);
635
633
  }
636
- function Kt(e) {
634
+ function Qt(e) {
637
635
  const t = {};
638
636
  e.forEach((o) => {
639
637
  t[o._id] = { ...o, children: [] };
@@ -647,90 +645,90 @@ function Kt(e) {
647
645
  s.push(t[o._id]);
648
646
  }), s;
649
647
  }
650
- const Jt = (e) => {
648
+ const Xt = (e) => {
651
649
  const t = {};
652
650
  return Object.keys(e).forEach((s) => {
653
- Et(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
651
+ zt(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
654
652
  }), t;
655
- }, No = (e, t, s = null) => {
656
- let o = se(e, { _id: t });
653
+ }, So = (e, t, s = null) => {
654
+ let o = oe(e, { _id: t });
657
655
  o = { ...o, oldId: o._id, _id: de() }, s && (o = { ...o, _parent: s });
658
656
  const n = [o];
659
- D(e, { _parent: t }).length > 0 && n.push(ae(qt(e, t, o._id)));
660
- const i = ae(n);
661
- return P(i, (r) => {
662
- const c = r, p = Jt(c);
657
+ E(e, { _parent: t }).length > 0 && n.push(re(Yt(e, t, o._id)));
658
+ const i = re(n);
659
+ return I(i, (r) => {
660
+ const c = r, p = Xt(c);
663
661
  return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
664
- const f = se(i, { oldId: p[l].replace("slot:", "") });
665
- c[l] = `slot:${f._id}`;
666
- }), tt(c, ["global", "oldId"]);
662
+ const m = oe(i, { oldId: p[l].replace("slot:", "") });
663
+ c[l] = `slot:${m._id}`;
664
+ }), st(c, ["global", "oldId"]);
667
665
  });
668
666
  };
669
- const re = w([]);
670
- re.debugLabel = "presentBlocksAtom";
671
- const ko = w((e) => {
672
- const t = e(re);
673
- return Kt([...t]);
667
+ const ie = w([]);
668
+ ie.debugLabel = "presentBlocksAtom";
669
+ const jo = w((e) => {
670
+ const t = e(ie);
671
+ return Qt([...t]);
674
672
  });
675
- ko.debugLabel = "treeDSBlocks";
676
- re.debugLabel = "presentBlocksAtom";
677
- const rt = go(re);
678
- rt.debugLabel = "pageBlocksAtomsAtom";
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 D(t, (s) => pe(s, "blockId"));
673
+ jo.debugLabel = "treeDSBlocks";
674
+ ie.debugLabel = "presentBlocksAtom";
675
+ const it = ho(ie);
676
+ it.debugLabel = "pageBlocksAtomsAtom";
677
+ const Ao = w("");
678
+ Ao.debugLabel = "builderActivePageAtom";
679
+ const Co = w(-1);
680
+ Co.debugLabel = "destinationDropIndexAtom";
681
+ const Zt = w([]);
682
+ Zt.debugLabel = "buildingBlocksAtom";
683
+ const Bo = w((e) => {
684
+ const t = e(Zt);
685
+ return E(t, (s) => pe(s, "blockId"));
688
686
  });
689
- Ao.debugLabel = "globalBlocksAtom";
690
- const it = w([]);
691
- it.debugLabel = "selectedBlockIdsAtom";
692
- const lt = w((e) => {
693
- const t = e(re), s = e(it);
694
- return P(
695
- D(t, ({ _id: o }) => Y(s, o)),
687
+ Bo.debugLabel = "globalBlocksAtom";
688
+ const lt = w([]);
689
+ lt.debugLabel = "selectedBlockIdsAtom";
690
+ const ct = w((e) => {
691
+ const t = e(ie), s = e(lt);
692
+ return I(
693
+ E(t, ({ _id: o }) => Y(s, o)),
696
694
  (o) => ({ ...o })
697
695
  );
698
696
  });
699
- lt.debugLabel = "selectedBlocksAtom";
700
- const ct = w((e) => {
701
- const t = e(lt);
697
+ ct.debugLabel = "selectedBlocksAtom";
698
+ const dt = w((e) => {
699
+ const t = e(ct);
702
700
  return t.length === 0 ? null : t.length === 1 ? t[0] : {
703
701
  type: "Multiple",
704
- id: P(t, "id")
702
+ id: I(t, "id")
705
703
  };
706
704
  });
707
- ct.debugLabel = "selectedBlockAtom";
708
- const Co = (e) => H(e, "parent", null), _o = w((e) => {
709
- const t = e(lt), s = P(t, Co);
710
- return D(e(re), (o) => Y(s, o._id));
705
+ dt.debugLabel = "selectedBlockAtom";
706
+ const _o = (e) => J(e, "parent", null), Ro = w((e) => {
707
+ const t = e(ct), s = I(t, _o);
708
+ return E(e(ie), (o) => Y(s, o._id));
711
709
  });
712
- _o.debugLabel = "selectedBlocksParentsAtom";
713
- const Qt = w(() => !1);
714
- Qt.debugLabel = "selectedBlockFlexChildAtom";
715
- const Xt = w(() => !1);
716
- Xt.debugLabel = "selectedBlockGridChildAtom";
717
- const dt = w("");
718
- dt.debugLabel = "styleStateAtom";
719
- const Zt = Be("styleBreakpoint", "xs");
720
- Zt.debugLabel = "styleBreakpointAtom";
721
- const Fr = () => ({
722
- flexChild: ee(Qt),
723
- gridChild: ee(Xt)
724
- }), Ur = () => ee(ct);
725
- const Ve = () => {
726
- const [e, t] = E(it), s = F(
710
+ Ro.debugLabel = "selectedBlocksParentsAtom";
711
+ const es = w(() => !1);
712
+ es.debugLabel = "selectedBlockFlexChildAtom";
713
+ const ts = w(() => !1);
714
+ ts.debugLabel = "selectedBlockGridChildAtom";
715
+ const ut = w("");
716
+ ut.debugLabel = "styleStateAtom";
717
+ const ss = Re("styleBreakpoint", "xs");
718
+ ss.debugLabel = "styleBreakpointAtom";
719
+ const Wr = () => ({
720
+ flexChild: te(es),
721
+ gridChild: te(ts)
722
+ }), Gr = () => te(dt);
723
+ const $e = () => {
724
+ const [e, t] = O(lt), s = $(
727
725
  (o) => {
728
- t((n) => Y(n, o) ? Ot(n, o) : [...n, o]);
726
+ t((n) => Y(n, o) ? Vt(n, o) : [...n, o]);
729
727
  },
730
728
  [t]
731
729
  );
732
730
  return [e, t, s];
733
- }, _t = (e) => {
731
+ }, Rt = (e) => {
734
732
  switch (e.type) {
735
733
  case "singular":
736
734
  return e.uiSchema;
@@ -741,7 +739,7 @@ const Ve = () => {
741
739
  if (Y(["slot", "styles"], r.type))
742
740
  return;
743
741
  const c = i;
744
- s[c] = _t(r);
742
+ s[c] = Rt(r);
745
743
  }), s;
746
744
  case "list":
747
745
  const { itemProperties: o } = e, n = {
@@ -752,12 +750,12 @@ const Ve = () => {
752
750
  if (Y(["slot", "styles"], r.type))
753
751
  return;
754
752
  const c = i;
755
- n.items[c] = _t(r);
753
+ n.items[c] = Rt(r);
756
754
  }), n;
757
755
  default:
758
756
  return {};
759
757
  }
760
- }, Bt = (e) => {
758
+ }, Pt = (e) => {
761
759
  switch (e.type) {
762
760
  case "singular":
763
761
  return e.schema;
@@ -772,7 +770,7 @@ const Ve = () => {
772
770
  if (Y(["slot", "styles"], p.type))
773
771
  return;
774
772
  const l = c;
775
- o.properties[l] = Bt(p);
773
+ o.properties[l] = Pt(p);
776
774
  }), o;
777
775
  case "list":
778
776
  const { itemProperties: n, title: i } = e, r = {
@@ -788,46 +786,46 @@ const Ve = () => {
788
786
  if (Y(["slot", "styles"], p.type))
789
787
  return;
790
788
  const l = c;
791
- r.items.properties[l] = Bt(p), je(r.items, "title", H(p, "itemTitle", `${i} item`));
789
+ r.items.properties[l] = Pt(p), Se(r.items, "title", J(p, "itemTitle", `${i} item`));
792
790
  }), r;
793
791
  default:
794
792
  return {};
795
793
  }
796
- }, es = (e) => {
794
+ }, os = (e) => {
797
795
  if (!e)
798
796
  return {};
799
797
  const t = {};
800
798
  return Object.keys(e).forEach((s) => {
801
- t[s] = Ro(e[s]);
799
+ t[s] = To(e[s]);
802
800
  }), t;
803
- }, Bo = (e) => {
804
- if (Ee(e.default))
801
+ }, Po = (e) => {
802
+ if (Be(e.default))
805
803
  return [];
806
804
  const { itemProperties: t } = e;
807
- return P(e.default, (s) => {
805
+ return I(e.default, (s) => {
808
806
  const o = { ...s };
809
- return Lt(s, (n, i) => {
810
- pe(t, i) && H(t[i], "i18n", !1) && (o[i] = Vt);
807
+ return $t(s, (n, i) => {
808
+ pe(t, i) && J(t[i], "i18n", !1) && (o[i] = Ut);
811
809
  }), o;
812
810
  });
813
- }, Ro = (e) => {
811
+ }, To = (e) => {
814
812
  switch (e.type) {
815
813
  case "styles":
816
814
  return e.default;
817
815
  case "slot":
818
- return `${qe}${de()}`;
816
+ return `${Je}${de()}`;
819
817
  case "singular":
820
818
  const { i18n: t, schema: s } = e;
821
- return t ? Vt : H(s, "default", "");
819
+ return t ? Ut : J(s, "default", "");
822
820
  case "model":
823
- return es(e.properties);
821
+ return os(e.properties);
824
822
  case "list":
825
- return Bo(e);
823
+ return Po(e);
826
824
  default:
827
825
  return "";
828
826
  }
829
827
  };
830
- var ut = { exports: {} }, Wr = ut.exports;
828
+ var ft = { exports: {} }, Hr = ft.exports;
831
829
  (function(e) {
832
830
  (function() {
833
831
  "use strict";
@@ -839,8 +837,8 @@ var ut = { exports: {} }, Wr = ut.exports;
839
837
  }
840
838
  let s = function() {
841
839
  let o = [], n = -1, i = 0, r = !1, c;
842
- function p(l, f) {
843
- return !l || typeof l[f] != "function" ? this : (r = !0, l[f](), r = !1, this);
840
+ function p(l, m) {
841
+ return !l || typeof l[m] != "function" ? this : (r = !0, l[m](), r = !1, this);
844
842
  }
845
843
  return {
846
844
  /**
@@ -867,8 +865,8 @@ var ut = { exports: {} }, Wr = ut.exports;
867
865
  let l = o[n];
868
866
  if (!l)
869
867
  return this;
870
- const f = l.groupId;
871
- for (; l.groupId === f && (p(l, "undo"), n -= 1, l = o[n], !(!l || !l.groupId)); )
868
+ const m = l.groupId;
869
+ for (; l.groupId === m && (p(l, "undo"), n -= 1, l = o[n], !(!l || !l.groupId)); )
872
870
  ;
873
871
  return c && c(), this;
874
872
  },
@@ -879,8 +877,8 @@ var ut = { exports: {} }, Wr = ut.exports;
879
877
  let l = o[n + 1];
880
878
  if (!l)
881
879
  return this;
882
- const f = l.groupId;
883
- for (; l.groupId === f && (p(l, "redo"), n += 1, l = o[n + 1], !(!l || !l.groupId)); )
880
+ const m = l.groupId;
881
+ for (; l.groupId === m && (p(l, "redo"), n += 1, l = o[n + 1], !(!l || !l.groupId)); )
884
882
  ;
885
883
  return c && c(), this;
886
884
  },
@@ -911,7 +909,7 @@ var ut = { exports: {} }, Wr = ut.exports;
911
909
  * @returns {array}
912
910
  */
913
911
  getCommands: function(l) {
914
- return l ? o.filter((f) => f.groupId === l) : o;
912
+ return l ? o.filter((m) => m.groupId === l) : o;
915
913
  },
916
914
  /**
917
915
  * Returns the index of the actions list.
@@ -931,94 +929,93 @@ var ut = { exports: {} }, Wr = ut.exports;
931
929
  };
932
930
  e.exports ? e.exports = s : window.UndoManager = s;
933
931
  })();
934
- })(ut);
935
- var To = ut.exports;
936
- const Po = /* @__PURE__ */ Fs(To), Io = w(Ke), Mo = w(null), ts = () => {
937
- const [e, t] = E(Io);
932
+ })(ft);
933
+ var Io = ft.exports;
934
+ const Mo = /* @__PURE__ */ Ws(Io), Do = w(Ye), Eo = w(null), ns = () => {
935
+ const [e, t] = O(Do);
938
936
  return [
939
- Ls(e) ? { ...Ke, ...e } : Ke,
937
+ $s(e) ? { ...Ye, ...e } : Ye,
940
938
  t
941
939
  ];
942
- }, Gr = () => E(Mo), Do = w(null), Eo = () => ({ currentPage: ee(Do) });
943
- function Oo(e) {
944
- return Kt(e);
940
+ }, qr = () => O(Eo), Oo = w(null), Lo = () => ({ currentPage: te(Oo) });
941
+ function zo(e) {
942
+ return Qt(e);
945
943
  }
946
- const mt = (e, t) => ae(
944
+ const mt = (e, t) => re(
947
945
  e.map((s) => {
948
946
  if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
949
947
  const o = [...s.children];
950
- return delete s.children, ae([s, ...mt(o, s._id)]);
948
+ return delete s.children, re([s, ...mt(o, s._id)]);
951
949
  }
952
950
  return s;
953
951
  })
954
952
  );
955
- function ft(e, t = !1) {
953
+ function pt(e, t = !1) {
956
954
  for (let s = 0; s < e.length; s++) {
957
955
  const o = e[s];
958
956
  o.global && !t ? e[s] = {
959
957
  type: "GlobalBlock",
960
958
  blockId: o.blockId,
961
- _parent: H(o, "parent", null),
959
+ _parent: J(o, "parent", null),
962
960
  _id: o._id
963
- } : o.children && o.children.length && ft(o.children);
961
+ } : o.children && o.children.length && pt(o.children);
964
962
  }
965
963
  }
966
- function ss(e) {
967
- let t = [], s = D(e, { type: "GlobalBlock" });
968
- return s.length > 0 && (s = P(s, os), ce(s, (o) => {
969
- t = [...t, ...Lo(o)];
964
+ function as(e) {
965
+ let t = [], s = E(e, { type: "GlobalBlock" });
966
+ return s.length > 0 && (s = I(s, rs), ce(s, (o) => {
967
+ t = [...t, ...Vo(o)];
970
968
  })), t;
971
969
  }
972
- function Lo(e) {
970
+ function Vo(e) {
973
971
  let t = [];
974
- const s = H(Z(e), "parent", null);
975
- je(Z(e), "parent", null);
976
- const o = [flatToNestedInstance.convert(ns(e))];
977
- ft(o, !0);
972
+ const s = J(ee(e), "parent", null);
973
+ Se(ee(e), "parent", null);
974
+ const o = [flatToNestedInstance.convert(is(e))];
975
+ pt(o, !0);
978
976
  let n = mt(o, e[0]._id);
979
- return n = je(n, "0.parent", s), t = [...t, n, ...ss(n)], t;
977
+ return n = Se(n, "0.parent", s), t = [...t, n, ...as(n)], t;
980
978
  }
981
- function os(e) {
982
- const t = se(Qe, { _id: e._id });
979
+ function rs(e) {
980
+ const t = oe(Xe, { _id: e._id });
983
981
  if (!t)
984
982
  return [];
985
- const s = [t], o = D(Qe, { _parent: e._id });
986
- return o.length ? ae([...s, ...ae(P(o, os))]) : ae(s);
983
+ const s = [t], o = E(Xe, { _parent: e._id });
984
+ return o.length ? re([...s, ...re(I(o, rs))]) : re(s);
987
985
  }
988
- const ns = (e) => JSON.parse(JSON.stringify(e));
989
- let Qe = [];
990
- function zo(e) {
991
- Qe = e;
992
- const t = Oo(ns(e));
993
- ft(t);
994
- const s = mt(t, null), o = ss(s), n = {};
995
- return ce(o, (i) => je(n, Z(i).blockId, i)), [s, n];
986
+ const is = (e) => JSON.parse(JSON.stringify(e));
987
+ let Xe = [];
988
+ function $o(e) {
989
+ Xe = e;
990
+ const t = zo(is(e));
991
+ pt(t);
992
+ const s = mt(t, null), o = as(s), n = {};
993
+ return ce(o, (i) => Se(n, ee(i).blockId, i)), [s, n];
996
994
  }
997
- const Vo = () => {
998
- const [e] = ts(), { currentPage: t } = Eo(), [s] = ye();
999
- return F(() => {
1000
- const o = P(
995
+ const Fo = () => {
996
+ const [e] = ns(), { currentPage: t } = Lo(), [s] = we();
997
+ return $(() => {
998
+ const o = I(
1001
999
  s,
1002
- (i) => tt(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1003
- ), [n = []] = zo(o);
1000
+ (i) => st(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1001
+ ), [n = []] = $o(o);
1004
1002
  return {
1005
1003
  currentPage: t,
1006
1004
  blocks: n
1007
1005
  };
1008
1006
  }, [e, t, s]);
1009
- }, Ne = (e, t = void 0) => {
1010
- const s = ee(Ht);
1011
- return H(s, e, t);
1012
- }, as = w([]);
1013
- as.debugLabel = "dataProvidersAtom";
1014
- const $o = () => E(as), pt = w("SAVED");
1015
- pt.debugLabel = "pageSyncStateAtom";
1016
- const Hr = () => {
1017
- const [e, t] = E(pt), s = Ne("onSavePage", async (l) => {
1018
- }), o = Ne("onSave", async (l) => {
1019
- }), n = Ne("onSyncStatusChange", (l) => {
1020
- }), i = Vo(), [r] = $o(), [c] = ts();
1021
- return { savePage: Us(
1007
+ }, ve = (e, t = void 0) => {
1008
+ const s = te(Jt);
1009
+ return J(s, e, t);
1010
+ }, ls = w([]);
1011
+ ls.debugLabel = "dataProvidersAtom";
1012
+ const Uo = () => O(ls), gt = w("SAVED");
1013
+ gt.debugLabel = "builderSaveStateAtom";
1014
+ const Kr = () => {
1015
+ const [e, t] = O(gt), s = ve("onSavePage", async (l) => {
1016
+ }), o = ve("onSave", async (l) => {
1017
+ }), n = ve("onSaveStateChange", qe), i = Fo(), [r] = Uo(), [c] = ns();
1018
+ return { savePage: Gs(
1022
1019
  async () => {
1023
1020
  t("SAVING"), n("SAVING");
1024
1021
  const l = i();
@@ -1027,38 +1024,40 @@ const Hr = () => {
1027
1024
  }, 100), !0;
1028
1025
  },
1029
1026
  [i, t, c, o, n],
1030
- 5e3
1027
+ 3e3
1031
1028
  // save only every 5 seconds
1032
- ), syncState: e, setSyncState: t };
1033
- }, oe = new Po();
1034
- oe.setLimit(50);
1035
- const rs = () => {
1036
- const [, e] = E(pt);
1037
- return Ae(() => (oe.setCallback(() => e("UNSAVED")), () => {
1038
- oe.setCallback(zs);
1029
+ ), saveState: e, setSaveState: t };
1030
+ }, ne = new Mo();
1031
+ ne.setLimit(50);
1032
+ const cs = () => {
1033
+ const [, e] = O(gt), t = ve("onSaveStateChange", qe);
1034
+ return Ae(() => (ne.setCallback(() => {
1035
+ e("UNSAVED"), t("UNSAVED");
1036
+ }), () => {
1037
+ ne.setCallback(qe);
1039
1038
  }), []), {
1040
- add: oe.add,
1041
- undo: oe.undo,
1042
- redo: oe.redo,
1043
- hasRedo: oe.hasRedo,
1044
- hasUndo: oe.hasUndo,
1045
- clear: oe.clear
1039
+ add: ne.add,
1040
+ undo: ne.undo,
1041
+ redo: ne.redo,
1042
+ hasRedo: ne.hasRedo,
1043
+ hasUndo: ne.hasUndo,
1044
+ clear: ne.clear
1046
1045
  };
1047
- }, gt = (e, t) => {
1048
- const s = [], o = D(e, (n) => Y(t, n._id) || Y(t, n._parent) ? (s.push(n._id), !1) : !0);
1049
- return Ee(s) ? o : gt(o, s);
1050
- }, qr = () => {
1051
- const [e] = ye(), [t, s] = Ve(), { setNewBlocks: o } = xe();
1052
- return F(
1046
+ }, bt = (e, t) => {
1047
+ const s = [], o = E(e, (n) => Y(t, n._id) || Y(t, n._parent) ? (s.push(n._id), !1) : !0);
1048
+ return Be(s) ? o : bt(o, s);
1049
+ }, Jr = () => {
1050
+ const [e] = we(), [t, s] = $e(), { setNewBlocks: o } = he();
1051
+ return $(
1053
1052
  (n) => {
1054
1053
  var r;
1055
- const i = ((r = se(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
1056
- o(gt(e, n)), setTimeout(() => s(i ? [i] : []), 200);
1054
+ const i = ((r = oe(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
1055
+ o(bt(e, n)), setTimeout(() => s(i ? [i] : []), 200);
1057
1056
  },
1058
1057
  [e, s, t]
1059
1058
  );
1060
1059
  };
1061
- function Fo(e, t, s, o) {
1060
+ function Wo(e, t, s, o) {
1062
1061
  let n = e.filter((c) => !c._parent);
1063
1062
  s && (n = e.filter((c) => c._parent === s));
1064
1063
  const i = o !== void 0 ? o : n.length;
@@ -1073,19 +1072,36 @@ function Fo(e, t, s, o) {
1073
1072
  }
1074
1073
  return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
1075
1074
  }
1076
- const Uo = (e, t, s, o) => {
1075
+ function Tt(e) {
1076
+ const t = [], s = /* @__PURE__ */ new Map();
1077
+ e.forEach((n) => {
1078
+ s.set(n._id, n);
1079
+ });
1080
+ function o(n) {
1081
+ const i = s.get(n);
1082
+ t.includes(i) || (t.push(i), e.forEach((r) => {
1083
+ r._parent === n && o(r._id);
1084
+ }));
1085
+ }
1086
+ return e.forEach((n) => {
1087
+ n._parent || o(n._id);
1088
+ }), t;
1089
+ }
1090
+ const Go = (e, t, s, o) => {
1091
+ if (Be(t))
1092
+ return Tt(e);
1077
1093
  function n(c, p) {
1078
1094
  const l = c.filter((N) => N._parent === p);
1079
- let f = [...l];
1095
+ let m = [...l];
1080
1096
  return l.forEach((N) => {
1081
- f = f.concat(n(c, N._id));
1082
- }), f;
1097
+ m = m.concat(n(c, N._id));
1098
+ }), m;
1083
1099
  }
1084
1100
  const i = t.reduce((c, p) => {
1085
- const l = e.find((f) => f._id === p);
1101
+ const l = e.find((m) => m._id === p);
1086
1102
  if (l) {
1087
- const f = n(e, p);
1088
- c.push(l, ...f);
1103
+ const m = n(e, p);
1104
+ c.push(l, ...m);
1089
1105
  }
1090
1106
  return c;
1091
1107
  }, []);
@@ -1093,88 +1109,101 @@ const Uo = (e, t, s, o) => {
1093
1109
  t.includes(c._id) && (c._parent = s);
1094
1110
  });
1095
1111
  let r;
1096
- return s === void 0 ? r = o : r = e.findIndex((p) => p._id === s) + 1 + o, e.splice(r, 0, ...i), e;
1097
- }, Wo = () => {
1098
- const [, e] = ye();
1112
+ if (!s)
1113
+ r = o;
1114
+ else {
1115
+ const c = e.findIndex((p) => p._id === s);
1116
+ if (c === -1)
1117
+ r = o;
1118
+ else {
1119
+ r = c + 1;
1120
+ let p = 0;
1121
+ for (; p < o && r < e.length; )
1122
+ e[r]._parent === s && p++, r++;
1123
+ }
1124
+ }
1125
+ return e.splice(r, 0, ...i), Tt(e);
1126
+ }, Ho = () => {
1127
+ const [, e] = we();
1099
1128
  return {
1100
1129
  setNewBlocks: (t) => {
1101
1130
  e(t);
1102
1131
  },
1103
1132
  addBlocks: (t, s, o) => {
1104
- e((n) => Fo(n, t, s, o));
1133
+ e((n) => Wo(n, t, s, o));
1105
1134
  },
1106
1135
  removeBlocks: (t) => {
1107
- e((s) => gt(s, t));
1136
+ e((s) => bt(s, t));
1108
1137
  },
1109
1138
  moveBlocks: (t, s, o) => {
1110
- e((n) => Uo(n, t, s, o));
1139
+ e((n) => Go(n, t, s, o));
1111
1140
  },
1112
1141
  updateBlocksProps: (t) => {
1113
1142
  e((s) => {
1114
1143
  const o = t.map((n) => n._id);
1115
1144
  return s.map((n) => {
1116
1145
  if (o.includes(n._id)) {
1117
- const i = se(t, { _id: n._id });
1118
- return { ...n, ...tt(i, "_id") };
1146
+ const i = oe(t, { _id: n._id });
1147
+ return { ...n, ...st(i, "_id") };
1119
1148
  }
1120
1149
  return n;
1121
1150
  });
1122
1151
  });
1123
1152
  }
1124
1153
  };
1125
- }, ye = () => E(re), xe = () => {
1126
- const { add: e } = rs(), [t] = ye(), {
1154
+ }, we = () => O(ie), he = () => {
1155
+ const { add: e } = cs(), [t] = we(), {
1127
1156
  setNewBlocks: s,
1128
1157
  addBlocks: o,
1129
1158
  removeBlocks: n,
1130
1159
  moveBlocks: i,
1131
1160
  updateBlocksProps: r
1132
- } = Wo();
1161
+ } = Ho();
1133
1162
  return {
1134
- moveBlocks: (v, S, L) => {
1135
- const W = P(v, (C) => {
1136
- const $ = t.find((V) => V._id === C)._parent || void 0, J = t.filter((V) => $ ? V._parent === $ : !V._parent).map((V) => V._id).indexOf(C);
1137
- return { _id: C, oldParent: $, oldPosition: J };
1138
- });
1139
- i(v, S, L), e({
1140
- undo: () => ce(W, ({ _id: C, oldParent: z, oldPosition: $ }) => {
1141
- i([C], z, $);
1163
+ moveBlocks: (v, j, L) => {
1164
+ const F = I(v, (T) => {
1165
+ const V = t.find((K) => K._id === T)._parent || null, q = t.filter((K) => V ? K._parent === V : !K._parent).map((K) => K._id).indexOf(T);
1166
+ return { _id: T, oldParent: V, oldPosition: q };
1167
+ }), B = F.find(({ _id: T }) => T === v[0]);
1168
+ B && B.oldParent === j && B.oldPosition === L || (i(v, j, L), e({
1169
+ undo: () => ce(F, ({ _id: T, oldParent: G, oldPosition: V }) => {
1170
+ i([T], G, V);
1142
1171
  }),
1143
- redo: () => i(v, S, L)
1144
- });
1172
+ redo: () => i(v, j, L)
1173
+ }));
1145
1174
  },
1146
- addBlocks: (v, S, L) => {
1147
- o(v, S, L), e({
1148
- undo: () => n(P(v, "_id")),
1149
- redo: () => o(v, S, L)
1175
+ addBlocks: (v, j, L) => {
1176
+ o(v, j, L), e({
1177
+ undo: () => n(I(v, "_id")),
1178
+ redo: () => o(v, j, L)
1150
1179
  });
1151
1180
  },
1152
1181
  removeBlocks: (v) => {
1153
- var C;
1154
- const S = (C = Z(v)) == null ? void 0 : C._parent, W = t.filter((z) => S ? z._parent === S : !z._parent).indexOf(Z(v));
1155
- n(P(v, "_id")), e({
1156
- undo: () => o(v, S, W),
1157
- redo: () => n(P(v, "_id"))
1182
+ var B;
1183
+ const j = (B = ee(v)) == null ? void 0 : B._parent, F = t.filter((T) => j ? T._parent === j : !T._parent).indexOf(ee(v));
1184
+ n(I(v, "_id")), e({
1185
+ undo: () => o(v, j, F),
1186
+ redo: () => n(I(v, "_id"))
1158
1187
  });
1159
1188
  },
1160
- updateBlocks: (v, S, L) => {
1161
- let W = [];
1189
+ updateBlocks: (v, j, L) => {
1190
+ let F = [];
1162
1191
  if (L)
1163
- W = P(v, (C) => ({ _id: C, ...L }));
1192
+ F = I(v, (B) => ({ _id: B, ...L }));
1164
1193
  else {
1165
- const C = Vs(S);
1166
- W = P(v, (z) => {
1167
- const $ = t.find((J) => J._id === z), K = { _id: z };
1168
- return ce(C, (J) => K[J] = $[J]), K;
1194
+ const B = Fs(j);
1195
+ F = I(v, (T) => {
1196
+ const G = t.find((X) => X._id === T), V = { _id: T };
1197
+ return ce(B, (X) => V[X] = G[X]), V;
1169
1198
  });
1170
1199
  }
1171
- r(P(v, (C) => ({ _id: C, ...S }))), e({
1172
- undo: () => r(W),
1173
- redo: () => r(P(v, (C) => ({ _id: C, ...S })))
1200
+ r(I(v, (B) => ({ _id: B, ...j }))), e({
1201
+ undo: () => r(F),
1202
+ redo: () => r(I(v, (B) => ({ _id: B, ...j })))
1174
1203
  });
1175
1204
  },
1176
- updateBlocksRuntime: (v, S) => {
1177
- r(P(v, (L) => ({ _id: L, ...S })));
1205
+ updateBlocksRuntime: (v, j) => {
1206
+ r(I(v, (L) => ({ _id: L, ...j })));
1178
1207
  },
1179
1208
  setNewBlocks: (v) => {
1180
1209
  s(v), e({
@@ -1183,7 +1212,7 @@ const Uo = (e, t, s, o) => {
1183
1212
  });
1184
1213
  }
1185
1214
  };
1186
- }, Go = ge(
1215
+ }, qo = ge(
1187
1216
  "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",
1188
1217
  {
1189
1218
  variants: {
@@ -1202,10 +1231,10 @@ const Uo = (e, t, s, o) => {
1202
1231
  size: "default"
1203
1232
  }
1204
1233
  }
1205
- ), Ho = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: d(Go({ variant: t, size: s, className: e })), ...o }));
1206
- Ho.displayName = $t.Root.displayName;
1207
- const qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1208
- Je.Root,
1234
+ ), Ko = f.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(Wt.Root, { ref: n, className: d(qo({ variant: t, size: s, className: e })), ...o }));
1235
+ Ko.displayName = Wt.Root.displayName;
1236
+ const Jo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1237
+ Qe.Root,
1209
1238
  {
1210
1239
  className: d(
1211
1240
  "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
@@ -1214,7 +1243,7 @@ const qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1214
1243
  ...t,
1215
1244
  ref: s,
1216
1245
  children: /* @__PURE__ */ a.jsx(
1217
- Je.Thumb,
1246
+ Qe.Thumb,
1218
1247
  {
1219
1248
  className: d(
1220
1249
  "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
@@ -1223,8 +1252,8 @@ const qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1223
1252
  )
1224
1253
  }
1225
1254
  ));
1226
- qo.displayName = Je.Root.displayName;
1227
- const bt = ge(
1255
+ Jo.displayName = Qe.Root.displayName;
1256
+ const ht = ge(
1228
1257
  "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",
1229
1258
  {
1230
1259
  variants: {
@@ -1248,17 +1277,17 @@ const bt = ge(
1248
1277
  size: "default"
1249
1278
  }
1250
1279
  }
1251
- ), Ko = m.forwardRef(
1280
+ ), Yo = f.forwardRef(
1252
1281
  ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
1253
- const r = o ? Ws : "button";
1254
- return /* @__PURE__ */ a.jsx(r, { className: d(bt({ variant: t, size: s, className: e })), ref: i, ...n });
1282
+ const r = o ? Hs : "button";
1283
+ return /* @__PURE__ */ a.jsx(r, { className: d(ht({ variant: t, size: s, className: e })), ref: i, ...n });
1255
1284
  }
1256
1285
  );
1257
- Ko.displayName = "Button";
1258
- const Kr = fe.Root, Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(fe.Item, { ref: s, className: d("border-b", e), ...t }));
1259
- Jo.displayName = "AccordionItem";
1260
- const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(fe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1261
- fe.Trigger,
1286
+ Yo.displayName = "Button";
1287
+ const Yr = me.Root, Qo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: d("border-b", e), ...t }));
1288
+ Qo.displayName = "AccordionItem";
1289
+ const Xo = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1290
+ me.Trigger,
1262
1291
  {
1263
1292
  ref: o,
1264
1293
  className: d(
@@ -1268,13 +1297,13 @@ const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1268
1297
  ...s,
1269
1298
  children: [
1270
1299
  t,
1271
- /* @__PURE__ */ a.jsx(Gs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1300
+ /* @__PURE__ */ a.jsx(qs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1272
1301
  ]
1273
1302
  }
1274
1303
  ) }));
1275
- Yo.displayName = fe.Trigger.displayName;
1276
- const Qo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1277
- fe.Content,
1304
+ Xo.displayName = me.Trigger.displayName;
1305
+ const Zo = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1306
+ me.Content,
1278
1307
  {
1279
1308
  ref: o,
1280
1309
  className: d(
@@ -1285,8 +1314,8 @@ const Qo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1285
1314
  children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1286
1315
  }
1287
1316
  ));
1288
- Qo.displayName = fe.Content.displayName;
1289
- const Xo = ge(
1317
+ Zo.displayName = me.Content.displayName;
1318
+ const en = ge(
1290
1319
  "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",
1291
1320
  {
1292
1321
  variants: {
@@ -1299,17 +1328,17 @@ const Xo = ge(
1299
1328
  variant: "default"
1300
1329
  }
1301
1330
  }
1302
- ), Zo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Xo({ variant: t }), e), ...s }));
1303
- Zo.displayName = "Alert";
1304
- const en = m.forwardRef(
1331
+ ), tn = f.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(en({ variant: t }), e), ...s }));
1332
+ tn.displayName = "Alert";
1333
+ const sn = f.forwardRef(
1305
1334
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
1306
1335
  );
1307
- en.displayName = "AlertTitle";
1308
- const tn = m.forwardRef(
1336
+ sn.displayName = "AlertTitle";
1337
+ const on = f.forwardRef(
1309
1338
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
1310
1339
  );
1311
- tn.displayName = "AlertDescription";
1312
- const sn = ge(
1340
+ on.displayName = "AlertDescription";
1341
+ const nn = ge(
1313
1342
  "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",
1314
1343
  {
1315
1344
  variants: {
@@ -1324,10 +1353,10 @@ const sn = ge(
1324
1353
  variant: "default"
1325
1354
  }
1326
1355
  }
1327
- ), Jr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(sn({ variant: t }), e), ...s }), Yr = q.Root, Qr = q.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(q.Portal, { className: d(e), ...t });
1328
- is.displayName = q.Portal.displayName;
1329
- const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1330
- q.Overlay,
1356
+ ), Qr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(nn({ variant: t }), e), ...s }), Xr = H.Root, Zr = H.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(H.Portal, { className: d(e), ...t });
1357
+ ds.displayName = H.Portal.displayName;
1358
+ const us = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1359
+ H.Overlay,
1331
1360
  {
1332
1361
  className: d(
1333
1362
  "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -1337,11 +1366,11 @@ const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1337
1366
  ref: s
1338
1367
  }
1339
1368
  ));
1340
- ls.displayName = q.Overlay.displayName;
1341
- const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
1342
- /* @__PURE__ */ a.jsx(ls, {}),
1369
+ us.displayName = H.Overlay.displayName;
1370
+ const an = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ds, { children: [
1371
+ /* @__PURE__ */ a.jsx(us, {}),
1343
1372
  /* @__PURE__ */ a.jsx(
1344
- q.Content,
1373
+ H.Content,
1345
1374
  {
1346
1375
  ref: s,
1347
1376
  className: d(
@@ -1352,30 +1381,30 @@ const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is
1352
1381
  }
1353
1382
  )
1354
1383
  ] }));
1355
- on.displayName = q.Content.displayName;
1356
- const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1357
- nn.displayName = "AlertDialogHeader";
1358
- const an = ({ 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 });
1359
- an.displayName = "AlertDialogFooter";
1360
- const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1361
- rn.displayName = q.Title.displayName;
1362
- const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1363
- ln.displayName = q.Description.displayName;
1364
- const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Action, { ref: s, className: d(bt(), e), ...t }));
1365
- cn.displayName = q.Action.displayName;
1366
- const dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1367
- q.Cancel,
1384
+ an.displayName = H.Content.displayName;
1385
+ const rn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1386
+ rn.displayName = "AlertDialogHeader";
1387
+ const ln = ({ 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 });
1388
+ ln.displayName = "AlertDialogFooter";
1389
+ const cn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1390
+ cn.displayName = H.Title.displayName;
1391
+ const dn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1392
+ dn.displayName = H.Description.displayName;
1393
+ const un = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Action, { ref: s, className: d(ht(), e), ...t }));
1394
+ un.displayName = H.Action.displayName;
1395
+ const fn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1396
+ H.Cancel,
1368
1397
  {
1369
1398
  ref: s,
1370
- className: d(bt({ variant: "outline" }), "mt-2 sm:mt-0", e),
1399
+ className: d(ht({ variant: "outline" }), "mt-2 sm:mt-0", e),
1371
1400
  ...t
1372
1401
  }
1373
1402
  ));
1374
- dn.displayName = q.Cancel.displayName;
1375
- const cs = T.Root, un = T.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(T.Portal, { className: d(e), ...t });
1376
- ds.displayName = T.Portal.displayName;
1377
- const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1378
- T.Overlay,
1403
+ fn.displayName = H.Cancel.displayName;
1404
+ const fs = P.Root, mn = P.Trigger, ms = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(P.Portal, { className: d(e), ...t });
1405
+ ms.displayName = P.Portal.displayName;
1406
+ const ps = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1407
+ P.Overlay,
1379
1408
  {
1380
1409
  ref: s,
1381
1410
  className: d(
@@ -1385,11 +1414,11 @@ const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1385
1414
  ...t
1386
1415
  }
1387
1416
  ));
1388
- us.displayName = T.Overlay.displayName;
1389
- const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ds, { children: [
1390
- /* @__PURE__ */ a.jsx(us, {}),
1417
+ ps.displayName = P.Overlay.displayName;
1418
+ const xt = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ms, { children: [
1419
+ /* @__PURE__ */ a.jsx(ps, {}),
1391
1420
  /* @__PURE__ */ a.jsxs(
1392
- T.Content,
1421
+ P.Content,
1393
1422
  {
1394
1423
  ref: o,
1395
1424
  className: d(
@@ -1399,53 +1428,53 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1399
1428
  ...s,
1400
1429
  children: [
1401
1430
  t,
1402
- /* @__PURE__ */ a.jsxs(T.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-accent data-[state=open]:text-muted-foreground", children: [
1403
- /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
1431
+ /* @__PURE__ */ a.jsxs(P.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-accent data-[state=open]:text-muted-foreground", children: [
1432
+ /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4" }),
1404
1433
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1405
1434
  ] })
1406
1435
  ]
1407
1436
  }
1408
1437
  )
1409
1438
  ] }));
1410
- xt.displayName = T.Content.displayName;
1411
- const mn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1412
- mn.displayName = "DialogHeader";
1413
- const fn = ({ 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 });
1414
- fn.displayName = "DialogFooter";
1415
- const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1416
- T.Title,
1439
+ xt.displayName = P.Content.displayName;
1440
+ const pn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1441
+ pn.displayName = "DialogHeader";
1442
+ const gn = ({ 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 });
1443
+ gn.displayName = "DialogFooter";
1444
+ const bn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1445
+ P.Title,
1417
1446
  {
1418
1447
  ref: s,
1419
1448
  className: d("text-lg font-semibold leading-none tracking-tight", e),
1420
1449
  ...t
1421
1450
  }
1422
1451
  ));
1423
- pn.displayName = T.Title.displayName;
1424
- const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1425
- gn.displayName = T.Description.displayName;
1426
- const bn = 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 }));
1427
- bn.displayName = "Card";
1428
- const xn = m.forwardRef(
1452
+ bn.displayName = P.Title.displayName;
1453
+ const hn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1454
+ hn.displayName = P.Description.displayName;
1455
+ const xn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1456
+ xn.displayName = "Card";
1457
+ const vn = f.forwardRef(
1429
1458
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
1430
1459
  );
1431
- xn.displayName = "CardHeader";
1432
- const hn = m.forwardRef(
1460
+ vn.displayName = "CardHeader";
1461
+ const yn = f.forwardRef(
1433
1462
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
1434
1463
  );
1435
- hn.displayName = "CardTitle";
1436
- const vn = m.forwardRef(
1464
+ yn.displayName = "CardTitle";
1465
+ const wn = f.forwardRef(
1437
1466
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
1438
1467
  );
1439
- vn.displayName = "CardDescription";
1440
- const yn = m.forwardRef(
1468
+ wn.displayName = "CardDescription";
1469
+ const Nn = f.forwardRef(
1441
1470
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
1442
1471
  );
1443
- yn.displayName = "CardContent";
1444
- const wn = m.forwardRef(
1472
+ Nn.displayName = "CardContent";
1473
+ const kn = f.forwardRef(
1445
1474
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
1446
1475
  );
1447
- wn.displayName = "CardFooter";
1448
- const Nn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1476
+ kn.displayName = "CardFooter";
1477
+ const Sn = f.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1449
1478
  "input",
1450
1479
  {
1451
1480
  type: t,
@@ -1457,10 +1486,10 @@ const Nn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
1457
1486
  ...s
1458
1487
  }
1459
1488
  ));
1460
- Nn.displayName = "Input";
1461
- const kn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: d(kn(), e), ...t }));
1462
- jn.displayName = Ft.Root.displayName;
1463
- const Sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1489
+ Sn.displayName = "Input";
1490
+ const jn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), An = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Gt.Root, { ref: s, className: d(jn(), e), ...t }));
1491
+ An.displayName = Gt.Root.displayName;
1492
+ const Cn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1464
1493
  "textarea",
1465
1494
  {
1466
1495
  className: d(
@@ -1471,14 +1500,14 @@ const Sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1471
1500
  ...t
1472
1501
  }
1473
1502
  ));
1474
- Sn.displayName = "Textarea";
1475
- const An = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ue.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1503
+ Cn.displayName = "Textarea";
1504
+ const Bn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ue.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1476
1505
  /* @__PURE__ */ a.jsx(ue.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1477
- /* @__PURE__ */ a.jsx(ms, {}),
1506
+ /* @__PURE__ */ a.jsx(gs, {}),
1478
1507
  /* @__PURE__ */ a.jsx(ue.Corner, {})
1479
1508
  ] }));
1480
- An.displayName = ue.Root.displayName;
1481
- const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1509
+ Bn.displayName = ue.Root.displayName;
1510
+ const gs = f.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1482
1511
  ue.ScrollAreaScrollbar,
1483
1512
  {
1484
1513
  ref: o,
@@ -1493,8 +1522,8 @@ const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
1493
1522
  children: /* @__PURE__ */ a.jsx(ue.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1494
1523
  }
1495
1524
  ));
1496
- ms.displayName = ue.ScrollAreaScrollbar.displayName;
1497
- const Cn = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1525
+ gs.displayName = ue.ScrollAreaScrollbar.displayName;
1526
+ const _n = be.Root, bs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1498
1527
  be.List,
1499
1528
  {
1500
1529
  ref: s,
@@ -1505,8 +1534,8 @@ const Cn = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
1505
1534
  ...t
1506
1535
  }
1507
1536
  ));
1508
- fs.displayName = be.List.displayName;
1509
- const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1537
+ bs.displayName = be.List.displayName;
1538
+ const Ze = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1510
1539
  be.Trigger,
1511
1540
  {
1512
1541
  ref: s,
@@ -1517,8 +1546,8 @@ const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1517
1546
  ...t
1518
1547
  }
1519
1548
  ));
1520
- Xe.displayName = be.Trigger.displayName;
1521
- const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1549
+ Ze.displayName = be.Trigger.displayName;
1550
+ const et = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1522
1551
  be.Content,
1523
1552
  {
1524
1553
  ref: s,
@@ -1529,9 +1558,9 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1529
1558
  ...t
1530
1559
  }
1531
1560
  ));
1532
- Ze.displayName = be.Content.displayName;
1533
- const Xr = ve.Portal, Zr = ve.Provider, ei = ve.Root, ti = ve.Trigger, _n = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1534
- ve.Content,
1561
+ et.displayName = be.Content.displayName;
1562
+ const ei = ye.Portal, ti = ye.Provider, si = ye.Root, oi = ye.Trigger, Rn = f.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1563
+ ye.Content,
1535
1564
  {
1536
1565
  ref: o,
1537
1566
  sideOffset: t,
@@ -1542,9 +1571,9 @@ const Xr = ve.Portal, Zr = ve.Provider, ei = ve.Root, ti = ve.Trigger, _n = m.fo
1542
1571
  ...s
1543
1572
  }
1544
1573
  ));
1545
- _n.displayName = ve.Content.displayName;
1546
- const si = Se.Root, oi = Se.Trigger, Bn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1547
- Se.Content,
1574
+ Rn.displayName = ye.Content.displayName;
1575
+ const ni = je.Root, ai = je.Trigger, Pn = f.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(je.Portal, { children: /* @__PURE__ */ a.jsx(
1576
+ je.Content,
1548
1577
  {
1549
1578
  ref: n,
1550
1579
  align: t,
@@ -1556,18 +1585,18 @@ const si = Se.Root, oi = Se.Trigger, Bn = m.forwardRef(({ className: e, align: t
1556
1585
  ...o
1557
1586
  }
1558
1587
  ) }));
1559
- Bn.displayName = Se.Content.displayName;
1560
- const ni = B.Menu, ai = B.Group, ri = B.Portal, ii = B.Sub, li = B.RadioGroup, Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1561
- B.Root,
1588
+ Pn.displayName = je.Content.displayName;
1589
+ const ri = _.Menu, ii = _.Group, li = _.Portal, ci = _.Sub, di = _.RadioGroup, Tn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1590
+ _.Root,
1562
1591
  {
1563
1592
  ref: s,
1564
1593
  className: d("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
1565
1594
  ...t
1566
1595
  }
1567
1596
  ));
1568
- Rn.displayName = B.Root.displayName;
1569
- const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1570
- B.Trigger,
1597
+ Tn.displayName = _.Root.displayName;
1598
+ const In = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1599
+ _.Trigger,
1571
1600
  {
1572
1601
  ref: s,
1573
1602
  className: d(
@@ -1577,9 +1606,9 @@ const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1577
1606
  ...t
1578
1607
  }
1579
1608
  ));
1580
- Tn.displayName = B.Trigger.displayName;
1581
- const Pn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1582
- B.SubTrigger,
1609
+ In.displayName = _.Trigger.displayName;
1610
+ const Mn = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1611
+ _.SubTrigger,
1583
1612
  {
1584
1613
  ref: n,
1585
1614
  className: d(
@@ -1590,13 +1619,13 @@ const Pn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
1590
1619
  ...o,
1591
1620
  children: [
1592
1621
  s,
1593
- /* @__PURE__ */ a.jsx(ot, { className: "ml-auto h-4 w-4" })
1622
+ /* @__PURE__ */ a.jsx(nt, { className: "ml-auto h-4 w-4" })
1594
1623
  ]
1595
1624
  }
1596
1625
  ));
1597
- Pn.displayName = B.SubTrigger.displayName;
1598
- const In = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1599
- B.SubContent,
1626
+ Mn.displayName = _.SubTrigger.displayName;
1627
+ const Dn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1628
+ _.SubContent,
1600
1629
  {
1601
1630
  ref: s,
1602
1631
  className: d(
@@ -1606,9 +1635,9 @@ const In = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1606
1635
  ...t
1607
1636
  }
1608
1637
  ));
1609
- In.displayName = B.SubContent.displayName;
1610
- const Mn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(B.Portal, { children: /* @__PURE__ */ a.jsx(
1611
- B.Content,
1638
+ Dn.displayName = _.SubContent.displayName;
1639
+ const En = f.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(_.Portal, { children: /* @__PURE__ */ a.jsx(
1640
+ _.Content,
1612
1641
  {
1613
1642
  ref: i,
1614
1643
  align: t,
@@ -1621,9 +1650,9 @@ const Mn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
1621
1650
  ...n
1622
1651
  }
1623
1652
  ) }));
1624
- Mn.displayName = B.Content.displayName;
1625
- const Dn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1626
- B.Item,
1653
+ En.displayName = _.Content.displayName;
1654
+ const On = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1655
+ _.Item,
1627
1656
  {
1628
1657
  ref: o,
1629
1658
  className: d(
@@ -1634,9 +1663,9 @@ const Dn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1634
1663
  ...s
1635
1664
  }
1636
1665
  ));
1637
- Dn.displayName = B.Item.displayName;
1638
- const En = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1639
- B.CheckboxItem,
1666
+ On.displayName = _.Item.displayName;
1667
+ const Ln = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1668
+ _.CheckboxItem,
1640
1669
  {
1641
1670
  ref: n,
1642
1671
  className: d(
@@ -1646,14 +1675,14 @@ const En = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1646
1675
  checked: s,
1647
1676
  ...o,
1648
1677
  children: [
1649
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(B.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
1678
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(_.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ze, { className: "h-4 w-4" }) }) }),
1650
1679
  t
1651
1680
  ]
1652
1681
  }
1653
1682
  ));
1654
- En.displayName = B.CheckboxItem.displayName;
1655
- const On = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1656
- B.RadioItem,
1683
+ Ln.displayName = _.CheckboxItem.displayName;
1684
+ const zn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1685
+ _.RadioItem,
1657
1686
  {
1658
1687
  ref: o,
1659
1688
  className: d(
@@ -1662,27 +1691,27 @@ const On = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1662
1691
  ),
1663
1692
  ...s,
1664
1693
  children: [
1665
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(B.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
1694
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(_.ItemIndicator, { children: /* @__PURE__ */ a.jsx(at, { className: "h-4 w-4 fill-current" }) }) }),
1666
1695
  t
1667
1696
  ]
1668
1697
  }
1669
1698
  ));
1670
- On.displayName = B.RadioItem.displayName;
1671
- const Ln = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1672
- B.Label,
1699
+ zn.displayName = _.RadioItem.displayName;
1700
+ const Vn = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1701
+ _.Label,
1673
1702
  {
1674
1703
  ref: o,
1675
1704
  className: d("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
1676
1705
  ...s
1677
1706
  }
1678
1707
  ));
1679
- Ln.displayName = B.Label.displayName;
1680
- const zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1681
- zn.displayName = B.Separator.displayName;
1682
- const Vn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1683
- Vn.displayname = "MenubarShortcut";
1684
- const ci = ze.Root, di = ze.Trigger, $n = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1685
- ze.Content,
1708
+ Vn.displayName = _.Label.displayName;
1709
+ const $n = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1710
+ $n.displayName = _.Separator.displayName;
1711
+ const Fn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1712
+ Fn.displayname = "MenubarShortcut";
1713
+ const ui = Ve.Root, fi = Ve.Trigger, Un = f.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1714
+ Ve.Content,
1686
1715
  {
1687
1716
  ref: n,
1688
1717
  align: t,
@@ -1694,8 +1723,8 @@ const ci = ze.Root, di = ze.Trigger, $n = m.forwardRef(({ className: e, align: t
1694
1723
  ...o
1695
1724
  }
1696
1725
  ));
1697
- $n.displayName = ze.Content.displayName;
1698
- const ui = U.Root, mi = U.Group, fi = U.Value, Fn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1726
+ Un.displayName = Ve.Content.displayName;
1727
+ const mi = U.Root, pi = U.Group, gi = U.Value, Wn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1699
1728
  U.Trigger,
1700
1729
  {
1701
1730
  ref: o,
@@ -1706,12 +1735,12 @@ const ui = U.Root, mi = U.Group, fi = U.Value, Fn = m.forwardRef(({ className: e
1706
1735
  ...s,
1707
1736
  children: [
1708
1737
  t,
1709
- /* @__PURE__ */ a.jsx(U.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
1738
+ /* @__PURE__ */ a.jsx(U.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Ks, { className: "h-4 w-4 opacity-50" }) })
1710
1739
  ]
1711
1740
  }
1712
1741
  ));
1713
- Fn.displayName = U.Trigger.displayName;
1714
- const Un = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(U.Portal, { children: /* @__PURE__ */ a.jsx(
1742
+ Wn.displayName = U.Trigger.displayName;
1743
+ const Gn = f.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(U.Portal, { children: /* @__PURE__ */ a.jsx(
1715
1744
  U.Content,
1716
1745
  {
1717
1746
  ref: n,
@@ -1734,10 +1763,10 @@ const Un = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
1734
1763
  )
1735
1764
  }
1736
1765
  ) }));
1737
- Un.displayName = U.Content.displayName;
1738
- const Wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
1739
- Wn.displayName = U.Label.displayName;
1740
- const Gn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1766
+ Gn.displayName = U.Content.displayName;
1767
+ const Hn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
1768
+ Hn.displayName = U.Label.displayName;
1769
+ const qn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1741
1770
  U.Item,
1742
1771
  {
1743
1772
  ref: o,
@@ -1747,18 +1776,18 @@ const Gn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1747
1776
  ),
1748
1777
  ...s,
1749
1778
  children: [
1750
- /* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(U.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
1779
+ /* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(U.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ze, { className: "h-4 w-4" }) }) }),
1751
1780
  /* @__PURE__ */ a.jsx(U.ItemText, { children: t })
1752
1781
  ]
1753
1782
  }
1754
1783
  ));
1755
- Gn.displayName = U.Item.displayName;
1756
- const Hn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1757
- Hn.displayName = U.Separator.displayName;
1758
- const pi = T.Root, gi = T.Trigger, bi = T.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(T.Portal, { className: d(e), ...t });
1759
- ps.displayName = T.Portal.displayName;
1760
- const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1761
- T.Overlay,
1784
+ qn.displayName = U.Item.displayName;
1785
+ const Kn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1786
+ Kn.displayName = U.Separator.displayName;
1787
+ const bi = P.Root, hi = P.Trigger, xi = P.Close, hs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(P.Portal, { className: d(e), ...t });
1788
+ hs.displayName = P.Portal.displayName;
1789
+ const xs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1790
+ P.Overlay,
1762
1791
  {
1763
1792
  className: d(
1764
1793
  "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -1768,8 +1797,8 @@ const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1768
1797
  ref: s
1769
1798
  }
1770
1799
  ));
1771
- gs.displayName = T.Overlay.displayName;
1772
- const qn = ge(
1800
+ xs.displayName = P.Overlay.displayName;
1801
+ const Jn = ge(
1773
1802
  "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",
1774
1803
  {
1775
1804
  variants: {
@@ -1784,29 +1813,29 @@ const qn = ge(
1784
1813
  side: "right"
1785
1814
  }
1786
1815
  }
1787
- ), Kn = m.forwardRef(
1788
- ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(ps, { children: [
1789
- /* @__PURE__ */ a.jsx(gs, {}),
1790
- /* @__PURE__ */ a.jsxs(T.Content, { ref: n, className: d(qn({ side: e }), t), ...o, children: [
1816
+ ), Yn = f.forwardRef(
1817
+ ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(hs, { children: [
1818
+ /* @__PURE__ */ a.jsx(xs, {}),
1819
+ /* @__PURE__ */ a.jsxs(P.Content, { ref: n, className: d(Jn({ side: e }), t), ...o, children: [
1791
1820
  s,
1792
- /* @__PURE__ */ a.jsxs(T.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: [
1793
- /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
1821
+ /* @__PURE__ */ a.jsxs(P.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: [
1822
+ /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4" }),
1794
1823
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1795
1824
  ] })
1796
1825
  ] })
1797
1826
  ] })
1798
1827
  );
1799
- Kn.displayName = T.Content.displayName;
1800
- const Jn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1801
- Jn.displayName = "SheetHeader";
1802
- const Yn = ({ 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 });
1803
- Yn.displayName = "SheetFooter";
1804
- const Qn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1805
- Qn.displayName = T.Title.displayName;
1806
- const Xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1807
- Xn.displayName = T.Description.displayName;
1808
- const xi = I.Root, hi = I.Trigger, vi = I.Group, yi = I.Portal, wi = I.Sub, Ni = I.RadioGroup, Zn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1809
- I.SubTrigger,
1828
+ Yn.displayName = P.Content.displayName;
1829
+ const Qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1830
+ Qn.displayName = "SheetHeader";
1831
+ const Xn = ({ 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 });
1832
+ Xn.displayName = "SheetFooter";
1833
+ const Zn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1834
+ Zn.displayName = P.Title.displayName;
1835
+ const ea = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1836
+ ea.displayName = P.Description.displayName;
1837
+ const vi = M.Root, yi = M.Trigger, wi = M.Group, Ni = M.Portal, ki = M.Sub, Si = M.RadioGroup, ta = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1838
+ M.SubTrigger,
1810
1839
  {
1811
1840
  ref: n,
1812
1841
  className: d(
@@ -1817,13 +1846,13 @@ const xi = I.Root, hi = I.Trigger, vi = I.Group, yi = I.Portal, wi = I.Sub, Ni =
1817
1846
  ...o,
1818
1847
  children: [
1819
1848
  s,
1820
- /* @__PURE__ */ a.jsx(ot, { className: "ml-auto h-4 w-4" })
1849
+ /* @__PURE__ */ a.jsx(nt, { className: "ml-auto h-4 w-4" })
1821
1850
  ]
1822
1851
  }
1823
1852
  ));
1824
- Zn.displayName = I.SubTrigger.displayName;
1825
- const ea = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1826
- I.SubContent,
1853
+ ta.displayName = M.SubTrigger.displayName;
1854
+ const sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1855
+ M.SubContent,
1827
1856
  {
1828
1857
  ref: s,
1829
1858
  className: d(
@@ -1833,9 +1862,9 @@ const ea = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1833
1862
  ...t
1834
1863
  }
1835
1864
  ));
1836
- ea.displayName = I.SubContent.displayName;
1837
- const ta = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(I.Portal, { children: /* @__PURE__ */ a.jsx(
1838
- I.Content,
1865
+ sa.displayName = M.SubContent.displayName;
1866
+ const oa = f.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(M.Portal, { children: /* @__PURE__ */ a.jsx(
1867
+ M.Content,
1839
1868
  {
1840
1869
  ref: o,
1841
1870
  sideOffset: t,
@@ -1847,9 +1876,9 @@ const ta = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
1847
1876
  ...s
1848
1877
  }
1849
1878
  ) }));
1850
- ta.displayName = I.Content.displayName;
1851
- const sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1852
- I.Item,
1879
+ oa.displayName = M.Content.displayName;
1880
+ const na = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1881
+ M.Item,
1853
1882
  {
1854
1883
  ref: o,
1855
1884
  className: d(
@@ -1860,9 +1889,9 @@ const sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1860
1889
  ...s
1861
1890
  }
1862
1891
  ));
1863
- sa.displayName = I.Item.displayName;
1864
- const oa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1865
- I.CheckboxItem,
1892
+ na.displayName = M.Item.displayName;
1893
+ const aa = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1894
+ M.CheckboxItem,
1866
1895
  {
1867
1896
  ref: n,
1868
1897
  className: d(
@@ -1872,14 +1901,14 @@ const oa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1872
1901
  checked: s,
1873
1902
  ...o,
1874
1903
  children: [
1875
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(I.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
1904
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ze, { className: "h-4 w-4" }) }) }),
1876
1905
  t
1877
1906
  ]
1878
1907
  }
1879
1908
  ));
1880
- oa.displayName = I.CheckboxItem.displayName;
1881
- const na = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1882
- I.RadioItem,
1909
+ aa.displayName = M.CheckboxItem.displayName;
1910
+ const ra = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1911
+ M.RadioItem,
1883
1912
  {
1884
1913
  ref: o,
1885
1914
  className: d(
@@ -1888,27 +1917,27 @@ const na = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1888
1917
  ),
1889
1918
  ...s,
1890
1919
  children: [
1891
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(I.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
1920
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(at, { className: "h-4 w-4 fill-current" }) }) }),
1892
1921
  t
1893
1922
  ]
1894
1923
  }
1895
1924
  ));
1896
- na.displayName = I.RadioItem.displayName;
1897
- const aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1898
- I.Label,
1925
+ ra.displayName = M.RadioItem.displayName;
1926
+ const ia = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1927
+ M.Label,
1899
1928
  {
1900
1929
  ref: o,
1901
1930
  className: d("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
1902
1931
  ...s
1903
1932
  }
1904
1933
  ));
1905
- aa.displayName = I.Label.displayName;
1906
- const ra = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1907
- ra.displayName = I.Separator.displayName;
1908
- const ia = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1909
- ia.displayName = "DropdownMenuShortcut";
1910
- const la = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1911
- Ut.Root,
1934
+ ia.displayName = M.Label.displayName;
1935
+ const la = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1936
+ la.displayName = M.Separator.displayName;
1937
+ const ca = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1938
+ ca.displayName = "DropdownMenuShortcut";
1939
+ const da = f.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1940
+ Ht.Root,
1912
1941
  {
1913
1942
  ref: n,
1914
1943
  decorative: s,
@@ -1917,28 +1946,28 @@ const la = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
1917
1946
  ...o
1918
1947
  }
1919
1948
  ));
1920
- la.displayName = Ut.Root.displayName;
1921
- const ca = 1, da = 1e6;
1922
- let We = 0;
1923
- function ua() {
1924
- return We = (We + 1) % Number.MAX_VALUE, We.toString();
1949
+ da.displayName = Ht.Root.displayName;
1950
+ const ua = 1, fa = 1e6;
1951
+ let Ge = 0;
1952
+ function ma() {
1953
+ return Ge = (Ge + 1) % Number.MAX_VALUE, Ge.toString();
1925
1954
  }
1926
- const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1927
- if (Ge.has(e))
1955
+ const He = /* @__PURE__ */ new Map(), It = (e) => {
1956
+ if (He.has(e))
1928
1957
  return;
1929
1958
  const t = setTimeout(() => {
1930
- Ge.delete(e), ke({
1959
+ He.delete(e), ke({
1931
1960
  type: "REMOVE_TOAST",
1932
1961
  toastId: e
1933
1962
  });
1934
- }, da);
1935
- Ge.set(e, t);
1936
- }, ma = (e, t) => {
1963
+ }, fa);
1964
+ He.set(e, t);
1965
+ }, pa = (e, t) => {
1937
1966
  switch (t.type) {
1938
1967
  case "ADD_TOAST":
1939
1968
  return {
1940
1969
  ...e,
1941
- toasts: [t.toast, ...e.toasts].slice(0, ca)
1970
+ toasts: [t.toast, ...e.toasts].slice(0, ua)
1942
1971
  };
1943
1972
  case "UPDATE_TOAST":
1944
1973
  return {
@@ -1947,8 +1976,8 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1947
1976
  };
1948
1977
  case "DISMISS_TOAST": {
1949
1978
  const { toastId: s } = t;
1950
- return s ? Rt(s) : e.toasts.forEach((o) => {
1951
- Rt(o.id);
1979
+ return s ? It(s) : e.toasts.forEach((o) => {
1980
+ It(o.id);
1952
1981
  }), {
1953
1982
  ...e,
1954
1983
  toasts: e.toasts.map(
@@ -1968,15 +1997,15 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1968
1997
  toasts: e.toasts.filter((s) => s.id !== t.toastId)
1969
1998
  };
1970
1999
  }
1971
- }, Ie = [];
1972
- let Me = { toasts: [] };
2000
+ }, Me = [];
2001
+ let De = { toasts: [] };
1973
2002
  function ke(e) {
1974
- Me = ma(Me, e), Ie.forEach((t) => {
1975
- t(Me);
2003
+ De = pa(De, e), Me.forEach((t) => {
2004
+ t(De);
1976
2005
  });
1977
2006
  }
1978
- function fa({ ...e }) {
1979
- const t = ua(), s = (n) => ke({
2007
+ function ga({ ...e }) {
2008
+ const t = ma(), s = (n) => ke({
1980
2009
  type: "UPDATE_TOAST",
1981
2010
  toast: { ...n, id: t }
1982
2011
  }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
@@ -1996,19 +2025,19 @@ function fa({ ...e }) {
1996
2025
  update: s
1997
2026
  };
1998
2027
  }
1999
- function bs() {
2000
- const [e, t] = m.useState(Me);
2001
- return m.useEffect(() => (Ie.push(t), () => {
2002
- const s = Ie.indexOf(t);
2003
- s > -1 && Ie.splice(s, 1);
2028
+ function vs() {
2029
+ const [e, t] = f.useState(De);
2030
+ return f.useEffect(() => (Me.push(t), () => {
2031
+ const s = Me.indexOf(t);
2032
+ s > -1 && Me.splice(s, 1);
2004
2033
  }), [e]), {
2005
2034
  ...e,
2006
- toast: fa,
2035
+ toast: ga,
2007
2036
  dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
2008
2037
  };
2009
2038
  }
2010
- const pa = X.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2011
- X.Viewport,
2039
+ const ba = Z.Provider, ys = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2040
+ Z.Viewport,
2012
2041
  {
2013
2042
  ref: s,
2014
2043
  className: d(
@@ -2018,8 +2047,8 @@ const pa = X.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
2018
2047
  ...t
2019
2048
  }
2020
2049
  ));
2021
- xs.displayName = X.Viewport.displayName;
2022
- const ga = ge(
2050
+ ys.displayName = Z.Viewport.displayName;
2051
+ const ha = ge(
2023
2052
  "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",
2024
2053
  {
2025
2054
  variants: {
@@ -2032,10 +2061,10 @@ const ga = ge(
2032
2061
  variant: "default"
2033
2062
  }
2034
2063
  }
2035
- ), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(X.Root, { ref: o, className: d(ga({ variant: t }), e), ...s }));
2036
- hs.displayName = X.Root.displayName;
2037
- const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2038
- X.Action,
2064
+ ), ws = f.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Z.Root, { ref: o, className: d(ha({ variant: t }), e), ...s }));
2065
+ ws.displayName = Z.Root.displayName;
2066
+ const xa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2067
+ Z.Action,
2039
2068
  {
2040
2069
  ref: s,
2041
2070
  className: d(
@@ -2045,9 +2074,9 @@ const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2045
2074
  ...t
2046
2075
  }
2047
2076
  ));
2048
- ba.displayName = X.Action.displayName;
2049
- const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2050
- X.Close,
2077
+ xa.displayName = Z.Action.displayName;
2078
+ const Ns = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2079
+ Z.Close,
2051
2080
  {
2052
2081
  ref: s,
2053
2082
  className: d(
@@ -2056,29 +2085,29 @@ const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2056
2085
  ),
2057
2086
  "toast-close": "",
2058
2087
  ...t,
2059
- children: /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" })
2088
+ children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4" })
2060
2089
  }
2061
2090
  ));
2062
- vs.displayName = X.Close.displayName;
2063
- const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(X.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2064
- ys.displayName = X.Title.displayName;
2065
- const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(X.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
2066
- ws.displayName = X.Description.displayName;
2067
- function ki() {
2068
- const { toasts: e } = bs();
2069
- return /* @__PURE__ */ a.jsxs(pa, { children: [
2070
- e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(hs, { ...i, children: [
2091
+ Ns.displayName = Z.Close.displayName;
2092
+ const ks = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Z.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2093
+ ks.displayName = Z.Title.displayName;
2094
+ const Ss = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Z.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
2095
+ Ss.displayName = Z.Description.displayName;
2096
+ function ji() {
2097
+ const { toasts: e } = vs();
2098
+ return /* @__PURE__ */ a.jsxs(ba, { children: [
2099
+ e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(ws, { ...i, children: [
2071
2100
  /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
2072
- s && /* @__PURE__ */ a.jsx(ys, { children: s }),
2073
- o && /* @__PURE__ */ a.jsx(ws, { children: o })
2101
+ s && /* @__PURE__ */ a.jsx(ks, { children: s }),
2102
+ o && /* @__PURE__ */ a.jsx(Ss, { children: o })
2074
2103
  ] }),
2075
2104
  n,
2076
- /* @__PURE__ */ a.jsx(vs, {})
2105
+ /* @__PURE__ */ a.jsx(Ns, {})
2077
2106
  ] }, t)),
2078
- /* @__PURE__ */ a.jsx(xs, {})
2107
+ /* @__PURE__ */ a.jsx(ys, {})
2079
2108
  ] });
2080
2109
  }
2081
- const ji = ({ 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(
2110
+ const Ai = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), js = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2082
2111
  Q,
2083
2112
  {
2084
2113
  ref: s,
@@ -2089,9 +2118,9 @@ const ji = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
2089
2118
  ...t
2090
2119
  }
2091
2120
  ));
2092
- Ns.displayName = Q.displayName;
2093
- const Si = ({ 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 }) }) }), xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2094
- /* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2121
+ js.displayName = Q.displayName;
2122
+ const Ci = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(fs, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(js, { 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 }) }) }), va = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2123
+ /* @__PURE__ */ a.jsx(Js, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2095
2124
  /* @__PURE__ */ a.jsx(
2096
2125
  Q.Input,
2097
2126
  {
@@ -2104,8 +2133,8 @@ const Si = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children
2104
2133
  }
2105
2134
  )
2106
2135
  ] }));
2107
- xa.displayName = Q.Input.displayName;
2108
- const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2136
+ va.displayName = Q.Input.displayName;
2137
+ const ya = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2109
2138
  Q.List,
2110
2139
  {
2111
2140
  ref: s,
@@ -2113,10 +2142,10 @@ const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2113
2142
  ...t
2114
2143
  }
2115
2144
  ));
2116
- ha.displayName = Q.List.displayName;
2117
- const va = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(Q.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2118
- va.displayName = Q.Empty.displayName;
2119
- const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2145
+ ya.displayName = Q.List.displayName;
2146
+ const wa = f.forwardRef((e, t) => /* @__PURE__ */ a.jsx(Q.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2147
+ wa.displayName = Q.Empty.displayName;
2148
+ const Na = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2120
2149
  Q.Group,
2121
2150
  {
2122
2151
  ref: s,
@@ -2127,10 +2156,10 @@ const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2127
2156
  ...t
2128
2157
  }
2129
2158
  ));
2130
- ya.displayName = Q.Group.displayName;
2131
- const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Q.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2132
- wa.displayName = Q.Separator.displayName;
2133
- const Na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2159
+ Na.displayName = Q.Group.displayName;
2160
+ const ka = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Q.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2161
+ ka.displayName = Q.Separator.displayName;
2162
+ const Sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2134
2163
  Q.Item,
2135
2164
  {
2136
2165
  ref: s,
@@ -2141,11 +2170,11 @@ const Na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2141
2170
  ...t
2142
2171
  }
2143
2172
  ));
2144
- Na.displayName = Q.Item.displayName;
2145
- const ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2146
- ka.displayName = "CommandShortcut";
2147
- const Ai = M.Root, Ci = M.Trigger, _i = M.Group, Bi = M.Portal, Ri = M.Sub, Ti = M.RadioGroup, ja = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2148
- M.SubTrigger,
2173
+ Sa.displayName = Q.Item.displayName;
2174
+ const ja = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2175
+ ja.displayName = "CommandShortcut";
2176
+ const Bi = D.Root, _i = D.Trigger, Ri = D.Group, Pi = D.Portal, Ti = D.Sub, Ii = D.RadioGroup, Aa = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2177
+ D.SubTrigger,
2149
2178
  {
2150
2179
  ref: n,
2151
2180
  className: d(
@@ -2156,13 +2185,13 @@ const Ai = M.Root, Ci = M.Trigger, _i = M.Group, Bi = M.Portal, Ri = M.Sub, Ti =
2156
2185
  ...o,
2157
2186
  children: [
2158
2187
  s,
2159
- /* @__PURE__ */ a.jsx(ot, { className: "ml-auto h-4 w-4" })
2188
+ /* @__PURE__ */ a.jsx(nt, { className: "ml-auto h-4 w-4" })
2160
2189
  ]
2161
2190
  }
2162
2191
  ));
2163
- ja.displayName = M.SubTrigger.displayName;
2164
- const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2165
- M.SubContent,
2192
+ Aa.displayName = D.SubTrigger.displayName;
2193
+ const Ca = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2194
+ D.SubContent,
2166
2195
  {
2167
2196
  ref: s,
2168
2197
  className: d(
@@ -2172,9 +2201,9 @@ const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2172
2201
  ...t
2173
2202
  }
2174
2203
  ));
2175
- Sa.displayName = M.SubContent.displayName;
2176
- const Aa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Portal, { children: /* @__PURE__ */ a.jsx(
2177
- M.Content,
2204
+ Ca.displayName = D.SubContent.displayName;
2205
+ const Ba = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(D.Portal, { children: /* @__PURE__ */ a.jsx(
2206
+ D.Content,
2178
2207
  {
2179
2208
  ref: s,
2180
2209
  className: d(
@@ -2184,9 +2213,9 @@ const Aa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.P
2184
2213
  ...t
2185
2214
  }
2186
2215
  ) }));
2187
- Aa.displayName = M.Content.displayName;
2188
- const Ca = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2189
- M.Item,
2216
+ Ba.displayName = D.Content.displayName;
2217
+ const _a = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2218
+ D.Item,
2190
2219
  {
2191
2220
  ref: o,
2192
2221
  className: d(
@@ -2197,9 +2226,9 @@ const Ca = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2197
2226
  ...s
2198
2227
  }
2199
2228
  ));
2200
- Ca.displayName = M.Item.displayName;
2201
- const _a = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2202
- M.CheckboxItem,
2229
+ _a.displayName = D.Item.displayName;
2230
+ const Ra = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2231
+ D.CheckboxItem,
2203
2232
  {
2204
2233
  ref: n,
2205
2234
  className: d(
@@ -2209,14 +2238,14 @@ const _a = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2209
2238
  checked: s,
2210
2239
  ...o,
2211
2240
  children: [
2212
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
2241
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(D.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ze, { className: "h-4 w-4" }) }) }),
2213
2242
  t
2214
2243
  ]
2215
2244
  }
2216
2245
  ));
2217
- _a.displayName = M.CheckboxItem.displayName;
2218
- const Ba = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2219
- M.RadioItem,
2246
+ Ra.displayName = D.CheckboxItem.displayName;
2247
+ const Pa = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2248
+ D.RadioItem,
2220
2249
  {
2221
2250
  ref: o,
2222
2251
  className: d(
@@ -2225,29 +2254,29 @@ const Ba = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2225
2254
  ),
2226
2255
  ...s,
2227
2256
  children: [
2228
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
2257
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(D.ItemIndicator, { children: /* @__PURE__ */ a.jsx(at, { className: "h-4 w-4 fill-current" }) }) }),
2229
2258
  t
2230
2259
  ]
2231
2260
  }
2232
2261
  ));
2233
- Ba.displayName = M.RadioItem.displayName;
2234
- const Ra = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2235
- M.Label,
2262
+ Pa.displayName = D.RadioItem.displayName;
2263
+ const Ta = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2264
+ D.Label,
2236
2265
  {
2237
2266
  ref: o,
2238
2267
  className: d("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
2239
2268
  ...s
2240
2269
  }
2241
2270
  ));
2242
- Ra.displayName = M.Label.displayName;
2243
- const Ta = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
2244
- Ta.displayName = M.Separator.displayName;
2245
- const Pa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2246
- Pa.displayName = "ContextMenuShortcut";
2247
- const Ia = (e) => {
2271
+ Ta.displayName = D.Label.displayName;
2272
+ const Ia = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(D.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
2273
+ Ia.displayName = D.Separator.displayName;
2274
+ const Ma = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2275
+ Ma.displayName = "ContextMenuShortcut";
2276
+ const Da = (e) => {
2248
2277
  try {
2249
2278
  const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2250
- Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
2279
+ Xs.render(/* @__PURE__ */ a.jsx(Qs, { value: e }), s), t.appendChild(s), s.hidden = !0;
2251
2280
  let o = s.innerHTML;
2252
2281
  setTimeout(() => t.removeChild(s), 100);
2253
2282
  const i = new DOMParser().parseFromString(o, "image/svg+xml"), r = i.querySelector("svg");
@@ -2255,10 +2284,10 @@ const Ia = (e) => {
2255
2284
  } catch (t) {
2256
2285
  return console.error(t), "";
2257
2286
  }
2258
- }, Pi = ({ value: e, onChange: t }) => {
2287
+ }, Mi = ({ value: e, onChange: t }) => {
2259
2288
  const s = (o) => {
2260
2289
  t("<svg />");
2261
- const n = Ia(o);
2290
+ const n = Da(o);
2262
2291
  t(n);
2263
2292
  };
2264
2293
  return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
@@ -2273,7 +2302,7 @@ const Ia = (e) => {
2273
2302
  }
2274
2303
  ),
2275
2304
  /* @__PURE__ */ a.jsx(
2276
- Ks,
2305
+ Ys,
2277
2306
  {
2278
2307
  value: e ? "BiSolidGrid" : null,
2279
2308
  onChange: s,
@@ -2309,7 +2338,7 @@ const Ia = (e) => {
2309
2338
  }
2310
2339
  )
2311
2340
  ] });
2312
- }, Ma = et.lazy(() => import("./UnsplashImages-Y8RGFVSh.js")), Da = et.lazy(() => import("./UploadImages-dd8LfyFr.js")), ks = ({
2341
+ }, Ea = tt.lazy(() => import("./UnsplashImages-qvwFbV-E.js")), Oa = tt.lazy(() => import("./UploadImages-9NapgXBq.js")), As = ({
2313
2342
  isModalView: e = !1,
2314
2343
  onSelect: t = () => {
2315
2344
  }
@@ -2317,29 +2346,29 @@ const Ia = (e) => {
2317
2346
  const [s, o] = Ce("upload");
2318
2347
  return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2319
2348
  /* @__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" }) }),
2320
- /* @__PURE__ */ a.jsxs(Cn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2321
- /* @__PURE__ */ a.jsxs(fs, { className: "w-full", children: [
2322
- /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2323
- /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2349
+ /* @__PURE__ */ a.jsxs(_n, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2350
+ /* @__PURE__ */ a.jsxs(bs, { className: "w-full", children: [
2351
+ /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "w-1/2", children: "Upload" }),
2352
+ /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2324
2353
  ] }),
2325
- 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(Ma, { 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(Da, { isModalView: e, onSelect: t }) }) })
2354
+ s === "unsplash" ? /* @__PURE__ */ a.jsx(et, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(yt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ea, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(et, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(yt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Oa, { isModalView: e, onSelect: t }) }) })
2326
2355
  ] })
2327
2356
  ] });
2328
- }, Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2357
+ }, Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2329
2358
  __proto__: null,
2330
- default: ks
2331
- }, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
2359
+ default: As
2360
+ }, Symbol.toStringTag, { value: "Module" })), Mt = ({ children: e, onSelect: t }) => {
2332
2361
  const [s, o] = Ce(!1), n = (...i) => {
2333
2362
  t.call(void 0, ...i), o(!1);
2334
2363
  };
2335
- return /* @__PURE__ */ a.jsxs(cs, { open: s, onOpenChange: (i) => o(i), children: [
2336
- /* @__PURE__ */ a.jsx(un, { asChild: !0, children: e }),
2337
- /* @__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 }) }) })
2364
+ return /* @__PURE__ */ a.jsxs(fs, { open: s, onOpenChange: (i) => o(i), children: [
2365
+ /* @__PURE__ */ a.jsx(mn, { asChild: !0, children: e }),
2366
+ /* @__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(As, { isModalView: !0, onSelect: n }) }) })
2338
2367
  ] });
2339
- }, Mi = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2340
- 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" }) }),
2368
+ }, Ei = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2369
+ e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Mt, { 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" }) }),
2341
2370
  /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2342
- /* @__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" }) }),
2371
+ /* @__PURE__ */ a.jsx(Mt, { 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 || !Be(e) ? "Replace Image" : "Choose Image" }) }),
2343
2372
  /* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
2344
2373
  /* @__PURE__ */ a.jsx(
2345
2374
  "input",
@@ -2353,7 +2382,7 @@ const Ia = (e) => {
2353
2382
  }
2354
2383
  )
2355
2384
  ] })
2356
- ] }), Di = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2385
+ ] }), Oi = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2357
2386
  const i = {
2358
2387
  toolbar: [
2359
2388
  ["bold", "italic", "underline", "strike", "blockquote"],
@@ -2377,7 +2406,7 @@ const Ia = (e) => {
2377
2406
  "image"
2378
2407
  ];
2379
2408
  return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
2380
- Qs,
2409
+ Zs,
2381
2410
  {
2382
2411
  id: e,
2383
2412
  value: s,
@@ -2389,8 +2418,8 @@ const Ia = (e) => {
2389
2418
  className: "mt-1 rounded-md"
2390
2419
  }
2391
2420
  );
2392
- }, Ei = ({ schema: e, formData: t, onChange: s }) => {
2393
- const [o, n] = Ce([]), i = Ne("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
2421
+ }, Li = ({ schema: e, formData: t, onChange: s }) => {
2422
+ const [o, n] = Ce([]), i = ve("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
2394
2423
  return Ae(() => {
2395
2424
  (async () => {
2396
2425
  const l = await i();
@@ -2415,7 +2444,7 @@ const Ia = (e) => {
2415
2444
  onChange: (l) => s({ ...t, href: l.target.value }),
2416
2445
  children: [
2417
2446
  /* @__PURE__ */ a.jsx("option", { value: "", children: "Choose page" }),
2418
- P(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2447
+ I(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2419
2448
  ]
2420
2449
  }
2421
2450
  ) : /* @__PURE__ */ a.jsx(
@@ -2442,50 +2471,50 @@ const Ia = (e) => {
2442
2471
  ] })
2443
2472
  ] })
2444
2473
  ] });
2445
- }, Oi = () => {
2446
- const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = bs(), n = F(
2474
+ }, zi = () => {
2475
+ const [e] = we(), [, t] = $e(), { addBlocks: s } = he(), { toast: o } = vs(), n = $(
2447
2476
  (r, c, p) => {
2448
2477
  var v;
2449
- for (let S = 0; S < r.length; S++) {
2450
- const { _id: L } = r[S];
2451
- r[S]._id = de();
2452
- const W = D(r, { _parent: L });
2453
- for (let C = 0; C < W.length; C++)
2454
- W[C]._parent = r[S]._id;
2478
+ for (let j = 0; j < r.length; j++) {
2479
+ const { _id: L } = r[j];
2480
+ r[j]._id = de();
2481
+ const F = E(r, { _parent: L });
2482
+ for (let B = 0; B < F.length; B++)
2483
+ F[B]._parent = r[j]._id;
2455
2484
  }
2456
- const l = Z(r);
2457
- let f, N;
2458
- return c && (f = se(e, { _id: c }), r[0]._parent = c, N = c), !(f ? Ye(f._type, l._type) : !0) && f && (r[0]._parent = f._parent, N = f._parent), s(r, N, p), t([(v = Z(r)) == null ? void 0 : v._id]), Z(r);
2485
+ const l = ee(r);
2486
+ let m, N;
2487
+ return c && (m = oe(e, { _id: c }), r[0]._parent = c, N = c), !(m ? _t(m._type, l._type) : !0) && m && (r[0]._parent = m._parent, N = m._parent), s(r, N, p), t([(v = ee(r)) == null ? void 0 : v._id]), ee(r);
2459
2488
  },
2460
2489
  [e, t]
2461
2490
  );
2462
- return { addCoreBlock: F(
2491
+ return { addCoreBlock: $(
2463
2492
  (r, c, p) => {
2464
2493
  if (pe(r, "blocks")) {
2465
- const C = r.blocks;
2466
- return n(C, c, p);
2494
+ const B = r.blocks;
2495
+ return n(B, c, p);
2467
2496
  }
2468
- const l = de(), f = es(r.props), N = [];
2469
- Lt(f, (C, z) => {
2470
- if (zt(C, qe)) {
2471
- const $ = C.replace(qe, "");
2497
+ const l = de(), m = os(r.props), N = [];
2498
+ $t(m, (B, T) => {
2499
+ if (Ft(B, Je)) {
2500
+ const G = B.replace(Je, "");
2472
2501
  N.push({
2473
- _id: $,
2502
+ _id: G,
2474
2503
  _type: "Slot",
2475
2504
  _parent: l,
2476
- _name: r.props[z].name,
2477
- _styles: r.props[z].styles,
2478
- _emptyStyles: r.props[z].emptyStyles
2505
+ _name: r.props[T].name,
2506
+ _styles: r.props[T].styles,
2507
+ _emptyStyles: r.props[T].emptyStyles
2479
2508
  });
2480
2509
  }
2481
2510
  });
2482
- const j = {
2511
+ const S = {
2483
2512
  _type: r.type,
2484
2513
  _id: l,
2485
- ...f
2514
+ ...m
2486
2515
  };
2487
- let v, S;
2488
- if (c && (v = se(e, { _id: c }), j._parent = c, S = c), !wo(v == null ? void 0 : v._type, r.type)) {
2516
+ let v, j;
2517
+ if (c && (v = oe(e, { _id: c }), S._parent = c, j = c), !ko(v == null ? void 0 : v._type, r.type)) {
2489
2518
  o({
2490
2519
  variant: "destructive",
2491
2520
  title: "Error",
@@ -2493,30 +2522,30 @@ const Ia = (e) => {
2493
2522
  }), t([]);
2494
2523
  return;
2495
2524
  }
2496
- !(v ? Ye(v._type, r.type) : !0) && v && (j._parent = v._parent, S = v._parent);
2497
- const W = [j, ...N];
2498
- return s(W, S, p), t([j._id]), j;
2525
+ !(v ? _t(v._type, r.type) : !0) && v && (S._parent = v._parent, j = v._parent);
2526
+ const F = [S, ...N];
2527
+ return s(F, j, p), t([S._id]), S;
2499
2528
  },
2500
2529
  [n, e, t]
2501
2530
  ), addPredefinedBlock: n };
2502
- }, Pt = {
2531
+ }, Dt = {
2503
2532
  xs: 420,
2504
2533
  sm: 620,
2505
2534
  md: 768,
2506
2535
  lg: 1024,
2507
2536
  xl: 1280,
2508
2537
  "2xl": 1536
2509
- }, It = ["xs", "sm", "md", "lg", "xl", "2xl"];
2510
- function Ea(e, t) {
2538
+ }, Et = ["xs", "sm", "md", "lg", "xl", "2xl"];
2539
+ function La(e, t) {
2511
2540
  if (t === null)
2512
2541
  return "baseClasses";
2513
2542
  const s = t.mq;
2514
2543
  if (s === "xs" || t.dark || t.mod !== "")
2515
2544
  return "classes";
2516
- let o = "baseClasses", n = It.indexOf(s);
2545
+ let o = "baseClasses", n = Et.indexOf(s);
2517
2546
  for (; n > 0; ) {
2518
- const i = It[n - 1];
2519
- if (se(e, {
2547
+ const i = Et[n - 1];
2548
+ if (oe(e, {
2520
2549
  mq: i,
2521
2550
  property: t.property
2522
2551
  })) {
@@ -2527,67 +2556,67 @@ function Ea(e, t) {
2527
2556
  }
2528
2557
  return o;
2529
2558
  }
2530
- const Mt = [];
2531
- function Oa(e = "", t = "", s = []) {
2559
+ const Ot = [];
2560
+ function za(e = "", t = "", s = []) {
2532
2561
  e = e.trim().replace(/ +/g, "");
2533
- let o = D(
2534
- P(e.split(" "), Pe),
2535
- (l) => !He(l)
2536
- ), n = D(P(t.split(" "), Pe), (l) => !He(l));
2537
- n = D(
2562
+ let o = E(
2563
+ I(e.split(" "), Ie),
2564
+ (l) => !Ke(l)
2565
+ ), n = E(I(t.split(" "), Ie), (l) => !Ke(l));
2566
+ n = E(
2538
2567
  n,
2539
- (l) => !Y(Mt, l.property)
2568
+ (l) => !Y(Ot, l.property)
2540
2569
  );
2541
2570
  const i = [], r = [];
2542
2571
  ce(s, (l) => {
2543
- const f = Pe(l), N = se(o, yt(f, ["dark", "mq", "mod", "property"]));
2544
- if (N && (o = D(
2572
+ const m = Ie(l), N = oe(o, wt(m, ["dark", "mq", "mod", "property"]));
2573
+ if (N && (o = E(
2545
2574
  o,
2546
- (j) => j.fullCls !== (N == null ? void 0 : N.fullCls)
2547
- )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = D(n, (j) => j.property !== f.property)), Ea(o, f) === "baseClasses" && !Y(Mt, f.property)) {
2548
- const j = se(n, yt(f, ["property"]));
2549
- N && (n = D(
2575
+ (S) => S.fullCls !== (N == null ? void 0 : N.fullCls)
2576
+ )), i.push(m), m.mq === "xs" && !m.dark && m.mod === "" && (n = E(n, (S) => S.property !== m.property)), La(o, m) === "baseClasses" && !Y(Ot, m.property)) {
2577
+ const S = oe(n, wt(m, ["property"]));
2578
+ N && (n = E(
2550
2579
  n,
2551
- (v) => v.fullCls !== (j == null ? void 0 : j.fullCls)
2580
+ (v) => v.fullCls !== (S == null ? void 0 : S.fullCls)
2552
2581
  )), r.push({
2553
- ...f,
2554
- fullCls: f.cls,
2582
+ ...m,
2583
+ fullCls: m.cls,
2555
2584
  mq: "xs"
2556
2585
  });
2557
2586
  }
2558
2587
  });
2559
- const c = P(
2560
- wt([...o, ...i], (l) => Pt[l.mq]),
2588
+ const c = I(
2589
+ Nt([...o, ...i], (l) => Dt[l.mq]),
2561
2590
  "fullCls"
2562
2591
  ).join(" ");
2563
- return `${P(
2564
- wt([...n, ...r], (l) => Pt[l.mq]),
2592
+ return `${I(
2593
+ Nt([...n, ...r], (l) => Dt[l.mq]),
2565
2594
  "fullCls"
2566
2595
  ).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
2567
2596
  }
2568
- const Re = w([]);
2569
- Re.debugLabel = "selectedStylingBlocksAtom";
2570
- const La = () => E(Re), za = (e) => {
2571
- const t = e.replace(me, "").split(",");
2597
+ const Pe = w([]);
2598
+ Pe.debugLabel = "selectedStylingBlocksAtom";
2599
+ const Va = () => O(Pe), $a = (e) => {
2600
+ const t = e.replace(fe, "").split(",");
2572
2601
  return { baseClasses: t[0], classes: t[1] };
2573
- }, Va = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2574
- const n = D(
2575
- e(rt),
2602
+ }, Fa = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2603
+ const n = E(
2604
+ e(it),
2576
2605
  (r) => (
2577
2606
  // @ts-ignore
2578
2607
  s.includes(e(r)._id)
2579
2608
  )
2580
- ), i = Z(e(Re));
2581
- return P(n, (r) => {
2582
- const c = e(r), p = H(c, i.prop, `${me},`), { baseClasses: l, classes: f } = za(p);
2609
+ ), i = ee(e(Pe));
2610
+ return I(n, (r) => {
2611
+ const c = e(r), p = J(c, i.prop, `${fe},`), { baseClasses: l, classes: m } = $a(p);
2583
2612
  return {
2584
2613
  ids: [c._id],
2585
- props: { [i.prop]: `${me}${Oa(f, l, o)}` }
2614
+ props: { [i.prop]: `${fe}${za(m, l, o)}` }
2586
2615
  };
2587
2616
  });
2588
- }), Li = () => {
2589
- const e = _e(Va), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2590
- return F(
2617
+ }), Vi = () => {
2618
+ const e = _e(Fa), { updateBlocks: t, updateBlocksRuntime: s } = he();
2619
+ return $(
2591
2620
  (o, n, i = !1) => {
2592
2621
  const r = e({ blockIds: o, newClasses: n });
2593
2622
  if (!i) {
@@ -2598,131 +2627,131 @@ const La = () => E(Re), za = (e) => {
2598
2627
  },
2599
2628
  [e]
2600
2629
  );
2601
- }, $a = () => E(Zt), js = Be("canvasWidth", 800), Ss = w((e) => {
2602
- const t = e(js);
2603
- return $s(t).toLowerCase();
2604
- }), zi = () => {
2605
- const [e, t] = E(js), s = ee(Ss), [o, n] = $a();
2630
+ }, Ua = () => O(ss), Cs = Re("canvasWidth", 800), Bs = w((e) => {
2631
+ const t = e(Cs);
2632
+ return Us(t).toLowerCase();
2633
+ }), $i = () => {
2634
+ const [e, t] = O(Cs), s = te(Bs), [o, n] = Ua();
2606
2635
  return Ae(() => {
2607
2636
  o !== "xs" && n(s);
2608
2637
  }, [s, o, n]), [e, s, t];
2609
- }, Fa = Be("canvasZoom", 100), Vi = () => E(Fa), As = w([]), Ua = () => {
2610
- const [e, t] = E(As), s = _e(ht), o = F(
2638
+ }, Wa = Re("canvasZoom", 100), Fi = () => O(Wa), _s = w([]), Ga = () => {
2639
+ const [e, t] = O(_s), s = _e(vt), o = $(
2611
2640
  (n) => {
2612
2641
  t(n), s([]);
2613
2642
  },
2614
2643
  [t, s]
2615
2644
  );
2616
2645
  return [e, o];
2617
- }, ht = w([]), $i = () => {
2618
- const [e, t] = E(ht), s = _e(As), o = F(
2646
+ }, vt = w([]), Ui = () => {
2647
+ const [e, t] = O(vt), s = _e(_s), o = $(
2619
2648
  (n) => {
2620
2649
  t(n), s([]);
2621
2650
  },
2622
2651
  [t, s]
2623
2652
  );
2624
2653
  return [e, o];
2625
- }, Cs = Be("darkMode", !1), Fi = () => {
2626
- const [e, t] = E(Cs);
2654
+ }, Rs = Re("darkMode", !1), Wi = () => {
2655
+ const [e, t] = O(Rs);
2627
2656
  return [e, t];
2628
- }, Wa = () => {
2629
- const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe();
2630
- return F(
2657
+ }, Ha = () => {
2658
+ const [e] = we(), [, t] = $e(), { addBlocks: s } = he();
2659
+ return $(
2631
2660
  (o, n = null) => {
2632
2661
  const i = [];
2633
2662
  ce(o, (r) => {
2634
- const c = e.find((j) => j._id === r);
2663
+ const c = e.find((S) => S._id === r);
2635
2664
  n || (n = c._parent);
2636
- const f = D(
2665
+ const m = E(
2637
2666
  e,
2638
- (j) => Et(n) ? j._parent === n : !c._parent
2639
- ).indexOf(c) + 1, N = No(e, r, n);
2640
- s(N, n, f), i.push(H(N, "0._id", ""));
2667
+ (S) => zt(n) ? S._parent === n : !c._parent
2668
+ ).indexOf(c) + 1, N = So(e, r, n);
2669
+ s(N, n, m), i.push(J(N, "0._id", ""));
2641
2670
  }), t(i);
2642
2671
  },
2643
2672
  [e, t]
2644
2673
  );
2645
- }, Ga = w([]), Ui = () => {
2646
- const [e, t] = E(Ga), s = F(
2674
+ }, qa = w([]), Gi = () => {
2675
+ const [e, t] = O(qa), s = $(
2647
2676
  (o) => {
2648
- t((n) => Y(n, o) ? Ot(n, o) : [...n, o]);
2677
+ t((n) => Y(n, o) ? Vt(n, o) : [...n, o]);
2649
2678
  },
2650
2679
  [t]
2651
2680
  );
2652
2681
  return [e, t, s];
2653
- }, Ha = w(""), qa = () => E(Ha), Ka = () => {
2654
- const e = ee(re);
2655
- return F(
2682
+ }, Ka = w(""), Ja = () => O(Ka), Ya = () => {
2683
+ const e = te(ie);
2684
+ return $(
2656
2685
  (t, s) => {
2657
- const o = P(e, (n) => (Y(t, H(n, "_id")) && je(n, "_parent", s), n));
2686
+ const o = I(e, (n) => (Y(t, J(n, "_id")) && Se(n, "_parent", s), n));
2658
2687
  console.log("newBlocks", o);
2659
2688
  },
2660
2689
  [e]
2661
2690
  );
2662
- }, Wi = () => {
2691
+ }, Hi = () => {
2663
2692
  console.warn("usePasteBlocks is not implemented");
2664
- const e = ee(ht), [t, s] = Ua(), o = Wa(), n = Ka();
2693
+ const e = te(vt), [t, s] = Ga(), o = Ha(), n = Ya();
2665
2694
  return {
2666
- canPaste: Os(
2695
+ canPaste: Vs(
2667
2696
  () => t.length > 0 || e.length > 0,
2668
2697
  [e, t]
2669
2698
  ),
2670
- pasteBlocks: F(
2699
+ pasteBlocks: $(
2671
2700
  (r) => {
2672
- Ee(e) ? n(t, r) : o(e, r), s(() => []);
2701
+ Be(e) ? n(t, r) : o(e, r), s(() => []);
2673
2702
  },
2674
2703
  [t, e, o, n, s]
2675
2704
  )
2676
2705
  };
2677
- }, Ja = w(!1), Gi = () => {
2678
- const [e, t] = E(Ja);
2706
+ }, Qa = w(!1), qi = () => {
2707
+ const [e, t] = O(Qa);
2679
2708
  return [e, t];
2680
- }, Ya = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2681
- const n = Z(e(Re)), i = D(
2682
- e(rt),
2709
+ }, Xa = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2710
+ const n = ee(e(Pe)), i = E(
2711
+ e(it),
2683
2712
  (r) => (
2684
2713
  // @ts-ignore
2685
2714
  s.includes(e(r)._id)
2686
2715
  )
2687
2716
  );
2688
- return P(i, (r) => {
2717
+ return I(i, (r) => {
2689
2718
  const c = e(r), p = o;
2690
- let { classes: l, baseClasses: f } = yo(H(c, n.prop, "styles:,"));
2719
+ let { classes: l, baseClasses: m } = No(J(c, n.prop, "styles:,"));
2691
2720
  return ce(p, (N) => {
2692
- const j = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2693
- l = l.replace(j, " ").replace(/ +/g, " ").trim();
2694
- const v = Z(N.split(":"));
2721
+ const S = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2722
+ l = l.replace(S, " ").replace(/ +/g, " ").trim();
2723
+ const v = ee(N.split(":"));
2695
2724
  Y(["2xl", "xl", "lg", "md", "sm"], v) && p.push(N.split(":").pop().trim());
2696
2725
  }), ce(p, (N) => {
2697
- const j = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2698
- f = f.replace(j, " ").replace(/ +/g, " ").trim();
2726
+ const S = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2727
+ m = m.replace(S, " ").replace(/ +/g, " ").trim();
2699
2728
  }), {
2700
2729
  ids: [c._id],
2701
2730
  props: {
2702
- [n.prop]: `${me}${f},${l}`
2731
+ [n.prop]: `${fe}${m},${l}`
2703
2732
  }
2704
2733
  };
2705
2734
  });
2706
- }), Hi = () => {
2707
- const { updateBlocks: e } = xe(), t = _e(Ya);
2708
- return F(
2735
+ }), Ki = () => {
2736
+ const { updateBlocks: e } = he(), t = _e(Xa);
2737
+ return $(
2709
2738
  (s, o) => {
2710
2739
  const n = t({ blockIds: s, fullClasses: o });
2711
2740
  e(s, n[0].props);
2712
2741
  },
2713
2742
  [t]
2714
2743
  );
2715
- }, _s = w((e) => {
2716
- const t = Z(e(Re)), s = e(ct);
2717
- if (!t || t.blockId !== H(s, "_id", null))
2744
+ }, Ps = w((e) => {
2745
+ const t = ee(e(Pe)), s = e(dt);
2746
+ if (!t || t.blockId !== J(s, "_id", null))
2718
2747
  return [];
2719
- const n = H(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
2720
- return D(P(n.trim().split(" "), Pe), (i) => !He(i));
2721
- }), qi = () => ee(_s), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Qa = w((e) => {
2722
- const t = e(Ss), s = e(dt), o = e(Cs), n = Xa(t);
2723
- let i = D(e(_s), { mod: s });
2724
- return zt(s, "_") || (i = D(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = D(i, { dark: !1 })), i;
2725
- }), Xa = (e) => {
2748
+ const n = J(s, t.prop, `${fe},`).replace(fe, "").split(",").join(" ");
2749
+ return E(I(n.trim().split(" "), Ie), (i) => !Ke(i));
2750
+ }), Ji = () => te(Ps), Lt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Za = w((e) => {
2751
+ const t = e(Bs), s = e(ut), o = e(Rs), n = er(t);
2752
+ let i = E(e(Ps), { mod: s });
2753
+ return Ft(s, "_") || (i = E(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Lt[r.mq] - Lt[c.mq]), o || (i = E(i, { dark: !1 })), i;
2754
+ }), er = (e) => {
2726
2755
  let t = [];
2727
2756
  switch (e) {
2728
2757
  case "xs":
@@ -2748,37 +2777,37 @@ const La = () => E(Re), za = (e) => {
2748
2777
  break;
2749
2778
  }
2750
2779
  return t;
2751
- }, Ki = () => ee(Qa), Ji = () => E(dt), Yi = () => {
2752
- const { updateBlocks: e } = xe();
2753
- return F(
2780
+ }, Yi = () => te(Za), Qi = () => O(ut), Xi = () => {
2781
+ const { updateBlocks: e } = he();
2782
+ return $(
2754
2783
  (t, s, o) => {
2755
2784
  e(t, s, o);
2756
2785
  },
2757
2786
  [e]
2758
2787
  );
2759
- }, Qi = () => {
2760
- const { updateBlocksRuntime: e } = xe();
2761
- return F(
2788
+ }, Zi = () => {
2789
+ const { updateBlocksRuntime: e } = he();
2790
+ return $(
2762
2791
  (t, s) => {
2763
2792
  e(t, s);
2764
2793
  },
2765
2794
  [e]
2766
2795
  );
2767
- }, Bs = {
2796
+ }, Ts = {
2768
2797
  name: "",
2769
2798
  props: {},
2770
2799
  modalProps: {},
2771
2800
  backdropClose: !0
2772
- }, Za = w(Bs), Xi = () => {
2773
- const [e, t] = E(Za), s = F(
2801
+ }, tr = w(Ts), el = () => {
2802
+ const [e, t] = O(tr), s = $(
2774
2803
  (n, i = {}, r = {}) => {
2775
2804
  t({ name: n, props: i, modalProps: r });
2776
2805
  },
2777
2806
  [t]
2778
- ), o = F(
2807
+ ), o = $(
2779
2808
  (...n) => {
2780
- H(e, "props.onClose", () => {
2781
- })(...n), t(Bs);
2809
+ J(e, "props.onClose", () => {
2810
+ })(...n), t(Ts);
2782
2811
  },
2783
2812
  [t, e]
2784
2813
  );
@@ -2787,47 +2816,47 @@ const La = () => E(Re), za = (e) => {
2787
2816
  openModal: s,
2788
2817
  closeModal: o
2789
2818
  };
2790
- }, Zi = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), ee(re)), Rs = w(!1);
2791
- Rs.debugLabel = "readOnlyModeAtom";
2792
- const er = w("online");
2793
- er.debugLabel = "networkModeAtom";
2794
- const tr = w(!1);
2795
- tr.debugLabel = "codeEditorOpenAtom";
2796
- const sr = w(!1);
2797
- sr.debugLabel = "editLayerNameAtom";
2798
- const or = w("");
2799
- or.debugLabel = "activeLanguageAtom";
2800
- const nr = w("");
2801
- nr.debugLabel = "primaryLanguageAtom";
2802
- const ar = w(null);
2803
- ar.debugLabel = "canvasIframeAtom";
2804
- const rr = w("outline");
2805
- rr.debugLabel = "activePanelAtom";
2806
- const ir = w("");
2807
- ir.debugLabel = "showPredefinedBlockCategoryAtom";
2808
- const Ts = w({ undoCount: 0, redoCount: 0 });
2809
- Ts.debugLabel = "historyStatesAtom";
2810
- const lr = w("");
2811
- lr.debugLabel = "inlineEditingActiveAtom";
2812
- const cr = w(!1);
2813
- cr.debugLabel = "draggingFlagAtom";
2819
+ }, tl = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), te(ie)), Is = w(!1);
2820
+ Is.debugLabel = "readOnlyModeAtom";
2821
+ const sr = w("online");
2822
+ sr.debugLabel = "networkModeAtom";
2823
+ const or = w(!1);
2824
+ or.debugLabel = "codeEditorOpenAtom";
2825
+ const nr = w(!1);
2826
+ nr.debugLabel = "editLayerNameAtom";
2827
+ const ar = w("");
2828
+ ar.debugLabel = "activeLanguageAtom";
2829
+ const rr = w("");
2830
+ rr.debugLabel = "primaryLanguageAtom";
2831
+ const ir = w(null);
2832
+ ir.debugLabel = "canvasIframeAtom";
2833
+ const lr = w("outline");
2834
+ lr.debugLabel = "activePanelAtom";
2835
+ const cr = w("");
2836
+ cr.debugLabel = "showPredefinedBlockCategoryAtom";
2837
+ const Ms = w({ undoCount: 0, redoCount: 0 });
2838
+ Ms.debugLabel = "historyStatesAtom";
2814
2839
  const dr = w("");
2815
- dr.debugLabel = "draggedBlockIdAtom";
2816
- const el = () => ee(Rs), ur = w(""), mr = w(null), tl = () => E(ur), sl = () => E(mr), fr = Be("selectedBreakpoints", ["XS", "MD", "XL"]), ol = () => {
2817
- const [e, t] = E(fr);
2840
+ dr.debugLabel = "inlineEditingActiveAtom";
2841
+ const ur = w(!1);
2842
+ ur.debugLabel = "draggingFlagAtom";
2843
+ const fr = w("");
2844
+ fr.debugLabel = "draggedBlockIdAtom";
2845
+ const sl = () => te(Is), mr = w(""), pr = w(null), ol = () => O(mr), nl = () => O(pr), gr = Re("selectedBreakpoints", ["XS", "MD", "XL"]), al = () => {
2846
+ const [e, t] = O(gr);
2818
2847
  return [e, t];
2819
- }, nl = () => {
2820
- const e = _e(Ts), { clear: t } = rs(), [, s] = Ve(), [, o] = qa(), [, n] = La();
2848
+ }, rl = () => {
2849
+ const e = _e(Ms), { clear: t } = cs(), [, s] = $e(), [, o] = Ja(), [, n] = Va();
2821
2850
  return () => {
2822
2851
  s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
2823
2852
  };
2824
- }, pr = w([]), al = () => {
2825
- const [e, t] = Ce(!1), [s, o] = E(pr), n = Ne("getUILibraryBlocks", () => []);
2853
+ }, br = w([]), il = () => {
2854
+ const [e, t] = Ce(!1), [s, o] = O(br), n = ve("getUILibraryBlocks", () => []);
2826
2855
  return Ae(() => {
2827
2856
  (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
2828
2857
  }, []), { data: s, isLoading: e };
2829
- }, rl = () => {
2830
- const [e, t] = Ce(null), s = F(async (o) => {
2858
+ }, ll = () => {
2859
+ const [e, t] = Ce(null), s = $(async (o) => {
2831
2860
  if (!(navigator != null && navigator.clipboard))
2832
2861
  return console.warn("Clipboard not supported"), !1;
2833
2862
  try {
@@ -2839,213 +2868,213 @@ const el = () => ee(Rs), ur = w(""), mr = w(null), tl = () => E(ur), sl = () =>
2839
2868
  return [e, s];
2840
2869
  };
2841
2870
  export {
2842
- Ki as $,
2843
- Yr as A,
2844
- Ko as B,
2845
- pt as C,
2846
- Lr as D,
2847
- ye as E,
2848
- ts as F,
2849
- Ht as G,
2850
- as as H,
2851
- ki as I,
2852
- el as J,
2853
- Xi as K,
2854
- Oi as L,
2855
- Li as M,
2856
- zi as N,
2857
- Vi as O,
2858
- $i as P,
2859
- rl as Q,
2860
- Eo as R,
2861
- ji as S,
2862
- Zr as T,
2863
- Ua as U,
2864
- Fi as V,
2865
- Vo as W,
2866
- Ui as X,
2867
- qa as Y,
2868
- Wi as Z,
2869
- Hi as _,
2870
- Qr as a,
2871
- va as a$,
2872
- qi as a0,
2873
- Ur as a1,
2874
- $a as a2,
2875
- al as a3,
2876
- Ji as a4,
2877
- Yi as a5,
2878
- Qi as a6,
2879
- Fr as a7,
2880
- Zi as a8,
2881
- tl as a9,
2882
- la as aA,
2883
- jn as aB,
2884
- qo as aC,
2885
- ci as aD,
2886
- di as aE,
2887
- $n as aF,
2888
- xi as aG,
2889
- hi as aH,
2890
- ta as aI,
2891
- aa as aJ,
2892
- ra as aK,
2893
- oa as aL,
2894
- xe as aM,
2895
- cr as aN,
2896
- lr as aO,
2897
- sr as aP,
2898
- dr as aQ,
2899
- zr as aR,
2900
- Vr as aS,
2901
- er as aT,
2902
- ar as aU,
2903
- si as aV,
2904
- oi as aW,
2905
- Bn as aX,
2906
- Ns as aY,
2907
- xa as aZ,
2908
- ha as a_,
2909
- sl as aa,
2910
- ol as ab,
2911
- La as ac,
2912
- cs as ad,
2871
+ Yi as $,
2872
+ Xr as A,
2873
+ Yo as B,
2874
+ gt as C,
2875
+ $r as D,
2876
+ we as E,
2877
+ ns as F,
2878
+ Jt as G,
2879
+ ls as H,
2880
+ ji as I,
2881
+ sl as J,
2882
+ el as K,
2883
+ zi as L,
2884
+ Vi as M,
2885
+ $i as N,
2886
+ Fi as O,
2887
+ Ui as P,
2888
+ ll as Q,
2889
+ Lo as R,
2890
+ Ai as S,
2891
+ ti as T,
2892
+ Ga as U,
2893
+ Wi as V,
2894
+ Fo as W,
2895
+ Gi as X,
2896
+ Ja as Y,
2897
+ Hi as Z,
2898
+ Ki as _,
2899
+ Zr as a,
2900
+ wa as a$,
2901
+ Ji as a0,
2902
+ Gr as a1,
2903
+ Ua as a2,
2904
+ il as a3,
2905
+ Qi as a4,
2906
+ Xi as a5,
2907
+ Zi as a6,
2908
+ Wr as a7,
2909
+ tl as a8,
2910
+ ol as a9,
2911
+ da as aA,
2912
+ An as aB,
2913
+ Jo as aC,
2914
+ ui as aD,
2915
+ fi as aE,
2916
+ Un as aF,
2917
+ vi as aG,
2918
+ yi as aH,
2919
+ oa as aI,
2920
+ ia as aJ,
2921
+ la as aK,
2922
+ aa as aL,
2923
+ he as aM,
2924
+ ur as aN,
2925
+ dr as aO,
2926
+ nr as aP,
2927
+ fr as aQ,
2928
+ Fr as aR,
2929
+ Ur as aS,
2930
+ sr as aT,
2931
+ ir as aU,
2932
+ ni as aV,
2933
+ ai as aW,
2934
+ Pn as aX,
2935
+ js as aY,
2936
+ va as aZ,
2937
+ ya as a_,
2938
+ nl as aa,
2939
+ al as ab,
2940
+ Va as ac,
2941
+ fs as ad,
2913
2942
  xt as ae,
2914
- mn as af,
2915
- pn as ag,
2916
- gn as ah,
2917
- cn as ai,
2918
- ui as aj,
2919
- Fn as ak,
2920
- fi as al,
2921
- Un as am,
2922
- Gn as an,
2923
- un as ao,
2924
- ei as ap,
2925
- ti as aq,
2926
- _n as ar,
2927
- Jr as as,
2928
- rr as at,
2929
- Cn as au,
2930
- fs as av,
2931
- Xe as aw,
2932
- Ze as ax,
2933
- mi as ay,
2934
- Wn as az,
2935
- on as b,
2936
- Jn as b$,
2937
- ya as b0,
2938
- Na as b1,
2939
- fn as b2,
2940
- Bt as b3,
2941
- _t as b4,
2942
- Di as b5,
2943
- Pi as b6,
2944
- Mi as b7,
2945
- Ei as b8,
2946
- Kr as b9,
2947
- Go as bA,
2948
- bt as bB,
2949
- tn as bC,
2950
- sn as bD,
2951
- hn as bE,
2952
- ms as bF,
2953
- Rn as bG,
2954
- ni as bH,
2955
- Tn as bI,
2956
- Mn as bJ,
2957
- Dn as bK,
2958
- zn as bL,
2959
- Ln as bM,
2960
- En as bN,
2961
- li as bO,
2962
- On as bP,
2963
- ri as bQ,
2964
- In as bR,
2965
- Pn as bS,
2966
- ai as bT,
2967
- ii as bU,
2968
- Vn as bV,
2969
- Hn as bW,
2970
- pi as bX,
2971
- gi as bY,
2972
- bi as bZ,
2973
- Kn as b_,
2974
- Jo as ba,
2975
- Yo as bb,
2976
- Qo as bc,
2977
- Nn as bd,
2978
- Xr as be,
2979
- An as bf,
2980
- vi as bg,
2981
- sa as bh,
2982
- ia as bi,
2983
- bn as bj,
2984
- xn as bk,
2985
- vn as bl,
2986
- yn as bm,
2987
- Sn as bn,
2988
- wn as bo,
2989
- Zo as bp,
2990
- en as bq,
2991
- ir as br,
2992
- Ca as bs,
2993
- Aa as bt,
2994
- Ai as bu,
2995
- Ci as bv,
2996
- Gr as bw,
2997
- $r as bx,
2998
- ko as by,
2999
- Ho as bz,
3000
- nn as c,
3001
- Yn as c0,
3002
- Qn as c1,
3003
- Xn as c2,
3004
- na as c3,
3005
- yi as c4,
3006
- wi as c5,
3007
- ea as c6,
3008
- Zn as c7,
3009
- Ni as c8,
3010
- ma as c9,
3011
- bs as ca,
3012
- fa as cb,
3013
- Si as cc,
3014
- ka as cd,
3015
- wa as ce,
3016
- _a as cf,
3017
- Ba as cg,
3018
- Ra as ch,
3019
- Ta as ci,
3020
- Pa as cj,
3021
- _i as ck,
3022
- Bi as cl,
3023
- Ri as cm,
3024
- Sa as cn,
3025
- ja as co,
3026
- Ti as cp,
3027
- Ii as cq,
3028
- rn as d,
3029
- ln as e,
3030
- an as f,
3031
- dn as g,
3032
- Ne as h,
3033
- Wt as i,
3034
- Er as j,
3035
- so as k,
3036
- ne as l,
3037
- co as m,
3038
- lo as n,
3039
- Be as o,
3040
- Or as p,
3041
- Gi as q,
3042
- Ve as r,
3043
- qr as s,
3044
- Wa as t,
3045
- nl as u,
3046
- rs as v,
3047
- re as w,
3048
- vo as x,
3049
- $o as y,
3050
- Hr as z
2943
+ pn as af,
2944
+ bn as ag,
2945
+ hn as ah,
2946
+ un as ai,
2947
+ mi as aj,
2948
+ Wn as ak,
2949
+ gi as al,
2950
+ Gn as am,
2951
+ qn as an,
2952
+ mn as ao,
2953
+ si as ap,
2954
+ oi as aq,
2955
+ Rn as ar,
2956
+ Qr as as,
2957
+ lr as at,
2958
+ _n as au,
2959
+ bs as av,
2960
+ Ze as aw,
2961
+ et as ax,
2962
+ pi as ay,
2963
+ Hn as az,
2964
+ an as b,
2965
+ Qn as b$,
2966
+ Na as b0,
2967
+ Sa as b1,
2968
+ gn as b2,
2969
+ Pt as b3,
2970
+ Rt as b4,
2971
+ Oi as b5,
2972
+ Mi as b6,
2973
+ Ei as b7,
2974
+ Li as b8,
2975
+ Yr as b9,
2976
+ qo as bA,
2977
+ ht as bB,
2978
+ on as bC,
2979
+ nn as bD,
2980
+ yn as bE,
2981
+ gs as bF,
2982
+ Tn as bG,
2983
+ ri as bH,
2984
+ In as bI,
2985
+ En as bJ,
2986
+ On as bK,
2987
+ $n as bL,
2988
+ Vn as bM,
2989
+ Ln as bN,
2990
+ di as bO,
2991
+ zn as bP,
2992
+ li as bQ,
2993
+ Dn as bR,
2994
+ Mn as bS,
2995
+ ii as bT,
2996
+ ci as bU,
2997
+ Fn as bV,
2998
+ Kn as bW,
2999
+ bi as bX,
3000
+ hi as bY,
3001
+ xi as bZ,
3002
+ Yn as b_,
3003
+ Qo as ba,
3004
+ Xo as bb,
3005
+ Zo as bc,
3006
+ Sn as bd,
3007
+ ei as be,
3008
+ Bn as bf,
3009
+ wi as bg,
3010
+ na as bh,
3011
+ ca as bi,
3012
+ xn as bj,
3013
+ vn as bk,
3014
+ wn as bl,
3015
+ Nn as bm,
3016
+ Cn as bn,
3017
+ kn as bo,
3018
+ tn as bp,
3019
+ sn as bq,
3020
+ cr as br,
3021
+ _a as bs,
3022
+ Ba as bt,
3023
+ Bi as bu,
3024
+ _i as bv,
3025
+ _t as bw,
3026
+ jo as bx,
3027
+ qr as by,
3028
+ Ko as bz,
3029
+ rn as c,
3030
+ Xn as c0,
3031
+ Zn as c1,
3032
+ ea as c2,
3033
+ ra as c3,
3034
+ Ni as c4,
3035
+ ki as c5,
3036
+ sa as c6,
3037
+ ta as c7,
3038
+ Si as c8,
3039
+ pa as c9,
3040
+ vs as ca,
3041
+ ga as cb,
3042
+ Ci as cc,
3043
+ ja as cd,
3044
+ ka as ce,
3045
+ Ra as cf,
3046
+ Pa as cg,
3047
+ Ta as ch,
3048
+ Ia as ci,
3049
+ Ma as cj,
3050
+ Ri as ck,
3051
+ Pi as cl,
3052
+ Ti as cm,
3053
+ Ca as cn,
3054
+ Aa as co,
3055
+ Ii as cp,
3056
+ Di as cq,
3057
+ cn as d,
3058
+ dn as e,
3059
+ ln as f,
3060
+ fn as g,
3061
+ ve as h,
3062
+ qt as i,
3063
+ zr as j,
3064
+ no as k,
3065
+ ae as l,
3066
+ fo as m,
3067
+ uo as n,
3068
+ Re as o,
3069
+ Vr as p,
3070
+ qi as q,
3071
+ $e as r,
3072
+ Jr as s,
3073
+ Ha as t,
3074
+ rl as u,
3075
+ cs as v,
3076
+ ie as w,
3077
+ wo as x,
3078
+ Uo as y,
3079
+ Kr as z
3051
3080
  };