@versini/sassysaint 8.110.3 → 8.111.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/chunks/{AboutChangelog.lkiW0mb0.js → AboutChangelog.DBS-W0Io.js} +2 -2
  2. package/dist/chunks/{AboutEntry.UmqlpC-6.js → AboutEntry.BALXq3uG.js} +7 -7
  3. package/dist/chunks/{App.B6slW82y.js → App.DYc2zQb9.js} +603 -604
  4. package/dist/chunks/{Bubble.Bzb0yWg5.js → Bubble.CjFOupdI.js} +1 -1
  5. package/dist/chunks/{ButtonIconDelete.yEcP--tW.js → ButtonIconDelete.CrLclEN-.js} +2 -2
  6. package/dist/chunks/{Chart.CtM9GlAA.js → Chart.DE2Pj6I-.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.B52zcfCw.js → ChatBubbleAssistant.Iepb3p0t.js} +4 -4
  8. package/dist/chunks/{ChatBubbleUser.CHmdyTg5.js → ChatBubbleUser.BfkYxwnc.js} +3 -3
  9. package/dist/chunks/{ChatHistoryTable.D8OwdEcC.js → ChatHistoryTable.DD5ZuAbI.js} +4 -4
  10. package/dist/chunks/{HistoryEntry.BbWinMPG.js → HistoryEntry.C8Ld2sD4.js} +6 -6
  11. package/dist/chunks/{LoginEntry.BRcsqkn1.js → LoginEntry.C6nNtgTg.js} +4 -4
  12. package/dist/chunks/{LogoEntry.Bu1wr6W3.js → LogoEntry.BzJx8V2c.js} +1 -1
  13. package/dist/chunks/{MemoriesEntry.B8Jduj0p.js → MemoriesEntry.BEXE9loJ.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.DWVYl6vU.js → ProfileEntry.3BYJrVIt.js} +4 -4
  15. package/dist/chunks/{SettingsEntry.qPh6dhcd.js → SettingsEntry.C6nWCZpc.js} +5 -5
  16. package/dist/chunks/{UsageEntry.C60Nsx8M.js → UsageEntry.Dd-xUxjd.js} +5 -5
  17. package/dist/chunks/{_baseUniq.COocjMTd.js → _baseUniq.CO1pQ3TU.js} +1 -1
  18. package/dist/chunks/{arc.kGh-cDYj.js → arc.UmkSc1Aq.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.CsU3Wwt7.js → architecture-U656AL7Q.BVslGbEi.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.b2cm1XLO.js → architectureDiagram-VXUJARFQ.CcnHrQNJ.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.CCVcuksY.js → blockDiagram-VD42YOAC.DBW_inb5.js} +5 -5
  22. package/dist/chunks/{browser.QIuapGgB.js → browser.B3njUrBi.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.DMaD8nyL.js → c4Diagram-YG6GDRKO.BSs-xFSk.js} +2 -2
  24. package/dist/chunks/{channel.BUsnjrUn.js → channel.D0sWdRVT.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.DlTt12ES.js → chunk-4BX2VUAB.CjUvcA9v.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.DCeL79zS.js → chunk-55IACEB6.C2qmG191.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.CX1uytRd.js → chunk-B4BG7PRW.De4jw-e4.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.dvgZW1UK.js → chunk-DI55MBZ5.Bs_RrXB7.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.CaCU5hmN.js → chunk-FMBD7UC4.CBEVGMvu.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.DNC6zMVf.js → chunk-QN33PNHL.DybGTku4.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.Dw_nvEyB.js → chunk-QZHKN3VN.C8J2iNyQ.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.CtF-QOyw.js → chunk-TZMSLE5B.DWPNgloc.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.Ca7Ta_OD.js → classDiagram-2ON5EDUG.C8iMt-CB.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.Ca7Ta_OD.js → classDiagram-v2-WZHVMYZB.C8iMt-CB.js} +2 -2
  35. package/dist/chunks/{clone.BtKf4xC_.js → clone.DeBg-xtY.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.DwW1cev3.js → cose-bilkent-S5V4N54A.DdmGTxAx.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.BUkhHXYk.js → dagre-6UL2VRFP.DUYGMAN4.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.DJ_Lr38x.js → diagram-PSM6KHXK.Ccpr6tNA.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.BpMcOoOC.js → diagram-QEK2KX5R.DM7BsSur.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.DVtNt8J8.js → diagram-S2PKOQOG.CcNYo6mZ.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.aSDenSqN.js → erDiagram-Q2GNP2WA.B8GbIkl0.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.CJbH__17.js → flowDiagram-NV44I4VS.D8a1Zxq6.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.u6-CJID3.js → ganttDiagram-JELNMOA3.CxIyi0FP.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.SAvUllla.js → gitGraph-F6HP7TQM.DdmXatf1.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.D_xjcCME.js → gitGraphDiagram-NY62KEGX.gdP5EUcb.js} +4 -4
  46. package/dist/chunks/{graph.BMpJQe8Z.js → graph.vmnThUrw.js} +2 -2
  47. package/dist/chunks/{index.DBhmddrz.js → index.BJsn-vQm.js} +1 -1
  48. package/dist/chunks/{index.CwDoM4xu.js → index.BiVcH-1l.js} +1 -1
  49. package/dist/chunks/{index.CV3VT680.js → index.CQ1tNoqY.js} +2 -2
  50. package/dist/chunks/{index.DBMr9ZIG.js → index.CacVTYUi.js} +1 -1
  51. package/dist/chunks/{index.uVyMig2w.js → index.Cwy5dqPH.js} +3 -3
  52. package/dist/chunks/{index.D4BYiu5b.js → index.DFah9PmB.js} +3 -3
  53. package/dist/chunks/{index.DGAn9DSb.js → index.DVV06j5x.js} +1 -1
  54. package/dist/chunks/{index.CC_BDGYS.js → index._wuBqYM-.js} +1 -1
  55. package/dist/chunks/{index.P0YK3CXH.js → index.rtvKWBwR.js} +1 -1
  56. package/dist/chunks/{info-NVLQJR56.UWLM7NLW.js → info-NVLQJR56.DGgSzZvD.js} +1 -1
  57. package/dist/chunks/{infoDiagram-WHAUD3N6.CXXBBBvD.js → infoDiagram-WHAUD3N6.Cr9uswM-.js} +2 -2
  58. package/dist/chunks/{journeyDiagram-XKPGCS4Q.WlKdK6d-.js → journeyDiagram-XKPGCS4Q.BeAeXdZw.js} +4 -4
  59. package/dist/chunks/{kanban-definition-3W4ZIXB7.yLrosYt3.js → kanban-definition-3W4ZIXB7.BE8r8cZr.js} +2 -2
  60. package/dist/chunks/{layout.BsNu2DpU.js → layout.Ce8z59EY.js} +4 -4
  61. package/dist/chunks/{mermaid-parser.core.-fztw1tq.js → mermaid-parser.core.DV6o_bdd.js} +10 -10
  62. package/dist/chunks/{min.CzeGcSjf.js → min.tslYr6eP.js} +2 -2
  63. package/dist/chunks/{mindmap-definition-VGOIOE7T.LL23ZJeJ.js → mindmap-definition-VGOIOE7T.CuQAhOps.js} +232 -257
  64. package/dist/chunks/{packet-BFZMPI3H.sUqQan1_.js → packet-BFZMPI3H.Bcwvega6.js} +1 -1
  65. package/dist/chunks/{pie-7BOR55EZ.7e8JmkIh.js → pie-7BOR55EZ.D8RARbd5.js} +1 -1
  66. package/dist/chunks/{pieDiagram-ADFJNKIX.BLXB9TYh.js → pieDiagram-ADFJNKIX.CvBdPnGV.js} +4 -4
  67. package/dist/chunks/{quadrantDiagram-AYHSOK5B.npeOw87_.js → quadrantDiagram-AYHSOK5B.CROQ_Frk.js} +1 -1
  68. package/dist/chunks/{radar-NHE76QYJ.CH1mMYSt.js → radar-NHE76QYJ.CCshv9eV.js} +1 -1
  69. package/dist/chunks/{rehype-mermaid.CF3pcJvp.js → rehype-mermaid.BdX4FNx6.js} +33 -33
  70. package/dist/chunks/{requirementDiagram-UZGBJVZJ.b0uvf183.js → requirementDiagram-UZGBJVZJ.CGaK5g7H.js} +3 -3
  71. package/dist/chunks/{sankeyDiagram-TZEHDZUN.b20Blkrh.js → sankeyDiagram-TZEHDZUN.BmuzrAiO.js} +1 -1
  72. package/dist/chunks/{sequenceDiagram-WL72ISMW.BylR9rfC.js → sequenceDiagram-WL72ISMW.WbZc3G3z.js} +3 -3
  73. package/dist/chunks/{stateDiagram-FKZM4ZOC.Dwq-R-dt.js → stateDiagram-FKZM4ZOC.BcipU7Ac.js} +4 -4
  74. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.H1Hbg_Hp.js → stateDiagram-v2-4FDKWEC3.CsiWj86-.js} +2 -2
  75. package/dist/chunks/{timeline-definition-IT6M3QCI.BD-L74X0.js → timeline-definition-IT6M3QCI.CGhuUKcI.js} +2 -2
  76. package/dist/chunks/{treemap-KMMF4GRG.DHmPB-yR.js → treemap-KMMF4GRG.DXHxrJFh.js} +1 -1
  77. package/dist/chunks/{useMarkdown.CVqU22vr.js → useMarkdown.DXXZNSYf.js} +8 -8
  78. package/dist/chunks/{xychartDiagram-PRI3JC2R.UW4hhcjJ.js → xychartDiagram-PRI3JC2R.DcXD2HKb.js} +1 -1
  79. package/dist/components/SassySaint/SassySaint.js +1 -1
  80. package/dist/index.js +3 -3
  81. package/dist/style.css +1 -1
  82. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  import { jsx as h, jsxs as z, Fragment as ut } from "react/jsx-runtime";
2
- import { ACTION_SORT as uu, ACTION_SEARCH as du, ACTION_RESET_PROMPT as Ja, ACTION_TOGGLE_PROMPT as Ka, LOCAL_STORAGE_PREFIX as Ve, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as fu, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as sr, useUserPreferences as bt, serverUrl as Xa, useEntitlements as Do, useSaveChat as pu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as mu, B as ar, LOCAL_STORAGE_REASONING_DISCLOSURE as hu, PROMPT_EDITABLE_AREA_CLASSNAME as gu, PROMPT_CLASSNAME as vu, j as qa, ERROR_MESSAGE as yu, o as cn, U as bu, INPUT_BOTTOM_OFFSET_IPHONE as wu, INPUT_BOTTOM_OFFSET_IPAD as _u, INPUT_BOTTOM_OFFSET as Qa, INPUT_BOTTOM_OFFSET_EXTRA as Ur, getLayoutPaddingClass as po, canEvaluateModels as fs, k as Eu, a as Su, i as Cu, s as xu, x as Iu, c as jr, setNewProvider as ps, useQueryClient as Tu, n$1 as mo, useServerCapabilities as Au, getMessageContaintWrapperClass as Ru, UI_FOOTER_BUFFER as ei, UI_BUTTON_SCROLL_BUFFER as Ou, UI_DEFAULT_MAIN_HEIGHT as ms, e as Nu, applyOledMode as Mu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Pu, y as hs, v as ku, LOCAL_STORAGE_SORT as Du, LOCAL_STORAGE_SEARCH as $u, LOCAL_STORAGE_OLED_MODE as Lu, LOCAL_STORAGE_FULL_SCREEN as zu, LOCAL_STORAGE_SORT_TIMESTAMP as Fu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Zu } from "./index.CV3VT680.js";
2
+ import { ACTION_SORT as uu, ACTION_SEARCH as du, ACTION_RESET_PROMPT as Ja, ACTION_TOGGLE_PROMPT as Ka, LOCAL_STORAGE_PREFIX as Ve, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as fu, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as sr, useUserPreferences as bt, serverUrl as Xa, useEntitlements as Do, useSaveChat as pu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as mu, B as ar, LOCAL_STORAGE_REASONING_DISCLOSURE as hu, PROMPT_EDITABLE_AREA_CLASSNAME as gu, PROMPT_CLASSNAME as vu, j as qa, ERROR_MESSAGE as yu, o as cn, U as bu, INPUT_BOTTOM_OFFSET_IPHONE as wu, INPUT_BOTTOM_OFFSET_IPAD as _u, INPUT_BOTTOM_OFFSET as Qa, INPUT_BOTTOM_OFFSET_EXTRA as Ur, getLayoutPaddingClass as po, canEvaluateModels as fs, k as Eu, a as Su, i as Cu, s as xu, x as Iu, c as jr, setNewProvider as ps, useQueryClient as Tu, n$1 as mo, useServerCapabilities as Au, getMessageContaintWrapperClass as Ru, UI_FOOTER_BUFFER as ei, UI_BUTTON_SCROLL_BUFFER as Ou, UI_DEFAULT_MAIN_HEIGHT as ms, e as Nu, applyOledMode as Mu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Pu, y as hs, v as ku, LOCAL_STORAGE_SORT as Du, LOCAL_STORAGE_SEARCH as $u, LOCAL_STORAGE_OLED_MODE as Lu, LOCAL_STORAGE_FULL_SCREEN as zu, LOCAL_STORAGE_SORT_TIMESTAMP as Fu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Zu } from "./index.CQ1tNoqY.js";
3
3
  import * as w from "react";
4
4
  import Ze, { useSyncExternalStore as Xn, useCallback as Y, useEffect as Z, useRef as J, useState as B, createContext as ti, useContext as de, useMemo as Ae, forwardRef as Er, useId as ni, useLayoutEffect as _n, cloneElement as ri, Suspense as ir, lazy as ot, useReducer as Dn } from "react";
5
- import { TableCellSortDirections as on, ChatContext as Le, useTheme as Ke, ButtonIcon as st, IconAddLight as Uu, IconCloseLight as ju, IconEditLight as Bu, Button as oi, IconLockedLight as Vu, IconUnlockedLight as Hu, IconNext as Wu, IconSelected as Gu, IconUnSelected as Yu, PromptsContext as $o, IconBookSparklesLight as Ju, IconRewrite as Ku, IconProofread as Xu, IconMagic as qu, IconLightBulbLight as Qu, IconSendLight as ed, INPUT_PLACEHOLDER_TEXT_IN_SESSION as si, INPUT_PLACEHOLDER_TEXT_MORNING as td, INPUT_PLACEHOLDER_TEXT_TODAY as nd, INPUT_PLACEHOLDER_TEXT_AFTERNOON as rd, INPUT_PLACEHOLDER_TEXT_EVENING as od, INPUT_PLACEHOLDER_TEXT_NIGHT as sd, INPUT_PLACEHOLDER_TEXT_DEFAULT as ad, IconClose as id, AppContext as En, useUniqueId as cd, CLIPBOARD_PROMPT as gs, FOOTER_DISCLAIMERS as vs, useResizeObserver as ai, APP_SET_FOOTER_HEIGHT as ld, FOOTER_TOP as ho, FOOTER_BOTTOM as sn, APP_SET_FOOTER_POSITION as Br, IconOpenAI as ud, IconAnthropic as dd, IconGoogleGemini as fd, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as bs, IconProfile as pd, IconSliders as md, IconHistory as hd, IconEditUser as gd, IconChart as vd, IconInfo as yd, IconBack as bd, IconSettings as wd, Logo as _d, appReducer as Ed, APP_SET_OLED_MODE as Sd, APP_SET_FULL_SCREEN as Cd, APP_SET_THEME_MODE as xd, APP_SET_THEME_PALETTE as Id, HistoryContext as Td, APP_CLASSNAME as Ad, TOAST_CACHE_ENABLED as Rd, TOAST_CACHE_DISABLED as Od } from "./LogoEntry.Bu1wr6W3.js";
5
+ import { TableCellSortDirections as on, ChatContext as Le, useTheme as Ke, ButtonIcon as st, IconAddLight as Uu, IconCloseLight as ju, IconEditLight as Bu, Button as oi, IconLockedLight as Vu, IconUnlockedLight as Hu, IconNext as Wu, IconSelected as Gu, IconUnSelected as Yu, PromptsContext as $o, IconBookSparklesLight as Ju, IconRewrite as Ku, IconProofread as Xu, IconMagic as qu, IconLightBulbLight as Qu, IconSendLight as ed, INPUT_PLACEHOLDER_TEXT_IN_SESSION as si, INPUT_PLACEHOLDER_TEXT_MORNING as td, INPUT_PLACEHOLDER_TEXT_TODAY as nd, INPUT_PLACEHOLDER_TEXT_AFTERNOON as rd, INPUT_PLACEHOLDER_TEXT_EVENING as od, INPUT_PLACEHOLDER_TEXT_NIGHT as sd, INPUT_PLACEHOLDER_TEXT_DEFAULT as ad, IconClose as id, AppContext as En, useUniqueId as cd, CLIPBOARD_PROMPT as gs, FOOTER_DISCLAIMERS as vs, useResizeObserver as ai, APP_SET_FOOTER_HEIGHT as ld, FOOTER_TOP as ho, FOOTER_BOTTOM as sn, APP_SET_FOOTER_POSITION as Br, IconOpenAI as ud, IconAnthropic as dd, IconGoogleGemini as fd, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as bs, IconProfile as pd, IconSliders as md, IconHistory as hd, IconEditUser as gd, IconChart as vd, IconInfo as yd, IconBack as bd, IconSettings as wd, Logo as _d, appReducer as Ed, APP_SET_OLED_MODE as Sd, APP_SET_FULL_SCREEN as Cd, APP_SET_THEME_MODE as xd, APP_SET_THEME_PALETTE as Id, HistoryContext as Td, APP_CLASSNAME as Ad, TOAST_CACHE_ENABLED as Rd, TOAST_CACHE_DISABLED as Od } from "./LogoEntry.BzJx8V2c.js";
6
6
  import U, { clsx as dt } from "clsx";
7
7
  import { useFloatingParentNodeId as Nd, FloatingTree as Md, useMergeRefs as Pd, FloatingNode as kd, FloatingPortal as Dd, FloatingOverlay as $d, FloatingFocusManager as Ld, useFloatingNodeId as zd, useFloating as Fd, useClick as Zd, useDismiss as Ud, useRole as jd, useInteractions as Bd } from "@floating-ui/react";
8
8
  import * as ii from "react-dom";
@@ -56,7 +56,7 @@ function et({ key: e, initialValue: t }) {
56
56
  i
57
57
  ];
58
58
  }
59
- const S0 = (e, t) => {
59
+ const E0 = (e, t) => {
60
60
  let n;
61
61
  return (...r) => {
62
62
  window.clearTimeout(n), n = window.setTimeout(() => e(...r), t);
@@ -73,12 +73,12 @@ const S0 = (e, t) => {
73
73
  "iPad"
74
74
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Gd(), n = navigator.maxTouchPoints > 1;
75
75
  return e && t && n;
76
- }, Jd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, C0 = (e, t) => t === 1 ? e : `${e}s`, x0 = new Intl.NumberFormat("en", {
76
+ }, Jd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, S0 = (e, t) => t === 1 ? e : `${e}s`, C0 = new Intl.NumberFormat("en", {
77
77
  signDisplay: "never",
78
78
  maximumFractionDigits: 0
79
- }), I0 = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
79
+ }), x0 = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
80
80
  return String.fromCharCode(+`0x${r}`);
81
- })), T0 = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
81
+ })), I0 = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
82
82
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
83
83
  }).join(""));
84
84
  var li = "vercel.ai.error", Kd = Symbol.for(li), Es, Ss, ft = class ui extends (Ss = Error, Es = Kd, Ss) {
@@ -6016,24 +6016,23 @@ function Lv() {
6016
6016
  return Jr($v);
6017
6017
  }
6018
6018
  const zv = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), aa = { randomUUID: zv };
6019
- function Fv(e, t, n) {
6019
+ function ht(e, t, n) {
6020
+ if (aa.randomUUID && !e)
6021
+ return aa.randomUUID();
6020
6022
  e = e || {};
6021
6023
  const r = e.random ?? e.rng?.() ?? Lv();
6022
6024
  if (r.length < 16)
6023
6025
  throw new Error("Random bytes length must be >= 16");
6024
6026
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Dv(r);
6025
6027
  }
6026
- function ht(e, t, n) {
6027
- return aa.randomUUID && !e ? aa.randomUUID() : Fv(e);
6028
- }
6029
6028
  let Kr = null, Xr = null;
6030
6029
  const ic = async () => (Kr || (Kr = import(
6031
6030
  /* webpackChunkName: "toast-react-toastify" */
6032
6031
  "./index.790ujKXR.js"
6033
6032
  )), Kr), cc = async () => (Xr || (Xr = import(
6034
6033
  /* webpackChunkName: "toast-utilities" */
6035
- "./index.CV3VT680.js"
6036
- ).then((e) => e.utilities)), Xr), Zv = async () => {
6034
+ "./index.CQ1tNoqY.js"
6035
+ ).then((e) => e.utilities)), Xr), Fv = async () => {
6037
6036
  try {
6038
6037
  await Promise.all([ic(), cc()]);
6039
6038
  } catch {
@@ -6054,7 +6053,7 @@ const ic = async () => (Kr || (Kr = import(
6054
6053
  }, 100);
6055
6054
  } catch {
6056
6055
  }
6057
- }, fr = (e, t) => lc(e, "success", t), Uv = (e, t) => lc(e, "error", t), Rt = "CHAT_SET_STATUS", uc = "CHAT_SET_USAGE", mn = "CHAT_SET_ATTACHMENTS", So = "CHAT_SET_PRIVATE", dc = "CHAT_SET_PROVIDER", Wt = "CHAT_RESET", jv = (e, t) => {
6056
+ }, fr = (e, t) => lc(e, "success", t), Zv = (e, t) => lc(e, "error", t), Rt = "CHAT_SET_STATUS", uc = "CHAT_SET_USAGE", mn = "CHAT_SET_ATTACHMENTS", So = "CHAT_SET_PRIVATE", dc = "CHAT_SET_PROVIDER", Wt = "CHAT_RESET", Uv = (e, t) => {
6058
6057
  switch (t.type) {
6059
6058
  case uc:
6060
6059
  return {
@@ -6113,7 +6112,7 @@ const ic = async () => (Kr || (Kr = import(
6113
6112
  default:
6114
6113
  return e;
6115
6114
  }
6116
- }, Bv = (e, t) => {
6115
+ }, jv = (e, t) => {
6117
6116
  switch (t?.type) {
6118
6117
  case du:
6119
6118
  return {
@@ -6132,7 +6131,7 @@ const ic = async () => (Kr || (Kr = import(
6132
6131
  default:
6133
6132
  return e;
6134
6133
  }
6135
- }, Vv = (e, t) => {
6134
+ }, Bv = (e, t) => {
6136
6135
  switch (t?.type) {
6137
6136
  case Ka:
6138
6137
  return {
@@ -6149,7 +6148,7 @@ const ic = async () => (Kr || (Kr = import(
6149
6148
  }
6150
6149
  };
6151
6150
  var qr, ia;
6152
- function Hv() {
6151
+ function Vv() {
6153
6152
  if (ia) return qr;
6154
6153
  ia = 1;
6155
6154
  function e(t, n) {
@@ -6166,8 +6165,8 @@ function Hv() {
6166
6165
  }
6167
6166
  return qr = e, qr;
6168
6167
  }
6169
- var Wv = /* @__PURE__ */ Hv();
6170
- const Gv = /* @__PURE__ */ ov(Wv);
6168
+ var Hv = /* @__PURE__ */ Vv();
6169
+ const Wv = /* @__PURE__ */ ov(Hv);
6171
6170
  var fc = (e, t, n) => {
6172
6171
  if (!t.has(e))
6173
6172
  throw TypeError("Cannot " + n);
@@ -6176,10 +6175,10 @@ var fc = (e, t, n) => {
6176
6175
  throw TypeError("Cannot add the same private member more than once");
6177
6176
  t instanceof WeakSet ? t.add(e) : t.set(e, n);
6178
6177
  }, at = (e, t, n, r) => (fc(e, t, "write to private field"), t.set(e, n), n);
6179
- function Yv(e, t) {
6180
- return t != null ? Gv(e, t) : e;
6178
+ function Gv(e, t) {
6179
+ return t != null ? Wv(e, t) : e;
6181
6180
  }
6182
- var Te, Qn, er, en, tn, nn, Zt, Co, xo, Jv = class {
6181
+ var Te, Qn, er, en, tn, nn, Zt, Co, xo, Yv = class {
6183
6182
  constructor(e = []) {
6184
6183
  Fe(this, Te, void 0), Fe(this, Qn, "ready"), Fe(this, er, void 0), Fe(this, en, /* @__PURE__ */ new Set()), Fe(this, tn, /* @__PURE__ */ new Set()), Fe(this, nn, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6185
6184
  at(this, Te, re(this, Te).concat(t)), re(this, Zt).call(this);
@@ -6193,7 +6192,7 @@ var Te, Qn, er, en, tn, nn, Zt, Co, xo, Jv = class {
6193
6192
  ...re(this, Te).slice(t + 1)
6194
6193
  ]), re(this, Zt).call(this);
6195
6194
  }, this.snapshot = (t) => structuredClone(t), this["~registerMessagesCallback"] = (t, n) => {
6196
- const r = n ? Yv(t, n) : t;
6195
+ const r = n ? Gv(t, n) : t;
6197
6196
  return re(this, en).add(r), () => {
6198
6197
  re(this, en).delete(r);
6199
6198
  };
@@ -6239,12 +6238,12 @@ Co = /* @__PURE__ */ new WeakMap();
6239
6238
  xo = /* @__PURE__ */ new WeakMap();
6240
6239
  var Ut, ca = class extends kv {
6241
6240
  constructor({ messages: e, ...t }) {
6242
- const n = new Jv(e);
6241
+ const n = new Yv(e);
6243
6242
  super({ ...t, state: n }), Fe(this, Ut, void 0), this["~registerMessagesCallback"] = (r, o) => re(this, Ut)["~registerMessagesCallback"](r, o), this["~registerStatusCallback"] = (r) => re(this, Ut)["~registerStatusCallback"](r), this["~registerErrorCallback"] = (r) => re(this, Ut)["~registerErrorCallback"](r), at(this, Ut, n);
6244
6243
  }
6245
6244
  };
6246
6245
  Ut = /* @__PURE__ */ new WeakMap();
6247
- function Kv({
6246
+ function Jv({
6248
6247
  experimental_throttle: e,
6249
6248
  resume: t = !1,
6250
6249
  ...n
@@ -6321,7 +6320,7 @@ function wt(e = {}) {
6321
6320
  setInput: t.setInput
6322
6321
  };
6323
6322
  }
6324
- function Xv({
6323
+ function Kv({
6325
6324
  children: e,
6326
6325
  value: t
6327
6326
  }) {
@@ -6341,7 +6340,7 @@ function Xv({
6341
6340
  }, []), c = Y(async (d) => {
6342
6341
  for (const u of n.current.onToolCall)
6343
6342
  await u(d);
6344
- }, []), l = Kv({
6343
+ }, []), l = Jv({
6345
6344
  id: t.id,
6346
6345
  messages: t.messages,
6347
6346
  transport: t.transport || new Vo({
@@ -6367,7 +6366,7 @@ function Xv({
6367
6366
  }
6368
6367
  );
6369
6368
  }
6370
- const qv = ({ chatId: e }) => {
6369
+ const Xv = ({ chatId: e }) => {
6371
6370
  const { messages: t } = wt(), {
6372
6371
  state: { privateChat: n }
6373
6372
  } = de(Le), r = J(e), o = J(!1);
@@ -6409,7 +6408,7 @@ const ua = ({
6409
6408
  };
6410
6409
  }
6411
6410
  }, []), n && Qr ? /* @__PURE__ */ h(Qr, { containerId: e, ...t }) : null;
6412
- }, Qv = ({
6411
+ }, qv = ({
6413
6412
  currentChatId: e,
6414
6413
  setChatId: t,
6415
6414
  setInitialMessages: n,
@@ -6453,7 +6452,7 @@ function da(e, t) {
6453
6452
  t
6454
6453
  ]);
6455
6454
  }
6456
- function ey() {
6455
+ function Qv() {
6457
6456
  const [e, t] = B({
6458
6457
  width: 0,
6459
6458
  height: 0
@@ -6465,7 +6464,7 @@ function ey() {
6465
6464
  }, []);
6466
6465
  return da("resize", n), da("orientationchange", n), Z(n, []), e;
6467
6466
  }
6468
- function ty() {
6467
+ function ey() {
6469
6468
  const [e, t] = B({
6470
6469
  width: 0,
6471
6470
  height: 0
@@ -6485,8 +6484,8 @@ function ty() {
6485
6484
  n
6486
6485
  ]), e;
6487
6486
  }
6488
- const ny = "z-20", ry = "z-10";
6489
- function oy(e) {
6487
+ const ty = "z-20", ny = "z-10";
6488
+ function ry(e) {
6490
6489
  const [t, n] = B(!1);
6491
6490
  return Z(() => {
6492
6491
  if (!e) {
@@ -6503,7 +6502,7 @@ function oy(e) {
6503
6502
  };
6504
6503
  }, [e]), t;
6505
6504
  }
6506
- function sy(e) {
6505
+ function oy(e) {
6507
6506
  const t = e.toLowerCase().split("+").map((s) => s.trim()), n = {
6508
6507
  alt: t.includes("alt"),
6509
6508
  ctrl: t.includes("ctrl"),
@@ -6522,7 +6521,7 @@ function sy(e) {
6522
6521
  key: o
6523
6522
  };
6524
6523
  }
6525
- function ay(e, t) {
6524
+ function sy(e, t) {
6526
6525
  const { alt: n, ctrl: r, meta: o, mod: s, shift: i, key: a } = e, { altKey: c, ctrlKey: l, metaKey: d, shiftKey: u, key: g } = t;
6527
6526
  if (n !== c)
6528
6527
  return !1;
@@ -6534,9 +6533,9 @@ function ay(e, t) {
6534
6533
  return i !== u ? !1 : !!(a && (g.toLowerCase() === a.toLowerCase() || t.code.replace("Key", "").toLowerCase() === a.toLowerCase()));
6535
6534
  }
6536
6535
  function mc(e) {
6537
- return (t) => ay(sy(e), t);
6536
+ return (t) => sy(oy(e), t);
6538
6537
  }
6539
- function iy(e) {
6538
+ function ay(e) {
6540
6539
  return (t) => {
6541
6540
  const n = "nativeEvent" in t ? t.nativeEvent : t;
6542
6541
  e.forEach(([r, o, s = {
@@ -6546,7 +6545,7 @@ function iy(e) {
6546
6545
  });
6547
6546
  };
6548
6547
  }
6549
- function cy(e, t, n = !1) {
6548
+ function iy(e, t, n = !1) {
6550
6549
  return e.target instanceof HTMLElement ? (n || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
6551
6550
  }
6552
6551
  function Ho(e, t = [
@@ -6559,7 +6558,7 @@ function Ho(e, t = [
6559
6558
  e.forEach(([s, i, a = {
6560
6559
  preventDefault: !0
6561
6560
  }]) => {
6562
- mc(s)(o) && cy(o, t, n) && (a.preventDefault && o.preventDefault(), i(o));
6561
+ mc(s)(o) && iy(o, t, n) && (a.preventDefault && o.preventDefault(), i(o));
6563
6562
  });
6564
6563
  };
6565
6564
  return document.documentElement.addEventListener("keydown", r), () => document.documentElement.removeEventListener("keydown", r);
@@ -6569,15 +6568,15 @@ function Ho(e, t = [
6569
6568
  n
6570
6569
  ]);
6571
6570
  }
6572
- const ly = ["top", "right", "bottom", "left"], gt = Math.min, Se = Math.max, pr = Math.round, Zn = Math.floor, Ge = (e) => ({
6571
+ const cy = ["top", "right", "bottom", "left"], gt = Math.min, Se = Math.max, pr = Math.round, Zn = Math.floor, Ge = (e) => ({
6573
6572
  x: e,
6574
6573
  y: e
6575
- }), uy = {
6574
+ }), ly = {
6576
6575
  left: "right",
6577
6576
  right: "left",
6578
6577
  bottom: "top",
6579
6578
  top: "bottom"
6580
- }, dy = {
6579
+ }, uy = {
6581
6580
  start: "end",
6582
6581
  end: "start"
6583
6582
  };
@@ -6599,48 +6598,48 @@ function Wo(e) {
6599
6598
  function Go(e) {
6600
6599
  return e === "y" ? "height" : "width";
6601
6600
  }
6602
- const fy = /* @__PURE__ */ new Set(["top", "bottom"]);
6601
+ const dy = /* @__PURE__ */ new Set(["top", "bottom"]);
6603
6602
  function He(e) {
6604
- return fy.has(rt(e)) ? "y" : "x";
6603
+ return dy.has(rt(e)) ? "y" : "x";
6605
6604
  }
6606
6605
  function Yo(e) {
6607
6606
  return Wo(He(e));
6608
6607
  }
6609
- function py(e, t, n) {
6608
+ function fy(e, t, n) {
6610
6609
  n === void 0 && (n = !1);
6611
6610
  const r = Jt(e), o = Yo(e), s = Go(o);
6612
6611
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6613
6612
  return t.reference[s] > t.floating[s] && (i = mr(i)), [i, mr(i)];
6614
6613
  }
6615
- function my(e) {
6614
+ function py(e) {
6616
6615
  const t = mr(e);
6617
6616
  return [To(e), t, To(t)];
6618
6617
  }
6619
6618
  function To(e) {
6620
- return e.replace(/start|end/g, (t) => dy[t]);
6619
+ return e.replace(/start|end/g, (t) => uy[t]);
6621
6620
  }
6622
- const fa = ["left", "right"], pa = ["right", "left"], hy = ["top", "bottom"], gy = ["bottom", "top"];
6623
- function vy(e, t, n) {
6621
+ const fa = ["left", "right"], pa = ["right", "left"], my = ["top", "bottom"], hy = ["bottom", "top"];
6622
+ function gy(e, t, n) {
6624
6623
  switch (e) {
6625
6624
  case "top":
6626
6625
  case "bottom":
6627
6626
  return n ? t ? pa : fa : t ? fa : pa;
6628
6627
  case "left":
6629
6628
  case "right":
6630
- return t ? hy : gy;
6629
+ return t ? my : hy;
6631
6630
  default:
6632
6631
  return [];
6633
6632
  }
6634
6633
  }
6635
- function yy(e, t, n, r) {
6634
+ function vy(e, t, n, r) {
6636
6635
  const o = Jt(e);
6637
- let s = vy(rt(e), n === "start", r);
6636
+ let s = gy(rt(e), n === "start", r);
6638
6637
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(To)))), s;
6639
6638
  }
6640
6639
  function mr(e) {
6641
- return e.replace(/left|right|bottom|top/g, (t) => uy[t]);
6640
+ return e.replace(/left|right|bottom|top/g, (t) => ly[t]);
6642
6641
  }
6643
- function by(e) {
6642
+ function yy(e) {
6644
6643
  return {
6645
6644
  top: 0,
6646
6645
  right: 0,
@@ -6650,7 +6649,7 @@ function by(e) {
6650
6649
  };
6651
6650
  }
6652
6651
  function hc(e) {
6653
- return typeof e != "number" ? by(e) : {
6652
+ return typeof e != "number" ? yy(e) : {
6654
6653
  top: e,
6655
6654
  right: e,
6656
6655
  bottom: e,
@@ -6723,7 +6722,7 @@ function ma(e, t, n) {
6723
6722
  }
6724
6723
  return m;
6725
6724
  }
6726
- const wy = async (e, t, n) => {
6725
+ const by = async (e, t, n) => {
6727
6726
  const {
6728
6727
  placement: r = "bottom",
6729
6728
  strategy: o = "absolute",
@@ -6829,7 +6828,7 @@ async function hn(e, t) {
6829
6828
  right: (S.right - b.right + p.right) / E.x
6830
6829
  };
6831
6830
  }
6832
- const _y = (e) => ({
6831
+ const wy = (e) => ({
6833
6832
  name: "arrow",
6834
6833
  options: e,
6835
6834
  async fn(t) {
@@ -6866,7 +6865,7 @@ const _y = (e) => ({
6866
6865
  reset: j
6867
6866
  };
6868
6867
  }
6869
- }), Ey = function(e) {
6868
+ }), _y = function(e) {
6870
6869
  return e === void 0 && (e = {}), {
6871
6870
  name: "flip",
6872
6871
  options: e,
@@ -6890,12 +6889,12 @@ const _y = (e) => ({
6890
6889
  } = nt(e, t);
6891
6890
  if ((n = s.arrow) != null && n.alignmentOffset)
6892
6891
  return {};
6893
- const b = rt(o), _ = He(a), v = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = g || (v || !f ? [mr(a)] : my(a)), I = p !== "none";
6894
- !g && I && S.push(...yy(a, f, p, E));
6892
+ const b = rt(o), _ = He(a), v = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = g || (v || !f ? [mr(a)] : py(a)), I = p !== "none";
6893
+ !g && I && S.push(...vy(a, f, p, E));
6895
6894
  const x = [a, ...S], T = await hn(t, y), P = [];
6896
6895
  let $ = ((r = s.flip) == null ? void 0 : r.overflows) || [];
6897
6896
  if (d && P.push(T[b]), u) {
6898
- const L = py(o, i, E);
6897
+ const L = fy(o, i, E);
6899
6898
  P.push(T[L[0]], T[L[1]]);
6900
6899
  }
6901
6900
  if ($ = [...$, {
@@ -6957,9 +6956,9 @@ function ha(e, t) {
6957
6956
  };
6958
6957
  }
6959
6958
  function ga(e) {
6960
- return ly.some((t) => e[t] >= 0);
6959
+ return cy.some((t) => e[t] >= 0);
6961
6960
  }
6962
- const Sy = function(e) {
6961
+ const Ey = function(e) {
6963
6962
  return e === void 0 && (e = {}), {
6964
6963
  name: "hide",
6965
6964
  options: e,
@@ -7001,7 +7000,7 @@ const Sy = function(e) {
7001
7000
  }
7002
7001
  };
7003
7002
  }, gc = /* @__PURE__ */ new Set(["left", "top"]);
7004
- async function Cy(e, t) {
7003
+ async function Sy(e, t) {
7005
7004
  const {
7006
7005
  placement: n,
7007
7006
  platform: r,
@@ -7028,7 +7027,7 @@ async function Cy(e, t) {
7028
7027
  y: m * d
7029
7028
  };
7030
7029
  }
7031
- const xy = function(e) {
7030
+ const Cy = function(e) {
7032
7031
  return e === void 0 && (e = 0), {
7033
7032
  name: "offset",
7034
7033
  options: e,
@@ -7039,7 +7038,7 @@ const xy = function(e) {
7039
7038
  y: s,
7040
7039
  placement: i,
7041
7040
  middlewareData: a
7042
- } = t, c = await Cy(t, e);
7041
+ } = t, c = await Sy(t, e);
7043
7042
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
7044
7043
  x: o + c.x,
7045
7044
  y: s + c.y,
@@ -7050,7 +7049,7 @@ const xy = function(e) {
7050
7049
  };
7051
7050
  }
7052
7051
  };
7053
- }, Iy = function(e) {
7052
+ }, xy = function(e) {
7054
7053
  return e === void 0 && (e = {}), {
7055
7054
  name: "shift",
7056
7055
  options: e,
@@ -7106,7 +7105,7 @@ const xy = function(e) {
7106
7105
  };
7107
7106
  }
7108
7107
  };
7109
- }, Ty = function(e) {
7108
+ }, Iy = function(e) {
7110
7109
  return e === void 0 && (e = {}), {
7111
7110
  options: e,
7112
7111
  fn(t) {
@@ -7148,7 +7147,7 @@ const xy = function(e) {
7148
7147
  };
7149
7148
  }
7150
7149
  };
7151
- }, Ay = function(e) {
7150
+ }, Ty = function(e) {
7152
7151
  return e === void 0 && (e = {}), {
7153
7152
  name: "size",
7154
7153
  options: e,
@@ -7215,7 +7214,7 @@ function Ye(e) {
7215
7214
  function va(e) {
7216
7215
  return !Tr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ce(e).ShadowRoot;
7217
7216
  }
7218
- const Ry = /* @__PURE__ */ new Set(["inline", "contents"]);
7217
+ const Ay = /* @__PURE__ */ new Set(["inline", "contents"]);
7219
7218
  function Tn(e) {
7220
7219
  const {
7221
7220
  overflow: t,
@@ -7223,15 +7222,15 @@ function Tn(e) {
7223
7222
  overflowY: r,
7224
7223
  display: o
7225
7224
  } = De(e);
7226
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ry.has(o);
7225
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ay.has(o);
7227
7226
  }
7228
- const Oy = /* @__PURE__ */ new Set(["table", "td", "th"]);
7229
- function Ny(e) {
7230
- return Oy.has(Kt(e));
7227
+ const Ry = /* @__PURE__ */ new Set(["table", "td", "th"]);
7228
+ function Oy(e) {
7229
+ return Ry.has(Kt(e));
7231
7230
  }
7232
- const My = [":popover-open", ":modal"];
7231
+ const Ny = [":popover-open", ":modal"];
7233
7232
  function Ar(e) {
7234
- return My.some((t) => {
7233
+ return Ny.some((t) => {
7235
7234
  try {
7236
7235
  return e.matches(t);
7237
7236
  } catch {
@@ -7239,12 +7238,12 @@ function Ar(e) {
7239
7238
  }
7240
7239
  });
7241
7240
  }
7242
- const Py = ["transform", "translate", "scale", "rotate", "perspective"], ky = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Dy = ["paint", "layout", "strict", "content"];
7241
+ const My = ["transform", "translate", "scale", "rotate", "perspective"], Py = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ky = ["paint", "layout", "strict", "content"];
7243
7242
  function Jo(e) {
7244
7243
  const t = Ko(), n = ke(e) ? De(e) : e;
7245
- return Py.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ky.some((r) => (n.willChange || "").includes(r)) || Dy.some((r) => (n.contain || "").includes(r));
7244
+ return My.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Py.some((r) => (n.willChange || "").includes(r)) || ky.some((r) => (n.contain || "").includes(r));
7246
7245
  }
7247
- function $y(e) {
7246
+ function Dy(e) {
7248
7247
  let t = vt(e);
7249
7248
  for (; Ye(t) && !Gt(t); ) {
7250
7249
  if (Jo(t))
@@ -7258,9 +7257,9 @@ function $y(e) {
7258
7257
  function Ko() {
7259
7258
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
7260
7259
  }
7261
- const Ly = /* @__PURE__ */ new Set(["html", "body", "#document"]);
7260
+ const $y = /* @__PURE__ */ new Set(["html", "body", "#document"]);
7262
7261
  function Gt(e) {
7263
- return Ly.has(Kt(e));
7262
+ return $y.has(Kt(e));
7264
7263
  }
7265
7264
  function De(e) {
7266
7265
  return Ce(e).getComputedStyle(e);
@@ -7331,15 +7330,15 @@ function jt(e) {
7331
7330
  y: a
7332
7331
  };
7333
7332
  }
7334
- const zy = /* @__PURE__ */ Ge(0);
7333
+ const Ly = /* @__PURE__ */ Ge(0);
7335
7334
  function wc(e) {
7336
7335
  const t = Ce(e);
7337
- return !Ko() || !t.visualViewport ? zy : {
7336
+ return !Ko() || !t.visualViewport ? Ly : {
7338
7337
  x: t.visualViewport.offsetLeft,
7339
7338
  y: t.visualViewport.offsetTop
7340
7339
  };
7341
7340
  }
7342
- function Fy(e, t, n) {
7341
+ function zy(e, t, n) {
7343
7342
  return t === void 0 && (t = !1), !n || t && n !== Ce(e) ? !1 : t;
7344
7343
  }
7345
7344
  function Nt(e, t, n, r) {
@@ -7347,7 +7346,7 @@ function Nt(e, t, n, r) {
7347
7346
  const o = e.getBoundingClientRect(), s = Xo(e);
7348
7347
  let i = Ge(1);
7349
7348
  t && (r ? ke(r) && (i = jt(r)) : i = jt(e));
7350
- const a = Fy(s, n, r) ? wc(s) : Ge(0);
7349
+ const a = zy(s, n, r) ? wc(s) : Ge(0);
7351
7350
  let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, d = o.width / i.x, u = o.height / i.y;
7352
7351
  if (s) {
7353
7352
  const g = Ce(s), m = r && ke(r) ? Ce(r) : r;
@@ -7375,7 +7374,7 @@ function _c(e, t) {
7375
7374
  y: o
7376
7375
  };
7377
7376
  }
7378
- function Zy(e) {
7377
+ function Fy(e) {
7379
7378
  let {
7380
7379
  elements: t,
7381
7380
  rect: n,
@@ -7402,10 +7401,10 @@ function Zy(e) {
7402
7401
  y: n.y * l.y - c.scrollTop * l.y + d.y + g.y
7403
7402
  };
7404
7403
  }
7405
- function Uy(e) {
7404
+ function Zy(e) {
7406
7405
  return Array.from(e.getClientRects());
7407
7406
  }
7408
- function jy(e) {
7407
+ function Uy(e) {
7409
7408
  const t = Xe(e), n = Rr(e), r = e.ownerDocument.body, o = Se(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Se(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7410
7409
  let i = -n.scrollLeft + Or(e);
7411
7410
  const a = -n.scrollTop;
@@ -7417,7 +7416,7 @@ function jy(e) {
7417
7416
  };
7418
7417
  }
7419
7418
  const ya = 25;
7420
- function By(e, t) {
7419
+ function jy(e, t) {
7421
7420
  const n = Ce(e), r = Xe(e), o = n.visualViewport;
7422
7421
  let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
7423
7422
  if (o) {
@@ -7437,8 +7436,8 @@ function By(e, t) {
7437
7436
  y: c
7438
7437
  };
7439
7438
  }
7440
- const Vy = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7441
- function Hy(e, t) {
7439
+ const By = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7440
+ function Vy(e, t) {
7442
7441
  const n = Nt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ye(e) ? jt(e) : Ge(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, l = r * s.y;
7443
7442
  return {
7444
7443
  width: i,
@@ -7450,11 +7449,11 @@ function Hy(e, t) {
7450
7449
  function ba(e, t, n) {
7451
7450
  let r;
7452
7451
  if (t === "viewport")
7453
- r = By(e, n);
7452
+ r = jy(e, n);
7454
7453
  else if (t === "document")
7455
- r = jy(Xe(e));
7454
+ r = Uy(Xe(e));
7456
7455
  else if (ke(t))
7457
- r = Hy(t, n);
7456
+ r = Vy(t, n);
7458
7457
  else {
7459
7458
  const o = wc(e);
7460
7459
  r = {
@@ -7470,7 +7469,7 @@ function Ec(e, t) {
7470
7469
  const n = vt(e);
7471
7470
  return n === t || !ke(n) || Gt(n) ? !1 : De(n).position === "fixed" || Ec(n, t);
7472
7471
  }
7473
- function Wy(e, t) {
7472
+ function Hy(e, t) {
7474
7473
  const n = t.get(e);
7475
7474
  if (n)
7476
7475
  return n;
@@ -7479,18 +7478,18 @@ function Wy(e, t) {
7479
7478
  let i = s ? vt(e) : e;
7480
7479
  for (; ke(i) && !Gt(i); ) {
7481
7480
  const a = De(i), c = Jo(i);
7482
- !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Vy.has(o.position) || Tn(i) && !c && Ec(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = vt(i);
7481
+ !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && By.has(o.position) || Tn(i) && !c && Ec(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = vt(i);
7483
7482
  }
7484
7483
  return t.set(e, r), r;
7485
7484
  }
7486
- function Gy(e) {
7485
+ function Wy(e) {
7487
7486
  let {
7488
7487
  element: t,
7489
7488
  boundary: n,
7490
7489
  rootBoundary: r,
7491
7490
  strategy: o
7492
7491
  } = e;
7493
- const i = [...n === "clippingAncestors" ? Ar(t) ? [] : Wy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
7492
+ const i = [...n === "clippingAncestors" ? Ar(t) ? [] : Hy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
7494
7493
  const u = ba(t, d, o);
7495
7494
  return l.top = Se(u.top, l.top), l.right = gt(u.right, l.right), l.bottom = gt(u.bottom, l.bottom), l.left = Se(u.left, l.left), l;
7496
7495
  }, ba(t, a, o));
@@ -7501,7 +7500,7 @@ function Gy(e) {
7501
7500
  y: c.top
7502
7501
  };
7503
7502
  }
7504
- function Yy(e) {
7503
+ function Gy(e) {
7505
7504
  const {
7506
7505
  width: t,
7507
7506
  height: n
@@ -7511,7 +7510,7 @@ function Yy(e) {
7511
7510
  height: n
7512
7511
  };
7513
7512
  }
7514
- function Jy(e, t, n) {
7513
+ function Yy(e, t, n) {
7515
7514
  const r = Ye(t), o = Xe(t), s = n === "fixed", i = Nt(e, !0, s, t);
7516
7515
  let a = {
7517
7516
  scrollLeft: 0,
@@ -7560,14 +7559,14 @@ function Sc(e, t) {
7560
7559
  return n;
7561
7560
  }
7562
7561
  let r = wa(e, t);
7563
- for (; r && Ny(r) && eo(r); )
7562
+ for (; r && Oy(r) && eo(r); )
7564
7563
  r = wa(r, t);
7565
- return r && Gt(r) && eo(r) && !Jo(r) ? n : r || $y(e) || n;
7564
+ return r && Gt(r) && eo(r) && !Jo(r) ? n : r || Dy(e) || n;
7566
7565
  }
7567
- const Ky = async function(e) {
7566
+ const Jy = async function(e) {
7568
7567
  const t = this.getOffsetParent || Sc, n = this.getDimensions, r = await n(e.floating);
7569
7568
  return {
7570
- reference: Jy(e.reference, await t(e.floating), e.strategy),
7569
+ reference: Yy(e.reference, await t(e.floating), e.strategy),
7571
7570
  floating: {
7572
7571
  x: 0,
7573
7572
  y: 0,
@@ -7576,25 +7575,25 @@ const Ky = async function(e) {
7576
7575
  }
7577
7576
  };
7578
7577
  };
7579
- function Xy(e) {
7578
+ function Ky(e) {
7580
7579
  return De(e).direction === "rtl";
7581
7580
  }
7582
- const qy = {
7583
- convertOffsetParentRelativeRectToViewportRelativeRect: Zy,
7581
+ const Xy = {
7582
+ convertOffsetParentRelativeRectToViewportRelativeRect: Fy,
7584
7583
  getDocumentElement: Xe,
7585
- getClippingRect: Gy,
7584
+ getClippingRect: Wy,
7586
7585
  getOffsetParent: Sc,
7587
- getElementRects: Ky,
7588
- getClientRects: Uy,
7589
- getDimensions: Yy,
7586
+ getElementRects: Jy,
7587
+ getClientRects: Zy,
7588
+ getDimensions: Gy,
7590
7589
  getScale: jt,
7591
7590
  isElement: ke,
7592
- isRTL: Xy
7591
+ isRTL: Ky
7593
7592
  };
7594
7593
  function Cc(e, t) {
7595
7594
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7596
7595
  }
7597
- function Qy(e, t) {
7596
+ function qy(e, t) {
7598
7597
  let n = null, r;
7599
7598
  const o = Xe(e);
7600
7599
  function s() {
@@ -7640,7 +7639,7 @@ function Qy(e, t) {
7640
7639
  }
7641
7640
  return i(!0), s;
7642
7641
  }
7643
- function eb(e, t, n, r) {
7642
+ function Qy(e, t, n, r) {
7644
7643
  r === void 0 && (r = {});
7645
7644
  const {
7646
7645
  ancestorScroll: o = !0,
@@ -7654,7 +7653,7 @@ function eb(e, t, n, r) {
7654
7653
  passive: !0
7655
7654
  }), s && b.addEventListener("resize", n);
7656
7655
  });
7657
- const u = l && a ? Qy(l, n) : null;
7656
+ const u = l && a ? qy(l, n) : null;
7658
7657
  let g = -1, m = null;
7659
7658
  i && (m = new ResizeObserver((b) => {
7660
7659
  let [_] = b;
@@ -7676,15 +7675,15 @@ function eb(e, t, n, r) {
7676
7675
  }), u?.(), (b = m) == null || b.disconnect(), m = null, c && cancelAnimationFrame(p);
7677
7676
  };
7678
7677
  }
7679
- const xc = xy, Ic = Iy, Tc = Ey, tb = Ay, nb = Sy, Ro = _y, rb = Ty, Ac = (e, t, n) => {
7678
+ const xc = Cy, Ic = xy, Tc = _y, eb = Ty, tb = Ey, Ro = wy, nb = Iy, Ac = (e, t, n) => {
7680
7679
  const r = /* @__PURE__ */ new Map(), o = {
7681
- platform: qy,
7680
+ platform: Xy,
7682
7681
  ...n
7683
7682
  }, s = {
7684
7683
  ...o.platform,
7685
7684
  _c: r
7686
7685
  };
7687
- return wy(e, t, {
7686
+ return by(e, t, {
7688
7687
  ...o,
7689
7688
  platform: s
7690
7689
  });
@@ -7693,7 +7692,7 @@ const _a = [
7693
7692
  "mousedown",
7694
7693
  "touchstart"
7695
7694
  ];
7696
- function ob(e, t, n) {
7695
+ function rb(e, t, n) {
7697
7696
  const r = J(null);
7698
7697
  return Z(() => {
7699
7698
  const o = (s) => {
@@ -7712,7 +7711,7 @@ function ob(e, t, n) {
7712
7711
  t
7713
7712
  ]), r;
7714
7713
  }
7715
- function sb(e, t) {
7714
+ function ob(e, t) {
7716
7715
  const [n, r] = B(!1), o = J(null), s = J(null), i = Y(() => {
7717
7716
  r((c) => (!c && (!o.current || o.current === -1) && (o.current = window.setInterval(s.current, t)), !0));
7718
7717
  }, [
@@ -7731,22 +7730,22 @@ function sb(e, t) {
7731
7730
  active: n
7732
7731
  };
7733
7732
  }
7734
- const ab = "av-tooltip", ib = "av-tooltip-arrow", Un = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, cb = () => U("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Ea = ({ mode: e }) => U({
7733
+ const sb = "av-tooltip", ab = "av-tooltip-arrow", Un = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ib = () => U("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Ea = ({ mode: e }) => U({
7735
7734
  "bg-surface-darker": e === "dark" || e === "system",
7736
7735
  "bg-surface-light": e === "light" || e === "alt-system",
7737
7736
  "dark:bg-surface-light": e === "system",
7738
7737
  "dark:bg-surface-darker": e === "alt-system"
7739
- }), lb = ({ mode: e }) => U({
7738
+ }), cb = ({ mode: e }) => U({
7740
7739
  "text-copy-light": e === "dark" || e === "system",
7741
7740
  "text-copy-dark": e === "light" || e === "alt-system",
7742
7741
  "dark:text-copy-dark": e === "system",
7743
7742
  "dark:text-copy-light": e === "alt-system"
7744
- }), ub = () => U("absolute", "size-2", "transform rotate-45"), db = ({ mode: e, className: t, tooltipClassName: n, arrowClassName: r }) => {
7745
- const o = U("relative inline-block", t), s = U(ab, cb(), Ea({
7743
+ }), lb = () => U("absolute", "size-2", "transform rotate-45"), ub = ({ mode: e, className: t, tooltipClassName: n, arrowClassName: r }) => {
7744
+ const o = U("relative inline-block", t), s = U(sb, ib(), Ea({
7746
7745
  mode: e
7747
- }), lb({
7746
+ }), cb({
7748
7747
  mode: e
7749
- }), n), i = U(ib, ub(), Ea({
7748
+ }), n), i = U(ab, lb(), Ea({
7750
7749
  mode: e
7751
7750
  }), r);
7752
7751
  return {
@@ -7754,19 +7753,19 @@ const ab = "av-tooltip", ib = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
7754
7753
  arrow: i,
7755
7754
  wrapper: o
7756
7755
  };
7757
- }, fb = ({ animationDuration: e = 300 }) => ({
7756
+ }, db = ({ animationDuration: e = 300 }) => ({
7758
7757
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
7759
- }), pb = 5e3, mb = ({ trigger: e, label: t, placement: n = "top", mode: r = "system", animationDuration: o = 300, delay: s = 0, className: i, tooltipClassName: a, arrowClassName: c }) => {
7760
- const l = ob(() => {
7758
+ }), fb = 5e3, pb = ({ trigger: e, label: t, placement: n = "top", mode: r = "system", animationDuration: o = 300, delay: s = 0, className: i, tooltipClassName: a, arrowClassName: c }) => {
7759
+ const l = rb(() => {
7761
7760
  v.stop(), y(!1);
7762
- }), d = J(null), u = J(null), g = J(null), [m, p] = B(!1), [f, y] = B(!1), [b, _] = B(!1), v = sb(() => {
7761
+ }), d = J(null), u = J(null), g = J(null), [m, p] = B(!1), [f, y] = B(!1), [b, _] = B(!1), v = ob(() => {
7763
7762
  y(!1);
7764
- }, pb), E = db({
7763
+ }, fb), E = ub({
7765
7764
  mode: r,
7766
7765
  className: i,
7767
7766
  tooltipClassName: a,
7768
7767
  arrowClassName: c
7769
- }), S = fb({
7768
+ }), S = db({
7770
7769
  animationDuration: o
7771
7770
  }), I = Y(async () => {
7772
7771
  if (l.current && d.current && u.current) {
@@ -7856,7 +7855,7 @@ const ab = "av-tooltip", ib = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
7856
7855
  trigger: e,
7857
7856
  className: t,
7858
7857
  ...n
7859
- }) => Ae(() => We(), []) ? /* @__PURE__ */ h("div", { className: t, children: e }) : /* @__PURE__ */ h(mb, { delay: 500, className: t, trigger: e, ...n }), hb = ({
7858
+ }) => Ae(() => We(), []) ? /* @__PURE__ */ h("div", { className: t, children: e }) : /* @__PURE__ */ h(pb, { delay: 500, className: t, trigger: e, ...n }), mb = ({
7860
7859
  className: e,
7861
7860
  onClick: t
7862
7861
  }) => {
@@ -7898,7 +7897,7 @@ function Rc(e, t) {
7898
7897
  };
7899
7898
  }, [e, t]);
7900
7899
  }
7901
- const gb = ({
7900
+ const hb = ({
7902
7901
  className: e
7903
7902
  }) => {
7904
7903
  const { getAccessToken: t, user: n } = $e(), {
@@ -8012,8 +8011,8 @@ const gb = ({
8012
8011
  const { check: t } = Do();
8013
8012
  return t(e);
8014
8013
  };
8015
- const vb = "av-messagebox", yb = "av-panel", Qe = "messagebox", Oc = /* @__PURE__ */ ti(null);
8016
- function bb({ initialOpen: e = !1, open: t, onOpenChange: n, initialFocus: r } = {}) {
8014
+ const gb = "av-messagebox", vb = "av-panel", Qe = "messagebox", Oc = /* @__PURE__ */ ti(null);
8015
+ function yb({ initialOpen: e = !1, open: t, onOpenChange: n, initialFocus: r } = {}) {
8017
8016
  const [o, s] = B(e), [i, a] = B(), [c, l] = B(), d = t ?? o, u = n ?? s, g = zd(), m = Fd({
8018
8017
  nodeId: g,
8019
8018
  open: d,
@@ -8060,13 +8059,13 @@ const Nr = () => {
8060
8059
  return e;
8061
8060
  };
8062
8061
  function Sa({ children: e, ...t }) {
8063
- const n = bb(t);
8062
+ const n = yb(t);
8064
8063
  return /* @__PURE__ */ h(Oc.Provider, {
8065
8064
  value: n,
8066
8065
  children: e
8067
8066
  });
8068
8067
  }
8069
- function wb(e) {
8068
+ function bb(e) {
8070
8069
  return Nd() === null ? /* @__PURE__ */ h(Md, {
8071
8070
  children: /* @__PURE__ */ h(Sa, {
8072
8071
  ...e
@@ -8075,7 +8074,7 @@ function wb(e) {
8075
8074
  ...e
8076
8075
  });
8077
8076
  }
8078
- const _b = /* @__PURE__ */ Er(function(t, n) {
8077
+ const wb = /* @__PURE__ */ Er(function(t, n) {
8079
8078
  const { context: r, nodeId: o, ...s } = Nr(), i = Pd([
8080
8079
  s.refs.setFloating,
8081
8080
  n
@@ -8105,7 +8104,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8105
8104
  })
8106
8105
  })
8107
8106
  });
8108
- }), Eb = /* @__PURE__ */ Er(function({ children: t, ...n }, r) {
8107
+ }), _b = /* @__PURE__ */ Er(function({ children: t, ...n }, r) {
8109
8108
  const { setLabelId: o } = Nr(), s = ni();
8110
8109
  return _n(() => (o(s), () => o(void 0)), [
8111
8110
  s,
@@ -8116,7 +8115,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8116
8115
  id: s,
8117
8116
  children: t
8118
8117
  });
8119
- }), Sb = /* @__PURE__ */ Er(function({ children: t, ...n }, r) {
8118
+ }), Eb = /* @__PURE__ */ Er(function({ children: t, ...n }, r) {
8120
8119
  const { setDescriptionId: o } = Nr(), s = ni();
8121
8120
  return _n(() => (o(s), () => o(void 0)), [
8122
8121
  s,
@@ -8127,7 +8126,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8127
8126
  id: s,
8128
8127
  children: t
8129
8128
  });
8130
- }), Cb = /* @__PURE__ */ Er(function(t, n) {
8129
+ }), Sb = /* @__PURE__ */ Er(function(t, n) {
8131
8130
  const { setOpen: r } = Nr(), { trigger: o, className: s, ...i } = t, a = Y(() => r(!1), [
8132
8131
  r
8133
8132
  ]);
@@ -8148,7 +8147,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8148
8147
  "large",
8149
8148
  "bg-surface-darker": e === /* inlined export .NONE */
8150
8149
  "none"
8151
- }), xb = ({ className: e, kind: t, borderMode: n, animation: r, maxWidth: o = (
8150
+ }), Cb = ({ className: e, kind: t, borderMode: n, animation: r, maxWidth: o = (
8152
8151
  /* inlined export .MEDIUM */
8153
8152
  "medium"
8154
8153
  ), maxHeight: s, blurEffect: i = (
@@ -8169,7 +8168,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8169
8168
  /**
8170
8169
  * Panel styles
8171
8170
  */
8172
- [`${yb} sm:rounded-3xl sm:border`]: t === /* inlined export .TYPE_PANEL */
8171
+ [`${vb} sm:rounded-3xl sm:border`]: t === /* inlined export .TYPE_PANEL */
8173
8172
  "panel",
8174
8173
  /**
8175
8174
  * Widths and max widths for Panel when no className is provided
@@ -8206,7 +8205,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8206
8205
  /**
8207
8206
  * Messagebox styles
8208
8207
  */
8209
- [`${vb} rounded-3xl border`]: t === Qe,
8208
+ [`${gb} rounded-3xl border`]: t === Qe,
8210
8209
  /**
8211
8210
  * Widths and max widths for Messagebox when no className is provided
8212
8211
  */
@@ -8277,7 +8276,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8277
8276
  ),
8278
8277
  content: "p-4 rounded-3xl"
8279
8278
  };
8280
- }, Ib = ({ open: e, onOpenChange: t, title: n, children: r, footer: o, borderMode: s = "light", kind: i = (
8279
+ }, xb = ({ open: e, onOpenChange: t, title: n, children: r, footer: o, borderMode: s = "light", kind: i = (
8281
8280
  /* inlined export .TYPE_PANEL */
8282
8281
  "panel"
8283
8282
  ), className: a, animation: c = !1, animationType: l = (
@@ -8295,7 +8294,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8295
8294
  opacity: 0
8296
8295
  } : {
8297
8296
  transform: "translateY(-100vh)"
8298
- } : {}), b = xb({
8297
+ } : {}), b = Cb({
8299
8298
  className: a,
8300
8299
  kind: i,
8301
8300
  borderMode: s,
@@ -8333,22 +8332,22 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8333
8332
  c,
8334
8333
  l
8335
8334
  ]), /* @__PURE__ */ h(ut, {
8336
- children: e && /* @__PURE__ */ h(wb, {
8335
+ children: e && /* @__PURE__ */ h(bb, {
8337
8336
  open: e,
8338
8337
  onOpenChange: t,
8339
8338
  initialFocus: m,
8340
- children: /* @__PURE__ */ h(_b, {
8339
+ children: /* @__PURE__ */ h(wb, {
8341
8340
  className: b.outerWrapper,
8342
8341
  style: {
8343
8342
  ...f
8344
8343
  },
8345
- children: /* @__PURE__ */ z(Sb, {
8344
+ children: /* @__PURE__ */ z(Eb, {
8346
8345
  className: b.innerWrapper,
8347
8346
  children: [
8348
8347
  /* @__PURE__ */ z("div", {
8349
8348
  className: b.header,
8350
8349
  children: [
8351
- /* @__PURE__ */ h(Cb, {
8350
+ /* @__PURE__ */ h(Sb, {
8352
8351
  className: b.closeWrapper,
8353
8352
  trigger: /* @__PURE__ */ h("button", {
8354
8353
  className: b.closeButton,
@@ -8371,7 +8370,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8371
8370
  })
8372
8371
  })
8373
8372
  }),
8374
- /* @__PURE__ */ h(Eb, {
8373
+ /* @__PURE__ */ h(_b, {
8375
8374
  className: b.title,
8376
8375
  children: n
8377
8376
  })
@@ -8396,7 +8395,7 @@ const _b = /* @__PURE__ */ Er(function(t, n) {
8396
8395
  };
8397
8396
  const to = 50, xa = 120;
8398
8397
  let je = null, jn = 0;
8399
- const Tb = () => {
8398
+ const Ib = () => {
8400
8399
  if (typeof window > "u" || je && document.body.contains(je))
8401
8400
  return;
8402
8401
  const e = document.querySelector('label[data-haptic-singleton="true"]');
@@ -8409,21 +8408,21 @@ const Tb = () => {
8409
8408
  t.type = "checkbox", t.setAttribute("switch", ""), t.style.display = "none", t.setAttribute("aria-hidden", "true"), t.dataset.hapticSingleton = "true";
8410
8409
  const n = document.createElement("label");
8411
8410
  n.style.display = "none", n.setAttribute("aria-hidden", "true"), n.dataset.hapticSingleton = "true", n.appendChild(t), document.body.appendChild(n), je = n;
8412
- }, Ab = () => {
8411
+ }, Tb = () => {
8413
8412
  je && document.body && document.body.contains(je) && document.body.removeChild(je), je = null;
8414
- }, Rb = () => {
8413
+ }, Ab = () => {
8415
8414
  const e = J(/* @__PURE__ */ new Set());
8416
8415
  Z(() => {
8417
8416
  jn++;
8418
8417
  try {
8419
- Tb();
8418
+ Ib();
8420
8419
  } catch (r) {
8421
8420
  throw jn--, r;
8422
8421
  }
8423
8422
  return () => {
8424
8423
  for (const r of e.current)
8425
8424
  clearTimeout(r);
8426
- e.current.clear(), jn--, jn === 0 && Ab();
8425
+ e.current.clear(), jn--, jn === 0 && Tb();
8427
8426
  };
8428
8427
  }, []);
8429
8428
  const t = Y(() => {
@@ -8458,7 +8457,7 @@ const Tb = () => {
8458
8457
  ])
8459
8458
  };
8460
8459
  };
8461
- const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8460
+ const Rb = "av-toggle", Ob = ({ narrow: e }) => U(
8462
8461
  "peer",
8463
8462
  "rounded-full",
8464
8463
  {
@@ -8467,12 +8466,12 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8467
8466
  },
8468
8467
  // Smooth background/border transition when toggling
8469
8468
  "transition-colors duration-300 ease-in-out motion-reduce:transition-none"
8470
- ), Mb = ({ focusMode: e }) => U("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
8469
+ ), Nb = ({ focusMode: e }) => U("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
8471
8470
  "peer-focus:outline-focus-dark": e === "dark",
8472
8471
  "peer-focus:outline-focus-light": e === "light",
8473
8472
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
8474
8473
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
8475
- }), Pb = ({ narrow: e }) => U(
8474
+ }), Mb = ({ narrow: e }) => U(
8476
8475
  {
8477
8476
  "peer-checked:after:translate-x-full": !e,
8478
8477
  "peer-checked:after:translate-x-4": e
@@ -8482,12 +8481,12 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8482
8481
  // knob circle and border color when checked
8483
8482
  "peer-checked:after:bg-white",
8484
8483
  "peer-checked:after:border-white"
8485
- ), kb = ({ narrow: e }) => U("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
8484
+ ), Pb = ({ narrow: e }) => U("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
8486
8485
  // Normal toggle knob (circle)
8487
8486
  "after:h-5 after:w-5": !e,
8488
8487
  // Narrow toggle knob (oval)
8489
8488
  " after:h-4 after:w-7": e
8490
- }), Db = ({ mode: e, noBorder: t }) => U({
8489
+ }), kb = ({ mode: e, noBorder: t }) => U({
8491
8490
  border: !t,
8492
8491
  "border-border-medium bg-surface-medium": e === "light",
8493
8492
  "border-border-light bg-surface-darker": e === "dark",
@@ -8506,18 +8505,18 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8506
8505
  "text-copy-lighter/60 dark:text-copy-dark/60": t === "alt-system" && o,
8507
8506
  "text-copy-dark/60 dark:text-copy-lighter/60": t === "system" && o,
8508
8507
  "text-xs": o
8509
- })), $b = ({ className: e }) => U(Ob, "relative flex cursor-pointer items-center", e), Lb = () => "relative inline-block", zb = ({ mode: e, focusMode: t, labelHidden: n, className: r, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: c }) => ({
8510
- toggle: U(Nb({
8508
+ })), Db = ({ className: e }) => U(Rb, "relative flex cursor-pointer items-center", e), $b = () => "relative inline-block", Lb = ({ mode: e, focusMode: t, labelHidden: n, className: r, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: c }) => ({
8509
+ toggle: U(Ob({
8511
8510
  narrow: s
8512
- }), Db({
8511
+ }), kb({
8513
8512
  mode: e,
8514
8513
  noBorder: o
8515
- }), Mb({
8514
+ }), Nb({
8516
8515
  focusMode: t
8517
- }), kb({
8518
- narrow: s
8519
8516
  }), Pb({
8520
8517
  narrow: s
8518
+ }), Mb({
8519
+ narrow: s
8521
8520
  })),
8522
8521
  label: Ia({
8523
8522
  labelHidden: n,
@@ -8533,12 +8532,12 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8533
8532
  subLabel: c
8534
8533
  }),
8535
8534
  input: "peer sr-only",
8536
- wrapper: $b({
8535
+ wrapper: Db({
8537
8536
  className: r
8538
8537
  }),
8539
- toggleWrapper: Lb()
8540
- }), Fb = ({ checked: e = !1, onChange: t, label: n, labelHidden: r = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: g = "right", subLabel: m }) => {
8541
- const { haptic: p } = Rb(), f = zb({
8538
+ toggleWrapper: $b()
8539
+ }), zb = ({ checked: e = !1, onChange: t, label: n, labelHidden: r = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: g = "right", subLabel: m }) => {
8540
+ const { haptic: p } = Ab(), f = Lb({
8542
8541
  mode: s,
8543
8542
  focusMode: i,
8544
8543
  labelHidden: r,
@@ -8588,7 +8587,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8588
8587
  g === "right" && b
8589
8588
  ]
8590
8589
  });
8591
- }, Zb = ({
8590
+ }, Fb = ({
8592
8591
  onOpenChange: e,
8593
8592
  label: t = "Dismiss",
8594
8593
  ref: n
@@ -8623,7 +8622,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8623
8622
  }) => {
8624
8623
  const g = J(null), m = /* @__PURE__ */ z("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
8625
8624
  /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: !s && /* @__PURE__ */ h(
8626
- Zb,
8625
+ Fb,
8627
8626
  {
8628
8627
  onOpenChange: t,
8629
8628
  label: o.cancelAction,
@@ -8645,7 +8644,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8645
8644
  ) })
8646
8645
  ] }), p = c ? /* @__PURE__ */ z("div", { className: "flex flex-wrap justify-between items-center gap-x-2", children: [
8647
8646
  /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto grow", children: /* @__PURE__ */ h(
8648
- Fb,
8647
+ zb,
8649
8648
  {
8650
8649
  narrow: !0,
8651
8650
  mode: "dark",
@@ -8662,7 +8661,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8662
8661
  /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto grow", children: m })
8663
8662
  ] }) : m;
8664
8663
  return /* @__PURE__ */ h(
8665
- Ib,
8664
+ xb,
8666
8665
  {
8667
8666
  kind: "messagebox",
8668
8667
  open: e,
@@ -8675,7 +8674,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8675
8674
  children: r
8676
8675
  }
8677
8676
  );
8678
- }, Ub = ({
8677
+ }, Zb = ({
8679
8678
  className: e
8680
8679
  }) => {
8681
8680
  const { getAccessToken: t, user: n } = $e(), {
@@ -8723,7 +8722,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => U(
8723
8722
  }
8724
8723
  });
8725
8724
  } catch {
8726
- await Uv("Failed to toggle privacy. Please try again.", {
8725
+ await Zv("Failed to toggle privacy. Please try again.", {
8727
8726
  containerId: "toggle-privacy"
8728
8727
  });
8729
8728
  }
@@ -8852,9 +8851,9 @@ function An(e, t = []) {
8852
8851
  );
8853
8852
  };
8854
8853
  };
8855
- return o.scopeName = e, [r, jb(o, ...t)];
8854
+ return o.scopeName = e, [r, Ub(o, ...t)];
8856
8855
  }
8857
- function jb(...e) {
8856
+ function Ub(...e) {
8858
8857
  const t = e[0];
8859
8858
  if (e.length === 1) return t;
8860
8859
  const n = () => {
@@ -8873,7 +8872,7 @@ function jb(...e) {
8873
8872
  return n.scopeName = t.scopeName, n;
8874
8873
  }
8875
8874
  var yt = globalThis?.document ? w.useLayoutEffect : () => {
8876
- }, Bb = w[" useInsertionEffect ".trim().toString()] || yt;
8875
+ }, jb = w[" useInsertionEffect ".trim().toString()] || yt;
8877
8876
  function qo({
8878
8877
  prop: e,
8879
8878
  defaultProp: t,
@@ -8881,7 +8880,7 @@ function qo({
8881
8880
  },
8882
8881
  caller: r
8883
8882
  }) {
8884
- const [o, s, i] = Vb({
8883
+ const [o, s, i] = Bb({
8885
8884
  defaultProp: t,
8886
8885
  onChange: n
8887
8886
  }), a = e !== void 0, c = a ? e : o;
@@ -8897,7 +8896,7 @@ function qo({
8897
8896
  const l = w.useCallback(
8898
8897
  (d) => {
8899
8898
  if (a) {
8900
- const u = Hb(d) ? d(e) : d;
8899
+ const u = Vb(d) ? d(e) : d;
8901
8900
  u !== e && i.current?.(u);
8902
8901
  } else
8903
8902
  s(d);
@@ -8906,24 +8905,24 @@ function qo({
8906
8905
  );
8907
8906
  return [c, l];
8908
8907
  }
8909
- function Vb({
8908
+ function Bb({
8910
8909
  defaultProp: e,
8911
8910
  onChange: t
8912
8911
  }) {
8913
8912
  const [n, r] = w.useState(e), o = w.useRef(n), s = w.useRef(t);
8914
- return Bb(() => {
8913
+ return jb(() => {
8915
8914
  s.current = t;
8916
8915
  }, [t]), w.useEffect(() => {
8917
8916
  o.current !== n && (s.current?.(n), o.current = n);
8918
8917
  }, [n, o]), [n, r, s];
8919
8918
  }
8920
- function Hb(e) {
8919
+ function Vb(e) {
8921
8920
  return typeof e == "function";
8922
8921
  }
8923
8922
  // @__NO_SIDE_EFFECTS__
8924
8923
  function vr(e) {
8925
- const t = /* @__PURE__ */ Wb(e), n = w.forwardRef((r, o) => {
8926
- const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Yb);
8924
+ const t = /* @__PURE__ */ Hb(e), n = w.forwardRef((r, o) => {
8925
+ const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Gb);
8927
8926
  if (c) {
8928
8927
  const l = c.props.children, d = a.map((u) => u === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : u);
8929
8928
  return /* @__PURE__ */ h(t, { ...i, ref: o, children: w.isValidElement(l) ? w.cloneElement(l, void 0, d) : null });
@@ -8933,22 +8932,22 @@ function vr(e) {
8933
8932
  return n.displayName = `${e}.Slot`, n;
8934
8933
  }
8935
8934
  // @__NO_SIDE_EFFECTS__
8936
- function Wb(e) {
8935
+ function Hb(e) {
8937
8936
  const t = w.forwardRef((n, r) => {
8938
8937
  const { children: o, ...s } = n;
8939
8938
  if (w.isValidElement(o)) {
8940
- const i = Kb(o), a = Jb(s, o.props);
8939
+ const i = Jb(o), a = Yb(s, o.props);
8941
8940
  return o.type !== w.Fragment && (a.ref = r ? Mr(r, i) : i), w.cloneElement(o, a);
8942
8941
  }
8943
8942
  return w.Children.count(o) > 1 ? w.Children.only(null) : null;
8944
8943
  });
8945
8944
  return t.displayName = `${e}.SlotClone`, t;
8946
8945
  }
8947
- var Gb = /* @__PURE__ */ Symbol("radix.slottable");
8948
- function Yb(e) {
8949
- return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gb;
8946
+ var Wb = /* @__PURE__ */ Symbol("radix.slottable");
8947
+ function Gb(e) {
8948
+ return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Wb;
8950
8949
  }
8951
- function Jb(e, t) {
8950
+ function Yb(e, t) {
8952
8951
  const n = { ...t };
8953
8952
  for (const r in t) {
8954
8953
  const o = e[r], s = t[r];
@@ -8959,11 +8958,11 @@ function Jb(e, t) {
8959
8958
  }
8960
8959
  return { ...e, ...n };
8961
8960
  }
8962
- function Kb(e) {
8961
+ function Jb(e) {
8963
8962
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
8964
8963
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
8965
8964
  }
8966
- var Xb = [
8965
+ var Kb = [
8967
8966
  "a",
8968
8967
  "button",
8969
8968
  "div",
@@ -8981,7 +8980,7 @@ var Xb = [
8981
8980
  "span",
8982
8981
  "svg",
8983
8982
  "ul"
8984
- ], be = Xb.reduce((e, t) => {
8983
+ ], be = Kb.reduce((e, t) => {
8985
8984
  const n = /* @__PURE__ */ vr(`Primitive.${t}`), r = w.forwardRef((o, s) => {
8986
8985
  const { asChild: i, ...a } = o, c = i ? n : t;
8987
8986
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...a, ref: s });
@@ -9033,9 +9032,9 @@ function Mc(e) {
9033
9032
  r
9034
9033
  ];
9035
9034
  }
9036
- var qb = w.createContext(void 0);
9035
+ var Xb = w.createContext(void 0);
9037
9036
  function Pc(e) {
9038
- const t = w.useContext(qb);
9037
+ const t = w.useContext(Xb);
9039
9038
  return e || t || "ltr";
9040
9039
  }
9041
9040
  function Je(e) {
@@ -9044,7 +9043,7 @@ function Je(e) {
9044
9043
  t.current = e;
9045
9044
  }), w.useMemo(() => (...n) => t.current?.(...n), []);
9046
9045
  }
9047
- function Qb(e, t = globalThis?.document) {
9046
+ function qb(e, t = globalThis?.document) {
9048
9047
  const n = Je(e);
9049
9048
  w.useEffect(() => {
9050
9049
  const r = (o) => {
@@ -9053,7 +9052,7 @@ function Qb(e, t = globalThis?.document) {
9053
9052
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
9054
9053
  }, [n, t]);
9055
9054
  }
9056
- var ew = "DismissableLayer", Oo = "dismissableLayer.update", tw = "dismissableLayer.pointerDownOutside", nw = "dismissableLayer.focusOutside", Aa, kc = w.createContext({
9055
+ var Qb = "DismissableLayer", Oo = "dismissableLayer.update", ew = "dismissableLayer.pointerDownOutside", tw = "dismissableLayer.focusOutside", Aa, kc = w.createContext({
9057
9056
  layers: /* @__PURE__ */ new Set(),
9058
9057
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
9059
9058
  branches: /* @__PURE__ */ new Set()
@@ -9067,14 +9066,14 @@ var ew = "DismissableLayer", Oo = "dismissableLayer.update", tw = "dismissableLa
9067
9066
  onInteractOutside: i,
9068
9067
  onDismiss: a,
9069
9068
  ...c
9070
- } = e, l = w.useContext(kc), [d, u] = w.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (x) => u(x)), f = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(y), _ = d ? f.indexOf(d) : -1, v = l.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S = sw((x) => {
9069
+ } = e, l = w.useContext(kc), [d, u] = w.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (x) => u(x)), f = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(y), _ = d ? f.indexOf(d) : -1, v = l.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S = ow((x) => {
9071
9070
  const T = x.target, P = [...l.branches].some(($) => $.contains(T));
9072
9071
  !E || P || (o?.(x), i?.(x), x.defaultPrevented || a?.());
9073
- }, g), I = aw((x) => {
9072
+ }, g), I = sw((x) => {
9074
9073
  const T = x.target;
9075
9074
  [...l.branches].some(($) => $.contains(T)) || (s?.(x), i?.(x), x.defaultPrevented || a?.());
9076
9075
  }, g);
9077
- return Qb((x) => {
9076
+ return qb((x) => {
9078
9077
  _ === l.layers.size - 1 && (r?.(x), !x.defaultPrevented && a && (x.preventDefault(), a()));
9079
9078
  }, g), w.useEffect(() => {
9080
9079
  if (d)
@@ -9105,8 +9104,8 @@ var ew = "DismissableLayer", Oo = "dismissableLayer.update", tw = "dismissableLa
9105
9104
  );
9106
9105
  }
9107
9106
  );
9108
- Dc.displayName = ew;
9109
- var rw = "DismissableLayerBranch", ow = w.forwardRef((e, t) => {
9107
+ Dc.displayName = Qb;
9108
+ var nw = "DismissableLayerBranch", rw = w.forwardRef((e, t) => {
9110
9109
  const n = w.useContext(kc), r = w.useRef(null), o = we(t, r);
9111
9110
  return w.useEffect(() => {
9112
9111
  const s = r.current;
@@ -9116,8 +9115,8 @@ var rw = "DismissableLayerBranch", ow = w.forwardRef((e, t) => {
9116
9115
  };
9117
9116
  }, [n.branches]), /* @__PURE__ */ h(be.div, { ...e, ref: o });
9118
9117
  });
9119
- ow.displayName = rw;
9120
- function sw(e, t = globalThis?.document) {
9118
+ rw.displayName = nw;
9119
+ function ow(e, t = globalThis?.document) {
9121
9120
  const n = Je(e), r = w.useRef(!1), o = w.useRef(() => {
9122
9121
  });
9123
9122
  return w.useEffect(() => {
@@ -9125,7 +9124,7 @@ function sw(e, t = globalThis?.document) {
9125
9124
  if (a.target && !r.current) {
9126
9125
  let c = function() {
9127
9126
  $c(
9128
- tw,
9127
+ ew,
9129
9128
  n,
9130
9129
  l,
9131
9130
  { discrete: !0 }
@@ -9147,11 +9146,11 @@ function sw(e, t = globalThis?.document) {
9147
9146
  onPointerDownCapture: () => r.current = !0
9148
9147
  };
9149
9148
  }
9150
- function aw(e, t = globalThis?.document) {
9149
+ function sw(e, t = globalThis?.document) {
9151
9150
  const n = Je(e), r = w.useRef(!1);
9152
9151
  return w.useEffect(() => {
9153
9152
  const o = (s) => {
9154
- s.target && !r.current && $c(nw, n, { originalEvent: s }, {
9153
+ s.target && !r.current && $c(tw, n, { originalEvent: s }, {
9155
9154
  discrete: !1
9156
9155
  });
9157
9156
  };
@@ -9170,7 +9169,7 @@ function $c(e, t, n, { discrete: r }) {
9170
9169
  t && o.addEventListener(e, t, { once: !0 }), r ? Nc(o, s) : o.dispatchEvent(s);
9171
9170
  }
9172
9171
  var no = 0;
9173
- function iw() {
9172
+ function aw() {
9174
9173
  w.useEffect(() => {
9175
9174
  const e = document.querySelectorAll("[data-radix-focus-guard]");
9176
9175
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Oa()), document.body.insertAdjacentElement("beforeend", e[1] ?? Oa()), no++, () => {
@@ -9182,7 +9181,7 @@ function Oa() {
9182
9181
  const e = document.createElement("span");
9183
9182
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
9184
9183
  }
9185
- var ro = "focusScope.autoFocusOnMount", oo = "focusScope.autoFocusOnUnmount", Na = { bubbles: !1, cancelable: !0 }, cw = "FocusScope", Lc = w.forwardRef((e, t) => {
9184
+ var ro = "focusScope.autoFocusOnMount", oo = "focusScope.autoFocusOnUnmount", Na = { bubbles: !1, cancelable: !0 }, iw = "FocusScope", Lc = w.forwardRef((e, t) => {
9186
9185
  const {
9187
9186
  loop: n = !1,
9188
9187
  trapped: r = !1,
@@ -9225,7 +9224,7 @@ var ro = "focusScope.autoFocusOnMount", oo = "focusScope.autoFocusOnUnmount", Na
9225
9224
  const f = document.activeElement;
9226
9225
  if (!a.contains(f)) {
9227
9226
  const b = new CustomEvent(ro, Na);
9228
- a.addEventListener(ro, l), a.dispatchEvent(b), b.defaultPrevented || (lw(mw(zc(a)), { select: !0 }), document.activeElement === f && it(a));
9227
+ a.addEventListener(ro, l), a.dispatchEvent(b), b.defaultPrevented || (cw(pw(zc(a)), { select: !0 }), document.activeElement === f && it(a));
9229
9228
  }
9230
9229
  return () => {
9231
9230
  a.removeEventListener(ro, l), setTimeout(() => {
@@ -9240,7 +9239,7 @@ var ro = "focusScope.autoFocusOnMount", oo = "focusScope.autoFocusOnUnmount", Na
9240
9239
  if (!n && !r || m.paused) return;
9241
9240
  const y = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
9242
9241
  if (y && b) {
9243
- const _ = f.currentTarget, [v, E] = uw(_);
9242
+ const _ = f.currentTarget, [v, E] = lw(_);
9244
9243
  v && E ? !f.shiftKey && b === E ? (f.preventDefault(), n && it(v, { select: !0 })) : f.shiftKey && b === v && (f.preventDefault(), n && it(E, { select: !0 })) : b === _ && f.preventDefault();
9245
9244
  }
9246
9245
  },
@@ -9248,13 +9247,13 @@ var ro = "focusScope.autoFocusOnMount", oo = "focusScope.autoFocusOnUnmount", Na
9248
9247
  );
9249
9248
  return /* @__PURE__ */ h(be.div, { tabIndex: -1, ...i, ref: g, onKeyDown: p });
9250
9249
  });
9251
- Lc.displayName = cw;
9252
- function lw(e, { select: t = !1 } = {}) {
9250
+ Lc.displayName = iw;
9251
+ function cw(e, { select: t = !1 } = {}) {
9253
9252
  const n = document.activeElement;
9254
9253
  for (const r of e)
9255
9254
  if (it(r, { select: t }), document.activeElement !== n) return;
9256
9255
  }
9257
- function uw(e) {
9256
+ function lw(e) {
9258
9257
  const t = zc(e), n = Ma(t, e), r = Ma(t.reverse(), e);
9259
9258
  return [n, r];
9260
9259
  }
@@ -9270,9 +9269,9 @@ function zc(e) {
9270
9269
  }
9271
9270
  function Ma(e, t) {
9272
9271
  for (const n of e)
9273
- if (!dw(n, { upTo: t })) return n;
9272
+ if (!uw(n, { upTo: t })) return n;
9274
9273
  }
9275
- function dw(e, { upTo: t }) {
9274
+ function uw(e, { upTo: t }) {
9276
9275
  if (getComputedStyle(e).visibility === "hidden") return !0;
9277
9276
  for (; e; ) {
9278
9277
  if (t !== void 0 && e === t) return !1;
@@ -9281,17 +9280,17 @@ function dw(e, { upTo: t }) {
9281
9280
  }
9282
9281
  return !1;
9283
9282
  }
9284
- function fw(e) {
9283
+ function dw(e) {
9285
9284
  return e instanceof HTMLInputElement && "select" in e;
9286
9285
  }
9287
9286
  function it(e, { select: t = !1 } = {}) {
9288
9287
  if (e && e.focus) {
9289
9288
  const n = document.activeElement;
9290
- e.focus({ preventScroll: !0 }), e !== n && fw(e) && t && e.select();
9289
+ e.focus({ preventScroll: !0 }), e !== n && dw(e) && t && e.select();
9291
9290
  }
9292
9291
  }
9293
- var Pa = pw();
9294
- function pw() {
9292
+ var Pa = fw();
9293
+ function fw() {
9295
9294
  let e = [];
9296
9295
  return {
9297
9296
  add(t) {
@@ -9307,19 +9306,19 @@ function ka(e, t) {
9307
9306
  const n = [...e], r = n.indexOf(t);
9308
9307
  return r !== -1 && n.splice(r, 1), n;
9309
9308
  }
9310
- function mw(e) {
9309
+ function pw(e) {
9311
9310
  return e.filter((t) => t.tagName !== "A");
9312
9311
  }
9313
- var hw = w[" useId ".trim().toString()] || (() => {
9314
- }), gw = 0;
9312
+ var mw = w[" useId ".trim().toString()] || (() => {
9313
+ }), hw = 0;
9315
9314
  function yn(e) {
9316
- const [t, n] = w.useState(hw());
9315
+ const [t, n] = w.useState(mw());
9317
9316
  return yt(() => {
9318
- n((r) => r ?? String(gw++));
9317
+ n((r) => r ?? String(hw++));
9319
9318
  }, [e]), e || (t ? `radix-${t}` : "");
9320
9319
  }
9321
- var vw = typeof document < "u", yw = function() {
9322
- }, tr = vw ? _n : yw;
9320
+ var gw = typeof document < "u", vw = function() {
9321
+ }, tr = gw ? _n : vw;
9323
9322
  function yr(e, t) {
9324
9323
  if (e === t)
9325
9324
  return !0;
@@ -9363,7 +9362,7 @@ function so(e) {
9363
9362
  t.current = e;
9364
9363
  }), t;
9365
9364
  }
9366
- function bw(e) {
9365
+ function yw(e) {
9367
9366
  e === void 0 && (e = {});
9368
9367
  const {
9369
9368
  placement: t = "bottom",
@@ -9465,7 +9464,7 @@ function bw(e) {
9465
9464
  floatingStyles: q
9466
9465
  }), [d, R, Q, j, q]);
9467
9466
  }
9468
- const ww = (e) => {
9467
+ const bw = (e) => {
9469
9468
  function t(n) {
9470
9469
  return {}.hasOwnProperty.call(n, "current");
9471
9470
  }
@@ -9486,29 +9485,29 @@ const ww = (e) => {
9486
9485
  }).fn(n) : {};
9487
9486
  }
9488
9487
  };
9489
- }, _w = (e, t) => ({
9488
+ }, ww = (e, t) => ({
9490
9489
  ...xc(e),
9491
9490
  options: [e, t]
9492
- }), Ew = (e, t) => ({
9491
+ }), _w = (e, t) => ({
9493
9492
  ...Ic(e),
9494
9493
  options: [e, t]
9494
+ }), Ew = (e, t) => ({
9495
+ ...nb(e),
9496
+ options: [e, t]
9495
9497
  }), Sw = (e, t) => ({
9496
- ...rb(e),
9498
+ ...Tc(e),
9497
9499
  options: [e, t]
9498
9500
  }), Cw = (e, t) => ({
9499
- ...Tc(e),
9501
+ ...eb(e),
9500
9502
  options: [e, t]
9501
9503
  }), xw = (e, t) => ({
9502
9504
  ...tb(e),
9503
9505
  options: [e, t]
9504
9506
  }), Iw = (e, t) => ({
9505
- ...nb(e),
9506
- options: [e, t]
9507
- }), Tw = (e, t) => ({
9508
- ...ww(e),
9507
+ ...bw(e),
9509
9508
  options: [e, t]
9510
9509
  });
9511
- var Aw = "Arrow", Zc = w.forwardRef((e, t) => {
9510
+ var Tw = "Arrow", Zc = w.forwardRef((e, t) => {
9512
9511
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
9513
9512
  return /* @__PURE__ */ h(
9514
9513
  be.svg,
@@ -9523,9 +9522,9 @@ var Aw = "Arrow", Zc = w.forwardRef((e, t) => {
9523
9522
  }
9524
9523
  );
9525
9524
  });
9526
- Zc.displayName = Aw;
9527
- var Rw = Zc;
9528
- function Ow(e) {
9525
+ Zc.displayName = Tw;
9526
+ var Aw = Zc;
9527
+ function Rw(e) {
9529
9528
  const [t, n] = w.useState(void 0);
9530
9529
  return yt(() => {
9531
9530
  if (e) {
@@ -9547,9 +9546,9 @@ function Ow(e) {
9547
9546
  n(void 0);
9548
9547
  }, [e]), t;
9549
9548
  }
9550
- var Qo = "Popper", [Uc, jc] = An(Qo), [Nw, Bc] = Uc(Qo), Vc = (e) => {
9549
+ var Qo = "Popper", [Uc, jc] = An(Qo), [Ow, Bc] = Uc(Qo), Vc = (e) => {
9551
9550
  const { __scopePopper: t, children: n } = e, [r, o] = w.useState(null);
9552
- return /* @__PURE__ */ h(Nw, { scope: t, anchor: r, onAnchorChange: o, children: n });
9551
+ return /* @__PURE__ */ h(Ow, { scope: t, anchor: r, onAnchorChange: o, children: n });
9553
9552
  };
9554
9553
  Vc.displayName = Qo;
9555
9554
  var Hc = "PopperAnchor", Wc = w.forwardRef(
@@ -9562,7 +9561,7 @@ var Hc = "PopperAnchor", Wc = w.forwardRef(
9562
9561
  }
9563
9562
  );
9564
9563
  Wc.displayName = Hc;
9565
- var es = "PopperContent", [Mw, Pw] = Uc(es), Gc = w.forwardRef(
9564
+ var es = "PopperContent", [Nw, Mw] = Uc(es), Gc = w.forwardRef(
9566
9565
  (e, t) => {
9567
9566
  const {
9568
9567
  __scopePopper: n,
@@ -9579,40 +9578,40 @@ var es = "PopperContent", [Mw, Pw] = Uc(es), Gc = w.forwardRef(
9579
9578
  updatePositionStrategy: m = "optimized",
9580
9579
  onPlaced: p,
9581
9580
  ...f
9582
- } = e, y = Bc(es, n), [b, _] = w.useState(null), v = we(t, (ce) => _(ce)), [E, S] = w.useState(null), I = Ow(E), x = I?.width ?? 0, T = I?.height ?? 0, P = r + (s !== "center" ? "-" + s : ""), $ = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(l) ? l : [l], M = V.length > 0, R = {
9581
+ } = e, y = Bc(es, n), [b, _] = w.useState(null), v = we(t, (ce) => _(ce)), [E, S] = w.useState(null), I = Rw(E), x = I?.width ?? 0, T = I?.height ?? 0, P = r + (s !== "center" ? "-" + s : ""), $ = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(l) ? l : [l], M = V.length > 0, R = {
9583
9582
  padding: $,
9584
- boundary: V.filter(Dw),
9583
+ boundary: V.filter(kw),
9585
9584
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
9586
9585
  altBoundary: M
9587
- }, { refs: L, floatingStyles: Q, placement: j, isPositioned: q, middlewareData: k } = bw({
9586
+ }, { refs: L, floatingStyles: Q, placement: j, isPositioned: q, middlewareData: k } = yw({
9588
9587
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
9589
9588
  strategy: "fixed",
9590
9589
  placement: P,
9591
- whileElementsMounted: (...ce) => eb(...ce, {
9590
+ whileElementsMounted: (...ce) => Qy(...ce, {
9592
9591
  animationFrame: m === "always"
9593
9592
  }),
9594
9593
  elements: {
9595
9594
  reference: y.anchor
9596
9595
  },
9597
9596
  middleware: [
9598
- _w({ mainAxis: o + T, alignmentAxis: i }),
9599
- c && Ew({
9597
+ ww({ mainAxis: o + T, alignmentAxis: i }),
9598
+ c && _w({
9600
9599
  mainAxis: !0,
9601
9600
  crossAxis: !1,
9602
- limiter: u === "partial" ? Sw() : void 0,
9601
+ limiter: u === "partial" ? Ew() : void 0,
9603
9602
  ...R
9604
9603
  }),
9605
- c && Cw({ ...R }),
9606
- xw({
9604
+ c && Sw({ ...R }),
9605
+ Cw({
9607
9606
  ...R,
9608
9607
  apply: ({ elements: ce, rects: St, availableWidth: kn, availableHeight: Xt }) => {
9609
9608
  const { width: Lr, height: zr } = St.reference, Dt = ce.floating.style;
9610
9609
  Dt.setProperty("--radix-popper-available-width", `${kn}px`), Dt.setProperty("--radix-popper-available-height", `${Xt}px`), Dt.setProperty("--radix-popper-anchor-width", `${Lr}px`), Dt.setProperty("--radix-popper-anchor-height", `${zr}px`);
9611
9610
  }
9612
9611
  }),
9613
- E && Tw({ element: E, padding: a }),
9614
- $w({ arrowWidth: x, arrowHeight: T }),
9615
- g && Iw({ strategy: "referenceHidden", ...R })
9612
+ E && Iw({ element: E, padding: a }),
9613
+ Dw({ arrowWidth: x, arrowHeight: T }),
9614
+ g && xw({ strategy: "referenceHidden", ...R })
9616
9615
  ]
9617
9616
  }), [O, ie] = Kc(j), Ie = Je(p);
9618
9617
  yt(() => {
@@ -9646,7 +9645,7 @@ var es = "PopperContent", [Mw, Pw] = Uc(es), Gc = w.forwardRef(
9646
9645
  },
9647
9646
  dir: e.dir,
9648
9647
  children: /* @__PURE__ */ h(
9649
- Mw,
9648
+ Nw,
9650
9649
  {
9651
9650
  scope: n,
9652
9651
  placedSide: O,
@@ -9676,13 +9675,13 @@ var es = "PopperContent", [Mw, Pw] = Uc(es), Gc = w.forwardRef(
9676
9675
  }
9677
9676
  );
9678
9677
  Gc.displayName = es;
9679
- var Yc = "PopperArrow", kw = {
9678
+ var Yc = "PopperArrow", Pw = {
9680
9679
  top: "bottom",
9681
9680
  right: "left",
9682
9681
  bottom: "top",
9683
9682
  left: "right"
9684
9683
  }, Jc = w.forwardRef(function(t, n) {
9685
- const { __scopePopper: r, ...o } = t, s = Pw(Yc, r), i = kw[s.placedSide];
9684
+ const { __scopePopper: r, ...o } = t, s = Mw(Yc, r), i = Pw[s.placedSide];
9686
9685
  return (
9687
9686
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
9688
9687
  // doesn't report size as we'd expect on SVG elements.
@@ -9711,7 +9710,7 @@ var Yc = "PopperArrow", kw = {
9711
9710
  visibility: s.shouldHideArrow ? "hidden" : void 0
9712
9711
  },
9713
9712
  children: /* @__PURE__ */ h(
9714
- Rw,
9713
+ Aw,
9715
9714
  {
9716
9715
  ...o,
9717
9716
  ref: n,
@@ -9727,10 +9726,10 @@ var Yc = "PopperArrow", kw = {
9727
9726
  );
9728
9727
  });
9729
9728
  Jc.displayName = Yc;
9730
- function Dw(e) {
9729
+ function kw(e) {
9731
9730
  return e !== null;
9732
9731
  }
9733
- var $w = (e) => ({
9732
+ var Dw = (e) => ({
9734
9733
  name: "transformOrigin",
9735
9734
  options: e,
9736
9735
  fn(t) {
@@ -9743,23 +9742,23 @@ function Kc(e) {
9743
9742
  const [t, n = "center"] = e.split("-");
9744
9743
  return [t, n];
9745
9744
  }
9746
- var Xc = Vc, Lw = Wc, zw = Gc, Fw = Jc, Zw = "Portal", qc = w.forwardRef((e, t) => {
9745
+ var Xc = Vc, $w = Wc, Lw = Gc, zw = Jc, Fw = "Portal", qc = w.forwardRef((e, t) => {
9747
9746
  const { container: n, ...r } = e, [o, s] = w.useState(!1);
9748
9747
  yt(() => s(!0), []);
9749
9748
  const i = n || o && globalThis?.document?.body;
9750
9749
  return i ? Vd.createPortal(/* @__PURE__ */ h(be.div, { ...r, ref: t }), i) : null;
9751
9750
  });
9752
- qc.displayName = Zw;
9753
- function Uw(e, t) {
9751
+ qc.displayName = Fw;
9752
+ function Zw(e, t) {
9754
9753
  return w.useReducer((n, r) => t[n][r] ?? n, e);
9755
9754
  }
9756
9755
  var Rn = (e) => {
9757
- const { present: t, children: n } = e, r = jw(t), o = typeof n == "function" ? n({ present: r.isPresent }) : w.Children.only(n), s = we(r.ref, Bw(o));
9756
+ const { present: t, children: n } = e, r = Uw(t), o = typeof n == "function" ? n({ present: r.isPresent }) : w.Children.only(n), s = we(r.ref, jw(o));
9758
9757
  return typeof n == "function" || r.isPresent ? w.cloneElement(o, { ref: s }) : null;
9759
9758
  };
9760
9759
  Rn.displayName = "Presence";
9761
- function jw(e) {
9762
- const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Uw(i, {
9760
+ function Uw(e) {
9761
+ const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Zw(i, {
9763
9762
  mounted: {
9764
9763
  UNMOUNT: "unmounted",
9765
9764
  ANIMATION_OUT: "unmountSuspended"
@@ -9810,18 +9809,18 @@ function jw(e) {
9810
9809
  function Bn(e) {
9811
9810
  return e?.animationName || "none";
9812
9811
  }
9813
- function Bw(e) {
9812
+ function jw(e) {
9814
9813
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
9815
9814
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
9816
9815
  }
9817
- var ao = "rovingFocusGroup.onEntryFocus", Vw = { bubbles: !1, cancelable: !0 }, On = "RovingFocusGroup", [No, Qc, Hw] = Mc(On), [Ww, el] = An(
9816
+ var ao = "rovingFocusGroup.onEntryFocus", Bw = { bubbles: !1, cancelable: !0 }, On = "RovingFocusGroup", [No, Qc, Vw] = Mc(On), [Hw, el] = An(
9818
9817
  On,
9819
- [Hw]
9820
- ), [Gw, Yw] = Ww(On), tl = w.forwardRef(
9821
- (e, t) => /* @__PURE__ */ h(No.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(No.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Jw, { ...e, ref: t }) }) })
9818
+ [Vw]
9819
+ ), [Ww, Gw] = Hw(On), tl = w.forwardRef(
9820
+ (e, t) => /* @__PURE__ */ h(No.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(No.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Yw, { ...e, ref: t }) }) })
9822
9821
  );
9823
9822
  tl.displayName = On;
9824
- var Jw = w.forwardRef((e, t) => {
9823
+ var Yw = w.forwardRef((e, t) => {
9825
9824
  const {
9826
9825
  __scopeRovingFocusGroup: n,
9827
9826
  orientation: r,
@@ -9844,7 +9843,7 @@ var Jw = w.forwardRef((e, t) => {
9844
9843
  if (T)
9845
9844
  return T.addEventListener(ao, v), () => T.removeEventListener(ao, v);
9846
9845
  }, [v]), /* @__PURE__ */ h(
9847
- Gw,
9846
+ Ww,
9848
9847
  {
9849
9848
  scope: n,
9850
9849
  orientation: r,
@@ -9878,7 +9877,7 @@ var Jw = w.forwardRef((e, t) => {
9878
9877
  onFocus: W(e.onFocus, (T) => {
9879
9878
  const P = !S.current;
9880
9879
  if (T.target === T.currentTarget && P && !b) {
9881
- const $ = new CustomEvent(ao, Vw);
9880
+ const $ = new CustomEvent(ao, Bw);
9882
9881
  if (T.currentTarget.dispatchEvent($), !$.defaultPrevented) {
9883
9882
  const V = E().filter((j) => j.focusable), M = V.find((j) => j.active), R = V.find((j) => j.id === f), Q = [M, R, ...V].filter(
9884
9883
  Boolean
@@ -9902,7 +9901,7 @@ var Jw = w.forwardRef((e, t) => {
9902
9901
  tabStopId: s,
9903
9902
  children: i,
9904
9903
  ...a
9905
- } = e, c = yn(), l = s || c, d = Yw(nl, n), u = d.currentTabStopId === l, g = Qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
9904
+ } = e, c = yn(), l = s || c, d = Gw(nl, n), u = d.currentTabStopId === l, g = Qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
9906
9905
  return w.useEffect(() => {
9907
9906
  if (r)
9908
9907
  return m(), () => p();
@@ -9930,7 +9929,7 @@ var Jw = w.forwardRef((e, t) => {
9930
9929
  return;
9931
9930
  }
9932
9931
  if (y.target !== y.currentTarget) return;
9933
- const b = qw(y, d.orientation, d.dir);
9932
+ const b = Xw(y, d.orientation, d.dir);
9934
9933
  if (b !== void 0) {
9935
9934
  if (y.metaKey || y.ctrlKey || y.altKey || y.shiftKey) return;
9936
9935
  y.preventDefault();
@@ -9939,7 +9938,7 @@ var Jw = w.forwardRef((e, t) => {
9939
9938
  else if (b === "prev" || b === "next") {
9940
9939
  b === "prev" && v.reverse();
9941
9940
  const E = v.indexOf(y.currentTarget);
9942
- v = d.loop ? Qw(v, E + 1) : v.slice(E + 1);
9941
+ v = d.loop ? qw(v, E + 1) : v.slice(E + 1);
9943
9942
  }
9944
9943
  setTimeout(() => ol(v));
9945
9944
  }
@@ -9952,7 +9951,7 @@ var Jw = w.forwardRef((e, t) => {
9952
9951
  }
9953
9952
  );
9954
9953
  rl.displayName = nl;
9955
- var Kw = {
9954
+ var Jw = {
9956
9955
  ArrowLeft: "prev",
9957
9956
  ArrowUp: "prev",
9958
9957
  ArrowRight: "next",
@@ -9962,30 +9961,30 @@ var Kw = {
9962
9961
  PageDown: "last",
9963
9962
  End: "last"
9964
9963
  };
9965
- function Xw(e, t) {
9964
+ function Kw(e, t) {
9966
9965
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
9967
9966
  }
9968
- function qw(e, t, n) {
9969
- const r = Xw(e.key, n);
9967
+ function Xw(e, t, n) {
9968
+ const r = Kw(e.key, n);
9970
9969
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
9971
- return Kw[r];
9970
+ return Jw[r];
9972
9971
  }
9973
9972
  function ol(e, t = !1) {
9974
9973
  const n = document.activeElement;
9975
9974
  for (const r of e)
9976
9975
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
9977
9976
  }
9978
- function Qw(e, t) {
9977
+ function qw(e, t) {
9979
9978
  return e.map((n, r) => e[(t + r) % e.length]);
9980
9979
  }
9981
- var e_ = tl, t_ = rl, n_ = function(e) {
9980
+ var Qw = tl, e_ = rl, t_ = function(e) {
9982
9981
  if (typeof document > "u")
9983
9982
  return null;
9984
9983
  var t = Array.isArray(e) ? e[0] : e;
9985
9984
  return t.ownerDocument.body;
9986
9985
  }, Lt = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Hn = {}, io = 0, sl = function(e) {
9987
9986
  return e && (e.host || sl(e.parentNode));
9988
- }, r_ = function(e, t) {
9987
+ }, n_ = function(e, t) {
9989
9988
  return t.map(function(n) {
9990
9989
  if (e.contains(n))
9991
9990
  return n;
@@ -9994,8 +9993,8 @@ var e_ = tl, t_ = rl, n_ = function(e) {
9994
9993
  }).filter(function(n) {
9995
9994
  return !!n;
9996
9995
  });
9997
- }, o_ = function(e, t, n, r) {
9998
- var o = r_(t, Array.isArray(e) ? e : [e]);
9996
+ }, r_ = function(e, t, n, r) {
9997
+ var o = n_(t, Array.isArray(e) ? e : [e]);
9999
9998
  Hn[n] || (Hn[n] = /* @__PURE__ */ new WeakMap());
10000
9999
  var s = Hn[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(u) {
10001
10000
  !u || a.has(u) || (a.add(u), l(u.parentNode));
@@ -10020,10 +10019,10 @@ var e_ = tl, t_ = rl, n_ = function(e) {
10020
10019
  Lt.set(u, g), s.set(u, m), g || (Vn.has(u) || u.removeAttribute(r), Vn.delete(u)), m || u.removeAttribute(n);
10021
10020
  }), io--, io || (Lt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Hn = {});
10022
10021
  };
10023
- }, s_ = function(e, t, n) {
10022
+ }, o_ = function(e, t, n) {
10024
10023
  n === void 0 && (n = "data-aria-hidden");
10025
- var r = Array.from(Array.isArray(e) ? e : [e]), o = n_(e);
10026
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), o_(r, o, n, "aria-hidden")) : function() {
10024
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = t_(e);
10025
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), r_(r, o, n, "aria-hidden")) : function() {
10027
10026
  return null;
10028
10027
  };
10029
10028
  }, Be = function() {
@@ -10043,16 +10042,16 @@ function al(e, t) {
10043
10042
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
10044
10043
  return n;
10045
10044
  }
10046
- function a_(e, t, n) {
10045
+ function s_(e, t, n) {
10047
10046
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
10048
10047
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
10049
10048
  return e.concat(s || Array.prototype.slice.call(t));
10050
10049
  }
10051
- var nr = "right-scroll-bar-position", rr = "width-before-scroll-bar", i_ = "with-scroll-bars-hidden", c_ = "--removed-body-scroll-bar-size";
10050
+ var nr = "right-scroll-bar-position", rr = "width-before-scroll-bar", a_ = "with-scroll-bars-hidden", i_ = "--removed-body-scroll-bar-size";
10052
10051
  function co(e, t) {
10053
10052
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
10054
10053
  }
10055
- function l_(e, t) {
10054
+ function c_(e, t) {
10056
10055
  var n = B(function() {
10057
10056
  return {
10058
10057
  // value
@@ -10073,14 +10072,14 @@ function l_(e, t) {
10073
10072
  })[0];
10074
10073
  return n.callback = t, n.facade;
10075
10074
  }
10076
- var u_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect, $a = /* @__PURE__ */ new WeakMap();
10077
- function d_(e, t) {
10078
- var n = l_(null, function(r) {
10075
+ var l_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect, $a = /* @__PURE__ */ new WeakMap();
10076
+ function u_(e, t) {
10077
+ var n = c_(null, function(r) {
10079
10078
  return e.forEach(function(o) {
10080
10079
  return co(o, r);
10081
10080
  });
10082
10081
  });
10083
- return u_(function() {
10082
+ return l_(function() {
10084
10083
  var r = $a.get(n);
10085
10084
  if (r) {
10086
10085
  var o = new Set(r), s = new Set(e), i = n.current;
@@ -10093,11 +10092,11 @@ function d_(e, t) {
10093
10092
  $a.set(n, e);
10094
10093
  }, [e]), n;
10095
10094
  }
10096
- function f_(e) {
10095
+ function d_(e) {
10097
10096
  return e;
10098
10097
  }
10099
- function p_(e, t) {
10100
- t === void 0 && (t = f_);
10098
+ function f_(e, t) {
10099
+ t === void 0 && (t = d_);
10101
10100
  var n = [], r = !1, o = {
10102
10101
  read: function() {
10103
10102
  if (r)
@@ -10151,9 +10150,9 @@ function p_(e, t) {
10151
10150
  };
10152
10151
  return o;
10153
10152
  }
10154
- function m_(e) {
10153
+ function p_(e) {
10155
10154
  e === void 0 && (e = {});
10156
- var t = p_(null);
10155
+ var t = f_(null);
10157
10156
  return t.options = Be({ async: !0, ssr: !1 }, e), t;
10158
10157
  }
10159
10158
  var il = function(e) {
@@ -10166,16 +10165,16 @@ var il = function(e) {
10166
10165
  return w.createElement(r, Be({}, n));
10167
10166
  };
10168
10167
  il.isSideCarExport = !0;
10169
- function h_(e, t) {
10168
+ function m_(e, t) {
10170
10169
  return e.useMedium(t), il;
10171
10170
  }
10172
- var cl = m_(), lo = function() {
10171
+ var cl = p_(), lo = function() {
10173
10172
  }, Pr = w.forwardRef(function(e, t) {
10174
10173
  var n = w.useRef(null), r = w.useState({
10175
10174
  onScrollCapture: lo,
10176
10175
  onWheelCapture: lo,
10177
10176
  onTouchMoveCapture: lo
10178
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, g = e.sideCar, m = e.noRelative, p = e.noIsolation, f = e.inert, y = e.allowPinchZoom, b = e.as, _ = b === void 0 ? "div" : b, v = e.gapMode, E = al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, I = d_([n, t]), x = Be(Be({}, E), o);
10177
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, g = e.sideCar, m = e.noRelative, p = e.noIsolation, f = e.inert, y = e.allowPinchZoom, b = e.as, _ = b === void 0 ? "div" : b, v = e.gapMode, E = al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, I = u_([n, t]), x = Be(Be({}, E), o);
10179
10178
  return w.createElement(
10180
10179
  w.Fragment,
10181
10180
  null,
@@ -10192,37 +10191,37 @@ Pr.classNames = {
10192
10191
  fullWidth: rr,
10193
10192
  zeroRight: nr
10194
10193
  };
10195
- var g_ = function() {
10194
+ var h_ = function() {
10196
10195
  if (typeof __webpack_nonce__ < "u")
10197
10196
  return __webpack_nonce__;
10198
10197
  };
10199
- function v_() {
10198
+ function g_() {
10200
10199
  if (!document)
10201
10200
  return null;
10202
10201
  var e = document.createElement("style");
10203
10202
  e.type = "text/css";
10204
- var t = g_();
10203
+ var t = h_();
10205
10204
  return t && e.setAttribute("nonce", t), e;
10206
10205
  }
10207
- function y_(e, t) {
10206
+ function v_(e, t) {
10208
10207
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
10209
10208
  }
10210
- function b_(e) {
10209
+ function y_(e) {
10211
10210
  var t = document.head || document.getElementsByTagName("head")[0];
10212
10211
  t.appendChild(e);
10213
10212
  }
10214
- var w_ = function() {
10213
+ var b_ = function() {
10215
10214
  var e = 0, t = null;
10216
10215
  return {
10217
10216
  add: function(n) {
10218
- e == 0 && (t = v_()) && (y_(t, n), b_(t)), e++;
10217
+ e == 0 && (t = g_()) && (v_(t, n), y_(t)), e++;
10219
10218
  },
10220
10219
  remove: function() {
10221
10220
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
10222
10221
  }
10223
10222
  };
10224
- }, __ = function() {
10225
- var e = w_();
10223
+ }, w_ = function() {
10224
+ var e = b_();
10226
10225
  return function(t, n) {
10227
10226
  w.useEffect(function() {
10228
10227
  return e.add(t), function() {
@@ -10231,35 +10230,35 @@ var w_ = function() {
10231
10230
  }, [t && n]);
10232
10231
  };
10233
10232
  }, ll = function() {
10234
- var e = __(), t = function(n) {
10233
+ var e = w_(), t = function(n) {
10235
10234
  var r = n.styles, o = n.dynamic;
10236
10235
  return e(r, o), null;
10237
10236
  };
10238
10237
  return t;
10239
- }, E_ = {
10238
+ }, __ = {
10240
10239
  left: 0,
10241
10240
  top: 0,
10242
10241
  right: 0,
10243
10242
  gap: 0
10244
10243
  }, uo = function(e) {
10245
10244
  return parseInt(e || "", 10) || 0;
10246
- }, S_ = function(e) {
10245
+ }, E_ = function(e) {
10247
10246
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
10248
10247
  return [uo(n), uo(r), uo(o)];
10249
- }, C_ = function(e) {
10248
+ }, S_ = function(e) {
10250
10249
  if (e === void 0 && (e = "margin"), typeof window > "u")
10251
- return E_;
10252
- var t = S_(e), n = document.documentElement.clientWidth, r = window.innerWidth;
10250
+ return __;
10251
+ var t = E_(e), n = document.documentElement.clientWidth, r = window.innerWidth;
10253
10252
  return {
10254
10253
  left: t[0],
10255
10254
  top: t[1],
10256
10255
  right: t[2],
10257
10256
  gap: Math.max(0, r - n + t[2] - t[0])
10258
10257
  };
10259
- }, x_ = ll(), Bt = "data-scroll-locked", I_ = function(e, t, n, r) {
10258
+ }, C_ = ll(), Bt = "data-scroll-locked", x_ = function(e, t, n, r) {
10260
10259
  var o = e.left, s = e.top, i = e.right, a = e.gap;
10261
10260
  return n === void 0 && (n = "margin"), `
10262
- .`.concat(i_, ` {
10261
+ .`.concat(a_, ` {
10263
10262
  overflow: hidden `).concat(r, `;
10264
10263
  padding-right: `).concat(a, "px ").concat(r, `;
10265
10264
  }
@@ -10297,26 +10296,26 @@ var w_ = function() {
10297
10296
  }
10298
10297
 
10299
10298
  body[`).concat(Bt, `] {
10300
- `).concat(c_, ": ").concat(a, `px;
10299
+ `).concat(i_, ": ").concat(a, `px;
10301
10300
  }
10302
10301
  `);
10303
10302
  }, La = function() {
10304
10303
  var e = parseInt(document.body.getAttribute(Bt) || "0", 10);
10305
10304
  return isFinite(e) ? e : 0;
10306
- }, T_ = function() {
10305
+ }, I_ = function() {
10307
10306
  w.useEffect(function() {
10308
10307
  return document.body.setAttribute(Bt, (La() + 1).toString()), function() {
10309
10308
  var e = La() - 1;
10310
10309
  e <= 0 ? document.body.removeAttribute(Bt) : document.body.setAttribute(Bt, e.toString());
10311
10310
  };
10312
10311
  }, []);
10313
- }, A_ = function(e) {
10312
+ }, T_ = function(e) {
10314
10313
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
10315
- T_();
10314
+ I_();
10316
10315
  var s = w.useMemo(function() {
10317
- return C_(o);
10316
+ return S_(o);
10318
10317
  }, [o]);
10319
- return w.createElement(x_, { styles: I_(s, !t, o, n ? "" : "!important") });
10318
+ return w.createElement(C_, { styles: x_(s, !t, o, n ? "" : "!important") });
10320
10319
  }, Mo = !1;
10321
10320
  if (typeof window < "u")
10322
10321
  try {
@@ -10329,7 +10328,7 @@ if (typeof window < "u")
10329
10328
  } catch {
10330
10329
  Mo = !1;
10331
10330
  }
10332
- var zt = Mo ? { passive: !1 } : !1, R_ = function(e) {
10331
+ var zt = Mo ? { passive: !1 } : !1, A_ = function(e) {
10333
10332
  return e.tagName === "TEXTAREA";
10334
10333
  }, ul = function(e, t) {
10335
10334
  if (!(e instanceof Element))
@@ -10338,11 +10337,11 @@ var zt = Mo ? { passive: !1 } : !1, R_ = function(e) {
10338
10337
  return (
10339
10338
  // not-not-scrollable
10340
10339
  n[t] !== "hidden" && // contains scroll inside self
10341
- !(n.overflowY === n.overflowX && !R_(e) && n[t] === "visible")
10340
+ !(n.overflowY === n.overflowX && !A_(e) && n[t] === "visible")
10342
10341
  );
10343
- }, O_ = function(e) {
10342
+ }, R_ = function(e) {
10344
10343
  return ul(e, "overflowY");
10345
- }, N_ = function(e) {
10344
+ }, O_ = function(e) {
10346
10345
  return ul(e, "overflowX");
10347
10346
  }, za = function(e, t) {
10348
10347
  var n = t.ownerDocument, r = t;
@@ -10357,14 +10356,14 @@ var zt = Mo ? { passive: !1 } : !1, R_ = function(e) {
10357
10356
  r = r.parentNode;
10358
10357
  } while (r && r !== n.body);
10359
10358
  return !1;
10360
- }, M_ = function(e) {
10359
+ }, N_ = function(e) {
10361
10360
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
10362
10361
  return [
10363
10362
  t,
10364
10363
  n,
10365
10364
  r
10366
10365
  ];
10367
- }, P_ = function(e) {
10366
+ }, M_ = function(e) {
10368
10367
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
10369
10368
  return [
10370
10369
  t,
@@ -10372,13 +10371,13 @@ var zt = Mo ? { passive: !1 } : !1, R_ = function(e) {
10372
10371
  r
10373
10372
  ];
10374
10373
  }, dl = function(e, t) {
10375
- return e === "v" ? O_(t) : N_(t);
10374
+ return e === "v" ? R_(t) : O_(t);
10376
10375
  }, fl = function(e, t) {
10377
- return e === "v" ? M_(t) : P_(t);
10378
- }, k_ = function(e, t) {
10376
+ return e === "v" ? N_(t) : M_(t);
10377
+ }, P_ = function(e, t) {
10379
10378
  return e === "h" && t === "rtl" ? -1 : 1;
10380
- }, D_ = function(e, t, n, r, o) {
10381
- var s = k_(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, d = i > 0, u = 0, g = 0;
10379
+ }, k_ = function(e, t, n, r, o) {
10380
+ var s = P_(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, d = i > 0, u = 0, g = 0;
10382
10381
  do {
10383
10382
  if (!a)
10384
10383
  break;
@@ -10398,22 +10397,22 @@ var zt = Mo ? { passive: !1 } : !1, R_ = function(e) {
10398
10397
  return [e.deltaX, e.deltaY];
10399
10398
  }, Za = function(e) {
10400
10399
  return e && "current" in e ? e.current : e;
10401
- }, $_ = function(e, t) {
10400
+ }, D_ = function(e, t) {
10402
10401
  return e[0] === t[0] && e[1] === t[1];
10403
- }, L_ = function(e) {
10402
+ }, $_ = function(e) {
10404
10403
  return `
10405
10404
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
10406
10405
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
10407
10406
  `);
10408
- }, z_ = 0, Ft = [];
10409
- function F_(e) {
10410
- var t = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(z_++)[0], s = w.useState(ll)[0], i = w.useRef(e);
10407
+ }, L_ = 0, Ft = [];
10408
+ function z_(e) {
10409
+ var t = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(L_++)[0], s = w.useState(ll)[0], i = w.useRef(e);
10411
10410
  w.useEffect(function() {
10412
10411
  i.current = e;
10413
10412
  }, [e]), w.useEffect(function() {
10414
10413
  if (e.inert) {
10415
10414
  document.body.classList.add("block-interactivity-".concat(o));
10416
- var f = a_([e.lockRef.current], (e.shards || []).map(Za), !0).filter(Boolean);
10415
+ var f = s_([e.lockRef.current], (e.shards || []).map(Za), !0).filter(Boolean);
10417
10416
  return f.forEach(function(y) {
10418
10417
  return y.classList.add("allow-interactivity-".concat(o));
10419
10418
  }), function() {
@@ -10440,12 +10439,12 @@ function F_(e) {
10440
10439
  if (!r.current && "changedTouches" in f && (v || E) && (r.current = S), !S)
10441
10440
  return !0;
10442
10441
  var M = r.current || S;
10443
- return D_(M, y, f, M === "h" ? v : E);
10442
+ return k_(M, y, f, M === "h" ? v : E);
10444
10443
  }, []), c = w.useCallback(function(f) {
10445
10444
  var y = f;
10446
10445
  if (!(!Ft.length || Ft[Ft.length - 1] !== s)) {
10447
10446
  var b = "deltaY" in y ? Fa(y) : Gn(y), _ = t.current.filter(function(S) {
10448
- return S.name === y.type && (S.target === y.target || y.target === S.shadowParent) && $_(S.delta, b);
10447
+ return S.name === y.type && (S.target === y.target || y.target === S.shadowParent) && D_(S.delta, b);
10449
10448
  })[0];
10450
10449
  if (_ && _.should) {
10451
10450
  y.cancelable && y.preventDefault();
@@ -10459,7 +10458,7 @@ function F_(e) {
10459
10458
  }
10460
10459
  }
10461
10460
  }, []), l = w.useCallback(function(f, y, b, _) {
10462
- var v = { name: f, delta: y, target: b, should: _, shadowParent: Z_(b) };
10461
+ var v = { name: f, delta: y, target: b, should: _, shadowParent: F_(b) };
10463
10462
  t.current.push(v), setTimeout(function() {
10464
10463
  t.current = t.current.filter(function(E) {
10465
10464
  return E !== v;
@@ -10487,31 +10486,31 @@ function F_(e) {
10487
10486
  return w.createElement(
10488
10487
  w.Fragment,
10489
10488
  null,
10490
- p ? w.createElement(s, { styles: L_(o) }) : null,
10491
- m ? w.createElement(A_, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
10489
+ p ? w.createElement(s, { styles: $_(o) }) : null,
10490
+ m ? w.createElement(T_, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
10492
10491
  );
10493
10492
  }
10494
- function Z_(e) {
10493
+ function F_(e) {
10495
10494
  for (var t = null; e !== null; )
10496
10495
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
10497
10496
  return t;
10498
10497
  }
10499
- const U_ = h_(cl, F_);
10498
+ const Z_ = m_(cl, z_);
10500
10499
  var pl = w.forwardRef(function(e, t) {
10501
- return w.createElement(Pr, Be({}, e, { ref: t, sideCar: U_ }));
10500
+ return w.createElement(Pr, Be({}, e, { ref: t, sideCar: Z_ }));
10502
10501
  });
10503
10502
  pl.classNames = Pr.classNames;
10504
- var Po = ["Enter", " "], j_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp", "PageDown", "End"], B_ = [...j_, ...ml], V_ = {
10503
+ var Po = ["Enter", " "], U_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp", "PageDown", "End"], j_ = [...U_, ...ml], B_ = {
10505
10504
  ltr: [...Po, "ArrowRight"],
10506
10505
  rtl: [...Po, "ArrowLeft"]
10507
- }, H_ = {
10506
+ }, V_ = {
10508
10507
  ltr: ["ArrowLeft"],
10509
10508
  rtl: ["ArrowRight"]
10510
- }, Nn = "Menu", [bn, W_, G_] = Mc(Nn), [Pt, hl] = An(Nn, [
10511
- G_,
10509
+ }, Nn = "Menu", [bn, H_, W_] = Mc(Nn), [Pt, hl] = An(Nn, [
10510
+ W_,
10512
10511
  jc,
10513
10512
  el
10514
- ]), Mn = jc(), gl = el(), [vl, Et] = Pt(Nn), [Y_, Pn] = Pt(Nn), yl = (e) => {
10513
+ ]), Mn = jc(), gl = el(), [vl, Et] = Pt(Nn), [G_, Pn] = Pt(Nn), yl = (e) => {
10515
10514
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Mn(t), [c, l] = w.useState(null), d = w.useRef(!1), u = Je(s), g = Pc(o);
10516
10515
  return w.useEffect(() => {
10517
10516
  const m = () => {
@@ -10529,7 +10528,7 @@ var Po = ["Enter", " "], j_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp",
10529
10528
  content: c,
10530
10529
  onContentChange: l,
10531
10530
  children: /* @__PURE__ */ h(
10532
- Y_,
10531
+ G_,
10533
10532
  {
10534
10533
  scope: t,
10535
10534
  onClose: w.useCallback(() => u(!1), [u]),
@@ -10543,31 +10542,31 @@ var Po = ["Enter", " "], j_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp",
10543
10542
  ) });
10544
10543
  };
10545
10544
  yl.displayName = Nn;
10546
- var J_ = "MenuAnchor", ts = w.forwardRef(
10545
+ var Y_ = "MenuAnchor", ts = w.forwardRef(
10547
10546
  (e, t) => {
10548
10547
  const { __scopeMenu: n, ...r } = e, o = Mn(n);
10549
- return /* @__PURE__ */ h(Lw, { ...o, ...r, ref: t });
10548
+ return /* @__PURE__ */ h($w, { ...o, ...r, ref: t });
10550
10549
  }
10551
10550
  );
10552
- ts.displayName = J_;
10553
- var ns = "MenuPortal", [K_, bl] = Pt(ns, {
10551
+ ts.displayName = Y_;
10552
+ var ns = "MenuPortal", [J_, bl] = Pt(ns, {
10554
10553
  forceMount: void 0
10555
10554
  }), wl = (e) => {
10556
10555
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Et(ns, t);
10557
- return /* @__PURE__ */ h(K_, { scope: t, forceMount: n, children: /* @__PURE__ */ h(Rn, { present: n || s.open, children: /* @__PURE__ */ h(qc, { asChild: !0, container: o, children: r }) }) });
10556
+ return /* @__PURE__ */ h(J_, { scope: t, forceMount: n, children: /* @__PURE__ */ h(Rn, { present: n || s.open, children: /* @__PURE__ */ h(qc, { asChild: !0, container: o, children: r }) }) });
10558
10557
  };
10559
10558
  wl.displayName = ns;
10560
- var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10559
+ var Re = "MenuContent", [K_, rs] = Pt(Re), _l = w.forwardRef(
10561
10560
  (e, t) => {
10562
10561
  const n = bl(Re, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Et(Re, e.__scopeMenu), i = Pn(Re, e.__scopeMenu);
10563
- return /* @__PURE__ */ h(bn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h(Rn, { present: r || s.open, children: /* @__PURE__ */ h(bn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ h(q_, { ...o, ref: t }) : /* @__PURE__ */ h(Q_, { ...o, ref: t }) }) }) });
10562
+ return /* @__PURE__ */ h(bn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h(Rn, { present: r || s.open, children: /* @__PURE__ */ h(bn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ h(X_, { ...o, ref: t }) : /* @__PURE__ */ h(q_, { ...o, ref: t }) }) }) });
10564
10563
  }
10565
- ), q_ = w.forwardRef(
10564
+ ), X_ = w.forwardRef(
10566
10565
  (e, t) => {
10567
10566
  const n = Et(Re, e.__scopeMenu), r = w.useRef(null), o = we(t, r);
10568
10567
  return w.useEffect(() => {
10569
10568
  const s = r.current;
10570
- if (s) return s_(s);
10569
+ if (s) return o_(s);
10571
10570
  }, []), /* @__PURE__ */ h(
10572
10571
  os,
10573
10572
  {
@@ -10585,7 +10584,7 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10585
10584
  }
10586
10585
  );
10587
10586
  }
10588
- ), Q_ = w.forwardRef((e, t) => {
10587
+ ), q_ = w.forwardRef((e, t) => {
10589
10588
  const n = Et(Re, e.__scopeMenu);
10590
10589
  return /* @__PURE__ */ h(
10591
10590
  os,
@@ -10598,7 +10597,7 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10598
10597
  onDismiss: () => n.onOpenChange(!1)
10599
10598
  }
10600
10599
  );
10601
- }), eE = /* @__PURE__ */ vr("MenuContent.ScrollLock"), os = w.forwardRef(
10600
+ }), Q_ = /* @__PURE__ */ vr("MenuContent.ScrollLock"), os = w.forwardRef(
10602
10601
  (e, t) => {
10603
10602
  const {
10604
10603
  __scopeMenu: n,
@@ -10615,16 +10614,16 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10615
10614
  onDismiss: m,
10616
10615
  disableOutsideScroll: p,
10617
10616
  ...f
10618
- } = e, y = Et(Re, n), b = Pn(Re, n), _ = Mn(n), v = gl(n), E = W_(n), [S, I] = w.useState(null), x = w.useRef(null), T = we(t, x, y.onContentChange), P = w.useRef(0), $ = w.useRef(""), V = w.useRef(0), M = w.useRef(null), R = w.useRef("right"), L = w.useRef(0), Q = p ? pl : w.Fragment, j = p ? { as: eE, allowPinchZoom: !0 } : void 0, q = (O) => {
10619
- const ie = $.current + O, Ie = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Ie.find((ce) => ce.ref.current === ze)?.textValue, Ee = Ie.map((ce) => ce.textValue), kt = fE(Ee, ie, me), qe = Ie.find((ce) => ce.textValue === kt)?.ref.current;
10617
+ } = e, y = Et(Re, n), b = Pn(Re, n), _ = Mn(n), v = gl(n), E = H_(n), [S, I] = w.useState(null), x = w.useRef(null), T = we(t, x, y.onContentChange), P = w.useRef(0), $ = w.useRef(""), V = w.useRef(0), M = w.useRef(null), R = w.useRef("right"), L = w.useRef(0), Q = p ? pl : w.Fragment, j = p ? { as: Q_, allowPinchZoom: !0 } : void 0, q = (O) => {
10618
+ const ie = $.current + O, Ie = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Ie.find((ce) => ce.ref.current === ze)?.textValue, Ee = Ie.map((ce) => ce.textValue), kt = dE(Ee, ie, me), qe = Ie.find((ce) => ce.textValue === kt)?.ref.current;
10620
10619
  (function ce(St) {
10621
10620
  $.current = St, window.clearTimeout(P.current), St !== "" && (P.current = window.setTimeout(() => ce(""), 1e3));
10622
10621
  })(ie), qe && setTimeout(() => qe.focus());
10623
10622
  };
10624
- w.useEffect(() => () => window.clearTimeout(P.current), []), iw();
10625
- const k = w.useCallback((O) => R.current === M.current?.side && mE(O, M.current?.area), []);
10623
+ w.useEffect(() => () => window.clearTimeout(P.current), []), aw();
10624
+ const k = w.useCallback((O) => R.current === M.current?.side && pE(O, M.current?.area), []);
10626
10625
  return /* @__PURE__ */ h(
10627
- X_,
10626
+ K_,
10628
10627
  {
10629
10628
  scope: n,
10630
10629
  searchRef: $,
@@ -10670,7 +10669,7 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10670
10669
  onInteractOutside: g,
10671
10670
  onDismiss: m,
10672
10671
  children: /* @__PURE__ */ h(
10673
- e_,
10672
+ Qw,
10674
10673
  {
10675
10674
  asChild: !0,
10676
10675
  ...v,
@@ -10684,7 +10683,7 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10684
10683
  }),
10685
10684
  preventScrollOnEntryFocus: !0,
10686
10685
  children: /* @__PURE__ */ h(
10687
- zw,
10686
+ Lw,
10688
10687
  {
10689
10688
  role: "menu",
10690
10689
  "aria-orientation": "vertical",
@@ -10699,10 +10698,10 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10699
10698
  const Ie = O.target.closest("[data-radix-menu-content]") === O.currentTarget, ze = O.ctrlKey || O.altKey || O.metaKey, me = O.key.length === 1;
10700
10699
  Ie && (O.key === "Tab" && O.preventDefault(), !ze && me && q(O.key));
10701
10700
  const Ee = x.current;
10702
- if (O.target !== Ee || !B_.includes(O.key)) return;
10701
+ if (O.target !== Ee || !j_.includes(O.key)) return;
10703
10702
  O.preventDefault();
10704
10703
  const qe = E().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
10705
- ml.includes(O.key) && qe.reverse(), uE(qe);
10704
+ ml.includes(O.key) && qe.reverse(), lE(qe);
10706
10705
  }),
10707
10706
  onBlur: W(e.onBlur, (O) => {
10708
10707
  O.currentTarget.contains(O.target) || (window.clearTimeout(P.current), $.current = "");
@@ -10730,20 +10729,20 @@ var Re = "MenuContent", [X_, rs] = Pt(Re), _l = w.forwardRef(
10730
10729
  }
10731
10730
  );
10732
10731
  _l.displayName = Re;
10733
- var tE = "MenuGroup", ss = w.forwardRef(
10732
+ var eE = "MenuGroup", ss = w.forwardRef(
10734
10733
  (e, t) => {
10735
10734
  const { __scopeMenu: n, ...r } = e;
10736
10735
  return /* @__PURE__ */ h(be.div, { role: "group", ...r, ref: t });
10737
10736
  }
10738
10737
  );
10739
- ss.displayName = tE;
10740
- var nE = "MenuLabel", El = w.forwardRef(
10738
+ ss.displayName = eE;
10739
+ var tE = "MenuLabel", El = w.forwardRef(
10741
10740
  (e, t) => {
10742
10741
  const { __scopeMenu: n, ...r } = e;
10743
10742
  return /* @__PURE__ */ h(be.div, { ...r, ref: t });
10744
10743
  }
10745
10744
  );
10746
- El.displayName = nE;
10745
+ El.displayName = tE;
10747
10746
  var br = "MenuItem", Ua = "menu.itemSelect", kr = w.forwardRef(
10748
10747
  (e, t) => {
10749
10748
  const { disabled: n = !1, onSelect: r, ...o } = e, s = w.useRef(null), i = Pn(br, e.__scopeMenu), a = rs(br, e.__scopeMenu), c = we(t, s), l = w.useRef(!1), d = () => {
@@ -10787,7 +10786,7 @@ var Sl = w.forwardRef(
10787
10786
  scope: n,
10788
10787
  disabled: r,
10789
10788
  textValue: o ?? g,
10790
- children: /* @__PURE__ */ h(t_, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h(
10789
+ children: /* @__PURE__ */ h(e_, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h(
10791
10790
  be.div,
10792
10791
  {
10793
10792
  role: "menuitem",
@@ -10813,7 +10812,7 @@ var Sl = w.forwardRef(
10813
10812
  }
10814
10813
  );
10815
10814
  }
10816
- ), rE = "MenuCheckboxItem", Cl = w.forwardRef(
10815
+ ), nE = "MenuCheckboxItem", Cl = w.forwardRef(
10817
10816
  (e, t) => {
10818
10817
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
10819
10818
  return /* @__PURE__ */ h(Rl, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ h(
@@ -10833,21 +10832,21 @@ var Sl = w.forwardRef(
10833
10832
  ) });
10834
10833
  }
10835
10834
  );
10836
- Cl.displayName = rE;
10837
- var xl = "MenuRadioGroup", [oE, sE] = Pt(
10835
+ Cl.displayName = nE;
10836
+ var xl = "MenuRadioGroup", [rE, oE] = Pt(
10838
10837
  xl,
10839
10838
  { value: void 0, onValueChange: () => {
10840
10839
  } }
10841
10840
  ), Il = w.forwardRef(
10842
10841
  (e, t) => {
10843
10842
  const { value: n, onValueChange: r, ...o } = e, s = Je(r);
10844
- return /* @__PURE__ */ h(oE, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ h(ss, { ...o, ref: t }) });
10843
+ return /* @__PURE__ */ h(rE, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ h(ss, { ...o, ref: t }) });
10845
10844
  }
10846
10845
  );
10847
10846
  Il.displayName = xl;
10848
10847
  var Tl = "MenuRadioItem", Al = w.forwardRef(
10849
10848
  (e, t) => {
10850
- const { value: n, ...r } = e, o = sE(Tl, e.__scopeMenu), s = n === o.value;
10849
+ const { value: n, ...r } = e, o = oE(Tl, e.__scopeMenu), s = n === o.value;
10851
10850
  return /* @__PURE__ */ h(Rl, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ h(
10852
10851
  kr,
10853
10852
  {
@@ -10866,12 +10865,12 @@ var Tl = "MenuRadioItem", Al = w.forwardRef(
10866
10865
  }
10867
10866
  );
10868
10867
  Al.displayName = Tl;
10869
- var as = "MenuItemIndicator", [Rl, aE] = Pt(
10868
+ var as = "MenuItemIndicator", [Rl, sE] = Pt(
10870
10869
  as,
10871
10870
  { checked: !1 }
10872
10871
  ), Ol = w.forwardRef(
10873
10872
  (e, t) => {
10874
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = aE(as, n);
10873
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = sE(as, n);
10875
10874
  return /* @__PURE__ */ h(
10876
10875
  Rn,
10877
10876
  {
@@ -10889,7 +10888,7 @@ var as = "MenuItemIndicator", [Rl, aE] = Pt(
10889
10888
  }
10890
10889
  );
10891
10890
  Ol.displayName = as;
10892
- var iE = "MenuSeparator", Nl = w.forwardRef(
10891
+ var aE = "MenuSeparator", Nl = w.forwardRef(
10893
10892
  (e, t) => {
10894
10893
  const { __scopeMenu: n, ...r } = e;
10895
10894
  return /* @__PURE__ */ h(
@@ -10903,15 +10902,15 @@ var iE = "MenuSeparator", Nl = w.forwardRef(
10903
10902
  );
10904
10903
  }
10905
10904
  );
10906
- Nl.displayName = iE;
10907
- var cE = "MenuArrow", Ml = w.forwardRef(
10905
+ Nl.displayName = aE;
10906
+ var iE = "MenuArrow", Ml = w.forwardRef(
10908
10907
  (e, t) => {
10909
10908
  const { __scopeMenu: n, ...r } = e, o = Mn(n);
10910
- return /* @__PURE__ */ h(Fw, { ...o, ...r, ref: t });
10909
+ return /* @__PURE__ */ h(zw, { ...o, ...r, ref: t });
10911
10910
  }
10912
10911
  );
10913
- Ml.displayName = cE;
10914
- var is = "MenuSub", [lE, Pl] = Pt(is), kl = (e) => {
10912
+ Ml.displayName = iE;
10913
+ var is = "MenuSub", [cE, Pl] = Pt(is), kl = (e) => {
10915
10914
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Et(is, t), i = Mn(t), [a, c] = w.useState(null), [l, d] = w.useState(null), u = Je(o);
10916
10915
  return w.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ h(Xc, { ...i, children: /* @__PURE__ */ h(
10917
10916
  vl,
@@ -10922,7 +10921,7 @@ var is = "MenuSub", [lE, Pl] = Pt(is), kl = (e) => {
10922
10921
  content: l,
10923
10922
  onContentChange: d,
10924
10923
  children: /* @__PURE__ */ h(
10925
- lE,
10924
+ cE,
10926
10925
  {
10927
10926
  scope: t,
10928
10927
  contentId: yn(),
@@ -10997,7 +10996,7 @@ var rn = "MenuSubTrigger", Dl = w.forwardRef(
10997
10996
  ),
10998
10997
  onKeyDown: W(e.onKeyDown, (u) => {
10999
10998
  const g = s.searchRef.current !== "";
11000
- e.disabled || g && u.key === " " || V_[r.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
10999
+ e.disabled || g && u.key === " " || B_[r.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
11001
11000
  })
11002
11001
  }
11003
11002
  ) });
@@ -11030,7 +11029,7 @@ var $l = "MenuSubContent", Ll = w.forwardRef(
11030
11029
  i.onClose(), d.preventDefault();
11031
11030
  }),
11032
11031
  onKeyDown: W(e.onKeyDown, (d) => {
11033
- const u = d.currentTarget.contains(d.target), g = H_[i.dir].includes(d.key);
11032
+ const u = d.currentTarget.contains(d.target), g = V_[i.dir].includes(d.key);
11034
11033
  u && g && (s.onOpenChange(!1), a.trigger?.focus(), d.preventDefault());
11035
11034
  })
11036
11035
  }
@@ -11047,24 +11046,24 @@ function wr(e) {
11047
11046
  function cs(e) {
11048
11047
  return wr(e) ? "indeterminate" : e ? "checked" : "unchecked";
11049
11048
  }
11050
- function uE(e) {
11049
+ function lE(e) {
11051
11050
  const t = document.activeElement;
11052
11051
  for (const n of e)
11053
11052
  if (n === t || (n.focus(), document.activeElement !== t)) return;
11054
11053
  }
11055
- function dE(e, t) {
11054
+ function uE(e, t) {
11056
11055
  return e.map((n, r) => e[(t + r) % e.length]);
11057
11056
  }
11058
- function fE(e, t, n) {
11057
+ function dE(e, t, n) {
11059
11058
  const o = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
11060
- let i = dE(e, Math.max(s, 0));
11059
+ let i = uE(e, Math.max(s, 0));
11061
11060
  o.length === 1 && (i = i.filter((l) => l !== n));
11062
11061
  const c = i.find(
11063
11062
  (l) => l.toLowerCase().startsWith(o.toLowerCase())
11064
11063
  );
11065
11064
  return c !== n ? c : void 0;
11066
11065
  }
11067
- function pE(e, t) {
11066
+ function fE(e, t) {
11068
11067
  const { x: n, y: r } = e;
11069
11068
  let o = !1;
11070
11069
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -11073,18 +11072,18 @@ function pE(e, t) {
11073
11072
  }
11074
11073
  return o;
11075
11074
  }
11076
- function mE(e, t) {
11075
+ function pE(e, t) {
11077
11076
  if (!t) return !1;
11078
11077
  const n = { x: e.clientX, y: e.clientY };
11079
- return pE(n, t);
11078
+ return fE(n, t);
11080
11079
  }
11081
11080
  function wn(e) {
11082
11081
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
11083
11082
  }
11084
- var hE = yl, gE = ts, vE = wl, yE = _l, bE = ss, wE = El, _E = kr, EE = Cl, SE = Il, CE = Al, xE = Ol, IE = Nl, TE = Ml, AE = kl, RE = Dl, OE = Ll, Dr = "DropdownMenu", [NE] = An(
11083
+ var mE = yl, hE = ts, gE = wl, vE = _l, yE = ss, bE = El, wE = kr, _E = Cl, EE = Il, SE = Al, CE = Ol, xE = Nl, IE = Ml, TE = kl, AE = Dl, RE = Ll, Dr = "DropdownMenu", [OE] = An(
11085
11084
  Dr,
11086
11085
  [hl]
11087
- ), he = hl(), [ME, Fl] = NE(Dr), Zl = (e) => {
11086
+ ), he = hl(), [NE, Fl] = OE(Dr), Zl = (e) => {
11088
11087
  const {
11089
11088
  __scopeDropdownMenu: t,
11090
11089
  children: n,
@@ -11100,7 +11099,7 @@ var hE = yl, gE = ts, vE = wl, yE = _l, bE = ss, wE = El, _E = kr, EE = Cl, SE =
11100
11099
  caller: Dr
11101
11100
  });
11102
11101
  return /* @__PURE__ */ h(
11103
- ME,
11102
+ NE,
11104
11103
  {
11105
11104
  scope: t,
11106
11105
  triggerId: yn(),
@@ -11110,7 +11109,7 @@ var hE = yl, gE = ts, vE = wl, yE = _l, bE = ss, wE = El, _E = kr, EE = Cl, SE =
11110
11109
  onOpenChange: u,
11111
11110
  onOpenToggle: w.useCallback(() => u((g) => !g), [u]),
11112
11111
  modal: a,
11113
- children: /* @__PURE__ */ h(hE, { ...c, open: d, onOpenChange: u, dir: r, modal: a, children: n })
11112
+ children: /* @__PURE__ */ h(mE, { ...c, open: d, onOpenChange: u, dir: r, modal: a, children: n })
11114
11113
  }
11115
11114
  );
11116
11115
  };
@@ -11118,7 +11117,7 @@ Zl.displayName = Dr;
11118
11117
  var Ul = "DropdownMenuTrigger", jl = w.forwardRef(
11119
11118
  (e, t) => {
11120
11119
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Fl(Ul, n), i = he(n);
11121
- return /* @__PURE__ */ h(gE, { asChild: !0, ...i, children: /* @__PURE__ */ h(
11120
+ return /* @__PURE__ */ h(hE, { asChild: !0, ...i, children: /* @__PURE__ */ h(
11122
11121
  be.button,
11123
11122
  {
11124
11123
  type: "button",
@@ -11142,16 +11141,16 @@ var Ul = "DropdownMenuTrigger", jl = w.forwardRef(
11142
11141
  }
11143
11142
  );
11144
11143
  jl.displayName = Ul;
11145
- var PE = "DropdownMenuPortal", Bl = (e) => {
11144
+ var ME = "DropdownMenuPortal", Bl = (e) => {
11146
11145
  const { __scopeDropdownMenu: t, ...n } = e, r = he(t);
11147
- return /* @__PURE__ */ h(vE, { ...r, ...n });
11146
+ return /* @__PURE__ */ h(gE, { ...r, ...n });
11148
11147
  };
11149
- Bl.displayName = PE;
11148
+ Bl.displayName = ME;
11150
11149
  var Vl = "DropdownMenuContent", Hl = w.forwardRef(
11151
11150
  (e, t) => {
11152
11151
  const { __scopeDropdownMenu: n, ...r } = e, o = Fl(Vl, n), s = he(n), i = w.useRef(!1);
11153
11152
  return /* @__PURE__ */ h(
11154
- yE,
11153
+ vE,
11155
11154
  {
11156
11155
  id: o.contentId,
11157
11156
  "aria-labelledby": o.triggerId,
@@ -11178,76 +11177,76 @@ var Vl = "DropdownMenuContent", Hl = w.forwardRef(
11178
11177
  }
11179
11178
  );
11180
11179
  Hl.displayName = Vl;
11181
- var kE = "DropdownMenuGroup", DE = w.forwardRef(
11180
+ var PE = "DropdownMenuGroup", kE = w.forwardRef(
11182
11181
  (e, t) => {
11183
11182
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11184
- return /* @__PURE__ */ h(bE, { ...o, ...r, ref: t });
11183
+ return /* @__PURE__ */ h(yE, { ...o, ...r, ref: t });
11185
11184
  }
11186
11185
  );
11187
- DE.displayName = kE;
11188
- var $E = "DropdownMenuLabel", Wl = w.forwardRef(
11186
+ kE.displayName = PE;
11187
+ var DE = "DropdownMenuLabel", Wl = w.forwardRef(
11189
11188
  (e, t) => {
11190
11189
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11191
- return /* @__PURE__ */ h(wE, { ...o, ...r, ref: t });
11190
+ return /* @__PURE__ */ h(bE, { ...o, ...r, ref: t });
11192
11191
  }
11193
11192
  );
11194
- Wl.displayName = $E;
11195
- var LE = "DropdownMenuItem", Gl = w.forwardRef(
11193
+ Wl.displayName = DE;
11194
+ var $E = "DropdownMenuItem", Gl = w.forwardRef(
11196
11195
  (e, t) => {
11197
11196
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11198
- return /* @__PURE__ */ h(_E, { ...o, ...r, ref: t });
11197
+ return /* @__PURE__ */ h(wE, { ...o, ...r, ref: t });
11199
11198
  }
11200
11199
  );
11201
- Gl.displayName = LE;
11202
- var zE = "DropdownMenuCheckboxItem", FE = w.forwardRef((e, t) => {
11200
+ Gl.displayName = $E;
11201
+ var LE = "DropdownMenuCheckboxItem", zE = w.forwardRef((e, t) => {
11202
+ const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11203
+ return /* @__PURE__ */ h(_E, { ...o, ...r, ref: t });
11204
+ });
11205
+ zE.displayName = LE;
11206
+ var FE = "DropdownMenuRadioGroup", ZE = w.forwardRef((e, t) => {
11203
11207
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11204
11208
  return /* @__PURE__ */ h(EE, { ...o, ...r, ref: t });
11205
11209
  });
11206
- FE.displayName = zE;
11207
- var ZE = "DropdownMenuRadioGroup", UE = w.forwardRef((e, t) => {
11210
+ ZE.displayName = FE;
11211
+ var UE = "DropdownMenuRadioItem", jE = w.forwardRef((e, t) => {
11208
11212
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11209
11213
  return /* @__PURE__ */ h(SE, { ...o, ...r, ref: t });
11210
11214
  });
11211
- UE.displayName = ZE;
11212
- var jE = "DropdownMenuRadioItem", BE = w.forwardRef((e, t) => {
11215
+ jE.displayName = UE;
11216
+ var BE = "DropdownMenuItemIndicator", VE = w.forwardRef((e, t) => {
11213
11217
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11214
11218
  return /* @__PURE__ */ h(CE, { ...o, ...r, ref: t });
11215
11219
  });
11216
- BE.displayName = jE;
11217
- var VE = "DropdownMenuItemIndicator", HE = w.forwardRef((e, t) => {
11220
+ VE.displayName = BE;
11221
+ var HE = "DropdownMenuSeparator", Yl = w.forwardRef((e, t) => {
11218
11222
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11219
11223
  return /* @__PURE__ */ h(xE, { ...o, ...r, ref: t });
11220
11224
  });
11221
- HE.displayName = VE;
11222
- var WE = "DropdownMenuSeparator", Yl = w.forwardRef((e, t) => {
11223
- const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11224
- return /* @__PURE__ */ h(IE, { ...o, ...r, ref: t });
11225
- });
11226
- Yl.displayName = WE;
11227
- var GE = "DropdownMenuArrow", YE = w.forwardRef(
11225
+ Yl.displayName = HE;
11226
+ var WE = "DropdownMenuArrow", GE = w.forwardRef(
11228
11227
  (e, t) => {
11229
11228
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11230
- return /* @__PURE__ */ h(TE, { ...o, ...r, ref: t });
11229
+ return /* @__PURE__ */ h(IE, { ...o, ...r, ref: t });
11231
11230
  }
11232
11231
  );
11233
- YE.displayName = GE;
11234
- var JE = (e) => {
11232
+ GE.displayName = WE;
11233
+ var YE = (e) => {
11235
11234
  const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = he(t), [a, c] = qo({
11236
11235
  prop: r,
11237
11236
  defaultProp: s ?? !1,
11238
11237
  onChange: o,
11239
11238
  caller: "DropdownMenuSub"
11240
11239
  });
11241
- return /* @__PURE__ */ h(AE, { ...i, open: a, onOpenChange: c, children: n });
11242
- }, KE = "DropdownMenuSubTrigger", Jl = w.forwardRef((e, t) => {
11240
+ return /* @__PURE__ */ h(TE, { ...i, open: a, onOpenChange: c, children: n });
11241
+ }, JE = "DropdownMenuSubTrigger", Jl = w.forwardRef((e, t) => {
11243
11242
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11244
- return /* @__PURE__ */ h(RE, { ...o, ...r, ref: t });
11243
+ return /* @__PURE__ */ h(AE, { ...o, ...r, ref: t });
11245
11244
  });
11246
- Jl.displayName = KE;
11247
- var XE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
11245
+ Jl.displayName = JE;
11246
+ var KE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
11248
11247
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11249
11248
  return /* @__PURE__ */ h(
11250
- OE,
11249
+ RE,
11251
11250
  {
11252
11251
  ...o,
11253
11252
  ...r,
@@ -11263,8 +11262,8 @@ var XE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
11263
11262
  }
11264
11263
  );
11265
11264
  });
11266
- Kl.displayName = XE;
11267
- var qE = Zl, QE = jl, Xl = Bl, eS = Hl, tS = Wl, ja = Gl, nS = Yl, rS = JE, oS = Jl, sS = Kl;
11265
+ Kl.displayName = KE;
11266
+ var XE = Zl, qE = jl, Xl = Bl, QE = Hl, eS = Wl, ja = Gl, tS = Yl, nS = YE, rS = Jl, oS = Kl;
11268
11267
  const Ba = (e) => {
11269
11268
  if (typeof e == "string")
11270
11269
  return e;
@@ -11277,7 +11276,7 @@ const Ba = (e) => {
11277
11276
  }
11278
11277
  return "Element";
11279
11278
  };
11280
- const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 prose prose-dark", iS = "z-[60] rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 mx-3", cS = U("flex items-center flex-row justify-between", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-[state=open]:bg-surface-lighter"), lS = (e) => e ? e.startsWith("top") ? "top" : e.startsWith("left") ? "left" : e.startsWith("right") ? "right" : "bottom" : "bottom", uS = (e) => !e || e.endsWith("-start") ? "start" : e.endsWith("-end") ? "end" : "center", $r = ({ trigger: e, children: t, label: n = "Open menu", defaultPlacement: r = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", sideOffset: a = 10, modal: c = !0 }) => {
11279
+ const sS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 prose prose-dark", aS = "z-[60] rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 mx-3", iS = U("flex items-center flex-row justify-between", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-[state=open]:bg-surface-lighter"), cS = (e) => e ? e.startsWith("top") ? "top" : e.startsWith("left") ? "left" : e.startsWith("right") ? "right" : "bottom" : "bottom", lS = (e) => !e || e.endsWith("-start") ? "start" : e.endsWith("-end") ? "end" : "center", $r = ({ trigger: e, children: t, label: n = "Open menu", defaultPlacement: r = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", sideOffset: a = 10, modal: c = !0 }) => {
11281
11280
  const [l, d] = B(!1), [u, g] = B(void 0), m = Ba(e) === "Button" || Ba(e) === "ButtonIcon", p = m ? {
11282
11281
  noInternalClick: m,
11283
11282
  focusMode: i,
@@ -11287,7 +11286,7 @@ const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
11287
11286
  "aria-label": n,
11288
11287
  ref: f
11289
11288
  }) : null;
11290
- return /* @__PURE__ */ z(qE, {
11289
+ return /* @__PURE__ */ z(XE, {
11291
11290
  onOpenChange: (_) => {
11292
11291
  if (d(_), o?.(_), _ && f.current) {
11293
11292
  const v = f.current.closest("dialog");
@@ -11302,18 +11301,18 @@ const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
11302
11301
  },
11303
11302
  modal: c,
11304
11303
  children: [
11305
- /* @__PURE__ */ h(QE, {
11304
+ /* @__PURE__ */ h(qE, {
11306
11305
  asChild: !0,
11307
11306
  "data-state": l ? "open" : "closed",
11308
11307
  children: y
11309
11308
  }),
11310
11309
  /* @__PURE__ */ h(Xl, {
11311
11310
  container: u,
11312
- children: /* @__PURE__ */ h(eS, {
11313
- className: aS,
11311
+ children: /* @__PURE__ */ h(QE, {
11312
+ className: sS,
11314
11313
  sideOffset: a,
11315
- side: lS(r),
11316
- align: uS(r),
11314
+ side: cS(r),
11315
+ align: lS(r),
11317
11316
  loop: !0,
11318
11317
  children: t
11319
11318
  })
@@ -11322,10 +11321,10 @@ const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
11322
11321
  });
11323
11322
  };
11324
11323
  $r.displayName = "DropdownMenu";
11325
- const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ z(rS, {
11324
+ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ z(nS, {
11326
11325
  children: [
11327
- /* @__PURE__ */ z(oS, {
11328
- className: cS,
11326
+ /* @__PURE__ */ z(rS, {
11327
+ className: iS,
11329
11328
  disabled: r,
11330
11329
  children: [
11331
11330
  /* @__PURE__ */ z("span", {
@@ -11346,8 +11345,8 @@ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
11346
11345
  ]
11347
11346
  }),
11348
11347
  /* @__PURE__ */ h(Xl, {
11349
- children: /* @__PURE__ */ h(sS, {
11350
- className: iS,
11348
+ children: /* @__PURE__ */ h(oS, {
11349
+ className: aS,
11351
11350
  sideOffset: o,
11352
11351
  alignOffset: s,
11353
11352
  loop: !0,
@@ -11359,7 +11358,7 @@ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
11359
11358
  ql.displayName = "DropdownMenuSub";
11360
11359
  const Ql = ({ className: e, ...t }) => {
11361
11360
  const n = U(e, "my-1 border-t border-border-medium");
11362
- return /* @__PURE__ */ h(nS, {
11361
+ return /* @__PURE__ */ h(tS, {
11363
11362
  className: n,
11364
11363
  ...t
11365
11364
  });
@@ -11367,7 +11366,7 @@ const Ql = ({ className: e, ...t }) => {
11367
11366
  Ql.displayName = "DropdownMenuSeparator";
11368
11367
  const _r = ({ className: e, icon: t, children: n, ...r }) => {
11369
11368
  const o = U(e, "pt-1 pb-2 mb-2", "text-sm text-copy-dark font-bold", "border-b border-border-medium", t && "flex items-center");
11370
- return /* @__PURE__ */ z(tS, {
11369
+ return /* @__PURE__ */ z(eS, {
11371
11370
  className: o,
11372
11371
  ...r,
11373
11372
  children: [
@@ -11380,7 +11379,7 @@ const _r = ({ className: e, icon: t, children: n, ...r }) => {
11380
11379
  });
11381
11380
  };
11382
11381
  _r.displayName = "DropdownMenuGroupLabel";
11383
- const dS = U("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-disabled:cursor-not-allowed data-disabled:text-copy-medium"), Pe = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
11382
+ const uS = U("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-disabled:cursor-not-allowed data-disabled:text-copy-medium"), Pe = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
11384
11383
  let u = "";
11385
11384
  if (r && o)
11386
11385
  return /* @__PURE__ */ h(ja, {
@@ -11392,7 +11391,7 @@ const dS = U("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
11392
11391
  children: o
11393
11392
  });
11394
11393
  n && (u = "pl-2");
11395
- const g = U(dS, {
11394
+ const g = U(uS, {
11396
11395
  "bg-none": !t && !i
11397
11396
  });
11398
11397
  return /* @__PURE__ */ z(ja, {
@@ -11421,12 +11420,12 @@ const dS = U("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
11421
11420
  });
11422
11421
  };
11423
11422
  Pe.displayName = "DropdownMenuItem";
11424
- const fS = (e) => {
11423
+ const dS = (e) => {
11425
11424
  for (let t = 0; t < e.length; t++)
11426
11425
  if (e[t].enabled)
11427
11426
  return !0;
11428
11427
  return !1;
11429
- }, pS = ({
11428
+ }, fS = ({
11430
11429
  className: e,
11431
11430
  defaultPlacement: t = "top-start"
11432
11431
  }) => {
@@ -11445,7 +11444,7 @@ const fS = (e) => {
11445
11444
  prompt: f
11446
11445
  }
11447
11446
  });
11448
- }, m = u && d && d.tags && fS(d.tags), p = /* @__PURE__ */ z(
11447
+ }, m = u && d && d.tags && dS(d.tags), p = /* @__PURE__ */ z(
11449
11448
  $r,
11450
11449
  {
11451
11450
  mode: "light",
@@ -11507,7 +11506,7 @@ const fS = (e) => {
11507
11506
  trigger: p
11508
11507
  }
11509
11508
  ) : /* @__PURE__ */ h("div", { className: e, children: p });
11510
- }, mS = ({
11509
+ }, pS = ({
11511
11510
  className: e
11512
11511
  }) => {
11513
11512
  const {
@@ -11607,7 +11606,7 @@ const fS = (e) => {
11607
11606
  }
11608
11607
  )
11609
11608
  ] });
11610
- }, hS = ({
11609
+ }, mS = ({
11611
11610
  className: e
11612
11611
  }) => {
11613
11612
  const { getAccessToken: t, user: n } = $e(), {
@@ -11645,7 +11644,7 @@ const fS = (e) => {
11645
11644
  }
11646
11645
  );
11647
11646
  };
11648
- function gS(e) {
11647
+ function hS(e) {
11649
11648
  const [t, n] = B(
11650
11649
  () => Va()
11651
11650
  );
@@ -11661,7 +11660,7 @@ function Va() {
11661
11660
  const e = (/* @__PURE__ */ new Date()).getHours();
11662
11661
  return e >= 5 && e < 11 ? td : e >= 11 && e < 12 ? nd : e >= 12 && e < 17 ? rd : e >= 17 && e < 21 ? od : e >= 21 && e < 24 ? sd : ad;
11663
11662
  }
11664
- const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11663
+ const gS = [".png", ".jpg", ".jpeg", ".webp"], vS = [".pdf", ".txt"], yS = [
11665
11664
  ".js",
11666
11665
  ".cjs",
11667
11666
  ".mjs",
@@ -11676,28 +11675,28 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11676
11675
  ".json",
11677
11676
  ".md"
11678
11677
  ], It = [
11678
+ ...vS,
11679
11679
  ...yS,
11680
- ...bS,
11681
- ...vS
11682
- ], ko = 400 * 1024, wS = "text/plain", or = (e) => {
11680
+ ...gS
11681
+ ], ko = 400 * 1024, bS = "text/plain", or = (e) => {
11683
11682
  if (e === 0)
11684
11683
  return "0 Bytes";
11685
11684
  const t = 1024, n = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
11686
11685
  return parseFloat((e / Math.pow(t, r)).toFixed(2)) + " " + n[r];
11687
- }, eu = (e) => e.reduce((t, n) => t + n.size, 0), _S = (e) => e.type ? e : new File(
11686
+ }, eu = (e) => e.reduce((t, n) => t + n.size, 0), wS = (e) => e.type ? e : new File(
11688
11687
  [e],
11689
11688
  // Use the original file content
11690
11689
  e.name,
11691
11690
  {
11692
- type: wS,
11691
+ type: bS,
11693
11692
  lastModified: e.lastModified
11694
11693
  }
11695
- ), ES = () => dt(
11694
+ ), _S = () => dt(
11696
11695
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
11697
- ), SS = ({ oledMode: e }) => dt({
11696
+ ), ES = ({ oledMode: e }) => dt({
11698
11697
  "bg-surface-darker/95 dark:bg-surface-darker": e,
11699
11698
  "bg-surface-darker": !e
11700
- }), CS = () => dt("text-copy-lighter caret-copy-light"), xS = ({ oledMode: e }) => dt(
11699
+ }), SS = () => dt("text-copy-lighter caret-copy-light"), CS = ({ oledMode: e }) => dt(
11701
11700
  "has-[.av-prompt-editable:focus]:outline",
11702
11701
  "has-[.av-prompt-editable:focus]:outline-2",
11703
11702
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -11705,7 +11704,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11705
11704
  "has-[.av-prompt-editable:focus]:outline-focus-light": !e,
11706
11705
  "dark:has-[.av-prompt-editable:focus]:outline-focus-light has-[.av-prompt-editable:focus]:outline-focus-dark": e
11707
11706
  }
11708
- ), IS = (e) => dt(
11707
+ ), xS = (e) => dt(
11709
11708
  "peer",
11710
11709
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
11711
11710
  "h-6 pr-2 pl-3",
@@ -11713,22 +11712,22 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11713
11712
  "sm:placeholder:text-sm",
11714
11713
  "transition-all duration-300 ease-out",
11715
11714
  e
11716
- ), TS = ({
11715
+ ), IS = ({
11717
11716
  oledMode: e,
11718
11717
  placeholderColor: t
11719
11718
  }) => ({
11720
11719
  wrapper: dt(
11721
11720
  vu,
11722
- SS({ oledMode: e }),
11723
- ES(),
11724
- CS(),
11725
- xS({ oledMode: e })
11721
+ ES({ oledMode: e }),
11722
+ _S(),
11723
+ SS(),
11724
+ CS({ oledMode: e })
11726
11725
  ),
11727
11726
  textArea: dt(
11728
11727
  gu,
11729
- IS(t)
11728
+ xS(t)
11730
11729
  )
11731
- }), AS = ({
11730
+ }), TS = ({
11732
11731
  files: e,
11733
11732
  clearFile: t
11734
11733
  }) => e && e.length > 0 && /* @__PURE__ */ z("div", { className: "px-4 py-2", children: [
@@ -11767,7 +11766,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11767
11766
  " ",
11768
11767
  or(ko)
11769
11768
  ] })
11770
- ] }), ls = 1200, tu = 200 * 1024, RS = 0.85, Ha = 0.5, OS = 0.1, NS = ["image/jpeg", "image/webp"], MS = ["image/png", "image/jpeg", "image/webp"], nu = (e) => MS.includes(e.type), PS = (e, t, n = ls) => {
11769
+ ] }), ls = 1200, tu = 200 * 1024, AS = 0.85, Ha = 0.5, RS = 0.1, OS = ["image/jpeg", "image/webp"], NS = ["image/png", "image/jpeg", "image/webp"], nu = (e) => NS.includes(e.type), MS = (e, t, n = ls) => {
11771
11770
  if (e <= n && t <= n)
11772
11771
  return { width: e, height: t };
11773
11772
  const r = e / t;
@@ -11778,14 +11777,14 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11778
11777
  width: Math.round(n * r),
11779
11778
  height: n
11780
11779
  };
11781
- }, kS = (e) => new Promise((t, n) => {
11780
+ }, PS = (e) => new Promise((t, n) => {
11782
11781
  const r = new Image(), o = URL.createObjectURL(e);
11783
11782
  r.onload = () => {
11784
11783
  URL.revokeObjectURL(o), t(r);
11785
11784
  }, r.onerror = () => {
11786
11785
  URL.revokeObjectURL(o), n(new Error(`Failed to load image: ${e.name}`));
11787
11786
  }, r.src = o;
11788
- }), DS = (e, t, n) => new Promise((r, o) => {
11787
+ }), kS = (e, t, n) => new Promise((r, o) => {
11789
11788
  e.toBlob(
11790
11789
  (s) => {
11791
11790
  s ? r(s) : o(new Error("Failed to convert canvas to blob"));
@@ -11793,11 +11792,11 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11793
11792
  t,
11794
11793
  n
11795
11794
  );
11796
- }), $S = (e) => e === "image/png" ? "image/jpeg" : e, LS = async (e, t = tu, n = ls) => {
11795
+ }), DS = (e) => e === "image/png" ? "image/jpeg" : e, $S = async (e, t = tu, n = ls) => {
11797
11796
  if (!nu(e) || e.size <= t)
11798
11797
  return e;
11799
11798
  try {
11800
- const r = await kS(e), { width: o, height: s } = PS(
11799
+ const r = await PS(e), { width: o, height: s } = MS(
11801
11800
  r.naturalWidth,
11802
11801
  r.naturalHeight,
11803
11802
  n
@@ -11807,16 +11806,16 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11807
11806
  if (!a)
11808
11807
  return e;
11809
11808
  a.fillStyle = "#FFFFFF", a.fillRect(0, 0, o, s), a.drawImage(r, 0, 0, o, s);
11810
- const c = $S(e.type), l = NS.includes(c);
11811
- let d = RS, u;
11809
+ const c = DS(e.type), l = OS.includes(c);
11810
+ let d = AS, u;
11812
11811
  do {
11813
- if (u = await DS(
11812
+ if (u = await kS(
11814
11813
  i,
11815
11814
  c,
11816
11815
  l ? d : 1
11817
11816
  ), u.size <= t || d <= Ha)
11818
11817
  break;
11819
- d -= OS;
11818
+ d -= RS;
11820
11819
  } while (d >= Ha);
11821
11820
  if (u.size >= e.size)
11822
11821
  return e;
@@ -11832,11 +11831,11 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11832
11831
  } catch (r) {
11833
11832
  return console.warn("Image compression failed, using original file:", r), e;
11834
11833
  }
11835
- }, zS = async (e, t = tu, n = ls) => await Promise.all(
11836
- e.map((o) => nu(o) ? LS(o, t, n) : Promise.resolve(o))
11837
- ), ru = 24, FS = 500, ou = 1, ZS = 5, US = ru * ou, Wa = ZS * ru, jS = "ready", BS = "streaming", VS = "error", HS = "submitted", Yn = (e) => {
11838
- e.current && (e.current.style.height = `${US}px`);
11839
- }, WS = () => {
11834
+ }, LS = async (e, t = tu, n = ls) => await Promise.all(
11835
+ e.map((o) => nu(o) ? $S(o, t, n) : Promise.resolve(o))
11836
+ ), ru = 24, zS = 500, ou = 1, FS = 5, ZS = ru * ou, Wa = FS * ru, US = "ready", jS = "streaming", BS = "error", VS = "submitted", Yn = (e) => {
11837
+ e.current && (e.current.style.height = `${ZS}px`);
11838
+ }, HS = () => {
11840
11839
  const { user: e, getAccessToken: t } = $e(), n = gr(ar.ADDON.ATTACHMENTS), r = gr(ar.ADDON.REASONING), { allowedModels: o } = Do(), [s, i] = B(null), [a, c] = B(!1), [l, d] = B(!1), {
11841
11840
  state: { oledMode: u }
11842
11841
  } = de(En), {
@@ -11853,7 +11852,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11853
11852
  } = de(Le), { state: E, dispatch: S } = de($o), { data: I } = bt({
11854
11853
  user: e?.username,
11855
11854
  getAccessToken: t
11856
- }), x = J(null), T = J(null), P = J(!1), $ = J(0), V = J(0), M = J(null), R = J(null), L = cd(), [Q, j] = Ke(), q = TS({
11855
+ }), x = J(null), T = J(null), P = J(!1), $ = J(0), V = J(0), M = J(null), R = J(null), L = cd(), [Q, j] = Ke(), q = IS({
11857
11856
  oledMode: u,
11858
11857
  placeholderColor: Q(j.Placeholder)
11859
11858
  }), k = r && I?.showReasoningButton, { setMessages: O, status: ie, id: Ie, sendMessage: ze, input: me, setInput: Ee, messages: kt } = wt({
@@ -11866,7 +11865,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11866
11865
  }
11867
11866
  });
11868
11867
  }
11869
- }), qe = gS(!!kt.length), ce = Y(
11868
+ }), qe = hS(!!kt.length), ce = Y(
11870
11869
  (G) => {
11871
11870
  Ee(G.target.value);
11872
11871
  },
@@ -11906,25 +11905,25 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11906
11905
  ]
11907
11906
  ), kn = Y(
11908
11907
  async (G) => {
11909
- G === jS && g({
11908
+ G === US && g({
11910
11909
  type: Rt,
11911
11910
  payload: {
11912
11911
  loading: !1,
11913
11912
  streaming: !1
11914
11913
  }
11915
- }), G === HS && g({
11914
+ }), G === VS && g({
11916
11915
  type: Rt,
11917
11916
  payload: {
11918
11917
  loading: !0,
11919
11918
  streaming: !1
11920
11919
  }
11921
- }), G === BS && g({
11920
+ }), G === jS && g({
11922
11921
  type: Rt,
11923
11922
  payload: {
11924
11923
  loading: !1,
11925
11924
  streaming: !0
11926
11925
  }
11927
- }), G === VS && setTimeout(() => {
11926
+ }), G === BS && setTimeout(() => {
11928
11927
  f || (g({
11929
11928
  type: Rt,
11930
11929
  payload: {
@@ -11973,7 +11972,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
11973
11972
  x.current = `Only ${Oe} files are allowed.`, c(!0);
11974
11973
  return;
11975
11974
  }
11976
- const xt = await zS($t);
11975
+ const xt = await LS($t);
11977
11976
  if (eu(xt) > ko) {
11978
11977
  x.current = `Total file size exceeds the limit of ${or(
11979
11978
  ko
@@ -12012,7 +12011,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12012
12011
  let ue;
12013
12012
  if (s && s.length > 0) {
12014
12013
  const $t = Array.from(s).map(
12015
- (xt) => _S(xt)
12014
+ (xt) => wS(xt)
12016
12015
  ), Ct = new DataTransfer();
12017
12016
  $t.forEach((xt) => Ct.items.add(xt)), ue = Ct.files;
12018
12017
  }
@@ -12057,7 +12056,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12057
12056
  const G = Date.now() - V.current < 600;
12058
12057
  !me && !G && Yn(R), R.current.focus();
12059
12058
  }
12060
- }, FS)) : p === !1 && !me && (Yn(R), !We() && R.current && R.current.focus());
12059
+ }, zS)) : p === !1 && !me && (Yn(R), !We() && R.current && R.current.focus());
12061
12060
  }, [y, p, me]), Z(() => {
12062
12061
  Date.now() - V.current < 200 && me && requestAnimationFrame(() => {
12063
12062
  Xt();
@@ -12094,7 +12093,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12094
12093
  translate: "no",
12095
12094
  onChange: lu,
12096
12095
  value: me,
12097
- onKeyDown: iy([
12096
+ onKeyDown: ay([
12098
12097
  [l ? "enter" : "mod+Enter", ds]
12099
12098
  ]),
12100
12099
  className: q.textArea,
@@ -12114,11 +12113,11 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12114
12113
  }
12115
12114
  )
12116
12115
  ] }),
12117
- /* @__PURE__ */ h(AS, { files: s, clearFile: Dt }),
12116
+ /* @__PURE__ */ h(TS, { files: s, clearFile: Dt }),
12118
12117
  /* @__PURE__ */ z("div", { className: "p-2 flex items-center", children: [
12119
- /* @__PURE__ */ h(hS, { className: "order-7 ml-auto" }),
12118
+ /* @__PURE__ */ h(mS, { className: "order-7 ml-auto" }),
12120
12119
  /* @__PURE__ */ h(
12121
- gb,
12120
+ hb,
12122
12121
  {
12123
12122
  className: U("order-1 sm:mr-2", {
12124
12123
  "mr-3": k,
@@ -12127,7 +12126,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12127
12126
  }
12128
12127
  ),
12129
12128
  /* @__PURE__ */ h(
12130
- pS,
12129
+ fS,
12131
12130
  {
12132
12131
  className: U("order-2 sm:mr-2", {
12133
12132
  "mr-3": k,
@@ -12136,7 +12135,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12136
12135
  }
12137
12136
  ),
12138
12137
  n && /* @__PURE__ */ h(
12139
- hb,
12138
+ mb,
12140
12139
  {
12141
12140
  className: U("order-3 sm:mr-2", {
12142
12141
  "mr-3": k,
@@ -12145,9 +12144,9 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12145
12144
  onClick: zr
12146
12145
  }
12147
12146
  ),
12148
- k && /* @__PURE__ */ h(mS, { className: U("order-4 mr-3 sm:mr-2") }),
12147
+ k && /* @__PURE__ */ h(pS, { className: U("order-4 mr-3 sm:mr-2") }),
12149
12148
  /* @__PURE__ */ h(
12150
- Ub,
12149
+ Zb,
12151
12150
  {
12152
12151
  className: U("order-5 mr-3 sm:mr-2", {
12153
12152
  "mr-3": k,
@@ -12158,7 +12157,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12158
12157
  ] })
12159
12158
  ] }) })
12160
12159
  ] });
12161
- }, Jn = "--sassy-bottom", GS = ({ isComponent: e }) => {
12160
+ }, Jn = "--sassy-bottom", WS = ({ isComponent: e }) => {
12162
12161
  const {
12163
12162
  state: { loading: t, streaming: n, restoring: r }
12164
12163
  } = de(Le), {
@@ -12166,7 +12165,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12166
12165
  dispatch: a
12167
12166
  } = de(En), [c] = B(
12168
12167
  () => vs[Math.floor(Math.random() * vs.length)]
12169
- ), l = Ae(() => We(), []), d = Ae(() => Yd(), []), { messages: u } = wt(), [g, m] = ai(), [p, f] = Ke(), y = oy(d), { height: b } = ey(), { height: _ } = ty(), v = d ? 0 : b - _, E = Ae(() => {
12168
+ ), l = Ae(() => We(), []), d = Ae(() => Yd(), []), { messages: u } = wt(), [g, m] = ai(), [p, f] = Ke(), y = ry(d), { height: b } = Qv(), { height: _ } = ey(), v = d ? 0 : b - _, E = Ae(() => {
12170
12169
  const S = l ? wu : d ? _u : Qa;
12171
12170
  return l ? v > 70 && v < 500 ? Ur / 2 : S : d ? y ? Ur : S : v > 0 && v < 100 ? Ur : S;
12172
12171
  }, [v, l, d, y]);
@@ -12231,13 +12230,13 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12231
12230
  className: U(
12232
12231
  "border-transparent mt-5",
12233
12232
  "bottom-(--sassy-bottom)",
12234
- ny,
12233
+ ty,
12235
12234
  {
12236
12235
  "transition-all duration-300 ease-in-out": d
12237
12236
  }
12238
12237
  ),
12239
12238
  children: /* @__PURE__ */ z("div", { className: po({ fullScreen: i }), children: [
12240
- /* @__PURE__ */ h(WS, {}),
12239
+ /* @__PURE__ */ h(HS, {}),
12241
12240
  /* @__PURE__ */ h(
12242
12241
  "div",
12243
12242
  {
@@ -12267,14 +12266,14 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12267
12266
  label: "Google Gemini",
12268
12267
  icon: fd
12269
12268
  }
12270
- ], YS = ({ className: e }) => {
12269
+ ], GS = ({ className: e }) => {
12271
12270
  const {
12272
12271
  dispatch: t,
12273
12272
  state: { privateChat: n },
12274
12273
  setChatId: r,
12275
12274
  setInitialMessages: o
12276
12275
  } = de(Le), { getAccessToken: s, user: i } = $e(), { status: a } = wt(), { allowedModels: c, status: l } = Do(), [d, u] = Ke(), [g, m] = B(!1), p = Y(() => {
12277
- g || (Zv(), m(!0));
12276
+ g || (Fv(), m(!0));
12278
12277
  }, [g]), {
12279
12278
  isSuccess: f,
12280
12279
  refetch: y,
@@ -12426,73 +12425,73 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12426
12425
  }
12427
12426
  )
12428
12427
  ] }) : /* @__PURE__ */ h("div", { className: e, children: $ });
12429
- }, JS = ot(
12428
+ }, YS = ot(
12430
12429
  () => import(
12431
12430
  /* webpackChunkName: "modal-chunk" */
12432
- "./ProfileEntry.DWVYl6vU.js"
12431
+ "./ProfileEntry.3BYJrVIt.js"
12433
12432
  ).then((e) => ({
12434
12433
  default: e.Profile
12435
12434
  }))
12436
- ), KS = ot(
12435
+ ), JS = ot(
12437
12436
  () => import(
12438
12437
  /* webpackChunkName: "modal-chunk" */
12439
- "./SettingsEntry.qPh6dhcd.js"
12438
+ "./SettingsEntry.C6nWCZpc.js"
12440
12439
  ).then((e) => ({
12441
12440
  default: e.SettingsPanel
12442
12441
  }))
12443
- ), XS = ot(
12442
+ ), KS = ot(
12444
12443
  () => import(
12445
12444
  /* webpackChunkName: "modal-chunk" */
12446
- "./HistoryEntry.BbWinMPG.js"
12445
+ "./HistoryEntry.C8Ld2sD4.js"
12447
12446
  ).then((e) => ({
12448
12447
  default: e.HistoryPanel
12449
12448
  }))
12450
- ), qS = ot(
12449
+ ), XS = ot(
12451
12450
  () => import(
12452
12451
  /* webpackChunkName: "modal-chunk" */
12453
- "./AboutEntry.UmqlpC-6.js"
12452
+ "./AboutEntry.BALXq3uG.js"
12454
12453
  ).then((e) => ({ default: e.About }))
12455
- ), QS = ot(
12454
+ ), qS = ot(
12456
12455
  () => import(
12457
12456
  /* webpackChunkName: "modal-chunk" */
12458
- "./UsageEntry.C60Nsx8M.js"
12457
+ "./UsageEntry.Dd-xUxjd.js"
12459
12458
  ).then((e) => ({ default: e.Usage }))
12460
- ), e0 = ot(
12459
+ ), QS = ot(
12461
12460
  () => import(
12462
12461
  /* webpackChunkName: "modal-chunk" */
12463
- "./MemoriesEntry.B8Jduj0p.js"
12462
+ "./MemoriesEntry.BEXE9loJ.js"
12464
12463
  ).then((e) => ({ default: e.default }))
12465
- ), t0 = ({
12464
+ ), e0 = ({
12466
12465
  open: e,
12467
12466
  onOpenChange: t
12468
12467
  }) => {
12469
12468
  const { user: n } = $e();
12470
12469
  return /* @__PURE__ */ h(
12471
- e0,
12470
+ QS,
12472
12471
  {
12473
12472
  open: e,
12474
12473
  onOpenChange: t,
12475
12474
  user: n?.username
12476
12475
  }
12477
12476
  );
12478
- }, n0 = ({ type: e, open: t, onOpenChange: n }) => t ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("div", {}), children: (() => {
12477
+ }, t0 = ({ type: e, open: t, onOpenChange: n }) => t ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("div", {}), children: (() => {
12479
12478
  switch (e) {
12480
12479
  case "profile":
12481
- return /* @__PURE__ */ h(JS, { open: t, onOpenChange: n });
12480
+ return /* @__PURE__ */ h(YS, { open: t, onOpenChange: n });
12482
12481
  case "settings":
12483
- return /* @__PURE__ */ h(KS, { open: t, onOpenChange: n });
12482
+ return /* @__PURE__ */ h(JS, { open: t, onOpenChange: n });
12484
12483
  case "history":
12485
- return /* @__PURE__ */ h(XS, { open: t, onOpenChange: n });
12484
+ return /* @__PURE__ */ h(KS, { open: t, onOpenChange: n });
12486
12485
  case "about":
12487
- return /* @__PURE__ */ h(qS, { open: t, onOpenChange: n });
12486
+ return /* @__PURE__ */ h(XS, { open: t, onOpenChange: n });
12488
12487
  case "usage":
12489
- return /* @__PURE__ */ h(QS, { open: t, onOpenChange: n });
12488
+ return /* @__PURE__ */ h(qS, { open: t, onOpenChange: n });
12490
12489
  case "memories":
12491
- return /* @__PURE__ */ h(t0, { open: t, onOpenChange: n });
12490
+ return /* @__PURE__ */ h(e0, { open: t, onOpenChange: n });
12492
12491
  default:
12493
12492
  return null;
12494
12493
  }
12495
- })() }) : null, r0 = ({
12494
+ })() }) : null, n0 = ({
12496
12495
  isComponent: e = !1
12497
12496
  }) => {
12498
12497
  const {
@@ -12508,23 +12507,23 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12508
12507
  p || Promise.all([
12509
12508
  import(
12510
12509
  /* webpackChunkName: "modal-chunk" */
12511
- "./ProfileEntry.DWVYl6vU.js"
12510
+ "./ProfileEntry.3BYJrVIt.js"
12512
12511
  ),
12513
12512
  import(
12514
12513
  /* webpackChunkName: "modal-chunk" */
12515
- "./SettingsEntry.qPh6dhcd.js"
12514
+ "./SettingsEntry.C6nWCZpc.js"
12516
12515
  ),
12517
12516
  import(
12518
12517
  /* webpackChunkName: "modal-chunk" */
12519
- "./HistoryEntry.BbWinMPG.js"
12518
+ "./HistoryEntry.C8Ld2sD4.js"
12520
12519
  ),
12521
12520
  import(
12522
12521
  /* webpackChunkName: "modal-chunk" */
12523
- "./AboutEntry.UmqlpC-6.js"
12522
+ "./AboutEntry.BALXq3uG.js"
12524
12523
  ),
12525
12524
  import(
12526
12525
  /* webpackChunkName: "modal-chunk" */
12527
- "./UsageEntry.C60Nsx8M.js"
12526
+ "./UsageEntry.Dd-xUxjd.js"
12528
12527
  )
12529
12528
  ]).finally(() => f(!0));
12530
12529
  }, [p]), E = Y((P) => {
@@ -12571,7 +12570,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12571
12570
  }
12572
12571
  ),
12573
12572
  /* @__PURE__ */ h(
12574
- n0,
12573
+ t0,
12575
12574
  {
12576
12575
  type: d,
12577
12576
  open: d !== null,
@@ -12586,7 +12585,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12586
12585
  "bg-surface-darker/95 dark:bg-surface-darker": t
12587
12586
  }),
12588
12587
  children: /* @__PURE__ */ z("div", { className: "flex flex-wrap justify-between items-center", children: [
12589
- /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ h(YS, { className: "mr-2" }) }),
12588
+ /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ h(GS, { className: "mr-2" }) }),
12590
12589
  /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ h(
12591
12590
  _t,
12592
12591
  {
@@ -12680,7 +12679,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
12680
12679
  )
12681
12680
  ] });
12682
12681
  };
12683
- function o0() {
12682
+ function r0() {
12684
12683
  const e = J(null), [t, n] = B(!1);
12685
12684
  return {
12686
12685
  ref: Y((o) => {
@@ -12689,7 +12688,7 @@ function o0() {
12689
12688
  inViewport: t
12690
12689
  };
12691
12690
  }
12692
- const s0 = ({
12691
+ const o0 = ({
12693
12692
  show: e,
12694
12693
  bottom: t,
12695
12694
  onClick: n,
@@ -12699,7 +12698,7 @@ const s0 = ({
12699
12698
  {
12700
12699
  style: { bottom: `${t}px` },
12701
12700
  className: r || U(
12702
- ry,
12701
+ ny,
12703
12702
  "fixed left-1/2 transform -translate-x-1/2 isolate",
12704
12703
  "transition-all duration-300 ease-in-out"
12705
12704
  ),
@@ -12782,21 +12781,21 @@ const Ga = "av-spinner", su = ({ spinnerRef: e, mode: t = "system", type: n = "c
12782
12781
  })
12783
12782
  ]
12784
12783
  });
12785
- }, a0 = ot(
12786
- () => import("./Bubble.Bzb0yWg5.js").then((e) => ({ default: e.Bubble }))
12787
- ), us = (e) => /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", { className: "inline-block" }), children: /* @__PURE__ */ h(a0, { ...e }) });
12784
+ }, s0 = ot(
12785
+ () => import("./Bubble.CjFOupdI.js").then((e) => ({ default: e.Bubble }))
12786
+ ), us = (e) => /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", { className: "inline-block" }), children: /* @__PURE__ */ h(s0, { ...e }) });
12788
12787
  us.displayName = "AsyncBubble";
12789
- const Ya = 1, i0 = 150, c0 = ot(
12788
+ const Ya = 1, a0 = 150, i0 = ot(
12790
12789
  () => import(
12791
12790
  /* webpackChunkName: "LazyMessageAssistant" */
12792
- "./ChatBubbleAssistant.B52zcfCw.js"
12791
+ "./ChatBubbleAssistant.Iepb3p0t.js"
12793
12792
  )
12794
- ), l0 = ot(
12793
+ ), c0 = ot(
12795
12794
  () => import(
12796
12795
  /* webpackChunkName: "LazyMessageUser" */
12797
- "./ChatBubbleUser.CHmdyTg5.js"
12796
+ "./ChatBubbleUser.BfkYxwnc.js"
12798
12797
  )
12799
- ), u0 = Ze.memo(
12798
+ ), l0 = Ze.memo(
12800
12799
  ({
12801
12800
  role: e,
12802
12801
  content: t,
@@ -12810,7 +12809,7 @@ const Ya = 1, i0 = 150, c0 = ot(
12810
12809
  );
12811
12810
  return Z(() => {
12812
12811
  if (o && i && t && t.trim().length >= Ya) {
12813
- const u = Date.now() - c.current, g = i0 - u;
12812
+ const u = Date.now() - c.current, g = a0 - u;
12814
12813
  if (g > 0) {
12815
12814
  const m = setTimeout(
12816
12815
  () => a(!1),
@@ -12820,8 +12819,8 @@ const Ya = 1, i0 = 150, c0 = ot(
12820
12819
  }
12821
12820
  a(!1);
12822
12821
  }
12823
- }, [t, i, o]), e === mo && t ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(l0, { content: t }) }) : e === cn && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ h(us, { tail: !0, children: /* @__PURE__ */ h(su, { type: "dots" }) }) : e === cn && t && t.trim().length >= Ya ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(
12824
- c0,
12822
+ }, [t, i, o]), e === mo && t ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(c0, { content: t }) }) : e === cn && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ h(us, { tail: !0, children: /* @__PURE__ */ h(su, { type: "dots" }) }) : e === cn && t && t.trim().length >= Ya ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(
12823
+ i0,
12825
12824
  {
12826
12825
  role: e,
12827
12826
  content: t,
@@ -12832,7 +12831,7 @@ const Ya = 1, i0 = 150, c0 = ot(
12832
12831
  }
12833
12832
  ) }) : null;
12834
12833
  }
12835
- ), d0 = (e) => {
12834
+ ), u0 = (e) => {
12836
12835
  if (e.parts && Array.isArray(e.parts)) {
12837
12836
  const t = e.parts.filter((n) => n.type === "text").map((n) => n.text).filter(Boolean);
12838
12837
  return t.length > 0 ? t.join(`
@@ -12841,7 +12840,7 @@ const Ya = 1, i0 = 150, c0 = ot(
12841
12840
  if ("content" in e && typeof e.content == "string")
12842
12841
  return e.content;
12843
12842
  };
12844
- function f0(e) {
12843
+ function d0(e) {
12845
12844
  const t = e.metadata;
12846
12845
  if (t?.model)
12847
12846
  return { model: String(t.model) };
@@ -12865,11 +12864,11 @@ const au = Ze.forwardRef((e, t) => {
12865
12864
  return n && n.length > 0 ? /* @__PURE__ */ z("div", { className: "space-y-6 mt-2 @container", children: [
12866
12865
  n?.map((c, l) => {
12867
12866
  let d;
12868
- const u = `${l}-${c.role}`, g = d0(c), m = f0(c), p = c.role === cn && l === o, f = l === a;
12867
+ const u = `${l}-${c.role}`, g = u0(c), m = d0(c), p = c.role === cn && l === o, f = l === a;
12869
12868
  return /* @__PURE__ */ z(Ze.Fragment, { children: [
12870
12869
  f && /* @__PURE__ */ h("div", { ref: t, className: "new-message-marker" }),
12871
12870
  /* @__PURE__ */ h(
12872
- u0,
12871
+ l0,
12873
12872
  {
12874
12873
  role: c.role,
12875
12874
  content: g,
@@ -12885,8 +12884,8 @@ const au = Ze.forwardRef((e, t) => {
12885
12884
  ] }) : null;
12886
12885
  });
12887
12886
  au.displayName = "MessagesList";
12888
- const p0 = () => {
12889
- const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } = o0(), r = J(null), o = J(null), s = J(null), i = J(null), [a, c] = B(0), {
12887
+ const f0 = () => {
12888
+ const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } = r0(), r = J(null), o = J(null), s = J(null), i = J(null), [a, c] = B(0), {
12890
12889
  state: { footerPosition: l, footerHeight: d, footerOffset: u, oledMode: g }
12891
12890
  } = de(En), {
12892
12891
  state: { loading: m, streaming: p }
@@ -12958,7 +12957,7 @@ const p0 = () => {
12958
12957
  )
12959
12958
  ] }),
12960
12959
  /* @__PURE__ */ h(
12961
- s0,
12960
+ o0,
12962
12961
  {
12963
12962
  show: !n && l === sn && !m && !p,
12964
12963
  bottom: y.current,
@@ -13012,12 +13011,12 @@ function iu({
13012
13011
  }
13013
13012
  })()
13014
13013
  }, [T, P] = Dn(
13015
- Bv,
13014
+ jv,
13016
13015
  x
13017
- ), [$, V] = Dn(Vv, {
13016
+ ), [$, V] = Dn(Bv, {
13018
13017
  prompt: "",
13019
13018
  lastTriggeredTimestamp: 0
13020
- }), [M, R] = Dn(jv, {
13019
+ }), [M, R] = Dn(Uv, {
13021
13020
  provider: "",
13022
13021
  // OpenAI, Anthropic, etc.
13023
13022
  privateChat: !1,
@@ -13041,7 +13040,7 @@ function iu({
13041
13040
  username: n?.username
13042
13041
  }
13043
13042
  }), [n?.username]);
13044
- return Qv({
13043
+ return qv({
13045
13044
  currentChatId: c,
13046
13045
  setChatId: l,
13047
13046
  setInitialMessages: u,
@@ -13119,7 +13118,7 @@ function iu({
13119
13118
  setInitialMessages: u
13120
13119
  },
13121
13120
  children: /* @__PURE__ */ z(
13122
- Xv,
13121
+ Kv,
13123
13122
  {
13124
13123
  value: {
13125
13124
  id: c,
@@ -13131,7 +13130,7 @@ function iu({
13131
13130
  }
13132
13131
  },
13133
13132
  children: [
13134
- /* @__PURE__ */ h(qv, { chatId: c }),
13133
+ /* @__PURE__ */ h(Xv, { chatId: c }),
13135
13134
  /* @__PURE__ */ z("div", { className: Ad, children: [
13136
13135
  /* @__PURE__ */ h(ua, { containerId: "toggle-save" }),
13137
13136
  /* @__PURE__ */ h(ua, { containerId: "toggle-provider" })
@@ -13144,7 +13143,7 @@ function iu({
13144
13143
  extraClass: S,
13145
13144
  fullScreen: b
13146
13145
  }),
13147
- children: /* @__PURE__ */ h(r0, { isComponent: e })
13146
+ children: /* @__PURE__ */ h(n0, { isComponent: e })
13148
13147
  }
13149
13148
  ),
13150
13149
  /* @__PURE__ */ h(
@@ -13154,10 +13153,10 @@ function iu({
13154
13153
  style: {
13155
13154
  height: o
13156
13155
  },
13157
- children: /* @__PURE__ */ h(p0, {})
13156
+ children: /* @__PURE__ */ h(f0, {})
13158
13157
  }
13159
13158
  ),
13160
- /* @__PURE__ */ h(GS, { isComponent: e })
13159
+ /* @__PURE__ */ h(WS, { isComponent: e })
13161
13160
  ]
13162
13161
  }
13163
13162
  )
@@ -13169,12 +13168,12 @@ function iu({
13169
13168
  );
13170
13169
  }
13171
13170
  iu.displayName = "App";
13172
- const A0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: iu }, Symbol.toStringTag, { value: "Module" }));
13171
+ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: iu }, Symbol.toStringTag, { value: "Module" }));
13173
13172
  export {
13174
- A0 as App,
13173
+ T0 as App,
13175
13174
  us as AsyncBubble,
13176
- Zb as ButtonCancel,
13177
- s0 as ButtonScroll,
13175
+ Fb as ButtonCancel,
13176
+ o0 as ButtonScroll,
13178
13177
  Wt as CHAT_RESET,
13179
13178
  mn as CHAT_SET_ATTACHMENTS,
13180
13179
  Rt as CHAT_SET_STATUS,
@@ -13184,22 +13183,22 @@ export {
13184
13183
  Pe as DropdownMenuItem,
13185
13184
  ql as DropdownMenuSub,
13186
13185
  ua as LazyToastContainerWrapper,
13187
- Ib as Panel,
13186
+ xb as Panel,
13188
13187
  _t as ResponsiveTooltip,
13189
- Fb as Toggle,
13190
- S0 as debounce,
13188
+ zb as Toggle,
13189
+ E0 as debounce,
13191
13190
  ov as getDefaultExportFromCjs,
13192
13191
  Vt as isProbablyMobile,
13193
- x0 as numberFormatter,
13194
- I0 as obfuscate,
13195
- C0 as pluralize,
13196
- Zv as preloadToast,
13197
- Uv as showErrorToast,
13192
+ C0 as numberFormatter,
13193
+ x0 as obfuscate,
13194
+ S0 as pluralize,
13195
+ Fv as preloadToast,
13196
+ Zv as showErrorToast,
13198
13197
  fr as showSuccessToast,
13199
- T0 as unObfuscate,
13198
+ I0 as unObfuscate,
13200
13199
  wt as useAiChat,
13201
13200
  gr as useCapability,
13202
- o0 as useInViewport,
13201
+ r0 as useInViewport,
13203
13202
  et as useLocalStorage,
13204
13203
  ht as v4
13205
13204
  };