@viasat/beam-web-components 2.42.0 → 2.43.0

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.
@@ -1,25 +1,25 @@
1
1
  import { r as xt, i as he, x as Xt, a as qt } from "../chunks/lit-element.CJtt9wj5.js";
2
2
  import { n as v, c as Gt } from "../chunks/register-custom-element.vod7zfGv.js";
3
- import { e as zt, n as Dt } from "../chunks/ref.B7e1Hu4F.js";
4
- import { e as ge, f as Tt, h as be, g as Zt, c as vt } from "../chunks/classNames.CARKFDmR.js";
3
+ import { e as zt, n as kt } from "../chunks/ref.B7e1Hu4F.js";
4
+ import { e as ge, f as Dt, h as be, g as Zt, c as vt } from "../chunks/classNames.CARKFDmR.js";
5
5
  import { p as ve, t as ye } from "../chunks/constants.ZIKMMCJH.js";
6
6
  import { e as we, f as xe } from "../chunks/tokens.CTW8Tt94.js";
7
- import { c as Ce, d as kt, m as $t, r as Oe, h as Ae, e as Jt, f as Bt } from "../chunks/helpers.y-1K1Ev-.js";
8
- import { r as Ee } from "../chunks/state.CqiuSzAl.js";
9
- const Qt = `:root,:host,.bm-light,.bm-dark .bm-inverse,.bm-dark.bm-inverse,[data-bm-theme~=bm-dark] .bm-inverse,[data-bm-theme~=bm-dark].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-light]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #202e39);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #ffffff );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #576775 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,.bm-light.bm-inverse,[data-bm-theme~=bm-light] .bm-inverse,[data-bm-theme~=bm-light].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-dark]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #ffffff);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #141d24 );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #c3cdd5 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}.bm-tooltip__icon-trigger{border:none;background:none;padding:0;margin:0;display:flex;cursor:pointer;color:var(--bm-comp-tooltip-color-icon-trigger)}.bm-tooltip{z-index:999;background-color:var(--bm-comp-tooltip-color-bg);border-radius:var(--bm-comp-tooltip-radius);max-width:var(--bm-comp-tooltip-size-width);padding:var(--bm-comp-tooltip-space-y) var(--bm-comp-tooltip-space-x);color:var(--bm-comp-tooltip-color-text);font:var(--bm-comp-tooltip-typo-body);offset:var(--bm-comp-tooltip-space-offset);transition-property:opacity}.bm-tooltip[data-status=open]{transition-duration:0s}.bm-tooltip[data-status=close]{transition-duration:.2s}.bm-tooltip[data-status=initial],.bm-tooltip[data-status=close]{opacity:0}.bm-tooltip__arrow{offset:var(--bm-comp-tooltip-space-arrow);-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');mask-size:cover;mask-position:center;mask-repeat:no-repeat;scale:1.05;width:var(--bm-comp-tooltip-size-arrow-width);height:var(--bm-comp-tooltip-size-arrow-height);background-color:var(--bm-comp-tooltip-color-bg)}.bm-tooltip__icon-trigger svg{background:none;border:none}.bm-tooltip__icon-trigger:focus-visible{border-radius:var(--bm-sem-radius-round);outline-offset:0px;outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-tooltip__icon-trigger--disabled{opacity:var(--bm-sem-opacity-disabled);cursor:inherit}.bm-tooltip__icon-trigger--xs{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--xs svg{height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--sm{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--sm svg{height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--md{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--md svg{height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--lg{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--lg svg{height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--xl{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}.bm-tooltip__icon-trigger--xl svg{height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}`, te = ["top", "right", "bottom", "left"], Ht = ["start", "end"], Ft = /* @__PURE__ */ te.reduce((e, t) => e.concat(t, t + "-" + Ht[0], t + "-" + Ht[1]), []), q = Math.min, S = Math.max, ft = Math.round, ct = Math.floor, W = (e) => ({
7
+ import { c as Ce, d as Tt, m as $t, r as Oe, h as Ae, e as Jt, f as Bt } from "../chunks/helpers.y-1K1Ev-.js";
8
+ import { r as _e } from "../chunks/state.CqiuSzAl.js";
9
+ const Qt = `:root,:host,.bm-light,.bm-dark .bm-inverse,.bm-dark.bm-inverse,[data-bm-theme~=bm-dark] .bm-inverse,[data-bm-theme~=bm-dark].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-light]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #202e39);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #ffffff );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #576775 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,.bm-light.bm-inverse,[data-bm-theme~=bm-light] .bm-inverse,[data-bm-theme~=bm-light].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-dark]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #ffffff);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #141d24 );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #c3cdd5 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}.bm-tooltip__icon-trigger{border:none;background:none;padding:0;margin:0;display:flex;cursor:pointer;color:var(--bm-comp-tooltip-color-icon-trigger)}.bm-tooltip{z-index:999;background-color:var(--bm-comp-tooltip-color-bg);border-radius:var(--bm-comp-tooltip-radius);max-width:var(--bm-comp-tooltip-size-width);padding:var(--bm-comp-tooltip-space-y) var(--bm-comp-tooltip-space-x);color:var(--bm-comp-tooltip-color-text);font:var(--bm-comp-tooltip-typo-body);offset:var(--bm-comp-tooltip-space-offset);transition-property:opacity}.bm-tooltip[data-status=open]{transition-duration:0s}.bm-tooltip[data-status=close]{transition-duration:.2s}.bm-tooltip[data-status=initial],.bm-tooltip[data-status=close]{opacity:0}.bm-tooltip__arrow{offset:var(--bm-comp-tooltip-space-arrow);-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');mask-size:cover;mask-position:center;mask-repeat:no-repeat;scale:1.05;width:var(--bm-comp-tooltip-size-arrow-width);height:var(--bm-comp-tooltip-size-arrow-height);background-color:var(--bm-comp-tooltip-color-bg)}.bm-tooltip__icon-trigger svg{background:none;border:none}.bm-tooltip__icon-trigger:focus-visible{border-radius:var(--bm-sem-radius-round);outline-offset:0px;outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-tooltip__icon-trigger--disabled{opacity:var(--bm-sem-opacity-disabled);cursor:inherit}.bm-tooltip__icon-trigger--xs{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--xs svg{height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--sm{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--sm svg{height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--md{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--md svg{height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--lg{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--lg svg{height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--xl{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}.bm-tooltip__icon-trigger--xl svg{height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}`, te = ["top", "right", "bottom", "left"], Ht = ["start", "end"], Ft = /* @__PURE__ */ te.reduce((e, t) => e.concat(t, t + "-" + Ht[0], t + "-" + Ht[1]), []), q = Math.min, S = Math.max, ft = Math.round, at = Math.floor, W = (e) => ({
10
10
  x: e,
11
11
  y: e
12
- }), Pe = {
12
+ }), Ee = {
13
13
  left: "right",
14
14
  right: "left",
15
15
  bottom: "top",
16
16
  top: "bottom"
17
- }, _e = {
17
+ }, Pe = {
18
18
  start: "end",
19
19
  end: "start"
20
20
  };
21
- function yt(e, t, i) {
22
- return S(e, q(t, i));
21
+ function yt(e, t, n) {
22
+ return S(e, q(t, n));
23
23
  }
24
24
  function Z(e, t) {
25
25
  return typeof e == "function" ? e(t) : e;
@@ -42,10 +42,10 @@ function Q(e) {
42
42
  function At(e) {
43
43
  return Ct(Q(e));
44
44
  }
45
- function ee(e, t, i) {
46
- i === void 0 && (i = !1);
47
- const n = H(e), o = At(e), r = Ot(o);
48
- let s = o === "x" ? n === (i ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
45
+ function ee(e, t, n) {
46
+ n === void 0 && (n = !1);
47
+ const i = H(e), o = At(e), r = Ot(o);
48
+ let s = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
49
49
  return t.reference[r] > t.floating[r] && (s = st(s)), [s, st(s)];
50
50
  }
51
51
  function Re(e) {
@@ -53,14 +53,14 @@ function Re(e) {
53
53
  return [pt(e), t, pt(t)];
54
54
  }
55
55
  function pt(e) {
56
- return e.replace(/start|end/g, (t) => _e[t]);
56
+ return e.replace(/start|end/g, (t) => Pe[t]);
57
57
  }
58
- function Le(e, t, i) {
59
- const n = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
58
+ function Le(e, t, n) {
59
+ const i = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
60
60
  switch (e) {
61
61
  case "top":
62
62
  case "bottom":
63
- return i ? t ? o : n : t ? n : o;
63
+ return n ? t ? o : i : t ? i : o;
64
64
  case "left":
65
65
  case "right":
66
66
  return t ? r : s;
@@ -68,13 +68,13 @@ function Le(e, t, i) {
68
68
  return [];
69
69
  }
70
70
  }
71
- function Se(e, t, i, n) {
71
+ function Se(e, t, n, i) {
72
72
  const o = H(e);
73
- let r = Le($(e), i === "start", n);
73
+ let r = Le($(e), n === "start", i);
74
74
  return o && (r = r.map((s) => s + "-" + o), t && (r = r.concat(r.map(pt)))), r;
75
75
  }
76
76
  function st(e) {
77
- return e.replace(/left|right|bottom|top/g, (t) => Pe[t]);
77
+ return e.replace(/left|right|bottom|top/g, (t) => Ee[t]);
78
78
  }
79
79
  function ze(e) {
80
80
  return {
@@ -96,84 +96,84 @@ function oe(e) {
96
96
  function mt(e) {
97
97
  const {
98
98
  x: t,
99
- y: i,
100
- width: n,
99
+ y: n,
100
+ width: i,
101
101
  height: o
102
102
  } = e;
103
103
  return {
104
- width: n,
104
+ width: i,
105
105
  height: o,
106
- top: i,
106
+ top: n,
107
107
  left: t,
108
- right: t + n,
109
- bottom: i + o,
108
+ right: t + i,
109
+ bottom: n + o,
110
110
  x: t,
111
- y: i
111
+ y: n
112
112
  };
113
113
  }
114
- function Mt(e, t, i) {
114
+ function Mt(e, t, n) {
115
115
  let {
116
- reference: n,
116
+ reference: i,
117
117
  floating: o
118
118
  } = e;
119
- const r = Q(t), s = At(t), l = Ot(s), c = $(t), a = r === "y", f = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, d = n[l] / 2 - o[l] / 2;
119
+ const r = Q(t), s = At(t), l = Ot(s), a = $(t), c = r === "y", f = i.x + i.width / 2 - o.width / 2, p = i.y + i.height / 2 - o.height / 2, d = i[l] / 2 - o[l] / 2;
120
120
  let m;
121
- switch (c) {
121
+ switch (a) {
122
122
  case "top":
123
123
  m = {
124
124
  x: f,
125
- y: n.y - o.height
125
+ y: i.y - o.height
126
126
  };
127
127
  break;
128
128
  case "bottom":
129
129
  m = {
130
130
  x: f,
131
- y: n.y + n.height
131
+ y: i.y + i.height
132
132
  };
133
133
  break;
134
134
  case "right":
135
135
  m = {
136
- x: n.x + n.width,
136
+ x: i.x + i.width,
137
137
  y: p
138
138
  };
139
139
  break;
140
140
  case "left":
141
141
  m = {
142
- x: n.x - o.width,
142
+ x: i.x - o.width,
143
143
  y: p
144
144
  };
145
145
  break;
146
146
  default:
147
147
  m = {
148
- x: n.x,
149
- y: n.y
148
+ x: i.x,
149
+ y: i.y
150
150
  };
151
151
  }
152
152
  switch (H(t)) {
153
153
  case "start":
154
- m[s] -= d * (i && a ? -1 : 1);
154
+ m[s] -= d * (n && c ? -1 : 1);
155
155
  break;
156
156
  case "end":
157
- m[s] += d * (i && a ? -1 : 1);
157
+ m[s] += d * (n && c ? -1 : 1);
158
158
  break;
159
159
  }
160
160
  return m;
161
161
  }
162
- const De = async (e, t, i) => {
162
+ const ke = async (e, t, n) => {
163
163
  const {
164
- placement: n = "bottom",
164
+ placement: i = "bottom",
165
165
  strategy: o = "absolute",
166
166
  middleware: r = [],
167
167
  platform: s
168
- } = i, l = r.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
169
- let a = await s.getElementRects({
168
+ } = n, l = r.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
169
+ let c = await s.getElementRects({
170
170
  reference: e,
171
171
  floating: t,
172
172
  strategy: o
173
173
  }), {
174
174
  x: f,
175
175
  y: p
176
- } = Mt(a, n, c), d = n, m = {}, b = 0;
176
+ } = Mt(c, i, a), d = i, m = {}, b = 0;
177
177
  for (let g = 0; g < l.length; g++) {
178
178
  const {
179
179
  name: h,
@@ -186,11 +186,11 @@ const De = async (e, t, i) => {
186
186
  } = await u({
187
187
  x: f,
188
188
  y: p,
189
- initialPlacement: n,
189
+ initialPlacement: i,
190
190
  placement: d,
191
191
  strategy: o,
192
192
  middlewareData: m,
193
- rects: a,
193
+ rects: c,
194
194
  platform: s,
195
195
  elements: {
196
196
  reference: e,
@@ -203,14 +203,14 @@ const De = async (e, t, i) => {
203
203
  ...m[h],
204
204
  ...O
205
205
  }
206
- }, x && b <= 50 && (b++, typeof x == "object" && (x.placement && (d = x.placement), x.rects && (a = x.rects === !0 ? await s.getElementRects({
206
+ }, x && b <= 50 && (b++, typeof x == "object" && (x.placement && (d = x.placement), x.rects && (c = x.rects === !0 ? await s.getElementRects({
207
207
  reference: e,
208
208
  floating: t,
209
209
  strategy: o
210
210
  }) : x.rects), {
211
211
  x: f,
212
212
  y: p
213
- } = Mt(a, d, c)), g = -1);
213
+ } = Mt(c, d, a)), g = -1);
214
214
  }
215
215
  return {
216
216
  x: f,
@@ -221,28 +221,28 @@ const De = async (e, t, i) => {
221
221
  };
222
222
  };
223
223
  async function ot(e, t) {
224
- var i;
224
+ var n;
225
225
  t === void 0 && (t = {});
226
226
  const {
227
- x: n,
227
+ x: i,
228
228
  y: o,
229
229
  platform: r,
230
230
  rects: s,
231
231
  elements: l,
232
- strategy: c
232
+ strategy: a
233
233
  } = e, {
234
- boundary: a = "clippingAncestors",
234
+ boundary: c = "clippingAncestors",
235
235
  rootBoundary: f = "viewport",
236
236
  elementContext: p = "floating",
237
237
  altBoundary: d = !1,
238
238
  padding: m = 0
239
239
  } = Z(t, e), b = oe(m), h = l[d ? p === "floating" ? "reference" : "floating" : p], u = mt(await r.getClippingRect({
240
- element: (i = await (r.isElement == null ? void 0 : r.isElement(h))) == null || i ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
241
- boundary: a,
240
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(h))) == null || n ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
241
+ boundary: c,
242
242
  rootBoundary: f,
243
- strategy: c
243
+ strategy: a
244
244
  })), y = p === "floating" ? {
245
- x: n,
245
+ x: i,
246
246
  y: o,
247
247
  width: s.floating.width,
248
248
  height: s.floating.height
@@ -256,7 +256,7 @@ async function ot(e, t) {
256
256
  elements: l,
257
257
  rect: y,
258
258
  offsetParent: w,
259
- strategy: c
259
+ strategy: a
260
260
  }) : y);
261
261
  return {
262
262
  top: (u.top - x.top + b.top) / O.y,
@@ -265,73 +265,73 @@ async function ot(e, t) {
265
265
  right: (x.right - u.right + b.right) / O.x
266
266
  };
267
267
  }
268
- function Te(e, t, i) {
269
- return (e ? [...i.filter((o) => H(o) === e), ...i.filter((o) => H(o) !== e)] : i.filter((o) => $(o) === o)).filter((o) => e ? H(o) === e || (t ? pt(o) !== o : !1) : !0);
268
+ function De(e, t, n) {
269
+ return (e ? [...n.filter((o) => H(o) === e), ...n.filter((o) => H(o) !== e)] : n.filter((o) => $(o) === o)).filter((o) => e ? H(o) === e || (t ? pt(o) !== o : !1) : !0);
270
270
  }
271
- const ke = function(e) {
271
+ const Te = function(e) {
272
272
  return e === void 0 && (e = {}), {
273
273
  name: "autoPlacement",
274
274
  options: e,
275
275
  async fn(t) {
276
- var i, n, o;
276
+ var n, i, o;
277
277
  const {
278
278
  rects: r,
279
279
  middlewareData: s,
280
280
  placement: l,
281
- platform: c,
282
- elements: a
281
+ platform: a,
282
+ elements: c
283
283
  } = t, {
284
284
  crossAxis: f = !1,
285
285
  alignment: p,
286
286
  allowedPlacements: d = Ft,
287
287
  autoAlignment: m = !0,
288
288
  ...b
289
- } = Z(e, t), g = p !== void 0 || d === Ft ? Te(p || null, m, d) : d, h = await ot(t, b), u = ((i = s.autoPlacement) == null ? void 0 : i.index) || 0, y = g[u];
289
+ } = Z(e, t), g = p !== void 0 || d === Ft ? De(p || null, m, d) : d, h = await ot(t, b), u = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, y = g[u];
290
290
  if (y == null)
291
291
  return {};
292
- const w = ee(y, r, await (c.isRTL == null ? void 0 : c.isRTL(a.floating)));
292
+ const w = ee(y, r, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
293
293
  if (l !== y)
294
294
  return {
295
295
  reset: {
296
296
  placement: g[0]
297
297
  }
298
298
  };
299
- const O = [h[$(y)], h[w[0]], h[w[1]]], x = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
299
+ const O = [h[$(y)], h[w[0]], h[w[1]]], x = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
300
300
  placement: y,
301
301
  overflows: O
302
- }], D = g[u + 1];
303
- if (D)
302
+ }], k = g[u + 1];
303
+ if (k)
304
304
  return {
305
305
  data: {
306
306
  index: u + 1,
307
307
  overflows: x
308
308
  },
309
309
  reset: {
310
- placement: D
310
+ placement: k
311
311
  }
312
312
  };
313
- const P = x.map((C) => {
313
+ const E = x.map((C) => {
314
314
  const L = H(C.placement);
315
315
  return [C.placement, L && f ? (
316
316
  // Check along the mainAxis and main crossAxis side.
317
- C.overflows.slice(0, 2).reduce((j, k) => j + k, 0)
317
+ C.overflows.slice(0, 2).reduce((j, T) => j + T, 0)
318
318
  ) : (
319
319
  // Check only the mainAxis.
320
320
  C.overflows[0]
321
321
  ), C.overflows];
322
- }).sort((C, L) => C[1] - L[1]), T = ((o = P.filter((C) => C[2].slice(
322
+ }).sort((C, L) => C[1] - L[1]), D = ((o = E.filter((C) => C[2].slice(
323
323
  0,
324
324
  // Aligned placements should not check their opposite crossAxis
325
325
  // side.
326
326
  H(C[0]) ? 2 : 3
327
- ).every((L) => L <= 0))[0]) == null ? void 0 : o[0]) || P[0][0];
328
- return T !== l ? {
327
+ ).every((L) => L <= 0))[0]) == null ? void 0 : o[0]) || E[0][0];
328
+ return D !== l ? {
329
329
  data: {
330
330
  index: u + 1,
331
331
  overflows: x
332
332
  },
333
333
  reset: {
334
- placement: T
334
+ placement: D
335
335
  }
336
336
  } : {};
337
337
  }
@@ -341,14 +341,14 @@ const ke = function(e) {
341
341
  name: "flip",
342
342
  options: e,
343
343
  async fn(t) {
344
- var i, n;
344
+ var n, i;
345
345
  const {
346
346
  placement: o,
347
347
  middlewareData: r,
348
348
  rects: s,
349
349
  initialPlacement: l,
350
- platform: c,
351
- elements: a
350
+ platform: a,
351
+ elements: c
352
352
  } = t, {
353
353
  mainAxis: f = !0,
354
354
  crossAxis: p = !0,
@@ -358,22 +358,22 @@ const ke = function(e) {
358
358
  flipAlignment: g = !0,
359
359
  ...h
360
360
  } = Z(e, t);
361
- if ((i = r.arrow) != null && i.alignmentOffset)
361
+ if ((n = r.arrow) != null && n.alignmentOffset)
362
362
  return {};
363
- const u = $(o), y = Q(l), w = $(l) === l, O = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), x = d || (w || !g ? [st(l)] : Re(l)), D = b !== "none";
364
- !d && D && x.push(...Se(l, g, b, O));
365
- const P = [l, ...x], R = await ot(t, h), T = [];
366
- let C = ((n = r.flip) == null ? void 0 : n.overflows) || [];
367
- if (f && T.push(R[u]), p) {
363
+ const u = $(o), y = Q(l), w = $(l) === l, O = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (w || !g ? [st(l)] : Re(l)), k = b !== "none";
364
+ !d && k && x.push(...Se(l, g, b, O));
365
+ const E = [l, ...x], R = await ot(t, h), D = [];
366
+ let C = ((i = r.flip) == null ? void 0 : i.overflows) || [];
367
+ if (f && D.push(R[u]), p) {
368
368
  const I = ee(o, s, O);
369
- T.push(R[I[0]], R[I[1]]);
369
+ D.push(R[I[0]], R[I[1]]);
370
370
  }
371
371
  if (C = [...C, {
372
372
  placement: o,
373
- overflows: T
374
- }], !T.every((I) => I <= 0)) {
373
+ overflows: D
374
+ }], !D.every((I) => I <= 0)) {
375
375
  var L, j;
376
- const I = (((L = r.flip) == null ? void 0 : L.index) || 0) + 1, Y = P[I];
376
+ const I = (((L = r.flip) == null ? void 0 : L.index) || 0) + 1, Y = E[I];
377
377
  if (Y)
378
378
  return {
379
379
  data: {
@@ -388,16 +388,16 @@ const ke = function(e) {
388
388
  if (!X)
389
389
  switch (m) {
390
390
  case "bestFit": {
391
- var k;
392
- const K = (k = C.filter((N) => {
393
- if (D) {
391
+ var T;
392
+ const K = (T = C.filter((N) => {
393
+ if (k) {
394
394
  const B = Q(N.placement);
395
395
  return B === y || // Create a bias to the `y` side axis due to horizontal
396
396
  // reading directions favoring greater width.
397
397
  B === "y";
398
398
  }
399
399
  return !0;
400
- }).map((N) => [N.placement, N.overflows.filter((B) => B > 0).reduce((B, gt) => B + gt, 0)]).sort((N, B) => N[1] - B[1])[0]) == null ? void 0 : k[0];
400
+ }).map((N) => [N.placement, N.overflows.filter((B) => B > 0).reduce((B, gt) => B + gt, 0)]).sort((N, B) => N[1] - B[1])[0]) == null ? void 0 : T[0];
401
401
  K && (X = K);
402
402
  break;
403
403
  }
@@ -433,17 +433,17 @@ const Be = function(e) {
433
433
  options: e,
434
434
  async fn(t) {
435
435
  const {
436
- rects: i
436
+ rects: n
437
437
  } = t, {
438
- strategy: n = "referenceHidden",
438
+ strategy: i = "referenceHidden",
439
439
  ...o
440
440
  } = Z(e, t);
441
- switch (n) {
441
+ switch (i) {
442
442
  case "referenceHidden": {
443
443
  const r = await ot(t, {
444
444
  ...o,
445
445
  elementContext: "reference"
446
- }), s = jt(r, i.reference);
446
+ }), s = jt(r, n.reference);
447
447
  return {
448
448
  data: {
449
449
  referenceHiddenOffsets: s,
@@ -455,7 +455,7 @@ const Be = function(e) {
455
455
  const r = await ot(t, {
456
456
  ...o,
457
457
  altBoundary: !0
458
- }), s = jt(r, i.floating);
458
+ }), s = jt(r, n.floating);
459
459
  return {
460
460
  data: {
461
461
  escapedOffsets: s,
@@ -471,10 +471,10 @@ const Be = function(e) {
471
471
  };
472
472
  async function He(e, t) {
473
473
  const {
474
- placement: i,
475
- platform: n,
474
+ placement: n,
475
+ platform: i,
476
476
  elements: o
477
- } = e, r = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = $(i), l = H(i), c = Q(i) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, p = Z(t, e);
477
+ } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = $(n), l = H(n), a = Q(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, f = r && a ? -1 : 1, p = Z(t, e);
478
478
  let {
479
479
  mainAxis: d,
480
480
  crossAxis: m,
@@ -488,11 +488,11 @@ async function He(e, t) {
488
488
  crossAxis: p.crossAxis || 0,
489
489
  alignmentAxis: p.alignmentAxis
490
490
  };
491
- return l && typeof b == "number" && (m = l === "end" ? b * -1 : b), c ? {
491
+ return l && typeof b == "number" && (m = l === "end" ? b * -1 : b), a ? {
492
492
  x: m * f,
493
- y: d * a
493
+ y: d * c
494
494
  } : {
495
- x: d * a,
495
+ x: d * c,
496
496
  y: m * f
497
497
  };
498
498
  }
@@ -501,18 +501,18 @@ const Fe = function(e) {
501
501
  name: "offset",
502
502
  options: e,
503
503
  async fn(t) {
504
- var i, n;
504
+ var n, i;
505
505
  const {
506
506
  x: o,
507
507
  y: r,
508
508
  placement: s,
509
509
  middlewareData: l
510
- } = t, c = await He(t, e);
511
- return s === ((i = l.offset) == null ? void 0 : i.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
512
- x: o + c.x,
513
- y: r + c.y,
510
+ } = t, a = await He(t, e);
511
+ return s === ((n = l.offset) == null ? void 0 : n.placement) && (i = l.arrow) != null && i.alignmentOffset ? {} : {
512
+ x: o + a.x,
513
+ y: r + a.y,
514
514
  data: {
515
- ...c,
515
+ ...a,
516
516
  placement: s
517
517
  }
518
518
  };
@@ -524,8 +524,8 @@ const Fe = function(e) {
524
524
  options: e,
525
525
  async fn(t) {
526
526
  const {
527
- x: i,
528
- y: n,
527
+ x: n,
528
+ y: i,
529
529
  placement: o
530
530
  } = t, {
531
531
  mainAxis: r = !0,
@@ -542,12 +542,12 @@ const Fe = function(e) {
542
542
  };
543
543
  }
544
544
  },
545
- ...c
546
- } = Z(e, t), a = {
547
- x: i,
548
- y: n
549
- }, f = await ot(t, c), p = Q($(o)), d = Ct(p);
550
- let m = a[d], b = a[p];
545
+ ...a
546
+ } = Z(e, t), c = {
547
+ x: n,
548
+ y: i
549
+ }, f = await ot(t, a), p = Q($(o)), d = Ct(p);
550
+ let m = c[d], b = c[p];
551
551
  if (r) {
552
552
  const h = d === "y" ? "top" : "left", u = d === "y" ? "bottom" : "right", y = m + f[h], w = m - f[u];
553
553
  m = yt(y, m, w);
@@ -564,8 +564,8 @@ const Fe = function(e) {
564
564
  return {
565
565
  ...g,
566
566
  data: {
567
- x: g.x - i,
568
- y: g.y - n,
567
+ x: g.x - n,
568
+ y: g.y - i,
569
569
  enabled: {
570
570
  [d]: r,
571
571
  [p]: s
@@ -579,35 +579,35 @@ const Fe = function(e) {
579
579
  name: "size",
580
580
  options: e,
581
581
  async fn(t) {
582
- var i, n;
582
+ var n, i;
583
583
  const {
584
584
  placement: o,
585
585
  rects: r,
586
586
  platform: s,
587
587
  elements: l
588
588
  } = t, {
589
- apply: c = () => {
589
+ apply: a = () => {
590
590
  },
591
- ...a
592
- } = Z(e, t), f = await ot(t, a), p = $(o), d = H(o), m = Q(o) === "y", {
591
+ ...c
592
+ } = Z(e, t), f = await ot(t, c), p = $(o), d = H(o), m = Q(o) === "y", {
593
593
  width: b,
594
594
  height: g
595
595
  } = r.floating;
596
596
  let h, u;
597
597
  p === "top" || p === "bottom" ? (h = p, u = d === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (u = p, h = d === "end" ? "top" : "bottom");
598
- const y = g - f.top - f.bottom, w = b - f.left - f.right, O = q(g - f[h], y), x = q(b - f[u], w), D = !t.middlewareData.shift;
599
- let P = O, R = x;
600
- if ((i = t.middlewareData.shift) != null && i.enabled.x && (R = w), (n = t.middlewareData.shift) != null && n.enabled.y && (P = y), D && !d) {
601
- const C = S(f.left, 0), L = S(f.right, 0), j = S(f.top, 0), k = S(f.bottom, 0);
602
- m ? R = b - 2 * (C !== 0 || L !== 0 ? C + L : S(f.left, f.right)) : P = g - 2 * (j !== 0 || k !== 0 ? j + k : S(f.top, f.bottom));
598
+ const y = g - f.top - f.bottom, w = b - f.left - f.right, O = q(g - f[h], y), x = q(b - f[u], w), k = !t.middlewareData.shift;
599
+ let E = O, R = x;
600
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (i = t.middlewareData.shift) != null && i.enabled.y && (E = y), k && !d) {
601
+ const C = S(f.left, 0), L = S(f.right, 0), j = S(f.top, 0), T = S(f.bottom, 0);
602
+ m ? R = b - 2 * (C !== 0 || L !== 0 ? C + L : S(f.left, f.right)) : E = g - 2 * (j !== 0 || T !== 0 ? j + T : S(f.top, f.bottom));
603
603
  }
604
- await c({
604
+ await a({
605
605
  ...t,
606
606
  availableWidth: R,
607
- availableHeight: P
607
+ availableHeight: E
608
608
  });
609
- const T = await s.getDimensions(l.floating);
610
- return b !== T.width || g !== T.height ? {
609
+ const D = await s.getDimensions(l.floating);
610
+ return b !== D.width || g !== D.height ? {
611
611
  reset: {
612
612
  rects: !0
613
613
  }
@@ -618,8 +618,8 @@ const Fe = function(e) {
618
618
  function dt() {
619
619
  return typeof window < "u";
620
620
  }
621
- function nt(e) {
622
- return ie(e) ? (e.nodeName || "").toLowerCase() : "#document";
621
+ function it(e) {
622
+ return ne(e) ? (e.nodeName || "").toLowerCase() : "#document";
623
623
  }
624
624
  function z(e) {
625
625
  var t;
@@ -627,9 +627,9 @@ function z(e) {
627
627
  }
628
628
  function U(e) {
629
629
  var t;
630
- return (t = (ie(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
630
+ return (t = (ne(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
631
631
  }
632
- function ie(e) {
632
+ function ne(e) {
633
633
  return dt() ? e instanceof Node || e instanceof z(e).Node : !1;
634
634
  }
635
635
  function F(e) {
@@ -644,14 +644,14 @@ function Nt(e) {
644
644
  function lt(e) {
645
645
  const {
646
646
  overflow: t,
647
- overflowX: i,
648
- overflowY: n,
647
+ overflowX: n,
648
+ overflowY: i,
649
649
  display: o
650
650
  } = M(e);
651
- return /auto|scroll|overlay|hidden|clip/.test(t + n + i) && !["inline", "contents"].includes(o);
651
+ return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !["inline", "contents"].includes(o);
652
652
  }
653
653
  function Ie(e) {
654
- return ["table", "td", "th"].includes(nt(e));
654
+ return ["table", "td", "th"].includes(it(e));
655
655
  }
656
656
  function ut(e) {
657
657
  return [":popover-open", ":modal"].some((t) => {
@@ -662,14 +662,14 @@ function ut(e) {
662
662
  }
663
663
  });
664
664
  }
665
- function Et(e) {
666
- const t = Pt(), i = F(e) ? M(e) : e;
667
- return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => i[n] ? i[n] !== "none" : !1) || (i.containerType ? i.containerType !== "normal" : !1) || !t && (i.backdropFilter ? i.backdropFilter !== "none" : !1) || !t && (i.filter ? i.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (i.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (i.contain || "").includes(n));
665
+ function _t(e) {
666
+ const t = Et(), n = F(e) ? M(e) : e;
667
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((i) => n[i] ? n[i] !== "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((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
668
668
  }
669
669
  function Ne(e) {
670
670
  let t = G(e);
671
- for (; V(t) && !it(t); ) {
672
- if (Et(t))
671
+ for (; V(t) && !nt(t); ) {
672
+ if (_t(t))
673
673
  return t;
674
674
  if (ut(t))
675
675
  return null;
@@ -677,11 +677,11 @@ function Ne(e) {
677
677
  }
678
678
  return null;
679
679
  }
680
- function Pt() {
680
+ function Et() {
681
681
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
682
682
  }
683
- function it(e) {
684
- return ["html", "body", "#document"].includes(nt(e));
683
+ function nt(e) {
684
+ return ["html", "body", "#document"].includes(it(e));
685
685
  }
686
686
  function M(e) {
687
687
  return z(e).getComputedStyle(e);
@@ -696,7 +696,7 @@ function ht(e) {
696
696
  };
697
697
  }
698
698
  function G(e) {
699
- if (nt(e) === "html")
699
+ if (it(e) === "html")
700
700
  return e;
701
701
  const t = (
702
702
  // Step into the shadow DOM of the parent of a slotted node.
@@ -707,46 +707,46 @@ function G(e) {
707
707
  );
708
708
  return Nt(t) ? t.host : t;
709
709
  }
710
- function ne(e) {
710
+ function ie(e) {
711
711
  const t = G(e);
712
- return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && lt(t) ? t : ne(t);
712
+ return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && lt(t) ? t : ie(t);
713
713
  }
714
- function rt(e, t, i) {
715
- var n;
716
- t === void 0 && (t = []), i === void 0 && (i = !0);
717
- const o = ne(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = z(o);
714
+ function rt(e, t, n) {
715
+ var i;
716
+ t === void 0 && (t = []), n === void 0 && (n = !0);
717
+ const o = ie(e), r = o === ((i = e.ownerDocument) == null ? void 0 : i.body), s = z(o);
718
718
  if (r) {
719
719
  const l = wt(s);
720
- return t.concat(s, s.visualViewport || [], lt(o) ? o : [], l && i ? rt(l) : []);
720
+ return t.concat(s, s.visualViewport || [], lt(o) ? o : [], l && n ? rt(l) : []);
721
721
  }
722
- return t.concat(o, rt(o, [], i));
722
+ return t.concat(o, rt(o, [], n));
723
723
  }
724
724
  function wt(e) {
725
725
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
726
726
  }
727
727
  function se(e) {
728
728
  const t = M(e);
729
- let i = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
730
- const o = V(e), r = o ? e.offsetWidth : i, s = o ? e.offsetHeight : n, l = ft(i) !== r || ft(n) !== s;
731
- return l && (i = r, n = s), {
732
- width: i,
733
- height: n,
729
+ let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
730
+ const o = V(e), r = o ? e.offsetWidth : n, s = o ? e.offsetHeight : i, l = ft(n) !== r || ft(i) !== s;
731
+ return l && (n = r, i = s), {
732
+ width: n,
733
+ height: i,
734
734
  $: l
735
735
  };
736
736
  }
737
- function _t(e) {
737
+ function Pt(e) {
738
738
  return F(e) ? e : e.contextElement;
739
739
  }
740
740
  function et(e) {
741
- const t = _t(e);
741
+ const t = Pt(e);
742
742
  if (!V(t))
743
743
  return W(1);
744
- const i = t.getBoundingClientRect(), {
745
- width: n,
744
+ const n = t.getBoundingClientRect(), {
745
+ width: i,
746
746
  height: o,
747
747
  $: r
748
748
  } = se(t);
749
- let s = (r ? ft(i.width) : i.width) / n, l = (r ? ft(i.height) : i.height) / o;
749
+ let s = (r ? ft(n.width) : n.width) / i, l = (r ? ft(n.height) : n.height) / o;
750
750
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
751
751
  x: s,
752
752
  y: l
@@ -755,46 +755,46 @@ function et(e) {
755
755
  const We = /* @__PURE__ */ W(0);
756
756
  function re(e) {
757
757
  const t = z(e);
758
- return !Pt() || !t.visualViewport ? We : {
758
+ return !Et() || !t.visualViewport ? We : {
759
759
  x: t.visualViewport.offsetLeft,
760
760
  y: t.visualViewport.offsetTop
761
761
  };
762
762
  }
763
- function Ve(e, t, i) {
764
- return t === void 0 && (t = !1), !i || t && i !== z(e) ? !1 : t;
763
+ function Ve(e, t, n) {
764
+ return t === void 0 && (t = !1), !n || t && n !== z(e) ? !1 : t;
765
765
  }
766
- function tt(e, t, i, n) {
767
- t === void 0 && (t = !1), i === void 0 && (i = !1);
768
- const o = e.getBoundingClientRect(), r = _t(e);
766
+ function tt(e, t, n, i) {
767
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
768
+ const o = e.getBoundingClientRect(), r = Pt(e);
769
769
  let s = W(1);
770
- t && (n ? F(n) && (s = et(n)) : s = et(e));
771
- const l = Ve(r, i, n) ? re(r) : W(0);
772
- let c = (o.left + l.x) / s.x, a = (o.top + l.y) / s.y, f = o.width / s.x, p = o.height / s.y;
770
+ t && (i ? F(i) && (s = et(i)) : s = et(e));
771
+ const l = Ve(r, n, i) ? re(r) : W(0);
772
+ let a = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, f = o.width / s.x, p = o.height / s.y;
773
773
  if (r) {
774
- const d = z(r), m = n && F(n) ? z(n) : n;
774
+ const d = z(r), m = i && F(i) ? z(i) : i;
775
775
  let b = d, g = wt(b);
776
- for (; g && n && m !== b; ) {
776
+ for (; g && i && m !== b; ) {
777
777
  const h = et(g), u = g.getBoundingClientRect(), y = M(g), w = u.left + (g.clientLeft + parseFloat(y.paddingLeft)) * h.x, O = u.top + (g.clientTop + parseFloat(y.paddingTop)) * h.y;
778
- c *= h.x, a *= h.y, f *= h.x, p *= h.y, c += w, a += O, b = z(g), g = wt(b);
778
+ a *= h.x, c *= h.y, f *= h.x, p *= h.y, a += w, c += O, b = z(g), g = wt(b);
779
779
  }
780
780
  }
781
781
  return mt({
782
782
  width: f,
783
783
  height: p,
784
- x: c,
785
- y: a
784
+ x: a,
785
+ y: c
786
786
  });
787
787
  }
788
788
  function Rt(e, t) {
789
- const i = ht(e).scrollLeft;
790
- return t ? t.left + i : tt(U(e)).left + i;
789
+ const n = ht(e).scrollLeft;
790
+ return t ? t.left + n : tt(U(e)).left + n;
791
791
  }
792
- function le(e, t, i) {
793
- i === void 0 && (i = !1);
794
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - (i ? 0 : (
792
+ function le(e, t, n) {
793
+ n === void 0 && (n = !1);
794
+ const i = e.getBoundingClientRect(), o = i.left + t.scrollLeft - (n ? 0 : (
795
795
  // RTL <body> scrollbar.
796
- Rt(e, n)
797
- )), r = n.top + t.scrollTop;
796
+ Rt(e, i)
797
+ )), r = i.top + t.scrollTop;
798
798
  return {
799
799
  x: o,
800
800
  y: r
@@ -803,38 +803,38 @@ function le(e, t, i) {
803
803
  function Ue(e) {
804
804
  let {
805
805
  elements: t,
806
- rect: i,
807
- offsetParent: n,
806
+ rect: n,
807
+ offsetParent: i,
808
808
  strategy: o
809
809
  } = e;
810
- const r = o === "fixed", s = U(n), l = t ? ut(t.floating) : !1;
811
- if (n === s || l && r)
812
- return i;
813
- let c = {
810
+ const r = o === "fixed", s = U(i), l = t ? ut(t.floating) : !1;
811
+ if (i === s || l && r)
812
+ return n;
813
+ let a = {
814
814
  scrollLeft: 0,
815
815
  scrollTop: 0
816
- }, a = W(1);
817
- const f = W(0), p = V(n);
818
- if ((p || !p && !r) && ((nt(n) !== "body" || lt(s)) && (c = ht(n)), V(n))) {
819
- const m = tt(n);
820
- a = et(n), f.x = m.x + n.clientLeft, f.y = m.y + n.clientTop;
816
+ }, c = W(1);
817
+ const f = W(0), p = V(i);
818
+ if ((p || !p && !r) && ((it(i) !== "body" || lt(s)) && (a = ht(i)), V(i))) {
819
+ const m = tt(i);
820
+ c = et(i), f.x = m.x + i.clientLeft, f.y = m.y + i.clientTop;
821
821
  }
822
- const d = s && !p && !r ? le(s, c, !0) : W(0);
822
+ const d = s && !p && !r ? le(s, a, !0) : W(0);
823
823
  return {
824
- width: i.width * a.x,
825
- height: i.height * a.y,
826
- x: i.x * a.x - c.scrollLeft * a.x + f.x + d.x,
827
- y: i.y * a.y - c.scrollTop * a.y + f.y + d.y
824
+ width: n.width * c.x,
825
+ height: n.height * c.y,
826
+ x: n.x * c.x - a.scrollLeft * c.x + f.x + d.x,
827
+ y: n.y * c.y - a.scrollTop * c.y + f.y + d.y
828
828
  };
829
829
  }
830
830
  function Ye(e) {
831
831
  return Array.from(e.getClientRects());
832
832
  }
833
833
  function Ke(e) {
834
- const t = U(e), i = ht(e), n = e.ownerDocument.body, o = S(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), r = S(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
835
- let s = -i.scrollLeft + Rt(e);
836
- const l = -i.scrollTop;
837
- return M(n).direction === "rtl" && (s += S(t.clientWidth, n.clientWidth) - o), {
834
+ const t = U(e), n = ht(e), i = e.ownerDocument.body, o = S(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = S(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
835
+ let s = -n.scrollLeft + Rt(e);
836
+ const l = -n.scrollTop;
837
+ return M(i).direction === "rtl" && (s += S(t.clientWidth, i.clientWidth) - o), {
838
838
  width: o,
839
839
  height: r,
840
840
  x: s,
@@ -842,106 +842,106 @@ function Ke(e) {
842
842
  };
843
843
  }
844
844
  function Xe(e, t) {
845
- const i = z(e), n = U(e), o = i.visualViewport;
846
- let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
845
+ const n = z(e), i = U(e), o = n.visualViewport;
846
+ let r = i.clientWidth, s = i.clientHeight, l = 0, a = 0;
847
847
  if (o) {
848
848
  r = o.width, s = o.height;
849
- const a = Pt();
850
- (!a || a && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
849
+ const c = Et();
850
+ (!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
851
851
  }
852
852
  return {
853
853
  width: r,
854
854
  height: s,
855
855
  x: l,
856
- y: c
856
+ y: a
857
857
  };
858
858
  }
859
859
  function qe(e, t) {
860
- const i = tt(e, !0, t === "fixed"), n = i.top + e.clientTop, o = i.left + e.clientLeft, r = V(e) ? et(e) : W(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, c = o * r.x, a = n * r.y;
860
+ const n = tt(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, r = V(e) ? et(e) : W(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, a = o * r.x, c = i * r.y;
861
861
  return {
862
862
  width: s,
863
863
  height: l,
864
- x: c,
865
- y: a
864
+ x: a,
865
+ y: c
866
866
  };
867
867
  }
868
- function Wt(e, t, i) {
869
- let n;
868
+ function Wt(e, t, n) {
869
+ let i;
870
870
  if (t === "viewport")
871
- n = Xe(e, i);
871
+ i = Xe(e, n);
872
872
  else if (t === "document")
873
- n = Ke(U(e));
873
+ i = Ke(U(e));
874
874
  else if (F(t))
875
- n = qe(t, i);
875
+ i = qe(t, n);
876
876
  else {
877
877
  const o = re(e);
878
- n = {
878
+ i = {
879
879
  x: t.x - o.x,
880
880
  y: t.y - o.y,
881
881
  width: t.width,
882
882
  height: t.height
883
883
  };
884
884
  }
885
- return mt(n);
885
+ return mt(i);
886
886
  }
887
- function ce(e, t) {
888
- const i = G(e);
889
- return i === t || !F(i) || it(i) ? !1 : M(i).position === "fixed" || ce(i, t);
887
+ function ae(e, t) {
888
+ const n = G(e);
889
+ return n === t || !F(n) || nt(n) ? !1 : M(n).position === "fixed" || ae(n, t);
890
890
  }
891
891
  function Ge(e, t) {
892
- const i = t.get(e);
893
- if (i)
894
- return i;
895
- let n = rt(e, [], !1).filter((l) => F(l) && nt(l) !== "body"), o = null;
892
+ const n = t.get(e);
893
+ if (n)
894
+ return n;
895
+ let i = rt(e, [], !1).filter((l) => F(l) && it(l) !== "body"), o = null;
896
896
  const r = M(e).position === "fixed";
897
897
  let s = r ? G(e) : e;
898
- for (; F(s) && !it(s); ) {
899
- const l = M(s), c = Et(s);
900
- !c && l.position === "fixed" && (o = null), (r ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(s) && !c && ce(e, s)) ? n = n.filter((f) => f !== s) : o = l, s = G(s);
898
+ for (; F(s) && !nt(s); ) {
899
+ const l = M(s), a = _t(s);
900
+ !a && l.position === "fixed" && (o = null), (r ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(s) && !a && ae(e, s)) ? i = i.filter((f) => f !== s) : o = l, s = G(s);
901
901
  }
902
- return t.set(e, n), n;
902
+ return t.set(e, i), i;
903
903
  }
904
904
  function Ze(e) {
905
905
  let {
906
906
  element: t,
907
- boundary: i,
908
- rootBoundary: n,
907
+ boundary: n,
908
+ rootBoundary: i,
909
909
  strategy: o
910
910
  } = e;
911
- const s = [...i === "clippingAncestors" ? ut(t) ? [] : Ge(t, this._c) : [].concat(i), n], l = s[0], c = s.reduce((a, f) => {
911
+ const s = [...n === "clippingAncestors" ? ut(t) ? [] : Ge(t, this._c) : [].concat(n), i], l = s[0], a = s.reduce((c, f) => {
912
912
  const p = Wt(t, f, o);
913
- return a.top = S(p.top, a.top), a.right = q(p.right, a.right), a.bottom = q(p.bottom, a.bottom), a.left = S(p.left, a.left), a;
913
+ return c.top = S(p.top, c.top), c.right = q(p.right, c.right), c.bottom = q(p.bottom, c.bottom), c.left = S(p.left, c.left), c;
914
914
  }, Wt(t, l, o));
915
915
  return {
916
- width: c.right - c.left,
917
- height: c.bottom - c.top,
918
- x: c.left,
919
- y: c.top
916
+ width: a.right - a.left,
917
+ height: a.bottom - a.top,
918
+ x: a.left,
919
+ y: a.top
920
920
  };
921
921
  }
922
922
  function Je(e) {
923
923
  const {
924
924
  width: t,
925
- height: i
925
+ height: n
926
926
  } = se(e);
927
927
  return {
928
928
  width: t,
929
- height: i
929
+ height: n
930
930
  };
931
931
  }
932
- function Qe(e, t, i) {
933
- const n = V(t), o = U(t), r = i === "fixed", s = tt(e, !0, r, t);
932
+ function Qe(e, t, n) {
933
+ const i = V(t), o = U(t), r = n === "fixed", s = tt(e, !0, r, t);
934
934
  let l = {
935
935
  scrollLeft: 0,
936
936
  scrollTop: 0
937
937
  };
938
- const c = W(0);
939
- if (n || !n && !r)
940
- if ((nt(t) !== "body" || lt(o)) && (l = ht(t)), n) {
938
+ const a = W(0);
939
+ if (i || !i && !r)
940
+ if ((it(t) !== "body" || lt(o)) && (l = ht(t)), i) {
941
941
  const d = tt(t, !0, r, t);
942
- c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
943
- } else o && (c.x = Rt(o));
944
- const a = o && !n && !r ? le(o, l) : W(0), f = s.left + l.scrollLeft - c.x - a.x, p = s.top + l.scrollTop - c.y - a.y;
942
+ a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
943
+ } else o && (a.x = Rt(o));
944
+ const c = o && !i && !r ? le(o, l) : W(0), f = s.left + l.scrollLeft - a.x - c.x, p = s.top + l.scrollTop - a.y - c.y;
945
945
  return {
946
946
  x: f,
947
947
  y: p,
@@ -957,36 +957,36 @@ function Vt(e, t) {
957
957
  return null;
958
958
  if (t)
959
959
  return t(e);
960
- let i = e.offsetParent;
961
- return U(e) === i && (i = i.ownerDocument.body), i;
960
+ let n = e.offsetParent;
961
+ return U(e) === n && (n = n.ownerDocument.body), n;
962
962
  }
963
- function ae(e, t) {
964
- const i = z(e);
963
+ function ce(e, t) {
964
+ const n = z(e);
965
965
  if (ut(e))
966
- return i;
966
+ return n;
967
967
  if (!V(e)) {
968
968
  let o = G(e);
969
- for (; o && !it(o); ) {
969
+ for (; o && !nt(o); ) {
970
970
  if (F(o) && !bt(o))
971
971
  return o;
972
972
  o = G(o);
973
973
  }
974
- return i;
974
+ return n;
975
975
  }
976
- let n = Vt(e, t);
977
- for (; n && Ie(n) && bt(n); )
978
- n = Vt(n, t);
979
- return n && it(n) && bt(n) && !Et(n) ? i : n || Ne(e) || i;
976
+ let i = Vt(e, t);
977
+ for (; i && Ie(i) && bt(i); )
978
+ i = Vt(i, t);
979
+ return i && nt(i) && bt(i) && !_t(i) ? n : i || Ne(e) || n;
980
980
  }
981
981
  const to = async function(e) {
982
- const t = this.getOffsetParent || ae, i = this.getDimensions, n = await i(e.floating);
982
+ const t = this.getOffsetParent || ce, n = this.getDimensions, i = await n(e.floating);
983
983
  return {
984
984
  reference: Qe(e.reference, await t(e.floating), e.strategy),
985
985
  floating: {
986
986
  x: 0,
987
987
  y: 0,
988
- width: n.width,
989
- height: n.height
988
+ width: i.width,
989
+ height: i.height
990
990
  }
991
991
  };
992
992
  };
@@ -997,7 +997,7 @@ const oo = {
997
997
  convertOffsetParentRelativeRectToViewportRelativeRect: Ue,
998
998
  getDocumentElement: U,
999
999
  getClippingRect: Ze,
1000
- getOffsetParent: ae,
1000
+ getOffsetParent: ce,
1001
1001
  getElementRects: to,
1002
1002
  getClientRects: Ye,
1003
1003
  getDimensions: Je,
@@ -1008,97 +1008,97 @@ const oo = {
1008
1008
  function fe(e, t) {
1009
1009
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1010
1010
  }
1011
- function io(e, t) {
1012
- let i = null, n;
1011
+ function no(e, t) {
1012
+ let n = null, i;
1013
1013
  const o = U(e);
1014
1014
  function r() {
1015
1015
  var l;
1016
- clearTimeout(n), (l = i) == null || l.disconnect(), i = null;
1016
+ clearTimeout(i), (l = n) == null || l.disconnect(), n = null;
1017
1017
  }
1018
- function s(l, c) {
1019
- l === void 0 && (l = !1), c === void 0 && (c = 1), r();
1020
- const a = e.getBoundingClientRect(), {
1018
+ function s(l, a) {
1019
+ l === void 0 && (l = !1), a === void 0 && (a = 1), r();
1020
+ const c = e.getBoundingClientRect(), {
1021
1021
  left: f,
1022
1022
  top: p,
1023
1023
  width: d,
1024
1024
  height: m
1025
- } = a;
1025
+ } = c;
1026
1026
  if (l || t(), !d || !m)
1027
1027
  return;
1028
- const b = ct(p), g = ct(o.clientWidth - (f + d)), h = ct(o.clientHeight - (p + m)), u = ct(f), w = {
1028
+ const b = at(p), g = at(o.clientWidth - (f + d)), h = at(o.clientHeight - (p + m)), u = at(f), w = {
1029
1029
  rootMargin: -b + "px " + -g + "px " + -h + "px " + -u + "px",
1030
- threshold: S(0, q(1, c)) || 1
1030
+ threshold: S(0, q(1, a)) || 1
1031
1031
  };
1032
1032
  let O = !0;
1033
- function x(D) {
1034
- const P = D[0].intersectionRatio;
1035
- if (P !== c) {
1033
+ function x(k) {
1034
+ const E = k[0].intersectionRatio;
1035
+ if (E !== a) {
1036
1036
  if (!O)
1037
1037
  return s();
1038
- P ? s(!1, P) : n = setTimeout(() => {
1038
+ E ? s(!1, E) : i = setTimeout(() => {
1039
1039
  s(!1, 1e-7);
1040
1040
  }, 1e3);
1041
1041
  }
1042
- P === 1 && !fe(a, e.getBoundingClientRect()) && s(), O = !1;
1042
+ E === 1 && !fe(c, e.getBoundingClientRect()) && s(), O = !1;
1043
1043
  }
1044
1044
  try {
1045
- i = new IntersectionObserver(x, {
1045
+ n = new IntersectionObserver(x, {
1046
1046
  ...w,
1047
1047
  // Handle <iframe>s
1048
1048
  root: o.ownerDocument
1049
1049
  });
1050
1050
  } catch {
1051
- i = new IntersectionObserver(x, w);
1051
+ n = new IntersectionObserver(x, w);
1052
1052
  }
1053
- i.observe(e);
1053
+ n.observe(e);
1054
1054
  }
1055
1055
  return s(!0), r;
1056
1056
  }
1057
- function no(e, t, i, n) {
1058
- n === void 0 && (n = {});
1057
+ function io(e, t, n, i) {
1058
+ i === void 0 && (i = {});
1059
1059
  const {
1060
1060
  ancestorScroll: o = !0,
1061
1061
  ancestorResize: r = !0,
1062
1062
  elementResize: s = typeof ResizeObserver == "function",
1063
1063
  layoutShift: l = typeof IntersectionObserver == "function",
1064
- animationFrame: c = !1
1065
- } = n, a = _t(e), f = o || r ? [...a ? rt(a) : [], ...rt(t)] : [];
1064
+ animationFrame: a = !1
1065
+ } = i, c = Pt(e), f = o || r ? [...c ? rt(c) : [], ...rt(t)] : [];
1066
1066
  f.forEach((u) => {
1067
- o && u.addEventListener("scroll", i, {
1067
+ o && u.addEventListener("scroll", n, {
1068
1068
  passive: !0
1069
- }), r && u.addEventListener("resize", i);
1069
+ }), r && u.addEventListener("resize", n);
1070
1070
  });
1071
- const p = a && l ? io(a, i) : null;
1071
+ const p = c && l ? no(c, n) : null;
1072
1072
  let d = -1, m = null;
1073
1073
  s && (m = new ResizeObserver((u) => {
1074
1074
  let [y] = u;
1075
- y && y.target === a && m && (m.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1075
+ y && y.target === c && m && (m.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1076
1076
  var w;
1077
1077
  (w = m) == null || w.observe(t);
1078
- })), i();
1079
- }), a && !c && m.observe(a), m.observe(t));
1080
- let b, g = c ? tt(e) : null;
1081
- c && h();
1078
+ })), n();
1079
+ }), c && !a && m.observe(c), m.observe(t));
1080
+ let b, g = a ? tt(e) : null;
1081
+ a && h();
1082
1082
  function h() {
1083
1083
  const u = tt(e);
1084
- g && !fe(g, u) && i(), g = u, b = requestAnimationFrame(h);
1084
+ g && !fe(g, u) && n(), g = u, b = requestAnimationFrame(h);
1085
1085
  }
1086
- return i(), () => {
1086
+ return n(), () => {
1087
1087
  var u;
1088
1088
  f.forEach((y) => {
1089
- o && y.removeEventListener("scroll", i), r && y.removeEventListener("resize", i);
1090
- }), p == null || p(), (u = m) == null || u.disconnect(), m = null, c && cancelAnimationFrame(b);
1089
+ o && y.removeEventListener("scroll", n), r && y.removeEventListener("resize", n);
1090
+ }), p == null || p(), (u = m) == null || u.disconnect(), m = null, a && cancelAnimationFrame(b);
1091
1091
  };
1092
1092
  }
1093
- const so = Fe, ro = ke, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1094
- const n = /* @__PURE__ */ new Map(), o = {
1093
+ const so = Fe, ro = Te, lo = Me, ao = $e, co = je, fo = Be, po = (e, t, n) => {
1094
+ const i = /* @__PURE__ */ new Map(), o = {
1095
1095
  platform: oo,
1096
- ...i
1096
+ ...n
1097
1097
  }, r = {
1098
1098
  ...o.platform,
1099
- _c: n
1099
+ _c: i
1100
1100
  };
1101
- return De(e, t, {
1101
+ return ke(e, t, {
1102
1102
  ...o,
1103
1103
  platform: r
1104
1104
  });
@@ -1112,13 +1112,13 @@ const so = Fe, ro = ke, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1112
1112
  options: e,
1113
1113
  async fn(t) {
1114
1114
  var Lt, St;
1115
- const { x: i, y: n, placement: o, rects: r, platform: s, elements: l, middlewareData: c } = t, { element: a, padding: f = 0 } = Z(e, t) || {};
1116
- if (a == null)
1115
+ const { x: n, y: i, placement: o, rects: r, platform: s, elements: l, middlewareData: a } = t, { element: c, padding: f = 0 } = Z(e, t) || {};
1116
+ if (c == null)
1117
1117
  return {};
1118
- const p = oe(f), d = { x: i, y: n }, m = At(o), b = Ct(m), g = Ot(m), h = await s.getDimensions(a), u = m === "y", y = u ? "top" : "left", w = u ? "bottom" : "right", O = u ? "clientHeight" : "clientWidth", x = r.reference[g] + r.reference[m] - d[m] - r.floating[g], D = d[m] - r.reference[m], P = await ((Lt = s.getOffsetParent) == null ? void 0 : Lt.call(s, a));
1119
- let R = P ? P[O] : 0;
1120
- (!R || !await ((St = s.isElement) == null ? void 0 : St.call(s, P))) && (R = l.floating[O] || r.floating[g]);
1121
- const T = x / 2 - D / 2, C = R / 2 - h.width / 2 - 1, L = q(p[y], C), j = q(p[w], C), k = L, I = R - h.width - j, Y = R / 2 - h.width / 2 + T, X = yt(k, Y, I), K = !c.arrow && H(o) != null && Y !== X && r.reference[g] / 2 - (Y < k ? L : j) - h.width / 2 < 0, N = K ? Y < k ? Y - k : Y - I : 0, B = $(o), gt = ["top", "left"].includes(B) ? -1 : 1, de = h.height * gt, ue = bo({
1118
+ const p = oe(f), d = { x: n, y: i }, m = At(o), b = Ct(m), g = Ot(m), h = await s.getDimensions(c), u = m === "y", y = u ? "top" : "left", w = u ? "bottom" : "right", O = u ? "clientHeight" : "clientWidth", x = r.reference[g] + r.reference[m] - d[m] - r.floating[g], k = d[m] - r.reference[m], E = await ((Lt = s.getOffsetParent) == null ? void 0 : Lt.call(s, c));
1119
+ let R = E ? E[O] : 0;
1120
+ (!R || !await ((St = s.isElement) == null ? void 0 : St.call(s, E))) && (R = l.floating[O] || r.floating[g]);
1121
+ const D = x / 2 - k / 2, C = R / 2 - h.width / 2 - 1, L = q(p[y], C), j = q(p[w], C), T = L, I = R - h.width - j, Y = R / 2 - h.width / 2 + D, X = yt(T, Y, I), K = !a.arrow && H(o) != null && Y !== X && r.reference[g] / 2 - (Y < T ? L : j) - h.width / 2 < 0, N = K ? Y < T ? Y - T : Y - I : 0, B = $(o), gt = ["top", "left"].includes(B) ? -1 : 1, de = h.height * gt, ue = bo({
1122
1122
  placement: B,
1123
1123
  arrowHeight: h.height,
1124
1124
  arrowWidth: h.width,
@@ -1135,51 +1135,51 @@ const so = Fe, ro = ke, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1135
1135
  reset: K
1136
1136
  };
1137
1137
  }
1138
- }), at = (e, t, i, n) => {
1139
- if (n) {
1140
- const o = n === !0 ? i() : i(n);
1138
+ }), ct = (e, t, n, i) => {
1139
+ if (i) {
1140
+ const o = i === !0 ? n() : n(i);
1141
1141
  e[t](o);
1142
1142
  }
1143
1143
  }, go = ({
1144
1144
  baseConfig: e,
1145
1145
  middleware: t,
1146
- offset: i,
1147
- arrow: n,
1146
+ offset: n,
1147
+ arrow: i,
1148
1148
  placement: o = "top"
1149
1149
  }) => {
1150
1150
  const r = { ...e, placement: o };
1151
1151
  let s = [];
1152
1152
  if (typeof t.overrides != "object") {
1153
- s.push(so(i));
1153
+ s.push(so(n));
1154
1154
  let l = t.flip ?? !0;
1155
- if (t.autoPlacement && (l = !1), at(
1155
+ if (t.autoPlacement && (l = !1), ct(
1156
1156
  s,
1157
1157
  "unshift",
1158
1158
  ro,
1159
1159
  t.autoPlacement
1160
- ), at(s, "unshift", co, l), t.size) {
1161
- const c = t.size === !0 ? {
1160
+ ), ct(s, "unshift", ao, l), t.size) {
1161
+ const a = t.size === !0 ? {
1162
1162
  padding: mo,
1163
- apply({ availableHeight: a, elements: f }) {
1163
+ apply({ availableHeight: c, elements: f }) {
1164
1164
  Object.assign(f.floating.style, {
1165
- maxHeight: `${a}px`
1165
+ maxHeight: `${c}px`
1166
1166
  });
1167
1167
  }
1168
1168
  } : t.size;
1169
- s.push(ao(c));
1169
+ s.push(co(a));
1170
1170
  }
1171
- at(s, "push", lo, t.shift ?? !0), at(s, "push", fo, t.hide ?? !0);
1171
+ ct(s, "push", lo, t.shift ?? !0), ct(s, "push", fo, t.hide ?? !0);
1172
1172
  } else
1173
1173
  s.push(...t.overrides);
1174
- return n.hide || s.push(ho(n.options)), typeof t.overrides == "function" && (s = t.overrides(s)), r.middleware = s, r;
1174
+ return i.hide || s.push(ho(i.options)), typeof t.overrides == "function" && (s = t.overrides(s)), r.middleware = s, r;
1175
1175
  }, bo = ({
1176
1176
  placement: e,
1177
1177
  arrowHeight: t,
1178
- arrowWidth: i,
1179
- x: n,
1178
+ arrowWidth: n,
1179
+ x: i,
1180
1180
  y: o
1181
1181
  }) => {
1182
- const r = $(e), s = i / 2 - t, l = {
1182
+ const r = $(e), s = n / 2 - t, l = {
1183
1183
  /* since the default orientation is pointing down, we don't need to rotate the arrow
1184
1184
  if the tooltip is on top of the reference element
1185
1185
  */
@@ -1207,7 +1207,7 @@ const so = Fe, ro = ke, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1207
1207
  */
1208
1208
  left: `rotate(-90deg) translateX(${-s}px)`,
1209
1209
  right: `rotate(90deg) translateX(${s}px)`
1210
- }[r], c = -i / 2 - t, a = {
1210
+ }[r], a = -n / 2 - t, c = {
1211
1211
  /*
1212
1212
  * If the tooltip is at the top of the anchor, place the arrow at the bottom of
1213
1213
  * the tooltip with bottom: 0. The bottom of the arrow will be flush with the bottom
@@ -1249,16 +1249,16 @@ const so = Fe, ro = ke, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1249
1249
  * | .. | | *
1250
1250
  * | | |/
1251
1251
  */
1252
- left: `${c}px`,
1252
+ left: `${a}px`,
1253
1253
  // similarly for the right side
1254
- right: `${c}px`
1254
+ right: `${a}px`
1255
1255
  }[r], f = {
1256
1256
  transform: l
1257
1257
  };
1258
- f.left = n != null ? `${n}px` : "", f.top = o != null ? `${o}px` : "";
1258
+ f.left = i != null ? `${i}px` : "", f.top = o != null ? `${o}px` : "";
1259
1259
  const p = st(r);
1260
- return f[p] = a, f;
1261
- }, vo = ".bm-floatingui{z-index:999;position:absolute;inset:unset;top:0;left:0;width:max-content}.bm-floatingui[popover]{overflow:unset;border:unset}.bm-floatingui__arrow{position:absolute;transform-origin:bottom center}.bm-floatingui__overlay{background:var(--bm-comp-dialog-color-overlay);padding:var(--bm-comp-dialog-space-viewport-offset);display:flex;justify-content:center;align-items:center;z-index:1}.bm-floatingui__overlay--transparent{background:transparent}.bm-floatingui__overlay:has(.bm-dialog){background-color:transparent;transition:background-color .25s cubic-bezier(.33,0,.67,1)}@media (prefers-reduced-motion: reduce){.bm-floatingui__overlay:has(.bm-dialog){transition:none}}.bm-floatingui__overlay:has(.bm-dialog[data-status=open]){background-color:var(--bm-comp-dialog-color-overlay)}.bm-floatingui__overlay:has(.bm-panel--contained){position:absolute!important;top:0;right:0;bottom:0;left:0;overflow:clip!important}";
1260
+ return f[p] = c, f;
1261
+ }, vo = ".bm-floatingui{z-index:999;position:absolute;inset:unset;top:0;left:0;width:max-content}.bm-floatingui[popover]{overflow:unset;border:unset}.bm-floatingui__arrow{position:absolute;transform-origin:bottom center}.bm-floatingui__overlay{background:var(--bm-comp-dialog-color-overlay);padding:var(--bm-comp-dialog-space-viewport-offset);display:flex;justify-content:center;align-items:center;z-index:1}.bm-floatingui__overlay--transparent{background:transparent}.bm-floatingui__overlay:has(.bm-dialog){background-color:transparent;transition:background-color .25s cubic-bezier(.33,0,.67,1)}@media (prefers-reduced-motion: reduce){.bm-floatingui__overlay:has(.bm-dialog){transition:none}}.bm-floatingui__overlay:has(.bm-dialog[data-status=open]){background-color:var(--bm-comp-dialog-color-overlay)}.bm-floatingui__overlay:has(.bm-panel--overlay[aria-modal]){background-color:transparent;transition:background-color .25s cubic-bezier(.33,0,.67,1)}@media (prefers-reduced-motion: reduce){.bm-floatingui__overlay:has(.bm-panel--overlay[aria-modal]){transition:none}}.bm-floatingui__overlay:has(.bm-panel--overlay[aria-modal][data-status=open]){background-color:var(--bm-comp-dialog-color-overlay)}.bm-floatingui__overlay:has(.bm-panel--contained){position:absolute!important;top:0;right:0;bottom:0;left:0;overflow:clip!important}.bm-floatingui__overlay:has(.bm-panel--overlay:not([aria-modal])){background:transparent;pointer-events:none;overflow:clip}.bm-floatingui__overlay:has(.bm-panel--overlay:not([aria-modal])) .bm-panel--overlay{pointer-events:auto}";
1262
1262
  class yo {
1263
1263
  constructor(t) {
1264
1264
  this.eventMap = /* @__PURE__ */ new Map(), this.elements = /* @__PURE__ */ new Map(), t.addController(this);
@@ -1274,9 +1274,9 @@ class yo {
1274
1274
  * @param assignListeners - a map of categories to booleans to dynamically add the
1275
1275
  * category listeners to the element. Or pass in true to add them all.
1276
1276
  */
1277
- registerElement(t, i, n = !1) {
1278
- if (this.elements.has(t) && this.removeAllEventListeners(), this.elements.set(t, i), n) {
1279
- const o = typeof n == "object" ? (r) => n[r] : void 0;
1277
+ registerElement(t, n, i = !1) {
1278
+ if (this.elements.has(t) && this.removeAllEventListeners(), this.elements.set(t, n), i) {
1279
+ const o = typeof i == "object" ? (r) => i[r] : void 0;
1280
1280
  this.assignEventListeners(t, o);
1281
1281
  }
1282
1282
  }
@@ -1299,16 +1299,16 @@ class yo {
1299
1299
  * },
1300
1300
  * ]);
1301
1301
  */
1302
- registerEventListeners(t, i, n) {
1302
+ registerEventListeners(t, n, i) {
1303
1303
  this.eventMap.has(t) || this.eventMap.set(t, /* @__PURE__ */ new Map());
1304
1304
  const o = this.eventMap.get(t);
1305
- if (typeof n == "function")
1306
- o && o.set(i, [n]);
1305
+ if (typeof i == "function")
1306
+ o && o.set(n, [i]);
1307
1307
  else {
1308
- const r = n.filter(
1308
+ const r = i.filter(
1309
1309
  (s) => !!s
1310
1310
  );
1311
- o && o.set(i, r);
1311
+ o && o.set(n, r);
1312
1312
  }
1313
1313
  }
1314
1314
  /**
@@ -1318,15 +1318,15 @@ class yo {
1318
1318
  * @param mouseenter
1319
1319
  * @param mouseleave
1320
1320
  */
1321
- registerHoverListener(t, i, n) {
1321
+ registerHoverListener(t, n, i) {
1322
1322
  this.registerEventListeners("hover", t, [
1323
1323
  {
1324
1324
  event: "mouseenter",
1325
- handler: i
1325
+ handler: n
1326
1326
  },
1327
- n && {
1327
+ i && {
1328
1328
  event: "mouseleave",
1329
- handler: n
1329
+ handler: i
1330
1330
  }
1331
1331
  ]);
1332
1332
  }
@@ -1336,9 +1336,9 @@ class yo {
1336
1336
  * @param elementId
1337
1337
  * @param click
1338
1338
  */
1339
- registerClickListener(t, i) {
1339
+ registerClickListener(t, n) {
1340
1340
  this.registerEventListeners("click", t, [
1341
- { event: "click", handler: i }
1341
+ { event: "click", handler: n }
1342
1342
  ]);
1343
1343
  }
1344
1344
  /**
@@ -1348,18 +1348,18 @@ class yo {
1348
1348
  * @param focus
1349
1349
  * @param blur
1350
1350
  */
1351
- registerFocusListener(t, i, n) {
1351
+ registerFocusListener(t, n, i) {
1352
1352
  this.registerEventListeners("focus", t, [
1353
- { event: "focus", handler: i },
1354
- n && { event: "blur", handler: n }
1353
+ { event: "focus", handler: n },
1354
+ i && { event: "blur", handler: i }
1355
1355
  ]);
1356
1356
  }
1357
1357
  /**
1358
1358
  * Removes all event listeners
1359
1359
  */
1360
1360
  removeAllEventListeners() {
1361
- this.eventMap.forEach((t, i) => {
1362
- this.removeEventListeners(i);
1361
+ this.eventMap.forEach((t, n) => {
1362
+ this.removeEventListeners(n);
1363
1363
  });
1364
1364
  }
1365
1365
  hostDisconnected() {
@@ -1388,12 +1388,12 @@ class yo {
1388
1388
  * @param categoryFilter - Optional filter to only assign event listeners for a specific category
1389
1389
  * @private
1390
1390
  */
1391
- assignEventListeners(t, i) {
1392
- const n = this.elements.get(t);
1393
- return n ? (this.eventMap.forEach((o, r) => {
1394
- (i === void 0 || i(r)) && o.forEach((s, l) => {
1395
- l === t && s.forEach(({ event: c, handler: a }) => {
1396
- n.addEventListener(c, a);
1391
+ assignEventListeners(t, n) {
1392
+ const i = this.elements.get(t);
1393
+ return i ? (this.eventMap.forEach((o, r) => {
1394
+ (n === void 0 || n(r)) && o.forEach((s, l) => {
1395
+ l === t && s.forEach(({ event: a, handler: c }) => {
1396
+ i.addEventListener(a, c);
1397
1397
  });
1398
1398
  });
1399
1399
  }), !0) : (console.warn(`Element ${t} not found`), !1);
@@ -1405,22 +1405,22 @@ class yo {
1405
1405
  * @param action
1406
1406
  * @private
1407
1407
  */
1408
- setEventListeners(t, i) {
1409
- var n;
1408
+ setEventListeners(t, n) {
1409
+ var i;
1410
1410
  if (!this.eventMap.has(t)) {
1411
1411
  console.warn(`No event listeners registered for ${t}`);
1412
1412
  return;
1413
1413
  }
1414
- (n = this.eventMap.get(t)) == null || n.forEach((o, r) => {
1414
+ (i = this.eventMap.get(t)) == null || i.forEach((o, r) => {
1415
1415
  const s = this.elements.get(r);
1416
1416
  if (!s) {
1417
1417
  console.warn(
1418
- `Cannot ${i} to ${r} for event category ${t}`
1418
+ `Cannot ${n} to ${r} for event category ${t}`
1419
1419
  );
1420
1420
  return;
1421
1421
  }
1422
- o.forEach(({ event: l, handler: c }) => {
1423
- s[i](l, c);
1422
+ o.forEach(({ event: l, handler: a }) => {
1423
+ s[n](l, a);
1424
1424
  });
1425
1425
  });
1426
1426
  }
@@ -1438,8 +1438,8 @@ class Ut {
1438
1438
  * @param callback - The function to run.
1439
1439
  * @param delay - The delay in milliseconds.
1440
1440
  */
1441
- schedule(t, i) {
1442
- this.timer || (this.timer = setTimeout(t, i));
1441
+ schedule(t, n) {
1442
+ this.timer || (this.timer = setTimeout(t, n));
1443
1443
  }
1444
1444
  /**
1445
1445
  * Cancel the scheduled function.
@@ -1448,15 +1448,15 @@ class Ut {
1448
1448
  clearTimeout(this.timer), this.timer = void 0;
1449
1449
  }
1450
1450
  }
1451
- var wo = Object.defineProperty, Yt = (e, t, i, n) => {
1451
+ var wo = Object.defineProperty, Yt = (e, t, n, i) => {
1452
1452
  for (var o = void 0, r = e.length - 1, s; r >= 0; r--)
1453
- (s = e[r]) && (o = s(t, i, o) || o);
1454
- return o && wo(t, i, o), o;
1453
+ (s = e[r]) && (o = s(t, n, o) || o);
1454
+ return o && wo(t, n, o), o;
1455
1455
  };
1456
1456
  const xo = (e) => {
1457
1457
  class t extends e {
1458
- shouldToggle(n, o) {
1459
- n && this.fireChange(o);
1458
+ shouldToggle(i, o) {
1459
+ i && this.fireChange(o);
1460
1460
  const r = this._isOpen === o, s = this.open === !o;
1461
1461
  return !(r || s);
1462
1462
  }
@@ -1466,11 +1466,11 @@ const xo = (e) => {
1466
1466
  *
1467
1467
  * @param change - whether the floating content is open or closed
1468
1468
  */
1469
- fireChange(n) {
1469
+ fireChange(i) {
1470
1470
  const o = `${ve}toggle`;
1471
1471
  this.dispatchEvent(
1472
1472
  new CustomEvent(o, {
1473
- detail: { open: n },
1473
+ detail: { open: i },
1474
1474
  bubbles: !0,
1475
1475
  composed: !0
1476
1476
  })
@@ -1480,13 +1480,13 @@ const xo = (e) => {
1480
1480
  return Yt([
1481
1481
  v({ type: Boolean })
1482
1482
  ], t.prototype, "open"), Yt([
1483
- Ee()
1483
+ _e()
1484
1484
  ], t.prototype, "_isOpen"), t;
1485
1485
  };
1486
- var Co = Object.defineProperty, _ = (e, t, i, n) => {
1486
+ var Co = Object.defineProperty, P = (e, t, n, i) => {
1487
1487
  for (var o = void 0, r = e.length - 1, s; r >= 0; r--)
1488
- (s = e[r]) && (o = s(t, i, o) || o);
1489
- return o && Co(t, i, o), o;
1488
+ (s = e[r]) && (o = s(t, n, o) || o);
1489
+ return o && Co(t, n, o), o;
1490
1490
  };
1491
1491
  const {
1492
1492
  subElementClassPrefix: Oo,
@@ -1494,8 +1494,8 @@ const {
1494
1494
  } = Zt("floatingui"), Kt = {
1495
1495
  content: Ao,
1496
1496
  arrow: `${Oo}arrow`
1497
- }, Eo = ge("popover"), Po = (e) => {
1498
- const i = class i extends xo(e) {
1497
+ }, _o = ge("popover"), Eo = (e) => {
1498
+ const n = class n extends xo(e) {
1499
1499
  constructor() {
1500
1500
  super(), this.hideArrow = !1, this.shift = !0, this.autoHiding = !0, this.defaultOpen = !1, this.showDelay = 0, this.hideDelay = 0, this.popoverAPI = !0, this.disableAutoAria = !1, this.autoDescribedById = Ce(), this.openOnClick = !1, this.openOnHover = !1, this.openOnFocus = !1, this.initialRender = !0, this.contentRef = zt(), this.edgePadding = 0, this.shouldReturnFocus = !1, this.eventPrefix = "bm-floatingui", this.arrowRef = zt(), this.shouldUsePopoverAPI = !1, this.anchor = null, this.eventController = new yo(this), this.autoUpdateCleanup = null, this.closeController = new Ut(this), this.openController = new Ut(this), this.openContent = this.openContent.bind(this), this.mouseEnterHandler = this.mouseEnterHandler.bind(this), this.mouseLeaveHandler = this.mouseLeaveHandler.bind(this), this.closeContent = this.closeContent.bind(this), this.toggleContent = this.toggleContent.bind(this), this.contentSlotHandler = this.contentSlotHandler.bind(this), this.environmentClickListener = this.environmentClickListener.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.eventController.registerClickListener("anchor", this.toggleContent), this.eventController.registerHoverListener(
1501
1501
  "anchor",
@@ -1539,8 +1539,8 @@ const {
1539
1539
  return;
1540
1540
  this.contentRef.value.setAttribute("data-status", "close");
1541
1541
  const s = () => {
1542
- var l, c;
1543
- this.shouldUsePopoverAPI && this.contentRef.value.hidePopover(), this._isOpen = !1, (l = this.autoUpdateCleanup) == null || l.call(this), this.eventController.removeEventListeners("open"), this.shouldReturnFocus && ((c = this.anchor) == null || c.focus(), this.shouldReturnFocus = !1);
1542
+ var l, a;
1543
+ this.shouldUsePopoverAPI && this.contentRef.value.hidePopover(), this._isOpen = !1, (l = this.autoUpdateCleanup) == null || l.call(this), this.eventController.removeEventListeners("open"), this.shouldReturnFocus && ((a = this.anchor) == null || a.focus(), this.shouldReturnFocus = !1);
1544
1544
  };
1545
1545
  this.closeController.schedule(s, this.hideDelay);
1546
1546
  }
@@ -1590,16 +1590,16 @@ const {
1590
1590
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1591
1591
  po(this.anchor, this.contentRef.value, o).then(
1592
1592
  (l) => {
1593
- const { x: c, y: a, middlewareData: f } = l;
1593
+ const { x: a, y: c, middlewareData: f } = l;
1594
1594
  Object.assign(this.contentRef.value.style, {
1595
1595
  ...uo(f),
1596
1596
  // translation more performant than top left
1597
- transform: `translate(${c}px, ${a}px)`
1597
+ transform: `translate(${a}px, ${c}px)`
1598
1598
  }), this.arrowRef.value && f.arrowStyles && Object.assign(this.arrowRef.value.style, f.arrowStyles);
1599
1599
  }
1600
1600
  )
1601
1601
  );
1602
- this.autoUpdateCleanup = no(
1602
+ this.autoUpdateCleanup = io(
1603
1603
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1604
1604
  this.anchor,
1605
1605
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1643,17 +1643,17 @@ const {
1643
1643
  contentSlotHandler(o) {
1644
1644
  if (this.disableAutoAria)
1645
1645
  return;
1646
- const { child: r } = kt("bm-floatingui", "content", o);
1646
+ const { child: r } = Tt("bm-floatingui", "content", o);
1647
1647
  r.setAttribute("id", this.autoDescribedById);
1648
1648
  }
1649
1649
  environmentClickListener(o) {
1650
1650
  if (!this._isOpen || this.open)
1651
1651
  return;
1652
- const r = Tt(o, this.anchor), s = Tt(o, this.contentRef.value);
1652
+ const r = Dt(o, this.anchor), s = Dt(o, this.contentRef.value);
1653
1653
  r || s || this.closeContent(!0);
1654
1654
  }
1655
1655
  willUpdate(o) {
1656
- super.willUpdate(o), o.has("popoverAPI") && (this.shouldUsePopoverAPI = this.popoverAPI && Eo);
1656
+ super.willUpdate(o), o.has("popoverAPI") && (this.shouldUsePopoverAPI = this.popoverAPI && _o);
1657
1657
  }
1658
1658
  updated(o) {
1659
1659
  if (super.updated(o), this.anchor && ["click", "hover", "focus"].forEach((f) => {
@@ -1663,10 +1663,10 @@ const {
1663
1663
  if (this.autoDescribedById)
1664
1664
  $t(this.anchor, "aria-describedby", this.autoDescribedById);
1665
1665
  else {
1666
- const a = o.get("autoDescribedById");
1667
- if (!a)
1666
+ const c = o.get("autoDescribedById");
1667
+ if (!c)
1668
1668
  return;
1669
- Oe(this.anchor, "aria-describedby", a);
1669
+ Oe(this.anchor, "aria-describedby", c);
1670
1670
  }
1671
1671
  const l = Ae(
1672
1672
  o,
@@ -1678,8 +1678,8 @@ const {
1678
1678
  "autoHiding",
1679
1679
  "middleware"
1680
1680
  ]
1681
- ) && this._isOpen, c = o.has("_isOpen");
1682
- l && !c && this.positionFloatingContent();
1681
+ ) && this._isOpen, a = o.has("_isOpen");
1682
+ l && !a && this.positionFloatingContent();
1683
1683
  }
1684
1684
  mouseEnterHandler() {
1685
1685
  const o = () => {
@@ -1691,7 +1691,7 @@ const {
1691
1691
  this.openController.cancelSchedule(), this.closeContent(!0);
1692
1692
  }
1693
1693
  anchorSlotHandler(o) {
1694
- const { child: r } = kt("bm-floatingui", "anchor", o);
1694
+ const { child: r } = Tt("bm-floatingui", "anchor", o);
1695
1695
  this.anchor = r, this.eventController.registerElement("anchor", r, {
1696
1696
  hover: this.openOnHover,
1697
1697
  click: this.openOnClick,
@@ -1702,7 +1702,7 @@ const {
1702
1702
  o.key === "Escape" && this.closeContent(!0);
1703
1703
  }
1704
1704
  };
1705
- i.styles = [
1705
+ n.styles = [
1706
1706
  xt(vo),
1707
1707
  he`
1708
1708
  :host {
@@ -1710,57 +1710,57 @@ const {
1710
1710
  }
1711
1711
  `
1712
1712
  ];
1713
- let t = i;
1714
- return _([
1713
+ let t = n;
1714
+ return P([
1715
1715
  v({ type: Boolean })
1716
- ], t.prototype, "hideArrow"), _([
1716
+ ], t.prototype, "hideArrow"), P([
1717
1717
  v({ type: String })
1718
- ], t.prototype, "placement"), _([
1718
+ ], t.prototype, "placement"), P([
1719
1719
  v({ type: Object })
1720
- ], t.prototype, "autoPlacement"), _([
1720
+ ], t.prototype, "autoPlacement"), P([
1721
1721
  v({ type: Object })
1722
- ], t.prototype, "flip"), _([
1722
+ ], t.prototype, "flip"), P([
1723
1723
  v({ type: Object })
1724
- ], t.prototype, "shift"), _([
1724
+ ], t.prototype, "shift"), P([
1725
1725
  v({ type: Object })
1726
- ], t.prototype, "autoHiding"), _([
1726
+ ], t.prototype, "autoHiding"), P([
1727
1727
  v({ type: Object })
1728
- ], t.prototype, "middleware"), _([
1728
+ ], t.prototype, "middleware"), P([
1729
1729
  v({ type: Boolean })
1730
- ], t.prototype, "defaultOpen"), _([
1730
+ ], t.prototype, "defaultOpen"), P([
1731
1731
  v({ type: Number })
1732
- ], t.prototype, "showDelay"), _([
1732
+ ], t.prototype, "showDelay"), P([
1733
1733
  v({ type: Number })
1734
- ], t.prototype, "hideDelay"), _([
1734
+ ], t.prototype, "hideDelay"), P([
1735
1735
  v({ type: Boolean, converter: Jt })
1736
- ], t.prototype, "popoverAPI"), _([
1736
+ ], t.prototype, "popoverAPI"), P([
1737
1737
  v({ type: Boolean })
1738
- ], t.prototype, "disableAutoAria"), _([
1738
+ ], t.prototype, "disableAutoAria"), P([
1739
1739
  v({ type: String })
1740
- ], t.prototype, "autoDescribedById"), _([
1740
+ ], t.prototype, "autoDescribedById"), P([
1741
1741
  v()
1742
- ], t.prototype, "offset"), _([
1742
+ ], t.prototype, "offset"), P([
1743
1743
  v({ type: Boolean })
1744
- ], t.prototype, "openOnClick"), _([
1744
+ ], t.prototype, "openOnClick"), P([
1745
1745
  v({ type: Boolean })
1746
- ], t.prototype, "openOnHover"), _([
1746
+ ], t.prototype, "openOnHover"), P([
1747
1747
  v({ type: Boolean })
1748
1748
  ], t.prototype, "openOnFocus"), t;
1749
1749
  };
1750
- var _o = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, Lo = Object.getPrototypeOf, So = Reflect.get, E = (e, t, i, n) => {
1751
- for (var o = n > 1 ? void 0 : n ? Ro(t, i) : t, r = e.length - 1, s; r >= 0; r--)
1752
- (s = e[r]) && (o = (n ? s(t, i, o) : s(o)) || o);
1753
- return n && o && _o(t, i, o), o;
1754
- }, pe = (e, t, i) => So(Lo(e), i, t);
1750
+ var Po = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, Lo = Object.getPrototypeOf, So = Reflect.get, _ = (e, t, n, i) => {
1751
+ for (var o = i > 1 ? void 0 : i ? Ro(t, n) : t, r = e.length - 1, s; r >= 0; r--)
1752
+ (s = e[r]) && (o = (i ? s(t, n, o) : s(o)) || o);
1753
+ return i && o && Po(t, n, o), o;
1754
+ }, pe = (e, t, n) => So(Lo(e), n, t);
1755
1755
  const { subElementClassPrefix: me, baseClassNamePrefix: zo } = Zt("tooltip");
1756
- let A = class extends Po(qt) {
1756
+ let A = class extends Eo(qt) {
1757
1757
  constructor() {
1758
1758
  super(), this.disabled = !1, this.triggerSize = "md", this.eventPrefix = "tooltip", this.hideDelay = 200, Bt(we, this, "edgePadding"), Bt(xe, this, "offset");
1759
1759
  }
1760
1760
  willUpdate(e) {
1761
1761
  super.willUpdate(e);
1762
- const t = (i) => {
1763
- this.openOnHover = i, this.openOnFocus = i;
1762
+ const t = (n) => {
1763
+ this.openOnHover = n, this.openOnFocus = n;
1764
1764
  };
1765
1765
  e.has("disabled") && t(!this.disabled);
1766
1766
  }
@@ -1770,7 +1770,7 @@ let A = class extends Po(qt) {
1770
1770
  role="tooltip"
1771
1771
  @slotchange=${this.contentSlotHandler}
1772
1772
  aria-hidden=${!this._isOpen}
1773
- ${Dt(this.contentRef)}
1773
+ ${kt(this.contentRef)}
1774
1774
  class=${vt(
1775
1775
  this.theme && ye(this.theme),
1776
1776
  Kt.content,
@@ -1782,7 +1782,7 @@ let A = class extends Po(qt) {
1782
1782
  <slot name="text"></slot>
1783
1783
  <span
1784
1784
  class=${vt(Kt.arrow, `${me}arrow`)}
1785
- ${Dt(this.arrowRef)}
1785
+ ${kt(this.arrowRef)}
1786
1786
  >
1787
1787
  </span>
1788
1788
  </div>`;
@@ -1792,55 +1792,55 @@ A.styles = [
1792
1792
  xt(Qt),
1793
1793
  pe(A, A, "styles") ?? []
1794
1794
  ];
1795
- E([
1795
+ _([
1796
1796
  v({ type: String })
1797
1797
  ], A.prototype, "theme", 2);
1798
- E([
1798
+ _([
1799
1799
  v({ type: Boolean })
1800
1800
  ], A.prototype, "open", 2);
1801
- E([
1801
+ _([
1802
1802
  v({ type: Boolean })
1803
1803
  ], A.prototype, "hideArrow", 2);
1804
- E([
1804
+ _([
1805
1805
  v({ type: String })
1806
1806
  ], A.prototype, "placement", 2);
1807
- E([
1807
+ _([
1808
1808
  v({ type: Object })
1809
1809
  ], A.prototype, "autoPlacement", 2);
1810
- E([
1810
+ _([
1811
1811
  v({ type: Object })
1812
1812
  ], A.prototype, "flip", 2);
1813
- E([
1813
+ _([
1814
1814
  v({ type: Object })
1815
1815
  ], A.prototype, "shift", 2);
1816
- E([
1816
+ _([
1817
1817
  v({ type: Object })
1818
1818
  ], A.prototype, "autoHiding", 2);
1819
- E([
1819
+ _([
1820
1820
  v({ type: Object })
1821
1821
  ], A.prototype, "middleware", 2);
1822
- E([
1822
+ _([
1823
1823
  v({ type: Boolean })
1824
1824
  ], A.prototype, "defaultOpen", 2);
1825
- E([
1825
+ _([
1826
1826
  v({ type: Number })
1827
1827
  ], A.prototype, "showDelay", 2);
1828
- E([
1828
+ _([
1829
1829
  v({ type: Boolean, converter: Jt })
1830
1830
  ], A.prototype, "popoverAPI", 2);
1831
- E([
1831
+ _([
1832
1832
  v({ type: Boolean })
1833
1833
  ], A.prototype, "disableAutoAria", 2);
1834
- E([
1834
+ _([
1835
1835
  v({ type: String })
1836
1836
  ], A.prototype, "autoDescribedById", 2);
1837
- E([
1837
+ _([
1838
1838
  v({ type: Boolean })
1839
1839
  ], A.prototype, "disabled", 2);
1840
- E([
1840
+ _([
1841
1841
  v({ type: String })
1842
1842
  ], A.prototype, "triggerSize", 2);
1843
- A = E([
1843
+ A = _([
1844
1844
  Gt("bm-tooltip")
1845
1845
  ], A);
1846
1846
  let J = class extends qt {
@@ -1862,13 +1862,13 @@ J.styles = [
1862
1862
  xt(Qt),
1863
1863
  pe(J, J, "styles") ?? []
1864
1864
  ];
1865
- E([
1865
+ _([
1866
1866
  v({ type: String })
1867
1867
  ], J.prototype, "size", 2);
1868
- E([
1868
+ _([
1869
1869
  v({ type: Boolean })
1870
1870
  ], J.prototype, "disabled", 2);
1871
- J = E([
1871
+ J = _([
1872
1872
  Gt("bm-tooltip-icon-trigger")
1873
1873
  ], J);
1874
1874
  export {