@luzmo/analytics-components-kit 1.0.1-alpha.33 → 1.0.1-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/components/display-settings/index.cjs +1 -1
  2. package/components/display-settings/index.js +2 -2
  3. package/components/display-settings-datetime/index.cjs +1 -1
  4. package/components/display-settings-datetime/index.js +1 -1
  5. package/components/display-settings-numeric/index.cjs +1 -1
  6. package/components/display-settings-numeric/index.js +3 -3
  7. package/components/display-settings-period-over-period/index.cjs +1 -1
  8. package/components/display-settings-period-over-period/index.js +2 -2
  9. package/components/draggable-data-item-level/index.cjs +1 -1
  10. package/components/draggable-data-item-level/index.js +1 -1
  11. package/components/droppable-slot/index.cjs +1 -1
  12. package/components/droppable-slot/index.js +1 -1
  13. package/components/edit-item/index.cjs +1 -1
  14. package/components/edit-item/index.js +2 -2
  15. package/components/edit-option-action-button-group/index.cjs +1 -1
  16. package/components/edit-option-action-button-group/index.js +1 -1
  17. package/components/{edit-option-base-DeQjGX4i.js → edit-option-base-Brji81Gq.js} +1 -1
  18. package/components/{edit-option-base-CSJNbo2E.cjs → edit-option-base-DDvWhumg.cjs} +1 -1
  19. package/components/edit-option-color-picker/index.cjs +17 -18
  20. package/components/edit-option-color-picker/index.js +64 -61
  21. package/components/edit-option-multi-language-field/index.cjs +1 -1
  22. package/components/edit-option-multi-language-field/index.js +2 -2
  23. package/components/edit-option-number-field/index.cjs +1 -1
  24. package/components/edit-option-number-field/index.js +1 -1
  25. package/components/edit-option-picker/index.cjs +1 -1
  26. package/components/edit-option-picker/index.js +3 -3
  27. package/components/edit-option-position-picker/index.cjs +1 -1
  28. package/components/edit-option-position-picker/index.js +2 -2
  29. package/components/edit-option-positions-number-field/index.cjs +1 -1
  30. package/components/edit-option-positions-number-field/index.js +1 -1
  31. package/components/edit-option-radio-button-group/index.cjs +1 -1
  32. package/components/edit-option-radio-button-group/index.js +1 -1
  33. package/components/edit-option-slider/index.cjs +1 -1
  34. package/components/edit-option-slider/index.js +1 -1
  35. package/components/edit-option-switch/index.cjs +1 -1
  36. package/components/edit-option-switch/index.js +1 -1
  37. package/components/edit-option-text-field/index.cjs +1 -1
  38. package/components/edit-option-text-field/index.js +2 -2
  39. package/components/filter-data-item-picker/index.cjs +1 -1
  40. package/components/filter-data-item-picker/index.js +2 -2
  41. package/components/filter-expression-picker/index.cjs +1 -1
  42. package/components/filter-expression-picker/index.js +1 -1
  43. package/components/filter-item/index.cjs +1 -1
  44. package/components/filter-item/index.js +1 -1
  45. package/components/filter-value-picker/index.cjs +1 -1
  46. package/components/filter-value-picker/index.js +1 -1
  47. package/components/filter-value-picker-datetime/index.cjs +7 -7
  48. package/components/filter-value-picker-datetime/index.js +4 -4
  49. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  50. package/components/filter-value-picker-hierarchy/index.js +2 -2
  51. package/components/filter-value-picker-numeric/index.cjs +1 -1
  52. package/components/filter-value-picker-numeric/index.js +1 -1
  53. package/components/{index-BOqSYlku.cjs → index-B888fnYx.cjs} +1 -1
  54. package/components/{index-BtIWR_s6.cjs → index-C0rOztJP.cjs} +1 -1
  55. package/components/index-C2TAa6lH.cjs +192 -0
  56. package/components/{index-Cb5l6iK_.js → index-C8XzR0jl.js} +3 -3
  57. package/components/{index-CTHlwZ9E.cjs → index-CYqSw2_J.cjs} +1 -1
  58. package/components/{index-BwsEWpIS.js → index-Cbm8MFTj.js} +4 -4
  59. package/components/{index-CnRQGFHT.js → index-CbuHBIDB.js} +1 -1
  60. package/components/{index-Bmpw4rGV.js → index-D7LSPBqz.js} +1 -1
  61. package/components/{index-BbuNpVBr.js → index-DE3d0E0P.js} +12 -12
  62. package/components/{index-c2uKLWDt.cjs → index-DbPlCKPI.cjs} +1 -1
  63. package/components/{index-CyWwLYEO.js → index-Dj9-40eZ.js} +3 -3
  64. package/components/{index-Bafc5poK.cjs → index-PfWxaas9.cjs} +4 -4
  65. package/components/{index-BCBLJ-ei.js → index-Rydj3Txs.js} +617 -577
  66. package/components/{index-CeENkpNK.cjs → index-Tx5oQjbt.cjs} +1 -1
  67. package/components/{index-C5m9vRp5.js → index-b3FPYSZk.js} +2 -2
  68. package/components/{index-CSm0I7Gz.cjs → index-cHKqEi5-.cjs} +3 -3
  69. package/components/index.cjs +1 -1
  70. package/components/index.js +1 -1
  71. package/components/{pending-state-DTX7ggyF-BQGaWUEI.cjs → pending-state-DTX7ggyF-B5ihSygL.cjs} +1 -1
  72. package/components/{pending-state-DTX7ggyF-KolnwUB7.js → pending-state-DTX7ggyF-qbk3sPcq.js} +3 -3
  73. package/package.json +1 -1
  74. package/components/index-DF-s3cEL.cjs +0 -192
@@ -17,12 +17,12 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { v as De, o as Fe, I as ge, R as A, a as fe, z as x, d as ve, w as ye } from "./base-D76d76ww-BGkuhs54.js";
21
- import { _ as Ht, $ as Ne, s as qe, n as mt } from "./directive-helpers-Cm6gitnu-CeYtlPO9.js";
22
- import { m as $t, d as gt } from "./if-defined-DOaE2coe-CNT45Xcl.js";
23
- import { u as Nt, n as It, d as Be, h as _e } from "./element-resolution-FCUT-wql--7ctE626.js";
24
- import { t as ft } from "./index-Bmpw4rGV.js";
25
- import { a as He, w as Ie, C as Me } from "./async-directive-BfcqVjDp-BCT-lA4F.js";
20
+ import { v as Ne, o as Be, R as j, a as ve, I as ye, z as w, d as be, w as we } from "./base-D76d76ww-BGkuhs54.js";
21
+ import { _ as It, $ as qe, s as _e, n as ft } from "./directive-helpers-Cm6gitnu-CeYtlPO9.js";
22
+ import { m as Ft, d as vt } from "./if-defined-DOaE2coe-CNT45Xcl.js";
23
+ import { d as He, n as Mt, h as Ie, u as Bt } from "./element-resolution-FCUT-wql--7ctE626.js";
24
+ import { t as yt } from "./index-D7LSPBqz.js";
25
+ import { c as le, a as Me, w as We, C as Ue } from "./async-directive-BfcqVjDp-BCT-lA4F.js";
26
26
  /*! * Lucero - The design system for Luzmo.
27
27
  *
28
28
  * Copyright © 2025 Luzmo
@@ -45,10 +45,10 @@ import { a as He, w as Ie, C as Me } from "./async-directive-BfcqVjDp-BCT-lA4F.j
45
45
  * Copyright 2018 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const be = "important", We = " !" + be, re = Ht(class extends Ne {
48
+ const xe = "important", je = " !" + xe, ae = It(class extends qe {
49
49
  constructor(e) {
50
50
  var t;
51
- if (super(e), e.type !== qe.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
51
+ if (super(e), e.type !== _e.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
52
52
  }
53
53
  render(e) {
54
54
  return Object.keys(e).reduce((t, n) => {
@@ -64,11 +64,11 @@ const be = "important", We = " !" + be, re = Ht(class extends Ne {
64
64
  const i = t[o];
65
65
  if (i != null) {
66
66
  this.ft.add(o);
67
- const s = typeof i == "string" && i.endsWith(We);
68
- o.includes("-") || s ? n.setProperty(o, s ? i.slice(0, -11) : i, s ? be : "") : n[o] = i;
67
+ const s = typeof i == "string" && i.endsWith(je);
68
+ o.includes("-") || s ? n.setProperty(o, s ? i.slice(0, -11) : i, s ? xe : "") : n[o] = i;
69
69
  }
70
70
  }
71
- return De;
71
+ return Ne;
72
72
  }
73
73
  });
74
74
  /*! * Lucero - The design system for Luzmo.
@@ -88,7 +88,7 @@ const be = "important", We = " !" + be, re = Ht(class extends Ne {
88
88
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
89
89
  * SOFTWARE.
90
90
  * */
91
- class we extends Event {
91
+ class Ee extends Event {
92
92
  constructor(t, n, o) {
93
93
  super("slottable-request", {
94
94
  bubbles: !1,
@@ -97,7 +97,7 @@ class we extends Event {
97
97
  }), this.name = t, this.data = n, this.slotName = o === void 0 ? t : `${t}.${o}`;
98
98
  }
99
99
  }
100
- const St = Symbol("remove-slottable-request");
100
+ const Rt = Symbol("remove-slottable-request");
101
101
  /*! * Lucero - The design system for Luzmo.
102
102
  *
103
103
  * Copyright © 2025 Luzmo
@@ -120,10 +120,10 @@ const St = Symbol("remove-slottable-request");
120
120
  * Copyright 2021 Google LLC
121
121
  * SPDX-License-Identifier: BSD-3-Clause
122
122
  */
123
- function Ue(e) {
123
+ function Ve(e) {
124
124
  return (t, n) => {
125
125
  const { slot: o, selector: i } = e ?? {}, s = "slot" + (o ? `[name=${o}]` : ":not([name])");
126
- return Fe(t, n, { get() {
126
+ return Be(t, n, { get() {
127
127
  var l;
128
128
  const r = (l = this.renderRoot) == null ? void 0 : l.querySelector(s), a = (r == null ? void 0 : r.assignedElements(e)) ?? [];
129
129
  return i === void 0 ? a : a.filter((c) => c.matches(i));
@@ -147,14 +147,14 @@ function Ue(e) {
147
147
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
148
148
  * SOFTWARE.
149
149
  * */
150
- function Ve(e, t, n = []) {
150
+ function Ke(e, t, n = []) {
151
151
  for (const [o, i] of t.entries()) {
152
152
  const s = e[o], l = s.parentElement || s.getRootNode();
153
153
  n[o] && n[o](i), l && l !== s && s.replaceWith(i), delete e[o];
154
154
  }
155
155
  return t;
156
156
  }
157
- const je = (e, t, {
157
+ const Ge = (e, t, {
158
158
  position: n,
159
159
  prepareCallback: o
160
160
  } = { position: "beforeend" }) => {
@@ -173,12 +173,12 @@ const je = (e, t, {
173
173
  d && d !== h && d.replaceChild(r[l], h), t.insertAdjacentElement(n, h), l += s;
174
174
  } while (--i > 0);
175
175
  return function() {
176
- return Ve(r, e, a);
176
+ return Ke(r, e, a);
177
177
  };
178
- }, Ke = 1e3, Xe = 1e3;
178
+ }, Xe = 1e3, Je = 1e3;
179
179
  class Ye {
180
180
  constructor(t = {}) {
181
- this.warmUpDelay = Ke, this.coolDownDelay = Xe, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
181
+ this.warmUpDelay = Xe, this.coolDownDelay = Je, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
182
182
  }
183
183
  openTimer(t) {
184
184
  if (this.cancelCooldownTimer(), !this.component || t !== this.component)
@@ -203,8 +203,8 @@ class Ye {
203
203
  this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
204
204
  }
205
205
  }
206
- const lt = new Ye(), j = () => {
207
- }, vt = (e, t, n) => {
206
+ const lt = new Ye(), V = () => {
207
+ }, bt = (e, t, n) => {
208
208
  const o = new AbortController(), i = /* @__PURE__ */ new Map(), s = () => {
209
209
  o.abort(), n();
210
210
  };
@@ -234,12 +234,12 @@ const lt = new Ye(), j = () => {
234
234
  signal: o.signal
235
235
  }), t();
236
236
  };
237
- function T() {
237
+ function k() {
238
238
  return new Promise((e) => requestAnimationFrame(() => e()));
239
239
  }
240
- class J extends ge {
240
+ class Y extends ye {
241
241
  constructor() {
242
- super(...arguments), this.dispose = j, this.offset = 0, this.willPreventClose = !1;
242
+ super(...arguments), this.dispose = V, this.offset = 0, this.willPreventClose = !1;
243
243
  }
244
244
  applyFocus(t, n) {
245
245
  }
@@ -313,10 +313,10 @@ class J extends ge {
313
313
  document.dispatchEvent(t);
314
314
  }
315
315
  static async open(t, n, o, i) {
316
- await Promise.resolve().then(() => kt);
316
+ await Promise.resolve().then(() => Lt);
317
317
  const s = arguments.length === 2, l = o || t, r = new this();
318
318
  let a = !1;
319
- const c = je([l], r, {
319
+ const c = Ge([l], r, {
320
320
  position: "beforeend",
321
321
  prepareCallback: (d) => {
322
322
  const p = d.slot;
@@ -330,10 +330,10 @@ class J extends ge {
330
330
  a || (c(), a = !0), requestAnimationFrame(() => {
331
331
  r.remove();
332
332
  });
333
- }), r.open = !1, r.dispose = j;
333
+ }), r.open = !1, r.dispose = V;
334
334
  }, !s && l && i) {
335
335
  const d = t, p = n, u = i;
336
- return J.applyOptions(r, {
336
+ return Y.applyOptions(r, {
337
337
  ...u,
338
338
  delayed: u.delayed || l.hasAttribute("delayed"),
339
339
  trigger: u.virtualTrigger || d,
@@ -341,7 +341,7 @@ class J extends ge {
341
341
  }), d.after(r), await r.updateComplete, r.open = !0, r.dispose;
342
342
  }
343
343
  const h = n;
344
- return r.append(l), J.applyOptions(r, {
344
+ return r.append(l), Y.applyOptions(r, {
345
345
  ...h,
346
346
  delayed: h.delayed || l.hasAttribute("delayed")
347
347
  }), r.updateComplete.then(() => {
@@ -352,10 +352,10 @@ class J extends ge {
352
352
  t.delayed = !!n.delayed, t.receivesFocus = n.receivesFocus ?? "auto", t.triggerElement = n.trigger || null, t.type = n.type || "modal", t.offset = n.offset ?? 0, t.placement = n.placement, t.willPreventClose = !!n.notImmediatelyClosable;
353
353
  }
354
354
  }
355
- const Mt = (e) => e.querySelector(
356
- ft
357
- ), Wt = (e) => e.assignedElements().find((t) => t.matches(ft));
358
- class Ut extends Event {
355
+ const Wt = (e) => e.querySelector(
356
+ yt
357
+ ), Ut = (e) => e.assignedElements().find((t) => t.matches(yt));
358
+ class jt extends Event {
359
359
  constructor() {
360
360
  super("beforetoggle", {
361
361
  bubbles: !1,
@@ -371,7 +371,7 @@ class Vt extends Event {
371
371
  }), this.currentState = "closed", this.newState = "open";
372
372
  }
373
373
  }
374
- class F extends Event {
374
+ class D extends Event {
375
375
  constructor(t, n, {
376
376
  publish: o,
377
377
  interaction: i,
@@ -391,7 +391,7 @@ class ct {
391
391
  this.x = 0, this.y = 0, this.x = t, this.y = n;
392
392
  }
393
393
  updateBoundingClientRect(t, n) {
394
- this.x = t, this.y = n, J.update();
394
+ this.x = t, this.y = n, Y.update();
395
395
  }
396
396
  getBoundingClientRect() {
397
397
  return {
@@ -409,11 +409,11 @@ class ct {
409
409
  };
410
410
  }
411
411
  }
412
- function Ge(e) {
412
+ function Ze(e) {
413
413
  class t extends e {
414
414
  async manageDialogOpen() {
415
415
  const o = this.open;
416
- if (await T(), await this.managePosition(), this.open !== o)
416
+ if (await k(), await this.managePosition(), this.open !== o)
417
417
  return;
418
418
  const i = await this.dialogMakeTransition(o);
419
419
  this.open === o && await this.dialogApplyFocus(o, i);
@@ -429,9 +429,9 @@ function Ge(e) {
429
429
  }
430
430
  if (a > 0)
431
431
  return;
432
- const c = o ? Vt : Ut;
433
- this.dispatchEvent(new c()), o && (r.matches(ft) && (i = r), i = i || Mt(r), i || r.querySelectorAll("slot").forEach((h) => {
434
- i || (i = Wt(h));
432
+ const c = o ? Vt : jt;
433
+ this.dispatchEvent(new c()), o && (r.matches(yt) && (i = r), i = i || Wt(r), i || r.querySelectorAll("slot").forEach((h) => {
434
+ i || (i = Ut(h));
435
435
  }), !(!this.isConnected || this.dialogEl.open) && this.dialogEl.showModal());
436
436
  }, l = (r, a) => () => {
437
437
  if (this.open !== o)
@@ -439,7 +439,7 @@ function Ge(e) {
439
439
  const c = o ? "luzmo-opened" : "luzmo-closed";
440
440
  if (a > 0) {
441
441
  r.dispatchEvent(
442
- new F(c, this, {
442
+ new D(c, this, {
443
443
  interaction: this.type,
444
444
  publish: !1
445
445
  })
@@ -451,21 +451,21 @@ function Ge(e) {
451
451
  const h = async () => {
452
452
  const d = this.triggerElement instanceof ct;
453
453
  this.dispatchEvent(
454
- new F(c, this, {
454
+ new D(c, this, {
455
455
  interaction: this.type,
456
456
  publish: d
457
457
  })
458
458
  ), r.dispatchEvent(
459
- new F(c, this, {
459
+ new D(c, this, {
460
460
  interaction: this.type,
461
461
  publish: !1
462
462
  })
463
463
  ), this.triggerElement && !d && this.triggerElement.dispatchEvent(
464
- new F(c, this, {
464
+ new D(c, this, {
465
465
  interaction: this.type,
466
466
  publish: !0
467
467
  })
468
- ), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
468
+ ), this.state = o ? "opened" : "closed", this.returnFocus(), await k(), await k(), o === this.open && o === !1 && this.requestSlottable();
469
469
  };
470
470
  !o && this.dialogEl.open ? (this.dialogEl.addEventListener(
471
471
  "close",
@@ -476,7 +476,7 @@ function Ge(e) {
476
476
  ), this.dialogEl.close()) : h();
477
477
  };
478
478
  return this.elements.forEach((r, a) => {
479
- vt(r, s(r, a), l(r, a));
479
+ bt(r, s(r, a), l(r, a));
480
480
  }), i;
481
481
  }
482
482
  dialogApplyFocus(o, i) {
@@ -485,7 +485,7 @@ function Ge(e) {
485
485
  }
486
486
  return t;
487
487
  }
488
- function Je(e) {
488
+ function Qe(e) {
489
489
  class t extends e {
490
490
  async managePopoverOpen() {
491
491
  await this.managePosition();
@@ -507,11 +507,11 @@ function Je(e) {
507
507
  const s = (r, a) => () => {
508
508
  if (o === this.open) {
509
509
  if (r.open = o, a === 0) {
510
- const c = o ? Vt : Ut;
510
+ const c = o ? Vt : jt;
511
511
  this.dispatchEvent(new c());
512
512
  }
513
- o !== !0 || (r.matches(ft) && (i = r), i = i || Mt(r), i) || r.querySelectorAll("slot").forEach((c) => {
514
- i || (i = Wt(c));
513
+ o !== !0 || (r.matches(yt) && (i = r), i = i || Wt(r), i) || r.querySelectorAll("slot").forEach((c) => {
514
+ i || (i = Ut(c));
515
515
  });
516
516
  }
517
517
  }, l = (r, a) => async () => {
@@ -519,33 +519,33 @@ function Je(e) {
519
519
  return;
520
520
  const c = o ? "luzmo-opened" : "luzmo-closed";
521
521
  if (r.dispatchEvent(
522
- new F(c, this, {
522
+ new D(c, this, {
523
523
  interaction: this.type
524
524
  })
525
525
  ), a > 0)
526
526
  return;
527
527
  const h = this.triggerElement instanceof ct;
528
528
  this.dispatchEvent(
529
- new F(c, this, {
529
+ new D(c, this, {
530
530
  interaction: this.type,
531
531
  publish: h
532
532
  })
533
533
  ), this.triggerElement && !h && this.triggerElement.dispatchEvent(
534
- new F(c, this, {
534
+ new D(c, this, {
535
535
  interaction: this.type,
536
536
  publish: !0
537
537
  })
538
- ), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
538
+ ), this.state = o ? "opened" : "closed", this.returnFocus(), await k(), await k(), o === this.open && o === !1 && this.requestSlottable();
539
539
  };
540
540
  return this.elements.forEach((r, a) => {
541
- vt(r, s(r, a), l(r, a));
541
+ bt(r, s(r, a), l(r, a));
542
542
  }), i;
543
543
  }
544
544
  }
545
545
  return t;
546
546
  }
547
- const Ze = CSS.supports("(overlay: auto)");
548
- function le(e) {
547
+ const to = CSS.supports("(overlay: auto)");
548
+ function ce(e) {
549
549
  let t = !1;
550
550
  try {
551
551
  t = e.matches(":popover-open");
@@ -558,7 +558,7 @@ function le(e) {
558
558
  }
559
559
  return t || n;
560
560
  }
561
- function Qe(e) {
561
+ function eo(e) {
562
562
  class t extends e {
563
563
  async manageDelay(o) {
564
564
  if (o === !1 || o !== this.open) {
@@ -579,7 +579,7 @@ function Qe(e) {
579
579
  } = {}) => {
580
580
  s !== "open" && await this.placementController.resetOverlayPosition();
581
581
  };
582
- if (!le(this.dialogEl)) {
582
+ if (!ce(this.dialogEl)) {
583
583
  i();
584
584
  return;
585
585
  }
@@ -601,7 +601,7 @@ function Qe(e) {
601
601
  o && this.open === o && !i && !s && this.isConnected && (this.dialogEl.showPopover(), this.managePosition());
602
602
  }
603
603
  async ensureOnDOM(o) {
604
- await T(), Ze || await this.shouldHidePopover(o), this.shouldShowPopover(o), await T();
604
+ to || await this.shouldHidePopover(o), this.shouldShowPopover(o), await k();
605
605
  }
606
606
  makeTransition(o) {
607
607
  if (this.open !== o)
@@ -609,11 +609,11 @@ function Qe(e) {
609
609
  let i = null;
610
610
  const s = (r, a) => () => {
611
611
  if (r.open = o, a === 0) {
612
- const c = o ? Vt : Ut;
612
+ const c = o ? Vt : jt;
613
613
  this.dispatchEvent(new c());
614
614
  }
615
- !o || (r.matches(ft) && (i = r), i = i || Mt(r), i) || r.querySelectorAll("slot").forEach((c) => {
616
- i || (i = Wt(c));
615
+ !o || (r.matches(yt) && (i = r), i = i || Wt(r), i) || r.querySelectorAll("slot").forEach((c) => {
616
+ i || (i = Ut(c));
617
617
  });
618
618
  }, l = (r, a) => () => {
619
619
  if (this.open !== o)
@@ -621,7 +621,7 @@ function Qe(e) {
621
621
  const c = o ? "luzmo-opened" : "luzmo-closed";
622
622
  if (a > 0) {
623
623
  r.dispatchEvent(
624
- new F(c, this, {
624
+ new D(c, this, {
625
625
  interaction: this.type,
626
626
  publish: !1
627
627
  })
@@ -631,28 +631,28 @@ function Qe(e) {
631
631
  const h = async () => {
632
632
  if (this.open !== o)
633
633
  return;
634
- await T();
634
+ await k();
635
635
  const p = this.triggerElement instanceof ct;
636
636
  this.dispatchEvent(
637
- new F(c, this, {
637
+ new D(c, this, {
638
638
  interaction: this.type,
639
639
  publish: p
640
640
  })
641
641
  ), r.dispatchEvent(
642
- new F(c, this, {
642
+ new D(c, this, {
643
643
  interaction: this.type,
644
644
  publish: !1
645
645
  })
646
646
  ), this.triggerElement && !p && this.triggerElement.dispatchEvent(
647
- new F(c, this, {
647
+ new D(c, this, {
648
648
  interaction: this.type,
649
649
  publish: !0
650
650
  })
651
- ), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
651
+ ), this.state = o ? "opened" : "closed", this.returnFocus(), await k(), await k(), o === this.open && o === !1 && this.requestSlottable();
652
652
  };
653
653
  if (this.open !== o)
654
654
  return;
655
- const d = le(this.dialogEl);
655
+ const d = ce(this.dialogEl);
656
656
  o !== !0 && d && this.isConnected ? (this.dialogEl.addEventListener(
657
657
  "beforetoggle",
658
658
  () => {
@@ -662,16 +662,28 @@ function Qe(e) {
662
662
  ), this.dialogEl.hidePopover()) : h();
663
663
  };
664
664
  return this.elements.forEach((r, a) => {
665
- vt(r, s(r, a), l(r, a));
665
+ bt(r, s(r, a), l(r, a));
666
666
  }), i;
667
667
  }
668
668
  }
669
669
  return t;
670
670
  }
671
- const to = "showPopover" in document.createElement("div");
672
- class eo {
671
+ const oo = "showPopover" in document.createElement("div");
672
+ class no {
673
673
  constructor() {
674
- this.root = document.body, this.stack = [], this.handlePointerdown = (t) => {
674
+ this.root = document.body, this.stack = [], this.handleScroll = (t) => {
675
+ this.stack.forEach((n) => {
676
+ n.open && (n.type === "auto" && n.triggerElement instanceof HTMLElement && n.triggerElement.closest(
677
+ "luzmo-picker, luzmo-select, luzmo-action-menu"
678
+ ) && t.stopPropagation(), document.dispatchEvent(
679
+ new CustomEvent("luzmo-update-overlays", {
680
+ bubbles: !0,
681
+ composed: !0,
682
+ cancelable: !0
683
+ })
684
+ ));
685
+ });
686
+ }, this.handlePointerdown = (t) => {
675
687
  this.pointerdownPath = t.composedPath(), this.lastOverlay = this.stack.at(-1);
676
688
  }, this.handlePointerup = () => {
677
689
  const t = this.pointerdownPath;
@@ -706,14 +718,20 @@ class eo {
706
718
  t.preventDefault();
707
719
  return;
708
720
  }
709
- to || (n == null ? void 0 : n.type) !== "manual" && n && this.closeOverlay(n);
721
+ if ((n == null ? void 0 : n.type) === "manual") {
722
+ this.closeOverlay(n);
723
+ return;
724
+ }
725
+ oo || n && this.closeOverlay(n);
710
726
  }, this.bindEvents();
711
727
  }
712
728
  get document() {
713
729
  return this.root.ownerDocument || document;
714
730
  }
715
731
  bindEvents() {
716
- this.document.addEventListener("pointerdown", this.handlePointerdown), this.document.addEventListener("pointerup", this.handlePointerup), this.document.addEventListener("keydown", this.handleKeydown);
732
+ this.document.addEventListener("pointerdown", this.handlePointerdown), this.document.addEventListener("pointerup", this.handlePointerup), this.document.addEventListener("keydown", this.handleKeydown), this.document.addEventListener("scroll", this.handleScroll, {
733
+ capture: !0
734
+ });
717
735
  }
718
736
  closeOverlay(t) {
719
737
  const n = this.stack.indexOf(t);
@@ -780,20 +798,20 @@ class eo {
780
798
  this.closeOverlay(t);
781
799
  }
782
800
  }
783
- const ae = new eo(), oo = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}', Z = Math.min, R = Math.max, Ot = Math.round, xt = Math.floor, I = (e) => ({
801
+ const he = new no(), io = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}', Z = Math.min, L = Math.max, Tt = Math.round, zt = Math.floor, H = (e) => ({
784
802
  x: e,
785
803
  y: e
786
- }), no = {
804
+ }), so = {
787
805
  left: "right",
788
806
  right: "left",
789
807
  bottom: "top",
790
808
  top: "bottom"
791
- }, io = {
809
+ }, ro = {
792
810
  start: "end",
793
811
  end: "start"
794
812
  };
795
813
  function qt(e, t, n) {
796
- return R(e, Z(t, n));
814
+ return L(e, Z(t, n));
797
815
  }
798
816
  function ht(e, t) {
799
817
  return typeof e == "function" ? e(t) : e;
@@ -804,32 +822,32 @@ function Q(e) {
804
822
  function dt(e) {
805
823
  return e.split("-")[1];
806
824
  }
807
- function xe(e) {
825
+ function ze(e) {
808
826
  return e === "x" ? "y" : "x";
809
827
  }
810
- function jt(e) {
828
+ function Kt(e) {
811
829
  return e === "y" ? "height" : "width";
812
830
  }
813
- function et(e) {
831
+ function ot(e) {
814
832
  return ["top", "bottom"].includes(Q(e)) ? "y" : "x";
815
833
  }
816
- function Kt(e) {
817
- return xe(et(e));
834
+ function Gt(e) {
835
+ return ze(ot(e));
818
836
  }
819
- function so(e, t, n) {
837
+ function lo(e, t, n) {
820
838
  n === void 0 && (n = !1);
821
- const o = dt(e), i = Kt(e), s = jt(i);
839
+ const o = dt(e), i = Gt(e), s = Kt(i);
822
840
  let l = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
823
- return t.reference[s] > t.floating[s] && (l = Pt(l)), [l, Pt(l)];
841
+ return t.reference[s] > t.floating[s] && (l = kt(l)), [l, kt(l)];
824
842
  }
825
- function ro(e) {
826
- const t = Pt(e);
827
- return [Bt(e), t, Bt(t)];
843
+ function ao(e) {
844
+ const t = kt(e);
845
+ return [_t(e), t, _t(t)];
828
846
  }
829
- function Bt(e) {
830
- return e.replace(/start|end/g, (t) => io[t]);
847
+ function _t(e) {
848
+ return e.replace(/start|end/g, (t) => ro[t]);
831
849
  }
832
- function lo(e, t, n) {
850
+ function co(e, t, n) {
833
851
  const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
834
852
  switch (e) {
835
853
  case "top":
@@ -842,15 +860,15 @@ function lo(e, t, n) {
842
860
  return [];
843
861
  }
844
862
  }
845
- function ao(e, t, n, o) {
863
+ function ho(e, t, n, o) {
846
864
  const i = dt(e);
847
- let s = lo(Q(e), n === "start", o);
848
- return i && (s = s.map((l) => l + "-" + i), t && (s = s.concat(s.map(Bt)))), s;
865
+ let s = co(Q(e), n === "start", o);
866
+ return i && (s = s.map((l) => l + "-" + i), t && (s = s.concat(s.map(_t)))), s;
849
867
  }
850
- function Pt(e) {
851
- return e.replace(/left|right|bottom|top/g, (t) => no[t]);
868
+ function kt(e) {
869
+ return e.replace(/left|right|bottom|top/g, (t) => so[t]);
852
870
  }
853
- function co(e) {
871
+ function uo(e) {
854
872
  return {
855
873
  top: 0,
856
874
  right: 0,
@@ -859,15 +877,15 @@ function co(e) {
859
877
  ...e
860
878
  };
861
879
  }
862
- function Ee(e) {
863
- return typeof e != "number" ? co(e) : {
880
+ function Ce(e) {
881
+ return typeof e != "number" ? uo(e) : {
864
882
  top: e,
865
883
  right: e,
866
884
  bottom: e,
867
885
  left: e
868
886
  };
869
887
  }
870
- function Tt(e) {
888
+ function St(e) {
871
889
  const {
872
890
  x: t,
873
891
  y: n,
@@ -885,12 +903,12 @@ function Tt(e) {
885
903
  y: n
886
904
  };
887
905
  }
888
- function ce(e, t, n) {
906
+ function de(e, t, n) {
889
907
  let {
890
908
  reference: o,
891
909
  floating: i
892
910
  } = e;
893
- const s = et(t), l = Kt(t), r = jt(l), a = Q(t), c = s === "y", h = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[r] / 2 - i[r] / 2;
911
+ const s = ot(t), l = Gt(t), r = Kt(l), a = Q(t), c = s === "y", h = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[r] / 2 - i[r] / 2;
894
912
  let u;
895
913
  switch (a) {
896
914
  case "top":
@@ -933,7 +951,7 @@ function ce(e, t, n) {
933
951
  }
934
952
  return u;
935
953
  }
936
- const ho = async (e, t, n) => {
954
+ const po = async (e, t, n) => {
937
955
  const {
938
956
  placement: o = "bottom",
939
957
  strategy: i = "absolute",
@@ -947,7 +965,7 @@ const ho = async (e, t, n) => {
947
965
  }), {
948
966
  x: h,
949
967
  y: d
950
- } = ce(c, o, a), p = o, u = {}, m = 0;
968
+ } = de(c, o, a), p = o, u = {}, m = 0;
951
969
  for (let g = 0; g < r.length; g++) {
952
970
  const {
953
971
  name: f,
@@ -955,8 +973,8 @@ const ho = async (e, t, n) => {
955
973
  } = r[g], {
956
974
  x: y,
957
975
  y: b,
958
- data: w,
959
- reset: E
976
+ data: x,
977
+ reset: z
960
978
  } = await v({
961
979
  x: h,
962
980
  y: d,
@@ -975,16 +993,16 @@ const ho = async (e, t, n) => {
975
993
  ...u,
976
994
  [f]: {
977
995
  ...u[f],
978
- ...w
996
+ ...x
979
997
  }
980
- }, E && m <= 50 && (m++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (c = E.rects === !0 ? await l.getElementRects({
998
+ }, z && m <= 50 && (m++, typeof z == "object" && (z.placement && (p = z.placement), z.rects && (c = z.rects === !0 ? await l.getElementRects({
981
999
  reference: e,
982
1000
  floating: t,
983
1001
  strategy: i
984
- }) : E.rects), {
1002
+ }) : z.rects), {
985
1003
  x: h,
986
1004
  y: d
987
- } = ce(c, p, a)), g = -1);
1005
+ } = de(c, p, a)), g = -1);
988
1006
  }
989
1007
  return {
990
1008
  x: h,
@@ -1010,7 +1028,7 @@ async function Xt(e, t) {
1010
1028
  elementContext: d = "floating",
1011
1029
  altBoundary: p = !1,
1012
1030
  padding: u = 0
1013
- } = ht(t, e), m = Ee(u), g = r[p ? d === "floating" ? "reference" : "floating" : d], f = Tt(await s.getClippingRect({
1031
+ } = ht(t, e), m = Ce(u), g = r[p ? d === "floating" ? "reference" : "floating" : d], f = St(await s.getClippingRect({
1014
1032
  element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
1015
1033
  boundary: c,
1016
1034
  rootBoundary: h,
@@ -1026,20 +1044,20 @@ async function Xt(e, t) {
1026
1044
  } : {
1027
1045
  x: 1,
1028
1046
  y: 1
1029
- }, w = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1047
+ }, x = St(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1030
1048
  elements: r,
1031
1049
  rect: v,
1032
1050
  offsetParent: y,
1033
1051
  strategy: a
1034
1052
  }) : v);
1035
1053
  return {
1036
- top: (f.top - w.top + m.top) / b.y,
1037
- bottom: (w.bottom - f.bottom + m.bottom) / b.y,
1038
- left: (f.left - w.left + m.left) / b.x,
1039
- right: (w.right - f.right + m.right) / b.x
1054
+ top: (f.top - x.top + m.top) / b.y,
1055
+ bottom: (x.bottom - f.bottom + m.bottom) / b.y,
1056
+ left: (f.left - x.left + m.left) / b.x,
1057
+ right: (x.right - f.right + m.right) / b.x
1040
1058
  };
1041
1059
  }
1042
- const uo = (e) => ({
1060
+ const mo = (e) => ({
1043
1061
  name: "arrow",
1044
1062
  options: e,
1045
1063
  async fn(t) {
@@ -1057,26 +1075,26 @@ const uo = (e) => ({
1057
1075
  } = ht(e, t) || {};
1058
1076
  if (c == null)
1059
1077
  return {};
1060
- const d = Ee(h), p = {
1078
+ const d = Ce(h), p = {
1061
1079
  x: n,
1062
1080
  y: o
1063
- }, u = Kt(i), m = jt(u), g = await l.getDimensions(c), f = u === "y", v = f ? "top" : "left", y = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", w = s.reference[m] + s.reference[u] - p[u] - s.floating[m], E = p[u] - s.reference[u], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
1064
- let $ = S ? S[b] : 0;
1065
- (!$ || !await (l.isElement == null ? void 0 : l.isElement(S))) && ($ = r.floating[b] || s.floating[m]);
1066
- const U = w / 2 - E / 2, B = $ / 2 - g[m] / 2 - 1, D = Z(d[v], B), K = Z(d[y], B), _ = D, X = $ - g[m] - K, O = $ / 2 - g[m] / 2 + U, it = qt(_, O, X), V = !a.arrow && dt(i) != null && O !== it && s.reference[m] / 2 - (O < _ ? D : K) - g[m] / 2 < 0, H = V ? O < _ ? O - _ : O - X : 0;
1081
+ }, u = Gt(i), m = Kt(u), g = await l.getDimensions(c), f = u === "y", v = f ? "top" : "left", y = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", x = s.reference[m] + s.reference[u] - p[u] - s.floating[m], z = p[u] - s.reference[u], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
1082
+ let A = S ? S[b] : 0;
1083
+ (!A || !await (l.isElement == null ? void 0 : l.isElement(S))) && (A = r.floating[b] || s.floating[m]);
1084
+ const W = x / 2 - z / 2, B = A / 2 - g[m] / 2 - 1, $ = Z(d[v], B), K = Z(d[y], B), q = $, G = A - g[m] - K, O = A / 2 - g[m] / 2 + W, it = qt(q, O, G), U = !a.arrow && dt(i) != null && O !== it && s.reference[m] / 2 - (O < q ? $ : K) - g[m] / 2 < 0, _ = U ? O < q ? O - q : O - G : 0;
1067
1085
  return {
1068
- [u]: p[u] + H,
1086
+ [u]: p[u] + _,
1069
1087
  data: {
1070
1088
  [u]: it,
1071
- centerOffset: O - it - H,
1072
- ...V && {
1073
- alignmentOffset: H
1089
+ centerOffset: O - it - _,
1090
+ ...U && {
1091
+ alignmentOffset: _
1074
1092
  }
1075
1093
  },
1076
- reset: V
1094
+ reset: U
1077
1095
  };
1078
1096
  }
1079
- }), po = function(e) {
1097
+ }), go = function(e) {
1080
1098
  return e === void 0 && (e = {}), {
1081
1099
  name: "flip",
1082
1100
  options: e,
@@ -1100,55 +1118,55 @@ const uo = (e) => ({
1100
1118
  } = ht(e, t);
1101
1119
  if ((n = s.arrow) != null && n.alignmentOffset)
1102
1120
  return {};
1103
- const v = Q(i), y = et(r), b = Q(r) === r, w = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), E = p || (b || !g ? [Pt(r)] : ro(r)), S = m !== "none";
1104
- !p && S && E.push(...ao(r, g, m, w));
1105
- const $ = [r, ...E], U = await Xt(t, f), B = [];
1106
- let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
1107
- if (h && B.push(U[v]), d) {
1108
- const O = so(i, l, w);
1109
- B.push(U[O[0]], U[O[1]]);
1121
+ const v = Q(i), y = ot(r), b = Q(r) === r, x = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), z = p || (b || !g ? [kt(r)] : ao(r)), S = m !== "none";
1122
+ !p && S && z.push(...ho(r, g, m, x));
1123
+ const A = [r, ...z], W = await Xt(t, f), B = [];
1124
+ let $ = ((o = s.flip) == null ? void 0 : o.overflows) || [];
1125
+ if (h && B.push(W[v]), d) {
1126
+ const O = lo(i, l, x);
1127
+ B.push(W[O[0]], W[O[1]]);
1110
1128
  }
1111
- if (D = [...D, {
1129
+ if ($ = [...$, {
1112
1130
  placement: i,
1113
1131
  overflows: B
1114
1132
  }], !B.every((O) => O <= 0)) {
1115
- var K, _;
1116
- const O = (((K = s.flip) == null ? void 0 : K.index) || 0) + 1, it = $[O];
1133
+ var K, q;
1134
+ const O = (((K = s.flip) == null ? void 0 : K.index) || 0) + 1, it = A[O];
1117
1135
  if (it)
1118
1136
  return {
1119
1137
  data: {
1120
1138
  index: O,
1121
- overflows: D
1139
+ overflows: $
1122
1140
  },
1123
1141
  reset: {
1124
1142
  placement: it
1125
1143
  }
1126
1144
  };
1127
- let V = (_ = D.filter((H) => H.overflows[0] <= 0).sort((H, Y) => H.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : _.placement;
1128
- if (!V)
1145
+ let U = (q = $.filter((_) => _.overflows[0] <= 0).sort((_, X) => _.overflows[1] - X.overflows[1])[0]) == null ? void 0 : q.placement;
1146
+ if (!U)
1129
1147
  switch (u) {
1130
1148
  case "bestFit": {
1131
- var X;
1132
- const H = (X = D.filter((Y) => {
1149
+ var G;
1150
+ const _ = (G = $.filter((X) => {
1133
1151
  if (S) {
1134
- const G = et(Y.placement);
1135
- return G === y || // Create a bias to the `y` side axis due to horizontal
1152
+ const J = ot(X.placement);
1153
+ return J === y || // Create a bias to the `y` side axis due to horizontal
1136
1154
  // reading directions favoring greater width.
1137
- G === "y";
1155
+ J === "y";
1138
1156
  }
1139
1157
  return !0;
1140
- }).map((Y) => [Y.placement, Y.overflows.filter((G) => G > 0).reduce((G, $e) => G + $e, 0)]).sort((Y, G) => Y[1] - G[1])[0]) == null ? void 0 : X[0];
1141
- H && (V = H);
1158
+ }).map((X) => [X.placement, X.overflows.filter((J) => J > 0).reduce((J, Fe) => J + Fe, 0)]).sort((X, J) => X[1] - J[1])[0]) == null ? void 0 : G[0];
1159
+ _ && (U = _);
1142
1160
  break;
1143
1161
  }
1144
1162
  case "initialPlacement":
1145
- V = r;
1163
+ U = r;
1146
1164
  break;
1147
1165
  }
1148
- if (i !== V)
1166
+ if (i !== U)
1149
1167
  return {
1150
1168
  reset: {
1151
- placement: V
1169
+ placement: U
1152
1170
  }
1153
1171
  };
1154
1172
  }
@@ -1156,12 +1174,12 @@ const uo = (e) => ({
1156
1174
  }
1157
1175
  };
1158
1176
  };
1159
- async function mo(e, t) {
1177
+ async function fo(e, t) {
1160
1178
  const {
1161
1179
  placement: n,
1162
1180
  platform: o,
1163
1181
  elements: i
1164
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Q(n), r = dt(n), a = et(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, h = s && a ? -1 : 1, d = ht(t, e);
1182
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Q(n), r = dt(n), a = ot(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, h = s && a ? -1 : 1, d = ht(t, e);
1165
1183
  let {
1166
1184
  mainAxis: p,
1167
1185
  crossAxis: u,
@@ -1183,7 +1201,7 @@ async function mo(e, t) {
1183
1201
  y: u * h
1184
1202
  };
1185
1203
  }
1186
- const go = function(e) {
1204
+ const vo = function(e) {
1187
1205
  return e === void 0 && (e = 0), {
1188
1206
  name: "offset",
1189
1207
  options: e,
@@ -1194,7 +1212,7 @@ const go = function(e) {
1194
1212
  y: s,
1195
1213
  placement: l,
1196
1214
  middlewareData: r
1197
- } = t, a = await mo(t, e);
1215
+ } = t, a = await fo(t, e);
1198
1216
  return l === ((n = r.offset) == null ? void 0 : n.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
1199
1217
  x: i + a.x,
1200
1218
  y: s + a.y,
@@ -1205,7 +1223,7 @@ const go = function(e) {
1205
1223
  };
1206
1224
  }
1207
1225
  };
1208
- }, fo = function(e) {
1226
+ }, yo = function(e) {
1209
1227
  return e === void 0 && (e = {}), {
1210
1228
  name: "shift",
1211
1229
  options: e,
@@ -1233,7 +1251,7 @@ const go = function(e) {
1233
1251
  } = ht(e, t), c = {
1234
1252
  x: n,
1235
1253
  y: o
1236
- }, h = await Xt(t, a), d = et(Q(i)), p = xe(d);
1254
+ }, h = await Xt(t, a), d = ot(Q(i)), p = ze(d);
1237
1255
  let u = c[p], m = c[d];
1238
1256
  if (s) {
1239
1257
  const f = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = u + h[f], b = u - h[v];
@@ -1261,7 +1279,7 @@ const go = function(e) {
1261
1279
  };
1262
1280
  }
1263
1281
  };
1264
- }, vo = function(e) {
1282
+ }, bo = function(e) {
1265
1283
  return e === void 0 && (e = {}), {
1266
1284
  name: "size",
1267
1285
  options: e,
@@ -1276,22 +1294,22 @@ const go = function(e) {
1276
1294
  apply: a = () => {
1277
1295
  },
1278
1296
  ...c
1279
- } = ht(e, t), h = await Xt(t, c), d = Q(i), p = dt(i), u = et(i) === "y", {
1297
+ } = ht(e, t), h = await Xt(t, c), d = Q(i), p = dt(i), u = ot(i) === "y", {
1280
1298
  width: m,
1281
1299
  height: g
1282
1300
  } = s.floating;
1283
1301
  let f, v;
1284
1302
  d === "top" || d === "bottom" ? (f = d, v = p === (await (l.isRTL == null ? void 0 : l.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (v = d, f = p === "end" ? "top" : "bottom");
1285
- const y = g - h.top - h.bottom, b = m - h.left - h.right, w = Z(g - h[f], y), E = Z(m - h[v], b), S = !t.middlewareData.shift;
1286
- let $ = w, U = E;
1287
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (U = b), (o = t.middlewareData.shift) != null && o.enabled.y && ($ = y), S && !p) {
1288
- const D = R(h.left, 0), K = R(h.right, 0), _ = R(h.top, 0), X = R(h.bottom, 0);
1289
- u ? U = m - 2 * (D !== 0 || K !== 0 ? D + K : R(h.left, h.right)) : $ = g - 2 * (_ !== 0 || X !== 0 ? _ + X : R(h.top, h.bottom));
1303
+ const y = g - h.top - h.bottom, b = m - h.left - h.right, x = Z(g - h[f], y), z = Z(m - h[v], b), S = !t.middlewareData.shift;
1304
+ let A = x, W = z;
1305
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (W = b), (o = t.middlewareData.shift) != null && o.enabled.y && (A = y), S && !p) {
1306
+ const $ = L(h.left, 0), K = L(h.right, 0), q = L(h.top, 0), G = L(h.bottom, 0);
1307
+ u ? W = m - 2 * ($ !== 0 || K !== 0 ? $ + K : L(h.left, h.right)) : A = g - 2 * (q !== 0 || G !== 0 ? q + G : L(h.top, h.bottom));
1290
1308
  }
1291
1309
  await a({
1292
1310
  ...t,
1293
- availableWidth: U,
1294
- availableHeight: $
1311
+ availableWidth: W,
1312
+ availableHeight: A
1295
1313
  });
1296
1314
  const B = await l.getDimensions(r.floating);
1297
1315
  return m !== B.width || g !== B.height ? {
@@ -1302,45 +1320,45 @@ const go = function(e) {
1302
1320
  }
1303
1321
  };
1304
1322
  };
1305
- function Rt() {
1323
+ function At() {
1306
1324
  return typeof window < "u";
1307
1325
  }
1308
1326
  function ut(e) {
1309
- return ze(e) ? (e.nodeName || "").toLowerCase() : "#document";
1327
+ return Oe(e) ? (e.nodeName || "").toLowerCase() : "#document";
1310
1328
  }
1311
- function L(e) {
1329
+ function R(e) {
1312
1330
  var t;
1313
1331
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1314
1332
  }
1315
- function W(e) {
1333
+ function M(e) {
1316
1334
  var t;
1317
- return (t = (ze(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1335
+ return (t = (Oe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1318
1336
  }
1319
- function ze(e) {
1320
- return Rt() ? e instanceof Node || e instanceof L(e).Node : !1;
1337
+ function Oe(e) {
1338
+ return At() ? e instanceof Node || e instanceof R(e).Node : !1;
1321
1339
  }
1322
- function N(e) {
1323
- return Rt() ? e instanceof Element || e instanceof L(e).Element : !1;
1340
+ function F(e) {
1341
+ return At() ? e instanceof Element || e instanceof R(e).Element : !1;
1324
1342
  }
1325
- function M(e) {
1326
- return Rt() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
1343
+ function I(e) {
1344
+ return At() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
1327
1345
  }
1328
- function he(e) {
1329
- return !Rt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
1346
+ function ue(e) {
1347
+ return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
1330
1348
  }
1331
- function yt(e) {
1349
+ function wt(e) {
1332
1350
  const {
1333
1351
  overflow: t,
1334
1352
  overflowX: n,
1335
1353
  overflowY: o,
1336
1354
  display: i
1337
- } = q(e);
1355
+ } = N(e);
1338
1356
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1339
1357
  }
1340
- function yo(e) {
1358
+ function wo(e) {
1341
1359
  return ["table", "td", "th"].includes(ut(e));
1342
1360
  }
1343
- function Lt(e) {
1361
+ function $t(e) {
1344
1362
  return [":popover-open", ":modal"].some((t) => {
1345
1363
  try {
1346
1364
  return e.matches(t);
@@ -1349,32 +1367,32 @@ function Lt(e) {
1349
1367
  }
1350
1368
  });
1351
1369
  }
1352
- function Yt(e) {
1353
- const t = Gt(), n = N(e) ? q(e) : e;
1370
+ function Jt(e) {
1371
+ const t = Yt(), n = F(e) ? N(e) : e;
1354
1372
  return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1355
1373
  }
1356
- function bo(e) {
1374
+ function xo(e) {
1357
1375
  let t = tt(e);
1358
- for (; M(t) && !at(t); ) {
1359
- if (Yt(t))
1376
+ for (; I(t) && !at(t); ) {
1377
+ if (Jt(t))
1360
1378
  return t;
1361
- if (Lt(t))
1379
+ if ($t(t))
1362
1380
  return null;
1363
1381
  t = tt(t);
1364
1382
  }
1365
1383
  return null;
1366
1384
  }
1367
- function Gt() {
1385
+ function Yt() {
1368
1386
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1369
1387
  }
1370
1388
  function at(e) {
1371
1389
  return ["html", "body", "#document"].includes(ut(e));
1372
1390
  }
1373
- function q(e) {
1374
- return L(e).getComputedStyle(e);
1391
+ function N(e) {
1392
+ return R(e).getComputedStyle(e);
1375
1393
  }
1376
- function At(e) {
1377
- return N(e) ? {
1394
+ function Dt(e) {
1395
+ return F(e) ? {
1378
1396
  scrollLeft: e.scrollLeft,
1379
1397
  scrollTop: e.scrollTop
1380
1398
  } : {
@@ -1389,124 +1407,124 @@ function tt(e) {
1389
1407
  // Step into the shadow DOM of the parent of a slotted node.
1390
1408
  e.assignedSlot || // DOM Element detected.
1391
1409
  e.parentNode || // ShadowRoot detected.
1392
- he(e) && e.host || // Fallback.
1393
- W(e)
1410
+ ue(e) && e.host || // Fallback.
1411
+ M(e)
1394
1412
  );
1395
- return he(t) ? t.host : t;
1413
+ return ue(t) ? t.host : t;
1396
1414
  }
1397
- function Ce(e) {
1415
+ function Pe(e) {
1398
1416
  const t = tt(e);
1399
- return at(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : M(t) && yt(t) ? t : Ce(t);
1417
+ return at(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : I(t) && wt(t) ? t : Pe(t);
1400
1418
  }
1401
- function pt(e, t, n) {
1419
+ function mt(e, t, n) {
1402
1420
  var o;
1403
1421
  t === void 0 && (t = []), n === void 0 && (n = !0);
1404
- const i = Ce(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = L(i);
1422
+ const i = Pe(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = R(i);
1405
1423
  if (s) {
1406
- const r = _t(l);
1407
- return t.concat(l, l.visualViewport || [], yt(i) ? i : [], r && n ? pt(r) : []);
1424
+ const r = Ht(l);
1425
+ return t.concat(l, l.visualViewport || [], wt(i) ? i : [], r && n ? mt(r) : []);
1408
1426
  }
1409
- return t.concat(i, pt(i, [], n));
1427
+ return t.concat(i, mt(i, [], n));
1410
1428
  }
1411
- function _t(e) {
1429
+ function Ht(e) {
1412
1430
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1413
1431
  }
1414
- function Oe(e) {
1415
- const t = q(e);
1432
+ function Te(e) {
1433
+ const t = N(e);
1416
1434
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1417
- const i = M(e), s = i ? e.offsetWidth : n, l = i ? e.offsetHeight : o, r = Ot(n) !== s || Ot(o) !== l;
1435
+ const i = I(e), s = i ? e.offsetWidth : n, l = i ? e.offsetHeight : o, r = Tt(n) !== s || Tt(o) !== l;
1418
1436
  return r && (n = s, o = l), {
1419
1437
  width: n,
1420
1438
  height: o,
1421
1439
  $: r
1422
1440
  };
1423
1441
  }
1424
- function Jt(e) {
1425
- return N(e) ? e : e.contextElement;
1442
+ function Zt(e) {
1443
+ return F(e) ? e : e.contextElement;
1426
1444
  }
1427
1445
  function rt(e) {
1428
- const t = Jt(e);
1429
- if (!M(t))
1430
- return I(1);
1446
+ const t = Zt(e);
1447
+ if (!I(t))
1448
+ return H(1);
1431
1449
  const n = t.getBoundingClientRect(), {
1432
1450
  width: o,
1433
1451
  height: i,
1434
1452
  $: s
1435
- } = Oe(t);
1436
- let l = (s ? Ot(n.width) : n.width) / o, r = (s ? Ot(n.height) : n.height) / i;
1453
+ } = Te(t);
1454
+ let l = (s ? Tt(n.width) : n.width) / o, r = (s ? Tt(n.height) : n.height) / i;
1437
1455
  return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1438
1456
  x: l,
1439
1457
  y: r
1440
1458
  };
1441
1459
  }
1442
- const wo = /* @__PURE__ */ I(0);
1443
- function Pe(e) {
1444
- const t = L(e);
1445
- return !Gt() || !t.visualViewport ? wo : {
1460
+ const Eo = /* @__PURE__ */ H(0);
1461
+ function ke(e) {
1462
+ const t = R(e);
1463
+ return !Yt() || !t.visualViewport ? Eo : {
1446
1464
  x: t.visualViewport.offsetLeft,
1447
1465
  y: t.visualViewport.offsetTop
1448
1466
  };
1449
1467
  }
1450
- function xo(e, t, n) {
1451
- return t === void 0 && (t = !1), !n || t && n !== L(e) ? !1 : t;
1468
+ function zo(e, t, n) {
1469
+ return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
1452
1470
  }
1453
- function ot(e, t, n, o) {
1471
+ function nt(e, t, n, o) {
1454
1472
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1455
- const i = e.getBoundingClientRect(), s = Jt(e);
1456
- let l = I(1);
1457
- t && (o ? N(o) && (l = rt(o)) : l = rt(e));
1458
- const r = xo(s, n, o) ? Pe(s) : I(0);
1473
+ const i = e.getBoundingClientRect(), s = Zt(e);
1474
+ let l = H(1);
1475
+ t && (o ? F(o) && (l = rt(o)) : l = rt(e));
1476
+ const r = zo(s, n, o) ? ke(s) : H(0);
1459
1477
  let a = (i.left + r.x) / l.x, c = (i.top + r.y) / l.y, h = i.width / l.x, d = i.height / l.y;
1460
1478
  if (s) {
1461
- const p = L(s), u = o && N(o) ? L(o) : o;
1462
- let m = p, g = _t(m);
1479
+ const p = R(s), u = o && F(o) ? R(o) : o;
1480
+ let m = p, g = Ht(m);
1463
1481
  for (; g && o && u !== m; ) {
1464
- const f = rt(g), v = g.getBoundingClientRect(), y = q(g), b = v.left + (g.clientLeft + parseFloat(y.paddingLeft)) * f.x, w = v.top + (g.clientTop + parseFloat(y.paddingTop)) * f.y;
1465
- a *= f.x, c *= f.y, h *= f.x, d *= f.y, a += b, c += w, m = L(g), g = _t(m);
1482
+ const f = rt(g), v = g.getBoundingClientRect(), y = N(g), b = v.left + (g.clientLeft + parseFloat(y.paddingLeft)) * f.x, x = v.top + (g.clientTop + parseFloat(y.paddingTop)) * f.y;
1483
+ a *= f.x, c *= f.y, h *= f.x, d *= f.y, a += b, c += x, m = R(g), g = Ht(m);
1466
1484
  }
1467
1485
  }
1468
- return Tt({
1486
+ return St({
1469
1487
  width: h,
1470
1488
  height: d,
1471
1489
  x: a,
1472
1490
  y: c
1473
1491
  });
1474
1492
  }
1475
- function Zt(e, t) {
1476
- const n = At(e).scrollLeft;
1477
- return t ? t.left + n : ot(W(e)).left + n;
1493
+ function Qt(e, t) {
1494
+ const n = Dt(e).scrollLeft;
1495
+ return t ? t.left + n : nt(M(e)).left + n;
1478
1496
  }
1479
- function Te(e, t, n) {
1497
+ function Se(e, t, n) {
1480
1498
  n === void 0 && (n = !1);
1481
1499
  const o = e.getBoundingClientRect(), i = o.left + t.scrollLeft - (n ? 0 : (
1482
1500
  // RTL <body> scrollbar.
1483
- Zt(e, o)
1501
+ Qt(e, o)
1484
1502
  )), s = o.top + t.scrollTop;
1485
1503
  return {
1486
1504
  x: i,
1487
1505
  y: s
1488
1506
  };
1489
1507
  }
1490
- function Eo(e) {
1508
+ function Co(e) {
1491
1509
  let {
1492
1510
  elements: t,
1493
1511
  rect: n,
1494
1512
  offsetParent: o,
1495
1513
  strategy: i
1496
1514
  } = e;
1497
- const s = i === "fixed", l = W(o), r = t ? Lt(t.floating) : !1;
1515
+ const s = i === "fixed", l = M(o), r = t ? $t(t.floating) : !1;
1498
1516
  if (o === l || r && s)
1499
1517
  return n;
1500
1518
  let a = {
1501
1519
  scrollLeft: 0,
1502
1520
  scrollTop: 0
1503
- }, c = I(1);
1504
- const h = I(0), d = M(o);
1505
- if ((d || !d && !s) && ((ut(o) !== "body" || yt(l)) && (a = At(o)), M(o))) {
1506
- const u = ot(o);
1521
+ }, c = H(1);
1522
+ const h = H(0), d = I(o);
1523
+ if ((d || !d && !s) && ((ut(o) !== "body" || wt(l)) && (a = Dt(o)), I(o))) {
1524
+ const u = nt(o);
1507
1525
  c = rt(o), h.x = u.x + o.clientLeft, h.y = u.y + o.clientTop;
1508
1526
  }
1509
- const p = l && !d && !s ? Te(l, a, !0) : I(0);
1527
+ const p = l && !d && !s ? Se(l, a, !0) : H(0);
1510
1528
  return {
1511
1529
  width: n.width * c.x,
1512
1530
  height: n.height * c.y,
@@ -1514,26 +1532,26 @@ function Eo(e) {
1514
1532
  y: n.y * c.y - a.scrollTop * c.y + h.y + p.y
1515
1533
  };
1516
1534
  }
1517
- function zo(e) {
1535
+ function Oo(e) {
1518
1536
  return Array.from(e.getClientRects());
1519
1537
  }
1520
- function Co(e) {
1521
- const t = W(e), n = At(e), o = e.ownerDocument.body, i = R(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = R(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1522
- let l = -n.scrollLeft + Zt(e);
1538
+ function Po(e) {
1539
+ const t = M(e), n = Dt(e), o = e.ownerDocument.body, i = L(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = L(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1540
+ let l = -n.scrollLeft + Qt(e);
1523
1541
  const r = -n.scrollTop;
1524
- return q(o).direction === "rtl" && (l += R(t.clientWidth, o.clientWidth) - i), {
1542
+ return N(o).direction === "rtl" && (l += L(t.clientWidth, o.clientWidth) - i), {
1525
1543
  width: i,
1526
1544
  height: s,
1527
1545
  x: l,
1528
1546
  y: r
1529
1547
  };
1530
1548
  }
1531
- function Oo(e, t) {
1532
- const n = L(e), o = W(e), i = n.visualViewport;
1549
+ function To(e, t) {
1550
+ const n = R(e), o = M(e), i = n.visualViewport;
1533
1551
  let s = o.clientWidth, l = o.clientHeight, r = 0, a = 0;
1534
1552
  if (i) {
1535
1553
  s = i.width, l = i.height;
1536
- const c = Gt();
1554
+ const c = Yt();
1537
1555
  (!c || c && t === "fixed") && (r = i.offsetLeft, a = i.offsetTop);
1538
1556
  }
1539
1557
  return {
@@ -1543,8 +1561,8 @@ function Oo(e, t) {
1543
1561
  y: a
1544
1562
  };
1545
1563
  }
1546
- function Po(e, t) {
1547
- const n = ot(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = M(e) ? rt(e) : I(1), l = e.clientWidth * s.x, r = e.clientHeight * s.y, a = i * s.x, c = o * s.y;
1564
+ function ko(e, t) {
1565
+ const n = nt(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = I(e) ? rt(e) : H(1), l = e.clientWidth * s.x, r = e.clientHeight * s.y, a = i * s.x, c = o * s.y;
1548
1566
  return {
1549
1567
  width: l,
1550
1568
  height: r,
@@ -1552,16 +1570,16 @@ function Po(e, t) {
1552
1570
  y: c
1553
1571
  };
1554
1572
  }
1555
- function de(e, t, n) {
1573
+ function pe(e, t, n) {
1556
1574
  let o;
1557
1575
  if (t === "viewport")
1558
- o = Oo(e, n);
1576
+ o = To(e, n);
1559
1577
  else if (t === "document")
1560
- o = Co(W(e));
1561
- else if (N(t))
1562
- o = Po(t, n);
1578
+ o = Po(M(e));
1579
+ else if (F(t))
1580
+ o = ko(t, n);
1563
1581
  else {
1564
- const i = Pe(e);
1582
+ const i = ke(e);
1565
1583
  o = {
1566
1584
  x: t.x - i.x,
1567
1585
  y: t.y - i.y,
@@ -1569,36 +1587,36 @@ function de(e, t, n) {
1569
1587
  height: t.height
1570
1588
  };
1571
1589
  }
1572
- return Tt(o);
1590
+ return St(o);
1573
1591
  }
1574
- function ke(e, t) {
1592
+ function Le(e, t) {
1575
1593
  const n = tt(e);
1576
- return n === t || !N(n) || at(n) ? !1 : q(n).position === "fixed" || ke(n, t);
1594
+ return n === t || !F(n) || at(n) ? !1 : N(n).position === "fixed" || Le(n, t);
1577
1595
  }
1578
- function To(e, t) {
1596
+ function So(e, t) {
1579
1597
  const n = t.get(e);
1580
1598
  if (n)
1581
1599
  return n;
1582
- let o = pt(e, [], !1).filter((r) => N(r) && ut(r) !== "body"), i = null;
1583
- const s = q(e).position === "fixed";
1600
+ let o = mt(e, [], !1).filter((r) => F(r) && ut(r) !== "body"), i = null;
1601
+ const s = N(e).position === "fixed";
1584
1602
  let l = s ? tt(e) : e;
1585
- for (; N(l) && !at(l); ) {
1586
- const r = q(l), a = Yt(l);
1587
- !a && r.position === "fixed" && (i = null), (s ? !a && !i : !a && r.position === "static" && i && ["absolute", "fixed"].includes(i.position) || yt(l) && !a && ke(e, l)) ? o = o.filter((c) => c !== l) : i = r, l = tt(l);
1603
+ for (; F(l) && !at(l); ) {
1604
+ const r = N(l), a = Jt(l);
1605
+ !a && r.position === "fixed" && (i = null), (s ? !a && !i : !a && r.position === "static" && i && ["absolute", "fixed"].includes(i.position) || wt(l) && !a && Le(e, l)) ? o = o.filter((c) => c !== l) : i = r, l = tt(l);
1588
1606
  }
1589
1607
  return t.set(e, o), o;
1590
1608
  }
1591
- function ko(e) {
1609
+ function Lo(e) {
1592
1610
  let {
1593
1611
  element: t,
1594
1612
  boundary: n,
1595
1613
  rootBoundary: o,
1596
1614
  strategy: i
1597
1615
  } = e;
1598
- const s = [...n === "clippingAncestors" ? Lt(t) ? [] : To(t, this._c) : [].concat(n), o], l = s[0], r = s.reduce((a, c) => {
1599
- const h = de(t, c, i);
1600
- return a.top = R(h.top, a.top), a.right = Z(h.right, a.right), a.bottom = Z(h.bottom, a.bottom), a.left = R(h.left, a.left), a;
1601
- }, de(t, l, i));
1616
+ const s = [...n === "clippingAncestors" ? $t(t) ? [] : So(t, this._c) : [].concat(n), o], l = s[0], r = s.reduce((a, c) => {
1617
+ const h = pe(t, c, i);
1618
+ return a.top = L(h.top, a.top), a.right = Z(h.right, a.right), a.bottom = Z(h.bottom, a.bottom), a.left = L(h.left, a.left), a;
1619
+ }, pe(t, l, i));
1602
1620
  return {
1603
1621
  width: r.right - r.left,
1604
1622
  height: r.bottom - r.top,
@@ -1606,29 +1624,29 @@ function ko(e) {
1606
1624
  y: r.top
1607
1625
  };
1608
1626
  }
1609
- function So(e) {
1627
+ function Ro(e) {
1610
1628
  const {
1611
1629
  width: t,
1612
1630
  height: n
1613
- } = Oe(e);
1631
+ } = Te(e);
1614
1632
  return {
1615
1633
  width: t,
1616
1634
  height: n
1617
1635
  };
1618
1636
  }
1619
- function Ro(e, t, n) {
1620
- const o = M(t), i = W(t), s = n === "fixed", l = ot(e, !0, s, t);
1637
+ function Ao(e, t, n) {
1638
+ const o = I(t), i = M(t), s = n === "fixed", l = nt(e, !0, s, t);
1621
1639
  let r = {
1622
1640
  scrollLeft: 0,
1623
1641
  scrollTop: 0
1624
1642
  };
1625
- const a = I(0);
1643
+ const a = H(0);
1626
1644
  if (o || !o && !s)
1627
- if ((ut(t) !== "body" || yt(i)) && (r = At(t)), o) {
1628
- const p = ot(t, !0, s, t);
1645
+ if ((ut(t) !== "body" || wt(i)) && (r = Dt(t)), o) {
1646
+ const p = nt(t, !0, s, t);
1629
1647
  a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
1630
- } else i && (a.x = Zt(i));
1631
- const c = i && !o && !s ? Te(i, r) : I(0), h = l.left + r.scrollLeft - a.x - c.x, d = l.top + r.scrollTop - a.y - c.y;
1648
+ } else i && (a.x = Qt(i));
1649
+ const c = i && !o && !s ? Se(i, r) : H(0), h = l.left + r.scrollLeft - a.x - c.x, d = l.top + r.scrollTop - a.y - c.y;
1632
1650
  return {
1633
1651
  x: h,
1634
1652
  y: d,
@@ -1636,39 +1654,39 @@ function Ro(e, t, n) {
1636
1654
  height: l.height
1637
1655
  };
1638
1656
  }
1639
- function Dt(e) {
1640
- return q(e).position === "static";
1657
+ function Nt(e) {
1658
+ return N(e).position === "static";
1641
1659
  }
1642
- function ue(e, t) {
1643
- if (!M(e) || q(e).position === "fixed")
1660
+ function me(e, t) {
1661
+ if (!I(e) || N(e).position === "fixed")
1644
1662
  return null;
1645
1663
  if (t)
1646
1664
  return t(e);
1647
1665
  let n = e.offsetParent;
1648
- return W(e) === n && (n = n.ownerDocument.body), n;
1666
+ return M(e) === n && (n = n.ownerDocument.body), n;
1649
1667
  }
1650
- function Se(e, t) {
1651
- const n = L(e);
1652
- if (Lt(e))
1668
+ function Re(e, t) {
1669
+ const n = R(e);
1670
+ if ($t(e))
1653
1671
  return n;
1654
- if (!M(e)) {
1672
+ if (!I(e)) {
1655
1673
  let i = tt(e);
1656
1674
  for (; i && !at(i); ) {
1657
- if (N(i) && !Dt(i))
1675
+ if (F(i) && !Nt(i))
1658
1676
  return i;
1659
1677
  i = tt(i);
1660
1678
  }
1661
1679
  return n;
1662
1680
  }
1663
- let o = ue(e, t);
1664
- for (; o && yo(o) && Dt(o); )
1665
- o = ue(o, t);
1666
- return o && at(o) && Dt(o) && !Yt(o) ? n : o || bo(e) || n;
1681
+ let o = me(e, t);
1682
+ for (; o && wo(o) && Nt(o); )
1683
+ o = me(o, t);
1684
+ return o && at(o) && Nt(o) && !Jt(o) ? n : o || xo(e) || n;
1667
1685
  }
1668
- const Lo = async function(e) {
1669
- const t = this.getOffsetParent || Se, n = this.getDimensions, o = await n(e.floating);
1686
+ const $o = async function(e) {
1687
+ const t = this.getOffsetParent || Re, n = this.getDimensions, o = await n(e.floating);
1670
1688
  return {
1671
- reference: Ro(e.reference, await t(e.floating), e.strategy),
1689
+ reference: Ao(e.reference, await t(e.floating), e.strategy),
1672
1690
  floating: {
1673
1691
  x: 0,
1674
1692
  y: 0,
@@ -1677,27 +1695,27 @@ const Lo = async function(e) {
1677
1695
  }
1678
1696
  };
1679
1697
  };
1680
- function Ao(e) {
1681
- return q(e).direction === "rtl";
1682
- }
1683
- const $o = {
1684
- convertOffsetParentRelativeRectToViewportRelativeRect: Eo,
1685
- getDocumentElement: W,
1686
- getClippingRect: ko,
1687
- getOffsetParent: Se,
1688
- getElementRects: Lo,
1689
- getClientRects: zo,
1690
- getDimensions: So,
1698
+ function Do(e) {
1699
+ return N(e).direction === "rtl";
1700
+ }
1701
+ const Fo = {
1702
+ convertOffsetParentRelativeRectToViewportRelativeRect: Co,
1703
+ getDocumentElement: M,
1704
+ getClippingRect: Lo,
1705
+ getOffsetParent: Re,
1706
+ getElementRects: $o,
1707
+ getClientRects: Oo,
1708
+ getDimensions: Ro,
1691
1709
  getScale: rt,
1692
- isElement: N,
1693
- isRTL: Ao
1710
+ isElement: F,
1711
+ isRTL: Do
1694
1712
  };
1695
- function Re(e, t) {
1713
+ function Ae(e, t) {
1696
1714
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1697
1715
  }
1698
- function Do(e, t) {
1716
+ function No(e, t) {
1699
1717
  let n = null, o;
1700
- const i = W(e);
1718
+ const i = M(e);
1701
1719
  function s() {
1702
1720
  var r;
1703
1721
  clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
@@ -1712,13 +1730,13 @@ function Do(e, t) {
1712
1730
  } = c;
1713
1731
  if (r || t(), !p || !u)
1714
1732
  return;
1715
- const m = xt(d), g = xt(i.clientWidth - (h + p)), f = xt(i.clientHeight - (d + u)), v = xt(h), y = {
1733
+ const m = zt(d), g = zt(i.clientWidth - (h + p)), f = zt(i.clientHeight - (d + u)), v = zt(h), y = {
1716
1734
  rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
1717
- threshold: R(0, Z(1, a)) || 1
1735
+ threshold: L(0, Z(1, a)) || 1
1718
1736
  };
1719
1737
  let b = !0;
1720
- function w(E) {
1721
- const S = E[0].intersectionRatio;
1738
+ function x(z) {
1739
+ const S = z[0].intersectionRatio;
1722
1740
  if (S !== a) {
1723
1741
  if (!b)
1724
1742
  return l();
@@ -1726,22 +1744,22 @@ function Do(e, t) {
1726
1744
  l(!1, 1e-7);
1727
1745
  }, 1e3);
1728
1746
  }
1729
- S === 1 && !Re(c, e.getBoundingClientRect()) && l(), b = !1;
1747
+ S === 1 && !Ae(c, e.getBoundingClientRect()) && l(), b = !1;
1730
1748
  }
1731
1749
  try {
1732
- n = new IntersectionObserver(w, {
1750
+ n = new IntersectionObserver(x, {
1733
1751
  ...y,
1734
1752
  // Handle <iframe>s
1735
1753
  root: i.ownerDocument
1736
1754
  });
1737
1755
  } catch {
1738
- n = new IntersectionObserver(w, y);
1756
+ n = new IntersectionObserver(x, y);
1739
1757
  }
1740
1758
  n.observe(e);
1741
1759
  }
1742
1760
  return l(!0), s;
1743
1761
  }
1744
- function pe(e, t, n, o) {
1762
+ function ge(e, t, n, o) {
1745
1763
  o === void 0 && (o = {});
1746
1764
  const {
1747
1765
  ancestorScroll: i = !0,
@@ -1749,13 +1767,13 @@ function pe(e, t, n, o) {
1749
1767
  elementResize: l = typeof ResizeObserver == "function",
1750
1768
  layoutShift: r = typeof IntersectionObserver == "function",
1751
1769
  animationFrame: a = !1
1752
- } = o, c = Jt(e), h = i || s ? [...c ? pt(c) : [], ...pt(t)] : [];
1770
+ } = o, c = Zt(e), h = i || s ? [...c ? mt(c) : [], ...mt(t)] : [];
1753
1771
  h.forEach((v) => {
1754
1772
  i && v.addEventListener("scroll", n, {
1755
1773
  passive: !0
1756
1774
  }), s && v.addEventListener("resize", n);
1757
1775
  });
1758
- const d = c && r ? Do(c, n) : null;
1776
+ const d = c && r ? No(c, n) : null;
1759
1777
  let p = -1, u = null;
1760
1778
  l && (u = new ResizeObserver((v) => {
1761
1779
  let [y] = v;
@@ -1764,11 +1782,11 @@ function pe(e, t, n, o) {
1764
1782
  (b = u) == null || b.observe(t);
1765
1783
  })), n();
1766
1784
  }), c && !a && u.observe(c), u.observe(t));
1767
- let m, g = a ? ot(e) : null;
1785
+ let m, g = a ? nt(e) : null;
1768
1786
  a && f();
1769
1787
  function f() {
1770
- const v = ot(e);
1771
- g && !Re(g, v) && n(), g = v, m = requestAnimationFrame(f);
1788
+ const v = nt(e);
1789
+ g && !Ae(g, v) && n(), g = v, m = requestAnimationFrame(f);
1772
1790
  }
1773
1791
  return n(), () => {
1774
1792
  var v;
@@ -1777,26 +1795,26 @@ function pe(e, t, n, o) {
1777
1795
  }), d == null || d(), (v = u) == null || v.disconnect(), u = null, a && cancelAnimationFrame(m);
1778
1796
  };
1779
1797
  }
1780
- const Fo = go, No = fo, me = po, qo = vo, Bo = uo, _o = (e, t, n) => {
1798
+ const Bo = vo, qo = yo, fe = go, _o = bo, Ho = mo, Io = (e, t, n) => {
1781
1799
  const o = /* @__PURE__ */ new Map(), i = {
1782
- platform: $o,
1800
+ platform: Fo,
1783
1801
  ...n
1784
1802
  }, s = {
1785
1803
  ...i.platform,
1786
1804
  _c: o
1787
1805
  };
1788
- return ho(e, t, {
1806
+ return po(e, t, {
1789
1807
  ...i,
1790
1808
  platform: s
1791
1809
  });
1792
1810
  };
1793
- function Et(e) {
1811
+ function Ct(e) {
1794
1812
  if (e === void 0)
1795
1813
  return 0;
1796
1814
  const t = window.devicePixelRatio || 1;
1797
1815
  return Math.round(e * t) / t;
1798
1816
  }
1799
- const zt = 8, Ho = 100, Io = (e) => ({
1817
+ const Ot = 8, Mo = 100, Wo = (e) => ({
1800
1818
  left: ["right", "bottom", "top"],
1801
1819
  "left-start": ["right-start", "bottom", "top"],
1802
1820
  "left-end": ["right-end", "bottom", "top"],
@@ -1809,8 +1827,8 @@ const zt = 8, Ho = 100, Io = (e) => ({
1809
1827
  bottom: ["top", "left", "right"],
1810
1828
  "bottom-start": ["top-start", "left", "right"],
1811
1829
  "bottom-end": ["top-end", "left", "right"]
1812
- })[e] ?? [e], Le = Symbol("placement updated");
1813
- class Qt {
1830
+ })[e] ?? [e], $e = Symbol("placement updated");
1831
+ class te {
1814
1832
  /**
1815
1833
  * Creates an instance of the PlacementController.
1816
1834
  *
@@ -1838,7 +1856,7 @@ class Qt {
1838
1856
  placeOverlay(t = this.target, n = this.options) {
1839
1857
  if (this.target = t, this.options = n, !t || !n)
1840
1858
  return;
1841
- const o = pe(
1859
+ const o = ge(
1842
1860
  n.trigger,
1843
1861
  t,
1844
1862
  this.closeForAncestorUpdate,
@@ -1847,7 +1865,7 @@ class Qt {
1847
1865
  elementResize: !1,
1848
1866
  layoutShift: !1
1849
1867
  }
1850
- ), i = pe(
1868
+ ), i = ge(
1851
1869
  n.trigger,
1852
1870
  t,
1853
1871
  this.updatePlacement,
@@ -1882,23 +1900,23 @@ class Qt {
1882
1900
  var t, n;
1883
1901
  const { options: o, target: i } = this;
1884
1902
  await (document.fonts ? document.fonts.ready : Promise.resolve());
1885
- const s = o.trigger instanceof HTMLElement ? me() : me({
1886
- padding: zt,
1887
- fallbackPlacements: Io(o.placement)
1903
+ const s = o.trigger instanceof HTMLElement ? fe() : fe({
1904
+ padding: Ot,
1905
+ fallbackPlacements: Wo(o.placement)
1888
1906
  }), [l = 0, r = 0] = Array.isArray(o == null ? void 0 : o.offset) ? o.offset : [o.offset, 0], a = (t = this.host.elements.find(
1889
1907
  (m) => m.tipElement
1890
1908
  )) == null ? void 0 : t.tipElement, c = [
1891
- Fo({
1909
+ Bo({
1892
1910
  mainAxis: l,
1893
1911
  crossAxis: r
1894
1912
  }),
1895
- No({ padding: zt }),
1913
+ qo({ padding: Ot }),
1896
1914
  s,
1897
- qo({
1898
- padding: zt,
1915
+ _o({
1916
+ padding: Ot,
1899
1917
  apply: ({ availableWidth: m, availableHeight: g, rects: { floating: f } }) => {
1900
1918
  const v = Math.max(
1901
- Ho,
1919
+ Mo,
1902
1920
  Math.floor(g)
1903
1921
  ), y = f.height;
1904
1922
  this.initialHeight = this.isConstrained && this.initialHeight || y, this.isConstrained = y < this.initialHeight || v <= y;
@@ -1910,12 +1928,12 @@ class Qt {
1910
1928
  }
1911
1929
  }),
1912
1930
  ...a ? [
1913
- Bo({
1931
+ Ho({
1914
1932
  element: a,
1915
- padding: o.tipPadding || zt
1933
+ padding: o.tipPadding || Ot
1916
1934
  })
1917
1935
  ] : []
1918
- ], { x: h, y: d, placement: p, middlewareData: u } = await _o(
1936
+ ], { x: h, y: d, placement: p, middlewareData: u } = await Io(
1919
1937
  o.trigger,
1920
1938
  i,
1921
1939
  {
@@ -1927,7 +1945,7 @@ class Qt {
1927
1945
  if (Object.assign(i.style, {
1928
1946
  top: "0px",
1929
1947
  left: "0px",
1930
- translate: `${Et(h)}px ${Et(d)}px`
1948
+ translate: `${Ct(h)}px ${Ct(d)}px`
1931
1949
  }), i.setAttribute("actual-placement", p), (n = this.host.elements) == null || n.forEach((m) => {
1932
1950
  this.originalPlacements.has(m) || this.originalPlacements.set(
1933
1951
  m,
@@ -1938,7 +1956,7 @@ class Qt {
1938
1956
  Object.assign(a.style, {
1939
1957
  top: p.startsWith("right") || p.startsWith("left") ? "0px" : "",
1940
1958
  left: p.startsWith("bottom") || p.startsWith("top") ? "0px" : "",
1941
- translate: `${Et(m)}px ${Et(g)}px`
1959
+ translate: `${Ct(m)}px ${Ct(g)}px`
1942
1960
  });
1943
1961
  }
1944
1962
  }
@@ -1984,8 +2002,9 @@ class Qt {
1984
2002
  );
1985
2003
  }
1986
2004
  }
1987
- var nt = /* @__PURE__ */ ((e) => (e[e.click = 0] = "click", e[e.hover = 1] = "hover", e[e.longpress = 2] = "longpress", e))(nt || {});
1988
- class bt {
2005
+ var et = /* @__PURE__ */ ((e) => (e.click = "click", e.hover = "hover", e.longpress = "longpress", e))(et || {});
2006
+ const gt = Symbol("lastInteractionType"), pt = "remove-focus-ring-safari-hack";
2007
+ class xt {
1989
2008
  constructor(t, { overlay: n, isPersistent: o, handleOverlayReady: i }) {
1990
2009
  this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!o, this.handleOverlayReady = i, this.isPersistent && this.init(), this.overlay = n;
1991
2010
  }
@@ -2002,13 +2021,13 @@ class bt {
2002
2021
  set open(t) {
2003
2022
  if (t !== this.open) {
2004
2023
  if (this.isLazilyOpen = t, this.overlay) {
2005
- this.overlay.open = t;
2024
+ this.overlay.open = t, this.target[gt] = this.type;
2006
2025
  return;
2007
2026
  }
2008
2027
  t && (customElements.whenDefined("luzmo-overlay").then(async () => {
2009
- const { LuzmoOverlay: n } = await Promise.resolve().then(() => kt);
2010
- this.overlay = new n(), this.overlay.open = !0;
2011
- }), Promise.resolve().then(() => kt));
2028
+ const { LuzmoOverlay: n } = await Promise.resolve().then(() => Lt);
2029
+ this.overlay = new n(), this.overlay.open = !0, this.target[gt] = this.type;
2030
+ }), Promise.resolve().then(() => Lt));
2012
2031
  }
2013
2032
  }
2014
2033
  get overlay() {
@@ -2041,9 +2060,9 @@ class bt {
2041
2060
  this.isPersistent || this.abort();
2042
2061
  }
2043
2062
  }
2044
- class te extends bt {
2063
+ class ee extends xt {
2045
2064
  constructor() {
2046
- super(...arguments), this.type = nt.click, this.preventNextToggle = !1;
2065
+ super(...arguments), this.type = et.click, this.preventNextToggle = !1;
2047
2066
  }
2048
2067
  handleClick() {
2049
2068
  this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
@@ -2064,16 +2083,25 @@ class te extends bt {
2064
2083
  );
2065
2084
  }
2066
2085
  }
2067
- const Mo = 300;
2068
- class ee extends bt {
2086
+ const Uo = 300;
2087
+ class oe extends xt {
2069
2088
  constructor() {
2070
- super(...arguments), this.type = nt.hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2089
+ super(...arguments), this.type = et.hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2090
+ }
2091
+ handleKeyup(t) {
2092
+ (t.code === "Tab" || t.code === "Escape") && (this.open = !0, this.removeSafariFocusRingClass());
2071
2093
  }
2072
2094
  handleTargetFocusin() {
2073
- this.target.matches(":focus-visible") && (this.open = !0, this.focusedin = !0);
2095
+ if (this.target.matches(":focus-visible")) {
2096
+ if (le() && this.target[gt] === et.click) {
2097
+ this.target.classList.add(pt);
2098
+ return;
2099
+ }
2100
+ this.open = !0, this.focusedin = !0, this.removeSafariFocusRingClass();
2101
+ }
2074
2102
  }
2075
2103
  handleTargetFocusout() {
2076
- this.focusedin = !1, !this.pointerentered && (this.open = !1);
2104
+ this.removeSafariFocusRingClass(), this.focusedin = !1, !this.pointerentered && (this.open = !1);
2077
2105
  }
2078
2106
  handleTargetPointerenter() {
2079
2107
  var t;
@@ -2097,19 +2125,19 @@ class ee extends bt {
2097
2125
  t === o ? this.prepareOverlayRelativeDescription() : t === n && this.prepareContentRelativeDescription();
2098
2126
  }
2099
2127
  prepareOverlayRelativeDescription() {
2100
- const t = Nt(
2128
+ const t = Bt(
2101
2129
  this.target,
2102
2130
  "aria-describedby",
2103
2131
  [this.overlay.id]
2104
2132
  );
2105
2133
  this.releaseDescription = () => {
2106
- t(), this.releaseDescription = j;
2134
+ t(), this.releaseDescription = V;
2107
2135
  };
2108
2136
  }
2109
2137
  prepareContentRelativeDescription() {
2110
- const t = [], n = this.overlay.elements.map((i) => (t.push(i.id), i.id || (i.id = `${this.overlay.tagName.toLowerCase()}-helper-${It()}`), i.id));
2138
+ const t = [], n = this.overlay.elements.map((i) => (t.push(i.id), i.id || (i.id = `${this.overlay.tagName.toLowerCase()}-helper-${Mt()}`), i.id));
2111
2139
  this.elementIds = t;
2112
- const o = Nt(
2140
+ const o = Bt(
2113
2141
  this.target,
2114
2142
  "aria-describedby",
2115
2143
  n
@@ -2117,7 +2145,7 @@ class ee extends bt {
2117
2145
  this.releaseDescription = () => {
2118
2146
  o(), this.overlay.elements.map((i, s) => {
2119
2147
  i.id = this.elementIds[s];
2120
- }), this.releaseDescription = j;
2148
+ }), this.releaseDescription = V;
2121
2149
  };
2122
2150
  }
2123
2151
  doPointerleave() {
@@ -2125,13 +2153,15 @@ class ee extends bt {
2125
2153
  const t = this.target;
2126
2154
  this.focusedin && t.matches(":focus-visible") || (this.hoverTimeout = setTimeout(() => {
2127
2155
  this.open = !1;
2128
- }, Mo));
2156
+ }, Uo));
2129
2157
  }
2130
2158
  init() {
2131
2159
  var t;
2132
2160
  (t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
2133
2161
  const { signal: n } = this.abortController;
2134
- this.target.addEventListener("focusin", () => this.handleTargetFocusin(), {
2162
+ this.target.addEventListener("keyup", (o) => this.handleKeyup(o), {
2163
+ signal: n
2164
+ }), this.target.addEventListener("focusin", () => this.handleTargetFocusin(), {
2135
2165
  signal: n
2136
2166
  }), this.target.addEventListener(
2137
2167
  "focusout",
@@ -2161,15 +2191,18 @@ class ee extends bt {
2161
2191
  { signal: t }
2162
2192
  );
2163
2193
  }
2194
+ removeSafariFocusRingClass() {
2195
+ le() && this.target.classList.contains(pt) && this.target.classList.remove(pt);
2196
+ }
2164
2197
  }
2165
- const Wo = 300, oe = {
2198
+ const jo = 300, ne = {
2166
2199
  touch: "Double tap and long press for additional options",
2167
2200
  keyboard: "Press Space or Alt+Down Arrow for additional options",
2168
2201
  mouse: "Click and hold for additional options"
2169
2202
  };
2170
- class ne extends bt {
2203
+ class ie extends xt {
2171
2204
  constructor() {
2172
- super(...arguments), this.type = nt.longpress, this.longpressState = null, this.releaseDescription = j, this.handlePointerup = () => {
2205
+ super(...arguments), this.type = et.longpress, this.longpressState = null, this.releaseDescription = V, this.handlePointerup = () => {
2173
2206
  var t;
2174
2207
  clearTimeout(this.timeout), this.target && (this.longpressState = ((t = this.overlay) == null ? void 0 : t.state) === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
2175
2208
  };
@@ -2191,7 +2224,7 @@ class ne extends bt {
2191
2224
  }
2192
2225
  })
2193
2226
  );
2194
- }, Wo));
2227
+ }, jo));
2195
2228
  }
2196
2229
  handleKeydown(t) {
2197
2230
  const { code: n, altKey: o } = t;
@@ -2218,23 +2251,23 @@ class ne extends bt {
2218
2251
  prepareDescription(t) {
2219
2252
  if (
2220
2253
  // do not reapply until target is recycled
2221
- this.releaseDescription !== j || // require "longpress content" to apply relationship
2254
+ this.releaseDescription !== V || // require "longpress content" to apply relationship
2222
2255
  this.overlay.elements.length === 0
2223
2256
  )
2224
2257
  return;
2225
2258
  const n = document.createElement("div");
2226
- n.id = `longpress-describedby-descriptor-${It()}`;
2227
- const o = He() || Ie() ? "touch" : "keyboard";
2228
- n.textContent = oe[o], n.slot = "longpress-describedby-descriptor";
2259
+ n.id = `longpress-describedby-descriptor-${Mt()}`;
2260
+ const o = Me() || We() ? "touch" : "keyboard";
2261
+ n.textContent = ne[o], n.slot = "longpress-describedby-descriptor";
2229
2262
  const i = t.getRootNode(), s = this.overlay.getRootNode();
2230
2263
  i === s ? this.overlay.append(n) : (n.hidden = !("host" in i), t.after(n));
2231
- const l = Nt(
2264
+ const l = Bt(
2232
2265
  t,
2233
2266
  "aria-describedby",
2234
2267
  [n.id]
2235
2268
  );
2236
2269
  this.releaseDescription = () => {
2237
- l(), n.remove(), this.releaseDescription = j;
2270
+ l(), n.remove(), this.releaseDescription = V;
2238
2271
  };
2239
2272
  }
2240
2273
  shouldCompleteOpen() {
@@ -2261,21 +2294,21 @@ class ne extends bt {
2261
2294
  ));
2262
2295
  }
2263
2296
  }
2264
- const ie = {
2265
- click: te,
2266
- longpress: ne,
2267
- hover: ee
2297
+ const se = {
2298
+ click: ee,
2299
+ longpress: ie,
2300
+ hover: oe
2268
2301
  };
2269
- var Uo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, P = (e, t, n, o) => {
2270
- for (var i = o > 1 ? void 0 : o ? Vo(t, n) : t, s = e.length - 1, l; s >= 0; s--)
2302
+ var Vo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, P = (e, t, n, o) => {
2303
+ for (var i = o > 1 ? void 0 : o ? Ko(t, n) : t, s = e.length - 1, l; s >= 0; s--)
2271
2304
  (l = e[s]) && (i = (o ? l(t, n, i) : l(i)) || i);
2272
- return o && i && Uo(t, n, i), i;
2305
+ return o && i && Vo(t, n, i), i;
2273
2306
  };
2274
- const jo = "showPopover" in document.createElement("div");
2275
- let Ct = Ge(J);
2276
- Ct = jo ? Qe(Ct) : Je(Ct);
2307
+ const Go = "showPopover" in document.createElement("div");
2308
+ let Pt = Ze(Y);
2309
+ Pt = Go ? eo(Pt) : Qe(Pt);
2277
2310
  var st;
2278
- const z = (st = class extends Ct {
2311
+ const C = (st = class extends Pt {
2279
2312
  constructor() {
2280
2313
  super(...arguments), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (e) => {
2281
2314
  if (!e.relatedTarget)
@@ -2285,7 +2318,8 @@ const z = (st = class extends Ct {
2285
2318
  composed: !0
2286
2319
  });
2287
2320
  e.relatedTarget.addEventListener(t.type, (n) => {
2288
- n.composedPath().includes(this) || (this.open = !1);
2321
+ const o = n.composedPath(), i = o.includes(this);
2322
+ console.log("isWithinOverlay", e, n, i, o, this), i || (this.open = !1);
2289
2323
  }), e.relatedTarget.dispatchEvent(t);
2290
2324
  };
2291
2325
  }
@@ -2322,7 +2356,7 @@ const z = (st = class extends Ct {
2322
2356
  * @returns The `PlacementController` instance.
2323
2357
  */
2324
2358
  get placementController() {
2325
- return this._placementController || (this._placementController = new Qt(this)), this._placementController;
2359
+ return this._placementController || (this._placementController = new te(this)), this._placementController;
2326
2360
  }
2327
2361
  get open() {
2328
2362
  return this._open;
@@ -2350,7 +2384,7 @@ const z = (st = class extends Ct {
2350
2384
  * @returns The `ElementResolutionController` instance.
2351
2385
  */
2352
2386
  get elementResolver() {
2353
- return this._elementResolver || (this._elementResolver = new Be(this)), this._elementResolver;
2387
+ return this._elementResolver || (this._elementResolver = new He(this)), this._elementResolver;
2354
2388
  }
2355
2389
  /**
2356
2390
  * Determines if the overlay uses a dialog.
@@ -2424,7 +2458,7 @@ const z = (st = class extends Ct {
2424
2458
  async managePopoverOpen() {
2425
2459
  super.managePopoverOpen();
2426
2460
  const e = this.open;
2427
- if (this.open !== e || (await this.manageDelay(e), this.open !== e) || (await this.ensureOnDOM(e), this.open !== e))
2461
+ if (this.open !== e || (await this.manageDelay(e), this.open !== e) || (this.triggerInteraction === "longpress" && await k(), await this.ensureOnDOM(e), this.open !== e))
2428
2462
  return;
2429
2463
  const t = await this.makeTransition(e);
2430
2464
  this.open === e && await this.applyFocus(e, t);
@@ -2443,7 +2477,7 @@ const z = (st = class extends Ct {
2443
2477
  */
2444
2478
  async applyFocus(e, t) {
2445
2479
  if (!(this.receivesFocus === "false" || this.type === "hint")) {
2446
- if (await T(), await T(), e === this.open && !this.open) {
2480
+ if (await k(), await k(), e === this.open && !this.open) {
2447
2481
  this.hasNonVirtualTrigger && this.contains(this.getRootNode().activeElement) && this.triggerElement.focus();
2448
2482
  return;
2449
2483
  }
@@ -2488,13 +2522,13 @@ const z = (st = class extends Ct {
2488
2522
  * @returns A promise that resolves when the overlay has been fully managed.
2489
2523
  */
2490
2524
  async manageOpen(e) {
2491
- if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (ae.add(this), this.willPreventClose && (document.addEventListener(
2525
+ if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (he.add(this), this.willPreventClose && (document.addEventListener(
2492
2526
  "pointerup",
2493
2527
  () => {
2494
2528
  this.dialogEl.classList.toggle("not-immediately-closable", !1), this.willPreventClose = !1;
2495
2529
  },
2496
2530
  { once: !0 }
2497
- ), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (e && this.dispose(), ae.remove(this)), this.open && this.state !== "opened" ? this.state = "opening" : !this.open && this.state !== "closed" && (this.state = "closing"), this.usesDialog ? this.manageDialogOpen() : this.managePopoverOpen(), this.type === "auto")) {
2531
+ ), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (e && this.dispose(), he.remove(this)), this.open && this.state !== "opened" ? this.state = "opening" : !this.open && this.state !== "closed" && (this.state = "closing"), this.usesDialog ? this.manageDialogOpen() : this.managePopoverOpen(), this.type === "auto")) {
2498
2532
  const t = this.getRootNode();
2499
2533
  this.open ? t.addEventListener("focusout", this.closeOnFocusOut, {
2500
2534
  capture: !0
@@ -2513,7 +2547,7 @@ const z = (st = class extends Ct {
2513
2547
  */
2514
2548
  bindEvents() {
2515
2549
  var e;
2516
- (e = this.strategy) == null || e.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new ie[this.triggerInteraction](
2550
+ (e = this.strategy) == null || e.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new se[this.triggerInteraction](
2517
2551
  this.triggerElement,
2518
2552
  {
2519
2553
  overlay: this
@@ -2598,9 +2632,9 @@ const z = (st = class extends Ct {
2598
2632
  */
2599
2633
  requestSlottable() {
2600
2634
  this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
2601
- new we(
2635
+ new Ee(
2602
2636
  "overlay-content",
2603
- this.open ? {} : St
2637
+ this.open ? {} : Rt
2604
2638
  )
2605
2639
  ), this.lastRequestSlottableState = this.open);
2606
2640
  }
@@ -2615,12 +2649,12 @@ const z = (st = class extends Ct {
2615
2649
  */
2616
2650
  willUpdate(e) {
2617
2651
  var t;
2618
- if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${It()}`), e.has("open") && (this.hasUpdated || this.open) && this.manageOpen(e.get("open")), e.has("trigger")) {
2652
+ if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${Mt()}`), e.has("open") && (this.hasUpdated || this.open) && this.manageOpen(e.get("open")), e.has("trigger")) {
2619
2653
  const [o, i] = ((t = this.trigger) == null ? void 0 : t.split("@")) || [];
2620
2654
  this.elementResolver.selector = o ? `#${o}` : "", this.triggerInteraction = i;
2621
2655
  }
2622
2656
  let n = !1;
2623
- e.has(_e) && (n = this.triggerElement, this.triggerElement = this.elementResolver.element), e.has("triggerElement") && (n = e.get("triggerElement")), n !== !1 && this.bindEvents();
2657
+ e.has(Ie) && (n = this.triggerElement, this.triggerElement = this.elementResolver.element), e.has("triggerElement") && (n = e.get("triggerElement")), n !== !1 && this.bindEvents();
2624
2658
  }
2625
2659
  /**
2626
2660
  * Lifecycle method called after the component updates.
@@ -2644,7 +2678,7 @@ const z = (st = class extends Ct {
2644
2678
  * @returns The template result containing the slot element.
2645
2679
  */
2646
2680
  renderContent() {
2647
- return A` <slot @slotchange=${this.handleSlotchange}></slot> `;
2681
+ return j` <slot @slotchange=${this.handleSlotchange}></slot> `;
2648
2682
  }
2649
2683
  /**
2650
2684
  * Generates a style map for the dialog element.
@@ -2670,14 +2704,14 @@ const z = (st = class extends Ct {
2670
2704
  * @returns The template result containing the dialog element.
2671
2705
  */
2672
2706
  renderDialog() {
2673
- return A`
2707
+ return j`
2674
2708
  <dialog
2675
2709
  class="dialog"
2676
2710
  part="dialog"
2677
- placement=${$t(
2711
+ placement=${Ft(
2678
2712
  this.requiresPositioning ? this.placement || "right" : void 0
2679
2713
  )}
2680
- style=${re(this.dialogStyleMap)}
2714
+ style=${ae(this.dialogStyleMap)}
2681
2715
  @close=${this.handleBrowserClose}
2682
2716
  @cancel=${this.handleBrowserClose}
2683
2717
  @beforetoggle=${this.handleBeforetoggle}
@@ -2697,15 +2731,15 @@ const z = (st = class extends Ct {
2697
2731
  * @returns The template result containing the popover element.
2698
2732
  */
2699
2733
  renderPopover() {
2700
- return A`
2734
+ return j`
2701
2735
  <div
2702
2736
  class="dialog"
2703
2737
  part="dialog"
2704
- placement=${$t(
2738
+ placement=${Ft(
2705
2739
  this.requiresPositioning ? this.placement || "right" : void 0
2706
2740
  )}
2707
- popover=${$t(this.popoverValue)}
2708
- style=${re(this.dialogStyleMap)}
2741
+ popover=${Ft(this.popoverValue)}
2742
+ style=${ae(this.dialogStyleMap)}
2709
2743
  @beforetoggle=${this.handleBeforetoggle}
2710
2744
  @close=${this.handleBrowserClose}
2711
2745
  ?is-visible=${this.state !== "closed"}
@@ -2725,7 +2759,7 @@ const z = (st = class extends Ct {
2725
2759
  */
2726
2760
  render() {
2727
2761
  const e = this.type === "modal" || this.type === "page";
2728
- return A`
2762
+ return j`
2729
2763
  ${e ? this.renderDialog() : this.renderPopover()}
2730
2764
  <slot name="longpress-describedby-descriptor"></slot>
2731
2765
  `;
@@ -2753,78 +2787,80 @@ const z = (st = class extends Ct {
2753
2787
  var e;
2754
2788
  (e = this.strategy) == null || e.releaseDescription(), this.open = !1, super.disconnectedCallback();
2755
2789
  }
2756
- }, st.styles = [fe(oo)], st.openCount = 1, st);
2790
+ }, st.styles = [ve(io)], st.openCount = 1, st);
2757
2791
  P([
2758
- x({ type: Boolean })
2759
- ], z.prototype, "delayed", 1);
2792
+ w({ type: Boolean })
2793
+ ], C.prototype, "delayed", 1);
2760
2794
  P([
2761
- gt(".dialog")
2762
- ], z.prototype, "dialogEl", 2);
2795
+ vt(".dialog")
2796
+ ], C.prototype, "dialogEl", 2);
2763
2797
  P([
2764
- x({ type: Boolean })
2765
- ], z.prototype, "disabled", 1);
2798
+ w({ type: Boolean })
2799
+ ], C.prototype, "disabled", 1);
2766
2800
  P([
2767
- Ue({
2801
+ Ve({
2768
2802
  flatten: !0,
2769
2803
  selector: ':not([slot="longpress-describedby-descriptor"], slot)'
2770
2804
  })
2771
- ], z.prototype, "elements", 2);
2805
+ ], C.prototype, "elements", 2);
2772
2806
  P([
2773
- x({ type: Number })
2774
- ], z.prototype, "offset", 2);
2807
+ w({ type: Number })
2808
+ ], C.prototype, "offset", 2);
2775
2809
  P([
2776
- x({ type: Boolean, reflect: !0 })
2777
- ], z.prototype, "open", 1);
2810
+ w({ type: Boolean, reflect: !0 })
2811
+ ], C.prototype, "open", 1);
2778
2812
  P([
2779
- x()
2780
- ], z.prototype, "placement", 2);
2813
+ w()
2814
+ ], C.prototype, "placement", 2);
2781
2815
  P([
2782
- x({ attribute: "receives-focus" })
2783
- ], z.prototype, "receivesFocus", 2);
2816
+ w({ attribute: "receives-focus" })
2817
+ ], C.prototype, "receivesFocus", 2);
2784
2818
  P([
2785
- gt("slot")
2786
- ], z.prototype, "slotEl", 2);
2819
+ vt("slot")
2820
+ ], C.prototype, "slotEl", 2);
2787
2821
  P([
2788
- mt()
2789
- ], z.prototype, "state", 1);
2822
+ ft()
2823
+ ], C.prototype, "state", 1);
2790
2824
  P([
2791
- x({ type: Number, attribute: "tip-padding" })
2792
- ], z.prototype, "tipPadding", 2);
2825
+ w({ type: Number, attribute: "tip-padding" })
2826
+ ], C.prototype, "tipPadding", 2);
2793
2827
  P([
2794
- x()
2795
- ], z.prototype, "trigger", 2);
2828
+ w()
2829
+ ], C.prototype, "trigger", 2);
2796
2830
  P([
2797
- x({ attribute: !1 })
2798
- ], z.prototype, "triggerElement", 2);
2831
+ w({ attribute: !1 })
2832
+ ], C.prototype, "triggerElement", 2);
2799
2833
  P([
2800
- x({ attribute: !1 })
2801
- ], z.prototype, "triggerInteraction", 2);
2834
+ w({ attribute: !1 })
2835
+ ], C.prototype, "triggerInteraction", 2);
2802
2836
  P([
2803
- x()
2804
- ], z.prototype, "type", 2);
2805
- let wt = z;
2806
- const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2837
+ w()
2838
+ ], C.prototype, "type", 2);
2839
+ let Et = C;
2840
+ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2807
2841
  __proto__: null,
2808
- LuzmoOverlay: wt
2809
- }, Symbol.toStringTag, { value: "Module" })), Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2842
+ LuzmoOverlay: Et
2843
+ }, Symbol.toStringTag, { value: "Module" })), an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2810
2844
  __proto__: null,
2811
- C: te,
2812
- H: ee,
2813
- I: nt,
2814
- L: J,
2815
- P: Qt,
2845
+ C: ee,
2846
+ H: oe,
2847
+ I: et,
2848
+ L: Y,
2849
+ P: te,
2850
+ S: pt,
2816
2851
  V: ct,
2817
- a: T,
2818
- b: bt,
2819
- c: oe,
2820
- d: ne,
2821
- e: wt,
2822
- f: kt,
2823
- g: vt,
2824
- n: j,
2852
+ a: k,
2853
+ b: xt,
2854
+ c: ne,
2855
+ d: ie,
2856
+ e: Et,
2857
+ f: Lt,
2858
+ g: bt,
2859
+ l: gt,
2860
+ n: V,
2825
2861
  o: lt,
2826
- p: Le,
2827
- s: ie
2862
+ p: $e,
2863
+ s: se
2828
2864
  }, Symbol.toStringTag, { value: "Module" }));
2829
2865
  /*! * Lucero - The design system for Luzmo.
2830
2866
  *
@@ -2843,25 +2879,25 @@ const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2843
2879
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2844
2880
  * SOFTWARE.
2845
2881
  * */
2846
- const Ko = () => {
2882
+ const Xo = () => {
2847
2883
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
2848
2884
  const e = document.createElement("style");
2849
2885
  e.setAttribute("data-luzmo-vars", ""), e.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(e);
2850
2886
  }
2851
2887
  };
2852
- Ko();
2853
- const Xo = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
2854
- var Yo = Object.defineProperty, k = (e, t, n, o) => {
2888
+ Xo();
2889
+ const Jo = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
2890
+ var Yo = Object.defineProperty, T = (e, t, n, o) => {
2855
2891
  for (var i = void 0, s = e.length - 1, l; s >= 0; s--)
2856
2892
  (l = e[s]) && (i = l(t, n, i) || i);
2857
2893
  return i && Yo(t, n, i), i;
2858
2894
  };
2859
- class C extends ge {
2895
+ class E extends ye {
2860
2896
  constructor() {
2861
2897
  super(...arguments), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
2862
2898
  }
2863
2899
  static get styles() {
2864
- return [fe(Xo)];
2900
+ return [ve(Jo)];
2865
2901
  }
2866
2902
  getAssignedElementsFromSlot(t) {
2867
2903
  return t.assignedElements({ flatten: !0 });
@@ -2903,14 +2939,13 @@ class C extends ge {
2903
2939
  t.has("clickContent") && (this.clickPlacement = ((n = this.clickContent[0]) == null ? void 0 : n.getAttribute("placement")) || ((o = this.clickContent[0]) == null ? void 0 : o.getAttribute("direction")) || void 0), t.has("hoverContent") && (this.hoverPlacement = ((i = this.hoverContent[0]) == null ? void 0 : i.getAttribute("placement")) || ((s = this.hoverContent[0]) == null ? void 0 : s.getAttribute("direction")) || void 0), t.has("longpressContent") && (this.longpressPlacement = ((l = this.longpressContent[0]) == null ? void 0 : l.getAttribute("placement")) || ((r = this.longpressContent[0]) == null ? void 0 : r.getAttribute("direction")) || void 0), super.update(t);
2904
2940
  }
2905
2941
  renderSlot(t) {
2906
- return A`
2942
+ return j`
2907
2943
  <slot name=${t} @slotchange=${this.handleSlotContent}></slot>
2908
2944
  `;
2909
2945
  }
2910
2946
  renderClickOverlay() {
2911
- Promise.resolve().then(() => Ft).then((n) => n.f);
2912
- const t = this.renderSlot("click-content");
2913
- return this.clickContent.length === 0 ? t : A`
2947
+ var t;
2948
+ const n = this.renderSlot("click-content"), o = j`
2914
2949
  <luzmo-overlay
2915
2950
  id="click-overlay"
2916
2951
  ?disabled=${this.disabled || this.clickContent.length === 0}
@@ -2923,14 +2958,14 @@ class C extends ge {
2923
2958
  @beforetoggle=${this.handleBeforetoggle}
2924
2959
  .receivesFocus=${this.receivesFocus}
2925
2960
  >
2926
- ${t}
2961
+ ${n}
2927
2962
  </luzmo-overlay>
2928
2963
  `;
2964
+ return (t = this.triggeredBy) != null && t.includes("click") ? o : this.clickContent.length === 0 ? n : o;
2929
2965
  }
2930
2966
  renderHoverOverlay() {
2931
- Promise.resolve().then(() => Ft).then((n) => n.f);
2932
- const t = this.renderSlot("hover-content");
2933
- return this.hoverContent.length === 0 ? t : A`
2967
+ var t;
2968
+ const n = this.renderSlot("hover-content"), o = j`
2934
2969
  <luzmo-overlay
2935
2970
  id="hover-overlay"
2936
2971
  ?open=${this.open === "hover" && this.hoverContent.length > 0}
@@ -2943,14 +2978,14 @@ class C extends ge {
2943
2978
  @beforetoggle=${this.handleBeforetoggle}
2944
2979
  .receivesFocus=${this.receivesFocus}
2945
2980
  >
2946
- ${t}
2981
+ ${n}
2947
2982
  </luzmo-overlay>
2948
2983
  `;
2984
+ return (t = this.triggeredBy) != null && t.includes("hover") ? o : this.hoverContent.length === 0 ? n : o;
2949
2985
  }
2950
2986
  renderLongpressOverlay() {
2951
- Promise.resolve().then(() => Ft).then((n) => n.f);
2952
- const t = this.renderSlot("longpress-content");
2953
- return this.longpressContent.length === 0 ? t : A`
2987
+ var t;
2988
+ const n = this.renderSlot("longpress-content"), o = j`
2954
2989
  <luzmo-overlay
2955
2990
  id="longpress-overlay"
2956
2991
  ?disabled=${this.disabled || this.longpressContent.length === 0}
@@ -2963,23 +2998,23 @@ class C extends ge {
2963
2998
  @beforetoggle=${this.handleBeforetoggle}
2964
2999
  .receivesFocus=${this.receivesFocus}
2965
3000
  >
2966
- ${t}
3001
+ ${n}
2967
3002
  </luzmo-overlay>
2968
3003
  <slot name="longpress-describedby-descriptor"></slot>
2969
3004
  `;
3005
+ return (t = this.triggeredBy) != null && t.includes("longpress") ? o : this.longpressContent.length === 0 ? n : o;
2970
3006
  }
2971
3007
  render() {
2972
- const t = this.content.split(" ");
2973
- return A`
3008
+ return j`
2974
3009
  <slot
2975
3010
  id="trigger"
2976
3011
  name="trigger"
2977
3012
  @slotchange=${this.handleTriggerContent}
2978
3013
  ></slot>
2979
3014
  ${[
2980
- t.includes("click") ? this.renderClickOverlay() : A``,
2981
- t.includes("hover") ? this.renderHoverOverlay() : A``,
2982
- t.includes("longpress") ? this.renderLongpressOverlay() : A``
3015
+ this.renderClickOverlay(),
3016
+ this.renderHoverOverlay(),
3017
+ this.renderLongpressOverlay()
2983
3018
  ]}
2984
3019
  `;
2985
3020
  }
@@ -2993,60 +3028,63 @@ class C extends ge {
2993
3028
  return await super.getUpdateComplete();
2994
3029
  }
2995
3030
  }
2996
- k([
2997
- x()
2998
- ], C.prototype, "content");
2999
- k([
3000
- x({ reflect: !0 })
3001
- ], C.prototype, "placement");
3002
- k([
3003
- x()
3004
- ], C.prototype, "type");
3005
- k([
3006
- x({ type: Number })
3007
- ], C.prototype, "offset");
3008
- k([
3009
- x({ reflect: !0 })
3010
- ], C.prototype, "open");
3011
- k([
3012
- x({ type: Boolean, reflect: !0 })
3013
- ], C.prototype, "disabled");
3014
- k([
3015
- x({ attribute: "receives-focus" })
3016
- ], C.prototype, "receivesFocus");
3017
- k([
3018
- mt()
3019
- ], C.prototype, "clickContent");
3020
- k([
3021
- mt()
3022
- ], C.prototype, "longpressContent");
3023
- k([
3024
- mt()
3025
- ], C.prototype, "hoverContent");
3026
- k([
3027
- mt()
3028
- ], C.prototype, "targetContent");
3029
- k([
3030
- gt("#click-overlay", !0)
3031
- ], C.prototype, "clickOverlayElement");
3032
- k([
3033
- gt("#longpress-overlay", !0)
3034
- ], C.prototype, "longpressOverlayElement");
3035
- k([
3036
- gt("#hover-overlay", !0)
3037
- ], C.prototype, "hoverOverlayElement");
3038
- function Go(e, t, n, o) {
3039
- return wt.open(
3031
+ T([
3032
+ w()
3033
+ ], E.prototype, "content");
3034
+ T([
3035
+ w({ attribute: "triggered-by" })
3036
+ ], E.prototype, "triggeredBy");
3037
+ T([
3038
+ w({ reflect: !0 })
3039
+ ], E.prototype, "placement");
3040
+ T([
3041
+ w()
3042
+ ], E.prototype, "type");
3043
+ T([
3044
+ w({ type: Number })
3045
+ ], E.prototype, "offset");
3046
+ T([
3047
+ w({ reflect: !0 })
3048
+ ], E.prototype, "open");
3049
+ T([
3050
+ w({ type: Boolean, reflect: !0 })
3051
+ ], E.prototype, "disabled");
3052
+ T([
3053
+ w({ attribute: "receives-focus" })
3054
+ ], E.prototype, "receivesFocus");
3055
+ T([
3056
+ ft()
3057
+ ], E.prototype, "clickContent");
3058
+ T([
3059
+ ft()
3060
+ ], E.prototype, "longpressContent");
3061
+ T([
3062
+ ft()
3063
+ ], E.prototype, "hoverContent");
3064
+ T([
3065
+ ft()
3066
+ ], E.prototype, "targetContent");
3067
+ T([
3068
+ vt("#click-overlay", !0)
3069
+ ], E.prototype, "clickOverlayElement");
3070
+ T([
3071
+ vt("#longpress-overlay", !0)
3072
+ ], E.prototype, "longpressOverlayElement");
3073
+ T([
3074
+ vt("#hover-overlay", !0)
3075
+ ], E.prototype, "hoverOverlayElement");
3076
+ function Zo(e, t, n, o) {
3077
+ return Et.open(
3040
3078
  e,
3041
3079
  t,
3042
3080
  n,
3043
3081
  o
3044
3082
  );
3045
3083
  }
3046
- class se extends Me {
3084
+ class re extends Ue {
3047
3085
  /* c8 ignore next 9 */
3048
3086
  render(t) {
3049
- return ve;
3087
+ return be;
3050
3088
  }
3051
3089
  update(t, [n]) {
3052
3090
  this.template = n, this.target !== t.element && (this.target = t.element, this.renderBefore = this.target.children[0]), this.listenerHost = this.target, this.init();
@@ -3054,8 +3092,8 @@ class se extends Me {
3054
3092
  handleSlottableRequest(t) {
3055
3093
  if (t.target !== t.currentTarget)
3056
3094
  return;
3057
- const n = t.data === St;
3058
- ye(n ? void 0 : this.template(), this.target, {
3095
+ const n = t.data === Rt;
3096
+ we(n ? void 0 : this.template(), this.target, {
3059
3097
  renderBefore: this.renderBefore
3060
3098
  });
3061
3099
  }
@@ -3078,8 +3116,8 @@ class se extends Me {
3078
3116
  this.init();
3079
3117
  }
3080
3118
  }
3081
- const Jo = Ht(se);
3082
- class Ae extends se {
3119
+ const Qo = It(re);
3120
+ class De extends re {
3083
3121
  constructor() {
3084
3122
  super(...arguments), this.defaultOptions = {
3085
3123
  triggerInteraction: "click",
@@ -3093,7 +3131,7 @@ class Ae extends se {
3093
3131
  }
3094
3132
  /* c8 ignore next 9 */
3095
3133
  render(t, n) {
3096
- return ve;
3134
+ return be;
3097
3135
  }
3098
3136
  update(t, [n, o]) {
3099
3137
  var i, s, l;
@@ -3102,8 +3140,8 @@ class Ae extends se {
3102
3140
  ...o == null ? void 0 : o.overlayOptions
3103
3141
  }, this.insertionOptions = o == null ? void 0 : o.insertionOptions, this.template = n, this.host = (i = t.options) == null ? void 0 : i.host;
3104
3142
  let r = !1;
3105
- const a = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, c = nt[(s = this.strategy) == null ? void 0 : s.type] !== a;
3106
- this.target !== t.element && (this.target = t.element, r = !0), (r || c) && ((l = this.strategy) == null || l.abort(), this.strategy = new ie[a](this.target, {
3143
+ const a = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, c = et[(s = this.strategy) == null ? void 0 : s.type] !== a;
3144
+ this.target !== t.element && (this.target = t.element, r = !0), (r || c) && ((l = this.strategy) == null || l.abort(), this.strategy = new se[a](this.target, {
3107
3145
  isPersistent: !0,
3108
3146
  handleOverlayReady: (h) => {
3109
3147
  this.listenerHost = this.overlay = h, this.init();
@@ -3114,15 +3152,15 @@ class Ae extends se {
3114
3152
  var n, o;
3115
3153
  if (t.target !== t.currentTarget)
3116
3154
  return;
3117
- const i = t.data === St, s = {};
3118
- if (this.host && (s.host = this.host), ye(
3155
+ const i = t.data === Rt, s = {};
3156
+ if (this.host && (s.host = this.host), we(
3119
3157
  i ? void 0 : this.template(),
3120
3158
  this.overlay,
3121
3159
  s
3122
3160
  ), i)
3123
3161
  this.overlay.remove();
3124
3162
  else {
3125
- J.applyOptions(this.overlay, {
3163
+ Y.applyOptions(this.overlay, {
3126
3164
  ...this.options,
3127
3165
  trigger: this.target
3128
3166
  });
@@ -3131,40 +3169,42 @@ class Ae extends se {
3131
3169
  }
3132
3170
  }
3133
3171
  }
3134
- const Zo = Ht(Ae);
3135
- customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", wt);
3136
- customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", C);
3137
- const rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3172
+ const tn = It(De);
3173
+ customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", Et);
3174
+ customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", E);
3175
+ const cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3138
3176
  __proto__: null,
3139
- ClickController: te,
3140
- HoverController: ee,
3141
- InteractionController: bt,
3142
- InteractionTypes: nt,
3143
- LONGPRESS_INSTRUCTIONS: oe,
3144
- LongpressController: ne,
3145
- LuzmoAbstractOverlay: J,
3146
- LuzmoOverlay: wt,
3147
- LuzmoOverlayTrigger: C,
3148
- OverlayTriggerDirective: Ae,
3149
- PlacementController: Qt,
3150
- SlottableRequestDirective: se,
3151
- SlottableRequestEvent: we,
3177
+ ClickController: ee,
3178
+ HoverController: oe,
3179
+ InteractionController: xt,
3180
+ InteractionTypes: et,
3181
+ LONGPRESS_INSTRUCTIONS: ne,
3182
+ LongpressController: ie,
3183
+ LuzmoAbstractOverlay: Y,
3184
+ LuzmoOverlay: Et,
3185
+ LuzmoOverlayTrigger: E,
3186
+ OverlayTriggerDirective: De,
3187
+ PlacementController: te,
3188
+ SAFARI_FOCUS_RING_CLASS: pt,
3189
+ SlottableRequestDirective: re,
3190
+ SlottableRequestEvent: Ee,
3152
3191
  VirtualTrigger: ct,
3153
- guaranteedAllTransitionend: vt,
3154
- nextFrame: T,
3155
- noop: j,
3156
- openOverlay: Go,
3192
+ guaranteedAllTransitionend: bt,
3193
+ lastInteractionType: gt,
3194
+ nextFrame: k,
3195
+ noop: V,
3196
+ openOverlay: Zo,
3157
3197
  overlayTimer: lt,
3158
- placementUpdatedSymbol: Le,
3159
- removeSlottableRequest: St,
3160
- slottableRequest: Jo,
3161
- trigger: Zo
3198
+ placementUpdatedSymbol: $e,
3199
+ removeSlottableRequest: Rt,
3200
+ slottableRequest: Qo,
3201
+ trigger: tn
3162
3202
  }, Symbol.toStringTag, { value: "Module" }));
3163
3203
  export {
3164
- St as a,
3165
- Ft as b,
3166
- Ue as d,
3167
- rn as i,
3168
- we as o,
3169
- re as p
3204
+ Rt as a,
3205
+ an as b,
3206
+ Ve as d,
3207
+ cn as i,
3208
+ Ee as o,
3209
+ ae as p
3170
3210
  };