@knime/jsonforms 1.2.5 → 1.3.1
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 +12 -0
- package/dist/{AnyOfTwinlist-D2md52XA.js → AnyOfTwinlist-FvAzGYM6.js} +1 -1
- package/dist/{BaseButton-pWix8Ir_.js → BaseButton-C7BbYnsL.js} +1 -1
- package/dist/{Button-DA_T1F4x.js → Button-ClYf9a_l.js} +2 -2
- package/dist/{Checkbox-Cyt1-L7B.js → Checkbox-CwxZHuxB.js} +1 -1
- package/dist/{CheckboxControl-D23veewy.js → CheckboxControl-C4uVrVFT.js} +11 -11
- package/dist/{Checkboxes-B4WDd5Tc.js → Checkboxes-PGSsi8KQ.js} +2 -2
- package/dist/{CheckboxesControl-BXKipOZT.js → CheckboxesControl-Kk1Lo2o5.js} +2 -2
- package/dist/{ColumnFilter-D2TqGxR1.js → ColumnFilter-CRBUi5K1.js} +1 -1
- package/dist/{ColumnSelect-DJZCLRyC.js → ColumnSelect-djGxI_O9.js} +3 -3
- package/dist/{ComboBoxControl-DA_6FStZ.js → ComboBoxControl-B7TMk2Mk.js} +4 -4
- package/dist/{DateControl-DhZtDPo9.js → DateControl-CTz0x9wG.js} +1 -1
- package/dist/{DateTimeControl-C2BB0S3X.js → DateTimeControl-Cn0jcTiy.js} +1 -1
- package/dist/{DateTimeFormatPickerControl-B5dZ9AJp.js → DateTimeFormatPickerControl-DS0DZdhb.js} +7 -7
- package/dist/DateTimeInput-Vx2wO_Ln.js +11290 -0
- package/dist/{Dropdown-CDssQzS9.js → Dropdown-EbU5GZWo.js} +28 -28
- package/dist/{DropdownControl-CvU_ReBF.js → DropdownControl-gHo6T8bq.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-CPvU9j1S.js → DropdownControl.vue_vue_type_script_setup_true_lang-DcOvyBCP.js} +7 -7
- package/dist/{ErrorMessage-M87up0yb.js → ErrorMessage-kLDFTznB.js} +1 -1
- package/dist/{FunctionButton-DWMQy0Uy.js → FunctionButton-Beq-KFER.js} +2 -2
- package/dist/{HorizontalLayout-B0gqS3Ke.js → HorizontalLayout-CJjeRm-3.js} +1 -1
- package/dist/{InputField-m0rtCRko.js → InputField-B-0XgnFy.js} +1 -1
- package/dist/{IntegerControl-RDY1aqn0.js → IntegerControl-DLXJyyOs.js} +1 -1
- package/dist/{IntervalControl-i1d7wJwn.js → IntervalControl-CL-dXWem.js} +21 -19
- package/dist/{MultiselectListBox-CAidB0S9.js → MultiselectListBox-DEyKxgz9.js} +2 -2
- package/dist/{NameFilter-Bw26YwTe.js → NameFilter-DNmJcqY-.js} +1 -1
- package/dist/{NumberControl-SJtYmeQo.js → NumberControl-CeiBy1zc.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-C0eo7BcI.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CKe4QLfL.js} +2 -2
- package/dist/{NumberInput-Be20_1Pc.js → NumberInput-Br7XOkwH.js} +1 -1
- package/dist/{OneOfDropdown-DlNcB8XW.js → OneOfDropdown-QQuD88pb.js} +1 -1
- package/dist/{RadioControl-BKujnSCB.js → RadioControl-HSOb6aKE.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-D2FQgv9l.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DknSJduh.js} +2 -2
- package/dist/{RichTextControl-D3h6uoj5.js → RichTextControl-ecwSubyQ.js} +1294 -1294
- package/dist/{SectionLayout-Do95CtUw.js → SectionLayout-BZ3FHiGz.js} +10 -10
- package/dist/{SimpleButtonControl-D6BgabRB.js → SimpleButtonControl-DuzvsXf_.js} +9 -9
- package/dist/{SimpleTwinlistControl-9USploY0.js → SimpleTwinlistControl-DwGJBeoN.js} +2 -2
- package/dist/{SortListControl-DN8ypCA1.js → SortListControl-BLRSjMlt.js} +44 -44
- package/dist/{TextAreaControl-9E45K9LP.js → TextAreaControl-BtKvK7m5.js} +1 -1
- package/dist/{TextControl-BBADDUxC.js → TextControl-DQHeLfUf.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-HmUXivAD.js → TextControl.vue_vue_type_script_setup_true_lang-BVniTWZc.js} +3 -3
- package/dist/{TimeControl-C6RXVH_D.js → TimeControl-DNVZ8MwG.js} +254 -186
- package/dist/{Tooltip-Tn59teyD.js → Tooltip-05C2P0LZ.js} +1 -1
- package/dist/{TwinlistControl-Bw-3pqRo.js → TwinlistControl-CLb3ScbX.js} +4 -4
- package/dist/{TwinlistLoadingInfo-BSF18Xm1.js → TwinlistLoadingInfo-CORKwJtq.js} +6 -6
- package/dist/{ValueSwitch-8AuK3jrJ.js → ValueSwitch-DDZmCzJ2.js} +15 -15
- package/dist/{ValueSwitchControl-CXQQyGpN.js → ValueSwitchControl-f-Erg95s.js} +1 -1
- package/dist/{VerticalLayout-B2bNmVgn.js → VerticalLayout-BuHTshgA.js} +2 -2
- package/dist/VerticalLayoutBase-DvAVJXQ0.js +20 -0
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-CgxoHJl6.js +14873 -0
- package/dist/ZonedDateTimeControl-CITJCUL9.js +62 -0
- package/dist/{_baseAssignValue-DGlJFWWl.js → _baseAssignValue-BsEGtC7U.js} +1 -1
- package/dist/{_baseEach-CyAziyoj.js → _baseEach-D3wikPtr.js} +2 -2
- package/dist/{_baseIsEqual-CeM08H2c.js → _baseIsEqual-Ba5emb2n.js} +25 -25
- package/dist/{_baseIteratee-D5uAz1ci.js → _baseIteratee-CR_k_vvc.js} +3 -3
- package/dist/{_getTag-DSF9m6Mj.js → _getTag-B6BdOFrI.js} +52 -53
- package/dist/{floating-ui.vue.esm-CDpUY3-t.js → floating-ui.vue.esm-B1dY_Hbh.js} +137 -137
- package/dist/{index-Cp7Xre_V.js → index-CkuSIXs2.js} +99 -99
- package/dist/{isSymbol-DYfQwMQW.js → isSymbol-Cb4cQ_Hx.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +6 -6
- package/dist/{magic-string.es-B5oZaT6C.js → magic-string.es-BDTetD65.js} +265 -264
- package/dist/popper-CRR--9mA.js +907 -0
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/renderers/defaultRenderers.d.ts +6 -0
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +8 -0
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +16 -0
- package/dist/{svgWithTitle-Dt_sR5y0.js → svgWithTitle-CuG0P-p_.js} +1 -1
- package/dist/testing.js +977 -972
- package/dist/toString-77UqbKdP.js +26 -0
- package/package.json +1 -1
- package/dist/DateTimeInput-CMuN30CN.js +0 -11076
- package/dist/VerticalLayoutBase-CvToTLP0.js +0 -20
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-vGXKVcuV.js +0 -13240
- package/dist/popper-1JCni0RT.js +0 -907
- package/dist/toString-Ccd5uXff.js +0 -26
|
@@ -0,0 +1,907 @@
|
|
|
1
|
+
var B = "top", S = "bottom", L = "right", $ = "left", Pe = "auto", fe = [B, S, L, $], Q = "start", oe = "end", ct = "clippingParents", Ke = "viewport", ne = "popper", lt = "reference", Fe = /* @__PURE__ */ fe.reduce(function(e, t) {
|
|
2
|
+
return e.concat([t + "-" + Q, t + "-" + oe]);
|
|
3
|
+
}, []), Qe = /* @__PURE__ */ [].concat(fe, [Pe]).reduce(function(e, t) {
|
|
4
|
+
return e.concat([t, t + "-" + Q, t + "-" + oe]);
|
|
5
|
+
}, []), dt = "beforeRead", vt = "read", ht = "afterRead", mt = "beforeMain", gt = "main", yt = "afterMain", bt = "beforeWrite", wt = "write", xt = "afterWrite", Ot = [dt, vt, ht, mt, gt, yt, bt, wt, xt];
|
|
6
|
+
function V(e) {
|
|
7
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
8
|
+
}
|
|
9
|
+
function k(e) {
|
|
10
|
+
if (e == null)
|
|
11
|
+
return window;
|
|
12
|
+
if (e.toString() !== "[object Window]") {
|
|
13
|
+
var t = e.ownerDocument;
|
|
14
|
+
return t && t.defaultView || window;
|
|
15
|
+
}
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
function J(e) {
|
|
19
|
+
var t = k(e).Element;
|
|
20
|
+
return e instanceof t || e instanceof Element;
|
|
21
|
+
}
|
|
22
|
+
function T(e) {
|
|
23
|
+
var t = k(e).HTMLElement;
|
|
24
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
25
|
+
}
|
|
26
|
+
function De(e) {
|
|
27
|
+
if (typeof ShadowRoot > "u")
|
|
28
|
+
return !1;
|
|
29
|
+
var t = k(e).ShadowRoot;
|
|
30
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
31
|
+
}
|
|
32
|
+
function At(e) {
|
|
33
|
+
var t = e.state;
|
|
34
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
35
|
+
var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r];
|
|
36
|
+
!T(i) || !V(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(u) {
|
|
37
|
+
var s = a[u];
|
|
38
|
+
s === !1 ? i.removeAttribute(u) : i.setAttribute(u, s === !0 ? "" : s);
|
|
39
|
+
}));
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function Et(e) {
|
|
43
|
+
var t = e.state, r = {
|
|
44
|
+
popper: {
|
|
45
|
+
position: t.options.strategy,
|
|
46
|
+
left: "0",
|
|
47
|
+
top: "0",
|
|
48
|
+
margin: "0"
|
|
49
|
+
},
|
|
50
|
+
arrow: {
|
|
51
|
+
position: "absolute"
|
|
52
|
+
},
|
|
53
|
+
reference: {}
|
|
54
|
+
};
|
|
55
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
56
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
57
|
+
var a = t.elements[n], i = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = u.reduce(function(o, p) {
|
|
58
|
+
return o[p] = "", o;
|
|
59
|
+
}, {});
|
|
60
|
+
!T(a) || !V(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(o) {
|
|
61
|
+
a.removeAttribute(o);
|
|
62
|
+
}));
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const Pt = {
|
|
67
|
+
name: "applyStyles",
|
|
68
|
+
enabled: !0,
|
|
69
|
+
phase: "write",
|
|
70
|
+
fn: At,
|
|
71
|
+
effect: Et,
|
|
72
|
+
requires: ["computeStyles"]
|
|
73
|
+
};
|
|
74
|
+
function H(e) {
|
|
75
|
+
return e.split("-")[0];
|
|
76
|
+
}
|
|
77
|
+
var G = Math.max, ge = Math.min, Z = Math.round;
|
|
78
|
+
function Ae() {
|
|
79
|
+
var e = navigator.userAgentData;
|
|
80
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
81
|
+
return t.brand + "/" + t.version;
|
|
82
|
+
}).join(" ") : navigator.userAgent;
|
|
83
|
+
}
|
|
84
|
+
function Ze() {
|
|
85
|
+
return !/^((?!chrome|android).)*safari/i.test(Ae());
|
|
86
|
+
}
|
|
87
|
+
function _(e, t, r) {
|
|
88
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
89
|
+
var n = e.getBoundingClientRect(), a = 1, i = 1;
|
|
90
|
+
t && T(e) && (a = e.offsetWidth > 0 && Z(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Z(n.height) / e.offsetHeight || 1);
|
|
91
|
+
var u = J(e) ? k(e) : window, s = u.visualViewport, o = !Ze() && r, p = (n.left + (o && s ? s.offsetLeft : 0)) / a, f = (n.top + (o && s ? s.offsetTop : 0)) / i, h = n.width / a, y = n.height / i;
|
|
92
|
+
return {
|
|
93
|
+
width: h,
|
|
94
|
+
height: y,
|
|
95
|
+
top: f,
|
|
96
|
+
right: p + h,
|
|
97
|
+
bottom: f + y,
|
|
98
|
+
left: p,
|
|
99
|
+
x: p,
|
|
100
|
+
y: f
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function je(e) {
|
|
104
|
+
var t = _(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
105
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
106
|
+
x: e.offsetLeft,
|
|
107
|
+
y: e.offsetTop,
|
|
108
|
+
width: r,
|
|
109
|
+
height: n
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function _e(e, t) {
|
|
113
|
+
var r = t.getRootNode && t.getRootNode();
|
|
114
|
+
if (e.contains(t))
|
|
115
|
+
return !0;
|
|
116
|
+
if (r && De(r)) {
|
|
117
|
+
var n = t;
|
|
118
|
+
do {
|
|
119
|
+
if (n && e.isSameNode(n))
|
|
120
|
+
return !0;
|
|
121
|
+
n = n.parentNode || n.host;
|
|
122
|
+
} while (n);
|
|
123
|
+
}
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
function N(e) {
|
|
127
|
+
return k(e).getComputedStyle(e);
|
|
128
|
+
}
|
|
129
|
+
function Dt(e) {
|
|
130
|
+
return ["table", "td", "th"].indexOf(V(e)) >= 0;
|
|
131
|
+
}
|
|
132
|
+
function q(e) {
|
|
133
|
+
return ((J(e) ? e.ownerDocument : (
|
|
134
|
+
// $FlowFixMe[prop-missing]
|
|
135
|
+
e.document
|
|
136
|
+
)) || window.document).documentElement;
|
|
137
|
+
}
|
|
138
|
+
function ye(e) {
|
|
139
|
+
return V(e) === "html" ? e : (
|
|
140
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
141
|
+
// $FlowFixMe[incompatible-return]
|
|
142
|
+
// $FlowFixMe[prop-missing]
|
|
143
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
144
|
+
e.parentNode || // DOM Element detected
|
|
145
|
+
(De(e) ? e.host : null) || // ShadowRoot detected
|
|
146
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
147
|
+
q(e)
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
function qe(e) {
|
|
151
|
+
return !T(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
152
|
+
N(e).position === "fixed" ? null : e.offsetParent;
|
|
153
|
+
}
|
|
154
|
+
function jt(e) {
|
|
155
|
+
var t = /firefox/i.test(Ae()), r = /Trident/i.test(Ae());
|
|
156
|
+
if (r && T(e)) {
|
|
157
|
+
var n = N(e);
|
|
158
|
+
if (n.position === "fixed")
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
var a = ye(e);
|
|
162
|
+
for (De(a) && (a = a.host); T(a) && ["html", "body"].indexOf(V(a)) < 0; ) {
|
|
163
|
+
var i = N(a);
|
|
164
|
+
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
165
|
+
return a;
|
|
166
|
+
a = a.parentNode;
|
|
167
|
+
}
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
function ue(e) {
|
|
171
|
+
for (var t = k(e), r = qe(e); r && Dt(r) && N(r).position === "static"; )
|
|
172
|
+
r = qe(r);
|
|
173
|
+
return r && (V(r) === "html" || V(r) === "body" && N(r).position === "static") ? t : r || jt(e) || t;
|
|
174
|
+
}
|
|
175
|
+
function Re(e) {
|
|
176
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
177
|
+
}
|
|
178
|
+
function ae(e, t, r) {
|
|
179
|
+
return G(e, ge(t, r));
|
|
180
|
+
}
|
|
181
|
+
function Rt(e, t, r) {
|
|
182
|
+
var n = ae(e, t, r);
|
|
183
|
+
return n > r ? r : n;
|
|
184
|
+
}
|
|
185
|
+
function et() {
|
|
186
|
+
return {
|
|
187
|
+
top: 0,
|
|
188
|
+
right: 0,
|
|
189
|
+
bottom: 0,
|
|
190
|
+
left: 0
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function tt(e) {
|
|
194
|
+
return Object.assign({}, et(), e);
|
|
195
|
+
}
|
|
196
|
+
function rt(e, t) {
|
|
197
|
+
return t.reduce(function(r, n) {
|
|
198
|
+
return r[n] = e, r;
|
|
199
|
+
}, {});
|
|
200
|
+
}
|
|
201
|
+
var Bt = function(t, r) {
|
|
202
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
203
|
+
placement: r.placement
|
|
204
|
+
})) : t, tt(typeof t != "number" ? t : rt(t, fe));
|
|
205
|
+
};
|
|
206
|
+
function $t(e) {
|
|
207
|
+
var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, u = r.modifiersData.popperOffsets, s = H(r.placement), o = Re(s), p = [$, L].indexOf(s) >= 0, f = p ? "height" : "width";
|
|
208
|
+
if (!(!i || !u)) {
|
|
209
|
+
var h = Bt(a.padding, r), y = je(i), c = o === "y" ? B : $, w = o === "y" ? S : L, v = r.rects.reference[f] + r.rects.reference[o] - u[o] - r.rects.popper[f], d = u[o] - r.rects.reference[o], b = ue(i), O = b ? o === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, A = v / 2 - d / 2, l = h[c], m = O - y[f] - h[w], g = O / 2 - y[f] / 2 + A, x = ae(l, g, m), D = o;
|
|
210
|
+
r.modifiersData[n] = (t = {}, t[D] = x, t.centerOffset = x - g, t);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function Ct(e) {
|
|
214
|
+
var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
215
|
+
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || _e(t.elements.popper, a) && (t.elements.arrow = a));
|
|
216
|
+
}
|
|
217
|
+
const kt = {
|
|
218
|
+
name: "arrow",
|
|
219
|
+
enabled: !0,
|
|
220
|
+
phase: "main",
|
|
221
|
+
fn: $t,
|
|
222
|
+
effect: Ct,
|
|
223
|
+
requires: ["popperOffsets"],
|
|
224
|
+
requiresIfExists: ["preventOverflow"]
|
|
225
|
+
};
|
|
226
|
+
function ee(e) {
|
|
227
|
+
return e.split("-")[1];
|
|
228
|
+
}
|
|
229
|
+
var Tt = {
|
|
230
|
+
top: "auto",
|
|
231
|
+
right: "auto",
|
|
232
|
+
bottom: "auto",
|
|
233
|
+
left: "auto"
|
|
234
|
+
};
|
|
235
|
+
function St(e, t) {
|
|
236
|
+
var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
|
|
237
|
+
return {
|
|
238
|
+
x: Z(r * a) / a || 0,
|
|
239
|
+
y: Z(n * a) / a || 0
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
function Xe(e) {
|
|
243
|
+
var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, u = e.offsets, s = e.position, o = e.gpuAcceleration, p = e.adaptive, f = e.roundOffsets, h = e.isFixed, y = u.x, c = y === void 0 ? 0 : y, w = u.y, v = w === void 0 ? 0 : w, d = typeof f == "function" ? f({
|
|
244
|
+
x: c,
|
|
245
|
+
y: v
|
|
246
|
+
}) : {
|
|
247
|
+
x: c,
|
|
248
|
+
y: v
|
|
249
|
+
};
|
|
250
|
+
c = d.x, v = d.y;
|
|
251
|
+
var b = u.hasOwnProperty("x"), O = u.hasOwnProperty("y"), A = $, l = B, m = window;
|
|
252
|
+
if (p) {
|
|
253
|
+
var g = ue(r), x = "clientHeight", D = "clientWidth";
|
|
254
|
+
if (g === k(r) && (g = q(r), N(g).position !== "static" && s === "absolute" && (x = "scrollHeight", D = "scrollWidth")), g = g, a === B || (a === $ || a === L) && i === oe) {
|
|
255
|
+
l = S;
|
|
256
|
+
var P = h && g === m && m.visualViewport ? m.visualViewport.height : (
|
|
257
|
+
// $FlowFixMe[prop-missing]
|
|
258
|
+
g[x]
|
|
259
|
+
);
|
|
260
|
+
v -= P - n.height, v *= o ? 1 : -1;
|
|
261
|
+
}
|
|
262
|
+
if (a === $ || (a === B || a === S) && i === oe) {
|
|
263
|
+
A = L;
|
|
264
|
+
var E = h && g === m && m.visualViewport ? m.visualViewport.width : (
|
|
265
|
+
// $FlowFixMe[prop-missing]
|
|
266
|
+
g[D]
|
|
267
|
+
);
|
|
268
|
+
c -= E - n.width, c *= o ? 1 : -1;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
var j = Object.assign({
|
|
272
|
+
position: s
|
|
273
|
+
}, p && Tt), M = f === !0 ? St({
|
|
274
|
+
x: c,
|
|
275
|
+
y: v
|
|
276
|
+
}, k(r)) : {
|
|
277
|
+
x: c,
|
|
278
|
+
y: v
|
|
279
|
+
};
|
|
280
|
+
if (c = M.x, v = M.y, o) {
|
|
281
|
+
var R;
|
|
282
|
+
return Object.assign({}, j, (R = {}, R[l] = O ? "0" : "", R[A] = b ? "0" : "", R.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + c + "px, " + v + "px)" : "translate3d(" + c + "px, " + v + "px, 0)", R));
|
|
283
|
+
}
|
|
284
|
+
return Object.assign({}, j, (t = {}, t[l] = O ? v + "px" : "", t[A] = b ? c + "px" : "", t.transform = "", t));
|
|
285
|
+
}
|
|
286
|
+
function Lt(e) {
|
|
287
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, u = i === void 0 ? !0 : i, s = r.roundOffsets, o = s === void 0 ? !0 : s, p = {
|
|
288
|
+
placement: H(t.placement),
|
|
289
|
+
variation: ee(t.placement),
|
|
290
|
+
popper: t.elements.popper,
|
|
291
|
+
popperRect: t.rects.popper,
|
|
292
|
+
gpuAcceleration: a,
|
|
293
|
+
isFixed: t.options.strategy === "fixed"
|
|
294
|
+
};
|
|
295
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Xe(Object.assign({}, p, {
|
|
296
|
+
offsets: t.modifiersData.popperOffsets,
|
|
297
|
+
position: t.options.strategy,
|
|
298
|
+
adaptive: u,
|
|
299
|
+
roundOffsets: o
|
|
300
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Xe(Object.assign({}, p, {
|
|
301
|
+
offsets: t.modifiersData.arrow,
|
|
302
|
+
position: "absolute",
|
|
303
|
+
adaptive: !1,
|
|
304
|
+
roundOffsets: o
|
|
305
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
306
|
+
"data-popper-placement": t.placement
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
const Mt = {
|
|
310
|
+
name: "computeStyles",
|
|
311
|
+
enabled: !0,
|
|
312
|
+
phase: "beforeWrite",
|
|
313
|
+
fn: Lt,
|
|
314
|
+
data: {}
|
|
315
|
+
};
|
|
316
|
+
var he = {
|
|
317
|
+
passive: !0
|
|
318
|
+
};
|
|
319
|
+
function Wt(e) {
|
|
320
|
+
var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, u = n.resize, s = u === void 0 ? !0 : u, o = k(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
321
|
+
return i && p.forEach(function(f) {
|
|
322
|
+
f.addEventListener("scroll", r.update, he);
|
|
323
|
+
}), s && o.addEventListener("resize", r.update, he), function() {
|
|
324
|
+
i && p.forEach(function(f) {
|
|
325
|
+
f.removeEventListener("scroll", r.update, he);
|
|
326
|
+
}), s && o.removeEventListener("resize", r.update, he);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
const Ht = {
|
|
330
|
+
name: "eventListeners",
|
|
331
|
+
enabled: !0,
|
|
332
|
+
phase: "write",
|
|
333
|
+
fn: function() {
|
|
334
|
+
},
|
|
335
|
+
effect: Wt,
|
|
336
|
+
data: {}
|
|
337
|
+
};
|
|
338
|
+
var Vt = {
|
|
339
|
+
left: "right",
|
|
340
|
+
right: "left",
|
|
341
|
+
bottom: "top",
|
|
342
|
+
top: "bottom"
|
|
343
|
+
};
|
|
344
|
+
function me(e) {
|
|
345
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
346
|
+
return Vt[t];
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
var Nt = {
|
|
350
|
+
start: "end",
|
|
351
|
+
end: "start"
|
|
352
|
+
};
|
|
353
|
+
function Ie(e) {
|
|
354
|
+
return e.replace(/start|end/g, function(t) {
|
|
355
|
+
return Nt[t];
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function Be(e) {
|
|
359
|
+
var t = k(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
360
|
+
return {
|
|
361
|
+
scrollLeft: r,
|
|
362
|
+
scrollTop: n
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function $e(e) {
|
|
366
|
+
return _(q(e)).left + Be(e).scrollLeft;
|
|
367
|
+
}
|
|
368
|
+
function Ft(e, t) {
|
|
369
|
+
var r = k(e), n = q(e), a = r.visualViewport, i = n.clientWidth, u = n.clientHeight, s = 0, o = 0;
|
|
370
|
+
if (a) {
|
|
371
|
+
i = a.width, u = a.height;
|
|
372
|
+
var p = Ze();
|
|
373
|
+
(p || !p && t === "fixed") && (s = a.offsetLeft, o = a.offsetTop);
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
width: i,
|
|
377
|
+
height: u,
|
|
378
|
+
x: s + $e(e),
|
|
379
|
+
y: o
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
function qt(e) {
|
|
383
|
+
var t, r = q(e), n = Be(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = G(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = G(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + $e(e), o = -n.scrollTop;
|
|
384
|
+
return N(a || r).direction === "rtl" && (s += G(r.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
385
|
+
width: i,
|
|
386
|
+
height: u,
|
|
387
|
+
x: s,
|
|
388
|
+
y: o
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
function Ce(e) {
|
|
392
|
+
var t = N(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
|
|
393
|
+
return /auto|scroll|overlay|hidden/.test(r + a + n);
|
|
394
|
+
}
|
|
395
|
+
function nt(e) {
|
|
396
|
+
return ["html", "body", "#document"].indexOf(V(e)) >= 0 ? e.ownerDocument.body : T(e) && Ce(e) ? e : nt(ye(e));
|
|
397
|
+
}
|
|
398
|
+
function ie(e, t) {
|
|
399
|
+
var r;
|
|
400
|
+
t === void 0 && (t = []);
|
|
401
|
+
var n = nt(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = k(n), u = a ? [i].concat(i.visualViewport || [], Ce(n) ? n : []) : n, s = t.concat(u);
|
|
402
|
+
return a ? s : (
|
|
403
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
404
|
+
s.concat(ie(ye(u)))
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
function Ee(e) {
|
|
408
|
+
return Object.assign({}, e, {
|
|
409
|
+
left: e.x,
|
|
410
|
+
top: e.y,
|
|
411
|
+
right: e.x + e.width,
|
|
412
|
+
bottom: e.y + e.height
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
function Xt(e, t) {
|
|
416
|
+
var r = _(e, !1, t === "fixed");
|
|
417
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
418
|
+
}
|
|
419
|
+
function Ye(e, t, r) {
|
|
420
|
+
return t === Ke ? Ee(Ft(e, r)) : J(t) ? Xt(t, r) : Ee(qt(q(e)));
|
|
421
|
+
}
|
|
422
|
+
function It(e) {
|
|
423
|
+
var t = ie(ye(e)), r = ["absolute", "fixed"].indexOf(N(e).position) >= 0, n = r && T(e) ? ue(e) : e;
|
|
424
|
+
return J(n) ? t.filter(function(a) {
|
|
425
|
+
return J(a) && _e(a, n) && V(a) !== "body";
|
|
426
|
+
}) : [];
|
|
427
|
+
}
|
|
428
|
+
function Yt(e, t, r, n) {
|
|
429
|
+
var a = t === "clippingParents" ? It(e) : [].concat(t), i = [].concat(a, [r]), u = i[0], s = i.reduce(function(o, p) {
|
|
430
|
+
var f = Ye(e, p, n);
|
|
431
|
+
return o.top = G(f.top, o.top), o.right = ge(f.right, o.right), o.bottom = ge(f.bottom, o.bottom), o.left = G(f.left, o.left), o;
|
|
432
|
+
}, Ye(e, u, n));
|
|
433
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
434
|
+
}
|
|
435
|
+
function at(e) {
|
|
436
|
+
var t = e.reference, r = e.element, n = e.placement, a = n ? H(n) : null, i = n ? ee(n) : null, u = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, o;
|
|
437
|
+
switch (a) {
|
|
438
|
+
case B:
|
|
439
|
+
o = {
|
|
440
|
+
x: u,
|
|
441
|
+
y: t.y - r.height
|
|
442
|
+
};
|
|
443
|
+
break;
|
|
444
|
+
case S:
|
|
445
|
+
o = {
|
|
446
|
+
x: u,
|
|
447
|
+
y: t.y + t.height
|
|
448
|
+
};
|
|
449
|
+
break;
|
|
450
|
+
case L:
|
|
451
|
+
o = {
|
|
452
|
+
x: t.x + t.width,
|
|
453
|
+
y: s
|
|
454
|
+
};
|
|
455
|
+
break;
|
|
456
|
+
case $:
|
|
457
|
+
o = {
|
|
458
|
+
x: t.x - r.width,
|
|
459
|
+
y: s
|
|
460
|
+
};
|
|
461
|
+
break;
|
|
462
|
+
default:
|
|
463
|
+
o = {
|
|
464
|
+
x: t.x,
|
|
465
|
+
y: t.y
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
var p = a ? Re(a) : null;
|
|
469
|
+
if (p != null) {
|
|
470
|
+
var f = p === "y" ? "height" : "width";
|
|
471
|
+
switch (i) {
|
|
472
|
+
case Q:
|
|
473
|
+
o[p] = o[p] - (t[f] / 2 - r[f] / 2);
|
|
474
|
+
break;
|
|
475
|
+
case oe:
|
|
476
|
+
o[p] = o[p] + (t[f] / 2 - r[f] / 2);
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
return o;
|
|
481
|
+
}
|
|
482
|
+
function se(e, t) {
|
|
483
|
+
t === void 0 && (t = {});
|
|
484
|
+
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, u = i === void 0 ? e.strategy : i, s = r.boundary, o = s === void 0 ? ct : s, p = r.rootBoundary, f = p === void 0 ? Ke : p, h = r.elementContext, y = h === void 0 ? ne : h, c = r.altBoundary, w = c === void 0 ? !1 : c, v = r.padding, d = v === void 0 ? 0 : v, b = tt(typeof d != "number" ? d : rt(d, fe)), O = y === ne ? lt : ne, A = e.rects.popper, l = e.elements[w ? O : y], m = Yt(J(l) ? l : l.contextElement || q(e.elements.popper), o, f, u), g = _(e.elements.reference), x = at({
|
|
485
|
+
reference: g,
|
|
486
|
+
element: A,
|
|
487
|
+
strategy: "absolute",
|
|
488
|
+
placement: a
|
|
489
|
+
}), D = Ee(Object.assign({}, A, x)), P = y === ne ? D : g, E = {
|
|
490
|
+
top: m.top - P.top + b.top,
|
|
491
|
+
bottom: P.bottom - m.bottom + b.bottom,
|
|
492
|
+
left: m.left - P.left + b.left,
|
|
493
|
+
right: P.right - m.right + b.right
|
|
494
|
+
}, j = e.modifiersData.offset;
|
|
495
|
+
if (y === ne && j) {
|
|
496
|
+
var M = j[a];
|
|
497
|
+
Object.keys(E).forEach(function(R) {
|
|
498
|
+
var X = [L, S].indexOf(R) >= 0 ? 1 : -1, I = [B, S].indexOf(R) >= 0 ? "y" : "x";
|
|
499
|
+
E[R] += M[I] * X;
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
return E;
|
|
503
|
+
}
|
|
504
|
+
function zt(e, t) {
|
|
505
|
+
t === void 0 && (t = {});
|
|
506
|
+
var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, u = r.padding, s = r.flipVariations, o = r.allowedAutoPlacements, p = o === void 0 ? Qe : o, f = ee(n), h = f ? s ? Fe : Fe.filter(function(w) {
|
|
507
|
+
return ee(w) === f;
|
|
508
|
+
}) : fe, y = h.filter(function(w) {
|
|
509
|
+
return p.indexOf(w) >= 0;
|
|
510
|
+
});
|
|
511
|
+
y.length === 0 && (y = h);
|
|
512
|
+
var c = y.reduce(function(w, v) {
|
|
513
|
+
return w[v] = se(e, {
|
|
514
|
+
placement: v,
|
|
515
|
+
boundary: a,
|
|
516
|
+
rootBoundary: i,
|
|
517
|
+
padding: u
|
|
518
|
+
})[H(v)], w;
|
|
519
|
+
}, {});
|
|
520
|
+
return Object.keys(c).sort(function(w, v) {
|
|
521
|
+
return c[w] - c[v];
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function Ut(e) {
|
|
525
|
+
if (H(e) === Pe)
|
|
526
|
+
return [];
|
|
527
|
+
var t = me(e);
|
|
528
|
+
return [Ie(e), t, Ie(t)];
|
|
529
|
+
}
|
|
530
|
+
function Gt(e) {
|
|
531
|
+
var t = e.state, r = e.options, n = e.name;
|
|
532
|
+
if (!t.modifiersData[n]._skip) {
|
|
533
|
+
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !0 : u, o = r.fallbackPlacements, p = r.padding, f = r.boundary, h = r.rootBoundary, y = r.altBoundary, c = r.flipVariations, w = c === void 0 ? !0 : c, v = r.allowedAutoPlacements, d = t.options.placement, b = H(d), O = b === d, A = o || (O || !w ? [me(d)] : Ut(d)), l = [d].concat(A).reduce(function(K, F) {
|
|
534
|
+
return K.concat(H(F) === Pe ? zt(t, {
|
|
535
|
+
placement: F,
|
|
536
|
+
boundary: f,
|
|
537
|
+
rootBoundary: h,
|
|
538
|
+
padding: p,
|
|
539
|
+
flipVariations: w,
|
|
540
|
+
allowedAutoPlacements: v
|
|
541
|
+
}) : F);
|
|
542
|
+
}, []), m = t.rects.reference, g = t.rects.popper, x = /* @__PURE__ */ new Map(), D = !0, P = l[0], E = 0; E < l.length; E++) {
|
|
543
|
+
var j = l[E], M = H(j), R = ee(j) === Q, X = [B, S].indexOf(M) >= 0, I = X ? "width" : "height", C = se(t, {
|
|
544
|
+
placement: j,
|
|
545
|
+
boundary: f,
|
|
546
|
+
rootBoundary: h,
|
|
547
|
+
altBoundary: y,
|
|
548
|
+
padding: p
|
|
549
|
+
}), W = X ? R ? L : $ : R ? S : B;
|
|
550
|
+
m[I] > g[I] && (W = me(W));
|
|
551
|
+
var pe = me(W), Y = [];
|
|
552
|
+
if (i && Y.push(C[M] <= 0), s && Y.push(C[W] <= 0, C[pe] <= 0), Y.every(function(K) {
|
|
553
|
+
return K;
|
|
554
|
+
})) {
|
|
555
|
+
P = j, D = !1;
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
x.set(j, Y);
|
|
559
|
+
}
|
|
560
|
+
if (D)
|
|
561
|
+
for (var ce = w ? 3 : 1, be = function(F) {
|
|
562
|
+
var re = l.find(function(de) {
|
|
563
|
+
var z = x.get(de);
|
|
564
|
+
if (z)
|
|
565
|
+
return z.slice(0, F).every(function(we) {
|
|
566
|
+
return we;
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
if (re)
|
|
570
|
+
return P = re, "break";
|
|
571
|
+
}, te = ce; te > 0; te--) {
|
|
572
|
+
var le = be(te);
|
|
573
|
+
if (le === "break") break;
|
|
574
|
+
}
|
|
575
|
+
t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
const Jt = {
|
|
579
|
+
name: "flip",
|
|
580
|
+
enabled: !0,
|
|
581
|
+
phase: "main",
|
|
582
|
+
fn: Gt,
|
|
583
|
+
requiresIfExists: ["offset"],
|
|
584
|
+
data: {
|
|
585
|
+
_skip: !1
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
function ze(e, t, r) {
|
|
589
|
+
return r === void 0 && (r = {
|
|
590
|
+
x: 0,
|
|
591
|
+
y: 0
|
|
592
|
+
}), {
|
|
593
|
+
top: e.top - t.height - r.y,
|
|
594
|
+
right: e.right - t.width + r.x,
|
|
595
|
+
bottom: e.bottom - t.height + r.y,
|
|
596
|
+
left: e.left - t.width - r.x
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
function Ue(e) {
|
|
600
|
+
return [B, L, S, $].some(function(t) {
|
|
601
|
+
return e[t] >= 0;
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
function Kt(e) {
|
|
605
|
+
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, u = se(t, {
|
|
606
|
+
elementContext: "reference"
|
|
607
|
+
}), s = se(t, {
|
|
608
|
+
altBoundary: !0
|
|
609
|
+
}), o = ze(u, n), p = ze(s, a, i), f = Ue(o), h = Ue(p);
|
|
610
|
+
t.modifiersData[r] = {
|
|
611
|
+
referenceClippingOffsets: o,
|
|
612
|
+
popperEscapeOffsets: p,
|
|
613
|
+
isReferenceHidden: f,
|
|
614
|
+
hasPopperEscaped: h
|
|
615
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
616
|
+
"data-popper-reference-hidden": f,
|
|
617
|
+
"data-popper-escaped": h
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
const Qt = {
|
|
621
|
+
name: "hide",
|
|
622
|
+
enabled: !0,
|
|
623
|
+
phase: "main",
|
|
624
|
+
requiresIfExists: ["preventOverflow"],
|
|
625
|
+
fn: Kt
|
|
626
|
+
};
|
|
627
|
+
function Zt(e, t, r) {
|
|
628
|
+
var n = H(e), a = [$, B].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
629
|
+
placement: e
|
|
630
|
+
})) : r, u = i[0], s = i[1];
|
|
631
|
+
return u = u || 0, s = (s || 0) * a, [$, L].indexOf(n) >= 0 ? {
|
|
632
|
+
x: s,
|
|
633
|
+
y: u
|
|
634
|
+
} : {
|
|
635
|
+
x: u,
|
|
636
|
+
y: s
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function _t(e) {
|
|
640
|
+
var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, u = Qe.reduce(function(f, h) {
|
|
641
|
+
return f[h] = Zt(h, t.rects, i), f;
|
|
642
|
+
}, {}), s = u[t.placement], o = s.x, p = s.y;
|
|
643
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += o, t.modifiersData.popperOffsets.y += p), t.modifiersData[n] = u;
|
|
644
|
+
}
|
|
645
|
+
const er = {
|
|
646
|
+
name: "offset",
|
|
647
|
+
enabled: !0,
|
|
648
|
+
phase: "main",
|
|
649
|
+
requires: ["popperOffsets"],
|
|
650
|
+
fn: _t
|
|
651
|
+
};
|
|
652
|
+
function tr(e) {
|
|
653
|
+
var t = e.state, r = e.name;
|
|
654
|
+
t.modifiersData[r] = at({
|
|
655
|
+
reference: t.rects.reference,
|
|
656
|
+
element: t.rects.popper,
|
|
657
|
+
strategy: "absolute",
|
|
658
|
+
placement: t.placement
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
const rr = {
|
|
662
|
+
name: "popperOffsets",
|
|
663
|
+
enabled: !0,
|
|
664
|
+
phase: "read",
|
|
665
|
+
fn: tr,
|
|
666
|
+
data: {}
|
|
667
|
+
};
|
|
668
|
+
function nr(e) {
|
|
669
|
+
return e === "x" ? "y" : "x";
|
|
670
|
+
}
|
|
671
|
+
function ar(e) {
|
|
672
|
+
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !1 : u, o = r.boundary, p = r.rootBoundary, f = r.altBoundary, h = r.padding, y = r.tether, c = y === void 0 ? !0 : y, w = r.tetherOffset, v = w === void 0 ? 0 : w, d = se(t, {
|
|
673
|
+
boundary: o,
|
|
674
|
+
rootBoundary: p,
|
|
675
|
+
padding: h,
|
|
676
|
+
altBoundary: f
|
|
677
|
+
}), b = H(t.placement), O = ee(t.placement), A = !O, l = Re(b), m = nr(l), g = t.modifiersData.popperOffsets, x = t.rects.reference, D = t.rects.popper, P = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
678
|
+
placement: t.placement
|
|
679
|
+
})) : v, E = typeof P == "number" ? {
|
|
680
|
+
mainAxis: P,
|
|
681
|
+
altAxis: P
|
|
682
|
+
} : Object.assign({
|
|
683
|
+
mainAxis: 0,
|
|
684
|
+
altAxis: 0
|
|
685
|
+
}, P), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
|
|
686
|
+
x: 0,
|
|
687
|
+
y: 0
|
|
688
|
+
};
|
|
689
|
+
if (g) {
|
|
690
|
+
if (i) {
|
|
691
|
+
var R, X = l === "y" ? B : $, I = l === "y" ? S : L, C = l === "y" ? "height" : "width", W = g[l], pe = W + d[X], Y = W - d[I], ce = c ? -D[C] / 2 : 0, be = O === Q ? x[C] : D[C], te = O === Q ? -D[C] : -x[C], le = t.elements.arrow, K = c && le ? je(le) : {
|
|
692
|
+
width: 0,
|
|
693
|
+
height: 0
|
|
694
|
+
}, F = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : et(), re = F[X], de = F[I], z = ae(0, x[C], K[C]), we = A ? x[C] / 2 - ce - z - re - E.mainAxis : be - z - re - E.mainAxis, it = A ? -x[C] / 2 + ce + z + de + E.mainAxis : te + z + de + E.mainAxis, xe = t.elements.arrow && ue(t.elements.arrow), ot = xe ? l === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, ke = (R = j == null ? void 0 : j[l]) != null ? R : 0, st = W + we - ke - ot, ft = W + it - ke, Te = ae(c ? ge(pe, st) : pe, W, c ? G(Y, ft) : Y);
|
|
695
|
+
g[l] = Te, M[l] = Te - W;
|
|
696
|
+
}
|
|
697
|
+
if (s) {
|
|
698
|
+
var Se, ut = l === "x" ? B : $, pt = l === "x" ? S : L, U = g[m], ve = m === "y" ? "height" : "width", Le = U + d[ut], Me = U - d[pt], Oe = [B, $].indexOf(b) !== -1, We = (Se = j == null ? void 0 : j[m]) != null ? Se : 0, He = Oe ? Le : U - x[ve] - D[ve] - We + E.altAxis, Ve = Oe ? U + x[ve] + D[ve] - We - E.altAxis : Me, Ne = c && Oe ? Rt(He, U, Ve) : ae(c ? He : Le, U, c ? Ve : Me);
|
|
699
|
+
g[m] = Ne, M[m] = Ne - U;
|
|
700
|
+
}
|
|
701
|
+
t.modifiersData[n] = M;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
const ir = {
|
|
705
|
+
name: "preventOverflow",
|
|
706
|
+
enabled: !0,
|
|
707
|
+
phase: "main",
|
|
708
|
+
fn: ar,
|
|
709
|
+
requiresIfExists: ["offset"]
|
|
710
|
+
};
|
|
711
|
+
function or(e) {
|
|
712
|
+
return {
|
|
713
|
+
scrollLeft: e.scrollLeft,
|
|
714
|
+
scrollTop: e.scrollTop
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
function sr(e) {
|
|
718
|
+
return e === k(e) || !T(e) ? Be(e) : or(e);
|
|
719
|
+
}
|
|
720
|
+
function fr(e) {
|
|
721
|
+
var t = e.getBoundingClientRect(), r = Z(t.width) / e.offsetWidth || 1, n = Z(t.height) / e.offsetHeight || 1;
|
|
722
|
+
return r !== 1 || n !== 1;
|
|
723
|
+
}
|
|
724
|
+
function ur(e, t, r) {
|
|
725
|
+
r === void 0 && (r = !1);
|
|
726
|
+
var n = T(t), a = T(t) && fr(t), i = q(t), u = _(e, a, r), s = {
|
|
727
|
+
scrollLeft: 0,
|
|
728
|
+
scrollTop: 0
|
|
729
|
+
}, o = {
|
|
730
|
+
x: 0,
|
|
731
|
+
y: 0
|
|
732
|
+
};
|
|
733
|
+
return (n || !n && !r) && ((V(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
734
|
+
Ce(i)) && (s = sr(t)), T(t) ? (o = _(t, !0), o.x += t.clientLeft, o.y += t.clientTop) : i && (o.x = $e(i))), {
|
|
735
|
+
x: u.left + s.scrollLeft - o.x,
|
|
736
|
+
y: u.top + s.scrollTop - o.y,
|
|
737
|
+
width: u.width,
|
|
738
|
+
height: u.height
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
function pr(e) {
|
|
742
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
743
|
+
e.forEach(function(i) {
|
|
744
|
+
t.set(i.name, i);
|
|
745
|
+
});
|
|
746
|
+
function a(i) {
|
|
747
|
+
r.add(i.name);
|
|
748
|
+
var u = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
749
|
+
u.forEach(function(s) {
|
|
750
|
+
if (!r.has(s)) {
|
|
751
|
+
var o = t.get(s);
|
|
752
|
+
o && a(o);
|
|
753
|
+
}
|
|
754
|
+
}), n.push(i);
|
|
755
|
+
}
|
|
756
|
+
return e.forEach(function(i) {
|
|
757
|
+
r.has(i.name) || a(i);
|
|
758
|
+
}), n;
|
|
759
|
+
}
|
|
760
|
+
function cr(e) {
|
|
761
|
+
var t = pr(e);
|
|
762
|
+
return Ot.reduce(function(r, n) {
|
|
763
|
+
return r.concat(t.filter(function(a) {
|
|
764
|
+
return a.phase === n;
|
|
765
|
+
}));
|
|
766
|
+
}, []);
|
|
767
|
+
}
|
|
768
|
+
function lr(e) {
|
|
769
|
+
var t;
|
|
770
|
+
return function() {
|
|
771
|
+
return t || (t = new Promise(function(r) {
|
|
772
|
+
Promise.resolve().then(function() {
|
|
773
|
+
t = void 0, r(e());
|
|
774
|
+
});
|
|
775
|
+
})), t;
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
function dr(e) {
|
|
779
|
+
var t = e.reduce(function(r, n) {
|
|
780
|
+
var a = r[n.name];
|
|
781
|
+
return r[n.name] = a ? Object.assign({}, a, n, {
|
|
782
|
+
options: Object.assign({}, a.options, n.options),
|
|
783
|
+
data: Object.assign({}, a.data, n.data)
|
|
784
|
+
}) : n, r;
|
|
785
|
+
}, {});
|
|
786
|
+
return Object.keys(t).map(function(r) {
|
|
787
|
+
return t[r];
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
var Ge = {
|
|
791
|
+
placement: "bottom",
|
|
792
|
+
modifiers: [],
|
|
793
|
+
strategy: "absolute"
|
|
794
|
+
};
|
|
795
|
+
function Je() {
|
|
796
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
797
|
+
t[r] = arguments[r];
|
|
798
|
+
return !t.some(function(n) {
|
|
799
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
function vr(e) {
|
|
803
|
+
e === void 0 && (e = {});
|
|
804
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? Ge : a;
|
|
805
|
+
return function(s, o, p) {
|
|
806
|
+
p === void 0 && (p = i);
|
|
807
|
+
var f = {
|
|
808
|
+
placement: "bottom",
|
|
809
|
+
orderedModifiers: [],
|
|
810
|
+
options: Object.assign({}, Ge, i),
|
|
811
|
+
modifiersData: {},
|
|
812
|
+
elements: {
|
|
813
|
+
reference: s,
|
|
814
|
+
popper: o
|
|
815
|
+
},
|
|
816
|
+
attributes: {},
|
|
817
|
+
styles: {}
|
|
818
|
+
}, h = [], y = !1, c = {
|
|
819
|
+
state: f,
|
|
820
|
+
setOptions: function(b) {
|
|
821
|
+
var O = typeof b == "function" ? b(f.options) : b;
|
|
822
|
+
v(), f.options = Object.assign({}, i, f.options, O), f.scrollParents = {
|
|
823
|
+
reference: J(s) ? ie(s) : s.contextElement ? ie(s.contextElement) : [],
|
|
824
|
+
popper: ie(o)
|
|
825
|
+
};
|
|
826
|
+
var A = cr(dr([].concat(n, f.options.modifiers)));
|
|
827
|
+
return f.orderedModifiers = A.filter(function(l) {
|
|
828
|
+
return l.enabled;
|
|
829
|
+
}), w(), c.update();
|
|
830
|
+
},
|
|
831
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
832
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
833
|
+
// logic.
|
|
834
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
835
|
+
// prefer the async Popper#update method
|
|
836
|
+
forceUpdate: function() {
|
|
837
|
+
if (!y) {
|
|
838
|
+
var b = f.elements, O = b.reference, A = b.popper;
|
|
839
|
+
if (Je(O, A)) {
|
|
840
|
+
f.rects = {
|
|
841
|
+
reference: ur(O, ue(A), f.options.strategy === "fixed"),
|
|
842
|
+
popper: je(A)
|
|
843
|
+
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(E) {
|
|
844
|
+
return f.modifiersData[E.name] = Object.assign({}, E.data);
|
|
845
|
+
});
|
|
846
|
+
for (var l = 0; l < f.orderedModifiers.length; l++) {
|
|
847
|
+
if (f.reset === !0) {
|
|
848
|
+
f.reset = !1, l = -1;
|
|
849
|
+
continue;
|
|
850
|
+
}
|
|
851
|
+
var m = f.orderedModifiers[l], g = m.fn, x = m.options, D = x === void 0 ? {} : x, P = m.name;
|
|
852
|
+
typeof g == "function" && (f = g({
|
|
853
|
+
state: f,
|
|
854
|
+
options: D,
|
|
855
|
+
name: P,
|
|
856
|
+
instance: c
|
|
857
|
+
}) || f);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
863
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
864
|
+
update: lr(function() {
|
|
865
|
+
return new Promise(function(d) {
|
|
866
|
+
c.forceUpdate(), d(f);
|
|
867
|
+
});
|
|
868
|
+
}),
|
|
869
|
+
destroy: function() {
|
|
870
|
+
v(), y = !0;
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
if (!Je(s, o))
|
|
874
|
+
return c;
|
|
875
|
+
c.setOptions(p).then(function(d) {
|
|
876
|
+
!y && p.onFirstUpdate && p.onFirstUpdate(d);
|
|
877
|
+
});
|
|
878
|
+
function w() {
|
|
879
|
+
f.orderedModifiers.forEach(function(d) {
|
|
880
|
+
var b = d.name, O = d.options, A = O === void 0 ? {} : O, l = d.effect;
|
|
881
|
+
if (typeof l == "function") {
|
|
882
|
+
var m = l({
|
|
883
|
+
state: f,
|
|
884
|
+
name: b,
|
|
885
|
+
instance: c,
|
|
886
|
+
options: A
|
|
887
|
+
}), g = function() {
|
|
888
|
+
};
|
|
889
|
+
h.push(m || g);
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
function v() {
|
|
894
|
+
h.forEach(function(d) {
|
|
895
|
+
return d();
|
|
896
|
+
}), h = [];
|
|
897
|
+
}
|
|
898
|
+
return c;
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
var hr = [Ht, rr, Mt, Pt, er, Jt, ir, kt, Qt], mr = /* @__PURE__ */ vr({
|
|
902
|
+
defaultModifiers: hr
|
|
903
|
+
});
|
|
904
|
+
export {
|
|
905
|
+
Pt as a,
|
|
906
|
+
mr as c
|
|
907
|
+
};
|