@knime/jsonforms 1.5.10 → 1.5.12
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/CHANGELOG.md +17 -0
- package/dist/{AnyOfTwinlist-DMizLIwn.js → AnyOfTwinlist-DTggNnXP.js} +1 -1
- package/dist/{BaseButton-ew6uEaHi.js → BaseButton-I5M4pn6f.js} +1 -1
- package/dist/{Button-DI7EKUmu.js → Button-rLCsKJpO.js} +2 -2
- package/dist/{Checkbox-DPq-j4rC.js → Checkbox-DrJQzBqF.js} +1 -1
- package/dist/{CheckboxControl-Tnv1xVel.js → CheckboxControl-BGwhQMs-.js} +2 -2
- package/dist/{Checkboxes-CtN15klz.js → Checkboxes-Br3FkfqS.js} +2 -2
- package/dist/{CheckboxesControl-DcVkxf7W.js → CheckboxesControl-C5BkhWew.js} +2 -2
- package/dist/{ColumnFilter-Cw2PtnrT.js → ColumnFilter-DfAP8buV.js} +1 -1
- package/dist/{ColumnSelect-Df-m3Md2.js → ColumnSelect-vXE_85cR.js} +2 -2
- package/dist/{ComboBoxControl-DC3W4kPq.js → ComboBoxControl-CTMdhcN-.js} +4 -4
- package/dist/{DateControl-D70zb_g8.js → DateControl-B40Ar3uG.js} +1 -1
- package/dist/{DateTimeControl-C-ef6bOV.js → DateTimeControl-CUy0OZUE.js} +2 -2
- package/dist/{DateTimeFormatInput-t-O7ZqrA.js → DateTimeFormatInput-U6oDnsJW.js} +5 -5
- package/dist/{DateTimeFormatPickerControl-BbOu24lA.js → DateTimeFormatPickerControl-ARLARGoo.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-9e1ef9Hf.js → DateTimeFormatPickerWithTypeControl-Bu3NEwvJ.js} +3 -3
- package/dist/{DateTimeInput-C32yoECp.js → DateTimeInput-C7e1Z-XE.js} +3524 -3603
- package/dist/Dropdown-CPOTGnA1.js +605 -0
- package/dist/{DropdownControl-YplxM6ck.js → DropdownControl-CzD81Ycz.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-ByoiTkIU.js → DropdownControl.vue_vue_type_script_setup_true_lang-L2a_FDVR.js} +4 -4
- package/dist/{FunctionButton-Cee1Q-EN.js → FunctionButton-dHu7h3Y1.js} +2 -2
- package/dist/{HorizontalLayout-BtuP4oCU.js → HorizontalLayout-DpJ-y9Ro.js} +1 -1
- package/dist/{InputField-DHXXBWSv.js → InputField-BKnMLu77.js} +1 -1
- package/dist/{IntegerControl-B64xghdA.js → IntegerControl-Cly4hd8V.js} +1 -1
- package/dist/{IntervalControl-NldC56aj.js → IntervalControl-Bm-31Ea-.js} +6 -6
- package/dist/{MultiselectListBox-BUWB5ZWr.js → MultiselectListBox-OkLLUNac.js} +2 -2
- package/dist/{NameFilter-BQhzv9F3.js → NameFilter-DvtQFRJE.js} +1 -1
- package/dist/{NumberControl-EVY_3Hwl.js → NumberControl-C7SHCfb3.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-CA0OxGuU.js → NumberControlBase.vue_vue_type_script_setup_true_lang-QqzXKwDy.js} +2 -2
- package/dist/{NumberInput-CI1ee8it.js → NumberInput-AOsXRph2.js} +1 -1
- package/dist/{OneOfDropdown-BPZeE-Bn.js → OneOfDropdown-DwbMw791.js} +1 -1
- package/dist/{RadioControl-DbX_Wfuv.js → RadioControl-DeFDT7X0.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-BJdqHTLu.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DO2v2uzO.js} +2 -2
- package/dist/{RichTextControl-Dl4V0nno.js → RichTextControl-BNvBtINB.js} +7 -7
- package/dist/{SectionLayout-CF6zovCM.js → SectionLayout-BUlQGeSC.js} +2 -2
- package/dist/{SimpleButtonControl-BwlE_a5H.js → SimpleButtonControl-BKhxWUOQ.js} +2 -2
- package/dist/{SimpleTwinlistControl-Cbwa6xtL.js → SimpleTwinlistControl-C1U5ZsHa.js} +12 -13
- package/dist/{SortListControl-BzbPvx8-.js → SortListControl-CXDHaj82.js} +4 -4
- package/dist/{TextAreaControl-BdTbCiQe.js → TextAreaControl-BFu0t-I2.js} +1 -1
- package/dist/{TextControl-PPpaK3OZ.js → TextControl-Bn47wzh9.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DndraaDL.js → TextControl.vue_vue_type_script_setup_true_lang-xxo3RxnK.js} +3 -3
- package/dist/{TimeControl-CHQYhf6G.js → TimeControl-C_QqGr_G.js} +2 -2
- package/dist/{TwinlistControl-CqDn6X1h.js → TwinlistControl-BJthx4lq.js} +70 -71
- package/dist/{TwinlistLoadingInfo-PbU9BJjv.js → TwinlistLoadingInfo-a_ymAtQP.js} +69 -89
- package/dist/{ValueSwitch-CA4_rkUU.js → ValueSwitch-DeFP0rns.js} +1 -1
- package/dist/{ValueSwitchControl-5uuRkxf2.js → ValueSwitchControl-BzNmmWQq.js} +1 -1
- package/dist/{VerticalLayout-C4FOz-7p.js → VerticalLayout-56JEav8u.js} +2 -2
- package/dist/{VerticalLayoutBase-DQCRpzUA.js → VerticalLayoutBase-DOyKtPzP.js} +1 -1
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BagkGlzo.js +13312 -0
- package/dist/{ZonedDateTimeControl-BcZrk010.js → ZonedDateTimeControl-CC-rPJr7.js} +4 -4
- package/dist/{floating-ui.vue.esm-B1dY_Hbh.js → floating-ui.vue-B-MrqKCT.js} +375 -342
- package/dist/index-Bf0xDq3g.js +373 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +5 -5
- package/dist/{localTimeUtils-ClDpVqfn.js → localTimeUtils-D3Z9JesA.js} +1 -1
- package/dist/{magic-string.es-D4UQQyt0.js → magic-string.es-DDd2I1su.js} +264 -265
- package/dist/{svgWithTitle-C6ghivXy.js → svgWithTitle-B7gWnKbY.js} +1 -1
- package/dist/testing.js +2 -2
- package/package.json +6 -11
- package/dist/Dropdown-B6CD0Mt_.js +0 -692
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js +0 -14934
- package/dist/index-CkuSIXs2.js +0 -331
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { computed as D,
|
|
2
|
-
const J = Math.min,
|
|
1
|
+
import { computed as D, ref as Y, shallowRef as Bt, watch as st, getCurrentScope as Nt, onScopeDispose as Wt, shallowReadonly as $, unref as _t } from "vue";
|
|
2
|
+
const J = Math.min, k = Math.max, Q = Math.round, G = Math.floor, P = (t) => ({
|
|
3
3
|
x: t,
|
|
4
4
|
y: t
|
|
5
|
-
}),
|
|
5
|
+
}), $t = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, Ht = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function wt(t, e, n) {
|
|
15
|
+
return k(t, J(e, n));
|
|
16
16
|
}
|
|
17
17
|
function et(t, e) {
|
|
18
18
|
return typeof t == "function" ? t(e) : t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function M(t) {
|
|
21
21
|
return t.split("-")[0];
|
|
22
22
|
}
|
|
23
23
|
function nt(t) {
|
|
24
24
|
return t.split("-")[1];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ot(t) {
|
|
27
27
|
return t === "x" ? "y" : "x";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ct(t) {
|
|
30
30
|
return t === "y" ? "height" : "width";
|
|
31
31
|
}
|
|
32
32
|
function ot(t) {
|
|
33
|
-
return ["top", "bottom"].includes(
|
|
33
|
+
return ["top", "bottom"].includes(M(t)) ? "y" : "x";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Et(t) {
|
|
36
|
+
return Ot(ot(t));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function zt(t, e, n) {
|
|
39
39
|
n === void 0 && (n = !1);
|
|
40
|
-
const o = nt(t), i =
|
|
40
|
+
const o = nt(t), i = Et(t), s = Ct(i);
|
|
41
41
|
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
42
42
|
return e.reference[s] > e.floating[s] && (r = Z(r)), [r, Z(r)];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function It(t) {
|
|
45
45
|
const e = Z(t);
|
|
46
|
-
return [
|
|
46
|
+
return [ct(t), e, ct(e)];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return t.replace(/start|end/g, (e) =>
|
|
48
|
+
function ct(t) {
|
|
49
|
+
return t.replace(/start|end/g, (e) => Ht[e]);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function jt(t, e, n) {
|
|
52
52
|
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
53
53
|
switch (t) {
|
|
54
54
|
case "top":
|
|
@@ -61,15 +61,15 @@ function zt(t, e, n) {
|
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Xt(t, e, n, o) {
|
|
65
65
|
const i = nt(t);
|
|
66
|
-
let s =
|
|
67
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(
|
|
66
|
+
let s = jt(M(t), n === "start", o);
|
|
67
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ct)))), s;
|
|
68
68
|
}
|
|
69
69
|
function Z(t) {
|
|
70
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
70
|
+
return t.replace(/left|right|bottom|top/g, (e) => $t[e]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Yt(t) {
|
|
73
73
|
return {
|
|
74
74
|
top: 0,
|
|
75
75
|
right: 0,
|
|
@@ -78,8 +78,8 @@ function Xt(t) {
|
|
|
78
78
|
...t
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof t != "number" ?
|
|
81
|
+
function qt(t) {
|
|
82
|
+
return typeof t != "number" ? Yt(t) : {
|
|
83
83
|
top: t,
|
|
84
84
|
right: t,
|
|
85
85
|
bottom: t,
|
|
@@ -104,36 +104,36 @@ function tt(t) {
|
|
|
104
104
|
y: n
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function yt(t, e, n) {
|
|
108
108
|
let {
|
|
109
109
|
reference: o,
|
|
110
110
|
floating: i
|
|
111
111
|
} = t;
|
|
112
|
-
const s = ot(e), r =
|
|
112
|
+
const s = ot(e), r = Et(e), l = Ct(r), f = M(e), c = s === "y", u = o.x + o.width / 2 - i.width / 2, a = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
|
|
113
113
|
let d;
|
|
114
114
|
switch (f) {
|
|
115
115
|
case "top":
|
|
116
116
|
d = {
|
|
117
|
-
x:
|
|
117
|
+
x: u,
|
|
118
118
|
y: o.y - i.height
|
|
119
119
|
};
|
|
120
120
|
break;
|
|
121
121
|
case "bottom":
|
|
122
122
|
d = {
|
|
123
|
-
x:
|
|
123
|
+
x: u,
|
|
124
124
|
y: o.y + o.height
|
|
125
125
|
};
|
|
126
126
|
break;
|
|
127
127
|
case "right":
|
|
128
128
|
d = {
|
|
129
129
|
x: o.x + o.width,
|
|
130
|
-
y:
|
|
130
|
+
y: a
|
|
131
131
|
};
|
|
132
132
|
break;
|
|
133
133
|
case "left":
|
|
134
134
|
d = {
|
|
135
135
|
x: o.x - i.width,
|
|
136
|
-
y:
|
|
136
|
+
y: a
|
|
137
137
|
};
|
|
138
138
|
break;
|
|
139
139
|
default:
|
|
@@ -152,7 +152,7 @@ function gt(t, e, n) {
|
|
|
152
152
|
}
|
|
153
153
|
return d;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Ut = async (t, e, n) => {
|
|
156
156
|
const {
|
|
157
157
|
placement: o = "bottom",
|
|
158
158
|
strategy: i = "absolute",
|
|
@@ -164,21 +164,21 @@ const Yt = async (t, e, n) => {
|
|
|
164
164
|
floating: e,
|
|
165
165
|
strategy: i
|
|
166
166
|
}), {
|
|
167
|
-
x:
|
|
168
|
-
y:
|
|
169
|
-
} =
|
|
167
|
+
x: u,
|
|
168
|
+
y: a
|
|
169
|
+
} = yt(c, o, f), m = o, d = {}, h = 0;
|
|
170
170
|
for (let g = 0; g < l.length; g++) {
|
|
171
171
|
const {
|
|
172
172
|
name: w,
|
|
173
|
-
fn:
|
|
173
|
+
fn: p
|
|
174
174
|
} = l[g], {
|
|
175
|
-
x,
|
|
176
|
-
y,
|
|
175
|
+
x: y,
|
|
176
|
+
y: x,
|
|
177
177
|
data: R,
|
|
178
178
|
reset: b
|
|
179
|
-
} = await
|
|
180
|
-
x:
|
|
181
|
-
y:
|
|
179
|
+
} = await p({
|
|
180
|
+
x: u,
|
|
181
|
+
y: a,
|
|
182
182
|
initialPlacement: o,
|
|
183
183
|
placement: m,
|
|
184
184
|
strategy: i,
|
|
@@ -190,30 +190,30 @@ const Yt = async (t, e, n) => {
|
|
|
190
190
|
floating: e
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
|
|
193
|
+
u = y ?? u, a = x ?? a, d = {
|
|
194
194
|
...d,
|
|
195
195
|
[w]: {
|
|
196
196
|
...d[w],
|
|
197
197
|
...R
|
|
198
198
|
}
|
|
199
|
-
}, b &&
|
|
199
|
+
}, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
|
|
200
200
|
reference: t,
|
|
201
201
|
floating: e,
|
|
202
202
|
strategy: i
|
|
203
203
|
}) : b.rects), {
|
|
204
|
-
x:
|
|
205
|
-
y:
|
|
206
|
-
} =
|
|
204
|
+
x: u,
|
|
205
|
+
y: a
|
|
206
|
+
} = yt(c, m, f)), g = -1);
|
|
207
207
|
}
|
|
208
208
|
return {
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
209
|
+
x: u,
|
|
210
|
+
y: a,
|
|
211
211
|
placement: m,
|
|
212
212
|
strategy: i,
|
|
213
213
|
middlewareData: d
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
|
-
async function
|
|
216
|
+
async function Lt(t, e) {
|
|
217
217
|
var n;
|
|
218
218
|
e === void 0 && (e = {});
|
|
219
219
|
const {
|
|
@@ -225,21 +225,21 @@ async function Ct(t, e) {
|
|
|
225
225
|
strategy: f
|
|
226
226
|
} = t, {
|
|
227
227
|
boundary: c = "clippingAncestors",
|
|
228
|
-
rootBoundary:
|
|
229
|
-
elementContext:
|
|
228
|
+
rootBoundary: u = "viewport",
|
|
229
|
+
elementContext: a = "floating",
|
|
230
230
|
altBoundary: m = !1,
|
|
231
231
|
padding: d = 0
|
|
232
|
-
} = et(e, t),
|
|
232
|
+
} = et(e, t), h = qt(d), w = l[m ? a === "floating" ? "reference" : "floating" : a], p = tt(await s.getClippingRect({
|
|
233
233
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
234
234
|
boundary: c,
|
|
235
|
-
rootBoundary:
|
|
235
|
+
rootBoundary: u,
|
|
236
236
|
strategy: f
|
|
237
|
-
})),
|
|
237
|
+
})), y = a === "floating" ? {
|
|
238
238
|
x: o,
|
|
239
239
|
y: i,
|
|
240
240
|
width: r.floating.width,
|
|
241
241
|
height: r.floating.height
|
|
242
|
-
} : r.reference,
|
|
242
|
+
} : r.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), R = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
|
|
243
243
|
x: 1,
|
|
244
244
|
y: 1
|
|
245
245
|
} : {
|
|
@@ -247,18 +247,18 @@ async function Ct(t, e) {
|
|
|
247
247
|
y: 1
|
|
248
248
|
}, b = tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
249
249
|
elements: l,
|
|
250
|
-
rect:
|
|
251
|
-
offsetParent:
|
|
250
|
+
rect: y,
|
|
251
|
+
offsetParent: x,
|
|
252
252
|
strategy: f
|
|
253
|
-
}) :
|
|
253
|
+
}) : y);
|
|
254
254
|
return {
|
|
255
|
-
top: (
|
|
256
|
-
bottom: (b.bottom -
|
|
257
|
-
left: (
|
|
258
|
-
right: (b.right -
|
|
255
|
+
top: (p.top - b.top + h.top) / R.y,
|
|
256
|
+
bottom: (b.bottom - p.bottom + h.bottom) / R.y,
|
|
257
|
+
left: (p.left - b.left + h.left) / R.x,
|
|
258
|
+
right: (b.right - p.right + h.right) / R.x
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const Kt = function(t) {
|
|
262
262
|
return t === void 0 && (t = {}), {
|
|
263
263
|
name: "flip",
|
|
264
264
|
options: t,
|
|
@@ -272,57 +272,57 @@ const qt = function(t) {
|
|
|
272
272
|
platform: f,
|
|
273
273
|
elements: c
|
|
274
274
|
} = e, {
|
|
275
|
-
mainAxis:
|
|
276
|
-
crossAxis:
|
|
275
|
+
mainAxis: u = !0,
|
|
276
|
+
crossAxis: a = !0,
|
|
277
277
|
fallbackPlacements: m,
|
|
278
278
|
fallbackStrategy: d = "bestFit",
|
|
279
|
-
fallbackAxisSideDirection:
|
|
279
|
+
fallbackAxisSideDirection: h = "none",
|
|
280
280
|
flipAlignment: g = !0,
|
|
281
281
|
...w
|
|
282
282
|
} = et(t, e);
|
|
283
283
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
284
284
|
return {};
|
|
285
|
-
const
|
|
286
|
-
!m &&
|
|
287
|
-
const b = [l, ...R],
|
|
288
|
-
let
|
|
289
|
-
if (
|
|
290
|
-
const F =
|
|
291
|
-
v.push(
|
|
285
|
+
const p = M(i), y = M(l) === l, x = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), R = m || (y || !g ? [Z(l)] : It(l));
|
|
286
|
+
!m && h !== "none" && R.push(...Xt(l, g, h, x));
|
|
287
|
+
const b = [l, ...R], T = await Lt(e, w), v = [];
|
|
288
|
+
let A = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
289
|
+
if (u && v.push(T[p]), a) {
|
|
290
|
+
const F = zt(i, r, x);
|
|
291
|
+
v.push(T[F[0]], T[F[1]]);
|
|
292
292
|
}
|
|
293
|
-
if (
|
|
293
|
+
if (A = [...A, {
|
|
294
294
|
placement: i,
|
|
295
295
|
overflows: v
|
|
296
296
|
}], !v.every((F) => F <= 0)) {
|
|
297
|
-
var I,
|
|
298
|
-
const F = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1,
|
|
299
|
-
if (
|
|
297
|
+
var I, pt;
|
|
298
|
+
const F = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, gt = b[F];
|
|
299
|
+
if (gt)
|
|
300
300
|
return {
|
|
301
301
|
data: {
|
|
302
302
|
index: F,
|
|
303
|
-
overflows:
|
|
303
|
+
overflows: A
|
|
304
304
|
},
|
|
305
305
|
reset: {
|
|
306
|
-
placement:
|
|
306
|
+
placement: gt
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
let
|
|
310
|
-
if (!
|
|
309
|
+
let j = (pt = A.filter((W) => W.overflows[0] <= 0).sort((W, _) => W.overflows[1] - _.overflows[1])[0]) == null ? void 0 : pt.placement;
|
|
310
|
+
if (!j)
|
|
311
311
|
switch (d) {
|
|
312
312
|
case "bestFit": {
|
|
313
|
-
var
|
|
314
|
-
const
|
|
315
|
-
|
|
313
|
+
var ht;
|
|
314
|
+
const W = (ht = A.map((_) => [_.placement, _.overflows.filter((X) => X > 0).reduce((X, Mt) => X + Mt, 0)]).sort((_, X) => _[1] - X[1])[0]) == null ? void 0 : ht[0];
|
|
315
|
+
W && (j = W);
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
318
|
case "initialPlacement":
|
|
319
|
-
|
|
319
|
+
j = l;
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
|
-
if (i !==
|
|
322
|
+
if (i !== j)
|
|
323
323
|
return {
|
|
324
324
|
reset: {
|
|
325
|
-
placement:
|
|
325
|
+
placement: j
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
@@ -330,35 +330,35 @@ const qt = function(t) {
|
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
|
-
async function
|
|
333
|
+
async function Gt(t, e) {
|
|
334
334
|
const {
|
|
335
335
|
placement: n,
|
|
336
336
|
platform: o,
|
|
337
337
|
elements: i
|
|
338
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r =
|
|
338
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = M(n), l = nt(n), f = ot(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, u = s && f ? -1 : 1, a = et(e, t);
|
|
339
339
|
let {
|
|
340
340
|
mainAxis: m,
|
|
341
341
|
crossAxis: d,
|
|
342
|
-
alignmentAxis:
|
|
343
|
-
} = typeof
|
|
344
|
-
mainAxis:
|
|
342
|
+
alignmentAxis: h
|
|
343
|
+
} = typeof a == "number" ? {
|
|
344
|
+
mainAxis: a,
|
|
345
345
|
crossAxis: 0,
|
|
346
346
|
alignmentAxis: null
|
|
347
347
|
} : {
|
|
348
348
|
mainAxis: 0,
|
|
349
349
|
crossAxis: 0,
|
|
350
350
|
alignmentAxis: null,
|
|
351
|
-
...
|
|
351
|
+
...a
|
|
352
352
|
};
|
|
353
|
-
return l && typeof
|
|
354
|
-
x: d *
|
|
353
|
+
return l && typeof h == "number" && (d = l === "end" ? h * -1 : h), f ? {
|
|
354
|
+
x: d * u,
|
|
355
355
|
y: m * c
|
|
356
356
|
} : {
|
|
357
357
|
x: m * c,
|
|
358
|
-
y: d *
|
|
358
|
+
y: d * u
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
const
|
|
361
|
+
const Jt = function(t) {
|
|
362
362
|
return t === void 0 && (t = 0), {
|
|
363
363
|
name: "offset",
|
|
364
364
|
options: t,
|
|
@@ -369,7 +369,7 @@ const Kt = function(t) {
|
|
|
369
369
|
y: s,
|
|
370
370
|
placement: r,
|
|
371
371
|
middlewareData: l
|
|
372
|
-
} = e, f = await
|
|
372
|
+
} = e, f = await Gt(e, t);
|
|
373
373
|
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
374
374
|
x: i + f.x,
|
|
375
375
|
y: s + f.y,
|
|
@@ -380,7 +380,7 @@ const Kt = function(t) {
|
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
|
-
},
|
|
383
|
+
}, Qt = function(t) {
|
|
384
384
|
return t === void 0 && (t = {}), {
|
|
385
385
|
name: "shift",
|
|
386
386
|
options: t,
|
|
@@ -395,12 +395,12 @@ const Kt = function(t) {
|
|
|
395
395
|
limiter: l = {
|
|
396
396
|
fn: (w) => {
|
|
397
397
|
let {
|
|
398
|
-
x:
|
|
399
|
-
y
|
|
398
|
+
x: p,
|
|
399
|
+
y
|
|
400
400
|
} = w;
|
|
401
401
|
return {
|
|
402
|
-
x:
|
|
403
|
-
y
|
|
402
|
+
x: p,
|
|
403
|
+
y
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
406
|
},
|
|
@@ -408,20 +408,20 @@ const Kt = function(t) {
|
|
|
408
408
|
} = et(t, e), c = {
|
|
409
409
|
x: n,
|
|
410
410
|
y: o
|
|
411
|
-
},
|
|
412
|
-
let d = c[m],
|
|
411
|
+
}, u = await Lt(e, f), a = ot(M(i)), m = Ot(a);
|
|
412
|
+
let d = c[m], h = c[a];
|
|
413
413
|
if (s) {
|
|
414
|
-
const w = m === "y" ? "top" : "left",
|
|
415
|
-
d =
|
|
414
|
+
const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", y = d + u[w], x = d - u[p];
|
|
415
|
+
d = wt(y, d, x);
|
|
416
416
|
}
|
|
417
417
|
if (r) {
|
|
418
|
-
const w =
|
|
419
|
-
|
|
418
|
+
const w = a === "y" ? "top" : "left", p = a === "y" ? "bottom" : "right", y = h + u[w], x = h - u[p];
|
|
419
|
+
h = wt(y, h, x);
|
|
420
420
|
}
|
|
421
421
|
const g = l.fn({
|
|
422
422
|
...e,
|
|
423
423
|
[m]: d,
|
|
424
|
-
[
|
|
424
|
+
[a]: h
|
|
425
425
|
});
|
|
426
426
|
return {
|
|
427
427
|
...g,
|
|
@@ -433,28 +433,31 @@ const Kt = function(t) {
|
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
};
|
|
436
|
-
function
|
|
437
|
-
return
|
|
436
|
+
function it() {
|
|
437
|
+
return typeof window < "u";
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function N(t) {
|
|
440
|
+
return ft(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
441
|
+
}
|
|
442
|
+
function O(t) {
|
|
440
443
|
var e;
|
|
441
444
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
442
445
|
}
|
|
443
|
-
function
|
|
446
|
+
function S(t) {
|
|
444
447
|
var e;
|
|
445
|
-
return (e = (
|
|
448
|
+
return (e = (ft(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
446
449
|
}
|
|
447
|
-
function
|
|
448
|
-
return t instanceof Node || t instanceof
|
|
450
|
+
function ft(t) {
|
|
451
|
+
return it() ? t instanceof Node || t instanceof O(t).Node : !1;
|
|
449
452
|
}
|
|
450
453
|
function C(t) {
|
|
451
|
-
return t instanceof Element || t instanceof
|
|
454
|
+
return it() ? t instanceof Element || t instanceof O(t).Element : !1;
|
|
452
455
|
}
|
|
453
|
-
function
|
|
454
|
-
return t instanceof HTMLElement || t instanceof
|
|
456
|
+
function L(t) {
|
|
457
|
+
return it() ? t instanceof HTMLElement || t instanceof O(t).HTMLElement : !1;
|
|
455
458
|
}
|
|
456
|
-
function
|
|
457
|
-
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof
|
|
459
|
+
function xt(t) {
|
|
460
|
+
return !it() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof O(t).ShadowRoot;
|
|
458
461
|
}
|
|
459
462
|
function K(t) {
|
|
460
463
|
const {
|
|
@@ -462,129 +465,147 @@ function K(t) {
|
|
|
462
465
|
overflowX: n,
|
|
463
466
|
overflowY: o,
|
|
464
467
|
display: i
|
|
465
|
-
} =
|
|
468
|
+
} = E(t);
|
|
466
469
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
467
470
|
}
|
|
468
|
-
function
|
|
469
|
-
return ["table", "td", "th"].includes(
|
|
471
|
+
function Zt(t) {
|
|
472
|
+
return ["table", "td", "th"].includes(N(t));
|
|
470
473
|
}
|
|
471
|
-
function
|
|
472
|
-
|
|
474
|
+
function te(t) {
|
|
475
|
+
return [":popover-open", ":modal"].some((e) => {
|
|
476
|
+
try {
|
|
477
|
+
return t.matches(e);
|
|
478
|
+
} catch {
|
|
479
|
+
return !1;
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
function ut(t) {
|
|
484
|
+
const e = at(), n = C(t) ? E(t) : t;
|
|
473
485
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
474
486
|
}
|
|
475
|
-
function
|
|
476
|
-
let e =
|
|
477
|
-
for (;
|
|
478
|
-
if (
|
|
487
|
+
function ee(t) {
|
|
488
|
+
let e = V(t);
|
|
489
|
+
for (; L(e) && !z(e); ) {
|
|
490
|
+
if (ut(e))
|
|
479
491
|
return e;
|
|
480
|
-
|
|
492
|
+
if (te(e))
|
|
493
|
+
return null;
|
|
494
|
+
e = V(e);
|
|
481
495
|
}
|
|
482
496
|
return null;
|
|
483
497
|
}
|
|
484
|
-
function
|
|
498
|
+
function at() {
|
|
485
499
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
486
500
|
}
|
|
487
|
-
function
|
|
488
|
-
return ["html", "body", "#document"].includes(
|
|
501
|
+
function z(t) {
|
|
502
|
+
return ["html", "body", "#document"].includes(N(t));
|
|
489
503
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
504
|
+
function E(t) {
|
|
505
|
+
return O(t).getComputedStyle(t);
|
|
492
506
|
}
|
|
493
|
-
function
|
|
507
|
+
function rt(t) {
|
|
494
508
|
return C(t) ? {
|
|
495
509
|
scrollLeft: t.scrollLeft,
|
|
496
510
|
scrollTop: t.scrollTop
|
|
497
511
|
} : {
|
|
498
|
-
scrollLeft: t.
|
|
499
|
-
scrollTop: t.
|
|
512
|
+
scrollLeft: t.scrollX,
|
|
513
|
+
scrollTop: t.scrollY
|
|
500
514
|
};
|
|
501
515
|
}
|
|
502
|
-
function
|
|
503
|
-
if (
|
|
516
|
+
function V(t) {
|
|
517
|
+
if (N(t) === "html")
|
|
504
518
|
return t;
|
|
505
519
|
const e = (
|
|
506
520
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
507
521
|
t.assignedSlot || // DOM Element detected.
|
|
508
522
|
t.parentNode || // ShadowRoot detected.
|
|
509
|
-
|
|
510
|
-
|
|
523
|
+
xt(t) && t.host || // Fallback.
|
|
524
|
+
S(t)
|
|
511
525
|
);
|
|
512
|
-
return
|
|
526
|
+
return xt(e) ? e.host : e;
|
|
513
527
|
}
|
|
514
|
-
function
|
|
515
|
-
const e =
|
|
516
|
-
return
|
|
528
|
+
function Tt(t) {
|
|
529
|
+
const e = V(t);
|
|
530
|
+
return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : L(e) && K(e) ? e : Tt(e);
|
|
517
531
|
}
|
|
518
532
|
function U(t, e, n) {
|
|
519
533
|
var o;
|
|
520
534
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
521
|
-
const i =
|
|
522
|
-
|
|
535
|
+
const i = Tt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = O(i);
|
|
536
|
+
if (s) {
|
|
537
|
+
const l = ne(r);
|
|
538
|
+
return e.concat(r, r.visualViewport || [], K(i) ? i : [], l && n ? U(l) : []);
|
|
539
|
+
}
|
|
540
|
+
return e.concat(i, U(i, [], n));
|
|
523
541
|
}
|
|
524
|
-
function
|
|
525
|
-
|
|
542
|
+
function ne(t) {
|
|
543
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
544
|
+
}
|
|
545
|
+
function St(t) {
|
|
546
|
+
const e = E(t);
|
|
526
547
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
527
|
-
const i =
|
|
548
|
+
const i = L(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = Q(n) !== s || Q(o) !== r;
|
|
528
549
|
return l && (n = s, o = r), {
|
|
529
550
|
width: n,
|
|
530
551
|
height: o,
|
|
531
552
|
$: l
|
|
532
553
|
};
|
|
533
554
|
}
|
|
534
|
-
function
|
|
555
|
+
function dt(t) {
|
|
535
556
|
return C(t) ? t : t.contextElement;
|
|
536
557
|
}
|
|
537
|
-
function
|
|
538
|
-
const e =
|
|
539
|
-
if (!
|
|
558
|
+
function H(t) {
|
|
559
|
+
const e = dt(t);
|
|
560
|
+
if (!L(e))
|
|
540
561
|
return P(1);
|
|
541
562
|
const n = e.getBoundingClientRect(), {
|
|
542
563
|
width: o,
|
|
543
564
|
height: i,
|
|
544
565
|
$: s
|
|
545
|
-
} =
|
|
566
|
+
} = St(e);
|
|
546
567
|
let r = (s ? Q(n.width) : n.width) / o, l = (s ? Q(n.height) : n.height) / i;
|
|
547
568
|
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
548
569
|
x: r,
|
|
549
570
|
y: l
|
|
550
571
|
};
|
|
551
572
|
}
|
|
552
|
-
const
|
|
553
|
-
function
|
|
554
|
-
const e =
|
|
555
|
-
return !
|
|
573
|
+
const oe = /* @__PURE__ */ P(0);
|
|
574
|
+
function Dt(t) {
|
|
575
|
+
const e = O(t);
|
|
576
|
+
return !at() || !e.visualViewport ? oe : {
|
|
556
577
|
x: e.visualViewport.offsetLeft,
|
|
557
578
|
y: e.visualViewport.offsetTop
|
|
558
579
|
};
|
|
559
580
|
}
|
|
560
|
-
function
|
|
561
|
-
return e === void 0 && (e = !1), !n || e && n !==
|
|
581
|
+
function ie(t, e, n) {
|
|
582
|
+
return e === void 0 && (e = !1), !n || e && n !== O(t) ? !1 : e;
|
|
562
583
|
}
|
|
563
584
|
function B(t, e, n, o) {
|
|
564
585
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
565
|
-
const i = t.getBoundingClientRect(), s =
|
|
586
|
+
const i = t.getBoundingClientRect(), s = dt(t);
|
|
566
587
|
let r = P(1);
|
|
567
|
-
e && (o ? C(o) && (r =
|
|
568
|
-
const l =
|
|
569
|
-
let f = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y,
|
|
588
|
+
e && (o ? C(o) && (r = H(o)) : r = H(t));
|
|
589
|
+
const l = ie(s, n, o) ? Dt(s) : P(0);
|
|
590
|
+
let f = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, u = i.width / r.x, a = i.height / r.y;
|
|
570
591
|
if (s) {
|
|
571
|
-
const m =
|
|
572
|
-
let
|
|
573
|
-
for (; g && o && d !==
|
|
574
|
-
const w =
|
|
575
|
-
f *= w.x, c *= w.y,
|
|
592
|
+
const m = O(s), d = o && C(o) ? O(o) : o;
|
|
593
|
+
let h = m, g = h.frameElement;
|
|
594
|
+
for (; g && o && d !== h; ) {
|
|
595
|
+
const w = H(g), p = g.getBoundingClientRect(), y = E(g), x = p.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, R = p.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
|
|
596
|
+
f *= w.x, c *= w.y, u *= w.x, a *= w.y, f += x, c += R, h = O(g), g = h.frameElement;
|
|
576
597
|
}
|
|
577
598
|
}
|
|
578
599
|
return tt({
|
|
579
|
-
width:
|
|
580
|
-
height:
|
|
600
|
+
width: u,
|
|
601
|
+
height: a,
|
|
581
602
|
x: f,
|
|
582
603
|
y: c
|
|
583
604
|
});
|
|
584
605
|
}
|
|
585
|
-
const
|
|
586
|
-
function
|
|
587
|
-
return
|
|
606
|
+
const re = [":popover-open", ":modal"];
|
|
607
|
+
function mt(t) {
|
|
608
|
+
return re.some((e) => {
|
|
588
609
|
try {
|
|
589
610
|
return t.matches(e);
|
|
590
611
|
} catch {
|
|
@@ -592,55 +613,55 @@ function ut(t) {
|
|
|
592
613
|
}
|
|
593
614
|
});
|
|
594
615
|
}
|
|
595
|
-
function
|
|
616
|
+
function se(t) {
|
|
596
617
|
let {
|
|
597
618
|
elements: e,
|
|
598
619
|
rect: n,
|
|
599
620
|
offsetParent: o,
|
|
600
621
|
strategy: i
|
|
601
622
|
} = t;
|
|
602
|
-
const s = i === "fixed", r =
|
|
623
|
+
const s = i === "fixed", r = S(o), l = e ? mt(e.floating) : !1;
|
|
603
624
|
if (o === r || l && s)
|
|
604
625
|
return n;
|
|
605
626
|
let f = {
|
|
606
627
|
scrollLeft: 0,
|
|
607
628
|
scrollTop: 0
|
|
608
629
|
}, c = P(1);
|
|
609
|
-
const
|
|
610
|
-
if ((
|
|
630
|
+
const u = P(0), a = L(o);
|
|
631
|
+
if ((a || !a && !s) && ((N(o) !== "body" || K(r)) && (f = rt(o)), L(o))) {
|
|
611
632
|
const m = B(o);
|
|
612
|
-
c =
|
|
633
|
+
c = H(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
|
|
613
634
|
}
|
|
614
635
|
return {
|
|
615
636
|
width: n.width * c.x,
|
|
616
637
|
height: n.height * c.y,
|
|
617
|
-
x: n.x * c.x - f.scrollLeft * c.x +
|
|
618
|
-
y: n.y * c.y - f.scrollTop * c.y +
|
|
638
|
+
x: n.x * c.x - f.scrollLeft * c.x + u.x,
|
|
639
|
+
y: n.y * c.y - f.scrollTop * c.y + u.y
|
|
619
640
|
};
|
|
620
641
|
}
|
|
621
|
-
function
|
|
642
|
+
function le(t) {
|
|
622
643
|
return Array.from(t.getClientRects());
|
|
623
644
|
}
|
|
624
|
-
function
|
|
625
|
-
return B(
|
|
645
|
+
function Pt(t) {
|
|
646
|
+
return B(S(t)).left + rt(t).scrollLeft;
|
|
626
647
|
}
|
|
627
|
-
function
|
|
628
|
-
const e =
|
|
629
|
-
let r = -n.scrollLeft +
|
|
648
|
+
function ce(t) {
|
|
649
|
+
const e = S(t), n = rt(t), o = t.ownerDocument.body, i = k(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = k(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
650
|
+
let r = -n.scrollLeft + Pt(t);
|
|
630
651
|
const l = -n.scrollTop;
|
|
631
|
-
return
|
|
652
|
+
return E(o).direction === "rtl" && (r += k(e.clientWidth, o.clientWidth) - i), {
|
|
632
653
|
width: i,
|
|
633
654
|
height: s,
|
|
634
655
|
x: r,
|
|
635
656
|
y: l
|
|
636
657
|
};
|
|
637
658
|
}
|
|
638
|
-
function
|
|
639
|
-
const n =
|
|
659
|
+
function fe(t, e) {
|
|
660
|
+
const n = O(t), o = S(t), i = n.visualViewport;
|
|
640
661
|
let s = o.clientWidth, r = o.clientHeight, l = 0, f = 0;
|
|
641
662
|
if (i) {
|
|
642
663
|
s = i.width, r = i.height;
|
|
643
|
-
const c =
|
|
664
|
+
const c = at();
|
|
644
665
|
(!c || c && e === "fixed") && (l = i.offsetLeft, f = i.offsetTop);
|
|
645
666
|
}
|
|
646
667
|
return {
|
|
@@ -650,8 +671,8 @@ function re(t, e) {
|
|
|
650
671
|
y: f
|
|
651
672
|
};
|
|
652
673
|
}
|
|
653
|
-
function
|
|
654
|
-
const n = B(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s =
|
|
674
|
+
function ue(t, e) {
|
|
675
|
+
const n = B(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = L(t) ? H(t) : P(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, f = i * s.x, c = o * s.y;
|
|
655
676
|
return {
|
|
656
677
|
width: r,
|
|
657
678
|
height: l,
|
|
@@ -659,16 +680,16 @@ function se(t, e) {
|
|
|
659
680
|
y: c
|
|
660
681
|
};
|
|
661
682
|
}
|
|
662
|
-
function
|
|
683
|
+
function vt(t, e, n) {
|
|
663
684
|
let o;
|
|
664
685
|
if (e === "viewport")
|
|
665
|
-
o =
|
|
686
|
+
o = fe(t, n);
|
|
666
687
|
else if (e === "document")
|
|
667
|
-
o =
|
|
688
|
+
o = ce(S(t));
|
|
668
689
|
else if (C(e))
|
|
669
|
-
o =
|
|
690
|
+
o = ue(e, n);
|
|
670
691
|
else {
|
|
671
|
-
const i =
|
|
692
|
+
const i = Dt(t);
|
|
672
693
|
o = {
|
|
673
694
|
...e,
|
|
674
695
|
x: e.x - i.x,
|
|
@@ -677,34 +698,34 @@ function xt(t, e, n) {
|
|
|
677
698
|
}
|
|
678
699
|
return tt(o);
|
|
679
700
|
}
|
|
680
|
-
function
|
|
681
|
-
const n =
|
|
682
|
-
return n === e || !C(n) ||
|
|
701
|
+
function Vt(t, e) {
|
|
702
|
+
const n = V(t);
|
|
703
|
+
return n === e || !C(n) || z(n) ? !1 : E(n).position === "fixed" || Vt(n, e);
|
|
683
704
|
}
|
|
684
|
-
function
|
|
705
|
+
function ae(t, e) {
|
|
685
706
|
const n = e.get(t);
|
|
686
707
|
if (n)
|
|
687
708
|
return n;
|
|
688
|
-
let o = U(t, [], !1).filter((l) => C(l) &&
|
|
689
|
-
const s =
|
|
690
|
-
let r = s ?
|
|
691
|
-
for (; C(r) && !
|
|
692
|
-
const l =
|
|
693
|
-
!f && l.position === "fixed" && (i = null), (s ? !f && !i : !f && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || K(r) && !f &&
|
|
709
|
+
let o = U(t, [], !1).filter((l) => C(l) && N(l) !== "body"), i = null;
|
|
710
|
+
const s = E(t).position === "fixed";
|
|
711
|
+
let r = s ? V(t) : t;
|
|
712
|
+
for (; C(r) && !z(r); ) {
|
|
713
|
+
const l = E(r), f = ut(r);
|
|
714
|
+
!f && l.position === "fixed" && (i = null), (s ? !f && !i : !f && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || K(r) && !f && Vt(t, r)) ? o = o.filter((u) => u !== r) : i = l, r = V(r);
|
|
694
715
|
}
|
|
695
716
|
return e.set(t, o), o;
|
|
696
717
|
}
|
|
697
|
-
function
|
|
718
|
+
function de(t) {
|
|
698
719
|
let {
|
|
699
720
|
element: e,
|
|
700
721
|
boundary: n,
|
|
701
722
|
rootBoundary: o,
|
|
702
723
|
strategy: i
|
|
703
724
|
} = t;
|
|
704
|
-
const r = [...n === "clippingAncestors" ?
|
|
705
|
-
const
|
|
706
|
-
return c.top =
|
|
707
|
-
},
|
|
725
|
+
const r = [...n === "clippingAncestors" ? mt(e) ? [] : ae(e, this._c) : [].concat(n), o], l = r[0], f = r.reduce((c, u) => {
|
|
726
|
+
const a = vt(e, u, i);
|
|
727
|
+
return c.top = k(a.top, c.top), c.right = J(a.right, c.right), c.bottom = J(a.bottom, c.bottom), c.left = k(a.left, c.left), c;
|
|
728
|
+
}, vt(e, l, i));
|
|
708
729
|
return {
|
|
709
730
|
width: f.right - f.left,
|
|
710
731
|
height: f.bottom - f.top,
|
|
@@ -712,64 +733,64 @@ function ce(t) {
|
|
|
712
733
|
y: f.top
|
|
713
734
|
};
|
|
714
735
|
}
|
|
715
|
-
function
|
|
736
|
+
function me(t) {
|
|
716
737
|
const {
|
|
717
738
|
width: e,
|
|
718
739
|
height: n
|
|
719
|
-
} =
|
|
740
|
+
} = St(t);
|
|
720
741
|
return {
|
|
721
742
|
width: e,
|
|
722
743
|
height: n
|
|
723
744
|
};
|
|
724
745
|
}
|
|
725
|
-
function
|
|
726
|
-
const o =
|
|
746
|
+
function pe(t, e, n) {
|
|
747
|
+
const o = L(e), i = S(e), s = n === "fixed", r = B(t, !0, s, e);
|
|
727
748
|
let l = {
|
|
728
749
|
scrollLeft: 0,
|
|
729
750
|
scrollTop: 0
|
|
730
751
|
};
|
|
731
752
|
const f = P(0);
|
|
732
753
|
if (o || !o && !s)
|
|
733
|
-
if ((
|
|
734
|
-
const
|
|
735
|
-
f.x =
|
|
736
|
-
} else i && (f.x =
|
|
737
|
-
const c = r.left + l.scrollLeft - f.x,
|
|
754
|
+
if ((N(e) !== "body" || K(i)) && (l = rt(e)), o) {
|
|
755
|
+
const a = B(e, !0, s, e);
|
|
756
|
+
f.x = a.x + e.clientLeft, f.y = a.y + e.clientTop;
|
|
757
|
+
} else i && (f.x = Pt(i));
|
|
758
|
+
const c = r.left + l.scrollLeft - f.x, u = r.top + l.scrollTop - f.y;
|
|
738
759
|
return {
|
|
739
760
|
x: c,
|
|
740
|
-
y:
|
|
761
|
+
y: u,
|
|
741
762
|
width: r.width,
|
|
742
763
|
height: r.height
|
|
743
764
|
};
|
|
744
765
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
766
|
+
function lt(t) {
|
|
767
|
+
return E(t).position === "static";
|
|
747
768
|
}
|
|
748
|
-
function
|
|
749
|
-
return !
|
|
769
|
+
function bt(t, e) {
|
|
770
|
+
return !L(t) || E(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
750
771
|
}
|
|
751
|
-
function
|
|
752
|
-
const n =
|
|
753
|
-
if (
|
|
772
|
+
function Ft(t, e) {
|
|
773
|
+
const n = O(t);
|
|
774
|
+
if (mt(t))
|
|
754
775
|
return n;
|
|
755
|
-
if (!
|
|
756
|
-
let i =
|
|
757
|
-
for (; i && !
|
|
758
|
-
if (C(i) && !
|
|
776
|
+
if (!L(t)) {
|
|
777
|
+
let i = V(t);
|
|
778
|
+
for (; i && !z(i); ) {
|
|
779
|
+
if (C(i) && !lt(i))
|
|
759
780
|
return i;
|
|
760
|
-
i =
|
|
781
|
+
i = V(i);
|
|
761
782
|
}
|
|
762
783
|
return n;
|
|
763
784
|
}
|
|
764
|
-
let o =
|
|
765
|
-
for (; o &&
|
|
766
|
-
o =
|
|
767
|
-
return o &&
|
|
785
|
+
let o = bt(t, e);
|
|
786
|
+
for (; o && Zt(o) && lt(o); )
|
|
787
|
+
o = bt(o, e);
|
|
788
|
+
return o && z(o) && lt(o) && !ut(o) ? n : o || ee(t) || n;
|
|
768
789
|
}
|
|
769
|
-
const
|
|
770
|
-
const e = this.getOffsetParent ||
|
|
790
|
+
const he = async function(t) {
|
|
791
|
+
const e = this.getOffsetParent || Ft, n = this.getDimensions, o = await n(t.floating);
|
|
771
792
|
return {
|
|
772
|
-
reference:
|
|
793
|
+
reference: pe(t.reference, await e(t.floating), t.strategy),
|
|
773
794
|
floating: {
|
|
774
795
|
x: 0,
|
|
775
796
|
y: 0,
|
|
@@ -778,24 +799,24 @@ const ue = async function(t) {
|
|
|
778
799
|
}
|
|
779
800
|
};
|
|
780
801
|
};
|
|
781
|
-
function
|
|
782
|
-
return
|
|
783
|
-
}
|
|
784
|
-
const
|
|
785
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
786
|
-
getDocumentElement:
|
|
787
|
-
getClippingRect:
|
|
788
|
-
getOffsetParent:
|
|
789
|
-
getElementRects:
|
|
790
|
-
getClientRects:
|
|
791
|
-
getDimensions:
|
|
792
|
-
getScale:
|
|
802
|
+
function ge(t) {
|
|
803
|
+
return E(t).direction === "rtl";
|
|
804
|
+
}
|
|
805
|
+
const we = {
|
|
806
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: se,
|
|
807
|
+
getDocumentElement: S,
|
|
808
|
+
getClippingRect: de,
|
|
809
|
+
getOffsetParent: Ft,
|
|
810
|
+
getElementRects: he,
|
|
811
|
+
getClientRects: le,
|
|
812
|
+
getDimensions: me,
|
|
813
|
+
getScale: H,
|
|
793
814
|
isElement: C,
|
|
794
|
-
isRTL:
|
|
815
|
+
isRTL: ge
|
|
795
816
|
};
|
|
796
|
-
function
|
|
817
|
+
function ye(t, e) {
|
|
797
818
|
let n = null, o;
|
|
798
|
-
const i =
|
|
819
|
+
const i = S(t);
|
|
799
820
|
function s() {
|
|
800
821
|
var l;
|
|
801
822
|
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
@@ -804,42 +825,42 @@ function he(t, e) {
|
|
|
804
825
|
l === void 0 && (l = !1), f === void 0 && (f = 1), s();
|
|
805
826
|
const {
|
|
806
827
|
left: c,
|
|
807
|
-
top:
|
|
808
|
-
width:
|
|
828
|
+
top: u,
|
|
829
|
+
width: a,
|
|
809
830
|
height: m
|
|
810
831
|
} = t.getBoundingClientRect();
|
|
811
|
-
if (l || e(), !
|
|
832
|
+
if (l || e(), !a || !m)
|
|
812
833
|
return;
|
|
813
|
-
const d = G(
|
|
814
|
-
rootMargin: -d + "px " + -
|
|
815
|
-
threshold:
|
|
834
|
+
const d = G(u), h = G(i.clientWidth - (c + a)), g = G(i.clientHeight - (u + m)), w = G(c), y = {
|
|
835
|
+
rootMargin: -d + "px " + -h + "px " + -g + "px " + -w + "px",
|
|
836
|
+
threshold: k(0, J(1, f)) || 1
|
|
816
837
|
};
|
|
817
|
-
let
|
|
838
|
+
let x = !0;
|
|
818
839
|
function R(b) {
|
|
819
|
-
const
|
|
820
|
-
if (
|
|
821
|
-
if (!
|
|
840
|
+
const T = b[0].intersectionRatio;
|
|
841
|
+
if (T !== f) {
|
|
842
|
+
if (!x)
|
|
822
843
|
return r();
|
|
823
|
-
|
|
844
|
+
T ? r(!1, T) : o = setTimeout(() => {
|
|
824
845
|
r(!1, 1e-7);
|
|
825
846
|
}, 1e3);
|
|
826
847
|
}
|
|
827
|
-
|
|
848
|
+
x = !1;
|
|
828
849
|
}
|
|
829
850
|
try {
|
|
830
851
|
n = new IntersectionObserver(R, {
|
|
831
|
-
...
|
|
852
|
+
...y,
|
|
832
853
|
// Handle <iframe>s
|
|
833
854
|
root: i.ownerDocument
|
|
834
855
|
});
|
|
835
856
|
} catch {
|
|
836
|
-
n = new IntersectionObserver(R,
|
|
857
|
+
n = new IntersectionObserver(R, y);
|
|
837
858
|
}
|
|
838
859
|
n.observe(t);
|
|
839
860
|
}
|
|
840
861
|
return r(!0), s;
|
|
841
862
|
}
|
|
842
|
-
function
|
|
863
|
+
function Re(t, e, n, o) {
|
|
843
864
|
o === void 0 && (o = {});
|
|
844
865
|
const {
|
|
845
866
|
ancestorScroll: i = !0,
|
|
@@ -847,140 +868,152 @@ function we(t, e, n, o) {
|
|
|
847
868
|
elementResize: r = typeof ResizeObserver == "function",
|
|
848
869
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
849
870
|
animationFrame: f = !1
|
|
850
|
-
} = o, c =
|
|
851
|
-
|
|
852
|
-
i &&
|
|
871
|
+
} = o, c = dt(t), u = i || s ? [...c ? U(c) : [], ...U(e)] : [];
|
|
872
|
+
u.forEach((p) => {
|
|
873
|
+
i && p.addEventListener("scroll", n, {
|
|
853
874
|
passive: !0
|
|
854
|
-
}), s &&
|
|
875
|
+
}), s && p.addEventListener("resize", n);
|
|
855
876
|
});
|
|
856
|
-
const
|
|
877
|
+
const a = c && l ? ye(c, n) : null;
|
|
857
878
|
let m = -1, d = null;
|
|
858
|
-
r && (d = new ResizeObserver((
|
|
859
|
-
let [
|
|
860
|
-
|
|
861
|
-
var
|
|
862
|
-
(
|
|
879
|
+
r && (d = new ResizeObserver((p) => {
|
|
880
|
+
let [y] = p;
|
|
881
|
+
y && y.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
882
|
+
var x;
|
|
883
|
+
(x = d) == null || x.observe(e);
|
|
863
884
|
})), n();
|
|
864
885
|
}), c && !f && d.observe(c), d.observe(e));
|
|
865
|
-
let
|
|
886
|
+
let h, g = f ? B(t) : null;
|
|
866
887
|
f && w();
|
|
867
888
|
function w() {
|
|
868
|
-
const
|
|
869
|
-
g && (
|
|
889
|
+
const p = B(t);
|
|
890
|
+
g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && n(), g = p, h = requestAnimationFrame(w);
|
|
870
891
|
}
|
|
871
892
|
return n(), () => {
|
|
872
|
-
var
|
|
873
|
-
|
|
874
|
-
i &&
|
|
875
|
-
}),
|
|
893
|
+
var p;
|
|
894
|
+
u.forEach((y) => {
|
|
895
|
+
i && y.removeEventListener("scroll", n), s && y.removeEventListener("resize", n);
|
|
896
|
+
}), a == null || a(), (p = d) == null || p.disconnect(), d = null, f && cancelAnimationFrame(h);
|
|
876
897
|
};
|
|
877
898
|
}
|
|
878
|
-
const
|
|
899
|
+
const Ae = Jt, Oe = Qt, Ce = Kt, xe = (t, e, n) => {
|
|
879
900
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
880
|
-
platform:
|
|
901
|
+
platform: we,
|
|
881
902
|
...n
|
|
882
903
|
}, s = {
|
|
883
904
|
...i.platform,
|
|
884
905
|
_c: o
|
|
885
906
|
};
|
|
886
|
-
return
|
|
907
|
+
return Ut(t, e, {
|
|
887
908
|
...i,
|
|
888
909
|
platform: s
|
|
889
910
|
});
|
|
890
911
|
};
|
|
891
|
-
function
|
|
892
|
-
|
|
893
|
-
|
|
912
|
+
function ve(t) {
|
|
913
|
+
return t != null && typeof t == "object" && "$el" in t;
|
|
914
|
+
}
|
|
915
|
+
function Rt(t) {
|
|
916
|
+
if (ve(t)) {
|
|
917
|
+
const e = t.$el;
|
|
918
|
+
return ft(e) && N(e) === "#comment" ? null : e;
|
|
919
|
+
}
|
|
920
|
+
return t;
|
|
894
921
|
}
|
|
895
|
-
function
|
|
922
|
+
function q(t) {
|
|
923
|
+
return typeof t == "function" ? t() : _t(t);
|
|
924
|
+
}
|
|
925
|
+
function kt(t) {
|
|
896
926
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
897
927
|
}
|
|
898
|
-
function
|
|
899
|
-
const n =
|
|
928
|
+
function At(t, e) {
|
|
929
|
+
const n = kt(t);
|
|
900
930
|
return Math.round(e * n) / n;
|
|
901
931
|
}
|
|
902
|
-
function
|
|
932
|
+
function Ee(t, e, n) {
|
|
903
933
|
n === void 0 && (n = {});
|
|
904
934
|
const o = n.whileElementsMounted, i = D(() => {
|
|
905
935
|
var v;
|
|
906
|
-
return (v =
|
|
907
|
-
}), s = D(() =>
|
|
936
|
+
return (v = q(n.open)) != null ? v : !0;
|
|
937
|
+
}), s = D(() => q(n.middleware)), r = D(() => {
|
|
908
938
|
var v;
|
|
909
|
-
return (v =
|
|
939
|
+
return (v = q(n.placement)) != null ? v : "bottom";
|
|
910
940
|
}), l = D(() => {
|
|
911
941
|
var v;
|
|
912
|
-
return (v =
|
|
942
|
+
return (v = q(n.strategy)) != null ? v : "absolute";
|
|
913
943
|
}), f = D(() => {
|
|
914
944
|
var v;
|
|
915
|
-
return (v =
|
|
916
|
-
}), c = D(() =>
|
|
945
|
+
return (v = q(n.transform)) != null ? v : !0;
|
|
946
|
+
}), c = D(() => Rt(t.value)), u = D(() => Rt(e.value)), a = Y(0), m = Y(0), d = Y(l.value), h = Y(r.value), g = Bt({}), w = Y(!1), p = D(() => {
|
|
917
947
|
const v = {
|
|
918
948
|
position: d.value,
|
|
919
949
|
left: "0",
|
|
920
950
|
top: "0"
|
|
921
951
|
};
|
|
922
|
-
if (!
|
|
952
|
+
if (!u.value)
|
|
923
953
|
return v;
|
|
924
|
-
const
|
|
954
|
+
const A = At(u.value, a.value), I = At(u.value, m.value);
|
|
925
955
|
return f.value ? {
|
|
926
956
|
...v,
|
|
927
|
-
transform: "translate(" +
|
|
928
|
-
...
|
|
957
|
+
transform: "translate(" + A + "px, " + I + "px)",
|
|
958
|
+
...kt(u.value) >= 1.5 && {
|
|
929
959
|
willChange: "transform"
|
|
930
960
|
}
|
|
931
961
|
} : {
|
|
932
962
|
position: d.value,
|
|
933
|
-
left:
|
|
963
|
+
left: A + "px",
|
|
934
964
|
top: I + "px"
|
|
935
965
|
};
|
|
936
966
|
});
|
|
937
|
-
let
|
|
938
|
-
function
|
|
939
|
-
c.value == null ||
|
|
967
|
+
let y;
|
|
968
|
+
function x() {
|
|
969
|
+
if (c.value == null || u.value == null)
|
|
970
|
+
return;
|
|
971
|
+
const v = i.value;
|
|
972
|
+
xe(c.value, u.value, {
|
|
940
973
|
middleware: s.value,
|
|
941
974
|
placement: r.value,
|
|
942
975
|
strategy: l.value
|
|
943
|
-
}).then((
|
|
944
|
-
|
|
976
|
+
}).then((A) => {
|
|
977
|
+
a.value = A.x, m.value = A.y, d.value = A.strategy, h.value = A.placement, g.value = A.middlewareData, w.value = v !== !1;
|
|
945
978
|
});
|
|
946
979
|
}
|
|
947
980
|
function R() {
|
|
948
|
-
typeof
|
|
981
|
+
typeof y == "function" && (y(), y = void 0);
|
|
949
982
|
}
|
|
950
983
|
function b() {
|
|
951
984
|
if (R(), o === void 0) {
|
|
952
|
-
|
|
985
|
+
x();
|
|
953
986
|
return;
|
|
954
987
|
}
|
|
955
|
-
if (c.value != null &&
|
|
956
|
-
|
|
988
|
+
if (c.value != null && u.value != null) {
|
|
989
|
+
y = o(c.value, u.value, x);
|
|
957
990
|
return;
|
|
958
991
|
}
|
|
959
992
|
}
|
|
960
|
-
function
|
|
993
|
+
function T() {
|
|
961
994
|
i.value || (w.value = !1);
|
|
962
995
|
}
|
|
963
|
-
return
|
|
996
|
+
return st([s, r, l, i], x, {
|
|
964
997
|
flush: "sync"
|
|
965
|
-
}),
|
|
998
|
+
}), st([c, u], b, {
|
|
966
999
|
flush: "sync"
|
|
967
|
-
}),
|
|
1000
|
+
}), st(i, T, {
|
|
968
1001
|
flush: "sync"
|
|
969
|
-
}),
|
|
970
|
-
x:
|
|
971
|
-
y:
|
|
972
|
-
strategy:
|
|
973
|
-
placement:
|
|
974
|
-
middlewareData:
|
|
975
|
-
isPositioned:
|
|
976
|
-
floatingStyles:
|
|
977
|
-
update:
|
|
1002
|
+
}), Nt() && Wt(R), {
|
|
1003
|
+
x: $(a),
|
|
1004
|
+
y: $(m),
|
|
1005
|
+
strategy: $(d),
|
|
1006
|
+
placement: $(h),
|
|
1007
|
+
middlewareData: $(g),
|
|
1008
|
+
isPositioned: $(w),
|
|
1009
|
+
floatingStyles: p,
|
|
1010
|
+
update: x
|
|
978
1011
|
};
|
|
979
1012
|
}
|
|
980
1013
|
export {
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1014
|
+
Re as a,
|
|
1015
|
+
Ce as f,
|
|
1016
|
+
Ae as o,
|
|
1017
|
+
Oe as s,
|
|
1018
|
+
Ee as u
|
|
986
1019
|
};
|