@covalent/components 8.4.0 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tooltip.mjs CHANGED
@@ -1,65 +1,10 @@
1
- import { i as nt, r as at, s as st, x as Y, e as lt } from "./query-assigned-elements-4a39219d.mjs";
2
- import { n as M } from "./property-9b6ea53b.mjs";
3
- import { i as ot } from "./query-d843aa92.mjs";
4
- import { a as dt } from "./utils-2932417c.mjs";
5
- import { _ as ct, a as J, c as I, e as Z, f as X } from "./tslib.es6-226581a4.mjs";
6
- /**
7
- * @license
8
- * Copyright 2016 Google Inc.
9
- *
10
- * Permission is hereby granted, free of charge, to any person obtaining a copy
11
- * of this software and associated documentation files (the "Software"), to deal
12
- * in the Software without restriction, including without limitation the rights
13
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- * copies of the Software, and to permit persons to whom the Software is
15
- * furnished to do so, subject to the following conditions:
16
- *
17
- * The above copyright notice and this permission notice shall be included in
18
- * all copies or substantial portions of the Software.
19
- *
20
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- * THE SOFTWARE.
27
- */
28
- var ht = (
29
- /** @class */
30
- function() {
31
- function e(o) {
32
- o === void 0 && (o = {}), this.adapter = o;
33
- }
34
- return Object.defineProperty(e, "cssClasses", {
35
- get: function() {
36
- return {};
37
- },
38
- enumerable: !1,
39
- configurable: !0
40
- }), Object.defineProperty(e, "strings", {
41
- get: function() {
42
- return {};
43
- },
44
- enumerable: !1,
45
- configurable: !0
46
- }), Object.defineProperty(e, "numbers", {
47
- get: function() {
48
- return {};
49
- },
50
- enumerable: !1,
51
- configurable: !0
52
- }), Object.defineProperty(e, "defaultAdapter", {
53
- get: function() {
54
- return {};
55
- },
56
- enumerable: !1,
57
- configurable: !0
58
- }), e.prototype.init = function() {
59
- }, e.prototype.destroy = function() {
60
- }, e;
61
- }()
62
- );
1
+ import { i as tt, r as et, s as it, x as F, e as rt } from "./query-assigned-elements-4a39219d.mjs";
2
+ import { n as C } from "./property-9b6ea53b.mjs";
3
+ import { i as X } from "./query-d843aa92.mjs";
4
+ import { a as ot } from "./utils-2932417c.mjs";
5
+ import { _ as nt, a as Y, c as x, e as $, f as q } from "./tslib.es6-226581a4.mjs";
6
+ import { A as at, n as st, K as lt } from "./keyboard-983b121c.mjs";
7
+ import { M as dt } from "./foundation-2334d146.mjs";
63
8
  /**
64
9
  * @license
65
10
  * Copyright 2020 Google Inc.
@@ -82,10 +27,10 @@ var ht = (
82
27
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
83
28
  * THE SOFTWARE.
84
29
  */
85
- var H;
86
- (function(e) {
87
- e.RICH = "mdc-tooltip--rich", e.SHOWN = "mdc-tooltip--shown", e.SHOWING = "mdc-tooltip--showing", e.SHOWING_TRANSITION = "mdc-tooltip--showing-transition", e.HIDE = "mdc-tooltip--hide", e.HIDE_TRANSITION = "mdc-tooltip--hide-transition", e.MULTILINE_TOOLTIP = "mdc-tooltip--multiline", e.SURFACE = "mdc-tooltip__surface", e.SURFACE_ANIMATION = "mdc-tooltip__surface-animation", e.TOOLTIP_CARET_TOP = "mdc-tooltip__caret-surface-top", e.TOOLTIP_CARET_BOTTOM = "mdc-tooltip__caret-surface-bottom";
88
- })(H || (H = {}));
30
+ var S;
31
+ (function(i) {
32
+ i.RICH = "mdc-tooltip--rich", i.SHOWN = "mdc-tooltip--shown", i.SHOWING = "mdc-tooltip--showing", i.SHOWING_TRANSITION = "mdc-tooltip--showing-transition", i.HIDE = "mdc-tooltip--hide", i.HIDE_TRANSITION = "mdc-tooltip--hide-transition", i.MULTILINE_TOOLTIP = "mdc-tooltip--multiline", i.SURFACE = "mdc-tooltip__surface", i.SURFACE_ANIMATION = "mdc-tooltip__surface-animation", i.TOOLTIP_CARET_TOP = "mdc-tooltip__caret-surface-top", i.TOOLTIP_CARET_BOTTOM = "mdc-tooltip__caret-surface-bottom";
33
+ })(S || (S = {}));
89
34
  var _ = {
90
35
  BOUNDED_ANCHOR_GAP: 4,
91
36
  UNBOUNDED_ANCHOR_GAP: 8,
@@ -104,96 +49,45 @@ var _ = {
104
49
  // LINT.IfChange(rich-tooltip-dimensions)
105
50
  RICH_MAX_WIDTH: 320
106
51
  // LINT.ThenChange(_tooltip.scss:rich-tooltip-dimensions)
107
- }, U = {
52
+ }, W = {
108
53
  ARIA_EXPANDED: "aria-expanded",
109
54
  ARIA_HASPOPUP: "aria-haspopup",
110
55
  PERSISTENT: "data-mdc-tooltip-persistent",
111
56
  SCROLLABLE_ANCESTOR: "tooltip-scrollable-ancestor",
112
57
  HAS_CARET: "data-mdc-tooltip-has-caret"
113
- }, tt = {
58
+ }, j = {
114
59
  HIDDEN: "MDCTooltip:hidden",
115
60
  SHOWN: "MDCTooltip:shown"
116
- }, x;
117
- (function(e) {
118
- e[e.DETECTED = 0] = "DETECTED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.SIDE_START = 4] = "SIDE_START", e[e.SIDE_END = 5] = "SIDE_END";
119
- })(x || (x = {}));
120
- var B;
121
- (function(e) {
122
- e[e.DETECTED = 0] = "DETECTED", e[e.ABOVE = 1] = "ABOVE", e[e.BELOW = 2] = "BELOW", e[e.SIDE = 3] = "SIDE";
123
- })(B || (B = {}));
124
- var q;
125
- (function(e) {
126
- e[e.BOUNDED = 0] = "BOUNDED", e[e.UNBOUNDED = 1] = "UNBOUNDED";
127
- })(q || (q = {}));
128
- var c = {
61
+ }, D;
62
+ (function(i) {
63
+ i[i.DETECTED = 0] = "DETECTED", i[i.START = 1] = "START", i[i.CENTER = 2] = "CENTER", i[i.END = 3] = "END", i[i.SIDE_START = 4] = "SIDE_START", i[i.SIDE_END = 5] = "SIDE_END";
64
+ })(D || (D = {}));
65
+ var N;
66
+ (function(i) {
67
+ i[i.DETECTED = 0] = "DETECTED", i[i.ABOVE = 1] = "ABOVE", i[i.BELOW = 2] = "BELOW", i[i.SIDE = 3] = "SIDE";
68
+ })(N || (N = {}));
69
+ var U;
70
+ (function(i) {
71
+ i[i.BOUNDED = 0] = "BOUNDED", i[i.UNBOUNDED = 1] = "UNBOUNDED";
72
+ })(U || (U = {}));
73
+ var h = {
129
74
  LEFT: "left",
130
75
  RIGHT: "right",
131
76
  CENTER: "center",
132
77
  TOP: "top",
133
78
  BOTTOM: "bottom"
134
79
  }, p;
135
- (function(e) {
136
- e[e.DETECTED = 0] = "DETECTED", e[e.ABOVE_START = 1] = "ABOVE_START", e[e.ABOVE_CENTER = 2] = "ABOVE_CENTER", e[e.ABOVE_END = 3] = "ABOVE_END", e[e.TOP_SIDE_START = 4] = "TOP_SIDE_START", e[e.CENTER_SIDE_START = 5] = "CENTER_SIDE_START", e[e.BOTTOM_SIDE_START = 6] = "BOTTOM_SIDE_START", e[e.TOP_SIDE_END = 7] = "TOP_SIDE_END", e[e.CENTER_SIDE_END = 8] = "CENTER_SIDE_END", e[e.BOTTOM_SIDE_END = 9] = "BOTTOM_SIDE_END", e[e.BELOW_START = 10] = "BELOW_START", e[e.BELOW_CENTER = 11] = "BELOW_CENTER", e[e.BELOW_END = 12] = "BELOW_END";
80
+ (function(i) {
81
+ i[i.DETECTED = 0] = "DETECTED", i[i.ABOVE_START = 1] = "ABOVE_START", i[i.ABOVE_CENTER = 2] = "ABOVE_CENTER", i[i.ABOVE_END = 3] = "ABOVE_END", i[i.TOP_SIDE_START = 4] = "TOP_SIDE_START", i[i.CENTER_SIDE_START = 5] = "CENTER_SIDE_START", i[i.BOTTOM_SIDE_START = 6] = "BOTTOM_SIDE_START", i[i.TOP_SIDE_END = 7] = "TOP_SIDE_END", i[i.CENTER_SIDE_END = 8] = "CENTER_SIDE_END", i[i.BOTTOM_SIDE_END = 9] = "BOTTOM_SIDE_END", i[i.BELOW_START = 10] = "BELOW_START", i[i.BELOW_CENTER = 11] = "BELOW_CENTER", i[i.BELOW_END = 12] = "BELOW_END";
137
82
  })(p || (p = {}));
138
83
  var O;
139
- (function(e) {
140
- e[e.ABOVE = 1] = "ABOVE", e[e.BELOW = 2] = "BELOW", e[e.SIDE_TOP = 3] = "SIDE_TOP", e[e.SIDE_CENTER = 4] = "SIDE_CENTER", e[e.SIDE_BOTTOM = 5] = "SIDE_BOTTOM";
84
+ (function(i) {
85
+ i[i.ABOVE = 1] = "ABOVE", i[i.BELOW = 2] = "BELOW", i[i.SIDE_TOP = 3] = "SIDE_TOP", i[i.SIDE_CENTER = 4] = "SIDE_CENTER", i[i.SIDE_BOTTOM = 5] = "SIDE_BOTTOM";
141
86
  })(O || (O = {}));
142
- var f;
143
- (function(e) {
144
- e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.SIDE_START = 4] = "SIDE_START", e[e.SIDE_END = 5] = "SIDE_END";
145
- })(f || (f = {}));
146
- /**
147
- * @license
148
- * Copyright 2020 Google Inc.
149
- *
150
- * Permission is hereby granted, free of charge, to any person obtaining a copy
151
- * of this software and associated documentation files (the "Software"), to deal
152
- * in the Software without restriction, including without limitation the rights
153
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
154
- * copies of the Software, and to permit persons to whom the Software is
155
- * furnished to do so, subject to the following conditions:
156
- *
157
- * The above copyright notice and this permission notice shall be included in
158
- * all copies or substantial portions of the Software.
159
- *
160
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
161
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
162
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
163
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
164
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
165
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
166
- * THE SOFTWARE.
167
- */
168
- var pt = (
169
- /** @class */
170
- function() {
171
- function e() {
172
- this.rafIDs = /* @__PURE__ */ new Map();
173
- }
174
- return e.prototype.request = function(o, t) {
175
- var r = this;
176
- this.cancel(o);
177
- var i = requestAnimationFrame(function(n) {
178
- r.rafIDs.delete(o), t(n);
179
- });
180
- this.rafIDs.set(o, i);
181
- }, e.prototype.cancel = function(o) {
182
- var t = this.rafIDs.get(o);
183
- t && (cancelAnimationFrame(t), this.rafIDs.delete(o));
184
- }, e.prototype.cancelAll = function() {
185
- var o = this;
186
- this.rafIDs.forEach(function(t, r) {
187
- o.cancel(r);
188
- });
189
- }, e.prototype.getQueue = function() {
190
- var o = [];
191
- return this.rafIDs.forEach(function(t, r) {
192
- o.push(r);
193
- }), o;
194
- }, e;
195
- }()
196
- );
87
+ var u;
88
+ (function(i) {
89
+ i[i.START = 1] = "START", i[i.CENTER = 2] = "CENTER", i[i.END = 3] = "END", i[i.SIDE_START = 4] = "SIDE_START", i[i.SIDE_END = 5] = "SIDE_END";
90
+ })(u || (u = {}));
197
91
  /**
198
92
  * @license
199
93
  * Copyright 2016 Google Inc.
@@ -216,7 +110,7 @@ var pt = (
216
110
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
217
111
  * THE SOFTWARE.
218
112
  */
219
- var et = {
113
+ var J = {
220
114
  animation: {
221
115
  prefixed: "-webkit-animation",
222
116
  standard: "animation"
@@ -230,13 +124,13 @@ var et = {
230
124
  standard: "transition"
231
125
  }
232
126
  };
233
- function ut(e) {
234
- return !!e.document && typeof e.document.createElement == "function";
127
+ function ht(i) {
128
+ return !!i.document && typeof i.document.createElement == "function";
235
129
  }
236
- function it(e, o) {
237
- if (ut(e) && o in et) {
238
- var t = e.document.createElement("div"), r = et[o], i = r.standard, n = r.prefixed, a = i in t.style;
239
- return a ? i : n;
130
+ function Q(i, o) {
131
+ if (ht(i) && o in J) {
132
+ var t = i.document.createElement("div"), r = J[o], e = r.standard, n = r.prefixed, a = e in t.style;
133
+ return a ? e : n;
240
134
  }
241
135
  return o;
242
136
  }
@@ -262,127 +156,28 @@ function it(e, o) {
262
156
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
263
157
  * THE SOFTWARE.
264
158
  */
265
- var u = {
266
- UNKNOWN: "Unknown",
267
- BACKSPACE: "Backspace",
268
- ENTER: "Enter",
269
- SPACEBAR: "Spacebar",
270
- PAGE_UP: "PageUp",
271
- PAGE_DOWN: "PageDown",
272
- END: "End",
273
- HOME: "Home",
274
- ARROW_LEFT: "ArrowLeft",
275
- ARROW_UP: "ArrowUp",
276
- ARROW_RIGHT: "ArrowRight",
277
- ARROW_DOWN: "ArrowDown",
278
- DELETE: "Delete",
279
- ESCAPE: "Escape",
280
- TAB: "Tab"
281
- }, D = /* @__PURE__ */ new Set();
282
- D.add(u.BACKSPACE);
283
- D.add(u.ENTER);
284
- D.add(u.SPACEBAR);
285
- D.add(u.PAGE_UP);
286
- D.add(u.PAGE_DOWN);
287
- D.add(u.END);
288
- D.add(u.HOME);
289
- D.add(u.ARROW_LEFT);
290
- D.add(u.ARROW_UP);
291
- D.add(u.ARROW_RIGHT);
292
- D.add(u.ARROW_DOWN);
293
- D.add(u.DELETE);
294
- D.add(u.ESCAPE);
295
- D.add(u.TAB);
296
- var S = {
297
- BACKSPACE: 8,
298
- ENTER: 13,
299
- SPACEBAR: 32,
300
- PAGE_UP: 33,
301
- PAGE_DOWN: 34,
302
- END: 35,
303
- HOME: 36,
304
- ARROW_LEFT: 37,
305
- ARROW_UP: 38,
306
- ARROW_RIGHT: 39,
307
- ARROW_DOWN: 40,
308
- DELETE: 46,
309
- ESCAPE: 27,
310
- TAB: 9
311
- }, w = /* @__PURE__ */ new Map();
312
- w.set(S.BACKSPACE, u.BACKSPACE);
313
- w.set(S.ENTER, u.ENTER);
314
- w.set(S.SPACEBAR, u.SPACEBAR);
315
- w.set(S.PAGE_UP, u.PAGE_UP);
316
- w.set(S.PAGE_DOWN, u.PAGE_DOWN);
317
- w.set(S.END, u.END);
318
- w.set(S.HOME, u.HOME);
319
- w.set(S.ARROW_LEFT, u.ARROW_LEFT);
320
- w.set(S.ARROW_UP, u.ARROW_UP);
321
- w.set(S.ARROW_RIGHT, u.ARROW_RIGHT);
322
- w.set(S.ARROW_DOWN, u.ARROW_DOWN);
323
- w.set(S.DELETE, u.DELETE);
324
- w.set(S.ESCAPE, u.ESCAPE);
325
- w.set(S.TAB, u.TAB);
326
- var P = /* @__PURE__ */ new Set();
327
- P.add(u.PAGE_UP);
328
- P.add(u.PAGE_DOWN);
329
- P.add(u.END);
330
- P.add(u.HOME);
331
- P.add(u.ARROW_LEFT);
332
- P.add(u.ARROW_UP);
333
- P.add(u.ARROW_RIGHT);
334
- P.add(u.ARROW_DOWN);
335
- function ft(e) {
336
- var o = e.key;
337
- if (D.has(o))
338
- return o;
339
- var t = w.get(e.keyCode);
340
- return t || u.UNKNOWN;
341
- }
342
- /**
343
- * @license
344
- * Copyright 2020 Google Inc.
345
- *
346
- * Permission is hereby granted, free of charge, to any person obtaining a copy
347
- * of this software and associated documentation files (the "Software"), to deal
348
- * in the Software without restriction, including without limitation the rights
349
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
350
- * copies of the Software, and to permit persons to whom the Software is
351
- * furnished to do so, subject to the following conditions:
352
- *
353
- * The above copyright notice and this permission notice shall be included in
354
- * all copies or substantial portions of the Software.
355
- *
356
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
357
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
358
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
359
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
360
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
361
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
362
- * THE SOFTWARE.
363
- */
364
- var mt = H.RICH, $ = H.SHOWN, j = H.SHOWING, z = H.SHOWING_TRANSITION, k = H.HIDE, K = H.HIDE_TRANSITION, Tt = H.MULTILINE_TOOLTIP, Q;
365
- (function(e) {
366
- e.POLL_ANCHOR = "poll_anchor";
367
- })(Q || (Q = {}));
368
- var rt = typeof window < "u", Et = (
159
+ var ct = S.RICH, G = S.SHOWN, z = S.SHOWING, V = S.SHOWING_TRANSITION, M = S.HIDE, k = S.HIDE_TRANSITION, pt = S.MULTILINE_TOOLTIP, K;
160
+ (function(i) {
161
+ i.POLL_ANCHOR = "poll_anchor";
162
+ })(K || (K = {}));
163
+ var Z = typeof window < "u", ut = (
369
164
  /** @class */
370
- function(e) {
371
- ct(o, e);
165
+ function(i) {
166
+ nt(o, i);
372
167
  function o(t) {
373
- var r = e.call(this, J(J({}, o.defaultAdapter), t)) || this;
374
- return r.tooltipShown = !1, r.anchorGap = _.BOUNDED_ANCHOR_GAP, r.xTooltipPos = x.DETECTED, r.yTooltipPos = B.DETECTED, r.tooltipPositionWithCaret = p.DETECTED, r.minViewportTooltipThreshold = _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, r.hideDelayMs = _.HIDE_DELAY_MS, r.showDelayMs = _.SHOW_DELAY_MS, r.anchorRect = null, r.parentRect = null, r.frameId = null, r.hideTimeout = null, r.showTimeout = null, r.addAncestorScrollEventListeners = new Array(), r.removeAncestorScrollEventListeners = new Array(), r.animFrame = new pt(), r.anchorBlurHandler = function(i) {
375
- r.handleAnchorBlur(i);
376
- }, r.documentClickHandler = function(i) {
377
- r.handleDocumentClick(i);
378
- }, r.documentKeydownHandler = function(i) {
379
- r.handleKeydown(i);
168
+ var r = i.call(this, Y(Y({}, o.defaultAdapter), t)) || this;
169
+ return r.tooltipShown = !1, r.anchorGap = _.BOUNDED_ANCHOR_GAP, r.xTooltipPos = D.DETECTED, r.yTooltipPos = N.DETECTED, r.tooltipPositionWithCaret = p.DETECTED, r.minViewportTooltipThreshold = _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, r.hideDelayMs = _.HIDE_DELAY_MS, r.showDelayMs = _.SHOW_DELAY_MS, r.anchorRect = null, r.parentRect = null, r.frameId = null, r.hideTimeout = null, r.showTimeout = null, r.addAncestorScrollEventListeners = new Array(), r.removeAncestorScrollEventListeners = new Array(), r.animFrame = new at(), r.anchorBlurHandler = function(e) {
170
+ r.handleAnchorBlur(e);
171
+ }, r.documentClickHandler = function(e) {
172
+ r.handleDocumentClick(e);
173
+ }, r.documentKeydownHandler = function(e) {
174
+ r.handleKeydown(e);
380
175
  }, r.tooltipMouseEnterHandler = function() {
381
176
  r.handleTooltipMouseEnter();
382
177
  }, r.tooltipMouseLeaveHandler = function() {
383
178
  r.handleTooltipMouseLeave();
384
- }, r.richTooltipFocusOutHandler = function(i) {
385
- r.handleRichTooltipFocusOut(i);
179
+ }, r.richTooltipFocusOutHandler = function(e) {
180
+ r.handleRichTooltipFocusOut(e);
386
181
  }, r.windowScrollHandler = function() {
387
182
  r.handleWindowScrollEvent();
388
183
  }, r.windowResizeHandler = function() {
@@ -483,7 +278,7 @@ var rt = typeof window < "u", Et = (
483
278
  enumerable: !1,
484
279
  configurable: !0
485
280
  }), o.prototype.init = function() {
486
- this.richTooltip = this.adapter.hasClass(mt), this.persistentTooltip = this.adapter.getAttribute(U.PERSISTENT) === "true", this.interactiveTooltip = !!this.adapter.getAnchorAttribute(U.ARIA_EXPANDED) && this.adapter.getAnchorAttribute(U.ARIA_HASPOPUP) === "dialog", this.hasCaret = this.richTooltip && this.adapter.getAttribute(U.HAS_CARET) === "true";
281
+ this.richTooltip = this.adapter.hasClass(ct), this.persistentTooltip = this.adapter.getAttribute(W.PERSISTENT) === "true", this.interactiveTooltip = !!this.adapter.getAnchorAttribute(W.ARIA_EXPANDED) && this.adapter.getAnchorAttribute(W.ARIA_HASPOPUP) === "dialog", this.hasCaret = this.richTooltip && this.adapter.getAttribute(W.HAS_CARET) === "true";
487
282
  }, o.prototype.isShown = function() {
488
283
  return this.tooltipShown;
489
284
  }, o.prototype.isRich = function() {
@@ -523,10 +318,10 @@ var rt = typeof window < "u", Et = (
523
318
  }, o.prototype.handleDocumentClick = function(t) {
524
319
  this.richTooltip && this.persistentTooltip && this.anchorOrTooltipContainsTargetElement(t.target) || this.hide();
525
320
  }, o.prototype.handleKeydown = function(t) {
526
- var r = ft(t);
527
- if (r === u.ESCAPE) {
528
- var i = this.adapter.getActiveElement(), n = !1;
529
- return this.adapter.isInstanceOfElement(i) && (n = this.adapter.tooltipContainsElement(i)), n && this.adapter.focusAnchorElement(), this.hide(), t.stopPropagation(), !1;
321
+ var r = st(t);
322
+ if (r === lt.ESCAPE) {
323
+ var e = this.adapter.getActiveElement(), n = !1;
324
+ return this.adapter.isInstanceOfElement(e) && (n = this.adapter.tooltipContainsElement(e)), n && this.adapter.focusAnchorElement(), this.hide(), t.stopPropagation(), !1;
530
325
  }
531
326
  return !0;
532
327
  }, o.prototype.handleAnchorBlur = function(t) {
@@ -544,20 +339,20 @@ var rt = typeof window < "u", Et = (
544
339
  this.persistentTooltip || this.hide();
545
340
  }, o.prototype.handleWindowChangeEvent = function() {
546
341
  var t = this;
547
- this.animFrame.request(Q.POLL_ANCHOR, function() {
342
+ this.animFrame.request(K.POLL_ANCHOR, function() {
548
343
  t.repositionTooltipOnAnchorMove();
549
344
  });
550
345
  }, o.prototype.show = function() {
551
- var t, r, i = this;
346
+ var t, r, e = this;
552
347
  if (this.clearHideTimeout(), this.clearShowTimeout(), !this.tooltipShown) {
553
- this.tooltipShown = !0, this.adapter.removeAttribute("aria-hidden"), this.richTooltip && (this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "true"), this.adapter.registerEventHandler("focusout", this.richTooltipFocusOutHandler)), this.persistentTooltip || (this.adapter.registerEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.registerEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.removeClass(k), this.adapter.addClass(j), this.isTooltipMultiline() && !this.richTooltip && this.adapter.addClass(Tt), this.anchorRect = this.adapter.getAnchorBoundingRect(), this.parentRect = this.adapter.getParentBoundingRect(), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip(), this.adapter.registerAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.registerDocumentEventHandler("click", this.documentClickHandler), this.adapter.registerDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.registerWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler);
348
+ this.tooltipShown = !0, this.adapter.removeAttribute("aria-hidden"), this.richTooltip && (this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "true"), this.adapter.registerEventHandler("focusout", this.richTooltipFocusOutHandler)), this.persistentTooltip || (this.adapter.registerEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.registerEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.removeClass(M), this.adapter.addClass(z), this.isTooltipMultiline() && !this.richTooltip && this.adapter.addClass(pt), this.anchorRect = this.adapter.getAnchorBoundingRect(), this.parentRect = this.adapter.getParentBoundingRect(), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip(), this.adapter.registerAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.registerDocumentEventHandler("click", this.documentClickHandler), this.adapter.registerDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.registerWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler);
554
349
  try {
555
- for (var n = I(this.addAncestorScrollEventListeners), a = n.next(); !a.done; a = n.next()) {
350
+ for (var n = x(this.addAncestorScrollEventListeners), a = n.next(); !a.done; a = n.next()) {
556
351
  var d = a.value;
557
352
  d();
558
353
  }
559
- } catch (h) {
560
- t = { error: h };
354
+ } catch (c) {
355
+ t = { error: c };
561
356
  } finally {
562
357
  try {
563
358
  a && !a.done && (r = n.return) && r.call(n);
@@ -567,15 +362,15 @@ var rt = typeof window < "u", Et = (
567
362
  }
568
363
  }
569
364
  this.frameId = requestAnimationFrame(function() {
570
- i.clearAllAnimationClasses(), i.adapter.addClass($), i.adapter.addClass(z);
365
+ e.clearAllAnimationClasses(), e.adapter.addClass(G), e.adapter.addClass(V);
571
366
  });
572
367
  }
573
368
  }, o.prototype.hide = function() {
574
369
  var t, r;
575
370
  if (this.clearHideTimeout(), this.clearShowTimeout(), !!this.tooltipShown) {
576
- this.frameId && cancelAnimationFrame(this.frameId), this.tooltipShown = !1, this.adapter.setAttribute("aria-hidden", "true"), this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.richTooltip && this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "false"), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.clearAllAnimationClasses(), this.adapter.addClass(k), this.adapter.addClass(K), this.adapter.removeClass($), this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch);
371
+ this.frameId && cancelAnimationFrame(this.frameId), this.tooltipShown = !1, this.adapter.setAttribute("aria-hidden", "true"), this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.richTooltip && this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "false"), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.clearAllAnimationClasses(), this.adapter.addClass(M), this.adapter.addClass(k), this.adapter.removeClass(G), this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch);
577
372
  try {
578
- for (var i = I(this.removeAncestorScrollEventListeners), n = i.next(); !n.done; n = i.next()) {
373
+ for (var e = x(this.removeAncestorScrollEventListeners), n = e.next(); !n.done; n = e.next()) {
579
374
  var a = n.value;
580
375
  a();
581
376
  }
@@ -583,7 +378,7 @@ var rt = typeof window < "u", Et = (
583
378
  t = { error: d };
584
379
  } finally {
585
380
  try {
586
- n && !n.done && (r = i.return) && r.call(i);
381
+ n && !n.done && (r = e.return) && r.call(e);
587
382
  } finally {
588
383
  if (t)
589
384
  throw t.error;
@@ -591,19 +386,19 @@ var rt = typeof window < "u", Et = (
591
386
  }
592
387
  }
593
388
  }, o.prototype.handleTransitionEnd = function() {
594
- var t = this.adapter.hasClass(k);
595
- this.adapter.removeClass(j), this.adapter.removeClass(z), this.adapter.removeClass(k), this.adapter.removeClass(K), t && this.showTimeout === null ? this.adapter.notifyHidden() : t || this.adapter.notifyShown();
389
+ var t = this.adapter.hasClass(M);
390
+ this.adapter.removeClass(z), this.adapter.removeClass(V), this.adapter.removeClass(M), this.adapter.removeClass(k), t && this.showTimeout === null ? this.adapter.notifyHidden() : t || this.adapter.notifyShown();
596
391
  }, o.prototype.clearAllAnimationClasses = function() {
597
- this.adapter.removeClass(z), this.adapter.removeClass(K);
392
+ this.adapter.removeClass(V), this.adapter.removeClass(k);
598
393
  }, o.prototype.setTooltipPosition = function(t) {
599
- var r = t.xPos, i = t.yPos, n = t.withCaretPos;
394
+ var r = t.xPos, e = t.yPos, n = t.withCaretPos;
600
395
  if (this.hasCaret && n) {
601
396
  this.tooltipPositionWithCaret = n;
602
397
  return;
603
398
  }
604
- r && (this.xTooltipPos = r), i && (this.yTooltipPos = i);
399
+ r && (this.xTooltipPos = r), e && (this.yTooltipPos = e);
605
400
  }, o.prototype.setAnchorBoundaryType = function(t) {
606
- t === q.UNBOUNDED ? this.anchorGap = _.UNBOUNDED_ANCHOR_GAP : this.anchorGap = _.BOUNDED_ANCHOR_GAP;
401
+ t === U.UNBOUNDED ? this.anchorGap = _.UNBOUNDED_ANCHOR_GAP : this.anchorGap = _.BOUNDED_ANCHOR_GAP;
607
402
  }, o.prototype.setShowDelay = function(t) {
608
403
  this.showDelayMs = t;
609
404
  }, o.prototype.setHideDelay = function(t) {
@@ -612,75 +407,75 @@ var rt = typeof window < "u", Et = (
612
407
  var t = this.adapter.getTooltipSize();
613
408
  return t.height > _.MIN_HEIGHT && t.width >= _.MAX_WIDTH;
614
409
  }, o.prototype.positionPlainTooltip = function() {
615
- var t = this.calculateTooltipStyles(this.anchorRect), r = t.top, i = t.yTransformOrigin, n = t.left, a = t.xTransformOrigin, d = rt ? it(window, "transform") : "transform";
616
- this.adapter.setSurfaceAnimationStyleProperty(d + "-origin", a + " " + i), this.adapter.setStyleProperty("top", r + "px"), this.adapter.setStyleProperty("left", n + "px");
410
+ var t = this.calculateTooltipStyles(this.anchorRect), r = t.top, e = t.yTransformOrigin, n = t.left, a = t.xTransformOrigin, d = Z ? Q(window, "transform") : "transform";
411
+ this.adapter.setSurfaceAnimationStyleProperty(d + "-origin", a + " " + e), this.adapter.setStyleProperty("top", r + "px"), this.adapter.setStyleProperty("left", n + "px");
617
412
  }, o.prototype.positionRichTooltip = function() {
618
- var t, r, i, n;
413
+ var t, r, e, n;
619
414
  this.adapter.setStyleProperty("width", ""), this.adapter.setStyleProperty("left", "-" + _.RICH_MAX_WIDTH + "px");
620
- var a = Number(this.adapter.getComputedStyleProperty("width").slice(0, -2)), d = isFinite(a) ? a : _.RICH_MAX_WIDTH, h = Math.max(this.adapter.getViewportWidth() - 2 * _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, _.MIN_WIDTH), s = Math.min(h, d);
415
+ var a = Number(this.adapter.getComputedStyleProperty("width").slice(0, -2)), d = isFinite(a) ? a : _.RICH_MAX_WIDTH, c = Math.max(this.adapter.getViewportWidth() - 2 * _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, _.MIN_WIDTH), s = Math.min(c, d);
621
416
  this.adapter.setStyleProperty("width", s + "px");
622
- var l = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), T = l.top, A = l.yTransformOrigin, g = l.left, E = l.xTransformOrigin, v = rt ? it(window, "transform") : "transform";
623
- this.adapter.setSurfaceAnimationStyleProperty(v + "-origin", E + " " + A);
624
- var y = g - ((r = (t = this.parentRect) === null || t === void 0 ? void 0 : t.left) !== null && r !== void 0 ? r : 0), m = T - ((n = (i = this.parentRect) === null || i === void 0 ? void 0 : i.top) !== null && n !== void 0 ? n : 0);
625
- this.adapter.setStyleProperty("top", m + "px"), this.adapter.setStyleProperty("left", y + "px");
417
+ var l = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), T = l.top, y = l.yTransformOrigin, v = l.left, f = l.xTransformOrigin, E = Z ? Q(window, "transform") : "transform";
418
+ this.adapter.setSurfaceAnimationStyleProperty(E + "-origin", f + " " + y);
419
+ var g = v - ((r = (t = this.parentRect) === null || t === void 0 ? void 0 : t.left) !== null && r !== void 0 ? r : 0), m = T - ((n = (e = this.parentRect) === null || e === void 0 ? void 0 : e.top) !== null && n !== void 0 ? n : 0);
420
+ this.adapter.setStyleProperty("top", m + "px"), this.adapter.setStyleProperty("left", g + "px");
626
421
  }, o.prototype.calculateTooltipStyles = function(t) {
627
422
  if (!t)
628
423
  return { top: 0, left: 0 };
629
- var r = this.adapter.getTooltipSize(), i = this.calculateYTooltipDistance(t, r.height), n = this.calculateXTooltipDistance(t, r.width);
424
+ var r = this.adapter.getTooltipSize(), e = this.calculateYTooltipDistance(t, r.height), n = this.calculateXTooltipDistance(t, r.width);
630
425
  return {
631
- top: i.distance,
632
- yTransformOrigin: i.yTransformOrigin,
426
+ top: e.distance,
427
+ yTransformOrigin: e.yTransformOrigin,
633
428
  left: n.distance,
634
429
  xTransformOrigin: n.xTransformOrigin
635
430
  };
636
431
  }, o.prototype.calculateXTooltipDistance = function(t, r) {
637
- var i = !this.adapter.isRTL(), n, a, d, h, s, l, T;
432
+ var e = !this.adapter.isRTL(), n, a, d, c, s, l, T;
638
433
  if (this.richTooltip)
639
- n = i ? t.left - r : t.right, a = i ? t.right : t.left - r, l = i ? c.RIGHT : c.LEFT, T = i ? c.LEFT : c.RIGHT;
434
+ n = e ? t.left - r : t.right, a = e ? t.right : t.left - r, l = e ? h.RIGHT : h.LEFT, T = e ? h.LEFT : h.RIGHT;
640
435
  else {
641
- n = i ? t.left : t.right - r, a = i ? t.right - r : t.left, d = t.left + (t.width - r) / 2;
642
- var A = t.left - (r + this.anchorGap), g = t.right + this.anchorGap;
643
- h = i ? A : g, s = i ? g : A, l = i ? c.LEFT : c.RIGHT, T = i ? c.RIGHT : c.LEFT;
436
+ n = e ? t.left : t.right - r, a = e ? t.right - r : t.left, d = t.left + (t.width - r) / 2;
437
+ var y = t.left - (r + this.anchorGap), v = t.right + this.anchorGap;
438
+ c = e ? y : v, s = e ? v : y, l = e ? h.LEFT : h.RIGHT, T = e ? h.RIGHT : h.LEFT;
644
439
  }
645
- var E = [n, d, a];
646
- this.xTooltipPos === x.SIDE_START ? E.push(h) : this.xTooltipPos === x.SIDE_END && E.push(s);
647
- var v = this.richTooltip ? this.determineValidPositionOptions(n, a) : this.determineValidPositionOptions.apply(this, Z([], X(E)));
648
- if (this.xTooltipPos === x.START && v.has(n))
440
+ var f = [n, d, a];
441
+ this.xTooltipPos === D.SIDE_START ? f.push(c) : this.xTooltipPos === D.SIDE_END && f.push(s);
442
+ var E = this.richTooltip ? this.determineValidPositionOptions(n, a) : this.determineValidPositionOptions.apply(this, $([], q(f)));
443
+ if (this.xTooltipPos === D.START && E.has(n))
649
444
  return { distance: n, xTransformOrigin: l };
650
- if (this.xTooltipPos === x.END && v.has(a))
445
+ if (this.xTooltipPos === D.END && E.has(a))
651
446
  return { distance: a, xTransformOrigin: T };
652
- if (this.xTooltipPos === x.CENTER && v.has(d))
653
- return { distance: d, xTransformOrigin: c.CENTER };
654
- if (this.xTooltipPos === x.SIDE_START && v.has(h))
655
- return { distance: h, xTransformOrigin: T };
656
- if (this.xTooltipPos === x.SIDE_END && v.has(s))
447
+ if (this.xTooltipPos === D.CENTER && E.has(d))
448
+ return { distance: d, xTransformOrigin: h.CENTER };
449
+ if (this.xTooltipPos === D.SIDE_START && E.has(c))
450
+ return { distance: c, xTransformOrigin: T };
451
+ if (this.xTooltipPos === D.SIDE_END && E.has(s))
657
452
  return { distance: s, xTransformOrigin: l };
658
- var y = this.richTooltip ? [
453
+ var g = this.richTooltip ? [
659
454
  { distance: a, xTransformOrigin: T },
660
455
  { distance: n, xTransformOrigin: l }
661
456
  ] : [
662
- { distance: d, xTransformOrigin: c.CENTER },
457
+ { distance: d, xTransformOrigin: h.CENTER },
663
458
  { distance: n, xTransformOrigin: l },
664
459
  { distance: a, xTransformOrigin: T }
665
- ], m = y.find(function(L) {
666
- var W = L.distance;
667
- return v.has(W);
460
+ ], m = g.find(function(H) {
461
+ var b = H.distance;
462
+ return E.has(b);
668
463
  });
669
464
  if (m)
670
465
  return m;
671
466
  if (t.left < 0)
672
467
  return {
673
468
  distance: this.minViewportTooltipThreshold,
674
- xTransformOrigin: c.LEFT
469
+ xTransformOrigin: h.LEFT
675
470
  };
676
- var N = this.adapter.getViewportWidth(), b = N - (r + this.minViewportTooltipThreshold);
677
- return { distance: b, xTransformOrigin: c.RIGHT };
471
+ var w = this.adapter.getViewportWidth(), I = w - (r + this.minViewportTooltipThreshold);
472
+ return { distance: I, xTransformOrigin: h.RIGHT };
678
473
  }, o.prototype.determineValidPositionOptions = function() {
679
- for (var t, r, i = [], n = 0; n < arguments.length; n++)
680
- i[n] = arguments[n];
474
+ for (var t, r, e = [], n = 0; n < arguments.length; n++)
475
+ e[n] = arguments[n];
681
476
  var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
682
477
  try {
683
- for (var h = I(i), s = h.next(); !s.done; s = h.next()) {
478
+ for (var c = x(e), s = c.next(); !s.done; s = c.next()) {
684
479
  var l = s.value;
685
480
  this.positionHonorsViewportThreshold(l) ? a.add(l) : this.positionDoesntCollideWithViewport(l) && d.add(l);
686
481
  }
@@ -688,7 +483,7 @@ var rt = typeof window < "u", Et = (
688
483
  t = { error: T };
689
484
  } finally {
690
485
  try {
691
- s && !s.done && (r = h.return) && r.call(h);
486
+ s && !s.done && (r = c.return) && r.call(c);
692
487
  } finally {
693
488
  if (t)
694
489
  throw t.error;
@@ -696,22 +491,22 @@ var rt = typeof window < "u", Et = (
696
491
  }
697
492
  return a.size ? a : d;
698
493
  }, o.prototype.positionHonorsViewportThreshold = function(t) {
699
- var r = this.adapter.getViewportWidth(), i = this.adapter.getTooltipSize().width;
700
- return t + i <= r - this.minViewportTooltipThreshold && t >= this.minViewportTooltipThreshold;
494
+ var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
495
+ return t + e <= r - this.minViewportTooltipThreshold && t >= this.minViewportTooltipThreshold;
701
496
  }, o.prototype.positionDoesntCollideWithViewport = function(t) {
702
- var r = this.adapter.getViewportWidth(), i = this.adapter.getTooltipSize().width;
703
- return t + i <= r && t >= 0;
497
+ var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
498
+ return t + e <= r && t >= 0;
704
499
  }, o.prototype.calculateYTooltipDistance = function(t, r) {
705
- var i = t.bottom + this.anchorGap, n = t.top - (this.anchorGap + r), a = t.top + t.height / 2, d = a - r / 2, h = [n, i];
706
- this.yTooltipPos === B.SIDE && h.push(d);
707
- var s = this.determineValidYPositionOptions.apply(this, Z([], X(h)));
708
- return this.yTooltipPos === B.ABOVE && s.has(n) ? { distance: n, yTransformOrigin: c.BOTTOM } : this.yTooltipPos === B.BELOW && s.has(i) ? { distance: i, yTransformOrigin: c.TOP } : this.yTooltipPos === B.SIDE && s.has(d) ? { distance: d, yTransformOrigin: c.CENTER } : s.has(i) ? { distance: i, yTransformOrigin: c.TOP } : s.has(n) ? { distance: n, yTransformOrigin: c.BOTTOM } : { distance: i, yTransformOrigin: c.TOP };
500
+ var e = t.bottom + this.anchorGap, n = t.top - (this.anchorGap + r), a = t.top + t.height / 2, d = a - r / 2, c = [n, e];
501
+ this.yTooltipPos === N.SIDE && c.push(d);
502
+ var s = this.determineValidYPositionOptions.apply(this, $([], q(c)));
503
+ return this.yTooltipPos === N.ABOVE && s.has(n) ? { distance: n, yTransformOrigin: h.BOTTOM } : this.yTooltipPos === N.BELOW && s.has(e) ? { distance: e, yTransformOrigin: h.TOP } : this.yTooltipPos === N.SIDE && s.has(d) ? { distance: d, yTransformOrigin: h.CENTER } : s.has(e) ? { distance: e, yTransformOrigin: h.TOP } : s.has(n) ? { distance: n, yTransformOrigin: h.BOTTOM } : { distance: e, yTransformOrigin: h.TOP };
709
504
  }, o.prototype.determineValidYPositionOptions = function() {
710
- for (var t, r, i = [], n = 0; n < arguments.length; n++)
711
- i[n] = arguments[n];
505
+ for (var t, r, e = [], n = 0; n < arguments.length; n++)
506
+ e[n] = arguments[n];
712
507
  var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
713
508
  try {
714
- for (var h = I(i), s = h.next(); !s.done; s = h.next()) {
509
+ for (var c = x(e), s = c.next(); !s.done; s = c.next()) {
715
510
  var l = s.value;
716
511
  this.yPositionHonorsViewportThreshold(l) ? a.add(l) : this.yPositionDoesntCollideWithViewport(l) && d.add(l);
717
512
  }
@@ -719,7 +514,7 @@ var rt = typeof window < "u", Et = (
719
514
  t = { error: T };
720
515
  } finally {
721
516
  try {
722
- s && !s.done && (r = h.return) && r.call(h);
517
+ s && !s.done && (r = c.return) && r.call(c);
723
518
  } finally {
724
519
  if (t)
725
520
  throw t.error;
@@ -727,43 +522,43 @@ var rt = typeof window < "u", Et = (
727
522
  }
728
523
  return a.size ? a : d;
729
524
  }, o.prototype.yPositionHonorsViewportThreshold = function(t) {
730
- var r = this.adapter.getViewportHeight(), i = this.adapter.getTooltipSize().height;
731
- return t + i + this.minViewportTooltipThreshold <= r && t >= this.minViewportTooltipThreshold;
525
+ var r = this.adapter.getViewportHeight(), e = this.adapter.getTooltipSize().height;
526
+ return t + e + this.minViewportTooltipThreshold <= r && t >= this.minViewportTooltipThreshold;
732
527
  }, o.prototype.yPositionDoesntCollideWithViewport = function(t) {
733
- var r = this.adapter.getViewportHeight(), i = this.adapter.getTooltipSize().height;
734
- return t + i <= r && t >= 0;
528
+ var r = this.adapter.getViewportHeight(), e = this.adapter.getTooltipSize().height;
529
+ return t + e <= r && t >= 0;
735
530
  }, o.prototype.calculateTooltipWithCaretStyles = function(t) {
736
531
  this.adapter.clearTooltipCaretStyles();
737
532
  var r = this.adapter.getTooltipCaretBoundingRect();
738
533
  if (!t || !r)
739
534
  return { position: p.DETECTED, top: 0, left: 0 };
740
- var i = r.width / _.ANIMATION_SCALE, n = r.height / _.ANIMATION_SCALE / 2, a = this.adapter.getTooltipSize(), d = this.calculateYWithCaretDistanceOptions(t, a.height, { caretWidth: i, caretHeight: n }), h = this.calculateXWithCaretDistanceOptions(t, a.width, { caretWidth: i, caretHeight: n }), s = this.validateTooltipWithCaretDistances(d, h);
741
- s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth: i, caretHeight: n }));
742
- var l = this.determineTooltipWithCaretDistance(s), T = l.position, A = l.xDistance, g = l.yDistance, E = this.setCaretPositionStyles(T, { caretWidth: i, caretHeight: n }), v = E.yTransformOrigin, y = E.xTransformOrigin;
535
+ var e = r.width / _.ANIMATION_SCALE, n = r.height / _.ANIMATION_SCALE / 2, a = this.adapter.getTooltipSize(), d = this.calculateYWithCaretDistanceOptions(t, a.height, { caretWidth: e, caretHeight: n }), c = this.calculateXWithCaretDistanceOptions(t, a.width, { caretWidth: e, caretHeight: n }), s = this.validateTooltipWithCaretDistances(d, c);
536
+ s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth: e, caretHeight: n }));
537
+ var l = this.determineTooltipWithCaretDistance(s), T = l.position, y = l.xDistance, v = l.yDistance, f = this.setCaretPositionStyles(T, { caretWidth: e, caretHeight: n }), E = f.yTransformOrigin, g = f.xTransformOrigin;
743
538
  return {
744
- yTransformOrigin: v,
745
- xTransformOrigin: y,
746
- top: g,
747
- left: A
539
+ yTransformOrigin: E,
540
+ xTransformOrigin: g,
541
+ top: v,
542
+ left: y
748
543
  };
749
- }, o.prototype.calculateXWithCaretDistanceOptions = function(t, r, i) {
750
- var n = i.caretWidth, a = i.caretHeight, d = !this.adapter.isRTL(), h = t.left + t.width / 2, s = t.left - (r + this.anchorGap + a), l = t.right + this.anchorGap + a, T = d ? s : l, A = d ? l : s, g = h - (_.CARET_INDENTATION + n / 2), E = h - (r - _.CARET_INDENTATION - n / 2), v = d ? g : E, y = d ? E : g, m = h - r / 2, N = /* @__PURE__ */ new Map([
751
- [f.START, v],
752
- [f.CENTER, m],
753
- [f.END, y],
754
- [f.SIDE_END, A],
755
- [f.SIDE_START, T]
544
+ }, o.prototype.calculateXWithCaretDistanceOptions = function(t, r, e) {
545
+ var n = e.caretWidth, a = e.caretHeight, d = !this.adapter.isRTL(), c = t.left + t.width / 2, s = t.left - (r + this.anchorGap + a), l = t.right + this.anchorGap + a, T = d ? s : l, y = d ? l : s, v = c - (_.CARET_INDENTATION + n / 2), f = c - (r - _.CARET_INDENTATION - n / 2), E = d ? v : f, g = d ? f : v, m = c - r / 2, w = /* @__PURE__ */ new Map([
546
+ [u.START, E],
547
+ [u.CENTER, m],
548
+ [u.END, g],
549
+ [u.SIDE_END, y],
550
+ [u.SIDE_START, T]
756
551
  ]);
757
- return N;
758
- }, o.prototype.calculateYWithCaretDistanceOptions = function(t, r, i) {
759
- var n = i.caretWidth, a = i.caretHeight, d = t.top + t.height / 2, h = t.bottom + this.anchorGap + a, s = t.top - (this.anchorGap + r + a), l = d - (_.CARET_INDENTATION + n / 2), T = d - r / 2, A = d - (r - _.CARET_INDENTATION - n / 2), g = /* @__PURE__ */ new Map([
552
+ return w;
553
+ }, o.prototype.calculateYWithCaretDistanceOptions = function(t, r, e) {
554
+ var n = e.caretWidth, a = e.caretHeight, d = t.top + t.height / 2, c = t.bottom + this.anchorGap + a, s = t.top - (this.anchorGap + r + a), l = d - (_.CARET_INDENTATION + n / 2), T = d - r / 2, y = d - (r - _.CARET_INDENTATION - n / 2), v = /* @__PURE__ */ new Map([
760
555
  [O.ABOVE, s],
761
- [O.BELOW, h],
556
+ [O.BELOW, c],
762
557
  [O.SIDE_TOP, l],
763
558
  [O.SIDE_CENTER, T],
764
- [O.SIDE_BOTTOM, A]
559
+ [O.SIDE_BOTTOM, y]
765
560
  ]);
766
- return g;
561
+ return v;
767
562
  }, o.prototype.repositionTooltipOnAnchorMove = function() {
768
563
  var t = this.adapter.getAnchorBoundingRect();
769
564
  if (!(!t || !this.anchorRect)) {
@@ -771,106 +566,106 @@ var rt = typeof window < "u", Et = (
771
566
  t.top + t.height < 0 || t.bottom - t.height >= r || (t.top !== this.anchorRect.top || t.left !== this.anchorRect.left || t.height !== this.anchorRect.height || t.width !== this.anchorRect.width) && (this.anchorRect = t, this.parentRect = this.adapter.getParentBoundingRect(), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip());
772
567
  }
773
568
  }, o.prototype.validateTooltipWithCaretDistances = function(t, r) {
774
- var i, n, a, d, h, s, l = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map([
569
+ var e, n, a, d, c, s, l = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map([
775
570
  [
776
571
  O.ABOVE,
777
572
  [
778
- f.START,
779
- f.CENTER,
780
- f.END
573
+ u.START,
574
+ u.CENTER,
575
+ u.END
781
576
  ]
782
577
  ],
783
578
  [
784
579
  O.BELOW,
785
580
  [
786
- f.START,
787
- f.CENTER,
788
- f.END
581
+ u.START,
582
+ u.CENTER,
583
+ u.END
789
584
  ]
790
585
  ],
791
586
  [
792
587
  O.SIDE_TOP,
793
- [f.SIDE_START, f.SIDE_END]
588
+ [u.SIDE_START, u.SIDE_END]
794
589
  ],
795
590
  [
796
591
  O.SIDE_CENTER,
797
- [f.SIDE_START, f.SIDE_END]
592
+ [u.SIDE_START, u.SIDE_END]
798
593
  ],
799
594
  [
800
595
  O.SIDE_BOTTOM,
801
- [f.SIDE_START, f.SIDE_END]
596
+ [u.SIDE_START, u.SIDE_END]
802
597
  ]
803
598
  ]);
804
599
  try {
805
- for (var g = I(A.keys()), E = g.next(); !E.done; E = g.next()) {
806
- var v = E.value, y = t.get(v);
807
- if (this.yPositionHonorsViewportThreshold(y))
600
+ for (var v = x(y.keys()), f = v.next(); !f.done; f = v.next()) {
601
+ var E = f.value, g = t.get(E);
602
+ if (this.yPositionHonorsViewportThreshold(g))
808
603
  try {
809
- for (var m = (a = void 0, I(A.get(v))), N = m.next(); !N.done; N = m.next()) {
810
- var b = N.value, L = r.get(b);
811
- if (this.positionHonorsViewportThreshold(L)) {
812
- var W = this.caretPositionOptionsMapping(b, v);
813
- l.set(W, { xDistance: L, yDistance: y });
604
+ for (var m = (a = void 0, x(y.get(E))), w = m.next(); !w.done; w = m.next()) {
605
+ var I = w.value, H = r.get(I);
606
+ if (this.positionHonorsViewportThreshold(H)) {
607
+ var b = this.caretPositionOptionsMapping(I, E);
608
+ l.set(b, { xDistance: H, yDistance: g });
814
609
  }
815
610
  }
816
- } catch (F) {
817
- a = { error: F };
611
+ } catch (P) {
612
+ a = { error: P };
818
613
  } finally {
819
614
  try {
820
- N && !N.done && (d = m.return) && d.call(m);
615
+ w && !w.done && (d = m.return) && d.call(m);
821
616
  } finally {
822
617
  if (a)
823
618
  throw a.error;
824
619
  }
825
620
  }
826
- if (this.yPositionDoesntCollideWithViewport(y))
621
+ if (this.yPositionDoesntCollideWithViewport(g))
827
622
  try {
828
- for (var G = (h = void 0, I(A.get(v))), V = G.next(); !V.done; V = G.next()) {
829
- var b = V.value, L = r.get(b);
830
- if (this.positionDoesntCollideWithViewport(L)) {
831
- var W = this.caretPositionOptionsMapping(b, v);
832
- T.set(W, { xDistance: L, yDistance: y });
623
+ for (var B = (c = void 0, x(y.get(E))), L = B.next(); !L.done; L = B.next()) {
624
+ var I = L.value, H = r.get(I);
625
+ if (this.positionDoesntCollideWithViewport(H)) {
626
+ var b = this.caretPositionOptionsMapping(I, E);
627
+ T.set(b, { xDistance: H, yDistance: g });
833
628
  }
834
629
  }
835
- } catch (F) {
836
- h = { error: F };
630
+ } catch (P) {
631
+ c = { error: P };
837
632
  } finally {
838
633
  try {
839
- V && !V.done && (s = G.return) && s.call(G);
634
+ L && !L.done && (s = B.return) && s.call(B);
840
635
  } finally {
841
- if (h)
842
- throw h.error;
636
+ if (c)
637
+ throw c.error;
843
638
  }
844
639
  }
845
640
  }
846
- } catch (F) {
847
- i = { error: F };
641
+ } catch (P) {
642
+ e = { error: P };
848
643
  } finally {
849
644
  try {
850
- E && !E.done && (n = g.return) && n.call(g);
645
+ f && !f.done && (n = v.return) && n.call(v);
851
646
  } finally {
852
- if (i)
853
- throw i.error;
647
+ if (e)
648
+ throw e.error;
854
649
  }
855
650
  }
856
651
  return l.size ? l : T;
857
- }, o.prototype.generateBackupPositionOption = function(t, r, i) {
652
+ }, o.prototype.generateBackupPositionOption = function(t, r, e) {
858
653
  var n = !this.adapter.isRTL(), a, d;
859
654
  if (t.left < 0)
860
- a = this.minViewportTooltipThreshold + i.caretHeight, d = n ? f.END : f.START;
655
+ a = this.minViewportTooltipThreshold + e.caretHeight, d = n ? u.END : u.START;
861
656
  else {
862
- var h = this.adapter.getViewportWidth();
863
- a = h - (r.width + this.minViewportTooltipThreshold + i.caretHeight), d = n ? f.START : f.END;
657
+ var c = this.adapter.getViewportWidth();
658
+ a = c - (r.width + this.minViewportTooltipThreshold + e.caretHeight), d = n ? u.START : u.END;
864
659
  }
865
660
  var s, l;
866
661
  if (t.top < 0)
867
- s = this.minViewportTooltipThreshold + i.caretHeight, l = O.BELOW;
662
+ s = this.minViewportTooltipThreshold + e.caretHeight, l = O.BELOW;
868
663
  else {
869
664
  var T = this.adapter.getViewportHeight();
870
- s = T - (r.height + this.minViewportTooltipThreshold + i.caretHeight), l = O.ABOVE;
665
+ s = T - (r.height + this.minViewportTooltipThreshold + e.caretHeight), l = O.ABOVE;
871
666
  }
872
- var A = this.caretPositionOptionsMapping(d, l);
873
- return /* @__PURE__ */ new Map([[A, { xDistance: a, yDistance: s }]]);
667
+ var y = this.caretPositionOptionsMapping(d, l);
668
+ return /* @__PURE__ */ new Map([[y, { xDistance: a, yDistance: s }]]);
874
669
  }, o.prototype.determineTooltipWithCaretDistance = function(t) {
875
670
  if (t.has(this.tooltipPositionWithCaret)) {
876
671
  var r = t.get(this.tooltipPositionWithCaret);
@@ -880,7 +675,7 @@ var rt = typeof window < "u", Et = (
880
675
  yDistance: r.yDistance
881
676
  };
882
677
  }
883
- var i = [
678
+ var e = [
884
679
  p.ABOVE_START,
885
680
  p.ABOVE_CENTER,
886
681
  p.ABOVE_END,
@@ -893,7 +688,7 @@ var rt = typeof window < "u", Et = (
893
688
  p.BELOW_START,
894
689
  p.BELOW_CENTER,
895
690
  p.BELOW_END
896
- ], n = i.find(function(d) {
691
+ ], n = e.find(function(d) {
897
692
  return t.has(d);
898
693
  }), a = t.get(n);
899
694
  return {
@@ -904,61 +699,61 @@ var rt = typeof window < "u", Et = (
904
699
  }, o.prototype.caretPositionOptionsMapping = function(t, r) {
905
700
  switch (r) {
906
701
  case O.ABOVE:
907
- if (t === f.START)
702
+ if (t === u.START)
908
703
  return p.ABOVE_START;
909
- if (t === f.CENTER)
704
+ if (t === u.CENTER)
910
705
  return p.ABOVE_CENTER;
911
- if (t === f.END)
706
+ if (t === u.END)
912
707
  return p.ABOVE_END;
913
708
  break;
914
709
  case O.BELOW:
915
- if (t === f.START)
710
+ if (t === u.START)
916
711
  return p.BELOW_START;
917
- if (t === f.CENTER)
712
+ if (t === u.CENTER)
918
713
  return p.BELOW_CENTER;
919
- if (t === f.END)
714
+ if (t === u.END)
920
715
  return p.BELOW_END;
921
716
  break;
922
717
  case O.SIDE_TOP:
923
- if (t === f.SIDE_START)
718
+ if (t === u.SIDE_START)
924
719
  return p.TOP_SIDE_START;
925
- if (t === f.SIDE_END)
720
+ if (t === u.SIDE_END)
926
721
  return p.TOP_SIDE_END;
927
722
  break;
928
723
  case O.SIDE_CENTER:
929
- if (t === f.SIDE_START)
724
+ if (t === u.SIDE_START)
930
725
  return p.CENTER_SIDE_START;
931
- if (t === f.SIDE_END)
726
+ if (t === u.SIDE_END)
932
727
  return p.CENTER_SIDE_END;
933
728
  break;
934
729
  case O.SIDE_BOTTOM:
935
- if (t === f.SIDE_START)
730
+ if (t === u.SIDE_START)
936
731
  return p.BOTTOM_SIDE_START;
937
- if (t === f.SIDE_END)
732
+ if (t === u.SIDE_END)
938
733
  return p.BOTTOM_SIDE_END;
939
734
  break;
940
735
  }
941
736
  throw new Error("MDCTooltipFoundation: Invalid caret position of " + t + ", " + r);
942
737
  }, o.prototype.setCaretPositionStyles = function(t, r) {
943
- var i, n, a = this.calculateCaretPositionOnTooltip(t, r);
738
+ var e, n, a = this.calculateCaretPositionOnTooltip(t, r);
944
739
  if (!a)
945
740
  return { yTransformOrigin: 0, xTransformOrigin: 0 };
946
741
  this.adapter.clearTooltipCaretStyles(), this.adapter.setTooltipCaretStyle(a.yAlignment, a.yAxisPx), this.adapter.setTooltipCaretStyle(a.xAlignment, a.xAxisPx);
947
- var d = a.skew * (Math.PI / 180), h = Math.cos(d);
948
- this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" + h + ")"), this.adapter.setTooltipCaretStyle("transform-origin", a.xAlignment + " " + a.yAlignment);
742
+ var d = a.skew * (Math.PI / 180), c = Math.cos(d);
743
+ this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" + c + ")"), this.adapter.setTooltipCaretStyle("transform-origin", a.xAlignment + " " + a.yAlignment);
949
744
  try {
950
- for (var s = I(a.caretCorners), l = s.next(); !l.done; l = s.next()) {
745
+ for (var s = x(a.caretCorners), l = s.next(); !l.done; l = s.next()) {
951
746
  var T = l.value;
952
747
  this.adapter.setTooltipCaretStyle(T, "0");
953
748
  }
954
- } catch (A) {
955
- i = { error: A };
749
+ } catch (y) {
750
+ e = { error: y };
956
751
  } finally {
957
752
  try {
958
753
  l && !l.done && (n = s.return) && n.call(s);
959
754
  } finally {
960
- if (i)
961
- throw i.error;
755
+ if (e)
756
+ throw e.error;
962
757
  }
963
758
  }
964
759
  return {
@@ -966,154 +761,154 @@ var rt = typeof window < "u", Et = (
966
761
  xTransformOrigin: a.xTransformOrigin
967
762
  };
968
763
  }, o.prototype.calculateCaretPositionOnTooltip = function(t, r) {
969
- var i = !this.adapter.isRTL(), n = this.adapter.getComputedStyleProperty("width"), a = this.adapter.getComputedStyleProperty("height");
764
+ var e = !this.adapter.isRTL(), n = this.adapter.getComputedStyleProperty("width"), a = this.adapter.getComputedStyleProperty("height");
970
765
  if (!(!n || !a || !r)) {
971
- var d = "calc((" + n + " - " + r.caretWidth + "px) / 2)", h = "calc((" + a + " - " + r.caretWidth + "px) / 2)", s = "0", l = _.CARET_INDENTATION + "px", T = "calc(" + n + " - " + l + ")", A = "calc(" + a + " - " + l + ")", g = 35, E = Math.abs(90 - g), v = ["border-bottom-right-radius", "border-top-left-radius"], y = ["border-bottom-left-radius", "border-top-right-radius"], m = 20;
766
+ var d = "calc((" + n + " - " + r.caretWidth + "px) / 2)", c = "calc((" + a + " - " + r.caretWidth + "px) / 2)", s = "0", l = _.CARET_INDENTATION + "px", T = "calc(" + n + " - " + l + ")", y = "calc(" + a + " - " + l + ")", v = 35, f = Math.abs(90 - v), E = ["border-bottom-right-radius", "border-top-left-radius"], g = ["border-bottom-left-radius", "border-top-right-radius"], m = 20;
972
767
  switch (t) {
973
768
  case p.BELOW_CENTER:
974
769
  return {
975
- yAlignment: c.TOP,
976
- xAlignment: c.LEFT,
770
+ yAlignment: h.TOP,
771
+ xAlignment: h.LEFT,
977
772
  yAxisPx: s,
978
773
  xAxisPx: d,
979
- rotation: -1 * g,
774
+ rotation: -1 * v,
980
775
  skew: -1 * m,
981
776
  xTransformOrigin: d,
982
777
  yTransformOrigin: s,
983
- caretCorners: v
778
+ caretCorners: E
984
779
  };
985
780
  case p.BELOW_END:
986
781
  return {
987
- yAlignment: c.TOP,
988
- xAlignment: i ? c.RIGHT : c.LEFT,
782
+ yAlignment: h.TOP,
783
+ xAlignment: e ? h.RIGHT : h.LEFT,
989
784
  yAxisPx: s,
990
785
  xAxisPx: l,
991
- rotation: i ? g : -1 * g,
992
- skew: i ? m : -1 * m,
993
- xTransformOrigin: i ? T : l,
786
+ rotation: e ? v : -1 * v,
787
+ skew: e ? m : -1 * m,
788
+ xTransformOrigin: e ? T : l,
994
789
  yTransformOrigin: s,
995
- caretCorners: i ? y : v
790
+ caretCorners: e ? g : E
996
791
  };
997
792
  case p.BELOW_START:
998
793
  return {
999
- yAlignment: c.TOP,
1000
- xAlignment: i ? c.LEFT : c.RIGHT,
794
+ yAlignment: h.TOP,
795
+ xAlignment: e ? h.LEFT : h.RIGHT,
1001
796
  yAxisPx: s,
1002
797
  xAxisPx: l,
1003
- rotation: i ? -1 * g : g,
1004
- skew: i ? -1 * m : m,
1005
- xTransformOrigin: i ? l : T,
798
+ rotation: e ? -1 * v : v,
799
+ skew: e ? -1 * m : m,
800
+ xTransformOrigin: e ? l : T,
1006
801
  yTransformOrigin: s,
1007
- caretCorners: i ? v : y
802
+ caretCorners: e ? E : g
1008
803
  };
1009
804
  case p.TOP_SIDE_END:
1010
805
  return {
1011
- yAlignment: c.TOP,
1012
- xAlignment: i ? c.LEFT : c.RIGHT,
806
+ yAlignment: h.TOP,
807
+ xAlignment: e ? h.LEFT : h.RIGHT,
1013
808
  yAxisPx: l,
1014
809
  xAxisPx: s,
1015
- rotation: i ? E : -1 * E,
1016
- skew: i ? -1 * m : m,
1017
- xTransformOrigin: i ? s : n,
810
+ rotation: e ? f : -1 * f,
811
+ skew: e ? -1 * m : m,
812
+ xTransformOrigin: e ? s : n,
1018
813
  yTransformOrigin: l,
1019
- caretCorners: i ? v : y
814
+ caretCorners: e ? E : g
1020
815
  };
1021
816
  case p.CENTER_SIDE_END:
1022
817
  return {
1023
- yAlignment: c.TOP,
1024
- xAlignment: i ? c.LEFT : c.RIGHT,
1025
- yAxisPx: h,
818
+ yAlignment: h.TOP,
819
+ xAlignment: e ? h.LEFT : h.RIGHT,
820
+ yAxisPx: c,
1026
821
  xAxisPx: s,
1027
- rotation: i ? E : -1 * E,
1028
- skew: i ? -1 * m : m,
1029
- xTransformOrigin: i ? s : n,
1030
- yTransformOrigin: h,
1031
- caretCorners: i ? v : y
822
+ rotation: e ? f : -1 * f,
823
+ skew: e ? -1 * m : m,
824
+ xTransformOrigin: e ? s : n,
825
+ yTransformOrigin: c,
826
+ caretCorners: e ? E : g
1032
827
  };
1033
828
  case p.BOTTOM_SIDE_END:
1034
829
  return {
1035
- yAlignment: c.BOTTOM,
1036
- xAlignment: i ? c.LEFT : c.RIGHT,
830
+ yAlignment: h.BOTTOM,
831
+ xAlignment: e ? h.LEFT : h.RIGHT,
1037
832
  yAxisPx: l,
1038
833
  xAxisPx: s,
1039
- rotation: i ? -1 * E : E,
1040
- skew: i ? m : -1 * m,
1041
- xTransformOrigin: i ? s : n,
1042
- yTransformOrigin: A,
1043
- caretCorners: i ? y : v
834
+ rotation: e ? -1 * f : f,
835
+ skew: e ? m : -1 * m,
836
+ xTransformOrigin: e ? s : n,
837
+ yTransformOrigin: y,
838
+ caretCorners: e ? g : E
1044
839
  };
1045
840
  case p.TOP_SIDE_START:
1046
841
  return {
1047
- yAlignment: c.TOP,
1048
- xAlignment: i ? c.RIGHT : c.LEFT,
842
+ yAlignment: h.TOP,
843
+ xAlignment: e ? h.RIGHT : h.LEFT,
1049
844
  yAxisPx: l,
1050
845
  xAxisPx: s,
1051
- rotation: i ? -1 * E : E,
1052
- skew: i ? m : -1 * m,
1053
- xTransformOrigin: i ? n : s,
846
+ rotation: e ? -1 * f : f,
847
+ skew: e ? m : -1 * m,
848
+ xTransformOrigin: e ? n : s,
1054
849
  yTransformOrigin: l,
1055
- caretCorners: i ? y : v
850
+ caretCorners: e ? g : E
1056
851
  };
1057
852
  case p.CENTER_SIDE_START:
1058
853
  return {
1059
- yAlignment: c.TOP,
1060
- xAlignment: i ? c.RIGHT : c.LEFT,
1061
- yAxisPx: h,
854
+ yAlignment: h.TOP,
855
+ xAlignment: e ? h.RIGHT : h.LEFT,
856
+ yAxisPx: c,
1062
857
  xAxisPx: s,
1063
- rotation: i ? -1 * E : E,
1064
- skew: i ? m : -1 * m,
1065
- xTransformOrigin: i ? n : s,
1066
- yTransformOrigin: h,
1067
- caretCorners: i ? y : v
858
+ rotation: e ? -1 * f : f,
859
+ skew: e ? m : -1 * m,
860
+ xTransformOrigin: e ? n : s,
861
+ yTransformOrigin: c,
862
+ caretCorners: e ? g : E
1068
863
  };
1069
864
  case p.BOTTOM_SIDE_START:
1070
865
  return {
1071
- yAlignment: c.BOTTOM,
1072
- xAlignment: i ? c.RIGHT : c.LEFT,
866
+ yAlignment: h.BOTTOM,
867
+ xAlignment: e ? h.RIGHT : h.LEFT,
1073
868
  yAxisPx: l,
1074
869
  xAxisPx: s,
1075
- rotation: i ? E : -1 * E,
1076
- skew: i ? -1 * m : m,
1077
- xTransformOrigin: i ? n : s,
1078
- yTransformOrigin: A,
1079
- caretCorners: i ? v : y
870
+ rotation: e ? f : -1 * f,
871
+ skew: e ? -1 * m : m,
872
+ xTransformOrigin: e ? n : s,
873
+ yTransformOrigin: y,
874
+ caretCorners: e ? E : g
1080
875
  };
1081
876
  case p.ABOVE_CENTER:
1082
877
  return {
1083
- yAlignment: c.BOTTOM,
1084
- xAlignment: c.LEFT,
878
+ yAlignment: h.BOTTOM,
879
+ xAlignment: h.LEFT,
1085
880
  yAxisPx: s,
1086
881
  xAxisPx: d,
1087
- rotation: g,
882
+ rotation: v,
1088
883
  skew: m,
1089
884
  xTransformOrigin: d,
1090
885
  yTransformOrigin: a,
1091
- caretCorners: y
886
+ caretCorners: g
1092
887
  };
1093
888
  case p.ABOVE_END:
1094
889
  return {
1095
- yAlignment: c.BOTTOM,
1096
- xAlignment: i ? c.RIGHT : c.LEFT,
890
+ yAlignment: h.BOTTOM,
891
+ xAlignment: e ? h.RIGHT : h.LEFT,
1097
892
  yAxisPx: s,
1098
893
  xAxisPx: l,
1099
- rotation: i ? -1 * g : g,
1100
- skew: i ? -1 * m : m,
1101
- xTransformOrigin: i ? T : l,
894
+ rotation: e ? -1 * v : v,
895
+ skew: e ? -1 * m : m,
896
+ xTransformOrigin: e ? T : l,
1102
897
  yTransformOrigin: a,
1103
- caretCorners: i ? v : y
898
+ caretCorners: e ? E : g
1104
899
  };
1105
900
  default:
1106
901
  case p.ABOVE_START:
1107
902
  return {
1108
- yAlignment: c.BOTTOM,
1109
- xAlignment: i ? c.LEFT : c.RIGHT,
903
+ yAlignment: h.BOTTOM,
904
+ xAlignment: e ? h.LEFT : h.RIGHT,
1110
905
  yAxisPx: s,
1111
906
  xAxisPx: l,
1112
- rotation: i ? g : -1 * g,
1113
- skew: i ? m : -1 * m,
1114
- xTransformOrigin: i ? l : T,
907
+ rotation: e ? v : -1 * v,
908
+ skew: e ? m : -1 * m,
909
+ xTransformOrigin: e ? l : T,
1115
910
  yTransformOrigin: a,
1116
- caretCorners: i ? y : v
911
+ caretCorners: e ? g : E
1117
912
  };
1118
913
  }
1119
914
  }
@@ -1133,9 +928,9 @@ var rt = typeof window < "u", Et = (
1133
928
  });
1134
929
  }, o.prototype.destroy = function() {
1135
930
  var t, r;
1136
- this.frameId && (cancelAnimationFrame(this.frameId), this.frameId = null), this.clearHideTimeout(), this.clearShowTimeout(), this.adapter.removeClass($), this.adapter.removeClass(z), this.adapter.removeClass(j), this.adapter.removeClass(k), this.adapter.removeClass(K), this.richTooltip && this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler);
931
+ this.frameId && (cancelAnimationFrame(this.frameId), this.frameId = null), this.clearHideTimeout(), this.clearShowTimeout(), this.adapter.removeClass(G), this.adapter.removeClass(V), this.adapter.removeClass(z), this.adapter.removeClass(M), this.adapter.removeClass(k), this.richTooltip && this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler);
1137
932
  try {
1138
- for (var i = I(this.removeAncestorScrollEventListeners), n = i.next(); !n.done; n = i.next()) {
933
+ for (var e = x(this.removeAncestorScrollEventListeners), n = e.next(); !n.done; n = e.next()) {
1139
934
  var a = n.value;
1140
935
  a();
1141
936
  }
@@ -1143,7 +938,7 @@ var rt = typeof window < "u", Et = (
1143
938
  t = { error: d };
1144
939
  } finally {
1145
940
  try {
1146
- n && !n.done && (r = i.return) && r.call(i);
941
+ n && !n.done && (r = e.return) && r.call(e);
1147
942
  } finally {
1148
943
  if (t)
1149
944
  throw t.error;
@@ -1151,28 +946,28 @@ var rt = typeof window < "u", Et = (
1151
946
  }
1152
947
  this.animFrame.cancelAll();
1153
948
  }, o;
1154
- }(ht)
949
+ }(dt)
1155
950
  );
1156
- const vt = `.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip__surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:4px;line-height:20px}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__surface .mdc-tooltip__title{display:block;margin-top:0;line-height:20px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__title,.mdc-tooltip__content{color:var(--mdc-theme-text-primary-on-background)}.mdc-tooltip__content-link{color:var(--mdc-theme-accent)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:var(--mdc-theme-surface)}
951
+ const mt = `.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip__interactive-content{overflow-x:unset;overflow-y:auto}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip__surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:4px;line-height:20px}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__surface .mdc-tooltip__title{display:block;margin-top:0;line-height:20px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__title,.mdc-tooltip__content{color:var(--mdc-theme-text-primary-on-background)}.mdc-tooltip__content-link{color:var(--mdc-theme-accent)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:var(--mdc-theme-surface)}
1157
952
  `;
1158
- var gt = Object.defineProperty, yt = Object.getOwnPropertyDescriptor, C = (e, o, t, r) => {
1159
- for (var i = r > 1 ? void 0 : r ? yt(o, t) : o, n = e.length - 1, a; n >= 0; n--)
1160
- (a = e[n]) && (i = (r ? a(o, t, i) : a(i)) || i);
1161
- return r && i && gt(o, t, i), i;
953
+ var Tt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, R = (i, o, t, r) => {
954
+ for (var e = r > 1 ? void 0 : r ? ft(o, t) : o, n = i.length - 1, a; n >= 0; n--)
955
+ (a = i[n]) && (e = (r ? a(o, t, e) : a(e)) || e);
956
+ return r && e && Tt(o, t, e), e;
1162
957
  };
1163
- let R = class extends st {
958
+ let A = class extends it {
1164
959
  constructor() {
1165
- super(...arguments), this.mdcFoundationClass = Et;
960
+ super(...arguments), this.mdcFoundationClass = ut;
1166
961
  }
1167
962
  createAdapter() {
1168
963
  return {
1169
- ...dt(this.mdcRoot),
1170
- getAttribute: (e) => this.mdcRoot.getAttribute(e),
1171
- setAttribute: (e, o) => this.mdcRoot.setAttribute(e, o),
1172
- removeAttribute: (e) => this.mdcRoot.removeAttribute(e),
1173
- getComputedStyleProperty: (e) => getComputedStyle(this.mdcRoot, e).cssText,
1174
- setStyleProperty: (e, o) => this.mdcRoot.style.setProperty(e, o),
1175
- setSurfaceAnimationStyleProperty: (e, o) => this.mdcSurface.style.setProperty(e, o),
964
+ ...ot(this.mdcRoot),
965
+ getAttribute: (i) => this.mdcRoot.getAttribute(i),
966
+ setAttribute: (i, o) => this.mdcRoot.setAttribute(i, o),
967
+ removeAttribute: (i) => this.mdcRoot.removeAttribute(i),
968
+ getComputedStyleProperty: (i) => getComputedStyle(this.mdcRoot, i).cssText,
969
+ setStyleProperty: (i, o) => this.mdcRoot.style.setProperty(i, o),
970
+ setSurfaceAnimationStyleProperty: (i, o) => this.mdcSurface.style.setProperty(i, o),
1176
971
  getViewportWidth: () => Math.max(
1177
972
  document.documentElement.clientWidth || 0,
1178
973
  window.innerWidth || 0
@@ -1187,54 +982,54 @@ let R = class extends st {
1187
982
  }),
1188
983
  getTooltipCaretBoundingRect: () => this.mdcRoot.getBoundingClientRect() ?? null,
1189
984
  getAnchorBoundingRect: () => {
1190
- var e;
1191
- return ((e = this.anchor) == null ? void 0 : e.getBoundingClientRect()) ?? null;
985
+ var i;
986
+ return ((i = this.anchor) == null ? void 0 : i.getBoundingClientRect()) ?? null;
1192
987
  },
1193
988
  getParentBoundingRect: () => {
1194
- var e;
1195
- return ((e = this.renderRoot.getRootNode().parentElement) == null ? void 0 : e.getBoundingClientRect()) ?? null;
989
+ var i;
990
+ return ((i = this.renderRoot.getRootNode().parentElement) == null ? void 0 : i.getBoundingClientRect()) ?? null;
1196
991
  },
1197
- getAnchorAttribute: (e) => {
992
+ getAnchorAttribute: (i) => {
1198
993
  var o;
1199
- return ((o = this.anchor) == null ? void 0 : o.getAttribute(e)) ?? null;
994
+ return ((o = this.anchor) == null ? void 0 : o.getAttribute(i)) ?? null;
1200
995
  },
1201
- setAnchorAttribute: (e, o) => {
996
+ setAnchorAttribute: (i, o) => {
1202
997
  var t;
1203
- return (t = this.anchor) == null ? void 0 : t.setAttribute(e, o);
998
+ return (t = this.anchor) == null ? void 0 : t.setAttribute(i, o);
1204
999
  },
1205
1000
  isRTL: () => !1,
1206
- isInstanceOfElement: (e) => e instanceof Element,
1207
- anchorContainsElement: (e) => {
1001
+ isInstanceOfElement: (i) => i instanceof Element,
1002
+ anchorContainsElement: (i) => {
1208
1003
  var o;
1209
- return ((o = this.anchor) == null ? void 0 : o.contains(e)) ?? !1;
1004
+ return ((o = this.anchor) == null ? void 0 : o.contains(i)) ?? !1;
1210
1005
  },
1211
- tooltipContainsElement: (e) => this.contains(e),
1006
+ tooltipContainsElement: (i) => this.contains(i),
1212
1007
  focusAnchorElement: () => {
1213
- var e;
1214
- return (e = this.anchor) == null ? void 0 : e.focus();
1008
+ var i;
1009
+ return (i = this.anchor) == null ? void 0 : i.focus();
1215
1010
  },
1216
- registerEventHandler: (e, o) => {
1011
+ registerEventHandler: (i, o) => {
1217
1012
  var t;
1218
- return (t = this.mdcRoot) == null ? void 0 : t.addEventListener(e, o);
1013
+ return (t = this.mdcRoot) == null ? void 0 : t.addEventListener(i, o);
1219
1014
  },
1220
- deregisterEventHandler: (e, o) => {
1015
+ deregisterEventHandler: (i, o) => {
1221
1016
  var t;
1222
- return (t = this.mdcRoot) == null ? void 0 : t.removeEventListener(e, o);
1017
+ return (t = this.mdcRoot) == null ? void 0 : t.removeEventListener(i, o);
1223
1018
  },
1224
- registerAnchorEventHandler: (e, o) => {
1019
+ registerAnchorEventHandler: (i, o) => {
1225
1020
  var t;
1226
- return (t = this.anchor) == null ? void 0 : t.addEventListener(e, o);
1021
+ return (t = this.anchor) == null ? void 0 : t.addEventListener(i, o);
1227
1022
  },
1228
- deregisterAnchorEventHandler: (e, o) => {
1023
+ deregisterAnchorEventHandler: (i, o) => {
1229
1024
  var t;
1230
- return (t = this.anchor) == null ? void 0 : t.removeEventListener(e, o);
1025
+ return (t = this.anchor) == null ? void 0 : t.removeEventListener(i, o);
1231
1026
  },
1232
- registerDocumentEventHandler: (e, o) => document.addEventListener(e, o),
1233
- deregisterDocumentEventHandler: (e, o) => document.removeEventListener(e, o),
1234
- registerWindowEventHandler: (e, o) => window.addEventListener(e, o),
1235
- deregisterWindowEventHandler: (e, o) => window.removeEventListener(e, o),
1236
- notifyHidden: () => this.dispatchEvent(new Event(tt.HIDDEN)),
1237
- notifyShown: () => this.dispatchEvent(new Event(tt.SHOWN)),
1027
+ registerDocumentEventHandler: (i, o) => document.addEventListener(i, o),
1028
+ deregisterDocumentEventHandler: (i, o) => document.removeEventListener(i, o),
1029
+ registerWindowEventHandler: (i, o) => window.addEventListener(i, o),
1030
+ deregisterWindowEventHandler: (i, o) => window.removeEventListener(i, o),
1031
+ notifyHidden: () => this.dispatchEvent(new Event(j.HIDDEN)),
1032
+ notifyShown: () => this.dispatchEvent(new Event(j.SHOWN)),
1238
1033
  setTooltipCaretStyle: () => {
1239
1034
  },
1240
1035
  clearTooltipCaretStyles: () => {
@@ -1242,12 +1037,12 @@ let R = class extends st {
1242
1037
  getActiveElement: () => document.activeElement
1243
1038
  };
1244
1039
  }
1245
- updated(e) {
1246
- super.updated(e), this.showDelay !== void 0 && !isNaN(this.showDelay) && this.mdcFoundation.setShowDelay(this.showDelay), this.hideDelay !== void 0 && !isNaN(this.hideDelay) && this.mdcFoundation.setHideDelay(this.hideDelay);
1040
+ updated(i) {
1041
+ super.updated(i), this.showDelay !== void 0 && !isNaN(this.showDelay) && this.mdcFoundation.setShowDelay(this.showDelay), this.hideDelay !== void 0 && !isNaN(this.hideDelay) && this.mdcFoundation.setHideDelay(this.hideDelay);
1247
1042
  }
1248
1043
  async firstUpdated() {
1249
- var e, o, t, r, i;
1250
- this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (e = this.anchor) == null || e.addEventListener(
1044
+ var i, o, t, r, e;
1045
+ this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (i = this.anchor) == null || i.addEventListener(
1251
1046
  "click",
1252
1047
  () => this.mdcFoundation.handleAnchorClick()
1253
1048
  ), (o = this.anchor) == null || o.addEventListener(
@@ -1259,14 +1054,14 @@ let R = class extends st {
1259
1054
  ), this.persistent || ((r = this.anchor) == null || r.addEventListener(
1260
1055
  "mouseleave",
1261
1056
  () => this.mdcFoundation.handleAnchorMouseLeave()
1262
- ), (i = this.anchor) == null || i.addEventListener(
1057
+ ), (e = this.anchor) == null || e.addEventListener(
1263
1058
  "touchend",
1264
1059
  () => this.mdcFoundation.handleAnchorTouchend()
1265
1060
  ));
1266
1061
  }
1267
1062
  disconnectedCallback() {
1268
- var e, o, t, r, i;
1269
- super.connectedCallback(), (e = this.anchor) == null || e.removeEventListener(
1063
+ var i, o, t, r, e;
1064
+ super.connectedCallback(), (i = this.anchor) == null || i.removeEventListener(
1270
1065
  "click",
1271
1066
  () => this.mdcFoundation.handleAnchorClick()
1272
1067
  ), (o = this.anchor) == null || o.removeEventListener(
@@ -1278,13 +1073,13 @@ let R = class extends st {
1278
1073
  ), (r = this.anchor) == null || r.removeEventListener(
1279
1074
  "touchstart",
1280
1075
  () => this.mdcFoundation.handleAnchorTouchstart()
1281
- ), (i = this.anchor) == null || i.removeEventListener(
1076
+ ), (e = this.anchor) == null || e.removeEventListener(
1282
1077
  "touchend",
1283
1078
  () => this.mdcFoundation.handleAnchorTouchend()
1284
1079
  );
1285
1080
  }
1286
1081
  render() {
1287
- return Y`
1082
+ return F`
1288
1083
  <div
1289
1084
  class="mdc-tooltip ${this.rich ? "mdc-tooltip--rich" : ""}"
1290
1085
  role="tooltip"
@@ -1292,52 +1087,52 @@ let R = class extends st {
1292
1087
  data-mdc-tooltip-persistent="true"
1293
1088
  >
1294
1089
  <div class="mdc-tooltip__surface mdc-tooltip__surface-animation">
1295
- ${this.rich ? Y`<div class="mdc-tooltip__title">${this.richTitle}</div>
1090
+ ${this.rich ? F`<div class="mdc-tooltip__title">${this.richTitle}</div>
1296
1091
  <div class="mdc-tooltip__content">
1297
1092
  <slot></slot>
1298
1093
  </div>
1299
1094
  <div class="mdc-tooltip--rich-actions">
1300
1095
  <slot name="actionItems"></slot>
1301
- </div>` : Y`<slot></slot>`}
1096
+ </div>` : F`<slot></slot>`}
1302
1097
  </div>
1303
1098
  </div>
1304
1099
  `;
1305
1100
  }
1306
1101
  };
1307
- R.styles = [
1308
- nt`
1309
- ${at(vt)}
1102
+ A.styles = [
1103
+ tt`
1104
+ ${et(mt)}
1310
1105
  `
1311
1106
  ];
1312
- C([
1313
- ot(".mdc-tooltip")
1314
- ], R.prototype, "mdcRoot", 2);
1315
- C([
1316
- ot(".mdc-tooltip__surface")
1317
- ], R.prototype, "mdcSurface", 2);
1318
- C([
1319
- M({ type: Object })
1320
- ], R.prototype, "anchor", 2);
1321
- C([
1322
- M()
1323
- ], R.prototype, "richTitle", 2);
1324
- C([
1325
- M({ type: Boolean, reflect: !0 })
1326
- ], R.prototype, "rich", 2);
1327
- C([
1328
- M({ type: Boolean, reflect: !0 })
1329
- ], R.prototype, "persistent", 2);
1330
- C([
1331
- M({ type: Number })
1332
- ], R.prototype, "showDelay", 2);
1333
- C([
1334
- M({ type: Number })
1335
- ], R.prototype, "hideDelay", 2);
1336
- R = C([
1337
- lt("cv-tooltip")
1338
- ], R);
1339
- const St = R;
1107
+ R([
1108
+ X(".mdc-tooltip")
1109
+ ], A.prototype, "mdcRoot", 2);
1110
+ R([
1111
+ X(".mdc-tooltip__surface")
1112
+ ], A.prototype, "mdcSurface", 2);
1113
+ R([
1114
+ C({ type: Object })
1115
+ ], A.prototype, "anchor", 2);
1116
+ R([
1117
+ C()
1118
+ ], A.prototype, "richTitle", 2);
1119
+ R([
1120
+ C({ type: Boolean, reflect: !0 })
1121
+ ], A.prototype, "rich", 2);
1122
+ R([
1123
+ C({ type: Boolean, reflect: !0 })
1124
+ ], A.prototype, "persistent", 2);
1125
+ R([
1126
+ C({ type: Number })
1127
+ ], A.prototype, "showDelay", 2);
1128
+ R([
1129
+ C({ type: Number })
1130
+ ], A.prototype, "hideDelay", 2);
1131
+ A = R([
1132
+ rt("cv-tooltip")
1133
+ ], A);
1134
+ const Dt = A;
1340
1135
  export {
1341
- R as CovalentTooltip,
1342
- St as default
1136
+ A as CovalentTooltip,
1137
+ Dt as default
1343
1138
  };