react-semaphor 0.0.390 → 0.0.392

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.
@@ -3947,6 +3947,7 @@ function Nu(e) {
3947
3947
  }
3948
3948
  const E8 = [
3949
3949
  "text",
3950
+ "name",
3950
3951
  "enum",
3951
3952
  "varchar",
3952
3953
  "nvarchar",
@@ -55288,15 +55289,28 @@ function sge({
55288
55289
  ) : /* @__PURE__ */ v("code", { className: "rounded-md text-xs text-yellow-700", ...o });
55289
55290
  },
55290
55291
  pre: (r) => /* @__PURE__ */ v(uge, { ...r, handleRun: t }),
55291
- li: ({ node: r, ...o }) => /* @__PURE__ */ v("li", { className: "my-2 pl-2 text-sm", ...o }),
55292
- ul: ({ node: r, ...o }) => /* @__PURE__ */ v("ul", { className: "my-2 list-inside list-disc text-sm", ...o }),
55293
- ol: ({ node: r, ...o }) => /* @__PURE__ */ v("ol", { className: "my-2 list-inside list-decimal text-sm", ...o }),
55292
+ // li: ({ node, ...props }) => {
55293
+ // // if li doesn't contain pre or code then use a list-disc
55294
+ // // const hasPreOrCode = node?.children?.some(
55295
+ // // (child) =>
55296
+ // // child.type === 'element' &&
55297
+ // // (child.tagName === 'pre' || child.tagName === 'code'),
55298
+ // // );
55299
+ // // if (hasPreOrCode) {
55300
+ // // return (
55301
+ // // <li className="my-2 list-inside list-none pl-4 text-sm" {...props} />
55302
+ // // );
55303
+ // // }
55304
+ // return <li className="my-2 pl-2 text-sm" {...props} />;
55305
+ // },
55306
+ ul: ({ node: r, ...o }) => /* @__PURE__ */ v("ul", { className: "ml-2 list-disc py-2 pl-2 text-sm", ...o }),
55307
+ ol: ({ node: r, ...o }) => /* @__PURE__ */ v("ol", { className: "ml-2 list-decimal py-2 pl-2 text-sm", ...o }),
55294
55308
  a: ({ node: r, ...o }) => /* @__PURE__ */ v(
55295
55309
  "a",
55296
55310
  {
55297
55311
  target: "_blank",
55298
55312
  rel: "noopener noreferrer",
55299
- className: "text-blue-700 hover:underline",
55313
+ className: "text-blue-700 underline",
55300
55314
  ...o
55301
55315
  }
55302
55316
  ),
@@ -58776,7 +58790,410 @@ const Vbe = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
58776
58790
  Vbe.displayName = "EditorAside";
58777
58791
  const Hbe = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v("div", { ref: n, className: ae("grow", e), ...t }));
58778
58792
  Hbe.displayName = "EditorMain";
58779
- function jbe(e, t, n) {
58793
+ const jbe = bn(
58794
+ ({ children: e, className: t, tooltip: n, onClick: r, ...o }, i) => /* @__PURE__ */ Q(WD, { children: [
58795
+ /* @__PURE__ */ v(UD, { asChild: !0, children: /* @__PURE__ */ v(
58796
+ nn,
58797
+ {
58798
+ ref: i,
58799
+ size: "sm",
58800
+ variant: "ghost",
58801
+ onClick: r,
58802
+ ...o,
58803
+ className: t,
58804
+ children: e
58805
+ }
58806
+ ) }),
58807
+ n && /* @__PURE__ */ v(qx, { side: "bottom", sideOffset: 10, children: n })
58808
+ ] })
58809
+ );
58810
+ jbe.displayName = "IconButton";
58811
+ var Ik = 1, Wbe = 0.9, Ube = 0.8, Gbe = 0.17, wy = 0.1, xy = 0.999, qbe = 0.9999, Ybe = 0.99, Kbe = /[\\\/_+.#"@\[\(\{&]/, Xbe = /[\\\/_+.#"@\[\(\{&]/g, Qbe = /[\s-]/, BL = /[\s-]/g;
58812
+ function tw(e, t, n, r, o, i, a) {
58813
+ if (i === t.length) return o === e.length ? Ik : Ybe;
58814
+ var s = `${o},${i}`;
58815
+ if (a[s] !== void 0) return a[s];
58816
+ for (var l = r.charAt(i), c = n.indexOf(l, o), u = 0, d, h, f, p; c >= 0; ) d = tw(e, t, n, r, c + 1, i + 1, a), d > u && (c === o ? d *= Ik : Kbe.test(e.charAt(c - 1)) ? (d *= Ube, f = e.slice(o, c - 1).match(Xbe), f && o > 0 && (d *= Math.pow(xy, f.length))) : Qbe.test(e.charAt(c - 1)) ? (d *= Wbe, p = e.slice(o, c - 1).match(BL), p && o > 0 && (d *= Math.pow(xy, p.length))) : (d *= Gbe, o > 0 && (d *= Math.pow(xy, c - o))), e.charAt(c) !== t.charAt(i) && (d *= qbe)), (d < wy && n.charAt(c - 1) === r.charAt(i + 1) || r.charAt(i + 1) === r.charAt(i) && n.charAt(c - 1) !== r.charAt(i)) && (h = tw(e, t, n, r, c + 1, i + 2, a), h * wy > d && (d = h * wy)), d > u && (u = d), c = n.indexOf(l, c + 1);
58817
+ return a[s] = u, u;
58818
+ }
58819
+ function Ak(e) {
58820
+ return e.toLowerCase().replace(BL, " ");
58821
+ }
58822
+ function Zbe(e, t, n) {
58823
+ return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, tw(e, t, Ak(e), Ak(t), 0, 0, {});
58824
+ }
58825
+ var qc = '[cmdk-group=""]', Sy = '[cmdk-group-items=""]', Jbe = '[cmdk-group-heading=""]', AS = '[cmdk-item=""]', Nk = `${AS}:not([aria-disabled="true"])`, nw = "cmdk-item-select", Aa = "data-value", eye = (e, t, n) => Zbe(e, t, n), VL = C.createContext(void 0), Jd = () => C.useContext(VL), HL = C.createContext(void 0), NS = () => C.useContext(HL), jL = C.createContext(void 0), WL = C.forwardRef((e, t) => {
58826
+ let n = tl(() => {
58827
+ var L, R;
58828
+ return { search: "", value: (R = (L = e.value) != null ? L : e.defaultValue) != null ? R : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
58829
+ }), r = tl(() => /* @__PURE__ */ new Set()), o = tl(() => /* @__PURE__ */ new Map()), i = tl(() => /* @__PURE__ */ new Map()), a = tl(() => /* @__PURE__ */ new Set()), s = UL(e), { label: l, children: c, value: u, onValueChange: d, filter: h, shouldFilter: f, loop: p, disablePointerSelection: g = !1, vimBindings: m = !0, ...b } = e, y = tn(), w = tn(), _ = tn(), x = C.useRef(null), S = dye();
58830
+ Rs(() => {
58831
+ if (u !== void 0) {
58832
+ let L = u.trim();
58833
+ n.current.value = L, E.emit();
58834
+ }
58835
+ }, [u]), Rs(() => {
58836
+ S(6, W);
58837
+ }, []);
58838
+ let E = C.useMemo(() => ({ subscribe: (L) => (a.current.add(L), () => a.current.delete(L)), snapshot: () => n.current, setState: (L, R, U) => {
58839
+ var G, q, V;
58840
+ if (!Object.is(n.current[L], R)) {
58841
+ if (n.current[L] = R, L === "search") A(), M(), S(1, D);
58842
+ else if (L === "value" && (U || S(5, W), ((G = s.current) == null ? void 0 : G.value) !== void 0)) {
58843
+ let j = R ?? "";
58844
+ (V = (q = s.current).onValueChange) == null || V.call(q, j);
58845
+ return;
58846
+ }
58847
+ E.emit();
58848
+ }
58849
+ }, emit: () => {
58850
+ a.current.forEach((L) => L());
58851
+ } }), []), k = C.useMemo(() => ({ value: (L, R, U) => {
58852
+ var G;
58853
+ R !== ((G = i.current.get(L)) == null ? void 0 : G.value) && (i.current.set(L, { value: R, keywords: U }), n.current.filtered.items.set(L, O(R, U)), S(2, () => {
58854
+ M(), E.emit();
58855
+ }));
58856
+ }, item: (L, R) => (r.current.add(L), R && (o.current.has(R) ? o.current.get(R).add(L) : o.current.set(R, /* @__PURE__ */ new Set([L]))), S(3, () => {
58857
+ A(), M(), n.current.value || D(), E.emit();
58858
+ }), () => {
58859
+ i.current.delete(L), r.current.delete(L), n.current.filtered.items.delete(L);
58860
+ let U = $();
58861
+ S(4, () => {
58862
+ A(), (U == null ? void 0 : U.getAttribute("id")) === L && D(), E.emit();
58863
+ });
58864
+ }), group: (L) => (o.current.has(L) || o.current.set(L, /* @__PURE__ */ new Set()), () => {
58865
+ i.current.delete(L), o.current.delete(L);
58866
+ }), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: y, inputId: _, labelId: w, listInnerRef: x }), []);
58867
+ function O(L, R) {
58868
+ var U, G;
58869
+ let q = (G = (U = s.current) == null ? void 0 : U.filter) != null ? G : eye;
58870
+ return L ? q(L, n.current.search, R) : 0;
58871
+ }
58872
+ function M() {
58873
+ if (!n.current.search || s.current.shouldFilter === !1) return;
58874
+ let L = n.current.filtered.items, R = [];
58875
+ n.current.filtered.groups.forEach((G) => {
58876
+ let q = o.current.get(G), V = 0;
58877
+ q.forEach((j) => {
58878
+ let K = L.get(j);
58879
+ V = Math.max(K, V);
58880
+ }), R.push([G, V]);
58881
+ });
58882
+ let U = x.current;
58883
+ T().sort((G, q) => {
58884
+ var V, j;
58885
+ let K = G.getAttribute("id"), ee = q.getAttribute("id");
58886
+ return ((V = L.get(ee)) != null ? V : 0) - ((j = L.get(K)) != null ? j : 0);
58887
+ }).forEach((G) => {
58888
+ let q = G.closest(Sy);
58889
+ q ? q.appendChild(G.parentElement === q ? G : G.closest(`${Sy} > *`)) : U.appendChild(G.parentElement === U ? G : G.closest(`${Sy} > *`));
58890
+ }), R.sort((G, q) => q[1] - G[1]).forEach((G) => {
58891
+ var q;
58892
+ let V = (q = x.current) == null ? void 0 : q.querySelector(`${qc}[${Aa}="${encodeURIComponent(G[0])}"]`);
58893
+ V == null || V.parentElement.appendChild(V);
58894
+ });
58895
+ }
58896
+ function D() {
58897
+ let L = T().find((U) => U.getAttribute("aria-disabled") !== "true"), R = L == null ? void 0 : L.getAttribute(Aa);
58898
+ E.setState("value", R || void 0);
58899
+ }
58900
+ function A() {
58901
+ var L, R, U, G;
58902
+ if (!n.current.search || s.current.shouldFilter === !1) {
58903
+ n.current.filtered.count = r.current.size;
58904
+ return;
58905
+ }
58906
+ n.current.filtered.groups = /* @__PURE__ */ new Set();
58907
+ let q = 0;
58908
+ for (let V of r.current) {
58909
+ let j = (R = (L = i.current.get(V)) == null ? void 0 : L.value) != null ? R : "", K = (G = (U = i.current.get(V)) == null ? void 0 : U.keywords) != null ? G : [], ee = O(j, K);
58910
+ n.current.filtered.items.set(V, ee), ee > 0 && q++;
58911
+ }
58912
+ for (let [V, j] of o.current) for (let K of j) if (n.current.filtered.items.get(K) > 0) {
58913
+ n.current.filtered.groups.add(V);
58914
+ break;
58915
+ }
58916
+ n.current.filtered.count = q;
58917
+ }
58918
+ function W() {
58919
+ var L, R, U;
58920
+ let G = $();
58921
+ G && (((L = G.parentElement) == null ? void 0 : L.firstChild) === G && ((U = (R = G.closest(qc)) == null ? void 0 : R.querySelector(Jbe)) == null || U.scrollIntoView({ block: "nearest" })), G.scrollIntoView({ block: "nearest" }));
58922
+ }
58923
+ function $() {
58924
+ var L;
58925
+ return (L = x.current) == null ? void 0 : L.querySelector(`${AS}[aria-selected="true"]`);
58926
+ }
58927
+ function T() {
58928
+ var L;
58929
+ return Array.from(((L = x.current) == null ? void 0 : L.querySelectorAll(Nk)) || []);
58930
+ }
58931
+ function N(L) {
58932
+ let R = T()[L];
58933
+ R && E.setState("value", R.getAttribute(Aa));
58934
+ }
58935
+ function I(L) {
58936
+ var R;
58937
+ let U = $(), G = T(), q = G.findIndex((j) => j === U), V = G[q + L];
58938
+ (R = s.current) != null && R.loop && (V = q + L < 0 ? G[G.length - 1] : q + L === G.length ? G[0] : G[q + L]), V && E.setState("value", V.getAttribute(Aa));
58939
+ }
58940
+ function F(L) {
58941
+ let R = $(), U = R == null ? void 0 : R.closest(qc), G;
58942
+ for (; U && !G; ) U = L > 0 ? cye(U, qc) : uye(U, qc), G = U == null ? void 0 : U.querySelector(Nk);
58943
+ G ? E.setState("value", G.getAttribute(Aa)) : I(L);
58944
+ }
58945
+ let H = () => N(T().length - 1), P = (L) => {
58946
+ L.preventDefault(), L.metaKey ? H() : L.altKey ? F(1) : I(1);
58947
+ }, B = (L) => {
58948
+ L.preventDefault(), L.metaKey ? N(0) : L.altKey ? F(-1) : I(-1);
58949
+ };
58950
+ return C.createElement(ye.div, { ref: t, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (L) => {
58951
+ var R;
58952
+ if ((R = b.onKeyDown) == null || R.call(b, L), !L.defaultPrevented) switch (L.key) {
58953
+ case "n":
58954
+ case "j": {
58955
+ m && L.ctrlKey && P(L);
58956
+ break;
58957
+ }
58958
+ case "ArrowDown": {
58959
+ P(L);
58960
+ break;
58961
+ }
58962
+ case "p":
58963
+ case "k": {
58964
+ m && L.ctrlKey && B(L);
58965
+ break;
58966
+ }
58967
+ case "ArrowUp": {
58968
+ B(L);
58969
+ break;
58970
+ }
58971
+ case "Home": {
58972
+ L.preventDefault(), N(0);
58973
+ break;
58974
+ }
58975
+ case "End": {
58976
+ L.preventDefault(), H();
58977
+ break;
58978
+ }
58979
+ case "Enter":
58980
+ if (!L.nativeEvent.isComposing && L.keyCode !== 229) {
58981
+ L.preventDefault();
58982
+ let U = $();
58983
+ if (U) {
58984
+ let G = new Event(nw);
58985
+ U.dispatchEvent(G);
58986
+ }
58987
+ }
58988
+ }
58989
+ } }, C.createElement("label", { "cmdk-label": "", htmlFor: k.inputId, id: k.labelId, style: hye }, l), gm(e, (L) => C.createElement(HL.Provider, { value: E }, C.createElement(VL.Provider, { value: k }, L))));
58990
+ }), tye = C.forwardRef((e, t) => {
58991
+ var n, r;
58992
+ let o = tn(), i = C.useRef(null), a = C.useContext(jL), s = Jd(), l = UL(e), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
58993
+ Rs(() => {
58994
+ if (!c) return s.item(o, a == null ? void 0 : a.id);
58995
+ }, [c]);
58996
+ let u = GL(o, i, [e.value, e.children, i], e.keywords), d = NS(), h = ks((S) => S.value && S.value === u.current), f = ks((S) => c || s.filter() === !1 ? !0 : S.search ? S.filtered.items.get(o) > 0 : !0);
58997
+ C.useEffect(() => {
58998
+ let S = i.current;
58999
+ if (!(!S || e.disabled)) return S.addEventListener(nw, p), () => S.removeEventListener(nw, p);
59000
+ }, [f, e.onSelect, e.disabled]);
59001
+ function p() {
59002
+ var S, E;
59003
+ g(), (E = (S = l.current).onSelect) == null || E.call(S, u.current);
59004
+ }
59005
+ function g() {
59006
+ d.setState("value", u.current, !0);
59007
+ }
59008
+ if (!f) return null;
59009
+ let { disabled: m, value: b, onSelect: y, forceMount: w, keywords: _, ...x } = e;
59010
+ return C.createElement(ye.div, { ref: fd([i, t]), ...x, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!m, "aria-selected": !!h, "data-disabled": !!m, "data-selected": !!h, onPointerMove: m || s.getDisablePointerSelection() ? void 0 : g, onClick: m ? void 0 : p }, e.children);
59011
+ }), nye = C.forwardRef((e, t) => {
59012
+ let { heading: n, children: r, forceMount: o, ...i } = e, a = tn(), s = C.useRef(null), l = C.useRef(null), c = tn(), u = Jd(), d = ks((f) => o || u.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
59013
+ Rs(() => u.group(a), []), GL(a, s, [e.value, e.heading, l]);
59014
+ let h = C.useMemo(() => ({ id: a, forceMount: o }), [o]);
59015
+ return C.createElement(ye.div, { ref: fd([s, t]), ...i, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, n && C.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), gm(e, (f) => C.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, C.createElement(jL.Provider, { value: h }, f))));
59016
+ }), rye = C.forwardRef((e, t) => {
59017
+ let { alwaysRender: n, ...r } = e, o = C.useRef(null), i = ks((a) => !a.search);
59018
+ return !n && !i ? null : C.createElement(ye.div, { ref: fd([o, t]), ...r, "cmdk-separator": "", role: "separator" });
59019
+ }), oye = C.forwardRef((e, t) => {
59020
+ let { onValueChange: n, ...r } = e, o = e.value != null, i = NS(), a = ks((u) => u.search), s = ks((u) => u.value), l = Jd(), c = C.useMemo(() => {
59021
+ var u;
59022
+ let d = (u = l.listInnerRef.current) == null ? void 0 : u.querySelector(`${AS}[${Aa}="${encodeURIComponent(s)}"]`);
59023
+ return d == null ? void 0 : d.getAttribute("id");
59024
+ }, []);
59025
+ return C.useEffect(() => {
59026
+ e.value != null && i.setState("search", e.value);
59027
+ }, [e.value]), C.createElement(ye.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": l.listId, "aria-labelledby": l.labelId, "aria-activedescendant": c, id: l.inputId, type: "text", value: o ? e.value : a, onChange: (u) => {
59028
+ o || i.setState("search", u.target.value), n == null || n(u.target.value);
59029
+ } });
59030
+ }), iye = C.forwardRef((e, t) => {
59031
+ let { children: n, label: r = "Suggestions", ...o } = e, i = C.useRef(null), a = C.useRef(null), s = Jd();
59032
+ return C.useEffect(() => {
59033
+ if (a.current && i.current) {
59034
+ let l = a.current, c = i.current, u, d = new ResizeObserver(() => {
59035
+ u = requestAnimationFrame(() => {
59036
+ let h = l.offsetHeight;
59037
+ c.style.setProperty("--cmdk-list-height", h.toFixed(1) + "px");
59038
+ });
59039
+ });
59040
+ return d.observe(l), () => {
59041
+ cancelAnimationFrame(u), d.unobserve(l);
59042
+ };
59043
+ }
59044
+ }, []), C.createElement(ye.div, { ref: fd([i, t]), ...o, "cmdk-list": "", role: "listbox", "aria-label": r, id: s.listId }, gm(e, (l) => C.createElement("div", { ref: fd([a, s.listInnerRef]), "cmdk-list-sizer": "" }, l)));
59045
+ }), aye = C.forwardRef((e, t) => {
59046
+ let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: i, container: a, ...s } = e;
59047
+ return C.createElement(xS, { open: n, onOpenChange: r }, C.createElement(SS, { container: a }, C.createElement(dm, { "cmdk-overlay": "", className: o }), C.createElement(fm, { "aria-label": e.label, "cmdk-dialog": "", className: i }, C.createElement(WL, { ref: t, ...s }))));
59048
+ }), sye = C.forwardRef((e, t) => ks((n) => n.filtered.count === 0) ? C.createElement(ye.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), lye = C.forwardRef((e, t) => {
59049
+ let { progress: n, children: r, label: o = "Loading...", ...i } = e;
59050
+ return C.createElement(ye.div, { ref: t, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, gm(e, (a) => C.createElement("div", { "aria-hidden": !0 }, a)));
59051
+ }), lr = Object.assign(WL, { List: iye, Item: tye, Input: oye, Group: nye, Separator: rye, Dialog: aye, Empty: sye, Loading: lye });
59052
+ function cye(e, t) {
59053
+ let n = e.nextElementSibling;
59054
+ for (; n; ) {
59055
+ if (n.matches(t)) return n;
59056
+ n = n.nextElementSibling;
59057
+ }
59058
+ }
59059
+ function uye(e, t) {
59060
+ let n = e.previousElementSibling;
59061
+ for (; n; ) {
59062
+ if (n.matches(t)) return n;
59063
+ n = n.previousElementSibling;
59064
+ }
59065
+ }
59066
+ function UL(e) {
59067
+ let t = C.useRef(e);
59068
+ return Rs(() => {
59069
+ t.current = e;
59070
+ }), t;
59071
+ }
59072
+ var Rs = typeof window > "u" ? C.useEffect : C.useLayoutEffect;
59073
+ function tl(e) {
59074
+ let t = C.useRef();
59075
+ return t.current === void 0 && (t.current = e()), t;
59076
+ }
59077
+ function fd(e) {
59078
+ return (t) => {
59079
+ e.forEach((n) => {
59080
+ typeof n == "function" ? n(t) : n != null && (n.current = t);
59081
+ });
59082
+ };
59083
+ }
59084
+ function ks(e) {
59085
+ let t = NS(), n = () => e(t.snapshot());
59086
+ return I5.useSyncExternalStore(t.subscribe, n, n);
59087
+ }
59088
+ function GL(e, t, n, r = []) {
59089
+ let o = C.useRef(), i = Jd();
59090
+ return Rs(() => {
59091
+ var a;
59092
+ let s = (() => {
59093
+ var c;
59094
+ for (let u of n) {
59095
+ if (typeof u == "string") return u.trim();
59096
+ if (typeof u == "object" && "current" in u) return u.current ? (c = u.current.textContent) == null ? void 0 : c.trim() : o.current;
59097
+ }
59098
+ })(), l = r.map((c) => c.trim());
59099
+ i.value(e, s, l), (a = t.current) == null || a.setAttribute(Aa, s), o.current = s;
59100
+ }), o;
59101
+ }
59102
+ var dye = () => {
59103
+ let [e, t] = C.useState(), n = tl(() => /* @__PURE__ */ new Map());
59104
+ return Rs(() => {
59105
+ n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
59106
+ }, [e]), (r, o) => {
59107
+ n.current.set(r, o), t({});
59108
+ };
59109
+ };
59110
+ function fye(e) {
59111
+ let t = e.type;
59112
+ return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
59113
+ }
59114
+ function gm({ asChild: e, children: t }, n) {
59115
+ return e && C.isValidElement(t) ? C.cloneElement(fye(t), { ref: t.ref }, n(t.props.children)) : n(t);
59116
+ }
59117
+ var hye = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
59118
+ const pye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59119
+ lr,
59120
+ {
59121
+ ref: n,
59122
+ className: ae(
59123
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
59124
+ e
59125
+ ),
59126
+ ...t
59127
+ }
59128
+ ));
59129
+ pye.displayName = lr.displayName;
59130
+ const gye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Q("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
59131
+ /* @__PURE__ */ v(IB, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
59132
+ /* @__PURE__ */ v(
59133
+ lr.Input,
59134
+ {
59135
+ ref: n,
59136
+ className: ae(
59137
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
59138
+ e
59139
+ ),
59140
+ ...t
59141
+ }
59142
+ )
59143
+ ] }));
59144
+ gye.displayName = lr.Input.displayName;
59145
+ const mye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59146
+ lr.List,
59147
+ {
59148
+ ref: n,
59149
+ className: ae("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
59150
+ ...t
59151
+ }
59152
+ ));
59153
+ mye.displayName = lr.List.displayName;
59154
+ const bye = C.forwardRef((e, t) => /* @__PURE__ */ v(
59155
+ lr.Empty,
59156
+ {
59157
+ ref: t,
59158
+ className: "py-6 text-center text-sm",
59159
+ ...e
59160
+ }
59161
+ ));
59162
+ bye.displayName = lr.Empty.displayName;
59163
+ const yye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59164
+ lr.Group,
59165
+ {
59166
+ ref: n,
59167
+ className: ae(
59168
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
59169
+ e
59170
+ ),
59171
+ ...t
59172
+ }
59173
+ ));
59174
+ yye.displayName = lr.Group.displayName;
59175
+ const vye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59176
+ lr.Separator,
59177
+ {
59178
+ ref: n,
59179
+ className: ae("-mx-1 h-px bg-border", e),
59180
+ ...t
59181
+ }
59182
+ ));
59183
+ vye.displayName = lr.Separator.displayName;
59184
+ const wye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59185
+ lr.Item,
59186
+ {
59187
+ ref: n,
59188
+ className: ae(
59189
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
59190
+ e
59191
+ ),
59192
+ ...t
59193
+ }
59194
+ ));
59195
+ wye.displayName = lr.Item.displayName;
59196
+ function xye(e, t, n) {
58780
59197
  return t in e ? Object.defineProperty(e, t, {
58781
59198
  value: n,
58782
59199
  enumerable: !0,
@@ -58784,7 +59201,7 @@ function jbe(e, t, n) {
58784
59201
  writable: !0
58785
59202
  }) : e[t] = n, e;
58786
59203
  }
58787
- function Ik(e, t) {
59204
+ function Fk(e, t) {
58788
59205
  var n = Object.keys(e);
58789
59206
  if (Object.getOwnPropertySymbols) {
58790
59207
  var r = Object.getOwnPropertySymbols(e);
@@ -58794,27 +59211,27 @@ function Ik(e, t) {
58794
59211
  }
58795
59212
  return n;
58796
59213
  }
58797
- function Ak(e) {
59214
+ function Lk(e) {
58798
59215
  for (var t = 1; t < arguments.length; t++) {
58799
59216
  var n = arguments[t] != null ? arguments[t] : {};
58800
- t % 2 ? Ik(Object(n), !0).forEach(function(r) {
58801
- jbe(e, r, n[r]);
58802
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ik(Object(n)).forEach(function(r) {
59217
+ t % 2 ? Fk(Object(n), !0).forEach(function(r) {
59218
+ xye(e, r, n[r]);
59219
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fk(Object(n)).forEach(function(r) {
58803
59220
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
58804
59221
  });
58805
59222
  }
58806
59223
  return e;
58807
59224
  }
58808
- function Wbe(e, t) {
59225
+ function Sye(e, t) {
58809
59226
  if (e == null) return {};
58810
59227
  var n = {}, r = Object.keys(e), o, i;
58811
59228
  for (i = 0; i < r.length; i++)
58812
59229
  o = r[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
58813
59230
  return n;
58814
59231
  }
58815
- function Ube(e, t) {
59232
+ function Cye(e, t) {
58816
59233
  if (e == null) return {};
58817
- var n = Wbe(e, t), r, o;
59234
+ var n = Sye(e, t), r, o;
58818
59235
  if (Object.getOwnPropertySymbols) {
58819
59236
  var i = Object.getOwnPropertySymbols(e);
58820
59237
  for (o = 0; o < i.length; o++)
@@ -58822,13 +59239,13 @@ function Ube(e, t) {
58822
59239
  }
58823
59240
  return n;
58824
59241
  }
58825
- function Gbe(e, t) {
58826
- return qbe(e) || Ybe(e, t) || Kbe(e, t) || Xbe();
59242
+ function _ye(e, t) {
59243
+ return Eye(e) || Rye(e, t) || kye(e, t) || Pye();
58827
59244
  }
58828
- function qbe(e) {
59245
+ function Eye(e) {
58829
59246
  if (Array.isArray(e)) return e;
58830
59247
  }
58831
- function Ybe(e, t) {
59248
+ function Rye(e, t) {
58832
59249
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
58833
59250
  var n = [], r = !0, o = !1, i = void 0;
58834
59251
  try {
@@ -58846,24 +59263,24 @@ function Ybe(e, t) {
58846
59263
  return n;
58847
59264
  }
58848
59265
  }
58849
- function Kbe(e, t) {
59266
+ function kye(e, t) {
58850
59267
  if (e) {
58851
- if (typeof e == "string") return Nk(e, t);
59268
+ if (typeof e == "string") return $k(e, t);
58852
59269
  var n = Object.prototype.toString.call(e).slice(8, -1);
58853
59270
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
58854
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Nk(e, t);
59271
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return $k(e, t);
58855
59272
  }
58856
59273
  }
58857
- function Nk(e, t) {
59274
+ function $k(e, t) {
58858
59275
  (t == null || t > e.length) && (t = e.length);
58859
59276
  for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
58860
59277
  return r;
58861
59278
  }
58862
- function Xbe() {
59279
+ function Pye() {
58863
59280
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58864
59281
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
58865
59282
  }
58866
- function Qbe(e, t, n) {
59283
+ function Oye(e, t, n) {
58867
59284
  return t in e ? Object.defineProperty(e, t, {
58868
59285
  value: n,
58869
59286
  enumerable: !0,
@@ -58871,7 +59288,7 @@ function Qbe(e, t, n) {
58871
59288
  writable: !0
58872
59289
  }) : e[t] = n, e;
58873
59290
  }
58874
- function Fk(e, t) {
59291
+ function zk(e, t) {
58875
59292
  var n = Object.keys(e);
58876
59293
  if (Object.getOwnPropertySymbols) {
58877
59294
  var r = Object.getOwnPropertySymbols(e);
@@ -58881,18 +59298,18 @@ function Fk(e, t) {
58881
59298
  }
58882
59299
  return n;
58883
59300
  }
58884
- function Lk(e) {
59301
+ function Bk(e) {
58885
59302
  for (var t = 1; t < arguments.length; t++) {
58886
59303
  var n = arguments[t] != null ? arguments[t] : {};
58887
- t % 2 ? Fk(Object(n), !0).forEach(function(r) {
58888
- Qbe(e, r, n[r]);
58889
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fk(Object(n)).forEach(function(r) {
59304
+ t % 2 ? zk(Object(n), !0).forEach(function(r) {
59305
+ Oye(e, r, n[r]);
59306
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zk(Object(n)).forEach(function(r) {
58890
59307
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
58891
59308
  });
58892
59309
  }
58893
59310
  return e;
58894
59311
  }
58895
- function Zbe() {
59312
+ function Mye() {
58896
59313
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
58897
59314
  t[n] = arguments[n];
58898
59315
  return function(r) {
@@ -58915,35 +59332,35 @@ function du(e) {
58915
59332
  function Wp(e) {
58916
59333
  return {}.toString.call(e).includes("Object");
58917
59334
  }
58918
- function Jbe(e) {
59335
+ function Tye(e) {
58919
59336
  return !Object.keys(e).length;
58920
59337
  }
58921
- function fd(e) {
59338
+ function hd(e) {
58922
59339
  return typeof e == "function";
58923
59340
  }
58924
- function eye(e, t) {
59341
+ function Dye(e, t) {
58925
59342
  return Object.prototype.hasOwnProperty.call(e, t);
58926
59343
  }
58927
- function tye(e, t) {
59344
+ function Iye(e, t) {
58928
59345
  return Wp(t) || Xi("changeType"), Object.keys(t).some(function(n) {
58929
- return !eye(e, n);
59346
+ return !Dye(e, n);
58930
59347
  }) && Xi("changeField"), t;
58931
59348
  }
58932
- function nye(e) {
58933
- fd(e) || Xi("selectorType");
59349
+ function Aye(e) {
59350
+ hd(e) || Xi("selectorType");
58934
59351
  }
58935
- function rye(e) {
58936
- fd(e) || Wp(e) || Xi("handlerType"), Wp(e) && Object.values(e).some(function(t) {
58937
- return !fd(t);
59352
+ function Nye(e) {
59353
+ hd(e) || Wp(e) || Xi("handlerType"), Wp(e) && Object.values(e).some(function(t) {
59354
+ return !hd(t);
58938
59355
  }) && Xi("handlersType");
58939
59356
  }
58940
- function oye(e) {
58941
- e || Xi("initialIsRequired"), Wp(e) || Xi("initialType"), Jbe(e) && Xi("initialContent");
59357
+ function Fye(e) {
59358
+ e || Xi("initialIsRequired"), Wp(e) || Xi("initialType"), Tye(e) && Xi("initialContent");
58942
59359
  }
58943
- function iye(e, t) {
59360
+ function Lye(e, t) {
58944
59361
  throw new Error(e[t] || e.default);
58945
59362
  }
58946
- var aye = {
59363
+ var $ye = {
58947
59364
  initialIsRequired: "initial state is required",
58948
59365
  initialType: "initial state should be an object",
58949
59366
  initialContent: "initial state shouldn't be an empty object",
@@ -58953,18 +59370,18 @@ var aye = {
58953
59370
  changeType: "provided value of changes should be an object",
58954
59371
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
58955
59372
  default: "an unknown error accured in `state-local` package"
58956
- }, Xi = du(iye)(aye), dh = {
58957
- changes: tye,
58958
- selector: nye,
58959
- handler: rye,
58960
- initial: oye
59373
+ }, Xi = du(Lye)($ye), dh = {
59374
+ changes: Iye,
59375
+ selector: Aye,
59376
+ handler: Nye,
59377
+ initial: Fye
58961
59378
  };
58962
- function sye(e) {
59379
+ function zye(e) {
58963
59380
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
58964
59381
  dh.initial(e), dh.handler(t);
58965
59382
  var n = {
58966
59383
  current: e
58967
- }, r = du(uye)(n, t), o = du(cye)(n), i = du(dh.changes)(e), a = du(lye)(n);
59384
+ }, r = du(Hye)(n, t), o = du(Vye)(n), i = du(dh.changes)(e), a = du(Bye)(n);
58968
59385
  function s() {
58969
59386
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(u) {
58970
59387
  return u;
@@ -58972,30 +59389,30 @@ function sye(e) {
58972
59389
  return dh.selector(c), c(n.current);
58973
59390
  }
58974
59391
  function l(c) {
58975
- Zbe(r, o, i, a)(c);
59392
+ Mye(r, o, i, a)(c);
58976
59393
  }
58977
59394
  return [s, l];
58978
59395
  }
58979
- function lye(e, t) {
58980
- return fd(t) ? t(e.current) : t;
59396
+ function Bye(e, t) {
59397
+ return hd(t) ? t(e.current) : t;
58981
59398
  }
58982
- function cye(e, t) {
58983
- return e.current = Lk(Lk({}, e.current), t), t;
59399
+ function Vye(e, t) {
59400
+ return e.current = Bk(Bk({}, e.current), t), t;
58984
59401
  }
58985
- function uye(e, t, n) {
58986
- return fd(t) ? t(e.current) : Object.keys(n).forEach(function(r) {
59402
+ function Hye(e, t, n) {
59403
+ return hd(t) ? t(e.current) : Object.keys(n).forEach(function(r) {
58987
59404
  var o;
58988
59405
  return (o = t[r]) === null || o === void 0 ? void 0 : o.call(t, e.current[r]);
58989
59406
  }), n;
58990
59407
  }
58991
- var dye = {
58992
- create: sye
58993
- }, fye = {
59408
+ var jye = {
59409
+ create: zye
59410
+ }, Wye = {
58994
59411
  paths: {
58995
59412
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
58996
59413
  }
58997
59414
  };
58998
- function hye(e) {
59415
+ function Uye(e) {
58999
59416
  return function t() {
59000
59417
  for (var n = this, r = arguments.length, o = new Array(r), i = 0; i < r; i++)
59001
59418
  o[i] = arguments[i];
@@ -59006,23 +59423,23 @@ function hye(e) {
59006
59423
  };
59007
59424
  };
59008
59425
  }
59009
- function pye(e) {
59426
+ function Gye(e) {
59010
59427
  return {}.toString.call(e).includes("Object");
59011
59428
  }
59012
- function gye(e) {
59013
- return e || $k("configIsRequired"), pye(e) || $k("configType"), e.urls ? (mye(), {
59429
+ function qye(e) {
59430
+ return e || Vk("configIsRequired"), Gye(e) || Vk("configType"), e.urls ? (Yye(), {
59014
59431
  paths: {
59015
59432
  vs: e.urls.monacoBase
59016
59433
  }
59017
59434
  }) : e;
59018
59435
  }
59019
- function mye() {
59020
- console.warn(BL.deprecation);
59436
+ function Yye() {
59437
+ console.warn(qL.deprecation);
59021
59438
  }
59022
- function bye(e, t) {
59439
+ function Kye(e, t) {
59023
59440
  throw new Error(e[t] || e.default);
59024
59441
  }
59025
- var BL = {
59442
+ var qL = {
59026
59443
  configIsRequired: "the configuration object is required",
59027
59444
  configType: "the configuration object should be an object",
59028
59445
  default: "an unknown error accured in `@monaco-editor/loader` package",
@@ -59036,9 +59453,9 @@ var BL = {
59036
59453
 
59037
59454
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
59038
59455
  `
59039
- }, $k = hye(bye)(BL), yye = {
59040
- config: gye
59041
- }, vye = function() {
59456
+ }, Vk = Uye(Kye)(qL), Xye = {
59457
+ config: qye
59458
+ }, Qye = function() {
59042
59459
  for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
59043
59460
  n[r] = arguments[r];
59044
59461
  return function(o) {
@@ -59047,43 +59464,43 @@ var BL = {
59047
59464
  }, o);
59048
59465
  };
59049
59466
  };
59050
- function VL(e, t) {
59467
+ function YL(e, t) {
59051
59468
  return Object.keys(t).forEach(function(n) {
59052
- t[n] instanceof Object && e[n] && Object.assign(t[n], VL(e[n], t[n]));
59053
- }), Ak(Ak({}, e), t);
59469
+ t[n] instanceof Object && e[n] && Object.assign(t[n], YL(e[n], t[n]));
59470
+ }), Lk(Lk({}, e), t);
59054
59471
  }
59055
- var wye = {
59472
+ var Zye = {
59056
59473
  type: "cancelation",
59057
59474
  msg: "operation is manually canceled"
59058
59475
  };
59059
- function wy(e) {
59476
+ function Cy(e) {
59060
59477
  var t = !1, n = new Promise(function(r, o) {
59061
59478
  e.then(function(i) {
59062
- return t ? o(wye) : r(i);
59479
+ return t ? o(Zye) : r(i);
59063
59480
  }), e.catch(o);
59064
59481
  });
59065
59482
  return n.cancel = function() {
59066
59483
  return t = !0;
59067
59484
  }, n;
59068
59485
  }
59069
- var xye = dye.create({
59070
- config: fye,
59486
+ var Jye = jye.create({
59487
+ config: Wye,
59071
59488
  isInitialized: !1,
59072
59489
  resolve: null,
59073
59490
  reject: null,
59074
59491
  monaco: null
59075
- }), HL = Gbe(xye, 2), Jd = HL[0], gm = HL[1];
59076
- function Sye(e) {
59077
- var t = yye.config(e), n = t.monaco, r = Ube(t, ["monaco"]);
59078
- gm(function(o) {
59492
+ }), KL = _ye(Jye, 2), ef = KL[0], mm = KL[1];
59493
+ function e0e(e) {
59494
+ var t = Xye.config(e), n = t.monaco, r = Cye(t, ["monaco"]);
59495
+ mm(function(o) {
59079
59496
  return {
59080
- config: VL(o.config, r),
59497
+ config: YL(o.config, r),
59081
59498
  monaco: n
59082
59499
  };
59083
59500
  });
59084
59501
  }
59085
- function Cye() {
59086
- var e = Jd(function(t) {
59502
+ function t0e() {
59503
+ var e = ef(function(t) {
59087
59504
  var n = t.monaco, r = t.isInitialized, o = t.resolve;
59088
59505
  return {
59089
59506
  monaco: n,
@@ -59092,37 +59509,37 @@ function Cye() {
59092
59509
  };
59093
59510
  });
59094
59511
  if (!e.isInitialized) {
59095
- if (gm({
59512
+ if (mm({
59096
59513
  isInitialized: !0
59097
59514
  }), e.monaco)
59098
- return e.resolve(e.monaco), wy(xy);
59515
+ return e.resolve(e.monaco), Cy(_y);
59099
59516
  if (window.monaco && window.monaco.editor)
59100
- return jL(window.monaco), e.resolve(window.monaco), wy(xy);
59101
- vye(_ye, Rye)(kye);
59517
+ return XL(window.monaco), e.resolve(window.monaco), Cy(_y);
59518
+ Qye(n0e, o0e)(i0e);
59102
59519
  }
59103
- return wy(xy);
59520
+ return Cy(_y);
59104
59521
  }
59105
- function _ye(e) {
59522
+ function n0e(e) {
59106
59523
  return document.body.appendChild(e);
59107
59524
  }
59108
- function Eye(e) {
59525
+ function r0e(e) {
59109
59526
  var t = document.createElement("script");
59110
59527
  return e && (t.src = e), t;
59111
59528
  }
59112
- function Rye(e) {
59113
- var t = Jd(function(r) {
59529
+ function o0e(e) {
59530
+ var t = ef(function(r) {
59114
59531
  var o = r.config, i = r.reject;
59115
59532
  return {
59116
59533
  config: o,
59117
59534
  reject: i
59118
59535
  };
59119
- }), n = Eye("".concat(t.config.paths.vs, "/loader.js"));
59536
+ }), n = r0e("".concat(t.config.paths.vs, "/loader.js"));
59120
59537
  return n.onload = function() {
59121
59538
  return e();
59122
59539
  }, n.onerror = t.reject, n;
59123
59540
  }
59124
- function kye() {
59125
- var e = Jd(function(n) {
59541
+ function i0e() {
59542
+ var e = ef(function(n) {
59126
59543
  var r = n.config, o = n.resolve, i = n.reject;
59127
59544
  return {
59128
59545
  config: r,
@@ -59131,68 +59548,68 @@ function kye() {
59131
59548
  };
59132
59549
  }), t = window.require;
59133
59550
  t.config(e.config), t(["vs/editor/editor.main"], function(n) {
59134
- jL(n), e.resolve(n);
59551
+ XL(n), e.resolve(n);
59135
59552
  }, function(n) {
59136
59553
  e.reject(n);
59137
59554
  });
59138
59555
  }
59139
- function jL(e) {
59140
- Jd().monaco || gm({
59556
+ function XL(e) {
59557
+ ef().monaco || mm({
59141
59558
  monaco: e
59142
59559
  });
59143
59560
  }
59144
- function Pye() {
59145
- return Jd(function(e) {
59561
+ function a0e() {
59562
+ return ef(function(e) {
59146
59563
  var t = e.monaco;
59147
59564
  return t;
59148
59565
  });
59149
59566
  }
59150
- var xy = new Promise(function(e, t) {
59151
- return gm({
59567
+ var _y = new Promise(function(e, t) {
59568
+ return mm({
59152
59569
  resolve: e,
59153
59570
  reject: t
59154
59571
  });
59155
59572
  }), Up = {
59156
- config: Sye,
59157
- init: Cye,
59158
- __getMonacoInstance: Pye
59159
- }, Oye = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Sy = Oye, Mye = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Tye = Mye;
59160
- function Dye({ children: e }) {
59161
- return J.createElement("div", { style: Tye.container }, e);
59162
- }
59163
- var Iye = Dye, Aye = Iye;
59164
- function Nye({ width: e, height: t, isEditorReady: n, loading: r, _ref: o, className: i, wrapperProps: a }) {
59165
- return J.createElement("section", { style: { ...Sy.wrapper, width: e, height: t }, ...a }, !n && J.createElement(Aye, null, r), J.createElement("div", { ref: o, style: { ...Sy.fullWidth, ...!n && Sy.hide }, className: i }));
59166
- }
59167
- var Fye = Nye, WL = ow(Fye);
59168
- function Lye(e) {
59573
+ config: e0e,
59574
+ init: t0e,
59575
+ __getMonacoInstance: a0e
59576
+ }, s0e = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Ey = s0e, l0e = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, c0e = l0e;
59577
+ function u0e({ children: e }) {
59578
+ return J.createElement("div", { style: c0e.container }, e);
59579
+ }
59580
+ var d0e = u0e, f0e = d0e;
59581
+ function h0e({ width: e, height: t, isEditorReady: n, loading: r, _ref: o, className: i, wrapperProps: a }) {
59582
+ return J.createElement("section", { style: { ...Ey.wrapper, width: e, height: t }, ...a }, !n && J.createElement(f0e, null, r), J.createElement("div", { ref: o, style: { ...Ey.fullWidth, ...!n && Ey.hide }, className: i }));
59583
+ }
59584
+ var p0e = h0e, QL = ow(p0e);
59585
+ function g0e(e) {
59169
59586
  we(e, []);
59170
59587
  }
59171
- var AS = Lye;
59172
- function $ye(e, t, n = !0) {
59588
+ var FS = g0e;
59589
+ function m0e(e, t, n = !0) {
59173
59590
  let r = me(!0);
59174
59591
  we(r.current || !n ? () => {
59175
59592
  r.current = !1;
59176
59593
  } : e, t);
59177
59594
  }
59178
- var Sr = $ye;
59595
+ var Sr = m0e;
59179
59596
  function Du() {
59180
59597
  }
59181
59598
  function cl(e, t, n, r) {
59182
- return zye(e, r) || Bye(e, t, n, r);
59599
+ return b0e(e, r) || y0e(e, t, n, r);
59183
59600
  }
59184
- function zye(e, t) {
59185
- return e.editor.getModel(UL(e, t));
59601
+ function b0e(e, t) {
59602
+ return e.editor.getModel(ZL(e, t));
59186
59603
  }
59187
- function Bye(e, t, n, r) {
59188
- return e.editor.createModel(t, n, r ? UL(e, r) : void 0);
59604
+ function y0e(e, t, n, r) {
59605
+ return e.editor.createModel(t, n, r ? ZL(e, r) : void 0);
59189
59606
  }
59190
- function UL(e, t) {
59607
+ function ZL(e, t) {
59191
59608
  return e.Uri.parse(t);
59192
59609
  }
59193
- function Vye({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: h = "100%", width: f = "100%", className: p, wrapperProps: g = {}, beforeMount: m = Du, onMount: b = Du }) {
59610
+ function v0e({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: h = "100%", width: f = "100%", className: p, wrapperProps: g = {}, beforeMount: m = Du, onMount: b = Du }) {
59194
59611
  let [y, w] = ge(!1), [_, x] = ge(!0), S = me(null), E = me(null), k = me(null), O = me(b), M = me(m), D = me(!1);
59195
- AS(() => {
59612
+ FS(() => {
59196
59613
  let T = Up.init();
59197
59614
  return T.then((N) => (E.current = N) && x(!1)).catch((N) => (N == null ? void 0 : N.type) !== "cancelation" && console.error("Monaco initialization: error:", N)), () => S.current ? $() : T.cancel();
59198
59615
  }), Sr(() => {
@@ -59241,30 +59658,30 @@ function Vye({ original: e, modified: t, language: n, originalLanguage: r, modif
59241
59658
  let T = (N = S.current) == null ? void 0 : N.getModel();
59242
59659
  s || ((I = T == null ? void 0 : T.original) == null || I.dispose()), l || ((F = T == null ? void 0 : T.modified) == null || F.dispose()), (H = S.current) == null || H.dispose();
59243
59660
  }
59244
- return J.createElement(WL, { width: f, height: h, isEditorReady: y, loading: u, _ref: k, className: p, wrapperProps: g });
59661
+ return J.createElement(QL, { width: f, height: h, isEditorReady: y, loading: u, _ref: k, className: p, wrapperProps: g });
59245
59662
  }
59246
- var Hye = Vye;
59247
- ow(Hye);
59248
- function jye() {
59663
+ var w0e = v0e;
59664
+ ow(w0e);
59665
+ function x0e() {
59249
59666
  let [e, t] = ge(Up.__getMonacoInstance());
59250
- return AS(() => {
59667
+ return FS(() => {
59251
59668
  let n;
59252
59669
  return e || (n = Up.init(), n.then((r) => {
59253
59670
  t(r);
59254
59671
  })), () => n == null ? void 0 : n.cancel();
59255
59672
  }), e;
59256
59673
  }
59257
- var awe = jye;
59258
- function Wye(e) {
59674
+ var awe = x0e;
59675
+ function S0e(e) {
59259
59676
  let t = me();
59260
59677
  return we(() => {
59261
59678
  t.current = e;
59262
59679
  }, [e]), t.current;
59263
59680
  }
59264
- var Uye = Wye, fh = /* @__PURE__ */ new Map();
59265
- function Gye({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: h = !1, width: f = "100%", height: p = "100%", className: g, wrapperProps: m = {}, beforeMount: b = Du, onMount: y = Du, onChange: w, onValidate: _ = Du }) {
59266
- let [x, S] = ge(!1), [E, k] = ge(!0), O = me(null), M = me(null), D = me(null), A = me(y), W = me(b), $ = me(), T = me(r), N = Uye(i), I = me(!1), F = me(!1);
59267
- AS(() => {
59681
+ var C0e = S0e, fh = /* @__PURE__ */ new Map();
59682
+ function _0e({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: h = !1, width: f = "100%", height: p = "100%", className: g, wrapperProps: m = {}, beforeMount: b = Du, onMount: y = Du, onChange: w, onValidate: _ = Du }) {
59683
+ let [x, S] = ge(!1), [E, k] = ge(!0), O = me(null), M = me(null), D = me(null), A = me(y), W = me(b), $ = me(), T = me(r), N = C0e(i), I = me(!1), F = me(!1);
59684
+ FS(() => {
59268
59685
  let B = Up.init();
59269
59686
  return B.then((L) => (O.current = L) && k(!1)).catch((L) => (L == null ? void 0 : L.type) !== "cancelation" && console.error("Monaco initialization: error:", L)), () => M.current ? P() : B.cancel();
59270
59687
  }), Sr(() => {
@@ -59325,9 +59742,9 @@ function Gye({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
59325
59742
  var B, L;
59326
59743
  (B = $.current) == null || B.dispose(), h ? d && fh.set(i, M.current.saveViewState()) : (L = M.current.getModel()) == null || L.dispose(), M.current.dispose();
59327
59744
  }
59328
- return J.createElement(WL, { width: f, height: p, isEditorReady: x, loading: l, _ref: D, className: g, wrapperProps: m });
59745
+ return J.createElement(QL, { width: f, height: p, isEditorReady: x, loading: l, _ref: D, className: g, wrapperProps: m });
59329
59746
  }
59330
- var qye = Gye, Yye = ow(qye), swe = Yye, NS = "Switch", [Kye, lwe] = sn(NS), [Xye, Qye] = Kye(NS), GL = C.forwardRef(
59747
+ var E0e = _0e, R0e = ow(E0e), swe = R0e, LS = "Switch", [k0e, lwe] = sn(LS), [P0e, O0e] = k0e(LS), JL = C.forwardRef(
59331
59748
  (e, t) => {
59332
59749
  const {
59333
59750
  __scopeSwitch: n,
@@ -59345,7 +59762,7 @@ var qye = Gye, Yye = ow(qye), swe = Yye, NS = "Switch", [Kye, lwe] = sn(NS), [Xy
59345
59762
  defaultProp: i,
59346
59763
  onChange: c
59347
59764
  });
59348
- return /* @__PURE__ */ Q(Xye, { scope: n, checked: b, disabled: s, children: [
59765
+ return /* @__PURE__ */ Q(P0e, { scope: n, checked: b, disabled: s, children: [
59349
59766
  /* @__PURE__ */ v(
59350
59767
  ye.button,
59351
59768
  {
@@ -59353,7 +59770,7 @@ var qye = Gye, Yye = ow(qye), swe = Yye, NS = "Switch", [Kye, lwe] = sn(NS), [Xy
59353
59770
  role: "switch",
59354
59771
  "aria-checked": b,
59355
59772
  "aria-required": a,
59356
- "data-state": KL(b),
59773
+ "data-state": n3(b),
59357
59774
  "data-disabled": s ? "" : void 0,
59358
59775
  disabled: s,
59359
59776
  value: l,
@@ -59365,7 +59782,7 @@ var qye = Gye, Yye = ow(qye), swe = Yye, NS = "Switch", [Kye, lwe] = sn(NS), [Xy
59365
59782
  }
59366
59783
  ),
59367
59784
  m && /* @__PURE__ */ v(
59368
- Zye,
59785
+ M0e,
59369
59786
  {
59370
59787
  control: h,
59371
59788
  bubbles: !g.current,
@@ -59381,14 +59798,14 @@ var qye = Gye, Yye = ow(qye), swe = Yye, NS = "Switch", [Kye, lwe] = sn(NS), [Xy
59381
59798
  ] });
59382
59799
  }
59383
59800
  );
59384
- GL.displayName = NS;
59385
- var qL = "SwitchThumb", YL = C.forwardRef(
59801
+ JL.displayName = LS;
59802
+ var e3 = "SwitchThumb", t3 = C.forwardRef(
59386
59803
  (e, t) => {
59387
- const { __scopeSwitch: n, ...r } = e, o = Qye(qL, n);
59804
+ const { __scopeSwitch: n, ...r } = e, o = O0e(e3, n);
59388
59805
  return /* @__PURE__ */ v(
59389
59806
  ye.span,
59390
59807
  {
59391
- "data-state": KL(o.checked),
59808
+ "data-state": n3(o.checked),
59392
59809
  "data-disabled": o.disabled ? "" : void 0,
59393
59810
  ...r,
59394
59811
  ref: t
@@ -59396,8 +59813,8 @@ var qL = "SwitchThumb", YL = C.forwardRef(
59396
59813
  );
59397
59814
  }
59398
59815
  );
59399
- YL.displayName = qL;
59400
- var Zye = (e) => {
59816
+ t3.displayName = e3;
59817
+ var M0e = (e) => {
59401
59818
  const { control: t, checked: n, bubbles: r = !0, ...o } = e, i = C.useRef(null), a = $g(n), s = Pg(t);
59402
59819
  return C.useEffect(() => {
59403
59820
  const l = i.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
@@ -59425,12 +59842,12 @@ var Zye = (e) => {
59425
59842
  }
59426
59843
  );
59427
59844
  };
59428
- function KL(e) {
59845
+ function n3(e) {
59429
59846
  return e ? "checked" : "unchecked";
59430
59847
  }
59431
- var mm = GL, XL = YL;
59432
- const Jye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59433
- mm,
59848
+ var bm = JL, r3 = t3;
59849
+ const T0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59850
+ bm,
59434
59851
  {
59435
59852
  className: ae(
59436
59853
  "peer inline-flex h-6 w-11 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-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
@@ -59439,7 +59856,7 @@ const Jye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59439
59856
  ...t,
59440
59857
  ref: n,
59441
59858
  children: /* @__PURE__ */ v(
59442
- XL,
59859
+ r3,
59443
59860
  {
59444
59861
  className: ae(
59445
59862
  "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
@@ -59448,27 +59865,9 @@ const Jye = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59448
59865
  )
59449
59866
  }
59450
59867
  ));
59451
- Jye.displayName = mm.displayName;
59452
- const e0e = bn(
59453
- ({ children: e, className: t, tooltip: n, onClick: r, ...o }, i) => /* @__PURE__ */ Q(WD, { children: [
59454
- /* @__PURE__ */ v(UD, { asChild: !0, children: /* @__PURE__ */ v(
59455
- nn,
59456
- {
59457
- ref: i,
59458
- size: "sm",
59459
- variant: "ghost",
59460
- onClick: r,
59461
- ...o,
59462
- className: t,
59463
- children: e
59464
- }
59465
- ) }),
59466
- n && /* @__PURE__ */ v(qx, { side: "bottom", sideOffset: 10, children: n })
59467
- ] })
59468
- );
59469
- e0e.displayName = "IconButton";
59470
- const t0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59471
- mm,
59868
+ T0e.displayName = bm.displayName;
59869
+ const D0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59870
+ bm,
59472
59871
  {
59473
59872
  className: ae(
59474
59873
  "peer inline-flex h-[22px] w-[36px] 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-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
@@ -59477,7 +59876,7 @@ const t0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59477
59876
  ...t,
59478
59877
  ref: n,
59479
59878
  children: /* @__PURE__ */ v(
59480
- XL,
59879
+ r3,
59481
59880
  {
59482
59881
  className: ae(
59483
59882
  "pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
@@ -59486,21 +59885,21 @@ const t0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59486
59885
  )
59487
59886
  }
59488
59887
  ));
59489
- t0e.displayName = mm.displayName;
59490
- var xi = "Accordion", n0e = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [FS, r0e, o0e] = eg(xi), [bm, cwe] = sn(xi, [
59491
- o0e,
59888
+ D0e.displayName = bm.displayName;
59889
+ var xi = "Accordion", I0e = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [$S, A0e, N0e] = eg(xi), [ym, cwe] = sn(xi, [
59890
+ N0e,
59492
59891
  H5
59493
- ]), LS = H5(), QL = J.forwardRef(
59892
+ ]), zS = H5(), o3 = J.forwardRef(
59494
59893
  (e, t) => {
59495
59894
  const { type: n, ...r } = e, o = r, i = r;
59496
- return /* @__PURE__ */ v(FS.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ v(l0e, { ...i, ref: t }) : /* @__PURE__ */ v(s0e, { ...o, ref: t }) });
59895
+ return /* @__PURE__ */ v($S.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ v(z0e, { ...i, ref: t }) : /* @__PURE__ */ v($0e, { ...o, ref: t }) });
59497
59896
  }
59498
59897
  );
59499
- QL.displayName = xi;
59500
- var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59898
+ o3.displayName = xi;
59899
+ var [i3, F0e] = ym(xi), [a3, L0e] = ym(
59501
59900
  xi,
59502
59901
  { collapsible: !1 }
59503
- ), s0e = J.forwardRef(
59902
+ ), $0e = J.forwardRef(
59504
59903
  (e, t) => {
59505
59904
  const {
59506
59905
  value: n,
@@ -59515,17 +59914,17 @@ var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59515
59914
  onChange: o
59516
59915
  });
59517
59916
  return /* @__PURE__ */ v(
59518
- ZL,
59917
+ i3,
59519
59918
  {
59520
59919
  scope: e.__scopeAccordion,
59521
59920
  value: s ? [s] : [],
59522
59921
  onItemOpen: l,
59523
59922
  onItemClose: J.useCallback(() => i && l(""), [i, l]),
59524
- children: /* @__PURE__ */ v(JL, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ v(e3, { ...a, ref: t }) })
59923
+ children: /* @__PURE__ */ v(a3, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ v(s3, { ...a, ref: t }) })
59525
59924
  }
59526
59925
  );
59527
59926
  }
59528
- ), l0e = J.forwardRef((e, t) => {
59927
+ ), z0e = J.forwardRef((e, t) => {
59529
59928
  const {
59530
59929
  value: n,
59531
59930
  defaultValue: r,
@@ -59544,20 +59943,20 @@ var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59544
59943
  [s]
59545
59944
  );
59546
59945
  return /* @__PURE__ */ v(
59547
- ZL,
59946
+ i3,
59548
59947
  {
59549
59948
  scope: e.__scopeAccordion,
59550
59949
  value: a,
59551
59950
  onItemOpen: l,
59552
59951
  onItemClose: c,
59553
- children: /* @__PURE__ */ v(JL, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ v(e3, { ...i, ref: t }) })
59952
+ children: /* @__PURE__ */ v(a3, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ v(s3, { ...i, ref: t }) })
59554
59953
  }
59555
59954
  );
59556
- }), [c0e, ym] = bm(xi), e3 = J.forwardRef(
59955
+ }), [B0e, vm] = ym(xi), s3 = J.forwardRef(
59557
59956
  (e, t) => {
59558
- const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = J.useRef(null), l = Ne(s, t), c = r0e(n), d = Ms(o) === "ltr", h = ce(e.onKeyDown, (f) => {
59957
+ const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = J.useRef(null), l = Ne(s, t), c = A0e(n), d = Ms(o) === "ltr", h = ce(e.onKeyDown, (f) => {
59559
59958
  var k;
59560
- if (!n0e.includes(f.key)) return;
59959
+ if (!I0e.includes(f.key)) return;
59561
59960
  const p = f.target, g = c().filter((O) => {
59562
59961
  var M;
59563
59962
  return !((M = O.ref.current) != null && M.disabled);
@@ -59594,13 +59993,13 @@ var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59594
59993
  (k = g[E].ref.current) == null || k.focus();
59595
59994
  });
59596
59995
  return /* @__PURE__ */ v(
59597
- c0e,
59996
+ B0e,
59598
59997
  {
59599
59998
  scope: n,
59600
59999
  disabled: r,
59601
60000
  direction: o,
59602
60001
  orientation: i,
59603
- children: /* @__PURE__ */ v(FS.Slot, { scope: n, children: /* @__PURE__ */ v(
60002
+ children: /* @__PURE__ */ v($S.Slot, { scope: n, children: /* @__PURE__ */ v(
59604
60003
  ye.div,
59605
60004
  {
59606
60005
  ...a,
@@ -59612,11 +60011,11 @@ var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59612
60011
  }
59613
60012
  );
59614
60013
  }
59615
- ), Gp = "AccordionItem", [u0e, $S] = bm(Gp), t3 = J.forwardRef(
60014
+ ), Gp = "AccordionItem", [V0e, BS] = ym(Gp), l3 = J.forwardRef(
59616
60015
  (e, t) => {
59617
- const { __scopeAccordion: n, value: r, ...o } = e, i = ym(Gp, n), a = i0e(Gp, n), s = LS(n), l = tn(), c = r && a.value.includes(r) || !1, u = i.disabled || e.disabled;
60016
+ const { __scopeAccordion: n, value: r, ...o } = e, i = vm(Gp, n), a = F0e(Gp, n), s = zS(n), l = tn(), c = r && a.value.includes(r) || !1, u = i.disabled || e.disabled;
59618
60017
  return /* @__PURE__ */ v(
59619
- u0e,
60018
+ V0e,
59620
60019
  {
59621
60020
  scope: n,
59622
60021
  open: c,
@@ -59626,7 +60025,7 @@ var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59626
60025
  U5,
59627
60026
  {
59628
60027
  "data-orientation": i.orientation,
59629
- "data-state": s3(c),
60028
+ "data-state": p3(c),
59630
60029
  ...s,
59631
60030
  ...o,
59632
60031
  ref: t,
@@ -59641,15 +60040,15 @@ var [ZL, i0e] = bm(xi), [JL, a0e] = bm(
59641
60040
  );
59642
60041
  }
59643
60042
  );
59644
- t3.displayName = Gp;
59645
- var n3 = "AccordionHeader", r3 = J.forwardRef(
60043
+ l3.displayName = Gp;
60044
+ var c3 = "AccordionHeader", u3 = J.forwardRef(
59646
60045
  (e, t) => {
59647
- const { __scopeAccordion: n, ...r } = e, o = ym(xi, n), i = $S(n3, n);
60046
+ const { __scopeAccordion: n, ...r } = e, o = vm(xi, n), i = BS(c3, n);
59648
60047
  return /* @__PURE__ */ v(
59649
60048
  ye.h3,
59650
60049
  {
59651
60050
  "data-orientation": o.orientation,
59652
- "data-state": s3(i.open),
60051
+ "data-state": p3(i.open),
59653
60052
  "data-disabled": i.disabled ? "" : void 0,
59654
60053
  ...r,
59655
60054
  ref: t
@@ -59657,11 +60056,11 @@ var n3 = "AccordionHeader", r3 = J.forwardRef(
59657
60056
  );
59658
60057
  }
59659
60058
  );
59660
- r3.displayName = n3;
59661
- var tw = "AccordionTrigger", o3 = J.forwardRef(
60059
+ u3.displayName = c3;
60060
+ var rw = "AccordionTrigger", d3 = J.forwardRef(
59662
60061
  (e, t) => {
59663
- const { __scopeAccordion: n, ...r } = e, o = ym(xi, n), i = $S(tw, n), a = a0e(tw, n), s = LS(n);
59664
- return /* @__PURE__ */ v(FS.ItemSlot, { scope: n, children: /* @__PURE__ */ v(
60062
+ const { __scopeAccordion: n, ...r } = e, o = vm(xi, n), i = BS(rw, n), a = L0e(rw, n), s = zS(n);
60063
+ return /* @__PURE__ */ v($S.ItemSlot, { scope: n, children: /* @__PURE__ */ v(
59665
60064
  lce,
59666
60065
  {
59667
60066
  "aria-disabled": i.open && !a.collapsible || void 0,
@@ -59674,10 +60073,10 @@ var tw = "AccordionTrigger", o3 = J.forwardRef(
59674
60073
  ) });
59675
60074
  }
59676
60075
  );
59677
- o3.displayName = tw;
59678
- var i3 = "AccordionContent", a3 = J.forwardRef(
60076
+ d3.displayName = rw;
60077
+ var f3 = "AccordionContent", h3 = J.forwardRef(
59679
60078
  (e, t) => {
59680
- const { __scopeAccordion: n, ...r } = e, o = ym(xi, n), i = $S(i3, n), a = LS(n);
60079
+ const { __scopeAccordion: n, ...r } = e, o = vm(xi, n), i = BS(f3, n), a = zS(n);
59681
60080
  return /* @__PURE__ */ v(
59682
60081
  cce,
59683
60082
  {
@@ -59696,22 +60095,22 @@ var i3 = "AccordionContent", a3 = J.forwardRef(
59696
60095
  );
59697
60096
  }
59698
60097
  );
59699
- a3.displayName = i3;
59700
- function s3(e) {
60098
+ h3.displayName = f3;
60099
+ function p3(e) {
59701
60100
  return e ? "open" : "closed";
59702
60101
  }
59703
- var d0e = QL, f0e = t3, h0e = r3, l3 = o3, c3 = a3;
59704
- const uwe = d0e, p0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
59705
- f0e,
60102
+ var H0e = o3, j0e = l3, W0e = u3, g3 = d3, m3 = h3;
60103
+ const uwe = H0e, U0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
60104
+ j0e,
59706
60105
  {
59707
60106
  ref: n,
59708
60107
  className: ae("border-b", e),
59709
60108
  ...t
59710
60109
  }
59711
60110
  ));
59712
- p0e.displayName = "AccordionItem";
59713
- const g0e = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h0e, { className: "flex", children: /* @__PURE__ */ Q(
59714
- l3,
60111
+ U0e.displayName = "AccordionItem";
60112
+ const G0e = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(W0e, { className: "flex", children: /* @__PURE__ */ Q(
60113
+ g3,
59715
60114
  {
59716
60115
  ref: r,
59717
60116
  className: ae(
@@ -59725,9 +60124,9 @@ const g0e = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
59725
60124
  ]
59726
60125
  }
59727
60126
  ) }));
59728
- g0e.displayName = l3.displayName;
59729
- const m0e = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(
59730
- c3,
60127
+ G0e.displayName = g3.displayName;
60128
+ const q0e = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(
60129
+ m3,
59731
60130
  {
59732
60131
  ref: r,
59733
60132
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
@@ -59735,392 +60134,7 @@ const m0e = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
59735
60134
  children: /* @__PURE__ */ v("div", { className: ae("pb-4 pt-0", e), children: t })
59736
60135
  }
59737
60136
  ));
59738
- m0e.displayName = c3.displayName;
59739
- var zk = 1, b0e = 0.9, y0e = 0.8, v0e = 0.17, Cy = 0.1, _y = 0.999, w0e = 0.9999, x0e = 0.99, S0e = /[\\\/_+.#"@\[\(\{&]/, C0e = /[\\\/_+.#"@\[\(\{&]/g, _0e = /[\s-]/, u3 = /[\s-]/g;
59740
- function nw(e, t, n, r, o, i, a) {
59741
- if (i === t.length) return o === e.length ? zk : x0e;
59742
- var s = `${o},${i}`;
59743
- if (a[s] !== void 0) return a[s];
59744
- for (var l = r.charAt(i), c = n.indexOf(l, o), u = 0, d, h, f, p; c >= 0; ) d = nw(e, t, n, r, c + 1, i + 1, a), d > u && (c === o ? d *= zk : S0e.test(e.charAt(c - 1)) ? (d *= y0e, f = e.slice(o, c - 1).match(C0e), f && o > 0 && (d *= Math.pow(_y, f.length))) : _0e.test(e.charAt(c - 1)) ? (d *= b0e, p = e.slice(o, c - 1).match(u3), p && o > 0 && (d *= Math.pow(_y, p.length))) : (d *= v0e, o > 0 && (d *= Math.pow(_y, c - o))), e.charAt(c) !== t.charAt(i) && (d *= w0e)), (d < Cy && n.charAt(c - 1) === r.charAt(i + 1) || r.charAt(i + 1) === r.charAt(i) && n.charAt(c - 1) !== r.charAt(i)) && (h = nw(e, t, n, r, c + 1, i + 2, a), h * Cy > d && (d = h * Cy)), d > u && (u = d), c = n.indexOf(l, c + 1);
59745
- return a[s] = u, u;
59746
- }
59747
- function Bk(e) {
59748
- return e.toLowerCase().replace(u3, " ");
59749
- }
59750
- function E0e(e, t, n) {
59751
- return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, nw(e, t, Bk(e), Bk(t), 0, 0, {});
59752
- }
59753
- var qc = '[cmdk-group=""]', Ey = '[cmdk-group-items=""]', R0e = '[cmdk-group-heading=""]', zS = '[cmdk-item=""]', Vk = `${zS}:not([aria-disabled="true"])`, rw = "cmdk-item-select", Aa = "data-value", k0e = (e, t, n) => E0e(e, t, n), d3 = C.createContext(void 0), ef = () => C.useContext(d3), f3 = C.createContext(void 0), BS = () => C.useContext(f3), h3 = C.createContext(void 0), p3 = C.forwardRef((e, t) => {
59754
- let n = tl(() => {
59755
- var L, R;
59756
- return { search: "", value: (R = (L = e.value) != null ? L : e.defaultValue) != null ? R : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
59757
- }), r = tl(() => /* @__PURE__ */ new Set()), o = tl(() => /* @__PURE__ */ new Map()), i = tl(() => /* @__PURE__ */ new Map()), a = tl(() => /* @__PURE__ */ new Set()), s = g3(e), { label: l, children: c, value: u, onValueChange: d, filter: h, shouldFilter: f, loop: p, disablePointerSelection: g = !1, vimBindings: m = !0, ...b } = e, y = tn(), w = tn(), _ = tn(), x = C.useRef(null), S = $0e();
59758
- Rs(() => {
59759
- if (u !== void 0) {
59760
- let L = u.trim();
59761
- n.current.value = L, E.emit();
59762
- }
59763
- }, [u]), Rs(() => {
59764
- S(6, W);
59765
- }, []);
59766
- let E = C.useMemo(() => ({ subscribe: (L) => (a.current.add(L), () => a.current.delete(L)), snapshot: () => n.current, setState: (L, R, U) => {
59767
- var G, q, V;
59768
- if (!Object.is(n.current[L], R)) {
59769
- if (n.current[L] = R, L === "search") A(), M(), S(1, D);
59770
- else if (L === "value" && (U || S(5, W), ((G = s.current) == null ? void 0 : G.value) !== void 0)) {
59771
- let j = R ?? "";
59772
- (V = (q = s.current).onValueChange) == null || V.call(q, j);
59773
- return;
59774
- }
59775
- E.emit();
59776
- }
59777
- }, emit: () => {
59778
- a.current.forEach((L) => L());
59779
- } }), []), k = C.useMemo(() => ({ value: (L, R, U) => {
59780
- var G;
59781
- R !== ((G = i.current.get(L)) == null ? void 0 : G.value) && (i.current.set(L, { value: R, keywords: U }), n.current.filtered.items.set(L, O(R, U)), S(2, () => {
59782
- M(), E.emit();
59783
- }));
59784
- }, item: (L, R) => (r.current.add(L), R && (o.current.has(R) ? o.current.get(R).add(L) : o.current.set(R, /* @__PURE__ */ new Set([L]))), S(3, () => {
59785
- A(), M(), n.current.value || D(), E.emit();
59786
- }), () => {
59787
- i.current.delete(L), r.current.delete(L), n.current.filtered.items.delete(L);
59788
- let U = $();
59789
- S(4, () => {
59790
- A(), (U == null ? void 0 : U.getAttribute("id")) === L && D(), E.emit();
59791
- });
59792
- }), group: (L) => (o.current.has(L) || o.current.set(L, /* @__PURE__ */ new Set()), () => {
59793
- i.current.delete(L), o.current.delete(L);
59794
- }), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: y, inputId: _, labelId: w, listInnerRef: x }), []);
59795
- function O(L, R) {
59796
- var U, G;
59797
- let q = (G = (U = s.current) == null ? void 0 : U.filter) != null ? G : k0e;
59798
- return L ? q(L, n.current.search, R) : 0;
59799
- }
59800
- function M() {
59801
- if (!n.current.search || s.current.shouldFilter === !1) return;
59802
- let L = n.current.filtered.items, R = [];
59803
- n.current.filtered.groups.forEach((G) => {
59804
- let q = o.current.get(G), V = 0;
59805
- q.forEach((j) => {
59806
- let K = L.get(j);
59807
- V = Math.max(K, V);
59808
- }), R.push([G, V]);
59809
- });
59810
- let U = x.current;
59811
- T().sort((G, q) => {
59812
- var V, j;
59813
- let K = G.getAttribute("id"), ee = q.getAttribute("id");
59814
- return ((V = L.get(ee)) != null ? V : 0) - ((j = L.get(K)) != null ? j : 0);
59815
- }).forEach((G) => {
59816
- let q = G.closest(Ey);
59817
- q ? q.appendChild(G.parentElement === q ? G : G.closest(`${Ey} > *`)) : U.appendChild(G.parentElement === U ? G : G.closest(`${Ey} > *`));
59818
- }), R.sort((G, q) => q[1] - G[1]).forEach((G) => {
59819
- var q;
59820
- let V = (q = x.current) == null ? void 0 : q.querySelector(`${qc}[${Aa}="${encodeURIComponent(G[0])}"]`);
59821
- V == null || V.parentElement.appendChild(V);
59822
- });
59823
- }
59824
- function D() {
59825
- let L = T().find((U) => U.getAttribute("aria-disabled") !== "true"), R = L == null ? void 0 : L.getAttribute(Aa);
59826
- E.setState("value", R || void 0);
59827
- }
59828
- function A() {
59829
- var L, R, U, G;
59830
- if (!n.current.search || s.current.shouldFilter === !1) {
59831
- n.current.filtered.count = r.current.size;
59832
- return;
59833
- }
59834
- n.current.filtered.groups = /* @__PURE__ */ new Set();
59835
- let q = 0;
59836
- for (let V of r.current) {
59837
- let j = (R = (L = i.current.get(V)) == null ? void 0 : L.value) != null ? R : "", K = (G = (U = i.current.get(V)) == null ? void 0 : U.keywords) != null ? G : [], ee = O(j, K);
59838
- n.current.filtered.items.set(V, ee), ee > 0 && q++;
59839
- }
59840
- for (let [V, j] of o.current) for (let K of j) if (n.current.filtered.items.get(K) > 0) {
59841
- n.current.filtered.groups.add(V);
59842
- break;
59843
- }
59844
- n.current.filtered.count = q;
59845
- }
59846
- function W() {
59847
- var L, R, U;
59848
- let G = $();
59849
- G && (((L = G.parentElement) == null ? void 0 : L.firstChild) === G && ((U = (R = G.closest(qc)) == null ? void 0 : R.querySelector(R0e)) == null || U.scrollIntoView({ block: "nearest" })), G.scrollIntoView({ block: "nearest" }));
59850
- }
59851
- function $() {
59852
- var L;
59853
- return (L = x.current) == null ? void 0 : L.querySelector(`${zS}[aria-selected="true"]`);
59854
- }
59855
- function T() {
59856
- var L;
59857
- return Array.from(((L = x.current) == null ? void 0 : L.querySelectorAll(Vk)) || []);
59858
- }
59859
- function N(L) {
59860
- let R = T()[L];
59861
- R && E.setState("value", R.getAttribute(Aa));
59862
- }
59863
- function I(L) {
59864
- var R;
59865
- let U = $(), G = T(), q = G.findIndex((j) => j === U), V = G[q + L];
59866
- (R = s.current) != null && R.loop && (V = q + L < 0 ? G[G.length - 1] : q + L === G.length ? G[0] : G[q + L]), V && E.setState("value", V.getAttribute(Aa));
59867
- }
59868
- function F(L) {
59869
- let R = $(), U = R == null ? void 0 : R.closest(qc), G;
59870
- for (; U && !G; ) U = L > 0 ? F0e(U, qc) : L0e(U, qc), G = U == null ? void 0 : U.querySelector(Vk);
59871
- G ? E.setState("value", G.getAttribute(Aa)) : I(L);
59872
- }
59873
- let H = () => N(T().length - 1), P = (L) => {
59874
- L.preventDefault(), L.metaKey ? H() : L.altKey ? F(1) : I(1);
59875
- }, B = (L) => {
59876
- L.preventDefault(), L.metaKey ? N(0) : L.altKey ? F(-1) : I(-1);
59877
- };
59878
- return C.createElement(ye.div, { ref: t, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (L) => {
59879
- var R;
59880
- if ((R = b.onKeyDown) == null || R.call(b, L), !L.defaultPrevented) switch (L.key) {
59881
- case "n":
59882
- case "j": {
59883
- m && L.ctrlKey && P(L);
59884
- break;
59885
- }
59886
- case "ArrowDown": {
59887
- P(L);
59888
- break;
59889
- }
59890
- case "p":
59891
- case "k": {
59892
- m && L.ctrlKey && B(L);
59893
- break;
59894
- }
59895
- case "ArrowUp": {
59896
- B(L);
59897
- break;
59898
- }
59899
- case "Home": {
59900
- L.preventDefault(), N(0);
59901
- break;
59902
- }
59903
- case "End": {
59904
- L.preventDefault(), H();
59905
- break;
59906
- }
59907
- case "Enter":
59908
- if (!L.nativeEvent.isComposing && L.keyCode !== 229) {
59909
- L.preventDefault();
59910
- let U = $();
59911
- if (U) {
59912
- let G = new Event(rw);
59913
- U.dispatchEvent(G);
59914
- }
59915
- }
59916
- }
59917
- } }, C.createElement("label", { "cmdk-label": "", htmlFor: k.inputId, id: k.labelId, style: B0e }, l), vm(e, (L) => C.createElement(f3.Provider, { value: E }, C.createElement(d3.Provider, { value: k }, L))));
59918
- }), P0e = C.forwardRef((e, t) => {
59919
- var n, r;
59920
- let o = tn(), i = C.useRef(null), a = C.useContext(h3), s = ef(), l = g3(e), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
59921
- Rs(() => {
59922
- if (!c) return s.item(o, a == null ? void 0 : a.id);
59923
- }, [c]);
59924
- let u = m3(o, i, [e.value, e.children, i], e.keywords), d = BS(), h = ks((S) => S.value && S.value === u.current), f = ks((S) => c || s.filter() === !1 ? !0 : S.search ? S.filtered.items.get(o) > 0 : !0);
59925
- C.useEffect(() => {
59926
- let S = i.current;
59927
- if (!(!S || e.disabled)) return S.addEventListener(rw, p), () => S.removeEventListener(rw, p);
59928
- }, [f, e.onSelect, e.disabled]);
59929
- function p() {
59930
- var S, E;
59931
- g(), (E = (S = l.current).onSelect) == null || E.call(S, u.current);
59932
- }
59933
- function g() {
59934
- d.setState("value", u.current, !0);
59935
- }
59936
- if (!f) return null;
59937
- let { disabled: m, value: b, onSelect: y, forceMount: w, keywords: _, ...x } = e;
59938
- return C.createElement(ye.div, { ref: hd([i, t]), ...x, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!m, "aria-selected": !!h, "data-disabled": !!m, "data-selected": !!h, onPointerMove: m || s.getDisablePointerSelection() ? void 0 : g, onClick: m ? void 0 : p }, e.children);
59939
- }), O0e = C.forwardRef((e, t) => {
59940
- let { heading: n, children: r, forceMount: o, ...i } = e, a = tn(), s = C.useRef(null), l = C.useRef(null), c = tn(), u = ef(), d = ks((f) => o || u.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
59941
- Rs(() => u.group(a), []), m3(a, s, [e.value, e.heading, l]);
59942
- let h = C.useMemo(() => ({ id: a, forceMount: o }), [o]);
59943
- return C.createElement(ye.div, { ref: hd([s, t]), ...i, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, n && C.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), vm(e, (f) => C.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, C.createElement(h3.Provider, { value: h }, f))));
59944
- }), M0e = C.forwardRef((e, t) => {
59945
- let { alwaysRender: n, ...r } = e, o = C.useRef(null), i = ks((a) => !a.search);
59946
- return !n && !i ? null : C.createElement(ye.div, { ref: hd([o, t]), ...r, "cmdk-separator": "", role: "separator" });
59947
- }), T0e = C.forwardRef((e, t) => {
59948
- let { onValueChange: n, ...r } = e, o = e.value != null, i = BS(), a = ks((u) => u.search), s = ks((u) => u.value), l = ef(), c = C.useMemo(() => {
59949
- var u;
59950
- let d = (u = l.listInnerRef.current) == null ? void 0 : u.querySelector(`${zS}[${Aa}="${encodeURIComponent(s)}"]`);
59951
- return d == null ? void 0 : d.getAttribute("id");
59952
- }, []);
59953
- return C.useEffect(() => {
59954
- e.value != null && i.setState("search", e.value);
59955
- }, [e.value]), C.createElement(ye.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": l.listId, "aria-labelledby": l.labelId, "aria-activedescendant": c, id: l.inputId, type: "text", value: o ? e.value : a, onChange: (u) => {
59956
- o || i.setState("search", u.target.value), n == null || n(u.target.value);
59957
- } });
59958
- }), D0e = C.forwardRef((e, t) => {
59959
- let { children: n, label: r = "Suggestions", ...o } = e, i = C.useRef(null), a = C.useRef(null), s = ef();
59960
- return C.useEffect(() => {
59961
- if (a.current && i.current) {
59962
- let l = a.current, c = i.current, u, d = new ResizeObserver(() => {
59963
- u = requestAnimationFrame(() => {
59964
- let h = l.offsetHeight;
59965
- c.style.setProperty("--cmdk-list-height", h.toFixed(1) + "px");
59966
- });
59967
- });
59968
- return d.observe(l), () => {
59969
- cancelAnimationFrame(u), d.unobserve(l);
59970
- };
59971
- }
59972
- }, []), C.createElement(ye.div, { ref: hd([i, t]), ...o, "cmdk-list": "", role: "listbox", "aria-label": r, id: s.listId }, vm(e, (l) => C.createElement("div", { ref: hd([a, s.listInnerRef]), "cmdk-list-sizer": "" }, l)));
59973
- }), I0e = C.forwardRef((e, t) => {
59974
- let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: i, container: a, ...s } = e;
59975
- return C.createElement(xS, { open: n, onOpenChange: r }, C.createElement(SS, { container: a }, C.createElement(dm, { "cmdk-overlay": "", className: o }), C.createElement(fm, { "aria-label": e.label, "cmdk-dialog": "", className: i }, C.createElement(p3, { ref: t, ...s }))));
59976
- }), A0e = C.forwardRef((e, t) => ks((n) => n.filtered.count === 0) ? C.createElement(ye.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), N0e = C.forwardRef((e, t) => {
59977
- let { progress: n, children: r, label: o = "Loading...", ...i } = e;
59978
- return C.createElement(ye.div, { ref: t, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, vm(e, (a) => C.createElement("div", { "aria-hidden": !0 }, a)));
59979
- }), lr = Object.assign(p3, { List: D0e, Item: P0e, Input: T0e, Group: O0e, Separator: M0e, Dialog: I0e, Empty: A0e, Loading: N0e });
59980
- function F0e(e, t) {
59981
- let n = e.nextElementSibling;
59982
- for (; n; ) {
59983
- if (n.matches(t)) return n;
59984
- n = n.nextElementSibling;
59985
- }
59986
- }
59987
- function L0e(e, t) {
59988
- let n = e.previousElementSibling;
59989
- for (; n; ) {
59990
- if (n.matches(t)) return n;
59991
- n = n.previousElementSibling;
59992
- }
59993
- }
59994
- function g3(e) {
59995
- let t = C.useRef(e);
59996
- return Rs(() => {
59997
- t.current = e;
59998
- }), t;
59999
- }
60000
- var Rs = typeof window > "u" ? C.useEffect : C.useLayoutEffect;
60001
- function tl(e) {
60002
- let t = C.useRef();
60003
- return t.current === void 0 && (t.current = e()), t;
60004
- }
60005
- function hd(e) {
60006
- return (t) => {
60007
- e.forEach((n) => {
60008
- typeof n == "function" ? n(t) : n != null && (n.current = t);
60009
- });
60010
- };
60011
- }
60012
- function ks(e) {
60013
- let t = BS(), n = () => e(t.snapshot());
60014
- return I5.useSyncExternalStore(t.subscribe, n, n);
60015
- }
60016
- function m3(e, t, n, r = []) {
60017
- let o = C.useRef(), i = ef();
60018
- return Rs(() => {
60019
- var a;
60020
- let s = (() => {
60021
- var c;
60022
- for (let u of n) {
60023
- if (typeof u == "string") return u.trim();
60024
- if (typeof u == "object" && "current" in u) return u.current ? (c = u.current.textContent) == null ? void 0 : c.trim() : o.current;
60025
- }
60026
- })(), l = r.map((c) => c.trim());
60027
- i.value(e, s, l), (a = t.current) == null || a.setAttribute(Aa, s), o.current = s;
60028
- }), o;
60029
- }
60030
- var $0e = () => {
60031
- let [e, t] = C.useState(), n = tl(() => /* @__PURE__ */ new Map());
60032
- return Rs(() => {
60033
- n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
60034
- }, [e]), (r, o) => {
60035
- n.current.set(r, o), t({});
60036
- };
60037
- };
60038
- function z0e(e) {
60039
- let t = e.type;
60040
- return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
60041
- }
60042
- function vm({ asChild: e, children: t }, n) {
60043
- return e && C.isValidElement(t) ? C.cloneElement(z0e(t), { ref: t.ref }, n(t.props.children)) : n(t);
60044
- }
60045
- var B0e = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
60046
- const V0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
60047
- lr,
60048
- {
60049
- ref: n,
60050
- className: ae(
60051
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
60052
- e
60053
- ),
60054
- ...t
60055
- }
60056
- ));
60057
- V0e.displayName = lr.displayName;
60058
- const H0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Q("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
60059
- /* @__PURE__ */ v(IB, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
60060
- /* @__PURE__ */ v(
60061
- lr.Input,
60062
- {
60063
- ref: n,
60064
- className: ae(
60065
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
60066
- e
60067
- ),
60068
- ...t
60069
- }
60070
- )
60071
- ] }));
60072
- H0e.displayName = lr.Input.displayName;
60073
- const j0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
60074
- lr.List,
60075
- {
60076
- ref: n,
60077
- className: ae("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
60078
- ...t
60079
- }
60080
- ));
60081
- j0e.displayName = lr.List.displayName;
60082
- const W0e = C.forwardRef((e, t) => /* @__PURE__ */ v(
60083
- lr.Empty,
60084
- {
60085
- ref: t,
60086
- className: "py-6 text-center text-sm",
60087
- ...e
60088
- }
60089
- ));
60090
- W0e.displayName = lr.Empty.displayName;
60091
- const U0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
60092
- lr.Group,
60093
- {
60094
- ref: n,
60095
- className: ae(
60096
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
60097
- e
60098
- ),
60099
- ...t
60100
- }
60101
- ));
60102
- U0e.displayName = lr.Group.displayName;
60103
- const G0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
60104
- lr.Separator,
60105
- {
60106
- ref: n,
60107
- className: ae("-mx-1 h-px bg-border", e),
60108
- ...t
60109
- }
60110
- ));
60111
- G0e.displayName = lr.Separator.displayName;
60112
- const q0e = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
60113
- lr.Item,
60114
- {
60115
- ref: n,
60116
- className: ae(
60117
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
60118
- e
60119
- ),
60120
- ...t
60121
- }
60122
- ));
60123
- q0e.displayName = lr.Item.displayName;
60137
+ q0e.displayName = m3.displayName;
60124
60138
  var Y0e = Object.defineProperty, K0e = (e, t, n) => t in e ? Y0e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hh = (e, t, n) => K0e(e, typeof t != "symbol" ? t + "" : t, n);
60125
60139
  const X0e = {
60126
60140
  stringify: (e) => e ? "true" : "false",
@@ -60269,174 +60283,175 @@ const sve = {
60269
60283
  props: sve
60270
60284
  });
60271
60285
  export {
60272
- vd as $,
60286
+ zc as $,
60273
60287
  pse as A,
60274
60288
  nn as B,
60275
60289
  jz as C,
60276
60290
  bme as D,
60277
- UD as E,
60291
+ n1 as E,
60278
60292
  xB as F,
60279
- qx as G,
60280
- ei as H,
60293
+ r1 as G,
60294
+ gg as H,
60281
60295
  _u as I,
60282
- Ti as J,
60283
- ti as K,
60296
+ Wg as J,
60297
+ pye as K,
60284
60298
  Vt as L,
60285
- zc as M,
60286
- Js as N,
60287
- Kt as O,
60299
+ gye as M,
60300
+ jbe as N,
60301
+ mye as O,
60288
60302
  tx as P,
60289
- Mg as Q,
60290
- Tg as R,
60291
- Mi as S,
60292
- WD as T,
60293
- Ad as U,
60294
- hve as V,
60295
- fve as W,
60296
- yP as X,
60297
- zD as Y,
60298
- hw as Z,
60299
- Qp as _,
60303
+ bye as Q,
60304
+ yye as R,
60305
+ wye as S,
60306
+ Ed as T,
60307
+ WD as U,
60308
+ UD as V,
60309
+ qx as W,
60310
+ Mi as X,
60311
+ ei as Y,
60312
+ Ti as Z,
60313
+ ti as _,
60300
60314
  rn as a,
60301
- FB as a$,
60302
- mB as a0,
60303
- vP as a1,
60304
- o1 as a2,
60305
- vl as a3,
60306
- gve as a4,
60307
- qg as a5,
60308
- O8 as a6,
60309
- M8 as a7,
60310
- Zp as a8,
60311
- bve as a9,
60312
- Wge as aA,
60313
- Tk as aB,
60314
- Qve as aC,
60315
- Zz as aD,
60316
- Xz as aE,
60317
- eZ as aF,
60318
- YD as aG,
60319
- Mh as aH,
60320
- XD as aI,
60321
- _R as aJ,
60322
- KD as aK,
60323
- QD as aL,
60324
- XQ as aM,
60325
- KQ as aN,
60326
- qQ as aO,
60327
- F8 as aP,
60328
- ZJ as aQ,
60329
- JJ as aR,
60330
- gK as aS,
60331
- ZT as aT,
60332
- P9 as aU,
60333
- xw as aV,
60334
- pi as aW,
60335
- xd as aX,
60336
- FP as aY,
60337
- p5 as aZ,
60338
- Sw as a_,
60339
- Kx as aa,
60340
- _B as ab,
60341
- pg as ac,
60342
- oce as ad,
60343
- Yve as ae,
60344
- Kve as af,
60345
- Xve as ag,
60346
- dc as ah,
60347
- TB as ai,
60348
- cge as aj,
60349
- lge as ak,
60350
- dge as al,
60351
- fge as am,
60352
- Mbe as an,
60353
- V8 as ao,
60354
- awe as ap,
60355
- gs as aq,
60356
- bP as ar,
60357
- tV as as,
60358
- swe as at,
60359
- mve as au,
60360
- DP as av,
60361
- qB as aw,
60362
- pn as ax,
60363
- MB as ay,
60364
- Ed as az,
60315
+ F8 as a$,
60316
+ Js as a0,
60317
+ Kt as a1,
60318
+ NB as a2,
60319
+ Mg as a3,
60320
+ Tg as a4,
60321
+ Ad as a5,
60322
+ hve as a6,
60323
+ fve as a7,
60324
+ yP as a8,
60325
+ zD as a9,
60326
+ Mbe as aA,
60327
+ V8 as aB,
60328
+ awe as aC,
60329
+ gs as aD,
60330
+ bP as aE,
60331
+ tV as aF,
60332
+ swe as aG,
60333
+ mve as aH,
60334
+ DP as aI,
60335
+ qB as aJ,
60336
+ pn as aK,
60337
+ MB as aL,
60338
+ Wge as aM,
60339
+ Tk as aN,
60340
+ Qve as aO,
60341
+ Zz as aP,
60342
+ Xz as aQ,
60343
+ eZ as aR,
60344
+ YD as aS,
60345
+ Mh as aT,
60346
+ XD as aU,
60347
+ _R as aV,
60348
+ KD as aW,
60349
+ QD as aX,
60350
+ XQ as aY,
60351
+ KQ as aZ,
60352
+ qQ as a_,
60353
+ hw as aa,
60354
+ Qp as ab,
60355
+ vd as ac,
60356
+ mB as ad,
60357
+ vP as ae,
60358
+ o1 as af,
60359
+ vl as ag,
60360
+ gve as ah,
60361
+ qg as ai,
60362
+ O8 as aj,
60363
+ M8 as ak,
60364
+ Zp as al,
60365
+ bve as am,
60366
+ Kx as an,
60367
+ _B as ao,
60368
+ pg as ap,
60369
+ oce as aq,
60370
+ Yve as ar,
60371
+ Kve as as,
60372
+ Xve as at,
60373
+ dc as au,
60374
+ TB as av,
60375
+ cge as aw,
60376
+ lge as ax,
60377
+ dge as ay,
60378
+ fge as az,
60365
60379
  jr as b,
60366
- mme as b$,
60367
- CA as b0,
60368
- YJ as b1,
60369
- e0e as b2,
60370
- AB as b3,
60371
- nx as b4,
60372
- kve as b5,
60373
- jh as b6,
60374
- rO as b7,
60375
- Pw as b8,
60376
- Ow as b9,
60377
- p0 as bA,
60378
- wP as bB,
60379
- Wve as bC,
60380
- Ly as bD,
60381
- Zae as bE,
60382
- Eve as bF,
60383
- V0e as bG,
60384
- H0e as bH,
60385
- j0e as bI,
60386
- W0e as bJ,
60387
- U0e as bK,
60388
- q0e as bL,
60389
- GO as bM,
60390
- uwe as bN,
60391
- p0e as bO,
60392
- g0e as bP,
60393
- vve as bQ,
60394
- m0e as bR,
60395
- AJ as bS,
60396
- JO as bT,
60397
- Bbe as bU,
60398
- Vbe as bV,
60399
- Hbe as bW,
60400
- gme as bX,
60401
- Yye as bY,
60402
- C9 as bZ,
60403
- qve as b_,
60404
- oO as ba,
60405
- R9 as bb,
60406
- xve as bc,
60407
- QJ as bd,
60408
- n1 as be,
60409
- r1 as bf,
60410
- Wg as bg,
60411
- NB as bh,
60412
- t0e as bi,
60413
- Pve as bj,
60414
- Kae as bk,
60415
- K0 as bl,
60416
- nv as bm,
60417
- Jye as bn,
60418
- wB as bo,
60419
- Ap as bp,
60420
- sl as bq,
60421
- bB as br,
60422
- yh as bs,
60423
- A1 as bt,
60424
- eM as bu,
60425
- Rve as bv,
60426
- Ih as bw,
60427
- pC as bx,
60428
- Nu as by,
60429
- Vh as bz,
60380
+ qve as b$,
60381
+ ZJ as b0,
60382
+ JJ as b1,
60383
+ gK as b2,
60384
+ ZT as b3,
60385
+ P9 as b4,
60386
+ xw as b5,
60387
+ pi as b6,
60388
+ xd as b7,
60389
+ FP as b8,
60390
+ p5 as b9,
60391
+ A1 as bA,
60392
+ eM as bB,
60393
+ Rve as bC,
60394
+ Ih as bD,
60395
+ pC as bE,
60396
+ Nu as bF,
60397
+ Vh as bG,
60398
+ p0 as bH,
60399
+ wP as bI,
60400
+ Wve as bJ,
60401
+ Ly as bK,
60402
+ Zae as bL,
60403
+ Eve as bM,
60404
+ GO as bN,
60405
+ uwe as bO,
60406
+ U0e as bP,
60407
+ G0e as bQ,
60408
+ vve as bR,
60409
+ q0e as bS,
60410
+ AJ as bT,
60411
+ JO as bU,
60412
+ Bbe as bV,
60413
+ Vbe as bW,
60414
+ Hbe as bX,
60415
+ gme as bY,
60416
+ R0e as bZ,
60417
+ C9 as b_,
60418
+ Sw as ba,
60419
+ FB as bb,
60420
+ CA as bc,
60421
+ YJ as bd,
60422
+ AB as be,
60423
+ nx as bf,
60424
+ kve as bg,
60425
+ jh as bh,
60426
+ rO as bi,
60427
+ Pw as bj,
60428
+ Ow as bk,
60429
+ oO as bl,
60430
+ R9 as bm,
60431
+ xve as bn,
60432
+ QJ as bo,
60433
+ D0e as bp,
60434
+ Pve as bq,
60435
+ Kae as br,
60436
+ K0 as bs,
60437
+ nv as bt,
60438
+ T0e as bu,
60439
+ wB as bv,
60440
+ Ap as bw,
60441
+ sl as bx,
60442
+ bB as by,
60443
+ yh as bz,
60430
60444
  at as c,
60431
- O9 as c0,
60432
- Bve as c1,
60433
- Uve as c2,
60434
- x9 as c3,
60435
- Dve as c4,
60436
- dwe as c5,
60437
- fu as c6,
60438
- pve as c7,
60439
- pw as c8,
60445
+ mme as c0,
60446
+ O9 as c1,
60447
+ Bve as c2,
60448
+ Uve as c3,
60449
+ x9 as c4,
60450
+ Dve as c5,
60451
+ dwe as c6,
60452
+ fu as c7,
60453
+ pve as c8,
60454
+ pw as c9,
60440
60455
  owe as d,
60441
60456
  iwe as e,
60442
60457
  Nbe as f,