@smarttalks.ai/widget 0.9.8 → 0.9.10

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/lib/index.js CHANGED
@@ -230,7 +230,7 @@ function xa(e, ...t) {
230
230
  const X = (e) => {
231
231
  const t = (n) => n[e] || [];
232
232
  return t.isThemeGetter = !0, t;
233
- }, Si = /^\[(?:([a-z-]+):)?(.+)\]$/i, Sa = /^\d+\/\d+$/, Ea = /* @__PURE__ */ new Set(["px", "full", "screen"]), ka = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ca = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _a = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => gt(e) || Ea.has(e) || Sa.test(e), We = (e) => vt(e, "length", Fa), gt = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => vt(e, "number", gt), Tt = (e) => !!e && Number.isInteger(Number(e)), Aa = (e) => e.endsWith("%") && gt(e.slice(0, -1)), N = (e) => Si.test(e), Ge = (e) => ka.test(e), Ta = /* @__PURE__ */ new Set(["length", "size", "percentage"]), La = (e) => vt(e, Ta, Ei), Ma = (e) => vt(e, "position", Ei), Da = /* @__PURE__ */ new Set(["image", "url"]), Ia = (e) => vt(e, Da, Na), Ra = (e) => vt(e, "", $a), Lt = () => !0, vt = (e, t, n) => {
233
+ }, Si = /^\[(?:([a-z-]+):)?(.+)\]$/i, Sa = /^\d+\/\d+$/, ka = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ca = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _a = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => gt(e) || ka.has(e) || Sa.test(e), He = (e) => vt(e, "length", Fa), gt = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => vt(e, "number", gt), Tt = (e) => !!e && Number.isInteger(Number(e)), Aa = (e) => e.endsWith("%") && gt(e.slice(0, -1)), N = (e) => Si.test(e), We = (e) => Ea.test(e), Ta = /* @__PURE__ */ new Set(["length", "size", "percentage"]), La = (e) => vt(e, Ta, ki), Ma = (e) => vt(e, "position", ki), Da = /* @__PURE__ */ new Set(["image", "url"]), Ia = (e) => vt(e, Da, Na), Ra = (e) => vt(e, "", $a), Lt = () => !0, vt = (e, t, n) => {
234
234
  const r = Si.exec(e);
235
235
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
236
236
  }, Fa = (e) => (
@@ -238,35 +238,35 @@ const X = (e) => {
238
238
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
239
239
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
240
240
  Ca.test(e) && !Oa.test(e)
241
- ), Ei = () => !1, $a = (e) => _a.test(e), Na = (e) => Pa.test(e), Ka = () => {
242
- const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), f = X("gap"), g = X("gradientColorStops"), h = X("gradientColorStopPositions"), p = X("inset"), m = X("margin"), b = X("opacity"), w = X("padding"), v = X("saturate"), x = X("scale"), _ = X("sepia"), k = X("skew"), E = X("space"), F = X("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", N, t], D = () => [N, t], ne = () => ["", Ke, We], W = () => ["auto", gt, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", N], ut = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Ee = () => [gt, N];
241
+ ), ki = () => !1, $a = (e) => _a.test(e), Na = (e) => Pa.test(e), Ka = () => {
242
+ const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), f = X("gap"), g = X("gradientColorStops"), h = X("gradientColorStopPositions"), p = X("inset"), m = X("margin"), b = X("opacity"), w = X("padding"), v = X("saturate"), x = X("scale"), _ = X("sepia"), E = X("skew"), k = X("space"), F = X("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", N, t], D = () => [N, t], ne = () => ["", Ne, He], W = () => ["auto", gt, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", N], ut = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ke = () => [gt, N];
243
243
  return {
244
244
  cacheSize: 500,
245
245
  separator: ":",
246
246
  theme: {
247
247
  colors: [Lt],
248
- spacing: [Ke, We],
249
- blur: ["none", "", Ge, N],
250
- brightness: Ee(),
248
+ spacing: [Ne, He],
249
+ blur: ["none", "", We, N],
250
+ brightness: ke(),
251
251
  borderColor: [e],
252
- borderRadius: ["none", "", "full", Ge, N],
252
+ borderRadius: ["none", "", "full", We, N],
253
253
  borderSpacing: D(),
254
254
  borderWidth: ne(),
255
- contrast: Ee(),
255
+ contrast: ke(),
256
256
  grayscale: oe(),
257
- hueRotate: Ee(),
257
+ hueRotate: ke(),
258
258
  invert: oe(),
259
259
  gap: D(),
260
260
  gradientColorStops: [e],
261
- gradientColorStopPositions: [Aa, We],
261
+ gradientColorStopPositions: [Aa, He],
262
262
  inset: M(),
263
263
  margin: M(),
264
- opacity: Ee(),
264
+ opacity: ke(),
265
265
  padding: D(),
266
- saturate: Ee(),
267
- scale: Ee(),
266
+ saturate: ke(),
267
+ scale: ke(),
268
268
  sepia: oe(),
269
- skew: Ee(),
269
+ skew: ke(),
270
270
  space: D(),
271
271
  translate: D()
272
272
  },
@@ -289,7 +289,7 @@ const X = (e) => {
289
289
  * @see https://tailwindcss.com/docs/columns
290
290
  */
291
291
  columns: [{
292
- columns: [Ge]
292
+ columns: [We]
293
293
  }],
294
294
  /**
295
295
  * Break After
@@ -833,7 +833,7 @@ const X = (e) => {
833
833
  * @see https://tailwindcss.com/docs/space
834
834
  */
835
835
  "space-x": [{
836
- "space-x": [E]
836
+ "space-x": [k]
837
837
  }],
838
838
  /**
839
839
  * Space Between X Reverse
@@ -845,7 +845,7 @@ const X = (e) => {
845
845
  * @see https://tailwindcss.com/docs/space
846
846
  */
847
847
  "space-y": [{
848
- "space-y": [E]
848
+ "space-y": [k]
849
849
  }],
850
850
  /**
851
851
  * Space Between Y Reverse
@@ -873,8 +873,8 @@ const X = (e) => {
873
873
  */
874
874
  "max-w": [{
875
875
  "max-w": [N, t, "none", "full", "min", "max", "fit", "prose", {
876
- screen: [Ge]
877
- }, Ge]
876
+ screen: [We]
877
+ }, We]
878
878
  }],
879
879
  /**
880
880
  * Height
@@ -910,7 +910,7 @@ const X = (e) => {
910
910
  * @see https://tailwindcss.com/docs/font-size
911
911
  */
912
912
  "font-size": [{
913
- text: ["base", Ge, We]
913
+ text: ["base", We, He]
914
914
  }],
915
915
  /**
916
916
  * Font Smoothing
@@ -985,7 +985,7 @@ const X = (e) => {
985
985
  * @see https://tailwindcss.com/docs/line-height
986
986
  */
987
987
  leading: [{
988
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ke, N]
988
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ne, N]
989
989
  }],
990
990
  /**
991
991
  * List Style Image
@@ -1061,14 +1061,14 @@ const X = (e) => {
1061
1061
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1062
1062
  */
1063
1063
  "text-decoration-thickness": [{
1064
- decoration: ["auto", "from-font", Ke, We]
1064
+ decoration: ["auto", "from-font", Ne, He]
1065
1065
  }],
1066
1066
  /**
1067
1067
  * Text Underline Offset
1068
1068
  * @see https://tailwindcss.com/docs/text-underline-offset
1069
1069
  */
1070
1070
  "underline-offset": [{
1071
- "underline-offset": ["auto", Ke, N]
1071
+ "underline-offset": ["auto", Ne, N]
1072
1072
  }],
1073
1073
  /**
1074
1074
  * Text Decoration Color
@@ -1550,14 +1550,14 @@ const X = (e) => {
1550
1550
  * @see https://tailwindcss.com/docs/outline-offset
1551
1551
  */
1552
1552
  "outline-offset": [{
1553
- "outline-offset": [Ke, N]
1553
+ "outline-offset": [Ne, N]
1554
1554
  }],
1555
1555
  /**
1556
1556
  * Outline Width
1557
1557
  * @see https://tailwindcss.com/docs/outline-width
1558
1558
  */
1559
1559
  "outline-w": [{
1560
- outline: [Ke, We]
1560
+ outline: [Ne, He]
1561
1561
  }],
1562
1562
  /**
1563
1563
  * Outline Color
@@ -1597,7 +1597,7 @@ const X = (e) => {
1597
1597
  * @see https://tailwindcss.com/docs/ring-offset-width
1598
1598
  */
1599
1599
  "ring-offset-w": [{
1600
- "ring-offset": [Ke, We]
1600
+ "ring-offset": [Ne, He]
1601
1601
  }],
1602
1602
  /**
1603
1603
  * Ring Offset Color
@@ -1612,7 +1612,7 @@ const X = (e) => {
1612
1612
  * @see https://tailwindcss.com/docs/box-shadow
1613
1613
  */
1614
1614
  shadow: [{
1615
- shadow: ["", "inner", "none", Ge, Ra]
1615
+ shadow: ["", "inner", "none", We, Ra]
1616
1616
  }],
1617
1617
  /**
1618
1618
  * Box Shadow Color
@@ -1677,7 +1677,7 @@ const X = (e) => {
1677
1677
  * @see https://tailwindcss.com/docs/drop-shadow
1678
1678
  */
1679
1679
  "drop-shadow": [{
1680
- "drop-shadow": ["", "none", Ge, N]
1680
+ "drop-shadow": ["", "none", We, N]
1681
1681
  }],
1682
1682
  /**
1683
1683
  * Grayscale
@@ -1841,7 +1841,7 @@ const X = (e) => {
1841
1841
  * @see https://tailwindcss.com/docs/transition-duration
1842
1842
  */
1843
1843
  duration: [{
1844
- duration: Ee()
1844
+ duration: ke()
1845
1845
  }],
1846
1846
  /**
1847
1847
  * Transition Timing Function
@@ -1855,7 +1855,7 @@ const X = (e) => {
1855
1855
  * @see https://tailwindcss.com/docs/transition-delay
1856
1856
  */
1857
1857
  delay: [{
1858
- delay: Ee()
1858
+ delay: ke()
1859
1859
  }],
1860
1860
  /**
1861
1861
  * Animation
@@ -1919,14 +1919,14 @@ const X = (e) => {
1919
1919
  * @see https://tailwindcss.com/docs/skew
1920
1920
  */
1921
1921
  "skew-x": [{
1922
- "skew-x": [k]
1922
+ "skew-x": [E]
1923
1923
  }],
1924
1924
  /**
1925
1925
  * Skew Y
1926
1926
  * @see https://tailwindcss.com/docs/skew
1927
1927
  */
1928
1928
  "skew-y": [{
1929
- "skew-y": [k]
1929
+ "skew-y": [E]
1930
1930
  }],
1931
1931
  /**
1932
1932
  * Transform Origin
@@ -2192,7 +2192,7 @@ const X = (e) => {
2192
2192
  * @see https://tailwindcss.com/docs/stroke-width
2193
2193
  */
2194
2194
  "stroke-w": [{
2195
- stroke: [Ke, We, jn]
2195
+ stroke: [Ne, He, jn]
2196
2196
  }],
2197
2197
  /**
2198
2198
  * Stroke
@@ -2349,17 +2349,17 @@ function pt(e) {
2349
2349
  let n = "en";
2350
2350
  return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), ja[n][e];
2351
2351
  }
2352
- const yn = "http://192.168.15.4:3333/api", qa = "ws://192.168.15.4:3333", ki = "smarttalkswidget";
2352
+ const yn = "https://heimdall.smarttalks.ai/api", qa = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
2353
2353
  function ee(e, ...t) {
2354
2354
  window.postMessage({
2355
- from: ki,
2355
+ from: Ei,
2356
2356
  command: e,
2357
2357
  args: t
2358
2358
  });
2359
2359
  }
2360
2360
  function re(e, t) {
2361
2361
  window.addEventListener("message", (n) => {
2362
- n.data?.from === ki && n.data?.command === e && (n.stopImmediatePropagation(), console.info("received command:", e), t(...n.data.args || []));
2362
+ n.data?.from === Ei && n.data?.command === e && (n.stopImmediatePropagation(), console.info("received command:", e), t(...n.data.args || []));
2363
2363
  });
2364
2364
  }
2365
2365
  function Ha() {
@@ -2570,15 +2570,15 @@ const rl = !1, ol = (e, t) => e === t, xe = Symbol("solid-proxy"), Ai = typeof P
2570
2570
  equals: ol
2571
2571
  };
2572
2572
  let Ti = Ri;
2573
- const He = 1, wn = 2, Li = {
2573
+ const qe = 1, wn = 2, Li = {
2574
2574
  owned: null,
2575
2575
  cleanups: null,
2576
2576
  context: null,
2577
2577
  owner: null
2578
2578
  }, Hn = {};
2579
2579
  var q = null;
2580
- let Wn = null, il = null, Y = null, le = null, Be = null, Ln = 0;
2581
- function Ve(e, t) {
2580
+ let Wn = null, il = null, Y = null, le = null, ze = null, Ln = 0;
2581
+ function Be(e, t) {
2582
2582
  const n = Y, r = q, o = e.length === 0, i = t === void 0 ? r : t, s = o ? Li : {
2583
2583
  owned: null,
2584
2584
  cleanups: null,
@@ -2587,7 +2587,7 @@ function Ve(e, t) {
2587
2587
  }, a = o ? e : () => e(() => H(() => zt(s)));
2588
2588
  q = s, Y = null;
2589
2589
  try {
2590
- return Ue(a, !0);
2590
+ return Ve(a, !0);
2591
2591
  } finally {
2592
2592
  Y = n, q = r;
2593
2593
  }
@@ -2603,17 +2603,17 @@ function O(e, t) {
2603
2603
  return [Di.bind(n), r];
2604
2604
  }
2605
2605
  function Mi(e, t, n) {
2606
- const r = Mn(e, t, !0, He);
2606
+ const r = Mn(e, t, !0, qe);
2607
2607
  St(r);
2608
2608
  }
2609
2609
  function ie(e, t, n) {
2610
- const r = Mn(e, t, !1, He);
2610
+ const r = Mn(e, t, !1, qe);
2611
2611
  St(r);
2612
2612
  }
2613
2613
  function L(e, t, n) {
2614
2614
  Ti = fl;
2615
- const r = Mn(e, t, !1, He);
2616
- (!n || !n.render) && (r.user = !0), Be ? Be.push(r) : St(r);
2615
+ const r = Mn(e, t, !1, qe);
2616
+ (!n || !n.render) && (r.user = !0), ze ? ze.push(r) : St(r);
2617
2617
  }
2618
2618
  function C(e, t, n) {
2619
2619
  n = n ? Object.assign({}, bn, n) : bn;
@@ -2636,16 +2636,16 @@ function al(e, t, n) {
2636
2636
  () => i.onHydrated(D, {
2637
2637
  value: R
2638
2638
  })
2639
- ), a = Hn, k(R, M)), R;
2639
+ ), a = Hn, E(R, M)), R;
2640
2640
  }
2641
- function k(P, R) {
2642
- Ue(() => {
2641
+ function E(P, R) {
2642
+ Ve(() => {
2643
2643
  R === void 0 && h(() => P), x(R !== void 0 ? "errored" : d ? "ready" : "unresolved"), m(R);
2644
2644
  for (const M of f.keys()) M.decrement();
2645
2645
  f.clear();
2646
2646
  }, !1);
2647
2647
  }
2648
- function E() {
2648
+ function k() {
2649
2649
  const P = cl, R = g(), M = p();
2650
2650
  if (M !== void 0 && !s) throw M;
2651
2651
  return Y && Y.user, R;
@@ -2664,14 +2664,14 @@ function al(e, t, n) {
2664
2664
  refetching: P
2665
2665
  })
2666
2666
  );
2667
- return sl(M) ? (s = M, "value" in M ? (M.status === "success" ? _(s, M.value, void 0, R) : _(s, void 0, fr(M.value), R), M) : (c = !0, queueMicrotask(() => c = !1), Ue(() => {
2667
+ return sl(M) ? (s = M, "value" in M ? (M.status === "success" ? _(s, M.value, void 0, R) : _(s, void 0, fr(M.value), R), M) : (c = !0, queueMicrotask(() => c = !1), Ve(() => {
2668
2668
  x(d ? "refreshing" : "pending"), w();
2669
2669
  }, !1), M.then(
2670
2670
  (D) => _(M, D, void 0, R),
2671
2671
  (D) => _(M, void 0, fr(D), R)
2672
2672
  ))) : (_(s, M, void 0, R), M);
2673
2673
  }
2674
- return Object.defineProperties(E, {
2674
+ return Object.defineProperties(k, {
2675
2675
  state: {
2676
2676
  get: () => v()
2677
2677
  },
@@ -2686,14 +2686,14 @@ function al(e, t, n) {
2686
2686
  },
2687
2687
  latest: {
2688
2688
  get() {
2689
- if (!d) return E();
2689
+ if (!d) return k();
2690
2690
  const P = p();
2691
2691
  if (P && !s) throw P;
2692
2692
  return g();
2693
2693
  }
2694
2694
  }
2695
2695
  }), u ? Mi(() => F(!1)) : F(!1), [
2696
- E,
2696
+ k,
2697
2697
  {
2698
2698
  refetch: F,
2699
2699
  mutate: h
@@ -2701,7 +2701,7 @@ function al(e, t, n) {
2701
2701
  ];
2702
2702
  }
2703
2703
  function Oe(e) {
2704
- return Ue(e, !1);
2704
+ return Ve(e, !1);
2705
2705
  }
2706
2706
  function H(e) {
2707
2707
  if (Y === null) return e();
@@ -2744,7 +2744,7 @@ function ll(e, t) {
2744
2744
  const n = q, r = Y;
2745
2745
  q = e, Y = null;
2746
2746
  try {
2747
- return Ue(t, !0);
2747
+ return Ve(t, !0);
2748
2748
  } catch (o) {
2749
2749
  Kr(o);
2750
2750
  } finally {
@@ -2773,10 +2773,10 @@ function Nr(e) {
2773
2773
  let cl;
2774
2774
  function Di() {
2775
2775
  if (this.sources && this.state)
2776
- if (this.state === He) St(this);
2776
+ if (this.state === qe) St(this);
2777
2777
  else {
2778
2778
  const e = le;
2779
- le = null, Ue(() => xn(this), !1), le = e;
2779
+ le = null, Ve(() => xn(this), !1), le = e;
2780
2780
  }
2781
2781
  if (Y) {
2782
2782
  const e = this.observers ? this.observers.length : 0;
@@ -2786,10 +2786,10 @@ function Di() {
2786
2786
  }
2787
2787
  function Ii(e, t, n) {
2788
2788
  let r = e.value;
2789
- return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Ue(() => {
2789
+ return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Ve(() => {
2790
2790
  for (let o = 0; o < e.observers.length; o += 1) {
2791
2791
  const i = e.observers[o], s = Wn && Wn.running;
2792
- s && Wn.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? le.push(i) : Be.push(i), i.observers && Fi(i)), s || (i.state = He);
2792
+ s && Wn.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? le.push(i) : ze.push(i), i.observers && Fi(i)), s || (i.state = qe);
2793
2793
  }
2794
2794
  if (le.length > 1e6)
2795
2795
  throw le = [], new Error();
@@ -2812,13 +2812,13 @@ function ul(e, t, n) {
2812
2812
  try {
2813
2813
  r = e.fn(t);
2814
2814
  } catch (s) {
2815
- return e.pure && (e.state = He, e.owned && e.owned.forEach(zt), e.owned = null), e.updatedAt = n + 1, Kr(s);
2815
+ return e.pure && (e.state = qe, e.owned && e.owned.forEach(zt), e.owned = null), e.updatedAt = n + 1, Kr(s);
2816
2816
  } finally {
2817
2817
  Y = i, q = o;
2818
2818
  }
2819
2819
  (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Ii(e, r) : e.value = r, e.updatedAt = n);
2820
2820
  }
2821
- function Mn(e, t, n, r = He, o) {
2821
+ function Mn(e, t, n, r = qe, o) {
2822
2822
  const i = {
2823
2823
  fn: e,
2824
2824
  state: r,
@@ -2842,28 +2842,28 @@ function vn(e) {
2842
2842
  for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ln); )
2843
2843
  e.state && t.push(e);
2844
2844
  for (let n = t.length - 1; n >= 0; n--)
2845
- if (e = t[n], e.state === He)
2845
+ if (e = t[n], e.state === qe)
2846
2846
  St(e);
2847
2847
  else if (e.state === wn) {
2848
2848
  const r = le;
2849
- le = null, Ue(() => xn(e, t[0]), !1), le = r;
2849
+ le = null, Ve(() => xn(e, t[0]), !1), le = r;
2850
2850
  }
2851
2851
  }
2852
- function Ue(e, t) {
2852
+ function Ve(e, t) {
2853
2853
  if (le) return e();
2854
2854
  let n = !1;
2855
- t || (le = []), Be ? n = !0 : Be = [], Ln++;
2855
+ t || (le = []), ze ? n = !0 : ze = [], Ln++;
2856
2856
  try {
2857
2857
  const r = e();
2858
2858
  return dl(n), r;
2859
2859
  } catch (r) {
2860
- n || (Be = null), le = null, Kr(r);
2860
+ n || (ze = null), le = null, Kr(r);
2861
2861
  }
2862
2862
  }
2863
2863
  function dl(e) {
2864
2864
  if (le && (Ri(le), le = null), e) return;
2865
- const t = Be;
2866
- Be = null, t.length && Ue(() => Ti(t), !1);
2865
+ const t = ze;
2866
+ ze = null, t.length && Ve(() => Ti(t), !1);
2867
2867
  }
2868
2868
  function Ri(e) {
2869
2869
  for (let t = 0; t < e.length; t++) vn(e[t]);
@@ -2889,14 +2889,14 @@ function xn(e, t) {
2889
2889
  const r = e.sources[n];
2890
2890
  if (r.sources) {
2891
2891
  const o = r.state;
2892
- o === He ? r !== t && (!r.updatedAt || r.updatedAt < Ln) && vn(r) : o === wn && xn(r, t);
2892
+ o === qe ? r !== t && (!r.updatedAt || r.updatedAt < Ln) && vn(r) : o === wn && xn(r, t);
2893
2893
  }
2894
2894
  }
2895
2895
  }
2896
2896
  function Fi(e) {
2897
2897
  for (let t = 0; t < e.observers.length; t += 1) {
2898
2898
  const n = e.observers[t];
2899
- n.state || (n.state = wn, n.pure ? le.push(n) : Be.push(n), n.observers && Fi(n));
2899
+ n.state || (n.state = wn, n.pure ? le.push(n) : ze.push(n), n.observers && Fi(n));
2900
2900
  }
2901
2901
  }
2902
2902
  function zt(e) {
@@ -2966,10 +2966,10 @@ function pl(e, t, n = {}) {
2966
2966
  return l[ur], H(() => {
2967
2967
  let g, h, p, m, b, w, v, x, _;
2968
2968
  if (c === 0)
2969
- s !== 0 && (wo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [gl], o[0] = Ve((k) => (i[0] = k, n.fallback())), s = 1);
2969
+ s !== 0 && (wo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [gl], o[0] = Be((E) => (i[0] = E, n.fallback())), s = 1);
2970
2970
  else if (s === 0) {
2971
2971
  for (o = new Array(c), u = 0; u < c; u++)
2972
- r[u] = l[u], o[u] = Ve(f);
2972
+ r[u] = l[u], o[u] = Be(f);
2973
2973
  s = c;
2974
2974
  } else {
2975
2975
  for (p = new Array(c), m = new Array(c), a && (b = new Array(c)), w = 0, v = Math.min(s, c); w < v && r[w] === l[w]; w++) ;
@@ -2980,7 +2980,7 @@ function pl(e, t, n = {}) {
2980
2980
  for (d = w; d <= v; d++)
2981
2981
  _ = r[d], u = g.get(_), u !== void 0 && u !== -1 ? (p[u] = o[d], m[u] = i[d], a && (b[u] = a[d]), u = h[u], g.set(_, u)) : i[d]();
2982
2982
  for (u = w; u < c; u++)
2983
- u in p ? (o[u] = p[u], i[u] = m[u], a && (a[u] = b[u], a[u](u))) : o[u] = Ve(f);
2983
+ u in p ? (o[u] = p[u], i[u] = m[u], a && (a[u] = b[u], a[u](u))) : o[u] = Be(f);
2984
2984
  o = o.slice(0, s = c), r = l.slice(0);
2985
2985
  }
2986
2986
  return o;
@@ -3134,7 +3134,7 @@ function j(e, ...t) {
3134
3134
  return [...r, n];
3135
3135
  }
3136
3136
  let yl = 0;
3137
- function Me() {
3137
+ function Le() {
3138
3138
  return V.context ? V.getNextContextId() : `cl-${yl++}`;
3139
3139
  }
3140
3140
  const $i = (e) => `Stale read from <${e}>.`;
@@ -3274,11 +3274,11 @@ const bl = [
3274
3274
  TEXTAREA: 1
3275
3275
  }
3276
3276
  });
3277
- function El(e, t) {
3277
+ function kl(e, t) {
3278
3278
  const n = Sl[e];
3279
3279
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
3280
3280
  }
3281
- const kl = /* @__PURE__ */ new Set([
3281
+ const El = /* @__PURE__ */ new Set([
3282
3282
  "beforeinput",
3283
3283
  "click",
3284
3284
  "dblclick",
@@ -3539,7 +3539,7 @@ function So(e, t, n, r, o, i, s) {
3539
3539
  const f = t.slice(10);
3540
3540
  r && e.removeEventListener(f, r, !0), n && e.addEventListener(f, n, !0);
3541
3541
  } else if (t.slice(0, 2) === "on") {
3542
- const f = t.slice(2).toLowerCase(), g = kl.has(f);
3542
+ const f = t.slice(2).toLowerCase(), g = El.has(f);
3543
3543
  if (!g && r) {
3544
3544
  const h = Array.isArray(r) ? r[0] : r;
3545
3545
  e.removeEventListener(f, h);
@@ -3549,7 +3549,7 @@ function So(e, t, n, r, o, i, s) {
3549
3549
  de(e, t.slice(5), n);
3550
3550
  else if (t.slice(0, 5) === "bool:")
3551
3551
  Tl(e, t.slice(5), n);
3552
- else if ((u = t.slice(0, 5) === "prop:") || (c = vl.has(t)) || !o && ((d = El(t, e.tagName)) || (l = wl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3552
+ else if ((u = t.slice(0, 5) === "prop:") || (c = vl.has(t)) || !o && ((d = kl(t, e.tagName)) || (l = wl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3553
3553
  if (u)
3554
3554
  t = t.slice(5), l = !0;
3555
3555
  else if (at(e)) return n;
@@ -3643,7 +3643,7 @@ function Bt(e, t, n, r, o) {
3643
3643
  }
3644
3644
  if (l.length === 0) {
3645
3645
  if (n = dt(e, n, r), a) return n;
3646
- } else c ? n.length === 0 ? Eo(e, l, r) : _l(e, n, l) : (n && dt(e), Eo(e, l));
3646
+ } else c ? n.length === 0 ? ko(e, l, r) : _l(e, n, l) : (n && dt(e), ko(e, l));
3647
3647
  n = l;
3648
3648
  } else if (t.nodeType) {
3649
3649
  if (i && t.parentNode) return n = a ? [t] : t;
@@ -3681,7 +3681,7 @@ function pr(e, t, n, r) {
3681
3681
  }
3682
3682
  return o;
3683
3683
  }
3684
- function Eo(e, t, n = null) {
3684
+ function ko(e, t, n = null) {
3685
3685
  for (let r = 0, o = t.length; r < o; r++) e.insertBefore(t[r], n);
3686
3686
  }
3687
3687
  function dt(e, t, n, r) {
@@ -3715,7 +3715,7 @@ function zi(e) {
3715
3715
  const a = r();
3716
3716
  if (a instanceof HTMLHeadElement) {
3717
3717
  const [l, c] = O(!1), d = () => c(!0);
3718
- Ve((u) => A(a, () => l() ? u() : i(), null)), K(d);
3718
+ Be((u) => A(a, () => l() ? u() : i(), null)), K(d);
3719
3719
  } else {
3720
3720
  const l = Ki(e.isSVG ? "g" : "div", e.isSVG), c = t && l.attachShadow ? l.attachShadow({
3721
3721
  mode: "open"
@@ -3774,7 +3774,7 @@ function Vl(e) {
3774
3774
  function Ul(e) {
3775
3775
  return (t, n) => {
3776
3776
  const { element: r } = n;
3777
- return Ve((o) => {
3777
+ return Be((o) => {
3778
3778
  const i = Bl(t);
3779
3779
  r.addPropertyChangedCallback((a, l) => i[a] = l), r.addReleaseCallback(() => {
3780
3780
  r.renderRoot.textContent = "", o();
@@ -3802,7 +3802,7 @@ const ql = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
3802
3802
  hide: Gl,
3803
3803
  toggle: Wl,
3804
3804
  onOpen: Hl
3805
- }), mr = Symbol("store-raw"), mt = Symbol("store-node"), ze = Symbol("store-has"), qi = Symbol("store-self");
3805
+ }), mr = Symbol("store-raw"), mt = Symbol("store-node"), Ke = Symbol("store-has"), qi = Symbol("store-self");
3806
3806
  function Hi(e) {
3807
3807
  let t = e[xe];
3808
3808
  if (!t && (Object.defineProperty(e, xe, {
@@ -3839,7 +3839,7 @@ function Vt(e, t = /* @__PURE__ */ new Set()) {
3839
3839
  }
3840
3840
  return e;
3841
3841
  }
3842
- function En(e, t) {
3842
+ function kn(e, t) {
3843
3843
  let n = e[t];
3844
3844
  return n || Object.defineProperty(e, t, {
3845
3845
  value: n = /* @__PURE__ */ Object.create(null)
@@ -3858,7 +3858,7 @@ function Xl(e, t) {
3858
3858
  return !n || n.get || !n.configurable || t === xe || t === mt || (delete n.value, delete n.writable, n.get = () => e[xe][t]), n;
3859
3859
  }
3860
3860
  function Wi(e) {
3861
- dr() && Ut(En(e, mt), qi)();
3861
+ dr() && Ut(kn(e, mt), qi)();
3862
3862
  }
3863
3863
  function Jl(e) {
3864
3864
  return Wi(e), Reflect.ownKeys(e);
@@ -3869,9 +3869,9 @@ const Zl = {
3869
3869
  if (t === xe) return n;
3870
3870
  if (t === ur)
3871
3871
  return Wi(e), n;
3872
- const r = En(e, mt), o = r[t];
3872
+ const r = kn(e, mt), o = r[t];
3873
3873
  let i = o ? o() : e[t];
3874
- if (t === mt || t === ze || t === "__proto__") return i;
3874
+ if (t === mt || t === Ke || t === "__proto__") return i;
3875
3875
  if (!o) {
3876
3876
  const s = Object.getOwnPropertyDescriptor(e, t);
3877
3877
  dr() && (typeof i != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (i = Ut(r, t, i)());
@@ -3879,7 +3879,7 @@ const Zl = {
3879
3879
  return Sn(i) ? Hi(i) : i;
3880
3880
  },
3881
3881
  has(e, t) {
3882
- return t === mr || t === xe || t === ur || t === mt || t === ze || t === "__proto__" ? !0 : (dr() && Ut(En(e, ze), t)(), t in e);
3882
+ return t === mr || t === xe || t === ur || t === mt || t === Ke || t === "__proto__" ? !0 : (dr() && Ut(kn(e, Ke), t)(), t in e);
3883
3883
  },
3884
3884
  set() {
3885
3885
  return !0;
@@ -3890,11 +3890,11 @@ const Zl = {
3890
3890
  ownKeys: Jl,
3891
3891
  getOwnPropertyDescriptor: Xl
3892
3892
  };
3893
- function kn(e, t, n, r = !1) {
3893
+ function En(e, t, n, r = !1) {
3894
3894
  if (!r && e[t] === n) return;
3895
3895
  const o = e[t], i = e.length;
3896
- n === void 0 ? (delete e[t], e[ze] && e[ze][t] && o !== void 0 && e[ze][t].$()) : (e[t] = n, e[ze] && e[ze][t] && o === void 0 && e[ze][t].$());
3897
- let s = En(e, mt), a;
3896
+ n === void 0 ? (delete e[t], e[Ke] && e[Ke][t] && o !== void 0 && e[Ke][t].$()) : (e[t] = n, e[Ke] && e[Ke][t] && o === void 0 && e[Ke][t].$());
3897
+ let s = kn(e, mt), a;
3898
3898
  if ((a = Ut(s, t, o)) && a.$(() => n), Array.isArray(e) && e.length !== i) {
3899
3899
  for (let l = e.length; l < i; l++) (a = s[l]) && a.$();
3900
3900
  (a = Ut(s, "length", i)) && a.$(e.length);
@@ -3905,7 +3905,7 @@ function Gi(e, t) {
3905
3905
  const n = Object.keys(t);
3906
3906
  for (let r = 0; r < n.length; r += 1) {
3907
3907
  const o = n[r];
3908
- kn(e, o, t[o]);
3908
+ En(e, o, t[o]);
3909
3909
  }
3910
3910
  }
3911
3911
  function Ql(e, t) {
@@ -3914,9 +3914,9 @@ function Ql(e, t) {
3914
3914
  let n = 0, r = t.length;
3915
3915
  for (; n < r; n++) {
3916
3916
  const o = t[n];
3917
- e[n] !== o && kn(e, n, o);
3917
+ e[n] !== o && En(e, n, o);
3918
3918
  }
3919
- kn(e, "length", r);
3919
+ En(e, "length", r);
3920
3920
  } else Gi(e, t);
3921
3921
  }
3922
3922
  function Rt(e, t, n = []) {
@@ -3944,7 +3944,7 @@ function Rt(e, t, n = []) {
3944
3944
  o = e[r], n = [r].concat(n);
3945
3945
  }
3946
3946
  let i = t[0];
3947
- typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Vt(i), r === void 0 || Sn(o) && Sn(i) && !Array.isArray(i) ? Gi(o, i) : kn(e, r, i));
3947
+ typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Vt(i), r === void 0 || Sn(o) && Sn(i) && !Array.isArray(i) ? Gi(o, i) : En(e, r, i));
3948
3948
  }
3949
3949
  function ec(...[e, t]) {
3950
3950
  const n = Vt(e || {}), r = Array.isArray(n), o = Hi(n);
@@ -3956,7 +3956,7 @@ function ec(...[e, t]) {
3956
3956
  return [o, i];
3957
3957
  }
3958
3958
  function Yi(e, t, n) {
3959
- return Ve(() => {
3959
+ return Be(() => {
3960
3960
  const r = Oi(e), [o, i] = ec(
3961
3961
  r ? JSON.parse(r) : t
3962
3962
  );
@@ -3964,7 +3964,7 @@ function Yi(e, t, n) {
3964
3964
  });
3965
3965
  }
3966
3966
  function tc(e, t, n) {
3967
- return Ve(() => {
3967
+ return Be(() => {
3968
3968
  const r = Oi(e), [o, i] = O(
3969
3969
  r ? JSON.parse(r) : t
3970
3970
  );
@@ -4059,7 +4059,7 @@ const oc = async (e) => {
4059
4059
  }).catch(console.error);
4060
4060
  }
4061
4061
  ), i._id = n, i;
4062
- }, [Xi, ic] = O(""), [rt] = Ve(() => al(Xi, oc)), sc = () => {
4062
+ }, [Xi, ic] = O(""), [rt] = Be(() => al(Xi, oc)), sc = () => {
4063
4063
  if (rt()?.type === "chat") return rt();
4064
4064
  }, ac = () => {
4065
4065
  if (rt()?.type === "form") return rt();
@@ -4069,7 +4069,7 @@ const oc = async (e) => {
4069
4069
  if (typeof window < "u")
4070
4070
  return localStorage.getItem("chat_session_id");
4071
4071
  };
4072
- Ve(
4072
+ Be(
4073
4073
  () => L(() => {
4074
4074
  const e = rt();
4075
4075
  Ba(e), e && (ee("onLoad"), e.sessionId && (console.log("currentWidget.sessionId", e.sessionId), localStorage.setItem("chat_session_id", e.sessionId)));
@@ -4082,13 +4082,13 @@ const se = () => ({
4082
4082
  chatWidget: sc,
4083
4083
  formWidget: ac,
4084
4084
  getSessionId: Vr
4085
- }), ko = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Co = bi, lc = (e, t) => (n) => {
4085
+ }), Eo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Co = bi, lc = (e, t) => (n) => {
4086
4086
  var r;
4087
4087
  if (t?.variants == null) return Co(e, n?.class, n?.className);
4088
4088
  const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((c) => {
4089
4089
  const d = n?.[c], u = i?.[c];
4090
4090
  if (d === null) return null;
4091
- const f = ko(d) || ko(u);
4091
+ const f = Eo(d) || Eo(u);
4092
4092
  return o[c][f];
4093
4093
  }), a = n && Object.entries(n).reduce((c, d) => {
4094
4094
  let [u, f] = d;
@@ -4261,7 +4261,7 @@ const xc = K;
4261
4261
  function Sc(e, t, n, r) {
4262
4262
  return e.addEventListener(t, n, r), xc(e.removeEventListener.bind(e, t, n, r));
4263
4263
  }
4264
- function Ec(e, t, n, r) {
4264
+ function kc(e, t, n, r) {
4265
4265
  const o = () => {
4266
4266
  Oo(S(e)).forEach((i) => {
4267
4267
  i && Oo(S(t)).forEach((s) => Sc(i, s, n, r));
@@ -4272,7 +4272,7 @@ function Ec(e, t, n, r) {
4272
4272
  function Zt() {
4273
4273
  return !0;
4274
4274
  }
4275
- const kc = {
4275
+ const Ec = {
4276
4276
  get(e, t, n) {
4277
4277
  return t === xe ? n : e.get(t);
4278
4278
  },
@@ -4362,7 +4362,7 @@ function _c(...e) {
4362
4362
  keys() {
4363
4363
  return Object.keys(i);
4364
4364
  }
4365
- }, kc);
4365
+ }, Ec);
4366
4366
  }
4367
4367
  function lt(...e) {
4368
4368
  return Zi(e);
@@ -4389,11 +4389,11 @@ function Lc(e) {
4389
4389
  function Qi(e) {
4390
4390
  return (t) => `${e()}-${t}`;
4391
4391
  }
4392
- function Le(e, t) {
4392
+ function Te(e, t) {
4393
4393
  return e ? e === t || e.contains(t) : !1;
4394
4394
  }
4395
4395
  function Ft(e, t = !1) {
4396
- const { activeElement: n } = je(e);
4396
+ const { activeElement: n } = Ue(e);
4397
4397
  if (!n?.nodeName)
4398
4398
  return null;
4399
4399
  if (es(n) && n.contentDocument)
@@ -4404,14 +4404,14 @@ function Ft(e, t = !1) {
4404
4404
  if (t) {
4405
4405
  const r = n.getAttribute("aria-activedescendant");
4406
4406
  if (r) {
4407
- const o = je(n).getElementById(r);
4407
+ const o = Ue(n).getElementById(r);
4408
4408
  if (o)
4409
4409
  return o;
4410
4410
  }
4411
4411
  }
4412
4412
  return n;
4413
4413
  }
4414
- function je(e) {
4414
+ function Ue(e) {
4415
4415
  return e ? e.ownerDocument || e : document;
4416
4416
  }
4417
4417
  function es(e) {
@@ -4601,7 +4601,7 @@ function Gc(e, t) {
4601
4601
  }
4602
4602
  return o;
4603
4603
  }
4604
- function $e(e, t) {
4604
+ function Fe(e, t) {
4605
4605
  return T(e, t);
4606
4606
  }
4607
4607
  var Mt = /* @__PURE__ */ new Map(), To = /* @__PURE__ */ new Set();
@@ -4830,7 +4830,7 @@ function eu(e) {
4830
4830
  L(() => {
4831
4831
  if (S(e.isDisabled))
4832
4832
  return;
4833
- const n = e.ownerDocument?.() ?? je();
4833
+ const n = e.ownerDocument?.() ?? Ue();
4834
4834
  n.addEventListener("keydown", t), K(() => {
4835
4835
  n.removeEventListener("keydown", t);
4836
4836
  });
@@ -4851,18 +4851,18 @@ function eu(e) {
4851
4851
  */
4852
4852
  const Cn = "data-kb-top-layer";
4853
4853
  let ss, xr = !1;
4854
- const qe = [];
4854
+ const je = [];
4855
4855
  function jt(e) {
4856
- return qe.findIndex((t) => t.node === e);
4856
+ return je.findIndex((t) => t.node === e);
4857
4857
  }
4858
4858
  function tu(e) {
4859
- return qe[jt(e)];
4859
+ return je[jt(e)];
4860
4860
  }
4861
4861
  function nu(e) {
4862
- return qe[qe.length - 1].node === e;
4862
+ return je[je.length - 1].node === e;
4863
4863
  }
4864
4864
  function as() {
4865
- return qe.filter((e) => e.isPointerBlocking);
4865
+ return je.filter((e) => e.isPointerBlocking);
4866
4866
  }
4867
4867
  function ru() {
4868
4868
  return [...as()].slice(-1)[0];
@@ -4875,32 +4875,32 @@ function ls(e) {
4875
4875
  return jt(e) < t;
4876
4876
  }
4877
4877
  function ou(e) {
4878
- qe.push(e);
4878
+ je.push(e);
4879
4879
  }
4880
4880
  function iu(e) {
4881
4881
  const t = jt(e);
4882
- t < 0 || qe.splice(t, 1);
4882
+ t < 0 || je.splice(t, 1);
4883
4883
  }
4884
4884
  function su() {
4885
4885
  for (const {
4886
4886
  node: e
4887
- } of qe)
4887
+ } of je)
4888
4888
  e.style.pointerEvents = ls(e) ? "none" : "auto";
4889
4889
  }
4890
4890
  function au(e) {
4891
4891
  if (Wr() && !xr) {
4892
- const t = je(e);
4892
+ const t = Ue(e);
4893
4893
  ss = document.body.style.pointerEvents, t.body.style.pointerEvents = "none", xr = !0;
4894
4894
  }
4895
4895
  }
4896
4896
  function lu(e) {
4897
4897
  if (Wr())
4898
4898
  return;
4899
- const t = je(e);
4899
+ const t = Ue(e);
4900
4900
  t.body.style.pointerEvents = ss, t.body.style.length === 0 && t.body.removeAttribute("style"), xr = !1;
4901
4901
  }
4902
4902
  const he = {
4903
- layers: qe,
4903
+ layers: je,
4904
4904
  isTopMostLayer: nu,
4905
4905
  hasPointerBlockingLayer: Wr,
4906
4906
  isBelowPointerBlockingLayer: ls,
@@ -4952,7 +4952,7 @@ function cu(e, t) {
4952
4952
  }
4953
4953
  };
4954
4954
  let i = null;
4955
- const s = (h) => e.onMountAutoFocus?.(h), a = (h) => e.onUnmountAutoFocus?.(h), l = () => je(t()), c = () => {
4955
+ const s = (h) => e.onMountAutoFocus?.(h), a = (h) => e.onUnmountAutoFocus?.(h), l = () => Ue(t()), c = () => {
4956
4956
  const h = l().createElement("span");
4957
4957
  return h.setAttribute("data-focus-trap", ""), h.tabIndex = 0, Object.assign(h.style, Xc), h;
4958
4958
  }, d = () => {
@@ -4969,7 +4969,7 @@ function cu(e, t) {
4969
4969
  if (!h)
4970
4970
  return !1;
4971
4971
  const p = Ft(h);
4972
- return !p || Le(h, p) ? !1 : os(p);
4972
+ return !p || Te(h, p) ? !1 : os(p);
4973
4973
  };
4974
4974
  L(() => {
4975
4975
  const h = t();
@@ -4977,7 +4977,7 @@ function cu(e, t) {
4977
4977
  return;
4978
4978
  Io.add(o);
4979
4979
  const p = Ft(h);
4980
- if (!Le(h, p)) {
4980
+ if (!Te(h, p)) {
4981
4981
  const b = new CustomEvent(Xn, Do);
4982
4982
  h.addEventListener(Xn, s), h.dispatchEvent(b), b.defaultPrevented || setTimeout(() => {
4983
4983
  ue(u()), Ft(h) === p && ue(h);
@@ -4995,10 +4995,10 @@ function cu(e, t) {
4995
4995
  return;
4996
4996
  const p = (b) => {
4997
4997
  const w = b.target;
4998
- w?.closest(`[${Cn}]`) || (Le(h, w) ? i = w : ue(i));
4998
+ w?.closest(`[${Cn}]`) || (Te(h, w) ? i = w : ue(i));
4999
4999
  }, m = (b) => {
5000
5000
  const v = b.relatedTarget ?? Ft(h);
5001
- v?.closest(`[${Cn}]`) || Le(h, v) || ue(i);
5001
+ v?.closest(`[${Cn}]`) || Te(h, v) || ue(i);
5002
5002
  };
5003
5003
  l().addEventListener("focusin", p), l().addEventListener("focusout", m), K(() => {
5004
5004
  l().removeEventListener("focusin", p), l().removeEventListener("focusout", m);
@@ -5118,9 +5118,9 @@ function fu(e, t = document.body) {
5118
5118
  const Ro = "interactOutside.pointerDownOutside", Fo = "interactOutside.focusOutside";
5119
5119
  function hu(e, t) {
5120
5120
  let n, r = Wc;
5121
- const o = () => je(t()), i = (u) => e.onPointerDownOutside?.(u), s = (u) => e.onFocusOutside?.(u), a = (u) => e.onInteractOutside?.(u), l = (u) => {
5121
+ const o = () => Ue(t()), i = (u) => e.onPointerDownOutside?.(u), s = (u) => e.onFocusOutside?.(u), a = (u) => e.onInteractOutside?.(u), l = (u) => {
5122
5122
  const f = u.target;
5123
- return !(f instanceof HTMLElement) || f.closest(`[${Cn}]`) || !Le(o(), f) || Le(t(), f) ? !1 : !e.shouldExcludeElement?.(f);
5123
+ return !(f instanceof HTMLElement) || f.closest(`[${Cn}]`) || !Te(o(), f) || Te(t(), f) ? !1 : !e.shouldExcludeElement?.(f);
5124
5124
  }, c = (u) => {
5125
5125
  function f() {
5126
5126
  const g = t(), h = u.target;
@@ -5389,10 +5389,10 @@ function Su() {
5389
5389
  direction: () => n().direction
5390
5390
  };
5391
5391
  }
5392
- const Eu = fe();
5392
+ const ku = fe();
5393
5393
  function Gr() {
5394
5394
  const e = Su();
5395
- return ye(Eu) || e;
5395
+ return ye(ku) || e;
5396
5396
  }
5397
5397
  /*!
5398
5398
  * Portions of this file are based on code from react-spectrum.
@@ -5402,7 +5402,7 @@ function Gr() {
5402
5402
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
5403
5403
  */
5404
5404
  const Zn = /* @__PURE__ */ new Map();
5405
- function ku(e) {
5405
+ function Eu(e) {
5406
5406
  const { locale: t } = Gr(), n = C(() => t() + (e ? Object.entries(e).sort((r, o) => r[0] < o[0] ? -1 : 1).join() : ""));
5407
5407
  return C(() => {
5408
5408
  const r = n();
@@ -5462,7 +5462,7 @@ function Ou(e, t) {
5462
5462
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/useMultipleSelectionState.ts
5463
5463
  */
5464
5464
  function _u(e) {
5465
- const t = $e({
5465
+ const t = Fe({
5466
5466
  selectionMode: "none",
5467
5467
  selectionBehavior: "toggle"
5468
5468
  }, e), [n, r] = O(!1), [o, i] = O(), s = C(() => {
@@ -5541,7 +5541,7 @@ function Lu(e, t, n) {
5541
5541
  selectOnFocus: () => S(e.selectionManager).selectionBehavior() === "replace"
5542
5542
  }, e), i = () => t(), { direction: s } = Gr();
5543
5543
  let a = { top: 0, left: 0 };
5544
- Ec(() => S(o.isVirtualized) ? void 0 : i(), "scroll", () => {
5544
+ kc(() => S(o.isVirtualized) ? void 0 : i(), "scroll", () => {
5545
5545
  const p = i();
5546
5546
  p && (a = {
5547
5547
  top: p.scrollTop,
@@ -5557,70 +5557,70 @@ function Lu(e, t, n) {
5557
5557
  const m = t();
5558
5558
  if (!m?.contains(p.target))
5559
5559
  return;
5560
- const b = S(o.selectionManager), w = S(o.selectOnFocus), v = (E) => {
5561
- E != null && (b.setFocusedKey(E), p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : w && !us(p) && b.replaceSelection(E));
5562
- }, x = S(o.keyboardDelegate), _ = S(o.shouldFocusWrap), k = b.focusedKey();
5560
+ const b = S(o.selectionManager), w = S(o.selectOnFocus), v = (k) => {
5561
+ k != null && (b.setFocusedKey(k), p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(k) : w && !us(p) && b.replaceSelection(k));
5562
+ }, x = S(o.keyboardDelegate), _ = S(o.shouldFocusWrap), E = b.focusedKey();
5563
5563
  switch (p.key) {
5564
5564
  case "ArrowDown": {
5565
5565
  if (x.getKeyBelow) {
5566
5566
  p.preventDefault();
5567
- let E;
5568
- k != null ? E = x.getKeyBelow(k) : E = x.getFirstKey?.(), E == null && _ && (E = x.getFirstKey?.(k)), v(E);
5567
+ let k;
5568
+ E != null ? k = x.getKeyBelow(E) : k = x.getFirstKey?.(), k == null && _ && (k = x.getFirstKey?.(E)), v(k);
5569
5569
  }
5570
5570
  break;
5571
5571
  }
5572
5572
  case "ArrowUp": {
5573
5573
  if (x.getKeyAbove) {
5574
5574
  p.preventDefault();
5575
- let E;
5576
- k != null ? E = x.getKeyAbove(k) : E = x.getLastKey?.(), E == null && _ && (E = x.getLastKey?.(k)), v(E);
5575
+ let k;
5576
+ E != null ? k = x.getKeyAbove(E) : k = x.getLastKey?.(), k == null && _ && (k = x.getLastKey?.(E)), v(k);
5577
5577
  }
5578
5578
  break;
5579
5579
  }
5580
5580
  case "ArrowLeft": {
5581
5581
  if (x.getKeyLeftOf) {
5582
5582
  p.preventDefault();
5583
- const E = s() === "rtl";
5583
+ const k = s() === "rtl";
5584
5584
  let F;
5585
- k != null ? F = x.getKeyLeftOf(k) : F = E ? x.getFirstKey?.() : x.getLastKey?.(), v(F);
5585
+ E != null ? F = x.getKeyLeftOf(E) : F = k ? x.getFirstKey?.() : x.getLastKey?.(), v(F);
5586
5586
  }
5587
5587
  break;
5588
5588
  }
5589
5589
  case "ArrowRight": {
5590
5590
  if (x.getKeyRightOf) {
5591
5591
  p.preventDefault();
5592
- const E = s() === "rtl";
5592
+ const k = s() === "rtl";
5593
5593
  let F;
5594
- k != null ? F = x.getKeyRightOf(k) : F = E ? x.getLastKey?.() : x.getFirstKey?.(), v(F);
5594
+ E != null ? F = x.getKeyRightOf(E) : F = k ? x.getLastKey?.() : x.getFirstKey?.(), v(F);
5595
5595
  }
5596
5596
  break;
5597
5597
  }
5598
5598
  case "Home":
5599
5599
  if (x.getFirstKey) {
5600
5600
  p.preventDefault();
5601
- const E = x.getFirstKey(k, ht(p));
5602
- E != null && (b.setFocusedKey(E), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : w && b.replaceSelection(E));
5601
+ const k = x.getFirstKey(E, ht(p));
5602
+ k != null && (b.setFocusedKey(k), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(k) : w && b.replaceSelection(k));
5603
5603
  }
5604
5604
  break;
5605
5605
  case "End":
5606
5606
  if (x.getLastKey) {
5607
5607
  p.preventDefault();
5608
- const E = x.getLastKey(k, ht(p));
5609
- E != null && (b.setFocusedKey(E), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : w && b.replaceSelection(E));
5608
+ const k = x.getLastKey(E, ht(p));
5609
+ k != null && (b.setFocusedKey(k), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(k) : w && b.replaceSelection(k));
5610
5610
  }
5611
5611
  break;
5612
5612
  case "PageDown":
5613
- if (x.getKeyPageBelow && k != null) {
5613
+ if (x.getKeyPageBelow && E != null) {
5614
5614
  p.preventDefault();
5615
- const E = x.getKeyPageBelow(k);
5616
- v(E);
5615
+ const k = x.getKeyPageBelow(E);
5616
+ v(k);
5617
5617
  }
5618
5618
  break;
5619
5619
  case "PageUp":
5620
- if (x.getKeyPageAbove && k != null) {
5620
+ if (x.getKeyPageAbove && E != null) {
5621
5621
  p.preventDefault();
5622
- const E = x.getKeyPageAbove(k);
5623
- v(E);
5622
+ const k = x.getKeyPageAbove(E);
5623
+ v(k);
5624
5624
  }
5625
5625
  break;
5626
5626
  case "a":
@@ -5634,10 +5634,10 @@ function Lu(e, t, n) {
5634
5634
  if (p.shiftKey)
5635
5635
  m.focus();
5636
5636
  else {
5637
- const E = qc(m, { tabbable: !0 });
5637
+ const k = qc(m, { tabbable: !0 });
5638
5638
  let F, P;
5639
5639
  do
5640
- P = E.lastChild(), P && (F = P);
5640
+ P = k.lastChild(), P && (F = P);
5641
5641
  while (P);
5642
5642
  F && !F.contains(document.activeElement) && ue(F);
5643
5643
  }
@@ -5742,8 +5742,8 @@ function Mu(e, t) {
5742
5742
  o,
5743
5743
  () => n().focusedKey(),
5744
5744
  () => n().isFocused()
5745
- ], ([w, v, x, _, k]) => {
5746
- w && v === _ && k && !x && document.activeElement !== w && (e.focus ? e.focus() : ue(w));
5745
+ ], ([w, v, x, _, E]) => {
5746
+ w && v === _ && E && !x && document.activeElement !== w && (e.focus ? e.focus() : ue(w));
5747
5747
  })), {
5748
5748
  isSelected: s,
5749
5749
  isDisabled: a,
@@ -6151,7 +6151,7 @@ class Ru {
6151
6151
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableList.ts
6152
6152
  */
6153
6153
  function Fu(e, t, n) {
6154
- const r = ku({ usage: "search", sensitivity: "base" }), o = C(() => {
6154
+ const r = Eu({ usage: "search", sensitivity: "base" }), o = C(() => {
6155
6155
  const i = S(e.keyboardDelegate);
6156
6156
  return i || new Ru(e.collection, t, r);
6157
6157
  });
@@ -6191,7 +6191,7 @@ function Nu(e) {
6191
6191
  }
6192
6192
  function Ku(e) {
6193
6193
  let t;
6194
- const n = $e({
6194
+ const n = Fe({
6195
6195
  type: "button"
6196
6196
  }, e), [r, o] = j(n, ["ref", "type", "disabled"]), i = mu(() => t, () => "button"), s = C(() => {
6197
6197
  const c = i();
@@ -6280,7 +6280,7 @@ function Uu(e) {
6280
6280
  return r;
6281
6281
  r = r.parentElement;
6282
6282
  }
6283
- return je(r).body;
6283
+ return Ue(r).body;
6284
6284
  }
6285
6285
  function ju(e, t) {
6286
6286
  L(() => {
@@ -6340,7 +6340,7 @@ function Hu(e = {}) {
6340
6340
  }) };
6341
6341
  }
6342
6342
  function Wu(e) {
6343
- const t = zu(), n = $e({ shouldRegisterItem: !0 }, e);
6343
+ const t = zu(), n = Fe({ shouldRegisterItem: !0 }, e);
6344
6344
  L(() => {
6345
6345
  if (!n.shouldRegisterItem)
6346
6346
  return;
@@ -6348,7 +6348,7 @@ function Wu(e) {
6348
6348
  K(r);
6349
6349
  });
6350
6350
  }
6351
- var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), Er = (e, t) => {
6351
+ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), kr = (e, t) => {
6352
6352
  if (e.contains(t)) return !0;
6353
6353
  let n = t;
6354
6354
  for (; n; ) {
@@ -6413,7 +6413,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6413
6413
  preventScrollbarShiftMode: "padding",
6414
6414
  restoreScrollPosition: !0,
6415
6415
  allowPinchZoom: !1
6416
- }, e), n = Me();
6416
+ }, e), n = Le();
6417
6417
  let r = [0, 0], o = null, i = null;
6418
6418
  L(() => {
6419
6419
  J(t.enabled) && (qo((c) => [...c, n]), K(() => {
@@ -6466,7 +6466,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6466
6466
  }, a = (c) => {
6467
6467
  const d = c.target, u = J(t.element), f = ed(c), g = Math.abs(f[0]) > Math.abs(f[1]) ? "x" : "y", h = g === "x" ? f[0] : f[1], p = Wo(d, g, h, u);
6468
6468
  let m;
6469
- u && Er(u, d) ? m = !p : m = !0, m && c.cancelable && c.preventDefault();
6469
+ u && kr(u, d) ? m = !p : m = !0, m && c.cancelable && c.preventDefault();
6470
6470
  }, l = (c) => {
6471
6471
  const d = J(t.element), u = c.target;
6472
6472
  let f;
@@ -6481,13 +6481,13 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6481
6481
  f = !1;
6482
6482
  else {
6483
6483
  const g = Wo(u, o, i, d);
6484
- d && Er(d, u) ? f = !g : f = !0;
6484
+ d && kr(d, u) ? f = !g : f = !0;
6485
6485
  }
6486
6486
  }
6487
6487
  f && c.cancelable && c.preventDefault();
6488
6488
  };
6489
6489
  }, ed = (e) => [e.deltaX, e.deltaY], Ho = (e) => e.changedTouches[0] ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0], Wo = (e, t, n, r) => {
6490
- const o = r !== null && Er(r, e), [i, s] = Ju(e, t, o ? r : void 0);
6490
+ const o = r !== null && kr(r, e), [i, s] = Ju(e, t, o ? r : void 0);
6491
6491
  return !(n > 0 && Math.abs(i) <= 1 || n < 0 && Math.abs(s) < 1);
6492
6492
  }, td = Qu, ps = td;
6493
6493
  const ms = fe();
@@ -6504,7 +6504,7 @@ function rd(e) {
6504
6504
  };
6505
6505
  };
6506
6506
  hu({
6507
- shouldExcludeElement: (u) => t ? r.excludedElements?.some((f) => Le(f(), u)) || [...i].some((f) => Le(f, u)) : !1,
6507
+ shouldExcludeElement: (u) => t ? r.excludedElements?.some((f) => Te(f(), u)) || [...i].some((f) => Te(f, u)) : !1,
6508
6508
  onPointerDownOutside: (u) => {
6509
6509
  !t || he.isBelowPointerBlockingLayer(t) || !r.bypassTopMostLayerCheck && !he.isTopMostLayer(t) || (r.onPointerDownOutside?.(u), r.onInteractOutside?.(u), u.defaultPrevented || r.onDismiss?.());
6510
6510
  },
@@ -6512,7 +6512,7 @@ function rd(e) {
6512
6512
  r.onFocusOutside?.(u), r.onInteractOutside?.(u), u.defaultPrevented || r.onDismiss?.();
6513
6513
  }
6514
6514
  }, () => t), eu({
6515
- ownerDocument: () => je(t),
6515
+ ownerDocument: () => Ue(t),
6516
6516
  onEscapeKeyDown: (u) => {
6517
6517
  !t || !he.isTopMostLayer(t) || (r.onEscapeKeyDown?.(u), !u.defaultPrevented && r.onDismiss && (u.preventDefault(), r.onDismiss()));
6518
6518
  }
@@ -6581,7 +6581,7 @@ function id(e) {
6581
6581
  }
6582
6582
  }, r));
6583
6583
  }
6584
- const sd = ["top", "right", "bottom", "left"], Xe = Math.min, ge = Math.max, _n = Math.round, nn = Math.floor, De = (e) => ({
6584
+ const sd = ["top", "right", "bottom", "left"], Xe = Math.min, ge = Math.max, _n = Math.round, nn = Math.floor, Me = (e) => ({
6585
6585
  x: e,
6586
6586
  y: e
6587
6587
  }), ad = {
@@ -6593,7 +6593,7 @@ const sd = ["top", "right", "bottom", "left"], Xe = Math.min, ge = Math.max, _n
6593
6593
  start: "end",
6594
6594
  end: "start"
6595
6595
  };
6596
- function kr(e, t, n) {
6596
+ function Er(e, t, n) {
6597
6597
  return ge(e, Xe(t, n));
6598
6598
  }
6599
6599
  function ct(e, t) {
@@ -6602,7 +6602,7 @@ function ct(e, t) {
6602
6602
  function Je(e) {
6603
6603
  return e.split("-")[0];
6604
6604
  }
6605
- function Et(e) {
6605
+ function kt(e) {
6606
6606
  return e.split("-")[1];
6607
6607
  }
6608
6608
  function bs(e) {
@@ -6619,7 +6619,7 @@ function Xr(e) {
6619
6619
  }
6620
6620
  function cd(e, t, n) {
6621
6621
  n === void 0 && (n = !1);
6622
- const r = Et(e), o = Xr(e), i = Yr(o);
6622
+ const r = kt(e), o = Xr(e), i = Yr(o);
6623
6623
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6624
6624
  return t.reference[i] > t.floating[i] && (s = Pn(s)), [s, Pn(s)];
6625
6625
  }
@@ -6644,7 +6644,7 @@ function dd(e, t, n) {
6644
6644
  }
6645
6645
  }
6646
6646
  function fd(e, t, n, r) {
6647
- const o = Et(e);
6647
+ const o = kt(e);
6648
6648
  let i = dd(Je(e), n === "start", r);
6649
6649
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Cr)))), i;
6650
6650
  }
@@ -6724,7 +6724,7 @@ function Go(e, t, n) {
6724
6724
  y: r.y
6725
6725
  };
6726
6726
  }
6727
- switch (Et(t)) {
6727
+ switch (kt(t)) {
6728
6728
  case "start":
6729
6729
  g[s] -= f * (n && c ? -1 : 1);
6730
6730
  break;
@@ -6861,10 +6861,10 @@ const pd = (e) => ({
6861
6861
  const u = ws(d), f = {
6862
6862
  x: n,
6863
6863
  y: r
6864
- }, g = Xr(o), h = Yr(g), p = await s.getDimensions(c), m = g === "y", b = m ? "top" : "left", w = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[g] - f[g] - i.floating[h], _ = f[g] - i.reference[g], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6865
- let E = k ? k[v] : 0;
6866
- (!E || !await (s.isElement == null ? void 0 : s.isElement(k))) && (E = a.floating[v] || i.floating[h]);
6867
- const F = x / 2 - _ / 2, P = E / 2 - p[h] / 2 - 1, R = Xe(u[b], P), M = Xe(u[w], P), D = R, ne = E - p[h] - M, W = E / 2 - p[h] / 2 + F, ce = kr(D, W, ne), $ = !l.arrow && Et(o) != null && W !== ce && i.reference[h] / 2 - (W < D ? R : M) - p[h] / 2 < 0, z = $ ? W < D ? W - D : W - ne : 0;
6864
+ }, g = Xr(o), h = Yr(g), p = await s.getDimensions(c), m = g === "y", b = m ? "top" : "left", w = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[g] - f[g] - i.floating[h], _ = f[g] - i.reference[g], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6865
+ let k = E ? E[v] : 0;
6866
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(E))) && (k = a.floating[v] || i.floating[h]);
6867
+ const F = x / 2 - _ / 2, P = k / 2 - p[h] / 2 - 1, R = Xe(u[b], P), M = Xe(u[w], P), D = R, ne = k - p[h] - M, W = k / 2 - p[h] / 2 + F, ce = Er(D, W, ne), $ = !l.arrow && kt(o) != null && W !== ce && i.reference[h] / 2 - (W < D ? R : M) - p[h] / 2 < 0, z = $ ? W < D ? W - D : W - ne : 0;
6868
6868
  return {
6869
6869
  [g]: f[g] + z,
6870
6870
  data: {
@@ -6901,9 +6901,9 @@ const pd = (e) => ({
6901
6901
  } = ct(e, t);
6902
6902
  if ((n = i.arrow) != null && n.alignmentOffset)
6903
6903
  return {};
6904
- const b = Je(o), w = ot(a), v = Je(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = f || (v || !p ? [Pn(a)] : ud(a)), k = h !== "none";
6905
- !f && k && _.push(...fd(a, p, h, x));
6906
- const E = [a, ..._], F = await qt(t, m), P = [];
6904
+ const b = Je(o), w = ot(a), v = Je(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = f || (v || !p ? [Pn(a)] : ud(a)), E = h !== "none";
6905
+ !f && E && _.push(...fd(a, p, h, x));
6906
+ const k = [a, ..._], F = await qt(t, m), P = [];
6907
6907
  let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
6908
6908
  if (d && P.push(F[b]), u) {
6909
6909
  const W = cd(o, s, x);
@@ -6914,7 +6914,7 @@ const pd = (e) => ({
6914
6914
  overflows: P
6915
6915
  }], !P.every((W) => W <= 0)) {
6916
6916
  var M, D;
6917
- const W = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, ce = E[W];
6917
+ const W = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, ce = k[W];
6918
6918
  if (ce)
6919
6919
  return {
6920
6920
  data: {
@@ -6931,7 +6931,7 @@ const pd = (e) => ({
6931
6931
  case "bestFit": {
6932
6932
  var ne;
6933
6933
  const z = (ne = R.filter((Q) => {
6934
- if (k) {
6934
+ if (E) {
6935
6935
  const oe = ot(Q.placement);
6936
6936
  return oe === w || // Create a bias to the `y` side axis due to horizontal
6937
6937
  // reading directions favoring greater width.
@@ -7015,7 +7015,7 @@ async function bd(e, t) {
7015
7015
  placement: n,
7016
7016
  platform: r,
7017
7017
  elements: o
7018
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Je(n), a = Et(n), l = ot(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = ct(t, e);
7018
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Je(n), a = kt(n), l = ot(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = ct(t, e);
7019
7019
  let {
7020
7020
  mainAxis: f,
7021
7021
  crossAxis: g,
@@ -7091,11 +7091,11 @@ const wd = function(e) {
7091
7091
  let g = c[f], h = c[u];
7092
7092
  if (i) {
7093
7093
  const m = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", w = g + d[m], v = g - d[b];
7094
- g = kr(w, g, v);
7094
+ g = Er(w, g, v);
7095
7095
  }
7096
7096
  if (s) {
7097
7097
  const m = u === "y" ? "top" : "left", b = u === "y" ? "bottom" : "right", w = h + d[m], v = h - d[b];
7098
- h = kr(w, h, v);
7098
+ h = Er(w, h, v);
7099
7099
  }
7100
7100
  const p = a.fn({
7101
7101
  ...t,
@@ -7130,22 +7130,22 @@ const wd = function(e) {
7130
7130
  apply: l = () => {
7131
7131
  },
7132
7132
  ...c
7133
- } = ct(e, t), d = await qt(t, c), u = Je(o), f = Et(o), g = ot(o) === "y", {
7133
+ } = ct(e, t), d = await qt(t, c), u = Je(o), f = kt(o), g = ot(o) === "y", {
7134
7134
  width: h,
7135
7135
  height: p
7136
7136
  } = i.floating;
7137
7137
  let m, b;
7138
7138
  u === "top" || u === "bottom" ? (m = u, b = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = u, m = f === "end" ? "top" : "bottom");
7139
- const w = p - d.top - d.bottom, v = h - d.left - d.right, x = Xe(p - d[m], w), _ = Xe(h - d[b], v), k = !t.middlewareData.shift;
7140
- let E = x, F = _;
7141
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = v), (r = t.middlewareData.shift) != null && r.enabled.y && (E = w), k && !f) {
7139
+ const w = p - d.top - d.bottom, v = h - d.left - d.right, x = Xe(p - d[m], w), _ = Xe(h - d[b], v), E = !t.middlewareData.shift;
7140
+ let k = x, F = _;
7141
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = v), (r = t.middlewareData.shift) != null && r.enabled.y && (k = w), E && !f) {
7142
7142
  const R = ge(d.left, 0), M = ge(d.right, 0), D = ge(d.top, 0), ne = ge(d.bottom, 0);
7143
- g ? F = h - 2 * (R !== 0 || M !== 0 ? R + M : ge(d.left, d.right)) : E = p - 2 * (D !== 0 || ne !== 0 ? D + ne : ge(d.top, d.bottom));
7143
+ g ? F = h - 2 * (R !== 0 || M !== 0 ? R + M : ge(d.left, d.right)) : k = p - 2 * (D !== 0 || ne !== 0 ? D + ne : ge(d.top, d.bottom));
7144
7144
  }
7145
7145
  await l({
7146
7146
  ...t,
7147
7147
  availableWidth: F,
7148
- availableHeight: E
7148
+ availableHeight: k
7149
7149
  });
7150
7150
  const P = await s.getDimensions(a.floating);
7151
7151
  return h !== P.width || p !== P.height ? {
@@ -7159,14 +7159,14 @@ const wd = function(e) {
7159
7159
  function Fn() {
7160
7160
  return typeof window < "u";
7161
7161
  }
7162
- function kt(e) {
7162
+ function Et(e) {
7163
7163
  return vs(e) ? (e.nodeName || "").toLowerCase() : "#document";
7164
7164
  }
7165
7165
  function me(e) {
7166
7166
  var t;
7167
7167
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
7168
7168
  }
7169
- function Ne(e) {
7169
+ function $e(e) {
7170
7170
  var t;
7171
7171
  return (t = (vs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
7172
7172
  }
@@ -7176,7 +7176,7 @@ function vs(e) {
7176
7176
  function Pe(e) {
7177
7177
  return Fn() ? e instanceof Element || e instanceof me(e).Element : !1;
7178
7178
  }
7179
- function Re(e) {
7179
+ function Ie(e) {
7180
7180
  return Fn() ? e instanceof HTMLElement || e instanceof me(e).HTMLElement : !1;
7181
7181
  }
7182
7182
  function Jo(e) {
@@ -7192,7 +7192,7 @@ function Wt(e) {
7192
7192
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
7193
7193
  }
7194
7194
  function Sd(e) {
7195
- return ["table", "td", "th"].includes(kt(e));
7195
+ return ["table", "td", "th"].includes(Et(e));
7196
7196
  }
7197
7197
  function $n(e) {
7198
7198
  return [":popover-open", ":modal"].some((t) => {
@@ -7207,9 +7207,9 @@ function Jr(e) {
7207
7207
  const t = Zr(), n = Pe(e) ? Ae(e) : e;
7208
7208
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
7209
7209
  }
7210
- function Ed(e) {
7210
+ function kd(e) {
7211
7211
  let t = Ze(e);
7212
- for (; Re(t) && !wt(t); ) {
7212
+ for (; Ie(t) && !wt(t); ) {
7213
7213
  if (Jr(t))
7214
7214
  return t;
7215
7215
  if ($n(t))
@@ -7222,7 +7222,7 @@ function Zr() {
7222
7222
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
7223
7223
  }
7224
7224
  function wt(e) {
7225
- return ["html", "body", "#document"].includes(kt(e));
7225
+ return ["html", "body", "#document"].includes(Et(e));
7226
7226
  }
7227
7227
  function Ae(e) {
7228
7228
  return me(e).getComputedStyle(e);
@@ -7237,20 +7237,20 @@ function Nn(e) {
7237
7237
  };
7238
7238
  }
7239
7239
  function Ze(e) {
7240
- if (kt(e) === "html")
7240
+ if (Et(e) === "html")
7241
7241
  return e;
7242
7242
  const t = (
7243
7243
  // Step into the shadow DOM of the parent of a slotted node.
7244
7244
  e.assignedSlot || // DOM Element detected.
7245
7245
  e.parentNode || // ShadowRoot detected.
7246
7246
  Jo(e) && e.host || // Fallback.
7247
- Ne(e)
7247
+ $e(e)
7248
7248
  );
7249
7249
  return Jo(t) ? t.host : t;
7250
7250
  }
7251
7251
  function xs(e) {
7252
7252
  const t = Ze(e);
7253
- return wt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && Wt(t) ? t : xs(t);
7253
+ return wt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && Wt(t) ? t : xs(t);
7254
7254
  }
7255
7255
  function Ht(e, t, n) {
7256
7256
  var r;
@@ -7268,7 +7268,7 @@ function Or(e) {
7268
7268
  function Ss(e) {
7269
7269
  const t = Ae(e);
7270
7270
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
7271
- const o = Re(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = _n(n) !== i || _n(r) !== s;
7271
+ const o = Ie(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = _n(n) !== i || _n(r) !== s;
7272
7272
  return a && (n = i, r = s), {
7273
7273
  width: n,
7274
7274
  height: r,
@@ -7280,8 +7280,8 @@ function Qr(e) {
7280
7280
  }
7281
7281
  function yt(e) {
7282
7282
  const t = Qr(e);
7283
- if (!Re(t))
7284
- return De(1);
7283
+ if (!Ie(t))
7284
+ return Me(1);
7285
7285
  const n = t.getBoundingClientRect(), {
7286
7286
  width: r,
7287
7287
  height: o,
@@ -7293,10 +7293,10 @@ function yt(e) {
7293
7293
  y: a
7294
7294
  };
7295
7295
  }
7296
- const kd = /* @__PURE__ */ De(0);
7297
- function Es(e) {
7296
+ const Ed = /* @__PURE__ */ Me(0);
7297
+ function ks(e) {
7298
7298
  const t = me(e);
7299
- return !Zr() || !t.visualViewport ? kd : {
7299
+ return !Zr() || !t.visualViewport ? Ed : {
7300
7300
  x: t.visualViewport.offsetLeft,
7301
7301
  y: t.visualViewport.offsetTop
7302
7302
  };
@@ -7307,9 +7307,9 @@ function Cd(e, t, n) {
7307
7307
  function it(e, t, n, r) {
7308
7308
  t === void 0 && (t = !1), n === void 0 && (n = !1);
7309
7309
  const o = e.getBoundingClientRect(), i = Qr(e);
7310
- let s = De(1);
7310
+ let s = Me(1);
7311
7311
  t && (r ? Pe(r) && (s = yt(r)) : s = yt(e));
7312
- const a = Cd(i, n, r) ? Es(i) : De(0);
7312
+ const a = Cd(i, n, r) ? ks(i) : Me(0);
7313
7313
  let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, d = o.width / s.x, u = o.height / s.y;
7314
7314
  if (i) {
7315
7315
  const f = me(i), g = r && Pe(r) ? me(r) : r;
@@ -7328,9 +7328,9 @@ function it(e, t, n, r) {
7328
7328
  }
7329
7329
  function eo(e, t) {
7330
7330
  const n = Nn(e).scrollLeft;
7331
- return t ? t.left + n : it(Ne(e)).left + n;
7331
+ return t ? t.left + n : it($e(e)).left + n;
7332
7332
  }
7333
- function ks(e, t, n) {
7333
+ function Es(e, t, n) {
7334
7334
  n === void 0 && (n = !1);
7335
7335
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
7336
7336
  // RTL <body> scrollbar.
@@ -7348,19 +7348,19 @@ function Od(e) {
7348
7348
  offsetParent: r,
7349
7349
  strategy: o
7350
7350
  } = e;
7351
- const i = o === "fixed", s = Ne(r), a = t ? $n(t.floating) : !1;
7351
+ const i = o === "fixed", s = $e(r), a = t ? $n(t.floating) : !1;
7352
7352
  if (r === s || a && i)
7353
7353
  return n;
7354
7354
  let l = {
7355
7355
  scrollLeft: 0,
7356
7356
  scrollTop: 0
7357
- }, c = De(1);
7358
- const d = De(0), u = Re(r);
7359
- if ((u || !u && !i) && ((kt(r) !== "body" || Wt(s)) && (l = Nn(r)), Re(r))) {
7357
+ }, c = Me(1);
7358
+ const d = Me(0), u = Ie(r);
7359
+ if ((u || !u && !i) && ((Et(r) !== "body" || Wt(s)) && (l = Nn(r)), Ie(r))) {
7360
7360
  const g = it(r);
7361
7361
  c = yt(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
7362
7362
  }
7363
- const f = s && !u && !i ? ks(s, l, !0) : De(0);
7363
+ const f = s && !u && !i ? Es(s, l, !0) : Me(0);
7364
7364
  return {
7365
7365
  width: n.width * c.x,
7366
7366
  height: n.height * c.y,
@@ -7372,7 +7372,7 @@ function _d(e) {
7372
7372
  return Array.from(e.getClientRects());
7373
7373
  }
7374
7374
  function Pd(e) {
7375
- const t = Ne(e), n = Nn(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7375
+ const t = $e(e), n = Nn(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7376
7376
  let s = -n.scrollLeft + eo(e);
7377
7377
  const a = -n.scrollTop;
7378
7378
  return Ae(r).direction === "rtl" && (s += ge(t.clientWidth, r.clientWidth) - o), {
@@ -7383,7 +7383,7 @@ function Pd(e) {
7383
7383
  };
7384
7384
  }
7385
7385
  function Ad(e, t) {
7386
- const n = me(e), r = Ne(e), o = n.visualViewport;
7386
+ const n = me(e), r = $e(e), o = n.visualViewport;
7387
7387
  let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
7388
7388
  if (o) {
7389
7389
  i = o.width, s = o.height;
@@ -7398,7 +7398,7 @@ function Ad(e, t) {
7398
7398
  };
7399
7399
  }
7400
7400
  function Td(e, t) {
7401
- const n = it(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Re(e) ? yt(e) : De(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
7401
+ const n = it(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Ie(e) ? yt(e) : Me(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
7402
7402
  return {
7403
7403
  width: s,
7404
7404
  height: a,
@@ -7411,11 +7411,11 @@ function Zo(e, t, n) {
7411
7411
  if (t === "viewport")
7412
7412
  r = Ad(e, n);
7413
7413
  else if (t === "document")
7414
- r = Pd(Ne(e));
7414
+ r = Pd($e(e));
7415
7415
  else if (Pe(t))
7416
7416
  r = Td(t, n);
7417
7417
  else {
7418
- const o = Es(e);
7418
+ const o = ks(e);
7419
7419
  r = {
7420
7420
  x: t.x - o.x,
7421
7421
  y: t.y - o.y,
@@ -7433,7 +7433,7 @@ function Ld(e, t) {
7433
7433
  const n = t.get(e);
7434
7434
  if (n)
7435
7435
  return n;
7436
- let r = Ht(e, [], !1).filter((a) => Pe(a) && kt(a) !== "body"), o = null;
7436
+ let r = Ht(e, [], !1).filter((a) => Pe(a) && Et(a) !== "body"), o = null;
7437
7437
  const i = Ae(e).position === "fixed";
7438
7438
  let s = i ? Ze(e) : e;
7439
7439
  for (; Pe(s) && !wt(s); ) {
@@ -7471,18 +7471,18 @@ function Dd(e) {
7471
7471
  };
7472
7472
  }
7473
7473
  function Id(e, t, n) {
7474
- const r = Re(t), o = Ne(t), i = n === "fixed", s = it(e, !0, i, t);
7474
+ const r = Ie(t), o = $e(t), i = n === "fixed", s = it(e, !0, i, t);
7475
7475
  let a = {
7476
7476
  scrollLeft: 0,
7477
7477
  scrollTop: 0
7478
7478
  };
7479
- const l = De(0);
7479
+ const l = Me(0);
7480
7480
  if (r || !r && !i)
7481
- if ((kt(t) !== "body" || Wt(o)) && (a = Nn(t)), r) {
7481
+ if ((Et(t) !== "body" || Wt(o)) && (a = Nn(t)), r) {
7482
7482
  const f = it(t, !0, i, t);
7483
7483
  l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
7484
7484
  } else o && (l.x = eo(o));
7485
- const c = o && !r && !i ? ks(o, a) : De(0), d = s.left + a.scrollLeft - l.x - c.x, u = s.top + a.scrollTop - l.y - c.y;
7485
+ const c = o && !r && !i ? Es(o, a) : Me(0), d = s.left + a.scrollLeft - l.x - c.x, u = s.top + a.scrollTop - l.y - c.y;
7486
7486
  return {
7487
7487
  x: d,
7488
7488
  y: u,
@@ -7494,18 +7494,18 @@ function er(e) {
7494
7494
  return Ae(e).position === "static";
7495
7495
  }
7496
7496
  function Qo(e, t) {
7497
- if (!Re(e) || Ae(e).position === "fixed")
7497
+ if (!Ie(e) || Ae(e).position === "fixed")
7498
7498
  return null;
7499
7499
  if (t)
7500
7500
  return t(e);
7501
7501
  let n = e.offsetParent;
7502
- return Ne(e) === n && (n = n.ownerDocument.body), n;
7502
+ return $e(e) === n && (n = n.ownerDocument.body), n;
7503
7503
  }
7504
7504
  function Os(e, t) {
7505
7505
  const n = me(e);
7506
7506
  if ($n(e))
7507
7507
  return n;
7508
- if (!Re(e)) {
7508
+ if (!Ie(e)) {
7509
7509
  let o = Ze(e);
7510
7510
  for (; o && !wt(o); ) {
7511
7511
  if (Pe(o) && !er(o))
@@ -7517,7 +7517,7 @@ function Os(e, t) {
7517
7517
  let r = Qo(e, t);
7518
7518
  for (; r && Sd(r) && er(r); )
7519
7519
  r = Qo(r, t);
7520
- return r && wt(r) && er(r) && !Jr(r) ? n : r || Ed(e) || n;
7520
+ return r && wt(r) && er(r) && !Jr(r) ? n : r || kd(e) || n;
7521
7521
  }
7522
7522
  const Rd = async function(e) {
7523
7523
  const t = this.getOffsetParent || Os, n = this.getDimensions, r = await n(e.floating);
@@ -7536,7 +7536,7 @@ function Fd(e) {
7536
7536
  }
7537
7537
  const _s = {
7538
7538
  convertOffsetParentRelativeRectToViewportRelativeRect: Od,
7539
- getDocumentElement: Ne,
7539
+ getDocumentElement: $e,
7540
7540
  getClippingRect: Md,
7541
7541
  getOffsetParent: Os,
7542
7542
  getElementRects: Rd,
@@ -7551,7 +7551,7 @@ function Ps(e, t) {
7551
7551
  }
7552
7552
  function $d(e, t) {
7553
7553
  let n = null, r;
7554
- const o = Ne(e);
7554
+ const o = $e(e);
7555
7555
  function i() {
7556
7556
  var a;
7557
7557
  clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
@@ -7571,16 +7571,16 @@ function $d(e, t) {
7571
7571
  threshold: ge(0, Xe(1, l)) || 1
7572
7572
  };
7573
7573
  let x = !0;
7574
- function _(k) {
7575
- const E = k[0].intersectionRatio;
7576
- if (E !== l) {
7574
+ function _(E) {
7575
+ const k = E[0].intersectionRatio;
7576
+ if (k !== l) {
7577
7577
  if (!x)
7578
7578
  return s();
7579
- E ? s(!1, E) : r = setTimeout(() => {
7579
+ k ? s(!1, k) : r = setTimeout(() => {
7580
7580
  s(!1, 1e-7);
7581
7581
  }, 1e3);
7582
7582
  }
7583
- E === 1 && !Ps(c, e.getBoundingClientRect()) && s(), x = !1;
7583
+ k === 1 && !Ps(c, e.getBoundingClientRect()) && s(), x = !1;
7584
7584
  }
7585
7585
  try {
7586
7586
  n = new IntersectionObserver(_, {
@@ -7683,7 +7683,7 @@ function Yd(e, t) {
7683
7683
  return r ? n === "left" || n === "right" ? `${o} ${r === "start" ? "top" : "bottom"}` : r === "start" ? `${o} ${t === "rtl" ? "right" : "left"}` : `${o} ${t === "rtl" ? "left" : "right"}` : `${o} center`;
7684
7684
  }
7685
7685
  function Xd(e) {
7686
- const t = $e({
7686
+ const t = Fe({
7687
7687
  getAnchorRect: (f) => f?.getBoundingClientRect(),
7688
7688
  placement: "bottom",
7689
7689
  gutter: 0,
@@ -7709,23 +7709,23 @@ function Xd(e) {
7709
7709
  const b = [
7710
7710
  // https://floating-ui.com/docs/offset
7711
7711
  Kd(({
7712
- placement: k
7712
+ placement: E
7713
7713
  }) => {
7714
- const E = !!k.split("-")[1];
7714
+ const k = !!E.split("-")[1];
7715
7715
  return {
7716
7716
  mainAxis: m,
7717
- crossAxis: E ? void 0 : t.shift,
7717
+ crossAxis: k ? void 0 : t.shift,
7718
7718
  alignmentAxis: t.shift
7719
7719
  };
7720
7720
  })
7721
7721
  ];
7722
7722
  if (t.flip !== !1) {
7723
- const k = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
7724
- if (k !== void 0 && !k.every(Wd))
7723
+ const E = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
7724
+ if (E !== void 0 && !E.every(Wd))
7725
7725
  throw new Error("`flip` expects a spaced-delimited list of placements");
7726
7726
  b.push(Bd({
7727
7727
  padding: t.overflowPadding,
7728
- fallbackPlacements: k
7728
+ fallbackPlacements: E
7729
7729
  }));
7730
7730
  }
7731
7731
  (t.slide || t.overlap) && b.push(zd({
@@ -7735,12 +7735,12 @@ function Xd(e) {
7735
7735
  })), b.push(Vd({
7736
7736
  padding: t.overflowPadding,
7737
7737
  apply({
7738
- availableWidth: k,
7739
- availableHeight: E,
7738
+ availableWidth: E,
7739
+ availableHeight: k,
7740
7740
  rects: F
7741
7741
  }) {
7742
7742
  const P = Math.round(F.reference.width);
7743
- k = Math.floor(k), E = Math.floor(E), g.style.setProperty("--kb-popper-anchor-width", `${P}px`), g.style.setProperty("--kb-popper-content-available-width", `${k}px`), g.style.setProperty("--kb-popper-content-available-height", `${E}px`), t.sameWidth && (g.style.width = `${P}px`), t.fitViewport && (g.style.maxWidth = `${k}px`, g.style.maxHeight = `${E}px`);
7743
+ E = Math.floor(E), k = Math.floor(k), g.style.setProperty("--kb-popper-anchor-width", `${P}px`), g.style.setProperty("--kb-popper-content-available-width", `${E}px`), g.style.setProperty("--kb-popper-content-available-height", `${k}px`), t.sameWidth && (g.style.width = `${P}px`), t.fitViewport && (g.style.maxWidth = `${E}px`, g.style.maxHeight = `${k}px`);
7744
7744
  }
7745
7745
  })), t.hideWhenDetached && b.push(Ud({
7746
7746
  padding: t.detachedPadding
@@ -7769,12 +7769,12 @@ function Xd(e) {
7769
7769
  visibility: _
7770
7770
  }), h && w.middlewareData.arrow) {
7771
7771
  const {
7772
- x: k,
7773
- y: E
7772
+ x: E,
7773
+ y: k
7774
7774
  } = w.middlewareData.arrow, F = w.placement.split("-")[0];
7775
7775
  Object.assign(h.style, {
7776
- left: k != null ? `${k}px` : "",
7777
- top: E != null ? `${E}px` : "",
7776
+ left: E != null ? `${E}px` : "",
7777
+ top: k != null ? `${k}px` : "",
7778
7778
  [F]: "100%"
7779
7779
  });
7780
7780
  }
@@ -7835,11 +7835,11 @@ function Jd(e, t) {
7835
7835
  return t ? Gc([e.clientX, e.clientY], t) : !1;
7836
7836
  }
7837
7837
  function Zd(e) {
7838
- const t = Ot(), n = fs(), r = Ts(), o = $e({
7838
+ const t = Ot(), n = fs(), r = Ts(), o = Fe({
7839
7839
  placement: "bottom-start"
7840
7840
  }, e), [i, s] = j(o, ["open", "defaultOpen", "onOpenChange"]);
7841
7841
  let a = 0, l = null, c = "right";
7842
- const [d, u] = O(), [f, g] = O(), [h, p] = O(), [m, b] = O(), [w, v] = O(!0), [x, _] = O(s.placement), [k, E] = O([]), [F, P] = O([]), {
7842
+ const [d, u] = O(), [f, g] = O(), [h, p] = O(), [m, b] = O(), [w, v] = O(!0), [x, _] = O(s.placement), [E, k] = O([]), [F, P] = O([]), {
7843
7843
  DomCollectionProvider: R
7844
7844
  } = Hu({
7845
7845
  items: F,
@@ -7861,21 +7861,21 @@ function Zd(e) {
7861
7861
  const U = m();
7862
7862
  U && (ue(U), ne.selectionManager().setFocused(!0), ne.selectionManager().setFocusedKey(void 0));
7863
7863
  }, Q = (U) => {
7864
- E((Un) => [...Un, U]);
7864
+ k((Un) => [...Un, U]);
7865
7865
  const Yt = r?.registerNestedMenu(U);
7866
7866
  return () => {
7867
- E((Un) => br(Un, U)), Yt?.();
7867
+ k((Un) => br(Un, U)), Yt?.();
7868
7868
  };
7869
7869
  }, oe = (U) => c === l?.side && Jd(U, l?.area), ut = (U) => {
7870
7870
  oe(U) && U.preventDefault();
7871
- }, Ee = (U) => {
7871
+ }, ke = (U) => {
7872
7872
  oe(U) || z();
7873
7873
  }, aa = (U) => {
7874
7874
  oe(U) && U.preventDefault();
7875
7875
  };
7876
7876
  du({
7877
7877
  isDisabled: () => !(r == null && M.isOpen() && t.isModal()),
7878
- targets: () => [m(), ...k()].filter(Boolean)
7878
+ targets: () => [m(), ...E()].filter(Boolean)
7879
7879
  }), L(() => {
7880
7880
  const U = m();
7881
7881
  if (!U || !r)
@@ -7892,7 +7892,7 @@ function Zd(e) {
7892
7892
  })),
7893
7893
  isOpen: M.isOpen,
7894
7894
  contentPresence: D,
7895
- nestedMenus: k,
7895
+ nestedMenus: E,
7896
7896
  currentPlacement: x,
7897
7897
  pointerGraceTimeoutId: () => a,
7898
7898
  autoFocus: w,
@@ -7909,7 +7909,7 @@ function Zd(e) {
7909
7909
  toggle: $,
7910
7910
  focusContent: z,
7911
7911
  onItemEnter: ut,
7912
- onItemLeave: Ee,
7912
+ onItemLeave: ke,
7913
7913
  onTriggerLeave: aa,
7914
7914
  setPointerDir: (U) => c = U,
7915
7915
  setPointerGraceTimeoutId: (U) => a = U,
@@ -7937,8 +7937,8 @@ function Zd(e) {
7937
7937
  const Qd = fe();
7938
7938
  function ef(e) {
7939
7939
  let t;
7940
- const n = Ot(), r = Ct(), o = $e({
7941
- id: n.generateId(`item-${Me()}`)
7940
+ const n = Ot(), r = Ct(), o = Fe({
7941
+ id: n.generateId(`item-${Le()}`)
7942
7942
  }, e), [i, s] = j(o, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] = O(), [c, d] = O(), [u, f] = O(), g = () => r.listState().selectionManager(), h = () => s.id, p = () => g().focusedKey() === h(), m = () => {
7943
7943
  i.onSelect?.(), i.closeOnSelect && r.close(!0);
7944
7944
  };
@@ -7971,19 +7971,19 @@ function ef(e) {
7971
7971
  m();
7972
7972
  break;
7973
7973
  }
7974
- }, k = C(() => {
7974
+ }, E = C(() => {
7975
7975
  if (i.indeterminate)
7976
7976
  return "mixed";
7977
7977
  if (i.checked != null)
7978
7978
  return i.checked;
7979
- }), E = C(() => ({
7979
+ }), k = C(() => ({
7980
7980
  "data-indeterminate": i.indeterminate ? "" : void 0,
7981
7981
  "data-checked": i.checked && !i.indeterminate ? "" : void 0,
7982
7982
  "data-disabled": i.disabled ? "" : void 0,
7983
7983
  "data-highlighted": p() ? "" : void 0
7984
7984
  })), F = {
7985
7985
  isChecked: () => i.checked,
7986
- dataset: E,
7986
+ dataset: k,
7987
7987
  setLabelRef: f,
7988
7988
  generateId: Qi(() => s.id),
7989
7989
  registerLabel: On(l),
@@ -8002,7 +8002,7 @@ function ef(e) {
8002
8002
  return b.tabIndex();
8003
8003
  },
8004
8004
  get "aria-checked"() {
8005
- return k();
8005
+ return E();
8006
8006
  },
8007
8007
  get "aria-disabled"() {
8008
8008
  return i.disabled;
@@ -8036,7 +8036,7 @@ function ef(e) {
8036
8036
  },
8037
8037
  onPointerMove: w,
8038
8038
  onPointerLeave: v
8039
- }, E, s));
8039
+ }, k, s));
8040
8040
  }
8041
8041
  });
8042
8042
  }
@@ -8046,8 +8046,8 @@ function Ms() {
8046
8046
  }
8047
8047
  function nf(e) {
8048
8048
  let t;
8049
- const n = Ot(), r = Ct(), o = Ms(), i = $e({
8050
- id: n.generateId(`content-${Me()}`)
8049
+ const n = Ot(), r = Ct(), o = Ms(), i = Fe({
8050
+ id: n.generateId(`content-${Le()}`)
8051
8051
  }, e), [s, a] = j(i, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
8052
8052
  let l = 0;
8053
8053
  const c = () => r.parentMenuContext() == null && o === void 0 && n.isModal(), d = Fu({
@@ -8066,7 +8066,7 @@ function nf(e) {
8066
8066
  onUnmountAutoFocus: s.onCloseAutoFocus
8067
8067
  }, () => t);
8068
8068
  const u = (m) => {
8069
- if (Le(m.currentTarget, m.target) && (m.key === "Tab" && r.isOpen() && m.preventDefault(), o !== void 0 && m.currentTarget.getAttribute("aria-haspopup") !== "true"))
8069
+ if (Te(m.currentTarget, m.target) && (m.key === "Tab" && r.isOpen() && m.preventDefault(), o !== void 0 && m.currentTarget.getAttribute("aria-haspopup") !== "true"))
8070
8070
  switch (m.key) {
8071
8071
  case "ArrowRight":
8072
8072
  m.stopPropagation(), m.preventDefault(), r.close(!0), o.setAutoFocusMenu(!0), o.nextMenu();
@@ -8086,7 +8086,7 @@ function nf(e) {
8086
8086
  if (pe(m, s.onPointerMove), m.pointerType !== "mouse")
8087
8087
  return;
8088
8088
  const b = m.target, w = l !== m.clientX;
8089
- Le(m.currentTarget, b) && w && (r.setPointerDir(m.clientX > l ? "right" : "left"), l = m.clientX);
8089
+ Te(m.currentTarget, b) && w && (r.setPointerDir(m.clientX > l ? "right" : "left"), l = m.clientX);
8090
8090
  };
8091
8091
  return L(() => K(r.registerContentId(s.id))), y(Z, {
8092
8092
  get when() {
@@ -8184,7 +8184,7 @@ function sf(e) {
8184
8184
  });
8185
8185
  }
8186
8186
  function af(e) {
8187
- const t = `menu-${Me()}`, n = $e({
8187
+ const t = `menu-${Le()}`, n = Fe({
8188
8188
  id: t,
8189
8189
  modal: !0
8190
8190
  }, e), [r, o] = j(n, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value"]), i = is({
@@ -8213,7 +8213,7 @@ function af(e) {
8213
8213
  });
8214
8214
  }
8215
8215
  function lf(e) {
8216
- const t = Ot(), n = Ct(), r = Ms(), o = $e({
8216
+ const t = Ot(), n = Ct(), r = Ms(), o = Fe({
8217
8217
  id: t.generateId("trigger")
8218
8218
  }, e), [i, s] = j(o, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
8219
8219
  let a;
@@ -8302,7 +8302,7 @@ function cf(e) {
8302
8302
  }, o));
8303
8303
  }
8304
8304
  function uf(e) {
8305
- const t = `dropdownmenu-${Me()}`, n = $e({
8305
+ const t = `dropdownmenu-${Le()}`, n = Fe({
8306
8306
  id: t
8307
8307
  }, e);
8308
8308
  return y(af, n);
@@ -8404,19 +8404,19 @@ async function xf(e, t, n) {
8404
8404
  };
8405
8405
  await fetch(r, o);
8406
8406
  }
8407
- const Fe = /* @__PURE__ */ Object.create(null);
8408
- Fe.open = "0";
8409
- Fe.close = "1";
8410
- Fe.ping = "2";
8411
- Fe.pong = "3";
8412
- Fe.message = "4";
8413
- Fe.upgrade = "5";
8414
- Fe.noop = "6";
8407
+ const Re = /* @__PURE__ */ Object.create(null);
8408
+ Re.open = "0";
8409
+ Re.close = "1";
8410
+ Re.ping = "2";
8411
+ Re.pong = "3";
8412
+ Re.message = "4";
8413
+ Re.upgrade = "5";
8414
+ Re.noop = "6";
8415
8415
  const dn = /* @__PURE__ */ Object.create(null);
8416
- Object.keys(Fe).forEach((e) => {
8417
- dn[Fe[e]] = e;
8416
+ Object.keys(Re).forEach((e) => {
8417
+ dn[Re[e]] = e;
8418
8418
  });
8419
- const _r = { type: "error", data: "parser error" }, Ds = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Is = typeof ArrayBuffer == "function", Rs = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, to = ({ type: e, data: t }, n, r) => Ds && t instanceof Blob ? n ? r(t) : ti(t, r) : Is && (t instanceof ArrayBuffer || Rs(t)) ? n ? r(t) : ti(new Blob([t]), r) : r(Fe[e] + (t || "")), ti = (e, t) => {
8419
+ const _r = { type: "error", data: "parser error" }, Ds = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Is = typeof ArrayBuffer == "function", Rs = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, to = ({ type: e, data: t }, n, r) => Ds && t instanceof Blob ? n ? r(t) : ti(t, r) : Is && (t instanceof ArrayBuffer || Rs(t)) ? n ? r(t) : ti(new Blob([t]), r) : r(Re[e] + (t || "")), ti = (e, t) => {
8420
8420
  const n = new FileReader();
8421
8421
  return n.onload = function() {
8422
8422
  const r = n.result.split(",")[1];
@@ -8439,14 +8439,14 @@ function Sf(e, t) {
8439
8439
  const ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Nt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
8440
8440
  for (let e = 0; e < ri.length; e++)
8441
8441
  Nt[ri.charCodeAt(e)] = e;
8442
- const Ef = (e) => {
8442
+ const kf = (e) => {
8443
8443
  let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
8444
8444
  e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
8445
8445
  const c = new ArrayBuffer(t), d = new Uint8Array(c);
8446
8446
  for (r = 0; r < n; r += 4)
8447
8447
  i = Nt[e.charCodeAt(r)], s = Nt[e.charCodeAt(r + 1)], a = Nt[e.charCodeAt(r + 2)], l = Nt[e.charCodeAt(r + 3)], d[o++] = i << 2 | s >> 4, d[o++] = (s & 15) << 4 | a >> 2, d[o++] = (a & 3) << 6 | l & 63;
8448
8448
  return c;
8449
- }, kf = typeof ArrayBuffer == "function", no = (e, t) => {
8449
+ }, Ef = typeof ArrayBuffer == "function", no = (e, t) => {
8450
8450
  if (typeof e != "string")
8451
8451
  return {
8452
8452
  type: "message",
@@ -8463,8 +8463,8 @@ const Ef = (e) => {
8463
8463
  type: dn[n]
8464
8464
  } : _r;
8465
8465
  }, Cf = (e, t) => {
8466
- if (kf) {
8467
- const n = Ef(e);
8466
+ if (Ef) {
8467
+ const n = kf(e);
8468
8468
  return Fs(n, t);
8469
8469
  } else
8470
8470
  return { base64: !0, data: e };
@@ -8898,7 +8898,7 @@ class Uf extends zf {
8898
8898
  }), this.pollXhr = t;
8899
8899
  }
8900
8900
  }
8901
- class Ie extends te {
8901
+ class De extends te {
8902
8902
  /**
8903
8903
  * Request constructor
8904
8904
  *
@@ -8952,7 +8952,7 @@ class Ie extends te {
8952
8952
  }, 0);
8953
8953
  return;
8954
8954
  }
8955
- typeof document < "u" && (this._index = Ie.requestsCount++, Ie.requests[this._index] = this);
8955
+ typeof document < "u" && (this._index = De.requestsCount++, De.requests[this._index] = this);
8956
8956
  }
8957
8957
  /**
8958
8958
  * Called upon error.
@@ -8974,7 +8974,7 @@ class Ie extends te {
8974
8974
  this._xhr.abort();
8975
8975
  } catch {
8976
8976
  }
8977
- typeof document < "u" && delete Ie.requests[this._index], this._xhr = null;
8977
+ typeof document < "u" && delete De.requests[this._index], this._xhr = null;
8978
8978
  }
8979
8979
  }
8980
8980
  /**
@@ -8995,8 +8995,8 @@ class Ie extends te {
8995
8995
  this._cleanup();
8996
8996
  }
8997
8997
  }
8998
- Ie.requestsCount = 0;
8999
- Ie.requests = {};
8998
+ De.requestsCount = 0;
8999
+ De.requests = {};
9000
9000
  if (typeof document < "u") {
9001
9001
  if (typeof attachEvent == "function")
9002
9002
  attachEvent("onunload", oi);
@@ -9006,8 +9006,8 @@ if (typeof document < "u") {
9006
9006
  }
9007
9007
  }
9008
9008
  function oi() {
9009
- for (let e in Ie.requests)
9010
- Ie.requests.hasOwnProperty(e) && Ie.requests[e].abort();
9009
+ for (let e in De.requests)
9010
+ De.requests.hasOwnProperty(e) && De.requests[e].abort();
9011
9011
  }
9012
9012
  const jf = function() {
9013
9013
  const e = Vs({
@@ -9022,7 +9022,7 @@ class qf extends Uf {
9022
9022
  this.supportsBinary = jf && !n;
9023
9023
  }
9024
9024
  request(t = {}) {
9025
- return Object.assign(t, { xd: this.xd }, this.opts), new Ie(Vs, this.uri(), t);
9025
+ return Object.assign(t, { xd: this.xd }, this.opts), new De(Vs, this.uri(), t);
9026
9026
  }
9027
9027
  }
9028
9028
  function Vs(e) {
@@ -9815,7 +9815,7 @@ const hh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9815
9815
  },
9816
9816
  protocol: uh
9817
9817
  }, Symbol.toStringTag, { value: "Module" }));
9818
- function ke(e, t, n) {
9818
+ function Ee(e, t, n) {
9819
9819
  return e.on(t, n), function() {
9820
9820
  e.off(t, n);
9821
9821
  };
@@ -9863,10 +9863,10 @@ class qs extends te {
9863
9863
  return;
9864
9864
  const t = this.io;
9865
9865
  this.subs = [
9866
- ke(t, "open", this.onopen.bind(this)),
9867
- ke(t, "packet", this.onpacket.bind(this)),
9868
- ke(t, "error", this.onerror.bind(this)),
9869
- ke(t, "close", this.onclose.bind(this))
9866
+ Ee(t, "open", this.onopen.bind(this)),
9867
+ Ee(t, "packet", this.onpacket.bind(this)),
9868
+ Ee(t, "error", this.onerror.bind(this)),
9869
+ Ee(t, "close", this.onclose.bind(this))
9870
9870
  ];
9871
9871
  }
9872
9872
  /**
@@ -10498,11 +10498,11 @@ class Mr extends te {
10498
10498
  this.engine = new th(this.uri, this.opts);
10499
10499
  const n = this.engine, r = this;
10500
10500
  this._readyState = "opening", this.skipReconnect = !1;
10501
- const o = ke(n, "open", function() {
10501
+ const o = Ee(n, "open", function() {
10502
10502
  r.onopen(), t && t();
10503
10503
  }), i = (a) => {
10504
10504
  this.cleanup(), this._readyState = "closed", this.emitReserved("error", a), t ? t(a) : this.maybeReconnectOnOpen();
10505
- }, s = ke(n, "error", i);
10505
+ }, s = Ee(n, "error", i);
10506
10506
  if (this._timeout !== !1) {
10507
10507
  const a = this._timeout, l = this.setTimeoutFn(() => {
10508
10508
  o(), i(new Error("timeout")), n.close();
@@ -10531,12 +10531,12 @@ class Mr extends te {
10531
10531
  this.cleanup(), this._readyState = "open", this.emitReserved("open");
10532
10532
  const t = this.engine;
10533
10533
  this.subs.push(
10534
- ke(t, "ping", this.onping.bind(this)),
10535
- ke(t, "data", this.ondata.bind(this)),
10536
- ke(t, "error", this.onerror.bind(this)),
10537
- ke(t, "close", this.onclose.bind(this)),
10534
+ Ee(t, "ping", this.onping.bind(this)),
10535
+ Ee(t, "data", this.ondata.bind(this)),
10536
+ Ee(t, "error", this.onerror.bind(this)),
10537
+ Ee(t, "close", this.onclose.bind(this)),
10538
10538
  // @ts-ignore
10539
- ke(this.decoder, "decoded", this.ondecoded.bind(this))
10539
+ Ee(this.decoder, "decoded", this.ondecoded.bind(this))
10540
10540
  );
10541
10541
  }
10542
10542
  /**
@@ -10695,14 +10695,14 @@ Object.assign(gn, {
10695
10695
  io: gn,
10696
10696
  connect: gn
10697
10697
  });
10698
- class Te {
10698
+ class Ge {
10699
10699
  static instance;
10700
10700
  constructor() {
10701
10701
  }
10702
10702
  static init(t) {
10703
- if (!Te.instance) {
10703
+ if (!Ge.instance) {
10704
10704
  const n = Vr();
10705
- Te.instance = gn(qa, {
10705
+ Ge.instance = gn(qa, {
10706
10706
  path: "/ws",
10707
10707
  withCredentials: !0,
10708
10708
  extraHeaders: {
@@ -10715,16 +10715,15 @@ class Te {
10715
10715
  query: {
10716
10716
  sessionId: n || ""
10717
10717
  }
10718
- }), Te.instance.on("connect", () => {
10719
- console.info("SmartTalks.ai widget connected!", Te.instance.id);
10720
- }), Te.instance.on("connect_error", (r) => {
10721
- console.error("Socket Connection Error:", r.message);
10718
+ }), Ge.instance.on("connect", () => {
10719
+ console.info("SmartTalks.ai widget connected!", Ge.instance.id);
10722
10720
  });
10723
10721
  }
10724
- return Te.instance;
10722
+ return Ge.instance;
10725
10723
  }
10726
10724
  static on(t, n, r) {
10727
- Te.instance ? Te.instance.on(t, r) : this.init(n).on(t, r);
10725
+ const o = Ge.instance || this.init(n);
10726
+ o.off(t), o.on(t, r);
10728
10727
  }
10729
10728
  }
10730
10729
  const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
@@ -10775,7 +10774,7 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10775
10774
  type: "text",
10776
10775
  origin: "user",
10777
10776
  createdAt: (/* @__PURE__ */ new Date()).toString()
10778
- }), ee("onInput", e), Te.on("message", r(), (i) => {
10777
+ }), ee("onInput", e), Ge.on("message", r(), (i) => {
10779
10778
  (i.contactId !== o.contactId || i.interactionId !== o.interactionId) && Js({
10780
10779
  contactId: i.contactId,
10781
10780
  interactionId: i.interactionId
@@ -10793,9 +10792,9 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10793
10792
  t.contactId,
10794
10793
  t.interactionId
10795
10794
  ).finally(() => {
10796
- Js({}), si(!1), Eh();
10795
+ Js({}), si(!1), kh();
10797
10796
  }), ee("onReset");
10798
- }, Eh = () => {
10797
+ }, kh = () => {
10799
10798
  const { chatWidget: e } = se();
10800
10799
  if (Gs().length === 0 && e()?.balloonMessage) {
10801
10800
  const n = e()?.balloonMessage;
@@ -10814,7 +10813,7 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10814
10813
  typing: bh,
10815
10814
  loading: wh
10816
10815
  });
10817
- var kh = /* @__PURE__ */ I("<span>");
10816
+ var Eh = /* @__PURE__ */ I("<span>");
10818
10817
  const Ch = () => {
10819
10818
  const {
10820
10819
  clearMessages: e
@@ -10849,7 +10848,7 @@ const Ch = () => {
10849
10848
  return [y(pc, {
10850
10849
  size: 14
10851
10850
  }), (() => {
10852
- var r = kh();
10851
+ var r = Eh();
10853
10852
  return A(r, () => pt("restart")), r;
10854
10853
  })()];
10855
10854
  }
@@ -11233,7 +11232,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11233
11232
  }, tg = eg, Rr = fe(), ng = (e) => C(() => {
11234
11233
  if (ye(Rr))
11235
11234
  return y(ui, e);
11236
- const r = Me(), [o, i] = O([r]), s = (l) => {
11235
+ const r = Le(), [o, i] = O([r]), s = (l) => {
11237
11236
  i((c) => [...c, l]);
11238
11237
  }, a = (l) => {
11239
11238
  i((c) => c.filter((d) => d !== l));
@@ -11255,7 +11254,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11255
11254
  dismissOnOutsidePointer: !0,
11256
11255
  dismissOnOutsidePointerStrategy: "pointerup",
11257
11256
  noOutsidePointerEvents: !0
11258
- }, e), [n, r] = j(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = ye(Rr), i = Me();
11257
+ }, e), [n, r] = j(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = ye(Rr), i = Le();
11259
11258
  L(() => {
11260
11259
  n.enabled ? o.onLayerShow(i) : o.onLayerDismiss(i);
11261
11260
  });
@@ -11437,7 +11436,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11437
11436
  state: r,
11438
11437
  setState: o
11439
11438
  };
11440
- }, vg = wg, hi = vg, xg = fe(), Sg = (e) => e ? Bn(`dialog-${e}`) : xg, ta = fe(), Eg = (e) => e ? Bn(`dialog-internal-${e}`) : ta, At = (e) => {
11439
+ }, vg = wg, hi = vg, xg = fe(), Sg = (e) => e ? Bn(`dialog-${e}`) : xg, ta = fe(), kg = (e) => e ? Bn(`dialog-internal-${e}`) : ta, At = (e) => {
11441
11440
  if (!e) {
11442
11441
  const n = ye(ta);
11443
11442
  if (!n)
@@ -11448,7 +11447,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11448
11447
  if (!t)
11449
11448
  throw new Error(`[corvu]: Dialog context with id "${e}" not found. Make sure to wrap Dialog components in <Dialog.Root contextId="${e}">`);
11450
11449
  return t;
11451
- }, kg = "div", Cg = (e) => {
11450
+ }, Eg = "div", Cg = (e) => {
11452
11451
  const [t, n] = j(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = C(() => At(t.contextId)), o = () => lo(
11453
11452
  r().open,
11454
11453
  // eslint-disable-next-line solid/reactivity
@@ -11502,7 +11501,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11502
11501
  typeof c == "function" && c(l);
11503
11502
  },
11504
11503
  get as() {
11505
- return t.as ?? kg;
11504
+ return t.as ?? Eg;
11506
11505
  },
11507
11506
  get role() {
11508
11507
  return r().role();
@@ -11646,15 +11645,15 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11646
11645
  allowPinchZoom: !0,
11647
11646
  trapFocus: !0,
11648
11647
  restoreFocus: !0,
11649
- dialogId: Me()
11648
+ dialogId: Le()
11650
11649
  }, e), [n, r] = Ir({
11651
11650
  value: () => t.open,
11652
11651
  initialValue: t.initialOpen,
11653
11652
  onChange: t.onOpenChange
11654
11653
  }), [o, i, s] = ci({
11655
- value: () => t.labelId ?? Me()
11654
+ value: () => t.labelId ?? Le()
11656
11655
  }), [a, l, c] = ci({
11657
- value: () => t.descriptionId ?? Me()
11656
+ value: () => t.descriptionId ?? Le()
11658
11657
  }), [d, u] = O(null), [f, g] = O(null), [h, p] = O(null), {
11659
11658
  present: m
11660
11659
  } = hi({
@@ -11754,12 +11753,12 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11754
11753
  return a();
11755
11754
  }
11756
11755
  }, v = ea(() => t.children), x = () => {
11757
- const k = v()();
11758
- return Gt(k) ? k(w) : k;
11756
+ const E = v()();
11757
+ return Gt(E) ? E(w) : E;
11759
11758
  };
11760
11759
  return C(() => {
11761
- const k = Sg(t.contextId), E = Eg(t.contextId);
11762
- return y(k.Provider, {
11760
+ const E = Sg(t.contextId), k = kg(t.contextId);
11761
+ return y(E.Provider, {
11763
11762
  value: {
11764
11763
  role: () => t.role,
11765
11764
  open: n,
@@ -11787,7 +11786,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11787
11786
  descriptionId: a
11788
11787
  },
11789
11788
  get children() {
11790
- return y(E.Provider, {
11789
+ return y(k.Provider, {
11791
11790
  get value() {
11792
11791
  return {
11793
11792
  role: () => t.role,
@@ -12068,16 +12067,16 @@ var Vg = (e, t) => {
12068
12067
  L(() => {
12069
12068
  const $ = l()?.contentRef();
12070
12069
  if (!$) return;
12071
- E($);
12072
- const z = new ResizeObserver(k);
12070
+ k($);
12071
+ const z = new ResizeObserver(E);
12073
12072
  z.observe($), K(() => {
12074
12073
  z.disconnect();
12075
12074
  });
12076
12075
  });
12077
- const k = ($) => {
12076
+ const E = ($) => {
12078
12077
  for (const z of $)
12079
- z.target === l()?.contentRef() && E(z.target);
12080
- }, E = ($) => {
12078
+ z.target === l()?.contentRef() && k(z.target);
12079
+ }, k = ($) => {
12081
12080
  const z = H(() => x());
12082
12081
  switch (n.side) {
12083
12082
  case "top":
@@ -12287,31 +12286,31 @@ var Vg = (e, t) => {
12287
12286
  l().setIsDragging(!0), l().setTransitionState(null);
12288
12287
  });
12289
12288
  }
12290
- let k;
12289
+ let E;
12291
12290
  switch (l().side()) {
12292
12291
  case "top":
12293
- k = -(o - _);
12292
+ E = -(o - _);
12294
12293
  break;
12295
12294
  case "bottom":
12296
- k = o - _;
12295
+ E = o - _;
12297
12296
  break;
12298
12297
  case "right":
12299
- k = o - x;
12298
+ E = o - x;
12300
12299
  break;
12301
12300
  case "left":
12302
- k = -(o - x);
12301
+ E = -(o - x);
12303
12302
  break;
12304
12303
  }
12305
- k -= l().resolvedActiveSnapPoint().offset, k > 0 && (k = l().dampFunction(k));
12306
- const E = /* @__PURE__ */ new Date();
12307
- E.getTime() - s.getTime() > l().velocityCacheReset() && (s = E, a = l().translate()), l().setTranslate(-k);
12304
+ E -= l().resolvedActiveSnapPoint().offset, E > 0 && (E = l().dampFunction(E));
12305
+ const k = /* @__PURE__ */ new Date();
12306
+ k.getTime() - s.getTime() > l().velocityCacheReset() && (s = k, a = l().translate()), l().setTranslate(-E);
12308
12307
  }, w = () => {
12309
12308
  if (r = !1, !l().isDragging()) return;
12310
- const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1), _ = l().translate() * x, k = Yg(d(), l().translate(), _, l().allowSkippingSnapPoints());
12309
+ const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1), _ = l().translate() * x, E = Yg(d(), l().translate(), _, l().allowSkippingSnapPoints());
12311
12310
  Oe(() => {
12312
12311
  l().setTransitionState("snapping"), l().setIsDragging(!1);
12313
12312
  }), Oe(() => {
12314
- l().setActiveSnapPoint(k.value), k.offset === l().drawerSize() ? c().setOpen(!1) : (l().setTranslate(k.offset), parseFloat(l().drawerStyles().transitionDuration) === 0 && l().setTransitionState(null));
12313
+ l().setActiveSnapPoint(E.value), E.offset === l().drawerSize() ? c().setOpen(!1) : (l().setTranslate(E.offset), parseFloat(l().drawerStyles().transitionDuration) === 0 && l().setTransitionState(null));
12315
12314
  });
12316
12315
  };
12317
12316
  return y(Og, T({
@@ -12550,7 +12549,7 @@ const xp = (e) => (() => {
12550
12549
  }), t;
12551
12550
  })();
12552
12551
  var Sp = /* @__PURE__ */ I('<div class="flex flex-col space-y-2"><video controls preload=auto class="size-full rounded-md"><source type=video/mp4><source type=video/ogg>Your browser does not support the video element.');
12553
- const Ep = (e) => (() => {
12552
+ const kp = (e) => (() => {
12554
12553
  var t = Sp(), n = t.firstChild, r = n.firstChild, o = r.nextSibling;
12555
12554
  return A(t, y(Pt, {
12556
12555
  get children() {
@@ -12564,8 +12563,8 @@ const Ep = (e) => (() => {
12564
12563
  t: void 0
12565
12564
  }), t;
12566
12565
  })();
12567
- var kp = /* @__PURE__ */ I("<div>Media type not supported");
12568
- const sa = (e) => e.type === "image" ? y(xp, e) : e.type === "audio" ? y(yp, e) : e.type === "document" ? y(wp, e) : e.type === "video" ? y(Ep, e) : kp(), Fr = ({
12566
+ var Ep = /* @__PURE__ */ I("<div>Media type not supported");
12567
+ const sa = (e) => e.type === "image" ? y(xp, e) : e.type === "audio" ? y(yp, e) : e.type === "document" ? y(wp, e) : e.type === "video" ? y(kp, e) : Ep(), Fr = ({
12569
12568
  text: e
12570
12569
  }) => y(Pt, {
12571
12570
  get children() {