@clevertask/scribe 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/BarMenu-CXaFlpRJ.js +272 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.d.ts.map +1 -1
- package/dist/components/Menu/BarMenu.js +2 -10
- package/dist/components/Menu/BubbleMenu.d.ts.map +1 -1
- package/dist/components/Menu/BubbleMenu.js +165 -1023
- package/dist/components/Menu/LinkBubbleMenu.d.ts +8 -0
- package/dist/components/Menu/LinkBubbleMenu.d.ts.map +1 -0
- package/dist/components/Menu/LinkBubbleMenu.js +78 -0
- package/dist/components/Menu/LinkEditor.d.ts +14 -0
- package/dist/components/Menu/LinkEditor.d.ts.map +1 -0
- package/dist/components/Menu/LinkEditor.js +140 -0
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.js +38 -44
- package/dist/components/Menu/linkBubbleMenuPlugin.d.ts +5 -0
- package/dist/components/Menu/linkBubbleMenuPlugin.d.ts.map +1 -0
- package/dist/components/Menu/linkBubbleMenuPlugin.js +7 -0
- package/dist/components/Menu/linkUrl.d.ts +2 -0
- package/dist/components/Menu/linkUrl.d.ts.map +1 -0
- package/dist/components/Menu/linkUrl.js +21 -0
- package/dist/components/Scribe/extension/emoji/EmojiList.js +58 -45
- package/dist/components/Scribe/extension/emoji/suggest.d.ts +2 -2
- package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -1
- package/dist/components/Scribe/extension/emoji/suggest.js +39 -43
- package/dist/components/Scribe/extension/extension-link.d.ts.map +1 -1
- package/dist/components/Scribe/extension/extension-link.js +2 -4
- package/dist/components/Scribe/extension/extension-markdown-paste.d.ts.map +1 -1
- package/dist/components/Scribe/extension/extension-markdown-paste.js +50 -45
- package/dist/components/Scribe/extension/extension-selectedText.d.ts.map +1 -1
- package/dist/components/Scribe/extension/extension-selectedText.js +10 -12
- package/dist/components/Scribe/extension/getPopupMountTarget.d.ts.map +1 -1
- package/dist/components/Scribe/extension/getPopupMountTarget.js +12 -15
- package/dist/components/Scribe/extension/index.d.ts +4 -4
- package/dist/components/Scribe/extension/index.d.ts.map +1 -1
- package/dist/components/Scribe/extension/index.js +2 -39521
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +3369 -3731
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -6
- package/dist/components/Scribe/extension/slashCommand/items.d.ts.map +1 -1
- package/dist/components/Scribe/extension/slashCommand/items.js +177 -176
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts.map +1 -1
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +35 -41
- package/dist/components/Scribe/extension/tableOfContents.js +153 -180
- package/dist/components/Scribe/index.d.ts.map +1 -1
- package/dist/components/Scribe/index.js +113 -153
- package/dist/dist-BQjH-i-q.js +7016 -0
- package/dist/dist-CnXCIcnl.js +3506 -0
- package/dist/dist-Cp938P7P.js +689 -0
- package/dist/extension-CZOsheCI.js +56236 -0
- package/dist/extension-link-DZID_SYl.js +908 -0
- package/dist/floating-ui.dom-rih69525.js +928 -0
- package/dist/html-to-markdown-CrNOkSye.js +497 -0
- package/dist/icons/ToolbarIcons.d.ts.map +1 -1
- package/dist/icons/ToolbarIcons.js +76 -135
- package/dist/main.css +10 -0
- package/dist/main.js +7 -15
- package/dist/markdown-to-html-DEczPfuq.js +1458 -0
- package/dist/menus-CakIdDdY.js +633 -0
- package/dist/purify.es-DF9CW1cl.js +767 -0
- package/dist/rolldown-runtime-CtkjhSXr.js +4 -0
- package/dist/slashCommand-B7CRIaKG.js +429 -0
- package/dist/tables-CjOC70rm.js +1345 -0
- package/dist/tippy.esm-D9LL2xiE.js +1713 -0
- package/dist/utils/convert-legacy-math-delimiters.d.ts.map +1 -1
- package/dist/utils/convert-legacy-math-delimiters.js +7 -13
- package/dist/utils/create-scribe-editor.js +2 -31
- package/dist/utils/html-to-markdown.d.ts.map +1 -1
- package/dist/utils/html-to-markdown.js +2 -600
- package/dist/utils/index.js +24 -12
- package/dist/utils/is-in-viewport.d.ts.map +1 -1
- package/dist/utils/is-in-viewport.js +6 -6
- package/dist/utils/markdown-to-html.d.ts.map +1 -1
- package/dist/utils/markdown-to-html.js +2 -5
- package/dist/vite-env.d.js +0 -1
- package/package.json +38 -36
- package/dist/BarMenu-BNk2I0zi.js +0 -327
- package/dist/extension-link-P1rro4zO.js +0 -1059
- package/dist/floating-ui.dom-ZRy7FSVk.js +0 -1246
- package/dist/index-BMISMQrG.js +0 -855
- package/dist/index-ByyiiYsp.js +0 -1410
- package/dist/index-CnKS-BY2.js +0 -13834
- package/dist/index-CnQHDObA.js +0 -539
- package/dist/markdown-to-html-Bw9L43K6.js +0 -1135
- package/dist/purify.es-DC1iJOxX.js +0 -864
- package/dist/tippy.esm-DLHdsnfG.js +0 -1711
|
@@ -0,0 +1,1713 @@
|
|
|
1
|
+
var e = "bottom", t = "right", n = "left", r = "auto", i = [
|
|
2
|
+
"top",
|
|
3
|
+
e,
|
|
4
|
+
t,
|
|
5
|
+
n
|
|
6
|
+
], a = "start", o = "clippingParents", s = "viewport", c = "popper", l = "reference", u = /*#__PURE__*/ i.reduce(function(e, t) {
|
|
7
|
+
return e.concat([t + "-" + a, t + "-end"]);
|
|
8
|
+
}, []), d = /*#__PURE__*/ [].concat(i, [r]).reduce(function(e, t) {
|
|
9
|
+
return e.concat([
|
|
10
|
+
t,
|
|
11
|
+
t + "-" + a,
|
|
12
|
+
t + "-end"
|
|
13
|
+
]);
|
|
14
|
+
}, []), f = [
|
|
15
|
+
"beforeRead",
|
|
16
|
+
"read",
|
|
17
|
+
"afterRead",
|
|
18
|
+
"beforeMain",
|
|
19
|
+
"main",
|
|
20
|
+
"afterMain",
|
|
21
|
+
"beforeWrite",
|
|
22
|
+
"write",
|
|
23
|
+
"afterWrite"
|
|
24
|
+
];
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
|
|
27
|
+
function p(e) {
|
|
28
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
32
|
+
function m(e) {
|
|
33
|
+
if (e == null) return window;
|
|
34
|
+
if (e.toString() !== "[object Window]") {
|
|
35
|
+
var t = e.ownerDocument;
|
|
36
|
+
return t && t.defaultView || window;
|
|
37
|
+
}
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
|
|
42
|
+
function h(e) {
|
|
43
|
+
return e instanceof m(e).Element || e instanceof Element;
|
|
44
|
+
}
|
|
45
|
+
function g(e) {
|
|
46
|
+
return e instanceof m(e).HTMLElement || e instanceof HTMLElement;
|
|
47
|
+
}
|
|
48
|
+
function _(e) {
|
|
49
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof m(e).ShadowRoot || e instanceof ShadowRoot;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.js
|
|
53
|
+
function v(e) {
|
|
54
|
+
var t = e.state;
|
|
55
|
+
Object.keys(t.elements).forEach(function(e) {
|
|
56
|
+
var n = t.styles[e] || {}, r = t.attributes[e] || {}, i = t.elements[e];
|
|
57
|
+
!g(i) || !p(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(e) {
|
|
58
|
+
var t = r[e];
|
|
59
|
+
t === !1 ? i.removeAttribute(e) : i.setAttribute(e, t === !0 ? "" : t);
|
|
60
|
+
}));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function y(e) {
|
|
64
|
+
var t = e.state, n = {
|
|
65
|
+
popper: {
|
|
66
|
+
position: t.options.strategy,
|
|
67
|
+
left: "0",
|
|
68
|
+
top: "0",
|
|
69
|
+
margin: "0"
|
|
70
|
+
},
|
|
71
|
+
arrow: { position: "absolute" },
|
|
72
|
+
reference: {}
|
|
73
|
+
};
|
|
74
|
+
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
75
|
+
Object.keys(t.elements).forEach(function(e) {
|
|
76
|
+
var r = t.elements[e], i = t.attributes[e] || {}, a = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(function(e, t) {
|
|
77
|
+
return e[t] = "", e;
|
|
78
|
+
}, {});
|
|
79
|
+
!g(r) || !p(r) || (Object.assign(r.style, a), Object.keys(i).forEach(function(e) {
|
|
80
|
+
r.removeAttribute(e);
|
|
81
|
+
}));
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
var b = {
|
|
86
|
+
name: "applyStyles",
|
|
87
|
+
enabled: !0,
|
|
88
|
+
phase: "write",
|
|
89
|
+
fn: v,
|
|
90
|
+
effect: y,
|
|
91
|
+
requires: ["computeStyles"]
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.js
|
|
95
|
+
function x(e) {
|
|
96
|
+
return e.split("-")[0];
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/math.js
|
|
100
|
+
var S = Math.max, C = Math.min, w = Math.round;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.js
|
|
103
|
+
function T() {
|
|
104
|
+
var e = navigator.userAgentData;
|
|
105
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
|
|
106
|
+
return e.brand + "/" + e.version;
|
|
107
|
+
}).join(" ") : navigator.userAgent;
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
|
|
111
|
+
function E() {
|
|
112
|
+
return !/^((?!chrome|android).)*safari/i.test(T());
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
116
|
+
function D(e, t, n) {
|
|
117
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
118
|
+
var r = e.getBoundingClientRect(), i = 1, a = 1;
|
|
119
|
+
t && g(e) && (i = e.offsetWidth > 0 && w(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && w(r.height) / e.offsetHeight || 1);
|
|
120
|
+
var o = (h(e) ? m(e) : window).visualViewport, s = !E() && n, c = (r.left + (s && o ? o.offsetLeft : 0)) / i, l = (r.top + (s && o ? o.offsetTop : 0)) / a, u = r.width / i, d = r.height / a;
|
|
121
|
+
return {
|
|
122
|
+
width: u,
|
|
123
|
+
height: d,
|
|
124
|
+
top: l,
|
|
125
|
+
right: c + u,
|
|
126
|
+
bottom: l + d,
|
|
127
|
+
left: c,
|
|
128
|
+
x: c,
|
|
129
|
+
y: l
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
|
|
134
|
+
function O(e) {
|
|
135
|
+
var t = D(e), n = e.offsetWidth, r = e.offsetHeight;
|
|
136
|
+
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
|
|
137
|
+
x: e.offsetLeft,
|
|
138
|
+
y: e.offsetTop,
|
|
139
|
+
width: n,
|
|
140
|
+
height: r
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.js
|
|
145
|
+
function k(e, t) {
|
|
146
|
+
var n = t.getRootNode && t.getRootNode();
|
|
147
|
+
if (e.contains(t)) return !0;
|
|
148
|
+
if (n && _(n)) {
|
|
149
|
+
var r = t;
|
|
150
|
+
do {
|
|
151
|
+
if (r && e.isSameNode(r)) return !0;
|
|
152
|
+
r = r.parentNode || r.host;
|
|
153
|
+
} while (r);
|
|
154
|
+
}
|
|
155
|
+
return !1;
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
|
|
159
|
+
function A(e) {
|
|
160
|
+
return m(e).getComputedStyle(e);
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
|
|
164
|
+
function j(e) {
|
|
165
|
+
return [
|
|
166
|
+
"table",
|
|
167
|
+
"td",
|
|
168
|
+
"th"
|
|
169
|
+
].indexOf(p(e)) >= 0;
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
|
|
173
|
+
function M(e) {
|
|
174
|
+
return ((h(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
|
|
178
|
+
function N(e) {
|
|
179
|
+
return p(e) === "html" ? e : e.assignedSlot || e.parentNode || (_(e) ? e.host : null) || M(e);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
|
|
183
|
+
function P(e) {
|
|
184
|
+
return !g(e) || A(e).position === "fixed" ? null : e.offsetParent;
|
|
185
|
+
}
|
|
186
|
+
function F(e) {
|
|
187
|
+
var t = /firefox/i.test(T());
|
|
188
|
+
if (/Trident/i.test(T()) && g(e) && A(e).position === "fixed") return null;
|
|
189
|
+
var n = N(e);
|
|
190
|
+
for (_(n) && (n = n.host); g(n) && ["html", "body"].indexOf(p(n)) < 0;) {
|
|
191
|
+
var r = A(n);
|
|
192
|
+
if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none") return n;
|
|
193
|
+
n = n.parentNode;
|
|
194
|
+
}
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
function I(e) {
|
|
198
|
+
for (var t = m(e), n = P(e); n && j(n) && A(n).position === "static";) n = P(n);
|
|
199
|
+
return n && (p(n) === "html" || p(n) === "body" && A(n).position === "static") ? t : n || F(e) || t;
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
|
|
203
|
+
function L(e) {
|
|
204
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/within.js
|
|
208
|
+
function R(e, t, n) {
|
|
209
|
+
return S(e, C(t, n));
|
|
210
|
+
}
|
|
211
|
+
function z(e, t, n) {
|
|
212
|
+
var r = R(e, t, n);
|
|
213
|
+
return r > n ? n : r;
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
|
|
217
|
+
function ee() {
|
|
218
|
+
return {
|
|
219
|
+
top: 0,
|
|
220
|
+
right: 0,
|
|
221
|
+
bottom: 0,
|
|
222
|
+
left: 0
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
|
|
227
|
+
function B(e) {
|
|
228
|
+
return Object.assign({}, ee(), e);
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.js
|
|
232
|
+
function V(e, t) {
|
|
233
|
+
return t.reduce(function(t, n) {
|
|
234
|
+
return t[n] = e, t;
|
|
235
|
+
}, {});
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.js
|
|
239
|
+
var H = function(e, t) {
|
|
240
|
+
return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, B(typeof e == "number" ? V(e, i) : e);
|
|
241
|
+
};
|
|
242
|
+
function U(r) {
|
|
243
|
+
var i, a = r.state, o = r.name, s = r.options, c = a.elements.arrow, l = a.modifiersData.popperOffsets, u = x(a.placement), d = L(u), f = ["left", "right"].indexOf(u) >= 0 ? "height" : "width";
|
|
244
|
+
if (!(!c || !l)) {
|
|
245
|
+
var p = H(s.padding, a), m = O(c), h = d === "y" ? "top" : n, g = d === "y" ? e : t, _ = a.rects.reference[f] + a.rects.reference[d] - l[d] - a.rects.popper[f], v = l[d] - a.rects.reference[d], y = I(c), b = y ? d === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, S = _ / 2 - v / 2, C = p[h], w = b - m[f] - p[g], T = b / 2 - m[f] / 2 + S, E = R(C, T, w), D = d;
|
|
246
|
+
a.modifiersData[o] = (i = {}, i[D] = E, i.centerOffset = E - T, i);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
function W(e) {
|
|
250
|
+
var t = e.state, n = e.options.element, r = n === void 0 ? "[data-popper-arrow]" : n;
|
|
251
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || k(t.elements.popper, r) && (t.elements.arrow = r));
|
|
252
|
+
}
|
|
253
|
+
var te = {
|
|
254
|
+
name: "arrow",
|
|
255
|
+
enabled: !0,
|
|
256
|
+
phase: "main",
|
|
257
|
+
fn: U,
|
|
258
|
+
effect: W,
|
|
259
|
+
requires: ["popperOffsets"],
|
|
260
|
+
requiresIfExists: ["preventOverflow"]
|
|
261
|
+
};
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.js
|
|
264
|
+
function G(e) {
|
|
265
|
+
return e.split("-")[1];
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.js
|
|
269
|
+
var ne = {
|
|
270
|
+
top: "auto",
|
|
271
|
+
right: "auto",
|
|
272
|
+
bottom: "auto",
|
|
273
|
+
left: "auto"
|
|
274
|
+
};
|
|
275
|
+
function re(e, t) {
|
|
276
|
+
var n = e.x, r = e.y, i = t.devicePixelRatio || 1;
|
|
277
|
+
return {
|
|
278
|
+
x: w(n * i) / i || 0,
|
|
279
|
+
y: w(r * i) / i || 0
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
function ie(r) {
|
|
283
|
+
var i, a = r.popper, o = r.popperRect, s = r.placement, c = r.variation, l = r.offsets, u = r.position, d = r.gpuAcceleration, f = r.adaptive, p = r.roundOffsets, h = r.isFixed, g = l.x, _ = g === void 0 ? 0 : g, v = l.y, y = v === void 0 ? 0 : v, b = typeof p == "function" ? p({
|
|
284
|
+
x: _,
|
|
285
|
+
y
|
|
286
|
+
}) : {
|
|
287
|
+
x: _,
|
|
288
|
+
y
|
|
289
|
+
};
|
|
290
|
+
_ = b.x, y = b.y;
|
|
291
|
+
var x = l.hasOwnProperty("x"), S = l.hasOwnProperty("y"), C = n, w = "top", T = window;
|
|
292
|
+
if (f) {
|
|
293
|
+
var E = I(a), D = "clientHeight", O = "clientWidth";
|
|
294
|
+
if (E === m(a) && (E = M(a), A(E).position !== "static" && u === "absolute" && (D = "scrollHeight", O = "scrollWidth")), E = E, s === "top" || (s === "left" || s === "right") && c === "end") {
|
|
295
|
+
w = e;
|
|
296
|
+
var k = h && E === T && T.visualViewport ? T.visualViewport.height : E[D];
|
|
297
|
+
y -= k - o.height, y *= d ? 1 : -1;
|
|
298
|
+
}
|
|
299
|
+
if (s === "left" || (s === "top" || s === "bottom") && c === "end") {
|
|
300
|
+
C = t;
|
|
301
|
+
var j = h && E === T && T.visualViewport ? T.visualViewport.width : E[O];
|
|
302
|
+
_ -= j - o.width, _ *= d ? 1 : -1;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
var N = Object.assign({ position: u }, f && ne), P = p === !0 ? re({
|
|
306
|
+
x: _,
|
|
307
|
+
y
|
|
308
|
+
}, m(a)) : {
|
|
309
|
+
x: _,
|
|
310
|
+
y
|
|
311
|
+
};
|
|
312
|
+
if (_ = P.x, y = P.y, d) {
|
|
313
|
+
var F;
|
|
314
|
+
return Object.assign({}, N, (F = {}, F[w] = S ? "0" : "", F[C] = x ? "0" : "", F.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + _ + "px, " + y + "px)" : "translate3d(" + _ + "px, " + y + "px, 0)", F));
|
|
315
|
+
}
|
|
316
|
+
return Object.assign({}, N, (i = {}, i[w] = S ? y + "px" : "", i[C] = x ? _ + "px" : "", i.transform = "", i));
|
|
317
|
+
}
|
|
318
|
+
function ae(e) {
|
|
319
|
+
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 || r, a = n.adaptive, o = a === void 0 || a, s = n.roundOffsets, c = s === void 0 || s, l = {
|
|
320
|
+
placement: x(t.placement),
|
|
321
|
+
variation: G(t.placement),
|
|
322
|
+
popper: t.elements.popper,
|
|
323
|
+
popperRect: t.rects.popper,
|
|
324
|
+
gpuAcceleration: i,
|
|
325
|
+
isFixed: t.options.strategy === "fixed"
|
|
326
|
+
};
|
|
327
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, ie(Object.assign({}, l, {
|
|
328
|
+
offsets: t.modifiersData.popperOffsets,
|
|
329
|
+
position: t.options.strategy,
|
|
330
|
+
adaptive: o,
|
|
331
|
+
roundOffsets: c
|
|
332
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ie(Object.assign({}, l, {
|
|
333
|
+
offsets: t.modifiersData.arrow,
|
|
334
|
+
position: "absolute",
|
|
335
|
+
adaptive: !1,
|
|
336
|
+
roundOffsets: c
|
|
337
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
|
|
338
|
+
}
|
|
339
|
+
var oe = {
|
|
340
|
+
name: "computeStyles",
|
|
341
|
+
enabled: !0,
|
|
342
|
+
phase: "beforeWrite",
|
|
343
|
+
fn: ae,
|
|
344
|
+
data: {}
|
|
345
|
+
}, K = { passive: !0 };
|
|
346
|
+
function se(e) {
|
|
347
|
+
var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 || i, o = r.resize, s = o === void 0 || o, c = m(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
348
|
+
return a && l.forEach(function(e) {
|
|
349
|
+
e.addEventListener("scroll", n.update, K);
|
|
350
|
+
}), s && c.addEventListener("resize", n.update, K), function() {
|
|
351
|
+
a && l.forEach(function(e) {
|
|
352
|
+
e.removeEventListener("scroll", n.update, K);
|
|
353
|
+
}), s && c.removeEventListener("resize", n.update, K);
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
var ce = {
|
|
357
|
+
name: "eventListeners",
|
|
358
|
+
enabled: !0,
|
|
359
|
+
phase: "write",
|
|
360
|
+
fn: function() {},
|
|
361
|
+
effect: se,
|
|
362
|
+
data: {}
|
|
363
|
+
}, q = {
|
|
364
|
+
left: "right",
|
|
365
|
+
right: "left",
|
|
366
|
+
bottom: "top",
|
|
367
|
+
top: "bottom"
|
|
368
|
+
};
|
|
369
|
+
function J(e) {
|
|
370
|
+
return e.replace(/left|right|bottom|top/g, function(e) {
|
|
371
|
+
return q[e];
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
|
|
376
|
+
var le = {
|
|
377
|
+
start: "end",
|
|
378
|
+
end: "start"
|
|
379
|
+
};
|
|
380
|
+
function ue(e) {
|
|
381
|
+
return e.replace(/start|end/g, function(e) {
|
|
382
|
+
return le[e];
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
|
|
387
|
+
function de(e) {
|
|
388
|
+
var t = m(e);
|
|
389
|
+
return {
|
|
390
|
+
scrollLeft: t.pageXOffset,
|
|
391
|
+
scrollTop: t.pageYOffset
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
|
|
396
|
+
function fe(e) {
|
|
397
|
+
return D(M(e)).left + de(e).scrollLeft;
|
|
398
|
+
}
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
|
|
401
|
+
function pe(e, t) {
|
|
402
|
+
var n = m(e), r = M(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
403
|
+
if (i) {
|
|
404
|
+
a = i.width, o = i.height;
|
|
405
|
+
var l = E();
|
|
406
|
+
(l || !l && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
407
|
+
}
|
|
408
|
+
return {
|
|
409
|
+
width: a,
|
|
410
|
+
height: o,
|
|
411
|
+
x: s + fe(e),
|
|
412
|
+
y: c
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
//#endregion
|
|
416
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
|
|
417
|
+
function me(e) {
|
|
418
|
+
var t = M(e), n = de(e), r = e.ownerDocument?.body, i = S(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = S(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), o = -n.scrollLeft + fe(e), s = -n.scrollTop;
|
|
419
|
+
return A(r || t).direction === "rtl" && (o += S(t.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
420
|
+
width: i,
|
|
421
|
+
height: a,
|
|
422
|
+
x: o,
|
|
423
|
+
y: s
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
|
|
428
|
+
function he(e) {
|
|
429
|
+
var t = A(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
|
|
430
|
+
return /auto|scroll|overlay|hidden/.test(n + i + r);
|
|
431
|
+
}
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
|
|
434
|
+
function ge(e) {
|
|
435
|
+
return [
|
|
436
|
+
"html",
|
|
437
|
+
"body",
|
|
438
|
+
"#document"
|
|
439
|
+
].indexOf(p(e)) >= 0 ? e.ownerDocument.body : g(e) && he(e) ? e : ge(N(e));
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
|
|
443
|
+
function Y(e, t) {
|
|
444
|
+
t === void 0 && (t = []);
|
|
445
|
+
var n = ge(e), r = n === e.ownerDocument?.body, i = m(n), a = r ? [i].concat(i.visualViewport || [], he(n) ? n : []) : n, o = t.concat(a);
|
|
446
|
+
return r ? o : o.concat(Y(N(a)));
|
|
447
|
+
}
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.js
|
|
450
|
+
function X(e) {
|
|
451
|
+
return Object.assign({}, e, {
|
|
452
|
+
left: e.x,
|
|
453
|
+
top: e.y,
|
|
454
|
+
right: e.x + e.width,
|
|
455
|
+
bottom: e.y + e.height
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
//#endregion
|
|
459
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
|
|
460
|
+
function _e(e, t) {
|
|
461
|
+
var n = D(e, !1, t === "fixed");
|
|
462
|
+
return n.top += e.clientTop, 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;
|
|
463
|
+
}
|
|
464
|
+
function ve(e, t, n) {
|
|
465
|
+
return t === "viewport" ? X(pe(e, n)) : h(t) ? _e(t, n) : X(me(M(e)));
|
|
466
|
+
}
|
|
467
|
+
function ye(e) {
|
|
468
|
+
var t = Y(N(e)), n = ["absolute", "fixed"].indexOf(A(e).position) >= 0 && g(e) ? I(e) : e;
|
|
469
|
+
return h(n) ? t.filter(function(e) {
|
|
470
|
+
return h(e) && k(e, n) && p(e) !== "body";
|
|
471
|
+
}) : [];
|
|
472
|
+
}
|
|
473
|
+
function be(e, t, n, r) {
|
|
474
|
+
var i = t === "clippingParents" ? ye(e) : [].concat(t), a = [].concat(i, [n]), o = a[0], s = a.reduce(function(t, n) {
|
|
475
|
+
var i = ve(e, n, r);
|
|
476
|
+
return t.top = S(i.top, t.top), t.right = C(i.right, t.right), t.bottom = C(i.bottom, t.bottom), t.left = S(i.left, t.left), t;
|
|
477
|
+
}, ve(e, o, r));
|
|
478
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
479
|
+
}
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.js
|
|
482
|
+
function xe(r) {
|
|
483
|
+
var i = r.reference, o = r.element, s = r.placement, c = s ? x(s) : null, l = s ? G(s) : null, u = i.x + i.width / 2 - o.width / 2, d = i.y + i.height / 2 - o.height / 2, f;
|
|
484
|
+
switch (c) {
|
|
485
|
+
case "top":
|
|
486
|
+
f = {
|
|
487
|
+
x: u,
|
|
488
|
+
y: i.y - o.height
|
|
489
|
+
};
|
|
490
|
+
break;
|
|
491
|
+
case e:
|
|
492
|
+
f = {
|
|
493
|
+
x: u,
|
|
494
|
+
y: i.y + i.height
|
|
495
|
+
};
|
|
496
|
+
break;
|
|
497
|
+
case t:
|
|
498
|
+
f = {
|
|
499
|
+
x: i.x + i.width,
|
|
500
|
+
y: d
|
|
501
|
+
};
|
|
502
|
+
break;
|
|
503
|
+
case n:
|
|
504
|
+
f = {
|
|
505
|
+
x: i.x - o.width,
|
|
506
|
+
y: d
|
|
507
|
+
};
|
|
508
|
+
break;
|
|
509
|
+
default: f = {
|
|
510
|
+
x: i.x,
|
|
511
|
+
y: i.y
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
var p = c ? L(c) : null;
|
|
515
|
+
if (p != null) {
|
|
516
|
+
var m = p === "y" ? "height" : "width";
|
|
517
|
+
switch (l) {
|
|
518
|
+
case a:
|
|
519
|
+
f[p] = f[p] - (i[m] / 2 - o[m] / 2);
|
|
520
|
+
break;
|
|
521
|
+
case "end":
|
|
522
|
+
f[p] = f[p] + (i[m] / 2 - o[m] / 2);
|
|
523
|
+
break;
|
|
524
|
+
default:
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return f;
|
|
528
|
+
}
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.js
|
|
531
|
+
function Se(e, t) {
|
|
532
|
+
t === void 0 && (t = {});
|
|
533
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, u = n.strategy, d = u === void 0 ? e.strategy : u, f = n.boundary, p = f === void 0 ? o : f, m = n.rootBoundary, g = m === void 0 ? s : m, _ = n.elementContext, v = _ === void 0 ? c : _, y = n.altBoundary, b = y !== void 0 && y, x = n.padding, S = x === void 0 ? 0 : x, C = B(typeof S == "number" ? V(S, i) : S), w = v === "popper" ? l : c, T = e.rects.popper, E = e.elements[b ? w : v], O = be(h(E) ? E : E.contextElement || M(e.elements.popper), p, g, d), k = D(e.elements.reference), A = xe({
|
|
534
|
+
reference: k,
|
|
535
|
+
element: T,
|
|
536
|
+
strategy: "absolute",
|
|
537
|
+
placement: a
|
|
538
|
+
}), j = X(Object.assign({}, T, A)), N = v === "popper" ? j : k, P = {
|
|
539
|
+
top: O.top - N.top + C.top,
|
|
540
|
+
bottom: N.bottom - O.bottom + C.bottom,
|
|
541
|
+
left: O.left - N.left + C.left,
|
|
542
|
+
right: N.right - O.right + C.right
|
|
543
|
+
}, F = e.modifiersData.offset;
|
|
544
|
+
if (v === "popper" && F) {
|
|
545
|
+
var I = F[a];
|
|
546
|
+
Object.keys(P).forEach(function(e) {
|
|
547
|
+
var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
|
|
548
|
+
P[e] += I[n] * t;
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
return P;
|
|
552
|
+
}
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
|
|
555
|
+
function Ce(e, t) {
|
|
556
|
+
t === void 0 && (t = {});
|
|
557
|
+
var n = t, r = n.placement, a = n.boundary, o = n.rootBoundary, s = n.padding, c = n.flipVariations, l = n.allowedAutoPlacements, f = l === void 0 ? d : l, p = G(r), m = p ? c ? u : u.filter(function(e) {
|
|
558
|
+
return G(e) === p;
|
|
559
|
+
}) : i, h = m.filter(function(e) {
|
|
560
|
+
return f.indexOf(e) >= 0;
|
|
561
|
+
});
|
|
562
|
+
h.length === 0 && (h = m);
|
|
563
|
+
var g = h.reduce(function(t, n) {
|
|
564
|
+
return t[n] = Se(e, {
|
|
565
|
+
placement: n,
|
|
566
|
+
boundary: a,
|
|
567
|
+
rootBoundary: o,
|
|
568
|
+
padding: s
|
|
569
|
+
})[x(n)], t;
|
|
570
|
+
}, {});
|
|
571
|
+
return Object.keys(g).sort(function(e, t) {
|
|
572
|
+
return g[e] - g[t];
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.js
|
|
577
|
+
function we(e) {
|
|
578
|
+
if (x(e) === "auto") return [];
|
|
579
|
+
var t = J(e);
|
|
580
|
+
return [
|
|
581
|
+
ue(e),
|
|
582
|
+
t,
|
|
583
|
+
ue(t)
|
|
584
|
+
];
|
|
585
|
+
}
|
|
586
|
+
function Te(r) {
|
|
587
|
+
var i = r.state, o = r.options, s = r.name;
|
|
588
|
+
if (!i.modifiersData[s]._skip) {
|
|
589
|
+
for (var c = o.mainAxis, l = c === void 0 || c, u = o.altAxis, d = u === void 0 || u, f = o.fallbackPlacements, p = o.padding, m = o.boundary, h = o.rootBoundary, g = o.altBoundary, _ = o.flipVariations, v = _ === void 0 || _, y = o.allowedAutoPlacements, b = i.options.placement, S = x(b) === b, C = f || (S || !v ? [J(b)] : we(b)), w = [b].concat(C).reduce(function(e, t) {
|
|
590
|
+
return e.concat(x(t) === "auto" ? Ce(i, {
|
|
591
|
+
placement: t,
|
|
592
|
+
boundary: m,
|
|
593
|
+
rootBoundary: h,
|
|
594
|
+
padding: p,
|
|
595
|
+
flipVariations: v,
|
|
596
|
+
allowedAutoPlacements: y
|
|
597
|
+
}) : t);
|
|
598
|
+
}, []), T = i.rects.reference, E = i.rects.popper, D = /* @__PURE__ */ new Map(), O = !0, k = w[0], A = 0; A < w.length; A++) {
|
|
599
|
+
var j = w[A], M = x(j), N = G(j) === a, P = ["top", e].indexOf(M) >= 0, F = P ? "width" : "height", I = Se(i, {
|
|
600
|
+
placement: j,
|
|
601
|
+
boundary: m,
|
|
602
|
+
rootBoundary: h,
|
|
603
|
+
altBoundary: g,
|
|
604
|
+
padding: p
|
|
605
|
+
}), L = P ? N ? t : n : N ? e : "top";
|
|
606
|
+
T[F] > E[F] && (L = J(L));
|
|
607
|
+
var R = J(L), z = [];
|
|
608
|
+
if (l && z.push(I[M] <= 0), d && z.push(I[L] <= 0, I[R] <= 0), z.every(function(e) {
|
|
609
|
+
return e;
|
|
610
|
+
})) {
|
|
611
|
+
k = j, O = !1;
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
D.set(j, z);
|
|
615
|
+
}
|
|
616
|
+
if (O) for (var ee = v ? 3 : 1, B = function(e) {
|
|
617
|
+
var t = w.find(function(t) {
|
|
618
|
+
var n = D.get(t);
|
|
619
|
+
if (n) return n.slice(0, e).every(function(e) {
|
|
620
|
+
return e;
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
if (t) return k = t, "break";
|
|
624
|
+
}, V = ee; V > 0 && B(V) !== "break"; V--);
|
|
625
|
+
i.placement !== k && (i.modifiersData[s]._skip = !0, i.placement = k, i.reset = !0);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
var Ee = {
|
|
629
|
+
name: "flip",
|
|
630
|
+
enabled: !0,
|
|
631
|
+
phase: "main",
|
|
632
|
+
fn: Te,
|
|
633
|
+
requiresIfExists: ["offset"],
|
|
634
|
+
data: { _skip: !1 }
|
|
635
|
+
};
|
|
636
|
+
//#endregion
|
|
637
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.js
|
|
638
|
+
function De(e, t, n) {
|
|
639
|
+
return n === void 0 && (n = {
|
|
640
|
+
x: 0,
|
|
641
|
+
y: 0
|
|
642
|
+
}), {
|
|
643
|
+
top: e.top - t.height - n.y,
|
|
644
|
+
right: e.right - t.width + n.x,
|
|
645
|
+
bottom: e.bottom - t.height + n.y,
|
|
646
|
+
left: e.left - t.width - n.x
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
function Oe(r) {
|
|
650
|
+
return [
|
|
651
|
+
"top",
|
|
652
|
+
t,
|
|
653
|
+
e,
|
|
654
|
+
n
|
|
655
|
+
].some(function(e) {
|
|
656
|
+
return r[e] >= 0;
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
function ke(e) {
|
|
660
|
+
var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o = Se(t, { elementContext: "reference" }), s = Se(t, { altBoundary: !0 }), c = De(o, r), l = De(s, i, a), u = Oe(c), d = Oe(l);
|
|
661
|
+
t.modifiersData[n] = {
|
|
662
|
+
referenceClippingOffsets: c,
|
|
663
|
+
popperEscapeOffsets: l,
|
|
664
|
+
isReferenceHidden: u,
|
|
665
|
+
hasPopperEscaped: d
|
|
666
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
667
|
+
"data-popper-reference-hidden": u,
|
|
668
|
+
"data-popper-escaped": d
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
var Ae = {
|
|
672
|
+
name: "hide",
|
|
673
|
+
enabled: !0,
|
|
674
|
+
phase: "main",
|
|
675
|
+
requiresIfExists: ["preventOverflow"],
|
|
676
|
+
fn: ke
|
|
677
|
+
};
|
|
678
|
+
//#endregion
|
|
679
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.js
|
|
680
|
+
function je(e, t, n) {
|
|
681
|
+
var r = x(e), i = ["left", "top"].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, o = a[0], s = a[1];
|
|
682
|
+
return o ||= 0, s = (s || 0) * i, ["left", "right"].indexOf(r) >= 0 ? {
|
|
683
|
+
x: s,
|
|
684
|
+
y: o
|
|
685
|
+
} : {
|
|
686
|
+
x: o,
|
|
687
|
+
y: s
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
function Me(e) {
|
|
691
|
+
var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = d.reduce(function(e, n) {
|
|
692
|
+
return e[n] = je(n, t.rects, a), e;
|
|
693
|
+
}, {}), s = o[t.placement], c = s.x, l = s.y;
|
|
694
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = o;
|
|
695
|
+
}
|
|
696
|
+
var Ne = {
|
|
697
|
+
name: "offset",
|
|
698
|
+
enabled: !0,
|
|
699
|
+
phase: "main",
|
|
700
|
+
requires: ["popperOffsets"],
|
|
701
|
+
fn: Me
|
|
702
|
+
};
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
|
|
705
|
+
function Pe(e) {
|
|
706
|
+
var t = e.state, n = e.name;
|
|
707
|
+
t.modifiersData[n] = xe({
|
|
708
|
+
reference: t.rects.reference,
|
|
709
|
+
element: t.rects.popper,
|
|
710
|
+
strategy: "absolute",
|
|
711
|
+
placement: t.placement
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
var Fe = {
|
|
715
|
+
name: "popperOffsets",
|
|
716
|
+
enabled: !0,
|
|
717
|
+
phase: "read",
|
|
718
|
+
fn: Pe,
|
|
719
|
+
data: {}
|
|
720
|
+
};
|
|
721
|
+
//#endregion
|
|
722
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.js
|
|
723
|
+
function Ie(e) {
|
|
724
|
+
return e === "x" ? "y" : "x";
|
|
725
|
+
}
|
|
726
|
+
//#endregion
|
|
727
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
|
|
728
|
+
function Le(r) {
|
|
729
|
+
var i = r.state, a = r.options, o = r.name, s = a.mainAxis, c = s === void 0 || s, l = a.altAxis, u = l !== void 0 && l, d = a.boundary, f = a.rootBoundary, p = a.altBoundary, m = a.padding, h = a.tether, g = h === void 0 || h, _ = a.tetherOffset, v = _ === void 0 ? 0 : _, y = Se(i, {
|
|
730
|
+
boundary: d,
|
|
731
|
+
rootBoundary: f,
|
|
732
|
+
padding: m,
|
|
733
|
+
altBoundary: p
|
|
734
|
+
}), b = x(i.placement), w = G(i.placement), T = !w, E = L(b), D = Ie(E), k = i.modifiersData.popperOffsets, A = i.rects.reference, j = i.rects.popper, M = typeof v == "function" ? v(Object.assign({}, i.rects, { placement: i.placement })) : v, N = typeof M == "number" ? {
|
|
735
|
+
mainAxis: M,
|
|
736
|
+
altAxis: M
|
|
737
|
+
} : Object.assign({
|
|
738
|
+
mainAxis: 0,
|
|
739
|
+
altAxis: 0
|
|
740
|
+
}, M), P = i.modifiersData.offset ? i.modifiersData.offset[i.placement] : null, F = {
|
|
741
|
+
x: 0,
|
|
742
|
+
y: 0
|
|
743
|
+
};
|
|
744
|
+
if (k) {
|
|
745
|
+
if (c) {
|
|
746
|
+
var B = E === "y" ? "top" : n, V = E === "y" ? e : t, H = E === "y" ? "height" : "width", U = k[E], W = U + y[B], te = U - y[V], ne = g ? -j[H] / 2 : 0, re = w === "start" ? A[H] : j[H], ie = w === "start" ? -j[H] : -A[H], ae = i.elements.arrow, oe = g && ae ? O(ae) : {
|
|
747
|
+
width: 0,
|
|
748
|
+
height: 0
|
|
749
|
+
}, K = i.modifiersData["arrow#persistent"] ? i.modifiersData["arrow#persistent"].padding : ee(), se = K[B], ce = K[V], q = R(0, A[H], oe[H]), J = T ? A[H] / 2 - ne - q - se - N.mainAxis : re - q - se - N.mainAxis, le = T ? -A[H] / 2 + ne + q + ce + N.mainAxis : ie + q + ce + N.mainAxis, ue = i.elements.arrow && I(i.elements.arrow), de = ue ? E === "y" ? ue.clientTop || 0 : ue.clientLeft || 0 : 0, fe = P?.[E] ?? 0, pe = U + J - fe - de, me = U + le - fe, he = R(g ? C(W, pe) : W, U, g ? S(te, me) : te);
|
|
750
|
+
k[E] = he, F[E] = he - U;
|
|
751
|
+
}
|
|
752
|
+
if (u) {
|
|
753
|
+
var ge = E === "x" ? "top" : n, Y = E === "x" ? e : t, X = k[D], _e = D === "y" ? "height" : "width", ve = X + y[ge], ye = X - y[Y], be = ["top", n].indexOf(b) !== -1, xe = P?.[D] ?? 0, Ce = be ? ve : X - A[_e] - j[_e] - xe + N.altAxis, we = be ? X + A[_e] + j[_e] - xe - N.altAxis : ye, Te = g && be ? z(Ce, X, we) : R(g ? Ce : ve, X, g ? we : ye);
|
|
754
|
+
k[D] = Te, F[D] = Te - X;
|
|
755
|
+
}
|
|
756
|
+
i.modifiersData[o] = F;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
var Re = {
|
|
760
|
+
name: "preventOverflow",
|
|
761
|
+
enabled: !0,
|
|
762
|
+
phase: "main",
|
|
763
|
+
fn: Le,
|
|
764
|
+
requiresIfExists: ["offset"]
|
|
765
|
+
};
|
|
766
|
+
//#endregion
|
|
767
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
|
|
768
|
+
function ze(e) {
|
|
769
|
+
return {
|
|
770
|
+
scrollLeft: e.scrollLeft,
|
|
771
|
+
scrollTop: e.scrollTop
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
//#endregion
|
|
775
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
|
|
776
|
+
function Be(e) {
|
|
777
|
+
return e === m(e) || !g(e) ? de(e) : ze(e);
|
|
778
|
+
}
|
|
779
|
+
//#endregion
|
|
780
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
|
|
781
|
+
function Ve(e) {
|
|
782
|
+
var t = e.getBoundingClientRect(), n = w(t.width) / e.offsetWidth || 1, r = w(t.height) / e.offsetHeight || 1;
|
|
783
|
+
return n !== 1 || r !== 1;
|
|
784
|
+
}
|
|
785
|
+
function He(e, t, n) {
|
|
786
|
+
n === void 0 && (n = !1);
|
|
787
|
+
var r = g(t), i = g(t) && Ve(t), a = M(t), o = D(e, i, n), s = {
|
|
788
|
+
scrollLeft: 0,
|
|
789
|
+
scrollTop: 0
|
|
790
|
+
}, c = {
|
|
791
|
+
x: 0,
|
|
792
|
+
y: 0
|
|
793
|
+
};
|
|
794
|
+
return (r || !r && !n) && ((p(t) !== "body" || he(a)) && (s = Be(t)), g(t) ? (c = D(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = fe(a))), {
|
|
795
|
+
x: o.left + s.scrollLeft - c.x,
|
|
796
|
+
y: o.top + s.scrollTop - c.y,
|
|
797
|
+
width: o.width,
|
|
798
|
+
height: o.height
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
//#endregion
|
|
802
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.js
|
|
803
|
+
function Ue(e) {
|
|
804
|
+
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
805
|
+
e.forEach(function(e) {
|
|
806
|
+
t.set(e.name, e);
|
|
807
|
+
});
|
|
808
|
+
function i(e) {
|
|
809
|
+
n.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach(function(e) {
|
|
810
|
+
if (!n.has(e)) {
|
|
811
|
+
var r = t.get(e);
|
|
812
|
+
r && i(r);
|
|
813
|
+
}
|
|
814
|
+
}), r.push(e);
|
|
815
|
+
}
|
|
816
|
+
return e.forEach(function(e) {
|
|
817
|
+
n.has(e.name) || i(e);
|
|
818
|
+
}), r;
|
|
819
|
+
}
|
|
820
|
+
function We(e) {
|
|
821
|
+
var t = Ue(e);
|
|
822
|
+
return f.reduce(function(e, n) {
|
|
823
|
+
return e.concat(t.filter(function(e) {
|
|
824
|
+
return e.phase === n;
|
|
825
|
+
}));
|
|
826
|
+
}, []);
|
|
827
|
+
}
|
|
828
|
+
//#endregion
|
|
829
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.js
|
|
830
|
+
function Ge(e) {
|
|
831
|
+
var t;
|
|
832
|
+
return function() {
|
|
833
|
+
return t ||= new Promise(function(n) {
|
|
834
|
+
Promise.resolve().then(function() {
|
|
835
|
+
t = void 0, n(e());
|
|
836
|
+
});
|
|
837
|
+
}), t;
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
//#endregion
|
|
841
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.js
|
|
842
|
+
function Ke(e) {
|
|
843
|
+
var t = e.reduce(function(e, t) {
|
|
844
|
+
var n = e[t.name];
|
|
845
|
+
return e[t.name] = n ? Object.assign({}, n, t, {
|
|
846
|
+
options: Object.assign({}, n.options, t.options),
|
|
847
|
+
data: Object.assign({}, n.data, t.data)
|
|
848
|
+
}) : t, e;
|
|
849
|
+
}, {});
|
|
850
|
+
return Object.keys(t).map(function(e) {
|
|
851
|
+
return t[e];
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
//#endregion
|
|
855
|
+
//#region node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/createPopper.js
|
|
856
|
+
var qe = {
|
|
857
|
+
placement: "bottom",
|
|
858
|
+
modifiers: [],
|
|
859
|
+
strategy: "absolute"
|
|
860
|
+
};
|
|
861
|
+
function Je() {
|
|
862
|
+
return ![...arguments].some(function(e) {
|
|
863
|
+
return !(e && typeof e.getBoundingClientRect == "function");
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
function Ye(e) {
|
|
867
|
+
e === void 0 && (e = {});
|
|
868
|
+
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ? qe : i;
|
|
869
|
+
return function(e, t, n) {
|
|
870
|
+
n === void 0 && (n = a);
|
|
871
|
+
var i = {
|
|
872
|
+
placement: "bottom",
|
|
873
|
+
orderedModifiers: [],
|
|
874
|
+
options: Object.assign({}, qe, a),
|
|
875
|
+
modifiersData: {},
|
|
876
|
+
elements: {
|
|
877
|
+
reference: e,
|
|
878
|
+
popper: t
|
|
879
|
+
},
|
|
880
|
+
attributes: {},
|
|
881
|
+
styles: {}
|
|
882
|
+
}, o = [], s = !1, c = {
|
|
883
|
+
state: i,
|
|
884
|
+
setOptions: function(n) {
|
|
885
|
+
var o = typeof n == "function" ? n(i.options) : n;
|
|
886
|
+
u(), i.options = Object.assign({}, a, i.options, o), i.scrollParents = {
|
|
887
|
+
reference: h(e) ? Y(e) : e.contextElement ? Y(e.contextElement) : [],
|
|
888
|
+
popper: Y(t)
|
|
889
|
+
};
|
|
890
|
+
var s = We(Ke([].concat(r, i.options.modifiers)));
|
|
891
|
+
return i.orderedModifiers = s.filter(function(e) {
|
|
892
|
+
return e.enabled;
|
|
893
|
+
}), l(), c.update();
|
|
894
|
+
},
|
|
895
|
+
forceUpdate: function() {
|
|
896
|
+
if (!s) {
|
|
897
|
+
var e = i.elements, t = e.reference, n = e.popper;
|
|
898
|
+
if (Je(t, n)) {
|
|
899
|
+
i.rects = {
|
|
900
|
+
reference: He(t, I(n), i.options.strategy === "fixed"),
|
|
901
|
+
popper: O(n)
|
|
902
|
+
}, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(e) {
|
|
903
|
+
return i.modifiersData[e.name] = Object.assign({}, e.data);
|
|
904
|
+
});
|
|
905
|
+
for (var r = 0; r < i.orderedModifiers.length; r++) {
|
|
906
|
+
if (i.reset === !0) {
|
|
907
|
+
i.reset = !1, r = -1;
|
|
908
|
+
continue;
|
|
909
|
+
}
|
|
910
|
+
var a = i.orderedModifiers[r], o = a.fn, l = a.options, u = l === void 0 ? {} : l, d = a.name;
|
|
911
|
+
typeof o == "function" && (i = o({
|
|
912
|
+
state: i,
|
|
913
|
+
options: u,
|
|
914
|
+
name: d,
|
|
915
|
+
instance: c
|
|
916
|
+
}) || i);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
update: Ge(function() {
|
|
922
|
+
return new Promise(function(e) {
|
|
923
|
+
c.forceUpdate(), e(i);
|
|
924
|
+
});
|
|
925
|
+
}),
|
|
926
|
+
destroy: function() {
|
|
927
|
+
u(), s = !0;
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
if (!Je(e, t)) return c;
|
|
931
|
+
c.setOptions(n).then(function(e) {
|
|
932
|
+
!s && n.onFirstUpdate && n.onFirstUpdate(e);
|
|
933
|
+
});
|
|
934
|
+
function l() {
|
|
935
|
+
i.orderedModifiers.forEach(function(e) {
|
|
936
|
+
var t = e.name, n = e.options, r = n === void 0 ? {} : n, a = e.effect;
|
|
937
|
+
if (typeof a == "function") {
|
|
938
|
+
var s = a({
|
|
939
|
+
state: i,
|
|
940
|
+
name: t,
|
|
941
|
+
instance: c,
|
|
942
|
+
options: r
|
|
943
|
+
});
|
|
944
|
+
o.push(s || function() {});
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
function u() {
|
|
949
|
+
o.forEach(function(e) {
|
|
950
|
+
return e();
|
|
951
|
+
}), o = [];
|
|
952
|
+
}
|
|
953
|
+
return c;
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
var Xe = /*#__PURE__*/ Ye({ defaultModifiers: [
|
|
957
|
+
ce,
|
|
958
|
+
Fe,
|
|
959
|
+
oe,
|
|
960
|
+
b,
|
|
961
|
+
Ne,
|
|
962
|
+
Ee,
|
|
963
|
+
Re,
|
|
964
|
+
te,
|
|
965
|
+
Ae
|
|
966
|
+
] }), Ze = "tippy-box", Qe = "tippy-content", $e = "tippy-backdrop", et = "tippy-arrow", tt = "tippy-svg-arrow", nt = {
|
|
967
|
+
passive: !0,
|
|
968
|
+
capture: !0
|
|
969
|
+
}, rt = function() {
|
|
970
|
+
return document.body;
|
|
971
|
+
};
|
|
972
|
+
function it(e, t) {
|
|
973
|
+
return {}.hasOwnProperty.call(e, t);
|
|
974
|
+
}
|
|
975
|
+
function at(e, t, n) {
|
|
976
|
+
return Array.isArray(e) ? e[t] ?? (Array.isArray(n) ? n[t] : n) : e;
|
|
977
|
+
}
|
|
978
|
+
function ot(e, t) {
|
|
979
|
+
var n = {}.toString.call(e);
|
|
980
|
+
return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
|
|
981
|
+
}
|
|
982
|
+
function st(e, t) {
|
|
983
|
+
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
984
|
+
}
|
|
985
|
+
function ct(e, t) {
|
|
986
|
+
if (t === 0) return e;
|
|
987
|
+
var n;
|
|
988
|
+
return function(r) {
|
|
989
|
+
clearTimeout(n), n = setTimeout(function() {
|
|
990
|
+
e(r);
|
|
991
|
+
}, t);
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
function lt(e, t) {
|
|
995
|
+
var n = Object.assign({}, e);
|
|
996
|
+
return t.forEach(function(e) {
|
|
997
|
+
delete n[e];
|
|
998
|
+
}), n;
|
|
999
|
+
}
|
|
1000
|
+
function ut(e) {
|
|
1001
|
+
return e.split(/\s+/).filter(Boolean);
|
|
1002
|
+
}
|
|
1003
|
+
function dt(e) {
|
|
1004
|
+
return [].concat(e);
|
|
1005
|
+
}
|
|
1006
|
+
function ft(e, t) {
|
|
1007
|
+
e.indexOf(t) === -1 && e.push(t);
|
|
1008
|
+
}
|
|
1009
|
+
function pt(e) {
|
|
1010
|
+
return e.filter(function(t, n) {
|
|
1011
|
+
return e.indexOf(t) === n;
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
function mt(e) {
|
|
1015
|
+
return e.split("-")[0];
|
|
1016
|
+
}
|
|
1017
|
+
function ht(e) {
|
|
1018
|
+
return [].slice.call(e);
|
|
1019
|
+
}
|
|
1020
|
+
function gt(e) {
|
|
1021
|
+
return Object.keys(e).reduce(function(t, n) {
|
|
1022
|
+
return e[n] !== void 0 && (t[n] = e[n]), t;
|
|
1023
|
+
}, {});
|
|
1024
|
+
}
|
|
1025
|
+
function _t() {
|
|
1026
|
+
return document.createElement("div");
|
|
1027
|
+
}
|
|
1028
|
+
function vt(e) {
|
|
1029
|
+
return ["Element", "Fragment"].some(function(t) {
|
|
1030
|
+
return ot(e, t);
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
function yt(e) {
|
|
1034
|
+
return ot(e, "NodeList");
|
|
1035
|
+
}
|
|
1036
|
+
function bt(e) {
|
|
1037
|
+
return ot(e, "MouseEvent");
|
|
1038
|
+
}
|
|
1039
|
+
function xt(e) {
|
|
1040
|
+
return !!(e && e._tippy && e._tippy.reference === e);
|
|
1041
|
+
}
|
|
1042
|
+
function St(e) {
|
|
1043
|
+
return vt(e) ? [e] : yt(e) ? ht(e) : Array.isArray(e) ? e : ht(document.querySelectorAll(e));
|
|
1044
|
+
}
|
|
1045
|
+
function Ct(e, t) {
|
|
1046
|
+
e.forEach(function(e) {
|
|
1047
|
+
e && (e.style.transitionDuration = t + "ms");
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
function wt(e, t) {
|
|
1051
|
+
e.forEach(function(e) {
|
|
1052
|
+
e && e.setAttribute("data-state", t);
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
function Tt(e) {
|
|
1056
|
+
var t, n = dt(e)[0];
|
|
1057
|
+
return n != null && (t = n.ownerDocument) != null && t.body ? n.ownerDocument : document;
|
|
1058
|
+
}
|
|
1059
|
+
function Et(e, t) {
|
|
1060
|
+
var n = t.clientX, r = t.clientY;
|
|
1061
|
+
return e.every(function(e) {
|
|
1062
|
+
var t = e.popperRect, i = e.popperState, a = e.props.interactiveBorder, o = mt(i.placement), s = i.modifiersData.offset;
|
|
1063
|
+
if (!s) return !0;
|
|
1064
|
+
var c = o === "bottom" ? s.top.y : 0, l = o === "top" ? s.bottom.y : 0, u = o === "right" ? s.left.x : 0, d = o === "left" ? s.right.x : 0, f = t.top - r + c > a, p = r - t.bottom - l > a, m = t.left - n + u > a, h = n - t.right - d > a;
|
|
1065
|
+
return f || p || m || h;
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
function Dt(e, t, n) {
|
|
1069
|
+
var r = t + "EventListener";
|
|
1070
|
+
["transitionend", "webkitTransitionEnd"].forEach(function(t) {
|
|
1071
|
+
e[r](t, n);
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
function Ot(e, t) {
|
|
1075
|
+
for (var n = t; n;) {
|
|
1076
|
+
if (e.contains(n)) return !0;
|
|
1077
|
+
n = n.getRootNode == null ? void 0 : n.getRootNode()?.host;
|
|
1078
|
+
}
|
|
1079
|
+
return !1;
|
|
1080
|
+
}
|
|
1081
|
+
var Z = { isTouch: !1 }, kt = 0;
|
|
1082
|
+
function At() {
|
|
1083
|
+
Z.isTouch || (Z.isTouch = !0, window.performance && document.addEventListener("mousemove", jt));
|
|
1084
|
+
}
|
|
1085
|
+
function jt() {
|
|
1086
|
+
var e = performance.now();
|
|
1087
|
+
e - kt < 20 && (Z.isTouch = !1, document.removeEventListener("mousemove", jt)), kt = e;
|
|
1088
|
+
}
|
|
1089
|
+
function Mt() {
|
|
1090
|
+
var e = document.activeElement;
|
|
1091
|
+
if (xt(e)) {
|
|
1092
|
+
var t = e._tippy;
|
|
1093
|
+
e.blur && !t.state.isVisible && e.blur();
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
function Nt() {
|
|
1097
|
+
document.addEventListener("touchstart", At, nt), window.addEventListener("blur", Mt);
|
|
1098
|
+
}
|
|
1099
|
+
var Pt = typeof window < "u" && typeof document < "u" && !!window.msCrypto;
|
|
1100
|
+
function Ft(e) {
|
|
1101
|
+
var t = e === "destroy" ? "n already-" : " ";
|
|
1102
|
+
return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
1103
|
+
}
|
|
1104
|
+
function It(e) {
|
|
1105
|
+
return e.replace(/[ \t]{2,}/g, " ").replace(/^[ \t]*/gm, "").trim();
|
|
1106
|
+
}
|
|
1107
|
+
function Lt(e) {
|
|
1108
|
+
return It("\n %ctippy.js\n\n %c" + It(e) + "\n\n %c👷 This is a development-only message. It will be removed in production.\n ");
|
|
1109
|
+
}
|
|
1110
|
+
function Rt(e) {
|
|
1111
|
+
return [
|
|
1112
|
+
Lt(e),
|
|
1113
|
+
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
1114
|
+
"line-height: 1.5",
|
|
1115
|
+
"color: #a6a095;"
|
|
1116
|
+
];
|
|
1117
|
+
}
|
|
1118
|
+
var zt;
|
|
1119
|
+
process.env.NODE_ENV !== "production" && Bt();
|
|
1120
|
+
function Bt() {
|
|
1121
|
+
zt = /* @__PURE__ */ new Set();
|
|
1122
|
+
}
|
|
1123
|
+
function Q(e, t) {
|
|
1124
|
+
if (e && !zt.has(t)) {
|
|
1125
|
+
var n;
|
|
1126
|
+
zt.add(t), (n = console).warn.apply(n, Rt(t));
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
function Vt(e, t) {
|
|
1130
|
+
if (e && !zt.has(t)) {
|
|
1131
|
+
var n;
|
|
1132
|
+
zt.add(t), (n = console).error.apply(n, Rt(t));
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
function Ht(e) {
|
|
1136
|
+
var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
1137
|
+
Vt(t, [
|
|
1138
|
+
"tippy() was passed",
|
|
1139
|
+
"`" + String(e) + "`",
|
|
1140
|
+
"as its targets (first) argument. Valid types are: String, Element,",
|
|
1141
|
+
"Element[], or NodeList."
|
|
1142
|
+
].join(" ")), Vt(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1143
|
+
}
|
|
1144
|
+
var Ut = {
|
|
1145
|
+
animateFill: !1,
|
|
1146
|
+
followCursor: !1,
|
|
1147
|
+
inlinePositioning: !1,
|
|
1148
|
+
sticky: !1
|
|
1149
|
+
}, $ = Object.assign({
|
|
1150
|
+
appendTo: rt,
|
|
1151
|
+
aria: {
|
|
1152
|
+
content: "auto",
|
|
1153
|
+
expanded: "auto"
|
|
1154
|
+
},
|
|
1155
|
+
delay: 0,
|
|
1156
|
+
duration: [300, 250],
|
|
1157
|
+
getReferenceClientRect: null,
|
|
1158
|
+
hideOnClick: !0,
|
|
1159
|
+
ignoreAttributes: !1,
|
|
1160
|
+
interactive: !1,
|
|
1161
|
+
interactiveBorder: 2,
|
|
1162
|
+
interactiveDebounce: 0,
|
|
1163
|
+
moveTransition: "",
|
|
1164
|
+
offset: [0, 10],
|
|
1165
|
+
onAfterUpdate: function() {},
|
|
1166
|
+
onBeforeUpdate: function() {},
|
|
1167
|
+
onCreate: function() {},
|
|
1168
|
+
onDestroy: function() {},
|
|
1169
|
+
onHidden: function() {},
|
|
1170
|
+
onHide: function() {},
|
|
1171
|
+
onMount: function() {},
|
|
1172
|
+
onShow: function() {},
|
|
1173
|
+
onShown: function() {},
|
|
1174
|
+
onTrigger: function() {},
|
|
1175
|
+
onUntrigger: function() {},
|
|
1176
|
+
onClickOutside: function() {},
|
|
1177
|
+
placement: "top",
|
|
1178
|
+
plugins: [],
|
|
1179
|
+
popperOptions: {},
|
|
1180
|
+
render: null,
|
|
1181
|
+
showOnCreate: !1,
|
|
1182
|
+
touch: !0,
|
|
1183
|
+
trigger: "mouseenter focus",
|
|
1184
|
+
triggerTarget: null
|
|
1185
|
+
}, Ut, {
|
|
1186
|
+
allowHTML: !1,
|
|
1187
|
+
animation: "fade",
|
|
1188
|
+
arrow: !0,
|
|
1189
|
+
content: "",
|
|
1190
|
+
inertia: !1,
|
|
1191
|
+
maxWidth: 350,
|
|
1192
|
+
role: "tooltip",
|
|
1193
|
+
theme: "",
|
|
1194
|
+
zIndex: 9999
|
|
1195
|
+
}), Wt = Object.keys($), Gt = function(e) {
|
|
1196
|
+
process.env.NODE_ENV !== "production" && Yt(e, []), Object.keys(e).forEach(function(t) {
|
|
1197
|
+
$[t] = e[t];
|
|
1198
|
+
});
|
|
1199
|
+
};
|
|
1200
|
+
function Kt(e) {
|
|
1201
|
+
var t = (e.plugins || []).reduce(function(t, n) {
|
|
1202
|
+
var r = n.name, i = n.defaultValue;
|
|
1203
|
+
return r && (t[r] = e[r] === void 0 ? $[r] ?? i : e[r]), t;
|
|
1204
|
+
}, {});
|
|
1205
|
+
return Object.assign({}, e, t);
|
|
1206
|
+
}
|
|
1207
|
+
function qt(e, t) {
|
|
1208
|
+
return (t ? Object.keys(Kt(Object.assign({}, $, { plugins: t }))) : Wt).reduce(function(t, n) {
|
|
1209
|
+
var r = (e.getAttribute("data-tippy-" + n) || "").trim();
|
|
1210
|
+
if (!r) return t;
|
|
1211
|
+
if (n === "content") t[n] = r;
|
|
1212
|
+
else try {
|
|
1213
|
+
t[n] = JSON.parse(r);
|
|
1214
|
+
} catch {
|
|
1215
|
+
t[n] = r;
|
|
1216
|
+
}
|
|
1217
|
+
return t;
|
|
1218
|
+
}, {});
|
|
1219
|
+
}
|
|
1220
|
+
function Jt(e, t) {
|
|
1221
|
+
var n = Object.assign({}, t, { content: st(t.content, [e]) }, t.ignoreAttributes ? {} : qt(e, t.plugins));
|
|
1222
|
+
return n.aria = Object.assign({}, $.aria, n.aria), n.aria = {
|
|
1223
|
+
expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
|
|
1224
|
+
content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
|
|
1225
|
+
}, n;
|
|
1226
|
+
}
|
|
1227
|
+
function Yt(e, t) {
|
|
1228
|
+
e === void 0 && (e = {}), t === void 0 && (t = []), Object.keys(e).forEach(function(e) {
|
|
1229
|
+
var n = !it(lt($, Object.keys(Ut)), e);
|
|
1230
|
+
n &&= t.filter(function(t) {
|
|
1231
|
+
return t.name === e;
|
|
1232
|
+
}).length === 0, Q(n, [
|
|
1233
|
+
"`" + e + "`",
|
|
1234
|
+
"is not a valid prop. You may have spelled it incorrectly, or if it's",
|
|
1235
|
+
"a plugin, forgot to pass it in an array as props.plugins.",
|
|
1236
|
+
"\n\n",
|
|
1237
|
+
"All props: https://atomiks.github.io/tippyjs/v6/all-props/\n",
|
|
1238
|
+
"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"
|
|
1239
|
+
].join(" "));
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
var Xt = function() {
|
|
1243
|
+
return "innerHTML";
|
|
1244
|
+
};
|
|
1245
|
+
function Zt(e, t) {
|
|
1246
|
+
e[Xt()] = t;
|
|
1247
|
+
}
|
|
1248
|
+
function Qt(e) {
|
|
1249
|
+
var t = _t();
|
|
1250
|
+
return e === !0 ? t.className = et : (t.className = tt, vt(e) ? t.appendChild(e) : Zt(t, e)), t;
|
|
1251
|
+
}
|
|
1252
|
+
function $t(e, t) {
|
|
1253
|
+
vt(t.content) ? (Zt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Zt(e, t.content) : e.textContent = t.content);
|
|
1254
|
+
}
|
|
1255
|
+
function en(e) {
|
|
1256
|
+
var t = e.firstElementChild, n = ht(t.children);
|
|
1257
|
+
return {
|
|
1258
|
+
box: t,
|
|
1259
|
+
content: n.find(function(e) {
|
|
1260
|
+
return e.classList.contains(Qe);
|
|
1261
|
+
}),
|
|
1262
|
+
arrow: n.find(function(e) {
|
|
1263
|
+
return e.classList.contains(et) || e.classList.contains(tt);
|
|
1264
|
+
}),
|
|
1265
|
+
backdrop: n.find(function(e) {
|
|
1266
|
+
return e.classList.contains($e);
|
|
1267
|
+
})
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
function tn(e) {
|
|
1271
|
+
var t = _t(), n = _t();
|
|
1272
|
+
n.className = Ze, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
1273
|
+
var r = _t();
|
|
1274
|
+
r.className = Qe, r.setAttribute("data-state", "hidden"), $t(r, e.props), t.appendChild(n), n.appendChild(r), i(e.props, e.props);
|
|
1275
|
+
function i(n, r) {
|
|
1276
|
+
var i = en(t), a = i.box, o = i.content, s = i.arrow;
|
|
1277
|
+
r.theme ? a.setAttribute("data-theme", r.theme) : a.removeAttribute("data-theme"), typeof r.animation == "string" ? a.setAttribute("data-animation", r.animation) : a.removeAttribute("data-animation"), r.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof r.maxWidth == "number" ? r.maxWidth + "px" : r.maxWidth, r.role ? a.setAttribute("role", r.role) : a.removeAttribute("role"), (n.content !== r.content || n.allowHTML !== r.allowHTML) && $t(o, e.props), r.arrow ? s ? n.arrow !== r.arrow && (a.removeChild(s), a.appendChild(Qt(r.arrow))) : a.appendChild(Qt(r.arrow)) : s && a.removeChild(s);
|
|
1278
|
+
}
|
|
1279
|
+
return {
|
|
1280
|
+
popper: t,
|
|
1281
|
+
onUpdate: i
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
tn.$$tippy = !0;
|
|
1285
|
+
var nn = 1, rn = [], an = [];
|
|
1286
|
+
function on(e, t) {
|
|
1287
|
+
var n = Jt(e, Object.assign({}, $, Kt(gt(t)))), r, i, a, o = !1, s = !1, c = !1, l = !1, u, d, f, p = [], m = ct(re, n.interactiveDebounce), h, g = nn++, _ = null, v = pt(n.plugins), y = {
|
|
1288
|
+
id: g,
|
|
1289
|
+
reference: e,
|
|
1290
|
+
popper: _t(),
|
|
1291
|
+
popperInstance: _,
|
|
1292
|
+
props: n,
|
|
1293
|
+
state: {
|
|
1294
|
+
isEnabled: !0,
|
|
1295
|
+
isVisible: !1,
|
|
1296
|
+
isDestroyed: !1,
|
|
1297
|
+
isMounted: !1,
|
|
1298
|
+
isShown: !1
|
|
1299
|
+
},
|
|
1300
|
+
plugins: v,
|
|
1301
|
+
clearDelayTimeouts: fe,
|
|
1302
|
+
setProps: pe,
|
|
1303
|
+
setContent: me,
|
|
1304
|
+
show: he,
|
|
1305
|
+
hide: ge,
|
|
1306
|
+
hideWithInteractivity: Y,
|
|
1307
|
+
enable: ue,
|
|
1308
|
+
disable: de,
|
|
1309
|
+
unmount: X,
|
|
1310
|
+
destroy: _e
|
|
1311
|
+
};
|
|
1312
|
+
/* istanbul ignore if */
|
|
1313
|
+
if (!n.render) return process.env.NODE_ENV !== "production" && Vt(!0, "render() function has not been supplied."), y;
|
|
1314
|
+
var b = n.render(y), x = b.popper, S = b.onUpdate;
|
|
1315
|
+
x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + y.id, y.popper = x, e._tippy = y, x._tippy = y;
|
|
1316
|
+
var C = v.map(function(e) {
|
|
1317
|
+
return e.fn(y);
|
|
1318
|
+
}), w = e.hasAttribute("aria-expanded");
|
|
1319
|
+
return te(), F(), M(), N("onCreate", [y]), n.showOnCreate && J(), x.addEventListener("mouseenter", function() {
|
|
1320
|
+
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
1321
|
+
}), x.addEventListener("mouseleave", function() {
|
|
1322
|
+
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && k().addEventListener("mousemove", m);
|
|
1323
|
+
}), y;
|
|
1324
|
+
function T() {
|
|
1325
|
+
var e = y.props.touch;
|
|
1326
|
+
return Array.isArray(e) ? e : [e, 0];
|
|
1327
|
+
}
|
|
1328
|
+
function E() {
|
|
1329
|
+
return T()[0] === "hold";
|
|
1330
|
+
}
|
|
1331
|
+
function D() {
|
|
1332
|
+
var e;
|
|
1333
|
+
return !!((e = y.props.render) != null && e.$$tippy);
|
|
1334
|
+
}
|
|
1335
|
+
function O() {
|
|
1336
|
+
return h || e;
|
|
1337
|
+
}
|
|
1338
|
+
function k() {
|
|
1339
|
+
var e = O().parentNode;
|
|
1340
|
+
return e ? Tt(e) : document;
|
|
1341
|
+
}
|
|
1342
|
+
function A() {
|
|
1343
|
+
return en(x);
|
|
1344
|
+
}
|
|
1345
|
+
function j(e) {
|
|
1346
|
+
return y.state.isMounted && !y.state.isVisible || Z.isTouch || u && u.type === "focus" ? 0 : at(y.props.delay, +!e, $.delay);
|
|
1347
|
+
}
|
|
1348
|
+
function M(e) {
|
|
1349
|
+
e === void 0 && (e = !1), x.style.pointerEvents = y.props.interactive && !e ? "" : "none", x.style.zIndex = "" + y.props.zIndex;
|
|
1350
|
+
}
|
|
1351
|
+
function N(e, t, n) {
|
|
1352
|
+
if (n === void 0 && (n = !0), C.forEach(function(n) {
|
|
1353
|
+
n[e] && n[e].apply(n, t);
|
|
1354
|
+
}), n) {
|
|
1355
|
+
var r;
|
|
1356
|
+
(r = y.props)[e].apply(r, t);
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
function P() {
|
|
1360
|
+
var t = y.props.aria;
|
|
1361
|
+
if (t.content) {
|
|
1362
|
+
var n = "aria-" + t.content, r = x.id;
|
|
1363
|
+
dt(y.props.triggerTarget || e).forEach(function(e) {
|
|
1364
|
+
var t = e.getAttribute(n);
|
|
1365
|
+
if (y.state.isVisible) e.setAttribute(n, t ? t + " " + r : r);
|
|
1366
|
+
else {
|
|
1367
|
+
var i = t && t.replace(r, "").trim();
|
|
1368
|
+
i ? e.setAttribute(n, i) : e.removeAttribute(n);
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
function F() {
|
|
1374
|
+
w || !y.props.aria.expanded || dt(y.props.triggerTarget || e).forEach(function(e) {
|
|
1375
|
+
y.props.interactive ? e.setAttribute("aria-expanded", y.state.isVisible && e === O() ? "true" : "false") : e.removeAttribute("aria-expanded");
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
function I() {
|
|
1379
|
+
k().removeEventListener("mousemove", m), rn = rn.filter(function(e) {
|
|
1380
|
+
return e !== m;
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
function L(t) {
|
|
1384
|
+
if (!(Z.isTouch && (c || t.type === "mousedown"))) {
|
|
1385
|
+
var n = t.composedPath && t.composedPath()[0] || t.target;
|
|
1386
|
+
if (!(y.props.interactive && Ot(x, n))) {
|
|
1387
|
+
if (dt(y.props.triggerTarget || e).some(function(e) {
|
|
1388
|
+
return Ot(e, n);
|
|
1389
|
+
})) {
|
|
1390
|
+
if (Z.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0) return;
|
|
1391
|
+
} else N("onClickOutside", [y, t]);
|
|
1392
|
+
y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), s = !0, setTimeout(function() {
|
|
1393
|
+
s = !1;
|
|
1394
|
+
}), y.state.isMounted || B());
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
function R() {
|
|
1399
|
+
c = !0;
|
|
1400
|
+
}
|
|
1401
|
+
function z() {
|
|
1402
|
+
c = !1;
|
|
1403
|
+
}
|
|
1404
|
+
function ee() {
|
|
1405
|
+
var e = k();
|
|
1406
|
+
e.addEventListener("mousedown", L, !0), e.addEventListener("touchend", L, nt), e.addEventListener("touchstart", z, nt), e.addEventListener("touchmove", R, nt);
|
|
1407
|
+
}
|
|
1408
|
+
function B() {
|
|
1409
|
+
var e = k();
|
|
1410
|
+
e.removeEventListener("mousedown", L, !0), e.removeEventListener("touchend", L, nt), e.removeEventListener("touchstart", z, nt), e.removeEventListener("touchmove", R, nt);
|
|
1411
|
+
}
|
|
1412
|
+
function V(e, t) {
|
|
1413
|
+
U(e, function() {
|
|
1414
|
+
!y.state.isVisible && x.parentNode && x.parentNode.contains(x) && t();
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
function H(e, t) {
|
|
1418
|
+
U(e, t);
|
|
1419
|
+
}
|
|
1420
|
+
function U(e, t) {
|
|
1421
|
+
var n = A().box;
|
|
1422
|
+
function r(e) {
|
|
1423
|
+
e.target === n && (Dt(n, "remove", r), t());
|
|
1424
|
+
}
|
|
1425
|
+
if (e === 0) return t();
|
|
1426
|
+
Dt(n, "remove", d), Dt(n, "add", r), d = r;
|
|
1427
|
+
}
|
|
1428
|
+
function W(t, n, r) {
|
|
1429
|
+
r === void 0 && (r = !1), dt(y.props.triggerTarget || e).forEach(function(e) {
|
|
1430
|
+
e.addEventListener(t, n, r), p.push({
|
|
1431
|
+
node: e,
|
|
1432
|
+
eventType: t,
|
|
1433
|
+
handler: n,
|
|
1434
|
+
options: r
|
|
1435
|
+
});
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
function te() {
|
|
1439
|
+
E() && (W("touchstart", ne, { passive: !0 }), W("touchend", ie, { passive: !0 })), ut(y.props.trigger).forEach(function(e) {
|
|
1440
|
+
if (e !== "manual") switch (W(e, ne), e) {
|
|
1441
|
+
case "mouseenter":
|
|
1442
|
+
W("mouseleave", ie);
|
|
1443
|
+
break;
|
|
1444
|
+
case "focus":
|
|
1445
|
+
W(Pt ? "focusout" : "blur", ae);
|
|
1446
|
+
break;
|
|
1447
|
+
case "focusin":
|
|
1448
|
+
W("focusout", ae);
|
|
1449
|
+
break;
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
function G() {
|
|
1454
|
+
p.forEach(function(e) {
|
|
1455
|
+
var t = e.node, n = e.eventType, r = e.handler, i = e.options;
|
|
1456
|
+
t.removeEventListener(n, r, i);
|
|
1457
|
+
}), p = [];
|
|
1458
|
+
}
|
|
1459
|
+
function ne(e) {
|
|
1460
|
+
var t = !1;
|
|
1461
|
+
if (!(!y.state.isEnabled || oe(e) || s)) {
|
|
1462
|
+
var n = u?.type === "focus";
|
|
1463
|
+
u = e, h = e.currentTarget, F(), !y.state.isVisible && bt(e) && rn.forEach(function(t) {
|
|
1464
|
+
return t(e);
|
|
1465
|
+
}), e.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? t = !0 : J(e), e.type === "click" && (o = !t), t && !n && le(e);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
function re(e) {
|
|
1469
|
+
var t = e.target, r = O().contains(t) || x.contains(t);
|
|
1470
|
+
e.type === "mousemove" && r || Et(q().concat(x).map(function(e) {
|
|
1471
|
+
var t = e._tippy.popperInstance?.state;
|
|
1472
|
+
return t ? {
|
|
1473
|
+
popperRect: e.getBoundingClientRect(),
|
|
1474
|
+
popperState: t,
|
|
1475
|
+
props: n
|
|
1476
|
+
} : null;
|
|
1477
|
+
}).filter(Boolean), e) && (I(), le(e));
|
|
1478
|
+
}
|
|
1479
|
+
function ie(e) {
|
|
1480
|
+
if (!(oe(e) || y.props.trigger.indexOf("click") >= 0 && o)) {
|
|
1481
|
+
if (y.props.interactive) {
|
|
1482
|
+
y.hideWithInteractivity(e);
|
|
1483
|
+
return;
|
|
1484
|
+
}
|
|
1485
|
+
le(e);
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
function ae(e) {
|
|
1489
|
+
y.props.trigger.indexOf("focusin") < 0 && e.target !== O() || y.props.interactive && e.relatedTarget && x.contains(e.relatedTarget) || le(e);
|
|
1490
|
+
}
|
|
1491
|
+
function oe(e) {
|
|
1492
|
+
return Z.isTouch ? E() !== e.type.indexOf("touch") >= 0 : !1;
|
|
1493
|
+
}
|
|
1494
|
+
function K() {
|
|
1495
|
+
se();
|
|
1496
|
+
var t = y.props, n = t.popperOptions, r = t.placement, i = t.offset, a = t.getReferenceClientRect, o = t.moveTransition, s = D() ? en(x).arrow : null, c = a ? {
|
|
1497
|
+
getBoundingClientRect: a,
|
|
1498
|
+
contextElement: a.contextElement || O()
|
|
1499
|
+
} : e, l = [
|
|
1500
|
+
{
|
|
1501
|
+
name: "offset",
|
|
1502
|
+
options: { offset: i }
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
name: "preventOverflow",
|
|
1506
|
+
options: { padding: {
|
|
1507
|
+
top: 2,
|
|
1508
|
+
bottom: 2,
|
|
1509
|
+
left: 5,
|
|
1510
|
+
right: 5
|
|
1511
|
+
} }
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
name: "flip",
|
|
1515
|
+
options: { padding: 5 }
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
name: "computeStyles",
|
|
1519
|
+
options: { adaptive: !o }
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
name: "$$tippy",
|
|
1523
|
+
enabled: !0,
|
|
1524
|
+
phase: "beforeWrite",
|
|
1525
|
+
requires: ["computeStyles"],
|
|
1526
|
+
fn: function(e) {
|
|
1527
|
+
var t = e.state;
|
|
1528
|
+
if (D()) {
|
|
1529
|
+
var n = A().box;
|
|
1530
|
+
[
|
|
1531
|
+
"placement",
|
|
1532
|
+
"reference-hidden",
|
|
1533
|
+
"escaped"
|
|
1534
|
+
].forEach(function(e) {
|
|
1535
|
+
e === "placement" ? n.setAttribute("data-placement", t.placement) : t.attributes.popper["data-popper-" + e] ? n.setAttribute("data-" + e, "") : n.removeAttribute("data-" + e);
|
|
1536
|
+
}), t.attributes.popper = {};
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
];
|
|
1541
|
+
D() && s && l.push({
|
|
1542
|
+
name: "arrow",
|
|
1543
|
+
options: {
|
|
1544
|
+
element: s,
|
|
1545
|
+
padding: 3
|
|
1546
|
+
}
|
|
1547
|
+
}), l.push.apply(l, n?.modifiers || []), y.popperInstance = Xe(c, x, Object.assign({}, n, {
|
|
1548
|
+
placement: r,
|
|
1549
|
+
onFirstUpdate: f,
|
|
1550
|
+
modifiers: l
|
|
1551
|
+
}));
|
|
1552
|
+
}
|
|
1553
|
+
function se() {
|
|
1554
|
+
y.popperInstance &&= (y.popperInstance.destroy(), null);
|
|
1555
|
+
}
|
|
1556
|
+
function ce() {
|
|
1557
|
+
var e = y.props.appendTo, t, n = O();
|
|
1558
|
+
/* istanbul ignore else */
|
|
1559
|
+
t = y.props.interactive && e === rt || e === "parent" ? n.parentNode : st(e, [n]), t.contains(x) || t.appendChild(x), y.state.isMounted = !0, K(), process.env.NODE_ENV !== "production" && Q(y.props.interactive && e === $.appendTo && n.nextElementSibling !== x, [
|
|
1560
|
+
"Interactive tippy element may not be accessible via keyboard",
|
|
1561
|
+
"navigation because it is not directly after the reference element",
|
|
1562
|
+
"in the DOM source order.",
|
|
1563
|
+
"\n\n",
|
|
1564
|
+
"Using a wrapper <div> or <span> tag around the reference element",
|
|
1565
|
+
"solves this by creating a new parentNode context.",
|
|
1566
|
+
"\n\n",
|
|
1567
|
+
"Specifying `appendTo: document.body` silences this warning, but it",
|
|
1568
|
+
"assumes you are using a focus management solution to handle",
|
|
1569
|
+
"keyboard navigation.",
|
|
1570
|
+
"\n\n",
|
|
1571
|
+
"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"
|
|
1572
|
+
].join(" "));
|
|
1573
|
+
}
|
|
1574
|
+
function q() {
|
|
1575
|
+
return ht(x.querySelectorAll("[data-tippy-root]"));
|
|
1576
|
+
}
|
|
1577
|
+
function J(e) {
|
|
1578
|
+
y.clearDelayTimeouts(), e && N("onTrigger", [y, e]), ee();
|
|
1579
|
+
var t = j(!0), n = T(), i = n[0], a = n[1];
|
|
1580
|
+
Z.isTouch && i === "hold" && a && (t = a), t ? r = setTimeout(function() {
|
|
1581
|
+
y.show();
|
|
1582
|
+
}, t) : y.show();
|
|
1583
|
+
}
|
|
1584
|
+
function le(e) {
|
|
1585
|
+
if (y.clearDelayTimeouts(), N("onUntrigger", [y, e]), !y.state.isVisible) {
|
|
1586
|
+
B();
|
|
1587
|
+
return;
|
|
1588
|
+
}
|
|
1589
|
+
if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(e.type) >= 0 && o)) {
|
|
1590
|
+
var t = j(!1);
|
|
1591
|
+
t ? i = setTimeout(function() {
|
|
1592
|
+
y.state.isVisible && y.hide();
|
|
1593
|
+
}, t) : a = requestAnimationFrame(function() {
|
|
1594
|
+
y.hide();
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
function ue() {
|
|
1599
|
+
y.state.isEnabled = !0;
|
|
1600
|
+
}
|
|
1601
|
+
function de() {
|
|
1602
|
+
y.hide(), y.state.isEnabled = !1;
|
|
1603
|
+
}
|
|
1604
|
+
function fe() {
|
|
1605
|
+
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(a);
|
|
1606
|
+
}
|
|
1607
|
+
function pe(t) {
|
|
1608
|
+
/* istanbul ignore else */
|
|
1609
|
+
if (process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("setProps")), !y.state.isDestroyed) {
|
|
1610
|
+
N("onBeforeUpdate", [y, t]), G();
|
|
1611
|
+
var n = y.props, r = Jt(e, Object.assign({}, n, gt(t), { ignoreAttributes: !0 }));
|
|
1612
|
+
y.props = r, te(), n.interactiveDebounce !== r.interactiveDebounce && (I(), m = ct(re, r.interactiveDebounce)), n.triggerTarget && !r.triggerTarget ? dt(n.triggerTarget).forEach(function(e) {
|
|
1613
|
+
e.removeAttribute("aria-expanded");
|
|
1614
|
+
}) : r.triggerTarget && e.removeAttribute("aria-expanded"), F(), M(), S && S(n, r), y.popperInstance && (K(), q().forEach(function(e) {
|
|
1615
|
+
requestAnimationFrame(e._tippy.popperInstance.forceUpdate);
|
|
1616
|
+
})), N("onAfterUpdate", [y, t]);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
function me(e) {
|
|
1620
|
+
y.setProps({ content: e });
|
|
1621
|
+
}
|
|
1622
|
+
function he() {
|
|
1623
|
+
/* istanbul ignore else */
|
|
1624
|
+
process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("show"));
|
|
1625
|
+
var e = y.state.isVisible, t = y.state.isDestroyed, n = !y.state.isEnabled, r = Z.isTouch && !y.props.touch, i = at(y.props.duration, 0, $.duration);
|
|
1626
|
+
if (!(e || t || n || r) && !O().hasAttribute("disabled") && (N("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
1627
|
+
if (y.state.isVisible = !0, D() && (x.style.visibility = "visible"), M(), ee(), y.state.isMounted || (x.style.transition = "none"), D()) {
|
|
1628
|
+
var a = A(), o = a.box, s = a.content;
|
|
1629
|
+
Ct([o, s], 0);
|
|
1630
|
+
}
|
|
1631
|
+
f = function() {
|
|
1632
|
+
var e;
|
|
1633
|
+
if (!(!y.state.isVisible || l)) {
|
|
1634
|
+
if (l = !0, x.offsetHeight, x.style.transition = y.props.moveTransition, D() && y.props.animation) {
|
|
1635
|
+
var t = A(), n = t.box, r = t.content;
|
|
1636
|
+
Ct([n, r], i), wt([n, r], "visible");
|
|
1637
|
+
}
|
|
1638
|
+
P(), F(), ft(an, y), (e = y.popperInstance) == null || e.forceUpdate(), N("onMount", [y]), y.props.animation && D() && H(i, function() {
|
|
1639
|
+
y.state.isShown = !0, N("onShown", [y]);
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
}, ce();
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
function ge() {
|
|
1646
|
+
/* istanbul ignore else */
|
|
1647
|
+
process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("hide"));
|
|
1648
|
+
var e = !y.state.isVisible, t = y.state.isDestroyed, n = !y.state.isEnabled, r = at(y.props.duration, 1, $.duration);
|
|
1649
|
+
if (!(e || t || n) && (N("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
1650
|
+
if (y.state.isVisible = !1, y.state.isShown = !1, l = !1, o = !1, D() && (x.style.visibility = "hidden"), I(), B(), M(!0), D()) {
|
|
1651
|
+
var i = A(), a = i.box, s = i.content;
|
|
1652
|
+
y.props.animation && (Ct([a, s], r), wt([a, s], "hidden"));
|
|
1653
|
+
}
|
|
1654
|
+
P(), F(), y.props.animation ? D() && V(r, y.unmount) : y.unmount();
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
function Y(e) {
|
|
1658
|
+
process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("hideWithInteractivity")), k().addEventListener("mousemove", m), ft(rn, m), m(e);
|
|
1659
|
+
}
|
|
1660
|
+
function X() {
|
|
1661
|
+
/* istanbul ignore else */
|
|
1662
|
+
process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (se(), q().forEach(function(e) {
|
|
1663
|
+
e._tippy.unmount();
|
|
1664
|
+
}), x.parentNode && x.parentNode.removeChild(x), an = an.filter(function(e) {
|
|
1665
|
+
return e !== y;
|
|
1666
|
+
}), y.state.isMounted = !1, N("onHidden", [y]));
|
|
1667
|
+
}
|
|
1668
|
+
function _e() {
|
|
1669
|
+
/* istanbul ignore else */
|
|
1670
|
+
process.env.NODE_ENV !== "production" && Q(y.state.isDestroyed, Ft("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), G(), delete e._tippy, y.state.isDestroyed = !0, N("onDestroy", [y]));
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
function sn(e, t) {
|
|
1674
|
+
t === void 0 && (t = {});
|
|
1675
|
+
var n = $.plugins.concat(t.plugins || []);
|
|
1676
|
+
process.env.NODE_ENV !== "production" && (Ht(e), Yt(t, n)), Nt();
|
|
1677
|
+
var r = Object.assign({}, t, { plugins: n }), i = St(e);
|
|
1678
|
+
/* istanbul ignore else */
|
|
1679
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1680
|
+
var a = vt(r.content), o = i.length > 1;
|
|
1681
|
+
Q(a && o, [
|
|
1682
|
+
"tippy() was passed an Element as the `content` prop, but more than",
|
|
1683
|
+
"one tippy instance was created by this invocation. This means the",
|
|
1684
|
+
"content element will only be appended to the last tippy instance.",
|
|
1685
|
+
"\n\n",
|
|
1686
|
+
"Instead, pass the .innerHTML of the element, or use a function that",
|
|
1687
|
+
"returns a cloned version of the element instead.",
|
|
1688
|
+
"\n\n",
|
|
1689
|
+
"1) content: element.innerHTML\n",
|
|
1690
|
+
"2) content: () => element.cloneNode(true)"
|
|
1691
|
+
].join(" "));
|
|
1692
|
+
}
|
|
1693
|
+
var s = i.reduce(function(e, t) {
|
|
1694
|
+
var n = t && on(t, r);
|
|
1695
|
+
return n && e.push(n), e;
|
|
1696
|
+
}, []);
|
|
1697
|
+
return vt(e) ? s[0] : s;
|
|
1698
|
+
}
|
|
1699
|
+
sn.defaultProps = $, sn.setDefaultProps = Gt, sn.currentInput = Z, Object.assign({}, b, { effect: function(e) {
|
|
1700
|
+
var t = e.state, n = {
|
|
1701
|
+
popper: {
|
|
1702
|
+
position: t.options.strategy,
|
|
1703
|
+
left: "0",
|
|
1704
|
+
top: "0",
|
|
1705
|
+
margin: "0"
|
|
1706
|
+
},
|
|
1707
|
+
arrow: { position: "absolute" },
|
|
1708
|
+
reference: {}
|
|
1709
|
+
};
|
|
1710
|
+
Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow);
|
|
1711
|
+
} }), sn.setDefaultProps({ render: tn });
|
|
1712
|
+
//#endregion
|
|
1713
|
+
export { sn as t };
|