react-semaphor 0.1.559 → 0.1.561

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/analytics-protocol/index.js +389 -378
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/analytics-base-schemas-CB3oFAXk.js +658 -0
  7. package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
  12. package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
  16. package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
  17. package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
  20. package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
  21. package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
  24. package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
  30. package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-DMJtp3Vn.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
  36. package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
  40. package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
  42. package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
  43. package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
  51. package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2713 -1459
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +262 -256
  58. package/dist/index.js +214 -215
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
  64. package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
  65. package/dist/types/index.js +50 -51
  66. package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
  67. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  68. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  69. package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
  70. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
  71. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
  72. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
  73. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  74. package/dist/types/lib/stores/editor-store.d.ts +48 -10
  75. package/dist/types/lib/stores/table-actions.d.ts +9 -5
  76. package/dist/types/lib/table-formatting/index.d.ts +0 -2
  77. package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
  78. package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
  79. package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
  80. package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
  81. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
  82. package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
  83. package/dist/types/lib/types/common-types.d.ts +40 -47
  84. package/dist/types/lib/types/explorer-types.d.ts +11 -43
  85. package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
  86. package/dist/types/lib/utils/card-definition.d.ts +9 -187
  87. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
  88. package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
  89. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
  90. package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
  91. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
  92. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
  93. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
  94. package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
  95. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
  96. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  97. package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
  98. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
  99. package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
  100. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
  101. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
  102. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
  103. package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  106. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  107. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  108. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  109. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  110. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  111. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  112. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  113. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  114. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  117. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  119. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  120. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  121. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  124. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  125. package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
  127. package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
  128. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
  129. package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
  130. package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
  131. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
  132. package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
  133. package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
  134. package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
  135. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
  136. package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
  137. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  138. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
  139. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  142. package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
  143. package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
  144. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  145. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
  146. package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
  147. package/dist/types/shared/format-utils/index.d.ts +2 -0
  148. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
  149. package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
  150. package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
  151. package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
  152. package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
  153. package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
  154. package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
  155. package/package.json +2 -2
  156. package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
  157. package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
  158. package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
  159. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
  160. package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
  161. package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
  162. package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
  163. package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
  164. package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
  165. package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
  166. package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
  167. package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
  168. package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
@@ -4,31 +4,29 @@ var $r = (e) => {
4
4
  var Or = (e, t, r) => t.has(e) || $r("Cannot " + r);
5
5
  var L = (e, t, r) => (Or(e, t, "read from private field"), r ? r.call(e) : t.get(e)), me = (e, t, r) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, n) => (Or(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
6
6
  import { jsx as p, jsxs as k, Fragment as Le } from "react/jsx-runtime";
7
- import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as D, useLayoutEffect as Ue, useId as As } from "react";
8
- import { u as X, ds as Cs, b8 as $s, bs as Os, Y as zs, dt as Ms, du as Ps, Z as zr, b5 as Rs, dv as Zs, aR as js, bn as Ds, dw as dr, cP as Fs, dx as Ls, dy as Mt, dz as Cn, dA as Us, a$ as Pt, ck as Mr, dB as $n, $ as Bs, ce as On, bv as Vs, c7 as qs, aS as zn, dg as Mn, dC as Js, dD as Ks, bB as Ws, dE as Gs, dF as Hs, dG as Ys, ch as Qs, ci as Xs, cQ as eo, cj as to, cp as ro, dH as no, c4 as Lt, co as ao, ct as so, c6 as Pn, b4 as Rn, b6 as oo, bm as xt, dI as io, dJ as lo, dK as co, dL as uo, a6 as Zn, dM as po } from "./semaphor-ready-indicator-Bz14Oma5.js";
9
- import { c as qe, B as H, X as lt, j as jn, k as fo, d as mt, L as Be, I as Dn, R as Fn, P as Ln, a as Un, b as Bn } from "./switch-Dq8XPFpT.js";
7
+ import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as j, useLayoutEffect as Ue, useId as As } from "react";
8
+ import { u as Q, du as Cs, ba as $s, bu as Os, Y as zs, dv as Ms, dw as Ps, Z as zr, b7 as Rs, dx as Zs, aR as Ds, bp as js, dy as dr, cR as Fs, dz as Ls, dA as Mt, dB as Cn, dC as Us, a$ as Pt, cm as Mr, dD as $n, $ as Bs, cg as On, bx as Vs, c9 as qs, aS as zn, di as Mn, dE as Js, dF as Ks, bD as Ws, dG as Gs, dH as Hs, dI as Ys, cj as Xs, ck as Qs, cS as eo, cl as to, cr as ro, dJ as no, c6 as Lt, cq as ao, cv as so, c8 as Pn, b5 as Rn, b8 as oo, bo as xt, b3 as Zn, dK as io, dL as lo, dM as co, dN as uo, a6 as Dn, dO as po } from "./semaphor-ready-indicator-E2XWyibu.js";
9
+ import { c as qe, B as H, X as lt, j as jn, k as fo, d as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, b as Vn } from "./switch-balDSHc7.js";
10
10
  import "./index-CuHybtft.js";
11
- import "./validators-C87JPd-_.js";
12
- import "./matrix-operation-contract-COxrfQTS.js";
13
- import "./analytics-base-schemas-BUFUoO6G.js";
11
+ import "./validators-BtaCFIEB.js";
12
+ import "./matrix-operation-contract-BSiGEXVC.js";
13
+ import "./analytics-base-schemas-CB3oFAXk.js";
14
14
  import "zod";
15
15
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as mo } from "../value-format-preferences/index.js";
16
16
  import { g as ho, c as B } from "./_commonjsHelpers-DimLPMtv.js";
17
- import { f as Vn } from "./editor-draft-sync-BN5qYHPF.js";
18
- import { I as go } from "./table-settings-DXj_zXwS.js";
19
- import { l as bo, m as ct, c as Xt, A as et, d as qn } from "./context-DVy4HOU0.js";
20
- import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-BQWM3ldX.js";
21
- import { d_ as yo, as as xo, v as Rr } from "./global-date-filter-utils-DBzEOX9M.js";
22
- import { o as Kn, p as wo } from "./report-preferences-dialog-0sc8B1lh.js";
23
- import { d as _o } from "./document-dashboard-inputs-ChVkcBuu.js";
17
+ import { N as go } from "./bookmark-state-BusLpkb7.js";
18
+ import { l as bo, m as ct, c as Qt, A as et, d as qn } from "./context-TUjw9eqr.js";
19
+ import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-8jqfI7hI.js";
20
+ import { e$ as yo, aX as xo, v as Rr } from "./global-date-filter-utils-BXgCpvQM.js";
21
+ import { o as Kn, p as wo } from "./report-preferences-dialog-C2YUIwKG.js";
22
+ import { c as _o } from "./document-dashboard-inputs-CvBbFTUA.js";
24
23
  import { w as Io, c as Wn } from "./visual-choice-JiJ-_3bi.js";
25
- import { m as So, v as Gn, t as No, n as ko, k as ve, d as Eo, b as To, l as pr, w as Ao, h as Co, s as er, f as $o, a as Oo } from "./model-change-CJEj3ZD6.js";
26
- import { ak as Zr, al as jr, am as Dr, an as Fr, a3 as zo, a1 as Mo } from "./temporal-input-presentation-AhLSkGPf.js";
27
- import { L as Po } from "./list-filter-3sbH0Uy1.js";
28
- import { u as Ro, v as Zo, w as jo, x as wt, y as Do, z as Lr, A as Fo } from "./pivot-result-contract-expectations-DOYhqeZb.js";
29
- import { L as Ur } from "./layout-grid-Bbz3zKif.js";
24
+ import { m as So, v as Gn, t as No, n as ko, k as ve, d as Eo, b as To, l as pr, w as Ao, h as Co, s as er, f as $o, a as Oo } from "./model-change-B5wQhg5G.js";
25
+ import { aL as zo, aM as Mo, aN as Po, aO as wt, aP as Ro, aQ as Zr, aR as Dr, aS as jr, aT as Fr, aU as Lr, aV as Zo, ac as Do, aa as jo } from "./temporal-input-presentation-B77JsAzU.js";
26
+ import { L as Fo } from "./list-filter-BklYgciR.js";
27
+ import { L as Ur } from "./layout-grid-CtvCBfOm.js";
30
28
  function Lo(e, t, r) {
31
- const n = Ro(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Zo, s = jo(e, t);
29
+ const n = zo(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Mo, s = Po(e, t);
32
30
  if (isNaN(s))
33
31
  throw new RangeError("Invalid time value");
34
32
  const o = Object.assign({}, r, {
@@ -37,9 +35,9 @@ function Lo(e, t, r) {
37
35
  });
38
36
  let c, f;
39
37
  s > 0 ? (c = wt(t), f = wt(e)) : (c = wt(e), f = wt(t));
40
- const i = Do((r == null ? void 0 : r.roundingMethod) ?? "round"), g = f.getTime() - c.getTime(), u = g / Fr, m = Lr(f) - Lr(c), w = (g - m) / Fr, I = r == null ? void 0 : r.unit;
38
+ const i = Ro((r == null ? void 0 : r.roundingMethod) ?? "round"), g = f.getTime() - c.getTime(), u = g / Lr, m = Zr(f) - Zr(c), w = (g - m) / Lr, I = r == null ? void 0 : r.unit;
41
39
  let E;
42
- if (I ? E = I : u < 1 ? E = "second" : u < 60 ? E = "minute" : u < Zr ? E = "hour" : w < jr ? E = "day" : w < Dr ? E = "month" : E = "year", E === "second") {
40
+ if (I ? E = I : u < 1 ? E = "second" : u < 60 ? E = "minute" : u < Dr ? E = "hour" : w < jr ? E = "day" : w < Fr ? E = "month" : E = "year", E === "second") {
43
41
  const _ = i(g / 1e3);
44
42
  return a.formatDistance("xSeconds", _, o);
45
43
  } else if (E === "minute") {
@@ -49,18 +47,18 @@ function Lo(e, t, r) {
49
47
  const _ = i(u / 60);
50
48
  return a.formatDistance("xHours", _, o);
51
49
  } else if (E === "day") {
52
- const _ = i(w / Zr);
50
+ const _ = i(w / Dr);
53
51
  return a.formatDistance("xDays", _, o);
54
52
  } else if (E === "month") {
55
53
  const _ = i(w / jr);
56
54
  return _ === 12 && I !== "month" ? a.formatDistance("xYears", 1, o) : a.formatDistance("xMonths", _, o);
57
55
  } else {
58
- const _ = i(w / Dr);
56
+ const _ = i(w / Fr);
59
57
  return a.formatDistance("xYears", _, o);
60
58
  }
61
59
  }
62
60
  function Uo(e, t) {
63
- return Lo(e, Fo(e), t);
61
+ return Lo(e, Zo(e), t);
64
62
  }
65
63
  /**
66
64
  * @license lucide-react v0.453.0 - ISC
@@ -151,7 +149,7 @@ function Go(e = "dashboard") {
151
149
  return t && Br(t.reads, [r]) || (t = { reads: [r], sent: { context: Pr({ surface: "none", timeZone: r }) } }), t.sent;
152
150
  } : ({ focus: r, snapshot: n, editing: a }) => {
153
151
  var I;
154
- const s = X.getState(), o = (I = s.reportContext) == null ? void 0 : I.calendar;
152
+ const s = Q.getState(), o = (I = s.reportContext) == null ? void 0 : I.calendar;
155
153
  if (!o) throw new Yn();
156
154
  const c = a ? a.card.id : r == null ? void 0 : r.cardId, f = c ? (n == null ? void 0 : n.cardId) === c && n.draft === !!a && (!a || n.card === a.card) ? n.snapshot : "pending" : void 0, i = {
157
155
  surface: "dashboard",
@@ -196,29 +194,29 @@ function Br(e, t) {
196
194
  return e.length === t.length && e.every((r, n) => Object.is(r, t[n]));
197
195
  }
198
196
  function Ho(e) {
199
- const { canChange: t, canChangeNow: r } = Kn(e.surface === "dashboard"), n = X((i) => {
197
+ const { canChange: t, canChangeNow: r } = Kn(e.surface === "dashboard"), n = Q((i) => {
200
198
  var u, m;
201
199
  const g = (m = (u = i.dashboard) == null ? void 0 : u.sheets) == null ? void 0 : m.find((w) => w.id === i.selectedSheetId);
202
200
  return !!g && !xo(g);
203
- }), a = X((i) => i.isVisualEditing), s = $s(), o = Os();
201
+ }), a = Q((i) => i.isVisualEditing), s = $s(), o = Os();
204
202
  return { add: te(
205
203
  async (i, g) => {
206
204
  var T, O;
207
- const u = X.getState(), m = (T = u.dashboard) == null ? void 0 : T.id, w = u.selectedSheetId;
205
+ const u = Q.getState(), m = (T = u.dashboard) == null ? void 0 : T.id, w = u.selectedSheetId;
208
206
  if (!m || !w) throw new at(Ut);
209
- const I = { title: i.title, type: So[g], ...i.card }, E = !Qo({ ...I, id: "check" }, i, g), _ = { ...I, ...E ? { type: "table" } : {}, id: Rr() }, x = { id: Rr(), cards: [_], activeCardId: _.id }, y = await o(x, { reuseLoaded: !0 }).catch((K) => {
207
+ const I = { title: i.title, type: So[g], ...i.card }, E = !Xo({ ...I, id: "check" }, i, g), _ = { ...I, ...E ? { type: "table" } : {}, id: Rr() }, x = { id: Rr(), cards: [_], activeCardId: _.id }, y = await o(x, { reuseLoaded: !0 }).catch((K) => {
210
208
  console.warn("Adding the result without refreshed semantic metadata:", K);
211
- }), h = structuredClone(X.getState().semanticExecutionPayload);
209
+ }), h = structuredClone(Q.getState().semanticExecutionPayload);
212
210
  zs(h, y);
213
211
  const d = Io(
214
212
  _.config ?? {},
215
- Xo(_, w, h, s)
216
- ), v = d === (_.config ?? {}) ? x : { ...x, cards: [{ ..._, config: d }] }, b = X.getState();
213
+ Qo(_, w, h, s)
214
+ ), v = d === (_.config ?? {}) ? x : { ...x, cards: [{ ..._, config: d }] }, b = Q.getState();
217
215
  if (((O = b.dashboard) == null ? void 0 : O.id) !== m || b.selectedSheetId !== w || b.isVisualEditing)
218
216
  throw new at(Ut);
219
217
  if (!r()) throw new at(Yo);
220
218
  const { actions: N } = b;
221
- if (N.setIsDashboardEditing(!0), N.addFrame(w, v, { semanticExecutionPayload: y }), !Qn(X.getState().dashboard, v.id))
219
+ if (N.setIsDashboardEditing(!0), N.addFrame(w, v, { semanticExecutionPayload: y }), !Xn(Q.getState().dashboard, v.id))
222
220
  throw b.isDashboardEditing || N.setIsDashboardEditing(!1), new at(Ut);
223
221
  return { frameId: v.id, asTable: E };
224
222
  },
@@ -226,7 +224,7 @@ function Ho(e) {
226
224
  ), available: t && n && !a };
227
225
  }
228
226
  const Ut = "The dashboard changed while this was being added. Try again.", Yo = "Changes to this dashboard can't be saved here, so the card wasn't added.";
229
- function Qo(e, t, r) {
227
+ function Xo(e, t, r) {
230
228
  if (r !== "line" && r !== "bar" && r !== "stackedBar") return !0;
231
229
  const n = Wn(Gn(t), r);
232
230
  if (!n.ok) return !1;
@@ -238,16 +236,16 @@ class at extends Error {
238
236
  super(t), this.name = "AddToDashboardRefusedError";
239
237
  }
240
238
  }
241
- function Qn(e, t) {
239
+ function Xn(e, t) {
242
240
  var r;
243
241
  return !!((r = e == null ? void 0 : e.sheets) != null && r.some((n) => {
244
242
  var a;
245
243
  return (a = n.frames) == null ? void 0 : a.some((s) => s.id === t);
246
244
  }));
247
245
  }
248
- function Xo(e, t, r, n) {
246
+ function Qo(e, t, r, n) {
249
247
  var o;
250
- const a = Ps(X.getState()), s = _o({
248
+ const a = Ps(Q.getState()), s = _o({
251
249
  ...a,
252
250
  cardId: e.id,
253
251
  cardOverride: e,
@@ -260,7 +258,7 @@ function Xo(e, t, r, n) {
260
258
  (c) => c.dateOwner !== "global_date"
261
259
  );
262
260
  }
263
- const Xn = "vercel.ai.error", ei = Symbol.for(Xn);
261
+ const Qn = "vercel.ai.error", ei = Symbol.for(Qn);
264
262
  var re = class ea extends Error {
265
263
  /**
266
264
  * Creates an AI SDK Error.
@@ -279,7 +277,7 @@ var re = class ea extends Error {
279
277
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
280
278
  */
281
279
  static isInstance(t) {
282
- return ea.hasMarker(t, Xn);
280
+ return ea.hasMarker(t, Qn);
283
281
  }
284
282
  static hasMarker(t, r) {
285
283
  const n = Symbol.for(r);
@@ -459,7 +457,7 @@ function di(e, t) {
459
457
  const r = (e.toString().split(".")[1] || "").length, n = (t.toString().split(".")[1] || "").length, a = r > n ? r : n, s = Number.parseInt(e.toFixed(a).replace(".", "")), o = Number.parseInt(t.toFixed(a).replace(".", ""));
460
458
  return s % o / 10 ** a;
461
459
  }
462
- function j(e, t, r) {
460
+ function D(e, t, r) {
463
461
  Object.defineProperty(e, t, {
464
462
  get() {
465
463
  {
@@ -759,10 +757,10 @@ const Si = (e) => (t, r, n, a) => {
759
757
  error: new e(s.issues.map((o) => Te(o, a, Ee())))
760
758
  } : { success: !0, data: s.value };
761
759
  }, Ei = /* @__PURE__ */ wa(ya), Ti = /^[cC][^\s-]{8,}$/, Ai = /^[0-9a-z]+$/, Ci = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, $i = /^[0-9a-vA-V]{20}$/, Oi = /^[A-Za-z0-9]{27}$/, zi = /^[a-zA-Z0-9_-]{21}$/, Mi = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Pi = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Jr = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, Ri = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Zi = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
762
- function ji() {
760
+ function Di() {
763
761
  return new RegExp(Zi, "u");
764
762
  }
765
- const Di = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Fi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Li = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ui = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Bi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, _a = /^[A-Za-z0-9_-]*$/, Vi = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, qi = /^\+(?:[0-9]){6,14}[0-9]$/, Ia = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ji = /* @__PURE__ */ new RegExp(`^${Ia}$`);
763
+ const ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Fi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Li = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ui = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Bi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, _a = /^[A-Za-z0-9_-]*$/, Vi = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, qi = /^\+(?:[0-9]){6,14}[0-9]$/, Ia = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ji = /* @__PURE__ */ new RegExp(`^${Ia}$`);
766
764
  function Sa(e) {
767
765
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
768
766
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
@@ -779,7 +777,7 @@ function Wi(e) {
779
777
  const Gi = (e) => {
780
778
  const t = e ? `[\\s\\S]{${(e == null ? void 0 : e.minimum) ?? 0},${(e == null ? void 0 : e.maximum) ?? ""}}` : "[\\s\\S]*";
781
779
  return new RegExp(`^${t}$`);
782
- }, Hi = /^\d+$/, Yi = /^-?\d+(?:\.\d+)?/i, Qi = /true|false/i, Xi = /null/i, el = /^[^A-Z]*$/, tl = /^[^a-z]*$/, le = /* @__PURE__ */ S("$ZodCheck", (e, t) => {
780
+ }, Hi = /^\d+$/, Yi = /^-?\d+(?:\.\d+)?/i, Xi = /true|false/i, Qi = /null/i, el = /^[^A-Z]*$/, tl = /^[^a-z]*$/, le = /* @__PURE__ */ S("$ZodCheck", (e, t) => {
783
781
  var r;
784
782
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
785
783
  }), Na = {
@@ -1213,7 +1211,7 @@ const hl = {
1213
1211
  }
1214
1212
  };
1215
1213
  }), xl = /* @__PURE__ */ S("$ZodEmoji", (e, t) => {
1216
- t.pattern ?? (t.pattern = ji()), V.init(e, t);
1214
+ t.pattern ?? (t.pattern = Di()), V.init(e, t);
1217
1215
  }), wl = /* @__PURE__ */ S("$ZodNanoID", (e, t) => {
1218
1216
  t.pattern ?? (t.pattern = zi), V.init(e, t);
1219
1217
  }), _l = /* @__PURE__ */ S("$ZodCUID", (e, t) => {
@@ -1235,7 +1233,7 @@ const hl = {
1235
1233
  }), Cl = /* @__PURE__ */ S("$ZodISODuration", (e, t) => {
1236
1234
  t.pattern ?? (t.pattern = Mi), V.init(e, t);
1237
1235
  }), $l = /* @__PURE__ */ S("$ZodIPv4", (e, t) => {
1238
- t.pattern ?? (t.pattern = Di), V.init(e, t), e._zod.onattach.push((r) => {
1236
+ t.pattern ?? (t.pattern = ji), V.init(e, t), e._zod.onattach.push((r) => {
1239
1237
  const n = r._zod.bag;
1240
1238
  n.format = "ipv4";
1241
1239
  });
@@ -1323,10 +1321,10 @@ const Zl = /* @__PURE__ */ S("$ZodBase64URL", (e, t) => {
1323
1321
  continue: !t.abort
1324
1322
  });
1325
1323
  };
1326
- }), jl = /* @__PURE__ */ S("$ZodE164", (e, t) => {
1324
+ }), Dl = /* @__PURE__ */ S("$ZodE164", (e, t) => {
1327
1325
  t.pattern ?? (t.pattern = qi), V.init(e, t);
1328
1326
  });
1329
- function Dl(e, t = null) {
1327
+ function jl(e, t = null) {
1330
1328
  try {
1331
1329
  const r = e.split(".");
1332
1330
  if (r.length !== 3)
@@ -1342,7 +1340,7 @@ function Dl(e, t = null) {
1342
1340
  }
1343
1341
  const Fl = /* @__PURE__ */ S("$ZodJWT", (e, t) => {
1344
1342
  V.init(e, t), e._zod.check = (r) => {
1345
- Dl(r.value, t.alg) || r.issues.push({
1343
+ jl(r.value, t.alg) || r.issues.push({
1346
1344
  code: "invalid_format",
1347
1345
  format: "jwt",
1348
1346
  input: r.value,
@@ -1372,7 +1370,7 @@ const Fl = /* @__PURE__ */ S("$ZodJWT", (e, t) => {
1372
1370
  }), Ll = /* @__PURE__ */ S("$ZodNumber", (e, t) => {
1373
1371
  nl.init(e, t), Aa.init(e, t);
1374
1372
  }), Ul = /* @__PURE__ */ S("$ZodBoolean", (e, t) => {
1375
- U.init(e, t), e._zod.pattern = Qi, e._zod.parse = (r, n) => {
1373
+ U.init(e, t), e._zod.pattern = Xi, e._zod.parse = (r, n) => {
1376
1374
  if (t.coerce)
1377
1375
  try {
1378
1376
  r.value = !!r.value;
@@ -1387,7 +1385,7 @@ const Fl = /* @__PURE__ */ S("$ZodJWT", (e, t) => {
1387
1385
  }), r;
1388
1386
  };
1389
1387
  }), Bl = /* @__PURE__ */ S("$ZodNull", (e, t) => {
1390
- U.init(e, t), e._zod.pattern = Xi, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1388
+ U.init(e, t), e._zod.pattern = Qi, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1391
1389
  const a = r.value;
1392
1390
  return a === null || r.issues.push({
1393
1391
  expected: "null",
@@ -1453,7 +1451,7 @@ const Kl = /* @__PURE__ */ S("$ZodObject", (e, t) => {
1453
1451
  optionalKeys: new Set(m)
1454
1452
  };
1455
1453
  });
1456
- j(e._zod, "propValues", () => {
1454
+ D(e._zod, "propValues", () => {
1457
1455
  const u = t.shape, m = {};
1458
1456
  for (const w in u) {
1459
1457
  const I = u[w]._zod;
@@ -1570,10 +1568,10 @@ function Gr(e, t, r, n) {
1570
1568
  }), t;
1571
1569
  }
1572
1570
  const Ca = /* @__PURE__ */ S("$ZodUnion", (e, t) => {
1573
- U.init(e, t), j(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), j(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), j(e._zod, "values", () => {
1571
+ U.init(e, t), D(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), D(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), D(e._zod, "values", () => {
1574
1572
  if (t.options.every((r) => r._zod.values))
1575
1573
  return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1576
- }), j(e._zod, "pattern", () => {
1574
+ }), D(e._zod, "pattern", () => {
1577
1575
  if (t.options.every((r) => r._zod.pattern)) {
1578
1576
  const r = t.options.map((n) => n._zod.pattern);
1579
1577
  return new RegExp(`^(${r.map((n) => hr(n.source)).join("|")})$`);
@@ -1599,7 +1597,7 @@ const Ca = /* @__PURE__ */ S("$ZodUnion", (e, t) => {
1599
1597
  }), Wl = /* @__PURE__ */ S("$ZodDiscriminatedUnion", (e, t) => {
1600
1598
  Ca.init(e, t);
1601
1599
  const r = e._zod.parse;
1602
- j(e._zod, "propValues", () => {
1600
+ D(e._zod, "propValues", () => {
1603
1601
  const a = {};
1604
1602
  for (const s of t.options) {
1605
1603
  const o = s._zod.propValues;
@@ -1764,7 +1762,7 @@ const Hl = /* @__PURE__ */ S("$ZodRecord", (e, t) => {
1764
1762
  inst: e
1765
1763
  }), n;
1766
1764
  };
1767
- }), Ql = /* @__PURE__ */ S("$ZodLiteral", (e, t) => {
1765
+ }), Xl = /* @__PURE__ */ S("$ZodLiteral", (e, t) => {
1768
1766
  U.init(e, t), e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? ht(r) : r ? r.toString() : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1769
1767
  const a = r.value;
1770
1768
  return e._zod.values.has(a) || r.issues.push({
@@ -1774,7 +1772,7 @@ const Hl = /* @__PURE__ */ S("$ZodRecord", (e, t) => {
1774
1772
  inst: e
1775
1773
  }), r;
1776
1774
  };
1777
- }), Xl = /* @__PURE__ */ S("$ZodTransform", (e, t) => {
1775
+ }), Ql = /* @__PURE__ */ S("$ZodTransform", (e, t) => {
1778
1776
  U.init(e, t), e._zod.parse = (r, n) => {
1779
1777
  const a = t.transform(r.value, r);
1780
1778
  if (n.async)
@@ -1784,17 +1782,17 @@ const Hl = /* @__PURE__ */ S("$ZodRecord", (e, t) => {
1784
1782
  return r.value = a, r;
1785
1783
  };
1786
1784
  }), ec = /* @__PURE__ */ S("$ZodOptional", (e, t) => {
1787
- U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", j(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), j(e._zod, "pattern", () => {
1785
+ U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", D(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), D(e._zod, "pattern", () => {
1788
1786
  const r = t.innerType._zod.pattern;
1789
1787
  return r ? new RegExp(`^(${hr(r.source)})?$`) : void 0;
1790
1788
  }), e._zod.parse = (r, n) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(r, n) : r.value === void 0 ? r : t.innerType._zod.run(r, n);
1791
1789
  }), tc = /* @__PURE__ */ S("$ZodNullable", (e, t) => {
1792
- U.init(e, t), j(e._zod, "optin", () => t.innerType._zod.optin), j(e._zod, "optout", () => t.innerType._zod.optout), j(e._zod, "pattern", () => {
1790
+ U.init(e, t), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "pattern", () => {
1793
1791
  const r = t.innerType._zod.pattern;
1794
1792
  return r ? new RegExp(`^(${hr(r.source)}|null)$`) : void 0;
1795
- }), j(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1793
+ }), D(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1796
1794
  }), rc = /* @__PURE__ */ S("$ZodDefault", (e, t) => {
1797
- U.init(e, t), e._zod.optin = "optional", j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1795
+ U.init(e, t), e._zod.optin = "optional", D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1798
1796
  if (r.value === void 0)
1799
1797
  return r.value = t.defaultValue, r;
1800
1798
  const a = t.innerType._zod.run(r, n);
@@ -1805,17 +1803,17 @@ function Yr(e, t) {
1805
1803
  return e.value === void 0 && (e.value = t.defaultValue), e;
1806
1804
  }
1807
1805
  const nc = /* @__PURE__ */ S("$ZodPrefault", (e, t) => {
1808
- U.init(e, t), e._zod.optin = "optional", j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1806
+ U.init(e, t), e._zod.optin = "optional", D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1809
1807
  }), ac = /* @__PURE__ */ S("$ZodNonOptional", (e, t) => {
1810
- U.init(e, t), j(e._zod, "values", () => {
1808
+ U.init(e, t), D(e._zod, "values", () => {
1811
1809
  const r = t.innerType._zod.values;
1812
1810
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1813
1811
  }), e._zod.parse = (r, n) => {
1814
1812
  const a = t.innerType._zod.run(r, n);
1815
- return a instanceof Promise ? a.then((s) => Qr(s, e)) : Qr(a, e);
1813
+ return a instanceof Promise ? a.then((s) => Xr(s, e)) : Xr(a, e);
1816
1814
  };
1817
1815
  });
1818
- function Qr(e, t) {
1816
+ function Xr(e, t) {
1819
1817
  return !e.issues.length && e.value === void 0 && e.issues.push({
1820
1818
  code: "invalid_type",
1821
1819
  expected: "nonoptional",
@@ -1824,7 +1822,7 @@ function Qr(e, t) {
1824
1822
  }), e;
1825
1823
  }
1826
1824
  const sc = /* @__PURE__ */ S("$ZodCatch", (e, t) => {
1827
- U.init(e, t), e._zod.optin = "optional", j(e._zod, "optout", () => t.innerType._zod.optout), j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1825
+ U.init(e, t), e._zod.optin = "optional", D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1828
1826
  const a = t.innerType._zod.run(r, n);
1829
1827
  return a instanceof Promise ? a.then((s) => (r.value = s.value, s.issues.length && (r.value = t.catchValue({
1830
1828
  ...r,
@@ -1841,16 +1839,16 @@ const sc = /* @__PURE__ */ S("$ZodCatch", (e, t) => {
1841
1839
  }), r.issues = []), r);
1842
1840
  };
1843
1841
  }), oc = /* @__PURE__ */ S("$ZodPipe", (e, t) => {
1844
- U.init(e, t), j(e._zod, "values", () => t.in._zod.values), j(e._zod, "optin", () => t.in._zod.optin), j(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1842
+ U.init(e, t), D(e._zod, "values", () => t.in._zod.values), D(e._zod, "optin", () => t.in._zod.optin), D(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1845
1843
  const a = t.in._zod.run(r, n);
1846
- return a instanceof Promise ? a.then((s) => Xr(s, t, n)) : Xr(a, t, n);
1844
+ return a instanceof Promise ? a.then((s) => Qr(s, t, n)) : Qr(a, t, n);
1847
1845
  };
1848
1846
  });
1849
- function Xr(e, t, r) {
1847
+ function Qr(e, t, r) {
1850
1848
  return ot(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1851
1849
  }
1852
1850
  const ic = /* @__PURE__ */ S("$ZodReadonly", (e, t) => {
1853
- U.init(e, t), j(e._zod, "propValues", () => t.innerType._zod.propValues), j(e._zod, "values", () => t.innerType._zod.values), j(e._zod, "optin", () => t.innerType._zod.optin), j(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1851
+ U.init(e, t), D(e._zod, "propValues", () => t.innerType._zod.propValues), D(e._zod, "values", () => t.innerType._zod.values), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1854
1852
  const a = t.innerType._zod.run(r, n);
1855
1853
  return a instanceof Promise ? a.then(en) : en(a);
1856
1854
  };
@@ -1859,7 +1857,7 @@ function en(e) {
1859
1857
  return e.value = Object.freeze(e.value), e;
1860
1858
  }
1861
1859
  const lc = /* @__PURE__ */ S("$ZodLazy", (e, t) => {
1862
- U.init(e, t), j(e._zod, "innerType", () => t.getter()), j(e._zod, "pattern", () => e._zod.innerType._zod.pattern), j(e._zod, "propValues", () => e._zod.innerType._zod.propValues), j(e._zod, "optin", () => e._zod.innerType._zod.optin), j(e._zod, "optout", () => e._zod.innerType._zod.optout), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1860
+ U.init(e, t), D(e._zod, "innerType", () => t.getter()), D(e._zod, "pattern", () => e._zod.innerType._zod.pattern), D(e._zod, "propValues", () => e._zod.innerType._zod.propValues), D(e._zod, "optin", () => e._zod.innerType._zod.optin), D(e._zod, "optout", () => e._zod.innerType._zod.optout), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1863
1861
  }), cc = /* @__PURE__ */ S("$ZodCustom", (e, t) => {
1864
1862
  le.init(e, t), U.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1865
1863
  const n = r.value, a = t.fn(n);
@@ -2169,7 +2167,7 @@ function Zc(e, t) {
2169
2167
  ...$(t)
2170
2168
  });
2171
2169
  }
2172
- function jc(e, t) {
2170
+ function Dc(e, t) {
2173
2171
  return new e({
2174
2172
  type: "number",
2175
2173
  check: "number_format",
@@ -2178,7 +2176,7 @@ function jc(e, t) {
2178
2176
  ...$(t)
2179
2177
  });
2180
2178
  }
2181
- function Dc(e, t) {
2179
+ function jc(e, t) {
2182
2180
  return new e({
2183
2181
  type: "boolean",
2184
2182
  ...$(t)
@@ -2322,10 +2320,10 @@ function Hc() {
2322
2320
  function Yc() {
2323
2321
  return gt((e) => e.toLowerCase());
2324
2322
  }
2325
- function Qc() {
2323
+ function Xc() {
2326
2324
  return gt((e) => e.toUpperCase());
2327
2325
  }
2328
- function Xc(e, t, r) {
2326
+ function Qc(e, t, r) {
2329
2327
  return new e({
2330
2328
  type: "array",
2331
2329
  element: t,
@@ -2912,9 +2910,9 @@ const du = (e, t) => {
2912
2910
  // enumerable: false,
2913
2911
  }
2914
2912
  });
2915
- }, jt = S("ZodError", du, {
2913
+ }, Dt = S("ZodError", du, {
2916
2914
  Parent: Error
2917
- }), pu = /* @__PURE__ */ Si(jt), fu = /* @__PURE__ */ Ni(jt), mu = /* @__PURE__ */ xa(jt), Ma = /* @__PURE__ */ wa(jt), q = /* @__PURE__ */ S("ZodType", (e, t) => (U.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2915
+ }), pu = /* @__PURE__ */ Si(Dt), fu = /* @__PURE__ */ Ni(Dt), mu = /* @__PURE__ */ xa(Dt), Ma = /* @__PURE__ */ wa(Dt), q = /* @__PURE__ */ S("ZodType", (e, t) => (U.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2918
2916
  {
2919
2917
  ...t,
2920
2918
  checks: [
@@ -2923,7 +2921,7 @@ const du = (e, t) => {
2923
2921
  ]
2924
2922
  }
2925
2923
  // { parent: true }
2926
- ), e.clone = (r, n) => Je(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => pu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => mu(e, r, n), e.parseAsync = async (r, n) => fu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Ma(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(gd(r, n)), e.superRefine = (r) => e.check(bd(r)), e.overwrite = (r) => e.check(gt(r)), e.optional = () => un(e), e.nullable = () => dn(e), e.nullish = () => un(dn(e)), e.nonoptional = (r) => od(e, r), e.array = () => ja(e), e.or = (r) => La([e, r]), e.and = (r) => Wu(e, r), e.transform = (r) => pn(e, ed(r)), e.default = (r) => nd(e, r), e.prefault = (r) => sd(e, r), e.catch = (r) => ld(e, r), e.pipe = (r) => pn(e, r), e.readonly = () => dd(e), e.describe = (r) => {
2924
+ ), e.clone = (r, n) => Je(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => pu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => mu(e, r, n), e.parseAsync = async (r, n) => fu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Ma(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(gd(r, n)), e.superRefine = (r) => e.check(bd(r)), e.overwrite = (r) => e.check(gt(r)), e.optional = () => un(e), e.nullable = () => dn(e), e.nullish = () => un(dn(e)), e.nonoptional = (r) => od(e, r), e.array = () => Da(e), e.or = (r) => La([e, r]), e.and = (r) => Wu(e, r), e.transform = (r) => pn(e, ed(r)), e.default = (r) => nd(e, r), e.prefault = (r) => sd(e, r), e.catch = (r) => ld(e, r), e.pipe = (r) => pn(e, r), e.readonly = () => dd(e), e.describe = (r) => {
2927
2925
  const n = e.clone();
2928
2926
  return st.add(n, { description: r }), n;
2929
2927
  }, Object.defineProperty(e, "description", {
@@ -2940,7 +2938,7 @@ const du = (e, t) => {
2940
2938
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Pa = /* @__PURE__ */ S("_ZodString", (e, t) => {
2941
2939
  br.init(e, t), q.init(e, t);
2942
2940
  const r = e._zod.bag;
2943
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Bc(...n)), e.includes = (...n) => e.check(Jc(...n)), e.startsWith = (...n) => e.check(Kc(...n)), e.endsWith = (...n) => e.check(Wc(...n)), e.min = (...n) => e.check($t(...n)), e.max = (...n) => e.check(Oa(...n)), e.length = (...n) => e.check(za(...n)), e.nonempty = (...n) => e.check($t(1, ...n)), e.lowercase = (n) => e.check(Vc(n)), e.uppercase = (n) => e.check(qc(n)), e.trim = () => e.check(Hc()), e.normalize = (...n) => e.check(Gc(...n)), e.toLowerCase = () => e.check(Yc()), e.toUpperCase = () => e.check(Qc());
2941
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Bc(...n)), e.includes = (...n) => e.check(Jc(...n)), e.startsWith = (...n) => e.check(Kc(...n)), e.endsWith = (...n) => e.check(Wc(...n)), e.min = (...n) => e.check($t(...n)), e.max = (...n) => e.check(Oa(...n)), e.length = (...n) => e.check(za(...n)), e.nonempty = (...n) => e.check($t(1, ...n)), e.lowercase = (n) => e.check(Vc(n)), e.uppercase = (n) => e.check(qc(n)), e.trim = () => e.check(Hc()), e.normalize = (...n) => e.check(Gc(...n)), e.toLowerCase = () => e.check(Yc()), e.toUpperCase = () => e.check(Xc());
2944
2942
  }), hu = /* @__PURE__ */ S("ZodString", (e, t) => {
2945
2943
  br.init(e, t), Pa.init(e, t), e.email = (r) => e.check(pc(bu, r)), e.url = (r) => e.check(bc(vu, r)), e.jwt = (r) => e.check(Oc(zu, r)), e.emoji = (r) => e.check(vc(yu, r)), e.guid = (r) => e.check(rn(ln, r)), e.uuid = (r) => e.check(fc(St, r)), e.uuidv4 = (r) => e.check(mc(St, r)), e.uuidv6 = (r) => e.check(hc(St, r)), e.uuidv7 = (r) => e.check(gc(St, r)), e.nanoid = (r) => e.check(yc(xu, r)), e.guid = (r) => e.check(rn(ln, r)), e.cuid = (r) => e.check(xc(wu, r)), e.cuid2 = (r) => e.check(wc(_u, r)), e.ulid = (r) => e.check(_c(Iu, r)), e.base64 = (r) => e.check(Ac(Cu, r)), e.base64url = (r) => e.check(Cc($u, r)), e.xid = (r) => e.check(Ic(Su, r)), e.ksuid = (r) => e.check(Sc(Nu, r)), e.ipv4 = (r) => e.check(Nc(ku, r)), e.ipv6 = (r) => e.check(kc(Eu, r)), e.cidrv4 = (r) => e.check(Ec(Tu, r)), e.cidrv6 = (r) => e.check(Tc(Au, r)), e.e164 = (r) => e.check($c(Ou, r)), e.datetime = (r) => e.check(au(r)), e.date = (r) => e.check(ou(r)), e.time = (r) => e.check(lu(r)), e.duration = (r) => e.check(uu(r));
2946
2944
  });
@@ -2984,7 +2982,7 @@ const J = /* @__PURE__ */ S("ZodStringFormat", (e, t) => {
2984
2982
  }), $u = /* @__PURE__ */ S("ZodBase64URL", (e, t) => {
2985
2983
  Zl.init(e, t), J.init(e, t);
2986
2984
  }), Ou = /* @__PURE__ */ S("ZodE164", (e, t) => {
2987
- jl.init(e, t), J.init(e, t);
2985
+ Dl.init(e, t), J.init(e, t);
2988
2986
  }), zu = /* @__PURE__ */ S("ZodJWT", (e, t) => {
2989
2987
  Fl.init(e, t), J.init(e, t);
2990
2988
  }), Ra = /* @__PURE__ */ S("ZodNumber", (e, t) => {
@@ -2999,19 +2997,19 @@ const Pu = /* @__PURE__ */ S("ZodNumberFormat", (e, t) => {
2999
2997
  Ll.init(e, t), Ra.init(e, t);
3000
2998
  });
3001
2999
  function cn(e) {
3002
- return jc(Pu, e);
3000
+ return Dc(Pu, e);
3003
3001
  }
3004
3002
  const Ru = /* @__PURE__ */ S("ZodBoolean", (e, t) => {
3005
3003
  Ul.init(e, t), q.init(e, t);
3006
3004
  });
3007
3005
  function Zu(e) {
3008
- return Dc(Ru, e);
3006
+ return jc(Ru, e);
3009
3007
  }
3010
- const ju = /* @__PURE__ */ S("ZodNull", (e, t) => {
3008
+ const Du = /* @__PURE__ */ S("ZodNull", (e, t) => {
3011
3009
  Bl.init(e, t), q.init(e, t);
3012
3010
  });
3013
- function Du(e) {
3014
- return Fc(ju, e);
3011
+ function ju(e) {
3012
+ return Fc(Du, e);
3015
3013
  }
3016
3014
  const Fu = /* @__PURE__ */ S("ZodUnknown", (e, t) => {
3017
3015
  Vl.init(e, t), q.init(e, t);
@@ -3028,11 +3026,11 @@ function Za(e) {
3028
3026
  const Uu = /* @__PURE__ */ S("ZodArray", (e, t) => {
3029
3027
  Jl.init(e, t), q.init(e, t), e.element = t.element, e.min = (r, n) => e.check($t(r, n)), e.nonempty = (r) => e.check($t(1, r)), e.max = (r, n) => e.check(Oa(r, n)), e.length = (r, n) => e.check(za(r, n)), e.unwrap = () => e.element;
3030
3028
  });
3031
- function ja(e, t) {
3032
- return Xc(Uu, e, t);
3029
+ function Da(e, t) {
3030
+ return Qc(Uu, e, t);
3033
3031
  }
3034
- const Da = /* @__PURE__ */ S("ZodObject", (e, t) => {
3035
- Kl.init(e, t), q.init(e, t), j(e, "shape", () => t.shape), e.keyof = () => Ua(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Za() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => vi(e, r), e.merge = (r) => yi(e, r), e.pick = (r) => gi(e, r), e.omit = (r) => bi(e, r), e.partial = (...r) => xi(Ba, e, r[0]), e.required = (...r) => wi(Va, e, r[0]);
3032
+ const ja = /* @__PURE__ */ S("ZodObject", (e, t) => {
3033
+ Kl.init(e, t), q.init(e, t), D(e, "shape", () => t.shape), e.keyof = () => Ua(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Za() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => vi(e, r), e.merge = (r) => yi(e, r), e.pick = (r) => gi(e, r), e.omit = (r) => bi(e, r), e.partial = (...r) => xi(Ba, e, r[0]), e.required = (...r) => wi(Va, e, r[0]);
3036
3034
  });
3037
3035
  function Bu(e, t) {
3038
3036
  const r = {
@@ -3042,10 +3040,10 @@ function Bu(e, t) {
3042
3040
  },
3043
3041
  ...$(t)
3044
3042
  };
3045
- return new Da(r);
3043
+ return new ja(r);
3046
3044
  }
3047
3045
  function Vu(e, t) {
3048
- return new Da({
3046
+ return new ja({
3049
3047
  type: "object",
3050
3048
  get shape() {
3051
3049
  return Rt(this, "shape", { ...e }), this.shape;
@@ -3136,7 +3134,7 @@ function Ua(e, t) {
3136
3134
  });
3137
3135
  }
3138
3136
  const Yu = /* @__PURE__ */ S("ZodLiteral", (e, t) => {
3139
- Ql.init(e, t), q.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3137
+ Xl.init(e, t), q.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3140
3138
  get() {
3141
3139
  if (t.values.length > 1)
3142
3140
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -3144,15 +3142,15 @@ const Yu = /* @__PURE__ */ S("ZodLiteral", (e, t) => {
3144
3142
  }
3145
3143
  });
3146
3144
  });
3147
- function Qu(e, t) {
3145
+ function Xu(e, t) {
3148
3146
  return new Yu({
3149
3147
  type: "literal",
3150
3148
  values: Array.isArray(e) ? e : [e],
3151
3149
  ...$(t)
3152
3150
  });
3153
3151
  }
3154
- const Xu = /* @__PURE__ */ S("ZodTransform", (e, t) => {
3155
- Xl.init(e, t), q.init(e, t), e._zod.parse = (r, n) => {
3152
+ const Qu = /* @__PURE__ */ S("ZodTransform", (e, t) => {
3153
+ Ql.init(e, t), q.init(e, t), e._zod.parse = (r, n) => {
3156
3154
  r.addIssue = (s) => {
3157
3155
  if (typeof s == "string")
3158
3156
  r.issues.push(dt(s, r.value, t));
@@ -3166,7 +3164,7 @@ const Xu = /* @__PURE__ */ S("ZodTransform", (e, t) => {
3166
3164
  };
3167
3165
  });
3168
3166
  function ed(e) {
3169
- return new Xu({
3167
+ return new Qu({
3170
3168
  type: "transform",
3171
3169
  transform: e
3172
3170
  });
@@ -3686,8 +3684,8 @@ function Zd(e) {
3686
3684
  enum: Array.from(e.values)
3687
3685
  };
3688
3686
  }
3689
- const jd = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3690
- function Dd(e, t) {
3687
+ const Dd = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3688
+ function jd(e, t) {
3691
3689
  const r = [F(e.left._def, {
3692
3690
  ...t,
3693
3691
  currentPath: [
@@ -3704,7 +3702,7 @@ function Dd(e, t) {
3704
3702
  ]
3705
3703
  })].filter((a) => !!a), n = [];
3706
3704
  return r.forEach((a) => {
3707
- if (jd(a)) n.push(...a.allOf);
3705
+ if (Dd(a)) n.push(...a.allOf);
3708
3706
  else {
3709
3707
  let s = a;
3710
3708
  if ("additionalProperties" in a && a.additionalProperties === !1) {
@@ -4105,7 +4103,7 @@ function Yd(e, t) {
4105
4103
  for (const o in a) {
4106
4104
  let c = a[o];
4107
4105
  if (c === void 0 || c._def === void 0) continue;
4108
- const f = Xd(c), i = F(c._def, {
4106
+ const f = Qd(c), i = F(c._def, {
4109
4107
  ...t,
4110
4108
  currentPath: [
4111
4109
  ...t.currentPath,
@@ -4121,10 +4119,10 @@ function Yd(e, t) {
4121
4119
  i !== void 0 && (r.properties[o] = i, f || n.push(o));
4122
4120
  }
4123
4121
  n.length && (r.required = n);
4124
- const s = Qd(e, t);
4122
+ const s = Xd(e, t);
4125
4123
  return s !== void 0 && (r.additionalProperties = s), r;
4126
4124
  }
4127
- function Qd(e, t) {
4125
+ function Xd(e, t) {
4128
4126
  if (e.catchall._def.typeName !== "ZodNever") return F(e.catchall._def, {
4129
4127
  ...t,
4130
4128
  currentPath: [...t.currentPath, "additionalProperties"]
@@ -4138,7 +4136,7 @@ function Qd(e, t) {
4138
4136
  return t.removeAdditionalStrategy === "strict" ? t.allowedAdditionalProperties : t.rejectedAdditionalProperties;
4139
4137
  }
4140
4138
  }
4141
- function Xd(e) {
4139
+ function Qd(e) {
4142
4140
  try {
4143
4141
  return e.isOptional();
4144
4142
  } catch {
@@ -4251,7 +4249,7 @@ const ip = (e, t) => F(e.innerType._def, t), lp = (e, t, r) => {
4251
4249
  case "ZodDiscriminatedUnion":
4252
4250
  return Kd(e, r);
4253
4251
  case "ZodIntersection":
4254
- return Dd(e, r);
4252
+ return jd(e, r);
4255
4253
  case "ZodTuple":
4256
4254
  return ap(e, r);
4257
4255
  case "ZodRecord":
@@ -4402,7 +4400,7 @@ function mp(e) {
4402
4400
  let t;
4403
4401
  return () => (t == null && (t = e()), t);
4404
4402
  }
4405
- function Dt(e, { validate: t } = {}) {
4403
+ function jt(e, { validate: t } = {}) {
4406
4404
  return {
4407
4405
  [sr]: !0,
4408
4406
  _type: void 0,
@@ -4416,14 +4414,14 @@ function hp(e) {
4416
4414
  return typeof e == "object" && e !== null && sr in e && e[sr] === !0 && "jsonSchema" in e && "validate" in e;
4417
4415
  }
4418
4416
  function gp(e) {
4419
- return e == null ? Dt({
4417
+ return e == null ? jt({
4420
4418
  type: "object",
4421
4419
  properties: {},
4422
4420
  additionalProperties: !1
4423
4421
  }) : hp(e) ? e : "~standard" in e ? e["~standard"].vendor === "zod" ? Ga(e) : bp(e) : e();
4424
4422
  }
4425
4423
  function bp(e) {
4426
- return Dt(() => {
4424
+ return jt(() => {
4427
4425
  if (!vp(e)) throw new Error(`Standard schema vendor '${e["~standard"].vendor}' does not support JSON Schema conversion.`);
4428
4426
  return yr(e["~standard"].jsonSchema.input({ target: "draft-07" }));
4429
4427
  }, { validate: async (t) => {
@@ -4444,7 +4442,7 @@ function vp(e) {
4444
4442
  return e["~standard"].jsonSchema != null;
4445
4443
  }
4446
4444
  function yp(e, t) {
4447
- return Dt(() => fp(e, { $refStrategy: "none" }), { validate: async (r) => {
4445
+ return jt(() => fp(e, { $refStrategy: "none" }), { validate: async (r) => {
4448
4446
  const n = await e.safeParseAsync(r);
4449
4447
  return n.success ? {
4450
4448
  success: !0,
@@ -4456,7 +4454,7 @@ function yp(e, t) {
4456
4454
  } });
4457
4455
  }
4458
4456
  function xp(e, t) {
4459
- return Dt(() => yr(ru(e, {
4457
+ return jt(() => yr(ru(e, {
4460
4458
  target: "draft-7",
4461
4459
  io: "input",
4462
4460
  reused: "inline"
@@ -4558,7 +4556,7 @@ async function He(e) {
4558
4556
  return typeof e == "function" && (e = e()), e;
4559
4557
  }
4560
4558
  new TextDecoder();
4561
- const Ya = "AI_InvalidArgumentError", Qa = `vercel.ai.error.${Ya}`, Ip = Symbol.for(Qa);
4559
+ const Ya = "AI_InvalidArgumentError", Xa = `vercel.ai.error.${Ya}`, Ip = Symbol.for(Xa);
4562
4560
  var Et = class extends re {
4563
4561
  constructor({ parameter: e, value: t, message: r }) {
4564
4562
  super({
@@ -4567,14 +4565,14 @@ var Et = class extends re {
4567
4565
  }), this[Ip] = !0, this.parameter = e, this.value = t;
4568
4566
  }
4569
4567
  static isInstance(e) {
4570
- return re.hasMarker(e, Qa);
4568
+ return re.hasMarker(e, Xa);
4571
4569
  }
4572
4570
  };
4573
- const Xa = "AI_UIMessageStreamError", es = `vercel.ai.error.${Xa}`, Sp = Symbol.for(es);
4571
+ const Qa = "AI_UIMessageStreamError", es = `vercel.ai.error.${Qa}`, Sp = Symbol.for(es);
4574
4572
  var Me = class extends re {
4575
4573
  constructor({ chunkType: e, chunkId: t, message: r }) {
4576
4574
  super({
4577
- name: Xa,
4575
+ name: Qa,
4578
4576
  message: r
4579
4577
  }), this[Sp] = !0, this.chunkType = e, this.chunkId = t;
4580
4578
  }
@@ -4597,17 +4595,17 @@ function ts(e, t) {
4597
4595
  return r;
4598
4596
  }
4599
4597
  const l = {
4600
- array: ja,
4598
+ array: Da,
4601
4599
  boolean: Zu,
4602
4600
  custom: hd,
4603
4601
  discriminatedUnion: Ju,
4604
4602
  enum: Ua,
4605
4603
  instanceof: vd,
4606
4604
  lazy: fd,
4607
- literal: Qu,
4605
+ literal: Xu,
4608
4606
  looseObject: Vu,
4609
4607
  never: Za,
4610
- null: Du,
4608
+ null: ju,
4611
4609
  number: Mu,
4612
4610
  object: Bu,
4613
4611
  record: Hu,
@@ -4843,7 +4841,7 @@ l.union([
4843
4841
  Rp,
4844
4842
  Zp
4845
4843
  ]);
4846
- function jp(e) {
4844
+ function Dp(e) {
4847
4845
  const t = ["ROOT"];
4848
4846
  let r = -1, n = null, a = 0;
4849
4847
  function s(g) {
@@ -5044,7 +5042,7 @@ function jp(e) {
5044
5042
  }
5045
5043
  return i;
5046
5044
  }
5047
- async function Dp(e) {
5045
+ async function jp(e) {
5048
5046
  if (e === void 0) return {
5049
5047
  value: void 0,
5050
5048
  state: "undefined-input"
@@ -5053,7 +5051,7 @@ async function Dp(e) {
5053
5051
  return t.success ? {
5054
5052
  value: t.value,
5055
5053
  state: "successful-parse"
5056
- } : (t = await or({ text: jp(e) }), t.success ? {
5054
+ } : (t = await or({ text: Dp(e) }), t.success ? {
5057
5055
  value: t.value,
5058
5056
  state: "repaired-parse"
5059
5057
  } : {
@@ -5560,7 +5558,7 @@ function Bp({ stream: e, messageMetadataSchema: t, dataPartSchemas: r, runUpdate
5560
5558
  message: `Received tool-input-delta for missing tool call with ID "${i.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`
5561
5559
  });
5562
5560
  d.text += i.inputTextDelta;
5563
- const { value: v } = await Dp(d.text);
5561
+ const { value: v } = await jp(d.text);
5564
5562
  d.dynamic ? y({
5565
5563
  toolCallId: i.toolCallId,
5566
5564
  toolName: d.toolName,
@@ -6402,26 +6400,26 @@ function Yp(e, t) {
6402
6400
  }, f);
6403
6401
  };
6404
6402
  }
6405
- var Qp = Yp;
6406
- const Xp = /* @__PURE__ */ ho(Qp);
6403
+ var Xp = Yp;
6404
+ const Qp = /* @__PURE__ */ ho(Xp);
6407
6405
  function ef(e, t) {
6408
- return t != null ? Xp(e, t) : e;
6406
+ return t != null ? Qp(e, t) : e;
6409
6407
  }
6410
6408
  function tf(e) {
6411
6409
  return Array.isArray(e) ? [...e] : e != null && typeof e == "object" && (Object.getPrototypeOf(e) === Object.prototype || Object.getPrototypeOf(e) === null) ? { ...e } : e;
6412
6410
  }
6413
- var ce, Qe, Xe, Ze, je, De, Ne, pt, ft, Tn, rf = (Tn = class {
6411
+ var ce, Xe, Qe, Ze, De, je, Ne, pt, ft, Tn, rf = (Tn = class {
6414
6412
  constructor(e = []) {
6415
6413
  me(this, ce);
6416
- me(this, Qe);
6417
6414
  me(this, Xe);
6415
+ me(this, Qe);
6418
6416
  me(this, Ze);
6419
- me(this, je);
6420
6417
  me(this, De);
6418
+ me(this, je);
6421
6419
  me(this, Ne);
6422
6420
  me(this, pt);
6423
6421
  me(this, ft);
6424
- ee(this, Qe, "ready"), ee(this, Xe, void 0), ee(this, Ze, /* @__PURE__ */ new Set()), ee(this, je, /* @__PURE__ */ new Set()), ee(this, De, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6422
+ ee(this, Xe, "ready"), ee(this, Qe, void 0), ee(this, Ze, /* @__PURE__ */ new Set()), ee(this, De, /* @__PURE__ */ new Set()), ee(this, je, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6425
6423
  ee(this, ce, L(this, ce).concat(t)), L(this, Ne).call(this);
6426
6424
  }, this.popMessage = () => {
6427
6425
  ee(this, ce, L(this, ce).slice(0, -1)), L(this, Ne).call(this);
@@ -6443,29 +6441,29 @@ var ce, Qe, Xe, Ze, je, De, Ne, pt, ft, Tn, rf = (Tn = class {
6443
6441
  return L(this, Ze).add(n), () => {
6444
6442
  L(this, Ze).delete(n);
6445
6443
  };
6446
- }, this["~registerStatusCallback"] = (t) => (L(this, je).add(t), () => {
6447
- L(this, je).delete(t);
6448
- }), this["~registerErrorCallback"] = (t) => (L(this, De).add(t), () => {
6444
+ }, this["~registerStatusCallback"] = (t) => (L(this, De).add(t), () => {
6449
6445
  L(this, De).delete(t);
6446
+ }), this["~registerErrorCallback"] = (t) => (L(this, je).add(t), () => {
6447
+ L(this, je).delete(t);
6450
6448
  }), ee(this, Ne, () => {
6451
6449
  L(this, Ze).forEach((t) => t());
6452
6450
  }), ee(this, pt, () => {
6453
- L(this, je).forEach((t) => t());
6454
- }), ee(this, ft, () => {
6455
6451
  L(this, De).forEach((t) => t());
6452
+ }), ee(this, ft, () => {
6453
+ L(this, je).forEach((t) => t());
6456
6454
  }), ee(this, ce, e);
6457
6455
  }
6458
6456
  get status() {
6459
- return L(this, Qe);
6457
+ return L(this, Xe);
6460
6458
  }
6461
6459
  set status(e) {
6462
- ee(this, Qe, e), L(this, pt).call(this);
6460
+ ee(this, Xe, e), L(this, pt).call(this);
6463
6461
  }
6464
6462
  get error() {
6465
- return L(this, Xe);
6463
+ return L(this, Qe);
6466
6464
  }
6467
6465
  set error(e) {
6468
- ee(this, Xe, e), L(this, ft).call(this);
6466
+ ee(this, Qe, e), L(this, ft).call(this);
6469
6467
  }
6470
6468
  get messages() {
6471
6469
  return L(this, ce);
@@ -6473,7 +6471,7 @@ var ce, Qe, Xe, Ze, je, De, Ne, pt, ft, Tn, rf = (Tn = class {
6473
6471
  set messages(e) {
6474
6472
  ee(this, ce, [...e]), L(this, Ne).call(this);
6475
6473
  }
6476
- }, ce = new WeakMap(), Qe = new WeakMap(), Xe = new WeakMap(), Ze = new WeakMap(), je = new WeakMap(), De = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), ft = new WeakMap(), Tn), Fe, An, is = (An = class extends Hp {
6474
+ }, ce = new WeakMap(), Xe = new WeakMap(), Qe = new WeakMap(), Ze = new WeakMap(), De = new WeakMap(), je = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), ft = new WeakMap(), Tn), Fe, An, is = (An = class extends Hp {
6477
6475
  constructor({ messages: t, ...r }) {
6478
6476
  const n = new rf(t);
6479
6477
  super({
@@ -6551,7 +6549,7 @@ function af({ throttle: e, experimental_throttle: t, resume: r = !1, ...n } = {}
6551
6549
  u.stop();
6552
6550
  };
6553
6551
  }, [u, m]);
6554
- const [w, I] = D(() => Nt(u));
6552
+ const [w, I] = j(() => Nt(u));
6555
6553
  w.chat !== u && I(Nt(u)), ke(() => {
6556
6554
  let h = !0;
6557
6555
  const d = () => {
@@ -6659,7 +6657,7 @@ function hf(e) {
6659
6657
  Ue(() => {
6660
6658
  t.current = e;
6661
6659
  });
6662
- const r = ie(void 0), [n, a] = D({}), [s, o] = D({}), [c, f] = D({ chatId: "", count: 0 }), [i, g] = D(), [u] = D(() => {
6660
+ const r = ie(void 0), [n, a] = j({}), [s, o] = j({}), [c, f] = j({ chatId: "", count: 0 }), [i, g] = j(), [u] = j(() => {
6663
6661
  const R = (C, M) => {
6664
6662
  C.pendingApplies += M, r.current === C && f({ chatId: C.chat.id, count: C.pendingApplies });
6665
6663
  };
@@ -6684,12 +6682,12 @@ function hf(e) {
6684
6682
  const Z = t.current.applyProposal;
6685
6683
  if (r.current !== C || !Z) return;
6686
6684
  const de = C.proposals.has(M.proposalId), pe = C.proposals.get(M.proposalId) ?? null;
6687
- R(C, 1), a((Q) => Pe(Q, C.chat.id, M.proposalId, { status: "applying" })), C.applying = C.applying.then(async () => {
6688
- const Q = de ? pe === null ? C.answerBase : C.appliedAfter.get(pe) : void 0, fe = de && pe !== null ? { ok: !1, reason: "previous_not_applied", message: zr.previous_not_applied } : { ok: !1, reason: "dashboard_changed", message: zr.dashboard_changed };
6685
+ R(C, 1), a((X) => Pe(X, C.chat.id, M.proposalId, { status: "applying" })), C.applying = C.applying.then(async () => {
6686
+ const X = de ? pe === null ? C.answerBase : C.appliedAfter.get(pe) : void 0, fe = de && pe !== null ? { ok: !1, reason: "previous_not_applied", message: zr.previous_not_applied } : { ok: !1, reason: "dashboard_changed", message: zr.dashboard_changed };
6689
6687
  let ae;
6690
6688
  try {
6691
- ae = Q ? await Z(
6692
- { proposalId: M.proposalId, operations: M.operations, context: M.context, basedOn: Q },
6689
+ ae = X ? await Z(
6690
+ { proposalId: M.proposalId, operations: M.operations, context: M.context, basedOn: X },
6693
6691
  { stillWanted: () => r.current === C }
6694
6692
  ) : fe;
6695
6693
  } catch (Ie) {
@@ -6701,13 +6699,13 @@ function hf(e) {
6701
6699
  }).finally(() => R(C, -1));
6702
6700
  }
6703
6701
  };
6704
- }), [m, w] = D(() => Ht(u));
6702
+ }), [m, w] = j(() => Ht(u));
6705
6703
  Ue(() => (r.current = m, () => {
6706
6704
  r.current === m && (r.current = void 0);
6707
6705
  }), [m]);
6708
6706
  const { messages: I, status: E, error: _ } = af({ chat: m.chat });
6709
6707
  ke(() => () => void m.chat.stop(), [m]);
6710
- const [x, y] = D(), [h, d] = D([]), v = ie(void 0), [b, N] = D(!1);
6708
+ const [x, y] = j(), [h, d] = j([]), v = ie(void 0), [b, N] = j(!1);
6711
6709
  ke(() => () => {
6712
6710
  var R;
6713
6711
  return (R = v.current) == null ? void 0 : R.abort();
@@ -6735,15 +6733,15 @@ function hf(e) {
6735
6733
  ...Z.cardReplay ?? {},
6736
6734
  ...C.length ? { taggedFields: C } : {}
6737
6735
  };
6738
- if (Xt({ ...de, message: M }) > et.requestBytes)
6739
- return y(new qn(Xt(de)).message), "not_sent";
6736
+ if (Qt({ ...de, message: M }) > et.requestBytes)
6737
+ return y(new qn(Qt(de)).message), "not_sent";
6740
6738
  y(void 0);
6741
6739
  const pe = (fe = Z.context.selectedCard) == null ? void 0 : fe.id;
6742
6740
  pe && (m.aboutCardId = pe);
6743
- const Q = gf(Z.context, (($e = (ae = t.current).canChangeOpenDashboard) == null ? void 0 : $e.call(ae)) ?? !1);
6744
- return m.answerBase = Q, m.proposals.clear(), m.appliedAfter.clear(), m.chat.sendMessage(
6741
+ const X = gf(Z.context, (($e = (ae = t.current).canChangeOpenDashboard) == null ? void 0 : $e.call(ae)) ?? !1);
6742
+ return m.answerBase = X, m.proposals.clear(), m.appliedAfter.clear(), m.chat.sendMessage(
6745
6743
  { text: M, ...C.length ? { metadata: { taggedFields: C } } : {} },
6746
- { body: Q ? { ...de, openDashboard: Q } : de }
6744
+ { body: X ? { ...de, openDashboard: X } : de }
6747
6745
  ), "sent";
6748
6746
  },
6749
6747
  [m, h]
@@ -6756,7 +6754,7 @@ function hf(e) {
6756
6754
  [m, O]
6757
6755
  ), Y = te(
6758
6756
  (R) => {
6759
- const C = X.getState().actions.undoProposal(R);
6757
+ const C = Q.getState().actions.undoProposal(R);
6760
6758
  return C.ok && a((M) => Pe(M, m.chat.id, R, { status: "undone" })), C.ok;
6761
6759
  },
6762
6760
  [m]
@@ -6765,9 +6763,9 @@ function hf(e) {
6765
6763
  var pe;
6766
6764
  const C = m.chat.id, M = (pe = s[C]) == null ? void 0 : pe[R];
6767
6765
  if ((M == null ? void 0 : M.status) !== "offered") return;
6768
- o((Q) => Pe(Q, C, R, { status: "adding" }));
6769
- const Z = await cf(u.connection(), R).catch((Q) => (console.warn("The relationship could not be added:", Q), { ok: !1, code: void 0 })), de = Z.ok ? { status: "added" } : { status: "refused", message: ko(Z.code) };
6770
- o((Q) => Pe(Q, C, R, de));
6766
+ o((X) => Pe(X, C, R, { status: "adding" }));
6767
+ const Z = await cf(u.connection(), R).catch((X) => (console.warn("The relationship could not be added:", X), { ok: !1, code: void 0 })), de = Z.ok ? { status: "added" } : { status: "refused", message: ko(Z.code) };
6768
+ o((X) => Pe(X, C, R, de));
6771
6769
  },
6772
6770
  [m, u, s]
6773
6771
  ), We = te(
@@ -6848,9 +6846,9 @@ function hf(e) {
6848
6846
  function gf(e, t) {
6849
6847
  var n;
6850
6848
  if (!t || e.surface !== "dashboard") return;
6851
- const r = X.getState().dashboard;
6849
+ const r = Q.getState().dashboard;
6852
6850
  if (!(!(r != null && r.id) || r.id !== ((n = e.dashboard) == null ? void 0 : n.id)))
6853
- return Xt(r) <= et.openDashboardBytes ? r : void 0;
6851
+ return Qt(r) <= et.openDashboardBytes ? r : void 0;
6854
6852
  }
6855
6853
  function Ht(e, t) {
6856
6854
  const r = {
@@ -6936,7 +6934,7 @@ function Sr() {
6936
6934
  return Rs() ?? mo;
6937
6935
  }
6938
6936
  function fs(e, t) {
6939
- return Mo({
6937
+ return jo({
6940
6938
  metadata: e,
6941
6939
  locale: t.locale,
6942
6940
  styles: { dateStyle: t.dateStyle, dateTime: t.dateTime }
@@ -6949,7 +6947,7 @@ function Nr(e, t, r) {
6949
6947
  if (e == null) return "";
6950
6948
  if (t.temporalBucket && typeof e == "string")
6951
6949
  try {
6952
- return zo({
6950
+ return Do({
6953
6951
  value: e,
6954
6952
  metadata: t.temporalBucket,
6955
6953
  format: fs(t.temporalBucket, r).format
@@ -7028,7 +7026,7 @@ function kr({
7028
7026
  testId: r,
7029
7027
  chevron: n = !0
7030
7028
  }) {
7031
- const [a, s] = D(!1);
7029
+ const [a, s] = j(!1);
7032
7030
  return /* @__PURE__ */ k("div", { className: "space-y-1.5", "data-testid": r, children: [
7033
7031
  /* @__PURE__ */ k(
7034
7032
  "button",
@@ -7038,7 +7036,7 @@ function kr({
7038
7036
  onClick: () => s((o) => !o),
7039
7037
  className: "inline-flex items-center gap-1 text-[11.5px] text-muted-foreground hover:text-foreground",
7040
7038
  children: [
7041
- n ? /* @__PURE__ */ p(js, { className: B("h-3 w-3 transition-transform", a && "rotate-90") }) : null,
7039
+ n ? /* @__PURE__ */ p(Ds, { className: B("h-3 w-3 transition-transform", a && "rotate-90") }) : null,
7042
7040
  e
7043
7041
  ]
7044
7042
  }
@@ -7073,8 +7071,8 @@ function Tf({
7073
7071
  ] });
7074
7072
  }
7075
7073
  function Af(e, t, r) {
7076
- const [n, a] = D({ status: "idle" }), s = X(
7077
- (c) => n.status === "added" ? Qn(c.dashboard, n.frameId) : !1
7074
+ const [n, a] = j({ status: "idle" }), s = Q(
7075
+ (c) => n.status === "added" ? Xn(c.dashboard, n.frameId) : !1
7078
7076
  );
7079
7077
  if (!r || !e.card) return { action: null, note: null };
7080
7078
  if (n.status === "added" && s)
@@ -7122,7 +7120,7 @@ function Cf(e, t) {
7122
7120
  return r.length ? /* @__PURE__ */ p("p", { role: "status", className: "text-[11.5px] text-muted-foreground", children: r.join(" ") }) : null;
7123
7121
  }
7124
7122
  function $f({ artifact: e, onClose: t }) {
7125
- const { kind: r, setKind: n, visual: a, chart: s, shown: o } = ms(e, "table"), [c, f] = D(), i = it(() => Mf(e.records, c), [e.records, c]);
7123
+ const { kind: r, setKind: n, visual: a, chart: s, shown: o } = ms(e, "table"), [c, f] = j(), i = it(() => Mf(e.records, c), [e.records, c]);
7126
7124
  return /* @__PURE__ */ k(
7127
7125
  "section",
7128
7126
  {
@@ -7169,7 +7167,7 @@ function $f({ artifact: e, onClose: t }) {
7169
7167
  );
7170
7168
  }
7171
7169
  function ms(e, t) {
7172
- const [r, n] = D(t), a = it(() => Of(e, r), [e, r]), s = X(Ds((i) => ({ themeStyle: i.themeStyle, theme: i.theme }))), o = Sr(), c = it(
7170
+ const [r, n] = j(t), a = it(() => Of(e, r), [e, r]), s = Q(js((i) => ({ themeStyle: i.themeStyle, theme: i.theme }))), o = Sr(), c = it(
7173
7171
  () => If(e, a, o, s),
7174
7172
  [e, a, o, s]
7175
7173
  ), f = a.kind === "table" || a.kind !== "number" && !c ? "table" : a.kind;
@@ -7323,24 +7321,24 @@ function Zf({ trace: e, stages: t }) {
7323
7321
  we(r("check"))
7324
7322
  ] }),
7325
7323
  /* @__PURE__ */ k("p", { children: [
7326
- Qt(n),
7324
+ Xt(n),
7327
7325
  " tokens in (",
7328
- Qt(a),
7326
+ Xt(a),
7329
7327
  " cached) · ",
7330
- Qt(s),
7328
+ Xt(s),
7331
7329
  " out · ",
7332
7330
  e.model
7333
7331
  ] })
7334
7332
  ] }),
7335
- /* @__PURE__ */ p(kr, { label: "Timeline", children: /* @__PURE__ */ p(Df, { trace: e, stages: t }) })
7333
+ /* @__PURE__ */ p(kr, { label: "Timeline", children: /* @__PURE__ */ p(jf, { trace: e, stages: t }) })
7336
7334
  ] });
7337
7335
  }
7338
- const jf = {
7336
+ const Df = {
7339
7337
  check: "bg-amber-400/80",
7340
7338
  model: "bg-primary/70",
7341
7339
  step: "bg-muted-foreground/50"
7342
7340
  };
7343
- function Df({ trace: e, stages: t }) {
7341
+ function jf({ trace: e, stages: t }) {
7344
7342
  const r = new Map(t.map((s) => [s.stageId, s.label])), n = Math.max(e.totalMs, 1), a = e.spans.flatMap(
7345
7343
  (s) => s.kind === "model" && s.firstOutputMs !== void 0 ? [s.firstOutputMs] : []
7346
7344
  );
@@ -7350,7 +7348,7 @@ function Df({ trace: e, stages: t }) {
7350
7348
  /* @__PURE__ */ p("span", { className: "relative h-2 rounded-[2px] bg-muted", children: /* @__PURE__ */ p(
7351
7349
  "span",
7352
7350
  {
7353
- className: B("absolute top-0 h-2 rounded-[2px]", jf[s.kind]),
7351
+ className: B("absolute top-0 h-2 rounded-[2px]", Df[s.kind]),
7354
7352
  style: {
7355
7353
  left: `${s.startMs / n * 100}%`,
7356
7354
  width: `${Math.max(s.durationMs / n * 100, 0.8)}%`
@@ -7366,7 +7364,7 @@ function Df({ trace: e, stages: t }) {
7366
7364
  ] })
7367
7365
  ] });
7368
7366
  }
7369
- function Qt(e) {
7367
+ function Xt(e) {
7370
7368
  return e.toLocaleString("en-US");
7371
7369
  }
7372
7370
  function vt({
@@ -7430,7 +7428,7 @@ function Lf({
7430
7428
  options: r,
7431
7429
  onPick: n
7432
7430
  }) {
7433
- const [a, s] = D(() => /* @__PURE__ */ new Set()), o = (f) => s((i) => {
7431
+ const [a, s] = j(() => /* @__PURE__ */ new Set()), o = (f) => s((i) => {
7434
7432
  const g = new Set(i);
7435
7433
  return g.has(f) ? g.delete(f) : g.add(f), g;
7436
7434
  }), c = r.filter((f) => a.has(f.optionId));
@@ -7505,7 +7503,7 @@ function Uf(e) {
7505
7503
  `);
7506
7504
  }
7507
7505
  function xs({ onPick: e }) {
7508
- const [t, r] = D(), n = ie(null);
7506
+ const [t, r] = j(), n = ie(null);
7509
7507
  if (t === void 0)
7510
7508
  return /* @__PURE__ */ k(
7511
7509
  "button",
@@ -7614,7 +7612,7 @@ function qf({
7614
7612
  onUndo: r,
7615
7613
  onAskAgain: n
7616
7614
  }) {
7617
- const a = X((g) => Bs(g, e.proposalId)), s = X((g) => g.isVisualEditing), o = Wf(t, a), c = o.kind === "undone" || o.kind === "refused", f = !c && o.kind !== "settled", i = o.kind === "changed_since" ? Vf : o.kind === "undone" ? "Undone." : o.kind === "refused" ? o.message : void 0;
7615
+ const a = Q((g) => Bs(g, e.proposalId)), s = Q((g) => g.isVisualEditing), o = Wf(t, a), c = o.kind === "undone" || o.kind === "refused", f = !c && o.kind !== "settled", i = o.kind === "changed_since" ? Vf : o.kind === "undone" ? "Undone." : o.kind === "refused" ? o.message : void 0;
7618
7616
  return /* @__PURE__ */ k(
7619
7617
  vt,
7620
7618
  {
@@ -7653,13 +7651,13 @@ function qf({
7653
7651
  ] }, u);
7654
7652
  }) }),
7655
7653
  f && e.warnings.length ? /* @__PURE__ */ p("ul", { className: "space-y-1", children: e.warnings.map((g, u) => /* @__PURE__ */ k("li", { className: "flex items-start gap-1.5 text-[11.5px] leading-[1.5] text-muted-foreground", children: [
7656
- /* @__PURE__ */ p(Dn, { className: "mt-[2px] h-3 w-3 shrink-0" }),
7654
+ /* @__PURE__ */ p(Fn, { className: "mt-[2px] h-3 w-3 shrink-0" }),
7657
7655
  /* @__PURE__ */ p("span", { children: g.message })
7658
7656
  ] }, u)) }) : null,
7659
7657
  i ? /* @__PURE__ */ k("div", { className: "flex flex-wrap items-center justify-between gap-2 border-t border-border pt-2", children: [
7660
7658
  /* @__PURE__ */ p("span", { className: "text-[11.5px] leading-[1.5] text-muted-foreground", children: i }),
7661
7659
  o.kind === "refused" && n ? /* @__PURE__ */ k(H, { variant: "outline", size: "xs", className: "h-[26px] gap-1 px-2 text-[11.5px]", onClick: n, children: [
7662
- /* @__PURE__ */ p(Fn, { className: "h-3 w-3" }),
7660
+ /* @__PURE__ */ p(Ln, { className: "h-3 w-3" }),
7663
7661
  "Ask again"
7664
7662
  ] }) : null
7665
7663
  ] }) : null
@@ -7710,7 +7708,7 @@ function Kf({
7710
7708
  )
7711
7709
  ] }, i)) }),
7712
7710
  o && e.warnings.length ? /* @__PURE__ */ p("ul", { className: "space-y-1", children: e.warnings.map((f, i) => /* @__PURE__ */ k("li", { className: "flex items-start gap-1.5 text-[11.5px] leading-[1.5] text-muted-foreground", children: [
7713
- /* @__PURE__ */ p(Dn, { className: "mt-[2px] h-3 w-3 shrink-0" }),
7711
+ /* @__PURE__ */ p(Fn, { className: "mt-[2px] h-3 w-3 shrink-0" }),
7714
7712
  /* @__PURE__ */ p("span", { children: f.message })
7715
7713
  ] }, i)) }) : null,
7716
7714
  o ? /* @__PURE__ */ k(Le, { children: [
@@ -7746,7 +7744,7 @@ function Kf({
7746
7744
  c ? /* @__PURE__ */ k("div", { className: "flex flex-wrap items-center justify-between gap-2 border-t border-border pt-2", children: [
7747
7745
  /* @__PURE__ */ p("span", { className: "text-[11.5px] leading-[1.5] text-muted-foreground", children: c }),
7748
7746
  (s === "added" || s === "refused") && a ? /* @__PURE__ */ k(H, { variant: "outline", size: "xs", className: "h-[26px] gap-1 px-2 text-[11.5px]", onClick: a, children: [
7749
- /* @__PURE__ */ p(Fn, { className: "h-3 w-3" }),
7747
+ /* @__PURE__ */ p(Ln, { className: "h-3 w-3" }),
7750
7748
  "Ask again"
7751
7749
  ] }) : null
7752
7750
  ] }) : null
@@ -7771,7 +7769,7 @@ function Gf(e) {
7771
7769
  return e.reason === "refused" ? `Not applied: ${e.message}` : e.message;
7772
7770
  }
7773
7771
  function Hf(e) {
7774
- return e.startsWith("filter.") ? Po : e === "card.add" ? Pt : e === "card.remove" ? zn : Mn;
7772
+ return e.startsWith("filter.") ? Fo : e === "card.add" ? Pt : e === "card.remove" ? zn : Mn;
7775
7773
  }
7776
7774
  const kn = 4;
7777
7775
  function Yf({
@@ -7782,9 +7780,9 @@ function Yf({
7782
7780
  onAdd: a,
7783
7781
  onPick: s,
7784
7782
  onAskAgain: o,
7785
- proposalStates: c = Qf,
7783
+ proposalStates: c = Xf,
7786
7784
  onUndoProposal: f,
7787
- modelChangeStates: i = Xf,
7785
+ modelChangeStates: i = Qf,
7788
7786
  onAddModelChange: g,
7789
7787
  onDismissModelChange: u
7790
7788
  }) {
@@ -7816,7 +7814,7 @@ function Yf({
7816
7814
  r ? /* @__PURE__ */ p("p", { role: "alert", className: "text-[12.5px] leading-[1.6] text-destructive", children: r }) : null
7817
7815
  ] });
7818
7816
  }
7819
- const Qf = {}, Xf = {};
7817
+ const Xf = {}, Qf = {};
7820
7818
  function em(e) {
7821
7819
  return e.parts.map((t) => t.type === "text" ? t.text : "").join("");
7822
7820
  }
@@ -7906,12 +7904,12 @@ function im({ items: e, notes: t }) {
7906
7904
  return /* @__PURE__ */ k("div", { className: "space-y-0.5", "data-testid": "assistant-using", children: [
7907
7905
  /* @__PURE__ */ k("div", { className: "flex flex-wrap items-center gap-1", role: "group", "aria-label": "What this answer used", children: [
7908
7906
  n.map((s, o) => /* @__PURE__ */ p(lm, { children: s }, o)),
7909
- a.length ? /* @__PURE__ */ k(Ln, { children: [
7910
- /* @__PURE__ */ p(Un, { asChild: !0, children: /* @__PURE__ */ k("button", { type: "button", "aria-label": `${a.length} more`, className: _s, children: [
7907
+ a.length ? /* @__PURE__ */ k(Un, { children: [
7908
+ /* @__PURE__ */ p(Bn, { asChild: !0, children: /* @__PURE__ */ k("button", { type: "button", "aria-label": `${a.length} more`, className: _s, children: [
7911
7909
  "+",
7912
7910
  a.length
7913
7911
  ] }) }),
7914
- /* @__PURE__ */ p(Bn, { align: "start", className: "w-auto max-w-[280px] p-2", children: /* @__PURE__ */ p("ul", { className: "space-y-1 text-[12px] text-foreground", children: a.map((s, o) => /* @__PURE__ */ p("li", { className: "break-words", children: s }, o)) }) })
7912
+ /* @__PURE__ */ p(Vn, { align: "start", className: "w-auto max-w-[280px] p-2", children: /* @__PURE__ */ p("ul", { className: "space-y-1 text-[12px] text-foreground", children: a.map((s, o) => /* @__PURE__ */ p("li", { className: "break-words", children: s }, o)) }) })
7915
7913
  ] }) : null
7916
7914
  ] }),
7917
7915
  t.map((s, o) => /* @__PURE__ */ p("p", { className: "text-[11.5px] text-muted-foreground", children: s }, o))
@@ -8037,7 +8035,7 @@ function gm({
8037
8035
  canCopy: n,
8038
8036
  onCopy: a
8039
8037
  }) {
8040
- const [s, o] = D(), c = ie(void 0);
8038
+ const [s, o] = j(), c = ie(void 0);
8041
8039
  ke(() => () => clearTimeout(c.current), []);
8042
8040
  const f = (g) => {
8043
8041
  a(g === "tool_calls").then(
@@ -8052,8 +8050,8 @@ function gm({
8052
8050
  s.ok ? /* @__PURE__ */ p(mt, { className: "h-3 w-3" }) : null,
8053
8051
  s.ok ? "Copied" : "Couldn’t copy"
8054
8052
  ] }) : null,
8055
- /* @__PURE__ */ k(Qs, { children: [
8056
- /* @__PURE__ */ p(Xs, { asChild: !0, children: /* @__PURE__ */ p(
8053
+ /* @__PURE__ */ k(Xs, { children: [
8054
+ /* @__PURE__ */ p(Qs, { asChild: !0, children: /* @__PURE__ */ p(
8057
8055
  H,
8058
8056
  {
8059
8057
  variant: "ghost",
@@ -8128,7 +8126,7 @@ function vm({
8128
8126
  staleTime: 0,
8129
8127
  // A failed read says so at once, whichever client the host mounted.
8130
8128
  retry: !1
8131
- }), f = Rn(), [i, g] = D(), [u, m] = D(() => /* @__PURE__ */ new Set()), [w, I] = D(), E = (y = c.data) == null ? void 0 : y.filter((h) => !u.has(h.conversationId)), _ = async (h) => {
8129
+ }), f = Rn(), [i, g] = j(), [u, m] = j(() => /* @__PURE__ */ new Set()), [w, I] = j(), E = (y = c.data) == null ? void 0 : y.filter((h) => !u.has(h.conversationId)), _ = async (h) => {
8132
8130
  g(h);
8133
8131
  const d = await n(h);
8134
8132
  g((v) => v === h ? void 0 : v), d === "not_opened" && cr(f, lr(e));
@@ -8253,16 +8251,16 @@ function wm({
8253
8251
  disabled: n,
8254
8252
  onAdd: a
8255
8253
  }) {
8256
- const [s, o] = D(!1), [c, f] = D(""), i = Ns(e, t, s || r.length > 0), g = new Set(r.map(ve)), u = (i.data ?? []).filter((I) => !g.has(ve(I.source))), m = c.trim().toLowerCase(), w = m ? u.filter((I) => `${I.label} ${I.domainLabel ?? ""}`.toLowerCase().includes(m)) : u;
8254
+ const [s, o] = j(!1), [c, f] = j(""), i = Ns(e, t, s || r.length > 0), g = new Set(r.map(ve)), u = (i.data ?? []).filter((I) => !g.has(ve(I.source))), m = c.trim().toLowerCase(), w = m ? u.filter((I) => `${I.label} ${I.domainLabel ?? ""}`.toLowerCase().includes(m)) : u;
8257
8255
  return /* @__PURE__ */ k(
8258
- Ln,
8256
+ Un,
8259
8257
  {
8260
8258
  open: s,
8261
8259
  onOpenChange: (I) => {
8262
8260
  o(I), I || f(""), I && i.isError && i.refetch();
8263
8261
  },
8264
8262
  children: [
8265
- /* @__PURE__ */ p(Un, { asChild: !0, children: /* @__PURE__ */ p(
8263
+ /* @__PURE__ */ p(Bn, { asChild: !0, children: /* @__PURE__ */ p(
8266
8264
  H,
8267
8265
  {
8268
8266
  type: "button",
@@ -8275,7 +8273,7 @@ function wm({
8275
8273
  children: /* @__PURE__ */ p(Pt, { className: "h-4 w-4" })
8276
8274
  }
8277
8275
  ) }),
8278
- /* @__PURE__ */ p(Bn, { align: "start", className: "w-72 p-1.5", children: i.isPending ? /* @__PURE__ */ k("p", { className: "flex items-center gap-1.5 px-1.5 py-1 text-[12px] text-muted-foreground", role: "status", children: [
8276
+ /* @__PURE__ */ p(Vn, { align: "start", className: "w-72 p-1.5", children: i.isPending ? /* @__PURE__ */ k("p", { className: "flex items-center gap-1.5 px-1.5 py-1 text-[12px] text-muted-foreground", role: "status", children: [
8279
8277
  /* @__PURE__ */ p(Be, { className: "h-3 w-3 animate-spin" }),
8280
8278
  "Loading"
8281
8279
  ] }) : i.isError ? /* @__PURE__ */ p("p", { className: "px-1.5 py-1 text-[12px] text-muted-foreground", children: "Could not load sources." }) : u.length === 0 ? /* @__PURE__ */ p("p", { className: "px-1.5 py-1 text-[12px] text-muted-foreground", children: "Nothing more to add." }) : /* @__PURE__ */ k(Le, { children: [
@@ -8326,7 +8324,7 @@ function _m({ entries: e, onPick: t }) {
8326
8324
  ] }, n)) });
8327
8325
  }
8328
8326
  function Im(e) {
8329
- const [t, r] = D([]), n = e ? t.filter((o) => o.cardId === e).map((o) => o.field) : [], a = n.length >= et.taggedFields, s = (o) => !!e && !a && !n.some((c) => er(c, o));
8327
+ const [t, r] = j([]), n = e ? t.filter((o) => o.cardId === e).map((o) => o.field) : [], a = n.length >= et.taggedFields, s = (o) => !!e && !a && !n.some((c) => er(c, o));
8330
8328
  return {
8331
8329
  shown: n,
8332
8330
  /** Five are tagged: nothing more can be. */
@@ -8356,18 +8354,18 @@ function Sm(e, t) {
8356
8354
  return { text: e.slice(0, n) + e.slice(t), caret: n };
8357
8355
  }
8358
8356
  const Nm = [], km = { withRequest: !0 };
8359
- function ih({
8357
+ function sh({
8360
8358
  instance: e,
8361
8359
  surface: t = "dashboard",
8362
8360
  placement: r
8363
8361
  }) {
8364
8362
  var Ar, Cr;
8365
- const n = t === "none", a = oo(), s = xt(e.store, (A) => A.focus), o = xt(e.store, (A) => A.isOpen), c = xt(e.store, (A) => A.askCount), f = xt(e.store, (A) => A.layout), i = n ? "full-page" : f, g = r ?? i, u = g === "beside-card", m = X(
8363
+ const n = t === "none", a = oo(), s = xt(e.store, (A) => A.focus), o = xt(e.store, (A) => A.isOpen), c = xt(e.store, (A) => A.askCount), f = xt(e.store, (A) => A.layout), i = n ? "full-page" : f, g = r ?? i, u = g === "beside-card", m = Q(
8366
8364
  (A) => {
8367
8365
  var P;
8368
8366
  return s && A.dashboard ? (P = go(A.dashboard, s.cardId)) == null ? void 0 : P.card : void 0;
8369
8367
  }
8370
- ), w = Cm(n), I = ie(void 0), [E] = D(() => Go(t)), [_, x] = D([]), y = te(
8368
+ ), w = Cm(n), I = ie(void 0), [E] = j(() => Go(t)), [_, x] = j([]), y = te(
8371
8369
  (A) => {
8372
8370
  I.current = A;
8373
8371
  const P = Em(
@@ -8394,7 +8392,7 @@ function ih({
8394
8392
  onFailed: (A) => {
8395
8393
  A instanceof tt && A.code === "context_invalid" && cr(h, ls(e.id));
8396
8394
  }
8397
- }), [O, K] = D(""), Y = ie(null);
8395
+ }), [O, K] = j(""), Y = ie(null);
8398
8396
  ke(() => {
8399
8397
  var A;
8400
8398
  (o || n) && ((A = Y.current) == null || A.focus());
@@ -8406,7 +8404,7 @@ function ih({
8406
8404
  const { focus: A, beside: P } = e.store.getState();
8407
8405
  A && Ke.current(A.cardId, { beside: P });
8408
8406
  }, [c, e]);
8409
- const We = (w == null ? void 0 : w.id) ?? (m == null ? void 0 : m.id), W = Im(We), ye = We ? _ : [], [Ae, Ce] = D(), _e = Ae ? W.available(ye).filter((A) => A.label.toLowerCase().includes(Ae.query.toLowerCase())) : [], xe = Ae && _e.length ? { ...Ae, active: Math.min(Ae.active, _e.length - 1) } : void 0, R = ie(void 0);
8407
+ const We = (w == null ? void 0 : w.id) ?? (m == null ? void 0 : m.id), W = Im(We), ye = We ? _ : [], [Ae, Ce] = j(), _e = Ae ? W.available(ye).filter((A) => A.label.toLowerCase().includes(Ae.query.toLowerCase())) : [], xe = Ae && _e.length ? { ...Ae, active: Math.min(Ae.active, _e.length - 1) } : void 0, R = ie(void 0);
8410
8408
  Ue(() => {
8411
8409
  var A;
8412
8410
  R.current !== void 0 && ((A = Y.current) == null || A.setSelectionRange(R.current, R.current), R.current = void 0);
@@ -8447,7 +8445,7 @@ function ih({
8447
8445
  return;
8448
8446
  }
8449
8447
  A.key === "Enter" && !A.shiftKey && !A.nativeEvent.isComposing && M(A);
8450
- }, Q = T.messages.length === 0, [fe, ae] = D(), $e = (fe == null ? void 0 : fe.sessionKey) === T.sessionKey ? Am(T.messages, fe.artifactId) : void 0, Ie = (A) => {
8448
+ }, X = T.messages.length === 0, [fe, ae] = j(), $e = (fe == null ? void 0 : fe.sessionKey) === T.sessionKey ? Am(T.messages, fe.artifactId) : void 0, Ie = (A) => {
8451
8449
  ae((P) => ({ sessionKey: T.sessionKey, artifactId: A, opened: ((P == null ? void 0 : P.opened) ?? 0) + 1 })), e.leaveBeside(), i !== "full-page" && e.setLayout("full-page");
8452
8450
  }, Oe = g === "full-page", Er = /* @__PURE__ */ p(
8453
8451
  H,
@@ -8457,7 +8455,7 @@ function ih({
8457
8455
  className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
8458
8456
  "aria-label": "New conversation",
8459
8457
  title: "New conversation",
8460
- disabled: Q && !T.busy && !T.loading,
8458
+ disabled: X && !T.busy && !T.loading,
8461
8459
  onClick: () => {
8462
8460
  var A;
8463
8461
  T.startNew(), (A = Y.current) == null || A.focus();
@@ -8485,7 +8483,7 @@ function ih({
8485
8483
  T.readForCopy(A).then((P) => $o(P, { assistantName: e.assistantName, toolCalls: A }))
8486
8484
  )
8487
8485
  }
8488
- ), yt = Q && Oe && !T.loading, Ts = /* @__PURE__ */ k("footer", { className: B("shrink-0 space-y-2", yt ? "px-0" : "p-3"), children: [
8486
+ ), yt = X && Oe && !T.loading, Ts = /* @__PURE__ */ k("footer", { className: B("shrink-0 space-y-2", yt ? "px-0" : "p-3"), children: [
8489
8487
  m && !w && !u ? /* @__PURE__ */ k("div", { className: "flex items-center gap-1.5", children: [
8490
8488
  /* @__PURE__ */ k(
8491
8489
  "span",
@@ -8542,7 +8540,7 @@ function ih({
8542
8540
  Ce(P === void 0 ? void 0 : { query: P, active: 0 });
8543
8541
  },
8544
8542
  onKeyDown: pe,
8545
- onFocus: w ? Vn : void 0,
8543
+ onFocus: w ? Zn : void 0,
8546
8544
  className: "block max-h-40 min-h-[2.5rem] w-full resize-none bg-transparent px-3 pt-2.5 text-[13px] leading-[1.5] text-foreground outline-none placeholder:text-muted-foreground"
8547
8545
  }
8548
8546
  ),
@@ -8693,7 +8691,7 @@ function ih({
8693
8691
  Mm,
8694
8692
  {
8695
8693
  conversation: T,
8696
- empty: Q,
8694
+ empty: X,
8697
8695
  layout: g,
8698
8696
  onExpand: Ie,
8699
8697
  onAdd: v,
@@ -8748,16 +8746,16 @@ function En({
8748
8746
  }, [e, t, n, r]), null;
8749
8747
  }
8750
8748
  function Cm(e) {
8751
- const t = X((n) => n.isVisualEditing), r = Zn((n) => n.card);
8749
+ const t = Q((n) => n.isVisualEditing), r = Dn((n) => n.card);
8752
8750
  return !e && t ? r : void 0;
8753
8751
  }
8754
8752
  function $m(e) {
8755
- if (!(e || !X.getState().isVisualEditing))
8756
- return Vn(), Es(e);
8753
+ if (!(e || !Q.getState().isVisualEditing))
8754
+ return Zn(), Es(e);
8757
8755
  }
8758
8756
  function Es(e) {
8759
- if (e || !X.getState().isVisualEditing) return;
8760
- const t = Zn.getState();
8757
+ if (e || !Q.getState().isVisualEditing) return;
8758
+ const t = Dn.getState();
8761
8759
  return { card: t.card, mode: t.isDevMode ? "sql" : "visual" };
8762
8760
  }
8763
8761
  function Om(e) {
@@ -8786,7 +8784,7 @@ function Mm({
8786
8784
  onPick: s,
8787
8785
  onAskAgain: o
8788
8786
  }) {
8789
- const c = ie(null), [f, i] = D(!0), g = ie(void 0), u = ie(r);
8787
+ const c = ie(null), [f, i] = j(!0), g = ie(void 0), u = ie(r);
8790
8788
  Ue(() => {
8791
8789
  const E = c.current;
8792
8790
  !E || u.current === r || (u.current = r, f ? E.scrollTop = E.scrollHeight : g.current && zm(E, g.current));
@@ -8847,5 +8845,5 @@ function Mm({
8847
8845
  ] });
8848
8846
  }
8849
8847
  export {
8850
- ih as default
8848
+ sh as default
8851
8849
  };