@gram-ai/elements 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/elements.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as d, Fragment as Ot, jsxs as T } from "react/jsx-runtime";
2
- import { j as S, s as A, $ as kl, a as Nl, b as El, c as Ol, d as Cl, e as Pl, f as Tl, g as Al, h as Rl, i as Dl, k as jl, l as Ul, m as zl, n as Ml, o as Ll, p as Fl, q as Wl, r as Zl, t as Bl, u as Vl, v as Gl, w as Jl, x as Kl, y as ql, z as Hl, A as Xl, B as Yl, C as Ql, D as ec, E as tc, F as rc, G as nc, H as oc, I as ic, J as ac, K as sc, L as lc, M as cc, N as uc, O as dc, P as mc, Q as fc, R as pc, S as gc, T as vc, U as hc, V as bc, W as yc, X as $c, Y as xc, Z as wc, _ as _c, a0 as Sc, a1 as Ic, a2 as kc, a3 as Nc, a4 as Ec, a5 as Oc, a6 as Cc, a7 as Pc, a8 as Tc, a9 as Ac, aa as Rc, ab as Dc, ac as jc, ad as Uc, ae as zc, af as Mc, ag as Lc, ah as Fc, ai as Wc, aj as Zc, ak as Bc, al as Vc, am as Gc, an as Jc, ao as Kc, ap as qc, aq as Hc, ar as Xc, as as Yc, at as Qc, au as eu, av as tu, aw as ru, ax as nu, ay as ou, az as iu, aA as au, aB as su, aC as lu, aD as cu, aE as uu, aF as du, aG as mu, aH as fu, aI as pu, aJ as gu, aK as Go, aL as vu, aM as Jo, aN as Ko, aO as hu, aP as bu, aQ as qo, aR as Ho, aS as yu, aT as $u, aU as xu, aV as wu, aW as _u, aX as Su, aY as Iu, aZ as ku, a_ as Nu, a$ as Eu, b0 as Xo, b1 as Yo, b2 as Qo, b3 as ei, b4 as ti, b5 as Ou, b6 as Cu, b7 as Pu, b8 as Tu, b9 as Au, ba as Ru, bb as Du, bc as ju, bd as Uu, be as zu, bf as Mu, bg as Lu, bh as Fu, bi as ri, bj as Wu, bk as Zu, bl as Bu, bm as Vu, bn as ni, bo as Vr, bp as Gu, bq as oi, br as Ju, bs as Ku, bt as qu, bu as Hu, bv as Xu, bw as Yu, bx as Qu, by as ed, bz as td, bA as rd, bB as nd, bC as od, bD as id, bE as ii, bF as ad, bG as ai, bH as si, bI as Gr, bJ as sd, bK as ld, bL as li, bM as ci, bN as ui, bO as di, bP as mi, bQ as fi, bR as cd, bS as ud, bT as dd, bU as pi, bV as md, bW as gi, bX as fd, bY as vi, bZ as hi, b_ as pd, b$ as gd, c0 as vd, c1 as hd, c2 as bi, c3 as bd, c4 as yd, c5 as $d, c6 as yi, c7 as xd, c8 as $i, c9 as wd, ca as _d, cb as Sd, cc as xi, cd as Id, ce as kd, cf as Nd, cg as Ed, ch as Od, ci as Cd, cj as Pd, ck as wi, cl as _i, cm as Si, cn as Td, co as Ad, cp as Rd, cq as Dd, cr as jd, cs as Ud, ct as zd, cu as Ii, cv as ki, cw as Md, cx as Ni, cy as Ld, cz as Fd, cA as Wd, cB as Zd, cC as Bd, cD as Vd, cE as Gd, cF as Ei, cG as Jd, cH as Kd, cI as qd, cJ as Hd, cK as Xd, cL as Yd, cM as Qd, cN as Oi, cO as un, cP as em, cQ as tm, cR as rm, cS as nm, cT as om, cU as Ci, cV as Pi, cW as im, cX as Ti, cY as am, cZ as sm, c_ as lm, c$ as cm, d0 as um, d1 as dm, d2 as Ai, d3 as Ri, d4 as Di, d5 as mm, d6 as fm, d7 as pm, d8 as gm, d9 as vm, da as hm, db as bm, dc as ji, dd as Ui, de as zi, df as ym, dg as Mi, dh as Li, di as Fi, dj as Wi, dk as Zi, dl as $m, dm as xm, dn as wm, dp as _m, dq as Sm, dr as Im, ds as km, dt as Nm, du as Em, dv as Om, dw as Cm, dx as Pm, dy as Tm, dz as Am, dA as Rm, dB as Dm, dC as jm, dD as Um, dE as zm, dF as Mm, dG as Lm, dH as Fm, dI as Wm, dJ as Zm, dK as Bm, dL as Vm, dM as Gm, dN as Jm, dO as Km, dP as qm, dQ as Hm, dR as Xm, dS as Ym, dT as Qm, dU as ef, dV as tf, dW as rf, dX as nf, dY as of, dZ as af, d_ as sf, d$ as lf, e0 as cf, e1 as uf, e2 as df, e3 as mf, e4 as ff, e5 as pf, e6 as gf, e7 as vf, e8 as hf, e9 as bf, ea as yf, eb as $f, ec as xf, ed as wf, ee as _f, ef as Sf, eg as If, eh as kf, ei as Nf, ej as Ef, ek as Of, el as Cf, em as Pf, en as Tf, eo as Af, ep as Rf, eq as Df, er as jf, es as Uf, et as Fn, eu as zf, ev as Ve, ew as Mf, ex as Lf, ey as Ff, ez as oe, eA as Wf, eB as Zf, eC as Bf, eD as Vf, eE as Gf, eF as Jf, eG as Kf, eH as dn, eI as qf, eJ as Hf, eK as Xf, eL as Yf, eM as Bi, eN as Qf, eO as ep, eP as tp, eQ as rp, eR as np, eS as Vi, eT as op, eU as ip, eV as ap, eW as sp, eX as lp, eY as cp, eZ as up, e_ as dp, e$ as mp, f0 as Ct, f1 as fp, f2 as pp, f3 as gp, f4 as vp, f5 as hp, f6 as bp, f7 as yp, f8 as $p, f9 as xp, fa as wp, fb as _p, fc as Gi, fd as D, fe as Sp, ff as Ip, fg as kp, fh as Np, fi as Ep, fj as Op, fk as Cp, fl as Pp, fm as Tp, fn as Ji, fo as Ap, fp as Rp, fq as Ki, fr as q, fs as Dp, ft as jp, fu as Up, fv as zp, fw as Mp, fx as Lp, fy as Fp, fz as Wp, fA as Zp, fB as rr, fC as Bp, fD as Vp, fE as Gp, fF as Jp, fG as Kp, fH as qp, fI as Hp, fJ as Xp, fK as Yp, fL as B, fM as P, fN as Qp, fO as eg, fP as tg, fQ as rg, fR as ng, fS as og, fT as ig, fU as ag, fV as sg, fW as lg, fX as cg, fY as qi, fZ as ce, f_ as Ne, f$ as ug, g0 as dg, g1 as mg, g2 as fg, g3 as pg, g4 as gg, g5 as vg, g6 as hg, g7 as He, g8 as Xe, g9 as Wn, ga as Zn, gb as Hi, gc as Bn, gd as Jr, ge as dr, gf as bg, gg as yg, gh as $g, gi as xg, gj as Vn, gk as Xi } from "./index-DxNldiiY.js";
3
- import { getExternalStoreMessages as Kr, unstable_createMessageConverter as wg, useAssistantApi as Yi, INTERNAL as Qi, useRuntimeAdapters as _g, useExternalStoreRuntime as Sg, unstable_useCloudThreadListAdapter as Ig, unstable_useRemoteThreadListRuntime as kg, useAssistantState as st, AssistantRuntimeProvider as Ng, useMessage as Eg, useScrollLock as Og, MessagePrimitive as De, ComposerPrimitive as $e, AttachmentPrimitive as qr, ThreadPrimitive as Ee, ErrorPrimitive as Gn, BranchPickerPrimitive as yt, ActionBarPrimitive as Nt, AssistantModalPrimitive as Ft } from "@assistant-ui/react";
2
+ import { j as S, s as A, $ as kl, a as Nl, b as El, c as Ol, d as Cl, e as Pl, f as Tl, g as Al, h as Rl, i as Dl, k as jl, l as Ul, m as zl, n as Ml, o as Ll, p as Fl, q as Wl, r as Zl, t as Bl, u as Vl, v as Gl, w as Jl, x as Kl, y as ql, z as Hl, A as Xl, B as Yl, C as Ql, D as ec, E as tc, F as rc, G as nc, H as oc, I as ic, J as ac, K as sc, L as lc, M as cc, N as uc, O as dc, P as mc, Q as fc, R as pc, S as gc, T as vc, U as hc, V as bc, W as yc, X as $c, Y as xc, Z as wc, _ as _c, a0 as Sc, a1 as Ic, a2 as kc, a3 as Nc, a4 as Ec, a5 as Oc, a6 as Cc, a7 as Pc, a8 as Tc, a9 as Ac, aa as Rc, ab as Dc, ac as jc, ad as Uc, ae as zc, af as Mc, ag as Lc, ah as Fc, ai as Wc, aj as Zc, ak as Bc, al as Vc, am as Gc, an as Jc, ao as Kc, ap as qc, aq as Hc, ar as Xc, as as Yc, at as Qc, au as eu, av as tu, aw as ru, ax as nu, ay as ou, az as iu, aA as au, aB as su, aC as lu, aD as cu, aE as uu, aF as du, aG as mu, aH as fu, aI as pu, aJ as gu, aK as Go, aL as vu, aM as Jo, aN as Ko, aO as hu, aP as bu, aQ as qo, aR as Ho, aS as yu, aT as $u, aU as xu, aV as wu, aW as _u, aX as Su, aY as Iu, aZ as ku, a_ as Nu, a$ as Eu, b0 as Xo, b1 as Yo, b2 as Qo, b3 as ei, b4 as ti, b5 as Ou, b6 as Cu, b7 as Pu, b8 as Tu, b9 as Au, ba as Ru, bb as Du, bc as ju, bd as Uu, be as zu, bf as Mu, bg as Lu, bh as Fu, bi as ri, bj as Wu, bk as Zu, bl as Bu, bm as Vu, bn as ni, bo as Vr, bp as Gu, bq as oi, br as Ju, bs as Ku, bt as qu, bu as Hu, bv as Xu, bw as Yu, bx as Qu, by as ed, bz as td, bA as rd, bB as nd, bC as od, bD as id, bE as ii, bF as ad, bG as ai, bH as si, bI as Gr, bJ as sd, bK as ld, bL as li, bM as ci, bN as ui, bO as di, bP as mi, bQ as fi, bR as cd, bS as ud, bT as dd, bU as pi, bV as md, bW as gi, bX as fd, bY as vi, bZ as hi, b_ as pd, b$ as gd, c0 as vd, c1 as hd, c2 as bi, c3 as bd, c4 as yd, c5 as $d, c6 as yi, c7 as xd, c8 as $i, c9 as wd, ca as _d, cb as Sd, cc as xi, cd as Id, ce as kd, cf as Nd, cg as Ed, ch as Od, ci as Cd, cj as Pd, ck as wi, cl as _i, cm as Si, cn as Td, co as Ad, cp as Rd, cq as Dd, cr as jd, cs as Ud, ct as zd, cu as Ii, cv as ki, cw as Md, cx as Ni, cy as Ld, cz as Fd, cA as Wd, cB as Zd, cC as Bd, cD as Vd, cE as Gd, cF as Ei, cG as Jd, cH as Kd, cI as qd, cJ as Hd, cK as Xd, cL as Yd, cM as Qd, cN as Oi, cO as un, cP as em, cQ as tm, cR as rm, cS as nm, cT as om, cU as Ci, cV as Pi, cW as im, cX as Ti, cY as am, cZ as sm, c_ as lm, c$ as cm, d0 as um, d1 as dm, d2 as Ai, d3 as Ri, d4 as Di, d5 as mm, d6 as fm, d7 as pm, d8 as gm, d9 as vm, da as hm, db as bm, dc as ji, dd as Ui, de as zi, df as ym, dg as Mi, dh as Li, di as Fi, dj as Wi, dk as Zi, dl as $m, dm as xm, dn as wm, dp as _m, dq as Sm, dr as Im, ds as km, dt as Nm, du as Em, dv as Om, dw as Cm, dx as Pm, dy as Tm, dz as Am, dA as Rm, dB as Dm, dC as jm, dD as Um, dE as zm, dF as Mm, dG as Lm, dH as Fm, dI as Wm, dJ as Zm, dK as Bm, dL as Vm, dM as Gm, dN as Jm, dO as Km, dP as qm, dQ as Hm, dR as Xm, dS as Ym, dT as Qm, dU as ef, dV as tf, dW as rf, dX as nf, dY as of, dZ as af, d_ as sf, d$ as lf, e0 as cf, e1 as uf, e2 as df, e3 as mf, e4 as ff, e5 as pf, e6 as gf, e7 as vf, e8 as hf, e9 as bf, ea as yf, eb as $f, ec as xf, ed as wf, ee as _f, ef as Sf, eg as If, eh as kf, ei as Nf, ej as Ef, ek as Of, el as Cf, em as Pf, en as Tf, eo as Af, ep as Rf, eq as Df, er as jf, es as Uf, et as Fn, eu as zf, ev as Ve, ew as Mf, ex as Lf, ey as Ff, ez as oe, eA as Wf, eB as Zf, eC as Bf, eD as Vf, eE as Gf, eF as Jf, eG as Kf, eH as dn, eI as qf, eJ as Hf, eK as Xf, eL as Yf, eM as Bi, eN as Qf, eO as ep, eP as tp, eQ as rp, eR as np, eS as Vi, eT as op, eU as ip, eV as ap, eW as sp, eX as lp, eY as cp, eZ as up, e_ as dp, e$ as mp, f0 as Ct, f1 as fp, f2 as pp, f3 as gp, f4 as vp, f5 as hp, f6 as bp, f7 as yp, f8 as $p, f9 as xp, fa as wp, fb as _p, fc as Gi, fd as D, fe as Sp, ff as Ip, fg as kp, fh as Np, fi as Ep, fj as Op, fk as Cp, fl as Pp, fm as Tp, fn as Ji, fo as Ap, fp as Rp, fq as Ki, fr as q, fs as Dp, ft as jp, fu as Up, fv as zp, fw as Mp, fx as Lp, fy as Fp, fz as Wp, fA as Zp, fB as rr, fC as Bp, fD as Vp, fE as Gp, fF as Jp, fG as Kp, fH as qp, fI as Hp, fJ as Xp, fK as Yp, fL as B, fM as P, fN as Qp, fO as eg, fP as tg, fQ as rg, fR as ng, fS as og, fT as ig, fU as ag, fV as sg, fW as lg, fX as cg, fY as qi, fZ as ue, f_ as Ee, f$ as ug, g0 as dg, g1 as mg, g2 as fg, g3 as pg, g4 as gg, g5 as vg, g6 as hg, g7 as He, g8 as Xe, g9 as Wn, ga as Zn, gb as Hi, gc as Bn, gd as Jr, ge as dr, gf as bg, gg as yg, gh as $g, gi as xg, gj as Vn, gk as Xi } from "./index-DxNldiiY.js";
3
+ import { getExternalStoreMessages as Kr, unstable_createMessageConverter as wg, useAssistantApi as Yi, INTERNAL as Qi, useRuntimeAdapters as _g, useExternalStoreRuntime as Sg, unstable_useCloudThreadListAdapter as Ig, unstable_useRemoteThreadListRuntime as kg, useAssistantState as st, AssistantRuntimeProvider as Ng, useMessage as Eg, useScrollLock as Og, MessagePrimitive as Ue, ComposerPrimitive as $e, AttachmentPrimitive as qr, ThreadPrimitive as Oe, ErrorPrimitive as Gn, BranchPickerPrimitive as yt, ActionBarPrimitive as Nt, AssistantModalPrimitive as Ft } from "@assistant-ui/react";
4
4
  import * as f from "react";
5
- import ea, { useRef as Le, useCallback as nr, useState as de, useEffect as Fe, useMemo as ta, useSyncExternalStore as Or, createContext as Cg, useContext as Pg, forwardRef as mr, createElement as Hr, memo as fr, useLayoutEffect as Tg } from "react";
5
+ import ea, { useRef as we, useCallback as nr, useState as ie, useEffect as je, useMemo as ta, useSyncExternalStore as Or, createContext as Cg, useContext as Pg, forwardRef as mr, createElement as Hr, memo as fr, useLayoutEffect as Tg } from "react";
6
6
  import { LazyMotion as Ag, domAnimation as Rg, MotionConfig as Dg, motion as jg } from "motion/react";
7
7
  import * as Xr from "motion/react-m";
8
8
  import { unstable_memoizeMarkdownComponents as Ug, useIsMarkdownCodeBlock as zg, MarkdownTextPrimitive as Mg } from "@assistant-ui/react-markdown";
@@ -5116,8 +5116,8 @@ const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5116
5116
  uint64: lg,
5117
5117
  ulid: cg,
5118
5118
  undefined: qi,
5119
- union: ce,
5120
- unknown: Ne,
5119
+ union: ue,
5120
+ unknown: Ee,
5121
5121
  uppercase: Ei,
5122
5122
  url: ug,
5123
5123
  util: zi,
@@ -5150,7 +5150,7 @@ var Lh = Object.defineProperty, Fh = (t, r) => {
5150
5150
  }
5151
5151
  };
5152
5152
  ca = Wh;
5153
- var eo = "5.0.108", ua = ce([
5153
+ var eo = "5.0.108", ua = ue([
5154
5154
  P(),
5155
5155
  Ct(Uint8Array),
5156
5156
  Ct(ArrayBuffer),
@@ -5163,7 +5163,7 @@ var eo = "5.0.108", ua = ce([
5163
5163
  { message: "Must be a Buffer" }
5164
5164
  )
5165
5165
  ]), Pt = Gi(
5166
- () => ce([
5166
+ () => ue([
5167
5167
  Ji(),
5168
5168
  P(),
5169
5169
  Ki(),
@@ -5180,12 +5180,12 @@ var eo = "5.0.108", ua = ce([
5180
5180
  providerOptions: K.optional()
5181
5181
  }), Zh = q({
5182
5182
  type: D("image"),
5183
- image: ce([ua, Ct(URL)]),
5183
+ image: ue([ua, Ct(URL)]),
5184
5184
  mediaType: P().optional(),
5185
5185
  providerOptions: K.optional()
5186
5186
  }), ma = q({
5187
5187
  type: D("file"),
5188
- data: ce([ua, Ct(URL)]),
5188
+ data: ue([ua, Ct(URL)]),
5189
5189
  filename: P().optional(),
5190
5190
  mediaType: P(),
5191
5191
  providerOptions: K.optional()
@@ -5197,7 +5197,7 @@ var eo = "5.0.108", ua = ce([
5197
5197
  type: D("tool-call"),
5198
5198
  toolCallId: P(),
5199
5199
  toolName: P(),
5200
- input: Ne(),
5200
+ input: Ee(),
5201
5201
  providerOptions: K.optional(),
5202
5202
  providerExecuted: oe().optional()
5203
5203
  }), Gh = Bi("type", [
@@ -5220,7 +5220,7 @@ var eo = "5.0.108", ua = ce([
5220
5220
  q({
5221
5221
  type: D("content"),
5222
5222
  value: Ve(
5223
- ce([
5223
+ ue([
5224
5224
  q({
5225
5225
  type: D("text"),
5226
5226
  text: P()
@@ -5247,17 +5247,17 @@ var eo = "5.0.108", ua = ce([
5247
5247
  }
5248
5248
  ), Kh = q({
5249
5249
  role: D("user"),
5250
- content: ce([
5250
+ content: ue([
5251
5251
  P(),
5252
- Ve(ce([da, Zh, ma]))
5252
+ Ve(ue([da, Zh, ma]))
5253
5253
  ]),
5254
5254
  providerOptions: K.optional()
5255
5255
  }), qh = q({
5256
5256
  role: D("assistant"),
5257
- content: ce([
5257
+ content: ue([
5258
5258
  P(),
5259
5259
  Ve(
5260
- ce([
5260
+ ue([
5261
5261
  da,
5262
5262
  ma,
5263
5263
  Bh,
@@ -5272,7 +5272,7 @@ var eo = "5.0.108", ua = ce([
5272
5272
  content: Ve(fa),
5273
5273
  providerOptions: K.optional()
5274
5274
  });
5275
- ce([
5275
+ ue([
5276
5276
  Jh,
5277
5277
  Kh,
5278
5278
  qh,
@@ -5300,7 +5300,7 @@ dr({
5300
5300
  });
5301
5301
  var Xh = bg(
5302
5302
  () => yg(
5303
- ce([
5303
+ ue([
5304
5304
  B({
5305
5305
  type: D("text-start"),
5306
5306
  id: P(),
@@ -5337,7 +5337,7 @@ var Xh = bg(
5337
5337
  type: D("tool-input-available"),
5338
5338
  toolCallId: P(),
5339
5339
  toolName: P(),
5340
- input: Ne(),
5340
+ input: Ee(),
5341
5341
  providerExecuted: oe().optional(),
5342
5342
  providerMetadata: K.optional(),
5343
5343
  dynamic: oe().optional()
@@ -5346,7 +5346,7 @@ var Xh = bg(
5346
5346
  type: D("tool-input-error"),
5347
5347
  toolCallId: P(),
5348
5348
  toolName: P(),
5349
- input: Ne(),
5349
+ input: Ee(),
5350
5350
  providerExecuted: oe().optional(),
5351
5351
  providerMetadata: K.optional(),
5352
5352
  dynamic: oe().optional(),
@@ -5355,7 +5355,7 @@ var Xh = bg(
5355
5355
  B({
5356
5356
  type: D("tool-output-available"),
5357
5357
  toolCallId: P(),
5358
- output: Ne(),
5358
+ output: Ee(),
5359
5359
  providerExecuted: oe().optional(),
5360
5360
  dynamic: oe().optional(),
5361
5361
  preliminary: oe().optional()
@@ -5410,7 +5410,7 @@ var Xh = bg(
5410
5410
  { message: 'Type must start with "data-"' }
5411
5411
  ),
5412
5412
  id: P().optional(),
5413
- data: Ne(),
5413
+ data: Ee(),
5414
5414
  transient: oe().optional()
5415
5415
  }),
5416
5416
  B({
@@ -5422,7 +5422,7 @@ var Xh = bg(
5422
5422
  B({
5423
5423
  type: D("start"),
5424
5424
  messageId: P().optional(),
5425
- messageMetadata: Ne().optional()
5425
+ messageMetadata: Ee().optional()
5426
5426
  }),
5427
5427
  B({
5428
5428
  type: D("finish"),
@@ -5435,14 +5435,14 @@ var Xh = bg(
5435
5435
  "other",
5436
5436
  "unknown"
5437
5437
  ]).optional(),
5438
- messageMetadata: Ne().optional()
5438
+ messageMetadata: Ee().optional()
5439
5439
  }),
5440
5440
  B({
5441
5441
  type: D("abort")
5442
5442
  }),
5443
5443
  B({
5444
5444
  type: D("message-metadata"),
5445
- messageMetadata: Ne()
5445
+ messageMetadata: Ee()
5446
5446
  })
5447
5447
  ])
5448
5448
  )
@@ -6783,13 +6783,13 @@ var Cr = (t, r) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((i) =>
6783
6783
  };
6784
6784
  })
6785
6785
  }), hb = (t, r, i, o, e) => {
6786
- const n = Le(!1), a = Yi(), s = nr(
6786
+ const n = we(!1), a = Yi(), s = nr(
6787
6787
  () => a.threadListItem.source ? a.threadListItem() : null,
6788
6788
  [a]
6789
- ), [c, l] = de(!1), u = Le(/* @__PURE__ */ new Set()), m = Le(() => e);
6790
- return Fe(() => {
6789
+ ), [c, l] = ie(!1), u = we(/* @__PURE__ */ new Set()), m = we(() => e);
6790
+ return je(() => {
6791
6791
  m.current = e;
6792
- }), Fe(() => {
6792
+ }), je(() => {
6793
6793
  if (!r || n.current) return;
6794
6794
  const h = async () => {
6795
6795
  l(!0);
@@ -6827,7 +6827,7 @@ var Cr = (t, r) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((i) =>
6827
6827
  i,
6828
6828
  t,
6829
6829
  s
6830
- ]), Fe(() => t.current.thread.subscribe(async () => {
6830
+ ]), je(() => t.current.thread.subscribe(async () => {
6831
6831
  const { messages: h, isRunning: p } = t.current.thread.getState();
6832
6832
  if (!p)
6833
6833
  for (let v = 0; v < h.length; v++) {
@@ -6848,7 +6848,7 @@ var Cr = (t, r) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((i) =>
6848
6848
  toCreateMessage: i,
6849
6849
  cancelPendingToolCallsOnSend: o = !0
6850
6850
  } = {}) => {
6851
- const e = _g(), n = t.status === "submitted" || t.status === "streaming", [a, s] = de({}), c = oo.useThreadMessages({
6851
+ const e = _g(), n = t.status === "submitted" || t.status === "streaming", [a, s] = ie({}), c = oo.useThreadMessages({
6852
6852
  isRunning: n,
6853
6853
  messages: t.messages,
6854
6854
  metadata: ta(
@@ -6858,7 +6858,7 @@ var Cr = (t, r) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((i) =>
6858
6858
  }),
6859
6859
  [a, t.error]
6860
6860
  )
6861
- }), [l] = de(() => ({
6861
+ }), [l] = ie(() => ({
6862
6862
  get current() {
6863
6863
  return p;
6864
6864
  }
@@ -7095,22 +7095,22 @@ var Ib = Sb(), ha = (t, r, i) => {
7095
7095
  if (r.has(t))
7096
7096
  throw TypeError("Cannot add the same private member more than once");
7097
7097
  r instanceof WeakSet ? r.add(t) : r.set(t, i);
7098
- }, Ae = (t, r, i, o) => (ha(t, r, "write to private field"), r.set(t, i), i);
7098
+ }, Re = (t, r, i, o) => (ha(t, r, "write to private field"), r.set(t, i), i);
7099
7099
  function kb(t, r) {
7100
7100
  return r != null ? xb(t, r) : t;
7101
7101
  }
7102
- var ue, Xt, Yt, St, It, kt, rt, Yr, Qr, Nb = class {
7102
+ var de, Xt, Yt, St, It, kt, rt, Yr, Qr, Nb = class {
7103
7103
  constructor(t = []) {
7104
- be(this, ue, void 0), be(this, Xt, "ready"), be(this, Yt, void 0), be(this, St, /* @__PURE__ */ new Set()), be(this, It, /* @__PURE__ */ new Set()), be(this, kt, /* @__PURE__ */ new Set()), this.pushMessage = (r) => {
7105
- Ae(this, ue, W(this, ue).concat(r)), W(this, rt).call(this);
7104
+ be(this, de, void 0), be(this, Xt, "ready"), be(this, Yt, void 0), be(this, St, /* @__PURE__ */ new Set()), be(this, It, /* @__PURE__ */ new Set()), be(this, kt, /* @__PURE__ */ new Set()), this.pushMessage = (r) => {
7105
+ Re(this, de, W(this, de).concat(r)), W(this, rt).call(this);
7106
7106
  }, this.popMessage = () => {
7107
- Ae(this, ue, W(this, ue).slice(0, -1)), W(this, rt).call(this);
7107
+ Re(this, de, W(this, de).slice(0, -1)), W(this, rt).call(this);
7108
7108
  }, this.replaceMessage = (r, i) => {
7109
- Ae(this, ue, [
7110
- ...W(this, ue).slice(0, r),
7109
+ Re(this, de, [
7110
+ ...W(this, de).slice(0, r),
7111
7111
  // We deep clone the message here to ensure the new React Compiler (currently in RC) detects deeply nested parts/metadata changes:
7112
7112
  this.snapshot(i),
7113
- ...W(this, ue).slice(r + 1)
7113
+ ...W(this, de).slice(r + 1)
7114
7114
  ]), W(this, rt).call(this);
7115
7115
  }, this.snapshot = (r) => structuredClone(r), this["~registerMessagesCallback"] = (r, i) => {
7116
7116
  const o = i ? kb(r, i) : r;
@@ -7127,28 +7127,28 @@ var ue, Xt, Yt, St, It, kt, rt, Yr, Qr, Nb = class {
7127
7127
  W(this, It).forEach((r) => r());
7128
7128
  }), be(this, Qr, () => {
7129
7129
  W(this, kt).forEach((r) => r());
7130
- }), Ae(this, ue, t);
7130
+ }), Re(this, de, t);
7131
7131
  }
7132
7132
  get status() {
7133
7133
  return W(this, Xt);
7134
7134
  }
7135
7135
  set status(t) {
7136
- Ae(this, Xt, t), W(this, Yr).call(this);
7136
+ Re(this, Xt, t), W(this, Yr).call(this);
7137
7137
  }
7138
7138
  get error() {
7139
7139
  return W(this, Yt);
7140
7140
  }
7141
7141
  set error(t) {
7142
- Ae(this, Yt, t), W(this, Qr).call(this);
7142
+ Re(this, Yt, t), W(this, Qr).call(this);
7143
7143
  }
7144
7144
  get messages() {
7145
- return W(this, ue);
7145
+ return W(this, de);
7146
7146
  }
7147
7147
  set messages(t) {
7148
- Ae(this, ue, [...t]), W(this, rt).call(this);
7148
+ Re(this, de, [...t]), W(this, rt).call(this);
7149
7149
  }
7150
7150
  };
7151
- ue = /* @__PURE__ */ new WeakMap();
7151
+ de = /* @__PURE__ */ new WeakMap();
7152
7152
  Xt = /* @__PURE__ */ new WeakMap();
7153
7153
  Yt = /* @__PURE__ */ new WeakMap();
7154
7154
  St = /* @__PURE__ */ new WeakMap();
@@ -7160,7 +7160,7 @@ Qr = /* @__PURE__ */ new WeakMap();
7160
7160
  var nt, co = class extends ub {
7161
7161
  constructor({ messages: r, ...i }) {
7162
7162
  const o = new Nb(r);
7163
- super({ ...i, state: o }), be(this, nt, void 0), this["~registerMessagesCallback"] = (e, n) => W(this, nt)["~registerMessagesCallback"](e, n), this["~registerStatusCallback"] = (e) => W(this, nt)["~registerStatusCallback"](e), this["~registerErrorCallback"] = (e) => W(this, nt)["~registerErrorCallback"](e), Ae(this, nt, o);
7163
+ super({ ...i, state: o }), be(this, nt, void 0), this["~registerMessagesCallback"] = (e, n) => W(this, nt)["~registerMessagesCallback"](e, n), this["~registerStatusCallback"] = (e) => W(this, nt)["~registerStatusCallback"](e), this["~registerErrorCallback"] = (e) => W(this, nt)["~registerErrorCallback"](e), Re(this, nt, o);
7164
7164
  }
7165
7165
  };
7166
7166
  nt = /* @__PURE__ */ new WeakMap();
@@ -7169,7 +7169,7 @@ function Eb({
7169
7169
  resume: r = !1,
7170
7170
  ...i
7171
7171
  } = {}) {
7172
- const o = Le(
7172
+ const o = we(
7173
7173
  "chat" in i ? i.chat : new co(i)
7174
7174
  );
7175
7175
  ("chat" in i && i.chat !== o.current || "id" in i && o.current.id !== i.id) && (o.current = "chat" in i ? i.chat : new co(i));
@@ -7196,7 +7196,7 @@ function Eb({
7196
7196
  },
7197
7197
  [o]
7198
7198
  );
7199
- return Fe(() => {
7199
+ return je(() => {
7200
7200
  r && o.current.resumeStream();
7201
7201
  }, [r, o]), {
7202
7202
  id: o.current.id,
@@ -7261,8 +7261,8 @@ var Ob = (t) => Object.fromEntries(
7261
7261
  this.runtime = t;
7262
7262
  }
7263
7263
  }, Pb = (t) => {
7264
- const r = Le(t);
7265
- return Fe(() => {
7264
+ const r = we(t);
7265
+ return je(() => {
7266
7266
  r.current = t;
7267
7267
  }), ta(
7268
7268
  () => new Proxy(r.current, {
@@ -7325,9 +7325,9 @@ const TI = ({
7325
7325
  children: t,
7326
7326
  config: r
7327
7327
  }) => {
7328
- const [i, o] = de(
7328
+ const [i, o] = ie(
7329
7329
  r.model?.defaultModel ?? Xi[0]
7330
- ), [e, n] = de(!1), [a, s] = de(r.modal?.defaultOpen), c = Ab({
7330
+ ), [e, n] = ie(!1), [a, s] = ie(r.modal?.defaultOpen), c = Ab({
7331
7331
  transport: new en({
7332
7332
  api: r.chatEndpoint ?? Rb,
7333
7333
  // Because we override prepareSendMessagesRequest, we need to manually
@@ -7537,7 +7537,7 @@ function fn(...t) {
7537
7537
  };
7538
7538
  };
7539
7539
  }
7540
- function ie(...t) {
7540
+ function ae(...t) {
7541
7541
  return f.useCallback(fn(...t), t);
7542
7542
  }
7543
7543
  var yy = Symbol.for("react.lazy"), or = f[" use ".trim().toString()];
@@ -7886,12 +7886,12 @@ const Ey = (t, r) => {
7886
7886
  }, qy = [], Q = (t) => {
7887
7887
  const r = (i) => i[t] || qy;
7888
7888
  return r.isThemeGetter = !0, r;
7889
- }, Pa = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ta = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hy = /^\d+\/\d+$/, Xy = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yy = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Qy = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, e$ = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, t$ = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ye = (t) => Hy.test(t), U = (t) => !!t && !Number.isNaN(Number(t)), Te = (t) => !!t && Number.isInteger(Number(t)), Rr = (t) => t.endsWith("%") && U(t.slice(0, -1)), ke = (t) => Xy.test(t), r$ = () => !0, n$ = (t) => (
7889
+ }, Pa = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ta = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hy = /^\d+\/\d+$/, Xy = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yy = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Qy = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, e$ = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, t$ = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ye = (t) => Hy.test(t), U = (t) => !!t && !Number.isNaN(Number(t)), Ae = (t) => !!t && Number.isInteger(Number(t)), Rr = (t) => t.endsWith("%") && U(t.slice(0, -1)), Ne = (t) => Xy.test(t), r$ = () => !0, n$ = (t) => (
7890
7890
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
7891
7891
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
7892
7892
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
7893
7893
  Yy.test(t) && !Qy.test(t)
7894
- ), Aa = () => !1, o$ = (t) => e$.test(t), i$ = (t) => t$.test(t), a$ = (t) => !O(t) && !C(t), s$ = (t) => dt(t, ja, Aa), O = (t) => Pa.test(t), Me = (t) => dt(t, Ua, n$), Dr = (t) => dt(t, m$, U), ho = (t) => dt(t, Ra, Aa), l$ = (t) => dt(t, Da, i$), Zt = (t) => dt(t, za, o$), C = (t) => Ta.test(t), wt = (t) => mt(t, Ua), c$ = (t) => mt(t, f$), bo = (t) => mt(t, Ra), u$ = (t) => mt(t, ja), d$ = (t) => mt(t, Da), Bt = (t) => mt(t, za, !0), dt = (t, r, i) => {
7894
+ ), Aa = () => !1, o$ = (t) => e$.test(t), i$ = (t) => t$.test(t), a$ = (t) => !O(t) && !C(t), s$ = (t) => dt(t, ja, Aa), O = (t) => Pa.test(t), Fe = (t) => dt(t, Ua, n$), Dr = (t) => dt(t, m$, U), ho = (t) => dt(t, Ra, Aa), l$ = (t) => dt(t, Da, i$), Zt = (t) => dt(t, za, o$), C = (t) => Ta.test(t), wt = (t) => mt(t, Ua), c$ = (t) => mt(t, f$), bo = (t) => mt(t, Ra), u$ = (t) => mt(t, ja), d$ = (t) => mt(t, Da), Bt = (t) => mt(t, za, !0), dt = (t, r, i) => {
7895
7895
  const o = Pa.exec(t);
7896
7896
  return o ? o[1] ? r(o[1]) : i(o[2]) : !1;
7897
7897
  }, mt = (t, r, i = !1) => {
@@ -7916,15 +7916,15 @@ const Ey = (t, r) => {
7916
7916
  "bottom-left",
7917
7917
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
7918
7918
  "left-bottom"
7919
- ], I = () => [...y(), C, O], E = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], _ = () => [C, O, c], R = () => [Ye, "full", "auto", ..._()], z = () => [Te, "none", "subgrid", C, O], V = () => ["auto", {
7920
- span: ["full", Te, C, O]
7921
- }, Te, C, O], G = () => [Te, "auto", C, O], J = () => ["auto", "min", "max", "fr", C, O], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], M = () => ["auto", ..._()], L = () => [Ye, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], N = () => [t, C, O], Y = () => [...y(), bo, ho, {
7919
+ ], I = () => [...y(), C, O], E = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], _ = () => [C, O, c], R = () => [Ye, "full", "auto", ..._()], z = () => [Ae, "none", "subgrid", C, O], V = () => ["auto", {
7920
+ span: ["full", Ae, C, O]
7921
+ }, Ae, C, O], G = () => [Ae, "auto", C, O], J = () => ["auto", "min", "max", "fr", C, O], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], M = () => ["auto", ..._()], L = () => [Ye, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], N = () => [t, C, O], Y = () => [...y(), bo, ho, {
7922
7922
  position: [C, O]
7923
- }], ae = () => ["no-repeat", {
7923
+ }], se = () => ["no-repeat", {
7924
7924
  repeat: ["", "x", "y", "space", "round"]
7925
7925
  }], gt = () => ["auto", "cover", "contain", u$, s$, {
7926
7926
  size: [C, O]
7927
- }], vt = () => [Rr, wt, Me], te = () => [
7927
+ }], vt = () => [Rr, wt, Fe], te = () => [
7928
7928
  // Deprecated since Tailwind CSS v4.0.0
7929
7929
  "",
7930
7930
  "none",
@@ -7932,7 +7932,7 @@ const Ey = (t, r) => {
7932
7932
  l,
7933
7933
  C,
7934
7934
  O
7935
- ], ne = () => ["", U, wt, Me], Ge = () => ["solid", "dashed", "dotted", "double"], Mt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => [U, Rr, bo, ho], ht = () => [
7935
+ ], ne = () => ["", U, wt, Fe], Ge = () => ["solid", "dashed", "dotted", "double"], Mt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => [U, Rr, bo, ho], ht = () => [
7936
7936
  // Deprecated since Tailwind CSS v4.0.0
7937
7937
  "",
7938
7938
  "none",
@@ -7945,22 +7945,22 @@ const Ey = (t, r) => {
7945
7945
  theme: {
7946
7946
  animate: ["spin", "ping", "pulse", "bounce"],
7947
7947
  aspect: ["video"],
7948
- blur: [ke],
7949
- breakpoint: [ke],
7948
+ blur: [Ne],
7949
+ breakpoint: [Ne],
7950
7950
  color: [r$],
7951
- container: [ke],
7952
- "drop-shadow": [ke],
7951
+ container: [Ne],
7952
+ "drop-shadow": [Ne],
7953
7953
  ease: ["in", "out", "in-out"],
7954
7954
  font: [a$],
7955
7955
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
7956
- "inset-shadow": [ke],
7956
+ "inset-shadow": [Ne],
7957
7957
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
7958
7958
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
7959
- radius: [ke],
7960
- shadow: [ke],
7959
+ radius: [Ne],
7960
+ shadow: [Ne],
7961
7961
  spacing: ["px", U],
7962
- text: [ke],
7963
- "text-shadow": [ke],
7962
+ text: [Ne],
7963
+ "text-shadow": [Ne],
7964
7964
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
7965
7965
  },
7966
7966
  classGroups: {
@@ -8185,7 +8185,7 @@ const Ey = (t, r) => {
8185
8185
  * @see https://tailwindcss.com/docs/z-index
8186
8186
  */
8187
8187
  z: [{
8188
- z: [Te, "auto", C, O]
8188
+ z: [Ae, "auto", C, O]
8189
8189
  }],
8190
8190
  // ------------------------
8191
8191
  // --- Flexbox and Grid ---
@@ -8237,7 +8237,7 @@ const Ey = (t, r) => {
8237
8237
  * @see https://tailwindcss.com/docs/order
8238
8238
  */
8239
8239
  order: [{
8240
- order: [Te, "first", "last", "none", C, O]
8240
+ order: [Ae, "first", "last", "none", C, O]
8241
8241
  }],
8242
8242
  /**
8243
8243
  * Grid Template Columns
@@ -8632,7 +8632,7 @@ const Ey = (t, r) => {
8632
8632
  * @see https://tailwindcss.com/docs/font-size
8633
8633
  */
8634
8634
  "font-size": [{
8635
- text: ["base", i, wt, Me]
8635
+ text: ["base", i, wt, Fe]
8636
8636
  }],
8637
8637
  /**
8638
8638
  * Font Smoothing
@@ -8780,7 +8780,7 @@ const Ey = (t, r) => {
8780
8780
  * @see https://tailwindcss.com/docs/text-decoration-thickness
8781
8781
  */
8782
8782
  "text-decoration-thickness": [{
8783
- decoration: [U, "from-font", "auto", C, Me]
8783
+ decoration: [U, "from-font", "auto", C, Fe]
8784
8784
  }],
8785
8785
  /**
8786
8786
  * Text Decoration Color
@@ -8898,7 +8898,7 @@ const Ey = (t, r) => {
8898
8898
  * @see https://tailwindcss.com/docs/background-repeat
8899
8899
  */
8900
8900
  "bg-repeat": [{
8901
- bg: ae()
8901
+ bg: se()
8902
8902
  }],
8903
8903
  /**
8904
8904
  * Background Size
@@ -8915,9 +8915,9 @@ const Ey = (t, r) => {
8915
8915
  bg: ["none", {
8916
8916
  linear: [{
8917
8917
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
8918
- }, Te, C, O],
8918
+ }, Ae, C, O],
8919
8919
  radial: ["", C, O],
8920
- conic: [Te, C, O]
8920
+ conic: [Ae, C, O]
8921
8921
  }, d$, l$]
8922
8922
  }],
8923
8923
  /**
@@ -9267,7 +9267,7 @@ const Ey = (t, r) => {
9267
9267
  * @see https://tailwindcss.com/docs/outline-width
9268
9268
  */
9269
9269
  "outline-w": [{
9270
- outline: ["", U, wt, Me]
9270
+ outline: ["", U, wt, Fe]
9271
9271
  }],
9272
9272
  /**
9273
9273
  * Outline Color
@@ -9342,7 +9342,7 @@ const Ey = (t, r) => {
9342
9342
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
9343
9343
  */
9344
9344
  "ring-offset-w": [{
9345
- "ring-offset": [U, Me]
9345
+ "ring-offset": [U, Fe]
9346
9346
  }],
9347
9347
  /**
9348
9348
  * Ring Offset Color
@@ -9575,7 +9575,7 @@ const Ey = (t, r) => {
9575
9575
  * @see https://tailwindcss.com/docs/mask-repeat
9576
9576
  */
9577
9577
  "mask-repeat": [{
9578
- mask: ae()
9578
+ mask: se()
9579
9579
  }],
9580
9580
  /**
9581
9581
  * Mask Size
@@ -10292,7 +10292,7 @@ const Ey = (t, r) => {
10292
10292
  * @see https://tailwindcss.com/docs/stroke-width
10293
10293
  */
10294
10294
  "stroke-w": [{
10295
- stroke: [U, wt, Me, Dr]
10295
+ stroke: [U, wt, Fe, Dr]
10296
10296
  }],
10297
10297
  /**
10298
10298
  * Stroke
@@ -10426,7 +10426,7 @@ const yo = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $o = ka, v
10426
10426
  size: "default"
10427
10427
  }
10428
10428
  }
10429
- ), _e = f.forwardRef(({ className: t, variant: r, size: i, asChild: o = !1, ...e }, n) => /* @__PURE__ */ d(
10429
+ ), Se = f.forwardRef(({ className: t, variant: r, size: i, asChild: o = !1, ...e }, n) => /* @__PURE__ */ d(
10430
10430
  o ? xy : "button",
10431
10431
  {
10432
10432
  "data-slot": "button",
@@ -10435,7 +10435,7 @@ const yo = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $o = ka, v
10435
10435
  ...e
10436
10436
  }
10437
10437
  ));
10438
- _e.displayName = "Button";
10438
+ Se.displayName = "Button";
10439
10439
  const b$ = (t) => ({
10440
10440
  ...$t,
10441
10441
  select: (r) => {
@@ -10465,8 +10465,8 @@ ${t}`)(r, i);
10465
10465
  ]
10466
10466
  }
10467
10467
  ), x$ = "mt-4 overflow-x-auto rounded-lg border bg-white p-4 dark:bg-neutral-900", w$ = ({ code: t, className: r }) => {
10468
- const i = Le(null), [o, e] = de(null), a = Eg().status?.type === "complete";
10469
- return Fe(() => {
10468
+ const i = we(null), [o, e] = ie(null), a = Eg().status?.type === "complete";
10469
+ return je(() => {
10470
10470
  if (!a || !i.current || !t) return;
10471
10471
  const s = setTimeout(() => {
10472
10472
  const c = i.current;
@@ -10660,7 +10660,7 @@ var R$ = "DismissableLayer", rn = "dismissableLayer.update", D$ = "dismissableLa
10660
10660
  onInteractOutside: a,
10661
10661
  onDismiss: s,
10662
10662
  ...c
10663
- } = t, l = f.useContext(La), [u, m] = f.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), v = ie(r, (w) => m(w)), g = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), $ = g.indexOf(b), x = u ? g.indexOf(u) : -1, k = l.layersWithOutsidePointerEventsDisabled.size > 0, y = x >= $, I = M$((w) => {
10663
+ } = t, l = f.useContext(La), [u, m] = f.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), v = ae(r, (w) => m(w)), g = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), $ = g.indexOf(b), x = u ? g.indexOf(u) : -1, k = l.layersWithOutsidePointerEventsDisabled.size > 0, y = x >= $, I = M$((w) => {
10664
10664
  const _ = w.target, R = [...l.branches].some((z) => z.contains(_));
10665
10665
  !y || R || (e?.(w), a?.(w), w.defaultPrevented || s?.());
10666
10666
  }, h), E = L$((w) => {
@@ -10700,7 +10700,7 @@ var R$ = "DismissableLayer", rn = "dismissableLayer.update", D$ = "dismissableLa
10700
10700
  );
10701
10701
  gr.displayName = R$;
10702
10702
  var U$ = "DismissableLayerBranch", z$ = f.forwardRef((t, r) => {
10703
- const i = f.useContext(La), o = f.useRef(null), e = ie(r, o);
10703
+ const i = f.useContext(La), o = f.useRef(null), e = ae(r, o);
10704
10704
  return f.useEffect(() => {
10705
10705
  const n = o.current;
10706
10706
  if (n)
@@ -10771,7 +10771,7 @@ function ot(t) {
10771
10771
  i((o) => o ?? String(W$++));
10772
10772
  }, [t]), r ? `radix-${r}` : "";
10773
10773
  }
10774
- const Z$ = ["top", "right", "bottom", "left"], je = Math.min, se = Math.max, ar = Math.round, Vt = Math.floor, we = (t) => ({
10774
+ const Z$ = ["top", "right", "bottom", "left"], ze = Math.min, le = Math.max, ar = Math.round, Vt = Math.floor, _e = (t) => ({
10775
10775
  x: t,
10776
10776
  y: t
10777
10777
  }), B$ = {
@@ -10784,12 +10784,12 @@ const Z$ = ["top", "right", "bottom", "left"], je = Math.min, se = Math.max, ar
10784
10784
  end: "start"
10785
10785
  };
10786
10786
  function nn(t, r, i) {
10787
- return se(t, je(r, i));
10787
+ return le(t, ze(r, i));
10788
10788
  }
10789
- function Oe(t, r) {
10789
+ function Ce(t, r) {
10790
10790
  return typeof t == "function" ? t(r) : t;
10791
10791
  }
10792
- function Ce(t) {
10792
+ function Pe(t) {
10793
10793
  return t.split("-")[0];
10794
10794
  }
10795
10795
  function ft(t) {
@@ -10803,7 +10803,7 @@ function hn(t) {
10803
10803
  }
10804
10804
  const G$ = /* @__PURE__ */ new Set(["top", "bottom"]);
10805
10805
  function xe(t) {
10806
- return G$.has(Ce(t)) ? "y" : "x";
10806
+ return G$.has(Pe(t)) ? "y" : "x";
10807
10807
  }
10808
10808
  function bn(t) {
10809
10809
  return vn(xe(t));
@@ -10836,7 +10836,7 @@ function X$(t, r, i) {
10836
10836
  }
10837
10837
  function Y$(t, r, i, o) {
10838
10838
  const e = ft(t);
10839
- let n = X$(Ce(t), i === "start", o);
10839
+ let n = X$(Pe(t), i === "start", o);
10840
10840
  return e && (n = n.map((a) => a + "-" + e), r && (n = n.concat(n.map(on)))), n;
10841
10841
  }
10842
10842
  function sr(t) {
@@ -10882,7 +10882,7 @@ function Io(t, r, i) {
10882
10882
  reference: o,
10883
10883
  floating: e
10884
10884
  } = t;
10885
- const n = xe(r), a = bn(r), s = hn(a), c = Ce(r), l = n === "y", u = o.x + o.width / 2 - e.width / 2, m = o.y + o.height / 2 - e.height / 2, h = o[s] / 2 - e[s] / 2;
10885
+ const n = xe(r), a = bn(r), s = hn(a), c = Pe(r), l = n === "y", u = o.x + o.width / 2 - e.width / 2, m = o.y + o.height / 2 - e.height / 2, h = o[s] / 2 - e[s] / 2;
10886
10886
  let p;
10887
10887
  switch (c) {
10888
10888
  case "top":
@@ -11002,7 +11002,7 @@ async function Tt(t, r) {
11002
11002
  elementContext: m = "floating",
11003
11003
  altBoundary: h = !1,
11004
11004
  padding: p = 0
11005
- } = Oe(r, t), v = Wa(p), b = s[h ? m === "floating" ? "reference" : "floating" : m], $ = lr(await n.getClippingRect({
11005
+ } = Ce(r, t), v = Wa(p), b = s[h ? m === "floating" ? "reference" : "floating" : m], $ = lr(await n.getClippingRect({
11006
11006
  element: (i = await (n.isElement == null ? void 0 : n.isElement(b))) == null || i ? b : b.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(s.floating)),
11007
11007
  boundary: l,
11008
11008
  rootBoundary: u,
@@ -11046,7 +11046,7 @@ const tx = (t) => ({
11046
11046
  } = r, {
11047
11047
  element: l,
11048
11048
  padding: u = 0
11049
- } = Oe(t, r) || {};
11049
+ } = Ce(t, r) || {};
11050
11050
  if (l == null)
11051
11051
  return {};
11052
11052
  const m = Wa(u), h = {
@@ -11055,7 +11055,7 @@ const tx = (t) => ({
11055
11055
  }, p = bn(e), v = hn(p), g = await a.getDimensions(l), b = p === "y", $ = b ? "top" : "left", x = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", y = n.reference[v] + n.reference[p] - h[p] - n.floating[v], I = h[p] - n.reference[p], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
11056
11056
  let w = E ? E[k] : 0;
11057
11057
  (!w || !await (a.isElement == null ? void 0 : a.isElement(E))) && (w = s.floating[k] || n.floating[v]);
11058
- const _ = y / 2 - I / 2, R = w / 2 - g[v] / 2 - 1, z = je(m[$], R), V = je(m[x], R), G = z, J = w - g[v] - V, F = w / 2 - g[v] / 2 + _, H = nn(G, F, J), M = !c.arrow && ft(e) != null && F !== H && n.reference[v] / 2 - (F < G ? z : V) - g[v] / 2 < 0, L = M ? F < G ? F - G : F - J : 0;
11058
+ const _ = y / 2 - I / 2, R = w / 2 - g[v] / 2 - 1, z = ze(m[$], R), V = ze(m[x], R), G = z, J = w - g[v] - V, F = w / 2 - g[v] / 2 + _, H = nn(G, F, J), M = !c.arrow && ft(e) != null && F !== H && n.reference[v] / 2 - (F < G ? z : V) - g[v] / 2 < 0, L = M ? F < G ? F - G : F - J : 0;
11059
11059
  return {
11060
11060
  [p]: h[p] + L,
11061
11061
  data: {
@@ -11089,10 +11089,10 @@ const tx = (t) => ({
11089
11089
  fallbackAxisSideDirection: v = "none",
11090
11090
  flipAlignment: g = !0,
11091
11091
  ...b
11092
- } = Oe(t, r);
11092
+ } = Ce(t, r);
11093
11093
  if ((i = n.arrow) != null && i.alignmentOffset)
11094
11094
  return {};
11095
- const $ = Ce(e), x = xe(s), k = Ce(s) === s, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), I = h || (k || !g ? [sr(s)] : K$(s)), E = v !== "none";
11095
+ const $ = Pe(e), x = xe(s), k = Pe(s) === s, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), I = h || (k || !g ? [sr(s)] : K$(s)), E = v !== "none";
11096
11096
  !h && E && I.push(...Y$(s, g, v, y));
11097
11097
  const w = [s, ...I], _ = await Tt(r, b), R = [];
11098
11098
  let z = ((o = n.flip) == null ? void 0 : o.overflows) || [];
@@ -11131,7 +11131,7 @@ const tx = (t) => ({
11131
11131
  Y === "y";
11132
11132
  }
11133
11133
  return !0;
11134
- }).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, ae) => Y + ae, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 : J[0];
11134
+ }).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, se) => Y + se, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 : J[0];
11135
11135
  L && (M = L);
11136
11136
  break;
11137
11137
  }
@@ -11171,7 +11171,7 @@ const nx = function(t) {
11171
11171
  } = r, {
11172
11172
  strategy: o = "referenceHidden",
11173
11173
  ...e
11174
- } = Oe(t, r);
11174
+ } = Ce(t, r);
11175
11175
  switch (o) {
11176
11176
  case "referenceHidden": {
11177
11177
  const n = await Tt(r, {
@@ -11208,7 +11208,7 @@ async function ox(t, r) {
11208
11208
  placement: i,
11209
11209
  platform: o,
11210
11210
  elements: e
11211
- } = t, n = await (o.isRTL == null ? void 0 : o.isRTL(e.floating)), a = Ce(i), s = ft(i), c = xe(i) === "y", l = Za.has(a) ? -1 : 1, u = n && c ? -1 : 1, m = Oe(r, t);
11211
+ } = t, n = await (o.isRTL == null ? void 0 : o.isRTL(e.floating)), a = Pe(i), s = ft(i), c = xe(i) === "y", l = Za.has(a) ? -1 : 1, u = n && c ? -1 : 1, m = Ce(r, t);
11212
11212
  let {
11213
11213
  mainAxis: h,
11214
11214
  crossAxis: p,
@@ -11277,10 +11277,10 @@ const ix = function(t) {
11277
11277
  }
11278
11278
  },
11279
11279
  ...c
11280
- } = Oe(t, r), l = {
11280
+ } = Ce(t, r), l = {
11281
11281
  x: i,
11282
11282
  y: o
11283
- }, u = await Tt(r, c), m = xe(Ce(e)), h = vn(m);
11283
+ }, u = await Tt(r, c), m = xe(Pe(e)), h = vn(m);
11284
11284
  let p = l[h], v = l[m];
11285
11285
  if (n) {
11286
11286
  const b = h === "y" ? "top" : "left", $ = h === "y" ? "bottom" : "right", x = p + u[b], k = p - u[$];
@@ -11322,12 +11322,12 @@ const ix = function(t) {
11322
11322
  offset: s = 0,
11323
11323
  mainAxis: c = !0,
11324
11324
  crossAxis: l = !0
11325
- } = Oe(t, r), u = {
11325
+ } = Ce(t, r), u = {
11326
11326
  x: i,
11327
11327
  y: o
11328
11328
  }, m = xe(e), h = vn(m);
11329
11329
  let p = u[h], v = u[m];
11330
- const g = Oe(s, r), b = typeof g == "number" ? {
11330
+ const g = Ce(s, r), b = typeof g == "number" ? {
11331
11331
  mainAxis: g,
11332
11332
  crossAxis: 0
11333
11333
  } : {
@@ -11341,7 +11341,7 @@ const ix = function(t) {
11341
11341
  }
11342
11342
  if (l) {
11343
11343
  var $, x;
11344
- const k = h === "y" ? "width" : "height", y = Za.has(Ce(e)), I = n.reference[m] - n.floating[k] + (y && (($ = a.offset) == null ? void 0 : $[m]) || 0) + (y ? 0 : b.crossAxis), E = n.reference[m] + n.reference[k] + (y ? 0 : ((x = a.offset) == null ? void 0 : x[m]) || 0) - (y ? b.crossAxis : 0);
11344
+ const k = h === "y" ? "width" : "height", y = Za.has(Pe(e)), I = n.reference[m] - n.floating[k] + (y && (($ = a.offset) == null ? void 0 : $[m]) || 0) + (y ? 0 : b.crossAxis), E = n.reference[m] + n.reference[k] + (y ? 0 : ((x = a.offset) == null ? void 0 : x[m]) || 0) - (y ? b.crossAxis : 0);
11345
11345
  v < I ? v = I : v > E && (v = E);
11346
11346
  }
11347
11347
  return {
@@ -11365,17 +11365,17 @@ const ix = function(t) {
11365
11365
  apply: c = () => {
11366
11366
  },
11367
11367
  ...l
11368
- } = Oe(t, r), u = await Tt(r, l), m = Ce(e), h = ft(e), p = xe(e) === "y", {
11368
+ } = Ce(t, r), u = await Tt(r, l), m = Pe(e), h = ft(e), p = xe(e) === "y", {
11369
11369
  width: v,
11370
11370
  height: g
11371
11371
  } = n.floating;
11372
11372
  let b, $;
11373
11373
  m === "top" || m === "bottom" ? (b = m, $ = h === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : ($ = m, b = h === "end" ? "top" : "bottom");
11374
- const x = g - u.top - u.bottom, k = v - u.left - u.right, y = je(g - u[b], x), I = je(v - u[$], k), E = !r.middlewareData.shift;
11374
+ const x = g - u.top - u.bottom, k = v - u.left - u.right, y = ze(g - u[b], x), I = ze(v - u[$], k), E = !r.middlewareData.shift;
11375
11375
  let w = y, _ = I;
11376
11376
  if ((i = r.middlewareData.shift) != null && i.enabled.x && (_ = k), (o = r.middlewareData.shift) != null && o.enabled.y && (w = x), E && !h) {
11377
- const z = se(u.left, 0), V = se(u.right, 0), G = se(u.top, 0), J = se(u.bottom, 0);
11378
- p ? _ = v - 2 * (z !== 0 || V !== 0 ? z + V : se(u.left, u.right)) : w = g - 2 * (G !== 0 || J !== 0 ? G + J : se(u.top, u.bottom));
11377
+ const z = le(u.left, 0), V = le(u.right, 0), G = le(u.top, 0), J = le(u.bottom, 0);
11378
+ p ? _ = v - 2 * (z !== 0 || V !== 0 ? z + V : le(u.left, u.right)) : w = g - 2 * (G !== 0 || J !== 0 ? G + J : le(u.top, u.bottom));
11379
11379
  }
11380
11380
  await c({
11381
11381
  ...r,
@@ -11397,25 +11397,25 @@ function vr() {
11397
11397
  function pt(t) {
11398
11398
  return Ba(t) ? (t.nodeName || "").toLowerCase() : "#document";
11399
11399
  }
11400
- function le(t) {
11400
+ function ce(t) {
11401
11401
  var r;
11402
11402
  return (t == null || (r = t.ownerDocument) == null ? void 0 : r.defaultView) || window;
11403
11403
  }
11404
- function Ie(t) {
11404
+ function ke(t) {
11405
11405
  var r;
11406
11406
  return (r = (Ba(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : r.documentElement;
11407
11407
  }
11408
11408
  function Ba(t) {
11409
- return vr() ? t instanceof Node || t instanceof le(t).Node : !1;
11409
+ return vr() ? t instanceof Node || t instanceof ce(t).Node : !1;
11410
11410
  }
11411
11411
  function pe(t) {
11412
- return vr() ? t instanceof Element || t instanceof le(t).Element : !1;
11412
+ return vr() ? t instanceof Element || t instanceof ce(t).Element : !1;
11413
11413
  }
11414
- function Se(t) {
11415
- return vr() ? t instanceof HTMLElement || t instanceof le(t).HTMLElement : !1;
11414
+ function Ie(t) {
11415
+ return vr() ? t instanceof HTMLElement || t instanceof ce(t).HTMLElement : !1;
11416
11416
  }
11417
11417
  function Eo(t) {
11418
- return !vr() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof le(t).ShadowRoot;
11418
+ return !vr() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ce(t).ShadowRoot;
11419
11419
  }
11420
11420
  const cx = /* @__PURE__ */ new Set(["inline", "contents"]);
11421
11421
  function jt(t) {
@@ -11447,13 +11447,13 @@ function yn(t) {
11447
11447
  return fx.some((o) => i[o] ? i[o] !== "none" : !1) || (i.containerType ? i.containerType !== "normal" : !1) || !r && (i.backdropFilter ? i.backdropFilter !== "none" : !1) || !r && (i.filter ? i.filter !== "none" : !1) || px.some((o) => (i.willChange || "").includes(o)) || gx.some((o) => (i.contain || "").includes(o));
11448
11448
  }
11449
11449
  function vx(t) {
11450
- let r = Ue(t);
11451
- for (; Se(r) && !lt(r); ) {
11450
+ let r = Me(t);
11451
+ for (; Ie(r) && !lt(r); ) {
11452
11452
  if (yn(r))
11453
11453
  return r;
11454
11454
  if (hr(r))
11455
11455
  return null;
11456
- r = Ue(r);
11456
+ r = Me(r);
11457
11457
  }
11458
11458
  return null;
11459
11459
  }
@@ -11465,7 +11465,7 @@ function lt(t) {
11465
11465
  return hx.has(pt(t));
11466
11466
  }
11467
11467
  function ge(t) {
11468
- return le(t).getComputedStyle(t);
11468
+ return ce(t).getComputedStyle(t);
11469
11469
  }
11470
11470
  function br(t) {
11471
11471
  return pe(t) ? {
@@ -11476,7 +11476,7 @@ function br(t) {
11476
11476
  scrollTop: t.scrollY
11477
11477
  };
11478
11478
  }
11479
- function Ue(t) {
11479
+ function Me(t) {
11480
11480
  if (pt(t) === "html")
11481
11481
  return t;
11482
11482
  const r = (
@@ -11484,18 +11484,18 @@ function Ue(t) {
11484
11484
  t.assignedSlot || // DOM Element detected.
11485
11485
  t.parentNode || // ShadowRoot detected.
11486
11486
  Eo(t) && t.host || // Fallback.
11487
- Ie(t)
11487
+ ke(t)
11488
11488
  );
11489
11489
  return Eo(r) ? r.host : r;
11490
11490
  }
11491
11491
  function Va(t) {
11492
- const r = Ue(t);
11493
- return lt(r) ? t.ownerDocument ? t.ownerDocument.body : t.body : Se(r) && jt(r) ? r : Va(r);
11492
+ const r = Me(t);
11493
+ return lt(r) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ie(r) && jt(r) ? r : Va(r);
11494
11494
  }
11495
11495
  function At(t, r, i) {
11496
11496
  var o;
11497
11497
  r === void 0 && (r = []), i === void 0 && (i = !0);
11498
- const e = Va(t), n = e === ((o = t.ownerDocument) == null ? void 0 : o.body), a = le(e);
11498
+ const e = Va(t), n = e === ((o = t.ownerDocument) == null ? void 0 : o.body), a = ce(e);
11499
11499
  if (n) {
11500
11500
  const s = an(a);
11501
11501
  return r.concat(a, a.visualViewport || [], jt(e) ? e : [], s && i ? At(s) : []);
@@ -11508,7 +11508,7 @@ function an(t) {
11508
11508
  function Ga(t) {
11509
11509
  const r = ge(t);
11510
11510
  let i = parseFloat(r.width) || 0, o = parseFloat(r.height) || 0;
11511
- const e = Se(t), n = e ? t.offsetWidth : i, a = e ? t.offsetHeight : o, s = ar(i) !== n || ar(o) !== a;
11511
+ const e = Ie(t), n = e ? t.offsetWidth : i, a = e ? t.offsetHeight : o, s = ar(i) !== n || ar(o) !== a;
11512
11512
  return s && (i = n, o = a), {
11513
11513
  width: i,
11514
11514
  height: o,
@@ -11520,8 +11520,8 @@ function xn(t) {
11520
11520
  }
11521
11521
  function it(t) {
11522
11522
  const r = xn(t);
11523
- if (!Se(r))
11524
- return we(1);
11523
+ if (!Ie(r))
11524
+ return _e(1);
11525
11525
  const i = r.getBoundingClientRect(), {
11526
11526
  width: o,
11527
11527
  height: e,
@@ -11533,30 +11533,30 @@ function it(t) {
11533
11533
  y: s
11534
11534
  };
11535
11535
  }
11536
- const bx = /* @__PURE__ */ we(0);
11536
+ const bx = /* @__PURE__ */ _e(0);
11537
11537
  function Ja(t) {
11538
- const r = le(t);
11538
+ const r = ce(t);
11539
11539
  return !$n() || !r.visualViewport ? bx : {
11540
11540
  x: r.visualViewport.offsetLeft,
11541
11541
  y: r.visualViewport.offsetTop
11542
11542
  };
11543
11543
  }
11544
11544
  function yx(t, r, i) {
11545
- return r === void 0 && (r = !1), !i || r && i !== le(t) ? !1 : r;
11545
+ return r === void 0 && (r = !1), !i || r && i !== ce(t) ? !1 : r;
11546
11546
  }
11547
11547
  function Ze(t, r, i, o) {
11548
11548
  r === void 0 && (r = !1), i === void 0 && (i = !1);
11549
11549
  const e = t.getBoundingClientRect(), n = xn(t);
11550
- let a = we(1);
11550
+ let a = _e(1);
11551
11551
  r && (o ? pe(o) && (a = it(o)) : a = it(t));
11552
- const s = yx(n, i, o) ? Ja(n) : we(0);
11552
+ const s = yx(n, i, o) ? Ja(n) : _e(0);
11553
11553
  let c = (e.left + s.x) / a.x, l = (e.top + s.y) / a.y, u = e.width / a.x, m = e.height / a.y;
11554
11554
  if (n) {
11555
- const h = le(n), p = o && pe(o) ? le(o) : o;
11555
+ const h = ce(n), p = o && pe(o) ? ce(o) : o;
11556
11556
  let v = h, g = an(v);
11557
11557
  for (; g && o && p !== v; ) {
11558
11558
  const b = it(g), $ = g.getBoundingClientRect(), x = ge(g), k = $.left + (g.clientLeft + parseFloat(x.paddingLeft)) * b.x, y = $.top + (g.clientTop + parseFloat(x.paddingTop)) * b.y;
11559
- c *= b.x, l *= b.y, u *= b.x, m *= b.y, c += k, l += y, v = le(g), g = an(v);
11559
+ c *= b.x, l *= b.y, u *= b.x, m *= b.y, c += k, l += y, v = ce(g), g = an(v);
11560
11560
  }
11561
11561
  }
11562
11562
  return lr({
@@ -11568,7 +11568,7 @@ function Ze(t, r, i, o) {
11568
11568
  }
11569
11569
  function yr(t, r) {
11570
11570
  const i = br(t).scrollLeft;
11571
- return r ? r.left + i : Ze(Ie(t)).left + i;
11571
+ return r ? r.left + i : Ze(ke(t)).left + i;
11572
11572
  }
11573
11573
  function Ka(t, r) {
11574
11574
  const i = t.getBoundingClientRect(), o = i.left + r.scrollLeft - yr(t, i), e = i.top + r.scrollTop;
@@ -11584,19 +11584,19 @@ function $x(t) {
11584
11584
  offsetParent: o,
11585
11585
  strategy: e
11586
11586
  } = t;
11587
- const n = e === "fixed", a = Ie(o), s = r ? hr(r.floating) : !1;
11587
+ const n = e === "fixed", a = ke(o), s = r ? hr(r.floating) : !1;
11588
11588
  if (o === a || s && n)
11589
11589
  return i;
11590
11590
  let c = {
11591
11591
  scrollLeft: 0,
11592
11592
  scrollTop: 0
11593
- }, l = we(1);
11594
- const u = we(0), m = Se(o);
11595
- if ((m || !m && !n) && ((pt(o) !== "body" || jt(a)) && (c = br(o)), Se(o))) {
11593
+ }, l = _e(1);
11594
+ const u = _e(0), m = Ie(o);
11595
+ if ((m || !m && !n) && ((pt(o) !== "body" || jt(a)) && (c = br(o)), Ie(o))) {
11596
11596
  const p = Ze(o);
11597
11597
  l = it(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
11598
11598
  }
11599
- const h = a && !m && !n ? Ka(a, c) : we(0);
11599
+ const h = a && !m && !n ? Ka(a, c) : _e(0);
11600
11600
  return {
11601
11601
  width: i.width * l.x,
11602
11602
  height: i.height * l.y,
@@ -11608,10 +11608,10 @@ function xx(t) {
11608
11608
  return Array.from(t.getClientRects());
11609
11609
  }
11610
11610
  function wx(t) {
11611
- const r = Ie(t), i = br(t), o = t.ownerDocument.body, e = se(r.scrollWidth, r.clientWidth, o.scrollWidth, o.clientWidth), n = se(r.scrollHeight, r.clientHeight, o.scrollHeight, o.clientHeight);
11611
+ const r = ke(t), i = br(t), o = t.ownerDocument.body, e = le(r.scrollWidth, r.clientWidth, o.scrollWidth, o.clientWidth), n = le(r.scrollHeight, r.clientHeight, o.scrollHeight, o.clientHeight);
11612
11612
  let a = -i.scrollLeft + yr(t);
11613
11613
  const s = -i.scrollTop;
11614
- return ge(o).direction === "rtl" && (a += se(r.clientWidth, o.clientWidth) - e), {
11614
+ return ge(o).direction === "rtl" && (a += le(r.clientWidth, o.clientWidth) - e), {
11615
11615
  width: e,
11616
11616
  height: n,
11617
11617
  x: a,
@@ -11620,7 +11620,7 @@ function wx(t) {
11620
11620
  }
11621
11621
  const Oo = 25;
11622
11622
  function _x(t, r) {
11623
- const i = le(t), o = Ie(t), e = i.visualViewport;
11623
+ const i = ce(t), o = ke(t), e = i.visualViewport;
11624
11624
  let n = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
11625
11625
  if (e) {
11626
11626
  n = e.width, a = e.height;
@@ -11641,7 +11641,7 @@ function _x(t, r) {
11641
11641
  }
11642
11642
  const Sx = /* @__PURE__ */ new Set(["absolute", "fixed"]);
11643
11643
  function Ix(t, r) {
11644
- const i = Ze(t, !0, r === "fixed"), o = i.top + t.clientTop, e = i.left + t.clientLeft, n = Se(t) ? it(t) : we(1), a = t.clientWidth * n.x, s = t.clientHeight * n.y, c = e * n.x, l = o * n.y;
11644
+ const i = Ze(t, !0, r === "fixed"), o = i.top + t.clientTop, e = i.left + t.clientLeft, n = Ie(t) ? it(t) : _e(1), a = t.clientWidth * n.x, s = t.clientHeight * n.y, c = e * n.x, l = o * n.y;
11645
11645
  return {
11646
11646
  width: a,
11647
11647
  height: s,
@@ -11654,7 +11654,7 @@ function Co(t, r, i) {
11654
11654
  if (r === "viewport")
11655
11655
  o = _x(t, i);
11656
11656
  else if (r === "document")
11657
- o = wx(Ie(t));
11657
+ o = wx(ke(t));
11658
11658
  else if (pe(r))
11659
11659
  o = Ix(r, i);
11660
11660
  else {
@@ -11669,7 +11669,7 @@ function Co(t, r, i) {
11669
11669
  return lr(o);
11670
11670
  }
11671
11671
  function qa(t, r) {
11672
- const i = Ue(t);
11672
+ const i = Me(t);
11673
11673
  return i === r || !pe(i) || lt(i) ? !1 : ge(i).position === "fixed" || qa(i, r);
11674
11674
  }
11675
11675
  function kx(t, r) {
@@ -11678,10 +11678,10 @@ function kx(t, r) {
11678
11678
  return i;
11679
11679
  let o = At(t, [], !1).filter((s) => pe(s) && pt(s) !== "body"), e = null;
11680
11680
  const n = ge(t).position === "fixed";
11681
- let a = n ? Ue(t) : t;
11681
+ let a = n ? Me(t) : t;
11682
11682
  for (; pe(a) && !lt(a); ) {
11683
11683
  const s = ge(a), c = yn(a);
11684
- !c && s.position === "fixed" && (e = null), (n ? !c && !e : !c && s.position === "static" && !!e && Sx.has(e.position) || jt(a) && !c && qa(t, a)) ? o = o.filter((u) => u !== a) : e = s, a = Ue(a);
11684
+ !c && s.position === "fixed" && (e = null), (n ? !c && !e : !c && s.position === "static" && !!e && Sx.has(e.position) || jt(a) && !c && qa(t, a)) ? o = o.filter((u) => u !== a) : e = s, a = Me(a);
11685
11685
  }
11686
11686
  return r.set(t, o), o;
11687
11687
  }
@@ -11694,7 +11694,7 @@ function Nx(t) {
11694
11694
  } = t;
11695
11695
  const a = [...i === "clippingAncestors" ? hr(r) ? [] : kx(r, this._c) : [].concat(i), o], s = a[0], c = a.reduce((l, u) => {
11696
11696
  const m = Co(r, u, e);
11697
- return l.top = se(m.top, l.top), l.right = je(m.right, l.right), l.bottom = je(m.bottom, l.bottom), l.left = se(m.left, l.left), l;
11697
+ return l.top = le(m.top, l.top), l.right = ze(m.right, l.right), l.bottom = ze(m.bottom, l.bottom), l.left = le(m.left, l.left), l;
11698
11698
  }, Co(r, s, e));
11699
11699
  return {
11700
11700
  width: c.right - c.left,
@@ -11714,12 +11714,12 @@ function Ex(t) {
11714
11714
  };
11715
11715
  }
11716
11716
  function Ox(t, r, i) {
11717
- const o = Se(r), e = Ie(r), n = i === "fixed", a = Ze(t, !0, n, r);
11717
+ const o = Ie(r), e = ke(r), n = i === "fixed", a = Ze(t, !0, n, r);
11718
11718
  let s = {
11719
11719
  scrollLeft: 0,
11720
11720
  scrollTop: 0
11721
11721
  };
11722
- const c = we(0);
11722
+ const c = _e(0);
11723
11723
  function l() {
11724
11724
  c.x = yr(e);
11725
11725
  }
@@ -11729,7 +11729,7 @@ function Ox(t, r, i) {
11729
11729
  c.x = p.x + r.clientLeft, c.y = p.y + r.clientTop;
11730
11730
  } else e && l();
11731
11731
  n && !o && e && l();
11732
- const u = e && !o && !n ? Ka(e, s) : we(0), m = a.left + s.scrollLeft - c.x - u.x, h = a.top + s.scrollTop - c.y - u.y;
11732
+ const u = e && !o && !n ? Ka(e, s) : _e(0), m = a.left + s.scrollLeft - c.x - u.x, h = a.top + s.scrollTop - c.y - u.y;
11733
11733
  return {
11734
11734
  x: m,
11735
11735
  y: h,
@@ -11741,23 +11741,23 @@ function jr(t) {
11741
11741
  return ge(t).position === "static";
11742
11742
  }
11743
11743
  function Po(t, r) {
11744
- if (!Se(t) || ge(t).position === "fixed")
11744
+ if (!Ie(t) || ge(t).position === "fixed")
11745
11745
  return null;
11746
11746
  if (r)
11747
11747
  return r(t);
11748
11748
  let i = t.offsetParent;
11749
- return Ie(t) === i && (i = i.ownerDocument.body), i;
11749
+ return ke(t) === i && (i = i.ownerDocument.body), i;
11750
11750
  }
11751
11751
  function Ha(t, r) {
11752
- const i = le(t);
11752
+ const i = ce(t);
11753
11753
  if (hr(t))
11754
11754
  return i;
11755
- if (!Se(t)) {
11756
- let e = Ue(t);
11755
+ if (!Ie(t)) {
11756
+ let e = Me(t);
11757
11757
  for (; e && !lt(e); ) {
11758
11758
  if (pe(e) && !jr(e))
11759
11759
  return e;
11760
- e = Ue(e);
11760
+ e = Me(e);
11761
11761
  }
11762
11762
  return i;
11763
11763
  }
@@ -11783,7 +11783,7 @@ function Px(t) {
11783
11783
  }
11784
11784
  const Tx = {
11785
11785
  convertOffsetParentRelativeRectToViewportRelativeRect: $x,
11786
- getDocumentElement: Ie,
11786
+ getDocumentElement: ke,
11787
11787
  getClippingRect: Nx,
11788
11788
  getOffsetParent: Ha,
11789
11789
  getElementRects: Cx,
@@ -11798,7 +11798,7 @@ function Xa(t, r) {
11798
11798
  }
11799
11799
  function Ax(t, r) {
11800
11800
  let i = null, o;
11801
- const e = Ie(t);
11801
+ const e = ke(t);
11802
11802
  function n() {
11803
11803
  var s;
11804
11804
  clearTimeout(o), (s = i) == null || s.disconnect(), i = null;
@@ -11815,7 +11815,7 @@ function Ax(t, r) {
11815
11815
  return;
11816
11816
  const v = Vt(m), g = Vt(e.clientWidth - (u + h)), b = Vt(e.clientHeight - (m + p)), $ = Vt(u), k = {
11817
11817
  rootMargin: -v + "px " + -g + "px " + -b + "px " + -$ + "px",
11818
- threshold: se(0, je(1, c)) || 1
11818
+ threshold: le(0, ze(1, c)) || 1
11819
11819
  };
11820
11820
  let y = !0;
11821
11821
  function I(E) {
@@ -11972,7 +11972,7 @@ function Bx(t) {
11972
11972
  middleware: h
11973
11973
  };
11974
11974
  V.current && (N.platform = V.current), Fx(E.current, w.current, N).then((Y) => {
11975
- const ae = {
11975
+ const se = {
11976
11976
  ...Y,
11977
11977
  // The floating element's position may be recomputed while it's closed
11978
11978
  // but still mounted (such as when transitioning out). To ensure
@@ -11980,8 +11980,8 @@ function Bx(t) {
11980
11980
  // setting it to `true` when `open === false` (must be specified).
11981
11981
  isPositioned: G.current !== !1
11982
11982
  };
11983
- F.current && !cr(_.current, ae) && (_.current = ae, ra.flushSync(() => {
11984
- m(ae);
11983
+ F.current && !cr(_.current, se) && (_.current = se, ra.flushSync(() => {
11984
+ m(se);
11985
11985
  }));
11986
11986
  });
11987
11987
  }, [h, r, i, V, G]);
@@ -12017,17 +12017,17 @@ function Bx(t) {
12017
12017
  };
12018
12018
  if (!M.floating)
12019
12019
  return N;
12020
- const Y = Ao(M.floating, u.x), ae = Ao(M.floating, u.y);
12020
+ const Y = Ao(M.floating, u.x), se = Ao(M.floating, u.y);
12021
12021
  return s ? {
12022
12022
  ...N,
12023
- transform: "translate(" + Y + "px, " + ae + "px)",
12023
+ transform: "translate(" + Y + "px, " + se + "px)",
12024
12024
  ...Ya(M.floating) >= 1.5 && {
12025
12025
  willChange: "transform"
12026
12026
  }
12027
12027
  } : {
12028
12028
  position: i,
12029
12029
  left: Y,
12030
- top: ae
12030
+ top: se
12031
12031
  };
12032
12032
  }, [i, s, M.floating, u.x, u.y]);
12033
12033
  return f.useMemo(() => ({
@@ -12127,7 +12127,7 @@ var wn = "Popper", [es, $r] = Dt(wn), [rw, ts] = es(wn), rs = (t) => {
12127
12127
  rs.displayName = wn;
12128
12128
  var ns = "PopperAnchor", os = f.forwardRef(
12129
12129
  (t, r) => {
12130
- const { __scopePopper: i, virtualRef: o, ...e } = t, n = ts(ns, i), a = f.useRef(null), s = ie(r, a), c = f.useRef(null);
12130
+ const { __scopePopper: i, virtualRef: o, ...e } = t, n = ts(ns, i), a = f.useRef(null), s = ae(r, a), c = f.useRef(null);
12131
12131
  return f.useEffect(() => {
12132
12132
  const l = c.current;
12133
12133
  c.current = o?.current || a.current, l !== c.current && n.onAnchorChange(c.current);
@@ -12152,7 +12152,7 @@ var _n = "PopperContent", [nw, ow] = es(_n), is = f.forwardRef(
12152
12152
  updatePositionStrategy: p = "optimized",
12153
12153
  onPlaced: v,
12154
12154
  ...g
12155
- } = t, b = ts(_n, i), [$, x] = f.useState(null), k = ie(r, (Z) => x(Z)), [y, I] = f.useState(null), E = tw(y), w = E?.width ?? 0, _ = E?.height ?? 0, R = o + (n !== "center" ? "-" + n : ""), z = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, V = Array.isArray(l) ? l : [l], G = V.length > 0, J = {
12155
+ } = t, b = ts(_n, i), [$, x] = f.useState(null), k = ae(r, (Z) => x(Z)), [y, I] = f.useState(null), E = tw(y), w = E?.width ?? 0, _ = E?.height ?? 0, R = o + (n !== "center" ? "-" + n : ""), z = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, V = Array.isArray(l) ? l : [l], G = V.length > 0, J = {
12156
12156
  padding: z,
12157
12157
  boundary: V.filter(aw),
12158
12158
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -12187,7 +12187,7 @@ var _n = "PopperContent", [nw, ow] = es(_n), is = f.forwardRef(
12187
12187
  sw({ arrowWidth: w, arrowHeight: _ }),
12188
12188
  h && Xx({ strategy: "referenceHidden", ...J })
12189
12189
  ]
12190
- }), [Y, ae] = ls(M), gt = We(v);
12190
+ }), [Y, se] = ls(M), gt = We(v);
12191
12191
  me(() => {
12192
12192
  L && gt?.();
12193
12193
  }, [L, gt]);
@@ -12231,7 +12231,7 @@ var _n = "PopperContent", [nw, ow] = es(_n), is = f.forwardRef(
12231
12231
  ee.div,
12232
12232
  {
12233
12233
  "data-side": Y,
12234
- "data-align": ae,
12234
+ "data-align": se,
12235
12235
  ...g,
12236
12236
  ref: k,
12237
12237
  style: {
@@ -12326,11 +12326,11 @@ xr.displayName = lw;
12326
12326
  function cw(t, r) {
12327
12327
  return f.useReducer((i, o) => r[i][o] ?? i, t);
12328
12328
  }
12329
- var Pe = (t) => {
12330
- const { present: r, children: i } = t, o = uw(r), e = typeof i == "function" ? i({ present: o.isPresent }) : f.Children.only(i), n = ie(o.ref, dw(e));
12329
+ var Te = (t) => {
12330
+ const { present: r, children: i } = t, o = uw(r), e = typeof i == "function" ? i({ present: o.isPresent }) : f.Children.only(i), n = ae(o.ref, dw(e));
12331
12331
  return typeof i == "function" || o.isPresent ? f.cloneElement(e, { ref: n }) : null;
12332
12332
  };
12333
- Pe.displayName = "Presence";
12333
+ Te.displayName = "Presence";
12334
12334
  function uw(t) {
12335
12335
  const [r, i] = f.useState(), o = f.useRef(null), e = f.useRef(t), n = f.useRef("none"), a = t ? "mounted" : "unmounted", [s, c] = cw(a, {
12336
12336
  mounted: {
@@ -12547,7 +12547,7 @@ var Rt = "Tooltip", [$w, Ut] = _r(Rt), gs = (t) => {
12547
12547
  gs.displayName = Rt;
12548
12548
  var ln = "TooltipTrigger", vs = f.forwardRef(
12549
12549
  (t, r) => {
12550
- const { __scopeTooltip: i, ...o } = t, e = Ut(ln, i), n = In(ln, i), a = Sr(i), s = f.useRef(null), c = ie(r, s, e.onTriggerChange), l = f.useRef(!1), u = f.useRef(!1), m = f.useCallback(() => l.current = !1, []);
12550
+ const { __scopeTooltip: i, ...o } = t, e = Ut(ln, i), n = In(ln, i), a = Sr(i), s = f.useRef(null), c = ae(r, s, e.onTriggerChange), l = f.useRef(!1), u = f.useRef(!1), m = f.useCallback(() => l.current = !1, []);
12551
12551
  return f.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ d(Sn, { asChild: !0, ...a, children: /* @__PURE__ */ d(
12552
12552
  ee.button,
12553
12553
  {
@@ -12578,16 +12578,16 @@ var kn = "TooltipPortal", [xw, ww] = _r(kn, {
12578
12578
  forceMount: void 0
12579
12579
  }), hs = (t) => {
12580
12580
  const { __scopeTooltip: r, forceMount: i, children: o, container: e } = t, n = Ut(kn, r);
12581
- return /* @__PURE__ */ d(xw, { scope: r, forceMount: i, children: /* @__PURE__ */ d(Pe, { present: i || n.open, children: /* @__PURE__ */ d(xr, { asChild: !0, container: e, children: o }) }) });
12581
+ return /* @__PURE__ */ d(xw, { scope: r, forceMount: i, children: /* @__PURE__ */ d(Te, { present: i || n.open, children: /* @__PURE__ */ d(xr, { asChild: !0, container: e, children: o }) }) });
12582
12582
  };
12583
12583
  hs.displayName = kn;
12584
12584
  var ct = "TooltipContent", bs = f.forwardRef(
12585
12585
  (t, r) => {
12586
12586
  const i = ww(ct, t.__scopeTooltip), { forceMount: o = i.forceMount, side: e = "top", ...n } = t, a = Ut(ct, t.__scopeTooltip);
12587
- return /* @__PURE__ */ d(Pe, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ d(ys, { side: e, ...n, ref: r }) : /* @__PURE__ */ d(_w, { side: e, ...n, ref: r }) });
12587
+ return /* @__PURE__ */ d(Te, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ d(ys, { side: e, ...n, ref: r }) : /* @__PURE__ */ d(_w, { side: e, ...n, ref: r }) });
12588
12588
  }
12589
12589
  ), _w = f.forwardRef((t, r) => {
12590
- const i = Ut(ct, t.__scopeTooltip), o = In(ct, t.__scopeTooltip), e = f.useRef(null), n = ie(r, e), [a, s] = f.useState(null), { trigger: c, onClose: l } = i, u = e.current, { onPointerInTransitChange: m } = o, h = f.useCallback(() => {
12590
+ const i = Ut(ct, t.__scopeTooltip), o = In(ct, t.__scopeTooltip), e = f.useRef(null), n = ae(r, e), [a, s] = f.useState(null), { trigger: c, onClose: l } = i, u = e.current, { onPointerInTransitChange: m } = o, h = f.useCallback(() => {
12591
12591
  s(null), m(!1);
12592
12592
  }, [m]), p = f.useCallback(
12593
12593
  (v, g) => {
@@ -12823,7 +12823,7 @@ const fe = mr(
12823
12823
  ...n
12824
12824
  }, a) => /* @__PURE__ */ T(Nn, { children: [
12825
12825
  /* @__PURE__ */ d(En, { asChild: !0, children: /* @__PURE__ */ T(
12826
- _e,
12826
+ Se,
12827
12827
  {
12828
12828
  variant: "ghost",
12829
12829
  size: "icon",
@@ -12867,7 +12867,7 @@ const Mw = () => /* @__PURE__ */ d(
12867
12867
  }, Fw = ({
12868
12868
  copiedDuration: t = 3e3
12869
12869
  } = {}) => {
12870
- const [r, i] = de(!1);
12870
+ const [r, i] = ie(!1);
12871
12871
  return { isCopied: r, copyToClipboard: (e) => {
12872
12872
  e && navigator.clipboard.writeText(e).then(() => {
12873
12873
  i(!0), setTimeout(() => i(!1), t);
@@ -13047,7 +13047,7 @@ const Mw = () => /* @__PURE__ */ d(
13047
13047
  );
13048
13048
  },
13049
13049
  CodeHeader: Lw
13050
- }), Zw = ce([
13050
+ }), Zw = ue([
13051
13051
  q({
13052
13052
  type: D("text"),
13053
13053
  text: P()
@@ -13145,12 +13145,12 @@ ks.displayName = Is;
13145
13145
  var Pn = "CollapsibleContent", Ns = f.forwardRef(
13146
13146
  (t, r) => {
13147
13147
  const { forceMount: i, ...o } = t, e = Cn(Pn, t.__scopeCollapsible);
13148
- return /* @__PURE__ */ d(Pe, { present: i || e.open, children: ({ present: n }) => /* @__PURE__ */ d(qw, { ...o, ref: r, present: n }) });
13148
+ return /* @__PURE__ */ d(Te, { present: i || e.open, children: ({ present: n }) => /* @__PURE__ */ d(qw, { ...o, ref: r, present: n }) });
13149
13149
  }
13150
13150
  );
13151
13151
  Ns.displayName = Pn;
13152
13152
  var qw = f.forwardRef((t, r) => {
13153
- const { __scopeCollapsible: i, present: o, children: e, ...n } = t, a = Cn(Pn, i), [s, c] = f.useState(o), l = f.useRef(null), u = ie(r, l), m = f.useRef(0), h = m.current, p = f.useRef(0), v = p.current, g = a.open || s, b = f.useRef(g), $ = f.useRef(void 0);
13153
+ const { __scopeCollapsible: i, present: o, children: e, ...n } = t, a = Cn(Pn, i), [s, c] = f.useState(o), l = f.useRef(null), u = ae(r, l), m = f.useRef(0), h = m.current, p = f.useRef(0), v = p.current, g = a.open || s, b = f.useRef(g), $ = f.useRef(void 0);
13154
13154
  return f.useEffect(() => {
13155
13155
  const x = requestAnimationFrame(() => b.current = !1);
13156
13156
  return () => cancelAnimationFrame(x);
@@ -13214,7 +13214,7 @@ function Qw({
13214
13214
  );
13215
13215
  }
13216
13216
  const Ro = 200, Es = ({ className: t, children: r }) => {
13217
- const i = Le(null), [o, e] = de(!1), n = Og(i, Ro), a = nr(
13217
+ const i = we(null), [o, e] = ie(!1), n = Og(i, Ro), a = nr(
13218
13218
  (s) => {
13219
13219
  s || n(), e(s);
13220
13220
  },
@@ -13357,7 +13357,7 @@ var zr = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Do
13357
13357
  onMountAutoFocus: e,
13358
13358
  onUnmountAutoFocus: n,
13359
13359
  ...a
13360
- } = t, [s, c] = f.useState(null), l = We(e), u = We(n), m = f.useRef(null), h = ie(r, (g) => c(g)), p = f.useRef({
13360
+ } = t, [s, c] = f.useState(null), l = We(e), u = We(n), m = f.useRef(null), h = ae(r, (g) => c(g)), p = f.useRef({
13361
13361
  paused: !1,
13362
13362
  pause() {
13363
13363
  this.paused = !0;
@@ -13371,15 +13371,15 @@ var zr = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Do
13371
13371
  let g = function(k) {
13372
13372
  if (p.paused || !s) return;
13373
13373
  const y = k.target;
13374
- s.contains(y) ? m.current = y : Re(m.current, { select: !0 });
13374
+ s.contains(y) ? m.current = y : De(m.current, { select: !0 });
13375
13375
  }, b = function(k) {
13376
13376
  if (p.paused || !s) return;
13377
13377
  const y = k.relatedTarget;
13378
- y !== null && (s.contains(y) || Re(m.current, { select: !0 }));
13378
+ y !== null && (s.contains(y) || De(m.current, { select: !0 }));
13379
13379
  }, $ = function(k) {
13380
13380
  if (document.activeElement === document.body)
13381
13381
  for (const I of k)
13382
- I.removedNodes.length > 0 && Re(s);
13382
+ I.removedNodes.length > 0 && De(s);
13383
13383
  };
13384
13384
  document.addEventListener("focusin", g), document.addEventListener("focusout", b);
13385
13385
  const x = new MutationObserver($);
@@ -13393,12 +13393,12 @@ var zr = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Do
13393
13393
  const g = document.activeElement;
13394
13394
  if (!s.contains(g)) {
13395
13395
  const $ = new CustomEvent(zr, Do);
13396
- s.addEventListener(zr, l), s.dispatchEvent($), $.defaultPrevented || (i_(u_(As(s)), { select: !0 }), document.activeElement === g && Re(s));
13396
+ s.addEventListener(zr, l), s.dispatchEvent($), $.defaultPrevented || (i_(u_(As(s)), { select: !0 }), document.activeElement === g && De(s));
13397
13397
  }
13398
13398
  return () => {
13399
13399
  s.removeEventListener(zr, l), setTimeout(() => {
13400
13400
  const $ = new CustomEvent(Mr, Do);
13401
- s.addEventListener(Mr, u), s.dispatchEvent($), $.defaultPrevented || Re(g ?? document.body, { select: !0 }), s.removeEventListener(Mr, u), Uo.remove(p);
13401
+ s.addEventListener(Mr, u), s.dispatchEvent($), $.defaultPrevented || De(g ?? document.body, { select: !0 }), s.removeEventListener(Mr, u), Uo.remove(p);
13402
13402
  }, 0);
13403
13403
  };
13404
13404
  }
@@ -13409,7 +13409,7 @@ var zr = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Do
13409
13409
  const b = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, $ = document.activeElement;
13410
13410
  if (b && $) {
13411
13411
  const x = g.currentTarget, [k, y] = a_(x);
13412
- k && y ? !g.shiftKey && $ === y ? (g.preventDefault(), i && Re(k, { select: !0 })) : g.shiftKey && $ === k && (g.preventDefault(), i && Re(y, { select: !0 })) : $ === x && g.preventDefault();
13412
+ k && y ? !g.shiftKey && $ === y ? (g.preventDefault(), i && De(k, { select: !0 })) : g.shiftKey && $ === k && (g.preventDefault(), i && De(y, { select: !0 })) : $ === x && g.preventDefault();
13413
13413
  }
13414
13414
  },
13415
13415
  [i, o, p.paused]
@@ -13420,7 +13420,7 @@ An.displayName = o_;
13420
13420
  function i_(t, { select: r = !1 } = {}) {
13421
13421
  const i = document.activeElement;
13422
13422
  for (const o of t)
13423
- if (Re(o, { select: r }), document.activeElement !== i) return;
13423
+ if (De(o, { select: r }), document.activeElement !== i) return;
13424
13424
  }
13425
13425
  function a_(t) {
13426
13426
  const r = As(t), i = jo(r, t), o = jo(r.reverse(), t);
@@ -13452,7 +13452,7 @@ function s_(t, { upTo: r }) {
13452
13452
  function l_(t) {
13453
13453
  return t instanceof HTMLInputElement && "select" in t;
13454
13454
  }
13455
- function Re(t, { select: r = !1 } = {}) {
13455
+ function De(t, { select: r = !1 } = {}) {
13456
13456
  if (t && t.focus) {
13457
13457
  const i = document.activeElement;
13458
13458
  t.focus({ preventScroll: !0 }), t !== i && l_(t) && r && t.select();
@@ -13518,7 +13518,7 @@ function Fr(t, r) {
13518
13518
  return typeof t == "function" ? t(r) : t && (t.current = r), t;
13519
13519
  }
13520
13520
  function p_(t, r) {
13521
- var i = de(function() {
13521
+ var i = ie(function() {
13522
13522
  return {
13523
13523
  // value
13524
13524
  value: t,
@@ -14048,7 +14048,7 @@ var J_ = function(t) {
14048
14048
  Vs.displayName = Nr;
14049
14049
  var Gs = "DialogTrigger", Js = f.forwardRef(
14050
14050
  (t, r) => {
14051
- const { __scopeDialog: i, ...o } = t, e = he(Gs, i), n = ie(r, e.triggerRef);
14051
+ const { __scopeDialog: i, ...o } = t, e = he(Gs, i), n = ae(r, e.triggerRef);
14052
14052
  return /* @__PURE__ */ d(
14053
14053
  ee.button,
14054
14054
  {
@@ -14069,13 +14069,13 @@ var Dn = "DialogPortal", [X_, Ks] = Bs(Dn, {
14069
14069
  forceMount: void 0
14070
14070
  }), qs = (t) => {
14071
14071
  const { __scopeDialog: r, forceMount: i, children: o, container: e } = t, n = he(Dn, r);
14072
- return /* @__PURE__ */ d(X_, { scope: r, forceMount: i, children: f.Children.map(o, (a) => /* @__PURE__ */ d(Pe, { present: i || n.open, children: /* @__PURE__ */ d(xr, { asChild: !0, container: e, children: a }) })) });
14072
+ return /* @__PURE__ */ d(X_, { scope: r, forceMount: i, children: f.Children.map(o, (a) => /* @__PURE__ */ d(Te, { present: i || n.open, children: /* @__PURE__ */ d(xr, { asChild: !0, container: e, children: a }) })) });
14073
14073
  };
14074
14074
  qs.displayName = Dn;
14075
14075
  var ur = "DialogOverlay", Hs = f.forwardRef(
14076
14076
  (t, r) => {
14077
14077
  const i = Ks(ur, t.__scopeDialog), { forceMount: o = i.forceMount, ...e } = t, n = he(ur, t.__scopeDialog);
14078
- return n.modal ? /* @__PURE__ */ d(Pe, { present: o || n.open, children: /* @__PURE__ */ d(Q_, { ...e, ref: r }) }) : null;
14078
+ return n.modal ? /* @__PURE__ */ d(Te, { present: o || n.open, children: /* @__PURE__ */ d(Q_, { ...e, ref: r }) }) : null;
14079
14079
  }
14080
14080
  );
14081
14081
  Hs.displayName = ur;
@@ -14099,13 +14099,13 @@ var Y_ = /* @__PURE__ */ gn("DialogOverlay.RemoveScroll"), Q_ = f.forwardRef(
14099
14099
  ), Be = "DialogContent", Xs = f.forwardRef(
14100
14100
  (t, r) => {
14101
14101
  const i = Ks(Be, t.__scopeDialog), { forceMount: o = i.forceMount, ...e } = t, n = he(Be, t.__scopeDialog);
14102
- return /* @__PURE__ */ d(Pe, { present: o || n.open, children: n.modal ? /* @__PURE__ */ d(eS, { ...e, ref: r }) : /* @__PURE__ */ d(tS, { ...e, ref: r }) });
14102
+ return /* @__PURE__ */ d(Te, { present: o || n.open, children: n.modal ? /* @__PURE__ */ d(eS, { ...e, ref: r }) : /* @__PURE__ */ d(tS, { ...e, ref: r }) });
14103
14103
  }
14104
14104
  );
14105
14105
  Xs.displayName = Be;
14106
14106
  var eS = f.forwardRef(
14107
14107
  (t, r) => {
14108
- const i = he(Be, t.__scopeDialog), o = f.useRef(null), e = ie(r, i.contentRef, o);
14108
+ const i = he(Be, t.__scopeDialog), o = f.useRef(null), e = ae(r, i.contentRef, o);
14109
14109
  return f.useEffect(() => {
14110
14110
  const n = o.current;
14111
14111
  if (n) return Zs(n);
@@ -14153,7 +14153,7 @@ var eS = f.forwardRef(
14153
14153
  }
14154
14154
  ), Ys = f.forwardRef(
14155
14155
  (t, r) => {
14156
- const { __scopeDialog: i, trapFocus: o, onOpenAutoFocus: e, onCloseAutoFocus: n, ...a } = t, s = he(Be, i), c = f.useRef(null), l = ie(r, c);
14156
+ const { __scopeDialog: i, trapFocus: o, onOpenAutoFocus: e, onCloseAutoFocus: n, ...a } = t, s = he(Be, i), c = f.useRef(null), l = ae(r, c);
14157
14157
  return Rs(), /* @__PURE__ */ T(Ot, { children: [
14158
14158
  /* @__PURE__ */ d(
14159
14159
  An,
@@ -14507,8 +14507,8 @@ function TS({
14507
14507
  );
14508
14508
  }
14509
14509
  const AS = (t) => {
14510
- const [r, i] = de(void 0);
14511
- return Fe(() => {
14510
+ const [r, i] = ie(void 0);
14511
+ return je(() => {
14512
14512
  if (!t) {
14513
14513
  i(void 0);
14514
14514
  return;
@@ -14529,7 +14529,7 @@ const AS = (t) => {
14529
14529
  );
14530
14530
  return AS(t) ?? r;
14531
14531
  }, RS = ({ src: t }) => {
14532
- const [r, i] = de(!1);
14532
+ const [r, i] = ie(!1);
14533
14533
  return /* @__PURE__ */ d(
14534
14534
  "img",
14535
14535
  {
@@ -14624,7 +14624,7 @@ const AS = (t) => {
14624
14624
  side: "top",
14625
14625
  children: /* @__PURE__ */ d(mn, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
14626
14626
  }
14627
- ) }), zS = () => /* @__PURE__ */ d("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ d(De.Attachments, { components: { Attachment: ml } }) }), MS = () => /* @__PURE__ */ d("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ d(
14627
+ ) }), zS = () => /* @__PURE__ */ d("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ d(Ue.Attachments, { components: { Attachment: ml } }) }), MS = () => /* @__PURE__ */ d("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ d(
14628
14628
  $e.Attachments,
14629
14629
  {
14630
14630
  components: { Attachment: ml }
@@ -14644,7 +14644,7 @@ const AS = (t) => {
14644
14644
  ) });
14645
14645
  var Er = "Popover", [fl] = Dt(Er, [
14646
14646
  $r
14647
- ]), zt = $r(), [FS, ze] = fl(Er), pl = (t) => {
14647
+ ]), zt = $r(), [FS, Le] = fl(Er), pl = (t) => {
14648
14648
  const {
14649
14649
  __scopePopover: r,
14650
14650
  children: i,
@@ -14678,14 +14678,14 @@ var Er = "Popover", [fl] = Dt(Er, [
14678
14678
  pl.displayName = Er;
14679
14679
  var gl = "PopoverAnchor", WS = f.forwardRef(
14680
14680
  (t, r) => {
14681
- const { __scopePopover: i, ...o } = t, e = ze(gl, i), n = zt(i), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = e;
14681
+ const { __scopePopover: i, ...o } = t, e = Le(gl, i), n = zt(i), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = e;
14682
14682
  return f.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ d(Sn, { ...n, ...o, ref: r });
14683
14683
  }
14684
14684
  );
14685
14685
  WS.displayName = gl;
14686
14686
  var vl = "PopoverTrigger", hl = f.forwardRef(
14687
14687
  (t, r) => {
14688
- const { __scopePopover: i, ...o } = t, e = ze(vl, i), n = zt(i), a = ie(r, e.triggerRef), s = /* @__PURE__ */ d(
14688
+ const { __scopePopover: i, ...o } = t, e = Le(vl, i), n = zt(i), a = ae(r, e.triggerRef), s = /* @__PURE__ */ d(
14689
14689
  ee.button,
14690
14690
  {
14691
14691
  type: "button",
@@ -14705,20 +14705,20 @@ hl.displayName = vl;
14705
14705
  var Ln = "PopoverPortal", [ZS, BS] = fl(Ln, {
14706
14706
  forceMount: void 0
14707
14707
  }), bl = (t) => {
14708
- const { __scopePopover: r, forceMount: i, children: o, container: e } = t, n = ze(Ln, r);
14709
- return /* @__PURE__ */ d(ZS, { scope: r, forceMount: i, children: /* @__PURE__ */ d(Pe, { present: i || n.open, children: /* @__PURE__ */ d(xr, { asChild: !0, container: e, children: o }) }) });
14708
+ const { __scopePopover: r, forceMount: i, children: o, container: e } = t, n = Le(Ln, r);
14709
+ return /* @__PURE__ */ d(ZS, { scope: r, forceMount: i, children: /* @__PURE__ */ d(Te, { present: i || n.open, children: /* @__PURE__ */ d(xr, { asChild: !0, container: e, children: o }) }) });
14710
14710
  };
14711
14711
  bl.displayName = Ln;
14712
14712
  var ut = "PopoverContent", yl = f.forwardRef(
14713
14713
  (t, r) => {
14714
- const i = BS(ut, t.__scopePopover), { forceMount: o = i.forceMount, ...e } = t, n = ze(ut, t.__scopePopover);
14715
- return /* @__PURE__ */ d(Pe, { present: o || n.open, children: n.modal ? /* @__PURE__ */ d(GS, { ...e, ref: r }) : /* @__PURE__ */ d(JS, { ...e, ref: r }) });
14714
+ const i = BS(ut, t.__scopePopover), { forceMount: o = i.forceMount, ...e } = t, n = Le(ut, t.__scopePopover);
14715
+ return /* @__PURE__ */ d(Te, { present: o || n.open, children: n.modal ? /* @__PURE__ */ d(GS, { ...e, ref: r }) : /* @__PURE__ */ d(JS, { ...e, ref: r }) });
14716
14716
  }
14717
14717
  );
14718
14718
  yl.displayName = ut;
14719
14719
  var VS = /* @__PURE__ */ gn("PopoverContent.RemoveScroll"), GS = f.forwardRef(
14720
14720
  (t, r) => {
14721
- const i = ze(ut, t.__scopePopover), o = f.useRef(null), e = ie(r, o), n = f.useRef(!1);
14721
+ const i = Le(ut, t.__scopePopover), o = f.useRef(null), e = ae(r, o), n = f.useRef(!1);
14722
14722
  return f.useEffect(() => {
14723
14723
  const a = o.current;
14724
14724
  if (a) return Zs(a);
@@ -14750,7 +14750,7 @@ var VS = /* @__PURE__ */ gn("PopoverContent.RemoveScroll"), GS = f.forwardRef(
14750
14750
  }
14751
14751
  ), JS = f.forwardRef(
14752
14752
  (t, r) => {
14753
- const i = ze(ut, t.__scopePopover), o = f.useRef(!1), e = f.useRef(!1);
14753
+ const i = Le(ut, t.__scopePopover), o = f.useRef(!1), e = f.useRef(!1);
14754
14754
  return /* @__PURE__ */ d(
14755
14755
  $l,
14756
14756
  {
@@ -14782,7 +14782,7 @@ var VS = /* @__PURE__ */ gn("PopoverContent.RemoveScroll"), GS = f.forwardRef(
14782
14782
  onFocusOutside: l,
14783
14783
  onInteractOutside: u,
14784
14784
  ...m
14785
- } = t, h = ze(ut, i), p = zt(i);
14785
+ } = t, h = Le(ut, i), p = zt(i);
14786
14786
  return Rs(), /* @__PURE__ */ d(
14787
14787
  An,
14788
14788
  {
@@ -14827,7 +14827,7 @@ var VS = /* @__PURE__ */ gn("PopoverContent.RemoveScroll"), GS = f.forwardRef(
14827
14827
  }
14828
14828
  ), xl = "PopoverClose", KS = f.forwardRef(
14829
14829
  (t, r) => {
14830
- const { __scopePopover: i, ...o } = t, e = ze(xl, i);
14830
+ const { __scopePopover: i, ...o } = t, e = Le(xl, i);
14831
14831
  return /* @__PURE__ */ d(
14832
14832
  ee.button,
14833
14833
  {
@@ -14883,12 +14883,12 @@ function nI({
14883
14883
  }
14884
14884
  const _l = () => {
14885
14885
  const { config: t } = ve();
14886
- return /* @__PURE__ */ d(Ag, { features: Rg, children: /* @__PURE__ */ d(Dg, { reducedMotion: "user", children: /* @__PURE__ */ T(Ee.Root, { className: "aui-root aui-thread-root bg-background @container flex h-full flex-col", children: [
14886
+ return /* @__PURE__ */ d(Ag, { features: Rg, children: /* @__PURE__ */ d(Dg, { reducedMotion: "user", children: /* @__PURE__ */ T(Oe.Root, { className: "aui-root aui-thread-root bg-background @container flex h-full flex-col", children: [
14887
14887
  t.variant === "widget" && /* @__PURE__ */ d(oI, {}),
14888
- /* @__PURE__ */ T(Ee.Viewport, { className: "aui-thread-viewport relative flex flex-1 flex-col overflow-x-auto overflow-y-scroll px-4", children: [
14889
- /* @__PURE__ */ d(Ee.If, { empty: !0, children: /* @__PURE__ */ d(aI, {}) }),
14888
+ /* @__PURE__ */ T(Oe.Viewport, { className: "aui-thread-viewport relative flex flex-1 flex-col overflow-x-auto overflow-y-scroll px-4", children: [
14889
+ /* @__PURE__ */ d(Oe.If, { empty: !0, children: /* @__PURE__ */ d(aI, {}) }),
14890
14890
  /* @__PURE__ */ d(
14891
- Ee.Messages,
14891
+ Oe.Messages,
14892
14892
  {
14893
14893
  components: {
14894
14894
  UserMessage: gI,
@@ -14897,7 +14897,7 @@ const _l = () => {
14897
14897
  }
14898
14898
  }
14899
14899
  ),
14900
- /* @__PURE__ */ d(Ee.If, { empty: !1, children: /* @__PURE__ */ d("div", { className: "aui-thread-viewport-spacer min-h-8 grow" }) }),
14900
+ /* @__PURE__ */ d(Oe.If, { empty: !1, children: /* @__PURE__ */ d("div", { className: "aui-thread-viewport-spacer min-h-8 grow" }) }),
14901
14901
  /* @__PURE__ */ d(lI, {})
14902
14902
  ] })
14903
14903
  ] }) }) });
@@ -14905,7 +14905,7 @@ const _l = () => {
14905
14905
  const { isExpanded: t, setIsExpanded: r, setIsOpen: i, config: o } = ve();
14906
14906
  return /* @__PURE__ */ T("div", { className: "aui-thread-header border-border bg-background sticky top-0 z-10 flex items-center justify-between border-b p-2", children: [
14907
14907
  o.modal?.expandable && /* @__PURE__ */ d(
14908
- _e,
14908
+ Se,
14909
14909
  {
14910
14910
  variant: "ghost",
14911
14911
  size: "icon",
@@ -14916,7 +14916,7 @@ const _l = () => {
14916
14916
  }
14917
14917
  ),
14918
14918
  /* @__PURE__ */ d("div", { className: "ml-auto", children: /* @__PURE__ */ d(
14919
- _e,
14919
+ Se,
14920
14920
  {
14921
14921
  variant: "ghost",
14922
14922
  size: "icon",
@@ -14927,7 +14927,7 @@ const _l = () => {
14927
14927
  }
14928
14928
  ) })
14929
14929
  ] });
14930
- }, iI = () => /* @__PURE__ */ d(Ee.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ d(
14930
+ }, iI = () => /* @__PURE__ */ d(Oe.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ d(
14931
14931
  fe,
14932
14932
  {
14933
14933
  tooltip: "Scroll to bottom",
@@ -14973,8 +14973,8 @@ const _l = () => {
14973
14973
  exit: { opacity: 0, y: 20 },
14974
14974
  transition: { delay: 0.05 * o },
14975
14975
  className: "aui-thread-welcome-suggestion-display nth-[n+3]:hidden @md:nth-[n+3]:block",
14976
- children: /* @__PURE__ */ d(Ee.Suggestion, { prompt: i.action, send: !0, asChild: !0, children: /* @__PURE__ */ T(
14977
- _e,
14976
+ children: /* @__PURE__ */ d(Oe.Suggestion, { prompt: i.action, send: !0, asChild: !0, children: /* @__PURE__ */ T(
14977
+ Se,
14978
14978
  {
14979
14979
  variant: "ghost",
14980
14980
  className: "aui-thread-welcome-suggestion dark:hover:bg-accent/60 h-auto w-full flex-1 flex-wrap items-start justify-start gap-1 rounded-3xl border px-5 py-4 text-left text-sm @md:flex-col",
@@ -15011,42 +15011,62 @@ const _l = () => {
15011
15011
  ] })
15012
15012
  ] });
15013
15013
  }, cI = () => {
15014
- const { model: t, setModel: r } = ve();
15015
- return /* @__PURE__ */ T(tI, { children: [
15016
- /* @__PURE__ */ d(rI, { asChild: !0, children: /* @__PURE__ */ d(ws, { children: /* @__PURE__ */ T(Nn, { children: [
15017
- /* @__PURE__ */ d(En, { children: /* @__PURE__ */ d(
15018
- _e,
15014
+ const { model: t, setModel: r } = ve(), [i, o] = ie(!1), [e, n] = ie(!1), a = we(null), s = we(0), c = we(!1);
15015
+ return je(() => {
15016
+ i && !c.current && requestAnimationFrame(() => {
15017
+ const u = a.current;
15018
+ u && u.scrollHeight > 0 && (u.scrollTop = s.current);
15019
+ }), c.current = i;
15020
+ }, [i]), /* @__PURE__ */ d(ws, { children: /* @__PURE__ */ T(Nn, { open: e, onOpenChange: n, children: [
15021
+ /* @__PURE__ */ T(tI, { open: i, onOpenChange: o, children: [
15022
+ /* @__PURE__ */ d(En, { asChild: !0, children: /* @__PURE__ */ d(rI, { asChild: !0, children: /* @__PURE__ */ d(
15023
+ Se,
15019
15024
  {
15020
15025
  variant: "ghost",
15021
15026
  size: "icon",
15022
- className: "aui-composer-model-picker hover:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30 size-[34px] rounded-full p-1 text-xs font-semibold",
15027
+ "data-state": i ? "open" : "closed",
15028
+ className: "aui-composer-model-picker data-[state=open]:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30 flex w-fit items-center gap-2 rounded-full px-2.5 py-1 text-xs font-semibold",
15023
15029
  "aria-label": "Model Settings",
15030
+ onPointerUp: (u) => u.stopPropagation(),
15024
15031
  children: /* @__PURE__ */ d(gy, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
15025
15032
  }
15026
- ) }),
15027
- /* @__PURE__ */ d(On, { side: "bottom", align: "start", children: "Model Settings" })
15028
- ] }) }) }),
15029
- /* @__PURE__ */ d(
15030
- nI,
15031
- {
15032
- side: "top",
15033
- align: "start",
15034
- className: "max-h-48 overflow-y-auto p-0 shadow-none",
15035
- children: Xi.map((i) => /* @__PURE__ */ T(
15036
- _e,
15037
- {
15038
- onClick: () => r(i),
15039
- variant: "ghost",
15040
- className: "w-full justify-start gap-2 rounded-none px-2",
15041
- children: [
15042
- i === t ? /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(pr, { className: "size-4 text-emerald-500" }) }) : /* @__PURE__ */ d("div", { className: "size-4", children: " " }),
15043
- i
15044
- ]
15045
- }
15046
- ))
15047
- }
15048
- )
15049
- ] });
15033
+ ) }) }),
15034
+ /* @__PURE__ */ d(
15035
+ nI,
15036
+ {
15037
+ side: "top",
15038
+ align: "start",
15039
+ className: "w-min p-0 shadow-none",
15040
+ children: /* @__PURE__ */ d(
15041
+ "div",
15042
+ {
15043
+ ref: a,
15044
+ className: "max-h-48 overflow-y-auto",
15045
+ onScroll: (u) => {
15046
+ s.current = u.currentTarget.scrollTop;
15047
+ },
15048
+ children: Xi.map((u) => /* @__PURE__ */ T(
15049
+ Se,
15050
+ {
15051
+ onClick: () => {
15052
+ r(u);
15053
+ },
15054
+ variant: "ghost",
15055
+ className: "w-full justify-start gap-2 rounded-none px-2",
15056
+ children: [
15057
+ u === t ? /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(pr, { className: "size-4 text-emerald-500" }) }) : /* @__PURE__ */ d("div", { className: "size-4", children: " " }),
15058
+ u
15059
+ ]
15060
+ },
15061
+ u
15062
+ ))
15063
+ }
15064
+ )
15065
+ }
15066
+ )
15067
+ ] }),
15068
+ /* @__PURE__ */ d(On, { side: "bottom", align: "start", children: "Model Settings" })
15069
+ ] }) });
15050
15070
  }, uI = () => {
15051
15071
  const { config: t } = ve(), r = t.composer ?? { attachments: !0 };
15052
15072
  return /* @__PURE__ */ T("div", { className: "aui-composer-action-wrapper relative mx-1 mt-2 mb-2 flex items-center justify-between", children: [
@@ -15054,7 +15074,7 @@ const _l = () => {
15054
15074
  r.attachments ? /* @__PURE__ */ d(LS, {}) : /* @__PURE__ */ d("div", { className: "aui-composer-add-attachment-placeholder" }),
15055
15075
  t.model?.showModelPicker && /* @__PURE__ */ d(cI, {})
15056
15076
  ] }),
15057
- /* @__PURE__ */ d(Ee.If, { running: !1, children: /* @__PURE__ */ d($e.Send, { asChild: !0, children: /* @__PURE__ */ d(
15077
+ /* @__PURE__ */ d(Oe.If, { running: !1, children: /* @__PURE__ */ d($e.Send, { asChild: !0, children: /* @__PURE__ */ d(
15058
15078
  fe,
15059
15079
  {
15060
15080
  tooltip: "Send message",
@@ -15067,8 +15087,8 @@ const _l = () => {
15067
15087
  children: /* @__PURE__ */ d(Gb, { className: "aui-composer-send-icon size-5" })
15068
15088
  }
15069
15089
  ) }) }),
15070
- /* @__PURE__ */ d(Ee.If, { running: !0, children: /* @__PURE__ */ d($e.Cancel, { asChild: !0, children: /* @__PURE__ */ d(
15071
- _e,
15090
+ /* @__PURE__ */ d(Oe.If, { running: !0, children: /* @__PURE__ */ d($e.Cancel, { asChild: !0, children: /* @__PURE__ */ d(
15091
+ Se,
15072
15092
  {
15073
15093
  type: "button",
15074
15094
  variant: "default",
@@ -15079,9 +15099,9 @@ const _l = () => {
15079
15099
  }
15080
15100
  ) }) })
15081
15101
  ] });
15082
- }, dI = () => /* @__PURE__ */ d(De.Error, { children: /* @__PURE__ */ d(Gn.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ d(Gn.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), mI = () => {
15102
+ }, dI = () => /* @__PURE__ */ d(Ue.Error, { children: /* @__PURE__ */ d(Gn.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ d(Gn.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), mI = () => {
15083
15103
  const { config: t } = ve(), r = t.tools ?? {};
15084
- return /* @__PURE__ */ d(De.Root, { asChild: !0, children: /* @__PURE__ */ T(
15104
+ return /* @__PURE__ */ d(Ue.Root, { asChild: !0, children: /* @__PURE__ */ T(
15085
15105
  "div",
15086
15106
  {
15087
15107
  className: "aui-assistant-message-root animate-in fade-in slide-in-from-bottom-1 relative mx-auto w-full max-w-(--thread-max-width) py-4 duration-150 ease-out last:mb-24",
@@ -15089,7 +15109,7 @@ const _l = () => {
15089
15109
  children: [
15090
15110
  /* @__PURE__ */ T("div", { className: "aui-assistant-message-content text-foreground mx-2 leading-7 wrap-break-word", children: [
15091
15111
  /* @__PURE__ */ d(
15092
- De.Parts,
15112
+ Ue.Parts,
15093
15113
  {
15094
15114
  components: {
15095
15115
  Text: _s,
@@ -15121,13 +15141,13 @@ const _l = () => {
15121
15141
  className: "aui-assistant-action-bar-root text-muted-foreground data-floating:bg-background col-start-3 row-start-2 -ml-1 flex gap-1 data-floating:absolute data-floating:rounded-md data-floating:border data-floating:p-1 data-floating:shadow-sm",
15122
15142
  children: [
15123
15143
  /* @__PURE__ */ d(Nt.Copy, { asChild: !0, children: /* @__PURE__ */ T(fe, { tooltip: "Copy", children: [
15124
- /* @__PURE__ */ d(De.If, { copied: !0, children: /* @__PURE__ */ d(pr, {}) }),
15125
- /* @__PURE__ */ d(De.If, { copied: !1, children: /* @__PURE__ */ d(xa, {}) })
15144
+ /* @__PURE__ */ d(Ue.If, { copied: !0, children: /* @__PURE__ */ d(pr, {}) }),
15145
+ /* @__PURE__ */ d(Ue.If, { copied: !1, children: /* @__PURE__ */ d(xa, {}) })
15126
15146
  ] }) }),
15127
15147
  /* @__PURE__ */ d(Nt.Reload, { asChild: !0, children: /* @__PURE__ */ d(fe, { tooltip: "Refresh", children: /* @__PURE__ */ d(fy, {}) }) })
15128
15148
  ]
15129
15149
  }
15130
- ), gI = () => /* @__PURE__ */ d(De.Root, { asChild: !0, children: /* @__PURE__ */ T(
15150
+ ), gI = () => /* @__PURE__ */ d(Ue.Root, { asChild: !0, children: /* @__PURE__ */ T(
15131
15151
  "div",
15132
15152
  {
15133
15153
  className: "aui-user-message-root animate-in fade-in slide-in-from-bottom-1 mx-auto grid w-full max-w-(--thread-max-width) auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 px-2 py-4 duration-150 ease-out first:mt-3 last:mb-5 [&:where(>*)]:col-start-2",
@@ -15135,7 +15155,7 @@ const _l = () => {
15135
15155
  children: [
15136
15156
  /* @__PURE__ */ d(zS, {}),
15137
15157
  /* @__PURE__ */ T("div", { className: "aui-user-message-content-wrapper relative col-start-2 min-w-0", children: [
15138
- /* @__PURE__ */ d("div", { className: "aui-user-message-content bg-muted text-foreground rounded-3xl px-5 py-2.5 wrap-break-word", children: /* @__PURE__ */ d(De.Parts, {}) }),
15158
+ /* @__PURE__ */ d("div", { className: "aui-user-message-content bg-muted text-foreground rounded-3xl px-5 py-2.5 wrap-break-word", children: /* @__PURE__ */ d(Ue.Parts, {}) }),
15139
15159
  /* @__PURE__ */ d("div", { className: "aui-user-action-bar-wrapper absolute top-1/2 left-0 -translate-x-full -translate-y-1/2 pr-2", children: /* @__PURE__ */ d(vI, {}) })
15140
15160
  ] }),
15141
15161
  /* @__PURE__ */ d(Sl, { className: "aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" })
@@ -15158,8 +15178,8 @@ const _l = () => {
15158
15178
  }
15159
15179
  ),
15160
15180
  /* @__PURE__ */ T("div", { className: "aui-edit-composer-footer mx-3 mb-3 flex items-center justify-center gap-2 self-end", children: [
15161
- /* @__PURE__ */ d($e.Cancel, { asChild: !0, children: /* @__PURE__ */ d(_e, { variant: "ghost", size: "sm", "aria-label": "Cancel edit", children: "Cancel" }) }),
15162
- /* @__PURE__ */ d($e.Send, { asChild: !0, children: /* @__PURE__ */ d(_e, { size: "sm", "aria-label": "Update message", children: "Update" }) })
15181
+ /* @__PURE__ */ d($e.Cancel, { asChild: !0, children: /* @__PURE__ */ d(Se, { variant: "ghost", size: "sm", "aria-label": "Cancel edit", children: "Cancel" }) }),
15182
+ /* @__PURE__ */ d($e.Send, { asChild: !0, children: /* @__PURE__ */ d(Se, { size: "sm", "aria-label": "Update message", children: "Update" }) })
15163
15183
  ] })
15164
15184
  ] }) }), Sl = ({
15165
15185
  className: t,