@aiquants/menu-bar 1.18.0 → 1.18.2

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import Ee, { forwardRef as be, createElement as re, useCallback as k, useSyncExternalStore as _e, useMemo as oe, useState as J, useRef as T, useEffect as $, useLayoutEffect as xe } from "react";
1
+ import Ee, { forwardRef as be, createElement as re, useCallback as E, useSyncExternalStore as _e, useMemo as oe, useState as J, useRef as M, useEffect as $, useLayoutEffect as xe } from "react";
2
2
  import { useLocation as Se, Link as ge } from "react-router-dom";
3
3
  var Z = { exports: {} }, V = {};
4
4
  var ie;
@@ -7,16 +7,16 @@ function Ce() {
7
7
  ie = 1;
8
8
  var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
9
9
  function s(a, l, o) {
10
- var c = null;
11
- if (o !== void 0 && (c = "" + o), l.key !== void 0 && (c = "" + l.key), "key" in l) {
10
+ var u = null;
11
+ if (o !== void 0 && (u = "" + o), l.key !== void 0 && (u = "" + l.key), "key" in l) {
12
12
  o = {};
13
- for (var h in l)
14
- h !== "key" && (o[h] = l[h]);
13
+ for (var g in l)
14
+ g !== "key" && (o[g] = l[g]);
15
15
  } else o = l;
16
16
  return l = o.ref, {
17
17
  $$typeof: n,
18
18
  type: a,
19
- key: c,
19
+ key: u,
20
20
  ref: l !== void 0 ? l : null,
21
21
  props: o
22
22
  };
@@ -33,11 +33,11 @@ function Pe() {
33
33
  return e.$$typeof === X ? null : e.displayName || e.name || null;
34
34
  if (typeof e == "string") return e;
35
35
  switch (e) {
36
- case m:
36
+ case f:
37
37
  return "Fragment";
38
- case N:
38
+ case A:
39
39
  return "Profiler";
40
- case M:
40
+ case P:
41
41
  return "StrictMode";
42
42
  case z:
43
43
  return "Suspense";
@@ -54,17 +54,17 @@ function Pe() {
54
54
  return "Portal";
55
55
  case I:
56
56
  return e.displayName || "Context";
57
- case j:
57
+ case b:
58
58
  return (e._context.displayName || "Context") + ".Consumer";
59
59
  case L:
60
- var u = e.render;
61
- return e = e.displayName, e || (e = u.displayName || u.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
60
+ var c = e.render;
61
+ return e = e.displayName, e || (e = c.displayName || c.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
62
62
  case Q:
63
- return u = e.displayName || null, u !== null ? u : n(e.type) || "Memo";
63
+ return c = e.displayName || null, c !== null ? c : n(e.type) || "Memo";
64
64
  case D:
65
- u = e._payload, e = e._init;
65
+ c = e._payload, e = e._init;
66
66
  try {
67
- return n(e(u));
67
+ return n(e(c));
68
68
  } catch {
69
69
  }
70
70
  }
@@ -76,74 +76,74 @@ function Pe() {
76
76
  function s(e) {
77
77
  try {
78
78
  t(e);
79
- var u = !1;
79
+ var c = !1;
80
80
  } catch {
81
- u = !0;
81
+ c = !0;
82
82
  }
83
- if (u) {
84
- u = console;
85
- var b = u.error, g = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
86
- return b.call(
87
- u,
83
+ if (c) {
84
+ c = console;
85
+ var m = c.error, j = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
86
+ return m.call(
87
+ c,
88
88
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
89
- g
89
+ j
90
90
  ), t(e);
91
91
  }
92
92
  }
93
93
  function a(e) {
94
- if (e === m) return "<>";
94
+ if (e === f) return "<>";
95
95
  if (typeof e == "object" && e !== null && e.$$typeof === D)
96
96
  return "<...>";
97
97
  try {
98
- var u = n(e);
99
- return u ? "<" + u + ">" : "<...>";
98
+ var c = n(e);
99
+ return c ? "<" + c + ">" : "<...>";
100
100
  } catch {
101
101
  return "<...>";
102
102
  }
103
103
  }
104
104
  function l() {
105
- var e = R.A;
105
+ var e = T.A;
106
106
  return e === null ? null : e.getOwner();
107
107
  }
108
108
  function o() {
109
109
  return Error("react-stack-top-frame");
110
110
  }
111
- function c(e) {
111
+ function u(e) {
112
112
  if (F.call(e, "key")) {
113
- var u = Object.getOwnPropertyDescriptor(e, "key").get;
114
- if (u && u.isReactWarning) return !1;
113
+ var c = Object.getOwnPropertyDescriptor(e, "key").get;
114
+ if (c && c.isReactWarning) return !1;
115
115
  }
116
116
  return e.key !== void 0;
117
117
  }
118
- function h(e, u) {
119
- function b() {
118
+ function g(e, c) {
119
+ function m() {
120
120
  H || (H = !0, console.error(
121
121
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
122
- u
122
+ c
123
123
  ));
124
124
  }
125
- b.isReactWarning = !0, Object.defineProperty(e, "key", {
126
- get: b,
125
+ m.isReactWarning = !0, Object.defineProperty(e, "key", {
126
+ get: m,
127
127
  configurable: !0
128
128
  });
129
129
  }
130
- function p() {
130
+ function y() {
131
131
  var e = n(this.type);
132
132
  return x[e] || (x[e] = !0, console.error(
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), e = this.props.ref, e !== void 0 ? e : null;
135
135
  }
136
- function f(e, u, b, g, G, ee) {
137
- var y = b.ref;
136
+ function k(e, c, m, j, G, ee) {
137
+ var N = m.ref;
138
138
  return e = {
139
- $$typeof: C,
139
+ $$typeof: h,
140
140
  type: e,
141
- key: u,
142
- props: b,
143
- _owner: g
144
- }, (y !== void 0 ? y : null) !== null ? Object.defineProperty(e, "ref", {
141
+ key: c,
142
+ props: m,
143
+ _owner: j
144
+ }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(e, "ref", {
145
145
  enumerable: !1,
146
- get: p
146
+ get: y
147
147
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
148
148
  configurable: !1,
149
149
  enumerable: !1,
@@ -166,49 +166,49 @@ function Pe() {
166
166
  value: ee
167
167
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
168
168
  }
169
- function d(e, u, b, g, G, ee) {
170
- var y = u.children;
171
- if (y !== void 0)
172
- if (g)
173
- if (K(y)) {
174
- for (g = 0; g < y.length; g++)
175
- w(y[g]);
176
- Object.freeze && Object.freeze(y);
169
+ function d(e, c, m, j, G, ee) {
170
+ var N = c.children;
171
+ if (N !== void 0)
172
+ if (j)
173
+ if (K(N)) {
174
+ for (j = 0; j < N.length; j++)
175
+ w(N[j]);
176
+ Object.freeze && Object.freeze(N);
177
177
  } else
178
178
  console.error(
179
179
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
180
  );
181
- else w(y);
182
- if (F.call(u, "key")) {
183
- y = n(e);
184
- var q = Object.keys(u).filter(function(Ne) {
181
+ else w(N);
182
+ if (F.call(c, "key")) {
183
+ N = n(e);
184
+ var q = Object.keys(c).filter(function(Ne) {
185
185
  return Ne !== "key";
186
186
  });
187
- g = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", U[y + g] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
187
+ j = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", U[N + j] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
188
188
  `A props object containing a "key" prop is being spread into JSX:
189
189
  let props = %s;
190
190
  <%s {...props} />
191
191
  React keys must be passed directly to JSX without using spread:
192
192
  let props = %s;
193
193
  <%s key={someKey} {...props} />`,
194
- g,
195
- y,
194
+ j,
195
+ N,
196
196
  q,
197
- y
198
- ), U[y + g] = !0);
197
+ N
198
+ ), U[N + j] = !0);
199
199
  }
200
- if (y = null, b !== void 0 && (s(b), y = "" + b), c(u) && (s(u.key), y = "" + u.key), "key" in u) {
201
- b = {};
202
- for (var te in u)
203
- te !== "key" && (b[te] = u[te]);
204
- } else b = u;
205
- return y && h(
206
- b,
200
+ if (N = null, m !== void 0 && (s(m), N = "" + m), u(c) && (s(c.key), N = "" + c.key), "key" in c) {
201
+ m = {};
202
+ for (var te in c)
203
+ te !== "key" && (m[te] = c[te]);
204
+ } else m = c;
205
+ return N && g(
206
+ m,
207
207
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
208
- ), f(
208
+ ), k(
209
209
  e,
210
- y,
211
- b,
210
+ N,
211
+ m,
212
212
  l(),
213
213
  G,
214
214
  ee
@@ -218,39 +218,39 @@ React keys must be passed directly to JSX without using spread:
218
218
  v(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === D && (e._payload.status === "fulfilled" ? v(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
219
219
  }
220
220
  function v(e) {
221
- return typeof e == "object" && e !== null && e.$$typeof === C;
221
+ return typeof e == "object" && e !== null && e.$$typeof === h;
222
222
  }
223
- var S = Ee, C = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), M = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), I = /* @__PURE__ */ Symbol.for("react.context"), L = /* @__PURE__ */ Symbol.for("react.forward_ref"), z = /* @__PURE__ */ Symbol.for("react.suspense"), B = /* @__PURE__ */ Symbol.for("react.suspense_list"), Q = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), X = /* @__PURE__ */ Symbol.for("react.client.reference"), R = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, K = Array.isArray, O = console.createTask ? console.createTask : function() {
223
+ var p = Ee, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), f = /* @__PURE__ */ Symbol.for("react.fragment"), P = /* @__PURE__ */ Symbol.for("react.strict_mode"), A = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), I = /* @__PURE__ */ Symbol.for("react.context"), L = /* @__PURE__ */ Symbol.for("react.forward_ref"), z = /* @__PURE__ */ Symbol.for("react.suspense"), B = /* @__PURE__ */ Symbol.for("react.suspense_list"), Q = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), X = /* @__PURE__ */ Symbol.for("react.client.reference"), T = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, K = Array.isArray, R = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
- S = {
226
+ p = {
227
227
  react_stack_bottom_frame: function(e) {
228
228
  return e();
229
229
  }
230
230
  };
231
- var H, x = {}, E = S.react_stack_bottom_frame.bind(
232
- S,
231
+ var H, x = {}, _ = p.react_stack_bottom_frame.bind(
232
+ p,
233
233
  o
234
- )(), A = O(a(o)), U = {};
235
- W.Fragment = m, W.jsx = function(e, u, b) {
236
- var g = 1e4 > R.recentlyCreatedOwnerStacks++;
234
+ )(), O = R(a(o)), U = {};
235
+ W.Fragment = f, W.jsx = function(e, c, m) {
236
+ var j = 1e4 > T.recentlyCreatedOwnerStacks++;
237
237
  return d(
238
238
  e,
239
- u,
240
- b,
239
+ c,
240
+ m,
241
241
  !1,
242
- g ? Error("react-stack-top-frame") : E,
243
- g ? O(a(e)) : A
242
+ j ? Error("react-stack-top-frame") : _,
243
+ j ? R(a(e)) : O
244
244
  );
245
- }, W.jsxs = function(e, u, b) {
246
- var g = 1e4 > R.recentlyCreatedOwnerStacks++;
245
+ }, W.jsxs = function(e, c, m) {
246
+ var j = 1e4 > T.recentlyCreatedOwnerStacks++;
247
247
  return d(
248
248
  e,
249
- u,
250
- b,
249
+ c,
250
+ m,
251
251
  !0,
252
- g ? Error("react-stack-top-frame") : E,
253
- g ? O(a(e)) : A
252
+ j ? Error("react-stack-top-frame") : _,
253
+ j ? R(a(e)) : O
254
254
  );
255
255
  };
256
256
  })()), W;
@@ -290,28 +290,28 @@ const Ie = be(
290
290
  absoluteStrokeWidth: a,
291
291
  className: l = "",
292
292
  children: o,
293
- iconNode: c,
294
- ...h
295
- }, p) => re(
293
+ iconNode: u,
294
+ ...g
295
+ }, y) => re(
296
296
  "svg",
297
297
  {
298
- ref: p,
298
+ ref: y,
299
299
  ...Ae,
300
300
  width: t,
301
301
  height: t,
302
302
  stroke: n,
303
303
  strokeWidth: a ? Number(s) * 24 / Number(t) : s,
304
304
  className: ye("lucide", l),
305
- ...!o && !Oe(h) && { "aria-hidden": "true" },
306
- ...h
305
+ ...!o && !Oe(g) && { "aria-hidden": "true" },
306
+ ...g
307
307
  },
308
308
  [
309
- ...c.map(([f, d]) => re(f, d)),
309
+ ...u.map(([k, d]) => re(k, d)),
310
310
  ...Array.isArray(o) ? o : [o]
311
311
  ]
312
312
  )
313
313
  );
314
- const P = (n, t) => {
314
+ const C = (n, t) => {
315
315
  const s = be(
316
316
  ({ className: a, ...l }, o) => re(Ie, {
317
317
  ref: o,
@@ -330,31 +330,31 @@ const Le = [
330
330
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
331
331
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
332
332
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
333
- ], qe = P("external-link", Le);
333
+ ], qe = C("external-link", Le);
334
334
  const $e = [
335
335
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
336
336
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
337
- ], ze = P("user", $e), De = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2NiZDVlMSI+PHBhdGggZD0iTTEyIDEyYzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OS00IDQgMS43OSA0IDQgNHptMCAyYy0yLjY3IDAtOCAxLjM0LTggNHYyaDE2di0yYzAtMi42Ni01LjMzLTQtOC00eiIvPjwvc3ZnPg==", Ye = ({ to: n, className: t, children: s }) => /* @__PURE__ */ r.jsx("a", { href: n, className: t, children: s }), mt = (n) => {
337
+ ], ze = C("user", $e), De = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2NiZDVlMSI+PHBhdGggZD0iTTEyIDEyYzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OS00IDQgMS43OSA0IDQgNHptMCAyYy0yLjY3IDAtOCAxLjM0LTggNHYyaDE2di0yYzAtMi42Ni01LjMzLTQtOC00eiIvPjwvc3ZnPg==", Ye = ({ to: n, className: t, children: s }) => /* @__PURE__ */ r.jsx("a", { href: n, className: t, children: s }), mt = (n) => {
338
338
  const { user: t, LinkComponent: s = Ye } = n;
339
- return /* @__PURE__ */ r.jsx("div", { className: "w-full", children: t ? /* @__PURE__ */ r.jsxs("div", { className: "aiquants-session-card group relative flex flex-col gap-1.5 rounded-lg border border-white/20 bg-white/10 p-2 shadow-sm transition-all duration-200 hover:border-white/30 hover:bg-white/15 dark:border-slate-700/60 dark:bg-slate-800/60 dark:hover:border-slate-600/80 dark:hover:bg-slate-800/90", children: [
340
- /* @__PURE__ */ r.jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
339
+ return /* @__PURE__ */ r.jsx("div", { className: "w-full", children: t ? /* @__PURE__ */ r.jsxs("div", { className: "aiquants-session-card group relative flex flex-col gap-2 rounded-xl border border-white/20 bg-white/10 p-2.5 shadow-sm backdrop-blur-md transition-all duration-200 hover:border-white/30 hover:bg-white/15 dark:border-slate-700/60 dark:bg-slate-800/60 dark:hover:border-slate-600/80 dark:hover:bg-slate-800/90", children: [
340
+ /* @__PURE__ */ r.jsxs("div", { className: "flex min-w-0 items-center gap-2.5", children: [
341
341
  /* @__PURE__ */ r.jsxs("div", { className: "relative shrink-0", children: [
342
- /* @__PURE__ */ r.jsx("div", { className: "h-7 w-7 overflow-hidden rounded-full border border-white/40 shadow-xs dark:border-slate-500", children: /* @__PURE__ */ r.jsx("img", { className: "h-full w-full rounded-full object-cover", src: t.photo || De, alt: t.displayName || "user profile" }) }),
343
- /* @__PURE__ */ r.jsx("span", { className: "absolute -right-0.5 -bottom-0.5 h-2 w-2 rounded-full border border-slate-900 bg-emerald-400", title: "Online" })
342
+ /* @__PURE__ */ r.jsx("div", { className: "h-8 w-8 overflow-hidden rounded-full border border-white/40 shadow-xs dark:border-slate-500", children: /* @__PURE__ */ r.jsx("img", { className: "h-full w-full rounded-full object-cover", src: t.photo || De, alt: t.displayName || "user profile" }) }),
343
+ /* @__PURE__ */ r.jsx("span", { className: "absolute -right-0.5 -bottom-0.5 h-2.5 w-2.5 rounded-full border-2 border-slate-900 bg-emerald-400", title: "Online" })
344
344
  ] }),
345
345
  /* @__PURE__ */ r.jsxs("div", { className: "min-w-0 flex-1 leading-tight", children: [
346
- /* @__PURE__ */ r.jsx("div", { className: "truncate font-semibold text-[11px] text-white tracking-tight dark:text-slate-100", title: t.displayName, children: t.displayName }),
347
- /* @__PURE__ */ r.jsx("div", { className: "mt-0.5 text-[9px] text-white/70 tracking-tight dark:text-slate-400", children: "Google Account" })
346
+ /* @__PURE__ */ r.jsx("div", { className: "truncate font-semibold text-white text-xs tracking-tight dark:text-slate-100", title: t.displayName, children: t.displayName }),
347
+ /* @__PURE__ */ r.jsx("div", { className: "mt-0.5 font-medium text-[10px] text-white/75 tracking-tight dark:text-slate-400", children: "Google Account" })
348
348
  ] })
349
349
  ] }),
350
- /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-2 gap-1 border-white/15 border-t pt-1 dark:border-slate-700/50", children: [
350
+ /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-2 gap-1.5 border-white/15 border-t pt-1.5 dark:border-slate-700/50", children: [
351
351
  /* @__PURE__ */ r.jsxs(
352
352
  s,
353
353
  {
354
- className: "flex items-center justify-center gap-1 rounded border border-white/15 bg-white/10 px-1.5 py-0.5 font-medium text-[10px] text-white transition-all duration-150 hover:bg-white/25 active:scale-95 dark:border-slate-600/50 dark:bg-slate-700/50 dark:text-slate-200 dark:hover:bg-slate-600/80",
354
+ className: "flex items-center justify-center gap-1 rounded-md border border-white/15 bg-white/10 px-2 py-1 font-medium text-[11px] text-white transition-all duration-150 hover:bg-white/25 active:scale-95 dark:border-slate-600/50 dark:bg-slate-700/50 dark:text-slate-200 dark:hover:bg-slate-600/80",
355
355
  to: "/",
356
356
  children: [
357
- /* @__PURE__ */ r.jsx(ze, { size: 10, className: "shrink-0 opacity-80" }),
357
+ /* @__PURE__ */ r.jsx(ze, { size: 11, className: "shrink-0 opacity-80" }),
358
358
  /* @__PURE__ */ r.jsx("span", { className: "truncate", children: "プロフィール" })
359
359
  ]
360
360
  }
@@ -362,18 +362,18 @@ const $e = [
362
362
  /* @__PURE__ */ r.jsxs(
363
363
  s,
364
364
  {
365
- className: "flex items-center justify-center gap-1 rounded border border-white/15 bg-white/10 px-1.5 py-0.5 font-medium text-[10px] text-white transition-all duration-150 hover:bg-white/25 active:scale-95 dark:border-slate-600/50 dark:bg-slate-700/50 dark:text-slate-200 dark:hover:bg-slate-600/80",
365
+ className: "flex items-center justify-center gap-1 rounded-md border border-white/15 bg-white/10 px-2 py-1 font-medium text-[11px] text-white transition-all duration-150 hover:bg-white/25 active:scale-95 dark:border-slate-600/50 dark:bg-slate-700/50 dark:text-slate-200 dark:hover:bg-slate-600/80",
366
366
  to: "https://myaccount.google.com/",
367
367
  children: [
368
- /* @__PURE__ */ r.jsx(qe, { size: 10, className: "shrink-0 opacity-80" }),
368
+ /* @__PURE__ */ r.jsx(qe, { size: 11, className: "shrink-0 opacity-80" }),
369
369
  /* @__PURE__ */ r.jsx("span", { className: "truncate", children: "Google" })
370
370
  ]
371
371
  }
372
372
  )
373
373
  ] })
374
- ] }) : /* @__PURE__ */ r.jsx("div", { className: "aiquants-session-card flex items-center justify-between rounded-lg border border-white/20 bg-white/10 p-2 shadow-xs dark:border-slate-700/60 dark:bg-slate-800/60", children: /* @__PURE__ */ r.jsx("span", { className: "font-medium text-white/90 text-xs dark:text-slate-200", children: "ログインしてください" }) }) });
374
+ ] }) : /* @__PURE__ */ r.jsx("div", { className: "aiquants-session-card flex items-center justify-between rounded-xl border border-white/20 bg-white/10 p-2.5 shadow-xs dark:border-slate-700/60 dark:bg-slate-800/60", children: /* @__PURE__ */ r.jsx("span", { className: "font-medium text-white/90 text-xs dark:text-slate-200", children: "ログインしてください" }) }) });
375
375
  }, se = "aiquants-menu-pin-change";
376
- let _ = { pinned: !1, width: 0 };
376
+ let S = { pinned: !1, width: 0 };
377
377
  const ve = (n = 240) => {
378
378
  if (typeof window > "u" || typeof document > "u")
379
379
  return { pinned: !1, width: 0 };
@@ -382,19 +382,19 @@ const ve = (n = 240) => {
382
382
  if (t) {
383
383
  const o = Number.parseInt(t, 10);
384
384
  if (!Number.isNaN(o)) {
385
- const c = o > 0, h = c ? o || n : 0;
386
- return _.pinned === c && _.width === h || (_ = { pinned: c, width: h }), _;
385
+ const u = o > 0, g = u ? o || n : 0;
386
+ return S.pinned === u && S.width === g || (S = { pinned: u, width: g }), S;
387
387
  }
388
388
  }
389
389
  const a = localStorage.getItem("aiquants-menu-pinned") === "true", l = a ? n : 0;
390
- return _.pinned === a && _.width === l || (_ = { pinned: a, width: l }), _;
390
+ return S.pinned === a && S.width === l || (S = { pinned: a, width: l }), S;
391
391
  } catch {
392
392
  return { pinned: !1, width: 0 };
393
393
  }
394
394
  }, de = (n, t) => {
395
395
  if (typeof window > "u") return;
396
396
  const s = { pinned: n, width: t };
397
- (_.pinned !== n || _.width !== t) && (_ = s);
397
+ (S.pinned !== n || S.width !== t) && (S = s);
398
398
  const a = new CustomEvent(se, {
399
399
  detail: s,
400
400
  bubbles: !0,
@@ -411,22 +411,22 @@ const ve = (n = 240) => {
411
411
  n(o);
412
412
  }
413
413
  const l = (o) => {
414
- const c = o;
415
- c.detail && n(c.detail);
414
+ const u = o;
415
+ u.detail && n(u.detail);
416
416
  };
417
417
  return window.addEventListener(se, l, { passive: !0 }), () => {
418
418
  window.removeEventListener(se, l);
419
419
  };
420
420
  }, pt = (n) => {
421
- const t = n?.defaultPinnedWidth ?? 240, s = n?.initialPinned ?? !1, a = k(
422
- (c) => He(
421
+ const t = n?.defaultPinnedWidth ?? 240, s = n?.initialPinned ?? !1, a = E(
422
+ (u) => He(
423
423
  () => {
424
- c();
424
+ u();
425
425
  },
426
426
  { immediate: !1, defaultPinnedWidth: t }
427
427
  ),
428
428
  [t]
429
- ), l = k(() => ve(t), [t]), o = k(() => ({
429
+ ), l = E(() => ve(t), [t]), o = E(() => ({
430
430
  pinned: s,
431
431
  width: s ? t : 0
432
432
  }), [s, t]);
@@ -436,7 +436,7 @@ const Ve = [
436
436
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
437
437
  ["path", { d: "M21 12H9", key: "dn1m92" }],
438
438
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
439
- ], We = P("log-out", Ve);
439
+ ], We = C("log-out", Ve);
440
440
  const Fe = [
441
441
  ["path", { d: "M12 17v5", key: "bb1du9" }],
442
442
  [
@@ -446,7 +446,7 @@ const Fe = [
446
446
  key: "1nkz8b"
447
447
  }
448
448
  ]
449
- ], ke = P("pin", Fe);
449
+ ], ke = C("pin", Fe);
450
450
  const Ue = [
451
451
  ["path", { d: "M12 17v5", key: "bb1du9" }],
452
452
  ["path", { d: "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89", key: "znwnzq" }],
@@ -458,17 +458,17 @@ const Ue = [
458
458
  key: "c9qhm2"
459
459
  }
460
460
  ]
461
- ], we = P("pin-off", Ue);
461
+ ], we = C("pin-off", Ue);
462
462
  const Ge = [
463
463
  ["path", { d: "M5 21v-6", key: "1hz6c0" }],
464
464
  ["path", { d: "M12 21V9", key: "uvy0l4" }],
465
465
  ["path", { d: "M19 21V3", key: "11j9sm" }]
466
- ], Ze = P("chart-no-axes-column-increasing", Ge);
466
+ ], Ze = C("chart-no-axes-column-increasing", Ge);
467
467
  const Je = [
468
468
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
469
469
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
470
470
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
471
- ], Be = P("download", Je);
471
+ ], Be = C("download", Je);
472
472
  const Qe = [
473
473
  [
474
474
  "path",
@@ -481,21 +481,21 @@ const Qe = [
481
481
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
482
482
  ["path", { d: "M16 13H8", key: "t4e002" }],
483
483
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
484
- ], fe = P("file-text", Qe);
484
+ ], fe = C("file-text", Qe);
485
485
  const Xe = [
486
486
  ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
487
487
  ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
488
- ], Ke = P("link", Xe);
488
+ ], Ke = C("link", Xe);
489
489
  const et = [
490
490
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
491
491
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
492
- ], tt = P("lock", et);
492
+ ], tt = C("lock", et);
493
493
  const nt = [
494
494
  ["path", { d: "M12 3v18", key: "108xh3" }],
495
495
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
496
496
  ["path", { d: "M3 9h18", key: "1pudct" }],
497
497
  ["path", { d: "M3 15h18", key: "5xshup" }]
498
- ], rt = P("table", nt), st = typeof window < "u" ? xe : $, he = "aiquants-menu-scroll", je = new RegExp(/(^https?:\/\/)|(\.(html|htm)?$)/), at = {
498
+ ], rt = C("table", nt), st = typeof window < "u" ? xe : $, he = "aiquants-menu-scroll", je = new RegExp(/(^https?:\/\/)|(\.(html|htm)?$)/), at = {
499
499
  report: fe,
500
500
  slip: fe,
501
501
  table: rt,
@@ -557,39 +557,39 @@ const nt = [
557
557
  } catch {
558
558
  typeof window < "u" && (o = window.location.pathname);
559
559
  }
560
- const c = oe(() => pe(t, o), [t, o]), [h, p] = J(c), f = T(o), d = T(c !== null);
560
+ const u = oe(() => pe(t, o), [t, o]), [g, y] = J(u), k = M(o), d = M(u !== null);
561
561
  $(() => {
562
- if (f.current !== o && (f.current = o, d.current = !1), !d.current) {
562
+ if (k.current !== o && (k.current = o, d.current = !1), !d.current) {
563
563
  const i = pe(t, o);
564
- i !== null && (p(i), d.current = !0);
564
+ i !== null && (y(i), d.current = !0);
565
565
  }
566
566
  }, [o, t]);
567
- const w = k(
567
+ const w = E(
568
568
  (i) => {
569
- a.includes(i) || p((M) => M === i ? null : i);
569
+ a.includes(i) || y((P) => P === i ? null : i);
570
570
  },
571
571
  [a]
572
- ), v = T(null);
572
+ ), v = M(null);
573
573
  st(() => {
574
574
  const i = v.current;
575
575
  if (i)
576
576
  try {
577
- const m = sessionStorage.getItem(he);
578
- if (m !== null) {
579
- const M = Number.parseFloat(m);
580
- Number.isNaN(M) || (i.scrollTop = M);
577
+ const f = sessionStorage.getItem(he);
578
+ if (f !== null) {
579
+ const P = Number.parseFloat(f);
580
+ Number.isNaN(P) || (i.scrollTop = P);
581
581
  }
582
582
  } catch {
583
583
  }
584
584
  }, []);
585
- const S = k(() => {
585
+ const p = E(() => {
586
586
  const i = v.current;
587
587
  if (i)
588
588
  try {
589
589
  sessionStorage.setItem(he, String(i.scrollTop));
590
590
  } catch {
591
591
  }
592
- }, []), C = oe(() => /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((i) => /* @__PURE__ */ r.jsx("div", { children: i.href ? /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-list-item relative mb-0.5 ml-1 flex items-center rounded-l-xl px-2.5 py-1 text-xs before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] sm:text-sm", children: je.test(i.href) ? /* @__PURE__ */ r.jsx(
592
+ }, []), h = oe(() => /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((i) => /* @__PURE__ */ r.jsx("div", { children: i.href ? /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-list-item relative mb-0.5 ml-1 flex items-center rounded-l-xl px-2.5 py-1 text-xs before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] sm:text-sm", children: je.test(i.href) ? /* @__PURE__ */ r.jsx(
593
593
  "a",
594
594
  {
595
595
  href: i.href,
@@ -607,16 +607,16 @@ const nt = [
607
607
  },
608
608
  children: /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-link hover:underline", children: i.title })
609
609
  }
610
- ) }) : /* @__PURE__ */ r.jsxs("details", { className: "aiquants-menu-accordion-details", open: i.id === h || a.includes(i.id), children: [
610
+ ) }) : /* @__PURE__ */ r.jsxs("details", { className: "aiquants-menu-accordion-details", open: i.id === g || a.includes(i.id), children: [
611
611
  /* @__PURE__ */ r.jsxs(
612
612
  "summary",
613
613
  {
614
614
  className: "aiquants-menu-list-item aiquants-menu-accordion-summary relative mb-0.5 ml-1 list-none rounded-l-xl px-2.5 py-1 text-xs outline-none before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] sm:text-sm",
615
- onClick: (m) => {
616
- m.preventDefault(), w(i.id);
615
+ onClick: (f) => {
616
+ f.preventDefault(), w(i.id);
617
617
  },
618
- onKeyDown: (m) => {
619
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), w(i.id));
618
+ onKeyDown: (f) => {
619
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), w(i.id));
620
620
  },
621
621
  children: [
622
622
  /* @__PURE__ */ r.jsx("span", { children: i.title }),
@@ -624,8 +624,8 @@ const nt = [
624
624
  "button",
625
625
  {
626
626
  type: "button",
627
- onClick: (m) => {
628
- m.stopPropagation(), m.preventDefault(), l && l(i.id);
627
+ onClick: (f) => {
628
+ f.stopPropagation(), f.preventDefault(), l && l(i.id);
629
629
  },
630
630
  className: `aiquants-submenu-pin-button ${a.includes(i.id) ? "pinned" : ""}`,
631
631
  title: a.includes(i.id) ? "ピン留め解除" : "ピン留め",
@@ -635,11 +635,11 @@ const nt = [
635
635
  ]
636
636
  }
637
637
  ),
638
- /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-submenu pointer-events-auto my-0.5 mr-1 ml-3.5 rounded-lg px-2 py-1 shadow-sm", children: i.submenu.map((m) => /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-accordion-container block w-full whitespace-nowrap py-0.5 text-xs", children: /* @__PURE__ */ r.jsx(it, { item: m, parentMenu: i, onMenuSelected: s }) }, m.subid)) })
639
- ] }) }, i.id)) }), [t, s, h, w, a]);
640
- return /* @__PURE__ */ r.jsx("div", { ref: v, onScroll: S, className: "hidden-scrollbar h-0 grow overflow-y-scroll", children: C });
638
+ /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-submenu pointer-events-auto my-0.5 mr-1 ml-3.5 rounded-lg px-2 py-1 shadow-sm", children: i.submenu.map((f) => /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-accordion-container block w-full whitespace-nowrap py-0.5 text-xs", children: /* @__PURE__ */ r.jsx(it, { item: f, parentMenu: i, onMenuSelected: s }) }, f.subid)) })
639
+ ] }) }, i.id)) }), [t, s, g, w, a]);
640
+ return /* @__PURE__ */ r.jsx("div", { ref: v, onScroll: p, className: "hidden-scrollbar h-0 grow overflow-y-scroll", children: h });
641
641
  }, ct = (n) => {
642
- const { menuList: t, menuHeader: s, open: a, onMenuSelected: l, onClickSignout: o, theme: c, toggleTheme: h, isPinned: p, onTogglePin: f, pinnedSubmenuIds: d, onToggleSubmenuPin: w } = n;
642
+ const { menuList: t, menuHeader: s, open: a, onMenuSelected: l, onClickSignout: o, theme: u, toggleTheme: g, isPinned: y, onTogglePin: k, pinnedSubmenuIds: d, onToggleSubmenuPin: w } = n;
643
643
  return /* @__PURE__ */ r.jsxs("div", { className: `aiquants-menu-content fixed top-0 right-0 z-2147483642 flex min-h-dvh w-[240px] select-none flex-col transition-transform duration-500 ${a ? "aiquants-menu-translate-x-0" : "aiquants-menu-translate-x-250"}`, children: [
644
644
  /* @__PURE__ */ r.jsx("div", { className: "flex shrink-0 flex-col justify-center border-white/15 border-b px-2.5 py-2 dark:border-slate-700/60", children: s }),
645
645
  /* @__PURE__ */ r.jsx("div", { className: "flex grow flex-col overflow-y-auto", children: /* @__PURE__ */ r.jsx(lt, { menuList: t, onMenuSelected: l, pinnedSubmenuIds: d, onToggleSubmenuPin: w }) }),
@@ -648,24 +648,24 @@ const nt = [
648
648
  "button",
649
649
  {
650
650
  type: "button",
651
- onClick: f,
651
+ onClick: k,
652
652
  "data-aqmb-pin-button": !0,
653
- className: `flex h-7 items-center justify-center rounded-md px-2 text-[11px] text-white shadow-2xs transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300/60 ${p ? "bg-amber-500 hover:bg-amber-600 dark:bg-amber-600 dark:hover:bg-amber-500" : "border border-white/20 bg-white/10 hover:bg-white/20 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600"}`,
654
- title: p ? "ピン留め解除" : "ピン留め",
655
- "aria-label": p ? "ピン留め解除" : "ピン留め",
656
- children: p ? /* @__PURE__ */ r.jsx(ke, { size: 12 }) : /* @__PURE__ */ r.jsx(we, { size: 12 })
653
+ className: `flex h-7 items-center justify-center rounded-md px-2 text-[11px] text-white shadow-2xs transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300/60 ${y ? "bg-amber-500 hover:bg-amber-600 dark:bg-amber-600 dark:hover:bg-amber-500" : "border border-white/20 bg-white/10 hover:bg-white/20 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600"}`,
654
+ title: y ? "ピン留め解除" : "ピン留め",
655
+ "aria-label": y ? "ピン留め解除" : "ピン留め",
656
+ children: y ? /* @__PURE__ */ r.jsx(ke, { size: 12 }) : /* @__PURE__ */ r.jsx(we, { size: 12 })
657
657
  }
658
658
  ),
659
659
  /* @__PURE__ */ r.jsx(
660
660
  "button",
661
661
  {
662
662
  type: "button",
663
- onClick: h,
663
+ onClick: g,
664
664
  "data-aqmb-theme-button": !0,
665
665
  className: "group relative flex h-7 items-center justify-center rounded-md border border-white/20 bg-white/10 px-2 text-[11px] text-white shadow-2xs backdrop-blur-xs transition-all duration-200 hover:bg-white/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600",
666
- title: c === "dark" ? "ライトモードに切り替え" : "ダークモードに切り替え",
667
- "aria-label": c === "dark" ? "ライトモードに切り替え" : "ダークモードに切り替え",
668
- children: /* @__PURE__ */ r.jsx("span", { className: "text-xs transition-transform duration-200 group-hover:scale-110", children: c === "dark" ? "🌞" : "🌙" })
666
+ title: u === "dark" ? "ライトモードに切り替え" : "ダークモードに切り替え",
667
+ "aria-label": u === "dark" ? "ライトモードに切り替え" : "ダークモードに切り替え",
668
+ children: /* @__PURE__ */ r.jsx("span", { className: "text-xs transition-transform duration-200 group-hover:scale-110", children: u === "dark" ? "🌞" : "🌙" })
669
669
  }
670
670
  ),
671
671
  /* @__PURE__ */ r.jsxs(
@@ -687,33 +687,38 @@ const nt = [
687
687
  const { isOverlay: t, onOverlayClick: s } = n;
688
688
  return /* @__PURE__ */ r.jsx("button", { type: "button", className: `fixed inset-0 z-2147483640 cursor-default bg-black/50 transition-opacity duration-500 ${t ? "opacity-100" : "pointer-events-none opacity-0"}`, onClick: s });
689
689
  }, dt = (n) => {
690
- const { open: t, onMenuOpen: s, onMenuClose: a, theme: l } = n, o = T(t), c = T(null), h = T(null), p = T(null), f = T(null), d = T(null), w = k(() => {
691
- if (c.current && h.current && p.current && f.current && d.current) {
692
- const N = l === "dark" ? "#fff" : "#000";
693
- c.current.style.backgroundColor = N, c.current.style.width = "100%", c.current.style.height = "3px", c.current.style.transform = "", h.current.style.opacity = "1", h.current.style.backgroundColor = N, p.current.style.opacity = "1", p.current.style.backgroundColor = N, f.current.style.backgroundColor = N, f.current.style.width = "100%", f.current.style.height = "3px", f.current.style.transform = "", d.current.style.color = N, d.current.classList.remove("after:content-['close']"), d.current.classList.remove("after:ml-0.5"), d.current.classList.add("after:content-['menu']"), d.current.classList.add("after:-ml-0.5"), o.current = !0;
690
+ const { open: t, isOpen: s, onMenuOpen: a, onMenuClose: l, onToggle: o, theme: u = "light", className: g } = n, y = t ?? (s !== void 0 ? !s : !0), k = M(y), d = M(null), w = M(null), v = M(null), p = M(null), h = M(null), i = E(() => {
691
+ if (d.current && w.current && v.current && p.current && h.current) {
692
+ const b = u === "dark" ? "#fff" : "#000";
693
+ d.current.style.backgroundColor = b, d.current.style.width = "100%", d.current.style.height = "3px", d.current.style.transform = "none", w.current.style.opacity = "1", w.current.style.backgroundColor = b, v.current.style.opacity = "1", v.current.style.backgroundColor = b, p.current.style.backgroundColor = b, p.current.style.width = "100%", p.current.style.height = "3px", p.current.style.transform = "none", h.current.style.color = b, h.current.classList.remove("after:content-['close']"), h.current.classList.remove("after:ml-0.5"), h.current.classList.add("after:content-['menu']"), h.current.classList.add("after:-ml-0.5"), k.current = !0;
694
694
  }
695
- }, [l]), v = k(() => {
696
- c.current && h.current && p.current && f.current && d.current && (c.current.style.backgroundColor = "#fff", c.current.style.width = "32px", c.current.style.height = "4px", c.current.style.transform = "translateY(9px) rotate(-45deg)", h.current.style.opacity = "0", p.current.style.opacity = "0", f.current.style.backgroundColor = "#fff", f.current.style.width = "32px", f.current.style.height = "4px", f.current.style.transform = "translateY(-9px) rotate(45deg)", d.current.style.color = "#fff", d.current.classList.remove("after:content-['menu']"), d.current.classList.remove("after:-ml-0.5"), d.current.classList.add("after:content-['close']"), d.current.classList.add("after:ml-0.5"), o.current = !1);
697
- }, []), S = k(() => {
698
- w(), a && a();
699
- }, [w, a]), C = k(() => {
700
- v(), s && s();
701
- }, [v, s]), i = k(() => {
702
- o.current ? C() : S();
703
- }, [S, C]), m = k((N) => {
704
- N.currentTarget.blur();
705
- }, []), M = k((N) => {
706
- N.preventDefault();
695
+ }, [u]), f = E(() => {
696
+ d.current && w.current && v.current && p.current && h.current && (d.current.style.backgroundColor = "#fff", d.current.style.width = "32px", d.current.style.height = "4px", d.current.style.transform = "translateY(9px) rotate(-45deg)", w.current.style.opacity = "0", v.current.style.opacity = "0", p.current.style.backgroundColor = "#fff", p.current.style.width = "32px", p.current.style.height = "4px", p.current.style.transform = "translateY(-9px) rotate(45deg)", h.current.style.color = "#fff", h.current.classList.remove("after:content-['menu']"), h.current.classList.remove("after:-ml-0.5"), h.current.classList.add("after:content-['close']"), h.current.classList.add("after:ml-0.5"), k.current = !1);
707
697
  }, []);
708
- return $(() => {
709
- t ? w() : v();
710
- }, [t, w, v]), /* @__PURE__ */ r.jsxs("button", { type: "button", "data-aqmb-menu-switch": !0, className: "aiquants-menu-switch inline-block h-[27px] w-[27px] cursor-pointer align-middle outline-hidden", onClick: i, onFocus: m, onMouseDown: M, tabIndex: -1, children: [
711
- /* @__PURE__ */ r.jsx("span", { className: "absolute top-0 left-0 box-border inline-block h-[3px] w-full select-none", ref: c }),
712
- /* @__PURE__ */ r.jsx("span", { className: "absolute top-1.5 left-0 box-border inline-block h-[3px] w-full select-none", ref: h }),
713
- /* @__PURE__ */ r.jsx("span", { className: "absolute top-3 left-0 box-border inline-block h-[3px] w-full select-none", ref: p }),
714
- /* @__PURE__ */ r.jsx("span", { className: "absolute top-[18px] left-0 box-border inline-block h-[3px] w-full select-none", ref: f }),
715
- /* @__PURE__ */ r.jsx("div", { className: "absolute w-full text-xs after:mt-2 after:block", ref: d })
716
- ] });
698
+ $(() => {
699
+ y ? i() : f();
700
+ }, [y, i, f]);
701
+ const P = E(() => {
702
+ k.current ? (f(), a?.(), o?.(!0)) : (i(), l?.(), o?.(!1));
703
+ }, [f, i, a, l, o]), A = !y;
704
+ return /* @__PURE__ */ r.jsxs(
705
+ "button",
706
+ {
707
+ type: "button",
708
+ "data-aqmb-menu-switch": "true",
709
+ "aria-label": A ? "Close menu" : "Open menu",
710
+ "aria-expanded": A,
711
+ className: `aiquants-menu-switch z-[2147483647] inline-block h-[27px] w-[27px] cursor-pointer align-middle outline-hidden ${g || ""}`,
712
+ onClick: P,
713
+ children: [
714
+ /* @__PURE__ */ r.jsx("span", { ref: d, className: "absolute top-0 left-0 box-border inline-block h-[3px] w-full select-none transition-all duration-500" }),
715
+ /* @__PURE__ */ r.jsx("span", { ref: w, className: "absolute top-[6px] left-0 box-border inline-block h-[3px] w-full select-none transition-all duration-500" }),
716
+ /* @__PURE__ */ r.jsx("span", { ref: v, className: "absolute top-[12px] left-0 box-border inline-block h-[3px] w-full select-none transition-all duration-500" }),
717
+ /* @__PURE__ */ r.jsx("span", { ref: p, className: "absolute top-[18px] left-0 box-border inline-block h-[3px] w-full select-none transition-all duration-500" }),
718
+ /* @__PURE__ */ r.jsx("div", { ref: h, className: "absolute w-full text-xs transition-all duration-500 after:mt-2 after:block" })
719
+ ]
720
+ }
721
+ );
717
722
  }, ne = typeof window < "u" ? xe : $, bt = (n) => {
718
723
  const {
719
724
  menuList: t,
@@ -721,97 +726,97 @@ const nt = [
721
726
  onClickSignout: a,
722
727
  isMenuhide: l,
723
728
  isMenuHide: o,
724
- theme: c,
725
- toggleTheme: h,
726
- onMenuNavigate: p,
727
- isPinned: f,
729
+ theme: u,
730
+ toggleTheme: g,
731
+ onMenuNavigate: y,
732
+ isPinned: k,
728
733
  pinnedWidth: d = 240,
729
734
  onPinChange: w,
730
735
  pinnedSubmenuIds: v,
731
- initialPinnedSubmenuIds: S,
732
- onSubmenuPinChange: C,
736
+ initialPinnedSubmenuIds: p,
737
+ onSubmenuPinChange: h,
733
738
  closeOnEscape: i = "auto"
734
- } = n, m = o ?? l ?? !1, [M, N] = J(() => {
739
+ } = n, f = o ?? l ?? !1, [P, A] = J(() => {
735
740
  try {
736
741
  return localStorage.getItem("aiquants-menu-pinned") === "true";
737
742
  } catch {
738
743
  return !1;
739
744
  }
740
- }), j = f !== void 0 ? f : M, [I, L] = J(j);
745
+ }), b = k !== void 0 ? k : P, [I, L] = J(b);
741
746
  $(() => {
742
- j && L(!0);
743
- }, [j]);
747
+ b && L(!0);
748
+ }, [b]);
744
749
  const [z, B] = J(() => {
745
- if (S)
746
- return S;
750
+ if (p)
751
+ return p;
747
752
  try {
748
753
  const x = localStorage.getItem("aiquants-submenu-pinned");
749
754
  if (x) {
750
- const E = JSON.parse(x);
751
- if (Array.isArray(E))
752
- return E.filter((A) => typeof A == "number");
755
+ const _ = JSON.parse(x);
756
+ if (Array.isArray(_))
757
+ return _.filter((O) => typeof O == "number");
753
758
  }
754
759
  } catch {
755
760
  }
756
761
  return [];
757
- }), Q = v !== void 0 ? v : z, D = k(
762
+ }), Q = v !== void 0 ? v : z, D = E(
758
763
  (x) => {
759
- const E = v !== void 0 ? v : z, A = E.includes(x) ? E.filter((U) => U !== x) : [...E, x];
764
+ const _ = v !== void 0 ? v : z, O = _.includes(x) ? _.filter((U) => U !== x) : [..._, x];
760
765
  if (v === void 0) {
761
- B(A);
766
+ B(O);
762
767
  try {
763
- localStorage.setItem("aiquants-submenu-pinned", JSON.stringify(A));
768
+ localStorage.setItem("aiquants-submenu-pinned", JSON.stringify(O));
764
769
  } catch {
765
770
  }
766
771
  }
767
- C && C(A);
772
+ h && h(O);
768
773
  },
769
- [v, z, C]
770
- ), Y = T(w);
774
+ [v, z, h]
775
+ ), Y = M(w);
771
776
  ne(() => {
772
777
  Y.current = w;
773
778
  }, [w]), ne(() => {
774
- const x = j ? d : 0, E = `${x}px`;
775
- document.documentElement.style.setProperty("--aiquants-menu-pinned-width", E), de(j, x);
776
- }, [j, d]), ne(() => () => {
779
+ const x = b ? d : 0, _ = `${x}px`;
780
+ document.documentElement.style.setProperty("--aiquants-menu-pinned-width", _), de(b, x);
781
+ }, [b, d]), ne(() => () => {
777
782
  document.documentElement.style.setProperty("--aiquants-menu-pinned-width", "0px"), de(!1, 0);
778
783
  }, []);
779
- const X = k(() => {
784
+ const X = E(() => {
780
785
  L(!0);
781
- }, []), R = k(() => {
782
- if (L(!1), f === void 0) {
783
- N(!1);
786
+ }, []), T = E(() => {
787
+ if (L(!1), k === void 0) {
788
+ A(!1);
784
789
  try {
785
790
  localStorage.removeItem("aiquants-menu-pinned");
786
791
  } catch {
787
792
  }
788
793
  }
789
794
  Y.current?.(!1, 0);
790
- }, [f]), F = k(() => {
791
- const x = !j, E = x ? d : 0;
792
- if (f === void 0) {
793
- N(x);
795
+ }, [k]), F = E(() => {
796
+ const x = !b, _ = x ? d : 0;
797
+ if (k === void 0) {
798
+ A(x);
794
799
  try {
795
800
  x ? localStorage.setItem("aiquants-menu-pinned", "true") : localStorage.removeItem("aiquants-menu-pinned");
796
801
  } catch {
797
802
  }
798
803
  }
799
- Y.current?.(x, E);
800
- }, [j, f, d]), K = k(
804
+ Y.current?.(x, _);
805
+ }, [b, k, d]), K = E(
801
806
  (x) => {
802
- p && p(x), j || L(!1);
807
+ y && y(x), b || L(!1);
803
808
  },
804
- [p, j]
805
- ), O = k(
809
+ [y, b]
810
+ ), R = E(
806
811
  (x) => {
807
- x.key === "Escape" && R();
812
+ x.key === "Escape" && T();
808
813
  },
809
- [R]
810
- ), H = i === !0 || i === "auto" && !j;
811
- return $(() => (I && H ? window.addEventListener("keydown", O) : window.removeEventListener("keydown", O), () => {
812
- window.removeEventListener("keydown", O);
813
- }), [I, H, O]), m ? null : /* @__PURE__ */ r.jsxs("div", { className: `aiquants-menu-bar ${c}`, children: [
814
- /* @__PURE__ */ r.jsx(dt, { onMenuClose: R, onMenuOpen: X, open: !I, theme: c }),
814
+ [T]
815
+ ), H = i === !0 || i === "auto" && !b;
816
+ return $(() => (I && H ? window.addEventListener("keydown", R) : window.removeEventListener("keydown", R), () => {
817
+ window.removeEventListener("keydown", R);
818
+ }), [I, H, R]), f ? null : /* @__PURE__ */ r.jsxs("div", { className: `aiquants-menu-bar ${u}`, children: [
819
+ /* @__PURE__ */ r.jsx(dt, { onMenuClose: T, onMenuOpen: X, open: !I, theme: u }),
815
820
  /* @__PURE__ */ r.jsx(
816
821
  ct,
817
822
  {
@@ -820,15 +825,15 @@ const nt = [
820
825
  onClickSignout: a,
821
826
  onMenuSelected: K,
822
827
  open: I,
823
- theme: c,
824
- toggleTheme: h,
825
- isPinned: j,
828
+ theme: u,
829
+ toggleTheme: g,
830
+ isPinned: b,
826
831
  onTogglePin: F,
827
832
  pinnedSubmenuIds: Q,
828
833
  onToggleSubmenuPin: D
829
834
  }
830
835
  ),
831
- /* @__PURE__ */ r.jsx(ut, { isOverlay: I && !j, onOverlayClick: R })
836
+ /* @__PURE__ */ r.jsx(ut, { isOverlay: I && !b, onOverlayClick: T })
832
837
  ] });
833
838
  };
834
839
  export {