@devalok/shilp-sutra 0.27.1 → 0.28.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,17 +1,17 @@
1
1
  "use client";
2
- import * as w from "react";
3
- import { useState as Se, useLayoutEffect as Ce } from "react";
4
- import * as Re from "react-dom";
5
- var I = function() {
6
- return I = Object.assign || function(e) {
2
+ import * as b from "react";
3
+ import D, { useState as ye, useRef as J, useEffect as St, useCallback as je, useLayoutEffect as be, useMemo as Xe } from "react";
4
+ import * as Ye from "react-dom";
5
+ var z = function() {
6
+ return z = Object.assign || function(e) {
7
7
  for (var n, r = 1, o = arguments.length; r < o; r++) {
8
8
  n = arguments[r];
9
9
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
10
10
  }
11
11
  return e;
12
- }, I.apply(this, arguments);
12
+ }, z.apply(this, arguments);
13
13
  };
14
- function re(t, e) {
14
+ function xe(t, e) {
15
15
  var n = {};
16
16
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
17
17
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -19,17 +19,17 @@ function re(t, e) {
19
19
  e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
20
20
  return n;
21
21
  }
22
- function Ae(t, e, n) {
22
+ function qe(t, e, n) {
23
23
  if (n || arguments.length === 2) for (var r = 0, o = e.length, i; r < o; r++)
24
24
  (i || !(r in e)) && (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
25
25
  return t.concat(i || Array.prototype.slice.call(e));
26
26
  }
27
- var ht = "right-scroll-bar-position", mt = "width-before-scroll-bar", Ee = "with-scroll-bars-hidden", Oe = "--removed-body-scroll-bar-size";
28
- function At(t, e) {
27
+ var yt = "right-scroll-bar-position", bt = "width-before-scroll-bar", Ke = "with-scroll-bars-hidden", Ze = "--removed-body-scroll-bar-size";
28
+ function Tt(t, e) {
29
29
  return typeof t == "function" ? t(e) : t && (t.current = e), t;
30
30
  }
31
- function Pe(t, e) {
32
- var n = Se(function() {
31
+ function Ue(t, e) {
32
+ var n = ye(function() {
33
33
  return {
34
34
  // value
35
35
  value: t,
@@ -49,31 +49,31 @@ function Pe(t, e) {
49
49
  })[0];
50
50
  return n.callback = e, n.facade;
51
51
  }
52
- var Me = typeof window < "u" ? w.useLayoutEffect : w.useEffect, It = /* @__PURE__ */ new WeakMap();
53
- function ke(t, e) {
54
- var n = Pe(null, function(r) {
52
+ var Qe = typeof window < "u" ? b.useLayoutEffect : b.useEffect, te = /* @__PURE__ */ new WeakMap();
53
+ function Ge(t, e) {
54
+ var n = Ue(null, function(r) {
55
55
  return t.forEach(function(o) {
56
- return At(o, r);
56
+ return Tt(o, r);
57
57
  });
58
58
  });
59
- return Me(function() {
60
- var r = It.get(n);
59
+ return Qe(function() {
60
+ var r = te.get(n);
61
61
  if (r) {
62
62
  var o = new Set(r), i = new Set(t), c = n.current;
63
- o.forEach(function(s) {
64
- i.has(s) || At(s, null);
65
- }), i.forEach(function(s) {
66
- o.has(s) || At(s, c);
63
+ o.forEach(function(a) {
64
+ i.has(a) || Tt(a, null);
65
+ }), i.forEach(function(a) {
66
+ o.has(a) || Tt(a, c);
67
67
  });
68
68
  }
69
- It.set(n, t);
69
+ te.set(n, t);
70
70
  }, [t]), n;
71
71
  }
72
- function Le(t) {
72
+ function Je(t) {
73
73
  return t;
74
74
  }
75
- function Te(t, e) {
76
- e === void 0 && (e = Le);
75
+ function tn(t, e) {
76
+ e === void 0 && (e = Je);
77
77
  var n = [], r = !1, o = {
78
78
  read: function() {
79
79
  if (r)
@@ -83,8 +83,8 @@ function Te(t, e) {
83
83
  useMedium: function(i) {
84
84
  var c = e(i, r);
85
85
  return n.push(c), function() {
86
- n = n.filter(function(s) {
87
- return s !== c;
86
+ n = n.filter(function(a) {
87
+ return a !== c;
88
88
  });
89
89
  };
90
90
  },
@@ -94,8 +94,8 @@ function Te(t, e) {
94
94
  n = [], c.forEach(i);
95
95
  }
96
96
  n = {
97
- push: function(s) {
98
- return i(s);
97
+ push: function(a) {
98
+ return i(a);
99
99
  },
100
100
  filter: function() {
101
101
  return n;
@@ -106,140 +106,140 @@ function Te(t, e) {
106
106
  r = !0;
107
107
  var c = [];
108
108
  if (n.length) {
109
- var s = n;
110
- n = [], s.forEach(i), c = n;
109
+ var a = n;
110
+ n = [], a.forEach(i), c = n;
111
111
  }
112
- var u = function() {
113
- var l = c;
114
- c = [], l.forEach(i);
115
- }, f = function() {
116
- return Promise.resolve().then(u);
112
+ var l = function() {
113
+ var u = c;
114
+ c = [], u.forEach(i);
115
+ }, s = function() {
116
+ return Promise.resolve().then(l);
117
117
  };
118
- f(), n = {
119
- push: function(l) {
120
- c.push(l), f();
118
+ s(), n = {
119
+ push: function(u) {
120
+ c.push(u), s();
121
121
  },
122
- filter: function(l) {
123
- return c = c.filter(l), n;
122
+ filter: function(u) {
123
+ return c = c.filter(u), n;
124
124
  }
125
125
  };
126
126
  }
127
127
  };
128
128
  return o;
129
129
  }
130
- function De(t) {
130
+ function en(t) {
131
131
  t === void 0 && (t = {});
132
- var e = Te(null);
133
- return e.options = I({ async: !0, ssr: !1 }, t), e;
132
+ var e = tn(null);
133
+ return e.options = z({ async: !0, ssr: !1 }, t), e;
134
134
  }
135
- var oe = function(t) {
136
- var e = t.sideCar, n = re(t, ["sideCar"]);
135
+ var Se = function(t) {
136
+ var e = t.sideCar, n = xe(t, ["sideCar"]);
137
137
  if (!e)
138
138
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
139
139
  var r = e.read();
140
140
  if (!r)
141
141
  throw new Error("Sidecar medium not found");
142
- return w.createElement(r, I({}, n));
142
+ return b.createElement(r, z({}, n));
143
143
  };
144
- oe.isSideCarExport = !0;
145
- function We(t, e) {
146
- return t.useMedium(e), oe;
147
- }
148
- var ie = De(), Et = function() {
149
- }, xt = w.forwardRef(function(t, e) {
150
- var n = w.useRef(null), r = w.useState({
151
- onScrollCapture: Et,
152
- onWheelCapture: Et,
153
- onTouchMoveCapture: Et
154
- }), o = r[0], i = r[1], c = t.forwardProps, s = t.children, u = t.className, f = t.removeScrollBar, l = t.enabled, a = t.shards, m = t.sideCar, h = t.noRelative, v = t.noIsolation, d = t.inert, g = t.allowPinchZoom, p = t.as, y = p === void 0 ? "div" : p, x = t.gapMode, b = re(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, C = ke([n, e]), R = I(I({}, b), o);
155
- return w.createElement(
156
- w.Fragment,
144
+ Se.isSideCarExport = !0;
145
+ function nn(t, e) {
146
+ return t.useMedium(e), Se;
147
+ }
148
+ var Ce = en(), Dt = function() {
149
+ }, Ot = b.forwardRef(function(t, e) {
150
+ var n = b.useRef(null), r = b.useState({
151
+ onScrollCapture: Dt,
152
+ onWheelCapture: Dt,
153
+ onTouchMoveCapture: Dt
154
+ }), o = r[0], i = r[1], c = t.forwardProps, a = t.children, l = t.className, s = t.removeScrollBar, u = t.enabled, f = t.shards, m = t.sideCar, h = t.noRelative, p = t.noIsolation, d = t.inert, v = t.allowPinchZoom, g = t.as, w = g === void 0 ? "div" : g, y = t.gapMode, x = xe(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, C = Ge([n, e]), R = z(z({}, x), o);
155
+ return b.createElement(
156
+ b.Fragment,
157
157
  null,
158
- l && w.createElement(S, { sideCar: ie, removeScrollBar: f, shards: a, noRelative: h, noIsolation: v, inert: d, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
159
- c ? w.cloneElement(w.Children.only(s), I(I({}, R), { ref: C })) : w.createElement(y, I({}, R, { className: u, ref: C }), s)
158
+ u && b.createElement(S, { sideCar: Ce, removeScrollBar: s, shards: f, noRelative: h, noIsolation: p, inert: d, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
159
+ c ? b.cloneElement(b.Children.only(a), z(z({}, R), { ref: C })) : b.createElement(w, z({}, R, { className: l, ref: C }), a)
160
160
  );
161
161
  });
162
- xt.defaultProps = {
162
+ Ot.defaultProps = {
163
163
  enabled: !0,
164
164
  removeScrollBar: !0,
165
165
  inert: !1
166
166
  };
167
- xt.classNames = {
168
- fullWidth: mt,
169
- zeroRight: ht
167
+ Ot.classNames = {
168
+ fullWidth: bt,
169
+ zeroRight: yt
170
170
  };
171
- var Ne = function() {
171
+ var rn = function() {
172
172
  if (typeof __webpack_nonce__ < "u")
173
173
  return __webpack_nonce__;
174
174
  };
175
- function Be() {
175
+ function on() {
176
176
  if (typeof document === "undefined")
177
177
  return null;
178
178
  var t = document.createElement("style");
179
179
  t.type = "text/css";
180
- var e = Ne();
180
+ var e = rn();
181
181
  return e && t.setAttribute("nonce", e), t;
182
182
  }
183
- function Fe(t, e) {
183
+ function cn(t, e) {
184
184
  t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
185
185
  }
186
- function Ve(t) {
186
+ function an(t) {
187
187
  var e = document.head || document.getElementsByTagName("head")[0];
188
188
  e.appendChild(t);
189
189
  }
190
- var He = function() {
190
+ var sn = function() {
191
191
  var t = 0, e = null;
192
192
  return {
193
193
  add: function(n) {
194
- t == 0 && (e = Be()) && (Fe(e, n), Ve(e)), t++;
194
+ t == 0 && (e = on()) && (cn(e, n), an(e)), t++;
195
195
  },
196
196
  remove: function() {
197
197
  t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
198
198
  }
199
199
  };
200
- }, $e = function() {
201
- var t = He();
200
+ }, ln = function() {
201
+ var t = sn();
202
202
  return function(e, n) {
203
- w.useEffect(function() {
203
+ b.useEffect(function() {
204
204
  return t.add(e), function() {
205
205
  t.remove();
206
206
  };
207
207
  }, [e && n]);
208
208
  };
209
- }, ce = function() {
210
- var t = $e(), e = function(n) {
209
+ }, Re = function() {
210
+ var t = ln(), e = function(n) {
211
211
  var r = n.styles, o = n.dynamic;
212
212
  return t(r, o), null;
213
213
  };
214
214
  return e;
215
- }, Ie = {
215
+ }, un = {
216
216
  left: 0,
217
217
  top: 0,
218
218
  right: 0,
219
219
  gap: 0
220
- }, Ot = function(t) {
220
+ }, Nt = function(t) {
221
221
  return parseInt(t || "", 10) || 0;
222
- }, _e = function(t) {
222
+ }, fn = function(t) {
223
223
  var e = window.getComputedStyle(document.body), n = e[t === "padding" ? "paddingLeft" : "marginLeft"], r = e[t === "padding" ? "paddingTop" : "marginTop"], o = e[t === "padding" ? "paddingRight" : "marginRight"];
224
- return [Ot(n), Ot(r), Ot(o)];
225
- }, ze = function(t) {
224
+ return [Nt(n), Nt(r), Nt(o)];
225
+ }, dn = function(t) {
226
226
  if (t === void 0 && (t = "margin"), typeof window > "u")
227
- return Ie;
228
- var e = _e(t), n = document.documentElement.clientWidth, r = window.innerWidth;
227
+ return un;
228
+ var e = fn(t), n = document.documentElement.clientWidth, r = window.innerWidth;
229
229
  return {
230
230
  left: e[0],
231
231
  top: e[1],
232
232
  right: e[2],
233
233
  gap: Math.max(0, r - n + e[2] - e[0])
234
234
  };
235
- }, je = ce(), et = "data-scroll-locked", Xe = function(t, e, n, r) {
236
- var o = t.left, i = t.top, c = t.right, s = t.gap;
235
+ }, hn = Re(), ot = "data-scroll-locked", mn = function(t, e, n, r) {
236
+ var o = t.left, i = t.top, c = t.right, a = t.gap;
237
237
  return n === void 0 && (n = "margin"), `
238
- .`.concat(Ee, ` {
238
+ .`.concat(Ke, ` {
239
239
  overflow: hidden `).concat(r, `;
240
- padding-right: `).concat(s, "px ").concat(r, `;
240
+ padding-right: `).concat(a, "px ").concat(r, `;
241
241
  }
242
- body[`).concat(et, `] {
242
+ body[`).concat(ot, `] {
243
243
  overflow: hidden `).concat(r, `;
244
244
  overscroll-behavior: contain;
245
245
  `).concat([
@@ -250,354 +250,516 @@ var He = function() {
250
250
  padding-right: `).concat(c, `px;
251
251
  margin-left:0;
252
252
  margin-top:0;
253
- margin-right: `).concat(s, "px ").concat(r, `;
253
+ margin-right: `).concat(a, "px ").concat(r, `;
254
254
  `),
255
- n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
255
+ n === "padding" && "padding-right: ".concat(a, "px ").concat(r, ";")
256
256
  ].filter(Boolean).join(""), `
257
257
  }
258
258
 
259
- .`).concat(ht, ` {
260
- right: `).concat(s, "px ").concat(r, `;
259
+ .`).concat(yt, ` {
260
+ right: `).concat(a, "px ").concat(r, `;
261
261
  }
262
262
 
263
- .`).concat(mt, ` {
264
- margin-right: `).concat(s, "px ").concat(r, `;
263
+ .`).concat(bt, ` {
264
+ margin-right: `).concat(a, "px ").concat(r, `;
265
265
  }
266
266
 
267
- .`).concat(ht, " .").concat(ht, ` {
267
+ .`).concat(yt, " .").concat(yt, ` {
268
268
  right: 0 `).concat(r, `;
269
269
  }
270
270
 
271
- .`).concat(mt, " .").concat(mt, ` {
271
+ .`).concat(bt, " .").concat(bt, ` {
272
272
  margin-right: 0 `).concat(r, `;
273
273
  }
274
274
 
275
- body[`).concat(et, `] {
276
- `).concat(Oe, ": ").concat(s, `px;
275
+ body[`).concat(ot, `] {
276
+ `).concat(Ze, ": ").concat(a, `px;
277
277
  }
278
278
  `);
279
- }, _t = function() {
280
- var t = parseInt(document.body.getAttribute(et) || "0", 10);
279
+ }, ee = function() {
280
+ var t = parseInt(document.body.getAttribute(ot) || "0", 10);
281
281
  return isFinite(t) ? t : 0;
282
- }, Ye = function() {
283
- w.useEffect(function() {
284
- return document.body.setAttribute(et, (_t() + 1).toString()), function() {
285
- var t = _t() - 1;
286
- t <= 0 ? document.body.removeAttribute(et) : document.body.setAttribute(et, t.toString());
282
+ }, vn = function() {
283
+ b.useEffect(function() {
284
+ return document.body.setAttribute(ot, (ee() + 1).toString()), function() {
285
+ var t = ee() - 1;
286
+ t <= 0 ? document.body.removeAttribute(ot) : document.body.setAttribute(ot, t.toString());
287
287
  };
288
288
  }, []);
289
- }, qe = function(t) {
289
+ }, gn = function(t) {
290
290
  var e = t.noRelative, n = t.noImportant, r = t.gapMode, o = r === void 0 ? "margin" : r;
291
- Ye();
292
- var i = w.useMemo(function() {
293
- return ze(o);
291
+ vn();
292
+ var i = b.useMemo(function() {
293
+ return dn(o);
294
294
  }, [o]);
295
- return w.createElement(je, { styles: Xe(i, !e, o, n ? "" : "!important") });
296
- }, Lt = !1;
295
+ return b.createElement(hn, { styles: mn(i, !e, o, n ? "" : "!important") });
296
+ }, Ht = !1;
297
297
  if (typeof window < "u")
298
298
  try {
299
- var at = Object.defineProperty({}, "passive", {
299
+ var ht = Object.defineProperty({}, "passive", {
300
300
  get: function() {
301
- return Lt = !0, !0;
301
+ return Ht = !0, !0;
302
302
  }
303
303
  });
304
- window.addEventListener("test", at, at), window.removeEventListener("test", at, at);
304
+ window.addEventListener("test", ht, ht), window.removeEventListener("test", ht, ht);
305
305
  } catch {
306
- Lt = !1;
306
+ Ht = !1;
307
307
  }
308
- var Q = Lt ? { passive: !1 } : !1, Ze = function(t) {
308
+ var et = Ht ? { passive: !1 } : !1, pn = function(t) {
309
309
  return t.tagName === "TEXTAREA";
310
- }, se = function(t, e) {
310
+ }, Ee = function(t, e) {
311
311
  if (!(t instanceof Element))
312
312
  return !1;
313
313
  var n = window.getComputedStyle(t);
314
314
  return (
315
315
  // not-not-scrollable
316
316
  n[e] !== "hidden" && // contains scroll inside self
317
- !(n.overflowY === n.overflowX && !Ze(t) && n[e] === "visible")
317
+ !(n.overflowY === n.overflowX && !pn(t) && n[e] === "visible")
318
318
  );
319
- }, Ue = function(t) {
320
- return se(t, "overflowY");
321
- }, Ge = function(t) {
322
- return se(t, "overflowX");
323
- }, zt = function(t, e) {
319
+ }, wn = function(t) {
320
+ return Ee(t, "overflowY");
321
+ }, yn = function(t) {
322
+ return Ee(t, "overflowX");
323
+ }, ne = function(t, e) {
324
324
  var n = e.ownerDocument, r = e;
325
325
  do {
326
326
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
327
- var o = ae(t, r);
327
+ var o = Ae(t, r);
328
328
  if (o) {
329
- var i = le(t, r), c = i[1], s = i[2];
330
- if (c > s)
329
+ var i = Oe(t, r), c = i[1], a = i[2];
330
+ if (c > a)
331
331
  return !0;
332
332
  }
333
333
  r = r.parentNode;
334
334
  } while (r && r !== n.body);
335
335
  return !1;
336
- }, Ke = function(t) {
336
+ }, bn = function(t) {
337
337
  var e = t.scrollTop, n = t.scrollHeight, r = t.clientHeight;
338
338
  return [
339
339
  e,
340
340
  n,
341
341
  r
342
342
  ];
343
- }, Qe = function(t) {
343
+ }, xn = function(t) {
344
344
  var e = t.scrollLeft, n = t.scrollWidth, r = t.clientWidth;
345
345
  return [
346
346
  e,
347
347
  n,
348
348
  r
349
349
  ];
350
- }, ae = function(t, e) {
351
- return t === "v" ? Ue(e) : Ge(e);
352
- }, le = function(t, e) {
353
- return t === "v" ? Ke(e) : Qe(e);
354
- }, Je = function(t, e) {
350
+ }, Ae = function(t, e) {
351
+ return t === "v" ? wn(e) : yn(e);
352
+ }, Oe = function(t, e) {
353
+ return t === "v" ? bn(e) : xn(e);
354
+ }, Sn = function(t, e) {
355
355
  return t === "h" && e === "rtl" ? -1 : 1;
356
- }, tn = function(t, e, n, r, o) {
357
- var i = Je(t, window.getComputedStyle(e).direction), c = i * r, s = n.target, u = e.contains(s), f = !1, l = c > 0, a = 0, m = 0;
356
+ }, Cn = function(t, e, n, r, o) {
357
+ var i = Sn(t, window.getComputedStyle(e).direction), c = i * r, a = n.target, l = e.contains(a), s = !1, u = c > 0, f = 0, m = 0;
358
358
  do {
359
- if (!s)
359
+ if (!a)
360
360
  break;
361
- var h = le(t, s), v = h[0], d = h[1], g = h[2], p = d - g - i * v;
362
- (v || p) && ae(t, s) && (a += p, m += v);
363
- var y = s.parentNode;
364
- s = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
361
+ var h = Oe(t, a), p = h[0], d = h[1], v = h[2], g = d - v - i * p;
362
+ (p || g) && Ae(t, a) && (f += g, m += p);
363
+ var w = a.parentNode;
364
+ a = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
365
365
  } while (
366
366
  // portaled content
367
- !u && s !== document.body || // self content
368
- u && (e.contains(s) || e === s)
367
+ !l && a !== document.body || // self content
368
+ l && (e.contains(a) || e === a)
369
369
  );
370
- return (l && Math.abs(a) < 1 || !l && Math.abs(m) < 1) && (f = !0), f;
371
- }, lt = function(t) {
370
+ return (u && Math.abs(f) < 1 || !u && Math.abs(m) < 1) && (s = !0), s;
371
+ }, mt = function(t) {
372
372
  return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
373
- }, jt = function(t) {
373
+ }, re = function(t) {
374
374
  return [t.deltaX, t.deltaY];
375
- }, Xt = function(t) {
375
+ }, oe = function(t) {
376
376
  return t && "current" in t ? t.current : t;
377
- }, en = function(t, e) {
377
+ }, Rn = function(t, e) {
378
378
  return t[0] === e[0] && t[1] === e[1];
379
- }, nn = function(t) {
379
+ }, En = function(t) {
380
380
  return `
381
381
  .block-interactivity-`.concat(t, ` {pointer-events: none;}
382
382
  .allow-interactivity-`).concat(t, ` {pointer-events: all;}
383
383
  `);
384
- }, rn = 0, J = [];
385
- function on(t) {
386
- var e = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(rn++)[0], i = w.useState(ce)[0], c = w.useRef(t);
387
- w.useEffect(function() {
384
+ }, An = 0, nt = [];
385
+ function On(t) {
386
+ var e = b.useRef([]), n = b.useRef([0, 0]), r = b.useRef(), o = b.useState(An++)[0], i = b.useState(Re)[0], c = b.useRef(t);
387
+ b.useEffect(function() {
388
388
  c.current = t;
389
- }, [t]), w.useEffect(function() {
389
+ }, [t]), b.useEffect(function() {
390
390
  if (t.inert) {
391
391
  document.body.classList.add("block-interactivity-".concat(o));
392
- var d = Ae([t.lockRef.current], (t.shards || []).map(Xt), !0).filter(Boolean);
393
- return d.forEach(function(g) {
394
- return g.classList.add("allow-interactivity-".concat(o));
392
+ var d = qe([t.lockRef.current], (t.shards || []).map(oe), !0).filter(Boolean);
393
+ return d.forEach(function(v) {
394
+ return v.classList.add("allow-interactivity-".concat(o));
395
395
  }), function() {
396
- document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(g) {
397
- return g.classList.remove("allow-interactivity-".concat(o));
396
+ document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(v) {
397
+ return v.classList.remove("allow-interactivity-".concat(o));
398
398
  });
399
399
  };
400
400
  }
401
401
  }, [t.inert, t.lockRef.current, t.shards]);
402
- var s = w.useCallback(function(d, g) {
402
+ var a = b.useCallback(function(d, v) {
403
403
  if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
404
404
  return !c.current.allowPinchZoom;
405
- var p = lt(d), y = n.current, x = "deltaX" in d ? d.deltaX : y[0] - p[0], b = "deltaY" in d ? d.deltaY : y[1] - p[1], S, C = d.target, R = Math.abs(x) > Math.abs(b) ? "h" : "v";
405
+ var g = mt(d), w = n.current, y = "deltaX" in d ? d.deltaX : w[0] - g[0], x = "deltaY" in d ? d.deltaY : w[1] - g[1], S, C = d.target, R = Math.abs(y) > Math.abs(x) ? "h" : "v";
406
406
  if ("touches" in d && R === "h" && C.type === "range")
407
407
  return !1;
408
- var P = window.getSelection(), L = P && P.anchorNode, O = L ? L === C || L.contains(C) : !1;
408
+ var M = window.getSelection(), P = M && M.anchorNode, O = P ? P === C || P.contains(C) : !1;
409
409
  if (O)
410
410
  return !1;
411
- var M = zt(R, C);
412
- if (!M)
411
+ var k = ne(R, C);
412
+ if (!k)
413
413
  return !0;
414
- if (M ? S = R : (S = R === "v" ? "h" : "v", M = zt(R, C)), !M)
414
+ if (k ? S = R : (S = R === "v" ? "h" : "v", k = ne(R, C)), !k)
415
415
  return !1;
416
- if (!r.current && "changedTouches" in d && (x || b) && (r.current = S), !S)
416
+ if (!r.current && "changedTouches" in d && (y || x) && (r.current = S), !S)
417
417
  return !0;
418
418
  var T = r.current || S;
419
- return tn(T, g, d, T === "h" ? x : b);
420
- }, []), u = w.useCallback(function(d) {
421
- var g = d;
422
- if (!(!J.length || J[J.length - 1] !== i)) {
423
- var p = "deltaY" in g ? jt(g) : lt(g), y = e.current.filter(function(S) {
424
- return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && en(S.delta, p);
419
+ return Cn(T, v, d, T === "h" ? y : x);
420
+ }, []), l = b.useCallback(function(d) {
421
+ var v = d;
422
+ if (!(!nt.length || nt[nt.length - 1] !== i)) {
423
+ var g = "deltaY" in v ? re(v) : mt(v), w = e.current.filter(function(S) {
424
+ return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) && Rn(S.delta, g);
425
425
  })[0];
426
- if (y && y.should) {
427
- g.cancelable && g.preventDefault();
426
+ if (w && w.should) {
427
+ v.cancelable && v.preventDefault();
428
428
  return;
429
429
  }
430
- if (!y) {
431
- var x = (c.current.shards || []).map(Xt).filter(Boolean).filter(function(S) {
432
- return S.contains(g.target);
433
- }), b = x.length > 0 ? s(g, x[0]) : !c.current.noIsolation;
434
- b && g.cancelable && g.preventDefault();
430
+ if (!w) {
431
+ var y = (c.current.shards || []).map(oe).filter(Boolean).filter(function(S) {
432
+ return S.contains(v.target);
433
+ }), x = y.length > 0 ? a(v, y[0]) : !c.current.noIsolation;
434
+ x && v.cancelable && v.preventDefault();
435
435
  }
436
436
  }
437
- }, []), f = w.useCallback(function(d, g, p, y) {
438
- var x = { name: d, delta: g, target: p, should: y, shadowParent: cn(p) };
439
- e.current.push(x), setTimeout(function() {
440
- e.current = e.current.filter(function(b) {
441
- return b !== x;
437
+ }, []), s = b.useCallback(function(d, v, g, w) {
438
+ var y = { name: d, delta: v, target: g, should: w, shadowParent: Mn(g) };
439
+ e.current.push(y), setTimeout(function() {
440
+ e.current = e.current.filter(function(x) {
441
+ return x !== y;
442
442
  });
443
443
  }, 1);
444
- }, []), l = w.useCallback(function(d) {
445
- n.current = lt(d), r.current = void 0;
446
- }, []), a = w.useCallback(function(d) {
447
- f(d.type, jt(d), d.target, s(d, t.lockRef.current));
448
- }, []), m = w.useCallback(function(d) {
449
- f(d.type, lt(d), d.target, s(d, t.lockRef.current));
444
+ }, []), u = b.useCallback(function(d) {
445
+ n.current = mt(d), r.current = void 0;
446
+ }, []), f = b.useCallback(function(d) {
447
+ s(d.type, re(d), d.target, a(d, t.lockRef.current));
448
+ }, []), m = b.useCallback(function(d) {
449
+ s(d.type, mt(d), d.target, a(d, t.lockRef.current));
450
450
  }, []);
451
- w.useEffect(function() {
452
- return J.push(i), t.setCallbacks({
453
- onScrollCapture: a,
454
- onWheelCapture: a,
451
+ b.useEffect(function() {
452
+ return nt.push(i), t.setCallbacks({
453
+ onScrollCapture: f,
454
+ onWheelCapture: f,
455
455
  onTouchMoveCapture: m
456
- }), document.addEventListener("wheel", u, Q), document.addEventListener("touchmove", u, Q), document.addEventListener("touchstart", l, Q), function() {
457
- J = J.filter(function(d) {
456
+ }), document.addEventListener("wheel", l, et), document.addEventListener("touchmove", l, et), document.addEventListener("touchstart", u, et), function() {
457
+ nt = nt.filter(function(d) {
458
458
  return d !== i;
459
- }), document.removeEventListener("wheel", u, Q), document.removeEventListener("touchmove", u, Q), document.removeEventListener("touchstart", l, Q);
459
+ }), document.removeEventListener("wheel", l, et), document.removeEventListener("touchmove", l, et), document.removeEventListener("touchstart", u, et);
460
460
  };
461
461
  }, []);
462
- var h = t.removeScrollBar, v = t.inert;
463
- return w.createElement(
464
- w.Fragment,
462
+ var h = t.removeScrollBar, p = t.inert;
463
+ return b.createElement(
464
+ b.Fragment,
465
465
  null,
466
- v ? w.createElement(i, { styles: nn(o) }) : null,
467
- h ? w.createElement(qe, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
466
+ p ? b.createElement(i, { styles: En(o) }) : null,
467
+ h ? b.createElement(gn, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
468
468
  );
469
469
  }
470
- function cn(t) {
470
+ function Mn(t) {
471
471
  for (var e = null; t !== null; )
472
472
  t instanceof ShadowRoot && (e = t.host, t = t.host), t = t.parentNode;
473
473
  return e;
474
474
  }
475
- const sn = We(ie, on);
476
- var an = w.forwardRef(function(t, e) {
477
- return w.createElement(xt, I({}, t, { ref: e, sideCar: sn }));
475
+ const kn = nn(Ce, On);
476
+ var _n = b.forwardRef(function(t, e) {
477
+ return b.createElement(Ot, z({}, t, { ref: e, sideCar: kn }));
478
478
  });
479
- an.classNames = xt.classNames;
480
- var ln = function(t) {
479
+ _n.classNames = Ot.classNames;
480
+ var Ln = function(t) {
481
481
  if (typeof document > "u")
482
482
  return null;
483
483
  var e = Array.isArray(t) ? t[0] : t;
484
484
  return e.ownerDocument.body;
485
- }, tt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ut = {}, Pt = 0, fe = function(t) {
486
- return t && (t.host || fe(t.parentNode));
487
- }, fn = function(t, e) {
485
+ }, rt = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), gt = {}, Wt = 0, Me = function(t) {
486
+ return t && (t.host || Me(t.parentNode));
487
+ }, Pn = function(t, e) {
488
488
  return e.map(function(n) {
489
489
  if (t.contains(n))
490
490
  return n;
491
- var r = fe(n);
491
+ var r = Me(n);
492
492
  return r && t.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", t, ". Doing nothing"), null);
493
493
  }).filter(function(n) {
494
494
  return !!n;
495
495
  });
496
- }, un = function(t, e, n, r) {
497
- var o = fn(e, Array.isArray(t) ? t : [t]);
498
- ut[n] || (ut[n] = /* @__PURE__ */ new WeakMap());
499
- var i = ut[n], c = [], s = /* @__PURE__ */ new Set(), u = new Set(o), f = function(a) {
500
- !a || s.has(a) || (s.add(a), f(a.parentNode));
496
+ }, Tn = function(t, e, n, r) {
497
+ var o = Pn(e, Array.isArray(t) ? t : [t]);
498
+ gt[n] || (gt[n] = /* @__PURE__ */ new WeakMap());
499
+ var i = gt[n], c = [], a = /* @__PURE__ */ new Set(), l = new Set(o), s = function(f) {
500
+ !f || a.has(f) || (a.add(f), s(f.parentNode));
501
501
  };
502
- o.forEach(f);
503
- var l = function(a) {
504
- !a || u.has(a) || Array.prototype.forEach.call(a.children, function(m) {
505
- if (s.has(m))
506
- l(m);
502
+ o.forEach(s);
503
+ var u = function(f) {
504
+ !f || l.has(f) || Array.prototype.forEach.call(f.children, function(m) {
505
+ if (a.has(m))
506
+ u(m);
507
507
  else
508
508
  try {
509
- var h = m.getAttribute(r), v = h !== null && h !== "false", d = (tt.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
510
- tt.set(m, d), i.set(m, g), c.push(m), d === 1 && v && ft.set(m, !0), g === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
511
- } catch (p) {
512
- console.error("aria-hidden: cannot operate on ", m, p);
509
+ var h = m.getAttribute(r), p = h !== null && h !== "false", d = (rt.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
510
+ rt.set(m, d), i.set(m, v), c.push(m), d === 1 && p && vt.set(m, !0), v === 1 && m.setAttribute(n, "true"), p || m.setAttribute(r, "true");
511
+ } catch (g) {
512
+ console.error("aria-hidden: cannot operate on ", m, g);
513
513
  }
514
514
  });
515
515
  };
516
- return l(e), s.clear(), Pt++, function() {
517
- c.forEach(function(a) {
518
- var m = tt.get(a) - 1, h = i.get(a) - 1;
519
- tt.set(a, m), i.set(a, h), m || (ft.has(a) || a.removeAttribute(r), ft.delete(a)), h || a.removeAttribute(n);
520
- }), Pt--, Pt || (tt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ut = {});
516
+ return u(e), a.clear(), Wt++, function() {
517
+ c.forEach(function(f) {
518
+ var m = rt.get(f) - 1, h = i.get(f) - 1;
519
+ rt.set(f, m), i.set(f, h), m || (vt.has(f) || f.removeAttribute(r), vt.delete(f)), h || f.removeAttribute(n);
520
+ }), Wt--, Wt || (rt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), gt = {});
521
521
  };
522
- }, gr = function(t, e, n) {
522
+ }, Gr = function(t, e, n) {
523
523
  n === void 0 && (n = "data-aria-hidden");
524
- var r = Array.from(Array.isArray(t) ? t : [t]), o = ln(t);
525
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), un(r, o, n, "aria-hidden")) : function() {
524
+ var r = Array.from(Array.isArray(t) ? t : [t]), o = Ln(t);
525
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Tn(r, o, n, "aria-hidden")) : function() {
526
526
  return null;
527
527
  };
528
528
  };
529
- const dn = ["top", "right", "bottom", "left"], U = Math.min, B = Math.max, vt = Math.round, dt = Math.floor, z = (t) => ({
529
+ function Mt() {
530
+ return (Mt = Object.assign || function(t) {
531
+ for (var e = 1; e < arguments.length; e++) {
532
+ var n = arguments[e];
533
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
534
+ }
535
+ return t;
536
+ }).apply(this, arguments);
537
+ }
538
+ function ke(t, e) {
539
+ if (t == null) return {};
540
+ var n, r, o = {}, i = Object.keys(t);
541
+ for (r = 0; r < i.length; r++) e.indexOf(n = i[r]) >= 0 || (o[n] = t[n]);
542
+ return o;
543
+ }
544
+ function It(t) {
545
+ var e = J(t), n = J(function(r) {
546
+ e.current && e.current(r);
547
+ });
548
+ return e.current = t, n.current;
549
+ }
550
+ var ut = function(t, e, n) {
551
+ return e === void 0 && (e = 0), n === void 0 && (n = 1), t > n ? n : t < e ? e : t;
552
+ }, lt = function(t) {
553
+ return "touches" in t;
554
+ }, Vt = function(t) {
555
+ return t && t.ownerDocument.defaultView || self;
556
+ }, ie = function(t, e, n) {
557
+ var r = t.getBoundingClientRect(), o = lt(e) ? function(i, c) {
558
+ for (var a = 0; a < i.length; a++) if (i[a].identifier === c) return i[a];
559
+ return i[0];
560
+ }(e.touches, n) : e;
561
+ return { left: ut((o.pageX - (r.left + Vt(t).pageXOffset)) / r.width), top: ut((o.pageY - (r.top + Vt(t).pageYOffset)) / r.height) };
562
+ }, ce = function(t) {
563
+ !lt(t) && t.preventDefault();
564
+ }, _e = D.memo(function(t) {
565
+ var e = t.onMove, n = t.onKey, r = ke(t, ["onMove", "onKey"]), o = J(null), i = It(e), c = It(n), a = J(null), l = J(!1), s = Xe(function() {
566
+ var h = function(v) {
567
+ ce(v), (lt(v) ? v.touches.length > 0 : v.buttons > 0) && o.current ? i(ie(o.current, v, a.current)) : d(!1);
568
+ }, p = function() {
569
+ return d(!1);
570
+ };
571
+ function d(v) {
572
+ var g = l.current, w = Vt(o.current), y = v ? w.addEventListener : w.removeEventListener;
573
+ y(g ? "touchmove" : "mousemove", h), y(g ? "touchend" : "mouseup", p);
574
+ }
575
+ return [function(v) {
576
+ var g = v.nativeEvent, w = o.current;
577
+ if (w && (ce(g), !function(x, S) {
578
+ return S && !lt(x);
579
+ }(g, l.current) && w)) {
580
+ if (lt(g)) {
581
+ l.current = !0;
582
+ var y = g.changedTouches || [];
583
+ y.length && (a.current = y[0].identifier);
584
+ }
585
+ w.focus(), i(ie(w, g, a.current)), d(!0);
586
+ }
587
+ }, function(v) {
588
+ var g = v.which || v.keyCode;
589
+ g < 37 || g > 40 || (v.preventDefault(), c({ left: g === 39 ? 0.05 : g === 37 ? -0.05 : 0, top: g === 40 ? 0.05 : g === 38 ? -0.05 : 0 }));
590
+ }, d];
591
+ }, [c, i]), u = s[0], f = s[1], m = s[2];
592
+ return St(function() {
593
+ return m;
594
+ }, [m]), D.createElement("div", Mt({}, r, { onTouchStart: u, onMouseDown: u, className: "react-colorful__interactive", ref: o, onKeyDown: f, tabIndex: 0, role: "slider" }));
595
+ }), qt = function(t) {
596
+ return t.filter(Boolean).join(" ");
597
+ }, Le = function(t) {
598
+ var e = t.color, n = t.left, r = t.top, o = r === void 0 ? 0.5 : r, i = qt(["react-colorful__pointer", t.className]);
599
+ return D.createElement("div", { className: i, style: { top: 100 * o + "%", left: 100 * n + "%" } }, D.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: e } }));
600
+ }, L = function(t, e, n) {
601
+ return e === void 0 && (e = 0), n === void 0 && (n = Math.pow(10, e)), Math.round(n * t) / n;
602
+ }, Dn = function(t) {
603
+ return Hn($t(t));
604
+ }, $t = function(t) {
605
+ return t[0] === "#" && (t = t.substring(1)), t.length < 6 ? { r: parseInt(t[0] + t[0], 16), g: parseInt(t[1] + t[1], 16), b: parseInt(t[2] + t[2], 16), a: t.length === 4 ? L(parseInt(t[3] + t[3], 16) / 255, 2) : 1 } : { r: parseInt(t.substring(0, 2), 16), g: parseInt(t.substring(2, 4), 16), b: parseInt(t.substring(4, 6), 16), a: t.length === 8 ? L(parseInt(t.substring(6, 8), 16) / 255, 2) : 1 };
606
+ }, Nn = function(t) {
607
+ return Fn(Bn(t));
608
+ }, Wn = function(t) {
609
+ var e = t.s, n = t.v, r = t.a, o = (200 - e) * n / 100;
610
+ return { h: L(t.h), s: L(o > 0 && o < 200 ? e * n / 100 / (o <= 100 ? o : 200 - o) * 100 : 0), l: L(o / 2), a: L(r, 2) };
611
+ }, zt = function(t) {
612
+ var e = Wn(t);
613
+ return "hsl(" + e.h + ", " + e.s + "%, " + e.l + "%)";
614
+ }, Bn = function(t) {
615
+ var e = t.h, n = t.s, r = t.v, o = t.a;
616
+ e = e / 360 * 6, n /= 100, r /= 100;
617
+ var i = Math.floor(e), c = r * (1 - n), a = r * (1 - (e - i) * n), l = r * (1 - (1 - e + i) * n), s = i % 6;
618
+ return { r: L(255 * [r, a, c, c, l, r][s]), g: L(255 * [l, r, r, a, c, c][s]), b: L(255 * [c, c, l, r, r, a][s]), a: L(o, 2) };
619
+ }, pt = function(t) {
620
+ var e = t.toString(16);
621
+ return e.length < 2 ? "0" + e : e;
622
+ }, Fn = function(t) {
623
+ var e = t.r, n = t.g, r = t.b, o = t.a, i = o < 1 ? pt(L(255 * o)) : "";
624
+ return "#" + pt(e) + pt(n) + pt(r) + i;
625
+ }, Hn = function(t) {
626
+ var e = t.r, n = t.g, r = t.b, o = t.a, i = Math.max(e, n, r), c = i - Math.min(e, n, r), a = c ? i === e ? (n - r) / c : i === n ? 2 + (r - e) / c : 4 + (e - n) / c : 0;
627
+ return { h: L(60 * (a < 0 ? a + 6 : a)), s: L(i ? c / i * 100 : 0), v: L(i / 255 * 100), a: o };
628
+ }, In = D.memo(function(t) {
629
+ var e = t.hue, n = t.onChange, r = qt(["react-colorful__hue", t.className]);
630
+ return D.createElement("div", { className: r }, D.createElement(_e, { onMove: function(o) {
631
+ n({ h: 360 * o.left });
632
+ }, onKey: function(o) {
633
+ n({ h: ut(e + 360 * o.left, 0, 360) });
634
+ }, "aria-label": "Hue", "aria-valuenow": L(e), "aria-valuemax": "360", "aria-valuemin": "0" }, D.createElement(Le, { className: "react-colorful__hue-pointer", left: e / 360, color: zt({ h: e, s: 100, v: 100, a: 1 }) })));
635
+ }), Vn = D.memo(function(t) {
636
+ var e = t.hsva, n = t.onChange, r = { backgroundColor: zt({ h: e.h, s: 100, v: 100, a: 1 }) };
637
+ return D.createElement("div", { className: "react-colorful__saturation", style: r }, D.createElement(_e, { onMove: function(o) {
638
+ n({ s: 100 * o.left, v: 100 - 100 * o.top });
639
+ }, onKey: function(o) {
640
+ n({ s: ut(e.s + 100 * o.left, 0, 100), v: ut(e.v - 100 * o.top, 0, 100) });
641
+ }, "aria-label": "Color", "aria-valuetext": "Saturation " + L(e.s) + "%, Brightness " + L(e.v) + "%" }, D.createElement(Le, { className: "react-colorful__saturation-pointer", top: 1 - e.v / 100, left: e.s / 100, color: zt(e) })));
642
+ }), Pe = function(t, e) {
643
+ if (t === e) return !0;
644
+ for (var n in t) if (t[n] !== e[n]) return !1;
645
+ return !0;
646
+ }, $n = function(t, e) {
647
+ return t.toLowerCase() === e.toLowerCase() || Pe($t(t), $t(e));
648
+ };
649
+ function zn(t, e, n) {
650
+ var r = It(n), o = ye(function() {
651
+ return t.toHsva(e);
652
+ }), i = o[0], c = o[1], a = J({ color: e, hsva: i });
653
+ St(function() {
654
+ if (!t.equal(e, a.current.color)) {
655
+ var s = t.toHsva(e);
656
+ a.current = { hsva: s, color: e }, c(s);
657
+ }
658
+ }, [e, t]), St(function() {
659
+ var s;
660
+ Pe(i, a.current.hsva) || t.equal(s = t.fromHsva(i), a.current.color) || (a.current = { hsva: i, color: s }, r(s));
661
+ }, [i, t, r]);
662
+ var l = je(function(s) {
663
+ c(function(u) {
664
+ return Object.assign({}, u, s);
665
+ });
666
+ }, []);
667
+ return [i, l];
668
+ }
669
+ var jn = typeof window < "u" ? be : St, Xn = function() {
670
+ return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
671
+ }, ae = /* @__PURE__ */ new Map(), Yn = function(t) {
672
+ jn(function() {
673
+ var e = t.current ? t.current.ownerDocument : document;
674
+ if (e !== void 0 && !ae.has(e)) {
675
+ var n = e.createElement("style");
676
+ n.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, ae.set(e, n);
677
+ var r = Xn();
678
+ r && n.setAttribute("nonce", r), e.head.appendChild(n);
679
+ }
680
+ }, []);
681
+ }, qn = function(t) {
682
+ var e = t.className, n = t.colorModel, r = t.color, o = r === void 0 ? n.defaultColor : r, i = t.onChange, c = ke(t, ["className", "colorModel", "color", "onChange"]), a = J(null);
683
+ Yn(a);
684
+ var l = zn(n, o, i), s = l[0], u = l[1], f = qt(["react-colorful", e]);
685
+ return D.createElement("div", Mt({}, c, { ref: a, className: f }), D.createElement(Vn, { hsva: s, onChange: u }), D.createElement(In, { hue: s.h, onChange: u, className: "react-colorful__last-control" }));
686
+ }, Kn = { defaultColor: "000", toHsva: Dn, fromHsva: function(t) {
687
+ return Nn({ h: t.h, s: t.s, v: t.v, a: 1 });
688
+ }, equal: $n }, Jr = function(t) {
689
+ return D.createElement(qn, Mt({}, t, { colorModel: Kn }));
690
+ };
691
+ const Zn = ["top", "right", "bottom", "left"], Q = Math.min, F = Math.max, Ct = Math.round, wt = Math.floor, X = (t) => ({
530
692
  x: t,
531
693
  y: t
532
- }), hn = {
694
+ }), Un = {
533
695
  left: "right",
534
696
  right: "left",
535
697
  bottom: "top",
536
698
  top: "bottom"
537
- }, mn = {
699
+ }, Qn = {
538
700
  start: "end",
539
701
  end: "start"
540
702
  };
541
- function Tt(t, e, n) {
542
- return B(t, U(e, n));
703
+ function jt(t, e, n) {
704
+ return F(t, Q(e, n));
543
705
  }
544
- function Y(t, e) {
706
+ function K(t, e) {
545
707
  return typeof t == "function" ? t(e) : t;
546
708
  }
547
- function q(t) {
709
+ function Z(t) {
548
710
  return t.split("-")[0];
549
711
  }
550
- function ot(t) {
712
+ function at(t) {
551
713
  return t.split("-")[1];
552
714
  }
553
- function Nt(t) {
715
+ function Kt(t) {
554
716
  return t === "x" ? "y" : "x";
555
717
  }
556
- function Bt(t) {
718
+ function Zt(t) {
557
719
  return t === "y" ? "height" : "width";
558
720
  }
559
- const gn = /* @__PURE__ */ new Set(["top", "bottom"]);
560
- function _(t) {
561
- return gn.has(q(t)) ? "y" : "x";
721
+ const Gn = /* @__PURE__ */ new Set(["top", "bottom"]);
722
+ function j(t) {
723
+ return Gn.has(Z(t)) ? "y" : "x";
562
724
  }
563
- function Ft(t) {
564
- return Nt(_(t));
725
+ function Ut(t) {
726
+ return Kt(j(t));
565
727
  }
566
- function vn(t, e, n) {
728
+ function Jn(t, e, n) {
567
729
  n === void 0 && (n = !1);
568
- const r = ot(t), o = Ft(t), i = Bt(o);
730
+ const r = at(t), o = Ut(t), i = Zt(o);
569
731
  let c = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
570
- return e.reference[i] > e.floating[i] && (c = pt(c)), [c, pt(c)];
732
+ return e.reference[i] > e.floating[i] && (c = Rt(c)), [c, Rt(c)];
571
733
  }
572
- function pn(t) {
573
- const e = pt(t);
574
- return [Dt(t), e, Dt(e)];
734
+ function tr(t) {
735
+ const e = Rt(t);
736
+ return [Xt(t), e, Xt(e)];
575
737
  }
576
- function Dt(t) {
577
- return t.replace(/start|end/g, (e) => mn[e]);
738
+ function Xt(t) {
739
+ return t.replace(/start|end/g, (e) => Qn[e]);
578
740
  }
579
- const Yt = ["left", "right"], qt = ["right", "left"], wn = ["top", "bottom"], yn = ["bottom", "top"];
580
- function xn(t, e, n) {
741
+ const se = ["left", "right"], le = ["right", "left"], er = ["top", "bottom"], nr = ["bottom", "top"];
742
+ function rr(t, e, n) {
581
743
  switch (t) {
582
744
  case "top":
583
745
  case "bottom":
584
- return n ? e ? qt : Yt : e ? Yt : qt;
746
+ return n ? e ? le : se : e ? se : le;
585
747
  case "left":
586
748
  case "right":
587
- return e ? wn : yn;
749
+ return e ? er : nr;
588
750
  default:
589
751
  return [];
590
752
  }
591
753
  }
592
- function bn(t, e, n, r) {
593
- const o = ot(t);
594
- let i = xn(q(t), n === "start", r);
595
- return o && (i = i.map((c) => c + "-" + o), e && (i = i.concat(i.map(Dt)))), i;
754
+ function or(t, e, n, r) {
755
+ const o = at(t);
756
+ let i = rr(Z(t), n === "start", r);
757
+ return o && (i = i.map((c) => c + "-" + o), e && (i = i.concat(i.map(Xt)))), i;
596
758
  }
597
- function pt(t) {
598
- return t.replace(/left|right|bottom|top/g, (e) => hn[e]);
759
+ function Rt(t) {
760
+ return t.replace(/left|right|bottom|top/g, (e) => Un[e]);
599
761
  }
600
- function Sn(t) {
762
+ function ir(t) {
601
763
  return {
602
764
  top: 0,
603
765
  right: 0,
@@ -606,15 +768,15 @@ function Sn(t) {
606
768
  ...t
607
769
  };
608
770
  }
609
- function ue(t) {
610
- return typeof t != "number" ? Sn(t) : {
771
+ function Te(t) {
772
+ return typeof t != "number" ? ir(t) : {
611
773
  top: t,
612
774
  right: t,
613
775
  bottom: t,
614
776
  left: t
615
777
  };
616
778
  }
617
- function wt(t) {
779
+ function Et(t) {
618
780
  const {
619
781
  x: e,
620
782
  y: n,
@@ -632,36 +794,36 @@ function wt(t) {
632
794
  y: n
633
795
  };
634
796
  }
635
- function Zt(t, e, n) {
797
+ function ue(t, e, n) {
636
798
  let {
637
799
  reference: r,
638
800
  floating: o
639
801
  } = t;
640
- const i = _(e), c = Ft(e), s = Bt(c), u = q(e), f = i === "y", l = r.x + r.width / 2 - o.width / 2, a = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2;
802
+ const i = j(e), c = Ut(e), a = Zt(c), l = Z(e), s = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[a] / 2 - o[a] / 2;
641
803
  let h;
642
- switch (u) {
804
+ switch (l) {
643
805
  case "top":
644
806
  h = {
645
- x: l,
807
+ x: u,
646
808
  y: r.y - o.height
647
809
  };
648
810
  break;
649
811
  case "bottom":
650
812
  h = {
651
- x: l,
813
+ x: u,
652
814
  y: r.y + r.height
653
815
  };
654
816
  break;
655
817
  case "right":
656
818
  h = {
657
819
  x: r.x + r.width,
658
- y: a
820
+ y: f
659
821
  };
660
822
  break;
661
823
  case "left":
662
824
  h = {
663
825
  x: r.x - o.width,
664
- y: a
826
+ y: f
665
827
  };
666
828
  break;
667
829
  default:
@@ -670,17 +832,17 @@ function Zt(t, e, n) {
670
832
  y: r.y
671
833
  };
672
834
  }
673
- switch (ot(e)) {
835
+ switch (at(e)) {
674
836
  case "start":
675
- h[c] -= m * (n && f ? -1 : 1);
837
+ h[c] -= m * (n && s ? -1 : 1);
676
838
  break;
677
839
  case "end":
678
- h[c] += m * (n && f ? -1 : 1);
840
+ h[c] += m * (n && s ? -1 : 1);
679
841
  break;
680
842
  }
681
843
  return h;
682
844
  }
683
- async function Cn(t, e) {
845
+ async function cr(t, e) {
684
846
  var n;
685
847
  e === void 0 && (e = {});
686
848
  const {
@@ -688,108 +850,108 @@ async function Cn(t, e) {
688
850
  y: o,
689
851
  platform: i,
690
852
  rects: c,
691
- elements: s,
692
- strategy: u
853
+ elements: a,
854
+ strategy: l
693
855
  } = t, {
694
- boundary: f = "clippingAncestors",
695
- rootBoundary: l = "viewport",
696
- elementContext: a = "floating",
856
+ boundary: s = "clippingAncestors",
857
+ rootBoundary: u = "viewport",
858
+ elementContext: f = "floating",
697
859
  altBoundary: m = !1,
698
860
  padding: h = 0
699
- } = Y(e, t), v = ue(h), g = s[m ? a === "floating" ? "reference" : "floating" : a], p = wt(await i.getClippingRect({
700
- element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
701
- boundary: f,
702
- rootBoundary: l,
703
- strategy: u
704
- })), y = a === "floating" ? {
861
+ } = K(e, t), p = Te(h), v = a[m ? f === "floating" ? "reference" : "floating" : f], g = Et(await i.getClippingRect({
862
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
863
+ boundary: s,
864
+ rootBoundary: u,
865
+ strategy: l
866
+ })), w = f === "floating" ? {
705
867
  x: r,
706
868
  y: o,
707
869
  width: c.floating.width,
708
870
  height: c.floating.height
709
- } : c.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), b = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
871
+ } : c.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), x = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
710
872
  x: 1,
711
873
  y: 1
712
874
  } : {
713
875
  x: 1,
714
876
  y: 1
715
- }, S = wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
716
- elements: s,
717
- rect: y,
718
- offsetParent: x,
719
- strategy: u
720
- }) : y);
877
+ }, S = Et(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
878
+ elements: a,
879
+ rect: w,
880
+ offsetParent: y,
881
+ strategy: l
882
+ }) : w);
721
883
  return {
722
- top: (p.top - S.top + v.top) / b.y,
723
- bottom: (S.bottom - p.bottom + v.bottom) / b.y,
724
- left: (p.left - S.left + v.left) / b.x,
725
- right: (S.right - p.right + v.right) / b.x
884
+ top: (g.top - S.top + p.top) / x.y,
885
+ bottom: (S.bottom - g.bottom + p.bottom) / x.y,
886
+ left: (g.left - S.left + p.left) / x.x,
887
+ right: (S.right - g.right + p.right) / x.x
726
888
  };
727
889
  }
728
- const Rn = async (t, e, n) => {
890
+ const ar = async (t, e, n) => {
729
891
  const {
730
892
  placement: r = "bottom",
731
893
  strategy: o = "absolute",
732
894
  middleware: i = [],
733
895
  platform: c
734
- } = n, s = i.filter(Boolean), u = await (c.isRTL == null ? void 0 : c.isRTL(e));
735
- let f = await c.getElementRects({
896
+ } = n, a = i.filter(Boolean), l = await (c.isRTL == null ? void 0 : c.isRTL(e));
897
+ let s = await c.getElementRects({
736
898
  reference: t,
737
899
  floating: e,
738
900
  strategy: o
739
901
  }), {
740
- x: l,
741
- y: a
742
- } = Zt(f, r, u), m = r, h = {}, v = 0;
743
- for (let g = 0; g < s.length; g++) {
902
+ x: u,
903
+ y: f
904
+ } = ue(s, r, l), m = r, h = {}, p = 0;
905
+ for (let v = 0; v < a.length; v++) {
744
906
  var d;
745
907
  const {
746
- name: p,
747
- fn: y
748
- } = s[g], {
749
- x,
750
- y: b,
908
+ name: g,
909
+ fn: w
910
+ } = a[v], {
911
+ x: y,
912
+ y: x,
751
913
  data: S,
752
914
  reset: C
753
- } = await y({
754
- x: l,
755
- y: a,
915
+ } = await w({
916
+ x: u,
917
+ y: f,
756
918
  initialPlacement: r,
757
919
  placement: m,
758
920
  strategy: o,
759
921
  middlewareData: h,
760
- rects: f,
922
+ rects: s,
761
923
  platform: {
762
924
  ...c,
763
- detectOverflow: (d = c.detectOverflow) != null ? d : Cn
925
+ detectOverflow: (d = c.detectOverflow) != null ? d : cr
764
926
  },
765
927
  elements: {
766
928
  reference: t,
767
929
  floating: e
768
930
  }
769
931
  });
770
- l = x ?? l, a = b ?? a, h = {
932
+ u = y ?? u, f = x ?? f, h = {
771
933
  ...h,
772
- [p]: {
773
- ...h[p],
934
+ [g]: {
935
+ ...h[g],
774
936
  ...S
775
937
  }
776
- }, C && v <= 50 && (v++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (f = C.rects === !0 ? await c.getElementRects({
938
+ }, C && p <= 50 && (p++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (s = C.rects === !0 ? await c.getElementRects({
777
939
  reference: t,
778
940
  floating: e,
779
941
  strategy: o
780
942
  }) : C.rects), {
781
- x: l,
782
- y: a
783
- } = Zt(f, m, u)), g = -1);
943
+ x: u,
944
+ y: f
945
+ } = ue(s, m, l)), v = -1);
784
946
  }
785
947
  return {
786
- x: l,
787
- y: a,
948
+ x: u,
949
+ y: f,
788
950
  placement: m,
789
951
  strategy: o,
790
952
  middlewareData: h
791
953
  };
792
- }, An = (t) => ({
954
+ }, sr = (t) => ({
793
955
  name: "arrow",
794
956
  options: t,
795
957
  async fn(e) {
@@ -799,34 +961,34 @@ const Rn = async (t, e, n) => {
799
961
  placement: o,
800
962
  rects: i,
801
963
  platform: c,
802
- elements: s,
803
- middlewareData: u
964
+ elements: a,
965
+ middlewareData: l
804
966
  } = e, {
805
- element: f,
806
- padding: l = 0
807
- } = Y(t, e) || {};
808
- if (f == null)
967
+ element: s,
968
+ padding: u = 0
969
+ } = K(t, e) || {};
970
+ if (s == null)
809
971
  return {};
810
- const a = ue(l), m = {
972
+ const f = Te(u), m = {
811
973
  x: n,
812
974
  y: r
813
- }, h = Ft(o), v = Bt(h), d = await c.getDimensions(f), g = h === "y", p = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = i.reference[v] + i.reference[h] - m[h] - i.floating[v], S = m[h] - i.reference[h], C = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(f));
814
- let R = C ? C[x] : 0;
815
- (!R || !await (c.isElement == null ? void 0 : c.isElement(C))) && (R = s.floating[x] || i.floating[v]);
816
- const P = b / 2 - S / 2, L = R / 2 - d[v] / 2 - 1, O = U(a[p], L), M = U(a[y], L), T = O, D = R - d[v] - M, E = R / 2 - d[v] / 2 + P, $ = Tt(T, E, D), k = !u.arrow && ot(o) != null && E !== $ && i.reference[v] / 2 - (E < T ? O : M) - d[v] / 2 < 0, W = k ? E < T ? E - T : E - D : 0;
975
+ }, h = Ut(o), p = Zt(h), d = await c.getDimensions(s), v = h === "y", g = v ? "top" : "left", w = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", x = i.reference[p] + i.reference[h] - m[h] - i.floating[p], S = m[h] - i.reference[h], C = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(s));
976
+ let R = C ? C[y] : 0;
977
+ (!R || !await (c.isElement == null ? void 0 : c.isElement(C))) && (R = a.floating[y] || i.floating[p]);
978
+ const M = x / 2 - S / 2, P = R / 2 - d[p] / 2 - 1, O = Q(f[g], P), k = Q(f[w], P), T = O, N = R - d[p] - k, A = R / 2 - d[p] / 2 + M, $ = jt(T, A, N), _ = !l.arrow && at(o) != null && A !== $ && i.reference[p] / 2 - (A < T ? O : k) - d[p] / 2 < 0, W = _ ? A < T ? A - T : A - N : 0;
817
979
  return {
818
980
  [h]: m[h] + W,
819
981
  data: {
820
982
  [h]: $,
821
- centerOffset: E - $ - W,
822
- ...k && {
983
+ centerOffset: A - $ - W,
984
+ ..._ && {
823
985
  alignmentOffset: W
824
986
  }
825
987
  },
826
- reset: k
988
+ reset: _
827
989
  };
828
990
  }
829
- }), En = function(t) {
991
+ }), lr = function(t) {
830
992
  return t === void 0 && (t = {}), {
831
993
  name: "flip",
832
994
  options: t,
@@ -836,71 +998,71 @@ const Rn = async (t, e, n) => {
836
998
  placement: o,
837
999
  middlewareData: i,
838
1000
  rects: c,
839
- initialPlacement: s,
840
- platform: u,
841
- elements: f
1001
+ initialPlacement: a,
1002
+ platform: l,
1003
+ elements: s
842
1004
  } = e, {
843
- mainAxis: l = !0,
844
- crossAxis: a = !0,
1005
+ mainAxis: u = !0,
1006
+ crossAxis: f = !0,
845
1007
  fallbackPlacements: m,
846
1008
  fallbackStrategy: h = "bestFit",
847
- fallbackAxisSideDirection: v = "none",
1009
+ fallbackAxisSideDirection: p = "none",
848
1010
  flipAlignment: d = !0,
849
- ...g
850
- } = Y(t, e);
1011
+ ...v
1012
+ } = K(t, e);
851
1013
  if ((n = i.arrow) != null && n.alignmentOffset)
852
1014
  return {};
853
- const p = q(o), y = _(s), x = q(s) === s, b = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), S = m || (x || !d ? [pt(s)] : pn(s)), C = v !== "none";
854
- !m && C && S.push(...bn(s, d, v, b));
855
- const R = [s, ...S], P = await u.detectOverflow(e, g), L = [];
1015
+ const g = Z(o), w = j(a), y = Z(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(s.floating)), S = m || (y || !d ? [Rt(a)] : tr(a)), C = p !== "none";
1016
+ !m && C && S.push(...or(a, d, p, x));
1017
+ const R = [a, ...S], M = await l.detectOverflow(e, v), P = [];
856
1018
  let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
857
- if (l && L.push(P[p]), a) {
858
- const E = vn(o, c, b);
859
- L.push(P[E[0]], P[E[1]]);
1019
+ if (u && P.push(M[g]), f) {
1020
+ const A = Jn(o, c, x);
1021
+ P.push(M[A[0]], M[A[1]]);
860
1022
  }
861
1023
  if (O = [...O, {
862
1024
  placement: o,
863
- overflows: L
864
- }], !L.every((E) => E <= 0)) {
865
- var M, T;
866
- const E = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, $ = R[E];
867
- if ($ && (!(a === "alignment" ? y !== _($) : !1) || // We leave the current main axis only if every placement on that axis
1025
+ overflows: P
1026
+ }], !P.every((A) => A <= 0)) {
1027
+ var k, T;
1028
+ const A = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, $ = R[A];
1029
+ if ($ && (!(f === "alignment" ? w !== j($) : !1) || // We leave the current main axis only if every placement on that axis
868
1030
  // overflows the main axis.
869
- O.every((A) => _(A.placement) === y ? A.overflows[0] > 0 : !0)))
1031
+ O.every((E) => j(E.placement) === w ? E.overflows[0] > 0 : !0)))
870
1032
  return {
871
1033
  data: {
872
- index: E,
1034
+ index: A,
873
1035
  overflows: O
874
1036
  },
875
1037
  reset: {
876
1038
  placement: $
877
1039
  }
878
1040
  };
879
- let k = (T = O.filter((W) => W.overflows[0] <= 0).sort((W, A) => W.overflows[1] - A.overflows[1])[0]) == null ? void 0 : T.placement;
880
- if (!k)
1041
+ let _ = (T = O.filter((W) => W.overflows[0] <= 0).sort((W, E) => W.overflows[1] - E.overflows[1])[0]) == null ? void 0 : T.placement;
1042
+ if (!_)
881
1043
  switch (h) {
882
1044
  case "bestFit": {
883
- var D;
884
- const W = (D = O.filter((A) => {
1045
+ var N;
1046
+ const W = (N = O.filter((E) => {
885
1047
  if (C) {
886
- const N = _(A.placement);
887
- return N === y || // Create a bias to the `y` side axis due to horizontal
1048
+ const B = j(E.placement);
1049
+ return B === w || // Create a bias to the `y` side axis due to horizontal
888
1050
  // reading directions favoring greater width.
889
- N === "y";
1051
+ B === "y";
890
1052
  }
891
1053
  return !0;
892
- }).map((A) => [A.placement, A.overflows.filter((N) => N > 0).reduce((N, Z) => N + Z, 0)]).sort((A, N) => A[1] - N[1])[0]) == null ? void 0 : D[0];
893
- W && (k = W);
1054
+ }).map((E) => [E.placement, E.overflows.filter((B) => B > 0).reduce((B, U) => B + U, 0)]).sort((E, B) => E[1] - B[1])[0]) == null ? void 0 : N[0];
1055
+ W && (_ = W);
894
1056
  break;
895
1057
  }
896
1058
  case "initialPlacement":
897
- k = s;
1059
+ _ = a;
898
1060
  break;
899
1061
  }
900
- if (o !== k)
1062
+ if (o !== _)
901
1063
  return {
902
1064
  reset: {
903
- placement: k
1065
+ placement: _
904
1066
  }
905
1067
  };
906
1068
  }
@@ -908,7 +1070,7 @@ const Rn = async (t, e, n) => {
908
1070
  }
909
1071
  };
910
1072
  };
911
- function Ut(t, e) {
1073
+ function fe(t, e) {
912
1074
  return {
913
1075
  top: t.top - e.height,
914
1076
  right: t.right - e.width,
@@ -916,10 +1078,10 @@ function Ut(t, e) {
916
1078
  left: t.left - e.width
917
1079
  };
918
1080
  }
919
- function Gt(t) {
920
- return dn.some((e) => t[e] >= 0);
1081
+ function de(t) {
1082
+ return Zn.some((e) => t[e] >= 0);
921
1083
  }
922
- const On = function(t) {
1084
+ const ur = function(t) {
923
1085
  return t === void 0 && (t = {}), {
924
1086
  name: "hide",
925
1087
  options: t,
@@ -930,17 +1092,17 @@ const On = function(t) {
930
1092
  } = e, {
931
1093
  strategy: o = "referenceHidden",
932
1094
  ...i
933
- } = Y(t, e);
1095
+ } = K(t, e);
934
1096
  switch (o) {
935
1097
  case "referenceHidden": {
936
1098
  const c = await r.detectOverflow(e, {
937
1099
  ...i,
938
1100
  elementContext: "reference"
939
- }), s = Ut(c, n.reference);
1101
+ }), a = fe(c, n.reference);
940
1102
  return {
941
1103
  data: {
942
- referenceHiddenOffsets: s,
943
- referenceHidden: Gt(s)
1104
+ referenceHiddenOffsets: a,
1105
+ referenceHidden: de(a)
944
1106
  }
945
1107
  };
946
1108
  }
@@ -948,11 +1110,11 @@ const On = function(t) {
948
1110
  const c = await r.detectOverflow(e, {
949
1111
  ...i,
950
1112
  altBoundary: !0
951
- }), s = Ut(c, n.floating);
1113
+ }), a = fe(c, n.floating);
952
1114
  return {
953
1115
  data: {
954
- escapedOffsets: s,
955
- escaped: Gt(s)
1116
+ escapedOffsets: a,
1117
+ escaped: de(a)
956
1118
  }
957
1119
  };
958
1120
  }
@@ -961,35 +1123,35 @@ const On = function(t) {
961
1123
  }
962
1124
  }
963
1125
  };
964
- }, de = /* @__PURE__ */ new Set(["left", "top"]);
965
- async function Pn(t, e) {
1126
+ }, De = /* @__PURE__ */ new Set(["left", "top"]);
1127
+ async function fr(t, e) {
966
1128
  const {
967
1129
  placement: n,
968
1130
  platform: r,
969
1131
  elements: o
970
- } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c = q(n), s = ot(n), u = _(n) === "y", f = de.has(c) ? -1 : 1, l = i && u ? -1 : 1, a = Y(e, t);
1132
+ } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c = Z(n), a = at(n), l = j(n) === "y", s = De.has(c) ? -1 : 1, u = i && l ? -1 : 1, f = K(e, t);
971
1133
  let {
972
1134
  mainAxis: m,
973
1135
  crossAxis: h,
974
- alignmentAxis: v
975
- } = typeof a == "number" ? {
976
- mainAxis: a,
1136
+ alignmentAxis: p
1137
+ } = typeof f == "number" ? {
1138
+ mainAxis: f,
977
1139
  crossAxis: 0,
978
1140
  alignmentAxis: null
979
1141
  } : {
980
- mainAxis: a.mainAxis || 0,
981
- crossAxis: a.crossAxis || 0,
982
- alignmentAxis: a.alignmentAxis
1142
+ mainAxis: f.mainAxis || 0,
1143
+ crossAxis: f.crossAxis || 0,
1144
+ alignmentAxis: f.alignmentAxis
983
1145
  };
984
- return s && typeof v == "number" && (h = s === "end" ? v * -1 : v), u ? {
985
- x: h * l,
986
- y: m * f
1146
+ return a && typeof p == "number" && (h = a === "end" ? p * -1 : p), l ? {
1147
+ x: h * u,
1148
+ y: m * s
987
1149
  } : {
988
- x: m * f,
989
- y: h * l
1150
+ x: m * s,
1151
+ y: h * u
990
1152
  };
991
1153
  }
992
- const Mn = function(t) {
1154
+ const dr = function(t) {
993
1155
  return t === void 0 && (t = 0), {
994
1156
  name: "offset",
995
1157
  options: t,
@@ -999,19 +1161,19 @@ const Mn = function(t) {
999
1161
  x: o,
1000
1162
  y: i,
1001
1163
  placement: c,
1002
- middlewareData: s
1003
- } = e, u = await Pn(e, t);
1004
- return c === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
1005
- x: o + u.x,
1006
- y: i + u.y,
1164
+ middlewareData: a
1165
+ } = e, l = await fr(e, t);
1166
+ return c === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
1167
+ x: o + l.x,
1168
+ y: i + l.y,
1007
1169
  data: {
1008
- ...u,
1170
+ ...l,
1009
1171
  placement: c
1010
1172
  }
1011
1173
  };
1012
1174
  }
1013
1175
  };
1014
- }, kn = function(t) {
1176
+ }, hr = function(t) {
1015
1177
  return t === void 0 && (t = {}), {
1016
1178
  name: "shift",
1017
1179
  options: t,
@@ -1023,52 +1185,52 @@ const Mn = function(t) {
1023
1185
  platform: i
1024
1186
  } = e, {
1025
1187
  mainAxis: c = !0,
1026
- crossAxis: s = !1,
1027
- limiter: u = {
1028
- fn: (p) => {
1188
+ crossAxis: a = !1,
1189
+ limiter: l = {
1190
+ fn: (g) => {
1029
1191
  let {
1030
- x: y,
1031
- y: x
1032
- } = p;
1192
+ x: w,
1193
+ y
1194
+ } = g;
1033
1195
  return {
1034
- x: y,
1035
- y: x
1196
+ x: w,
1197
+ y
1036
1198
  };
1037
1199
  }
1038
1200
  },
1039
- ...f
1040
- } = Y(t, e), l = {
1201
+ ...s
1202
+ } = K(t, e), u = {
1041
1203
  x: n,
1042
1204
  y: r
1043
- }, a = await i.detectOverflow(e, f), m = _(q(o)), h = Nt(m);
1044
- let v = l[h], d = l[m];
1205
+ }, f = await i.detectOverflow(e, s), m = j(Z(o)), h = Kt(m);
1206
+ let p = u[h], d = u[m];
1045
1207
  if (c) {
1046
- const p = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", x = v + a[p], b = v - a[y];
1047
- v = Tt(x, v, b);
1208
+ const g = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", y = p + f[g], x = p - f[w];
1209
+ p = jt(y, p, x);
1048
1210
  }
1049
- if (s) {
1050
- const p = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", x = d + a[p], b = d - a[y];
1051
- d = Tt(x, d, b);
1211
+ if (a) {
1212
+ const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", y = d + f[g], x = d - f[w];
1213
+ d = jt(y, d, x);
1052
1214
  }
1053
- const g = u.fn({
1215
+ const v = l.fn({
1054
1216
  ...e,
1055
- [h]: v,
1217
+ [h]: p,
1056
1218
  [m]: d
1057
1219
  });
1058
1220
  return {
1059
- ...g,
1221
+ ...v,
1060
1222
  data: {
1061
- x: g.x - n,
1062
- y: g.y - r,
1223
+ x: v.x - n,
1224
+ y: v.y - r,
1063
1225
  enabled: {
1064
1226
  [h]: c,
1065
- [m]: s
1227
+ [m]: a
1066
1228
  }
1067
1229
  }
1068
1230
  };
1069
1231
  }
1070
1232
  };
1071
- }, Ln = function(t) {
1233
+ }, mr = function(t) {
1072
1234
  return t === void 0 && (t = {}), {
1073
1235
  options: t,
1074
1236
  fn(e) {
@@ -1079,15 +1241,15 @@ const Mn = function(t) {
1079
1241
  rects: i,
1080
1242
  middlewareData: c
1081
1243
  } = e, {
1082
- offset: s = 0,
1083
- mainAxis: u = !0,
1084
- crossAxis: f = !0
1085
- } = Y(t, e), l = {
1244
+ offset: a = 0,
1245
+ mainAxis: l = !0,
1246
+ crossAxis: s = !0
1247
+ } = K(t, e), u = {
1086
1248
  x: n,
1087
1249
  y: r
1088
- }, a = _(o), m = Nt(a);
1089
- let h = l[m], v = l[a];
1090
- const d = Y(s, e), g = typeof d == "number" ? {
1250
+ }, f = j(o), m = Kt(f);
1251
+ let h = u[m], p = u[f];
1252
+ const d = K(a, e), v = typeof d == "number" ? {
1091
1253
  mainAxis: d,
1092
1254
  crossAxis: 0
1093
1255
  } : {
@@ -1095,22 +1257,22 @@ const Mn = function(t) {
1095
1257
  crossAxis: 0,
1096
1258
  ...d
1097
1259
  };
1098
- if (u) {
1099
- const x = m === "y" ? "height" : "width", b = i.reference[m] - i.floating[x] + g.mainAxis, S = i.reference[m] + i.reference[x] - g.mainAxis;
1100
- h < b ? h = b : h > S && (h = S);
1260
+ if (l) {
1261
+ const y = m === "y" ? "height" : "width", x = i.reference[m] - i.floating[y] + v.mainAxis, S = i.reference[m] + i.reference[y] - v.mainAxis;
1262
+ h < x ? h = x : h > S && (h = S);
1101
1263
  }
1102
- if (f) {
1103
- var p, y;
1104
- const x = m === "y" ? "width" : "height", b = de.has(q(o)), S = i.reference[a] - i.floating[x] + (b && ((p = c.offset) == null ? void 0 : p[a]) || 0) + (b ? 0 : g.crossAxis), C = i.reference[a] + i.reference[x] + (b ? 0 : ((y = c.offset) == null ? void 0 : y[a]) || 0) - (b ? g.crossAxis : 0);
1105
- v < S ? v = S : v > C && (v = C);
1264
+ if (s) {
1265
+ var g, w;
1266
+ const y = m === "y" ? "width" : "height", x = De.has(Z(o)), S = i.reference[f] - i.floating[y] + (x && ((g = c.offset) == null ? void 0 : g[f]) || 0) + (x ? 0 : v.crossAxis), C = i.reference[f] + i.reference[y] + (x ? 0 : ((w = c.offset) == null ? void 0 : w[f]) || 0) - (x ? v.crossAxis : 0);
1267
+ p < S ? p = S : p > C && (p = C);
1106
1268
  }
1107
1269
  return {
1108
1270
  [m]: h,
1109
- [a]: v
1271
+ [f]: p
1110
1272
  };
1111
1273
  }
1112
1274
  };
1113
- }, Tn = function(t) {
1275
+ }, vr = function(t) {
1114
1276
  return t === void 0 && (t = {}), {
1115
1277
  name: "size",
1116
1278
  options: t,
@@ -1120,30 +1282,30 @@ const Mn = function(t) {
1120
1282
  placement: o,
1121
1283
  rects: i,
1122
1284
  platform: c,
1123
- elements: s
1285
+ elements: a
1124
1286
  } = e, {
1125
- apply: u = () => {
1287
+ apply: l = () => {
1126
1288
  },
1127
- ...f
1128
- } = Y(t, e), l = await c.detectOverflow(e, f), a = q(o), m = ot(o), h = _(o) === "y", {
1129
- width: v,
1289
+ ...s
1290
+ } = K(t, e), u = await c.detectOverflow(e, s), f = Z(o), m = at(o), h = j(o) === "y", {
1291
+ width: p,
1130
1292
  height: d
1131
1293
  } = i.floating;
1132
- let g, p;
1133
- a === "top" || a === "bottom" ? (g = a, p = m === (await (c.isRTL == null ? void 0 : c.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (p = a, g = m === "end" ? "top" : "bottom");
1134
- const y = d - l.top - l.bottom, x = v - l.left - l.right, b = U(d - l[g], y), S = U(v - l[p], x), C = !e.middlewareData.shift;
1135
- let R = b, P = S;
1136
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (P = x), (r = e.middlewareData.shift) != null && r.enabled.y && (R = y), C && !m) {
1137
- const O = B(l.left, 0), M = B(l.right, 0), T = B(l.top, 0), D = B(l.bottom, 0);
1138
- h ? P = v - 2 * (O !== 0 || M !== 0 ? O + M : B(l.left, l.right)) : R = d - 2 * (T !== 0 || D !== 0 ? T + D : B(l.top, l.bottom));
1294
+ let v, g;
1295
+ f === "top" || f === "bottom" ? (v = f, g = m === (await (c.isRTL == null ? void 0 : c.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = f, v = m === "end" ? "top" : "bottom");
1296
+ const w = d - u.top - u.bottom, y = p - u.left - u.right, x = Q(d - u[v], w), S = Q(p - u[g], y), C = !e.middlewareData.shift;
1297
+ let R = x, M = S;
1298
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (M = y), (r = e.middlewareData.shift) != null && r.enabled.y && (R = w), C && !m) {
1299
+ const O = F(u.left, 0), k = F(u.right, 0), T = F(u.top, 0), N = F(u.bottom, 0);
1300
+ h ? M = p - 2 * (O !== 0 || k !== 0 ? O + k : F(u.left, u.right)) : R = d - 2 * (T !== 0 || N !== 0 ? T + N : F(u.top, u.bottom));
1139
1301
  }
1140
- await u({
1302
+ await l({
1141
1303
  ...e,
1142
- availableWidth: P,
1304
+ availableWidth: M,
1143
1305
  availableHeight: R
1144
1306
  });
1145
- const L = await c.getDimensions(s.floating);
1146
- return v !== L.width || d !== L.height ? {
1307
+ const P = await c.getDimensions(a.floating);
1308
+ return p !== P.width || d !== P.height ? {
1147
1309
  reset: {
1148
1310
  rects: !0
1149
1311
  }
@@ -1151,49 +1313,49 @@ const Mn = function(t) {
1151
1313
  }
1152
1314
  };
1153
1315
  };
1154
- function bt() {
1316
+ function kt() {
1155
1317
  return typeof window < "u";
1156
1318
  }
1157
- function it(t) {
1158
- return he(t) ? (t.nodeName || "").toLowerCase() : "#document";
1319
+ function st(t) {
1320
+ return Ne(t) ? (t.nodeName || "").toLowerCase() : "#document";
1159
1321
  }
1160
- function F(t) {
1322
+ function H(t) {
1161
1323
  var e;
1162
1324
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
1163
1325
  }
1164
- function X(t) {
1326
+ function q(t) {
1165
1327
  var e;
1166
- return (e = (he(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
1328
+ return (e = (Ne(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
1167
1329
  }
1168
- function he(t) {
1169
- return bt() ? t instanceof Node || t instanceof F(t).Node : !1;
1330
+ function Ne(t) {
1331
+ return kt() ? t instanceof Node || t instanceof H(t).Node : !1;
1170
1332
  }
1171
- function V(t) {
1172
- return bt() ? t instanceof Element || t instanceof F(t).Element : !1;
1333
+ function I(t) {
1334
+ return kt() ? t instanceof Element || t instanceof H(t).Element : !1;
1173
1335
  }
1174
- function j(t) {
1175
- return bt() ? t instanceof HTMLElement || t instanceof F(t).HTMLElement : !1;
1336
+ function Y(t) {
1337
+ return kt() ? t instanceof HTMLElement || t instanceof H(t).HTMLElement : !1;
1176
1338
  }
1177
- function Kt(t) {
1178
- return !bt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof F(t).ShadowRoot;
1339
+ function he(t) {
1340
+ return !kt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof H(t).ShadowRoot;
1179
1341
  }
1180
- const Dn = /* @__PURE__ */ new Set(["inline", "contents"]);
1181
- function st(t) {
1342
+ const gr = /* @__PURE__ */ new Set(["inline", "contents"]);
1343
+ function dt(t) {
1182
1344
  const {
1183
1345
  overflow: e,
1184
1346
  overflowX: n,
1185
1347
  overflowY: r,
1186
1348
  display: o
1187
- } = H(t);
1188
- return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !Dn.has(o);
1349
+ } = V(t);
1350
+ return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !gr.has(o);
1189
1351
  }
1190
- const Wn = /* @__PURE__ */ new Set(["table", "td", "th"]);
1191
- function Nn(t) {
1192
- return Wn.has(it(t));
1352
+ const pr = /* @__PURE__ */ new Set(["table", "td", "th"]);
1353
+ function wr(t) {
1354
+ return pr.has(st(t));
1193
1355
  }
1194
- const Bn = [":popover-open", ":modal"];
1195
- function St(t) {
1196
- return Bn.some((e) => {
1356
+ const yr = [":popover-open", ":modal"];
1357
+ function _t(t) {
1358
+ return yr.some((e) => {
1197
1359
  try {
1198
1360
  return t.matches(e);
1199
1361
  } catch {
@@ -1201,34 +1363,34 @@ function St(t) {
1201
1363
  }
1202
1364
  });
1203
1365
  }
1204
- const Fn = ["transform", "translate", "scale", "rotate", "perspective"], Vn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Hn = ["paint", "layout", "strict", "content"];
1205
- function Vt(t) {
1206
- const e = Ht(), n = V(t) ? H(t) : t;
1207
- return Fn.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Vn.some((r) => (n.willChange || "").includes(r)) || Hn.some((r) => (n.contain || "").includes(r));
1366
+ const br = ["transform", "translate", "scale", "rotate", "perspective"], xr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Sr = ["paint", "layout", "strict", "content"];
1367
+ function Qt(t) {
1368
+ const e = Gt(), n = I(t) ? V(t) : t;
1369
+ return br.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || xr.some((r) => (n.willChange || "").includes(r)) || Sr.some((r) => (n.contain || "").includes(r));
1208
1370
  }
1209
- function $n(t) {
1371
+ function Cr(t) {
1210
1372
  let e = G(t);
1211
- for (; j(e) && !rt(e); ) {
1212
- if (Vt(e))
1373
+ for (; Y(e) && !ct(e); ) {
1374
+ if (Qt(e))
1213
1375
  return e;
1214
- if (St(e))
1376
+ if (_t(e))
1215
1377
  return null;
1216
1378
  e = G(e);
1217
1379
  }
1218
1380
  return null;
1219
1381
  }
1220
- function Ht() {
1382
+ function Gt() {
1221
1383
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1222
1384
  }
1223
- const In = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1224
- function rt(t) {
1225
- return In.has(it(t));
1385
+ const Rr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1386
+ function ct(t) {
1387
+ return Rr.has(st(t));
1226
1388
  }
1227
- function H(t) {
1228
- return F(t).getComputedStyle(t);
1389
+ function V(t) {
1390
+ return H(t).getComputedStyle(t);
1229
1391
  }
1230
- function Ct(t) {
1231
- return V(t) ? {
1392
+ function Lt(t) {
1393
+ return I(t) ? {
1232
1394
  scrollLeft: t.scrollLeft,
1233
1395
  scrollTop: t.scrollTop
1234
1396
  } : {
@@ -1237,188 +1399,188 @@ function Ct(t) {
1237
1399
  };
1238
1400
  }
1239
1401
  function G(t) {
1240
- if (it(t) === "html")
1402
+ if (st(t) === "html")
1241
1403
  return t;
1242
1404
  const e = (
1243
1405
  // Step into the shadow DOM of the parent of a slotted node.
1244
1406
  t.assignedSlot || // DOM Element detected.
1245
1407
  t.parentNode || // ShadowRoot detected.
1246
- Kt(t) && t.host || // Fallback.
1247
- X(t)
1408
+ he(t) && t.host || // Fallback.
1409
+ q(t)
1248
1410
  );
1249
- return Kt(e) ? e.host : e;
1411
+ return he(e) ? e.host : e;
1250
1412
  }
1251
- function me(t) {
1413
+ function We(t) {
1252
1414
  const e = G(t);
1253
- return rt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : j(e) && st(e) ? e : me(e);
1415
+ return ct(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && dt(e) ? e : We(e);
1254
1416
  }
1255
- function ct(t, e, n) {
1417
+ function ft(t, e, n) {
1256
1418
  var r;
1257
1419
  e === void 0 && (e = []), n === void 0 && (n = !0);
1258
- const o = me(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), c = F(o);
1420
+ const o = We(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), c = H(o);
1259
1421
  if (i) {
1260
- const s = Wt(c);
1261
- return e.concat(c, c.visualViewport || [], st(o) ? o : [], s && n ? ct(s) : []);
1422
+ const a = Yt(c);
1423
+ return e.concat(c, c.visualViewport || [], dt(o) ? o : [], a && n ? ft(a) : []);
1262
1424
  }
1263
- return e.concat(o, ct(o, [], n));
1425
+ return e.concat(o, ft(o, [], n));
1264
1426
  }
1265
- function Wt(t) {
1427
+ function Yt(t) {
1266
1428
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
1267
1429
  }
1268
- function ge(t) {
1269
- const e = H(t);
1430
+ function Be(t) {
1431
+ const e = V(t);
1270
1432
  let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
1271
- const o = j(t), i = o ? t.offsetWidth : n, c = o ? t.offsetHeight : r, s = vt(n) !== i || vt(r) !== c;
1272
- return s && (n = i, r = c), {
1433
+ const o = Y(t), i = o ? t.offsetWidth : n, c = o ? t.offsetHeight : r, a = Ct(n) !== i || Ct(r) !== c;
1434
+ return a && (n = i, r = c), {
1273
1435
  width: n,
1274
1436
  height: r,
1275
- $: s
1437
+ $: a
1276
1438
  };
1277
1439
  }
1278
- function $t(t) {
1279
- return V(t) ? t : t.contextElement;
1440
+ function Jt(t) {
1441
+ return I(t) ? t : t.contextElement;
1280
1442
  }
1281
- function nt(t) {
1282
- const e = $t(t);
1283
- if (!j(e))
1284
- return z(1);
1443
+ function it(t) {
1444
+ const e = Jt(t);
1445
+ if (!Y(e))
1446
+ return X(1);
1285
1447
  const n = e.getBoundingClientRect(), {
1286
1448
  width: r,
1287
1449
  height: o,
1288
1450
  $: i
1289
- } = ge(e);
1290
- let c = (i ? vt(n.width) : n.width) / r, s = (i ? vt(n.height) : n.height) / o;
1291
- return (!c || !Number.isFinite(c)) && (c = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1451
+ } = Be(e);
1452
+ let c = (i ? Ct(n.width) : n.width) / r, a = (i ? Ct(n.height) : n.height) / o;
1453
+ return (!c || !Number.isFinite(c)) && (c = 1), (!a || !Number.isFinite(a)) && (a = 1), {
1292
1454
  x: c,
1293
- y: s
1455
+ y: a
1294
1456
  };
1295
1457
  }
1296
- const _n = /* @__PURE__ */ z(0);
1297
- function ve(t) {
1298
- const e = F(t);
1299
- return !Ht() || !e.visualViewport ? _n : {
1458
+ const Er = /* @__PURE__ */ X(0);
1459
+ function Fe(t) {
1460
+ const e = H(t);
1461
+ return !Gt() || !e.visualViewport ? Er : {
1300
1462
  x: e.visualViewport.offsetLeft,
1301
1463
  y: e.visualViewport.offsetTop
1302
1464
  };
1303
1465
  }
1304
- function zn(t, e, n) {
1305
- return e === void 0 && (e = !1), !n || e && n !== F(t) ? !1 : e;
1466
+ function Ar(t, e, n) {
1467
+ return e === void 0 && (e = !1), !n || e && n !== H(t) ? !1 : e;
1306
1468
  }
1307
- function K(t, e, n, r) {
1469
+ function tt(t, e, n, r) {
1308
1470
  e === void 0 && (e = !1), n === void 0 && (n = !1);
1309
- const o = t.getBoundingClientRect(), i = $t(t);
1310
- let c = z(1);
1311
- e && (r ? V(r) && (c = nt(r)) : c = nt(t));
1312
- const s = zn(i, n, r) ? ve(i) : z(0);
1313
- let u = (o.left + s.x) / c.x, f = (o.top + s.y) / c.y, l = o.width / c.x, a = o.height / c.y;
1471
+ const o = t.getBoundingClientRect(), i = Jt(t);
1472
+ let c = X(1);
1473
+ e && (r ? I(r) && (c = it(r)) : c = it(t));
1474
+ const a = Ar(i, n, r) ? Fe(i) : X(0);
1475
+ let l = (o.left + a.x) / c.x, s = (o.top + a.y) / c.y, u = o.width / c.x, f = o.height / c.y;
1314
1476
  if (i) {
1315
- const m = F(i), h = r && V(r) ? F(r) : r;
1316
- let v = m, d = Wt(v);
1317
- for (; d && r && h !== v; ) {
1318
- const g = nt(d), p = d.getBoundingClientRect(), y = H(d), x = p.left + (d.clientLeft + parseFloat(y.paddingLeft)) * g.x, b = p.top + (d.clientTop + parseFloat(y.paddingTop)) * g.y;
1319
- u *= g.x, f *= g.y, l *= g.x, a *= g.y, u += x, f += b, v = F(d), d = Wt(v);
1477
+ const m = H(i), h = r && I(r) ? H(r) : r;
1478
+ let p = m, d = Yt(p);
1479
+ for (; d && r && h !== p; ) {
1480
+ const v = it(d), g = d.getBoundingClientRect(), w = V(d), y = g.left + (d.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = g.top + (d.clientTop + parseFloat(w.paddingTop)) * v.y;
1481
+ l *= v.x, s *= v.y, u *= v.x, f *= v.y, l += y, s += x, p = H(d), d = Yt(p);
1320
1482
  }
1321
1483
  }
1322
- return wt({
1323
- width: l,
1324
- height: a,
1325
- x: u,
1326
- y: f
1484
+ return Et({
1485
+ width: u,
1486
+ height: f,
1487
+ x: l,
1488
+ y: s
1327
1489
  });
1328
1490
  }
1329
- function Rt(t, e) {
1330
- const n = Ct(t).scrollLeft;
1331
- return e ? e.left + n : K(X(t)).left + n;
1491
+ function Pt(t, e) {
1492
+ const n = Lt(t).scrollLeft;
1493
+ return e ? e.left + n : tt(q(t)).left + n;
1332
1494
  }
1333
- function pe(t, e) {
1334
- const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Rt(t, n), o = n.top + e.scrollTop;
1495
+ function He(t, e) {
1496
+ const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Pt(t, n), o = n.top + e.scrollTop;
1335
1497
  return {
1336
1498
  x: r,
1337
1499
  y: o
1338
1500
  };
1339
1501
  }
1340
- function jn(t) {
1502
+ function Or(t) {
1341
1503
  let {
1342
1504
  elements: e,
1343
1505
  rect: n,
1344
1506
  offsetParent: r,
1345
1507
  strategy: o
1346
1508
  } = t;
1347
- const i = o === "fixed", c = X(r), s = e ? St(e.floating) : !1;
1348
- if (r === c || s && i)
1509
+ const i = o === "fixed", c = q(r), a = e ? _t(e.floating) : !1;
1510
+ if (r === c || a && i)
1349
1511
  return n;
1350
- let u = {
1512
+ let l = {
1351
1513
  scrollLeft: 0,
1352
1514
  scrollTop: 0
1353
- }, f = z(1);
1354
- const l = z(0), a = j(r);
1355
- if ((a || !a && !i) && ((it(r) !== "body" || st(c)) && (u = Ct(r)), j(r))) {
1356
- const h = K(r);
1357
- f = nt(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
1515
+ }, s = X(1);
1516
+ const u = X(0), f = Y(r);
1517
+ if ((f || !f && !i) && ((st(r) !== "body" || dt(c)) && (l = Lt(r)), Y(r))) {
1518
+ const h = tt(r);
1519
+ s = it(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
1358
1520
  }
1359
- const m = c && !a && !i ? pe(c, u) : z(0);
1521
+ const m = c && !f && !i ? He(c, l) : X(0);
1360
1522
  return {
1361
- width: n.width * f.x,
1362
- height: n.height * f.y,
1363
- x: n.x * f.x - u.scrollLeft * f.x + l.x + m.x,
1364
- y: n.y * f.y - u.scrollTop * f.y + l.y + m.y
1523
+ width: n.width * s.x,
1524
+ height: n.height * s.y,
1525
+ x: n.x * s.x - l.scrollLeft * s.x + u.x + m.x,
1526
+ y: n.y * s.y - l.scrollTop * s.y + u.y + m.y
1365
1527
  };
1366
1528
  }
1367
- function Xn(t) {
1529
+ function Mr(t) {
1368
1530
  return Array.from(t.getClientRects());
1369
1531
  }
1370
- function Yn(t) {
1371
- const e = X(t), n = Ct(t), r = t.ownerDocument.body, o = B(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = B(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
1372
- let c = -n.scrollLeft + Rt(t);
1373
- const s = -n.scrollTop;
1374
- return H(r).direction === "rtl" && (c += B(e.clientWidth, r.clientWidth) - o), {
1532
+ function kr(t) {
1533
+ const e = q(t), n = Lt(t), r = t.ownerDocument.body, o = F(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = F(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
1534
+ let c = -n.scrollLeft + Pt(t);
1535
+ const a = -n.scrollTop;
1536
+ return V(r).direction === "rtl" && (c += F(e.clientWidth, r.clientWidth) - o), {
1375
1537
  width: o,
1376
1538
  height: i,
1377
1539
  x: c,
1378
- y: s
1540
+ y: a
1379
1541
  };
1380
1542
  }
1381
- const Qt = 25;
1382
- function qn(t, e) {
1383
- const n = F(t), r = X(t), o = n.visualViewport;
1384
- let i = r.clientWidth, c = r.clientHeight, s = 0, u = 0;
1543
+ const me = 25;
1544
+ function _r(t, e) {
1545
+ const n = H(t), r = q(t), o = n.visualViewport;
1546
+ let i = r.clientWidth, c = r.clientHeight, a = 0, l = 0;
1385
1547
  if (o) {
1386
1548
  i = o.width, c = o.height;
1387
- const l = Ht();
1388
- (!l || l && e === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
1549
+ const u = Gt();
1550
+ (!u || u && e === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
1389
1551
  }
1390
- const f = Rt(r);
1391
- if (f <= 0) {
1392
- const l = r.ownerDocument, a = l.body, m = getComputedStyle(a), h = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(r.clientWidth - a.clientWidth - h);
1393
- v <= Qt && (i -= v);
1394
- } else f <= Qt && (i += f);
1552
+ const s = Pt(r);
1553
+ if (s <= 0) {
1554
+ const u = r.ownerDocument, f = u.body, m = getComputedStyle(f), h = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(r.clientWidth - f.clientWidth - h);
1555
+ p <= me && (i -= p);
1556
+ } else s <= me && (i += s);
1395
1557
  return {
1396
1558
  width: i,
1397
1559
  height: c,
1398
- x: s,
1399
- y: u
1560
+ x: a,
1561
+ y: l
1400
1562
  };
1401
1563
  }
1402
- const Zn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1403
- function Un(t, e) {
1404
- const n = K(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = j(t) ? nt(t) : z(1), c = t.clientWidth * i.x, s = t.clientHeight * i.y, u = o * i.x, f = r * i.y;
1564
+ const Lr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1565
+ function Pr(t, e) {
1566
+ const n = tt(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = Y(t) ? it(t) : X(1), c = t.clientWidth * i.x, a = t.clientHeight * i.y, l = o * i.x, s = r * i.y;
1405
1567
  return {
1406
1568
  width: c,
1407
- height: s,
1408
- x: u,
1409
- y: f
1569
+ height: a,
1570
+ x: l,
1571
+ y: s
1410
1572
  };
1411
1573
  }
1412
- function Jt(t, e, n) {
1574
+ function ve(t, e, n) {
1413
1575
  let r;
1414
1576
  if (e === "viewport")
1415
- r = qn(t, n);
1577
+ r = _r(t, n);
1416
1578
  else if (e === "document")
1417
- r = Yn(X(t));
1418
- else if (V(e))
1419
- r = Un(e, n);
1579
+ r = kr(q(t));
1580
+ else if (I(e))
1581
+ r = Pr(e, n);
1420
1582
  else {
1421
- const o = ve(t);
1583
+ const o = Fe(t);
1422
1584
  r = {
1423
1585
  x: e.x - o.x,
1424
1586
  y: e.y - o.y,
@@ -1426,110 +1588,110 @@ function Jt(t, e, n) {
1426
1588
  height: e.height
1427
1589
  };
1428
1590
  }
1429
- return wt(r);
1591
+ return Et(r);
1430
1592
  }
1431
- function we(t, e) {
1593
+ function Ie(t, e) {
1432
1594
  const n = G(t);
1433
- return n === e || !V(n) || rt(n) ? !1 : H(n).position === "fixed" || we(n, e);
1595
+ return n === e || !I(n) || ct(n) ? !1 : V(n).position === "fixed" || Ie(n, e);
1434
1596
  }
1435
- function Gn(t, e) {
1597
+ function Tr(t, e) {
1436
1598
  const n = e.get(t);
1437
1599
  if (n)
1438
1600
  return n;
1439
- let r = ct(t, [], !1).filter((s) => V(s) && it(s) !== "body"), o = null;
1440
- const i = H(t).position === "fixed";
1601
+ let r = ft(t, [], !1).filter((a) => I(a) && st(a) !== "body"), o = null;
1602
+ const i = V(t).position === "fixed";
1441
1603
  let c = i ? G(t) : t;
1442
- for (; V(c) && !rt(c); ) {
1443
- const s = H(c), u = Vt(c);
1444
- !u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && Zn.has(o.position) || st(c) && !u && we(t, c)) ? r = r.filter((l) => l !== c) : o = s, c = G(c);
1604
+ for (; I(c) && !ct(c); ) {
1605
+ const a = V(c), l = Qt(c);
1606
+ !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && Lr.has(o.position) || dt(c) && !l && Ie(t, c)) ? r = r.filter((u) => u !== c) : o = a, c = G(c);
1445
1607
  }
1446
1608
  return e.set(t, r), r;
1447
1609
  }
1448
- function Kn(t) {
1610
+ function Dr(t) {
1449
1611
  let {
1450
1612
  element: e,
1451
1613
  boundary: n,
1452
1614
  rootBoundary: r,
1453
1615
  strategy: o
1454
1616
  } = t;
1455
- const c = [...n === "clippingAncestors" ? St(e) ? [] : Gn(e, this._c) : [].concat(n), r], s = c[0], u = c.reduce((f, l) => {
1456
- const a = Jt(e, l, o);
1457
- return f.top = B(a.top, f.top), f.right = U(a.right, f.right), f.bottom = U(a.bottom, f.bottom), f.left = B(a.left, f.left), f;
1458
- }, Jt(e, s, o));
1617
+ const c = [...n === "clippingAncestors" ? _t(e) ? [] : Tr(e, this._c) : [].concat(n), r], a = c[0], l = c.reduce((s, u) => {
1618
+ const f = ve(e, u, o);
1619
+ return s.top = F(f.top, s.top), s.right = Q(f.right, s.right), s.bottom = Q(f.bottom, s.bottom), s.left = F(f.left, s.left), s;
1620
+ }, ve(e, a, o));
1459
1621
  return {
1460
- width: u.right - u.left,
1461
- height: u.bottom - u.top,
1462
- x: u.left,
1463
- y: u.top
1622
+ width: l.right - l.left,
1623
+ height: l.bottom - l.top,
1624
+ x: l.left,
1625
+ y: l.top
1464
1626
  };
1465
1627
  }
1466
- function Qn(t) {
1628
+ function Nr(t) {
1467
1629
  const {
1468
1630
  width: e,
1469
1631
  height: n
1470
- } = ge(t);
1632
+ } = Be(t);
1471
1633
  return {
1472
1634
  width: e,
1473
1635
  height: n
1474
1636
  };
1475
1637
  }
1476
- function Jn(t, e, n) {
1477
- const r = j(e), o = X(e), i = n === "fixed", c = K(t, !0, i, e);
1478
- let s = {
1638
+ function Wr(t, e, n) {
1639
+ const r = Y(e), o = q(e), i = n === "fixed", c = tt(t, !0, i, e);
1640
+ let a = {
1479
1641
  scrollLeft: 0,
1480
1642
  scrollTop: 0
1481
1643
  };
1482
- const u = z(0);
1483
- function f() {
1484
- u.x = Rt(o);
1644
+ const l = X(0);
1645
+ function s() {
1646
+ l.x = Pt(o);
1485
1647
  }
1486
1648
  if (r || !r && !i)
1487
- if ((it(e) !== "body" || st(o)) && (s = Ct(e)), r) {
1488
- const h = K(e, !0, i, e);
1489
- u.x = h.x + e.clientLeft, u.y = h.y + e.clientTop;
1490
- } else o && f();
1491
- i && !r && o && f();
1492
- const l = o && !r && !i ? pe(o, s) : z(0), a = c.left + s.scrollLeft - u.x - l.x, m = c.top + s.scrollTop - u.y - l.y;
1649
+ if ((st(e) !== "body" || dt(o)) && (a = Lt(e)), r) {
1650
+ const h = tt(e, !0, i, e);
1651
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
1652
+ } else o && s();
1653
+ i && !r && o && s();
1654
+ const u = o && !r && !i ? He(o, a) : X(0), f = c.left + a.scrollLeft - l.x - u.x, m = c.top + a.scrollTop - l.y - u.y;
1493
1655
  return {
1494
- x: a,
1656
+ x: f,
1495
1657
  y: m,
1496
1658
  width: c.width,
1497
1659
  height: c.height
1498
1660
  };
1499
1661
  }
1500
- function Mt(t) {
1501
- return H(t).position === "static";
1662
+ function Bt(t) {
1663
+ return V(t).position === "static";
1502
1664
  }
1503
- function te(t, e) {
1504
- if (!j(t) || H(t).position === "fixed")
1665
+ function ge(t, e) {
1666
+ if (!Y(t) || V(t).position === "fixed")
1505
1667
  return null;
1506
1668
  if (e)
1507
1669
  return e(t);
1508
1670
  let n = t.offsetParent;
1509
- return X(t) === n && (n = n.ownerDocument.body), n;
1671
+ return q(t) === n && (n = n.ownerDocument.body), n;
1510
1672
  }
1511
- function ye(t, e) {
1512
- const n = F(t);
1513
- if (St(t))
1673
+ function Ve(t, e) {
1674
+ const n = H(t);
1675
+ if (_t(t))
1514
1676
  return n;
1515
- if (!j(t)) {
1677
+ if (!Y(t)) {
1516
1678
  let o = G(t);
1517
- for (; o && !rt(o); ) {
1518
- if (V(o) && !Mt(o))
1679
+ for (; o && !ct(o); ) {
1680
+ if (I(o) && !Bt(o))
1519
1681
  return o;
1520
1682
  o = G(o);
1521
1683
  }
1522
1684
  return n;
1523
1685
  }
1524
- let r = te(t, e);
1525
- for (; r && Nn(r) && Mt(r); )
1526
- r = te(r, e);
1527
- return r && rt(r) && Mt(r) && !Vt(r) ? n : r || $n(t) || n;
1686
+ let r = ge(t, e);
1687
+ for (; r && wr(r) && Bt(r); )
1688
+ r = ge(r, e);
1689
+ return r && ct(r) && Bt(r) && !Qt(r) ? n : r || Cr(t) || n;
1528
1690
  }
1529
- const tr = async function(t) {
1530
- const e = this.getOffsetParent || ye, n = this.getDimensions, r = await n(t.floating);
1691
+ const Br = async function(t) {
1692
+ const e = this.getOffsetParent || Ve, n = this.getDimensions, r = await n(t.floating);
1531
1693
  return {
1532
- reference: Jn(t.reference, await e(t.floating), t.strategy),
1694
+ reference: Wr(t.reference, await e(t.floating), t.strategy),
1533
1695
  floating: {
1534
1696
  x: 0,
1535
1697
  y: 0,
@@ -1538,122 +1700,122 @@ const tr = async function(t) {
1538
1700
  }
1539
1701
  };
1540
1702
  };
1541
- function er(t) {
1542
- return H(t).direction === "rtl";
1543
- }
1544
- const nr = {
1545
- convertOffsetParentRelativeRectToViewportRelativeRect: jn,
1546
- getDocumentElement: X,
1547
- getClippingRect: Kn,
1548
- getOffsetParent: ye,
1549
- getElementRects: tr,
1550
- getClientRects: Xn,
1551
- getDimensions: Qn,
1552
- getScale: nt,
1553
- isElement: V,
1554
- isRTL: er
1703
+ function Fr(t) {
1704
+ return V(t).direction === "rtl";
1705
+ }
1706
+ const Hr = {
1707
+ convertOffsetParentRelativeRectToViewportRelativeRect: Or,
1708
+ getDocumentElement: q,
1709
+ getClippingRect: Dr,
1710
+ getOffsetParent: Ve,
1711
+ getElementRects: Br,
1712
+ getClientRects: Mr,
1713
+ getDimensions: Nr,
1714
+ getScale: it,
1715
+ isElement: I,
1716
+ isRTL: Fr
1555
1717
  };
1556
- function xe(t, e) {
1718
+ function $e(t, e) {
1557
1719
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1558
1720
  }
1559
- function rr(t, e) {
1721
+ function Ir(t, e) {
1560
1722
  let n = null, r;
1561
- const o = X(t);
1723
+ const o = q(t);
1562
1724
  function i() {
1563
- var s;
1564
- clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1725
+ var a;
1726
+ clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
1565
1727
  }
1566
- function c(s, u) {
1567
- s === void 0 && (s = !1), u === void 0 && (u = 1), i();
1568
- const f = t.getBoundingClientRect(), {
1569
- left: l,
1570
- top: a,
1728
+ function c(a, l) {
1729
+ a === void 0 && (a = !1), l === void 0 && (l = 1), i();
1730
+ const s = t.getBoundingClientRect(), {
1731
+ left: u,
1732
+ top: f,
1571
1733
  width: m,
1572
1734
  height: h
1573
- } = f;
1574
- if (s || e(), !m || !h)
1735
+ } = s;
1736
+ if (a || e(), !m || !h)
1575
1737
  return;
1576
- const v = dt(a), d = dt(o.clientWidth - (l + m)), g = dt(o.clientHeight - (a + h)), p = dt(l), x = {
1577
- rootMargin: -v + "px " + -d + "px " + -g + "px " + -p + "px",
1578
- threshold: B(0, U(1, u)) || 1
1738
+ const p = wt(f), d = wt(o.clientWidth - (u + m)), v = wt(o.clientHeight - (f + h)), g = wt(u), y = {
1739
+ rootMargin: -p + "px " + -d + "px " + -v + "px " + -g + "px",
1740
+ threshold: F(0, Q(1, l)) || 1
1579
1741
  };
1580
- let b = !0;
1742
+ let x = !0;
1581
1743
  function S(C) {
1582
1744
  const R = C[0].intersectionRatio;
1583
- if (R !== u) {
1584
- if (!b)
1745
+ if (R !== l) {
1746
+ if (!x)
1585
1747
  return c();
1586
1748
  R ? c(!1, R) : r = setTimeout(() => {
1587
1749
  c(!1, 1e-7);
1588
1750
  }, 1e3);
1589
1751
  }
1590
- R === 1 && !xe(f, t.getBoundingClientRect()) && c(), b = !1;
1752
+ R === 1 && !$e(s, t.getBoundingClientRect()) && c(), x = !1;
1591
1753
  }
1592
1754
  try {
1593
1755
  n = new IntersectionObserver(S, {
1594
- ...x,
1756
+ ...y,
1595
1757
  // Handle <iframe>s
1596
1758
  root: o.ownerDocument
1597
1759
  });
1598
1760
  } catch {
1599
- n = new IntersectionObserver(S, x);
1761
+ n = new IntersectionObserver(S, y);
1600
1762
  }
1601
1763
  n.observe(t);
1602
1764
  }
1603
1765
  return c(!0), i;
1604
1766
  }
1605
- function vr(t, e, n, r) {
1767
+ function to(t, e, n, r) {
1606
1768
  r === void 0 && (r = {});
1607
1769
  const {
1608
1770
  ancestorScroll: o = !0,
1609
1771
  ancestorResize: i = !0,
1610
1772
  elementResize: c = typeof ResizeObserver == "function",
1611
- layoutShift: s = typeof IntersectionObserver == "function",
1612
- animationFrame: u = !1
1613
- } = r, f = $t(t), l = o || i ? [...f ? ct(f) : [], ...ct(e)] : [];
1614
- l.forEach((p) => {
1615
- o && p.addEventListener("scroll", n, {
1773
+ layoutShift: a = typeof IntersectionObserver == "function",
1774
+ animationFrame: l = !1
1775
+ } = r, s = Jt(t), u = o || i ? [...s ? ft(s) : [], ...ft(e)] : [];
1776
+ u.forEach((g) => {
1777
+ o && g.addEventListener("scroll", n, {
1616
1778
  passive: !0
1617
- }), i && p.addEventListener("resize", n);
1779
+ }), i && g.addEventListener("resize", n);
1618
1780
  });
1619
- const a = f && s ? rr(f, n) : null;
1781
+ const f = s && a ? Ir(s, n) : null;
1620
1782
  let m = -1, h = null;
1621
- c && (h = new ResizeObserver((p) => {
1622
- let [y] = p;
1623
- y && y.target === f && h && (h.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1624
- var x;
1625
- (x = h) == null || x.observe(e);
1783
+ c && (h = new ResizeObserver((g) => {
1784
+ let [w] = g;
1785
+ w && w.target === s && h && (h.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1786
+ var y;
1787
+ (y = h) == null || y.observe(e);
1626
1788
  })), n();
1627
- }), f && !u && h.observe(f), h.observe(e));
1628
- let v, d = u ? K(t) : null;
1629
- u && g();
1630
- function g() {
1631
- const p = K(t);
1632
- d && !xe(d, p) && n(), d = p, v = requestAnimationFrame(g);
1789
+ }), s && !l && h.observe(s), h.observe(e));
1790
+ let p, d = l ? tt(t) : null;
1791
+ l && v();
1792
+ function v() {
1793
+ const g = tt(t);
1794
+ d && !$e(d, g) && n(), d = g, p = requestAnimationFrame(v);
1633
1795
  }
1634
1796
  return n(), () => {
1635
- var p;
1636
- l.forEach((y) => {
1637
- o && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
1638
- }), a == null || a(), (p = h) == null || p.disconnect(), h = null, u && cancelAnimationFrame(v);
1797
+ var g;
1798
+ u.forEach((w) => {
1799
+ o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1800
+ }), f == null || f(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(p);
1639
1801
  };
1640
1802
  }
1641
- const or = Mn, ir = kn, cr = En, sr = Tn, ar = On, ee = An, lr = Ln, fr = (t, e, n) => {
1803
+ const Vr = dr, $r = hr, zr = lr, jr = vr, Xr = ur, pe = sr, Yr = mr, qr = (t, e, n) => {
1642
1804
  const r = /* @__PURE__ */ new Map(), o = {
1643
- platform: nr,
1805
+ platform: Hr,
1644
1806
  ...n
1645
1807
  }, i = {
1646
1808
  ...o.platform,
1647
1809
  _c: r
1648
1810
  };
1649
- return Rn(t, e, {
1811
+ return ar(t, e, {
1650
1812
  ...o,
1651
1813
  platform: i
1652
1814
  });
1653
1815
  };
1654
- var ur = typeof document < "u", dr = function() {
1655
- }, gt = ur ? Ce : dr;
1656
- function yt(t, e) {
1816
+ var Kr = typeof document < "u", Zr = function() {
1817
+ }, xt = Kr ? be : Zr;
1818
+ function At(t, e) {
1657
1819
  if (t === e)
1658
1820
  return !0;
1659
1821
  if (typeof t != typeof e)
@@ -1665,7 +1827,7 @@ function yt(t, e) {
1665
1827
  if (Array.isArray(t)) {
1666
1828
  if (n = t.length, n !== e.length) return !1;
1667
1829
  for (r = n; r-- !== 0; )
1668
- if (!yt(t[r], e[r]))
1830
+ if (!At(t[r], e[r]))
1669
1831
  return !1;
1670
1832
  return !0;
1671
1833
  }
@@ -1676,27 +1838,27 @@ function yt(t, e) {
1676
1838
  return !1;
1677
1839
  for (r = n; r-- !== 0; ) {
1678
1840
  const i = o[r];
1679
- if (!(i === "_owner" && t.$$typeof) && !yt(t[i], e[i]))
1841
+ if (!(i === "_owner" && t.$$typeof) && !At(t[i], e[i]))
1680
1842
  return !1;
1681
1843
  }
1682
1844
  return !0;
1683
1845
  }
1684
1846
  return t !== t && e !== e;
1685
1847
  }
1686
- function be(t) {
1848
+ function ze(t) {
1687
1849
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1688
1850
  }
1689
- function ne(t, e) {
1690
- const n = be(t);
1851
+ function we(t, e) {
1852
+ const n = ze(t);
1691
1853
  return Math.round(e * n) / n;
1692
1854
  }
1693
- function kt(t) {
1694
- const e = w.useRef(t);
1695
- return gt(() => {
1855
+ function Ft(t) {
1856
+ const e = b.useRef(t);
1857
+ return xt(() => {
1696
1858
  e.current = t;
1697
1859
  }), e;
1698
1860
  }
1699
- function pr(t) {
1861
+ function eo(t) {
1700
1862
  t === void 0 && (t = {});
1701
1863
  const {
1702
1864
  placement: e = "bottom",
@@ -1707,98 +1869,98 @@ function pr(t) {
1707
1869
  reference: i,
1708
1870
  floating: c
1709
1871
  } = {},
1710
- transform: s = !0,
1711
- whileElementsMounted: u,
1712
- open: f
1713
- } = t, [l, a] = w.useState({
1872
+ transform: a = !0,
1873
+ whileElementsMounted: l,
1874
+ open: s
1875
+ } = t, [u, f] = b.useState({
1714
1876
  x: 0,
1715
1877
  y: 0,
1716
1878
  strategy: n,
1717
1879
  placement: e,
1718
1880
  middlewareData: {},
1719
1881
  isPositioned: !1
1720
- }), [m, h] = w.useState(r);
1721
- yt(m, r) || h(r);
1722
- const [v, d] = w.useState(null), [g, p] = w.useState(null), y = w.useCallback((A) => {
1723
- A !== C.current && (C.current = A, d(A));
1724
- }, []), x = w.useCallback((A) => {
1725
- A !== R.current && (R.current = A, p(A));
1726
- }, []), b = i || v, S = c || g, C = w.useRef(null), R = w.useRef(null), P = w.useRef(l), L = u != null, O = kt(u), M = kt(o), T = kt(f), D = w.useCallback(() => {
1882
+ }), [m, h] = b.useState(r);
1883
+ At(m, r) || h(r);
1884
+ const [p, d] = b.useState(null), [v, g] = b.useState(null), w = b.useCallback((E) => {
1885
+ E !== C.current && (C.current = E, d(E));
1886
+ }, []), y = b.useCallback((E) => {
1887
+ E !== R.current && (R.current = E, g(E));
1888
+ }, []), x = i || p, S = c || v, C = b.useRef(null), R = b.useRef(null), M = b.useRef(u), P = l != null, O = Ft(l), k = Ft(o), T = Ft(s), N = b.useCallback(() => {
1727
1889
  if (!C.current || !R.current)
1728
1890
  return;
1729
- const A = {
1891
+ const E = {
1730
1892
  placement: e,
1731
1893
  strategy: n,
1732
1894
  middleware: m
1733
1895
  };
1734
- M.current && (A.platform = M.current), fr(C.current, R.current, A).then((N) => {
1735
- const Z = {
1736
- ...N,
1896
+ k.current && (E.platform = k.current), qr(C.current, R.current, E).then((B) => {
1897
+ const U = {
1898
+ ...B,
1737
1899
  // The floating element's position may be recomputed while it's closed
1738
1900
  // but still mounted (such as when transitioning out). To ensure
1739
1901
  // `isPositioned` will be `false` initially on the next open, avoid
1740
1902
  // setting it to `true` when `open === false` (must be specified).
1741
1903
  isPositioned: T.current !== !1
1742
1904
  };
1743
- E.current && !yt(P.current, Z) && (P.current = Z, Re.flushSync(() => {
1744
- a(Z);
1905
+ A.current && !At(M.current, U) && (M.current = U, Ye.flushSync(() => {
1906
+ f(U);
1745
1907
  }));
1746
1908
  });
1747
- }, [m, e, n, M, T]);
1748
- gt(() => {
1749
- f === !1 && P.current.isPositioned && (P.current.isPositioned = !1, a((A) => ({
1750
- ...A,
1909
+ }, [m, e, n, k, T]);
1910
+ xt(() => {
1911
+ s === !1 && M.current.isPositioned && (M.current.isPositioned = !1, f((E) => ({
1912
+ ...E,
1751
1913
  isPositioned: !1
1752
1914
  })));
1753
- }, [f]);
1754
- const E = w.useRef(!1);
1755
- gt(() => (E.current = !0, () => {
1756
- E.current = !1;
1757
- }), []), gt(() => {
1758
- if (b && (C.current = b), S && (R.current = S), b && S) {
1915
+ }, [s]);
1916
+ const A = b.useRef(!1);
1917
+ xt(() => (A.current = !0, () => {
1918
+ A.current = !1;
1919
+ }), []), xt(() => {
1920
+ if (x && (C.current = x), S && (R.current = S), x && S) {
1759
1921
  if (O.current)
1760
- return O.current(b, S, D);
1761
- D();
1922
+ return O.current(x, S, N);
1923
+ N();
1762
1924
  }
1763
- }, [b, S, D, O, L]);
1764
- const $ = w.useMemo(() => ({
1925
+ }, [x, S, N, O, P]);
1926
+ const $ = b.useMemo(() => ({
1765
1927
  reference: C,
1766
1928
  floating: R,
1767
- setReference: y,
1768
- setFloating: x
1769
- }), [y, x]), k = w.useMemo(() => ({
1770
- reference: b,
1929
+ setReference: w,
1930
+ setFloating: y
1931
+ }), [w, y]), _ = b.useMemo(() => ({
1932
+ reference: x,
1771
1933
  floating: S
1772
- }), [b, S]), W = w.useMemo(() => {
1773
- const A = {
1934
+ }), [x, S]), W = b.useMemo(() => {
1935
+ const E = {
1774
1936
  position: n,
1775
1937
  left: 0,
1776
1938
  top: 0
1777
1939
  };
1778
- if (!k.floating)
1779
- return A;
1780
- const N = ne(k.floating, l.x), Z = ne(k.floating, l.y);
1781
- return s ? {
1782
- ...A,
1783
- transform: "translate(" + N + "px, " + Z + "px)",
1784
- ...be(k.floating) >= 1.5 && {
1940
+ if (!_.floating)
1941
+ return E;
1942
+ const B = we(_.floating, u.x), U = we(_.floating, u.y);
1943
+ return a ? {
1944
+ ...E,
1945
+ transform: "translate(" + B + "px, " + U + "px)",
1946
+ ...ze(_.floating) >= 1.5 && {
1785
1947
  willChange: "transform"
1786
1948
  }
1787
1949
  } : {
1788
1950
  position: n,
1789
- left: N,
1790
- top: Z
1951
+ left: B,
1952
+ top: U
1791
1953
  };
1792
- }, [n, s, k.floating, l.x, l.y]);
1793
- return w.useMemo(() => ({
1794
- ...l,
1795
- update: D,
1954
+ }, [n, a, _.floating, u.x, u.y]);
1955
+ return b.useMemo(() => ({
1956
+ ...u,
1957
+ update: N,
1796
1958
  refs: $,
1797
- elements: k,
1959
+ elements: _,
1798
1960
  floatingStyles: W
1799
- }), [l, D, $, k, W]);
1961
+ }), [u, N, $, _, W]);
1800
1962
  }
1801
- const hr = (t) => {
1963
+ const Ur = (t) => {
1802
1964
  function e(n) {
1803
1965
  return {}.hasOwnProperty.call(n, "current");
1804
1966
  }
@@ -1810,47 +1972,48 @@ const hr = (t) => {
1810
1972
  element: r,
1811
1973
  padding: o
1812
1974
  } = typeof t == "function" ? t(n) : t;
1813
- return r && e(r) ? r.current != null ? ee({
1975
+ return r && e(r) ? r.current != null ? pe({
1814
1976
  element: r.current,
1815
1977
  padding: o
1816
- }).fn(n) : {} : r ? ee({
1978
+ }).fn(n) : {} : r ? pe({
1817
1979
  element: r,
1818
1980
  padding: o
1819
1981
  }).fn(n) : {};
1820
1982
  }
1821
1983
  };
1822
- }, wr = (t, e) => ({
1823
- ...or(t),
1984
+ }, no = (t, e) => ({
1985
+ ...Vr(t),
1824
1986
  options: [t, e]
1825
- }), yr = (t, e) => ({
1826
- ...ir(t),
1987
+ }), ro = (t, e) => ({
1988
+ ...$r(t),
1827
1989
  options: [t, e]
1828
- }), xr = (t, e) => ({
1829
- ...lr(t),
1990
+ }), oo = (t, e) => ({
1991
+ ...Yr(t),
1830
1992
  options: [t, e]
1831
- }), br = (t, e) => ({
1832
- ...cr(t),
1993
+ }), io = (t, e) => ({
1994
+ ...zr(t),
1833
1995
  options: [t, e]
1834
- }), Sr = (t, e) => ({
1835
- ...sr(t),
1996
+ }), co = (t, e) => ({
1997
+ ...jr(t),
1836
1998
  options: [t, e]
1837
- }), Cr = (t, e) => ({
1838
- ...ar(t),
1999
+ }), ao = (t, e) => ({
2000
+ ...Xr(t),
1839
2001
  options: [t, e]
1840
- }), Rr = (t, e) => ({
1841
- ...hr(t),
2002
+ }), so = (t, e) => ({
2003
+ ...Ur(t),
1842
2004
  options: [t, e]
1843
2005
  });
1844
2006
  export {
1845
- an as R,
1846
- Sr as a,
1847
- Rr as b,
1848
- Cr as c,
1849
- vr as d,
1850
- br as f,
1851
- gr as h,
1852
- xr as l,
1853
- wr as o,
1854
- yr as s,
1855
- pr as u
2007
+ _n as R,
2008
+ Jr as Z,
2009
+ co as a,
2010
+ so as b,
2011
+ ao as c,
2012
+ to as d,
2013
+ io as f,
2014
+ Gr as h,
2015
+ oo as l,
2016
+ no as o,
2017
+ ro as s,
2018
+ eo as u
1856
2019
  };