@turquoisehealth/pit-viper 2.122.1-dev.0 → 2.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +0 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -6
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
- package/pv-components/dist/vue/base/pv-components-base.mjs +2713 -2704
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3296 -4299
- package/pv-components/dist/web/components/pv-button/pv-button.js +43 -43
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +159 -159
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +87 -87
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +76 -76
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +78 -78
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2185 -7690
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +92 -92
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +768 -852
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2139 -7599
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +58 -58
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1638 -1722
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1481 -1565
- package/pv-components/dist/web/pv-components.iife.js +50 -50
|
@@ -1,73 +1,51 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
1
|
+
import { computed as O, ref as B, shallowRef as C, watch as R, getCurrentScope as Ht, onScopeDispose as zt, shallowReadonly as j, unref as it, onMounted as wt, nextTick as pe, getCurrentInstance as Xt, toValue as E, toRef as me, readonly as he, customRef as ve, watchEffect as ge, defineComponent as we, mergeModels as ye, useModel as be, withDirectives as St, createElementBlock as xe, openBlock as Et, createElementVNode as Ct, createBlock as Oe, createCommentVNode as Se, renderSlot as Pt, Teleport as Ee, normalizeStyle as Ce, vShow as Pe, defineCustomElement as Re } from "vue";
|
|
2
|
+
const Ae = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Ae.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), Tt = Math.min, K = Math.max, nt = Math.round, M = (t) => ({
|
|
3
3
|
x: t,
|
|
4
4
|
y: t
|
|
5
|
-
}),
|
|
5
|
+
}), Te = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, Le = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function Yt(t, e) {
|
|
15
15
|
return typeof t == "function" ? t(e) : t;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function st(t) {
|
|
18
18
|
return t.split("-")[0];
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function I(t) {
|
|
21
21
|
return t.split("-")[1];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ke(t) {
|
|
24
24
|
return t === "x" ? "y" : "x";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function qt(t) {
|
|
27
27
|
return t === "y" ? "height" : "width";
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
return
|
|
29
|
+
const Me = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
30
|
+
function Gt(t) {
|
|
31
|
+
return Me.has(st(t)) ? "y" : "x";
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function Jt(t) {
|
|
34
|
+
return ke(Gt(t));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function De(t, e, n) {
|
|
37
37
|
n === void 0 && (n = !1);
|
|
38
|
-
const o =
|
|
39
|
-
let
|
|
40
|
-
return e.reference[s] > e.floating[s] && (
|
|
41
|
-
}
|
|
42
|
-
function Fe(t) {
|
|
43
|
-
const e = ct(t);
|
|
44
|
-
return [St(t), e, St(e)];
|
|
45
|
-
}
|
|
46
|
-
function St(t) {
|
|
47
|
-
return t.replace(/start|end/g, (e) => Ie[e]);
|
|
48
|
-
}
|
|
49
|
-
const $t = ["left", "right"], Ft = ["right", "left"], je = ["top", "bottom"], He = ["bottom", "top"];
|
|
50
|
-
function ze(t, e, n) {
|
|
51
|
-
switch (t) {
|
|
52
|
-
case "top":
|
|
53
|
-
case "bottom":
|
|
54
|
-
return n ? e ? Ft : $t : e ? $t : Ft;
|
|
55
|
-
case "left":
|
|
56
|
-
case "right":
|
|
57
|
-
return e ? je : He;
|
|
58
|
-
default:
|
|
59
|
-
return [];
|
|
60
|
-
}
|
|
38
|
+
const o = I(t), r = Jt(t), s = qt(r);
|
|
39
|
+
let u = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
40
|
+
return e.reference[s] > e.floating[s] && (u = Lt(u)), [u, Lt(u)];
|
|
61
41
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
let s = ze(J(t), n === "start", o);
|
|
65
|
-
return i && (s = s.map((c) => c + "-" + i), e && (s = s.concat(s.map(St)))), s;
|
|
42
|
+
function We(t) {
|
|
43
|
+
return t.replace(/start|end/g, (e) => Le[e]);
|
|
66
44
|
}
|
|
67
|
-
function
|
|
68
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
45
|
+
function Lt(t) {
|
|
46
|
+
return t.replace(/left|right|bottom|top/g, (e) => Te[e]);
|
|
69
47
|
}
|
|
70
|
-
function
|
|
48
|
+
function Be(t) {
|
|
71
49
|
return {
|
|
72
50
|
top: 0,
|
|
73
51
|
right: 0,
|
|
@@ -76,361 +54,301 @@ function Ye(t) {
|
|
|
76
54
|
...t
|
|
77
55
|
};
|
|
78
56
|
}
|
|
79
|
-
function
|
|
80
|
-
return typeof t != "number" ?
|
|
57
|
+
function Ne(t) {
|
|
58
|
+
return typeof t != "number" ? Be(t) : {
|
|
81
59
|
top: t,
|
|
82
60
|
right: t,
|
|
83
61
|
bottom: t,
|
|
84
62
|
left: t
|
|
85
63
|
};
|
|
86
64
|
}
|
|
87
|
-
function
|
|
65
|
+
function ot(t) {
|
|
88
66
|
const {
|
|
89
67
|
x: e,
|
|
90
68
|
y: n,
|
|
91
69
|
width: o,
|
|
92
|
-
height:
|
|
70
|
+
height: r
|
|
93
71
|
} = t;
|
|
94
72
|
return {
|
|
95
73
|
width: o,
|
|
96
|
-
height:
|
|
74
|
+
height: r,
|
|
97
75
|
top: n,
|
|
98
76
|
left: e,
|
|
99
77
|
right: e + o,
|
|
100
|
-
bottom: n +
|
|
78
|
+
bottom: n + r,
|
|
101
79
|
x: e,
|
|
102
80
|
y: n
|
|
103
81
|
};
|
|
104
82
|
}
|
|
105
|
-
function
|
|
83
|
+
function kt(t, e, n) {
|
|
106
84
|
let {
|
|
107
85
|
reference: o,
|
|
108
|
-
floating:
|
|
86
|
+
floating: r
|
|
109
87
|
} = t;
|
|
110
|
-
const s =
|
|
111
|
-
let
|
|
88
|
+
const s = Gt(e), u = Jt(e), i = qt(u), l = st(e), c = s === "y", a = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, p = o[i] / 2 - r[i] / 2;
|
|
89
|
+
let m;
|
|
112
90
|
switch (l) {
|
|
113
91
|
case "top":
|
|
114
|
-
|
|
115
|
-
x:
|
|
116
|
-
y: o.y -
|
|
92
|
+
m = {
|
|
93
|
+
x: a,
|
|
94
|
+
y: o.y - r.height
|
|
117
95
|
};
|
|
118
96
|
break;
|
|
119
97
|
case "bottom":
|
|
120
|
-
|
|
121
|
-
x:
|
|
98
|
+
m = {
|
|
99
|
+
x: a,
|
|
122
100
|
y: o.y + o.height
|
|
123
101
|
};
|
|
124
102
|
break;
|
|
125
103
|
case "right":
|
|
126
|
-
|
|
104
|
+
m = {
|
|
127
105
|
x: o.x + o.width,
|
|
128
106
|
y: f
|
|
129
107
|
};
|
|
130
108
|
break;
|
|
131
109
|
case "left":
|
|
132
|
-
|
|
133
|
-
x: o.x -
|
|
110
|
+
m = {
|
|
111
|
+
x: o.x - r.width,
|
|
134
112
|
y: f
|
|
135
113
|
};
|
|
136
114
|
break;
|
|
137
115
|
default:
|
|
138
|
-
|
|
116
|
+
m = {
|
|
139
117
|
x: o.x,
|
|
140
118
|
y: o.y
|
|
141
119
|
};
|
|
142
120
|
}
|
|
143
|
-
switch (
|
|
121
|
+
switch (I(e)) {
|
|
144
122
|
case "start":
|
|
145
|
-
|
|
123
|
+
m[u] -= p * (n && c ? -1 : 1);
|
|
146
124
|
break;
|
|
147
125
|
case "end":
|
|
148
|
-
|
|
126
|
+
m[u] += p * (n && c ? -1 : 1);
|
|
149
127
|
break;
|
|
150
128
|
}
|
|
151
|
-
return
|
|
129
|
+
return m;
|
|
152
130
|
}
|
|
153
|
-
const
|
|
131
|
+
const _e = async (t, e, n) => {
|
|
154
132
|
const {
|
|
155
133
|
placement: o = "bottom",
|
|
156
|
-
strategy:
|
|
134
|
+
strategy: r = "absolute",
|
|
157
135
|
middleware: s = [],
|
|
158
|
-
platform:
|
|
159
|
-
} = n,
|
|
160
|
-
let
|
|
136
|
+
platform: u
|
|
137
|
+
} = n, i = s.filter(Boolean), l = await (u.isRTL == null ? void 0 : u.isRTL(e));
|
|
138
|
+
let c = await u.getElementRects({
|
|
161
139
|
reference: t,
|
|
162
140
|
floating: e,
|
|
163
|
-
strategy:
|
|
141
|
+
strategy: r
|
|
164
142
|
}), {
|
|
165
|
-
x:
|
|
143
|
+
x: a,
|
|
166
144
|
y: f
|
|
167
|
-
} =
|
|
168
|
-
for (let
|
|
145
|
+
} = kt(c, o, l), p = o, m = {}, g = 0;
|
|
146
|
+
for (let y = 0; y < i.length; y++) {
|
|
169
147
|
const {
|
|
170
|
-
name:
|
|
148
|
+
name: d,
|
|
171
149
|
fn: h
|
|
172
|
-
} =
|
|
173
|
-
x:
|
|
174
|
-
y,
|
|
175
|
-
data:
|
|
176
|
-
reset:
|
|
150
|
+
} = i[y], {
|
|
151
|
+
x: v,
|
|
152
|
+
y: b,
|
|
153
|
+
data: S,
|
|
154
|
+
reset: w
|
|
177
155
|
} = await h({
|
|
178
|
-
x:
|
|
156
|
+
x: a,
|
|
179
157
|
y: f,
|
|
180
158
|
initialPlacement: o,
|
|
181
|
-
placement:
|
|
182
|
-
strategy:
|
|
183
|
-
middlewareData:
|
|
184
|
-
rects:
|
|
185
|
-
platform:
|
|
159
|
+
placement: p,
|
|
160
|
+
strategy: r,
|
|
161
|
+
middlewareData: m,
|
|
162
|
+
rects: c,
|
|
163
|
+
platform: u,
|
|
186
164
|
elements: {
|
|
187
165
|
reference: t,
|
|
188
166
|
floating: e
|
|
189
167
|
}
|
|
190
168
|
});
|
|
191
|
-
|
|
192
|
-
...
|
|
193
|
-
[
|
|
194
|
-
...
|
|
195
|
-
...
|
|
169
|
+
a = v ?? a, f = b ?? f, m = {
|
|
170
|
+
...m,
|
|
171
|
+
[d]: {
|
|
172
|
+
...m[d],
|
|
173
|
+
...S
|
|
196
174
|
}
|
|
197
|
-
},
|
|
175
|
+
}, w && g <= 50 && (g++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (c = w.rects === !0 ? await u.getElementRects({
|
|
198
176
|
reference: t,
|
|
199
177
|
floating: e,
|
|
200
|
-
strategy:
|
|
201
|
-
}) :
|
|
202
|
-
x:
|
|
178
|
+
strategy: r
|
|
179
|
+
}) : w.rects), {
|
|
180
|
+
x: a,
|
|
203
181
|
y: f
|
|
204
|
-
} =
|
|
182
|
+
} = kt(c, p, l)), y = -1);
|
|
205
183
|
}
|
|
206
184
|
return {
|
|
207
|
-
x:
|
|
185
|
+
x: a,
|
|
208
186
|
y: f,
|
|
209
|
-
placement:
|
|
210
|
-
strategy:
|
|
211
|
-
middlewareData:
|
|
187
|
+
placement: p,
|
|
188
|
+
strategy: r,
|
|
189
|
+
middlewareData: m
|
|
212
190
|
};
|
|
213
191
|
};
|
|
214
|
-
async function
|
|
192
|
+
async function $e(t, e) {
|
|
215
193
|
var n;
|
|
216
194
|
e === void 0 && (e = {});
|
|
217
195
|
const {
|
|
218
196
|
x: o,
|
|
219
|
-
y:
|
|
197
|
+
y: r,
|
|
220
198
|
platform: s,
|
|
221
|
-
rects:
|
|
222
|
-
elements:
|
|
199
|
+
rects: u,
|
|
200
|
+
elements: i,
|
|
223
201
|
strategy: l
|
|
224
202
|
} = t, {
|
|
225
|
-
boundary:
|
|
226
|
-
rootBoundary:
|
|
203
|
+
boundary: c = "clippingAncestors",
|
|
204
|
+
rootBoundary: a = "viewport",
|
|
227
205
|
elementContext: f = "floating",
|
|
228
|
-
altBoundary:
|
|
229
|
-
padding:
|
|
230
|
-
} =
|
|
231
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(
|
|
232
|
-
boundary:
|
|
233
|
-
rootBoundary:
|
|
206
|
+
altBoundary: p = !1,
|
|
207
|
+
padding: m = 0
|
|
208
|
+
} = Yt(e, t), g = Ne(m), d = i[p ? f === "floating" ? "reference" : "floating" : f], h = ot(await s.getClippingRect({
|
|
209
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(d))) == null || n ? d : d.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
210
|
+
boundary: c,
|
|
211
|
+
rootBoundary: a,
|
|
234
212
|
strategy: l
|
|
235
|
-
})),
|
|
213
|
+
})), v = f === "floating" ? {
|
|
236
214
|
x: o,
|
|
237
|
-
y:
|
|
238
|
-
width:
|
|
239
|
-
height:
|
|
240
|
-
} :
|
|
215
|
+
y: r,
|
|
216
|
+
width: u.floating.width,
|
|
217
|
+
height: u.floating.height
|
|
218
|
+
} : u.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), S = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
|
|
241
219
|
x: 1,
|
|
242
220
|
y: 1
|
|
243
221
|
} : {
|
|
244
222
|
x: 1,
|
|
245
223
|
y: 1
|
|
246
|
-
},
|
|
247
|
-
elements:
|
|
248
|
-
rect:
|
|
249
|
-
offsetParent:
|
|
224
|
+
}, w = ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
225
|
+
elements: i,
|
|
226
|
+
rect: v,
|
|
227
|
+
offsetParent: b,
|
|
250
228
|
strategy: l
|
|
251
|
-
}) :
|
|
229
|
+
}) : v);
|
|
252
230
|
return {
|
|
253
|
-
top: (h.top -
|
|
254
|
-
bottom: (
|
|
255
|
-
left: (h.left -
|
|
256
|
-
right: (
|
|
231
|
+
top: (h.top - w.top + g.top) / S.y,
|
|
232
|
+
bottom: (w.bottom - h.bottom + g.bottom) / S.y,
|
|
233
|
+
left: (h.left - w.left + g.left) / S.x,
|
|
234
|
+
right: (w.right - h.right + g.right) / S.x
|
|
257
235
|
};
|
|
258
236
|
}
|
|
259
|
-
|
|
237
|
+
function Ie(t, e, n) {
|
|
238
|
+
return (t ? [...n.filter((r) => I(r) === t), ...n.filter((r) => I(r) !== t)] : n.filter((r) => st(r) === r)).filter((r) => t ? I(r) === t || (e ? We(r) !== r : !1) : !0);
|
|
239
|
+
}
|
|
240
|
+
const Ve = function(t) {
|
|
260
241
|
return t === void 0 && (t = {}), {
|
|
261
|
-
name: "
|
|
242
|
+
name: "autoPlacement",
|
|
262
243
|
options: t,
|
|
263
244
|
async fn(e) {
|
|
264
|
-
var n, o;
|
|
245
|
+
var n, o, r;
|
|
265
246
|
const {
|
|
247
|
+
rects: s,
|
|
248
|
+
middlewareData: u,
|
|
266
249
|
placement: i,
|
|
267
|
-
middlewareData: s,
|
|
268
|
-
rects: c,
|
|
269
|
-
initialPlacement: r,
|
|
270
250
|
platform: l,
|
|
271
|
-
elements:
|
|
251
|
+
elements: c
|
|
272
252
|
} = e, {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
} = Rt(t, e);
|
|
281
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
253
|
+
crossAxis: a = !1,
|
|
254
|
+
alignment: f,
|
|
255
|
+
allowedPlacements: p = At,
|
|
256
|
+
autoAlignment: m = !0,
|
|
257
|
+
...g
|
|
258
|
+
} = Yt(t, e), y = f !== void 0 || p === At ? Ie(f || null, m, p) : p, d = await $e(e, g), h = ((n = u.autoPlacement) == null ? void 0 : n.index) || 0, v = y[h];
|
|
259
|
+
if (v == null)
|
|
282
260
|
return {};
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
const F = $e(i, c, b);
|
|
289
|
-
$.push(R[F[0]], R[F[1]]);
|
|
290
|
-
}
|
|
291
|
-
if (Y = [...Y, {
|
|
292
|
-
placement: i,
|
|
293
|
-
overflows: $
|
|
294
|
-
}], !$.every((F) => F <= 0)) {
|
|
295
|
-
var Dt, Mt;
|
|
296
|
-
const F = (((Dt = s.flip) == null ? void 0 : Dt.index) || 0) + 1, gt = x[F];
|
|
297
|
-
if (gt && (!(f === "alignment" ? g !== H(gt) : !1) || // We leave the current main axis only if every placement on that axis
|
|
298
|
-
// overflows the main axis.
|
|
299
|
-
Y.every((T) => H(T.placement) === g ? T.overflows[0] > 0 : !0)))
|
|
300
|
-
return {
|
|
301
|
-
data: {
|
|
302
|
-
index: F,
|
|
303
|
-
overflows: Y
|
|
304
|
-
},
|
|
305
|
-
reset: {
|
|
306
|
-
placement: gt
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
let Z = (Mt = Y.filter((j) => j.overflows[0] <= 0).sort((j, T) => j.overflows[1] - T.overflows[1])[0]) == null ? void 0 : Mt.placement;
|
|
310
|
-
if (!Z)
|
|
311
|
-
switch (p) {
|
|
312
|
-
case "bestFit": {
|
|
313
|
-
var Wt;
|
|
314
|
-
const j = (Wt = Y.filter((T) => {
|
|
315
|
-
if (rt) {
|
|
316
|
-
const I = H(T.placement);
|
|
317
|
-
return I === g || // Create a bias to the `y` side axis due to horizontal
|
|
318
|
-
// reading directions favoring greater width.
|
|
319
|
-
I === "y";
|
|
320
|
-
}
|
|
321
|
-
return !0;
|
|
322
|
-
}).map((T) => [T.placement, T.overflows.filter((I) => I > 0).reduce((I, be) => I + be, 0)]).sort((T, I) => T[1] - I[1])[0]) == null ? void 0 : Wt[0];
|
|
323
|
-
j && (Z = j);
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
case "initialPlacement":
|
|
327
|
-
Z = r;
|
|
328
|
-
break;
|
|
261
|
+
const b = De(v, s, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
|
|
262
|
+
if (i !== v)
|
|
263
|
+
return {
|
|
264
|
+
reset: {
|
|
265
|
+
placement: y[0]
|
|
329
266
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
x: p * u,
|
|
362
|
-
y: d * a
|
|
363
|
-
} : {
|
|
364
|
-
x: d * a,
|
|
365
|
-
y: p * u
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
const Qe = function(t) {
|
|
369
|
-
return t === void 0 && (t = 0), {
|
|
370
|
-
name: "offset",
|
|
371
|
-
options: t,
|
|
372
|
-
async fn(e) {
|
|
373
|
-
var n, o;
|
|
374
|
-
const {
|
|
375
|
-
x: i,
|
|
376
|
-
y: s,
|
|
377
|
-
placement: c,
|
|
378
|
-
middlewareData: r
|
|
379
|
-
} = e, l = await Ze(e, t);
|
|
380
|
-
return c === ((n = r.offset) == null ? void 0 : n.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
|
|
381
|
-
x: i + l.x,
|
|
382
|
-
y: s + l.y,
|
|
267
|
+
};
|
|
268
|
+
const S = [d[st(v)], d[b[0]], d[b[1]]], w = [...((o = u.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
269
|
+
placement: v,
|
|
270
|
+
overflows: S
|
|
271
|
+
}], Y = y[h + 1];
|
|
272
|
+
if (Y)
|
|
273
|
+
return {
|
|
274
|
+
data: {
|
|
275
|
+
index: h + 1,
|
|
276
|
+
overflows: w
|
|
277
|
+
},
|
|
278
|
+
reset: {
|
|
279
|
+
placement: Y
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
const x = w.map((L) => {
|
|
283
|
+
const G = I(L.placement);
|
|
284
|
+
return [L.placement, G && a ? (
|
|
285
|
+
// Check along the mainAxis and main crossAxis side.
|
|
286
|
+
L.overflows.slice(0, 2).reduce((fe, de) => fe + de, 0)
|
|
287
|
+
) : (
|
|
288
|
+
// Check only the mainAxis.
|
|
289
|
+
L.overflows[0]
|
|
290
|
+
), L.overflows];
|
|
291
|
+
}).sort((L, G) => L[1] - G[1]), q = ((r = x.filter((L) => L[2].slice(
|
|
292
|
+
0,
|
|
293
|
+
// Aligned placements should not check their opposite crossAxis
|
|
294
|
+
// side.
|
|
295
|
+
I(L[0]) ? 2 : 3
|
|
296
|
+
).every((G) => G <= 0))[0]) == null ? void 0 : r[0]) || x[0][0];
|
|
297
|
+
return q !== i ? {
|
|
383
298
|
data: {
|
|
384
|
-
|
|
385
|
-
|
|
299
|
+
index: h + 1,
|
|
300
|
+
overflows: w
|
|
301
|
+
},
|
|
302
|
+
reset: {
|
|
303
|
+
placement: q
|
|
386
304
|
}
|
|
387
|
-
};
|
|
305
|
+
} : {};
|
|
388
306
|
}
|
|
389
307
|
};
|
|
390
308
|
};
|
|
391
|
-
function
|
|
309
|
+
function lt() {
|
|
392
310
|
return typeof window < "u";
|
|
393
311
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
312
|
+
function F(t) {
|
|
313
|
+
return yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
396
314
|
}
|
|
397
|
-
function
|
|
315
|
+
function P(t) {
|
|
398
316
|
var e;
|
|
399
317
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
400
318
|
}
|
|
401
319
|
function N(t) {
|
|
402
320
|
var e;
|
|
403
|
-
return (e = (
|
|
321
|
+
return (e = (yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
404
322
|
}
|
|
405
|
-
function
|
|
406
|
-
return
|
|
323
|
+
function yt(t) {
|
|
324
|
+
return lt() ? t instanceof Node || t instanceof P(t).Node : !1;
|
|
407
325
|
}
|
|
408
|
-
function
|
|
409
|
-
return
|
|
326
|
+
function A(t) {
|
|
327
|
+
return lt() ? t instanceof Element || t instanceof P(t).Element : !1;
|
|
410
328
|
}
|
|
411
|
-
function
|
|
412
|
-
return
|
|
329
|
+
function D(t) {
|
|
330
|
+
return lt() ? t instanceof HTMLElement || t instanceof P(t).HTMLElement : !1;
|
|
413
331
|
}
|
|
414
|
-
function
|
|
415
|
-
return !
|
|
332
|
+
function Mt(t) {
|
|
333
|
+
return !lt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof P(t).ShadowRoot;
|
|
416
334
|
}
|
|
417
|
-
const
|
|
418
|
-
function
|
|
335
|
+
const Fe = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
336
|
+
function Q(t) {
|
|
419
337
|
const {
|
|
420
338
|
overflow: e,
|
|
421
339
|
overflowX: n,
|
|
422
340
|
overflowY: o,
|
|
423
|
-
display:
|
|
424
|
-
} =
|
|
425
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !
|
|
341
|
+
display: r
|
|
342
|
+
} = T(t);
|
|
343
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Fe.has(r);
|
|
426
344
|
}
|
|
427
|
-
const
|
|
428
|
-
function
|
|
429
|
-
return
|
|
345
|
+
const je = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
346
|
+
function He(t) {
|
|
347
|
+
return je.has(F(t));
|
|
430
348
|
}
|
|
431
|
-
const
|
|
432
|
-
function
|
|
433
|
-
return
|
|
349
|
+
const ze = [":popover-open", ":modal"];
|
|
350
|
+
function ct(t) {
|
|
351
|
+
return ze.some((e) => {
|
|
434
352
|
try {
|
|
435
353
|
return t.matches(e);
|
|
436
354
|
} catch {
|
|
@@ -438,34 +356,34 @@ function mt(t) {
|
|
|
438
356
|
}
|
|
439
357
|
});
|
|
440
358
|
}
|
|
441
|
-
const
|
|
442
|
-
function
|
|
443
|
-
const e =
|
|
444
|
-
return
|
|
359
|
+
const Xe = ["transform", "translate", "scale", "rotate", "perspective"], Ye = ["transform", "translate", "scale", "rotate", "perspective", "filter"], qe = ["paint", "layout", "strict", "content"];
|
|
360
|
+
function bt(t) {
|
|
361
|
+
const e = xt(), n = A(t) ? T(t) : t;
|
|
362
|
+
return Xe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ye.some((o) => (n.willChange || "").includes(o)) || qe.some((o) => (n.contain || "").includes(o));
|
|
445
363
|
}
|
|
446
|
-
function
|
|
447
|
-
let e =
|
|
448
|
-
for (;
|
|
449
|
-
if (
|
|
364
|
+
function Ge(t) {
|
|
365
|
+
let e = _(t);
|
|
366
|
+
for (; D(e) && !z(e); ) {
|
|
367
|
+
if (bt(e))
|
|
450
368
|
return e;
|
|
451
|
-
if (
|
|
369
|
+
if (ct(e))
|
|
452
370
|
return null;
|
|
453
|
-
e =
|
|
371
|
+
e = _(e);
|
|
454
372
|
}
|
|
455
373
|
return null;
|
|
456
374
|
}
|
|
457
|
-
function
|
|
375
|
+
function xt() {
|
|
458
376
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
459
377
|
}
|
|
460
|
-
const
|
|
461
|
-
function
|
|
462
|
-
return
|
|
378
|
+
const Je = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
379
|
+
function z(t) {
|
|
380
|
+
return Je.has(F(t));
|
|
463
381
|
}
|
|
464
|
-
function
|
|
465
|
-
return
|
|
382
|
+
function T(t) {
|
|
383
|
+
return P(t).getComputedStyle(t);
|
|
466
384
|
}
|
|
467
|
-
function
|
|
468
|
-
return
|
|
385
|
+
function ut(t) {
|
|
386
|
+
return A(t) ? {
|
|
469
387
|
scrollLeft: t.scrollLeft,
|
|
470
388
|
scrollTop: t.scrollTop
|
|
471
389
|
} : {
|
|
@@ -473,222 +391,222 @@ function ht(t) {
|
|
|
473
391
|
scrollTop: t.scrollY
|
|
474
392
|
};
|
|
475
393
|
}
|
|
476
|
-
function
|
|
477
|
-
if (
|
|
394
|
+
function _(t) {
|
|
395
|
+
if (F(t) === "html")
|
|
478
396
|
return t;
|
|
479
397
|
const e = (
|
|
480
398
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
481
399
|
t.assignedSlot || // DOM Element detected.
|
|
482
400
|
t.parentNode || // ShadowRoot detected.
|
|
483
|
-
|
|
401
|
+
Mt(t) && t.host || // Fallback.
|
|
484
402
|
N(t)
|
|
485
403
|
);
|
|
486
|
-
return
|
|
404
|
+
return Mt(e) ? e.host : e;
|
|
487
405
|
}
|
|
488
|
-
function
|
|
489
|
-
const e =
|
|
490
|
-
return
|
|
406
|
+
function Ut(t) {
|
|
407
|
+
const e = _(t);
|
|
408
|
+
return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && Q(e) ? e : Ut(e);
|
|
491
409
|
}
|
|
492
|
-
function
|
|
410
|
+
function Kt(t, e, n) {
|
|
493
411
|
var o;
|
|
494
412
|
e === void 0 && (e = []);
|
|
495
|
-
const
|
|
496
|
-
return s ? (
|
|
413
|
+
const r = Ut(t), s = r === ((o = t.ownerDocument) == null ? void 0 : o.body), u = P(r);
|
|
414
|
+
return s ? (vt(u), e.concat(u, u.visualViewport || [], Q(r) ? r : [], [])) : e.concat(r, Kt(r, []));
|
|
497
415
|
}
|
|
498
|
-
function
|
|
416
|
+
function vt(t) {
|
|
499
417
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
500
418
|
}
|
|
501
|
-
function
|
|
502
|
-
const e =
|
|
419
|
+
function Zt(t) {
|
|
420
|
+
const e = T(t);
|
|
503
421
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
504
|
-
const
|
|
505
|
-
return
|
|
422
|
+
const r = D(t), s = r ? t.offsetWidth : n, u = r ? t.offsetHeight : o, i = nt(n) !== s || nt(o) !== u;
|
|
423
|
+
return i && (n = s, o = u), {
|
|
506
424
|
width: n,
|
|
507
425
|
height: o,
|
|
508
|
-
$:
|
|
426
|
+
$: i
|
|
509
427
|
};
|
|
510
428
|
}
|
|
511
|
-
function
|
|
512
|
-
return
|
|
429
|
+
function Qt(t) {
|
|
430
|
+
return A(t) ? t : t.contextElement;
|
|
513
431
|
}
|
|
514
|
-
function
|
|
515
|
-
const e =
|
|
516
|
-
if (!
|
|
432
|
+
function H(t) {
|
|
433
|
+
const e = Qt(t);
|
|
434
|
+
if (!D(e))
|
|
517
435
|
return M(1);
|
|
518
436
|
const n = e.getBoundingClientRect(), {
|
|
519
437
|
width: o,
|
|
520
|
-
height:
|
|
438
|
+
height: r,
|
|
521
439
|
$: s
|
|
522
|
-
} =
|
|
523
|
-
let
|
|
524
|
-
return (!
|
|
525
|
-
x:
|
|
526
|
-
y:
|
|
440
|
+
} = Zt(e);
|
|
441
|
+
let u = (s ? nt(n.width) : n.width) / o, i = (s ? nt(n.height) : n.height) / r;
|
|
442
|
+
return (!u || !Number.isFinite(u)) && (u = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
443
|
+
x: u,
|
|
444
|
+
y: i
|
|
527
445
|
};
|
|
528
446
|
}
|
|
529
|
-
const
|
|
530
|
-
function
|
|
531
|
-
const e =
|
|
532
|
-
return !
|
|
447
|
+
const Ue = /* @__PURE__ */ M(0);
|
|
448
|
+
function te(t) {
|
|
449
|
+
const e = P(t);
|
|
450
|
+
return !xt() || !e.visualViewport ? Ue : {
|
|
533
451
|
x: e.visualViewport.offsetLeft,
|
|
534
452
|
y: e.visualViewport.offsetTop
|
|
535
453
|
};
|
|
536
454
|
}
|
|
537
|
-
function
|
|
538
|
-
return e === void 0 && (e = !1), !n || e && n !==
|
|
455
|
+
function Ke(t, e, n) {
|
|
456
|
+
return e === void 0 && (e = !1), !n || e && n !== P(t) ? !1 : e;
|
|
539
457
|
}
|
|
540
|
-
function
|
|
458
|
+
function Z(t, e, n, o) {
|
|
541
459
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
542
|
-
const
|
|
543
|
-
let
|
|
544
|
-
e && (o ?
|
|
545
|
-
const
|
|
546
|
-
let l = (
|
|
460
|
+
const r = t.getBoundingClientRect(), s = Qt(t);
|
|
461
|
+
let u = M(1);
|
|
462
|
+
e && (o ? A(o) && (u = H(o)) : u = H(t));
|
|
463
|
+
const i = Ke(s, n, o) ? te(s) : M(0);
|
|
464
|
+
let l = (r.left + i.x) / u.x, c = (r.top + i.y) / u.y, a = r.width / u.x, f = r.height / u.y;
|
|
547
465
|
if (s) {
|
|
548
|
-
const
|
|
549
|
-
let
|
|
550
|
-
for (;
|
|
551
|
-
const
|
|
552
|
-
l *=
|
|
466
|
+
const p = P(s), m = o && A(o) ? P(o) : o;
|
|
467
|
+
let g = p, y = vt(g);
|
|
468
|
+
for (; y && o && m !== g; ) {
|
|
469
|
+
const d = H(y), h = y.getBoundingClientRect(), v = T(y), b = h.left + (y.clientLeft + parseFloat(v.paddingLeft)) * d.x, S = h.top + (y.clientTop + parseFloat(v.paddingTop)) * d.y;
|
|
470
|
+
l *= d.x, c *= d.y, a *= d.x, f *= d.y, l += b, c += S, g = P(y), y = vt(g);
|
|
553
471
|
}
|
|
554
472
|
}
|
|
555
|
-
return
|
|
556
|
-
width:
|
|
473
|
+
return ot({
|
|
474
|
+
width: a,
|
|
557
475
|
height: f,
|
|
558
476
|
x: l,
|
|
559
|
-
y:
|
|
477
|
+
y: c
|
|
560
478
|
});
|
|
561
479
|
}
|
|
562
|
-
function
|
|
563
|
-
const n =
|
|
564
|
-
return e ? e.left + n :
|
|
480
|
+
function at(t, e) {
|
|
481
|
+
const n = ut(t).scrollLeft;
|
|
482
|
+
return e ? e.left + n : Z(N(t)).left + n;
|
|
565
483
|
}
|
|
566
|
-
function
|
|
567
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft -
|
|
484
|
+
function ee(t, e) {
|
|
485
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), r = n.top + e.scrollTop;
|
|
568
486
|
return {
|
|
569
487
|
x: o,
|
|
570
|
-
y:
|
|
488
|
+
y: r
|
|
571
489
|
};
|
|
572
490
|
}
|
|
573
|
-
function
|
|
491
|
+
function Ze(t) {
|
|
574
492
|
let {
|
|
575
493
|
elements: e,
|
|
576
494
|
rect: n,
|
|
577
495
|
offsetParent: o,
|
|
578
|
-
strategy:
|
|
496
|
+
strategy: r
|
|
579
497
|
} = t;
|
|
580
|
-
const s =
|
|
581
|
-
if (o ===
|
|
498
|
+
const s = r === "fixed", u = N(o), i = e ? ct(e.floating) : !1;
|
|
499
|
+
if (o === u || i && s)
|
|
582
500
|
return n;
|
|
583
501
|
let l = {
|
|
584
502
|
scrollLeft: 0,
|
|
585
503
|
scrollTop: 0
|
|
586
|
-
},
|
|
587
|
-
const
|
|
588
|
-
if ((f || !f && !s) && ((
|
|
589
|
-
const
|
|
590
|
-
|
|
504
|
+
}, c = M(1);
|
|
505
|
+
const a = M(0), f = D(o);
|
|
506
|
+
if ((f || !f && !s) && ((F(o) !== "body" || Q(u)) && (l = ut(o)), D(o))) {
|
|
507
|
+
const m = Z(o);
|
|
508
|
+
c = H(o), a.x = m.x + o.clientLeft, a.y = m.y + o.clientTop;
|
|
591
509
|
}
|
|
592
|
-
const
|
|
510
|
+
const p = u && !f && !s ? ee(u, l) : M(0);
|
|
593
511
|
return {
|
|
594
|
-
width: n.width *
|
|
595
|
-
height: n.height *
|
|
596
|
-
x: n.x *
|
|
597
|
-
y: n.y *
|
|
512
|
+
width: n.width * c.x,
|
|
513
|
+
height: n.height * c.y,
|
|
514
|
+
x: n.x * c.x - l.scrollLeft * c.x + a.x + p.x,
|
|
515
|
+
y: n.y * c.y - l.scrollTop * c.y + a.y + p.y
|
|
598
516
|
};
|
|
599
517
|
}
|
|
600
|
-
function
|
|
518
|
+
function Qe(t) {
|
|
601
519
|
return Array.from(t.getClientRects());
|
|
602
520
|
}
|
|
603
|
-
function
|
|
604
|
-
const e = N(t), n =
|
|
605
|
-
let
|
|
606
|
-
const
|
|
607
|
-
return
|
|
608
|
-
width:
|
|
521
|
+
function tn(t) {
|
|
522
|
+
const e = N(t), n = ut(t), o = t.ownerDocument.body, r = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
523
|
+
let u = -n.scrollLeft + at(t);
|
|
524
|
+
const i = -n.scrollTop;
|
|
525
|
+
return T(o).direction === "rtl" && (u += K(e.clientWidth, o.clientWidth) - r), {
|
|
526
|
+
width: r,
|
|
609
527
|
height: s,
|
|
610
|
-
x:
|
|
611
|
-
y:
|
|
528
|
+
x: u,
|
|
529
|
+
y: i
|
|
612
530
|
};
|
|
613
531
|
}
|
|
614
|
-
const
|
|
615
|
-
function
|
|
616
|
-
const n =
|
|
617
|
-
let s = o.clientWidth,
|
|
618
|
-
if (
|
|
619
|
-
s =
|
|
620
|
-
const
|
|
621
|
-
(!
|
|
532
|
+
const Dt = 25;
|
|
533
|
+
function en(t, e) {
|
|
534
|
+
const n = P(t), o = N(t), r = n.visualViewport;
|
|
535
|
+
let s = o.clientWidth, u = o.clientHeight, i = 0, l = 0;
|
|
536
|
+
if (r) {
|
|
537
|
+
s = r.width, u = r.height;
|
|
538
|
+
const a = xt();
|
|
539
|
+
(!a || a && e === "fixed") && (i = r.offsetLeft, l = r.offsetTop);
|
|
622
540
|
}
|
|
623
|
-
const
|
|
624
|
-
if (
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
} else
|
|
541
|
+
const c = at(o);
|
|
542
|
+
if (c <= 0) {
|
|
543
|
+
const a = o.ownerDocument, f = a.body, p = getComputedStyle(f), m = a.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, g = Math.abs(o.clientWidth - f.clientWidth - m);
|
|
544
|
+
g <= Dt && (s -= g);
|
|
545
|
+
} else c <= Dt && (s += c);
|
|
628
546
|
return {
|
|
629
547
|
width: s,
|
|
630
|
-
height:
|
|
631
|
-
x:
|
|
548
|
+
height: u,
|
|
549
|
+
x: i,
|
|
632
550
|
y: l
|
|
633
551
|
};
|
|
634
552
|
}
|
|
635
|
-
const
|
|
636
|
-
function
|
|
637
|
-
const n =
|
|
553
|
+
const nn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
554
|
+
function on(t, e) {
|
|
555
|
+
const n = Z(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, s = D(t) ? H(t) : M(1), u = t.clientWidth * s.x, i = t.clientHeight * s.y, l = r * s.x, c = o * s.y;
|
|
638
556
|
return {
|
|
639
|
-
width:
|
|
640
|
-
height:
|
|
557
|
+
width: u,
|
|
558
|
+
height: i,
|
|
641
559
|
x: l,
|
|
642
|
-
y:
|
|
560
|
+
y: c
|
|
643
561
|
};
|
|
644
562
|
}
|
|
645
|
-
function
|
|
563
|
+
function Wt(t, e, n) {
|
|
646
564
|
let o;
|
|
647
565
|
if (e === "viewport")
|
|
648
|
-
o =
|
|
566
|
+
o = en(t, n);
|
|
649
567
|
else if (e === "document")
|
|
650
|
-
o =
|
|
651
|
-
else if (
|
|
652
|
-
o =
|
|
568
|
+
o = tn(N(t));
|
|
569
|
+
else if (A(e))
|
|
570
|
+
o = on(e, n);
|
|
653
571
|
else {
|
|
654
|
-
const
|
|
572
|
+
const r = te(t);
|
|
655
573
|
o = {
|
|
656
|
-
x: e.x -
|
|
657
|
-
y: e.y -
|
|
574
|
+
x: e.x - r.x,
|
|
575
|
+
y: e.y - r.y,
|
|
658
576
|
width: e.width,
|
|
659
577
|
height: e.height
|
|
660
578
|
};
|
|
661
579
|
}
|
|
662
|
-
return
|
|
580
|
+
return ot(o);
|
|
663
581
|
}
|
|
664
|
-
function
|
|
665
|
-
const n =
|
|
666
|
-
return n === e || !
|
|
582
|
+
function ne(t, e) {
|
|
583
|
+
const n = _(t);
|
|
584
|
+
return n === e || !A(n) || z(n) ? !1 : T(n).position === "fixed" || ne(n, e);
|
|
667
585
|
}
|
|
668
|
-
function
|
|
586
|
+
function rn(t, e) {
|
|
669
587
|
const n = e.get(t);
|
|
670
588
|
if (n)
|
|
671
589
|
return n;
|
|
672
|
-
let o =
|
|
673
|
-
const s =
|
|
674
|
-
let
|
|
675
|
-
for (;
|
|
676
|
-
const
|
|
677
|
-
!l &&
|
|
590
|
+
let o = Kt(t, []).filter((i) => A(i) && F(i) !== "body"), r = null;
|
|
591
|
+
const s = T(t).position === "fixed";
|
|
592
|
+
let u = s ? _(t) : t;
|
|
593
|
+
for (; A(u) && !z(u); ) {
|
|
594
|
+
const i = T(u), l = bt(u);
|
|
595
|
+
!l && i.position === "fixed" && (r = null), (s ? !l && !r : !l && i.position === "static" && !!r && nn.has(r.position) || Q(u) && !l && ne(t, u)) ? o = o.filter((a) => a !== u) : r = i, u = _(u);
|
|
678
596
|
}
|
|
679
597
|
return e.set(t, o), o;
|
|
680
598
|
}
|
|
681
|
-
function
|
|
599
|
+
function sn(t) {
|
|
682
600
|
let {
|
|
683
601
|
element: e,
|
|
684
602
|
boundary: n,
|
|
685
603
|
rootBoundary: o,
|
|
686
|
-
strategy:
|
|
604
|
+
strategy: r
|
|
687
605
|
} = t;
|
|
688
|
-
const
|
|
689
|
-
const f =
|
|
690
|
-
return
|
|
691
|
-
},
|
|
606
|
+
const u = [...n === "clippingAncestors" ? ct(e) ? [] : rn(e, this._c) : [].concat(n), o], i = u[0], l = u.reduce((c, a) => {
|
|
607
|
+
const f = Wt(e, a, r);
|
|
608
|
+
return c.top = K(f.top, c.top), c.right = Tt(f.right, c.right), c.bottom = Tt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
|
|
609
|
+
}, Wt(e, i, r));
|
|
692
610
|
return {
|
|
693
611
|
width: l.right - l.left,
|
|
694
612
|
height: l.bottom - l.top,
|
|
@@ -696,73 +614,73 @@ function yn(t) {
|
|
|
696
614
|
y: l.top
|
|
697
615
|
};
|
|
698
616
|
}
|
|
699
|
-
function
|
|
617
|
+
function ln(t) {
|
|
700
618
|
const {
|
|
701
619
|
width: e,
|
|
702
620
|
height: n
|
|
703
|
-
} =
|
|
621
|
+
} = Zt(t);
|
|
704
622
|
return {
|
|
705
623
|
width: e,
|
|
706
624
|
height: n
|
|
707
625
|
};
|
|
708
626
|
}
|
|
709
|
-
function
|
|
710
|
-
const o =
|
|
711
|
-
let
|
|
627
|
+
function cn(t, e, n) {
|
|
628
|
+
const o = D(e), r = N(e), s = n === "fixed", u = Z(t, !0, s, e);
|
|
629
|
+
let i = {
|
|
712
630
|
scrollLeft: 0,
|
|
713
631
|
scrollTop: 0
|
|
714
632
|
};
|
|
715
633
|
const l = M(0);
|
|
716
|
-
function
|
|
717
|
-
l.x =
|
|
634
|
+
function c() {
|
|
635
|
+
l.x = at(r);
|
|
718
636
|
}
|
|
719
637
|
if (o || !o && !s)
|
|
720
|
-
if ((
|
|
721
|
-
const
|
|
722
|
-
l.x =
|
|
723
|
-
} else
|
|
724
|
-
s && !o &&
|
|
725
|
-
const
|
|
638
|
+
if ((F(e) !== "body" || Q(r)) && (i = ut(e)), o) {
|
|
639
|
+
const m = Z(e, !0, s, e);
|
|
640
|
+
l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
|
|
641
|
+
} else r && c();
|
|
642
|
+
s && !o && r && c();
|
|
643
|
+
const a = r && !o && !s ? ee(r, i) : M(0), f = u.left + i.scrollLeft - l.x - a.x, p = u.top + i.scrollTop - l.y - a.y;
|
|
726
644
|
return {
|
|
727
645
|
x: f,
|
|
728
|
-
y:
|
|
729
|
-
width:
|
|
730
|
-
height:
|
|
646
|
+
y: p,
|
|
647
|
+
width: u.width,
|
|
648
|
+
height: u.height
|
|
731
649
|
};
|
|
732
650
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
651
|
+
function ft(t) {
|
|
652
|
+
return T(t).position === "static";
|
|
735
653
|
}
|
|
736
|
-
function
|
|
737
|
-
if (!
|
|
654
|
+
function Bt(t, e) {
|
|
655
|
+
if (!D(t) || T(t).position === "fixed")
|
|
738
656
|
return null;
|
|
739
657
|
if (e)
|
|
740
658
|
return e(t);
|
|
741
659
|
let n = t.offsetParent;
|
|
742
660
|
return N(t) === n && (n = n.ownerDocument.body), n;
|
|
743
661
|
}
|
|
744
|
-
function
|
|
745
|
-
const n =
|
|
746
|
-
if (
|
|
662
|
+
function oe(t, e) {
|
|
663
|
+
const n = P(t);
|
|
664
|
+
if (ct(t))
|
|
747
665
|
return n;
|
|
748
|
-
if (!
|
|
749
|
-
let
|
|
750
|
-
for (;
|
|
751
|
-
if (
|
|
752
|
-
return
|
|
753
|
-
|
|
666
|
+
if (!D(t)) {
|
|
667
|
+
let r = _(t);
|
|
668
|
+
for (; r && !z(r); ) {
|
|
669
|
+
if (A(r) && !ft(r))
|
|
670
|
+
return r;
|
|
671
|
+
r = _(r);
|
|
754
672
|
}
|
|
755
673
|
return n;
|
|
756
674
|
}
|
|
757
|
-
let o =
|
|
758
|
-
for (; o &&
|
|
759
|
-
o =
|
|
760
|
-
return o &&
|
|
675
|
+
let o = Bt(t, e);
|
|
676
|
+
for (; o && He(o) && ft(o); )
|
|
677
|
+
o = Bt(o, e);
|
|
678
|
+
return o && z(o) && ft(o) && !bt(o) ? n : o || Ge(t) || n;
|
|
761
679
|
}
|
|
762
|
-
const
|
|
763
|
-
const e = this.getOffsetParent ||
|
|
680
|
+
const un = async function(t) {
|
|
681
|
+
const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
|
|
764
682
|
return {
|
|
765
|
-
reference:
|
|
683
|
+
reference: cn(t.reference, await e(t.floating), t.strategy),
|
|
766
684
|
floating: {
|
|
767
685
|
x: 0,
|
|
768
686
|
y: 0,
|
|
@@ -771,194 +689,194 @@ const On = async function(t) {
|
|
|
771
689
|
}
|
|
772
690
|
};
|
|
773
691
|
};
|
|
774
|
-
function
|
|
775
|
-
return
|
|
692
|
+
function an(t) {
|
|
693
|
+
return T(t).direction === "rtl";
|
|
776
694
|
}
|
|
777
|
-
const
|
|
778
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
695
|
+
const fn = {
|
|
696
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ze,
|
|
779
697
|
getDocumentElement: N,
|
|
780
|
-
getClippingRect:
|
|
781
|
-
getOffsetParent:
|
|
782
|
-
getElementRects:
|
|
783
|
-
getClientRects:
|
|
784
|
-
getDimensions:
|
|
785
|
-
getScale:
|
|
786
|
-
isElement:
|
|
787
|
-
isRTL:
|
|
788
|
-
},
|
|
789
|
-
const o = /* @__PURE__ */ new Map(),
|
|
790
|
-
platform:
|
|
698
|
+
getClippingRect: sn,
|
|
699
|
+
getOffsetParent: oe,
|
|
700
|
+
getElementRects: un,
|
|
701
|
+
getClientRects: Qe,
|
|
702
|
+
getDimensions: ln,
|
|
703
|
+
getScale: H,
|
|
704
|
+
isElement: A,
|
|
705
|
+
isRTL: an
|
|
706
|
+
}, dn = Ve, pn = (t, e, n) => {
|
|
707
|
+
const o = /* @__PURE__ */ new Map(), r = {
|
|
708
|
+
platform: fn,
|
|
791
709
|
...n
|
|
792
710
|
}, s = {
|
|
793
|
-
...
|
|
711
|
+
...r.platform,
|
|
794
712
|
_c: o
|
|
795
713
|
};
|
|
796
|
-
return
|
|
797
|
-
...
|
|
714
|
+
return _e(t, e, {
|
|
715
|
+
...r,
|
|
798
716
|
platform: s
|
|
799
717
|
});
|
|
800
718
|
};
|
|
801
|
-
function
|
|
719
|
+
function mn(t) {
|
|
802
720
|
return t != null && typeof t == "object" && "$el" in t;
|
|
803
721
|
}
|
|
804
|
-
function
|
|
805
|
-
if (
|
|
722
|
+
function Nt(t) {
|
|
723
|
+
if (mn(t)) {
|
|
806
724
|
const e = t.$el;
|
|
807
|
-
return
|
|
725
|
+
return yt(e) && F(e) === "#comment" ? null : e;
|
|
808
726
|
}
|
|
809
727
|
return t;
|
|
810
728
|
}
|
|
811
|
-
function
|
|
812
|
-
return typeof t == "function" ? t() :
|
|
729
|
+
function J(t) {
|
|
730
|
+
return typeof t == "function" ? t() : it(t);
|
|
813
731
|
}
|
|
814
|
-
function
|
|
732
|
+
function re(t) {
|
|
815
733
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
816
734
|
}
|
|
817
|
-
function
|
|
818
|
-
const n =
|
|
735
|
+
function _t(t, e) {
|
|
736
|
+
const n = re(t);
|
|
819
737
|
return Math.round(e * n) / n;
|
|
820
738
|
}
|
|
821
|
-
function
|
|
739
|
+
function hn(t, e, n) {
|
|
822
740
|
n === void 0 && (n = {});
|
|
823
|
-
const o = n.whileElementsMounted,
|
|
741
|
+
const o = n.whileElementsMounted, r = O(() => {
|
|
824
742
|
var x;
|
|
825
|
-
return (x =
|
|
826
|
-
}), s =
|
|
743
|
+
return (x = J(n.open)) != null ? x : !0;
|
|
744
|
+
}), s = O(() => J(n.middleware)), u = O(() => {
|
|
827
745
|
var x;
|
|
828
|
-
return (x =
|
|
829
|
-
}),
|
|
746
|
+
return (x = J(n.placement)) != null ? x : "bottom";
|
|
747
|
+
}), i = O(() => {
|
|
830
748
|
var x;
|
|
831
|
-
return (x =
|
|
832
|
-
}), l =
|
|
749
|
+
return (x = J(n.strategy)) != null ? x : "absolute";
|
|
750
|
+
}), l = O(() => {
|
|
833
751
|
var x;
|
|
834
|
-
return (x =
|
|
835
|
-
}),
|
|
752
|
+
return (x = J(n.transform)) != null ? x : !0;
|
|
753
|
+
}), c = O(() => Nt(t.value)), a = O(() => Nt(e.value)), f = B(0), p = B(0), m = B(i.value), g = B(u.value), y = C({}), d = B(!1), h = O(() => {
|
|
836
754
|
const x = {
|
|
837
|
-
position:
|
|
755
|
+
position: m.value,
|
|
838
756
|
left: "0",
|
|
839
757
|
top: "0"
|
|
840
758
|
};
|
|
841
|
-
if (!
|
|
759
|
+
if (!a.value)
|
|
842
760
|
return x;
|
|
843
|
-
const
|
|
761
|
+
const W = _t(a.value, f.value), q = _t(a.value, p.value);
|
|
844
762
|
return l.value ? {
|
|
845
763
|
...x,
|
|
846
|
-
transform: "translate(" +
|
|
847
|
-
...
|
|
764
|
+
transform: "translate(" + W + "px, " + q + "px)",
|
|
765
|
+
...re(a.value) >= 1.5 && {
|
|
848
766
|
willChange: "transform"
|
|
849
767
|
}
|
|
850
768
|
} : {
|
|
851
|
-
position:
|
|
852
|
-
left:
|
|
853
|
-
top:
|
|
769
|
+
position: m.value,
|
|
770
|
+
left: W + "px",
|
|
771
|
+
top: q + "px"
|
|
854
772
|
};
|
|
855
773
|
});
|
|
856
|
-
let
|
|
857
|
-
function
|
|
858
|
-
if (
|
|
774
|
+
let v;
|
|
775
|
+
function b() {
|
|
776
|
+
if (c.value == null || a.value == null)
|
|
859
777
|
return;
|
|
860
|
-
const x =
|
|
861
|
-
|
|
778
|
+
const x = r.value;
|
|
779
|
+
pn(c.value, a.value, {
|
|
862
780
|
middleware: s.value,
|
|
863
|
-
placement:
|
|
864
|
-
strategy:
|
|
865
|
-
}).then((
|
|
866
|
-
f.value =
|
|
781
|
+
placement: u.value,
|
|
782
|
+
strategy: i.value
|
|
783
|
+
}).then((W) => {
|
|
784
|
+
f.value = W.x, p.value = W.y, m.value = W.strategy, g.value = W.placement, y.value = W.middlewareData, d.value = x !== !1;
|
|
867
785
|
});
|
|
868
786
|
}
|
|
869
|
-
function b() {
|
|
870
|
-
typeof g == "function" && (g(), g = void 0);
|
|
871
|
-
}
|
|
872
787
|
function S() {
|
|
873
|
-
|
|
874
|
-
|
|
788
|
+
typeof v == "function" && (v(), v = void 0);
|
|
789
|
+
}
|
|
790
|
+
function w() {
|
|
791
|
+
if (S(), o === void 0) {
|
|
792
|
+
b();
|
|
875
793
|
return;
|
|
876
794
|
}
|
|
877
|
-
if (
|
|
878
|
-
|
|
795
|
+
if (c.value != null && a.value != null) {
|
|
796
|
+
v = o(c.value, a.value, b);
|
|
879
797
|
return;
|
|
880
798
|
}
|
|
881
799
|
}
|
|
882
|
-
function
|
|
883
|
-
|
|
800
|
+
function Y() {
|
|
801
|
+
r.value || (d.value = !1);
|
|
884
802
|
}
|
|
885
|
-
return
|
|
803
|
+
return R([s, u, i, r], b, {
|
|
886
804
|
flush: "sync"
|
|
887
|
-
}),
|
|
805
|
+
}), R([c, a], w, {
|
|
888
806
|
flush: "sync"
|
|
889
|
-
}),
|
|
807
|
+
}), R(r, Y, {
|
|
890
808
|
flush: "sync"
|
|
891
|
-
}),
|
|
892
|
-
x:
|
|
893
|
-
y:
|
|
894
|
-
strategy:
|
|
895
|
-
placement:
|
|
896
|
-
middlewareData:
|
|
897
|
-
isPositioned:
|
|
809
|
+
}), Ht() && zt(S), {
|
|
810
|
+
x: j(f),
|
|
811
|
+
y: j(p),
|
|
812
|
+
strategy: j(m),
|
|
813
|
+
placement: j(g),
|
|
814
|
+
middlewareData: j(y),
|
|
815
|
+
isPositioned: j(d),
|
|
898
816
|
floatingStyles: h,
|
|
899
|
-
update:
|
|
817
|
+
update: b
|
|
900
818
|
};
|
|
901
819
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
820
|
+
function X(t) {
|
|
821
|
+
return Ht() ? (zt(t), !0) : !1;
|
|
904
822
|
}
|
|
905
|
-
const
|
|
823
|
+
const Ot = typeof window < "u" && typeof document < "u";
|
|
906
824
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
907
|
-
const
|
|
908
|
-
},
|
|
909
|
-
function
|
|
825
|
+
const vn = (t) => t != null, gn = Object.prototype.toString, ie = (t) => gn.call(t) === "[object Object]", k = () => {
|
|
826
|
+
}, gt = /* @__PURE__ */ wn();
|
|
827
|
+
function wn() {
|
|
910
828
|
var t, e;
|
|
911
|
-
return
|
|
829
|
+
return Ot && ((t = window?.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
912
830
|
}
|
|
913
|
-
function
|
|
831
|
+
function yn(...t) {
|
|
914
832
|
if (t.length !== 1)
|
|
915
|
-
return
|
|
833
|
+
return me(...t);
|
|
916
834
|
const e = t[0];
|
|
917
|
-
return typeof e == "function" ?
|
|
835
|
+
return typeof e == "function" ? he(ve(() => ({ get: e, set: k }))) : B(e);
|
|
918
836
|
}
|
|
919
|
-
function
|
|
837
|
+
function bn(t, e) {
|
|
920
838
|
function n(...o) {
|
|
921
|
-
return new Promise((
|
|
922
|
-
Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(
|
|
839
|
+
return new Promise((r, s) => {
|
|
840
|
+
Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(r).catch(s);
|
|
923
841
|
});
|
|
924
842
|
}
|
|
925
843
|
return n;
|
|
926
844
|
}
|
|
927
|
-
function
|
|
928
|
-
let n, o,
|
|
845
|
+
function xn(t, e = {}) {
|
|
846
|
+
let n, o, r = k;
|
|
929
847
|
const s = (l) => {
|
|
930
|
-
clearTimeout(l),
|
|
848
|
+
clearTimeout(l), r(), r = k;
|
|
931
849
|
};
|
|
932
|
-
let
|
|
850
|
+
let u;
|
|
933
851
|
return (l) => {
|
|
934
|
-
const
|
|
935
|
-
return n && s(n),
|
|
936
|
-
|
|
937
|
-
n && s(n), o = void 0, f(
|
|
938
|
-
},
|
|
852
|
+
const c = E(t), a = E(e.maxWait);
|
|
853
|
+
return n && s(n), c <= 0 || a !== void 0 && a <= 0 ? (o && (s(o), o = void 0), Promise.resolve(l())) : new Promise((f, p) => {
|
|
854
|
+
r = e.rejectOnCancel ? p : f, u = l, a && !o && (o = setTimeout(() => {
|
|
855
|
+
n && s(n), o = void 0, f(u());
|
|
856
|
+
}, a)), n = setTimeout(() => {
|
|
939
857
|
o && s(o), o = void 0, f(l());
|
|
940
|
-
},
|
|
858
|
+
}, c);
|
|
941
859
|
});
|
|
942
860
|
};
|
|
943
861
|
}
|
|
944
|
-
function
|
|
862
|
+
function V(t) {
|
|
945
863
|
return Array.isArray(t) ? t : [t];
|
|
946
864
|
}
|
|
947
|
-
function
|
|
948
|
-
return
|
|
865
|
+
function On(t) {
|
|
866
|
+
return Xt();
|
|
949
867
|
}
|
|
950
868
|
// @__NO_SIDE_EFFECTS__
|
|
951
|
-
function
|
|
952
|
-
return
|
|
953
|
-
|
|
869
|
+
function $t(t, e = 200, n = {}) {
|
|
870
|
+
return bn(
|
|
871
|
+
xn(e, n),
|
|
954
872
|
t
|
|
955
873
|
);
|
|
956
874
|
}
|
|
957
|
-
function
|
|
958
|
-
|
|
875
|
+
function Sn(t, e = !0, n) {
|
|
876
|
+
On() ? wt(t, n) : e ? t() : pe(t);
|
|
959
877
|
}
|
|
960
|
-
function
|
|
961
|
-
return
|
|
878
|
+
function se(t, e, n) {
|
|
879
|
+
return R(
|
|
962
880
|
t,
|
|
963
881
|
e,
|
|
964
882
|
{
|
|
@@ -967,100 +885,100 @@ function he(t, e, n) {
|
|
|
967
885
|
}
|
|
968
886
|
);
|
|
969
887
|
}
|
|
970
|
-
const
|
|
971
|
-
function
|
|
888
|
+
const tt = Ot ? window : void 0;
|
|
889
|
+
function $(t) {
|
|
972
890
|
var e;
|
|
973
|
-
const n =
|
|
891
|
+
const n = E(t);
|
|
974
892
|
return (e = n?.$el) != null ? e : n;
|
|
975
893
|
}
|
|
976
|
-
function
|
|
894
|
+
function rt(...t) {
|
|
977
895
|
const e = [], n = () => {
|
|
978
|
-
e.forEach((
|
|
979
|
-
}, o = (
|
|
980
|
-
const
|
|
981
|
-
return
|
|
982
|
-
}), s =
|
|
896
|
+
e.forEach((i) => i()), e.length = 0;
|
|
897
|
+
}, o = (i, l, c, a) => (i.addEventListener(l, c, a), () => i.removeEventListener(l, c, a)), r = O(() => {
|
|
898
|
+
const i = V(E(t[0])).filter((l) => l != null);
|
|
899
|
+
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
900
|
+
}), s = se(
|
|
983
901
|
() => {
|
|
984
|
-
var
|
|
902
|
+
var i, l;
|
|
985
903
|
return [
|
|
986
|
-
(l = (
|
|
987
|
-
|
|
988
|
-
|
|
904
|
+
(l = (i = r.value) == null ? void 0 : i.map((c) => $(c))) != null ? l : [tt].filter((c) => c != null),
|
|
905
|
+
V(E(r.value ? t[1] : t[0])),
|
|
906
|
+
V(it(r.value ? t[2] : t[1])),
|
|
989
907
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
990
|
-
|
|
908
|
+
E(r.value ? t[3] : t[2])
|
|
991
909
|
];
|
|
992
910
|
},
|
|
993
|
-
([
|
|
994
|
-
if (n(), !
|
|
911
|
+
([i, l, c, a]) => {
|
|
912
|
+
if (n(), !i?.length || !l?.length || !c?.length)
|
|
995
913
|
return;
|
|
996
|
-
const f =
|
|
914
|
+
const f = ie(a) ? { ...a } : a;
|
|
997
915
|
e.push(
|
|
998
|
-
...
|
|
999
|
-
(
|
|
1000
|
-
(
|
|
916
|
+
...i.flatMap(
|
|
917
|
+
(p) => l.flatMap(
|
|
918
|
+
(m) => c.map((g) => o(p, m, g, f))
|
|
1001
919
|
)
|
|
1002
920
|
)
|
|
1003
921
|
);
|
|
1004
922
|
},
|
|
1005
923
|
{ flush: "post" }
|
|
1006
|
-
),
|
|
924
|
+
), u = () => {
|
|
1007
925
|
s(), n();
|
|
1008
926
|
};
|
|
1009
|
-
return
|
|
927
|
+
return X(n), u;
|
|
1010
928
|
}
|
|
1011
929
|
// @__NO_SIDE_EFFECTS__
|
|
1012
|
-
function
|
|
1013
|
-
const t =
|
|
1014
|
-
return e &&
|
|
930
|
+
function En() {
|
|
931
|
+
const t = C(!1), e = Xt();
|
|
932
|
+
return e && wt(() => {
|
|
1015
933
|
t.value = !0;
|
|
1016
934
|
}, e), t;
|
|
1017
935
|
}
|
|
1018
936
|
// @__NO_SIDE_EFFECTS__
|
|
1019
|
-
function
|
|
1020
|
-
const e = /* @__PURE__ */
|
|
1021
|
-
return
|
|
937
|
+
function le(t) {
|
|
938
|
+
const e = /* @__PURE__ */ En();
|
|
939
|
+
return O(() => (e.value, !!t()));
|
|
1022
940
|
}
|
|
1023
|
-
function
|
|
1024
|
-
const { window: o =
|
|
941
|
+
function ce(t, e, n = {}) {
|
|
942
|
+
const { window: o = tt, ...r } = n;
|
|
1025
943
|
let s;
|
|
1026
|
-
const
|
|
944
|
+
const u = /* @__PURE__ */ le(() => o && "MutationObserver" in o), i = () => {
|
|
1027
945
|
s && (s.disconnect(), s = void 0);
|
|
1028
|
-
}, l =
|
|
1029
|
-
const
|
|
1030
|
-
return new Set(
|
|
1031
|
-
}),
|
|
946
|
+
}, l = O(() => {
|
|
947
|
+
const p = E(t), m = V(p).map($).filter(vn);
|
|
948
|
+
return new Set(m);
|
|
949
|
+
}), c = R(
|
|
1032
950
|
l,
|
|
1033
|
-
(
|
|
1034
|
-
|
|
951
|
+
(p) => {
|
|
952
|
+
i(), u.value && p.size && (s = new MutationObserver(e), p.forEach((m) => s.observe(m, r)));
|
|
1035
953
|
},
|
|
1036
954
|
{ immediate: !0, flush: "post" }
|
|
1037
|
-
),
|
|
1038
|
-
|
|
955
|
+
), a = () => s?.takeRecords(), f = () => {
|
|
956
|
+
c(), i();
|
|
1039
957
|
};
|
|
1040
|
-
return
|
|
1041
|
-
isSupported:
|
|
958
|
+
return X(f), {
|
|
959
|
+
isSupported: u,
|
|
1042
960
|
stop: f,
|
|
1043
|
-
takeRecords:
|
|
961
|
+
takeRecords: a
|
|
1044
962
|
};
|
|
1045
963
|
}
|
|
1046
|
-
function
|
|
964
|
+
function Cn(t, e, n = {}) {
|
|
1047
965
|
const {
|
|
1048
|
-
window: o =
|
|
1049
|
-
document:
|
|
966
|
+
window: o = tt,
|
|
967
|
+
document: r = o?.document,
|
|
1050
968
|
flush: s = "sync"
|
|
1051
969
|
} = n;
|
|
1052
|
-
if (!o || !
|
|
1053
|
-
return
|
|
1054
|
-
let
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1057
|
-
}, l =
|
|
1058
|
-
const
|
|
1059
|
-
if (
|
|
1060
|
-
const { stop: f } =
|
|
1061
|
-
|
|
1062
|
-
(
|
|
1063
|
-
|
|
970
|
+
if (!o || !r)
|
|
971
|
+
return k;
|
|
972
|
+
let u;
|
|
973
|
+
const i = (a) => {
|
|
974
|
+
u?.(), u = a;
|
|
975
|
+
}, l = ge(() => {
|
|
976
|
+
const a = $(t);
|
|
977
|
+
if (a) {
|
|
978
|
+
const { stop: f } = ce(
|
|
979
|
+
r,
|
|
980
|
+
(p) => {
|
|
981
|
+
p.map((g) => [...g.removedNodes]).flat().some((g) => g === a || g.contains(a)) && e(p);
|
|
1064
982
|
},
|
|
1065
983
|
{
|
|
1066
984
|
window: o,
|
|
@@ -1068,288 +986,289 @@ function _n(t, e, n = {}) {
|
|
|
1068
986
|
subtree: !0
|
|
1069
987
|
}
|
|
1070
988
|
);
|
|
1071
|
-
|
|
989
|
+
i(f);
|
|
1072
990
|
}
|
|
1073
|
-
}, { flush: s }),
|
|
1074
|
-
l(),
|
|
991
|
+
}, { flush: s }), c = () => {
|
|
992
|
+
l(), i();
|
|
1075
993
|
};
|
|
1076
|
-
return
|
|
994
|
+
return X(c), c;
|
|
1077
995
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const { window: o =
|
|
996
|
+
function Pn(t, e, n = {}) {
|
|
997
|
+
const { window: o = tt, ...r } = n;
|
|
1080
998
|
let s;
|
|
1081
|
-
const
|
|
999
|
+
const u = /* @__PURE__ */ le(() => o && "ResizeObserver" in o), i = () => {
|
|
1082
1000
|
s && (s.disconnect(), s = void 0);
|
|
1083
|
-
}, l =
|
|
1084
|
-
const f =
|
|
1085
|
-
return Array.isArray(f) ? f.map((
|
|
1086
|
-
}),
|
|
1001
|
+
}, l = O(() => {
|
|
1002
|
+
const f = E(t);
|
|
1003
|
+
return Array.isArray(f) ? f.map((p) => $(p)) : [$(f)];
|
|
1004
|
+
}), c = R(
|
|
1087
1005
|
l,
|
|
1088
1006
|
(f) => {
|
|
1089
|
-
if (
|
|
1007
|
+
if (i(), u.value && o) {
|
|
1090
1008
|
s = new ResizeObserver(e);
|
|
1091
|
-
for (const
|
|
1092
|
-
|
|
1009
|
+
for (const p of f)
|
|
1010
|
+
p && s.observe(p, r);
|
|
1093
1011
|
}
|
|
1094
1012
|
},
|
|
1095
1013
|
{ immediate: !0, flush: "post" }
|
|
1096
|
-
),
|
|
1097
|
-
|
|
1014
|
+
), a = () => {
|
|
1015
|
+
i(), c();
|
|
1098
1016
|
};
|
|
1099
|
-
return
|
|
1100
|
-
isSupported:
|
|
1101
|
-
stop:
|
|
1017
|
+
return X(a), {
|
|
1018
|
+
isSupported: u,
|
|
1019
|
+
stop: a
|
|
1102
1020
|
};
|
|
1103
1021
|
}
|
|
1104
|
-
function
|
|
1022
|
+
function Rn(t, e = {}) {
|
|
1105
1023
|
const {
|
|
1106
1024
|
reset: n = !0,
|
|
1107
1025
|
windowResize: o = !0,
|
|
1108
|
-
windowScroll:
|
|
1026
|
+
windowScroll: r = !0,
|
|
1109
1027
|
immediate: s = !0,
|
|
1110
|
-
updateTiming:
|
|
1111
|
-
} = e,
|
|
1112
|
-
function
|
|
1113
|
-
const h =
|
|
1028
|
+
updateTiming: u = "sync"
|
|
1029
|
+
} = e, i = C(0), l = C(0), c = C(0), a = C(0), f = C(0), p = C(0), m = C(0), g = C(0);
|
|
1030
|
+
function y() {
|
|
1031
|
+
const h = $(t);
|
|
1114
1032
|
if (!h) {
|
|
1115
|
-
n && (
|
|
1033
|
+
n && (i.value = 0, l.value = 0, c.value = 0, a.value = 0, f.value = 0, p.value = 0, m.value = 0, g.value = 0);
|
|
1116
1034
|
return;
|
|
1117
1035
|
}
|
|
1118
|
-
const
|
|
1119
|
-
|
|
1036
|
+
const v = h.getBoundingClientRect();
|
|
1037
|
+
i.value = v.height, l.value = v.bottom, c.value = v.left, a.value = v.right, f.value = v.top, p.value = v.width, m.value = v.x, g.value = v.y;
|
|
1120
1038
|
}
|
|
1121
|
-
function
|
|
1122
|
-
|
|
1039
|
+
function d() {
|
|
1040
|
+
u === "sync" ? y() : u === "next-frame" && requestAnimationFrame(() => y());
|
|
1123
1041
|
}
|
|
1124
|
-
return
|
|
1042
|
+
return Pn(t, d), R(() => $(t), (h) => !h && d()), ce(t, d, {
|
|
1125
1043
|
attributeFilter: ["style", "class"]
|
|
1126
|
-
}),
|
|
1127
|
-
s &&
|
|
1044
|
+
}), r && rt("scroll", d, { capture: !0, passive: !0 }), o && rt("resize", d, { passive: !0 }), Sn(() => {
|
|
1045
|
+
s && d();
|
|
1128
1046
|
}), {
|
|
1129
|
-
height:
|
|
1047
|
+
height: i,
|
|
1130
1048
|
bottom: l,
|
|
1131
|
-
left:
|
|
1132
|
-
right:
|
|
1049
|
+
left: c,
|
|
1050
|
+
right: a,
|
|
1133
1051
|
top: f,
|
|
1134
|
-
width:
|
|
1135
|
-
x:
|
|
1136
|
-
y:
|
|
1137
|
-
update:
|
|
1052
|
+
width: p,
|
|
1053
|
+
x: m,
|
|
1054
|
+
y: g,
|
|
1055
|
+
update: d
|
|
1138
1056
|
};
|
|
1139
1057
|
}
|
|
1140
|
-
function
|
|
1058
|
+
function It(t, e = {}) {
|
|
1141
1059
|
const {
|
|
1142
1060
|
delayEnter: n = 0,
|
|
1143
1061
|
delayLeave: o = 0,
|
|
1144
|
-
triggerOnRemoval:
|
|
1145
|
-
window: s =
|
|
1146
|
-
} = e,
|
|
1147
|
-
let
|
|
1148
|
-
const l = (
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1062
|
+
triggerOnRemoval: r = !1,
|
|
1063
|
+
window: s = tt
|
|
1064
|
+
} = e, u = C(!1);
|
|
1065
|
+
let i;
|
|
1066
|
+
const l = (c) => {
|
|
1067
|
+
const a = c ? n : o;
|
|
1068
|
+
i && (clearTimeout(i), i = void 0), a ? i = setTimeout(() => u.value = c, a) : u.value = c;
|
|
1151
1069
|
};
|
|
1152
|
-
return s && (
|
|
1153
|
-
|
|
1070
|
+
return s && (rt(t, "mouseenter", () => l(!0), { passive: !0 }), rt(t, "mouseleave", () => l(!1), { passive: !0 }), r && Cn(
|
|
1071
|
+
O(() => $(t)),
|
|
1154
1072
|
() => l(!1)
|
|
1155
|
-
)),
|
|
1073
|
+
)), u;
|
|
1156
1074
|
}
|
|
1157
|
-
const
|
|
1158
|
-
function
|
|
1075
|
+
const ue = Ot ? window : void 0;
|
|
1076
|
+
function U(t) {
|
|
1159
1077
|
var e;
|
|
1160
|
-
const n =
|
|
1078
|
+
const n = E(t);
|
|
1161
1079
|
return (e = n?.$el) != null ? e : n;
|
|
1162
1080
|
}
|
|
1163
|
-
function
|
|
1081
|
+
function et(...t) {
|
|
1164
1082
|
const e = [], n = () => {
|
|
1165
|
-
e.forEach((
|
|
1166
|
-
}, o = (
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
1169
|
-
}), s =
|
|
1083
|
+
e.forEach((i) => i()), e.length = 0;
|
|
1084
|
+
}, o = (i, l, c, a) => (i.addEventListener(l, c, a), () => i.removeEventListener(l, c, a)), r = O(() => {
|
|
1085
|
+
const i = V(E(t[0])).filter((l) => l != null);
|
|
1086
|
+
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
1087
|
+
}), s = se(
|
|
1170
1088
|
() => {
|
|
1171
|
-
var
|
|
1089
|
+
var i, l;
|
|
1172
1090
|
return [
|
|
1173
|
-
(l = (
|
|
1174
|
-
|
|
1175
|
-
|
|
1091
|
+
(l = (i = r.value) == null ? void 0 : i.map((c) => U(c))) != null ? l : [ue].filter((c) => c != null),
|
|
1092
|
+
V(E(r.value ? t[1] : t[0])),
|
|
1093
|
+
V(it(r.value ? t[2] : t[1])),
|
|
1176
1094
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
1177
|
-
|
|
1095
|
+
E(r.value ? t[3] : t[2])
|
|
1178
1096
|
];
|
|
1179
1097
|
},
|
|
1180
|
-
([
|
|
1181
|
-
if (n(), !
|
|
1098
|
+
([i, l, c, a]) => {
|
|
1099
|
+
if (n(), !i?.length || !l?.length || !c?.length)
|
|
1182
1100
|
return;
|
|
1183
|
-
const f =
|
|
1101
|
+
const f = ie(a) ? { ...a } : a;
|
|
1184
1102
|
e.push(
|
|
1185
|
-
...
|
|
1186
|
-
(
|
|
1187
|
-
(
|
|
1103
|
+
...i.flatMap(
|
|
1104
|
+
(p) => l.flatMap(
|
|
1105
|
+
(m) => c.map((g) => o(p, m, g, f))
|
|
1188
1106
|
)
|
|
1189
1107
|
)
|
|
1190
1108
|
);
|
|
1191
1109
|
},
|
|
1192
1110
|
{ flush: "post" }
|
|
1193
|
-
),
|
|
1111
|
+
), u = () => {
|
|
1194
1112
|
s(), n();
|
|
1195
1113
|
};
|
|
1196
|
-
return
|
|
1114
|
+
return X(n), u;
|
|
1197
1115
|
}
|
|
1198
|
-
let
|
|
1199
|
-
function
|
|
1200
|
-
const { window: o =
|
|
1116
|
+
let Vt = !1;
|
|
1117
|
+
function Ft(t, e, n = {}) {
|
|
1118
|
+
const { window: o = ue, ignore: r = [], capture: s = !0, detectIframe: u = !1, controls: i = !1 } = n;
|
|
1201
1119
|
if (!o)
|
|
1202
|
-
return
|
|
1203
|
-
if (
|
|
1204
|
-
|
|
1205
|
-
const
|
|
1206
|
-
Array.from(o.document.body.children).forEach((h) => h.addEventListener("click",
|
|
1120
|
+
return i ? { stop: k, cancel: k, trigger: k } : k;
|
|
1121
|
+
if (gt && !Vt) {
|
|
1122
|
+
Vt = !0;
|
|
1123
|
+
const d = { passive: !0 };
|
|
1124
|
+
Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", k, d)), o.document.documentElement.addEventListener("click", k, d);
|
|
1207
1125
|
}
|
|
1208
1126
|
let l = !0;
|
|
1209
|
-
const
|
|
1127
|
+
const c = (d) => E(r).some((h) => {
|
|
1210
1128
|
if (typeof h == "string")
|
|
1211
|
-
return Array.from(o.document.querySelectorAll(h)).some((
|
|
1129
|
+
return Array.from(o.document.querySelectorAll(h)).some((v) => v === d.target || d.composedPath().includes(v));
|
|
1212
1130
|
{
|
|
1213
|
-
const
|
|
1214
|
-
return
|
|
1131
|
+
const v = U(h);
|
|
1132
|
+
return v && (d.target === v || d.composedPath().includes(v));
|
|
1215
1133
|
}
|
|
1216
1134
|
});
|
|
1217
|
-
function
|
|
1218
|
-
const h =
|
|
1135
|
+
function a(d) {
|
|
1136
|
+
const h = E(d);
|
|
1219
1137
|
return h && h.$.subTree.shapeFlag === 16;
|
|
1220
1138
|
}
|
|
1221
|
-
function f(
|
|
1222
|
-
const
|
|
1223
|
-
return
|
|
1139
|
+
function f(d, h) {
|
|
1140
|
+
const v = E(d), b = v.$.subTree && v.$.subTree.children;
|
|
1141
|
+
return b == null || !Array.isArray(b) ? !1 : b.some((S) => S.el === h.target || h.composedPath().includes(S.el));
|
|
1224
1142
|
}
|
|
1225
|
-
const
|
|
1226
|
-
const h =
|
|
1227
|
-
if (
|
|
1228
|
-
if ("detail" in
|
|
1143
|
+
const p = (d) => {
|
|
1144
|
+
const h = U(t);
|
|
1145
|
+
if (d.target != null && !(!(h instanceof Element) && a(t) && f(t, d)) && !(!h || h === d.target || d.composedPath().includes(h))) {
|
|
1146
|
+
if ("detail" in d && d.detail === 0 && (l = !c(d)), !l) {
|
|
1229
1147
|
l = !0;
|
|
1230
1148
|
return;
|
|
1231
1149
|
}
|
|
1232
|
-
e(
|
|
1150
|
+
e(d);
|
|
1233
1151
|
}
|
|
1234
1152
|
};
|
|
1235
|
-
let
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}, 0), d
|
|
1153
|
+
let m = !1;
|
|
1154
|
+
const g = [
|
|
1155
|
+
et(o, "click", (d) => {
|
|
1156
|
+
m || (m = !0, setTimeout(() => {
|
|
1157
|
+
m = !1;
|
|
1158
|
+
}, 0), p(d));
|
|
1241
1159
|
}, { passive: !0, capture: s }),
|
|
1242
|
-
|
|
1243
|
-
const h =
|
|
1244
|
-
l = !
|
|
1160
|
+
et(o, "pointerdown", (d) => {
|
|
1161
|
+
const h = U(t);
|
|
1162
|
+
l = !c(d) && !!(h && !d.composedPath().includes(h));
|
|
1245
1163
|
}, { passive: !0 }),
|
|
1246
|
-
|
|
1164
|
+
u && et(o, "blur", (d) => {
|
|
1247
1165
|
setTimeout(() => {
|
|
1248
1166
|
var h;
|
|
1249
|
-
const
|
|
1250
|
-
((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !
|
|
1167
|
+
const v = U(t);
|
|
1168
|
+
((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !v?.contains(o.document.activeElement) && e(d);
|
|
1251
1169
|
}, 0);
|
|
1252
1170
|
}, { passive: !0 })
|
|
1253
|
-
].filter(Boolean),
|
|
1254
|
-
return
|
|
1255
|
-
stop:
|
|
1171
|
+
].filter(Boolean), y = () => g.forEach((d) => d());
|
|
1172
|
+
return i ? {
|
|
1173
|
+
stop: y,
|
|
1256
1174
|
cancel: () => {
|
|
1257
1175
|
l = !1;
|
|
1258
1176
|
},
|
|
1259
|
-
trigger: (
|
|
1260
|
-
l = !0, d
|
|
1177
|
+
trigger: (d) => {
|
|
1178
|
+
l = !0, p(d), l = !1;
|
|
1261
1179
|
}
|
|
1262
|
-
} :
|
|
1180
|
+
} : y;
|
|
1263
1181
|
}
|
|
1264
|
-
const
|
|
1182
|
+
const dt = /* @__PURE__ */ new WeakMap(), An = {
|
|
1265
1183
|
mounted(t, e) {
|
|
1266
1184
|
const n = !e.modifiers.bubble;
|
|
1267
1185
|
let o;
|
|
1268
1186
|
if (typeof e.value == "function")
|
|
1269
|
-
o =
|
|
1187
|
+
o = Ft(t, e.value, { capture: n });
|
|
1270
1188
|
else {
|
|
1271
|
-
const [
|
|
1272
|
-
o =
|
|
1189
|
+
const [r, s] = e.value;
|
|
1190
|
+
o = Ft(t, r, Object.assign({ capture: n }, s));
|
|
1273
1191
|
}
|
|
1274
|
-
|
|
1192
|
+
dt.set(t, o);
|
|
1275
1193
|
},
|
|
1276
1194
|
unmounted(t) {
|
|
1277
|
-
const e =
|
|
1278
|
-
e && typeof e == "function" ? e() : e?.stop(),
|
|
1195
|
+
const e = dt.get(t);
|
|
1196
|
+
e && typeof e == "function" ? e() : e?.stop(), dt.delete(t);
|
|
1279
1197
|
}
|
|
1280
1198
|
};
|
|
1281
|
-
function
|
|
1199
|
+
function pt(t) {
|
|
1282
1200
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
1283
1201
|
}
|
|
1284
|
-
function
|
|
1202
|
+
function ae(t) {
|
|
1285
1203
|
const e = window.getComputedStyle(t);
|
|
1286
1204
|
if (e.overflowX === "scroll" || e.overflowY === "scroll" || e.overflowX === "auto" && t.clientWidth < t.scrollWidth || e.overflowY === "auto" && t.clientHeight < t.scrollHeight)
|
|
1287
1205
|
return !0;
|
|
1288
1206
|
{
|
|
1289
1207
|
const n = t.parentNode;
|
|
1290
|
-
return !n || n.tagName === "BODY" ? !1 :
|
|
1208
|
+
return !n || n.tagName === "BODY" ? !1 : ae(n);
|
|
1291
1209
|
}
|
|
1292
1210
|
}
|
|
1293
|
-
function
|
|
1211
|
+
function Tn(t) {
|
|
1294
1212
|
const e = t || window.event, n = e.target;
|
|
1295
|
-
return
|
|
1296
|
-
}
|
|
1297
|
-
const
|
|
1298
|
-
function
|
|
1299
|
-
const n =
|
|
1300
|
-
let o = null,
|
|
1301
|
-
|
|
1302
|
-
const l =
|
|
1213
|
+
return ae(n) ? !1 : e.touches.length > 1 ? !0 : (e.preventDefault && e.preventDefault(), !1);
|
|
1214
|
+
}
|
|
1215
|
+
const mt = /* @__PURE__ */ new WeakMap();
|
|
1216
|
+
function Ln(t, e = !1) {
|
|
1217
|
+
const n = C(e);
|
|
1218
|
+
let o = null, r = "";
|
|
1219
|
+
R(yn(t), (i) => {
|
|
1220
|
+
const l = pt(E(i));
|
|
1303
1221
|
if (l) {
|
|
1304
|
-
const
|
|
1305
|
-
if (
|
|
1222
|
+
const c = l;
|
|
1223
|
+
if (mt.get(c) || mt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (r = c.style.overflow), c.style.overflow === "hidden")
|
|
1306
1224
|
return n.value = !0;
|
|
1307
1225
|
if (n.value)
|
|
1308
|
-
return
|
|
1226
|
+
return c.style.overflow = "hidden";
|
|
1309
1227
|
}
|
|
1310
1228
|
}, {
|
|
1311
1229
|
immediate: !0
|
|
1312
1230
|
});
|
|
1313
1231
|
const s = () => {
|
|
1314
|
-
const
|
|
1315
|
-
!
|
|
1316
|
-
|
|
1232
|
+
const i = pt(E(t));
|
|
1233
|
+
!i || n.value || (gt && (o = et(
|
|
1234
|
+
i,
|
|
1317
1235
|
"touchmove",
|
|
1318
1236
|
(l) => {
|
|
1319
|
-
|
|
1237
|
+
Tn(l);
|
|
1320
1238
|
},
|
|
1321
1239
|
{ passive: !1 }
|
|
1322
|
-
)),
|
|
1323
|
-
},
|
|
1324
|
-
const
|
|
1325
|
-
!
|
|
1240
|
+
)), i.style.overflow = "hidden", n.value = !0);
|
|
1241
|
+
}, u = () => {
|
|
1242
|
+
const i = pt(E(t));
|
|
1243
|
+
!i || !n.value || (gt && o?.(), i.style.overflow = r, mt.delete(i), n.value = !1);
|
|
1326
1244
|
};
|
|
1327
|
-
return
|
|
1245
|
+
return X(u), O({
|
|
1328
1246
|
get() {
|
|
1329
1247
|
return n.value;
|
|
1330
1248
|
},
|
|
1331
|
-
set(
|
|
1332
|
-
|
|
1249
|
+
set(i) {
|
|
1250
|
+
i ? s() : u();
|
|
1333
1251
|
}
|
|
1334
1252
|
});
|
|
1335
1253
|
}
|
|
1336
|
-
function
|
|
1254
|
+
function kn() {
|
|
1337
1255
|
let t = !1;
|
|
1338
|
-
const e =
|
|
1256
|
+
const e = C(!1);
|
|
1339
1257
|
return (n, o) => {
|
|
1340
1258
|
if (e.value = o.value, t)
|
|
1341
1259
|
return;
|
|
1342
1260
|
t = !0;
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1261
|
+
const r = Ln(n, o.value);
|
|
1262
|
+
R(e, (s) => r.value = s);
|
|
1345
1263
|
};
|
|
1346
1264
|
}
|
|
1347
|
-
|
|
1348
|
-
const
|
|
1265
|
+
kn();
|
|
1266
|
+
const Mn = { style: { width: "fit-content" } }, Dn = /* @__PURE__ */ we({
|
|
1349
1267
|
__name: "PvPopoverV2",
|
|
1350
|
-
props: /* @__PURE__ */
|
|
1268
|
+
props: /* @__PURE__ */ ye({
|
|
1351
1269
|
disableAutoPlacement: { type: Boolean, default: !1 },
|
|
1352
|
-
|
|
1270
|
+
allowedAutoPlacements: { default: () => ["top-left", "top-right", "bottom-left", "bottom-right"], type: Array },
|
|
1271
|
+
position: { default: "bottom-center", type: String },
|
|
1353
1272
|
positioningStrategy: { default: "absolute", type: String },
|
|
1354
1273
|
showOnHover: { type: Boolean, default: !1 },
|
|
1355
1274
|
disableInteractive: { type: Boolean, default: !1 },
|
|
@@ -1357,15 +1276,14 @@ const Yn = { style: { width: "fit-content" } }, qn = /* @__PURE__ */ Ae({
|
|
|
1357
1276
|
disableClickOutsideToClose: { type: Boolean, default: !1 },
|
|
1358
1277
|
delay: { default: 25, type: Number },
|
|
1359
1278
|
zIndex: { default: 10, type: Number },
|
|
1360
|
-
teleportLocation: { default: "body", type: String }
|
|
1361
|
-
offset: { type: Number }
|
|
1279
|
+
teleportLocation: { default: "body", type: String }
|
|
1362
1280
|
}, {
|
|
1363
1281
|
modelValue: { type: Boolean },
|
|
1364
1282
|
modelModifiers: {}
|
|
1365
1283
|
}),
|
|
1366
1284
|
emits: ["update:modelValue"],
|
|
1367
1285
|
setup(t) {
|
|
1368
|
-
const e = t, n =
|
|
1286
|
+
const e = t, n = be(t, "modelValue"), o = B(null), r = B(null), s = B(null), u = It(o), i = It(s), l = {
|
|
1369
1287
|
"top-center": "top",
|
|
1370
1288
|
"bottom-center": "bottom",
|
|
1371
1289
|
"center-left": "left",
|
|
@@ -1374,88 +1292,86 @@ const Yn = { style: { width: "fit-content" } }, qn = /* @__PURE__ */ Ae({
|
|
|
1374
1292
|
"top-right": "top-end",
|
|
1375
1293
|
"bottom-left": "bottom-start",
|
|
1376
1294
|
"bottom-right": "bottom-end"
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
o.value && (
|
|
1295
|
+
}, c = O(() => e.allowedAutoPlacements?.map((w) => l[w])), a = O(() => l[e.position]);
|
|
1296
|
+
wt(() => {
|
|
1297
|
+
o.value && (r.value = o.value.firstElementChild);
|
|
1380
1298
|
});
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
fallbackStrategy: "initialPlacement"
|
|
1299
|
+
const f = e.disableAutoPlacement ? [] : [
|
|
1300
|
+
dn({
|
|
1301
|
+
allowedPlacements: c.value
|
|
1385
1302
|
})
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
placement: l[e.position],
|
|
1303
|
+
], { floatingStyles: p, update: m } = hn(r, s, {
|
|
1304
|
+
placement: a,
|
|
1389
1305
|
strategy: e.positioningStrategy,
|
|
1390
|
-
middleware:
|
|
1306
|
+
middleware: f
|
|
1391
1307
|
});
|
|
1392
|
-
|
|
1393
|
-
|
|
1308
|
+
R(n, (w) => {
|
|
1309
|
+
w && r.value && s.value && m();
|
|
1394
1310
|
});
|
|
1395
|
-
const
|
|
1396
|
-
n.value &&
|
|
1311
|
+
const g = Rn(r), y = /* @__PURE__ */ $t(() => {
|
|
1312
|
+
n.value && m();
|
|
1397
1313
|
}, 5);
|
|
1398
|
-
|
|
1399
|
-
const
|
|
1400
|
-
...
|
|
1314
|
+
R([g.top, g.left, g.width, g.height], y);
|
|
1315
|
+
const d = O(() => ({
|
|
1316
|
+
...p.value,
|
|
1401
1317
|
zIndex: e.zIndex ?? 10
|
|
1402
|
-
})),
|
|
1403
|
-
(
|
|
1404
|
-
n.value =
|
|
1318
|
+
})), h = /* @__PURE__ */ $t(
|
|
1319
|
+
(w) => {
|
|
1320
|
+
n.value = w;
|
|
1405
1321
|
},
|
|
1406
1322
|
() => e.delay
|
|
1407
|
-
),
|
|
1408
|
-
e.showOnHover ||
|
|
1409
|
-
},
|
|
1410
|
-
e.disableClickOutsideToClose ||
|
|
1323
|
+
), v = O(() => e.showOnHover ? e.disableInteractive ? u.value : u.value || i.value : !1), b = () => {
|
|
1324
|
+
e.showOnHover || h(!n.value);
|
|
1325
|
+
}, S = () => {
|
|
1326
|
+
e.disableClickOutsideToClose || h(!1);
|
|
1411
1327
|
};
|
|
1412
|
-
return
|
|
1413
|
-
e.showOnHover && w
|
|
1414
|
-
}), (
|
|
1415
|
-
|
|
1328
|
+
return R(v, (w) => {
|
|
1329
|
+
e.showOnHover && h(w);
|
|
1330
|
+
}), (w, Y) => St((Et(), xe("div", Mn, [
|
|
1331
|
+
Ct(
|
|
1416
1332
|
"div",
|
|
1417
1333
|
{
|
|
1418
1334
|
ref_key: "triggerWrapper",
|
|
1419
1335
|
ref: o,
|
|
1420
|
-
onClick:
|
|
1336
|
+
onClick: b
|
|
1421
1337
|
},
|
|
1422
1338
|
[
|
|
1423
|
-
|
|
1339
|
+
Pt(w.$slots, "trigger")
|
|
1424
1340
|
],
|
|
1425
1341
|
512
|
|
1426
1342
|
/* NEED_PATCH */
|
|
1427
1343
|
),
|
|
1428
|
-
|
|
1344
|
+
w.$slots.content ? (Et(), Oe(Ee, {
|
|
1429
1345
|
key: 0,
|
|
1430
1346
|
to: t.teleportLocation,
|
|
1431
1347
|
disabled: !e.useTeleport
|
|
1432
1348
|
}, [
|
|
1433
|
-
|
|
1349
|
+
St(Ct(
|
|
1434
1350
|
"div",
|
|
1435
1351
|
{
|
|
1436
1352
|
class: "pv-floating",
|
|
1437
1353
|
ref_key: "floating",
|
|
1438
1354
|
ref: s,
|
|
1439
|
-
style:
|
|
1355
|
+
style: Ce(d.value)
|
|
1440
1356
|
},
|
|
1441
1357
|
[
|
|
1442
|
-
|
|
1358
|
+
Pt(w.$slots, "content")
|
|
1443
1359
|
],
|
|
1444
1360
|
4
|
|
1445
1361
|
/* STYLE */
|
|
1446
1362
|
), [
|
|
1447
|
-
[
|
|
1363
|
+
[Pe, n.value]
|
|
1448
1364
|
])
|
|
1449
|
-
], 8, ["to", "disabled"])) :
|
|
1365
|
+
], 8, ["to", "disabled"])) : Se("v-if", !0)
|
|
1450
1366
|
])), [
|
|
1451
|
-
[
|
|
1367
|
+
[it(An), [S, { ignore: [".pv-floating"] }]]
|
|
1452
1368
|
]);
|
|
1453
1369
|
}
|
|
1454
|
-
}),
|
|
1455
|
-
function
|
|
1456
|
-
return !
|
|
1370
|
+
}), Wn = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
1371
|
+
function Bn(t) {
|
|
1372
|
+
return !Wn.has(t);
|
|
1457
1373
|
}
|
|
1458
|
-
function
|
|
1374
|
+
function ht(t, e) {
|
|
1459
1375
|
const n = document.querySelector('link[href*="' + e + '"]');
|
|
1460
1376
|
if (!t.shadowRoot)
|
|
1461
1377
|
return !1;
|
|
@@ -1463,15 +1379,15 @@ function Ot(t, e) {
|
|
|
1463
1379
|
const o = n.href;
|
|
1464
1380
|
if (t.shadowRoot.querySelector(`link[href="${o}"]`))
|
|
1465
1381
|
return;
|
|
1466
|
-
const
|
|
1467
|
-
return
|
|
1382
|
+
const r = document.createElement("link");
|
|
1383
|
+
return r.rel = "stylesheet", r.href = o, t.shadowRoot.prepend(r), !0;
|
|
1468
1384
|
}
|
|
1469
1385
|
return !1;
|
|
1470
1386
|
}
|
|
1471
|
-
function
|
|
1472
|
-
if (!
|
|
1473
|
-
if (
|
|
1474
|
-
|
|
1387
|
+
function Nn(t) {
|
|
1388
|
+
if (!ht(t, "pit-viper-v2")) {
|
|
1389
|
+
if (ht(t, "pit-viper")) {
|
|
1390
|
+
ht(t, "pit-viper-v2-scoped");
|
|
1475
1391
|
return;
|
|
1476
1392
|
}
|
|
1477
1393
|
console.warn(
|
|
@@ -1479,23 +1395,23 @@ function Un(t) {
|
|
|
1479
1395
|
);
|
|
1480
1396
|
}
|
|
1481
1397
|
}
|
|
1482
|
-
const
|
|
1483
|
-
function
|
|
1398
|
+
const _n = (t) => ({ shadowRoot: Bn(t) });
|
|
1399
|
+
function $n(t, e) {
|
|
1484
1400
|
return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
|
|
1485
1401
|
`Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
|
|
1486
1402
|
), !1);
|
|
1487
1403
|
}
|
|
1488
|
-
function
|
|
1404
|
+
function In(t, e) {
|
|
1489
1405
|
const n = Number(e);
|
|
1490
1406
|
return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
|
|
1491
1407
|
}
|
|
1492
|
-
function
|
|
1408
|
+
function Vn(t) {
|
|
1493
1409
|
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = (t.__vccOpts || t).props;
|
|
1494
|
-
return s && typeof s == "object" && Object.entries(s).forEach(([
|
|
1495
|
-
|
|
1410
|
+
return s && typeof s == "object" && Object.entries(s).forEach(([u, i]) => {
|
|
1411
|
+
i === Boolean || i && i.type === Boolean ? e.add(u) : i === Number || i && i.type === Number ? n.add(u) : (i === Object || i === Array || i && (i.type === Object || i.type === Array)) && o.add(u);
|
|
1496
1412
|
}), { booleanProps: e, numberProps: n, jsonProps: o };
|
|
1497
1413
|
}
|
|
1498
|
-
function
|
|
1414
|
+
function jt(t, e) {
|
|
1499
1415
|
try {
|
|
1500
1416
|
return JSON.parse(e);
|
|
1501
1417
|
} catch (n) {
|
|
@@ -1504,12 +1420,12 @@ function Qt(t, e) {
|
|
|
1504
1420
|
), null;
|
|
1505
1421
|
}
|
|
1506
1422
|
}
|
|
1507
|
-
function
|
|
1423
|
+
function Fn(t) {
|
|
1508
1424
|
const e = t.__name || t.name;
|
|
1509
1425
|
if (!e)
|
|
1510
1426
|
throw new Error("Component must have a __name or name property");
|
|
1511
|
-
const n =
|
|
1512
|
-
class
|
|
1427
|
+
const n = Re(t, _n(e)), { booleanProps: o, numberProps: r, jsonProps: s } = Vn(t);
|
|
1428
|
+
class u extends n {
|
|
1513
1429
|
_hiddenInput = null;
|
|
1514
1430
|
constructor() {
|
|
1515
1431
|
super(), this._parseAttributes();
|
|
@@ -1525,49 +1441,49 @@ function eo(t) {
|
|
|
1525
1441
|
this._hiddenInput && (this._hiddenInput.value = l ?? "");
|
|
1526
1442
|
}
|
|
1527
1443
|
_parseAttributes() {
|
|
1528
|
-
o.forEach((
|
|
1529
|
-
const
|
|
1530
|
-
this[
|
|
1531
|
-
}),
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
}), s.forEach((
|
|
1535
|
-
const
|
|
1536
|
-
if (
|
|
1537
|
-
const f =
|
|
1538
|
-
f !== null && (this[
|
|
1444
|
+
o.forEach((c) => {
|
|
1445
|
+
const a = this.getAttribute(c);
|
|
1446
|
+
this[c] = $n(c, a);
|
|
1447
|
+
}), r.forEach((c) => {
|
|
1448
|
+
const a = this.getAttribute(c);
|
|
1449
|
+
a !== null && (this[c] = In(c, a));
|
|
1450
|
+
}), s.forEach((c) => {
|
|
1451
|
+
const a = this.getAttribute(c);
|
|
1452
|
+
if (a !== null) {
|
|
1453
|
+
const f = jt(c, a);
|
|
1454
|
+
f !== null && (this[c] = f);
|
|
1539
1455
|
}
|
|
1540
1456
|
});
|
|
1541
1457
|
const l = this.getAttribute("data-json-props");
|
|
1542
|
-
l && l.split(",").map((
|
|
1543
|
-
const f =
|
|
1544
|
-
let
|
|
1545
|
-
if (
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1458
|
+
l && l.split(",").map((a) => a.trim()).filter(Boolean).forEach((a) => {
|
|
1459
|
+
const f = a.replace(/-([a-z])/g, (m) => m[1].toUpperCase());
|
|
1460
|
+
let p = this.getAttribute(a);
|
|
1461
|
+
if (p === null) {
|
|
1462
|
+
const m = f.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
1463
|
+
p = this.getAttribute(m);
|
|
1548
1464
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1465
|
+
if (p !== null && !this[f]) {
|
|
1466
|
+
const m = jt(f, p);
|
|
1467
|
+
m !== null && (this[f] = m);
|
|
1552
1468
|
}
|
|
1553
1469
|
});
|
|
1554
1470
|
}
|
|
1555
1471
|
connectedCallback() {
|
|
1556
|
-
this._parseAttributes(), super.connectedCallback?.(),
|
|
1472
|
+
this._parseAttributes(), super.connectedCallback?.(), Nn(this);
|
|
1557
1473
|
const l = this.getAttribute("name");
|
|
1558
1474
|
l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
|
|
1559
1475
|
}
|
|
1560
1476
|
}
|
|
1561
|
-
return
|
|
1477
|
+
return u;
|
|
1562
1478
|
}
|
|
1563
|
-
function
|
|
1479
|
+
function jn(t) {
|
|
1564
1480
|
return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
1565
1481
|
}
|
|
1566
|
-
function
|
|
1482
|
+
function Hn(t) {
|
|
1567
1483
|
const e = t.__name || t.name;
|
|
1568
1484
|
if (!e)
|
|
1569
1485
|
throw new Error("Component must have a __name or name property");
|
|
1570
|
-
const n =
|
|
1486
|
+
const n = jn(e), o = Fn(t);
|
|
1571
1487
|
customElements.get(n) || customElements.define(n, o);
|
|
1572
1488
|
}
|
|
1573
|
-
|
|
1489
|
+
Hn(Dn);
|