@gram-ai/elements 1.13.7 → 1.13.8

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,17 +1,17 @@
1
1
  import { jsx as d, Fragment as jt, jsxs as O } from "react/jsx-runtime";
2
- import { j as x, s as P, $ as Ks, a as Hs, b as qs, c as Xs, d as Ys, e as Qs, f as el, g as tl, h as nl, i as rl, k as il, l as al, m as ol, n as sl, o as ll, p as cl, q as ul, r as dl, t as ml, u as fl, v as pl, w as gl, x as vl, y as hl, z as bl, A as yl, B as $l, C as _l, D as xl, E as wl, F as Sl, G as Il, H as kl, I as Nl, J as El, K as Ol, L as Cl, M as Pl, N as Tl, O as Dl, P as Rl, Q as Al, R as jl, S as Ul, T as zl, U as Ml, V as Ll, W as Fl, X as Zl, Y as Wl, Z as Bl, _ as Vl, a0 as Jl, a1 as Gl, a2 as Kl, a3 as Hl, a4 as ql, a5 as Xl, a6 as Yl, a7 as Ql, a8 as ec, a9 as tc, aa as nc, ab as rc, ac as ic, ad as ac, ae as oc, af as sc, ag as lc, ah as cc, ai as uc, aj as dc, ak as mc, al as fc, am as pc, an as gc, ao as vc, ap as hc, aq as bc, ar as yc, as as $c, at as _c, au as xc, av as wc, aw as Sc, ax as Ic, ay as kc, az as Nc, aA as Ec, aB as Oc, aC as Cc, aD as Pc, aE as Tc, aF as Dc, aG as Rc, aH as Ac, aI as jc, aJ as Uc, aK as hi, aL as zc, aM as bi, aN as yi, aO as Mc, aP as Lc, aQ as $i, aR as _i, aS as Fc, aT as Zc, aU as Wc, aV as Bc, aW as Vc, aX as Jc, aY as Gc, aZ as Kc, a_ as Hc, a$ as qc, b0 as xi, b1 as wi, b2 as Si, b3 as Ii, b4 as ki, b5 as Xc, b6 as Yc, b7 as Qc, b8 as eu, b9 as tu, ba as nu, bb as ru, bc as iu, bd as au, be as ou, bf as su, bg as lu, bh as cu, bi as Ni, bj as uu, bk as du, bl as mu, bm as fu, bn as Ei, bo as _n, bp as pu, bq as Oi, br as gu, bs as vu, bt as hu, bu, bv as yu, bw as $u, bx as _u, by as xu, bz as wu, bA as Su, bB as Iu, bC as ku, bD as Nu, bE as Ci, bF as Eu, bG as Pi, bH as Ti, bI as xn, bJ as Ou, bK as Cu, bL as Di, bM as Ri, bN as Ai, bO as ji, bP as Ui, bQ as zi, bR as Pu, bS as Tu, bT as Du, bU as Mi, bV as Ru, bW as Li, bX as Au, bY as Fi, bZ as Zi, b_ as ju, b$ as Uu, c0 as zu, c1 as Mu, c2 as Wi, c3 as Lu, c4 as Fu, c5 as Zu, c6 as Bi, c7 as Wu, c8 as Vi, c9 as Bu, ca as Vu, cb as Ju, cc as Ji, cd as Gu, ce as Ku, cf as Hu, cg as qu, ch as Xu, ci as Yu, cj as Qu, ck as Gi, cl as Ki, cm as Hi, cn as ed, co as td, cp as nd, cq as rd, cr as id, cs as ad, ct as od, cu as qi, cv as Xi, cw as sd, cx as Yi, cy as ld, cz as cd, cA as ud, cB as dd, cC as md, cD as fd, cE as pd, cF as Qi, cG as gd, cH as vd, cI as hd, cJ as bd, cK as yd, cL as $d, cM as _d, cN as ea, cO as jn, cP as xd, cQ as wd, cR as Sd, cS as Id, cT as kd, cU as ta, cV as na, cW as Nd, cX as ra, cY as Ed, cZ as Od, c_ as Cd, c$ as Pd, d0 as Td, d1 as Dd, d2 as ia, d3 as aa, d4 as oa, d5 as Rd, d6 as Ad, d7 as jd, d8 as Ud, d9 as zd, da as Md, db as Ld, dc as sa, dd as la, de as ca, df as Fd, dg as ua, dh as da, di as ma, dj as fa, dk as pa, dl as Zd, dm as Wd, dn as Bd, dp as Vd, dq as Jd, dr as Gd, ds as Kd, dt as Hd, du as qd, dv as Xd, dw as Yd, dx as Qd, dy as em, dz as tm, dA as nm, dB as rm, dC as im, dD as am, dE as om, dF as sm, dG as lm, dH as cm, dI as um, dJ as dm, dK as mm, dL as fm, dM as pm, dN as gm, dO as vm, dP as hm, dQ as bm, dR as ym, dS as $m, dT as _m, dU as xm, dV as wm, dW as Sm, dX as Im, dY as km, dZ as Nm, d_ as Em, d$ as Om, e0 as Cm, e1 as Pm, e2 as Tm, e3 as Dm, e4 as Rm, e5 as Am, e6 as jm, e7 as Um, e8 as zm, e9 as Mm, ea as Lm, eb as Fm, ec as Zm, ed as Wm, ee as Bm, ef as Vm, eg as Jm, eh as Gm, ei as Km, ej as Hm, ek as qm, el as Xm, em as Ym, en as Qm, eo as ef, ep as tf, eq as nf, er as rf, es as af, et as $r, eu as of, ev as Me, ew as sf, ex as lf, ey as cf, ez as X, eA as uf, eB as df, eC as mf, eD as ff, eE as pf, eF as gf, eG as vf, eH as Un, eI as hf, eJ as bf, eK as yf, eL as $f, eM as ga, eN as _f, eO as xf, eP as wf, eQ as Sf, eR as If, eS as va, eT as kf, eU as Nf, eV as Ef, eW as Of, eX as Cf, eY as Pf, eZ as Tf, e_ as Df, e$ as Rf, f0 as mt, f1 as Af, f2 as jf, f3 as Uf, f4 as zf, f5 as Mf, f6 as Lf, f7 as Ff, f8 as Zf, f9 as Wf, fa as Bf, fb as Vf, fc as ha, fd as T, fe as Jf, ff as Gf, fg as Kf, fh as Hf, fi as qf, fj as Xf, fk as Yf, fl as Qf, fm as ep, fn as ba, fo as tp, fp as np, fq as ya, fr as F, fs as rp, ft as ip, fu as ap, fv as op, fw as sp, fx as lp, fy as cp, fz as up, fA as dp, fB as Ut, fC as mp, fD as fp, fE as pp, fF as gp, fG as vp, fH as hp, fI as bp, fJ as yp, fK as $p, fL as U, fM as E, fN as _p, fO as xp, fP as wp, fQ as Sp, fR as Ip, fS as kp, fT as Np, fU as Ep, fV as Op, fW as Cp, fX as Pp, fY as $a, fZ as re, f_ as we, f$ as Tp, g0 as Dp, g1 as Rp, g2 as Ap, g3 as jp, g4 as Up, g5 as zp, g6 as Mp, g7 as Fe, g8 as Ze, g9 as _r, ga as xr, gb as _a, gc as wr, gd as wn, ge as Vt, gf as Lp, gg as Fp, gh as Zp, gi as Wp, gj as Sr, gk as xa } from "./index-DxNldiiY.js";
3
- import { getExternalStoreMessages as Sn, unstable_createMessageConverter as Bp, useAssistantApi as wa, INTERNAL as Sa, useRuntimeAdapters as Vp, useExternalStoreRuntime as Jp, unstable_useCloudThreadListAdapter as Gp, unstable_useRemoteThreadListRuntime as Kp, useAssistantState as se, AssistantRuntimeProvider as Hp, useScrollLock as qp, MessagePrimitive as Pe, ComposerPrimitive as ge, AttachmentPrimitive as In, ThreadPrimitive as Se, ErrorPrimitive as Ir, BranchPickerPrimitive as it, ActionBarPrimitive as ut } from "@assistant-ui/react";
2
+ import { j as x, s as P, $ as Hs, a as qs, b as Xs, c as Ys, d as Qs, e as el, f as tl, g as nl, h as rl, i as il, k as al, l as ol, m as sl, n as ll, o as cl, p as ul, q as dl, r as ml, t as fl, u as pl, v as gl, w as vl, x as hl, y as bl, z as yl, A as $l, B as _l, C as xl, D as wl, E as Sl, F as Il, G as kl, H as Nl, I as El, J as Ol, K as Cl, L as Pl, M as Tl, N as Dl, O as Rl, P as Al, Q as jl, R as Ul, S as zl, T as Ml, U as Ll, V as Fl, W as Zl, X as Wl, Y as Bl, Z as Vl, _ as Jl, a0 as Gl, a1 as Kl, a2 as Hl, a3 as ql, a4 as Xl, a5 as Yl, a6 as Ql, a7 as ec, a8 as tc, a9 as nc, aa as rc, ab as ic, ac, ad as oc, ae as sc, af as lc, ag as cc, ah as uc, ai as dc, aj as mc, ak as fc, al as pc, am as gc, an as vc, ao as hc, ap as bc, aq as yc, ar as $c, as as _c, at as xc, au as wc, av as Sc, aw as Ic, ax as kc, ay as Nc, az as Ec, aA as Oc, aB as Cc, aC as Pc, aD as Tc, aE as Dc, aF as Rc, aG as Ac, aH as jc, aI as Uc, aJ as zc, aK as bi, aL as Mc, aM as yi, aN as $i, aO as Lc, aP as Fc, aQ as _i, aR as xi, aS as Zc, aT as Wc, aU as Bc, aV as Vc, aW as Jc, aX as Gc, aY as Kc, aZ as Hc, a_ as qc, a$ as Xc, b0 as wi, b1 as Si, b2 as Ii, b3 as ki, b4 as Ni, b5 as Yc, b6 as Qc, b7 as eu, b8 as tu, b9 as nu, ba as ru, bb as iu, bc as au, bd as ou, be as su, bf as lu, bg as cu, bh as uu, bi as Ei, bj as du, bk as mu, bl as fu, bm as pu, bn as Oi, bo as _n, bp as gu, bq as Ci, br as vu, bs as hu, bt as bu, bu as yu, bv as $u, bw as _u, bx as xu, by as wu, bz as Su, bA as Iu, bB as ku, bC as Nu, bD as Eu, bE as Pi, bF as Ou, bG as Ti, bH as Di, bI as xn, bJ as Cu, bK as Pu, bL as Ri, bM as Ai, bN as ji, bO as Ui, bP as zi, bQ as Mi, bR as Tu, bS as Du, bT as Ru, bU as Li, bV as Au, bW as Fi, bX as ju, bY as Zi, bZ as Wi, b_ as Uu, b$ as zu, c0 as Mu, c1 as Lu, c2 as Bi, c3 as Fu, c4 as Zu, c5 as Wu, c6 as Vi, c7 as Bu, c8 as Ji, c9 as Vu, ca as Ju, cb as Gu, cc as Gi, cd as Ku, ce as Hu, cf as qu, cg as Xu, ch as Yu, ci as Qu, cj as ed, ck as Ki, cl as Hi, cm as qi, cn as td, co as nd, cp as rd, cq as id, cr as ad, cs as od, ct as sd, cu as Xi, cv as Yi, cw as ld, cx as Qi, cy as cd, cz as ud, cA as dd, cB as md, cC as fd, cD as pd, cE as gd, cF as ea, cG as vd, cH as hd, cI as bd, cJ as yd, cK as $d, cL as _d, cM as xd, cN as ta, cO as jn, cP as wd, cQ as Sd, cR as Id, cS as kd, cT as Nd, cU as na, cV as ra, cW as Ed, cX as ia, cY as Od, cZ as Cd, c_ as Pd, c$ as Td, d0 as Dd, d1 as Rd, d2 as aa, d3 as oa, d4 as sa, d5 as Ad, d6 as jd, d7 as Ud, d8 as zd, d9 as Md, da as Ld, db as Fd, dc as la, dd as ca, de as ua, df as Zd, dg as da, dh as ma, di as fa, dj as pa, dk as ga, dl as Wd, dm as Bd, dn as Vd, dp as Jd, dq as Gd, dr as Kd, ds as Hd, dt as qd, du as Xd, dv as Yd, dw as Qd, dx as em, dy as tm, dz as nm, dA as rm, dB as im, dC as am, dD as om, dE as sm, dF as lm, dG as cm, dH as um, dI as dm, dJ as mm, dK as fm, dL as pm, dM as gm, dN as vm, dO as hm, dP as bm, dQ as ym, dR as $m, dS as _m, dT as xm, dU as wm, dV as Sm, dW as Im, dX as km, dY as Nm, dZ as Em, d_ as Om, d$ as Cm, e0 as Pm, e1 as Tm, e2 as Dm, e3 as Rm, e4 as Am, e5 as jm, e6 as Um, e7 as zm, e8 as Mm, e9 as Lm, ea as Fm, eb as Zm, ec as Wm, ed as Bm, ee as Vm, ef as Jm, eg as Gm, eh as Km, ei as Hm, ej as qm, ek as Xm, el as Ym, em as Qm, en as ef, eo as tf, ep as nf, eq as rf, er as af, es as of, et as $r, eu as sf, ev as Me, ew as lf, ex as cf, ey as uf, ez as X, eA as df, eB as mf, eC as ff, eD as pf, eE as gf, eF as vf, eG as hf, eH as Un, eI as bf, eJ as yf, eK as $f, eL as _f, eM as va, eN as xf, eO as wf, eP as Sf, eQ as If, eR as kf, eS as ha, eT as Nf, eU as Ef, eV as Of, eW as Cf, eX as Pf, eY as Tf, eZ as Df, e_ as Rf, e$ as Af, f0 as mt, f1 as jf, f2 as Uf, f3 as zf, f4 as Mf, f5 as Lf, f6 as Ff, f7 as Zf, f8 as Wf, f9 as Bf, fa as Vf, fb as Jf, fc as ba, fd as T, fe as Gf, ff as Kf, fg as Hf, fh as qf, fi as Xf, fj as Yf, fk as Qf, fl as ep, fm as tp, fn as ya, fo as np, fp as rp, fq as $a, fr as F, fs as ip, ft as ap, fu as op, fv as sp, fw as lp, fx as cp, fy as up, fz as dp, fA as mp, fB as Ut, fC as fp, fD as pp, fE as gp, fF as vp, fG as hp, fH as bp, fI as yp, fJ as $p, fK as _p, fL as U, fM as E, fN as xp, fO as wp, fP as Sp, fQ as Ip, fR as kp, fS as Np, fT as Ep, fU as Op, fV as Cp, fW as Pp, fX as Tp, fY as _a, fZ as re, f_ as we, f$ as Dp, g0 as Rp, g1 as Ap, g2 as jp, g3 as Up, g4 as zp, g5 as Mp, g6 as Lp, g7 as Fe, g8 as Ze, g9 as _r, ga as xr, gb as xa, gc as wr, gd as wn, ge as Vt, gf as Fp, gg as Zp, gh as Wp, gi as Bp, gj as Sr, gk as wa } from "./index-DxNldiiY.js";
3
+ import { getExternalStoreMessages as Sn, unstable_createMessageConverter as Vp, useAssistantApi as Sa, INTERNAL as Ia, useRuntimeAdapters as Jp, useExternalStoreRuntime as Gp, unstable_useCloudThreadListAdapter as Kp, unstable_useRemoteThreadListRuntime as Hp, useAssistantState as se, AssistantRuntimeProvider as qp, useScrollLock as Xp, MessagePrimitive as Pe, ComposerPrimitive as ge, AttachmentPrimitive as In, ThreadPrimitive as Se, ErrorPrimitive as Ir, BranchPickerPrimitive as it, ActionBarPrimitive as ut } from "@assistant-ui/react";
4
4
  import * as f from "react";
5
- import Ia, { useRef as Ie, useCallback as zt, useState as q, useEffect as Ae, useMemo as he, useSyncExternalStore as sn, useLayoutEffect as Xp, forwardRef as Yp, memo as zn } from "react";
6
- import { c as z, r as Qp, E as eg, a as tg, b as k, u as Y, C as ng, d as Le, e as et, f as ka } from "./index-SAJg5Cz7.js";
7
- import { LazyMotion as ht, domAnimation as Mn, AnimatePresence as Ln, m as rg, MotionConfig as Na, domMax as Ea } from "motion/react";
5
+ import ka, { useRef as Ie, useCallback as zt, useState as q, useEffect as Ae, useMemo as he, useSyncExternalStore as sn, useLayoutEffect as Yp, forwardRef as Qp, memo as zn } from "react";
6
+ import { c as z, r as kr, E as eg, a as tg, b as k, u as Y, C as ng, d as Le, e as et, f as Na } from "./index-SAJg5Cz7.js";
7
+ import { LazyMotion as ht, domAnimation as Mn, AnimatePresence as Ln, m as rg, MotionConfig as Ea, domMax as Oa } from "motion/react";
8
8
  import * as fe from "motion/react-m";
9
9
  import { unstable_memoizeMarkdownComponents as ig, useIsMarkdownCodeBlock as ag, MarkdownTextPrimitive as og } from "@assistant-ui/react-markdown";
10
10
  import sg from "remark-gfm";
11
- import * as Oa from "react-dom";
11
+ import * as Ca from "react-dom";
12
12
  import lg from "react-dom";
13
13
  import { useShallow as cg } from "zustand/shallow";
14
- var kr = (t, n) => {
14
+ var Nr = (t, n) => {
15
15
  if (n == null) return [];
16
16
  let a = t.findIndex((i) => i.id === n);
17
17
  if (a === -1)
@@ -21,7 +21,7 @@ var kr = (t, n) => {
21
21
  for (; t[a + 1]?.role === "assistant"; )
22
22
  a++;
23
23
  return t.slice(0, a + 1);
24
- }, Nr = (t) => {
24
+ }, Er = (t) => {
25
25
  const a = [
26
26
  ...t.content.filter((i) => i.type !== "file"),
27
27
  ...t.attachments?.flatMap(
@@ -246,7 +246,7 @@ function fg() {
246
246
  localeError: mg()
247
247
  };
248
248
  }
249
- function Er(t, n, a, i) {
249
+ function Or(t, n, a, i) {
250
250
  const e = Math.abs(t), r = e % 10, o = e % 100;
251
251
  return o >= 11 && o <= 19 ? i : r === 1 ? n : r >= 2 && r <= 4 ? a : i;
252
252
  }
@@ -342,7 +342,7 @@ const pg = () => {
342
342
  case "too_big": {
343
343
  const r = e.inclusive ? "<=" : "<", o = n(e.origin);
344
344
  if (o) {
345
- const s = Number(e.maximum), u = Er(s, o.unit.one, o.unit.few, o.unit.many);
345
+ const s = Number(e.maximum), u = Or(s, o.unit.one, o.unit.few, o.unit.many);
346
346
  return `Занадта вялікі: чакалася, што ${e.origin ?? "значэнне"} павінна ${o.verb} ${r}${e.maximum.toString()} ${u}`;
347
347
  }
348
348
  return `Занадта вялікі: чакалася, што ${e.origin ?? "значэнне"} павінна быць ${r}${e.maximum.toString()}`;
@@ -350,7 +350,7 @@ const pg = () => {
350
350
  case "too_small": {
351
351
  const r = e.inclusive ? ">=" : ">", o = n(e.origin);
352
352
  if (o) {
353
- const s = Number(e.minimum), u = Er(s, o.unit.one, o.unit.few, o.unit.many);
353
+ const s = Number(e.minimum), u = Or(s, o.unit.one, o.unit.few, o.unit.many);
354
354
  return `Занадта малы: чакалася, што ${e.origin} павінна ${o.verb} ${r}${e.minimum.toString()} ${u}`;
355
355
  }
356
356
  return `Занадта малы: чакалася, што ${e.origin} павінна быць ${r}${e.minimum.toString()}`;
@@ -961,7 +961,7 @@ const Ng = (t) => {
961
961
  }
962
962
  };
963
963
  };
964
- function Ca() {
964
+ function Pa() {
965
965
  return {
966
966
  localeError: Eg()
967
967
  };
@@ -2361,13 +2361,13 @@ const iv = () => {
2361
2361
  }
2362
2362
  };
2363
2363
  };
2364
- function Pa() {
2364
+ function Ta() {
2365
2365
  return {
2366
2366
  localeError: iv()
2367
2367
  };
2368
2368
  }
2369
2369
  function av() {
2370
- return Pa();
2370
+ return Ta();
2371
2371
  }
2372
2372
  const ov = () => {
2373
2373
  const t = {
@@ -2487,7 +2487,7 @@ const lv = (t) => ot(typeof t, t), ot = (t, n = void 0) => {
2487
2487
  }
2488
2488
  return t;
2489
2489
  }, at = (t) => t.charAt(0).toUpperCase() + t.slice(1);
2490
- function Or(t) {
2490
+ function Cr(t) {
2491
2491
  const n = Math.abs(t), a = n % 10, i = n % 100;
2492
2492
  return i >= 11 && i <= 19 || a === 0 ? "many" : a === 1 ? "one" : "few";
2493
2493
  }
@@ -2606,14 +2606,14 @@ const cv = () => {
2606
2606
  case "invalid_value":
2607
2607
  return i.values.length === 1 ? `Privalo būti ${P(i.values[0])}` : `Privalo būti vienas iš ${x(i.values, "|")} pasirinkimų`;
2608
2608
  case "too_big": {
2609
- const e = ot(i.origin), r = n(i.origin, Or(Number(i.maximum)), i.inclusive ?? !1, "smaller");
2609
+ const e = ot(i.origin), r = n(i.origin, Cr(Number(i.maximum)), i.inclusive ?? !1, "smaller");
2610
2610
  if (r?.verb)
2611
2611
  return `${at(e ?? i.origin ?? "reikšmė")} ${r.verb} ${i.maximum.toString()} ${r.unit ?? "elementų"}`;
2612
2612
  const o = i.inclusive ? "ne didesnis kaip" : "mažesnis kaip";
2613
2613
  return `${at(e ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.maximum.toString()} ${r?.unit}`;
2614
2614
  }
2615
2615
  case "too_small": {
2616
- const e = ot(i.origin), r = n(i.origin, Or(Number(i.minimum)), i.inclusive ?? !1, "bigger");
2616
+ const e = ot(i.origin), r = n(i.origin, Cr(Number(i.minimum)), i.inclusive ?? !1, "bigger");
2617
2617
  if (r?.verb)
2618
2618
  return `${at(e ?? i.origin ?? "reikšmė")} ${r.verb} ${i.minimum.toString()} ${r.unit ?? "elementų"}`;
2619
2619
  const o = i.inclusive ? "ne mažesnis kaip" : "didesnis kaip";
@@ -3391,7 +3391,7 @@ function kv() {
3391
3391
  localeError: Iv()
3392
3392
  };
3393
3393
  }
3394
- function Cr(t, n, a, i) {
3394
+ function Pr(t, n, a, i) {
3395
3395
  const e = Math.abs(t), r = e % 10, o = e % 100;
3396
3396
  return o >= 11 && o <= 19 ? i : r === 1 ? n : r >= 2 && r <= 4 ? a : i;
3397
3397
  }
@@ -3487,7 +3487,7 @@ const Nv = () => {
3487
3487
  case "too_big": {
3488
3488
  const r = e.inclusive ? "<=" : "<", o = n(e.origin);
3489
3489
  if (o) {
3490
- const s = Number(e.maximum), u = Cr(s, o.unit.one, o.unit.few, o.unit.many);
3490
+ const s = Number(e.maximum), u = Pr(s, o.unit.one, o.unit.few, o.unit.many);
3491
3491
  return `Слишком большое значение: ожидалось, что ${e.origin ?? "значение"} будет иметь ${r}${e.maximum.toString()} ${u}`;
3492
3492
  }
3493
3493
  return `Слишком большое значение: ожидалось, что ${e.origin ?? "значение"} будет ${r}${e.maximum.toString()}`;
@@ -3495,7 +3495,7 @@ const Nv = () => {
3495
3495
  case "too_small": {
3496
3496
  const r = e.inclusive ? ">=" : ">", o = n(e.origin);
3497
3497
  if (o) {
3498
- const s = Number(e.minimum), u = Cr(s, o.unit.one, o.unit.few, o.unit.many);
3498
+ const s = Number(e.minimum), u = Pr(s, o.unit.one, o.unit.few, o.unit.many);
3499
3499
  return `Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${r}${e.minimum.toString()} ${u}`;
3500
3500
  }
3501
3501
  return `Слишком маленькое значение: ожидалось, что ${e.origin} будет ${r}${e.minimum.toString()}`;
@@ -4078,13 +4078,13 @@ const Lv = () => {
4078
4078
  }
4079
4079
  };
4080
4080
  };
4081
- function Ta() {
4081
+ function Da() {
4082
4082
  return {
4083
4083
  localeError: Lv()
4084
4084
  };
4085
4085
  }
4086
4086
  function Fv() {
4087
- return Ta();
4087
+ return Da();
4088
4088
  }
4089
4089
  const Zv = () => {
4090
4090
  const t = {
@@ -4551,7 +4551,7 @@ function Xv() {
4551
4551
  localeError: qv()
4552
4552
  };
4553
4553
  }
4554
- const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4554
+ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4555
4555
  __proto__: null,
4556
4556
  ar: dg,
4557
4557
  az: fg,
@@ -4561,7 +4561,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4561
4561
  cs: xg,
4562
4562
  da: Sg,
4563
4563
  de: kg,
4564
- en: Ca,
4564
+ en: Pa,
4565
4565
  eo: Pg,
4566
4566
  es: Dg,
4567
4567
  fa: Ag,
@@ -4576,7 +4576,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4576
4576
  ja: ev,
4577
4577
  ka: rv,
4578
4578
  kh: av,
4579
- km: Pa,
4579
+ km: Ta,
4580
4580
  ko: sv,
4581
4581
  lt: uv,
4582
4582
  mk: mv,
@@ -4594,7 +4594,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4594
4594
  th: jv,
4595
4595
  tr: Mv,
4596
4596
  ua: Fv,
4597
- uk: Ta,
4597
+ uk: Da,
4598
4598
  ur: Wv,
4599
4599
  vi: Vv,
4600
4600
  yo: Xv,
@@ -4604,285 +4604,285 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4604
4604
  __proto__: null
4605
4605
  }, Symbol.toStringTag, { value: "Module" })), Qv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4606
4606
  __proto__: null,
4607
- $ZodAny: Ks,
4608
- $ZodArray: Hs,
4609
- $ZodAsyncError: qs,
4610
- $ZodBase64: Xs,
4611
- $ZodBase64URL: Ys,
4612
- $ZodBigInt: Qs,
4613
- $ZodBigIntFormat: el,
4614
- $ZodBoolean: tl,
4615
- $ZodCIDRv4: nl,
4616
- $ZodCIDRv6: rl,
4617
- $ZodCUID: il,
4618
- $ZodCUID2: al,
4619
- $ZodCatch: ol,
4620
- $ZodCheck: sl,
4621
- $ZodCheckBigIntFormat: ll,
4622
- $ZodCheckEndsWith: cl,
4623
- $ZodCheckGreaterThan: ul,
4624
- $ZodCheckIncludes: dl,
4625
- $ZodCheckLengthEquals: ml,
4626
- $ZodCheckLessThan: fl,
4627
- $ZodCheckLowerCase: pl,
4628
- $ZodCheckMaxLength: gl,
4629
- $ZodCheckMaxSize: vl,
4630
- $ZodCheckMimeType: hl,
4631
- $ZodCheckMinLength: bl,
4632
- $ZodCheckMinSize: yl,
4633
- $ZodCheckMultipleOf: $l,
4634
- $ZodCheckNumberFormat: _l,
4635
- $ZodCheckOverwrite: xl,
4636
- $ZodCheckProperty: wl,
4637
- $ZodCheckRegex: Sl,
4638
- $ZodCheckSizeEquals: Il,
4639
- $ZodCheckStartsWith: kl,
4640
- $ZodCheckStringFormat: Nl,
4641
- $ZodCheckUpperCase: El,
4642
- $ZodCodec: Ol,
4643
- $ZodCustom: Cl,
4644
- $ZodCustomStringFormat: Pl,
4645
- $ZodDate: Tl,
4646
- $ZodDefault: Dl,
4647
- $ZodDiscriminatedUnion: Rl,
4648
- $ZodE164: Al,
4649
- $ZodEmail: jl,
4650
- $ZodEmoji: Ul,
4651
- $ZodEncodeError: zl,
4652
- $ZodEnum: Ml,
4653
- $ZodError: Ll,
4654
- $ZodFile: Fl,
4655
- $ZodFunction: Zl,
4656
- $ZodGUID: Wl,
4657
- $ZodIPv4: Bl,
4658
- $ZodIPv6: Vl,
4659
- $ZodISODate: Jl,
4660
- $ZodISODateTime: Gl,
4661
- $ZodISODuration: Kl,
4662
- $ZodISOTime: Hl,
4663
- $ZodIntersection: ql,
4664
- $ZodJWT: Xl,
4665
- $ZodKSUID: Yl,
4666
- $ZodLazy: Ql,
4667
- $ZodLiteral: ec,
4668
- $ZodMAC: tc,
4669
- $ZodMap: nc,
4670
- $ZodNaN: rc,
4671
- $ZodNanoID: ic,
4672
- $ZodNever: ac,
4673
- $ZodNonOptional: oc,
4674
- $ZodNull: sc,
4675
- $ZodNullable: lc,
4676
- $ZodNumber: cc,
4677
- $ZodNumberFormat: uc,
4678
- $ZodObject: dc,
4679
- $ZodObjectJIT: mc,
4680
- $ZodOptional: fc,
4681
- $ZodPipe: pc,
4682
- $ZodPrefault: gc,
4683
- $ZodPromise: vc,
4684
- $ZodReadonly: hc,
4685
- $ZodRealError: bc,
4686
- $ZodRecord: yc,
4687
- $ZodRegistry: $c,
4688
- $ZodSet: _c,
4689
- $ZodString: xc,
4690
- $ZodStringFormat: wc,
4691
- $ZodSuccess: Sc,
4692
- $ZodSymbol: Ic,
4693
- $ZodTemplateLiteral: kc,
4694
- $ZodTransform: Nc,
4695
- $ZodTuple: Ec,
4696
- $ZodType: Oc,
4697
- $ZodULID: Cc,
4698
- $ZodURL: Pc,
4699
- $ZodUUID: Tc,
4700
- $ZodUndefined: Dc,
4701
- $ZodUnion: Rc,
4702
- $ZodUnknown: Ac,
4703
- $ZodVoid: jc,
4704
- $ZodXID: Uc,
4705
- $brand: hi,
4706
- $constructor: zc,
4707
- $input: bi,
4708
- $output: yi,
4709
- Doc: Mc,
4607
+ $ZodAny: Hs,
4608
+ $ZodArray: qs,
4609
+ $ZodAsyncError: Xs,
4610
+ $ZodBase64: Ys,
4611
+ $ZodBase64URL: Qs,
4612
+ $ZodBigInt: el,
4613
+ $ZodBigIntFormat: tl,
4614
+ $ZodBoolean: nl,
4615
+ $ZodCIDRv4: rl,
4616
+ $ZodCIDRv6: il,
4617
+ $ZodCUID: al,
4618
+ $ZodCUID2: ol,
4619
+ $ZodCatch: sl,
4620
+ $ZodCheck: ll,
4621
+ $ZodCheckBigIntFormat: cl,
4622
+ $ZodCheckEndsWith: ul,
4623
+ $ZodCheckGreaterThan: dl,
4624
+ $ZodCheckIncludes: ml,
4625
+ $ZodCheckLengthEquals: fl,
4626
+ $ZodCheckLessThan: pl,
4627
+ $ZodCheckLowerCase: gl,
4628
+ $ZodCheckMaxLength: vl,
4629
+ $ZodCheckMaxSize: hl,
4630
+ $ZodCheckMimeType: bl,
4631
+ $ZodCheckMinLength: yl,
4632
+ $ZodCheckMinSize: $l,
4633
+ $ZodCheckMultipleOf: _l,
4634
+ $ZodCheckNumberFormat: xl,
4635
+ $ZodCheckOverwrite: wl,
4636
+ $ZodCheckProperty: Sl,
4637
+ $ZodCheckRegex: Il,
4638
+ $ZodCheckSizeEquals: kl,
4639
+ $ZodCheckStartsWith: Nl,
4640
+ $ZodCheckStringFormat: El,
4641
+ $ZodCheckUpperCase: Ol,
4642
+ $ZodCodec: Cl,
4643
+ $ZodCustom: Pl,
4644
+ $ZodCustomStringFormat: Tl,
4645
+ $ZodDate: Dl,
4646
+ $ZodDefault: Rl,
4647
+ $ZodDiscriminatedUnion: Al,
4648
+ $ZodE164: jl,
4649
+ $ZodEmail: Ul,
4650
+ $ZodEmoji: zl,
4651
+ $ZodEncodeError: Ml,
4652
+ $ZodEnum: Ll,
4653
+ $ZodError: Fl,
4654
+ $ZodFile: Zl,
4655
+ $ZodFunction: Wl,
4656
+ $ZodGUID: Bl,
4657
+ $ZodIPv4: Vl,
4658
+ $ZodIPv6: Jl,
4659
+ $ZodISODate: Gl,
4660
+ $ZodISODateTime: Kl,
4661
+ $ZodISODuration: Hl,
4662
+ $ZodISOTime: ql,
4663
+ $ZodIntersection: Xl,
4664
+ $ZodJWT: Yl,
4665
+ $ZodKSUID: Ql,
4666
+ $ZodLazy: ec,
4667
+ $ZodLiteral: tc,
4668
+ $ZodMAC: nc,
4669
+ $ZodMap: rc,
4670
+ $ZodNaN: ic,
4671
+ $ZodNanoID: ac,
4672
+ $ZodNever: oc,
4673
+ $ZodNonOptional: sc,
4674
+ $ZodNull: lc,
4675
+ $ZodNullable: cc,
4676
+ $ZodNumber: uc,
4677
+ $ZodNumberFormat: dc,
4678
+ $ZodObject: mc,
4679
+ $ZodObjectJIT: fc,
4680
+ $ZodOptional: pc,
4681
+ $ZodPipe: gc,
4682
+ $ZodPrefault: vc,
4683
+ $ZodPromise: hc,
4684
+ $ZodReadonly: bc,
4685
+ $ZodRealError: yc,
4686
+ $ZodRecord: $c,
4687
+ $ZodRegistry: _c,
4688
+ $ZodSet: xc,
4689
+ $ZodString: wc,
4690
+ $ZodStringFormat: Sc,
4691
+ $ZodSuccess: Ic,
4692
+ $ZodSymbol: kc,
4693
+ $ZodTemplateLiteral: Nc,
4694
+ $ZodTransform: Ec,
4695
+ $ZodTuple: Oc,
4696
+ $ZodType: Cc,
4697
+ $ZodULID: Pc,
4698
+ $ZodURL: Tc,
4699
+ $ZodUUID: Dc,
4700
+ $ZodUndefined: Rc,
4701
+ $ZodUnion: Ac,
4702
+ $ZodUnknown: jc,
4703
+ $ZodVoid: Uc,
4704
+ $ZodXID: zc,
4705
+ $brand: bi,
4706
+ $constructor: Mc,
4707
+ $input: yi,
4708
+ $output: $i,
4709
+ Doc: Lc,
4710
4710
  JSONSchema: Yv,
4711
- JSONSchemaGenerator: Lc,
4712
- NEVER: $i,
4713
- TimePrecision: _i,
4714
- _any: Fc,
4715
- _array: Zc,
4716
- _base64: Wc,
4717
- _base64url: Bc,
4718
- _bigint: Vc,
4719
- _boolean: Jc,
4720
- _catch: Gc,
4721
- _check: Kc,
4722
- _cidrv4: Hc,
4723
- _cidrv6: qc,
4724
- _coercedBigint: xi,
4725
- _coercedBoolean: wi,
4726
- _coercedDate: Si,
4727
- _coercedNumber: Ii,
4728
- _coercedString: ki,
4729
- _cuid: Xc,
4730
- _cuid2: Yc,
4731
- _custom: Qc,
4732
- _date: eu,
4733
- _decode: tu,
4734
- _decodeAsync: nu,
4735
- _default: ru,
4736
- _discriminatedUnion: iu,
4737
- _e164: au,
4738
- _email: ou,
4739
- _emoji: su,
4740
- _encode: lu,
4741
- _encodeAsync: cu,
4742
- _endsWith: Ni,
4743
- _enum: uu,
4744
- _file: du,
4745
- _float32: mu,
4746
- _float64: fu,
4747
- _gt: Ei,
4711
+ JSONSchemaGenerator: Fc,
4712
+ NEVER: _i,
4713
+ TimePrecision: xi,
4714
+ _any: Zc,
4715
+ _array: Wc,
4716
+ _base64: Bc,
4717
+ _base64url: Vc,
4718
+ _bigint: Jc,
4719
+ _boolean: Gc,
4720
+ _catch: Kc,
4721
+ _check: Hc,
4722
+ _cidrv4: qc,
4723
+ _cidrv6: Xc,
4724
+ _coercedBigint: wi,
4725
+ _coercedBoolean: Si,
4726
+ _coercedDate: Ii,
4727
+ _coercedNumber: ki,
4728
+ _coercedString: Ni,
4729
+ _cuid: Yc,
4730
+ _cuid2: Qc,
4731
+ _custom: eu,
4732
+ _date: tu,
4733
+ _decode: nu,
4734
+ _decodeAsync: ru,
4735
+ _default: iu,
4736
+ _discriminatedUnion: au,
4737
+ _e164: ou,
4738
+ _email: su,
4739
+ _emoji: lu,
4740
+ _encode: cu,
4741
+ _encodeAsync: uu,
4742
+ _endsWith: Ei,
4743
+ _enum: du,
4744
+ _file: mu,
4745
+ _float32: fu,
4746
+ _float64: pu,
4747
+ _gt: Oi,
4748
4748
  _gte: _n,
4749
- _guid: pu,
4750
- _includes: Oi,
4751
- _int: gu,
4752
- _int32: vu,
4753
- _int64: hu,
4754
- _intersection: bu,
4755
- _ipv4: yu,
4756
- _ipv6: $u,
4757
- _isoDate: _u,
4758
- _isoDateTime: xu,
4759
- _isoDuration: wu,
4760
- _isoTime: Su,
4761
- _jwt: Iu,
4762
- _ksuid: ku,
4763
- _lazy: Nu,
4764
- _length: Ci,
4765
- _literal: Eu,
4766
- _lowercase: Pi,
4767
- _lt: Ti,
4749
+ _guid: gu,
4750
+ _includes: Ci,
4751
+ _int: vu,
4752
+ _int32: hu,
4753
+ _int64: bu,
4754
+ _intersection: yu,
4755
+ _ipv4: $u,
4756
+ _ipv6: _u,
4757
+ _isoDate: xu,
4758
+ _isoDateTime: wu,
4759
+ _isoDuration: Su,
4760
+ _isoTime: Iu,
4761
+ _jwt: ku,
4762
+ _ksuid: Nu,
4763
+ _lazy: Eu,
4764
+ _length: Pi,
4765
+ _literal: Ou,
4766
+ _lowercase: Ti,
4767
+ _lt: Di,
4768
4768
  _lte: xn,
4769
- _mac: Ou,
4770
- _map: Cu,
4769
+ _mac: Cu,
4770
+ _map: Pu,
4771
4771
  _max: xn,
4772
- _maxLength: Di,
4773
- _maxSize: Ri,
4774
- _mime: Ai,
4772
+ _maxLength: Ri,
4773
+ _maxSize: Ai,
4774
+ _mime: ji,
4775
4775
  _min: _n,
4776
- _minLength: ji,
4777
- _minSize: Ui,
4778
- _multipleOf: zi,
4779
- _nan: Pu,
4780
- _nanoid: Tu,
4781
- _nativeEnum: Du,
4782
- _negative: Mi,
4783
- _never: Ru,
4784
- _nonnegative: Li,
4785
- _nonoptional: Au,
4786
- _nonpositive: Fi,
4787
- _normalize: Zi,
4788
- _null: ju,
4789
- _nullable: Uu,
4790
- _number: zu,
4791
- _optional: Mu,
4792
- _overwrite: Wi,
4793
- _parse: Lu,
4794
- _parseAsync: Fu,
4795
- _pipe: Zu,
4796
- _positive: Bi,
4797
- _promise: Wu,
4798
- _property: Vi,
4799
- _readonly: Bu,
4800
- _record: Vu,
4801
- _refine: Ju,
4802
- _regex: Ji,
4803
- _safeDecode: Gu,
4804
- _safeDecodeAsync: Ku,
4805
- _safeEncode: Hu,
4806
- _safeEncodeAsync: qu,
4807
- _safeParse: Xu,
4808
- _safeParseAsync: Yu,
4809
- _set: Qu,
4810
- _size: Gi,
4811
- _slugify: Ki,
4812
- _startsWith: Hi,
4813
- _string: ed,
4814
- _stringFormat: td,
4815
- _stringbool: nd,
4816
- _success: rd,
4817
- _superRefine: id,
4818
- _symbol: ad,
4819
- _templateLiteral: od,
4820
- _toLowerCase: qi,
4821
- _toUpperCase: Xi,
4822
- _transform: sd,
4823
- _trim: Yi,
4824
- _tuple: ld,
4825
- _uint32: cd,
4826
- _uint64: ud,
4827
- _ulid: dd,
4828
- _undefined: md,
4829
- _union: fd,
4830
- _unknown: pd,
4831
- _uppercase: Qi,
4832
- _url: gd,
4833
- _uuid: vd,
4834
- _uuidv4: hd,
4835
- _uuidv6: bd,
4836
- _uuidv7: yd,
4837
- _void: $d,
4838
- _xid: _d,
4839
- clone: ea,
4776
+ _minLength: Ui,
4777
+ _minSize: zi,
4778
+ _multipleOf: Mi,
4779
+ _nan: Tu,
4780
+ _nanoid: Du,
4781
+ _nativeEnum: Ru,
4782
+ _negative: Li,
4783
+ _never: Au,
4784
+ _nonnegative: Fi,
4785
+ _nonoptional: ju,
4786
+ _nonpositive: Zi,
4787
+ _normalize: Wi,
4788
+ _null: Uu,
4789
+ _nullable: zu,
4790
+ _number: Mu,
4791
+ _optional: Lu,
4792
+ _overwrite: Bi,
4793
+ _parse: Fu,
4794
+ _parseAsync: Zu,
4795
+ _pipe: Wu,
4796
+ _positive: Vi,
4797
+ _promise: Bu,
4798
+ _property: Ji,
4799
+ _readonly: Vu,
4800
+ _record: Ju,
4801
+ _refine: Gu,
4802
+ _regex: Gi,
4803
+ _safeDecode: Ku,
4804
+ _safeDecodeAsync: Hu,
4805
+ _safeEncode: qu,
4806
+ _safeEncodeAsync: Xu,
4807
+ _safeParse: Yu,
4808
+ _safeParseAsync: Qu,
4809
+ _set: ed,
4810
+ _size: Ki,
4811
+ _slugify: Hi,
4812
+ _startsWith: qi,
4813
+ _string: td,
4814
+ _stringFormat: nd,
4815
+ _stringbool: rd,
4816
+ _success: id,
4817
+ _superRefine: ad,
4818
+ _symbol: od,
4819
+ _templateLiteral: sd,
4820
+ _toLowerCase: Xi,
4821
+ _toUpperCase: Yi,
4822
+ _transform: ld,
4823
+ _trim: Qi,
4824
+ _tuple: cd,
4825
+ _uint32: ud,
4826
+ _uint64: dd,
4827
+ _ulid: md,
4828
+ _undefined: fd,
4829
+ _union: pd,
4830
+ _unknown: gd,
4831
+ _uppercase: ea,
4832
+ _url: vd,
4833
+ _uuid: hd,
4834
+ _uuidv4: bd,
4835
+ _uuidv6: yd,
4836
+ _uuidv7: $d,
4837
+ _void: _d,
4838
+ _xid: xd,
4839
+ clone: ta,
4840
4840
  config: jn,
4841
- decode: xd,
4842
- decodeAsync: wd,
4843
- describe: Sd,
4844
- encode: Id,
4845
- encodeAsync: kd,
4846
- flattenError: ta,
4847
- formatError: na,
4848
- globalConfig: Nd,
4849
- globalRegistry: ra,
4850
- isValidBase64: Ed,
4851
- isValidBase64URL: Od,
4852
- isValidJWT: Cd,
4853
- locales: Da,
4854
- meta: Pd,
4855
- parse: Td,
4856
- parseAsync: Dd,
4857
- prettifyError: ia,
4858
- regexes: aa,
4859
- registry: oa,
4860
- safeDecode: Rd,
4861
- safeDecodeAsync: Ad,
4862
- safeEncode: jd,
4863
- safeEncodeAsync: Ud,
4864
- safeParse: zd,
4865
- safeParseAsync: Md,
4866
- toDotPath: Ld,
4867
- toJSONSchema: sa,
4868
- treeifyError: la,
4869
- util: ca,
4870
- version: Fd
4841
+ decode: wd,
4842
+ decodeAsync: Sd,
4843
+ describe: Id,
4844
+ encode: kd,
4845
+ encodeAsync: Nd,
4846
+ flattenError: na,
4847
+ formatError: ra,
4848
+ globalConfig: Ed,
4849
+ globalRegistry: ia,
4850
+ isValidBase64: Od,
4851
+ isValidBase64URL: Cd,
4852
+ isValidJWT: Pd,
4853
+ locales: Ra,
4854
+ meta: Td,
4855
+ parse: Dd,
4856
+ parseAsync: Rd,
4857
+ prettifyError: aa,
4858
+ regexes: oa,
4859
+ registry: sa,
4860
+ safeDecode: Ad,
4861
+ safeDecodeAsync: jd,
4862
+ safeEncode: Ud,
4863
+ safeEncodeAsync: zd,
4864
+ safeParse: Md,
4865
+ safeParseAsync: Ld,
4866
+ toDotPath: Fd,
4867
+ toJSONSchema: la,
4868
+ treeifyError: ca,
4869
+ util: ua,
4870
+ version: Zd
4871
4871
  }, Symbol.toStringTag, { value: "Module" }));
4872
4872
  function eh(t) {
4873
- return ki(ua, t);
4873
+ return Ni(da, t);
4874
4874
  }
4875
4875
  function th(t) {
4876
- return Ii(da, t);
4876
+ return ki(ma, t);
4877
4877
  }
4878
4878
  function nh(t) {
4879
- return wi(ma, t);
4879
+ return Si(fa, t);
4880
4880
  }
4881
4881
  function rh(t) {
4882
- return xi(fa, t);
4882
+ return wi(pa, t);
4883
4883
  }
4884
4884
  function ih(t) {
4885
- return Si(pa, t);
4885
+ return Ii(ga, t);
4886
4886
  }
4887
4887
  const ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4888
4888
  __proto__: null,
@@ -4892,241 +4892,241 @@ const ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4892
4892
  number: th,
4893
4893
  string: eh
4894
4894
  }, Symbol.toStringTag, { value: "Module" }));
4895
- jn(Ca());
4896
- const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4895
+ jn(Pa());
4896
+ const Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4897
4897
  __proto__: null,
4898
- $brand: hi,
4899
- $input: bi,
4900
- $output: yi,
4901
- NEVER: $i,
4902
- TimePrecision: _i,
4903
- ZodAny: Zd,
4904
- ZodArray: Wd,
4905
- ZodBase64: Bd,
4906
- ZodBase64URL: Vd,
4907
- ZodBigInt: fa,
4908
- ZodBigIntFormat: Jd,
4909
- ZodBoolean: ma,
4910
- ZodCIDRv4: Gd,
4911
- ZodCIDRv6: Kd,
4912
- ZodCUID: Hd,
4913
- ZodCUID2: qd,
4914
- ZodCatch: Xd,
4915
- ZodCodec: Yd,
4916
- ZodCustom: Qd,
4917
- ZodCustomStringFormat: em,
4918
- ZodDate: pa,
4919
- ZodDefault: tm,
4920
- ZodDiscriminatedUnion: nm,
4921
- ZodE164: rm,
4922
- ZodEmail: im,
4923
- ZodEmoji: am,
4924
- ZodEnum: om,
4925
- ZodError: sm,
4926
- ZodFile: lm,
4898
+ $brand: bi,
4899
+ $input: yi,
4900
+ $output: $i,
4901
+ NEVER: _i,
4902
+ TimePrecision: xi,
4903
+ ZodAny: Wd,
4904
+ ZodArray: Bd,
4905
+ ZodBase64: Vd,
4906
+ ZodBase64URL: Jd,
4907
+ ZodBigInt: pa,
4908
+ ZodBigIntFormat: Gd,
4909
+ ZodBoolean: fa,
4910
+ ZodCIDRv4: Kd,
4911
+ ZodCIDRv6: Hd,
4912
+ ZodCUID: qd,
4913
+ ZodCUID2: Xd,
4914
+ ZodCatch: Yd,
4915
+ ZodCodec: Qd,
4916
+ ZodCustom: em,
4917
+ ZodCustomStringFormat: tm,
4918
+ ZodDate: ga,
4919
+ ZodDefault: nm,
4920
+ ZodDiscriminatedUnion: rm,
4921
+ ZodE164: im,
4922
+ ZodEmail: am,
4923
+ ZodEmoji: om,
4924
+ ZodEnum: sm,
4925
+ ZodError: lm,
4926
+ ZodFile: cm,
4927
4927
  get ZodFirstPartyTypeKind() {
4928
- return cm;
4928
+ return um;
4929
4929
  },
4930
- ZodFunction: um,
4931
- ZodGUID: dm,
4932
- ZodIPv4: mm,
4933
- ZodIPv6: fm,
4934
- ZodISODate: pm,
4935
- ZodISODateTime: gm,
4936
- ZodISODuration: vm,
4937
- ZodISOTime: hm,
4938
- ZodIntersection: bm,
4939
- ZodIssueCode: ym,
4940
- ZodJWT: $m,
4941
- ZodKSUID: _m,
4942
- ZodLazy: xm,
4943
- ZodLiteral: wm,
4944
- ZodMAC: Sm,
4945
- ZodMap: Im,
4946
- ZodNaN: km,
4947
- ZodNanoID: Nm,
4948
- ZodNever: Em,
4949
- ZodNonOptional: Om,
4950
- ZodNull: Cm,
4951
- ZodNullable: Pm,
4952
- ZodNumber: da,
4953
- ZodNumberFormat: Tm,
4954
- ZodObject: Dm,
4955
- ZodOptional: Rm,
4956
- ZodPipe: Am,
4957
- ZodPrefault: jm,
4958
- ZodPromise: Um,
4959
- ZodReadonly: zm,
4960
- ZodRealError: Mm,
4961
- ZodRecord: Lm,
4962
- ZodSet: Fm,
4963
- ZodString: ua,
4964
- ZodStringFormat: Zm,
4965
- ZodSuccess: Wm,
4966
- ZodSymbol: Bm,
4967
- ZodTemplateLiteral: Vm,
4968
- ZodTransform: Jm,
4969
- ZodTuple: Gm,
4970
- ZodType: Km,
4971
- ZodULID: Hm,
4972
- ZodURL: qm,
4973
- ZodUUID: Xm,
4974
- ZodUndefined: Ym,
4975
- ZodUnion: Qm,
4976
- ZodUnknown: ef,
4977
- ZodVoid: tf,
4978
- ZodXID: nf,
4979
- _ZodString: rf,
4980
- _default: af,
4930
+ ZodFunction: dm,
4931
+ ZodGUID: mm,
4932
+ ZodIPv4: fm,
4933
+ ZodIPv6: pm,
4934
+ ZodISODate: gm,
4935
+ ZodISODateTime: vm,
4936
+ ZodISODuration: hm,
4937
+ ZodISOTime: bm,
4938
+ ZodIntersection: ym,
4939
+ ZodIssueCode: $m,
4940
+ ZodJWT: _m,
4941
+ ZodKSUID: xm,
4942
+ ZodLazy: wm,
4943
+ ZodLiteral: Sm,
4944
+ ZodMAC: Im,
4945
+ ZodMap: km,
4946
+ ZodNaN: Nm,
4947
+ ZodNanoID: Em,
4948
+ ZodNever: Om,
4949
+ ZodNonOptional: Cm,
4950
+ ZodNull: Pm,
4951
+ ZodNullable: Tm,
4952
+ ZodNumber: ma,
4953
+ ZodNumberFormat: Dm,
4954
+ ZodObject: Rm,
4955
+ ZodOptional: Am,
4956
+ ZodPipe: jm,
4957
+ ZodPrefault: Um,
4958
+ ZodPromise: zm,
4959
+ ZodReadonly: Mm,
4960
+ ZodRealError: Lm,
4961
+ ZodRecord: Fm,
4962
+ ZodSet: Zm,
4963
+ ZodString: da,
4964
+ ZodStringFormat: Wm,
4965
+ ZodSuccess: Bm,
4966
+ ZodSymbol: Vm,
4967
+ ZodTemplateLiteral: Jm,
4968
+ ZodTransform: Gm,
4969
+ ZodTuple: Km,
4970
+ ZodType: Hm,
4971
+ ZodULID: qm,
4972
+ ZodURL: Xm,
4973
+ ZodUUID: Ym,
4974
+ ZodUndefined: Qm,
4975
+ ZodUnion: ef,
4976
+ ZodUnknown: tf,
4977
+ ZodVoid: nf,
4978
+ ZodXID: rf,
4979
+ _ZodString: af,
4980
+ _default: of,
4981
4981
  _function: $r,
4982
- any: of,
4982
+ any: sf,
4983
4983
  array: Me,
4984
- base64: sf,
4985
- base64url: lf,
4986
- bigint: cf,
4984
+ base64: lf,
4985
+ base64url: cf,
4986
+ bigint: uf,
4987
4987
  boolean: X,
4988
- catch: uf,
4989
- check: df,
4990
- cidrv4: mf,
4991
- cidrv6: ff,
4992
- clone: ea,
4993
- codec: pf,
4988
+ catch: df,
4989
+ check: mf,
4990
+ cidrv4: ff,
4991
+ cidrv6: pf,
4992
+ clone: ta,
4993
+ codec: gf,
4994
4994
  coerce: ah,
4995
4995
  config: jn,
4996
4996
  core: Qv,
4997
- cuid: gf,
4998
- cuid2: vf,
4997
+ cuid: vf,
4998
+ cuid2: hf,
4999
4999
  custom: Un,
5000
- date: hf,
5001
- decode: bf,
5002
- decodeAsync: yf,
5003
- describe: $f,
5004
- discriminatedUnion: ga,
5005
- e164: _f,
5006
- email: xf,
5007
- emoji: wf,
5008
- encode: Sf,
5009
- encodeAsync: If,
5010
- endsWith: Ni,
5011
- enum: va,
5012
- file: kf,
5013
- flattenError: ta,
5014
- float32: Nf,
5015
- float64: Ef,
5016
- formatError: na,
5000
+ date: bf,
5001
+ decode: yf,
5002
+ decodeAsync: $f,
5003
+ describe: _f,
5004
+ discriminatedUnion: va,
5005
+ e164: xf,
5006
+ email: wf,
5007
+ emoji: Sf,
5008
+ encode: If,
5009
+ encodeAsync: kf,
5010
+ endsWith: Ei,
5011
+ enum: ha,
5012
+ file: Nf,
5013
+ flattenError: na,
5014
+ float32: Ef,
5015
+ float64: Of,
5016
+ formatError: ra,
5017
5017
  function: $r,
5018
- getErrorMap: Of,
5019
- globalRegistry: ra,
5020
- gt: Ei,
5018
+ getErrorMap: Cf,
5019
+ globalRegistry: ia,
5020
+ gt: Oi,
5021
5021
  gte: _n,
5022
- guid: Cf,
5023
- hash: Pf,
5024
- hex: Tf,
5025
- hostname: Df,
5026
- httpUrl: Rf,
5027
- includes: Oi,
5022
+ guid: Pf,
5023
+ hash: Tf,
5024
+ hex: Df,
5025
+ hostname: Rf,
5026
+ httpUrl: Af,
5027
+ includes: Ci,
5028
5028
  instanceof: mt,
5029
- int: Af,
5030
- int32: jf,
5031
- int64: Uf,
5032
- intersection: zf,
5033
- ipv4: Mf,
5034
- ipv6: Lf,
5035
- iso: Ff,
5036
- json: Zf,
5037
- jwt: Wf,
5038
- keyof: Bf,
5039
- ksuid: Vf,
5040
- lazy: ha,
5041
- length: Ci,
5029
+ int: jf,
5030
+ int32: Uf,
5031
+ int64: zf,
5032
+ intersection: Mf,
5033
+ ipv4: Lf,
5034
+ ipv6: Ff,
5035
+ iso: Zf,
5036
+ json: Wf,
5037
+ jwt: Bf,
5038
+ keyof: Vf,
5039
+ ksuid: Jf,
5040
+ lazy: ba,
5041
+ length: Pi,
5042
5042
  literal: T,
5043
- locales: Da,
5044
- looseObject: Jf,
5045
- lowercase: Pi,
5046
- lt: Ti,
5043
+ locales: Ra,
5044
+ looseObject: Gf,
5045
+ lowercase: Ti,
5046
+ lt: Di,
5047
5047
  lte: xn,
5048
- mac: Gf,
5049
- map: Kf,
5050
- maxLength: Di,
5051
- maxSize: Ri,
5052
- meta: Hf,
5053
- mime: Ai,
5054
- minLength: ji,
5055
- minSize: Ui,
5056
- multipleOf: zi,
5057
- nan: qf,
5058
- nanoid: Xf,
5059
- nativeEnum: Yf,
5060
- negative: Mi,
5061
- never: Qf,
5062
- nonnegative: Li,
5063
- nonoptional: ep,
5064
- nonpositive: Fi,
5065
- normalize: Zi,
5066
- null: ba,
5067
- nullable: tp,
5068
- nullish: np,
5069
- number: ya,
5048
+ mac: Kf,
5049
+ map: Hf,
5050
+ maxLength: Ri,
5051
+ maxSize: Ai,
5052
+ meta: qf,
5053
+ mime: ji,
5054
+ minLength: Ui,
5055
+ minSize: zi,
5056
+ multipleOf: Mi,
5057
+ nan: Xf,
5058
+ nanoid: Yf,
5059
+ nativeEnum: Qf,
5060
+ negative: Li,
5061
+ never: ep,
5062
+ nonnegative: Fi,
5063
+ nonoptional: tp,
5064
+ nonpositive: Zi,
5065
+ normalize: Wi,
5066
+ null: ya,
5067
+ nullable: np,
5068
+ nullish: rp,
5069
+ number: $a,
5070
5070
  object: F,
5071
- optional: rp,
5072
- overwrite: Wi,
5073
- parse: ip,
5074
- parseAsync: ap,
5075
- partialRecord: op,
5076
- pipe: sp,
5077
- positive: Bi,
5078
- prefault: lp,
5079
- preprocess: cp,
5080
- prettifyError: ia,
5081
- promise: up,
5082
- property: Vi,
5083
- readonly: dp,
5071
+ optional: ip,
5072
+ overwrite: Bi,
5073
+ parse: ap,
5074
+ parseAsync: op,
5075
+ partialRecord: sp,
5076
+ pipe: lp,
5077
+ positive: Vi,
5078
+ prefault: cp,
5079
+ preprocess: up,
5080
+ prettifyError: aa,
5081
+ promise: dp,
5082
+ property: Ji,
5083
+ readonly: mp,
5084
5084
  record: Ut,
5085
- refine: mp,
5086
- regex: Ji,
5087
- regexes: aa,
5088
- registry: oa,
5089
- safeDecode: fp,
5090
- safeDecodeAsync: pp,
5091
- safeEncode: gp,
5092
- safeEncodeAsync: vp,
5093
- safeParse: hp,
5094
- safeParseAsync: bp,
5095
- set: yp,
5096
- setErrorMap: $p,
5097
- size: Gi,
5098
- slugify: Ki,
5099
- startsWith: Hi,
5085
+ refine: fp,
5086
+ regex: Gi,
5087
+ regexes: oa,
5088
+ registry: sa,
5089
+ safeDecode: pp,
5090
+ safeDecodeAsync: gp,
5091
+ safeEncode: vp,
5092
+ safeEncodeAsync: hp,
5093
+ safeParse: bp,
5094
+ safeParseAsync: yp,
5095
+ set: $p,
5096
+ setErrorMap: _p,
5097
+ size: Ki,
5098
+ slugify: Hi,
5099
+ startsWith: qi,
5100
5100
  strictObject: U,
5101
5101
  string: E,
5102
- stringFormat: _p,
5103
- stringbool: xp,
5104
- success: wp,
5105
- superRefine: Sp,
5106
- symbol: Ip,
5107
- templateLiteral: kp,
5108
- toJSONSchema: sa,
5109
- toLowerCase: qi,
5110
- toUpperCase: Xi,
5111
- transform: Np,
5112
- treeifyError: la,
5113
- trim: Yi,
5114
- tuple: Ep,
5115
- uint32: Op,
5116
- uint64: Cp,
5117
- ulid: Pp,
5118
- undefined: $a,
5102
+ stringFormat: xp,
5103
+ stringbool: wp,
5104
+ success: Sp,
5105
+ superRefine: Ip,
5106
+ symbol: kp,
5107
+ templateLiteral: Np,
5108
+ toJSONSchema: la,
5109
+ toLowerCase: Xi,
5110
+ toUpperCase: Yi,
5111
+ transform: Ep,
5112
+ treeifyError: ca,
5113
+ trim: Qi,
5114
+ tuple: Op,
5115
+ uint32: Cp,
5116
+ uint64: Pp,
5117
+ ulid: Tp,
5118
+ undefined: _a,
5119
5119
  union: re,
5120
5120
  unknown: we,
5121
- uppercase: Qi,
5122
- url: Tp,
5123
- util: ca,
5124
- uuid: Dp,
5125
- uuidv4: Rp,
5126
- uuidv6: Ap,
5127
- uuidv7: jp,
5128
- void: Up,
5129
- xid: zp
5121
+ uppercase: ea,
5122
+ url: Dp,
5123
+ util: ua,
5124
+ uuid: Rp,
5125
+ uuidv4: Ap,
5126
+ uuidv6: jp,
5127
+ uuidv7: Up,
5128
+ void: zp,
5129
+ xid: Mp
5130
5130
  }, Symbol.toStringTag, { value: "Module" }));
5131
5131
  function oh(t) {
5132
5132
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -5134,7 +5134,7 @@ function oh(t) {
5134
5134
  var sh = Object.defineProperty, lh = (t, n) => {
5135
5135
  for (var a in n)
5136
5136
  sh(t, a, { get: n[a], enumerable: !0 });
5137
- }, Ra = "AI_NoObjectGeneratedError", Aa = `vercel.ai.error.${Ra}`, ch = Symbol.for(Aa), ja, Tr = class extends Sr {
5137
+ }, Aa = "AI_NoObjectGeneratedError", ja = `vercel.ai.error.${Aa}`, ch = Symbol.for(ja), Ua, Dr = class extends Sr {
5138
5138
  constructor({
5139
5139
  message: t = "No object generated.",
5140
5140
  cause: n,
@@ -5143,14 +5143,14 @@ var sh = Object.defineProperty, lh = (t, n) => {
5143
5143
  usage: e,
5144
5144
  finishReason: r
5145
5145
  }) {
5146
- super({ name: Ra, message: t, cause: n }), this[ja] = !0, this.text = a, this.response = i, this.usage = e, this.finishReason = r;
5146
+ super({ name: Aa, message: t, cause: n }), this[Ua] = !0, this.text = a, this.response = i, this.usage = e, this.finishReason = r;
5147
5147
  }
5148
5148
  static isInstance(t) {
5149
- return Sr.hasMarker(t, Aa);
5149
+ return Sr.hasMarker(t, ja);
5150
5150
  }
5151
5151
  };
5152
- ja = ch;
5153
- var Dr = "5.0.108", Ua = re([
5152
+ Ua = ch;
5153
+ var Rr = "5.0.108", za = re([
5154
5154
  E(),
5155
5155
  mt(Uint8Array),
5156
5156
  mt(ArrayBuffer),
@@ -5162,11 +5162,11 @@ var Dr = "5.0.108", Ua = re([
5162
5162
  },
5163
5163
  { message: "Must be a Buffer" }
5164
5164
  )
5165
- ]), ft = ha(
5165
+ ]), ft = ba(
5166
5166
  () => re([
5167
- ba(),
5168
- E(),
5169
5167
  ya(),
5168
+ E(),
5169
+ $a(),
5170
5170
  X(),
5171
5171
  Ut(E(), ft),
5172
5172
  Me(ft)
@@ -5174,18 +5174,18 @@ var Dr = "5.0.108", Ua = re([
5174
5174
  ), L = Ut(
5175
5175
  E(),
5176
5176
  Ut(E(), ft)
5177
- ), za = F({
5177
+ ), Ma = F({
5178
5178
  type: T("text"),
5179
5179
  text: E(),
5180
5180
  providerOptions: L.optional()
5181
5181
  }), uh = F({
5182
5182
  type: T("image"),
5183
- image: re([Ua, mt(URL)]),
5183
+ image: re([za, mt(URL)]),
5184
5184
  mediaType: E().optional(),
5185
5185
  providerOptions: L.optional()
5186
- }), Ma = F({
5186
+ }), La = F({
5187
5187
  type: T("file"),
5188
- data: re([Ua, mt(URL)]),
5188
+ data: re([za, mt(URL)]),
5189
5189
  filename: E().optional(),
5190
5190
  mediaType: E(),
5191
5191
  providerOptions: L.optional()
@@ -5200,7 +5200,7 @@ var Dr = "5.0.108", Ua = re([
5200
5200
  input: we(),
5201
5201
  providerOptions: L.optional(),
5202
5202
  providerExecuted: X().optional()
5203
- }), fh = ga("type", [
5203
+ }), fh = va("type", [
5204
5204
  F({
5205
5205
  type: T("text"),
5206
5206
  value: E()
@@ -5233,7 +5233,7 @@ var Dr = "5.0.108", Ua = re([
5233
5233
  ])
5234
5234
  )
5235
5235
  })
5236
- ]), La = F({
5236
+ ]), Fa = F({
5237
5237
  type: T("tool-result"),
5238
5238
  toolCallId: E(),
5239
5239
  toolName: E(),
@@ -5249,7 +5249,7 @@ var Dr = "5.0.108", Ua = re([
5249
5249
  role: T("user"),
5250
5250
  content: re([
5251
5251
  E(),
5252
- Me(re([za, uh, Ma]))
5252
+ Me(re([Ma, uh, La]))
5253
5253
  ]),
5254
5254
  providerOptions: L.optional()
5255
5255
  }), vh = F({
@@ -5258,18 +5258,18 @@ var Dr = "5.0.108", Ua = re([
5258
5258
  E(),
5259
5259
  Me(
5260
5260
  re([
5261
- za,
5262
5261
  Ma,
5262
+ La,
5263
5263
  dh,
5264
5264
  mh,
5265
- La
5265
+ Fa
5266
5266
  ])
5267
5267
  )
5268
5268
  ]),
5269
5269
  providerOptions: L.optional()
5270
5270
  }), hh = F({
5271
5271
  role: T("tool"),
5272
- content: Me(La),
5272
+ content: Me(Fa),
5273
5273
  providerOptions: L.optional()
5274
5274
  });
5275
5275
  re([
@@ -5298,8 +5298,8 @@ Vt({
5298
5298
  });
5299
5299
  }
5300
5300
  });
5301
- var bh = Lp(
5302
- () => Fp(
5301
+ var bh = Fp(
5302
+ () => Zp(
5303
5303
  re([
5304
5304
  U({
5305
5305
  type: T("text-start"),
@@ -5426,7 +5426,7 @@ var bh = Lp(
5426
5426
  }),
5427
5427
  U({
5428
5428
  type: T("finish"),
5429
- finishReason: va([
5429
+ finishReason: ha([
5430
5430
  "stop",
5431
5431
  "length",
5432
5432
  "content-filter",
@@ -5450,7 +5450,7 @@ var bh = Lp(
5450
5450
  function yh(t) {
5451
5451
  return t.type.startsWith("data-");
5452
5452
  }
5453
- function Fa(t, n) {
5453
+ function Za(t, n) {
5454
5454
  if (t === void 0 && n === void 0)
5455
5455
  return;
5456
5456
  if (t === void 0)
@@ -5464,7 +5464,7 @@ function Fa(t, n) {
5464
5464
  if (e === void 0)
5465
5465
  continue;
5466
5466
  const r = i in t ? t[i] : void 0, o = e !== null && typeof e == "object" && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp), s = r != null && typeof r == "object" && !Array.isArray(r) && !(r instanceof Date) && !(r instanceof RegExp);
5467
- o && s ? a[i] = Fa(
5467
+ o && s ? a[i] = Za(
5468
5468
  r,
5469
5469
  e
5470
5470
  ) : a[i] = e;
@@ -5719,7 +5719,7 @@ function $h(t) {
5719
5719
  }
5720
5720
  return s;
5721
5721
  }
5722
- async function Za(t) {
5722
+ async function Wa(t) {
5723
5723
  if (t === void 0)
5724
5724
  return { value: void 0, state: "undefined-input" };
5725
5725
  let n = await wn({ text: t });
@@ -5731,10 +5731,10 @@ function dt(t) {
5731
5731
  function _h(t) {
5732
5732
  return t.type === "dynamic-tool";
5733
5733
  }
5734
- function Rr(t) {
5734
+ function Ar(t) {
5735
5735
  return dt(t) || _h(t);
5736
5736
  }
5737
- function Ar(t) {
5737
+ function jr(t) {
5738
5738
  return t.type.split("-").slice(1).join("-");
5739
5739
  }
5740
5740
  function xh({
@@ -5827,7 +5827,7 @@ function wh({
5827
5827
  }
5828
5828
  async function S(b) {
5829
5829
  if (b != null) {
5830
- const I = l.message.metadata != null ? Fa(l.message.metadata, b) : b;
5830
+ const I = l.message.metadata != null ? Za(l.message.metadata, b) : b;
5831
5831
  n != null && await wr({
5832
5832
  value: I,
5833
5833
  schema: n
@@ -5929,7 +5929,7 @@ function wh({
5929
5929
  case "tool-input-delta": {
5930
5930
  const b = l.partialToolCalls[s.toolCallId];
5931
5931
  b.text += s.inputTextDelta;
5932
- const { value: I } = await Za(
5932
+ const { value: I } = await Wa(
5933
5933
  b.text
5934
5934
  );
5935
5935
  b.dynamic ? _({
@@ -6003,7 +6003,7 @@ function wh({
6003
6003
  const b = g(s.toolCallId);
6004
6004
  $({
6005
6005
  toolCallId: s.toolCallId,
6006
- toolName: Ar(b),
6006
+ toolName: jr(b),
6007
6007
  state: "output-available",
6008
6008
  input: b.input,
6009
6009
  output: s.output,
@@ -6031,7 +6031,7 @@ function wh({
6031
6031
  const b = g(s.toolCallId);
6032
6032
  $({
6033
6033
  toolCallId: s.toolCallId,
6034
- toolName: Ar(b),
6034
+ toolName: jr(b),
6035
6035
  state: "output-error",
6036
6036
  input: b.input,
6037
6037
  rawInput: b.rawInput,
@@ -6152,7 +6152,7 @@ var Nh = () => ({
6152
6152
  }), Eh = ({
6153
6153
  schema: t
6154
6154
  }) => {
6155
- const n = Zp(t);
6155
+ const n = Wp(t);
6156
6156
  return {
6157
6157
  type: "object",
6158
6158
  responseFormat: {
@@ -6160,7 +6160,7 @@ var Nh = () => ({
6160
6160
  schema: n.jsonSchema
6161
6161
  },
6162
6162
  async parsePartial({ text: a }) {
6163
- const i = await Za(a);
6163
+ const i = await Wa(a);
6164
6164
  switch (i.state) {
6165
6165
  case "failed-parse":
6166
6166
  case "undefined-input":
@@ -6180,7 +6180,7 @@ var Nh = () => ({
6180
6180
  async parseOutput({ text: a }, i) {
6181
6181
  const e = await wn({ text: a });
6182
6182
  if (!e.success)
6183
- throw new Tr({
6183
+ throw new Dr({
6184
6184
  message: "No object generated: could not parse the response.",
6185
6185
  cause: e.error,
6186
6186
  text: a,
@@ -6188,12 +6188,12 @@ var Nh = () => ({
6188
6188
  usage: i.usage,
6189
6189
  finishReason: i.finishReason
6190
6190
  });
6191
- const r = await Wp({
6191
+ const r = await Bp({
6192
6192
  value: e.value,
6193
6193
  schema: n
6194
6194
  });
6195
6195
  if (!r.success)
6196
- throw new Tr({
6196
+ throw new Dr({
6197
6197
  message: "No object generated: response did not match schema.",
6198
6198
  cause: r.error,
6199
6199
  text: a,
@@ -6272,7 +6272,7 @@ var Ch = class {
6272
6272
  "Content-Type": "application/json",
6273
6273
  ...p
6274
6274
  },
6275
- `ai-sdk/${Dr}`,
6275
+ `ai-sdk/${Rr}`,
6276
6276
  xr()
6277
6277
  ),
6278
6278
  body: JSON.stringify(v),
@@ -6303,7 +6303,7 @@ var Ch = class {
6303
6303
  method: "GET",
6304
6304
  headers: _r(
6305
6305
  h,
6306
- `ai-sdk/${Dr}`,
6306
+ `ai-sdk/${Rr}`,
6307
6307
  xr()
6308
6308
  ),
6309
6309
  credentials: p
@@ -6318,12 +6318,12 @@ var Ch = class {
6318
6318
  throw new Error("The response body is empty.");
6319
6319
  return this.processResponseStream(g.body);
6320
6320
  }
6321
- }, Wa = class extends Ch {
6321
+ }, Ba = class extends Ch {
6322
6322
  constructor(t = {}) {
6323
6323
  super(t);
6324
6324
  }
6325
6325
  processResponseStream(t) {
6326
- return Mp({
6326
+ return Lp({
6327
6327
  stream: t,
6328
6328
  schema: bh
6329
6329
  }).pipeThrough(
@@ -6338,9 +6338,9 @@ var Ch = class {
6338
6338
  }
6339
6339
  }, Ph = class {
6340
6340
  constructor({
6341
- generateId: t = _a,
6341
+ generateId: t = xa,
6342
6342
  id: n = t(),
6343
- transport: a = new Wa(),
6343
+ transport: a = new Ba(),
6344
6344
  messageMetadataSchema: i,
6345
6345
  dataPartSchemas: e,
6346
6346
  state: r,
@@ -6426,10 +6426,10 @@ var Ch = class {
6426
6426
  this.state.replaceMessage(_.length - 1, {
6427
6427
  ...S,
6428
6428
  parts: S.parts.map(
6429
- (b) => Rr(b) && b.toolCallId === p ? { ...b, state: m, output: v, errorText: g } : b
6429
+ (b) => Ar(b) && b.toolCallId === p ? { ...b, state: m, output: v, errorText: g } : b
6430
6430
  )
6431
6431
  }), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(
6432
- (b) => Rr(b) && b.toolCallId === p ? {
6432
+ (b) => Ar(b) && b.toolCallId === p ? {
6433
6433
  ...b,
6434
6434
  state: m,
6435
6435
  output: v,
@@ -6584,7 +6584,7 @@ var Ch = class {
6584
6584
  accept: "image/*, text/plain, text/html, text/markdown, text/csv, text/xml, text/json, text/css",
6585
6585
  async add({ file: t }) {
6586
6586
  return {
6587
- id: _a(),
6587
+ id: xa(),
6588
6588
  type: t.type.startsWith("image/") ? "image" : "file",
6589
6589
  name: t.name,
6590
6590
  file: t,
@@ -6609,7 +6609,7 @@ var Ch = class {
6609
6609
  },
6610
6610
  async remove() {
6611
6611
  }
6612
- }, jr = (t) => Sn(t);
6612
+ }, Ur = (t) => Sn(t);
6613
6613
  function Rh(t) {
6614
6614
  return t.replace(/[}\]"]+$/, "");
6615
6615
  }
@@ -6698,7 +6698,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6698
6698
  name: i.substring(5),
6699
6699
  data: a.data
6700
6700
  } : (console.warn(`Unsupported message part type: ${i}`), null);
6701
- }).filter(Boolean), Ur = Bp(
6701
+ }).filter(Boolean), zr = Vp(
6702
6702
  (t, n) => {
6703
6703
  const a = /* @__PURE__ */ new Date();
6704
6704
  switch (t.role) {
@@ -6773,7 +6773,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6773
6773
  getId(t) {
6774
6774
  return t.id;
6775
6775
  }
6776
- }, { MessageRepository: jh } = Sa, Uh = (t, n) => ({
6776
+ }, { MessageRepository: jh } = Ia, Uh = (t, n) => ({
6777
6777
  headId: n.headId,
6778
6778
  messages: n.messages.map((a) => {
6779
6779
  const i = t([a.message])[0];
@@ -6783,7 +6783,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6783
6783
  };
6784
6784
  })
6785
6785
  }), zh = (t, n, a, i, e) => {
6786
- const r = Ie(!1), o = wa(), s = zt(
6786
+ const r = Ie(!1), o = Sa(), s = zt(
6787
6787
  () => o.threadListItem.source ? o.threadListItem() : null,
6788
6788
  [o]
6789
6789
  ), [u, l] = q(!1), c = Ie(/* @__PURE__ */ new Set()), m = Ie(() => e);
@@ -6848,7 +6848,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6848
6848
  toCreateMessage: a,
6849
6849
  cancelPendingToolCallsOnSend: i = !0
6850
6850
  } = {}) => {
6851
- const e = Vp(), r = t.status === "submitted" || t.status === "streaming", [o, s] = q({}), u = Ur.useThreadMessages({
6851
+ const e = Jp(), r = t.status === "submitted" || t.status === "streaming", [o, s] = q({}), u = zr.useThreadMessages({
6852
6852
  isRunning: r,
6853
6853
  messages: t.messages,
6854
6854
  metadata: he(
@@ -6862,7 +6862,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6862
6862
  get current() {
6863
6863
  return p;
6864
6864
  }
6865
- })), c = Sa.useToolInvocations({
6865
+ })), c = Ia.useToolInvocations({
6866
6866
  state: {
6867
6867
  messages: u,
6868
6868
  isRunning: r
@@ -6879,7 +6879,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6879
6879
  }), m = zh(
6880
6880
  l,
6881
6881
  n?.history ?? e?.history,
6882
- Ur.toThreadMessages,
6882
+ zr.toThreadMessages,
6883
6883
  Ah,
6884
6884
  (v) => {
6885
6885
  t.setMessages(v);
@@ -6910,40 +6910,40 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6910
6910
  } : y)
6911
6911
  );
6912
6912
  }));
6913
- }, p = Jp({
6913
+ }, p = Gp({
6914
6914
  isRunning: r,
6915
6915
  messages: u,
6916
6916
  setMessages: (v) => t.setMessages(
6917
- v.map(jr).filter(Boolean).flat()
6917
+ v.map(Ur).filter(Boolean).flat()
6918
6918
  ),
6919
6919
  onImport: (v) => t.setMessages(
6920
- v.map(jr).filter(Boolean).flat()
6920
+ v.map(Ur).filter(Boolean).flat()
6921
6921
  ),
6922
6922
  onCancel: async () => {
6923
6923
  t.stop(), c.abort();
6924
6924
  },
6925
6925
  onNew: async (v) => {
6926
6926
  h();
6927
- const g = (a ?? Nr)(v);
6927
+ const g = (a ?? Er)(v);
6928
6928
  await t.sendMessage(g, {
6929
6929
  metadata: v.runConfig
6930
6930
  });
6931
6931
  },
6932
6932
  onEdit: async (v) => {
6933
6933
  h();
6934
- const g = kr(
6934
+ const g = Nr(
6935
6935
  t.messages,
6936
6936
  v.parentId
6937
6937
  );
6938
6938
  t.setMessages(g);
6939
- const y = (a ?? Nr)(v);
6939
+ const y = (a ?? Er)(v);
6940
6940
  await t.sendMessage(y, {
6941
6941
  metadata: v.runConfig
6942
6942
  });
6943
6943
  },
6944
6944
  onReload: async (v, g) => {
6945
6945
  h();
6946
- const y = kr(t.messages, v);
6946
+ const y = Nr(t.messages, v);
6947
6947
  t.setMessages(y), await t.regenerate({ metadata: g.runConfig });
6948
6948
  },
6949
6949
  onAddToolResult: ({ toolCallId: v, result: g, isError: y }) => {
@@ -6968,10 +6968,10 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
6968
6968
  isLoading: m
6969
6969
  });
6970
6970
  return p;
6971
- }, cn, zr;
6971
+ }, cn, Mr;
6972
6972
  function Lh() {
6973
- if (zr) return cn;
6974
- zr = 1;
6973
+ if (Mr) return cn;
6974
+ Mr = 1;
6975
6975
  function t(n, a) {
6976
6976
  if (typeof n != "function")
6977
6977
  throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof n}\`.`);
@@ -6989,11 +6989,11 @@ function Lh() {
6989
6989
  var Fh = /* @__PURE__ */ Lh();
6990
6990
  const Zh = /* @__PURE__ */ oh(Fh);
6991
6991
  var St = { exports: {} }, un = {};
6992
- var Mr;
6992
+ var Lr;
6993
6993
  function Wh() {
6994
- if (Mr) return un;
6995
- Mr = 1;
6996
- var t = Ia;
6994
+ if (Lr) return un;
6995
+ Lr = 1;
6996
+ var t = ka;
6997
6997
  function n(m, h) {
6998
6998
  return m === h && (m !== 0 || 1 / m === 1 / h) || m !== m && h !== h;
6999
6999
  }
@@ -7031,9 +7031,9 @@ function Wh() {
7031
7031
  return un.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : c, un;
7032
7032
  }
7033
7033
  var dn = {};
7034
- var Lr;
7034
+ var Fr;
7035
7035
  function Bh() {
7036
- return Lr || (Lr = 1, process.env.NODE_ENV !== "production" && (function() {
7036
+ return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && (function() {
7037
7037
  function t(p, v) {
7038
7038
  return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
7039
7039
  }
@@ -7080,22 +7080,22 @@ function Bh() {
7080
7080
  return v();
7081
7081
  }
7082
7082
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
7083
- var e = Ia, r = typeof Object.is == "function" ? Object.is : t, o = e.useState, s = e.useEffect, u = e.useLayoutEffect, l = e.useDebugValue, c = !1, m = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : n;
7083
+ var e = ka, r = typeof Object.is == "function" ? Object.is : t, o = e.useState, s = e.useEffect, u = e.useLayoutEffect, l = e.useDebugValue, c = !1, m = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : n;
7084
7084
  dn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
7085
7085
  })()), dn;
7086
7086
  }
7087
- var Fr;
7087
+ var Zr;
7088
7088
  function Vh() {
7089
- return Fr || (Fr = 1, process.env.NODE_ENV === "production" ? St.exports = Wh() : St.exports = Bh()), St.exports;
7089
+ return Zr || (Zr = 1, process.env.NODE_ENV === "production" ? St.exports = Wh() : St.exports = Bh()), St.exports;
7090
7090
  }
7091
- var Jh = Vh(), Ba = (t, n, a) => {
7091
+ var Jh = Vh(), Va = (t, n, a) => {
7092
7092
  if (!n.has(t))
7093
7093
  throw TypeError("Cannot " + a);
7094
- }, j = (t, n, a) => (Ba(t, n, "read from private field"), a ? a.call(t) : n.get(t)), me = (t, n, a) => {
7094
+ }, j = (t, n, a) => (Va(t, n, "read from private field"), a ? a.call(t) : n.get(t)), me = (t, n, a) => {
7095
7095
  if (n.has(t))
7096
7096
  throw TypeError("Cannot add the same private member more than once");
7097
7097
  n instanceof WeakSet ? n.add(t) : n.set(t, a);
7098
- }, Oe = (t, n, a, i) => (Ba(t, n, "write to private field"), n.set(t, a), a);
7098
+ }, Oe = (t, n, a, i) => (Va(t, n, "write to private field"), n.set(t, a), a);
7099
7099
  function Gh(t, n) {
7100
7100
  return n != null ? Zh(t, n) : t;
7101
7101
  }
@@ -7157,7 +7157,7 @@ ct = /* @__PURE__ */ new WeakMap();
7157
7157
  Je = /* @__PURE__ */ new WeakMap();
7158
7158
  kn = /* @__PURE__ */ new WeakMap();
7159
7159
  Nn = /* @__PURE__ */ new WeakMap();
7160
- var Ge, Zr = class extends Ph {
7160
+ var Ge, Wr = class extends Ph {
7161
7161
  constructor({ messages: n, ...a }) {
7162
7162
  const i = new Kh(n);
7163
7163
  super({ ...a, state: i }), me(this, Ge, void 0), this["~registerMessagesCallback"] = (e, r) => j(this, Ge)["~registerMessagesCallback"](e, r), this["~registerStatusCallback"] = (e) => j(this, Ge)["~registerStatusCallback"](e), this["~registerErrorCallback"] = (e) => j(this, Ge)["~registerErrorCallback"](e), Oe(this, Ge, i);
@@ -7170,9 +7170,9 @@ function Hh({
7170
7170
  ...a
7171
7171
  } = {}) {
7172
7172
  const i = Ie(
7173
- "chat" in a ? a.chat : new Zr(a)
7173
+ "chat" in a ? a.chat : new Wr(a)
7174
7174
  );
7175
- ("chat" in a && a.chat !== i.current || "id" in a && i.current.id !== a.id) && (i.current = "chat" in a ? a.chat : new Zr(a));
7175
+ ("chat" in a && a.chat !== i.current || "id" in a && i.current.id !== a.id) && (i.current = "chat" in a ? a.chat : new Wr(a));
7176
7176
  const r = zt(
7177
7177
  (c) => i.current["~registerMessagesCallback"](c, t),
7178
7178
  // `chatRef.current.id` is required to trigger re-subscription when the chat ID changes
@@ -7221,14 +7221,14 @@ var qh = (t) => Object.fromEntries(
7221
7221
  n,
7222
7222
  {
7223
7223
  ...a.description ? { description: a.description } : void 0,
7224
- parameters: a.parameters instanceof Pr.ZodType ? Pr.toJSONSchema(a.parameters) : a.parameters
7224
+ parameters: a.parameters instanceof Tr.ZodType ? Tr.toJSONSchema(a.parameters) : a.parameters
7225
7225
  }
7226
7226
  ])
7227
7227
  ), Xh = (t) => Object.fromEntries(
7228
7228
  Object.entries(t).filter(
7229
7229
  ([, n]) => !n.disabled && n.type !== "backend"
7230
7230
  )
7231
- ), En = class extends Wa {
7231
+ ), En = class extends Ba {
7232
7232
  runtime;
7233
7233
  constructor(t) {
7234
7234
  super({
@@ -7294,8 +7294,8 @@ var qh = (t) => Object.fromEntries(
7294
7294
  cloud: t,
7295
7295
  ...n
7296
7296
  } = {}) => {
7297
- const a = Gp({ cloud: t });
7298
- return Kp({
7297
+ const a = Kp({ cloud: t });
7298
+ return Hp({
7299
7299
  runtimeHook: function() {
7300
7300
  return Qh(n);
7301
7301
  },
@@ -7325,11 +7325,11 @@ const sb = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], bt = z("check",
7325
7325
  const lb = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Fn = z("chevron-down", lb);
7326
7326
  const cb = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ub = z("chevron-left", cb);
7327
7327
  const db = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], mb = z("chevron-right", db);
7328
- const fb = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Va = z("chevron-up", fb);
7328
+ const fb = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ja = z("chevron-up", fb);
7329
7329
  const pb = [
7330
7330
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
7331
7331
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
7332
- ], Ja = z("copy", pb);
7332
+ ], Ga = z("copy", pb);
7333
7333
  const gb = [
7334
7334
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
7335
7335
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
@@ -7337,7 +7337,7 @@ const gb = [
7337
7337
  ["path", { d: "M16 13H8", key: "t4e002" }],
7338
7338
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
7339
7339
  ], vb = z("file-text", gb);
7340
- const hb = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ga = z("loader-circle", hb);
7340
+ const hb = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ka = z("loader-circle", hb);
7341
7341
  const bb = [
7342
7342
  ["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }],
7343
7343
  ["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }],
@@ -7418,7 +7418,7 @@ const cS = ({
7418
7418
  config: n
7419
7419
  }) => {
7420
7420
  const [a, i] = q(
7421
- n.model?.defaultModel ?? xa[0]
7421
+ n.model?.defaultModel ?? wa[0]
7422
7422
  ), [e, r] = q(
7423
7423
  n.modal?.defaultExpanded ?? !1
7424
7424
  ), [o, s] = q(n.modal?.defaultOpen), u = eb({
@@ -7433,7 +7433,7 @@ const cS = ({
7433
7433
  messages: c,
7434
7434
  system: Fb(
7435
7435
  n.systemPrompt,
7436
- n.plugins ?? Qp
7436
+ n.plugins ?? kr
7437
7437
  ),
7438
7438
  id: l,
7439
7439
  config: {
@@ -7446,7 +7446,7 @@ const cS = ({
7446
7446
  })
7447
7447
  })
7448
7448
  });
7449
- return /* @__PURE__ */ d(Hp, { runtime: u, children: /* @__PURE__ */ d(
7449
+ return /* @__PURE__ */ d(qp, { runtime: u, children: /* @__PURE__ */ d(
7450
7450
  eg.Provider,
7451
7451
  {
7452
7452
  value: {
@@ -7457,13 +7457,13 @@ const cS = ({
7457
7457
  setIsExpanded: r,
7458
7458
  isOpen: o ?? !1,
7459
7459
  setIsOpen: s,
7460
- plugins: n.plugins ?? []
7460
+ plugins: n.plugins ?? kr
7461
7461
  },
7462
7462
  children: t
7463
7463
  }
7464
7464
  ) });
7465
7465
  };
7466
- function Wr(t, n) {
7466
+ function Br(t, n) {
7467
7467
  if (typeof t == "function")
7468
7468
  return t(n);
7469
7469
  t != null && (t.current = n);
@@ -7472,14 +7472,14 @@ function Wn(...t) {
7472
7472
  return (n) => {
7473
7473
  let a = !1;
7474
7474
  const i = t.map((e) => {
7475
- const r = Wr(e, n);
7475
+ const r = Br(e, n);
7476
7476
  return !a && typeof r == "function" && (a = !0), r;
7477
7477
  });
7478
7478
  if (a)
7479
7479
  return () => {
7480
7480
  for (let e = 0; e < i.length; e++) {
7481
7481
  const r = i[e];
7482
- typeof r == "function" ? r() : Wr(t[e], null);
7482
+ typeof r == "function" ? r() : Br(t[e], null);
7483
7483
  }
7484
7484
  };
7485
7485
  };
@@ -7491,14 +7491,14 @@ var Zb = Symbol.for("react.lazy"), Mt = f[" use ".trim().toString()];
7491
7491
  function Wb(t) {
7492
7492
  return typeof t == "object" && t !== null && "then" in t;
7493
7493
  }
7494
- function Ka(t) {
7494
+ function Ha(t) {
7495
7495
  return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Zb && "_payload" in t && Wb(t._payload);
7496
7496
  }
7497
7497
  // @__NO_SIDE_EFFECTS__
7498
- function Ha(t) {
7498
+ function qa(t) {
7499
7499
  const n = /* @__PURE__ */ Vb(t), a = f.forwardRef((i, e) => {
7500
7500
  let { children: r, ...o } = i;
7501
- Ka(r) && typeof Mt == "function" && (r = Mt(r._payload));
7501
+ Ha(r) && typeof Mt == "function" && (r = Mt(r._payload));
7502
7502
  const s = f.Children.toArray(r), u = s.find(Kb);
7503
7503
  if (u) {
7504
7504
  const l = u.props.children, c = s.map((m) => m === u ? f.Children.count(l) > 1 ? f.Children.only(null) : f.isValidElement(l) ? l.props.children : null : m);
@@ -7508,12 +7508,12 @@ function Ha(t) {
7508
7508
  });
7509
7509
  return a.displayName = `${t}.Slot`, a;
7510
7510
  }
7511
- var Bb = /* @__PURE__ */ Ha("Slot");
7511
+ var Bb = /* @__PURE__ */ qa("Slot");
7512
7512
  // @__NO_SIDE_EFFECTS__
7513
7513
  function Vb(t) {
7514
7514
  const n = f.forwardRef((a, i) => {
7515
7515
  let { children: e, ...r } = a;
7516
- if (Ka(e) && typeof Mt == "function" && (e = Mt(e._payload)), f.isValidElement(e)) {
7516
+ if (Ha(e) && typeof Mt == "function" && (e = Mt(e._payload)), f.isValidElement(e)) {
7517
7517
  const o = qb(e), s = Hb(r, e.props);
7518
7518
  return e.type !== f.Fragment && (s.ref = i ? Wn(i, o) : o), f.cloneElement(e, s);
7519
7519
  }
@@ -7521,15 +7521,15 @@ function Vb(t) {
7521
7521
  });
7522
7522
  return n.displayName = `${t}.SlotClone`, n;
7523
7523
  }
7524
- var qa = Symbol("radix.slottable");
7524
+ var Xa = Symbol("radix.slottable");
7525
7525
  // @__NO_SIDE_EFFECTS__
7526
7526
  function Jb(t) {
7527
7527
  const n = ({ children: a }) => /* @__PURE__ */ d(jt, { children: a });
7528
- return n.displayName = `${t}.Slottable`, n.__radixId = qa, n;
7528
+ return n.displayName = `${t}.Slottable`, n.__radixId = Xa, n;
7529
7529
  }
7530
7530
  var Gb = /* @__PURE__ */ Jb("Slottable");
7531
7531
  function Kb(t) {
7532
- return f.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === qa;
7532
+ return f.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Xa;
7533
7533
  }
7534
7534
  function Hb(t, n) {
7535
7535
  const a = { ...n };
@@ -7546,13 +7546,13 @@ function qb(t) {
7546
7546
  let n = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, a = n && "isReactWarning" in n && n.isReactWarning;
7547
7547
  return a ? t.ref : (n = Object.getOwnPropertyDescriptor(t, "ref")?.get, a = n && "isReactWarning" in n && n.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
7548
7548
  }
7549
- const Br = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Vr = tg, Xb = (t, n) => (a) => {
7549
+ const Vr = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Jr = tg, Xb = (t, n) => (a) => {
7550
7550
  var i;
7551
- if (n?.variants == null) return Vr(t, a?.class, a?.className);
7551
+ if (n?.variants == null) return Jr(t, a?.class, a?.className);
7552
7552
  const { variants: e, defaultVariants: r } = n, o = Object.keys(e).map((l) => {
7553
7553
  const c = a?.[l], m = r?.[l];
7554
7554
  if (c === null) return null;
7555
- const h = Br(c) || Br(m);
7555
+ const h = Vr(c) || Vr(m);
7556
7556
  return e[l][h];
7557
7557
  }), s = a && Object.entries(a).reduce((l, c) => {
7558
7558
  let [m, h] = c;
@@ -7574,7 +7574,7 @@ const Br = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Vr = tg, X
7574
7574
  h
7575
7575
  ] : l;
7576
7576
  }, []);
7577
- return Vr(t, o, u, a?.class, a?.className);
7577
+ return Jr(t, o, u, a?.class, a?.className);
7578
7578
  }, Yb = Xb(
7579
7579
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
7580
7580
  {
@@ -7703,14 +7703,14 @@ function ty(t) {
7703
7703
  });
7704
7704
  return n.displayName = `${t}.SlotClone`, n;
7705
7705
  }
7706
- var Xa = Symbol("radix.slottable");
7706
+ var Ya = Symbol("radix.slottable");
7707
7707
  // @__NO_SIDE_EFFECTS__
7708
7708
  function ny(t) {
7709
7709
  const n = ({ children: a }) => /* @__PURE__ */ d(jt, { children: a });
7710
- return n.displayName = `${t}.Slottable`, n.__radixId = Xa, n;
7710
+ return n.displayName = `${t}.Slottable`, n.__radixId = Ya, n;
7711
7711
  }
7712
7712
  function ry(t) {
7713
- return f.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Xa;
7713
+ return f.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Ya;
7714
7714
  }
7715
7715
  function iy(t, n) {
7716
7716
  const a = { ...n };
@@ -7753,7 +7753,7 @@ var oy = [
7753
7753
  return i.displayName = `Primitive.${n}`, { ...t, [n]: i };
7754
7754
  }, {});
7755
7755
  function sy(t, n) {
7756
- t && Oa.flushSync(() => t.dispatchEvent(n));
7756
+ t && Ca.flushSync(() => t.dispatchEvent(n));
7757
7757
  }
7758
7758
  function je(t) {
7759
7759
  const n = f.useRef(t);
@@ -7770,7 +7770,7 @@ function ly(t, n = globalThis?.document) {
7770
7770
  return n.addEventListener("keydown", i, { capture: !0 }), () => n.removeEventListener("keydown", i, { capture: !0 });
7771
7771
  }, [a, n]);
7772
7772
  }
7773
- var cy = "DismissableLayer", On = "dismissableLayer.update", uy = "dismissableLayer.pointerDownOutside", dy = "dismissableLayer.focusOutside", Jr, Ya = f.createContext({
7773
+ var cy = "DismissableLayer", On = "dismissableLayer.update", uy = "dismissableLayer.pointerDownOutside", dy = "dismissableLayer.focusOutside", Gr, Qa = f.createContext({
7774
7774
  layers: /* @__PURE__ */ new Set(),
7775
7775
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
7776
7776
  branches: /* @__PURE__ */ new Set()
@@ -7784,7 +7784,7 @@ var cy = "DismissableLayer", On = "dismissableLayer.update", uy = "dismissableLa
7784
7784
  onInteractOutside: o,
7785
7785
  onDismiss: s,
7786
7786
  ...u
7787
- } = t, l = f.useContext(Ya), [c, m] = f.useState(null), h = c?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), v = Q(n, (w) => m(w)), g = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), $ = g.indexOf(y), _ = c ? g.indexOf(c) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, b = _ >= $, I = py((w) => {
7787
+ } = t, l = f.useContext(Qa), [c, m] = f.useState(null), h = c?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), v = Q(n, (w) => m(w)), g = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), $ = g.indexOf(y), _ = c ? g.indexOf(c) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, b = _ >= $, I = py((w) => {
7788
7788
  const C = w.target, R = [...l.branches].some((A) => A.contains(C));
7789
7789
  !b || R || (e?.(w), o?.(w), w.defaultPrevented || s?.());
7790
7790
  }, h), N = gy((w) => {
@@ -7795,11 +7795,11 @@ var cy = "DismissableLayer", On = "dismissableLayer.update", uy = "dismissableLa
7795
7795
  _ === l.layers.size - 1 && (i?.(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
7796
7796
  }, h), f.useEffect(() => {
7797
7797
  if (c)
7798
- return a && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Jr = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(c)), l.layers.add(c), Gr(), () => {
7799
- a && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Jr);
7798
+ return a && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Gr = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(c)), l.layers.add(c), Kr(), () => {
7799
+ a && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Gr);
7800
7800
  };
7801
7801
  }, [c, h, a, l]), f.useEffect(() => () => {
7802
- c && (l.layers.delete(c), l.layersWithOutsidePointerEventsDisabled.delete(c), Gr());
7802
+ c && (l.layers.delete(c), l.layersWithOutsidePointerEventsDisabled.delete(c), Kr());
7803
7803
  }, [c, l]), f.useEffect(() => {
7804
7804
  const w = () => p({});
7805
7805
  return document.addEventListener(On, w), () => document.removeEventListener(On, w);
@@ -7824,7 +7824,7 @@ var cy = "DismissableLayer", On = "dismissableLayer.update", uy = "dismissableLa
7824
7824
  );
7825
7825
  Jt.displayName = cy;
7826
7826
  var my = "DismissableLayerBranch", fy = f.forwardRef((t, n) => {
7827
- const a = f.useContext(Ya), i = f.useRef(null), e = Q(n, i);
7827
+ const a = f.useContext(Qa), i = f.useRef(null), e = Q(n, i);
7828
7828
  return f.useEffect(() => {
7829
7829
  const r = i.current;
7830
7830
  if (r)
@@ -7841,7 +7841,7 @@ function py(t, n = globalThis?.document) {
7841
7841
  const r = (s) => {
7842
7842
  if (s.target && !i.current) {
7843
7843
  let u = function() {
7844
- Qa(
7844
+ eo(
7845
7845
  uy,
7846
7846
  a,
7847
7847
  l,
@@ -7868,7 +7868,7 @@ function gy(t, n = globalThis?.document) {
7868
7868
  const a = je(t), i = f.useRef(!1);
7869
7869
  return f.useEffect(() => {
7870
7870
  const e = (r) => {
7871
- r.target && !i.current && Qa(dy, a, { originalEvent: r }, {
7871
+ r.target && !i.current && eo(dy, a, { originalEvent: r }, {
7872
7872
  discrete: !1
7873
7873
  });
7874
7874
  };
@@ -7878,11 +7878,11 @@ function gy(t, n = globalThis?.document) {
7878
7878
  onBlurCapture: () => i.current = !1
7879
7879
  };
7880
7880
  }
7881
- function Gr() {
7881
+ function Kr() {
7882
7882
  const t = new CustomEvent(On);
7883
7883
  document.dispatchEvent(t);
7884
7884
  }
7885
- function Qa(t, n, a, { discrete: i }) {
7885
+ function eo(t, n, a, { discrete: i }) {
7886
7886
  const e = a.originalEvent.target, r = new CustomEvent(t, { bubbles: !1, cancelable: !0, detail: a });
7887
7887
  n && e.addEventListener(t, n, { once: !0 }), i ? sy(e, r) : e.dispatchEvent(r);
7888
7888
  }
@@ -7945,12 +7945,12 @@ function wy(t) {
7945
7945
  function Pn(t) {
7946
7946
  return t.replace(/start|end/g, (n) => $y[n]);
7947
7947
  }
7948
- const Kr = ["left", "right"], Hr = ["right", "left"], Sy = ["top", "bottom"], Iy = ["bottom", "top"];
7948
+ const Hr = ["left", "right"], qr = ["right", "left"], Sy = ["top", "bottom"], Iy = ["bottom", "top"];
7949
7949
  function ky(t, n, a) {
7950
7950
  switch (t) {
7951
7951
  case "top":
7952
7952
  case "bottom":
7953
- return a ? n ? Hr : Kr : n ? Kr : Hr;
7953
+ return a ? n ? qr : Hr : n ? Hr : qr;
7954
7954
  case "left":
7955
7955
  case "right":
7956
7956
  return n ? Sy : Iy;
@@ -7975,7 +7975,7 @@ function Ey(t) {
7975
7975
  ...t
7976
7976
  };
7977
7977
  }
7978
- function eo(t) {
7978
+ function to(t) {
7979
7979
  return typeof t != "number" ? Ey(t) : {
7980
7980
  top: t,
7981
7981
  right: t,
@@ -8001,7 +8001,7 @@ function Zt(t) {
8001
8001
  y: a
8002
8002
  };
8003
8003
  }
8004
- function qr(t, n, a) {
8004
+ function Xr(t, n, a) {
8005
8005
  let {
8006
8006
  reference: i,
8007
8007
  floating: e
@@ -8063,7 +8063,7 @@ const Oy = async (t, n, a) => {
8063
8063
  }), {
8064
8064
  x: c,
8065
8065
  y: m
8066
- } = qr(l, i, u), h = i, p = {}, v = 0;
8066
+ } = Xr(l, i, u), h = i, p = {}, v = 0;
8067
8067
  for (let g = 0; g < s.length; g++) {
8068
8068
  const {
8069
8069
  name: y,
@@ -8100,7 +8100,7 @@ const Oy = async (t, n, a) => {
8100
8100
  }) : I.rects), {
8101
8101
  x: c,
8102
8102
  y: m
8103
- } = qr(l, h, u)), g = -1);
8103
+ } = Xr(l, h, u)), g = -1);
8104
8104
  }
8105
8105
  return {
8106
8106
  x: c,
@@ -8126,7 +8126,7 @@ async function pt(t, n) {
8126
8126
  elementContext: m = "floating",
8127
8127
  altBoundary: h = !1,
8128
8128
  padding: p = 0
8129
- } = ke(n, t), v = eo(p), y = s[h ? m === "floating" ? "reference" : "floating" : m], $ = Zt(await r.getClippingRect({
8129
+ } = ke(n, t), v = to(p), y = s[h ? m === "floating" ? "reference" : "floating" : m], $ = Zt(await r.getClippingRect({
8130
8130
  element: (a = await (r.isElement == null ? void 0 : r.isElement(y))) == null || a ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
8131
8131
  boundary: l,
8132
8132
  rootBoundary: c,
@@ -8173,7 +8173,7 @@ const Cy = (t) => ({
8173
8173
  } = ke(t, n) || {};
8174
8174
  if (l == null)
8175
8175
  return {};
8176
- const m = eo(c), h = {
8176
+ const m = to(c), h = {
8177
8177
  x: a,
8178
8178
  y: i
8179
8179
  }, p = Gn(e), v = Jn(p), g = await o.getDimensions(l), y = p === "y", $ = y ? "top" : "left", _ = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", b = r.reference[v] + r.reference[p] - h[p] - r.floating[v], I = h[p] - r.reference[p], N = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
@@ -8274,7 +8274,7 @@ const Cy = (t) => ({
8274
8274
  }
8275
8275
  };
8276
8276
  };
8277
- function Xr(t, n) {
8277
+ function Yr(t, n) {
8278
8278
  return {
8279
8279
  top: t.top - n.height,
8280
8280
  right: t.right - n.width,
@@ -8282,7 +8282,7 @@ function Xr(t, n) {
8282
8282
  left: t.left - n.width
8283
8283
  };
8284
8284
  }
8285
- function Yr(t) {
8285
+ function Qr(t) {
8286
8286
  return by.some((n) => t[n] >= 0);
8287
8287
  }
8288
8288
  const Ty = function(t) {
@@ -8301,11 +8301,11 @@ const Ty = function(t) {
8301
8301
  const r = await pt(n, {
8302
8302
  ...e,
8303
8303
  elementContext: "reference"
8304
- }), o = Xr(r, a.reference);
8304
+ }), o = Yr(r, a.reference);
8305
8305
  return {
8306
8306
  data: {
8307
8307
  referenceHiddenOffsets: o,
8308
- referenceHidden: Yr(o)
8308
+ referenceHidden: Qr(o)
8309
8309
  }
8310
8310
  };
8311
8311
  }
@@ -8313,11 +8313,11 @@ const Ty = function(t) {
8313
8313
  const r = await pt(n, {
8314
8314
  ...e,
8315
8315
  altBoundary: !0
8316
- }), o = Xr(r, a.floating);
8316
+ }), o = Yr(r, a.floating);
8317
8317
  return {
8318
8318
  data: {
8319
8319
  escapedOffsets: o,
8320
- escaped: Yr(o)
8320
+ escaped: Qr(o)
8321
8321
  }
8322
8322
  };
8323
8323
  }
@@ -8326,13 +8326,13 @@ const Ty = function(t) {
8326
8326
  }
8327
8327
  }
8328
8328
  };
8329
- }, to = /* @__PURE__ */ new Set(["left", "top"]);
8329
+ }, no = /* @__PURE__ */ new Set(["left", "top"]);
8330
8330
  async function Dy(t, n) {
8331
8331
  const {
8332
8332
  placement: a,
8333
8333
  platform: i,
8334
8334
  elements: e
8335
- } = t, r = await (i.isRTL == null ? void 0 : i.isRTL(e.floating)), o = Ne(a), s = tt(a), u = ve(a) === "y", l = to.has(o) ? -1 : 1, c = r && u ? -1 : 1, m = ke(n, t);
8335
+ } = t, r = await (i.isRTL == null ? void 0 : i.isRTL(e.floating)), o = Ne(a), s = tt(a), u = ve(a) === "y", l = no.has(o) ? -1 : 1, c = r && u ? -1 : 1, m = ke(n, t);
8336
8336
  let {
8337
8337
  mainAxis: h,
8338
8338
  crossAxis: p,
@@ -8465,7 +8465,7 @@ const Ry = function(t) {
8465
8465
  }
8466
8466
  if (l) {
8467
8467
  var $, _;
8468
- const S = h === "y" ? "width" : "height", b = to.has(Ne(e)), I = r.reference[m] - r.floating[S] + (b && (($ = o.offset) == null ? void 0 : $[m]) || 0) + (b ? 0 : y.crossAxis), N = r.reference[m] + r.reference[S] + (b ? 0 : ((_ = o.offset) == null ? void 0 : _[m]) || 0) - (b ? y.crossAxis : 0);
8468
+ const S = h === "y" ? "width" : "height", b = no.has(Ne(e)), I = r.reference[m] - r.floating[S] + (b && (($ = o.offset) == null ? void 0 : $[m]) || 0) + (b ? 0 : y.crossAxis), N = r.reference[m] + r.reference[S] + (b ? 0 : ((_ = o.offset) == null ? void 0 : _[m]) || 0) - (b ? y.crossAxis : 0);
8469
8469
  v < I ? v = I : v > N && (v = N);
8470
8470
  }
8471
8471
  return {
@@ -8519,7 +8519,7 @@ function Gt() {
8519
8519
  return typeof window < "u";
8520
8520
  }
8521
8521
  function nt(t) {
8522
- return no(t) ? (t.nodeName || "").toLowerCase() : "#document";
8522
+ return ro(t) ? (t.nodeName || "").toLowerCase() : "#document";
8523
8523
  }
8524
8524
  function ne(t) {
8525
8525
  var n;
@@ -8527,9 +8527,9 @@ function ne(t) {
8527
8527
  }
8528
8528
  function xe(t) {
8529
8529
  var n;
8530
- return (n = (no(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
8530
+ return (n = (ro(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
8531
8531
  }
8532
- function no(t) {
8532
+ function ro(t) {
8533
8533
  return Gt() ? t instanceof Node || t instanceof ne(t).Node : !1;
8534
8534
  }
8535
8535
  function le(t) {
@@ -8538,7 +8538,7 @@ function le(t) {
8538
8538
  function _e(t) {
8539
8539
  return Gt() ? t instanceof HTMLElement || t instanceof ne(t).HTMLElement : !1;
8540
8540
  }
8541
- function Qr(t) {
8541
+ function ei(t) {
8542
8542
  return !Gt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ne(t).ShadowRoot;
8543
8543
  }
8544
8544
  const zy = /* @__PURE__ */ new Set(["inline", "contents"]);
@@ -8607,19 +8607,19 @@ function De(t) {
8607
8607
  // Step into the shadow DOM of the parent of a slotted node.
8608
8608
  t.assignedSlot || // DOM Element detected.
8609
8609
  t.parentNode || // ShadowRoot detected.
8610
- Qr(t) && t.host || // Fallback.
8610
+ ei(t) && t.host || // Fallback.
8611
8611
  xe(t)
8612
8612
  );
8613
- return Qr(n) ? n.host : n;
8613
+ return ei(n) ? n.host : n;
8614
8614
  }
8615
- function ro(t) {
8615
+ function io(t) {
8616
8616
  const n = De(t);
8617
- return Xe(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : _e(n) && $t(n) ? n : ro(n);
8617
+ return Xe(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : _e(n) && $t(n) ? n : io(n);
8618
8618
  }
8619
8619
  function gt(t, n, a) {
8620
8620
  var i;
8621
8621
  n === void 0 && (n = []), a === void 0 && (a = !0);
8622
- const e = ro(t), r = e === ((i = t.ownerDocument) == null ? void 0 : i.body), o = ne(e);
8622
+ const e = io(t), r = e === ((i = t.ownerDocument) == null ? void 0 : i.body), o = ne(e);
8623
8623
  if (r) {
8624
8624
  const s = Tn(o);
8625
8625
  return n.concat(o, o.visualViewport || [], $t(e) ? e : [], s && a ? gt(s) : []);
@@ -8629,7 +8629,7 @@ function gt(t, n, a) {
8629
8629
  function Tn(t) {
8630
8630
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
8631
8631
  }
8632
- function io(t) {
8632
+ function ao(t) {
8633
8633
  const n = ce(t);
8634
8634
  let a = parseFloat(n.width) || 0, i = parseFloat(n.height) || 0;
8635
8635
  const e = _e(t), r = e ? t.offsetWidth : a, o = e ? t.offsetHeight : i, s = Lt(a) !== r || Lt(i) !== o;
@@ -8650,7 +8650,7 @@ function He(t) {
8650
8650
  width: i,
8651
8651
  height: e,
8652
8652
  $: r
8653
- } = io(n);
8653
+ } = ao(n);
8654
8654
  let o = (r ? Lt(a.width) : a.width) / i, s = (r ? Lt(a.height) : a.height) / e;
8655
8655
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
8656
8656
  x: o,
@@ -8658,7 +8658,7 @@ function He(t) {
8658
8658
  };
8659
8659
  }
8660
8660
  const Gy = /* @__PURE__ */ be(0);
8661
- function ao(t) {
8661
+ function oo(t) {
8662
8662
  const n = ne(t);
8663
8663
  return !Hn() || !n.visualViewport ? Gy : {
8664
8664
  x: n.visualViewport.offsetLeft,
@@ -8673,7 +8673,7 @@ function Ue(t, n, a, i) {
8673
8673
  const e = t.getBoundingClientRect(), r = qn(t);
8674
8674
  let o = be(1);
8675
8675
  n && (i ? le(i) && (o = He(i)) : o = He(t));
8676
- const s = Ky(r, a, i) ? ao(r) : be(0);
8676
+ const s = Ky(r, a, i) ? oo(r) : be(0);
8677
8677
  let u = (e.left + s.x) / o.x, l = (e.top + s.y) / o.y, c = e.width / o.x, m = e.height / o.y;
8678
8678
  if (r) {
8679
8679
  const h = ne(r), p = i && le(i) ? ne(i) : i;
@@ -8694,7 +8694,7 @@ function qt(t, n) {
8694
8694
  const a = Ht(t).scrollLeft;
8695
8695
  return n ? n.left + a : Ue(xe(t)).left + a;
8696
8696
  }
8697
- function oo(t, n) {
8697
+ function so(t, n) {
8698
8698
  const a = t.getBoundingClientRect(), i = a.left + n.scrollLeft - qt(t, a), e = a.top + n.scrollTop;
8699
8699
  return {
8700
8700
  x: i,
@@ -8720,7 +8720,7 @@ function Hy(t) {
8720
8720
  const p = Ue(i);
8721
8721
  l = He(i), c.x = p.x + i.clientLeft, c.y = p.y + i.clientTop;
8722
8722
  }
8723
- const h = o && !m && !r ? oo(o, u) : be(0);
8723
+ const h = o && !m && !r ? so(o, u) : be(0);
8724
8724
  return {
8725
8725
  width: a.width * l.x,
8726
8726
  height: a.height * l.y,
@@ -8742,7 +8742,7 @@ function Xy(t) {
8742
8742
  y: s
8743
8743
  };
8744
8744
  }
8745
- const ei = 25;
8745
+ const ti = 25;
8746
8746
  function Yy(t, n) {
8747
8747
  const a = ne(t), i = xe(t), e = a.visualViewport;
8748
8748
  let r = i.clientWidth, o = i.clientHeight, s = 0, u = 0;
@@ -8754,8 +8754,8 @@ function Yy(t, n) {
8754
8754
  const l = qt(i);
8755
8755
  if (l <= 0) {
8756
8756
  const c = i.ownerDocument, m = c.body, h = getComputedStyle(m), p = c.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(i.clientWidth - m.clientWidth - p);
8757
- v <= ei && (r -= v);
8758
- } else l <= ei && (r += l);
8757
+ v <= ti && (r -= v);
8758
+ } else l <= ti && (r += l);
8759
8759
  return {
8760
8760
  width: r,
8761
8761
  height: o,
@@ -8773,7 +8773,7 @@ function e$(t, n) {
8773
8773
  y: l
8774
8774
  };
8775
8775
  }
8776
- function ti(t, n, a) {
8776
+ function ni(t, n, a) {
8777
8777
  let i;
8778
8778
  if (n === "viewport")
8779
8779
  i = Yy(t, a);
@@ -8782,7 +8782,7 @@ function ti(t, n, a) {
8782
8782
  else if (le(n))
8783
8783
  i = e$(n, a);
8784
8784
  else {
8785
- const e = ao(t);
8785
+ const e = oo(t);
8786
8786
  i = {
8787
8787
  x: n.x - e.x,
8788
8788
  y: n.y - e.y,
@@ -8792,9 +8792,9 @@ function ti(t, n, a) {
8792
8792
  }
8793
8793
  return Zt(i);
8794
8794
  }
8795
- function so(t, n) {
8795
+ function lo(t, n) {
8796
8796
  const a = De(t);
8797
- return a === n || !le(a) || Xe(a) ? !1 : ce(a).position === "fixed" || so(a, n);
8797
+ return a === n || !le(a) || Xe(a) ? !1 : ce(a).position === "fixed" || lo(a, n);
8798
8798
  }
8799
8799
  function t$(t, n) {
8800
8800
  const a = n.get(t);
@@ -8805,7 +8805,7 @@ function t$(t, n) {
8805
8805
  let o = r ? De(t) : t;
8806
8806
  for (; le(o) && !Xe(o); ) {
8807
8807
  const s = ce(o), u = Kn(o);
8808
- !u && s.position === "fixed" && (e = null), (r ? !u && !e : !u && s.position === "static" && !!e && Qy.has(e.position) || $t(o) && !u && so(t, o)) ? i = i.filter((c) => c !== o) : e = s, o = De(o);
8808
+ !u && s.position === "fixed" && (e = null), (r ? !u && !e : !u && s.position === "static" && !!e && Qy.has(e.position) || $t(o) && !u && lo(t, o)) ? i = i.filter((c) => c !== o) : e = s, o = De(o);
8809
8809
  }
8810
8810
  return n.set(t, i), i;
8811
8811
  }
@@ -8817,9 +8817,9 @@ function n$(t) {
8817
8817
  strategy: e
8818
8818
  } = t;
8819
8819
  const o = [...a === "clippingAncestors" ? Kt(n) ? [] : t$(n, this._c) : [].concat(a), i], s = o[0], u = o.reduce((l, c) => {
8820
- const m = ti(n, c, e);
8820
+ const m = ni(n, c, e);
8821
8821
  return l.top = te(m.top, l.top), l.right = Te(m.right, l.right), l.bottom = Te(m.bottom, l.bottom), l.left = te(m.left, l.left), l;
8822
- }, ti(n, s, e));
8822
+ }, ni(n, s, e));
8823
8823
  return {
8824
8824
  width: u.right - u.left,
8825
8825
  height: u.bottom - u.top,
@@ -8831,7 +8831,7 @@ function r$(t) {
8831
8831
  const {
8832
8832
  width: n,
8833
8833
  height: a
8834
- } = io(t);
8834
+ } = ao(t);
8835
8835
  return {
8836
8836
  width: n,
8837
8837
  height: a
@@ -8853,7 +8853,7 @@ function i$(t, n, a) {
8853
8853
  u.x = p.x + n.clientLeft, u.y = p.y + n.clientTop;
8854
8854
  } else e && l();
8855
8855
  r && !i && e && l();
8856
- const c = e && !i && !r ? oo(e, s) : be(0), m = o.left + s.scrollLeft - u.x - c.x, h = o.top + s.scrollTop - u.y - c.y;
8856
+ const c = e && !i && !r ? so(e, s) : be(0), m = o.left + s.scrollLeft - u.x - c.x, h = o.top + s.scrollTop - u.y - c.y;
8857
8857
  return {
8858
8858
  x: m,
8859
8859
  y: h,
@@ -8864,7 +8864,7 @@ function i$(t, n, a) {
8864
8864
  function mn(t) {
8865
8865
  return ce(t).position === "static";
8866
8866
  }
8867
- function ni(t, n) {
8867
+ function ri(t, n) {
8868
8868
  if (!_e(t) || ce(t).position === "fixed")
8869
8869
  return null;
8870
8870
  if (n)
@@ -8872,7 +8872,7 @@ function ni(t, n) {
8872
8872
  let a = t.offsetParent;
8873
8873
  return xe(t) === a && (a = a.ownerDocument.body), a;
8874
8874
  }
8875
- function lo(t, n) {
8875
+ function co(t, n) {
8876
8876
  const a = ne(t);
8877
8877
  if (Kt(t))
8878
8878
  return a;
@@ -8885,13 +8885,13 @@ function lo(t, n) {
8885
8885
  }
8886
8886
  return a;
8887
8887
  }
8888
- let i = ni(t, n);
8888
+ let i = ri(t, n);
8889
8889
  for (; i && Ly(i) && mn(i); )
8890
- i = ni(i, n);
8890
+ i = ri(i, n);
8891
8891
  return i && Xe(i) && mn(i) && !Kn(i) ? a : i || Vy(t) || a;
8892
8892
  }
8893
8893
  const a$ = async function(t) {
8894
- const n = this.getOffsetParent || lo, a = this.getDimensions, i = await a(t.floating);
8894
+ const n = this.getOffsetParent || co, a = this.getDimensions, i = await a(t.floating);
8895
8895
  return {
8896
8896
  reference: i$(t.reference, await n(t.floating), t.strategy),
8897
8897
  floating: {
@@ -8909,7 +8909,7 @@ const s$ = {
8909
8909
  convertOffsetParentRelativeRectToViewportRelativeRect: Hy,
8910
8910
  getDocumentElement: xe,
8911
8911
  getClippingRect: n$,
8912
- getOffsetParent: lo,
8912
+ getOffsetParent: co,
8913
8913
  getElementRects: a$,
8914
8914
  getClientRects: qy,
8915
8915
  getDimensions: r$,
@@ -8917,7 +8917,7 @@ const s$ = {
8917
8917
  isElement: le,
8918
8918
  isRTL: o$
8919
8919
  };
8920
- function co(t, n) {
8920
+ function uo(t, n) {
8921
8921
  return t.x === n.x && t.y === n.y && t.width === n.width && t.height === n.height;
8922
8922
  }
8923
8923
  function l$(t, n) {
@@ -8951,7 +8951,7 @@ function l$(t, n) {
8951
8951
  o(!1, 1e-7);
8952
8952
  }, 1e3);
8953
8953
  }
8954
- w === 1 && !co(l, t.getBoundingClientRect()) && o(), b = !1;
8954
+ w === 1 && !uo(l, t.getBoundingClientRect()) && o(), b = !1;
8955
8955
  }
8956
8956
  try {
8957
8957
  a = new IntersectionObserver(I, {
@@ -8993,7 +8993,7 @@ function c$(t, n, a, i) {
8993
8993
  u && y();
8994
8994
  function y() {
8995
8995
  const $ = Ue(t);
8996
- g && !co(g, $) && a(), g = $, v = requestAnimationFrame(y);
8996
+ g && !uo(g, $) && a(), g = $, v = requestAnimationFrame(y);
8997
8997
  }
8998
8998
  return a(), () => {
8999
8999
  var $;
@@ -9002,7 +9002,7 @@ function c$(t, n, a, i) {
9002
9002
  }), m?.(), ($ = p) == null || $.disconnect(), p = null, u && cancelAnimationFrame(v);
9003
9003
  };
9004
9004
  }
9005
- const u$ = Ry, d$ = Ay, m$ = Py, f$ = Uy, p$ = Ty, ri = Cy, g$ = jy, v$ = (t, n, a) => {
9005
+ const u$ = Ry, d$ = Ay, m$ = Py, f$ = Uy, p$ = Ty, ii = Cy, g$ = jy, v$ = (t, n, a) => {
9006
9006
  const i = /* @__PURE__ */ new Map(), e = {
9007
9007
  platform: s$,
9008
9008
  ...a
@@ -9016,7 +9016,7 @@ const u$ = Ry, d$ = Ay, m$ = Py, f$ = Uy, p$ = Ty, ri = Cy, g$ = jy, v$ = (t, n,
9016
9016
  });
9017
9017
  };
9018
9018
  var h$ = typeof document < "u", b$ = function() {
9019
- }, Dt = h$ ? Xp : b$;
9019
+ }, Dt = h$ ? Yp : b$;
9020
9020
  function Wt(t, n) {
9021
9021
  if (t === n)
9022
9022
  return !0;
@@ -9047,11 +9047,11 @@ function Wt(t, n) {
9047
9047
  }
9048
9048
  return t !== t && n !== n;
9049
9049
  }
9050
- function uo(t) {
9050
+ function mo(t) {
9051
9051
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
9052
9052
  }
9053
- function ii(t, n) {
9054
- const a = uo(t);
9053
+ function ai(t, n) {
9054
+ const a = mo(t);
9055
9055
  return Math.round(n * a) / a;
9056
9056
  }
9057
9057
  function fn(t) {
@@ -9104,7 +9104,7 @@ function y$(t) {
9104
9104
  // setting it to `true` when `open === false` (must be specified).
9105
9105
  isPositioned: K.current !== !1
9106
9106
  };
9107
- M.current && !Wt(C.current, de) && (C.current = de, Oa.flushSync(() => {
9107
+ M.current && !Wt(C.current, de) && (C.current = de, Ca.flushSync(() => {
9108
9108
  m(de);
9109
9109
  }));
9110
9110
  });
@@ -9141,11 +9141,11 @@ function y$(t) {
9141
9141
  };
9142
9142
  if (!V.floating)
9143
9143
  return D;
9144
- const H = ii(V.floating, c.x), de = ii(V.floating, c.y);
9144
+ const H = ai(V.floating, c.x), de = ai(V.floating, c.y);
9145
9145
  return s ? {
9146
9146
  ...D,
9147
9147
  transform: "translate(" + H + "px, " + de + "px)",
9148
- ...uo(V.floating) >= 1.5 && {
9148
+ ...mo(V.floating) >= 1.5 && {
9149
9149
  willChange: "transform"
9150
9150
  }
9151
9151
  } : {
@@ -9174,10 +9174,10 @@ const $$ = (t) => {
9174
9174
  element: i,
9175
9175
  padding: e
9176
9176
  } = typeof t == "function" ? t(a) : t;
9177
- return i && n(i) ? i.current != null ? ri({
9177
+ return i && n(i) ? i.current != null ? ii({
9178
9178
  element: i.current,
9179
9179
  padding: e
9180
- }).fn(a) : {} : i ? ri({
9180
+ }).fn(a) : {} : i ? ii({
9181
9181
  element: i,
9182
9182
  padding: e
9183
9183
  }).fn(a) : {};
@@ -9205,7 +9205,7 @@ const $$ = (t) => {
9205
9205
  ...$$(t),
9206
9206
  options: [t, n]
9207
9207
  });
9208
- var E$ = "Arrow", mo = f.forwardRef((t, n) => {
9208
+ var E$ = "Arrow", fo = f.forwardRef((t, n) => {
9209
9209
  const { children: a, width: i = 10, height: e = 5, ...r } = t;
9210
9210
  return /* @__PURE__ */ d(
9211
9211
  G.svg,
@@ -9220,8 +9220,8 @@ var E$ = "Arrow", mo = f.forwardRef((t, n) => {
9220
9220
  }
9221
9221
  );
9222
9222
  });
9223
- mo.displayName = E$;
9224
- var O$ = mo;
9223
+ fo.displayName = E$;
9224
+ var O$ = fo;
9225
9225
  function C$(t) {
9226
9226
  const [n, a] = f.useState(void 0);
9227
9227
  return ae(() => {
@@ -9244,22 +9244,22 @@ function C$(t) {
9244
9244
  a(void 0);
9245
9245
  }, [t]), n;
9246
9246
  }
9247
- var Xn = "Popper", [fo, Xt] = yt(Xn), [P$, po] = fo(Xn), go = (t) => {
9247
+ var Xn = "Popper", [po, Xt] = yt(Xn), [P$, go] = po(Xn), vo = (t) => {
9248
9248
  const { __scopePopper: n, children: a } = t, [i, e] = f.useState(null);
9249
9249
  return /* @__PURE__ */ d(P$, { scope: n, anchor: i, onAnchorChange: e, children: a });
9250
9250
  };
9251
- go.displayName = Xn;
9252
- var vo = "PopperAnchor", ho = f.forwardRef(
9251
+ vo.displayName = Xn;
9252
+ var ho = "PopperAnchor", bo = f.forwardRef(
9253
9253
  (t, n) => {
9254
- const { __scopePopper: a, virtualRef: i, ...e } = t, r = po(vo, a), o = f.useRef(null), s = Q(n, o), u = f.useRef(null);
9254
+ const { __scopePopper: a, virtualRef: i, ...e } = t, r = go(ho, a), o = f.useRef(null), s = Q(n, o), u = f.useRef(null);
9255
9255
  return f.useEffect(() => {
9256
9256
  const l = u.current;
9257
9257
  u.current = i?.current || o.current, l !== u.current && r.onAnchorChange(u.current);
9258
9258
  }), i ? null : /* @__PURE__ */ d(G.div, { ...e, ref: s });
9259
9259
  }
9260
9260
  );
9261
- ho.displayName = vo;
9262
- var Yn = "PopperContent", [T$, D$] = fo(Yn), bo = f.forwardRef(
9261
+ bo.displayName = ho;
9262
+ var Yn = "PopperContent", [T$, D$] = po(Yn), yo = f.forwardRef(
9263
9263
  (t, n) => {
9264
9264
  const {
9265
9265
  __scopePopper: a,
@@ -9276,7 +9276,7 @@ var Yn = "PopperContent", [T$, D$] = fo(Yn), bo = f.forwardRef(
9276
9276
  updatePositionStrategy: p = "optimized",
9277
9277
  onPlaced: v,
9278
9278
  ...g
9279
- } = t, y = po(Yn, a), [$, _] = f.useState(null), S = Q(n, (rt) => _(rt)), [b, I] = f.useState(null), N = C$(b), w = N?.width ?? 0, C = N?.height ?? 0, R = i + (r !== "center" ? "-" + r : ""), A = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, Z = Array.isArray(l) ? l : [l], K = Z.length > 0, B = {
9279
+ } = t, y = go(Yn, a), [$, _] = f.useState(null), S = Q(n, (rt) => _(rt)), [b, I] = f.useState(null), N = C$(b), w = N?.width ?? 0, C = N?.height ?? 0, R = i + (r !== "center" ? "-" + r : ""), A = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, Z = Array.isArray(l) ? l : [l], K = Z.length > 0, B = {
9280
9280
  padding: A,
9281
9281
  boundary: Z.filter(A$),
9282
9282
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -9302,22 +9302,22 @@ var Yn = "PopperContent", [T$, D$] = fo(Yn), bo = f.forwardRef(
9302
9302
  u && S$({ ...B }),
9303
9303
  I$({
9304
9304
  ...B,
9305
- apply: ({ elements: rt, rects: yr, availableWidth: Bs, availableHeight: Vs }) => {
9306
- const { width: Js, height: Gs } = yr.reference, wt = rt.floating.style;
9307
- wt.setProperty("--radix-popper-available-width", `${Bs}px`), wt.setProperty("--radix-popper-available-height", `${Vs}px`), wt.setProperty("--radix-popper-anchor-width", `${Js}px`), wt.setProperty("--radix-popper-anchor-height", `${Gs}px`);
9305
+ apply: ({ elements: rt, rects: yr, availableWidth: Vs, availableHeight: Js }) => {
9306
+ const { width: Gs, height: Ks } = yr.reference, wt = rt.floating.style;
9307
+ wt.setProperty("--radix-popper-available-width", `${Vs}px`), wt.setProperty("--radix-popper-available-height", `${Js}px`), wt.setProperty("--radix-popper-anchor-width", `${Gs}px`), wt.setProperty("--radix-popper-anchor-height", `${Ks}px`);
9308
9308
  }
9309
9309
  }),
9310
9310
  b && N$({ element: b, padding: s }),
9311
9311
  j$({ arrowWidth: w, arrowHeight: C }),
9312
9312
  h && k$({ strategy: "referenceHidden", ...B })
9313
9313
  ]
9314
- }), [H, de] = _o(V), br = je(v);
9314
+ }), [H, de] = xo(V), br = je(v);
9315
9315
  ae(() => {
9316
9316
  J && br?.();
9317
9317
  }, [J, br]);
9318
- const Ms = D.arrow?.x, Ls = D.arrow?.y, Fs = D.arrow?.centerOffset !== 0, [Zs, Ws] = f.useState();
9318
+ const Ls = D.arrow?.x, Fs = D.arrow?.y, Zs = D.arrow?.centerOffset !== 0, [Ws, Bs] = f.useState();
9319
9319
  return ae(() => {
9320
- $ && Ws(window.getComputedStyle($).zIndex);
9320
+ $ && Bs(window.getComputedStyle($).zIndex);
9321
9321
  }, [$]), /* @__PURE__ */ d(
9322
9322
  "div",
9323
9323
  {
@@ -9328,7 +9328,7 @@ var Yn = "PopperContent", [T$, D$] = fo(Yn), bo = f.forwardRef(
9328
9328
  transform: J ? ee.transform : "translate(0, -200%)",
9329
9329
  // keep off the page when measuring
9330
9330
  minWidth: "max-content",
9331
- zIndex: Zs,
9331
+ zIndex: Ws,
9332
9332
  "--radix-popper-transform-origin": [
9333
9333
  D.transformOrigin?.x,
9334
9334
  D.transformOrigin?.y
@@ -9348,9 +9348,9 @@ var Yn = "PopperContent", [T$, D$] = fo(Yn), bo = f.forwardRef(
9348
9348
  scope: a,
9349
9349
  placedSide: H,
9350
9350
  onArrowChange: I,
9351
- arrowX: Ms,
9352
- arrowY: Ls,
9353
- shouldHideArrow: Fs,
9351
+ arrowX: Ls,
9352
+ arrowY: Fs,
9353
+ shouldHideArrow: Zs,
9354
9354
  children: /* @__PURE__ */ d(
9355
9355
  G.div,
9356
9356
  {
@@ -9372,14 +9372,14 @@ var Yn = "PopperContent", [T$, D$] = fo(Yn), bo = f.forwardRef(
9372
9372
  );
9373
9373
  }
9374
9374
  );
9375
- bo.displayName = Yn;
9376
- var yo = "PopperArrow", R$ = {
9375
+ yo.displayName = Yn;
9376
+ var $o = "PopperArrow", R$ = {
9377
9377
  top: "bottom",
9378
9378
  right: "left",
9379
9379
  bottom: "top",
9380
9380
  left: "right"
9381
- }, $o = f.forwardRef(function(n, a) {
9382
- const { __scopePopper: i, ...e } = n, r = D$(yo, i), o = R$[r.placedSide];
9381
+ }, _o = f.forwardRef(function(n, a) {
9382
+ const { __scopePopper: i, ...e } = n, r = D$($o, i), o = R$[r.placedSide];
9383
9383
  return (
9384
9384
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
9385
9385
  // doesn't report size as we'd expect on SVG elements.
@@ -9423,7 +9423,7 @@ var yo = "PopperArrow", R$ = {
9423
9423
  )
9424
9424
  );
9425
9425
  });
9426
- $o.displayName = yo;
9426
+ _o.displayName = $o;
9427
9427
  function A$(t) {
9428
9428
  return t !== null;
9429
9429
  }
@@ -9431,16 +9431,16 @@ var j$ = (t) => ({
9431
9431
  name: "transformOrigin",
9432
9432
  options: t,
9433
9433
  fn(n) {
9434
- const { placement: a, rects: i, middlewareData: e } = n, o = e.arrow?.centerOffset !== 0, s = o ? 0 : t.arrowWidth, u = o ? 0 : t.arrowHeight, [l, c] = _o(a), m = { start: "0%", center: "50%", end: "100%" }[c], h = (e.arrow?.x ?? 0) + s / 2, p = (e.arrow?.y ?? 0) + u / 2;
9434
+ const { placement: a, rects: i, middlewareData: e } = n, o = e.arrow?.centerOffset !== 0, s = o ? 0 : t.arrowWidth, u = o ? 0 : t.arrowHeight, [l, c] = xo(a), m = { start: "0%", center: "50%", end: "100%" }[c], h = (e.arrow?.x ?? 0) + s / 2, p = (e.arrow?.y ?? 0) + u / 2;
9435
9435
  let v = "", g = "";
9436
9436
  return l === "bottom" ? (v = o ? m : `${h}px`, g = `${-u}px`) : l === "top" ? (v = o ? m : `${h}px`, g = `${i.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, g = o ? m : `${p}px`) : l === "left" && (v = `${i.floating.width + u}px`, g = o ? m : `${p}px`), { data: { x: v, y: g } };
9437
9437
  }
9438
9438
  });
9439
- function _o(t) {
9439
+ function xo(t) {
9440
9440
  const [n, a = "center"] = t.split("-");
9441
9441
  return [n, a];
9442
9442
  }
9443
- var xo = go, Qn = ho, wo = bo, So = $o, U$ = "Portal", Yt = f.forwardRef((t, n) => {
9443
+ var wo = vo, Qn = bo, So = yo, Io = _o, U$ = "Portal", Yt = f.forwardRef((t, n) => {
9444
9444
  const { container: a, ...i } = t, [e, r] = f.useState(!1);
9445
9445
  ae(() => r(!0), []);
9446
9446
  const o = a || e && globalThis?.document?.body;
@@ -9570,7 +9570,7 @@ var B$ = Object.freeze({
9570
9570
  clip: "rect(0, 0, 0, 0)",
9571
9571
  whiteSpace: "nowrap",
9572
9572
  wordWrap: "normal"
9573
- }), V$ = "VisuallyHidden", Io = f.forwardRef(
9573
+ }), V$ = "VisuallyHidden", ko = f.forwardRef(
9574
9574
  (t, n) => /* @__PURE__ */ d(
9575
9575
  G.span,
9576
9576
  {
@@ -9580,10 +9580,10 @@ var B$ = Object.freeze({
9580
9580
  }
9581
9581
  )
9582
9582
  );
9583
- Io.displayName = V$;
9584
- var J$ = Io, [en] = yt("Tooltip", [
9583
+ ko.displayName = V$;
9584
+ var J$ = ko, [en] = yt("Tooltip", [
9585
9585
  Xt
9586
- ]), tn = Xt(), ko = "TooltipProvider", G$ = 700, Dn = "tooltip.open", [K$, er] = en(ko), No = (t) => {
9586
+ ]), tn = Xt(), No = "TooltipProvider", G$ = 700, Dn = "tooltip.open", [K$, er] = en(No), Eo = (t) => {
9587
9587
  const {
9588
9588
  __scopeTooltip: n,
9589
9589
  delayDuration: a = G$,
@@ -9618,8 +9618,8 @@ var J$ = Io, [en] = yt("Tooltip", [
9618
9618
  }
9619
9619
  );
9620
9620
  };
9621
- No.displayName = ko;
9622
- var vt = "Tooltip", [H$, _t] = en(vt), Eo = (t) => {
9621
+ Eo.displayName = No;
9622
+ var vt = "Tooltip", [H$, _t] = en(vt), Oo = (t) => {
9623
9623
  const {
9624
9624
  __scopeTooltip: n,
9625
9625
  children: a,
@@ -9646,7 +9646,7 @@ var vt = "Tooltip", [H$, _t] = en(vt), Eo = (t) => {
9646
9646
  }, [g, _]);
9647
9647
  return f.useEffect(() => () => {
9648
9648
  p.current && (window.clearTimeout(p.current), p.current = 0);
9649
- }, []), /* @__PURE__ */ d(xo, { ...l, children: /* @__PURE__ */ d(
9649
+ }, []), /* @__PURE__ */ d(wo, { ...l, children: /* @__PURE__ */ d(
9650
9650
  H$,
9651
9651
  {
9652
9652
  scope: n,
@@ -9668,8 +9668,8 @@ var vt = "Tooltip", [H$, _t] = en(vt), Eo = (t) => {
9668
9668
  }
9669
9669
  ) });
9670
9670
  };
9671
- Eo.displayName = vt;
9672
- var Rn = "TooltipTrigger", Oo = f.forwardRef(
9671
+ Oo.displayName = vt;
9672
+ var Rn = "TooltipTrigger", Co = f.forwardRef(
9673
9673
  (t, n) => {
9674
9674
  const { __scopeTooltip: a, ...i } = t, e = _t(Rn, a), r = er(Rn, a), o = tn(a), s = f.useRef(null), u = Q(n, s, e.onTriggerChange), l = f.useRef(!1), c = f.useRef(!1), m = f.useCallback(() => l.current = !1, []);
9675
9675
  return f.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ d(Qn, { asChild: !0, ...o, children: /* @__PURE__ */ d(
@@ -9697,18 +9697,18 @@ var Rn = "TooltipTrigger", Oo = f.forwardRef(
9697
9697
  ) });
9698
9698
  }
9699
9699
  );
9700
- Oo.displayName = Rn;
9700
+ Co.displayName = Rn;
9701
9701
  var tr = "TooltipPortal", [q$, X$] = en(tr, {
9702
9702
  forceMount: void 0
9703
- }), Co = (t) => {
9703
+ }), Po = (t) => {
9704
9704
  const { __scopeTooltip: n, forceMount: a, children: i, container: e } = t, r = _t(tr, n);
9705
9705
  return /* @__PURE__ */ d(q$, { scope: n, forceMount: a, children: /* @__PURE__ */ d(Ee, { present: a || r.open, children: /* @__PURE__ */ d(Yt, { asChild: !0, container: e, children: i }) }) });
9706
9706
  };
9707
- Co.displayName = tr;
9708
- var Ye = "TooltipContent", Po = f.forwardRef(
9707
+ Po.displayName = tr;
9708
+ var Ye = "TooltipContent", To = f.forwardRef(
9709
9709
  (t, n) => {
9710
9710
  const a = X$(Ye, t.__scopeTooltip), { forceMount: i = a.forceMount, side: e = "top", ...r } = t, o = _t(Ye, t.__scopeTooltip);
9711
- return /* @__PURE__ */ d(Ee, { present: i || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ d(To, { side: e, ...r, ref: n }) : /* @__PURE__ */ d(Y$, { side: e, ...r, ref: n }) });
9711
+ return /* @__PURE__ */ d(Ee, { present: i || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ d(Do, { side: e, ...r, ref: n }) : /* @__PURE__ */ d(Y$, { side: e, ...r, ref: n }) });
9712
9712
  }
9713
9713
  ), Y$ = f.forwardRef((t, n) => {
9714
9714
  const a = _t(Ye, t.__scopeTooltip), i = er(Ye, t.__scopeTooltip), e = f.useRef(null), r = Q(n, e), [o, s] = f.useState(null), { trigger: u, onClose: l } = a, c = e.current, { onPointerInTransitChange: m } = i, h = f.useCallback(() => {
@@ -9735,8 +9735,8 @@ var Ye = "TooltipContent", Po = f.forwardRef(
9735
9735
  };
9736
9736
  return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
9737
9737
  }
9738
- }, [u, c, o, l, h]), /* @__PURE__ */ d(To, { ...t, ref: r });
9739
- }), [Q$, e_] = en(vt, { isInside: !1 }), t_ = /* @__PURE__ */ ny("TooltipContent"), To = f.forwardRef(
9738
+ }, [u, c, o, l, h]), /* @__PURE__ */ d(Do, { ...t, ref: r });
9739
+ }), [Q$, e_] = en(vt, { isInside: !1 }), t_ = /* @__PURE__ */ ny("TooltipContent"), Do = f.forwardRef(
9740
9740
  (t, n) => {
9741
9741
  const {
9742
9742
  __scopeTooltip: a,
@@ -9763,7 +9763,7 @@ var Ye = "TooltipContent", Po = f.forwardRef(
9763
9763
  onFocusOutside: (m) => m.preventDefault(),
9764
9764
  onDismiss: c,
9765
9765
  children: /* @__PURE__ */ O(
9766
- wo,
9766
+ So,
9767
9767
  {
9768
9768
  "data-state": u.stateAttribute,
9769
9769
  ...l,
@@ -9787,17 +9787,17 @@ var Ye = "TooltipContent", Po = f.forwardRef(
9787
9787
  );
9788
9788
  }
9789
9789
  );
9790
- Po.displayName = Ye;
9791
- var Do = "TooltipArrow", Ro = f.forwardRef(
9790
+ To.displayName = Ye;
9791
+ var Ro = "TooltipArrow", Ao = f.forwardRef(
9792
9792
  (t, n) => {
9793
9793
  const { __scopeTooltip: a, ...i } = t, e = tn(a);
9794
9794
  return e_(
9795
- Do,
9795
+ Ro,
9796
9796
  a
9797
- ).isInside ? null : /* @__PURE__ */ d(So, { ...e, ...i, ref: n });
9797
+ ).isInside ? null : /* @__PURE__ */ d(Io, { ...e, ...i, ref: n });
9798
9798
  }
9799
9799
  );
9800
- Ro.displayName = Do;
9800
+ Ao.displayName = Ro;
9801
9801
  function n_(t, n) {
9802
9802
  const a = Math.abs(n.top - t.y), i = Math.abs(n.bottom - t.y), e = Math.abs(n.right - t.x), r = Math.abs(n.left - t.x);
9803
9803
  switch (Math.min(a, i, e, r)) {
@@ -9890,8 +9890,8 @@ function s_(t) {
9890
9890
  }
9891
9891
  return a.pop(), n.length === 1 && a.length === 1 && n[0].x === a[0].x && n[0].y === a[0].y ? n : n.concat(a);
9892
9892
  }
9893
- var l_ = No, c_ = Eo, u_ = Oo, d_ = Co, m_ = Po, f_ = Ro;
9894
- function Ao({
9893
+ var l_ = Eo, c_ = Oo, u_ = Co, d_ = Po, m_ = To, f_ = Ao;
9894
+ function jo({
9895
9895
  delayDuration: t = 0,
9896
9896
  ...n
9897
9897
  }) {
@@ -9907,7 +9907,7 @@ function Ao({
9907
9907
  function nr({
9908
9908
  ...t
9909
9909
  }) {
9910
- return /* @__PURE__ */ d(Ao, { children: /* @__PURE__ */ d(c_, { "data-slot": "tooltip", ...t }) });
9910
+ return /* @__PURE__ */ d(jo, { children: /* @__PURE__ */ d(c_, { "data-slot": "tooltip", ...t }) });
9911
9911
  }
9912
9912
  function rr({
9913
9913
  ...t
@@ -9937,7 +9937,7 @@ function ir({
9937
9937
  }
9938
9938
  ) });
9939
9939
  }
9940
- const oe = Yp(
9940
+ const oe = Qp(
9941
9941
  ({
9942
9942
  children: t,
9943
9943
  tooltip: n,
@@ -9984,14 +9984,14 @@ const g_ = () => {
9984
9984
  componentsByLanguage: n
9985
9985
  }
9986
9986
  );
9987
- }, jo = zn(g_), v_ = ({ language: t, code: n }) => {
9987
+ }, Uo = zn(g_), v_ = ({ language: t, code: n }) => {
9988
9988
  const i = se(({ message: s }) => s).status?.type === "complete", { isCopied: e, copyToClipboard: r } = h_(), o = () => {
9989
9989
  !n || e || r(n);
9990
9990
  };
9991
9991
  return i ? /* @__PURE__ */ O("div", { className: "aui-code-header-root bg-muted-foreground/15 text-foreground dark:bg-muted-foreground/20 mt-4 flex items-center justify-between gap-4 rounded-t-lg px-4 py-2 text-sm font-semibold", children: [
9992
9992
  /* @__PURE__ */ d("span", { className: "aui-code-header-language lowercase [&>span]:text-xs", children: t }),
9993
9993
  /* @__PURE__ */ O(oe, { tooltip: "Copy", onClick: o, children: [
9994
- !e && /* @__PURE__ */ d(Ja, {}),
9994
+ !e && /* @__PURE__ */ d(Ga, {}),
9995
9995
  e && /* @__PURE__ */ d(bt, {})
9996
9996
  ] })
9997
9997
  ] }) : null;
@@ -10189,8 +10189,8 @@ const g_ = () => {
10189
10189
  })
10190
10190
  ]), $_ = F({
10191
10191
  content: Me(y_)
10192
- }).or($a()), ye = [0.23, 1, 0.32, 1];
10193
- function Uo(t) {
10192
+ }).or(_a()), ye = [0.23, 1, 0.32, 1];
10193
+ function zo(t) {
10194
10194
  return t.replace(/[-_]/g, " ").split(/(?=[A-Z])/).join(" ").split(/\s+/).map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join(" ");
10195
10195
  }
10196
10196
  const __ = ({
@@ -10200,7 +10200,7 @@ const __ = ({
10200
10200
  }) => {
10201
10201
  const e = se(({ message: m }) => m).parts.filter((m) => m.type === "tool-call"), r = e.findIndex(
10202
10202
  (m) => m.toolName === t
10203
- ), o = he(() => n.type === "complete" ? /* @__PURE__ */ d(bt, { className: "size-4 text-emerald-500" }) : n.type === "incomplete" ? /* @__PURE__ */ d(ng, { className: "size-4 text-rose-500" }) : /* @__PURE__ */ d(Ga, { className: "size-4 animate-spin text-blue-700" }), [n]), s = Le(), [u, l] = q(!1), c = (m) => {
10203
+ ), o = he(() => n.type === "complete" ? /* @__PURE__ */ d(bt, { className: "size-4 text-emerald-500" }) : n.type === "incomplete" ? /* @__PURE__ */ d(ng, { className: "size-4 text-rose-500" }) : /* @__PURE__ */ d(Ka, { className: "size-4 animate-spin text-blue-700" }), [n]), s = Le(), [u, l] = q(!1), c = (m) => {
10204
10204
  m.stopPropagation(), l(!u);
10205
10205
  };
10206
10206
  return /* @__PURE__ */ d(ht, { features: Mn, children: /* @__PURE__ */ O(
@@ -10224,7 +10224,7 @@ const __ = ({
10224
10224
  onClick: c,
10225
10225
  children: [
10226
10226
  /* @__PURE__ */ d("div", { children: o }),
10227
- /* @__PURE__ */ d("div", { className: "select-none", children: Uo(t) }),
10227
+ /* @__PURE__ */ d("div", { className: "select-none", children: zo(t) }),
10228
10228
  /* @__PURE__ */ d("div", { className: "ml-auto", children: /* @__PURE__ */ d(
10229
10229
  $e,
10230
10230
  {
@@ -10232,7 +10232,7 @@ const __ = ({
10232
10232
  size: "icon",
10233
10233
  className: "cursor-pointer hover:bg-transparent",
10234
10234
  onClick: c,
10235
- children: u ? /* @__PURE__ */ d(Va, { className: "size-4" }) : /* @__PURE__ */ d(Fn, { className: "size-4" })
10235
+ children: u ? /* @__PURE__ */ d(Ja, { className: "size-4" }) : /* @__PURE__ */ d(Fn, { className: "size-4" })
10236
10236
  }
10237
10237
  ) })
10238
10238
  ]
@@ -10274,7 +10274,7 @@ function x_(t) {
10274
10274
  }
10275
10275
  });
10276
10276
  }
10277
- var nn = "Collapsible", [w_] = yt(nn), [S_, ar] = w_(nn), zo = f.forwardRef(
10277
+ var nn = "Collapsible", [w_] = yt(nn), [S_, ar] = w_(nn), Mo = f.forwardRef(
10278
10278
  (t, n) => {
10279
10279
  const {
10280
10280
  __scopeCollapsible: a,
@@ -10310,10 +10310,10 @@ var nn = "Collapsible", [w_] = yt(nn), [S_, ar] = w_(nn), zo = f.forwardRef(
10310
10310
  );
10311
10311
  }
10312
10312
  );
10313
- zo.displayName = nn;
10314
- var Mo = "CollapsibleTrigger", Lo = f.forwardRef(
10313
+ Mo.displayName = nn;
10314
+ var Lo = "CollapsibleTrigger", Fo = f.forwardRef(
10315
10315
  (t, n) => {
10316
- const { __scopeCollapsible: a, ...i } = t, e = ar(Mo, a);
10316
+ const { __scopeCollapsible: a, ...i } = t, e = ar(Lo, a);
10317
10317
  return /* @__PURE__ */ d(
10318
10318
  G.button,
10319
10319
  {
@@ -10330,14 +10330,14 @@ var Mo = "CollapsibleTrigger", Lo = f.forwardRef(
10330
10330
  );
10331
10331
  }
10332
10332
  );
10333
- Lo.displayName = Mo;
10334
- var or = "CollapsibleContent", Fo = f.forwardRef(
10333
+ Fo.displayName = Lo;
10334
+ var or = "CollapsibleContent", Zo = f.forwardRef(
10335
10335
  (t, n) => {
10336
10336
  const { forceMount: a, ...i } = t, e = ar(or, t.__scopeCollapsible);
10337
10337
  return /* @__PURE__ */ d(Ee, { present: a || e.open, children: ({ present: r }) => /* @__PURE__ */ d(I_, { ...i, ref: n, present: r }) });
10338
10338
  }
10339
10339
  );
10340
- Fo.displayName = or;
10340
+ Zo.displayName = or;
10341
10341
  var I_ = f.forwardRef((t, n) => {
10342
10342
  const { __scopeCollapsible: a, present: i, children: e, ...r } = t, o = ar(or, a), [s, u] = f.useState(i), l = f.useRef(null), c = Q(n, l), m = f.useRef(0), h = m.current, p = f.useRef(0), v = p.current, g = o.open || s, y = f.useRef(g), $ = f.useRef(void 0);
10343
10343
  return f.useEffect(() => {
@@ -10374,7 +10374,7 @@ var I_ = f.forwardRef((t, n) => {
10374
10374
  function sr(t) {
10375
10375
  return t ? "open" : "closed";
10376
10376
  }
10377
- var k_ = zo;
10377
+ var k_ = Mo;
10378
10378
  function N_({
10379
10379
  ...t
10380
10380
  }) {
@@ -10384,7 +10384,7 @@ function E_({
10384
10384
  ...t
10385
10385
  }) {
10386
10386
  return /* @__PURE__ */ d(
10387
- Lo,
10387
+ Fo,
10388
10388
  {
10389
10389
  "data-slot": "collapsible-trigger",
10390
10390
  ...t
@@ -10395,15 +10395,15 @@ function O_({
10395
10395
  ...t
10396
10396
  }) {
10397
10397
  return /* @__PURE__ */ d(
10398
- Fo,
10398
+ Zo,
10399
10399
  {
10400
10400
  "data-slot": "collapsible-content",
10401
10401
  ...t
10402
10402
  }
10403
10403
  );
10404
10404
  }
10405
- const ai = 200, Zo = ({ className: t, children: n }) => {
10406
- const a = Ie(null), [i, e] = q(!1), r = qp(a, ai), o = zt(
10405
+ const oi = 200, Wo = ({ className: t, children: n }) => {
10406
+ const a = Ie(null), [i, e] = q(!1), r = Xp(a, oi), o = zt(
10407
10407
  (s) => {
10408
10408
  s || r(), e(s);
10409
10409
  },
@@ -10417,13 +10417,13 @@ const ai = 200, Zo = ({ className: t, children: n }) => {
10417
10417
  onOpenChange: o,
10418
10418
  className: k("aui-reasoning-root mb-4 w-full", t),
10419
10419
  style: {
10420
- "--animation-duration": `${ai}ms`
10420
+ "--animation-duration": `${oi}ms`
10421
10421
  },
10422
10422
  children: n
10423
10423
  }
10424
10424
  );
10425
10425
  };
10426
- Zo.displayName = "ReasoningRoot";
10426
+ Wo.displayName = "ReasoningRoot";
10427
10427
  const C_ = ({ className: t }) => /* @__PURE__ */ d(
10428
10428
  "div",
10429
10429
  {
@@ -10478,7 +10478,7 @@ const C_ = ({ className: t }) => /* @__PURE__ */ d(
10478
10478
  )
10479
10479
  ]
10480
10480
  }
10481
- ), Wo = ({ className: t, children: n, "aria-busy": a }) => /* @__PURE__ */ O(
10481
+ ), Bo = ({ className: t, children: n, "aria-busy": a }) => /* @__PURE__ */ O(
10482
10482
  O_,
10483
10483
  {
10484
10484
  className: k(
@@ -10499,8 +10499,8 @@ const C_ = ({ className: t }) => /* @__PURE__ */ d(
10499
10499
  ]
10500
10500
  }
10501
10501
  );
10502
- Wo.displayName = "ReasoningContent";
10503
- const Bo = ({ className: t, children: n }) => /* @__PURE__ */ d(
10502
+ Bo.displayName = "ReasoningContent";
10503
+ const Vo = ({ className: t, children: n }) => /* @__PURE__ */ d(
10504
10504
  "div",
10505
10505
  {
10506
10506
  className: k(
@@ -10520,8 +10520,8 @@ const Bo = ({ className: t, children: n }) => /* @__PURE__ */ d(
10520
10520
  children: n
10521
10521
  }
10522
10522
  );
10523
- Bo.displayName = "ReasoningText";
10524
- const T_ = () => /* @__PURE__ */ d(jo, {}), D_ = ({
10523
+ Vo.displayName = "ReasoningText";
10524
+ const T_ = () => /* @__PURE__ */ d(Uo, {}), D_ = ({
10525
10525
  children: t,
10526
10526
  startIndex: n,
10527
10527
  endIndex: a
@@ -10531,15 +10531,15 @@ const T_ = () => /* @__PURE__ */ d(jo, {}), D_ = ({
10531
10531
  const r = e.parts.length - 1;
10532
10532
  return r < 0 || e.parts[r]?.type !== "reasoning" ? !1 : r >= n && r <= a;
10533
10533
  });
10534
- return /* @__PURE__ */ O(Zo, { children: [
10534
+ return /* @__PURE__ */ O(Wo, { children: [
10535
10535
  /* @__PURE__ */ d(P_, { active: i }),
10536
- /* @__PURE__ */ d(Wo, { "aria-busy": i, children: /* @__PURE__ */ d(Bo, { children: t }) })
10536
+ /* @__PURE__ */ d(Bo, { "aria-busy": i, children: /* @__PURE__ */ d(Vo, { children: t }) })
10537
10537
  ] });
10538
- }, Vo = zn(T_);
10539
- Vo.displayName = "Reasoning";
10540
- const Jo = zn(D_);
10541
- Jo.displayName = "ReasoningGroup";
10542
- var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", oi = { bubbles: !1, cancelable: !0 }, R_ = "FocusScope", lr = f.forwardRef((t, n) => {
10538
+ }, Jo = zn(T_);
10539
+ Jo.displayName = "Reasoning";
10540
+ const Go = zn(D_);
10541
+ Go.displayName = "ReasoningGroup";
10542
+ var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", si = { bubbles: !1, cancelable: !0 }, R_ = "FocusScope", lr = f.forwardRef((t, n) => {
10543
10543
  const {
10544
10544
  loop: a = !1,
10545
10545
  trapped: i = !1,
@@ -10578,16 +10578,16 @@ var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", oi
10578
10578
  }
10579
10579
  }, [i, s, p.paused]), f.useEffect(() => {
10580
10580
  if (s) {
10581
- li.add(p);
10581
+ ci.add(p);
10582
10582
  const g = document.activeElement;
10583
10583
  if (!s.contains(g)) {
10584
- const $ = new CustomEvent(pn, oi);
10585
- s.addEventListener(pn, l), s.dispatchEvent($), $.defaultPrevented || (A_(L_(Go(s)), { select: !0 }), document.activeElement === g && Ce(s));
10584
+ const $ = new CustomEvent(pn, si);
10585
+ s.addEventListener(pn, l), s.dispatchEvent($), $.defaultPrevented || (A_(L_(Ko(s)), { select: !0 }), document.activeElement === g && Ce(s));
10586
10586
  }
10587
10587
  return () => {
10588
10588
  s.removeEventListener(pn, l), setTimeout(() => {
10589
- const $ = new CustomEvent(gn, oi);
10590
- s.addEventListener(gn, c), s.dispatchEvent($), $.defaultPrevented || Ce(g ?? document.body, { select: !0 }), s.removeEventListener(gn, c), li.remove(p);
10589
+ const $ = new CustomEvent(gn, si);
10590
+ s.addEventListener(gn, c), s.dispatchEvent($), $.defaultPrevented || Ce(g ?? document.body, { select: !0 }), s.removeEventListener(gn, c), ci.remove(p);
10591
10591
  }, 0);
10592
10592
  };
10593
10593
  }
@@ -10612,10 +10612,10 @@ function A_(t, { select: n = !1 } = {}) {
10612
10612
  if (Ce(i, { select: n }), document.activeElement !== a) return;
10613
10613
  }
10614
10614
  function j_(t) {
10615
- const n = Go(t), a = si(n, t), i = si(n.reverse(), t);
10615
+ const n = Ko(t), a = li(n, t), i = li(n.reverse(), t);
10616
10616
  return [a, i];
10617
10617
  }
10618
- function Go(t) {
10618
+ function Ko(t) {
10619
10619
  const n = [], a = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
10620
10620
  acceptNode: (i) => {
10621
10621
  const e = i.tagName === "INPUT" && i.type === "hidden";
@@ -10625,7 +10625,7 @@ function Go(t) {
10625
10625
  for (; a.nextNode(); ) n.push(a.currentNode);
10626
10626
  return n;
10627
10627
  }
10628
- function si(t, n) {
10628
+ function li(t, n) {
10629
10629
  for (const a of t)
10630
10630
  if (!U_(a, { upTo: n })) return a;
10631
10631
  }
@@ -10647,20 +10647,20 @@ function Ce(t, { select: n = !1 } = {}) {
10647
10647
  t.focus({ preventScroll: !0 }), t !== a && z_(t) && n && t.select();
10648
10648
  }
10649
10649
  }
10650
- var li = M_();
10650
+ var ci = M_();
10651
10651
  function M_() {
10652
10652
  let t = [];
10653
10653
  return {
10654
10654
  add(n) {
10655
10655
  const a = t[0];
10656
- n !== a && a?.pause(), t = ci(t, n), t.unshift(n);
10656
+ n !== a && a?.pause(), t = ui(t, n), t.unshift(n);
10657
10657
  },
10658
10658
  remove(n) {
10659
- t = ci(t, n), t[0]?.resume();
10659
+ t = ui(t, n), t[0]?.resume();
10660
10660
  }
10661
10661
  };
10662
10662
  }
10663
- function ci(t, n) {
10663
+ function ui(t, n) {
10664
10664
  const a = [...t], i = a.indexOf(n);
10665
10665
  return i !== -1 && a.splice(i, 1), a;
10666
10666
  }
@@ -10668,15 +10668,15 @@ function L_(t) {
10668
10668
  return t.filter((n) => n.tagName !== "A");
10669
10669
  }
10670
10670
  var vn = 0;
10671
- function Ko() {
10671
+ function Ho() {
10672
10672
  f.useEffect(() => {
10673
10673
  const t = document.querySelectorAll("[data-radix-focus-guard]");
10674
- return document.body.insertAdjacentElement("afterbegin", t[0] ?? ui()), document.body.insertAdjacentElement("beforeend", t[1] ?? ui()), vn++, () => {
10674
+ return document.body.insertAdjacentElement("afterbegin", t[0] ?? di()), document.body.insertAdjacentElement("beforeend", t[1] ?? di()), vn++, () => {
10675
10675
  vn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((n) => n.remove()), vn--;
10676
10676
  };
10677
10677
  }, []);
10678
10678
  }
10679
- function ui() {
10679
+ function di() {
10680
10680
  const t = document.createElement("span");
10681
10681
  return t.setAttribute("data-radix-focus-guard", ""), t.tabIndex = 0, t.style.outline = "none", t.style.opacity = "0", t.style.position = "fixed", t.style.pointerEvents = "none", t;
10682
10682
  }
@@ -10689,7 +10689,7 @@ var pe = function() {
10689
10689
  return n;
10690
10690
  }, pe.apply(this, arguments);
10691
10691
  };
10692
- function Ho(t, n) {
10692
+ function qo(t, n) {
10693
10693
  var a = {};
10694
10694
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && n.indexOf(i) < 0 && (a[i] = t[i]);
10695
10695
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -10727,7 +10727,7 @@ function B_(t, n) {
10727
10727
  })[0];
10728
10728
  return a.callback = n, a.facade;
10729
10729
  }
10730
- var V_ = typeof window < "u" ? f.useLayoutEffect : f.useEffect, di = /* @__PURE__ */ new WeakMap();
10730
+ var V_ = typeof window < "u" ? f.useLayoutEffect : f.useEffect, mi = /* @__PURE__ */ new WeakMap();
10731
10731
  function J_(t, n) {
10732
10732
  var a = B_(null, function(i) {
10733
10733
  return t.forEach(function(e) {
@@ -10735,7 +10735,7 @@ function J_(t, n) {
10735
10735
  });
10736
10736
  });
10737
10737
  return V_(function() {
10738
- var i = di.get(a);
10738
+ var i = mi.get(a);
10739
10739
  if (i) {
10740
10740
  var e = new Set(i), r = new Set(t), o = a.current;
10741
10741
  e.forEach(function(s) {
@@ -10744,7 +10744,7 @@ function J_(t, n) {
10744
10744
  e.has(s) || hn(s, o);
10745
10745
  });
10746
10746
  }
10747
- di.set(a, t);
10747
+ mi.set(a, t);
10748
10748
  }, [t]), a;
10749
10749
  }
10750
10750
  function G_(t) {
@@ -10810,8 +10810,8 @@ function H_(t) {
10810
10810
  var n = K_(null);
10811
10811
  return n.options = pe({ async: !0, ssr: !1 }, t), n;
10812
10812
  }
10813
- var qo = function(t) {
10814
- var n = t.sideCar, a = Ho(t, ["sideCar"]);
10813
+ var Xo = function(t) {
10814
+ var n = t.sideCar, a = qo(t, ["sideCar"]);
10815
10815
  if (!n)
10816
10816
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
10817
10817
  var i = n.read();
@@ -10819,21 +10819,21 @@ var qo = function(t) {
10819
10819
  throw new Error("Sidecar medium not found");
10820
10820
  return f.createElement(i, pe({}, a));
10821
10821
  };
10822
- qo.isSideCarExport = !0;
10822
+ Xo.isSideCarExport = !0;
10823
10823
  function q_(t, n) {
10824
- return t.useMedium(n), qo;
10824
+ return t.useMedium(n), Xo;
10825
10825
  }
10826
- var Xo = H_(), bn = function() {
10826
+ var Yo = H_(), bn = function() {
10827
10827
  }, rn = f.forwardRef(function(t, n) {
10828
10828
  var a = f.useRef(null), i = f.useState({
10829
10829
  onScrollCapture: bn,
10830
10830
  onWheelCapture: bn,
10831
10831
  onTouchMoveCapture: bn
10832
- }), e = i[0], r = i[1], o = t.forwardProps, s = t.children, u = t.className, l = t.removeScrollBar, c = t.enabled, m = t.shards, h = t.sideCar, p = t.noRelative, v = t.noIsolation, g = t.inert, y = t.allowPinchZoom, $ = t.as, _ = $ === void 0 ? "div" : $, S = t.gapMode, b = Ho(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), I = h, N = J_([a, n]), w = pe(pe({}, b), e);
10832
+ }), e = i[0], r = i[1], o = t.forwardProps, s = t.children, u = t.className, l = t.removeScrollBar, c = t.enabled, m = t.shards, h = t.sideCar, p = t.noRelative, v = t.noIsolation, g = t.inert, y = t.allowPinchZoom, $ = t.as, _ = $ === void 0 ? "div" : $, S = t.gapMode, b = qo(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), I = h, N = J_([a, n]), w = pe(pe({}, b), e);
10833
10833
  return f.createElement(
10834
10834
  f.Fragment,
10835
10835
  null,
10836
- c && f.createElement(I, { sideCar: Xo, removeScrollBar: l, shards: m, noRelative: p, noIsolation: v, inert: g, setCallbacks: r, allowPinchZoom: !!y, lockRef: a, gapMode: S }),
10836
+ c && f.createElement(I, { sideCar: Yo, removeScrollBar: l, shards: m, noRelative: p, noIsolation: v, inert: g, setCallbacks: r, allowPinchZoom: !!y, lockRef: a, gapMode: S }),
10837
10837
  o ? f.cloneElement(f.Children.only(s), pe(pe({}, w), { ref: N })) : f.createElement(_, pe({}, w, { className: u, ref: N }), s)
10838
10838
  );
10839
10839
  });
@@ -10884,7 +10884,7 @@ var tx = function() {
10884
10884
  };
10885
10885
  }, [n && a]);
10886
10886
  };
10887
- }, Yo = function() {
10887
+ }, Qo = function() {
10888
10888
  var t = nx(), n = function(a) {
10889
10889
  var i = a.styles, e = a.dynamic;
10890
10890
  return t(i, e), null;
@@ -10910,7 +10910,7 @@ var tx = function() {
10910
10910
  right: n[2],
10911
10911
  gap: Math.max(0, i - a + n[2] - n[0])
10912
10912
  };
10913
- }, ox = Yo(), qe = "data-scroll-locked", sx = function(t, n, a, i) {
10913
+ }, ox = Qo(), qe = "data-scroll-locked", sx = function(t, n, a, i) {
10914
10914
  var e = t.left, r = t.top, o = t.right, s = t.gap;
10915
10915
  return a === void 0 && (a = "margin"), `
10916
10916
  .`.concat(Z_, ` {
@@ -10954,13 +10954,13 @@ var tx = function() {
10954
10954
  `).concat(W_, ": ").concat(s, `px;
10955
10955
  }
10956
10956
  `);
10957
- }, mi = function() {
10957
+ }, fi = function() {
10958
10958
  var t = parseInt(document.body.getAttribute(qe) || "0", 10);
10959
10959
  return isFinite(t) ? t : 0;
10960
10960
  }, lx = function() {
10961
10961
  f.useEffect(function() {
10962
- return document.body.setAttribute(qe, (mi() + 1).toString()), function() {
10963
- var t = mi() - 1;
10962
+ return document.body.setAttribute(qe, (fi() + 1).toString()), function() {
10963
+ var t = fi() - 1;
10964
10964
  t <= 0 ? document.body.removeAttribute(qe) : document.body.setAttribute(qe, t.toString());
10965
10965
  };
10966
10966
  }, []);
@@ -10985,7 +10985,7 @@ if (typeof window < "u")
10985
10985
  }
10986
10986
  var We = An ? { passive: !1 } : !1, ux = function(t) {
10987
10987
  return t.tagName === "TEXTAREA";
10988
- }, Qo = function(t, n) {
10988
+ }, es = function(t, n) {
10989
10989
  if (!(t instanceof Element))
10990
10990
  return !1;
10991
10991
  var a = window.getComputedStyle(t);
@@ -10995,16 +10995,16 @@ var We = An ? { passive: !1 } : !1, ux = function(t) {
10995
10995
  !(a.overflowY === a.overflowX && !ux(t) && a[n] === "visible")
10996
10996
  );
10997
10997
  }, dx = function(t) {
10998
- return Qo(t, "overflowY");
10998
+ return es(t, "overflowY");
10999
10999
  }, mx = function(t) {
11000
- return Qo(t, "overflowX");
11001
- }, fi = function(t, n) {
11000
+ return es(t, "overflowX");
11001
+ }, pi = function(t, n) {
11002
11002
  var a = n.ownerDocument, i = n;
11003
11003
  do {
11004
11004
  typeof ShadowRoot < "u" && i instanceof ShadowRoot && (i = i.host);
11005
- var e = es(t, i);
11005
+ var e = ts(t, i);
11006
11006
  if (e) {
11007
- var r = ts(t, i), o = r[1], s = r[2];
11007
+ var r = ns(t, i), o = r[1], s = r[2];
11008
11008
  if (o > s)
11009
11009
  return !0;
11010
11010
  }
@@ -11025,9 +11025,9 @@ var We = An ? { passive: !1 } : !1, ux = function(t) {
11025
11025
  a,
11026
11026
  i
11027
11027
  ];
11028
- }, es = function(t, n) {
11029
- return t === "v" ? dx(n) : mx(n);
11030
11028
  }, ts = function(t, n) {
11029
+ return t === "v" ? dx(n) : mx(n);
11030
+ }, ns = function(t, n) {
11031
11031
  return t === "v" ? fx(n) : px(n);
11032
11032
  }, gx = function(t, n) {
11033
11033
  return t === "h" && n === "rtl" ? -1 : 1;
@@ -11036,8 +11036,8 @@ var We = An ? { passive: !1 } : !1, ux = function(t) {
11036
11036
  do {
11037
11037
  if (!s)
11038
11038
  break;
11039
- var p = ts(t, s), v = p[0], g = p[1], y = p[2], $ = g - y - r * v;
11040
- (v || $) && es(t, s) && (m += $, h += v);
11039
+ var p = ns(t, s), v = p[0], g = p[1], y = p[2], $ = g - y - r * v;
11040
+ (v || $) && ts(t, s) && (m += $, h += v);
11041
11041
  var _ = s.parentNode;
11042
11042
  s = _ && _.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? _.host : _;
11043
11043
  } while (
@@ -11048,9 +11048,9 @@ var We = An ? { passive: !1 } : !1, ux = function(t) {
11048
11048
  return (c && Math.abs(m) < 1 || !c && Math.abs(h) < 1) && (l = !0), l;
11049
11049
  }, Et = function(t) {
11050
11050
  return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
11051
- }, pi = function(t) {
11052
- return [t.deltaX, t.deltaY];
11053
11051
  }, gi = function(t) {
11052
+ return [t.deltaX, t.deltaY];
11053
+ }, vi = function(t) {
11054
11054
  return t && "current" in t ? t.current : t;
11055
11055
  }, hx = function(t, n) {
11056
11056
  return t[0] === n[0] && t[1] === n[1];
@@ -11061,13 +11061,13 @@ var We = An ? { passive: !1 } : !1, ux = function(t) {
11061
11061
  `);
11062
11062
  }, yx = 0, Be = [];
11063
11063
  function $x(t) {
11064
- var n = f.useRef([]), a = f.useRef([0, 0]), i = f.useRef(), e = f.useState(yx++)[0], r = f.useState(Yo)[0], o = f.useRef(t);
11064
+ var n = f.useRef([]), a = f.useRef([0, 0]), i = f.useRef(), e = f.useState(yx++)[0], r = f.useState(Qo)[0], o = f.useRef(t);
11065
11065
  f.useEffect(function() {
11066
11066
  o.current = t;
11067
11067
  }, [t]), f.useEffect(function() {
11068
11068
  if (t.inert) {
11069
11069
  document.body.classList.add("block-interactivity-".concat(e));
11070
- var g = F_([t.lockRef.current], (t.shards || []).map(gi), !0).filter(Boolean);
11070
+ var g = F_([t.lockRef.current], (t.shards || []).map(vi), !0).filter(Boolean);
11071
11071
  return g.forEach(function(y) {
11072
11072
  return y.classList.add("allow-interactivity-".concat(e));
11073
11073
  }), function() {
@@ -11086,10 +11086,10 @@ function $x(t) {
11086
11086
  var C = window.getSelection(), R = C && C.anchorNode, A = R ? R === N || R.contains(N) : !1;
11087
11087
  if (A)
11088
11088
  return !1;
11089
- var Z = fi(w, N);
11089
+ var Z = pi(w, N);
11090
11090
  if (!Z)
11091
11091
  return !0;
11092
- if (Z ? I = w : (I = w === "v" ? "h" : "v", Z = fi(w, N)), !Z)
11092
+ if (Z ? I = w : (I = w === "v" ? "h" : "v", Z = pi(w, N)), !Z)
11093
11093
  return !1;
11094
11094
  if (!i.current && "changedTouches" in g && (S || b) && (i.current = I), !I)
11095
11095
  return !0;
@@ -11098,7 +11098,7 @@ function $x(t) {
11098
11098
  }, []), u = f.useCallback(function(g) {
11099
11099
  var y = g;
11100
11100
  if (!(!Be.length || Be[Be.length - 1] !== r)) {
11101
- var $ = "deltaY" in y ? pi(y) : Et(y), _ = n.current.filter(function(I) {
11101
+ var $ = "deltaY" in y ? gi(y) : Et(y), _ = n.current.filter(function(I) {
11102
11102
  return I.name === y.type && (I.target === y.target || y.target === I.shadowParent) && hx(I.delta, $);
11103
11103
  })[0];
11104
11104
  if (_ && _.should) {
@@ -11106,7 +11106,7 @@ function $x(t) {
11106
11106
  return;
11107
11107
  }
11108
11108
  if (!_) {
11109
- var S = (o.current.shards || []).map(gi).filter(Boolean).filter(function(I) {
11109
+ var S = (o.current.shards || []).map(vi).filter(Boolean).filter(function(I) {
11110
11110
  return I.contains(y.target);
11111
11111
  }), b = S.length > 0 ? s(y, S[0]) : !o.current.noIsolation;
11112
11112
  b && y.cancelable && y.preventDefault();
@@ -11122,7 +11122,7 @@ function $x(t) {
11122
11122
  }, []), c = f.useCallback(function(g) {
11123
11123
  a.current = Et(g), i.current = void 0;
11124
11124
  }, []), m = f.useCallback(function(g) {
11125
- l(g.type, pi(g), g.target, s(g, t.lockRef.current));
11125
+ l(g.type, gi(g), g.target, s(g, t.lockRef.current));
11126
11126
  }, []), h = f.useCallback(function(g) {
11127
11127
  l(g.type, Et(g), g.target, s(g, t.lockRef.current));
11128
11128
  }, []);
@@ -11150,7 +11150,7 @@ function _x(t) {
11150
11150
  t instanceof ShadowRoot && (n = t.host, t = t.host), t = t.parentNode;
11151
11151
  return n;
11152
11152
  }
11153
- const xx = q_(Xo, $x);
11153
+ const xx = q_(Yo, $x);
11154
11154
  var cr = f.forwardRef(function(t, n) {
11155
11155
  return f.createElement(rn, pe({}, t, { ref: n, sideCar: xx }));
11156
11156
  });
@@ -11160,13 +11160,13 @@ var wx = function(t) {
11160
11160
  return null;
11161
11161
  var n = Array.isArray(t) ? t[0] : t;
11162
11162
  return n.ownerDocument.body;
11163
- }, Ve = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Ct = {}, $n = 0, ns = function(t) {
11164
- return t && (t.host || ns(t.parentNode));
11163
+ }, Ve = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Ct = {}, $n = 0, rs = function(t) {
11164
+ return t && (t.host || rs(t.parentNode));
11165
11165
  }, Sx = function(t, n) {
11166
11166
  return n.map(function(a) {
11167
11167
  if (t.contains(a))
11168
11168
  return a;
11169
- var i = ns(a);
11169
+ var i = rs(a);
11170
11170
  return i && t.contains(i) ? i : (console.error("aria-hidden", a, "in not contained inside", t, ". Doing nothing"), null);
11171
11171
  }).filter(function(a) {
11172
11172
  return !!a;
@@ -11197,13 +11197,13 @@ var wx = function(t) {
11197
11197
  Ve.set(m, h), r.set(m, p), h || (Ot.has(m) || m.removeAttribute(i), Ot.delete(m)), p || m.removeAttribute(a);
11198
11198
  }), $n--, $n || (Ve = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Ct = {});
11199
11199
  };
11200
- }, rs = function(t, n, a) {
11200
+ }, is = function(t, n, a) {
11201
11201
  a === void 0 && (a = "data-aria-hidden");
11202
11202
  var i = Array.from(Array.isArray(t) ? t : [t]), e = wx(t);
11203
11203
  return e ? (i.push.apply(i, Array.from(e.querySelectorAll("[aria-live], script"))), Ix(i, e, a, "aria-hidden")) : function() {
11204
11204
  return null;
11205
11205
  };
11206
- }, an = "Dialog", [is] = yt(an), [kx, ue] = is(an), as = (t) => {
11206
+ }, an = "Dialog", [as] = yt(an), [kx, ue] = as(an), os = (t) => {
11207
11207
  const {
11208
11208
  __scopeDialog: n,
11209
11209
  children: a,
@@ -11234,10 +11234,10 @@ var wx = function(t) {
11234
11234
  }
11235
11235
  );
11236
11236
  };
11237
- as.displayName = an;
11238
- var os = "DialogTrigger", ss = f.forwardRef(
11237
+ os.displayName = an;
11238
+ var ss = "DialogTrigger", ls = f.forwardRef(
11239
11239
  (t, n) => {
11240
- const { __scopeDialog: a, ...i } = t, e = ue(os, a), r = Q(n, e.triggerRef);
11240
+ const { __scopeDialog: a, ...i } = t, e = ue(ss, a), r = Q(n, e.triggerRef);
11241
11241
  return /* @__PURE__ */ d(
11242
11242
  G.button,
11243
11243
  {
@@ -11253,21 +11253,21 @@ var os = "DialogTrigger", ss = f.forwardRef(
11253
11253
  );
11254
11254
  }
11255
11255
  );
11256
- ss.displayName = os;
11257
- var ur = "DialogPortal", [Nx, ls] = is(ur, {
11256
+ ls.displayName = ss;
11257
+ var ur = "DialogPortal", [Nx, cs] = as(ur, {
11258
11258
  forceMount: void 0
11259
- }), cs = (t) => {
11259
+ }), us = (t) => {
11260
11260
  const { __scopeDialog: n, forceMount: a, children: i, container: e } = t, r = ue(ur, n);
11261
11261
  return /* @__PURE__ */ d(Nx, { scope: n, forceMount: a, children: f.Children.map(i, (o) => /* @__PURE__ */ d(Ee, { present: a || r.open, children: /* @__PURE__ */ d(Yt, { asChild: !0, container: e, children: o }) })) });
11262
11262
  };
11263
- cs.displayName = ur;
11264
- var Bt = "DialogOverlay", us = f.forwardRef(
11263
+ us.displayName = ur;
11264
+ var Bt = "DialogOverlay", ds = f.forwardRef(
11265
11265
  (t, n) => {
11266
- const a = ls(Bt, t.__scopeDialog), { forceMount: i = a.forceMount, ...e } = t, r = ue(Bt, t.__scopeDialog);
11266
+ const a = cs(Bt, t.__scopeDialog), { forceMount: i = a.forceMount, ...e } = t, r = ue(Bt, t.__scopeDialog);
11267
11267
  return r.modal ? /* @__PURE__ */ d(Ee, { present: i || r.open, children: /* @__PURE__ */ d(Ox, { ...e, ref: n }) }) : null;
11268
11268
  }
11269
11269
  );
11270
- us.displayName = Bt;
11270
+ ds.displayName = Bt;
11271
11271
  var Ex = /* @__PURE__ */ Bn("DialogOverlay.RemoveScroll"), Ox = f.forwardRef(
11272
11272
  (t, n) => {
11273
11273
  const { __scopeDialog: a, ...i } = t, e = ue(Bt, a);
@@ -11285,21 +11285,21 @@ var Ex = /* @__PURE__ */ Bn("DialogOverlay.RemoveScroll"), Ox = f.forwardRef(
11285
11285
  ) })
11286
11286
  );
11287
11287
  }
11288
- ), ze = "DialogContent", ds = f.forwardRef(
11288
+ ), ze = "DialogContent", ms = f.forwardRef(
11289
11289
  (t, n) => {
11290
- const a = ls(ze, t.__scopeDialog), { forceMount: i = a.forceMount, ...e } = t, r = ue(ze, t.__scopeDialog);
11290
+ const a = cs(ze, t.__scopeDialog), { forceMount: i = a.forceMount, ...e } = t, r = ue(ze, t.__scopeDialog);
11291
11291
  return /* @__PURE__ */ d(Ee, { present: i || r.open, children: r.modal ? /* @__PURE__ */ d(Cx, { ...e, ref: n }) : /* @__PURE__ */ d(Px, { ...e, ref: n }) });
11292
11292
  }
11293
11293
  );
11294
- ds.displayName = ze;
11294
+ ms.displayName = ze;
11295
11295
  var Cx = f.forwardRef(
11296
11296
  (t, n) => {
11297
11297
  const a = ue(ze, t.__scopeDialog), i = f.useRef(null), e = Q(n, a.contentRef, i);
11298
11298
  return f.useEffect(() => {
11299
11299
  const r = i.current;
11300
- if (r) return rs(r);
11300
+ if (r) return is(r);
11301
11301
  }, []), /* @__PURE__ */ d(
11302
- ms,
11302
+ fs,
11303
11303
  {
11304
11304
  ...t,
11305
11305
  ref: e,
@@ -11323,7 +11323,7 @@ var Cx = f.forwardRef(
11323
11323
  (t, n) => {
11324
11324
  const a = ue(ze, t.__scopeDialog), i = f.useRef(!1), e = f.useRef(!1);
11325
11325
  return /* @__PURE__ */ d(
11326
- ms,
11326
+ fs,
11327
11327
  {
11328
11328
  ...t,
11329
11329
  ref: n,
@@ -11340,10 +11340,10 @@ var Cx = f.forwardRef(
11340
11340
  }
11341
11341
  );
11342
11342
  }
11343
- ), ms = f.forwardRef(
11343
+ ), fs = f.forwardRef(
11344
11344
  (t, n) => {
11345
11345
  const { __scopeDialog: a, trapFocus: i, onOpenAutoFocus: e, onCloseAutoFocus: r, ...o } = t, s = ue(ze, a), u = f.useRef(null), l = Q(n, u);
11346
- return Ko(), /* @__PURE__ */ O(jt, { children: [
11346
+ return Ho(), /* @__PURE__ */ O(jt, { children: [
11347
11347
  /* @__PURE__ */ d(
11348
11348
  lr,
11349
11349
  {
@@ -11373,23 +11373,23 @@ var Cx = f.forwardRef(
11373
11373
  ] })
11374
11374
  ] });
11375
11375
  }
11376
- ), dr = "DialogTitle", fs = f.forwardRef(
11376
+ ), dr = "DialogTitle", ps = f.forwardRef(
11377
11377
  (t, n) => {
11378
11378
  const { __scopeDialog: a, ...i } = t, e = ue(dr, a);
11379
11379
  return /* @__PURE__ */ d(G.h2, { id: e.titleId, ...i, ref: n });
11380
11380
  }
11381
11381
  );
11382
- fs.displayName = dr;
11383
- var ps = "DialogDescription", Tx = f.forwardRef(
11382
+ ps.displayName = dr;
11383
+ var gs = "DialogDescription", Tx = f.forwardRef(
11384
11384
  (t, n) => {
11385
- const { __scopeDialog: a, ...i } = t, e = ue(ps, a);
11385
+ const { __scopeDialog: a, ...i } = t, e = ue(gs, a);
11386
11386
  return /* @__PURE__ */ d(G.p, { id: e.descriptionId, ...i, ref: n });
11387
11387
  }
11388
11388
  );
11389
- Tx.displayName = ps;
11390
- var gs = "DialogClose", vs = f.forwardRef(
11389
+ Tx.displayName = gs;
11390
+ var vs = "DialogClose", hs = f.forwardRef(
11391
11391
  (t, n) => {
11392
- const { __scopeDialog: a, ...i } = t, e = ue(gs, a);
11392
+ const { __scopeDialog: a, ...i } = t, e = ue(vs, a);
11393
11393
  return /* @__PURE__ */ d(
11394
11394
  G.button,
11395
11395
  {
@@ -11401,16 +11401,16 @@ var gs = "DialogClose", vs = f.forwardRef(
11401
11401
  );
11402
11402
  }
11403
11403
  );
11404
- vs.displayName = gs;
11404
+ hs.displayName = vs;
11405
11405
  function mr(t) {
11406
11406
  return t ? "open" : "closed";
11407
11407
  }
11408
- var hs = "DialogTitleWarning", [uS, bs] = Qb(hs, {
11408
+ var bs = "DialogTitleWarning", [uS, ys] = Qb(bs, {
11409
11409
  contentName: ze,
11410
11410
  titleName: dr,
11411
11411
  docsSlug: "dialog"
11412
11412
  }), Dx = ({ titleId: t }) => {
11413
- const n = bs(hs), a = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
11413
+ const n = ys(bs), a = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
11414
11414
 
11415
11415
  If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
11416
11416
 
@@ -11419,12 +11419,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
11419
11419
  t && (document.getElementById(t) || console.error(a));
11420
11420
  }, [a, t]), null;
11421
11421
  }, Rx = "DialogDescriptionWarning", Ax = ({ contentRef: t, descriptionId: n }) => {
11422
- const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bs(Rx).contentName}}.`;
11422
+ const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ys(Rx).contentName}}.`;
11423
11423
  return f.useEffect(() => {
11424
11424
  const e = t.current?.getAttribute("aria-describedby");
11425
11425
  n && e && (document.getElementById(n) || console.warn(i));
11426
11426
  }, [i, t, n]), null;
11427
- }, jx = as, Ux = ss, zx = cs, Mx = us, Lx = ds, Fx = fs, Zx = vs;
11427
+ }, jx = os, Ux = ls, zx = us, Mx = ds, Lx = ms, Fx = ps, Zx = hs;
11428
11428
  function Wx({
11429
11429
  ...t
11430
11430
  }) {
@@ -11573,7 +11573,7 @@ var Xx = [
11573
11573
  "svg",
11574
11574
  "ul"
11575
11575
  ], fr = Xx.reduce((t, n) => {
11576
- const a = /* @__PURE__ */ Ha(`Primitive.${n}`), i = f.forwardRef((e, r) => {
11576
+ const a = /* @__PURE__ */ qa(`Primitive.${n}`), i = f.forwardRef((e, r) => {
11577
11577
  const { asChild: o, ...s } = e, u = o ? a : n;
11578
11578
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(u, { ...s, ref: r });
11579
11579
  });
@@ -11590,7 +11590,7 @@ function Qx() {
11590
11590
  return () => {
11591
11591
  };
11592
11592
  }
11593
- var pr = "Avatar", [ew] = Hx(pr), [tw, ys] = ew(pr), $s = f.forwardRef(
11593
+ var pr = "Avatar", [ew] = Hx(pr), [tw, $s] = ew(pr), _s = f.forwardRef(
11594
11594
  (t, n) => {
11595
11595
  const { __scopeAvatar: a, ...i } = t, [e, r] = f.useState("idle");
11596
11596
  return /* @__PURE__ */ d(
@@ -11604,11 +11604,11 @@ var pr = "Avatar", [ew] = Hx(pr), [tw, ys] = ew(pr), $s = f.forwardRef(
11604
11604
  );
11605
11605
  }
11606
11606
  );
11607
- $s.displayName = pr;
11608
- var _s = "AvatarImage", xs = f.forwardRef(
11607
+ _s.displayName = pr;
11608
+ var xs = "AvatarImage", ws = f.forwardRef(
11609
11609
  (t, n) => {
11610
11610
  const { __scopeAvatar: a, src: i, onLoadingStatusChange: e = () => {
11611
- }, ...r } = t, o = ys(_s, a), s = nw(i, r), u = je((l) => {
11611
+ }, ...r } = t, o = $s(xs, a), s = nw(i, r), u = je((l) => {
11612
11612
  e(l), o.onImageLoadingStatusChange(l);
11613
11613
  });
11614
11614
  return ae(() => {
@@ -11616,10 +11616,10 @@ var _s = "AvatarImage", xs = f.forwardRef(
11616
11616
  }, [s, u]), s === "loaded" ? /* @__PURE__ */ d(fr.img, { ...r, ref: n, src: i }) : null;
11617
11617
  }
11618
11618
  );
11619
- xs.displayName = _s;
11620
- var ws = "AvatarFallback", Ss = f.forwardRef(
11619
+ ws.displayName = xs;
11620
+ var Ss = "AvatarFallback", Is = f.forwardRef(
11621
11621
  (t, n) => {
11622
- const { __scopeAvatar: a, delayMs: i, ...e } = t, r = ys(ws, a), [o, s] = f.useState(i === void 0);
11622
+ const { __scopeAvatar: a, delayMs: i, ...e } = t, r = $s(Ss, a), [o, s] = f.useState(i === void 0);
11623
11623
  return f.useEffect(() => {
11624
11624
  if (i !== void 0) {
11625
11625
  const u = window.setTimeout(() => s(!0), i);
@@ -11628,16 +11628,16 @@ var ws = "AvatarFallback", Ss = f.forwardRef(
11628
11628
  }, [i]), o && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ d(fr.span, { ...e, ref: n }) : null;
11629
11629
  }
11630
11630
  );
11631
- Ss.displayName = ws;
11632
- function vi(t, n) {
11631
+ Is.displayName = Ss;
11632
+ function hi(t, n) {
11633
11633
  return t ? n ? (t.src !== n && (t.src = n), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
11634
11634
  }
11635
11635
  function nw(t, { referrerPolicy: n, crossOrigin: a }) {
11636
11636
  const i = Yx(), e = f.useRef(null), r = i ? (e.current || (e.current = new window.Image()), e.current) : null, [o, s] = f.useState(
11637
- () => vi(r, t)
11637
+ () => hi(r, t)
11638
11638
  );
11639
11639
  return ae(() => {
11640
- s(vi(r, t));
11640
+ s(hi(r, t));
11641
11641
  }, [r, t]), ae(() => {
11642
11642
  const u = (m) => () => {
11643
11643
  s(m);
@@ -11649,7 +11649,7 @@ function nw(t, { referrerPolicy: n, crossOrigin: a }) {
11649
11649
  };
11650
11650
  }, [r, a, n]), o;
11651
11651
  }
11652
- var rw = $s, iw = xs, aw = Ss;
11652
+ var rw = _s, iw = ws, aw = Is;
11653
11653
  function ow({
11654
11654
  className: t,
11655
11655
  ...n
@@ -11707,7 +11707,7 @@ const cw = (t) => {
11707
11707
  URL.revokeObjectURL(i);
11708
11708
  };
11709
11709
  }, [t]), n;
11710
- }, Is = () => {
11710
+ }, ks = () => {
11711
11711
  const { file: t, src: n } = se(
11712
11712
  cg(({ attachment: a }) => {
11713
11713
  if (a.type !== "image") return {};
@@ -11729,7 +11729,7 @@ const cw = (t) => {
11729
11729
  }
11730
11730
  );
11731
11731
  }, dw = ({ children: t }) => {
11732
- const n = Is();
11732
+ const n = ks();
11733
11733
  return n ? /* @__PURE__ */ O(Wx, { children: [
11734
11734
  /* @__PURE__ */ d(
11735
11735
  Bx,
@@ -11747,7 +11747,7 @@ const cw = (t) => {
11747
11747
  }, mw = () => {
11748
11748
  const t = se(
11749
11749
  ({ attachment: a }) => a.type === "image"
11750
- ), n = Is();
11750
+ ), n = ks();
11751
11751
  return /* @__PURE__ */ O(ow, { className: "aui-attachment-tile-avatar h-full w-full rounded-none", children: [
11752
11752
  /* @__PURE__ */ d(
11753
11753
  sw,
@@ -11759,8 +11759,8 @@ const cw = (t) => {
11759
11759
  ),
11760
11760
  /* @__PURE__ */ d(lw, { delayMs: t ? 200 : 0, children: /* @__PURE__ */ d(vb, { className: "aui-attachment-tile-fallback-icon text-muted-foreground size-8" }) })
11761
11761
  ] });
11762
- }, ks = () => {
11763
- const n = wa().attachment.source === "composer", a = se(
11762
+ }, Ns = () => {
11763
+ const n = Sa().attachment.source === "composer", a = se(
11764
11764
  ({ attachment: e }) => e.type === "image"
11765
11765
  ), i = se(({ attachment: e }) => {
11766
11766
  const r = e.type;
@@ -11813,10 +11813,10 @@ const cw = (t) => {
11813
11813
  side: "top",
11814
11814
  children: /* @__PURE__ */ d(Zn, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
11815
11815
  }
11816
- ) }), pw = () => /* @__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(Pe.Attachments, { components: { Attachment: ks } }) }), gw = () => /* @__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(
11816
+ ) }), pw = () => /* @__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(Pe.Attachments, { components: { Attachment: Ns } }) }), gw = () => /* @__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(
11817
11817
  ge.Attachments,
11818
11818
  {
11819
- components: { Attachment: ks }
11819
+ components: { Attachment: Ns }
11820
11820
  }
11821
11821
  ) }), vw = () => /* @__PURE__ */ d(ge.AddAttachment, { asChild: !0, children: /* @__PURE__ */ d(
11822
11822
  oe,
@@ -11839,9 +11839,9 @@ const cw = (t) => {
11839
11839
  };
11840
11840
  }, [n]);
11841
11841
  };
11842
- var on = "Popover", [Ns] = yt(on, [
11842
+ var on = "Popover", [Es] = yt(on, [
11843
11843
  Xt
11844
- ]), xt = Xt(), [hw, Re] = Ns(on), Es = (t) => {
11844
+ ]), xt = Xt(), [hw, Re] = Es(on), Os = (t) => {
11845
11845
  const {
11846
11846
  __scopePopover: n,
11847
11847
  children: a,
@@ -11855,7 +11855,7 @@ var on = "Popover", [Ns] = yt(on, [
11855
11855
  onChange: r,
11856
11856
  caller: on
11857
11857
  });
11858
- return /* @__PURE__ */ d(xo, { ...s, children: /* @__PURE__ */ d(
11858
+ return /* @__PURE__ */ d(wo, { ...s, children: /* @__PURE__ */ d(
11859
11859
  hw,
11860
11860
  {
11861
11861
  scope: n,
@@ -11872,24 +11872,24 @@ var on = "Popover", [Ns] = yt(on, [
11872
11872
  }
11873
11873
  ) });
11874
11874
  };
11875
- Es.displayName = on;
11876
- var Os = "PopoverAnchor", bw = f.forwardRef(
11875
+ Os.displayName = on;
11876
+ var Cs = "PopoverAnchor", bw = f.forwardRef(
11877
11877
  (t, n) => {
11878
- const { __scopePopover: a, ...i } = t, e = Re(Os, a), r = xt(a), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = e;
11878
+ const { __scopePopover: a, ...i } = t, e = Re(Cs, a), r = xt(a), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = e;
11879
11879
  return f.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ d(Qn, { ...r, ...i, ref: n });
11880
11880
  }
11881
11881
  );
11882
- bw.displayName = Os;
11883
- var Cs = "PopoverTrigger", Ps = f.forwardRef(
11882
+ bw.displayName = Cs;
11883
+ var Ps = "PopoverTrigger", Ts = f.forwardRef(
11884
11884
  (t, n) => {
11885
- const { __scopePopover: a, ...i } = t, e = Re(Cs, a), r = xt(a), o = Q(n, e.triggerRef), s = /* @__PURE__ */ d(
11885
+ const { __scopePopover: a, ...i } = t, e = Re(Ps, a), r = xt(a), o = Q(n, e.triggerRef), s = /* @__PURE__ */ d(
11886
11886
  G.button,
11887
11887
  {
11888
11888
  type: "button",
11889
11889
  "aria-haspopup": "dialog",
11890
11890
  "aria-expanded": e.open,
11891
11891
  "aria-controls": e.contentId,
11892
- "data-state": js(e.open),
11892
+ "data-state": Us(e.open),
11893
11893
  ...i,
11894
11894
  ref: o,
11895
11895
  onClick: W(t.onClick, e.onOpenToggle)
@@ -11898,29 +11898,29 @@ var Cs = "PopoverTrigger", Ps = f.forwardRef(
11898
11898
  return e.hasCustomAnchor ? s : /* @__PURE__ */ d(Qn, { asChild: !0, ...r, children: s });
11899
11899
  }
11900
11900
  );
11901
- Ps.displayName = Cs;
11902
- var vr = "PopoverPortal", [yw, $w] = Ns(vr, {
11901
+ Ts.displayName = Ps;
11902
+ var vr = "PopoverPortal", [yw, $w] = Es(vr, {
11903
11903
  forceMount: void 0
11904
- }), Ts = (t) => {
11904
+ }), Ds = (t) => {
11905
11905
  const { __scopePopover: n, forceMount: a, children: i, container: e } = t, r = Re(vr, n);
11906
11906
  return /* @__PURE__ */ d(yw, { scope: n, forceMount: a, children: /* @__PURE__ */ d(Ee, { present: a || r.open, children: /* @__PURE__ */ d(Yt, { asChild: !0, container: e, children: i }) }) });
11907
11907
  };
11908
- Ts.displayName = vr;
11909
- var Qe = "PopoverContent", Ds = f.forwardRef(
11908
+ Ds.displayName = vr;
11909
+ var Qe = "PopoverContent", Rs = f.forwardRef(
11910
11910
  (t, n) => {
11911
11911
  const a = $w(Qe, t.__scopePopover), { forceMount: i = a.forceMount, ...e } = t, r = Re(Qe, t.__scopePopover);
11912
11912
  return /* @__PURE__ */ d(Ee, { present: i || r.open, children: r.modal ? /* @__PURE__ */ d(xw, { ...e, ref: n }) : /* @__PURE__ */ d(ww, { ...e, ref: n }) });
11913
11913
  }
11914
11914
  );
11915
- Ds.displayName = Qe;
11915
+ Rs.displayName = Qe;
11916
11916
  var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
11917
11917
  (t, n) => {
11918
11918
  const a = Re(Qe, t.__scopePopover), i = f.useRef(null), e = Q(n, i), r = f.useRef(!1);
11919
11919
  return f.useEffect(() => {
11920
11920
  const o = i.current;
11921
- if (o) return rs(o);
11921
+ if (o) return is(o);
11922
11922
  }, []), /* @__PURE__ */ d(cr, { as: _w, allowPinchZoom: !0, children: /* @__PURE__ */ d(
11923
- Rs,
11923
+ As,
11924
11924
  {
11925
11925
  ...t,
11926
11926
  ref: e,
@@ -11949,7 +11949,7 @@ var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
11949
11949
  (t, n) => {
11950
11950
  const a = Re(Qe, t.__scopePopover), i = f.useRef(!1), e = f.useRef(!1);
11951
11951
  return /* @__PURE__ */ d(
11952
- Rs,
11952
+ As,
11953
11953
  {
11954
11954
  ...t,
11955
11955
  ref: n,
@@ -11966,7 +11966,7 @@ var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
11966
11966
  }
11967
11967
  );
11968
11968
  }
11969
- ), Rs = f.forwardRef(
11969
+ ), As = f.forwardRef(
11970
11970
  (t, n) => {
11971
11971
  const {
11972
11972
  __scopePopover: a,
@@ -11980,7 +11980,7 @@ var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
11980
11980
  onInteractOutside: c,
11981
11981
  ...m
11982
11982
  } = t, h = Re(Qe, a), p = xt(a);
11983
- return Ko(), /* @__PURE__ */ d(
11983
+ return Ho(), /* @__PURE__ */ d(
11984
11984
  lr,
11985
11985
  {
11986
11986
  asChild: !0,
@@ -11999,9 +11999,9 @@ var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
11999
11999
  onFocusOutside: l,
12000
12000
  onDismiss: () => h.onOpenChange(!1),
12001
12001
  children: /* @__PURE__ */ d(
12002
- wo,
12002
+ So,
12003
12003
  {
12004
- "data-state": js(h.open),
12004
+ "data-state": Us(h.open),
12005
12005
  role: "dialog",
12006
12006
  id: h.contentId,
12007
12007
  ...p,
@@ -12022,9 +12022,9 @@ var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
12022
12022
  }
12023
12023
  );
12024
12024
  }
12025
- ), As = "PopoverClose", Sw = f.forwardRef(
12025
+ ), js = "PopoverClose", Sw = f.forwardRef(
12026
12026
  (t, n) => {
12027
- const { __scopePopover: a, ...i } = t, e = Re(As, a);
12027
+ const { __scopePopover: a, ...i } = t, e = Re(js, a);
12028
12028
  return /* @__PURE__ */ d(
12029
12029
  G.button,
12030
12030
  {
@@ -12036,18 +12036,18 @@ var _w = /* @__PURE__ */ Bn("PopoverContent.RemoveScroll"), xw = f.forwardRef(
12036
12036
  );
12037
12037
  }
12038
12038
  );
12039
- Sw.displayName = As;
12039
+ Sw.displayName = js;
12040
12040
  var Iw = "PopoverArrow", kw = f.forwardRef(
12041
12041
  (t, n) => {
12042
12042
  const { __scopePopover: a, ...i } = t, e = xt(a);
12043
- return /* @__PURE__ */ d(So, { ...e, ...i, ref: n });
12043
+ return /* @__PURE__ */ d(Io, { ...e, ...i, ref: n });
12044
12044
  }
12045
12045
  );
12046
12046
  kw.displayName = Iw;
12047
- function js(t) {
12047
+ function Us(t) {
12048
12048
  return t ? "open" : "closed";
12049
12049
  }
12050
- var Nw = Es, Ew = Ps, Ow = Ts, Cw = Ds;
12050
+ var Nw = Os, Ew = Ts, Ow = Ds, Cw = Rs;
12051
12051
  function Pw({
12052
12052
  ...t
12053
12053
  }) {
@@ -12082,11 +12082,11 @@ const Rw = ({ children: t }) => {
12082
12082
  const n = et(), a = se(({ message: c }) => c).parts, i = he(
12083
12083
  () => a.filter((c) => c.type === "tool-call").some((c) => c.status?.type === "running"),
12084
12084
  [a]
12085
- ), e = he(() => i ? /* @__PURE__ */ d(Ga, { className: "size-4 animate-spin text-blue-700" }) : /* @__PURE__ */ d(bt, { className: "size-4 text-green-500" }), [i]), { config: r } = Y(), [o, s] = q(
12085
+ ), e = he(() => i ? /* @__PURE__ */ d(Ka, { className: "size-4 animate-spin text-blue-700" }) : /* @__PURE__ */ d(bt, { className: "size-4 text-green-500" }), [i]), { config: r } = Y(), [o, s] = q(
12086
12086
  r.tools?.expandToolGroupsByDefault ?? !1
12087
12087
  ), u = Le(), l = he(() => {
12088
12088
  const c = a.filter((m) => m.type === "tool-call");
12089
- return c.length === 0 ? "No tools called" : c.length === 1 ? `Calling ${Uo(c[0].toolName)}...` : i ? `Calling ${c.length} tools...` : `Executed ${c.length} tools`;
12089
+ return c.length === 0 ? "No tools called" : c.length === 1 ? `Calling ${zo(c[0].toolName)}...` : i ? `Calling ${c.length} tools...` : `Executed ${c.length} tools`;
12090
12090
  }, [a, i]);
12091
12091
  return /* @__PURE__ */ d(ht, { features: Mn, children: /* @__PURE__ */ O(
12092
12092
  "button",
@@ -12127,7 +12127,7 @@ const Rw = ({ children: t }) => {
12127
12127
  size: "icon",
12128
12128
  className: "cursor-pointer hover:bg-transparent",
12129
12129
  onClick: () => s(!o),
12130
- children: o ? /* @__PURE__ */ d(Va, { className: "size-4" }) : /* @__PURE__ */ d(Fn, { className: "size-4" })
12130
+ children: o ? /* @__PURE__ */ d(Ja, { className: "size-4" }) : /* @__PURE__ */ d(Fn, { className: "size-4" })
12131
12131
  }
12132
12132
  ) })
12133
12133
  ]
@@ -12149,7 +12149,7 @@ const Rw = ({ children: t }) => {
12149
12149
  ) });
12150
12150
  }, hr = () => {
12151
12151
  const t = gr(), n = Le(), { config: a } = Y(), i = a.components ?? {};
12152
- return /* @__PURE__ */ d(ht, { features: Mn, children: /* @__PURE__ */ d(Na, { reducedMotion: "user", children: /* @__PURE__ */ d(
12152
+ return /* @__PURE__ */ d(ht, { features: Mn, children: /* @__PURE__ */ d(Ea, { reducedMotion: "user", children: /* @__PURE__ */ d(
12153
12153
  Se.Root,
12154
12154
  {
12155
12155
  className: k(
@@ -12354,7 +12354,7 @@ const Rw = ({ children: t }) => {
12354
12354
  const c = o.current;
12355
12355
  c && c.scrollHeight > 0 && (c.scrollTop = s.current);
12356
12356
  }), u.current = a;
12357
- }, [a]), /* @__PURE__ */ d(Ao, { children: /* @__PURE__ */ O(nr, { open: e, onOpenChange: r, children: [
12357
+ }, [a]), /* @__PURE__ */ d(jo, { children: /* @__PURE__ */ O(nr, { open: e, onOpenChange: r, children: [
12358
12358
  /* @__PURE__ */ O(Pw, { open: a, onOpenChange: i, children: [
12359
12359
  /* @__PURE__ */ d(rr, { asChild: !0, children: /* @__PURE__ */ d(Tw, { asChild: !0, children: /* @__PURE__ */ d(
12360
12360
  $e,
@@ -12382,7 +12382,7 @@ const Rw = ({ children: t }) => {
12382
12382
  onScroll: (c) => {
12383
12383
  s.current = c.currentTarget.scrollTop;
12384
12384
  },
12385
- children: xa.map((c) => /* @__PURE__ */ O(
12385
+ children: wa.map((c) => /* @__PURE__ */ O(
12386
12386
  $e,
12387
12387
  {
12388
12388
  onClick: () => {
@@ -12452,14 +12452,14 @@ const Rw = ({ children: t }) => {
12452
12452
  Pe.Parts,
12453
12453
  {
12454
12454
  components: {
12455
- Text: a.Text ?? jo,
12455
+ Text: a.Text ?? Uo,
12456
12456
  Image: a.Image ?? Ww,
12457
12457
  tools: {
12458
12458
  by_name: n.components,
12459
12459
  Fallback: a.ToolFallback ?? __
12460
12460
  },
12461
- Reasoning: a.Reasoning ?? Vo,
12462
- ReasoningGroup: a.ReasoningGroup ?? Jo,
12461
+ Reasoning: a.Reasoning ?? Jo,
12462
+ ReasoningGroup: a.ReasoningGroup ?? Go,
12463
12463
  ToolGroup: a.ToolGroup ?? Rw
12464
12464
  }
12465
12465
  }
@@ -12467,7 +12467,7 @@ const Rw = ({ children: t }) => {
12467
12467
  /* @__PURE__ */ d(Fw, {})
12468
12468
  ] }),
12469
12469
  /* @__PURE__ */ O("div", { className: "aui-assistant-message-footer mt-2 ml-2 flex", children: [
12470
- /* @__PURE__ */ d(Us, {}),
12470
+ /* @__PURE__ */ d(zs, {}),
12471
12471
  /* @__PURE__ */ d(Bw, {})
12472
12472
  ] })
12473
12473
  ]
@@ -12483,7 +12483,7 @@ const Rw = ({ children: t }) => {
12483
12483
  children: [
12484
12484
  /* @__PURE__ */ d(ut.Copy, { asChild: !0, children: /* @__PURE__ */ O(oe, { tooltip: "Copy", children: [
12485
12485
  /* @__PURE__ */ d(Pe.If, { copied: !0, children: /* @__PURE__ */ d(bt, {}) }),
12486
- /* @__PURE__ */ d(Pe.If, { copied: !1, children: /* @__PURE__ */ d(Ja, {}) })
12486
+ /* @__PURE__ */ d(Pe.If, { copied: !1, children: /* @__PURE__ */ d(Ga, {}) })
12487
12487
  ] }) }),
12488
12488
  /* @__PURE__ */ d(ut.Reload, { asChild: !0, children: /* @__PURE__ */ d(oe, { tooltip: "Refresh", children: /* @__PURE__ */ d(Db, {}) }) })
12489
12489
  ]
@@ -12510,7 +12510,7 @@ const Rw = ({ children: t }) => {
12510
12510
  ),
12511
12511
  /* @__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(Jw, {}) })
12512
12512
  ] }),
12513
- /* @__PURE__ */ d(Us, { className: "aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" })
12513
+ /* @__PURE__ */ d(zs, { className: "aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" })
12514
12514
  ]
12515
12515
  }
12516
12516
  ) });
@@ -12534,7 +12534,7 @@ const Rw = ({ children: t }) => {
12534
12534
  /* @__PURE__ */ d(ge.Cancel, { asChild: !0, children: /* @__PURE__ */ d($e, { variant: "ghost", size: "sm", "aria-label": "Cancel edit", children: "Cancel" }) }),
12535
12535
  /* @__PURE__ */ d(ge.Send, { asChild: !0, children: /* @__PURE__ */ d($e, { size: "sm", "aria-label": "Update message", children: "Update" }) })
12536
12536
  ] })
12537
- ] }) }), Us = ({
12537
+ ] }) }), zs = ({
12538
12538
  className: t,
12539
12539
  ...n
12540
12540
  }) => /* @__PURE__ */ O(
@@ -12556,7 +12556,7 @@ const Rw = ({ children: t }) => {
12556
12556
  /* @__PURE__ */ d(it.Next, { asChild: !0, children: /* @__PURE__ */ d(oe, { tooltip: "Next", children: /* @__PURE__ */ d(mb, {}) }) })
12557
12557
  ]
12558
12558
  }
12559
- ), zs = () => {
12559
+ ), Ms = () => {
12560
12560
  const { config: t, isExpanded: n, setIsExpanded: a } = Y(), i = t.modal?.defaultExpanded ?? !1;
12561
12561
  return {
12562
12562
  expandable: t.modal?.expandable ?? !1,
@@ -12570,7 +12570,7 @@ const Rw = ({ children: t }) => {
12570
12570
  ease: ye
12571
12571
  }
12572
12572
  }, Hw = () => {
12573
- const { config: t } = Y(), n = gr(), a = et(), i = Le(), [e, r] = q(t.modal?.defaultOpen ?? !1), { expandable: o, isExpanded: s, setIsExpanded: u } = zs(), l = t.modal?.title, c = t.modal?.icon, m = t.modal?.position ?? "bottom-right", h = qw(m), p = he(
12573
+ const { config: t } = Y(), n = gr(), a = et(), i = Le(), [e, r] = q(t.modal?.defaultOpen ?? !1), { expandable: o, isExpanded: s, setIsExpanded: u } = Ms(), l = t.modal?.title, c = t.modal?.icon, m = t.modal?.position ?? "bottom-right", h = qw(m), p = he(
12574
12574
  () => t.modal?.dimensions?.default ?? {
12575
12575
  width: "500px",
12576
12576
  height: "600px",
@@ -12586,7 +12586,7 @@ const Rw = ({ children: t }) => {
12586
12586
  ), y = se(({ thread: b }) => b).messages.some(
12587
12587
  (b) => b.status?.type === "running"
12588
12588
  ), $ = s ? v.width : p.width, _ = s ? v.height : p.height, S = p.maxHeight;
12589
- return /* @__PURE__ */ d(ht, { features: Ea, children: /* @__PURE__ */ d(Na, { reducedMotion: "user", transition: Kw, children: /* @__PURE__ */ d(
12589
+ return /* @__PURE__ */ d(ht, { features: Oa, children: /* @__PURE__ */ d(Ea, { reducedMotion: "user", transition: Kw, children: /* @__PURE__ */ d(
12590
12590
  "div",
12591
12591
  {
12592
12592
  className: k(
@@ -12724,14 +12724,14 @@ function qw(t) {
12724
12724
  case "bottom-right":
12725
12725
  return "right-4 bottom-4";
12726
12726
  default:
12727
- ka(t);
12727
+ Na(t);
12728
12728
  }
12729
12729
  }
12730
12730
  const Xw = () => {
12731
- const { config: t } = Y(), n = gr(), a = t.sidecar ?? {}, { title: i, dimensions: e } = a, { isExpanded: r, setIsExpanded: o } = zs(), u = se(({ thread: l }) => l).messages.some(
12731
+ const { config: t } = Y(), n = gr(), a = t.sidecar ?? {}, { title: i, dimensions: e } = a, { isExpanded: r, setIsExpanded: o } = Ms(), u = se(({ thread: l }) => l).messages.some(
12732
12732
  (l) => l.status?.type === "running"
12733
12733
  );
12734
- return /* @__PURE__ */ d(ht, { features: Ea, children: /* @__PURE__ */ O(
12734
+ return /* @__PURE__ */ d(ht, { features: Oa, children: /* @__PURE__ */ O(
12735
12735
  fe.div,
12736
12736
  {
12737
12737
  initial: {
@@ -12784,7 +12784,7 @@ const Xw = () => {
12784
12784
  case "widget":
12785
12785
  return /* @__PURE__ */ d(Hw, {});
12786
12786
  default:
12787
- ka(t.variant);
12787
+ Na(t.variant);
12788
12788
  }
12789
12789
  };
12790
12790
  export {