@altimateai/ui-components 0.0.78-beta.1 → 0.0.79-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/CoachForm.js CHANGED
@@ -3,7 +3,7 @@ var OW = (e, t, r) => t in e ? DW(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var le = (e, t, r) => OW(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { j as k, E as $W, D as PW, t as FW, c as zW, b as jW, u as HW, R as UW, v as Y6, w as qW, x as WW, g as VW, y as GW } from "./index3.js";
5
5
  import * as Wh from "react";
6
- import D1, { forwardRef as z3, useRef as Ft, useEffect as Nt, createContext as Hr, memo as Ut, useMemo as lr, useState as vt, useContext as Kt, useLayoutEffect as gE, useId as dp, useCallback as _t, Fragment as yE, createElement as YW, useInsertionEffect as bE, Component as ZW, Children as XW, lazy as xE, isValidElement as Ec, useTransition as KW, Suspense as Z6, useImperativeHandle as vE, useReducer as QW, useSyncExternalStore as O1 } from "react";
6
+ import D1, { forwardRef as z3, useRef as Ot, useEffect as Mt, createContext as Hr, memo as Ut, useMemo as lr, useState as vt, useContext as Kt, useLayoutEffect as gE, useId as dp, useCallback as _t, Fragment as yE, createElement as YW, useInsertionEffect as bE, Component as ZW, Children as XW, lazy as xE, isValidElement as Ec, useTransition as KW, Suspense as Z6, useImperativeHandle as vE, useReducer as QW, useSyncExternalStore as O1 } from "react";
7
7
  import { a as Ye, c as mr, B as tr, Z as nd, S as dt, e as Uy, aE as JW, aF as eV, T as ql, a5 as Xi, a6 as j3, au as kE, a3 as tV, a8 as rV, a7 as nV, I as iV, G as H3, H as U3, aA as q3, aC as W3, aB as aV, a9 as sV, a2 as Pf, aD as oV } from "./Stack.js";
8
8
  import { aR as Vh, aY as CE, x as id, y as Ym, aZ as Zm, B as Xm, z as Km, J as qy, I as lV, n as cV, c as wE, d as uV, aE as V3, aF as hV, aG as dV, aH as fV, aI as pV, aP as SE, aQ as TE, a_ as mV, a$ as gV, ab as yV, ae as bV, af as xV, ag as vV, ai as kV, aj as CV, ah as wV, al as SV, ak as TV, b0 as Wy, b1 as $1, b2 as _V, u as G3, A as Qm, F as fp, a as Vy, N as _E, a8 as g0, S as EV, q as AV, i as LV, s as IV, v as MV, aW as NV, aX as RV, E as BV, G as DV, H as OV, V as $V, X as PV, W as FV, Z as zV, $ as jV, a0 as HV, a1 as UV, a2 as qV, a3 as WV, b3 as VV, b4 as GV, aJ as YV, aK as ZV, aL as XV, aN as KV, aM as QV, aO as JV, b5 as eG, ax as tG, aS as rG, aT as nG } from "./ToggleGroup.js";
9
9
  import { z as Je } from "zod";
@@ -13719,8 +13719,8 @@ NM.initialize({
13719
13719
  securityLevel: "loose"
13720
13720
  });
13721
13721
  const kae = ({ content: e, id: t }) => {
13722
- const r = Ft(null);
13723
- return Nt(() => {
13722
+ const r = Ot(null);
13723
+ return Mt(() => {
13724
13724
  (async () => {
13725
13725
  if (r.current)
13726
13726
  try {
@@ -13804,13 +13804,13 @@ da.prototype.commaOrSpaceSeparated = !1;
13804
13804
  da.prototype.mustUseProperty = !1;
13805
13805
  da.prototype.defined = !1;
13806
13806
  let _ae = 0;
13807
- const Ot = Xl(), Xr = Xl(), BM = Xl(), ze = Xl(), vr = Xl(), Fc = Xl(), Ni = Xl();
13807
+ const $t = Xl(), Xr = Xl(), BM = Xl(), ze = Xl(), vr = Xl(), Fc = Xl(), Ni = Xl();
13808
13808
  function Xl() {
13809
13809
  return 2 ** ++_ae;
13810
13810
  }
13811
13811
  const Fb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13812
13812
  __proto__: null,
13813
- boolean: Ot,
13813
+ boolean: $t,
13814
13814
  booleanish: Xr,
13815
13815
  commaOrSpaceSeparated: Ni,
13816
13816
  commaSeparated: Fc,
@@ -13960,38 +13960,38 @@ const FM = Ou({
13960
13960
  accessKey: vr,
13961
13961
  action: null,
13962
13962
  allow: null,
13963
- allowFullScreen: Ot,
13964
- allowPaymentRequest: Ot,
13965
- allowUserMedia: Ot,
13963
+ allowFullScreen: $t,
13964
+ allowPaymentRequest: $t,
13965
+ allowUserMedia: $t,
13966
13966
  alt: null,
13967
13967
  as: null,
13968
- async: Ot,
13968
+ async: $t,
13969
13969
  autoCapitalize: null,
13970
13970
  autoComplete: vr,
13971
- autoFocus: Ot,
13972
- autoPlay: Ot,
13971
+ autoFocus: $t,
13972
+ autoPlay: $t,
13973
13973
  blocking: vr,
13974
13974
  capture: null,
13975
13975
  charSet: null,
13976
- checked: Ot,
13976
+ checked: $t,
13977
13977
  cite: null,
13978
13978
  className: vr,
13979
13979
  cols: ze,
13980
13980
  colSpan: null,
13981
13981
  content: null,
13982
13982
  contentEditable: Xr,
13983
- controls: Ot,
13983
+ controls: $t,
13984
13984
  controlsList: vr,
13985
13985
  coords: ze | Fc,
13986
13986
  crossOrigin: null,
13987
13987
  data: null,
13988
13988
  dateTime: null,
13989
13989
  decoding: null,
13990
- default: Ot,
13991
- defer: Ot,
13990
+ default: $t,
13991
+ defer: $t,
13992
13992
  dir: null,
13993
13993
  dirName: null,
13994
- disabled: Ot,
13994
+ disabled: $t,
13995
13995
  download: BM,
13996
13996
  draggable: Xr,
13997
13997
  encType: null,
@@ -14001,11 +14001,11 @@ const FM = Ou({
14001
14001
  formAction: null,
14002
14002
  formEncType: null,
14003
14003
  formMethod: null,
14004
- formNoValidate: Ot,
14004
+ formNoValidate: $t,
14005
14005
  formTarget: null,
14006
14006
  headers: vr,
14007
14007
  height: ze,
14008
- hidden: Ot,
14008
+ hidden: $t,
14009
14009
  high: ze,
14010
14010
  href: null,
14011
14011
  hrefLang: null,
@@ -14014,15 +14014,15 @@ const FM = Ou({
14014
14014
  id: null,
14015
14015
  imageSizes: null,
14016
14016
  imageSrcSet: null,
14017
- inert: Ot,
14017
+ inert: $t,
14018
14018
  inputMode: null,
14019
14019
  integrity: null,
14020
14020
  is: null,
14021
- isMap: Ot,
14021
+ isMap: $t,
14022
14022
  itemId: null,
14023
14023
  itemProp: vr,
14024
14024
  itemRef: vr,
14025
- itemScope: Ot,
14025
+ itemScope: $t,
14026
14026
  itemType: vr,
14027
14027
  kind: null,
14028
14028
  label: null,
@@ -14030,7 +14030,7 @@ const FM = Ou({
14030
14030
  language: null,
14031
14031
  list: null,
14032
14032
  loading: null,
14033
- loop: Ot,
14033
+ loop: $t,
14034
14034
  low: ze,
14035
14035
  manifest: null,
14036
14036
  max: null,
@@ -14039,12 +14039,12 @@ const FM = Ou({
14039
14039
  method: null,
14040
14040
  min: null,
14041
14041
  minLength: ze,
14042
- multiple: Ot,
14043
- muted: Ot,
14042
+ multiple: $t,
14043
+ muted: $t,
14044
14044
  name: null,
14045
14045
  nonce: null,
14046
- noModule: Ot,
14047
- noValidate: Ot,
14046
+ noModule: $t,
14047
+ noValidate: $t,
14048
14048
  onAbort: null,
14049
14049
  onAfterPrint: null,
14050
14050
  onAuxClick: null,
@@ -14133,31 +14133,31 @@ const FM = Ou({
14133
14133
  onVolumeChange: null,
14134
14134
  onWaiting: null,
14135
14135
  onWheel: null,
14136
- open: Ot,
14136
+ open: $t,
14137
14137
  optimum: ze,
14138
14138
  pattern: null,
14139
14139
  ping: vr,
14140
14140
  placeholder: null,
14141
- playsInline: Ot,
14141
+ playsInline: $t,
14142
14142
  popover: null,
14143
14143
  popoverTarget: null,
14144
14144
  popoverTargetAction: null,
14145
14145
  poster: null,
14146
14146
  preload: null,
14147
- readOnly: Ot,
14147
+ readOnly: $t,
14148
14148
  referrerPolicy: null,
14149
14149
  rel: vr,
14150
- required: Ot,
14151
- reversed: Ot,
14150
+ required: $t,
14151
+ reversed: $t,
14152
14152
  rows: ze,
14153
14153
  rowSpan: ze,
14154
14154
  sandbox: vr,
14155
14155
  scope: null,
14156
- scoped: Ot,
14157
- seamless: Ot,
14158
- selected: Ot,
14159
- shadowRootClonable: Ot,
14160
- shadowRootDelegatesFocus: Ot,
14156
+ scoped: $t,
14157
+ seamless: $t,
14158
+ selected: $t,
14159
+ shadowRootClonable: $t,
14160
+ shadowRootDelegatesFocus: $t,
14161
14161
  shadowRootMode: null,
14162
14162
  shape: null,
14163
14163
  size: ze,
@@ -14177,7 +14177,7 @@ const FM = Ou({
14177
14177
  title: null,
14178
14178
  translate: null,
14179
14179
  type: null,
14180
- typeMustMatch: Ot,
14180
+ typeMustMatch: $t,
14181
14181
  useMap: null,
14182
14182
  value: Xr,
14183
14183
  width: ze,
@@ -14223,9 +14223,9 @@ const FM = Ou({
14223
14223
  // `<object>`
14224
14224
  color: null,
14225
14225
  // `<font>` and `<hr>`. Use CSS instead
14226
- compact: Ot,
14226
+ compact: $t,
14227
14227
  // Lists. Use CSS to reduce space between items instead
14228
- declare: Ot,
14228
+ declare: $t,
14229
14229
  // `<object>`
14230
14230
  event: null,
14231
14231
  // `<script>`
@@ -14249,13 +14249,13 @@ const FM = Ou({
14249
14249
  // `<body>`
14250
14250
  marginWidth: ze,
14251
14251
  // `<body>`
14252
- noResize: Ot,
14252
+ noResize: $t,
14253
14253
  // `<frame>`
14254
- noHref: Ot,
14254
+ noHref: $t,
14255
14255
  // `<area>`. Use no href instead of an explicit `nohref`
14256
- noShade: Ot,
14256
+ noShade: $t,
14257
14257
  // `<hr>`. Use background-color and height instead of borders
14258
- noWrap: Ot,
14258
+ noWrap: $t,
14259
14259
  // `<td>` and `<th>`
14260
14260
  object: null,
14261
14261
  // `<applet>`
@@ -14295,8 +14295,8 @@ const FM = Ou({
14295
14295
  allowTransparency: null,
14296
14296
  autoCorrect: null,
14297
14297
  autoSave: null,
14298
- disablePictureInPicture: Ot,
14299
- disableRemotePlayback: Ot,
14298
+ disablePictureInPicture: $t,
14299
+ disableRemotePlayback: $t,
14300
14300
  prefix: null,
14301
14301
  property: null,
14302
14302
  results: ze,
@@ -14531,7 +14531,7 @@ const FM = Ou({
14531
14531
  dur: null,
14532
14532
  divisor: ze,
14533
14533
  dominantBaseline: null,
14534
- download: Ot,
14534
+ download: $t,
14535
14535
  dx: null,
14536
14536
  dy: null,
14537
14537
  edgeMode: null,
@@ -22466,13 +22466,13 @@ _i.prototype.property = "";
22466
22466
  _i.prototype.spaceSeparated = !1;
22467
22467
  _i.prototype.space = void 0;
22468
22468
  let Whe = 0;
22469
- const $t = Kl(), Kr = Kl(), VN = Kl(), je = Kl(), kr = Kl(), zc = Kl(), Ri = Kl();
22469
+ const Pt = Kl(), Kr = Kl(), VN = Kl(), je = Kl(), kr = Kl(), zc = Kl(), Ri = Kl();
22470
22470
  function Kl() {
22471
22471
  return 2 ** ++Whe;
22472
22472
  }
22473
22473
  const Yb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22474
22474
  __proto__: null,
22475
- boolean: $t,
22475
+ boolean: Pt,
22476
22476
  booleanish: Kr,
22477
22477
  commaOrSpaceSeparated: Ri,
22478
22478
  commaSeparated: zc,
@@ -22601,38 +22601,38 @@ const Vhe = Fu({
22601
22601
  accessKey: kr,
22602
22602
  action: null,
22603
22603
  allow: null,
22604
- allowFullScreen: $t,
22605
- allowPaymentRequest: $t,
22606
- allowUserMedia: $t,
22604
+ allowFullScreen: Pt,
22605
+ allowPaymentRequest: Pt,
22606
+ allowUserMedia: Pt,
22607
22607
  alt: null,
22608
22608
  as: null,
22609
- async: $t,
22609
+ async: Pt,
22610
22610
  autoCapitalize: null,
22611
22611
  autoComplete: kr,
22612
- autoFocus: $t,
22613
- autoPlay: $t,
22612
+ autoFocus: Pt,
22613
+ autoPlay: Pt,
22614
22614
  blocking: kr,
22615
22615
  capture: null,
22616
22616
  charSet: null,
22617
- checked: $t,
22617
+ checked: Pt,
22618
22618
  cite: null,
22619
22619
  className: kr,
22620
22620
  cols: je,
22621
22621
  colSpan: null,
22622
22622
  content: null,
22623
22623
  contentEditable: Kr,
22624
- controls: $t,
22624
+ controls: Pt,
22625
22625
  controlsList: kr,
22626
22626
  coords: je | zc,
22627
22627
  crossOrigin: null,
22628
22628
  data: null,
22629
22629
  dateTime: null,
22630
22630
  decoding: null,
22631
- default: $t,
22632
- defer: $t,
22631
+ default: Pt,
22632
+ defer: Pt,
22633
22633
  dir: null,
22634
22634
  dirName: null,
22635
- disabled: $t,
22635
+ disabled: Pt,
22636
22636
  download: VN,
22637
22637
  draggable: Kr,
22638
22638
  encType: null,
@@ -22642,11 +22642,11 @@ const Vhe = Fu({
22642
22642
  formAction: null,
22643
22643
  formEncType: null,
22644
22644
  formMethod: null,
22645
- formNoValidate: $t,
22645
+ formNoValidate: Pt,
22646
22646
  formTarget: null,
22647
22647
  headers: kr,
22648
22648
  height: je,
22649
- hidden: $t,
22649
+ hidden: Pt,
22650
22650
  high: je,
22651
22651
  href: null,
22652
22652
  hrefLang: null,
@@ -22655,15 +22655,15 @@ const Vhe = Fu({
22655
22655
  id: null,
22656
22656
  imageSizes: null,
22657
22657
  imageSrcSet: null,
22658
- inert: $t,
22658
+ inert: Pt,
22659
22659
  inputMode: null,
22660
22660
  integrity: null,
22661
22661
  is: null,
22662
- isMap: $t,
22662
+ isMap: Pt,
22663
22663
  itemId: null,
22664
22664
  itemProp: kr,
22665
22665
  itemRef: kr,
22666
- itemScope: $t,
22666
+ itemScope: Pt,
22667
22667
  itemType: kr,
22668
22668
  kind: null,
22669
22669
  label: null,
@@ -22671,7 +22671,7 @@ const Vhe = Fu({
22671
22671
  language: null,
22672
22672
  list: null,
22673
22673
  loading: null,
22674
- loop: $t,
22674
+ loop: Pt,
22675
22675
  low: je,
22676
22676
  manifest: null,
22677
22677
  max: null,
@@ -22680,12 +22680,12 @@ const Vhe = Fu({
22680
22680
  method: null,
22681
22681
  min: null,
22682
22682
  minLength: je,
22683
- multiple: $t,
22684
- muted: $t,
22683
+ multiple: Pt,
22684
+ muted: Pt,
22685
22685
  name: null,
22686
22686
  nonce: null,
22687
- noModule: $t,
22688
- noValidate: $t,
22687
+ noModule: Pt,
22688
+ noValidate: Pt,
22689
22689
  onAbort: null,
22690
22690
  onAfterPrint: null,
22691
22691
  onAuxClick: null,
@@ -22774,31 +22774,31 @@ const Vhe = Fu({
22774
22774
  onVolumeChange: null,
22775
22775
  onWaiting: null,
22776
22776
  onWheel: null,
22777
- open: $t,
22777
+ open: Pt,
22778
22778
  optimum: je,
22779
22779
  pattern: null,
22780
22780
  ping: kr,
22781
22781
  placeholder: null,
22782
- playsInline: $t,
22782
+ playsInline: Pt,
22783
22783
  popover: null,
22784
22784
  popoverTarget: null,
22785
22785
  popoverTargetAction: null,
22786
22786
  poster: null,
22787
22787
  preload: null,
22788
- readOnly: $t,
22788
+ readOnly: Pt,
22789
22789
  referrerPolicy: null,
22790
22790
  rel: kr,
22791
- required: $t,
22792
- reversed: $t,
22791
+ required: Pt,
22792
+ reversed: Pt,
22793
22793
  rows: je,
22794
22794
  rowSpan: je,
22795
22795
  sandbox: kr,
22796
22796
  scope: null,
22797
- scoped: $t,
22798
- seamless: $t,
22799
- selected: $t,
22800
- shadowRootClonable: $t,
22801
- shadowRootDelegatesFocus: $t,
22797
+ scoped: Pt,
22798
+ seamless: Pt,
22799
+ selected: Pt,
22800
+ shadowRootClonable: Pt,
22801
+ shadowRootDelegatesFocus: Pt,
22802
22802
  shadowRootMode: null,
22803
22803
  shape: null,
22804
22804
  size: je,
@@ -22818,7 +22818,7 @@ const Vhe = Fu({
22818
22818
  title: null,
22819
22819
  translate: null,
22820
22820
  type: null,
22821
- typeMustMatch: $t,
22821
+ typeMustMatch: Pt,
22822
22822
  useMap: null,
22823
22823
  value: Kr,
22824
22824
  width: je,
@@ -22864,9 +22864,9 @@ const Vhe = Fu({
22864
22864
  // `<object>`
22865
22865
  color: null,
22866
22866
  // `<font>` and `<hr>`. Use CSS instead
22867
- compact: $t,
22867
+ compact: Pt,
22868
22868
  // Lists. Use CSS to reduce space between items instead
22869
- declare: $t,
22869
+ declare: Pt,
22870
22870
  // `<object>`
22871
22871
  event: null,
22872
22872
  // `<script>`
@@ -22890,13 +22890,13 @@ const Vhe = Fu({
22890
22890
  // `<body>`
22891
22891
  marginWidth: je,
22892
22892
  // `<body>`
22893
- noResize: $t,
22893
+ noResize: Pt,
22894
22894
  // `<frame>`
22895
- noHref: $t,
22895
+ noHref: Pt,
22896
22896
  // `<area>`. Use no href instead of an explicit `nohref`
22897
- noShade: $t,
22897
+ noShade: Pt,
22898
22898
  // `<hr>`. Use background-color and height instead of borders
22899
- noWrap: $t,
22899
+ noWrap: Pt,
22900
22900
  // `<td>` and `<th>`
22901
22901
  object: null,
22902
22902
  // `<applet>`
@@ -22936,8 +22936,8 @@ const Vhe = Fu({
22936
22936
  allowTransparency: null,
22937
22937
  autoCorrect: null,
22938
22938
  autoSave: null,
22939
- disablePictureInPicture: $t,
22940
- disableRemotePlayback: $t,
22939
+ disablePictureInPicture: Pt,
22940
+ disableRemotePlayback: Pt,
22941
22941
  prefix: null,
22942
22942
  property: null,
22943
22943
  results: je,
@@ -23172,7 +23172,7 @@ const Vhe = Fu({
23172
23172
  dur: null,
23173
23173
  divisor: je,
23174
23174
  dominantBaseline: null,
23175
- download: $t,
23175
+ download: Pt,
23176
23176
  dx: null,
23177
23177
  dy: null,
23178
23178
  edgeMode: null,
@@ -23963,13 +23963,13 @@ fa.prototype.commaOrSpaceSeparated = !1;
23963
23963
  fa.prototype.mustUseProperty = !1;
23964
23964
  fa.prototype.defined = !1;
23965
23965
  let u0e = 0;
23966
- const Pt = Ql(), Qr = Ql(), aR = Ql(), He = Ql(), Cr = Ql(), jc = Ql(), Bi = Ql();
23966
+ const Ft = Ql(), Qr = Ql(), aR = Ql(), He = Ql(), Cr = Ql(), jc = Ql(), Bi = Ql();
23967
23967
  function Ql() {
23968
23968
  return 2 ** ++u0e;
23969
23969
  }
23970
23970
  const Kb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23971
23971
  __proto__: null,
23972
- boolean: Pt,
23972
+ boolean: Ft,
23973
23973
  booleanish: Qr,
23974
23974
  commaOrSpaceSeparated: Bi,
23975
23975
  commaSeparated: jc,
@@ -24119,38 +24119,38 @@ const uR = zu({
24119
24119
  accessKey: Cr,
24120
24120
  action: null,
24121
24121
  allow: null,
24122
- allowFullScreen: Pt,
24123
- allowPaymentRequest: Pt,
24124
- allowUserMedia: Pt,
24122
+ allowFullScreen: Ft,
24123
+ allowPaymentRequest: Ft,
24124
+ allowUserMedia: Ft,
24125
24125
  alt: null,
24126
24126
  as: null,
24127
- async: Pt,
24127
+ async: Ft,
24128
24128
  autoCapitalize: null,
24129
24129
  autoComplete: Cr,
24130
- autoFocus: Pt,
24131
- autoPlay: Pt,
24130
+ autoFocus: Ft,
24131
+ autoPlay: Ft,
24132
24132
  blocking: Cr,
24133
24133
  capture: null,
24134
24134
  charSet: null,
24135
- checked: Pt,
24135
+ checked: Ft,
24136
24136
  cite: null,
24137
24137
  className: Cr,
24138
24138
  cols: He,
24139
24139
  colSpan: null,
24140
24140
  content: null,
24141
24141
  contentEditable: Qr,
24142
- controls: Pt,
24142
+ controls: Ft,
24143
24143
  controlsList: Cr,
24144
24144
  coords: He | jc,
24145
24145
  crossOrigin: null,
24146
24146
  data: null,
24147
24147
  dateTime: null,
24148
24148
  decoding: null,
24149
- default: Pt,
24150
- defer: Pt,
24149
+ default: Ft,
24150
+ defer: Ft,
24151
24151
  dir: null,
24152
24152
  dirName: null,
24153
- disabled: Pt,
24153
+ disabled: Ft,
24154
24154
  download: aR,
24155
24155
  draggable: Qr,
24156
24156
  encType: null,
@@ -24160,11 +24160,11 @@ const uR = zu({
24160
24160
  formAction: null,
24161
24161
  formEncType: null,
24162
24162
  formMethod: null,
24163
- formNoValidate: Pt,
24163
+ formNoValidate: Ft,
24164
24164
  formTarget: null,
24165
24165
  headers: Cr,
24166
24166
  height: He,
24167
- hidden: Pt,
24167
+ hidden: Ft,
24168
24168
  high: He,
24169
24169
  href: null,
24170
24170
  hrefLang: null,
@@ -24173,15 +24173,15 @@ const uR = zu({
24173
24173
  id: null,
24174
24174
  imageSizes: null,
24175
24175
  imageSrcSet: null,
24176
- inert: Pt,
24176
+ inert: Ft,
24177
24177
  inputMode: null,
24178
24178
  integrity: null,
24179
24179
  is: null,
24180
- isMap: Pt,
24180
+ isMap: Ft,
24181
24181
  itemId: null,
24182
24182
  itemProp: Cr,
24183
24183
  itemRef: Cr,
24184
- itemScope: Pt,
24184
+ itemScope: Ft,
24185
24185
  itemType: Cr,
24186
24186
  kind: null,
24187
24187
  label: null,
@@ -24189,7 +24189,7 @@ const uR = zu({
24189
24189
  language: null,
24190
24190
  list: null,
24191
24191
  loading: null,
24192
- loop: Pt,
24192
+ loop: Ft,
24193
24193
  low: He,
24194
24194
  manifest: null,
24195
24195
  max: null,
@@ -24198,12 +24198,12 @@ const uR = zu({
24198
24198
  method: null,
24199
24199
  min: null,
24200
24200
  minLength: He,
24201
- multiple: Pt,
24202
- muted: Pt,
24201
+ multiple: Ft,
24202
+ muted: Ft,
24203
24203
  name: null,
24204
24204
  nonce: null,
24205
- noModule: Pt,
24206
- noValidate: Pt,
24205
+ noModule: Ft,
24206
+ noValidate: Ft,
24207
24207
  onAbort: null,
24208
24208
  onAfterPrint: null,
24209
24209
  onAuxClick: null,
@@ -24292,31 +24292,31 @@ const uR = zu({
24292
24292
  onVolumeChange: null,
24293
24293
  onWaiting: null,
24294
24294
  onWheel: null,
24295
- open: Pt,
24295
+ open: Ft,
24296
24296
  optimum: He,
24297
24297
  pattern: null,
24298
24298
  ping: Cr,
24299
24299
  placeholder: null,
24300
- playsInline: Pt,
24300
+ playsInline: Ft,
24301
24301
  popover: null,
24302
24302
  popoverTarget: null,
24303
24303
  popoverTargetAction: null,
24304
24304
  poster: null,
24305
24305
  preload: null,
24306
- readOnly: Pt,
24306
+ readOnly: Ft,
24307
24307
  referrerPolicy: null,
24308
24308
  rel: Cr,
24309
- required: Pt,
24310
- reversed: Pt,
24309
+ required: Ft,
24310
+ reversed: Ft,
24311
24311
  rows: He,
24312
24312
  rowSpan: He,
24313
24313
  sandbox: Cr,
24314
24314
  scope: null,
24315
- scoped: Pt,
24316
- seamless: Pt,
24317
- selected: Pt,
24318
- shadowRootClonable: Pt,
24319
- shadowRootDelegatesFocus: Pt,
24315
+ scoped: Ft,
24316
+ seamless: Ft,
24317
+ selected: Ft,
24318
+ shadowRootClonable: Ft,
24319
+ shadowRootDelegatesFocus: Ft,
24320
24320
  shadowRootMode: null,
24321
24321
  shape: null,
24322
24322
  size: He,
@@ -24336,7 +24336,7 @@ const uR = zu({
24336
24336
  title: null,
24337
24337
  translate: null,
24338
24338
  type: null,
24339
- typeMustMatch: Pt,
24339
+ typeMustMatch: Ft,
24340
24340
  useMap: null,
24341
24341
  value: Qr,
24342
24342
  width: He,
@@ -24382,9 +24382,9 @@ const uR = zu({
24382
24382
  // `<object>`
24383
24383
  color: null,
24384
24384
  // `<font>` and `<hr>`. Use CSS instead
24385
- compact: Pt,
24385
+ compact: Ft,
24386
24386
  // Lists. Use CSS to reduce space between items instead
24387
- declare: Pt,
24387
+ declare: Ft,
24388
24388
  // `<object>`
24389
24389
  event: null,
24390
24390
  // `<script>`
@@ -24408,13 +24408,13 @@ const uR = zu({
24408
24408
  // `<body>`
24409
24409
  marginWidth: He,
24410
24410
  // `<body>`
24411
- noResize: Pt,
24411
+ noResize: Ft,
24412
24412
  // `<frame>`
24413
- noHref: Pt,
24413
+ noHref: Ft,
24414
24414
  // `<area>`. Use no href instead of an explicit `nohref`
24415
- noShade: Pt,
24415
+ noShade: Ft,
24416
24416
  // `<hr>`. Use background-color and height instead of borders
24417
- noWrap: Pt,
24417
+ noWrap: Ft,
24418
24418
  // `<td>` and `<th>`
24419
24419
  object: null,
24420
24420
  // `<applet>`
@@ -24454,8 +24454,8 @@ const uR = zu({
24454
24454
  allowTransparency: null,
24455
24455
  autoCorrect: null,
24456
24456
  autoSave: null,
24457
- disablePictureInPicture: Pt,
24458
- disableRemotePlayback: Pt,
24457
+ disablePictureInPicture: Ft,
24458
+ disableRemotePlayback: Ft,
24459
24459
  prefix: null,
24460
24460
  property: null,
24461
24461
  results: He,
@@ -24690,7 +24690,7 @@ const uR = zu({
24690
24690
  dur: null,
24691
24691
  divisor: He,
24692
24692
  dominantBaseline: null,
24693
- download: Pt,
24693
+ download: Ft,
24694
24694
  dx: null,
24695
24695
  dy: null,
24696
24696
  edgeMode: null,
@@ -38407,7 +38407,7 @@ const d2e = ({
38407
38407
  const n = lr(() => u2e(e), [e]), [i, a] = vt(
38408
38408
  () => z2(e, t) ?? n
38409
38409
  );
38410
- return Nt(() => {
38410
+ return Mt(() => {
38411
38411
  a(z2(e, t) ?? n), z2(e, t, a);
38412
38412
  }, [e, t, n]), /* @__PURE__ */ k.jsx("div", { className: "al-relative al-overflow-auto", children: /* @__PURE__ */ k.jsx(DB, { showLineNumbers: r, tokenized: i }) });
38413
38413
  }, OB = ({
@@ -38558,10 +38558,10 @@ const d2e = ({
38558
38558
  );
38559
38559
  }, zB = Hr({});
38560
38560
  function x2e(e) {
38561
- const t = Ft(null);
38561
+ const t = Ot(null);
38562
38562
  return t.current === null && (t.current = e()), t.current;
38563
38563
  }
38564
- const jB = typeof window < "u", v2e = jB ? gE : Nt, I4 = /* @__PURE__ */ Hr(null);
38564
+ const jB = typeof window < "u", v2e = jB ? gE : Mt, I4 = /* @__PURE__ */ Hr(null);
38565
38565
  function M4(e, t) {
38566
38566
  e.indexOf(t) === -1 && e.push(t);
38567
38567
  }
@@ -42279,7 +42279,7 @@ function Wxe(e = !0) {
42279
42279
  if (t === null)
42280
42280
  return [!0, null];
42281
42281
  const { isPresent: r, onExitComplete: n, register: i } = t, a = dp();
42282
- Nt(() => {
42282
+ Mt(() => {
42283
42283
  if (e)
42284
42284
  return i(a);
42285
42285
  }, [e]);
@@ -42541,11 +42541,11 @@ const mO = (e) => (t, r) => {
42541
42541
  createRenderState: pO
42542
42542
  }), c3e = Symbol.for("motionComponentSymbol");
42543
42543
  function u3e(e, t, r) {
42544
- const n = Ft(r);
42544
+ const n = Ot(r);
42545
42545
  bE(() => {
42546
42546
  n.current = r;
42547
42547
  });
42548
- const i = Ft(null);
42548
+ const i = Ot(null);
42549
42549
  return _t((a) => {
42550
42550
  var o;
42551
42551
  a && ((o = e.onMount) == null || o.call(e, a)), t && (a ? t.mount(a) : t.unmount());
@@ -42564,7 +42564,7 @@ function Bh(e) {
42564
42564
  }
42565
42565
  function h3e(e, t, r, n, i, a) {
42566
42566
  var g, b;
42567
- const { visualElement: s } = Kt(Qg), o = Kt(uO), l = Kt(I4), c = Kt(cO).reducedMotion, u = Ft(null), h = Ft(!1);
42567
+ const { visualElement: s } = Kt(Qg), o = Kt(uO), l = Kt(I4), c = Kt(cO).reducedMotion, u = Ot(null), h = Ot(!1);
42568
42568
  n = n || o.renderer, !u.current && n && (u.current = n(e, {
42569
42569
  visualState: t,
42570
42570
  parent: s,
@@ -42576,14 +42576,14 @@ function h3e(e, t, r, n, i, a) {
42576
42576
  }), h.current && u.current && (u.current.manuallyAnimateOnMount = !0));
42577
42577
  const d = u.current, f = Kt(gO);
42578
42578
  d && !d.projection && i && (d.type === "html" || d.type === "svg") && d3e(u.current, r, i, f);
42579
- const p = Ft(!1);
42579
+ const p = Ot(!1);
42580
42580
  bE(() => {
42581
42581
  d && p.current && d.update(r, l);
42582
42582
  });
42583
- const m = r[SD], y = Ft(!!m && !((g = window.MotionHandoffIsComplete) != null && g.call(window, m)) && ((b = window.MotionHasOptimisedAnimation) == null ? void 0 : b.call(window, m)));
42583
+ const m = r[SD], y = Ot(!!m && !((g = window.MotionHandoffIsComplete) != null && g.call(window, m)) && ((b = window.MotionHasOptimisedAnimation) == null ? void 0 : b.call(window, m)));
42584
42584
  return v2e(() => {
42585
42585
  h.current = !0, d && (p.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), y.current && d.animationState && d.animationState.animateChanges());
42586
- }), Nt(() => {
42586
+ }), Mt(() => {
42587
42587
  d && (!y.current && d.animationState && d.animationState.animateChanges(), y.current && (queueMicrotask(() => {
42588
42588
  var x;
42589
42589
  (x = window.MotionHandoffMarkAsComplete) == null || x.call(window, m);
@@ -43582,72 +43582,75 @@ let qc = (e = 21) => {
43582
43582
  const AO = Hr(null), LO = Hr(null), s5 = () => Kt(AO), ave = () => Kt(LO);
43583
43583
  function sve({
43584
43584
  initialInput: e = "",
43585
- children: t
43585
+ setInputRef: t,
43586
+ children: r
43586
43587
  }) {
43587
- const [r, n] = vt(e), i = _t(() => n(""), []), [a, s] = vt([]), o = Ft(null), l = Ft(() => {
43588
- }), c = _t((g) => {
43589
- const b = Array.from(g);
43590
- b.length !== 0 && s(
43591
- (x) => x.concat(
43592
- b.map((C) => ({
43588
+ const [n, i] = vt(e), a = _t(() => i(""), []), [s, o] = vt([]), l = Ot(null), c = Ot(() => {
43589
+ }), u = _t((b) => {
43590
+ const x = Array.from(b);
43591
+ x.length !== 0 && o(
43592
+ (C) => C.concat(
43593
+ x.map((w) => ({
43593
43594
  id: qc(),
43594
43595
  type: "file",
43595
- url: URL.createObjectURL(C),
43596
- mediaType: C.type,
43597
- filename: C.name
43596
+ url: URL.createObjectURL(w),
43597
+ mediaType: w.type,
43598
+ filename: w.name
43598
43599
  }))
43599
43600
  )
43600
43601
  );
43601
- }, []), u = _t((g) => {
43602
- s((b) => {
43603
- const x = b.find((C) => C.id === g);
43604
- return x != null && x.url && URL.revokeObjectURL(x.url), b.filter((C) => C.id !== g);
43602
+ }, []), h = _t((b) => {
43603
+ o((x) => {
43604
+ const C = x.find((w) => w.id === b);
43605
+ return C != null && C.url && URL.revokeObjectURL(C.url), x.filter((w) => w.id !== b);
43605
43606
  });
43606
- }, []), h = _t(() => {
43607
- s((g) => {
43608
- for (const b of g)
43609
- b.url && URL.revokeObjectURL(b.url);
43607
+ }, []), d = _t(() => {
43608
+ o((b) => {
43609
+ for (const x of b)
43610
+ x.url && URL.revokeObjectURL(x.url);
43610
43611
  return [];
43611
43612
  });
43612
- }, []), d = Ft(a);
43613
- d.current = a, Nt(
43613
+ }, []), f = Ot(s);
43614
+ f.current = s, Mt(
43614
43615
  () => () => {
43615
- for (const g of d.current)
43616
- g.url && URL.revokeObjectURL(g.url);
43616
+ for (const b of f.current)
43617
+ b.url && URL.revokeObjectURL(b.url);
43617
43618
  },
43618
43619
  []
43619
43620
  );
43620
- const f = _t(() => {
43621
- var g;
43622
- (g = l.current) == null || g.call(l);
43623
- }, []), p = lr(
43621
+ const p = _t(() => {
43622
+ var b;
43623
+ (b = c.current) == null || b.call(c);
43624
+ }, []), m = lr(
43624
43625
  () => ({
43625
- files: a,
43626
- add: c,
43627
- remove: u,
43628
- clear: h,
43629
- openFileDialog: f,
43630
- fileInputRef: o
43626
+ files: s,
43627
+ add: u,
43628
+ remove: h,
43629
+ clear: d,
43630
+ openFileDialog: p,
43631
+ fileInputRef: l
43631
43632
  }),
43632
- [a, c, u, h, f]
43633
- ), m = _t(
43634
- (g, b) => {
43635
- o.current = g.current, l.current = b;
43633
+ [s, u, h, d, p]
43634
+ ), y = _t(
43635
+ (b, x) => {
43636
+ l.current = b.current, c.current = x;
43636
43637
  },
43637
43638
  []
43638
- ), y = lr(
43639
+ ), g = lr(
43639
43640
  () => ({
43640
43641
  textInput: {
43641
- value: r,
43642
- setInput: n,
43643
- clear: i
43642
+ value: n,
43643
+ setInput: i,
43644
+ clear: a
43644
43645
  },
43645
- attachments: p,
43646
- __registerFileInput: m
43646
+ attachments: m,
43647
+ __registerFileInput: y
43647
43648
  }),
43648
- [r, i, p, m]
43649
+ [n, a, m, y]
43649
43650
  );
43650
- return /* @__PURE__ */ k.jsx(AO.Provider, { value: y, children: /* @__PURE__ */ k.jsx(LO.Provider, { value: p, children: t }) });
43651
+ return Mt(() => {
43652
+ t && (t.current = i);
43653
+ }, [i, t]), /* @__PURE__ */ k.jsx(AO.Provider, { value: g, children: /* @__PURE__ */ k.jsx(LO.Provider, { value: m, children: r }) });
43651
43654
  }
43652
43655
  const IO = Hr(null), o5 = () => {
43653
43656
  const e = ave(), r = Kt(IO) ?? e;
@@ -43688,7 +43691,7 @@ const IO = Hr(null), o5 = () => {
43688
43691
  children: c,
43689
43692
  ...u
43690
43693
  }) => {
43691
- const h = s5(), d = !!h, f = Ft(null), p = Ft(null), [m, y] = vt([]), g = d ? h.attachments.files : m, [b, x] = vt([]), C = Ft(g);
43694
+ const h = s5(), d = !!h, f = Ot(null), p = Ot(null), [m, y] = vt([]), g = d ? h.attachments.files : m, [b, x] = vt([]), C = Ot(g);
43692
43695
  C.current = g;
43693
43696
  const w = _t(() => {
43694
43697
  var H;
@@ -43780,14 +43783,14 @@ const IO = Hr(null), o5 = () => {
43780
43783
  ), F = _t(() => x([]), []), D = d ? R : _, j = d ? h.attachments.remove : M, T = d ? h.attachments.openFileDialog : w, A = _t(() => {
43781
43784
  B(), F();
43782
43785
  }, [B, F]);
43783
- Nt(() => {
43786
+ Mt(() => {
43784
43787
  d && h.__registerFileInput(f, () => {
43785
43788
  var H;
43786
43789
  return (H = f.current) == null ? void 0 : H.click();
43787
43790
  });
43788
- }, [d, h]), Nt(() => {
43791
+ }, [d, h]), Mt(() => {
43789
43792
  i && f.current && g.length === 0 && (f.current.value = "");
43790
- }, [g, i]), Nt(() => {
43793
+ }, [g, i]), Mt(() => {
43791
43794
  const H = p.current;
43792
43795
  if (!H || n)
43793
43796
  return;
@@ -43801,7 +43804,7 @@ const IO = Hr(null), o5 = () => {
43801
43804
  return H.addEventListener("dragover", oe), H.addEventListener("drop", ie), () => {
43802
43805
  H.removeEventListener("dragover", oe), H.removeEventListener("drop", ie);
43803
43806
  };
43804
- }, [D, n]), Nt(() => {
43807
+ }, [D, n]), Mt(() => {
43805
43808
  if (!n)
43806
43809
  return;
43807
43810
  const H = (ie) => {
@@ -43814,7 +43817,7 @@ const IO = Hr(null), o5 = () => {
43814
43817
  return document.addEventListener("dragover", H), document.addEventListener("drop", oe), () => {
43815
43818
  document.removeEventListener("dragover", H), document.removeEventListener("drop", oe);
43816
43819
  };
43817
- }, [D, n]), Nt(
43820
+ }, [D, n]), Mt(
43818
43821
  () => () => {
43819
43822
  if (!d)
43820
43823
  for (const H of C.current)
@@ -50653,17 +50656,17 @@ E(N, ee, ae, "Z", "ℤ");
50653
50656
  E(Ne, ee, ae, "Z", "ℤ");
50654
50657
  E(N, q, wt, "h", "ℎ");
50655
50658
  E(Ne, q, wt, "h", "ℎ");
50656
- var Mt = "";
50659
+ var Nt = "";
50657
50660
  for (var ti = 0; ti < km.length; ti++) {
50658
50661
  var jr = km.charAt(ti);
50659
- Mt = String.fromCharCode(55349, 56320 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56372 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56424 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56580 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56684 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56736 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56788 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56840 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56944 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), ti < 26 && (Mt = String.fromCharCode(55349, 56632 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt), Mt = String.fromCharCode(55349, 56476 + ti), E(N, q, wt, jr, Mt), E(Ne, q, ae, jr, Mt));
50662
+ Nt = String.fromCharCode(55349, 56320 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56372 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56424 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56580 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56684 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56736 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56788 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56840 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56944 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), ti < 26 && (Nt = String.fromCharCode(55349, 56632 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt), Nt = String.fromCharCode(55349, 56476 + ti), E(N, q, wt, jr, Nt), E(Ne, q, ae, jr, Nt));
50660
50663
  }
50661
- Mt = "𝕜";
50662
- E(N, q, wt, "k", Mt);
50663
- E(Ne, q, ae, "k", Mt);
50664
+ Nt = "𝕜";
50665
+ E(N, q, wt, "k", Nt);
50666
+ E(Ne, q, ae, "k", Nt);
50664
50667
  for (var Xo = 0; Xo < 10; Xo++) {
50665
50668
  var Ys = Xo.toString();
50666
- Mt = String.fromCharCode(55349, 57294 + Xo), E(N, q, wt, Ys, Mt), E(Ne, q, ae, Ys, Mt), Mt = String.fromCharCode(55349, 57314 + Xo), E(N, q, wt, Ys, Mt), E(Ne, q, ae, Ys, Mt), Mt = String.fromCharCode(55349, 57324 + Xo), E(N, q, wt, Ys, Mt), E(Ne, q, ae, Ys, Mt), Mt = String.fromCharCode(55349, 57334 + Xo), E(N, q, wt, Ys, Mt), E(Ne, q, ae, Ys, Mt);
50669
+ Nt = String.fromCharCode(55349, 57294 + Xo), E(N, q, wt, Ys, Nt), E(Ne, q, ae, Ys, Nt), Nt = String.fromCharCode(55349, 57314 + Xo), E(N, q, wt, Ys, Nt), E(Ne, q, ae, Ys, Nt), Nt = String.fromCharCode(55349, 57324 + Xo), E(N, q, wt, Ys, Nt), E(Ne, q, ae, Ys, Nt), Nt = String.fromCharCode(55349, 57334 + Xo), E(N, q, wt, Ys, Nt), E(Ne, q, ae, Ys, Nt);
50667
50670
  }
50668
50671
  var Fx = "ÐÞþ";
50669
50672
  for (var uy = 0; uy < Fx.length; uy++) {
@@ -71970,7 +71973,7 @@ _a.parse;
71970
71973
  Ki.lex;
71971
71974
  var Y9e = 300, Z9e = "300px", X9e = 500;
71972
71975
  function K9e(e = {}) {
71973
- let { immediate: t = !1, debounceDelay: r = Y9e, rootMargin: n = Z9e, idleTimeout: i = X9e } = e, [a, s] = vt(!1), o = Ft(null), l = Ft(null), c = Ft(null), u = lr(() => (f) => {
71976
+ let { immediate: t = !1, debounceDelay: r = Y9e, rootMargin: n = Z9e, idleTimeout: i = X9e } = e, [a, s] = vt(!1), o = Ot(null), l = Ot(null), c = Ot(null), u = lr(() => (f) => {
71974
71977
  let p = Date.now();
71975
71978
  return window.setTimeout(() => {
71976
71979
  f({ didTimeout: !1, timeRemaining: () => Math.max(0, 50 - (Date.now() - p)) });
@@ -71978,7 +71981,7 @@ function K9e(e = {}) {
71978
71981
  }, []), h = lr(() => typeof window < "u" && window.requestIdleCallback ? (f, p) => window.requestIdleCallback(f, p) : u, [u]), d = lr(() => typeof window < "u" && window.cancelIdleCallback ? (f) => window.cancelIdleCallback(f) : (f) => {
71979
71982
  clearTimeout(f);
71980
71983
  }, []);
71981
- return Nt(() => {
71984
+ return Mt(() => {
71982
71985
  if (t) {
71983
71986
  s(!0);
71984
71987
  return;
@@ -72014,7 +72017,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72014
72017
  let n = typeof t == "string" ? new Blob([t], { type: r }) : t, i = URL.createObjectURL(n), a = document.createElement("a");
72015
72018
  a.href = i, a.download = e, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(i);
72016
72019
  }, nAe = Hr({ code: "" }), cU = () => Kt(nAe), Q8 = ({ onCopy: e, onError: t, timeout: r = 2e3, children: n, className: i, code: a, ...s }) => {
72017
- let [o, l] = vt(!1), c = Ft(0), { code: u } = cU(), { isAnimating: h } = Kt(ha), d = a ?? u, f = async () => {
72020
+ let [o, l] = vt(!1), c = Ot(0), { code: u } = cU(), { isAnimating: h } = Kt(ha), d = a ?? u, f = async () => {
72018
72021
  var m;
72019
72022
  if (typeof window > "u" || !((m = navigator == null ? void 0 : navigator.clipboard) != null && m.writeText)) {
72020
72023
  t == null || t(new Error("Clipboard API not available"));
@@ -72026,7 +72029,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72026
72029
  t == null || t(y);
72027
72030
  }
72028
72031
  };
72029
- Nt(() => () => {
72032
+ Mt(() => () => {
72030
72033
  window.clearTimeout(c.current);
72031
72034
  }, []);
72032
72035
  let p = o ? y6 : b6;
@@ -72068,7 +72071,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72068
72071
  }, [e]), o = _t(() => {
72069
72072
  n(), r();
72070
72073
  }, [n, r]);
72071
- return Nt(() => {
72074
+ return Mt(() => {
72072
72075
  if (t) {
72073
72076
  oAe();
72074
72077
  let l = (c) => {
@@ -72112,7 +72115,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72112
72115
  }, o.onerror = () => a(new Error("Failed to load SVG image")), o.src = s;
72113
72116
  });
72114
72117
  }, hAe = ({ chart: e, children: t, className: r, onDownload: n, config: i, onError: a }) => {
72115
- let [s, o] = vt(!1), l = Ft(null), { isAnimating: c } = Kt(ha), u = x6(), h = async (d) => {
72118
+ let [s, o] = vt(!1), l = Ot(null), { isAnimating: c } = Kt(ha), u = x6(), h = async (d) => {
72116
72119
  try {
72117
72120
  if (d === "mmd") {
72118
72121
  Gc("diagram.mmd", e, "text/plain"), o(!1), n == null || n(d);
@@ -72140,7 +72143,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72140
72143
  a == null || a(f);
72141
72144
  }
72142
72145
  };
72143
- return Nt(() => {
72146
+ return Mt(() => {
72144
72147
  let d = (f) => {
72145
72148
  let p = f.composedPath();
72146
72149
  l.current && !p.includes(l.current) && o(!1);
@@ -72161,7 +72164,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72161
72164
  })(), h = () => {
72162
72165
  o(!s);
72163
72166
  };
72164
- return Nt(() => {
72167
+ return Mt(() => {
72165
72168
  if (s) {
72166
72169
  dAe();
72167
72170
  let d = (f) => {
@@ -72171,7 +72174,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72171
72174
  document.removeEventListener("keydown", d), fAe();
72172
72175
  };
72173
72176
  }
72174
- }, [s]), Nt(() => {
72177
+ }, [s]), Mt(() => {
72175
72178
  s ? r == null || r() : n && n();
72176
72179
  }, [s, r, n]), k.jsxs(k.Fragment, { children: [k.jsx("button", { className: Dt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i), disabled: l, onClick: h, title: "View fullscreen", type: "button", ...a, children: k.jsx(J9e, { size: 14 }) }), s ? k.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm", onClick: h, onKeyDown: (d) => {
72177
72180
  d.key === "Escape" && h();
@@ -72251,7 +72254,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72251
72254
  return n.join(`
72252
72255
  `);
72253
72256
  }, yAe = ({ children: e, className: t, onCopy: r, onError: n, timeout: i = 2e3 }) => {
72254
- let [a, s] = vt(!1), [o, l] = vt(!1), c = Ft(null), u = Ft(0), { isAnimating: h } = Kt(ha), d = async (p) => {
72257
+ let [a, s] = vt(!1), [o, l] = vt(!1), c = Ot(null), u = Ot(0), { isAnimating: h } = Kt(ha), d = async (p) => {
72255
72258
  var m, y;
72256
72259
  if (typeof window > "u" || !((m = navigator == null ? void 0 : navigator.clipboard) != null && m.write)) {
72257
72260
  n == null || n(new Error("Clipboard API not available"));
@@ -72269,7 +72272,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72269
72272
  n == null || n(g);
72270
72273
  }
72271
72274
  };
72272
- Nt(() => {
72275
+ Mt(() => {
72273
72276
  let p = (m) => {
72274
72277
  let y = m.composedPath();
72275
72278
  c.current && !y.includes(c.current) && s(!1);
@@ -72281,7 +72284,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72281
72284
  let f = o ? y6 : b6;
72282
72285
  return k.jsxs("div", { className: "relative", ref: c, children: [k.jsx("button", { className: Dt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: h, onClick: () => s(!a), title: "Copy table", type: "button", children: e ?? k.jsx(f, { size: 14 }) }), a ? k.jsxs("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [k.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => d("csv"), title: "Copy table as CSV", type: "button", children: "CSV" }), k.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => d("tsv"), title: "Copy table as TSV", type: "button", children: "TSV" })] }) : null] });
72283
72286
  }, bAe = ({ children: e, className: t, onDownload: r, onError: n }) => {
72284
- let [i, a] = vt(!1), s = Ft(null), { isAnimating: o } = Kt(ha), l = (c) => {
72287
+ let [i, a] = vt(!1), s = Ot(null), { isAnimating: o } = Kt(ha), l = (c) => {
72285
72288
  var u;
72286
72289
  try {
72287
72290
  let h = (u = s.current) == null ? void 0 : u.closest('[data-streamdown="table-wrapper"]'), d = h == null ? void 0 : h.querySelector("table");
@@ -72295,7 +72298,7 @@ var y6 = (e) => k.jsx("svg", { color: "currentColor", height: 16, strokeLinejoin
72295
72298
  n == null || n(h);
72296
72299
  }
72297
72300
  };
72298
- return Nt(() => {
72301
+ return Mt(() => {
72299
72302
  let c = (u) => {
72300
72303
  let h = u.composedPath();
72301
72304
  s.current && !h.includes(s.current) && a(!1);
@@ -72568,7 +72571,7 @@ var TAe = { ol: v6, li: fU, ul: pU, hr: mU, strong: gU, a: yU, h1: bU, h2: xU, h
72568
72571
  PU.displayName = "Block";
72569
72572
  var HAe = ["github-light", "github-dark"], k6 = Ut(({ children: e, mode: t = "streaming", parseIncompleteMarkdown: r = !0, components: n, rehypePlugins: i = PAe, remarkPlugins: a = FAe, className: s, shikiTheme: o = HAe, mermaid: l, controls: c = !0, isAnimating: u = !1, BlockComponent: h = PU, parseMarkdownIntoBlocksFn: d = DAe, caret: f, plugins: p, remend: m, linkSafety: y = { enabled: !0 }, ...g }) => {
72570
72573
  let b = dp(), [x, C] = KW(), w = lr(() => typeof e != "string" ? "" : t === "streaming" && r ? EEe(e, m) : e, [e, t, r, m]), v = lr(() => d(w), [w, d]), [_, M] = vt(v);
72571
- Nt(() => {
72574
+ Mt(() => {
72572
72575
  t === "streaming" ? C(() => {
72573
72576
  M(v);
72574
72577
  }) : M(v);
@@ -72584,7 +72587,7 @@ var HAe = ["github-light", "github-dark"], k6 = Ut(({ children: e, mode: t = "st
72584
72587
  }, (e, t) => e.children === t.children && e.shikiTheme === t.shikiTheme && e.isAnimating === t.isAnimating && e.mode === t.mode && e.plugins === t.plugins && e.className === t.className && e.linkSafety === t.linkSafety);
72585
72588
  k6.displayName = "Streamdown";
72586
72589
  var UAe = ({ children: e, className: t, minZoom: r = 0.5, maxZoom: n = 3, zoomStep: i = 0.1, showControls: a = !0, initialZoom: s = 1, fullscreen: o = !1 }) => {
72587
- let l = Ft(null), c = Ft(null), [u, h] = vt(s), [d, f] = vt({ x: 0, y: 0 }), [p, m] = vt(!1), [y, g] = vt({ x: 0, y: 0 }), [b, x] = vt({ x: 0, y: 0 }), C = _t((D) => {
72590
+ let l = Ot(null), c = Ot(null), [u, h] = vt(s), [d, f] = vt({ x: 0, y: 0 }), [p, m] = vt(!1), [y, g] = vt({ x: 0, y: 0 }), [b, x] = vt({ x: 0, y: 0 }), C = _t((D) => {
72588
72591
  h((j) => Math.max(r, Math.min(n, j + D)));
72589
72592
  }, [r, n]), w = _t(() => {
72590
72593
  C(i);
@@ -72611,12 +72614,12 @@ var UAe = ({ children: e, className: t, minZoom: r = 0.5, maxZoom: n = 3, zoomSt
72611
72614
  let j = D.currentTarget;
72612
72615
  j instanceof HTMLElement && j.releasePointerCapture(D.pointerId);
72613
72616
  }, []);
72614
- return Nt(() => {
72617
+ return Mt(() => {
72615
72618
  let D = l.current;
72616
72619
  if (D) return D.addEventListener("wheel", M, { passive: !1 }), () => {
72617
72620
  D.removeEventListener("wheel", M);
72618
72621
  };
72619
- }, [M]), Nt(() => {
72622
+ }, [M]), Mt(() => {
72620
72623
  let D = c.current;
72621
72624
  if (D && p) return document.body.style.userSelect = "none", D.addEventListener("pointermove", B, { passive: !1 }), D.addEventListener("pointerup", F), D.addEventListener("pointercancel", F), () => {
72622
72625
  document.body.style.userSelect = "", D.removeEventListener("pointermove", B), D.removeEventListener("pointerup", F), D.removeEventListener("pointercancel", F);
@@ -72624,7 +72627,7 @@ var UAe = ({ children: e, className: t, minZoom: r = 0.5, maxZoom: n = 3, zoomSt
72624
72627
  }, [p, B, F]), k.jsxs("div", { className: Dt("relative flex flex-col", o ? "h-full w-full" : "min-h-28 w-full", t), ref: l, style: { cursor: p ? "grabbing" : "grab" }, children: [a ? k.jsxs("div", { className: Dt("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm", o ? "bottom-4 left-4" : "bottom-2 left-2"), children: [k.jsx("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: u >= n, onClick: w, title: "Zoom in", type: "button", children: k.jsx(tAe, { size: 16 }) }), k.jsx("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: u <= r, onClick: v, title: "Zoom out", type: "button", children: k.jsx(rAe, { size: 16 }) }), k.jsx("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", onClick: _, title: "Reset zoom and pan", type: "button", children: k.jsx(eAe, { size: 16 }) })] }) : null, k.jsx("div", { className: Dt("flex-1 origin-center transition-transform duration-150 ease-out", o ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"), onPointerDown: R, ref: c, role: "application", style: { transform: `translate(${d.x}px, ${d.y}px) scale(${u})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
72625
72628
  }, qAe = ({ chart: e, className: t, config: r, fullscreen: n = !1, showControls: i = !0 }) => {
72626
72629
  let [a, s] = vt(null), [o, l] = vt(!1), [c, u] = vt(""), [h, d] = vt(""), [f, p] = vt(0), { mermaid: m } = Kt(ha), y = x6(), g = m == null ? void 0 : m.errorComponent, { shouldRender: b, containerRef: x } = K9e({ immediate: n });
72627
- if (Nt(() => {
72630
+ if (Mt(() => {
72628
72631
  if (b) {
72629
72632
  if (!y) {
72630
72633
  s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
@@ -72678,9 +72681,9 @@ const FU = Hr(null), WAe = () => {
72678
72681
  prop: a,
72679
72682
  defaultProp: void 0
72680
72683
  }), [d, f] = vt(!1), [p, m] = vt(null);
72681
- Nt(() => {
72684
+ Mt(() => {
72682
72685
  t ? p === null && m(Date.now()) : p !== null && (h(Math.ceil((Date.now() - p) / GAe)), m(null));
72683
- }, [t, p, h]), Nt(() => {
72686
+ }, [t, p, h]), Mt(() => {
72684
72687
  if (n && !t && l && !d) {
72685
72688
  const g = setTimeout(() => {
72686
72689
  c(!1), f(!0);
@@ -72861,7 +72864,7 @@ var mE;
72861
72864
  w1 = !1;
72862
72865
  });
72863
72866
  const UU = (e = {}) => {
72864
- const [t, r] = vt(!1), [n, i] = vt(e.initial !== !1), [a, s] = vt(!1), o = Ft(null);
72867
+ const [t, r] = vt(!1), [n, i] = vt(e.initial !== !1), [a, s] = vt(!1), o = Ot(null);
72865
72868
  o.current = e;
72866
72869
  const l = _t(() => {
72867
72870
  var C;
@@ -73044,9 +73047,9 @@ function Ry(...e) {
73044
73047
  * Copyright (c) StackBlitz. All rights reserved.
73045
73048
  * Licensed under the MIT License. See License.txt in the project root for license information.
73046
73049
  *--------------------------------------------------------------------------------------------*/
73047
- const qU = Hr(null), iLe = typeof window < "u" ? gE : Nt;
73050
+ const qU = Hr(null), iLe = typeof window < "u" ? gE : Mt;
73048
73051
  function T3({ instance: e, children: t, resize: r, initial: n, mass: i, damping: a, stiffness: s, targetScrollTop: o, contextRef: l, ...c }) {
73049
- const u = Ft(null), h = Wh.useCallback((w, v) => {
73052
+ const u = Ot(null), h = Wh.useCallback((w, v) => {
73050
73053
  const _ = (C == null ? void 0 : C.targetScrollTop) ?? o;
73051
73054
  return (_ == null ? void 0 : _(w, v)) ?? w;
73052
73055
  }, [o]), d = UU({
@@ -73203,7 +73206,7 @@ const sLe = ({ className: e, ...t }) => /* @__PURE__ */ k.jsx(
73203
73206
  ...r
73204
73207
  }) => {
73205
73208
  const n = C6(), [i, a] = vt(0), [s, o] = vt(0);
73206
- return Nt(() => {
73209
+ return Mt(() => {
73207
73210
  n && (o(n.scrollSnapList().length), a(n.selectedScrollSnap() + 1), n.on("select", () => {
73208
73211
  a(n.selectedScrollSnap() + 1);
73209
73212
  }));
@@ -73280,9 +73283,9 @@ const sLe = ({ className: e, ...t }) => /* @__PURE__ */ k.jsx(
73280
73283
  "div",
73281
73284
  {
73282
73285
  className: Ye(
73283
- "is-user:al-dark al-flex al-w-full al-min-w-0 al-max-w-full al-flex-col al-gap-2 al-overflow-hidden al-text-sm",
73284
- "group-[.is-user]:al-ml-auto group-[.is-user]:al-rounded-lg group-[.is-user]:al-bg-gray-200 group-[.is-user]:al-px-4 group-[.is-user]:al-py-3 group-[.is-user]:al-text-foreground",
73285
- "group-[.is-assistant]:al-text-foreground",
73286
+ "is-user:al-dark al-flex al-min-w-0 al-max-w-full al-flex-col al-gap-2 al-overflow-hidden al-text-sm",
73287
+ "group-[.is-user]:al-rounded-lg group-[.is-user]:al-bg-gray-200 group-[.is-user]:al-px-4 group-[.is-user]:al-py-3 group-[.is-user]:al-text-foreground",
73288
+ "group-[.is-assistant]:al-text-foreground group-[.is-assistant]:al-pb-6 group-[.is-assistant]:al-w-full",
73286
73289
  t
73287
73290
  ),
73288
73291
  ...r,
@@ -73557,7 +73560,7 @@ const DLe = ({
73557
73560
  t(d);
73558
73561
  }
73559
73562
  });
73560
- Nt(() => {
73563
+ Mt(() => {
73561
73564
  c != null && c.message && o("content", { message: c.message });
73562
73565
  }, [c, o]);
73563
73566
  const h = (d) => {
@@ -73684,7 +73687,7 @@ const PLe = Je.object({
73684
73687
  e(y, u.type);
73685
73688
  }
73686
73689
  });
73687
- Nt(() => {
73690
+ Mt(() => {
73688
73691
  d != null && d.message && o("description", { message: d.message });
73689
73692
  }, [d, o]);
73690
73693
  const p = (y) => {
@@ -73885,7 +73888,7 @@ const PLe = Je.object({
73885
73888
  queryFn: () => na.get("project_governance/checks"),
73886
73889
  enabled: !1
73887
73890
  });
73888
- return Nt(() => {
73891
+ return Mt(() => {
73889
73892
  n();
73890
73893
  }, []), r ? /* @__PURE__ */ k.jsx(sd, {}) : t ? /* @__PURE__ */ k.jsxs(Qm, { color: "danger", children: [
73891
73894
  "Error loading checks: ",
@@ -74192,9 +74195,9 @@ const XLe = (e, t) => {
74192
74195
  ..._3.getInitialState(),
74193
74196
  sessions: g || {},
74194
74197
  currentSessionId: b || null
74195
- });
74198
+ }), A = Ot();
74196
74199
  return vE(D, () => ({
74197
- getSessionById: (A) => j.sessions[A],
74200
+ getSessionById: (z) => j.sessions[z],
74198
74201
  getSessionId: () => j.currentSessionId,
74199
74202
  // delete current session id and create a new session
74200
74203
  resetSession: () => {
@@ -74202,20 +74205,23 @@ const XLe = (e, t) => {
74202
74205
  T(o_({ context: l, models: d, modes: m }));
74203
74206
  }, 0);
74204
74207
  },
74208
+ setUserInput: (z) => {
74209
+ j.currentSessionId && A.current && A.current(z);
74210
+ },
74205
74211
  resetStatus: () => {
74206
74212
  T(
74207
74213
  Eu({ state: br.UNINITIALIZED, sessionId: j.currentSessionId })
74208
74214
  );
74209
74215
  }
74210
- })), Nt(() => {
74216
+ })), Mt(() => {
74211
74217
  g && Object.keys(g || {}).length > 0 && T(aIe(g));
74212
- }, [g]), Nt(() => {
74218
+ }, [g]), Mt(() => {
74213
74219
  T(b ? JLe(b) : o_({ context: l, models: d, modes: m }));
74214
- }, [b, T, l, d, m]), Nt(() => {
74220
+ }, [b, T, l, d, m]), Mt(() => {
74215
74221
  j.currentSessionId && F && F({ type: "session_created", sessionId: j.currentSessionId });
74216
- }, [j.currentSessionId, F]), Nt(() => {
74222
+ }, [j.currentSessionId, F]), Mt(() => {
74217
74223
  if (F && j.currentSessionId) {
74218
- const A = {
74224
+ const z = {
74219
74225
  [br.UNINITIALIZED]: "idle",
74220
74226
  [br.LOADING]: "pending",
74221
74227
  [br.LOADED]: "complete",
@@ -74224,7 +74230,7 @@ const XLe = (e, t) => {
74224
74230
  };
74225
74231
  F({
74226
74232
  type: "status_change",
74227
- status: A[j.loadingState],
74233
+ status: z[j.loadingState],
74228
74234
  sessionId: j.currentSessionId
74229
74235
  });
74230
74236
  }
@@ -74245,7 +74251,7 @@ const XLe = (e, t) => {
74245
74251
  modes: m,
74246
74252
  classNames: y
74247
74253
  },
74248
- children: /* @__PURE__ */ k.jsx(sve, { initialInput: x, children: /* @__PURE__ */ k.jsx(
74254
+ children: /* @__PURE__ */ k.jsx(sve, { initialInput: x, setInputRef: A, children: /* @__PURE__ */ k.jsx(
74249
74255
  w$e,
74250
74256
  {
74251
74257
  assistantMeta: o,
@@ -80349,7 +80355,7 @@ function qDe({
80349
80355
  resume: t = !1,
80350
80356
  ...r
80351
80357
  } = {}) {
80352
- const n = Ft(
80358
+ const n = Ot(
80353
80359
  "chat" in r ? r.chat : new Z_(r)
80354
80360
  );
80355
80361
  ("chat" in r && r.chat !== n.current || "id" in r && n.current.id !== r.id) && (n.current = "chat" in r ? r.chat : new Z_(r));
@@ -80376,7 +80382,7 @@ function qDe({
80376
80382
  },
80377
80383
  [n]
80378
80384
  );
80379
- return Nt(() => {
80385
+ return Mt(() => {
80380
80386
  t && n.current.resumeStream();
80381
80387
  }, [t, n]), {
80382
80388
  id: n.current.id,
@@ -83282,8 +83288,8 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83282
83288
  urls: i,
83283
83289
  requestParams: a,
83284
83290
  isMarkdownResponse: s
83285
- } = Tn(), o = Ft(Bf()), l = Ft(null), c = Ft(0), u = Ft(0), h = Ft(null), d = Ft(0), f = Ft(0), p = Ft(e), m = Ft(t);
83286
- Nt(() => {
83291
+ } = Tn(), o = Ot(Bf()), l = Ot(null), c = Ot(0), u = Ot(0), h = Ot(null), d = Ot(0), f = Ot(0), p = Ot(e), m = Ot(t);
83292
+ Mt(() => {
83287
83293
  p.current = e, m.current = t;
83288
83294
  }, [e, t]);
83289
83295
  const y = _t(
@@ -83325,7 +83331,7 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83325
83331
  ), g = r[t || ""], b = (g == null ? void 0 : g.context) || {}, x = `${(i == null ? void 0 : i.origin) || ""}${(i == null ? void 0 : i.askPath) || "/agent/ask"}`, C = lr(() => {
83326
83332
  if (a != null && a.headers)
83327
83333
  return a.headers instanceof Headers ? Object.fromEntries(a.headers.entries()) : Array.isArray(a.headers) ? Object.fromEntries(a.headers) : a.headers;
83328
- }, [a == null ? void 0 : a.headers]), w = Ft({
83334
+ }, [a == null ? void 0 : a.headers]), w = Ot({
83329
83335
  context: b,
83330
83336
  session_id: t,
83331
83337
  model_type: g == null ? void 0 : g.selectedModel,
@@ -83373,7 +83379,7 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83373
83379
  P instanceof Error && P.name === "AbortError" || l.current && (l.current.reject(P instanceof Error ? P : new Error(String(P))), l.current = null);
83374
83380
  }
83375
83381
  });
83376
- Nt(() => {
83382
+ Mt(() => {
83377
83383
  let P = br.UNINITIALIZED;
83378
83384
  switch (F) {
83379
83385
  case "error":
@@ -83388,8 +83394,8 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83388
83394
  }
83389
83395
  e(Eu({ state: P, sessionId: t }));
83390
83396
  }, [F, e, t]);
83391
- const T = Ft([]);
83392
- Nt(() => {
83397
+ const T = Ot([]);
83398
+ Mt(() => {
83393
83399
  T.current = [...M];
83394
83400
  }, [M]);
83395
83401
  const A = (P) => {
@@ -83647,7 +83653,7 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83647
83653
  })
83648
83654
  );
83649
83655
  };
83650
- return Nt(() => {
83656
+ return Mt(() => {
83651
83657
  var c;
83652
83658
  const l = (c = n == null ? void 0 : n[0]) == null ? void 0 : c.value;
83653
83659
  a || !l || !t || e(
@@ -83677,7 +83683,7 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83677
83683
  error: e,
83678
83684
  currentSession: t,
83679
83685
  refetchSession: r
83680
- }) => (Nt(() => {
83686
+ }) => (Mt(() => {
83681
83687
  if (!e && (t == null ? void 0 : t.status) !== By.enum.pending || !r)
83682
83688
  return;
83683
83689
  let n;
@@ -83723,8 +83729,8 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83723
83729
  classNames: M,
83724
83730
  modes: R,
83725
83731
  components: B
83726
- } = Tn(), { sendMessage: F } = rh(), { scrollRef: D, contentRef: j } = UU(), T = Ft(!1);
83727
- Nt(() => {
83732
+ } = Tn(), { sendMessage: F } = rh(), { scrollRef: D, contentRef: j } = UU(), T = Ot(!1);
83733
+ Mt(() => {
83728
83734
  na.get = async (ue, xe, _e = {}) => {
83729
83735
  var O;
83730
83736
  console.log("api helper get", ue, xe, _e);
@@ -83763,10 +83769,10 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83763
83769
  }
83764
83770
  return Be.json();
83765
83771
  };
83766
- }, [w, v == null ? void 0 : v.origin]), Nt(() => {
83772
+ }, [w, v == null ? void 0 : v.origin]), Mt(() => {
83767
83773
  var ue;
83768
83774
  m && (p(jl({ sessionId: m, context: t || {} })), (ue = R == null ? void 0 : R[0]) != null && ue.value && p(E3({ sessionId: m, mode: R[0].value })));
83769
- }, [m, p, t, R]), Nt(() => {
83775
+ }, [m, p, t, R]), Mt(() => {
83770
83776
  g === br.LOADED && p(XU());
83771
83777
  }, [g, p]);
83772
83778
  const A = m ? y[m] : null, z = !!((oe = A == null ? void 0 : A.messages) != null && oe.length), U = z || g === br.LOADING || !!b, $ = (ie = A == null ? void 0 : A.messages) == null ? void 0 : ie[A.messages.length - 1], K = ($ == null ? void 0 : $.role) === "assistant" && (((he = $ == null ? void 0 : $.actions) == null ? void 0 : he.length) ?? 0) > 0, P = _t(
@@ -83785,7 +83791,7 @@ const y$e = (e) => (e == null ? void 0 : e.filter((t) => t.type === "text").map(
83785
83791
  },
83786
83792
  [m, F]
83787
83793
  );
83788
- Nt(() => {
83794
+ Mt(() => {
83789
83795
  o && s && m && !z && !T.current && (T.current = !0, Y(s));
83790
83796
  }, [
83791
83797
  o,
@@ -87123,7 +87129,7 @@ const T$e = /* @__PURE__ */ Lu(S$e), EW = ({ artifacts: e }) => {
87123
87129
  queryFn: () => na.get(t == null ? void 0 : t.followupPath, { session_id: e }),
87124
87130
  enabled: !1
87125
87131
  });
87126
- if (Nt(() => {
87132
+ if (Mt(() => {
87127
87133
  e && (t != null && t.followupPath) && i();
87128
87134
  }, [e, t == null ? void 0 : t.followupPath]), !((s = n == null ? void 0 : n.questions) != null && s.length) || !(t != null && t.followupPath) || !e)
87129
87135
  return null;
@@ -87188,30 +87194,30 @@ const T$e = /* @__PURE__ */ Lu(S$e), EW = ({ artifacts: e }) => {
87188
87194
  showSavePromptButton: i
87189
87195
  }) => {
87190
87196
  const a = e.role === "assistant", { currentSessionId: s, loadingState: o, urls: l, classNames: c = {} } = Tn();
87191
- return /* @__PURE__ */ k.jsx(wLe, { from: e.role, children: /* @__PURE__ */ k.jsx(SLe, { children: /* @__PURE__ */ k.jsxs(dt, { gap: "sm", direction: "column", className: "al-w-full", children: [
87192
- e.attachments && e.attachments.length > 0 && /* @__PURE__ */ k.jsx(dt, { gap: "sm", justify: a ? "start" : "end", children: /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-attachments`, children: /* @__PURE__ */ k.jsx(W$e, { attachments: e.attachments }) }) }),
87193
- /* @__PURE__ */ k.jsxs(
87194
- "div",
87197
+ return /* @__PURE__ */ k.jsxs(wLe, { from: e.role, className: "!al-flex-row al-items-center", children: [
87198
+ r && !i && n && /* @__PURE__ */ k.jsx(
87199
+ tr,
87195
87200
  {
87196
- id: `message-${e.id}`,
87197
- className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"} ${c.messageItem ?? ""}`,
87198
- role: "article",
87199
- "aria-label": `${a ? "Assistant" : "User"} message`,
87200
- children: [
87201
- r && i && n && /* @__PURE__ */ k.jsx(
87202
- tr,
87203
- {
87204
- variant: "ghost",
87205
- size: "icon",
87206
- onClick: () => n(e),
87207
- className: "al-text-muted-foreground !al-p-0 al-h-auto al-w-auto",
87208
- "aria-label": "Save prompt",
87209
- title: "Add to Prompt Library",
87210
- type: "button",
87211
- children: /* @__PURE__ */ k.jsx(IG, { className: "!al-size-5" })
87212
- }
87213
- ),
87214
- /* @__PURE__ */ k.jsx(dt, { direction: "row", className: "al-w-full", children: /* @__PURE__ */ k.jsxs("div", { className: "al-max-w-full al-flex-1", children: [
87201
+ variant: "ghost",
87202
+ size: "icon",
87203
+ onClick: () => n(e),
87204
+ className: "al-text-muted-foreground !al-p-0 al-h-auto al-w-auto al-mt-2",
87205
+ "aria-label": "Save prompt",
87206
+ title: "Add to Prompt Library",
87207
+ type: "button",
87208
+ children: /* @__PURE__ */ k.jsx(IG, { className: "!al-size-5" })
87209
+ }
87210
+ ),
87211
+ /* @__PURE__ */ k.jsx(SLe, { children: /* @__PURE__ */ k.jsxs(dt, { gap: "sm", direction: "column", className: "group-[.is-assistant]:al-w-full", children: [
87212
+ e.attachments && e.attachments.length > 0 && /* @__PURE__ */ k.jsx(dt, { gap: "sm", justify: a ? "start" : "end", children: /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-attachments`, children: /* @__PURE__ */ k.jsx(W$e, { attachments: e.attachments }) }) }),
87213
+ /* @__PURE__ */ k.jsx(
87214
+ "div",
87215
+ {
87216
+ id: `message-${e.id}`,
87217
+ className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"} ${c.messageItem ?? ""}`,
87218
+ role: "article",
87219
+ "aria-label": `${a ? "Assistant" : "User"} message`,
87220
+ children: /* @__PURE__ */ k.jsx(dt, { direction: "row", className: "group-[.is-assistant]:al-w-full", children: /* @__PURE__ */ k.jsxs("div", { className: "al-max-w-full al-flex-1", children: [
87215
87221
  e.role === "assistant" && e.actions && e.actions.length > 0 && /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-status`, children: /* @__PURE__ */ k.jsx(
87216
87222
  AW,
87217
87223
  {
@@ -87225,16 +87231,7 @@ const T$e = /* @__PURE__ */ Lu(S$e), EW = ({ artifacts: e }) => {
87225
87231
  /* @__PURE__ */ k.jsx(cG, { className: "al-min-h-6 al-min-w-6" }),
87226
87232
  /* @__PURE__ */ k.jsx(Pf, { variant: "body", className: "al-flex-1", children: e.confidence_str })
87227
87233
  ] }) }),
87228
- /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-content`, children: /* @__PURE__ */ k.jsx(
87229
- S1,
87230
- {
87231
- content: e.content || "",
87232
- id: e.id,
87233
- components: {
87234
- p: ({ className: u, ...h }) => /* @__PURE__ */ k.jsx("p", { className: Ye("al-text-small", u), ...h })
87235
- }
87236
- }
87237
- ) }),
87234
+ /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-content`, children: /* @__PURE__ */ k.jsx(S1, { content: e.content || "", id: e.id }) }),
87238
87235
  e.artifacts && /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-artifacts`, children: /* @__PURE__ */ k.jsx(EW, { artifacts: e.artifacts }) }),
87239
87236
  e.interaction && /* @__PURE__ */ k.jsx("div", { className: "al-mt-4", id: `message-${e.id}-interaction`, children: /* @__PURE__ */ k.jsx($$e, { interaction: e.interaction }) }),
87240
87237
  e.citations && e.citations.length > 0 && /* @__PURE__ */ k.jsx("div", { className: "al-mt-4", id: `message-${e.id}-citations`, children: /* @__PURE__ */ k.jsx(
@@ -87254,11 +87251,11 @@ const T$e = /* @__PURE__ */ Lu(S$e), EW = ({ artifacts: e }) => {
87254
87251
  }
87255
87252
  ) })
87256
87253
  ] }) })
87257
- ]
87258
- }
87259
- ),
87260
- t && s && o === br.LOADED && /* @__PURE__ */ k.jsx(H$e, {})
87261
- ] }) }) }, e.id);
87254
+ }
87255
+ ),
87256
+ t && s && o === br.LOADED && /* @__PURE__ */ k.jsx(H$e, {})
87257
+ ] }) })
87258
+ ] }, e.id);
87262
87259
  }, G$e = ({
87263
87260
  messages: e,
87264
87261
  handleSavePrompt: t,
@@ -87318,8 +87315,8 @@ class Y$e {
87318
87315
  }
87319
87316
  }
87320
87317
  const Z$e = () => {
87321
- const { dispatch: e, currentSessionId: t, sessions: r, urls: n, requestParams: i } = Tn(), a = Ft(null), s = Ft(t), o = Ft(r);
87322
- return s.current = t, o.current = r, Nt(() => (a.current = new Y$e(500), () => {
87318
+ const { dispatch: e, currentSessionId: t, sessions: r, urls: n, requestParams: i } = Tn(), a = Ot(null), s = Ot(t), o = Ot(r);
87319
+ return s.current = t, o.current = r, Mt(() => (a.current = new Y$e(500), () => {
87323
87320
  var c;
87324
87321
  (c = a.current) == null || c.cleanup();
87325
87322
  }), []), { detectEntities: _t(
@@ -87411,7 +87408,7 @@ const Z$e = () => {
87411
87408
  g.type === "submenu" && s[g.key] && (y[g.key] = s[g.key]);
87412
87409
  }), y;
87413
87410
  })(), d = o5(), f = (s == null ? void 0 : s.entities) || [], p = d.files.length > 0 || Object.values(h).some((y) => y.length > 0) || f.length > 0;
87414
- return Nt(() => {
87411
+ return Mt(() => {
87415
87412
  if (i === br.LOADING && r) {
87416
87413
  d.clear();
87417
87414
  const y = {};
@@ -87433,7 +87430,7 @@ const Z$e = () => {
87433
87430
  e,
87434
87431
  s
87435
87432
  ]), p ? /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
87436
- /* @__PURE__ */ k.jsx("div", { className: "al-w-full al-px-10", role: "region", "aria-label": "Selected contexts", children: /* @__PURE__ */ k.jsxs(
87433
+ /* @__PURE__ */ k.jsx("div", { className: "al-w-full al-px-10 al-pb-2", role: "region", "aria-label": "Selected contexts", children: /* @__PURE__ */ k.jsxs(
87437
87434
  SE,
87438
87435
  {
87439
87436
  orientation: "horizontal",
@@ -87530,7 +87527,7 @@ const Z$e = () => {
87530
87527
  console.log(B);
87531
87528
  }
87532
87529
  };
87533
- Nt(() => {
87530
+ Mt(() => {
87534
87531
  d.trim().length > 2 && u(d.trim());
87535
87532
  }, [d, u]);
87536
87533
  const x = (M, R) => {
@@ -87560,7 +87557,7 @@ const Z$e = () => {
87560
87557
  autoFocus: r,
87561
87558
  disabled: e,
87562
87559
  rows: 2,
87563
- className: "al-px-4 al-pt-4 !al-min-h-[40px] !al-max-h-[400px] placeholder: placeholder:al-italic placeholder:al-font-normal placeholder:al-text-sm placeholder:al-leading-5 placeholder:al-text-[#7A899E] focus:al-outline-none",
87560
+ className: "al-px-4 al-pt-0 !al-min-h-[40px] !al-max-h-[400px] placeholder: placeholder:al-italic placeholder:al-font-normal placeholder:al-text-sm placeholder:al-leading-5 placeholder:al-text-[#7A899E] focus:al-outline-none",
87564
87561
  style: { minHeight: "40px", maxHeight: "400px" },
87565
87562
  "aria-label": "Question input",
87566
87563
  "aria-required": "true",