@dialpad/dialtone-vue 2.105.1 → 2.105.4

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 (125) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +76 -0
  3. package/README.md +1 -1
  4. package/dist/component-documentation.json +1 -1
  5. package/dist/dialtone-vue.cjs +6 -6
  6. package/dist/dialtone-vue.js +5770 -13134
  7. package/dist/directives.cjs +1 -1
  8. package/dist/directives.js +9 -10
  9. package/dist/emoji-BKjUPoIz.js +139639 -0
  10. package/dist/emoji-uAsjUKCr.cjs +1 -0
  11. package/dist/emoji.cjs +1 -1
  12. package/dist/emoji.js +30 -24
  13. package/dist/style.css +1 -1
  14. package/dist/tooltip-N61DaooE.cjs +21 -0
  15. package/dist/tooltip-_ykHbRFm.js +2473 -0
  16. package/dist/types/common/mixins/keyboard_list_navigation.d.ts +1 -1
  17. package/dist/types/common/mixins/keyboard_list_navigation.d.ts.map +1 -1
  18. package/dist/types/common/sr_only_close_button.vue.d.ts +1 -1
  19. package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
  20. package/dist/types/components/badge/badge.vue.d.ts +9 -2
  21. package/dist/types/components/badge/badge.vue.d.ts.map +1 -1
  22. package/dist/types/components/button/button.vue.d.ts +1 -1
  23. package/dist/types/components/button/index.d.ts +1 -0
  24. package/dist/types/components/checkbox/checkbox.vue.d.ts +6 -1
  25. package/dist/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  26. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +3 -1
  27. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  28. package/dist/types/components/chip/chip_constants.d.ts +1 -0
  29. package/dist/types/components/chip/index.d.ts +1 -1
  30. package/dist/types/components/collapsible/collapsible_lazy_show.vue.d.ts.map +1 -1
  31. package/dist/types/components/combobox/combobox.vue.d.ts +15 -3
  32. package/dist/types/components/combobox/combobox.vue.d.ts.map +1 -1
  33. package/dist/types/components/combobox/combobox_constants.d.ts +4 -0
  34. package/dist/types/components/combobox/index.d.ts +1 -0
  35. package/dist/types/components/datepicker/{DtDatepicker.vue.d.ts → datepicker.vue.d.ts} +1 -1
  36. package/dist/types/components/datepicker/datepicker.vue.d.ts.map +1 -0
  37. package/dist/types/components/datepicker/formatUtils.d.ts +8 -0
  38. package/dist/types/components/datepicker/index.d.ts +1 -1
  39. package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
  40. package/dist/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  41. package/dist/types/components/dropdown/dropdown_constants.d.ts +4 -0
  42. package/dist/types/components/dropdown/dropdown_list.vue.d.ts +36 -0
  43. package/dist/types/components/dropdown/dropdown_list.vue.d.ts.map +1 -0
  44. package/dist/types/components/dropdown/index.d.ts +1 -0
  45. package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts +70 -0
  46. package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -0
  47. package/dist/types/components/emoji_picker/emoji_picker_constants.d.ts +27 -0
  48. package/dist/types/components/emoji_picker/emoji_picker_constants.d.ts.map +1 -0
  49. package/dist/types/components/emoji_picker/emojis/index.d.ts +50 -0
  50. package/dist/types/components/emoji_picker/emojis/index.d.ts.map +1 -0
  51. package/dist/types/components/emoji_picker/index.d.ts +3 -0
  52. package/dist/types/components/emoji_picker/index.d.ts.map +1 -0
  53. package/dist/types/components/emoji_picker/modules/emoji_description.vue.d.ts +19 -0
  54. package/dist/types/components/emoji_picker/modules/emoji_description.vue.d.ts.map +1 -0
  55. package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts +30 -0
  56. package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -0
  57. package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +320 -0
  58. package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -0
  59. package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts +55 -0
  60. package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +1 -0
  61. package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +69 -0
  62. package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -0
  63. package/dist/types/components/icon/index.d.ts +1 -0
  64. package/dist/types/components/input/input.vue.d.ts +15 -0
  65. package/dist/types/components/input/input.vue.d.ts.map +1 -1
  66. package/dist/types/components/input/input_constants.d.ts +1 -0
  67. package/dist/types/components/input_group/decorators/input.vue.d.ts +1 -1
  68. package/dist/types/components/input_group/input_group.vue.d.ts +8 -1
  69. package/dist/types/components/input_group/input_group.vue.d.ts.map +1 -1
  70. package/dist/types/components/link/link_constants.d.ts +5 -0
  71. package/dist/types/components/list_item/index.d.ts +1 -0
  72. package/dist/types/components/list_item/list_item.vue.d.ts +1 -1
  73. package/dist/types/components/modal/index.d.ts +1 -1
  74. package/dist/types/components/notice/index.d.ts +1 -1
  75. package/dist/types/components/popover/index.d.ts +1 -1
  76. package/dist/types/components/popover/popover.vue.d.ts +5 -2
  77. package/dist/types/components/popover/popover.vue.d.ts.map +1 -1
  78. package/dist/types/components/popover/popover_constants.d.ts +11 -0
  79. package/dist/types/components/radio/index.d.ts +1 -0
  80. package/dist/types/components/radio_group/radio_group.vue.d.ts +2 -10
  81. package/dist/types/components/radio_group/radio_group.vue.d.ts.map +1 -1
  82. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -1
  83. package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts +5 -0
  84. package/dist/types/components/stack/index.d.ts +1 -0
  85. package/dist/types/components/stack/stack_constants.d.ts +6 -0
  86. package/dist/types/components/toast/toast.vue.d.ts +4 -1
  87. package/dist/types/components/toast/toast.vue.d.ts.map +1 -1
  88. package/dist/types/components/toggle/index.d.ts +1 -0
  89. package/dist/types/components/toggle/toggle_constants.d.ts +1 -0
  90. package/dist/types/components/tooltip/index.d.ts +1 -1
  91. package/dist/types/components/tooltip/tooltip.vue.d.ts +1 -1
  92. package/dist/types/components/tooltip/tooltip_constants.d.ts +8 -0
  93. package/dist/types/emoji.d.ts +1 -0
  94. package/dist/types/index.d.ts +1 -1
  95. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  96. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +2 -2
  97. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.d.ts +25 -0
  98. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.d.ts.map +1 -0
  99. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.d.ts +0 -18
  100. package/dist/types/recipes/comboboxes/combobox_multi_select/index.d.ts +1 -1
  101. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +9 -0
  102. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  103. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +15 -2
  104. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  105. package/dist/types/recipes/conversation_view/feed_item_row/index.d.ts +1 -0
  106. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +1 -1
  107. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +1 -1
  108. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +3 -3
  109. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  110. package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
  111. package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts +2 -2
  112. package/package.json +55 -46
  113. package/dist/_plugin-vue2_normalizer-1P4G3Z0k.cjs +0 -1
  114. package/dist/_plugin-vue2_normalizer-u6G_3nkj.js +0 -32
  115. package/dist/emoji--HwFbqwW.js +0 -48702
  116. package/dist/emoji-c9hpZE0O.cjs +0 -1
  117. package/dist/tooltip_constants-IjzmwQZI.js +0 -2541
  118. package/dist/tooltip_constants-eQzi1S-l.cjs +0 -25
  119. package/dist/types/components/datepicker/DtDatepicker.vue.d.ts.map +0 -1
  120. package/dist/types/components/list_section/index.d.ts +0 -2
  121. package/dist/types/components/list_section/index.d.ts.map +0 -1
  122. package/dist/types/components/list_section/list_section.vue.d.ts +0 -70
  123. package/dist/types/components/list_section/list_section.vue.d.ts.map +0 -1
  124. package/dist/types/components/tooltip/tooltip_variants.vue.d.ts +0 -7
  125. package/dist/types/components/tooltip/tooltip_variants.vue.d.ts.map +0 -1
@@ -1,2541 +0,0 @@
1
- import Un from "vue";
2
- import { n as nn } from "./_plugin-vue2_normalizer-u6G_3nkj.js";
3
- const ge = {
4
- ERROR: "error",
5
- WARNING: "warning",
6
- SUCCESS: "success"
7
- }, yo = {
8
- LARGE: "lg",
9
- EXTRA_LARGE: "xl"
10
- }, bo = {
11
- xs: "",
12
- sm: "",
13
- md: "",
14
- lg: "d-description--lg",
15
- xl: "d-description--xl"
16
- }, wo = {
17
- xs: "d-label--xs",
18
- sm: "d-label--sm",
19
- md: "",
20
- lg: "d-label--lg",
21
- xl: "d-label--xl"
22
- }, Eo = {
23
- esc: "Esc",
24
- escape: "Escape",
25
- tab: "Tab",
26
- enter: "Enter",
27
- space: "Space",
28
- spacebar: "Spacebar",
29
- up: "Up",
30
- arrowup: "ArrowUp",
31
- left: "Left",
32
- arrowleft: "ArrowLeft",
33
- right: "Right",
34
- arrowright: "ArrowRight",
35
- down: "Down",
36
- arrowdown: "ArrowDown",
37
- home: "Home",
38
- end: "End"
39
- }, Fn = ge.ERROR, Hn = "dt";
40
- let Wn = 0, Nt;
41
- const qn = typeof setImmediate == "function" ? setImmediate : setTimeout;
42
- function rn(e = Hn) {
43
- return `${e}${Wn++}`;
44
- }
45
- function zn(e, t) {
46
- if (t) {
47
- const n = Yn(t);
48
- return e[Math.abs(n) % e.length];
49
- } else
50
- return e[on(e.length)];
51
- }
52
- function Yn(e) {
53
- let t;
54
- for (let n = 0; n < e.length; n++)
55
- t = Math.imul(31, t) + e.charCodeAt(n) | 0;
56
- return t;
57
- }
58
- function on(e) {
59
- return Math.floor(Math.random() * e);
60
- }
61
- function Xn(e) {
62
- return e ? e.map((t) => typeof t == "string" ? {
63
- message: t,
64
- type: Fn
65
- } : t) : [];
66
- }
67
- function Gn(e) {
68
- const t = an(e);
69
- return !e || !t ? [] : e.filter((n) => !!n.message && n.type === t);
70
- }
71
- function an(e) {
72
- return e ? st(e, ge.ERROR) ? ge.ERROR : st(e, ge.WARNING) ? ge.WARNING : st(e, ge.SUCCESS) ? ge.SUCCESS : null : null;
73
- }
74
- function st(e, t) {
75
- return !e || !t ? !1 : e.some((n) => (n == null ? void 0 : n.type) === t);
76
- }
77
- const Kn = {
78
- name: "html-fragment",
79
- functional: !0,
80
- props: ["html"],
81
- render(e, t) {
82
- return new Un({
83
- // eslint-disable-next-line vue/multi-word-component-names
84
- name: "Inner",
85
- beforeCreate() {
86
- this.$createElement = e;
87
- },
88
- template: `<div>${t.props.html}</div>`
89
- }).$mount()._vnode.children;
90
- }
91
- }, Zn = () => new Promise((e) => {
92
- qn(e);
93
- }), Jn = (e) => e == null ? void 0 : e.toLowerCase().split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join("");
94
- function Qn(e, t = 300) {
95
- clearTimeout(Nt), Nt = setTimeout(e, t);
96
- }
97
- function er(e) {
98
- const t = e.getBoundingClientRect(), n = {
99
- top: t.top < 0,
100
- left: t.left < 0,
101
- bottom: t.bottom > (window.innerHeight || document.documentElement.clientHeight),
102
- right: t.right > (window.innerWidth || document.documentElement.clientWidth)
103
- };
104
- return n.any = Object.values(n).some((r) => r), n.all = Object.values(n).every((r) => r), n;
105
- }
106
- const tr = /(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/, nr = new RegExp(
107
- "(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"
108
- ), rr = new RegExp(
109
- "(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"
110
- ), sn = new RegExp(
111
- "(?:" + [
112
- [
113
- tr.source,
114
- nr.source
115
- ].join("+"),
116
- rr.source
117
- ].join("|") + ")"
118
- ), ir = /(?:(?:[;/][^#?<>\s]*)?)/, un = /(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/, cn = new RegExp(
119
- "\\b" + [
120
- sn.source,
121
- ir.source,
122
- un.source,
123
- "(?!\\w)"
124
- ].join("+")
125
- ), pn = /\b[a-z\d.-]+:\/\/[^<>\s]+/, ln = new RegExp(
126
- "(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@" + [
127
- sn.source,
128
- un.source
129
- ].join("+") + "(?!\\w)"
130
- );
131
- function fn(e = 7, t = 15) {
132
- let n = !0;
133
- try {
134
- RegExp("(?<=\\W)");
135
- } catch {
136
- n = !1;
137
- }
138
- return new RegExp(
139
- `${n ? "(?:^|(?<=\\W))" : ""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`
140
- );
141
- }
142
- const dn = fn(), or = new RegExp(
143
- [
144
- cn.source,
145
- pn.source,
146
- ln.source,
147
- dn.source
148
- ].join("|"),
149
- "gi"
150
- );
151
- function ar(e) {
152
- var t;
153
- return !e || !["string", "number"].includes(typeof e) ? !1 : (e = e.toString(), ((t = dn.exec(e)) == null ? void 0 : t[0]) === e);
154
- }
155
- function sr(e) {
156
- var t, n;
157
- return !e || typeof e != "string" ? !1 : ((t = cn.exec(e)) == null ? void 0 : t[0]) === e || ((n = pn.exec(e)) == null ? void 0 : n[0]) === e;
158
- }
159
- function ur(e) {
160
- var t;
161
- return !e || typeof e != "string" ? !1 : ((t = ln.exec(e)) == null ? void 0 : t[0]) === e;
162
- }
163
- function cr(e) {
164
- return e.filter((t) => !!t).join(" ");
165
- }
166
- function pr(e, t = "en-US") {
167
- return e.replace(new RegExp("^\\p{CWU}", "u"), (n) => n.toLocaleUpperCase(t));
168
- }
169
- const Oo = {
170
- getUniqueString: rn,
171
- getRandomElement: zn,
172
- getRandomInt: on,
173
- formatMessages: Xn,
174
- filterFormattedMessages: Gn,
175
- hasFormattedMessageOfType: st,
176
- getValidationState: an,
177
- htmlFragment: Kn,
178
- flushPromises: Zn,
179
- kebabCaseToPascalCase: Jn,
180
- debounce: Qn,
181
- isOutOfViewPort: er,
182
- getPhoneNumberRegex: fn,
183
- linkRegex: or,
184
- isEmailAddress: ur,
185
- isPhoneNumber: ar,
186
- isURL: sr,
187
- safeConcatStrings: cr,
188
- capitalizeFirstLetter: pr
189
- }, lr = {
190
- name: "DtLazyShow",
191
- /******************
192
- * PROPS *
193
- ******************/
194
- props: {
195
- /**
196
- * Whether the child slot is shown.
197
- * @values true, false
198
- */
199
- show: {
200
- type: Boolean,
201
- default: !1
202
- },
203
- /**
204
- * A valid Vue enter/leave CSS transition name.
205
- */
206
- transition: {
207
- type: String,
208
- default: null
209
- },
210
- /**
211
- * Enable/Disable transition animation
212
- * @values true, false
213
- */
214
- appear: {
215
- type: Boolean,
216
- default: !1
217
- }
218
- },
219
- /******************
220
- * DATA *
221
- ******************/
222
- data() {
223
- return {
224
- initialized: !!this.show
225
- };
226
- },
227
- computed: {
228
- /**
229
- * Set the css property to false when running tests only.
230
- * Refer to: https://vuejs.org/guide/built-ins/transition.html#javascript-hooks for details about
231
- * transition `css` property
232
- * @returns {boolean}
233
- */
234
- isCSSEnabled() {
235
- return process.env.NODE_ENV !== "test";
236
- }
237
- },
238
- /******************
239
- * WATCH *
240
- ******************/
241
- watch: {
242
- show: function(e) {
243
- !e || this.initialized || (this.initialized = !0);
244
- }
245
- }
246
- };
247
- var fr = function() {
248
- var t = this, n = t._self._c;
249
- return n("transition", t._g({ attrs: { name: t.transition, appear: t.appear, css: t.isCSSEnabled } }, t.$listeners), [n("div", t._g({ directives: [{ name: "show", rawName: "v-show", value: t.show, expression: "show" }] }, t.$listeners), [t.initialized ? t._t("default") : t._e()], 2)]);
250
- }, dr = [], vr = /* @__PURE__ */ nn(
251
- lr,
252
- fr,
253
- dr,
254
- !1,
255
- null,
256
- null,
257
- null,
258
- null
259
- );
260
- const hr = vr.exports;
261
- var $ = "top", Y = "bottom", X = "right", B = "left", lt = "auto", qe = [$, Y, X, B], Re = "start", Ue = "end", mr = "clippingParents", vn = "viewport", ke = "popper", gr = "reference", _t = /* @__PURE__ */ qe.reduce(function(e, t) {
262
- return e.concat([t + "-" + Re, t + "-" + Ue]);
263
- }, []), hn = /* @__PURE__ */ [].concat(qe, [lt]).reduce(function(e, t) {
264
- return e.concat([t, t + "-" + Re, t + "-" + Ue]);
265
- }, []), yr = "beforeRead", br = "read", wr = "afterRead", Er = "beforeMain", Or = "main", xr = "afterMain", Ar = "beforeWrite", Tr = "write", Sr = "afterWrite", bt = [yr, br, wr, Er, Or, xr, Ar, Tr, Sr];
266
- function ne(e) {
267
- return e ? (e.nodeName || "").toLowerCase() : null;
268
- }
269
- function q(e) {
270
- if (e == null)
271
- return window;
272
- if (e.toString() !== "[object Window]") {
273
- var t = e.ownerDocument;
274
- return t && t.defaultView || window;
275
- }
276
- return e;
277
- }
278
- function we(e) {
279
- var t = q(e).Element;
280
- return e instanceof t || e instanceof Element;
281
- }
282
- function W(e) {
283
- var t = q(e).HTMLElement;
284
- return e instanceof t || e instanceof HTMLElement;
285
- }
286
- function Tt(e) {
287
- if (typeof ShadowRoot > "u")
288
- return !1;
289
- var t = q(e).ShadowRoot;
290
- return e instanceof t || e instanceof ShadowRoot;
291
- }
292
- function Dr(e) {
293
- var t = e.state;
294
- Object.keys(t.elements).forEach(function(n) {
295
- var r = t.styles[n] || {}, o = t.attributes[n] || {}, s = t.elements[n];
296
- !W(s) || !ne(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(c) {
297
- var p = o[c];
298
- p === !1 ? s.removeAttribute(c) : s.setAttribute(c, p === !0 ? "" : p);
299
- }));
300
- });
301
- }
302
- function Rr(e) {
303
- var t = e.state, n = {
304
- popper: {
305
- position: t.options.strategy,
306
- left: "0",
307
- top: "0",
308
- margin: "0"
309
- },
310
- arrow: {
311
- position: "absolute"
312
- },
313
- reference: {}
314
- };
315
- return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
316
- Object.keys(t.elements).forEach(function(r) {
317
- var o = t.elements[r], s = t.attributes[r] || {}, c = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), p = c.reduce(function(u, f) {
318
- return u[f] = "", u;
319
- }, {});
320
- !W(o) || !ne(o) || (Object.assign(o.style, p), Object.keys(s).forEach(function(u) {
321
- o.removeAttribute(u);
322
- }));
323
- });
324
- };
325
- }
326
- const mn = {
327
- name: "applyStyles",
328
- enabled: !0,
329
- phase: "write",
330
- fn: Dr,
331
- effect: Rr,
332
- requires: ["computeStyles"]
333
- };
334
- function K(e) {
335
- return e.split("-")[0];
336
- }
337
- var be = Math.max, ct = Math.min, Ce = Math.round;
338
- function wt() {
339
- var e = navigator.userAgentData;
340
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
341
- return t.brand + "/" + t.version;
342
- }).join(" ") : navigator.userAgent;
343
- }
344
- function gn() {
345
- return !/^((?!chrome|android).)*safari/i.test(wt());
346
- }
347
- function Le(e, t, n) {
348
- t === void 0 && (t = !1), n === void 0 && (n = !1);
349
- var r = e.getBoundingClientRect(), o = 1, s = 1;
350
- t && W(e) && (o = e.offsetWidth > 0 && Ce(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Ce(r.height) / e.offsetHeight || 1);
351
- var c = we(e) ? q(e) : window, p = c.visualViewport, u = !gn() && n, f = (r.left + (u && p ? p.offsetLeft : 0)) / o, l = (r.top + (u && p ? p.offsetTop : 0)) / s, g = r.width / o, x = r.height / s;
352
- return {
353
- width: g,
354
- height: x,
355
- top: l,
356
- right: f + g,
357
- bottom: l + x,
358
- left: f,
359
- x: f,
360
- y: l
361
- };
362
- }
363
- function St(e) {
364
- var t = Le(e), n = e.offsetWidth, r = e.offsetHeight;
365
- return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
366
- x: e.offsetLeft,
367
- y: e.offsetTop,
368
- width: n,
369
- height: r
370
- };
371
- }
372
- function yn(e, t) {
373
- var n = t.getRootNode && t.getRootNode();
374
- if (e.contains(t))
375
- return !0;
376
- if (n && Tt(n)) {
377
- var r = t;
378
- do {
379
- if (r && e.isSameNode(r))
380
- return !0;
381
- r = r.parentNode || r.host;
382
- } while (r);
383
- }
384
- return !1;
385
- }
386
- function Z(e) {
387
- return q(e).getComputedStyle(e);
388
- }
389
- function Cr(e) {
390
- return ["table", "td", "th"].indexOf(ne(e)) >= 0;
391
- }
392
- function le(e) {
393
- return ((we(e) ? e.ownerDocument : (
394
- // $FlowFixMe[prop-missing]
395
- e.document
396
- )) || window.document).documentElement;
397
- }
398
- function ft(e) {
399
- return ne(e) === "html" ? e : (
400
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
401
- // $FlowFixMe[incompatible-return]
402
- // $FlowFixMe[prop-missing]
403
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
404
- e.parentNode || // DOM Element detected
405
- (Tt(e) ? e.host : null) || // ShadowRoot detected
406
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
407
- le(e)
408
- );
409
- }
410
- function Mt(e) {
411
- return !W(e) || // https://github.com/popperjs/popper-core/issues/837
412
- Z(e).position === "fixed" ? null : e.offsetParent;
413
- }
414
- function Lr(e) {
415
- var t = /firefox/i.test(wt()), n = /Trident/i.test(wt());
416
- if (n && W(e)) {
417
- var r = Z(e);
418
- if (r.position === "fixed")
419
- return null;
420
- }
421
- var o = ft(e);
422
- for (Tt(o) && (o = o.host); W(o) && ["html", "body"].indexOf(ne(o)) < 0; ) {
423
- var s = Z(o);
424
- if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
425
- return o;
426
- o = o.parentNode;
427
- }
428
- return null;
429
- }
430
- function ze(e) {
431
- for (var t = q(e), n = Mt(e); n && Cr(n) && Z(n).position === "static"; )
432
- n = Mt(n);
433
- return n && (ne(n) === "html" || ne(n) === "body" && Z(n).position === "static") ? t : n || Lr(e) || t;
434
- }
435
- function Dt(e) {
436
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
437
- }
438
- function Ve(e, t, n) {
439
- return be(e, ct(t, n));
440
- }
441
- function Pr(e, t, n) {
442
- var r = Ve(e, t, n);
443
- return r > n ? n : r;
444
- }
445
- function bn() {
446
- return {
447
- top: 0,
448
- right: 0,
449
- bottom: 0,
450
- left: 0
451
- };
452
- }
453
- function wn(e) {
454
- return Object.assign({}, bn(), e);
455
- }
456
- function En(e, t) {
457
- return t.reduce(function(n, r) {
458
- return n[r] = e, n;
459
- }, {});
460
- }
461
- var Ir = function(t, n) {
462
- return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
463
- placement: n.placement
464
- })) : t, wn(typeof t != "number" ? t : En(t, qe));
465
- };
466
- function Nr(e) {
467
- var t, n = e.state, r = e.name, o = e.options, s = n.elements.arrow, c = n.modifiersData.popperOffsets, p = K(n.placement), u = Dt(p), f = [B, X].indexOf(p) >= 0, l = f ? "height" : "width";
468
- if (!(!s || !c)) {
469
- var g = Ir(o.padding, n), x = St(s), m = u === "y" ? $ : B, w = u === "y" ? Y : X, y = n.rects.reference[l] + n.rects.reference[u] - c[u] - n.rects.popper[l], b = c[u] - n.rects.reference[u], T = ze(s), R = T ? u === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, L = y / 2 - b / 2, i = g[m], E = R - x[l] - g[w], d = R / 2 - x[l] / 2 + L, D = Ve(i, d, E), N = u;
470
- n.modifiersData[r] = (t = {}, t[N] = D, t.centerOffset = D - d, t);
471
- }
472
- }
473
- function _r(e) {
474
- var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
475
- if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
476
- if (process.env.NODE_ENV !== "production" && (W(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !yn(t.elements.popper, o)) {
477
- process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
478
- return;
479
- }
480
- t.elements.arrow = o;
481
- }
482
- }
483
- const Mr = {
484
- name: "arrow",
485
- enabled: !0,
486
- phase: "main",
487
- fn: Nr,
488
- effect: _r,
489
- requires: ["popperOffsets"],
490
- requiresIfExists: ["preventOverflow"]
491
- };
492
- function Pe(e) {
493
- return e.split("-")[1];
494
- }
495
- var jr = {
496
- top: "auto",
497
- right: "auto",
498
- bottom: "auto",
499
- left: "auto"
500
- };
501
- function kr(e, t) {
502
- var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
503
- return {
504
- x: Ce(n * o) / o || 0,
505
- y: Ce(r * o) / o || 0
506
- };
507
- }
508
- function jt(e) {
509
- var t, n = e.popper, r = e.popperRect, o = e.placement, s = e.variation, c = e.offsets, p = e.position, u = e.gpuAcceleration, f = e.adaptive, l = e.roundOffsets, g = e.isFixed, x = c.x, m = x === void 0 ? 0 : x, w = c.y, y = w === void 0 ? 0 : w, b = typeof l == "function" ? l({
510
- x: m,
511
- y
512
- }) : {
513
- x: m,
514
- y
515
- };
516
- m = b.x, y = b.y;
517
- var T = c.hasOwnProperty("x"), R = c.hasOwnProperty("y"), L = B, i = $, E = window;
518
- if (f) {
519
- var d = ze(n), D = "clientHeight", N = "clientWidth";
520
- if (d === q(n) && (d = le(n), Z(d).position !== "static" && p === "absolute" && (D = "scrollHeight", N = "scrollWidth")), d = d, o === $ || (o === B || o === X) && s === Ue) {
521
- i = Y;
522
- var _ = g && d === E && E.visualViewport ? E.visualViewport.height : (
523
- // $FlowFixMe[prop-missing]
524
- d[D]
525
- );
526
- y -= _ - r.height, y *= u ? 1 : -1;
527
- }
528
- if (o === B || (o === $ || o === Y) && s === Ue) {
529
- L = X;
530
- var P = g && d === E && E.visualViewport ? E.visualViewport.width : (
531
- // $FlowFixMe[prop-missing]
532
- d[N]
533
- );
534
- m -= P - r.width, m *= u ? 1 : -1;
535
- }
536
- }
537
- var A = Object.assign({
538
- position: p
539
- }, f && jr), C = l === !0 ? kr({
540
- x: m,
541
- y
542
- }, q(n)) : {
543
- x: m,
544
- y
545
- };
546
- if (m = C.x, y = C.y, u) {
547
- var I;
548
- return Object.assign({}, A, (I = {}, I[i] = R ? "0" : "", I[L] = T ? "0" : "", I.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", I));
549
- }
550
- return Object.assign({}, A, (t = {}, t[i] = R ? y + "px" : "", t[L] = T ? m + "px" : "", t.transform = "", t));
551
- }
552
- function Vr(e) {
553
- var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, s = n.adaptive, c = s === void 0 ? !0 : s, p = n.roundOffsets, u = p === void 0 ? !0 : p;
554
- if (process.env.NODE_ENV !== "production") {
555
- var f = Z(t.elements.popper).transitionProperty || "";
556
- c && ["transform", "top", "right", "bottom", "left"].some(function(g) {
557
- return f.indexOf(g) >= 0;
558
- }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
559
-
560
- `, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
561
-
562
- `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
563
- }
564
- var l = {
565
- placement: K(t.placement),
566
- variation: Pe(t.placement),
567
- popper: t.elements.popper,
568
- popperRect: t.rects.popper,
569
- gpuAcceleration: o,
570
- isFixed: t.options.strategy === "fixed"
571
- };
572
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, jt(Object.assign({}, l, {
573
- offsets: t.modifiersData.popperOffsets,
574
- position: t.options.strategy,
575
- adaptive: c,
576
- roundOffsets: u
577
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, jt(Object.assign({}, l, {
578
- offsets: t.modifiersData.arrow,
579
- position: "absolute",
580
- adaptive: !1,
581
- roundOffsets: u
582
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
583
- "data-popper-placement": t.placement
584
- });
585
- }
586
- const $r = {
587
- name: "computeStyles",
588
- enabled: !0,
589
- phase: "beforeWrite",
590
- fn: Vr,
591
- data: {}
592
- };
593
- var ot = {
594
- passive: !0
595
- };
596
- function Br(e) {
597
- var t = e.state, n = e.instance, r = e.options, o = r.scroll, s = o === void 0 ? !0 : o, c = r.resize, p = c === void 0 ? !0 : c, u = q(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
598
- return s && f.forEach(function(l) {
599
- l.addEventListener("scroll", n.update, ot);
600
- }), p && u.addEventListener("resize", n.update, ot), function() {
601
- s && f.forEach(function(l) {
602
- l.removeEventListener("scroll", n.update, ot);
603
- }), p && u.removeEventListener("resize", n.update, ot);
604
- };
605
- }
606
- const Ur = {
607
- name: "eventListeners",
608
- enabled: !0,
609
- phase: "write",
610
- fn: function() {
611
- },
612
- effect: Br,
613
- data: {}
614
- };
615
- var Fr = {
616
- left: "right",
617
- right: "left",
618
- bottom: "top",
619
- top: "bottom"
620
- };
621
- function ut(e) {
622
- return e.replace(/left|right|bottom|top/g, function(t) {
623
- return Fr[t];
624
- });
625
- }
626
- var Hr = {
627
- start: "end",
628
- end: "start"
629
- };
630
- function kt(e) {
631
- return e.replace(/start|end/g, function(t) {
632
- return Hr[t];
633
- });
634
- }
635
- function Rt(e) {
636
- var t = q(e), n = t.pageXOffset, r = t.pageYOffset;
637
- return {
638
- scrollLeft: n,
639
- scrollTop: r
640
- };
641
- }
642
- function Ct(e) {
643
- return Le(le(e)).left + Rt(e).scrollLeft;
644
- }
645
- function Wr(e, t) {
646
- var n = q(e), r = le(e), o = n.visualViewport, s = r.clientWidth, c = r.clientHeight, p = 0, u = 0;
647
- if (o) {
648
- s = o.width, c = o.height;
649
- var f = gn();
650
- (f || !f && t === "fixed") && (p = o.offsetLeft, u = o.offsetTop);
651
- }
652
- return {
653
- width: s,
654
- height: c,
655
- x: p + Ct(e),
656
- y: u
657
- };
658
- }
659
- function qr(e) {
660
- var t, n = le(e), r = Rt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, s = be(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = be(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), p = -r.scrollLeft + Ct(e), u = -r.scrollTop;
661
- return Z(o || n).direction === "rtl" && (p += be(n.clientWidth, o ? o.clientWidth : 0) - s), {
662
- width: s,
663
- height: c,
664
- x: p,
665
- y: u
666
- };
667
- }
668
- function Lt(e) {
669
- var t = Z(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
670
- return /auto|scroll|overlay|hidden/.test(n + o + r);
671
- }
672
- function On(e) {
673
- return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : W(e) && Lt(e) ? e : On(ft(e));
674
- }
675
- function $e(e, t) {
676
- var n;
677
- t === void 0 && (t = []);
678
- var r = On(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), s = q(r), c = o ? [s].concat(s.visualViewport || [], Lt(r) ? r : []) : r, p = t.concat(c);
679
- return o ? p : (
680
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
681
- p.concat($e(ft(c)))
682
- );
683
- }
684
- function Et(e) {
685
- return Object.assign({}, e, {
686
- left: e.x,
687
- top: e.y,
688
- right: e.x + e.width,
689
- bottom: e.y + e.height
690
- });
691
- }
692
- function zr(e, t) {
693
- var n = Le(e, !1, t === "fixed");
694
- return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
695
- }
696
- function Vt(e, t, n) {
697
- return t === vn ? Et(Wr(e, n)) : we(t) ? zr(t, n) : Et(qr(le(e)));
698
- }
699
- function Yr(e) {
700
- var t = $e(ft(e)), n = ["absolute", "fixed"].indexOf(Z(e).position) >= 0, r = n && W(e) ? ze(e) : e;
701
- return we(r) ? t.filter(function(o) {
702
- return we(o) && yn(o, r) && ne(o) !== "body";
703
- }) : [];
704
- }
705
- function Xr(e, t, n, r) {
706
- var o = t === "clippingParents" ? Yr(e) : [].concat(t), s = [].concat(o, [n]), c = s[0], p = s.reduce(function(u, f) {
707
- var l = Vt(e, f, r);
708
- return u.top = be(l.top, u.top), u.right = ct(l.right, u.right), u.bottom = ct(l.bottom, u.bottom), u.left = be(l.left, u.left), u;
709
- }, Vt(e, c, r));
710
- return p.width = p.right - p.left, p.height = p.bottom - p.top, p.x = p.left, p.y = p.top, p;
711
- }
712
- function xn(e) {
713
- var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, s = r ? Pe(r) : null, c = t.x + t.width / 2 - n.width / 2, p = t.y + t.height / 2 - n.height / 2, u;
714
- switch (o) {
715
- case $:
716
- u = {
717
- x: c,
718
- y: t.y - n.height
719
- };
720
- break;
721
- case Y:
722
- u = {
723
- x: c,
724
- y: t.y + t.height
725
- };
726
- break;
727
- case X:
728
- u = {
729
- x: t.x + t.width,
730
- y: p
731
- };
732
- break;
733
- case B:
734
- u = {
735
- x: t.x - n.width,
736
- y: p
737
- };
738
- break;
739
- default:
740
- u = {
741
- x: t.x,
742
- y: t.y
743
- };
744
- }
745
- var f = o ? Dt(o) : null;
746
- if (f != null) {
747
- var l = f === "y" ? "height" : "width";
748
- switch (s) {
749
- case Re:
750
- u[f] = u[f] - (t[l] / 2 - n[l] / 2);
751
- break;
752
- case Ue:
753
- u[f] = u[f] + (t[l] / 2 - n[l] / 2);
754
- break;
755
- }
756
- }
757
- return u;
758
- }
759
- function Fe(e, t) {
760
- t === void 0 && (t = {});
761
- var n = t, r = n.placement, o = r === void 0 ? e.placement : r, s = n.strategy, c = s === void 0 ? e.strategy : s, p = n.boundary, u = p === void 0 ? mr : p, f = n.rootBoundary, l = f === void 0 ? vn : f, g = n.elementContext, x = g === void 0 ? ke : g, m = n.altBoundary, w = m === void 0 ? !1 : m, y = n.padding, b = y === void 0 ? 0 : y, T = wn(typeof b != "number" ? b : En(b, qe)), R = x === ke ? gr : ke, L = e.rects.popper, i = e.elements[w ? R : x], E = Xr(we(i) ? i : i.contextElement || le(e.elements.popper), u, l, c), d = Le(e.elements.reference), D = xn({
762
- reference: d,
763
- element: L,
764
- strategy: "absolute",
765
- placement: o
766
- }), N = Et(Object.assign({}, L, D)), _ = x === ke ? N : d, P = {
767
- top: E.top - _.top + T.top,
768
- bottom: _.bottom - E.bottom + T.bottom,
769
- left: E.left - _.left + T.left,
770
- right: _.right - E.right + T.right
771
- }, A = e.modifiersData.offset;
772
- if (x === ke && A) {
773
- var C = A[o];
774
- Object.keys(P).forEach(function(I) {
775
- var U = [X, Y].indexOf(I) >= 0 ? 1 : -1, F = [$, Y].indexOf(I) >= 0 ? "y" : "x";
776
- P[I] += C[F] * U;
777
- });
778
- }
779
- return P;
780
- }
781
- function Gr(e, t) {
782
- t === void 0 && (t = {});
783
- var n = t, r = n.placement, o = n.boundary, s = n.rootBoundary, c = n.padding, p = n.flipVariations, u = n.allowedAutoPlacements, f = u === void 0 ? hn : u, l = Pe(r), g = l ? p ? _t : _t.filter(function(w) {
784
- return Pe(w) === l;
785
- }) : qe, x = g.filter(function(w) {
786
- return f.indexOf(w) >= 0;
787
- });
788
- x.length === 0 && (x = g, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
789
- var m = x.reduce(function(w, y) {
790
- return w[y] = Fe(e, {
791
- placement: y,
792
- boundary: o,
793
- rootBoundary: s,
794
- padding: c
795
- })[K(y)], w;
796
- }, {});
797
- return Object.keys(m).sort(function(w, y) {
798
- return m[w] - m[y];
799
- });
800
- }
801
- function Kr(e) {
802
- if (K(e) === lt)
803
- return [];
804
- var t = ut(e);
805
- return [kt(e), t, kt(t)];
806
- }
807
- function Zr(e) {
808
- var t = e.state, n = e.options, r = e.name;
809
- if (!t.modifiersData[r]._skip) {
810
- for (var o = n.mainAxis, s = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !0 : c, u = n.fallbackPlacements, f = n.padding, l = n.boundary, g = n.rootBoundary, x = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, y = n.allowedAutoPlacements, b = t.options.placement, T = K(b), R = T === b, L = u || (R || !w ? [ut(b)] : Kr(b)), i = [b].concat(L).reduce(function(re, G) {
811
- return re.concat(K(G) === lt ? Gr(t, {
812
- placement: G,
813
- boundary: l,
814
- rootBoundary: g,
815
- padding: f,
816
- flipVariations: w,
817
- allowedAutoPlacements: y
818
- }) : G);
819
- }, []), E = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), N = !0, _ = i[0], P = 0; P < i.length; P++) {
820
- var A = i[P], C = K(A), I = Pe(A) === Re, U = [$, Y].indexOf(C) >= 0, F = U ? "width" : "height", j = Fe(t, {
821
- placement: A,
822
- boundary: l,
823
- rootBoundary: g,
824
- altBoundary: x,
825
- padding: f
826
- }), k = U ? I ? X : B : I ? Y : $;
827
- E[F] > d[F] && (k = ut(k));
828
- var M = ut(k), J = [];
829
- if (s && J.push(j[C] <= 0), p && J.push(j[k] <= 0, j[M] <= 0), J.every(function(re) {
830
- return re;
831
- })) {
832
- _ = A, N = !1;
833
- break;
834
- }
835
- D.set(A, J);
836
- }
837
- if (N)
838
- for (var Q = w ? 3 : 1, fe = function(G) {
839
- var ie = i.find(function(Ee) {
840
- var oe = D.get(Ee);
841
- if (oe)
842
- return oe.slice(0, G).every(function(Oe) {
843
- return Oe;
844
- });
845
- });
846
- if (ie)
847
- return _ = ie, "break";
848
- }, ee = Q; ee > 0; ee--) {
849
- var de = fe(ee);
850
- if (de === "break")
851
- break;
852
- }
853
- t.placement !== _ && (t.modifiersData[r]._skip = !0, t.placement = _, t.reset = !0);
854
- }
855
- }
856
- const Jr = {
857
- name: "flip",
858
- enabled: !0,
859
- phase: "main",
860
- fn: Zr,
861
- requiresIfExists: ["offset"],
862
- data: {
863
- _skip: !1
864
- }
865
- };
866
- function $t(e, t, n) {
867
- return n === void 0 && (n = {
868
- x: 0,
869
- y: 0
870
- }), {
871
- top: e.top - t.height - n.y,
872
- right: e.right - t.width + n.x,
873
- bottom: e.bottom - t.height + n.y,
874
- left: e.left - t.width - n.x
875
- };
876
- }
877
- function Bt(e) {
878
- return [$, X, Y, B].some(function(t) {
879
- return e[t] >= 0;
880
- });
881
- }
882
- function Qr(e) {
883
- var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, s = t.modifiersData.preventOverflow, c = Fe(t, {
884
- elementContext: "reference"
885
- }), p = Fe(t, {
886
- altBoundary: !0
887
- }), u = $t(c, r), f = $t(p, o, s), l = Bt(u), g = Bt(f);
888
- t.modifiersData[n] = {
889
- referenceClippingOffsets: u,
890
- popperEscapeOffsets: f,
891
- isReferenceHidden: l,
892
- hasPopperEscaped: g
893
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
894
- "data-popper-reference-hidden": l,
895
- "data-popper-escaped": g
896
- });
897
- }
898
- const ei = {
899
- name: "hide",
900
- enabled: !0,
901
- phase: "main",
902
- requiresIfExists: ["preventOverflow"],
903
- fn: Qr
904
- };
905
- function ti(e, t, n) {
906
- var r = K(e), o = [B, $].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, {
907
- placement: e
908
- })) : n, c = s[0], p = s[1];
909
- return c = c || 0, p = (p || 0) * o, [B, X].indexOf(r) >= 0 ? {
910
- x: p,
911
- y: c
912
- } : {
913
- x: c,
914
- y: p
915
- };
916
- }
917
- function ni(e) {
918
- var t = e.state, n = e.options, r = e.name, o = n.offset, s = o === void 0 ? [0, 0] : o, c = hn.reduce(function(l, g) {
919
- return l[g] = ti(g, t.rects, s), l;
920
- }, {}), p = c[t.placement], u = p.x, f = p.y;
921
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = c;
922
- }
923
- const ri = {
924
- name: "offset",
925
- enabled: !0,
926
- phase: "main",
927
- requires: ["popperOffsets"],
928
- fn: ni
929
- };
930
- function ii(e) {
931
- var t = e.state, n = e.name;
932
- t.modifiersData[n] = xn({
933
- reference: t.rects.reference,
934
- element: t.rects.popper,
935
- strategy: "absolute",
936
- placement: t.placement
937
- });
938
- }
939
- const oi = {
940
- name: "popperOffsets",
941
- enabled: !0,
942
- phase: "read",
943
- fn: ii,
944
- data: {}
945
- };
946
- function ai(e) {
947
- return e === "x" ? "y" : "x";
948
- }
949
- function si(e) {
950
- var t = e.state, n = e.options, r = e.name, o = n.mainAxis, s = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !1 : c, u = n.boundary, f = n.rootBoundary, l = n.altBoundary, g = n.padding, x = n.tether, m = x === void 0 ? !0 : x, w = n.tetherOffset, y = w === void 0 ? 0 : w, b = Fe(t, {
951
- boundary: u,
952
- rootBoundary: f,
953
- padding: g,
954
- altBoundary: l
955
- }), T = K(t.placement), R = Pe(t.placement), L = !R, i = Dt(T), E = ai(i), d = t.modifiersData.popperOffsets, D = t.rects.reference, N = t.rects.popper, _ = typeof y == "function" ? y(Object.assign({}, t.rects, {
956
- placement: t.placement
957
- })) : y, P = typeof _ == "number" ? {
958
- mainAxis: _,
959
- altAxis: _
960
- } : Object.assign({
961
- mainAxis: 0,
962
- altAxis: 0
963
- }, _), A = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, C = {
964
- x: 0,
965
- y: 0
966
- };
967
- if (d) {
968
- if (s) {
969
- var I, U = i === "y" ? $ : B, F = i === "y" ? Y : X, j = i === "y" ? "height" : "width", k = d[i], M = k + b[U], J = k - b[F], Q = m ? -N[j] / 2 : 0, fe = R === Re ? D[j] : N[j], ee = R === Re ? -N[j] : -D[j], de = t.elements.arrow, re = m && de ? St(de) : {
970
- width: 0,
971
- height: 0
972
- }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : bn(), ie = G[U], Ee = G[F], oe = Ve(0, D[j], re[j]), Oe = L ? D[j] / 2 - Q - oe - ie - P.mainAxis : fe - oe - ie - P.mainAxis, ue = L ? -D[j] / 2 + Q + oe + Ee + P.mainAxis : ee + oe + Ee + P.mainAxis, xe = t.elements.arrow && ze(t.elements.arrow), Xe = xe ? i === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Ie = (I = A == null ? void 0 : A[i]) != null ? I : 0, Ge = k + Oe - Ie - Xe, Ke = k + ue - Ie, Ne = Ve(m ? ct(M, Ge) : M, k, m ? be(J, Ke) : J);
973
- d[i] = Ne, C[i] = Ne - k;
974
- }
975
- if (p) {
976
- var _e, Ze = i === "x" ? $ : B, Je = i === "x" ? Y : X, ae = d[E], ce = E === "y" ? "height" : "width", Me = ae + b[Ze], ve = ae - b[Je], je = [$, B].indexOf(T) !== -1, Qe = (_e = A == null ? void 0 : A[E]) != null ? _e : 0, et = je ? Me : ae - D[ce] - N[ce] - Qe + P.altAxis, tt = je ? ae + D[ce] + N[ce] - Qe - P.altAxis : ve, nt = m && je ? Pr(et, ae, tt) : Ve(m ? et : Me, ae, m ? tt : ve);
977
- d[E] = nt, C[E] = nt - ae;
978
- }
979
- t.modifiersData[r] = C;
980
- }
981
- }
982
- const ui = {
983
- name: "preventOverflow",
984
- enabled: !0,
985
- phase: "main",
986
- fn: si,
987
- requiresIfExists: ["offset"]
988
- };
989
- function ci(e) {
990
- return {
991
- scrollLeft: e.scrollLeft,
992
- scrollTop: e.scrollTop
993
- };
994
- }
995
- function pi(e) {
996
- return e === q(e) || !W(e) ? Rt(e) : ci(e);
997
- }
998
- function li(e) {
999
- var t = e.getBoundingClientRect(), n = Ce(t.width) / e.offsetWidth || 1, r = Ce(t.height) / e.offsetHeight || 1;
1000
- return n !== 1 || r !== 1;
1001
- }
1002
- function fi(e, t, n) {
1003
- n === void 0 && (n = !1);
1004
- var r = W(t), o = W(t) && li(t), s = le(t), c = Le(e, o, n), p = {
1005
- scrollLeft: 0,
1006
- scrollTop: 0
1007
- }, u = {
1008
- x: 0,
1009
- y: 0
1010
- };
1011
- return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1012
- Lt(s)) && (p = pi(t)), W(t) ? (u = Le(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Ct(s))), {
1013
- x: c.left + p.scrollLeft - u.x,
1014
- y: c.top + p.scrollTop - u.y,
1015
- width: c.width,
1016
- height: c.height
1017
- };
1018
- }
1019
- function di(e) {
1020
- var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
1021
- e.forEach(function(s) {
1022
- t.set(s.name, s);
1023
- });
1024
- function o(s) {
1025
- n.add(s.name);
1026
- var c = [].concat(s.requires || [], s.requiresIfExists || []);
1027
- c.forEach(function(p) {
1028
- if (!n.has(p)) {
1029
- var u = t.get(p);
1030
- u && o(u);
1031
- }
1032
- }), r.push(s);
1033
- }
1034
- return e.forEach(function(s) {
1035
- n.has(s.name) || o(s);
1036
- }), r;
1037
- }
1038
- function vi(e) {
1039
- var t = di(e);
1040
- return bt.reduce(function(n, r) {
1041
- return n.concat(t.filter(function(o) {
1042
- return o.phase === r;
1043
- }));
1044
- }, []);
1045
- }
1046
- function hi(e) {
1047
- var t;
1048
- return function() {
1049
- return t || (t = new Promise(function(n) {
1050
- Promise.resolve().then(function() {
1051
- t = void 0, n(e());
1052
- });
1053
- })), t;
1054
- };
1055
- }
1056
- function pe(e) {
1057
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
1058
- n[r - 1] = arguments[r];
1059
- return [].concat(n).reduce(function(o, s) {
1060
- return o.replace(/%s/, s);
1061
- }, e);
1062
- }
1063
- var me = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', mi = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Ut = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
1064
- function gi(e) {
1065
- e.forEach(function(t) {
1066
- [].concat(Object.keys(t), Ut).filter(function(n, r, o) {
1067
- return o.indexOf(n) === r;
1068
- }).forEach(function(n) {
1069
- switch (n) {
1070
- case "name":
1071
- typeof t.name != "string" && console.error(pe(me, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
1072
- break;
1073
- case "enabled":
1074
- typeof t.enabled != "boolean" && console.error(pe(me, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
1075
- break;
1076
- case "phase":
1077
- bt.indexOf(t.phase) < 0 && console.error(pe(me, t.name, '"phase"', "either " + bt.join(", "), '"' + String(t.phase) + '"'));
1078
- break;
1079
- case "fn":
1080
- typeof t.fn != "function" && console.error(pe(me, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
1081
- break;
1082
- case "effect":
1083
- t.effect != null && typeof t.effect != "function" && console.error(pe(me, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
1084
- break;
1085
- case "requires":
1086
- t.requires != null && !Array.isArray(t.requires) && console.error(pe(me, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
1087
- break;
1088
- case "requiresIfExists":
1089
- Array.isArray(t.requiresIfExists) || console.error(pe(me, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
1090
- break;
1091
- case "options":
1092
- case "data":
1093
- break;
1094
- default:
1095
- console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + Ut.map(function(r) {
1096
- return '"' + r + '"';
1097
- }).join(", ") + '; but "' + n + '" was provided.');
1098
- }
1099
- t.requires && t.requires.forEach(function(r) {
1100
- e.find(function(o) {
1101
- return o.name === r;
1102
- }) == null && console.error(pe(mi, String(t.name), r, r));
1103
- });
1104
- });
1105
- });
1106
- }
1107
- function yi(e, t) {
1108
- var n = /* @__PURE__ */ new Set();
1109
- return e.filter(function(r) {
1110
- var o = t(r);
1111
- if (!n.has(o))
1112
- return n.add(o), !0;
1113
- });
1114
- }
1115
- function bi(e) {
1116
- var t = e.reduce(function(n, r) {
1117
- var o = n[r.name];
1118
- return n[r.name] = o ? Object.assign({}, o, r, {
1119
- options: Object.assign({}, o.options, r.options),
1120
- data: Object.assign({}, o.data, r.data)
1121
- }) : r, n;
1122
- }, {});
1123
- return Object.keys(t).map(function(n) {
1124
- return t[n];
1125
- });
1126
- }
1127
- var Ft = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", wi = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", Ht = {
1128
- placement: "bottom",
1129
- modifiers: [],
1130
- strategy: "absolute"
1131
- };
1132
- function Wt() {
1133
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1134
- t[n] = arguments[n];
1135
- return !t.some(function(r) {
1136
- return !(r && typeof r.getBoundingClientRect == "function");
1137
- });
1138
- }
1139
- function Ei(e) {
1140
- e === void 0 && (e = {});
1141
- var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, s = o === void 0 ? Ht : o;
1142
- return function(p, u, f) {
1143
- f === void 0 && (f = s);
1144
- var l = {
1145
- placement: "bottom",
1146
- orderedModifiers: [],
1147
- options: Object.assign({}, Ht, s),
1148
- modifiersData: {},
1149
- elements: {
1150
- reference: p,
1151
- popper: u
1152
- },
1153
- attributes: {},
1154
- styles: {}
1155
- }, g = [], x = !1, m = {
1156
- state: l,
1157
- setOptions: function(T) {
1158
- var R = typeof T == "function" ? T(l.options) : T;
1159
- y(), l.options = Object.assign({}, s, l.options, R), l.scrollParents = {
1160
- reference: we(p) ? $e(p) : p.contextElement ? $e(p.contextElement) : [],
1161
- popper: $e(u)
1162
- };
1163
- var L = vi(bi([].concat(r, l.options.modifiers)));
1164
- if (l.orderedModifiers = L.filter(function(A) {
1165
- return A.enabled;
1166
- }), process.env.NODE_ENV !== "production") {
1167
- var i = yi([].concat(L, l.options.modifiers), function(A) {
1168
- var C = A.name;
1169
- return C;
1170
- });
1171
- if (gi(i), K(l.options.placement) === lt) {
1172
- var E = l.orderedModifiers.find(function(A) {
1173
- var C = A.name;
1174
- return C === "flip";
1175
- });
1176
- E || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
1177
- }
1178
- var d = Z(u), D = d.marginTop, N = d.marginRight, _ = d.marginBottom, P = d.marginLeft;
1179
- [D, N, _, P].some(function(A) {
1180
- return parseFloat(A);
1181
- }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
1182
- }
1183
- return w(), m.update();
1184
- },
1185
- // Sync update – it will always be executed, even if not necessary. This
1186
- // is useful for low frequency updates where sync behavior simplifies the
1187
- // logic.
1188
- // For high frequency updates (e.g. `resize` and `scroll` events), always
1189
- // prefer the async Popper#update method
1190
- forceUpdate: function() {
1191
- if (!x) {
1192
- var T = l.elements, R = T.reference, L = T.popper;
1193
- if (!Wt(R, L)) {
1194
- process.env.NODE_ENV !== "production" && console.error(Ft);
1195
- return;
1196
- }
1197
- l.rects = {
1198
- reference: fi(R, ze(L), l.options.strategy === "fixed"),
1199
- popper: St(L)
1200
- }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(A) {
1201
- return l.modifiersData[A.name] = Object.assign({}, A.data);
1202
- });
1203
- for (var i = 0, E = 0; E < l.orderedModifiers.length; E++) {
1204
- if (process.env.NODE_ENV !== "production" && (i += 1, i > 100)) {
1205
- console.error(wi);
1206
- break;
1207
- }
1208
- if (l.reset === !0) {
1209
- l.reset = !1, E = -1;
1210
- continue;
1211
- }
1212
- var d = l.orderedModifiers[E], D = d.fn, N = d.options, _ = N === void 0 ? {} : N, P = d.name;
1213
- typeof D == "function" && (l = D({
1214
- state: l,
1215
- options: _,
1216
- name: P,
1217
- instance: m
1218
- }) || l);
1219
- }
1220
- }
1221
- },
1222
- // Async and optimistically optimized update – it will not be executed if
1223
- // not necessary (debounced to run at most once-per-tick)
1224
- update: hi(function() {
1225
- return new Promise(function(b) {
1226
- m.forceUpdate(), b(l);
1227
- });
1228
- }),
1229
- destroy: function() {
1230
- y(), x = !0;
1231
- }
1232
- };
1233
- if (!Wt(p, u))
1234
- return process.env.NODE_ENV !== "production" && console.error(Ft), m;
1235
- m.setOptions(f).then(function(b) {
1236
- !x && f.onFirstUpdate && f.onFirstUpdate(b);
1237
- });
1238
- function w() {
1239
- l.orderedModifiers.forEach(function(b) {
1240
- var T = b.name, R = b.options, L = R === void 0 ? {} : R, i = b.effect;
1241
- if (typeof i == "function") {
1242
- var E = i({
1243
- state: l,
1244
- name: T,
1245
- instance: m,
1246
- options: L
1247
- }), d = function() {
1248
- };
1249
- g.push(E || d);
1250
- }
1251
- });
1252
- }
1253
- function y() {
1254
- g.forEach(function(b) {
1255
- return b();
1256
- }), g = [];
1257
- }
1258
- return m;
1259
- };
1260
- }
1261
- var Oi = [Ur, oi, $r, mn, ri, Jr, ui, Mr, ei], xi = /* @__PURE__ */ Ei({
1262
- defaultModifiers: Oi
1263
- }), Ai = "tippy-box", An = "tippy-content", Ti = "tippy-backdrop", Tn = "tippy-arrow", Sn = "tippy-svg-arrow", ye = {
1264
- passive: !0,
1265
- capture: !0
1266
- }, Dn = function() {
1267
- return document.body;
1268
- };
1269
- function Si(e, t) {
1270
- return {}.hasOwnProperty.call(e, t);
1271
- }
1272
- function ht(e, t, n) {
1273
- if (Array.isArray(e)) {
1274
- var r = e[t];
1275
- return r ?? (Array.isArray(n) ? n[t] : n);
1276
- }
1277
- return e;
1278
- }
1279
- function Pt(e, t) {
1280
- var n = {}.toString.call(e);
1281
- return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
1282
- }
1283
- function Rn(e, t) {
1284
- return typeof e == "function" ? e.apply(void 0, t) : e;
1285
- }
1286
- function qt(e, t) {
1287
- if (t === 0)
1288
- return e;
1289
- var n;
1290
- return function(r) {
1291
- clearTimeout(n), n = setTimeout(function() {
1292
- e(r);
1293
- }, t);
1294
- };
1295
- }
1296
- function Di(e, t) {
1297
- var n = Object.assign({}, e);
1298
- return t.forEach(function(r) {
1299
- delete n[r];
1300
- }), n;
1301
- }
1302
- function Ri(e) {
1303
- return e.split(/\s+/).filter(Boolean);
1304
- }
1305
- function De(e) {
1306
- return [].concat(e);
1307
- }
1308
- function zt(e, t) {
1309
- e.indexOf(t) === -1 && e.push(t);
1310
- }
1311
- function Ci(e) {
1312
- return e.filter(function(t, n) {
1313
- return e.indexOf(t) === n;
1314
- });
1315
- }
1316
- function Li(e) {
1317
- return e.split("-")[0];
1318
- }
1319
- function pt(e) {
1320
- return [].slice.call(e);
1321
- }
1322
- function Yt(e) {
1323
- return Object.keys(e).reduce(function(t, n) {
1324
- return e[n] !== void 0 && (t[n] = e[n]), t;
1325
- }, {});
1326
- }
1327
- function Be() {
1328
- return document.createElement("div");
1329
- }
1330
- function He(e) {
1331
- return ["Element", "Fragment"].some(function(t) {
1332
- return Pt(e, t);
1333
- });
1334
- }
1335
- function Pi(e) {
1336
- return Pt(e, "NodeList");
1337
- }
1338
- function Ii(e) {
1339
- return Pt(e, "MouseEvent");
1340
- }
1341
- function Ni(e) {
1342
- return !!(e && e._tippy && e._tippy.reference === e);
1343
- }
1344
- function _i(e) {
1345
- return He(e) ? [e] : Pi(e) ? pt(e) : Array.isArray(e) ? e : pt(document.querySelectorAll(e));
1346
- }
1347
- function mt(e, t) {
1348
- e.forEach(function(n) {
1349
- n && (n.style.transitionDuration = t + "ms");
1350
- });
1351
- }
1352
- function Xt(e, t) {
1353
- e.forEach(function(n) {
1354
- n && n.setAttribute("data-state", t);
1355
- });
1356
- }
1357
- function Mi(e) {
1358
- var t, n = De(e), r = n[0];
1359
- return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
1360
- }
1361
- function ji(e, t) {
1362
- var n = t.clientX, r = t.clientY;
1363
- return e.every(function(o) {
1364
- var s = o.popperRect, c = o.popperState, p = o.props, u = p.interactiveBorder, f = Li(c.placement), l = c.modifiersData.offset;
1365
- if (!l)
1366
- return !0;
1367
- var g = f === "bottom" ? l.top.y : 0, x = f === "top" ? l.bottom.y : 0, m = f === "right" ? l.left.x : 0, w = f === "left" ? l.right.x : 0, y = s.top - r + g > u, b = r - s.bottom - x > u, T = s.left - n + m > u, R = n - s.right - w > u;
1368
- return y || b || T || R;
1369
- });
1370
- }
1371
- function gt(e, t, n) {
1372
- var r = t + "EventListener";
1373
- ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1374
- e[r](o, n);
1375
- });
1376
- }
1377
- function Gt(e, t) {
1378
- for (var n = t; n; ) {
1379
- var r;
1380
- if (e.contains(n))
1381
- return !0;
1382
- n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
1383
- }
1384
- return !1;
1385
- }
1386
- var te = {
1387
- isTouch: !1
1388
- }, Kt = 0;
1389
- function ki() {
1390
- te.isTouch || (te.isTouch = !0, window.performance && document.addEventListener("mousemove", Cn));
1391
- }
1392
- function Cn() {
1393
- var e = performance.now();
1394
- e - Kt < 20 && (te.isTouch = !1, document.removeEventListener("mousemove", Cn)), Kt = e;
1395
- }
1396
- function Vi() {
1397
- var e = document.activeElement;
1398
- if (Ni(e)) {
1399
- var t = e._tippy;
1400
- e.blur && !t.state.isVisible && e.blur();
1401
- }
1402
- }
1403
- function $i() {
1404
- document.addEventListener("touchstart", ki, ye), window.addEventListener("blur", Vi);
1405
- }
1406
- var Bi = typeof window < "u" && typeof document < "u", Ui = Bi ? (
1407
- // @ts-ignore
1408
- !!window.msCrypto
1409
- ) : !1;
1410
- function Se(e) {
1411
- var t = e === "destroy" ? "n already-" : " ";
1412
- return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1413
- }
1414
- function Zt(e) {
1415
- var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
1416
- return e.replace(t, " ").replace(n, "").trim();
1417
- }
1418
- function Fi(e) {
1419
- return Zt(`
1420
- %ctippy.js
1421
-
1422
- %c` + Zt(e) + `
1423
-
1424
- %c👷‍ This is a development-only message. It will be removed in production.
1425
- `);
1426
- }
1427
- function Ln(e) {
1428
- return [
1429
- Fi(e),
1430
- // title
1431
- "color: #00C584; font-size: 1.3em; font-weight: bold;",
1432
- // message
1433
- "line-height: 1.5",
1434
- // footer
1435
- "color: #a6a095;"
1436
- ];
1437
- }
1438
- var We;
1439
- process.env.NODE_ENV !== "production" && Hi();
1440
- function Hi() {
1441
- We = /* @__PURE__ */ new Set();
1442
- }
1443
- function se(e, t) {
1444
- if (e && !We.has(t)) {
1445
- var n;
1446
- We.add(t), (n = console).warn.apply(n, Ln(t));
1447
- }
1448
- }
1449
- function Ot(e, t) {
1450
- if (e && !We.has(t)) {
1451
- var n;
1452
- We.add(t), (n = console).error.apply(n, Ln(t));
1453
- }
1454
- }
1455
- function Wi(e) {
1456
- var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
1457
- Ot(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ot(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1458
- }
1459
- var Pn = {
1460
- animateFill: !1,
1461
- followCursor: !1,
1462
- inlinePositioning: !1,
1463
- sticky: !1
1464
- }, qi = {
1465
- allowHTML: !1,
1466
- animation: "fade",
1467
- arrow: !0,
1468
- content: "",
1469
- inertia: !1,
1470
- maxWidth: 350,
1471
- role: "tooltip",
1472
- theme: "",
1473
- zIndex: 9999
1474
- }, H = Object.assign({
1475
- appendTo: Dn,
1476
- aria: {
1477
- content: "auto",
1478
- expanded: "auto"
1479
- },
1480
- delay: 0,
1481
- duration: [300, 250],
1482
- getReferenceClientRect: null,
1483
- hideOnClick: !0,
1484
- ignoreAttributes: !1,
1485
- interactive: !1,
1486
- interactiveBorder: 2,
1487
- interactiveDebounce: 0,
1488
- moveTransition: "",
1489
- offset: [0, 10],
1490
- onAfterUpdate: function() {
1491
- },
1492
- onBeforeUpdate: function() {
1493
- },
1494
- onCreate: function() {
1495
- },
1496
- onDestroy: function() {
1497
- },
1498
- onHidden: function() {
1499
- },
1500
- onHide: function() {
1501
- },
1502
- onMount: function() {
1503
- },
1504
- onShow: function() {
1505
- },
1506
- onShown: function() {
1507
- },
1508
- onTrigger: function() {
1509
- },
1510
- onUntrigger: function() {
1511
- },
1512
- onClickOutside: function() {
1513
- },
1514
- placement: "top",
1515
- plugins: [],
1516
- popperOptions: {},
1517
- render: null,
1518
- showOnCreate: !1,
1519
- touch: !0,
1520
- trigger: "mouseenter focus",
1521
- triggerTarget: null
1522
- }, Pn, qi), zi = Object.keys(H), Yi = function(t) {
1523
- process.env.NODE_ENV !== "production" && Nn(t, []);
1524
- var n = Object.keys(t);
1525
- n.forEach(function(r) {
1526
- H[r] = t[r];
1527
- });
1528
- };
1529
- function In(e) {
1530
- var t = e.plugins || [], n = t.reduce(function(r, o) {
1531
- var s = o.name, c = o.defaultValue;
1532
- if (s) {
1533
- var p;
1534
- r[s] = e[s] !== void 0 ? e[s] : (p = H[s]) != null ? p : c;
1535
- }
1536
- return r;
1537
- }, {});
1538
- return Object.assign({}, e, n);
1539
- }
1540
- function Xi(e, t) {
1541
- var n = t ? Object.keys(In(Object.assign({}, H, {
1542
- plugins: t
1543
- }))) : zi, r = n.reduce(function(o, s) {
1544
- var c = (e.getAttribute("data-tippy-" + s) || "").trim();
1545
- if (!c)
1546
- return o;
1547
- if (s === "content")
1548
- o[s] = c;
1549
- else
1550
- try {
1551
- o[s] = JSON.parse(c);
1552
- } catch {
1553
- o[s] = c;
1554
- }
1555
- return o;
1556
- }, {});
1557
- return r;
1558
- }
1559
- function Jt(e, t) {
1560
- var n = Object.assign({}, t, {
1561
- content: Rn(t.content, [e])
1562
- }, t.ignoreAttributes ? {} : Xi(e, t.plugins));
1563
- return n.aria = Object.assign({}, H.aria, n.aria), n.aria = {
1564
- expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
1565
- content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
1566
- }, n;
1567
- }
1568
- function Nn(e, t) {
1569
- e === void 0 && (e = {}), t === void 0 && (t = []);
1570
- var n = Object.keys(e);
1571
- n.forEach(function(r) {
1572
- var o = Di(H, Object.keys(Pn)), s = !Si(o, r);
1573
- s && (s = t.filter(function(c) {
1574
- return c.name === r;
1575
- }).length === 0), se(s, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
1576
-
1577
- `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1578
- `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1579
- });
1580
- }
1581
- var Gi = function() {
1582
- return "innerHTML";
1583
- };
1584
- function xt(e, t) {
1585
- e[Gi()] = t;
1586
- }
1587
- function Qt(e) {
1588
- var t = Be();
1589
- return e === !0 ? t.className = Tn : (t.className = Sn, He(e) ? t.appendChild(e) : xt(t, e)), t;
1590
- }
1591
- function en(e, t) {
1592
- He(t.content) ? (xt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? xt(e, t.content) : e.textContent = t.content);
1593
- }
1594
- function At(e) {
1595
- var t = e.firstElementChild, n = pt(t.children);
1596
- return {
1597
- box: t,
1598
- content: n.find(function(r) {
1599
- return r.classList.contains(An);
1600
- }),
1601
- arrow: n.find(function(r) {
1602
- return r.classList.contains(Tn) || r.classList.contains(Sn);
1603
- }),
1604
- backdrop: n.find(function(r) {
1605
- return r.classList.contains(Ti);
1606
- })
1607
- };
1608
- }
1609
- function _n(e) {
1610
- var t = Be(), n = Be();
1611
- n.className = Ai, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1612
- var r = Be();
1613
- r.className = An, r.setAttribute("data-state", "hidden"), en(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1614
- function o(s, c) {
1615
- var p = At(t), u = p.box, f = p.content, l = p.arrow;
1616
- c.theme ? u.setAttribute("data-theme", c.theme) : u.removeAttribute("data-theme"), typeof c.animation == "string" ? u.setAttribute("data-animation", c.animation) : u.removeAttribute("data-animation"), c.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? u.setAttribute("role", c.role) : u.removeAttribute("role"), (s.content !== c.content || s.allowHTML !== c.allowHTML) && en(f, e.props), c.arrow ? l ? s.arrow !== c.arrow && (u.removeChild(l), u.appendChild(Qt(c.arrow))) : u.appendChild(Qt(c.arrow)) : l && u.removeChild(l);
1617
- }
1618
- return {
1619
- popper: t,
1620
- onUpdate: o
1621
- };
1622
- }
1623
- _n.$$tippy = !0;
1624
- var Ki = 1, at = [], yt = [];
1625
- function Zi(e, t) {
1626
- var n = Jt(e, Object.assign({}, H, In(Yt(t)))), r, o, s, c = !1, p = !1, u = !1, f = !1, l, g, x, m = [], w = qt(Ge, n.interactiveDebounce), y, b = Ki++, T = null, R = Ci(n.plugins), L = {
1627
- // Is the instance currently enabled?
1628
- isEnabled: !0,
1629
- // Is the tippy currently showing and not transitioning out?
1630
- isVisible: !1,
1631
- // Has the instance been destroyed?
1632
- isDestroyed: !1,
1633
- // Is the tippy currently mounted to the DOM?
1634
- isMounted: !1,
1635
- // Has the tippy finished transitioning in?
1636
- isShown: !1
1637
- }, i = {
1638
- // properties
1639
- id: b,
1640
- reference: e,
1641
- popper: Be(),
1642
- popperInstance: T,
1643
- props: n,
1644
- state: L,
1645
- plugins: R,
1646
- // methods
1647
- clearDelayTimeouts: et,
1648
- setProps: tt,
1649
- setContent: nt,
1650
- show: Mn,
1651
- hide: jn,
1652
- hideWithInteractivity: kn,
1653
- enable: je,
1654
- disable: Qe,
1655
- unmount: Vn,
1656
- destroy: $n
1657
- };
1658
- if (!n.render)
1659
- return process.env.NODE_ENV !== "production" && Ot(!0, "render() function has not been supplied."), i;
1660
- var E = n.render(i), d = E.popper, D = E.onUpdate;
1661
- d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
1662
- var N = R.map(function(a) {
1663
- return a.fn(i);
1664
- }), _ = e.hasAttribute("aria-expanded");
1665
- return xe(), Q(), k(), M("onCreate", [i]), n.showOnCreate && Me(), d.addEventListener("mouseenter", function() {
1666
- i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1667
- }), d.addEventListener("mouseleave", function() {
1668
- i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", w);
1669
- }), i;
1670
- function P() {
1671
- var a = i.props.touch;
1672
- return Array.isArray(a) ? a : [a, 0];
1673
- }
1674
- function A() {
1675
- return P()[0] === "hold";
1676
- }
1677
- function C() {
1678
- var a;
1679
- return !!((a = i.props.render) != null && a.$$tippy);
1680
- }
1681
- function I() {
1682
- return y || e;
1683
- }
1684
- function U() {
1685
- var a = I().parentNode;
1686
- return a ? Mi(a) : document;
1687
- }
1688
- function F() {
1689
- return At(d);
1690
- }
1691
- function j(a) {
1692
- return i.state.isMounted && !i.state.isVisible || te.isTouch || l && l.type === "focus" ? 0 : ht(i.props.delay, a ? 0 : 1, H.delay);
1693
- }
1694
- function k(a) {
1695
- a === void 0 && (a = !1), d.style.pointerEvents = i.props.interactive && !a ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
1696
- }
1697
- function M(a, v, h) {
1698
- if (h === void 0 && (h = !0), N.forEach(function(O) {
1699
- O[a] && O[a].apply(O, v);
1700
- }), h) {
1701
- var S;
1702
- (S = i.props)[a].apply(S, v);
1703
- }
1704
- }
1705
- function J() {
1706
- var a = i.props.aria;
1707
- if (a.content) {
1708
- var v = "aria-" + a.content, h = d.id, S = De(i.props.triggerTarget || e);
1709
- S.forEach(function(O) {
1710
- var V = O.getAttribute(v);
1711
- if (i.state.isVisible)
1712
- O.setAttribute(v, V ? V + " " + h : h);
1713
- else {
1714
- var z = V && V.replace(h, "").trim();
1715
- z ? O.setAttribute(v, z) : O.removeAttribute(v);
1716
- }
1717
- });
1718
- }
1719
- }
1720
- function Q() {
1721
- if (!(_ || !i.props.aria.expanded)) {
1722
- var a = De(i.props.triggerTarget || e);
1723
- a.forEach(function(v) {
1724
- i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === I() ? "true" : "false") : v.removeAttribute("aria-expanded");
1725
- });
1726
- }
1727
- }
1728
- function fe() {
1729
- U().removeEventListener("mousemove", w), at = at.filter(function(a) {
1730
- return a !== w;
1731
- });
1732
- }
1733
- function ee(a) {
1734
- if (!(te.isTouch && (u || a.type === "mousedown"))) {
1735
- var v = a.composedPath && a.composedPath()[0] || a.target;
1736
- if (!(i.props.interactive && Gt(d, v))) {
1737
- if (De(i.props.triggerTarget || e).some(function(h) {
1738
- return Gt(h, v);
1739
- })) {
1740
- if (te.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1741
- return;
1742
- } else
1743
- M("onClickOutside", [i, a]);
1744
- i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), p = !0, setTimeout(function() {
1745
- p = !1;
1746
- }), i.state.isMounted || ie());
1747
- }
1748
- }
1749
- }
1750
- function de() {
1751
- u = !0;
1752
- }
1753
- function re() {
1754
- u = !1;
1755
- }
1756
- function G() {
1757
- var a = U();
1758
- a.addEventListener("mousedown", ee, !0), a.addEventListener("touchend", ee, ye), a.addEventListener("touchstart", re, ye), a.addEventListener("touchmove", de, ye);
1759
- }
1760
- function ie() {
1761
- var a = U();
1762
- a.removeEventListener("mousedown", ee, !0), a.removeEventListener("touchend", ee, ye), a.removeEventListener("touchstart", re, ye), a.removeEventListener("touchmove", de, ye);
1763
- }
1764
- function Ee(a, v) {
1765
- Oe(a, function() {
1766
- !i.state.isVisible && d.parentNode && d.parentNode.contains(d) && v();
1767
- });
1768
- }
1769
- function oe(a, v) {
1770
- Oe(a, v);
1771
- }
1772
- function Oe(a, v) {
1773
- var h = F().box;
1774
- function S(O) {
1775
- O.target === h && (gt(h, "remove", S), v());
1776
- }
1777
- if (a === 0)
1778
- return v();
1779
- gt(h, "remove", g), gt(h, "add", S), g = S;
1780
- }
1781
- function ue(a, v, h) {
1782
- h === void 0 && (h = !1);
1783
- var S = De(i.props.triggerTarget || e);
1784
- S.forEach(function(O) {
1785
- O.addEventListener(a, v, h), m.push({
1786
- node: O,
1787
- eventType: a,
1788
- handler: v,
1789
- options: h
1790
- });
1791
- });
1792
- }
1793
- function xe() {
1794
- A() && (ue("touchstart", Ie, {
1795
- passive: !0
1796
- }), ue("touchend", Ke, {
1797
- passive: !0
1798
- })), Ri(i.props.trigger).forEach(function(a) {
1799
- if (a !== "manual")
1800
- switch (ue(a, Ie), a) {
1801
- case "mouseenter":
1802
- ue("mouseleave", Ke);
1803
- break;
1804
- case "focus":
1805
- ue(Ui ? "focusout" : "blur", Ne);
1806
- break;
1807
- case "focusin":
1808
- ue("focusout", Ne);
1809
- break;
1810
- }
1811
- });
1812
- }
1813
- function Xe() {
1814
- m.forEach(function(a) {
1815
- var v = a.node, h = a.eventType, S = a.handler, O = a.options;
1816
- v.removeEventListener(h, S, O);
1817
- }), m = [];
1818
- }
1819
- function Ie(a) {
1820
- var v, h = !1;
1821
- if (!(!i.state.isEnabled || _e(a) || p)) {
1822
- var S = ((v = l) == null ? void 0 : v.type) === "focus";
1823
- l = a, y = a.currentTarget, Q(), !i.state.isVisible && Ii(a) && at.forEach(function(O) {
1824
- return O(a);
1825
- }), a.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Me(a), a.type === "click" && (c = !h), h && !S && ve(a);
1826
- }
1827
- }
1828
- function Ge(a) {
1829
- var v = a.target, h = I().contains(v) || d.contains(v);
1830
- if (!(a.type === "mousemove" && h)) {
1831
- var S = ce().concat(d).map(function(O) {
1832
- var V, z = O._tippy, Ae = (V = z.popperInstance) == null ? void 0 : V.state;
1833
- return Ae ? {
1834
- popperRect: O.getBoundingClientRect(),
1835
- popperState: Ae,
1836
- props: n
1837
- } : null;
1838
- }).filter(Boolean);
1839
- ji(S, a) && (fe(), ve(a));
1840
- }
1841
- }
1842
- function Ke(a) {
1843
- var v = _e(a) || i.props.trigger.indexOf("click") >= 0 && c;
1844
- if (!v) {
1845
- if (i.props.interactive) {
1846
- i.hideWithInteractivity(a);
1847
- return;
1848
- }
1849
- ve(a);
1850
- }
1851
- }
1852
- function Ne(a) {
1853
- i.props.trigger.indexOf("focusin") < 0 && a.target !== I() || i.props.interactive && a.relatedTarget && d.contains(a.relatedTarget) || ve(a);
1854
- }
1855
- function _e(a) {
1856
- return te.isTouch ? A() !== a.type.indexOf("touch") >= 0 : !1;
1857
- }
1858
- function Ze() {
1859
- Je();
1860
- var a = i.props, v = a.popperOptions, h = a.placement, S = a.offset, O = a.getReferenceClientRect, V = a.moveTransition, z = C() ? At(d).arrow : null, Ae = O ? {
1861
- getBoundingClientRect: O,
1862
- contextElement: O.contextElement || I()
1863
- } : e, It = {
1864
- name: "$$tippy",
1865
- enabled: !0,
1866
- phase: "beforeWrite",
1867
- requires: ["computeStyles"],
1868
- fn: function(rt) {
1869
- var Te = rt.state;
1870
- if (C()) {
1871
- var Bn = F(), vt = Bn.box;
1872
- ["placement", "reference-hidden", "escaped"].forEach(function(it) {
1873
- it === "placement" ? vt.setAttribute("data-placement", Te.placement) : Te.attributes.popper["data-popper-" + it] ? vt.setAttribute("data-" + it, "") : vt.removeAttribute("data-" + it);
1874
- }), Te.attributes.popper = {};
1875
- }
1876
- }
1877
- }, he = [{
1878
- name: "offset",
1879
- options: {
1880
- offset: S
1881
- }
1882
- }, {
1883
- name: "preventOverflow",
1884
- options: {
1885
- padding: {
1886
- top: 2,
1887
- bottom: 2,
1888
- left: 5,
1889
- right: 5
1890
- }
1891
- }
1892
- }, {
1893
- name: "flip",
1894
- options: {
1895
- padding: 5
1896
- }
1897
- }, {
1898
- name: "computeStyles",
1899
- options: {
1900
- adaptive: !V
1901
- }
1902
- }, It];
1903
- C() && z && he.push({
1904
- name: "arrow",
1905
- options: {
1906
- element: z,
1907
- padding: 3
1908
- }
1909
- }), he.push.apply(he, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = xi(Ae, d, Object.assign({}, v, {
1910
- placement: h,
1911
- onFirstUpdate: x,
1912
- modifiers: he
1913
- }));
1914
- }
1915
- function Je() {
1916
- i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1917
- }
1918
- function ae() {
1919
- var a = i.props.appendTo, v, h = I();
1920
- i.props.interactive && a === Dn || a === "parent" ? v = h.parentNode : v = Rn(a, [h]), v.contains(d) || v.appendChild(d), i.state.isMounted = !0, Ze(), process.env.NODE_ENV !== "production" && se(i.props.interactive && a === H.appendTo && h.nextElementSibling !== d, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1921
-
1922
- `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1923
-
1924
- `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1925
-
1926
- `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1927
- }
1928
- function ce() {
1929
- return pt(d.querySelectorAll("[data-tippy-root]"));
1930
- }
1931
- function Me(a) {
1932
- i.clearDelayTimeouts(), a && M("onTrigger", [i, a]), G();
1933
- var v = j(!0), h = P(), S = h[0], O = h[1];
1934
- te.isTouch && S === "hold" && O && (v = O), v ? r = setTimeout(function() {
1935
- i.show();
1936
- }, v) : i.show();
1937
- }
1938
- function ve(a) {
1939
- if (i.clearDelayTimeouts(), M("onUntrigger", [i, a]), !i.state.isVisible) {
1940
- ie();
1941
- return;
1942
- }
1943
- if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(a.type) >= 0 && c)) {
1944
- var v = j(!1);
1945
- v ? o = setTimeout(function() {
1946
- i.state.isVisible && i.hide();
1947
- }, v) : s = requestAnimationFrame(function() {
1948
- i.hide();
1949
- });
1950
- }
1951
- }
1952
- function je() {
1953
- i.state.isEnabled = !0;
1954
- }
1955
- function Qe() {
1956
- i.hide(), i.state.isEnabled = !1;
1957
- }
1958
- function et() {
1959
- clearTimeout(r), clearTimeout(o), cancelAnimationFrame(s);
1960
- }
1961
- function tt(a) {
1962
- if (process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("setProps")), !i.state.isDestroyed) {
1963
- M("onBeforeUpdate", [i, a]), Xe();
1964
- var v = i.props, h = Jt(e, Object.assign({}, v, Yt(a), {
1965
- ignoreAttributes: !0
1966
- }));
1967
- i.props = h, xe(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = qt(Ge, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? De(v.triggerTarget).forEach(function(S) {
1968
- S.removeAttribute("aria-expanded");
1969
- }) : h.triggerTarget && e.removeAttribute("aria-expanded"), Q(), k(), D && D(v, h), i.popperInstance && (Ze(), ce().forEach(function(S) {
1970
- requestAnimationFrame(S._tippy.popperInstance.forceUpdate);
1971
- })), M("onAfterUpdate", [i, a]);
1972
- }
1973
- }
1974
- function nt(a) {
1975
- i.setProps({
1976
- content: a
1977
- });
1978
- }
1979
- function Mn() {
1980
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("show"));
1981
- var a = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = te.isTouch && !i.props.touch, O = ht(i.props.duration, 0, H.duration);
1982
- if (!(a || v || h || S) && !I().hasAttribute("disabled") && (M("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1983
- if (i.state.isVisible = !0, C() && (d.style.visibility = "visible"), k(), G(), i.state.isMounted || (d.style.transition = "none"), C()) {
1984
- var V = F(), z = V.box, Ae = V.content;
1985
- mt([z, Ae], 0);
1986
- }
1987
- x = function() {
1988
- var he;
1989
- if (!(!i.state.isVisible || f)) {
1990
- if (f = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, C() && i.props.animation) {
1991
- var dt = F(), rt = dt.box, Te = dt.content;
1992
- mt([rt, Te], O), Xt([rt, Te], "visible");
1993
- }
1994
- J(), Q(), zt(yt, i), (he = i.popperInstance) == null || he.forceUpdate(), M("onMount", [i]), i.props.animation && C() && oe(O, function() {
1995
- i.state.isShown = !0, M("onShown", [i]);
1996
- });
1997
- }
1998
- }, ae();
1999
- }
2000
- }
2001
- function jn() {
2002
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hide"));
2003
- var a = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = ht(i.props.duration, 1, H.duration);
2004
- if (!(a || v || h) && (M("onHide", [i], !1), i.props.onHide(i) !== !1)) {
2005
- if (i.state.isVisible = !1, i.state.isShown = !1, f = !1, c = !1, C() && (d.style.visibility = "hidden"), fe(), ie(), k(!0), C()) {
2006
- var O = F(), V = O.box, z = O.content;
2007
- i.props.animation && (mt([V, z], S), Xt([V, z], "hidden"));
2008
- }
2009
- J(), Q(), i.props.animation ? C() && Ee(S, i.unmount) : i.unmount();
2010
- }
2011
- }
2012
- function kn(a) {
2013
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hideWithInteractivity")), U().addEventListener("mousemove", w), zt(at, w), w(a);
2014
- }
2015
- function Vn() {
2016
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Je(), ce().forEach(function(a) {
2017
- a._tippy.unmount();
2018
- }), d.parentNode && d.parentNode.removeChild(d), yt = yt.filter(function(a) {
2019
- return a !== i;
2020
- }), i.state.isMounted = !1, M("onHidden", [i]));
2021
- }
2022
- function $n() {
2023
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), Xe(), delete e._tippy, i.state.isDestroyed = !0, M("onDestroy", [i]));
2024
- }
2025
- }
2026
- function Ye(e, t) {
2027
- t === void 0 && (t = {});
2028
- var n = H.plugins.concat(t.plugins || []);
2029
- process.env.NODE_ENV !== "production" && (Wi(e), Nn(t, n)), $i();
2030
- var r = Object.assign({}, t, {
2031
- plugins: n
2032
- }), o = _i(e);
2033
- if (process.env.NODE_ENV !== "production") {
2034
- var s = He(r.content), c = o.length > 1;
2035
- se(s && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
2036
-
2037
- `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
2038
-
2039
- `, `1) content: element.innerHTML
2040
- `, "2) content: () => element.cloneNode(true)"].join(" "));
2041
- }
2042
- var p = o.reduce(function(u, f) {
2043
- var l = f && Zi(f, r);
2044
- return l && u.push(l), u;
2045
- }, []);
2046
- return He(e) ? p[0] : p;
2047
- }
2048
- Ye.defaultProps = H;
2049
- Ye.setDefaultProps = Yi;
2050
- Ye.currentInput = te;
2051
- Object.assign({}, mn, {
2052
- effect: function(t) {
2053
- var n = t.state, r = {
2054
- popper: {
2055
- position: n.options.strategy,
2056
- left: "0",
2057
- top: "0",
2058
- margin: "0"
2059
- },
2060
- arrow: {
2061
- position: "absolute"
2062
- },
2063
- reference: {}
2064
- };
2065
- Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
2066
- }
2067
- });
2068
- var Ji = {
2069
- name: "sticky",
2070
- defaultValue: !1,
2071
- fn: function(t) {
2072
- var n = t.reference, r = t.popper;
2073
- function o() {
2074
- return t.popperInstance ? t.popperInstance.state.elements.reference : n;
2075
- }
2076
- function s(f) {
2077
- return t.props.sticky === !0 || t.props.sticky === f;
2078
- }
2079
- var c = null, p = null;
2080
- function u() {
2081
- var f = s("reference") ? o().getBoundingClientRect() : null, l = s("popper") ? r.getBoundingClientRect() : null;
2082
- (f && tn(c, f) || l && tn(p, l)) && t.popperInstance && t.popperInstance.update(), c = f, p = l, t.state.isMounted && requestAnimationFrame(u);
2083
- }
2084
- return {
2085
- onMount: function() {
2086
- t.props.sticky && u();
2087
- }
2088
- };
2089
- }
2090
- };
2091
- function tn(e, t) {
2092
- return e && t ? e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom || e.left !== t.left : !0;
2093
- }
2094
- Ye.setDefaultProps({
2095
- render: _n
2096
- });
2097
- const Qi = (e) => ({
2098
- name: "arrowDetected",
2099
- enabled: !0,
2100
- phase: "main",
2101
- fn: e,
2102
- requiresIfExists: ["offset"]
2103
- }), eo = [
2104
- "bottom",
2105
- "bottom-start",
2106
- "bottom-end",
2107
- "right",
2108
- "right-start",
2109
- "right-end",
2110
- "left",
2111
- "left-start",
2112
- "left-end",
2113
- "top",
2114
- "top-start",
2115
- "top-end"
2116
- ], to = [!0, !1, "reference", "popper"], no = (e, t) => {
2117
- const { contentElement: n } = { ...t };
2118
- return delete t.contentElement, Ye(e, {
2119
- ...t,
2120
- plugins: [Ji],
2121
- render: () => ao(n)
2122
- });
2123
- }, ro = ({
2124
- boundary: e = "clippingParents",
2125
- fallbackPlacements: t = [],
2126
- onChangePlacement: n = () => {
2127
- },
2128
- hasHideModifierEnabled: r = !1,
2129
- // If set to false the dialog will display over top of the anchor when there is insufficient space.
2130
- // if set to true it will never move from its position relative to the anchor and will clip instead.
2131
- tether: o = !0
2132
- } = {}) => ({
2133
- modifiers: [
2134
- {
2135
- name: "flip",
2136
- options: {
2137
- fallbackPlacements: t,
2138
- boundary: e
2139
- }
2140
- },
2141
- {
2142
- name: "hide",
2143
- enabled: r
2144
- },
2145
- {
2146
- name: "preventOverflow",
2147
- options: {
2148
- altAxis: !o,
2149
- tether: o
2150
- }
2151
- },
2152
- Qi(({ state: s }) => {
2153
- n(s.placement);
2154
- })
2155
- ]
2156
- }), io = (e) => {
2157
- const t = document.createElement("span");
2158
- return t.innerText = e.innerText || "", e.innerText = "", e.appendChild(t), t;
2159
- }, oo = (e) => {
2160
- const t = e == null ? void 0 : e.children[0];
2161
- return t || io(e);
2162
- }, ao = (e) => {
2163
- const t = document.createElement("div");
2164
- return t.className = "tippy-box d-ps-absolute", t.appendChild(e), {
2165
- popper: t
2166
- };
2167
- }, so = {
2168
- name: "DtTooltip",
2169
- components: {
2170
- DtLazyShow: hr
2171
- },
2172
- props: {
2173
- /**
2174
- * The id of the tooltip
2175
- */
2176
- id: {
2177
- type: String,
2178
- default() {
2179
- return rn();
2180
- }
2181
- },
2182
- /**
2183
- * If the popover does not fit in the direction described by "placement",
2184
- * it will attempt to change its direction to the "fallbackPlacements"
2185
- * if defined, otherwise it will automatically position to a new location
2186
- * as it sees best fit. See
2187
- * <a
2188
- * class="d-link"
2189
- * href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
2190
- * target="_blank"
2191
- * >
2192
- * Popper.js docs
2193
- * </a>
2194
- * */
2195
- fallbackPlacements: {
2196
- type: Array,
2197
- default: () => ["auto"]
2198
- },
2199
- /**
2200
- * If true, applies inverted styles to the tooltip
2201
- * @values true, false
2202
- */
2203
- inverted: {
2204
- type: Boolean,
2205
- default: !1
2206
- },
2207
- /**
2208
- * Displaces the tooltip from its reference element
2209
- * by the specified number of pixels. See
2210
- * <a
2211
- * class="d-link"
2212
- * href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
2213
- * target="_blank"
2214
- * >
2215
- * Tippy.js docs
2216
- * </a>
2217
- */
2218
- offset: {
2219
- type: Array,
2220
- default: () => [0, -4]
2221
- },
2222
- /**
2223
- * The direction the popover displays relative to the anchor. See
2224
- * <a
2225
- * class="d-link"
2226
- * href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
2227
- * target="_blank"
2228
- * >
2229
- * Tippy.js docs
2230
- * </a>
2231
- * @values top, top-start, top-end,
2232
- * right, right-start, right-end,
2233
- * left, left-start, left-end,
2234
- * bottom, bottom-start, bottom-end,
2235
- * auto, auto-start, auto-end
2236
- */
2237
- placement: {
2238
- type: String,
2239
- default: "top",
2240
- validator(e) {
2241
- return lo.includes(e);
2242
- }
2243
- },
2244
- /**
2245
- * If the tooltip sticks to the anchor. This is usually not needed, but can be needed
2246
- * if the reference element's position is animating, or to automatically update the popover
2247
- * position in those cases the DOM layout changes the reference element's position.
2248
- * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
2249
- * checks the "popper" rect for changes. See
2250
- * <a
2251
- * class="d-link"
2252
- * href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
2253
- * target="_blank"
2254
- * >
2255
- * Tippy.js docs
2256
- * </a>
2257
- * @values true, false, reference, popper
2258
- */
2259
- sticky: {
2260
- type: [Boolean, String],
2261
- default: !1,
2262
- validator: (e) => ho.includes(e)
2263
- },
2264
- /**
2265
- * Additional css classes for the tooltip content element.
2266
- * Can accept all of String, Object, and Array, i.e. has the
2267
- * same api as Vue's built-in handling of the class attribute.
2268
- */
2269
- contentClass: {
2270
- type: [String, Object, Array],
2271
- default: ""
2272
- },
2273
- /**
2274
- * A provided message for the tooltip content
2275
- */
2276
- message: {
2277
- type: String,
2278
- default: ""
2279
- },
2280
- /**
2281
- * Controls whether hover/focus causes the tooltip to appear.
2282
- * Cannot be combined with the show prop. show value will be ignored.
2283
- * by default this is true, if you override with false, the tooltip will never show up.
2284
- */
2285
- enabled: {
2286
- type: Boolean,
2287
- default: !0
2288
- },
2289
- /**
2290
- * Controls whether the tooltip is shown. Leaving this null will have the tooltip trigger on mouseover by default.
2291
- * If you set this value, the default mouseover behavior will be disabled and you can control it as you need.
2292
- * Supports .sync modifier
2293
- * @values null, true, false
2294
- */
2295
- show: {
2296
- type: Boolean,
2297
- default: null
2298
- },
2299
- /**
2300
- * Named transition when the content display is toggled.
2301
- * @see DtLazyShow
2302
- */
2303
- transition: {
2304
- type: String,
2305
- default: "fade"
2306
- },
2307
- /**
2308
- * Whether the tooltip will have a delay when being focused or moused over.
2309
- * @values true, false
2310
- */
2311
- delay: {
2312
- type: Boolean,
2313
- default: !0
2314
- },
2315
- /**
2316
- * External anchor id to use in those cases the anchor can't be provided via the slot.
2317
- * For instance, using the combobox's input as the anchor for the popover.
2318
- */
2319
- externalAnchor: {
2320
- type: String,
2321
- default: null
2322
- }
2323
- },
2324
- emits: [
2325
- /**
2326
- * Emitted when tooltip is shown or hidden
2327
- *
2328
- * @event shown
2329
- * @type {Boolean}
2330
- */
2331
- "shown",
2332
- /**
2333
- * Sync show value
2334
- *
2335
- * @event update:show
2336
- */
2337
- "update:show"
2338
- ],
2339
- data() {
2340
- return {
2341
- TOOLTIP_KIND_MODIFIERS: vo,
2342
- tip: null,
2343
- inTimer: null,
2344
- // Internal state for whether the tooltip is shown. Changing the prop
2345
- // will update this.
2346
- isShown: !1,
2347
- // this is where the placement currently is, this can be different than
2348
- // the placement prop when there is not enough available room for the tip
2349
- // to display and it uses a fallback placement.
2350
- currentPlacement: this.placement
2351
- };
2352
- },
2353
- computed: {
2354
- // whether the tooltip is visible or not.
2355
- isVisible() {
2356
- return this.isShown && this.enabled && (!!this.message.trim() || !!this.$slots.default);
2357
- },
2358
- tooltipListeners() {
2359
- return {
2360
- ...this.$listeners,
2361
- "after-leave": () => {
2362
- this.onLeaveTransitionComplete();
2363
- },
2364
- "after-enter": () => {
2365
- this.onEnterTransitionComplete();
2366
- }
2367
- };
2368
- },
2369
- tippyProps() {
2370
- return {
2371
- offset: this.offset,
2372
- interactive: !1,
2373
- trigger: "manual",
2374
- placement: this.placement,
2375
- sticky: this.sticky,
2376
- popperOptions: ro({
2377
- fallbackPlacements: this.fallbackPlacements,
2378
- hasHideModifierEnabled: !0,
2379
- onChangePlacement: this.onChangePlacement
2380
- })
2381
- };
2382
- },
2383
- anchor() {
2384
- return this.externalAnchor ? document.body.querySelector(this.externalAnchor) : oo(this.$refs.anchor);
2385
- }
2386
- },
2387
- watch: {
2388
- tippyProps: {
2389
- handler: "setProps",
2390
- deep: !0
2391
- },
2392
- show: {
2393
- handler: function(e) {
2394
- e !== null && (this.isShown = e);
2395
- },
2396
- immediate: !0
2397
- },
2398
- isShown(e) {
2399
- e ? (this.setProps(), this.tip.show()) : this.tip.hide();
2400
- },
2401
- sticky(e) {
2402
- this.tip.setProps({
2403
- sticky: e
2404
- });
2405
- }
2406
- },
2407
- mounted() {
2408
- !this.enabled && this.show != null && (console.warn("Tooltip: You cannot use both the enabled and show props at the same time."), console.warn("The show prop will be ignored.")), this.externalAnchor && this.addExternalAnchorEventListeners(), this.tip = no(this.anchor, this.initOptions()), this.isShown && this.tip.show();
2409
- },
2410
- beforeDestroy() {
2411
- var e;
2412
- this.externalAnchor && this.removeExternalAnchorEventListeners(), this.tip && ((e = this.tip) == null || e.destroy());
2413
- },
2414
- methods: {
2415
- calculateAnchorZindex() {
2416
- return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 651 when
2417
- // anchor of popover is within a drawer.
2418
- this.$el.closest(".d-zi-drawer") ? 651 : 400;
2419
- },
2420
- hasVisibleFocus() {
2421
- return this.anchor.matches(":focus-visible");
2422
- },
2423
- onEnterAnchor(e) {
2424
- this.delay ? this.inTimer = setTimeout((function(t) {
2425
- this.triggerShow(t);
2426
- }).bind(this, e), fo) : this.triggerShow(e);
2427
- },
2428
- triggerShow(e) {
2429
- e.type === "focusin" ? this.show === null && this.hasVisibleFocus() && (this.isShown = !0) : this.show === null && (this.isShown = !0);
2430
- },
2431
- onLeaveAnchor(e) {
2432
- e.type === "keydown" && e.code !== "Escape" || (clearTimeout(this.inTimer), this.triggerHide());
2433
- },
2434
- triggerHide() {
2435
- this.show === null && (this.isShown = !1);
2436
- },
2437
- onChangePlacement(e) {
2438
- this.currentPlacement = e;
2439
- },
2440
- onLeaveTransitionComplete() {
2441
- var e;
2442
- (e = this.tip) == null || e.unmount(), this.$emit("shown", !1), this.show !== null && this.$emit("update:show", !1);
2443
- },
2444
- onEnterTransitionComplete() {
2445
- this.$emit("shown", !0), this.show !== null && this.$emit("update:show", !0);
2446
- },
2447
- setProps() {
2448
- this.tip && this.tip.setProps && this.tip.setProps({
2449
- ...this.tippyProps,
2450
- zIndex: this.calculateAnchorZindex()
2451
- });
2452
- },
2453
- onMount() {
2454
- this.setProps();
2455
- },
2456
- initOptions() {
2457
- return {
2458
- contentElement: this.$refs.content.$el,
2459
- allowHTML: !0,
2460
- zIndex: this.calculateAnchorZindex(),
2461
- onMount: this.onMount,
2462
- ...this.tippyProps
2463
- };
2464
- },
2465
- addExternalAnchorEventListeners() {
2466
- ["focusin", "mouseenter"].forEach((e) => {
2467
- this.anchor.addEventListener(e, (t) => this.onEnterAnchor(t));
2468
- }), ["focusout", "mouseleave", "keydown"].forEach((e) => {
2469
- this.anchor.addEventListener(e, (t) => this.onLeaveAnchor(t));
2470
- });
2471
- },
2472
- removeExternalAnchorEventListeners() {
2473
- ["focusin", "mouseenter"].forEach((e) => {
2474
- this.anchor.removeEventListener(e, (t) => this.onEnterAnchor(t));
2475
- }), ["focusout", "mouseleave", "keydown"].forEach((e) => {
2476
- this.anchor.removeEventListener(e, (t) => this.onLeaveAnchor(t));
2477
- });
2478
- }
2479
- }
2480
- };
2481
- var uo = function() {
2482
- var t = this, n = t._self._c;
2483
- return n("div", { attrs: { "data-qa": "dt-tooltip-container" } }, [t.externalAnchor ? t._e() : n("span", { ref: "anchor", attrs: { "data-qa": "dt-tooltip-anchor" }, on: { focusin: t.onEnterAnchor, focusout: t.onLeaveAnchor, mouseenter: t.onEnterAnchor, mouseleave: t.onLeaveAnchor, keydown: function(r) {
2484
- return !r.type.indexOf("key") && t._k(r.keyCode, "esc", 27, r.key, ["Esc", "Escape"]) ? null : t.onLeaveAnchor.apply(null, arguments);
2485
- } } }, [t._t("anchor")], 2), n("dt-lazy-show", t._g({ ref: "content", class: [
2486
- "d-tooltip",
2487
- `d-tooltip__arrow-tippy--${t.currentPlacement}`,
2488
- {
2489
- [t.TOOLTIP_KIND_MODIFIERS.inverted]: t.inverted
2490
- },
2491
- t.contentClass
2492
- ], attrs: { id: t.id, show: t.isVisible, role: "tooltip", "aria-hidden": "false", "data-qa": "dt-tooltip", appear: "", transition: t.transition } }, t.tooltipListeners), [t._t("default", function() {
2493
- return [t._v(" " + t._s(t.message) + " ")];
2494
- })], 2)], 1);
2495
- }, co = [], po = /* @__PURE__ */ nn(
2496
- so,
2497
- uo,
2498
- co,
2499
- !1,
2500
- null,
2501
- null,
2502
- null,
2503
- null
2504
- );
2505
- const xo = po.exports, lo = [
2506
- ...eo
2507
- ], fo = 300, vo = {
2508
- hover: "d-tooltip--hover",
2509
- show: "d-tooltip--show",
2510
- inverted: "d-tooltip--inverted",
2511
- hide: "d-tooltip--hide"
2512
- }, ho = [
2513
- ...to
2514
- ], Ao = [!0, !1, "toggle"];
2515
- export {
2516
- xo as D,
2517
- Eo as E,
2518
- wo as L,
2519
- lo as T,
2520
- ge as V,
2521
- zn as a,
2522
- hr as b,
2523
- to as c,
2524
- ro as d,
2525
- no as e,
2526
- Gn as f,
2527
- rn as g,
2528
- an as h,
2529
- er as i,
2530
- Xn as j,
2531
- yo as k,
2532
- bo as l,
2533
- pr as m,
2534
- Fn as n,
2535
- fo as o,
2536
- vo as p,
2537
- ho as q,
2538
- Ao as r,
2539
- cr as s,
2540
- Oo as u
2541
- };