@avakhula/ui 0.1.22 → 0.1.24
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/dist/App.js +23 -0
- package/dist/EventEmmiter.js +33 -0
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/chunks/floating-ui.dom-D8OVFdyL.js +861 -0
- package/dist/chunks/vue-quill.esm-bundler-FvTqp_xR.js +9070 -0
- package/dist/components/Accordion/Accordion.js +81 -0
- package/dist/components/Alert/Alert.js +121 -0
- package/dist/components/Alert/constants.js +10 -0
- package/dist/components/Avatar/Avatar.js +75 -0
- package/dist/components/Avatar/constants.js +12 -0
- package/dist/components/Badge/Badge.js +29 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +117 -0
- package/dist/components/Button/Button.js +140 -0
- package/dist/components/Button/constants.js +11 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +14 -0
- package/dist/components/Chips/Chips.js +65 -0
- package/dist/components/Dropdown/Dropdown.js +228 -0
- package/dist/components/Dropdown/DropdownDivider.js +10 -0
- package/dist/components/Dropdown/DropdownItem.js +50 -0
- package/dist/components/Dropdown/DropdownList.js +104 -0
- package/dist/components/Dropdown/constants.js +12 -0
- package/dist/components/Form/CharactersCount.js +33 -0
- package/dist/components/Form/Checkbox/Checkbox.js +171 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +81 -0
- package/dist/components/Form/DatePicker/DatePicker.js +1782 -0
- package/dist/components/Form/DatePicker/Icons/chevron-back.js +8 -0
- package/dist/components/Form/DatePicker/Icons/chevron-forward.js +8 -0
- package/dist/components/Form/FormGroup/FormGroup.js +30 -0
- package/dist/components/Form/FormGroup/FormGroupSet.js +44 -0
- package/dist/components/Form/Input/Input.js +375 -0
- package/dist/components/Form/Input/constants.js +9 -0
- package/dist/components/Form/Label/Label.js +87 -0
- package/dist/components/Form/PhoneInput/PhoneInput.js +3811 -0
- package/dist/components/Form/Radio/Radio.js +91 -0
- package/dist/components/Form/TextEditor/TextEditor.js +422 -0
- package/dist/components/Form/TextEditor/Toolbar.js +291 -0
- package/dist/components/Form/TextEditor/icons/toolbarIcons.js +109 -0
- package/dist/components/Form/TextEditor/plugins/alphabetList.js +31 -0
- package/dist/components/Form/TextEditor/plugins/imageBlot.js +16 -0
- package/dist/components/Form/TextEditor/setupTextEditor.js +27 -0
- package/dist/components/Form/Textarea/Textarea.js +121 -0
- package/dist/components/Form/Toggle/Toggle.js +134 -0
- package/dist/components/Icon.js +37 -0
- package/dist/components/IconButton/IconButton.js +93 -0
- package/dist/components/IconButton/constants.js +15 -0
- package/dist/components/List.js +66 -0
- package/dist/components/Modal/Modal.js +198 -0
- package/dist/components/Modal/constants.js +9 -0
- package/dist/components/Pagination/LimitSelector.js +73 -0
- package/dist/components/Pagination/Pagination.js +226 -0
- package/dist/components/Panel/Panel.js +107 -0
- package/dist/components/Popover/Popover.js +105 -0
- package/dist/components/Popover/constants.js +17 -0
- package/dist/components/ProgressBar/ProgressBar.js +63 -0
- package/dist/components/ProgressBar/constants.js +10 -0
- package/dist/components/Sorting/Sorting.js +182 -0
- package/dist/components/Sorting/constants.js +12 -0
- package/dist/components/SplitButton/SplitButton.js +145 -0
- package/dist/components/SplitButton/SplitButtonItem.js +34 -0
- package/dist/components/SplitButton/constants.js +7 -0
- package/dist/components/StatusIndicator/StatusIndicator.js +29 -0
- package/dist/components/StatusIndicator/constants.js +13 -0
- package/dist/components/StatusIndicator/icons.js +44 -0
- package/dist/components/Table/Cells/Cell.js +39 -0
- package/dist/components/Table/Cells/CheckboxCell.js +37 -0
- package/dist/components/Table/Row.js +14 -0
- package/dist/components/Table/Table.js +24 -0
- package/dist/components/Tabs/Tab.js +47 -0
- package/dist/components/Tabs/TabDropdown.js +94 -0
- package/dist/components/Tabs/Tabs.js +128 -0
- package/dist/components/TagPill/TagPill.js +61 -0
- package/dist/components/TagPill/constants.js +12 -0
- package/dist/components/ToggleTip/ToggleTip.js +91 -0
- package/dist/components/ToggleTip/constants.js +17 -0
- package/dist/components/Tooltip/Tooltip.js +46 -0
- package/dist/components/TreeSelect/Option.js +302 -0
- package/dist/components/TreeSelect/Select.js +1867 -0
- package/dist/components/TreeSelect/mixins/InfinityLoaderMixin.js +32 -0
- package/dist/constants/events.js +5 -0
- package/dist/constants/keyCodes.js +12 -0
- package/dist/directives/outside/outside.js +37 -0
- package/dist/directives/tooltip/TooltipController.js +116 -0
- package/dist/directives/tooltip/textOverflowTooltip.js +23 -0
- package/dist/directives/tooltip/tooltip.js +48 -0
- package/dist/helpers/debounce.js +14 -0
- package/dist/helpers/generateUID.js +6 -0
- package/dist/helpers/getHrefFromID.js +6 -0
- package/dist/helpers/multiLineOverflows.js +6 -0
- package/dist/helpers/removeEvents.js +8 -0
- package/dist/helpers/stripHtml.js +6 -0
- package/dist/index.css +1 -1
- package/dist/index.js +103 -22665
- package/dist/main.js +10 -0
- package/dist/mixins/expandAnimation.js +24 -0
- package/package.json +7 -4
- package/src/components/Form/Textarea/Textarea.vue +8 -4
- package/src/components/TreeSelect/Select.vue +11 -11
- package/.babelrc.json +0 -14
- package/.eslintrc.cjs +0 -22
- package/.nvmrc +0 -1
- package/.prettierrc.json +0 -1
- package/.storybook/intelliboardTheme.js +0 -10
- package/.storybook/main.js +0 -25
- package/.storybook/manager.js +0 -7
- package/.storybook/preview-head.html +0 -12
- package/.storybook/preview.js +0 -25
- package/.storybook/scss-loader.scss +0 -6
- package/.storybook/withSource.js +0 -97
- package/dist/index.umd.cjs +0 -238
- package/index.html +0 -21
- package/static/Logo.svg +0 -25
- package/static/docks/button.pdf +0 -147566
- package/static/favicon.ico +0 -0
- package/vite.config.js +0 -47
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
const Lt = ["top", "right", "bottom", "left"], ct = ["start", "end"], lt = /* @__PURE__ */ Lt.reduce((t, e) => t.concat(e, e + "-" + ct[0], e + "-" + ct[1]), []), nt = Math.min, $ = Math.max, G = Math.round, D = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), St = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, Pt = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function at(t, e, o) {
|
|
14
|
+
return $(t, nt(e, o));
|
|
15
|
+
}
|
|
16
|
+
function K(t, e) {
|
|
17
|
+
return typeof t == "function" ? t(e) : t;
|
|
18
|
+
}
|
|
19
|
+
function L(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function E(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function pt(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function gt(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
function Z(t) {
|
|
32
|
+
return ["top", "bottom"].includes(L(t)) ? "y" : "x";
|
|
33
|
+
}
|
|
34
|
+
function ht(t) {
|
|
35
|
+
return pt(Z(t));
|
|
36
|
+
}
|
|
37
|
+
function wt(t, e, o) {
|
|
38
|
+
o === void 0 && (o = !1);
|
|
39
|
+
const n = E(t), i = ht(t), r = gt(i);
|
|
40
|
+
let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
41
|
+
return e.reference[r] > e.floating[r] && (s = Q(s)), [s, Q(s)];
|
|
42
|
+
}
|
|
43
|
+
function Dt(t) {
|
|
44
|
+
const e = Q(t);
|
|
45
|
+
return [J(t), e, J(e)];
|
|
46
|
+
}
|
|
47
|
+
function J(t) {
|
|
48
|
+
return t.replace(/start|end/g, (e) => Pt[e]);
|
|
49
|
+
}
|
|
50
|
+
function kt(t, e, o) {
|
|
51
|
+
const n = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
52
|
+
switch (t) {
|
|
53
|
+
case "top":
|
|
54
|
+
case "bottom":
|
|
55
|
+
return o ? e ? i : n : e ? n : i;
|
|
56
|
+
case "left":
|
|
57
|
+
case "right":
|
|
58
|
+
return e ? r : s;
|
|
59
|
+
default:
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function Bt(t, e, o, n) {
|
|
64
|
+
const i = E(t);
|
|
65
|
+
let r = kt(L(t), o === "start", n);
|
|
66
|
+
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(J)))), r;
|
|
67
|
+
}
|
|
68
|
+
function Q(t) {
|
|
69
|
+
return t.replace(/left|right|bottom|top/g, (e) => St[e]);
|
|
70
|
+
}
|
|
71
|
+
function Ft(t) {
|
|
72
|
+
return {
|
|
73
|
+
top: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
left: 0,
|
|
77
|
+
...t
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function Nt(t) {
|
|
81
|
+
return typeof t != "number" ? Ft(t) : {
|
|
82
|
+
top: t,
|
|
83
|
+
right: t,
|
|
84
|
+
bottom: t,
|
|
85
|
+
left: t
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function U(t) {
|
|
89
|
+
return {
|
|
90
|
+
...t,
|
|
91
|
+
top: t.y,
|
|
92
|
+
left: t.x,
|
|
93
|
+
right: t.x + t.width,
|
|
94
|
+
bottom: t.y + t.height
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function ft(t, e, o) {
|
|
98
|
+
let {
|
|
99
|
+
reference: n,
|
|
100
|
+
floating: i
|
|
101
|
+
} = t;
|
|
102
|
+
const r = Z(e), s = ht(e), c = gt(s), l = L(e), a = r === "y", u = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
|
|
103
|
+
let d;
|
|
104
|
+
switch (l) {
|
|
105
|
+
case "top":
|
|
106
|
+
d = {
|
|
107
|
+
x: u,
|
|
108
|
+
y: n.y - i.height
|
|
109
|
+
};
|
|
110
|
+
break;
|
|
111
|
+
case "bottom":
|
|
112
|
+
d = {
|
|
113
|
+
x: u,
|
|
114
|
+
y: n.y + n.height
|
|
115
|
+
};
|
|
116
|
+
break;
|
|
117
|
+
case "right":
|
|
118
|
+
d = {
|
|
119
|
+
x: n.x + n.width,
|
|
120
|
+
y: f
|
|
121
|
+
};
|
|
122
|
+
break;
|
|
123
|
+
case "left":
|
|
124
|
+
d = {
|
|
125
|
+
x: n.x - i.width,
|
|
126
|
+
y: f
|
|
127
|
+
};
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
d = {
|
|
131
|
+
x: n.x,
|
|
132
|
+
y: n.y
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
switch (E(e)) {
|
|
136
|
+
case "start":
|
|
137
|
+
d[s] -= m * (o && a ? -1 : 1);
|
|
138
|
+
break;
|
|
139
|
+
case "end":
|
|
140
|
+
d[s] += m * (o && a ? -1 : 1);
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
return d;
|
|
144
|
+
}
|
|
145
|
+
const Vt = async (t, e, o) => {
|
|
146
|
+
const {
|
|
147
|
+
placement: n = "bottom",
|
|
148
|
+
strategy: i = "absolute",
|
|
149
|
+
middleware: r = [],
|
|
150
|
+
platform: s
|
|
151
|
+
} = o, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
152
|
+
let a = await s.getElementRects({
|
|
153
|
+
reference: t,
|
|
154
|
+
floating: e,
|
|
155
|
+
strategy: i
|
|
156
|
+
}), {
|
|
157
|
+
x: u,
|
|
158
|
+
y: f
|
|
159
|
+
} = ft(a, n, l), m = n, d = {}, p = 0;
|
|
160
|
+
for (let g = 0; g < c.length; g++) {
|
|
161
|
+
const {
|
|
162
|
+
name: h,
|
|
163
|
+
fn: w
|
|
164
|
+
} = c[g], {
|
|
165
|
+
x,
|
|
166
|
+
y,
|
|
167
|
+
data: b,
|
|
168
|
+
reset: v
|
|
169
|
+
} = await w({
|
|
170
|
+
x: u,
|
|
171
|
+
y: f,
|
|
172
|
+
initialPlacement: n,
|
|
173
|
+
placement: m,
|
|
174
|
+
strategy: i,
|
|
175
|
+
middlewareData: d,
|
|
176
|
+
rects: a,
|
|
177
|
+
platform: s,
|
|
178
|
+
elements: {
|
|
179
|
+
reference: t,
|
|
180
|
+
floating: e
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
u = x ?? u, f = y ?? f, d = {
|
|
184
|
+
...d,
|
|
185
|
+
[h]: {
|
|
186
|
+
...d[h],
|
|
187
|
+
...b
|
|
188
|
+
}
|
|
189
|
+
}, v && p <= 50 && (p++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
|
|
190
|
+
reference: t,
|
|
191
|
+
floating: e,
|
|
192
|
+
strategy: i
|
|
193
|
+
}) : v.rects), {
|
|
194
|
+
x: u,
|
|
195
|
+
y: f
|
|
196
|
+
} = ft(a, m, l)), g = -1);
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
x: u,
|
|
200
|
+
y: f,
|
|
201
|
+
placement: m,
|
|
202
|
+
strategy: i,
|
|
203
|
+
middlewareData: d
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
async function it(t, e) {
|
|
207
|
+
var o;
|
|
208
|
+
e === void 0 && (e = {});
|
|
209
|
+
const {
|
|
210
|
+
x: n,
|
|
211
|
+
y: i,
|
|
212
|
+
platform: r,
|
|
213
|
+
rects: s,
|
|
214
|
+
elements: c,
|
|
215
|
+
strategy: l
|
|
216
|
+
} = t, {
|
|
217
|
+
boundary: a = "clippingAncestors",
|
|
218
|
+
rootBoundary: u = "viewport",
|
|
219
|
+
elementContext: f = "floating",
|
|
220
|
+
altBoundary: m = !1,
|
|
221
|
+
padding: d = 0
|
|
222
|
+
} = K(e, t), p = Nt(d), h = c[m ? f === "floating" ? "reference" : "floating" : f], w = U(await r.getClippingRect({
|
|
223
|
+
element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
224
|
+
boundary: a,
|
|
225
|
+
rootBoundary: u,
|
|
226
|
+
strategy: l
|
|
227
|
+
})), x = f === "floating" ? {
|
|
228
|
+
...s.floating,
|
|
229
|
+
x: n,
|
|
230
|
+
y: i
|
|
231
|
+
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), b = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
|
|
232
|
+
x: 1,
|
|
233
|
+
y: 1
|
|
234
|
+
} : {
|
|
235
|
+
x: 1,
|
|
236
|
+
y: 1
|
|
237
|
+
}, v = U(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
238
|
+
elements: c,
|
|
239
|
+
rect: x,
|
|
240
|
+
offsetParent: y,
|
|
241
|
+
strategy: l
|
|
242
|
+
}) : x);
|
|
243
|
+
return {
|
|
244
|
+
top: (w.top - v.top + p.top) / b.y,
|
|
245
|
+
bottom: (v.bottom - w.bottom + p.bottom) / b.y,
|
|
246
|
+
left: (w.left - v.left + p.left) / b.x,
|
|
247
|
+
right: (v.right - w.right + p.right) / b.x
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
function Wt(t, e, o) {
|
|
251
|
+
return (t ? [...o.filter((i) => E(i) === t), ...o.filter((i) => E(i) !== t)] : o.filter((i) => L(i) === i)).filter((i) => t ? E(i) === t || (e ? J(i) !== i : !1) : !0);
|
|
252
|
+
}
|
|
253
|
+
const Mt = function(t) {
|
|
254
|
+
return t === void 0 && (t = {}), {
|
|
255
|
+
name: "autoPlacement",
|
|
256
|
+
options: t,
|
|
257
|
+
async fn(e) {
|
|
258
|
+
var o, n, i;
|
|
259
|
+
const {
|
|
260
|
+
rects: r,
|
|
261
|
+
middlewareData: s,
|
|
262
|
+
placement: c,
|
|
263
|
+
platform: l,
|
|
264
|
+
elements: a
|
|
265
|
+
} = e, {
|
|
266
|
+
crossAxis: u = !1,
|
|
267
|
+
alignment: f,
|
|
268
|
+
allowedPlacements: m = lt,
|
|
269
|
+
autoAlignment: d = !0,
|
|
270
|
+
...p
|
|
271
|
+
} = K(t, e), g = f !== void 0 || m === lt ? Wt(f || null, d, m) : m, h = await it(e, p), w = ((o = s.autoPlacement) == null ? void 0 : o.index) || 0, x = g[w];
|
|
272
|
+
if (x == null)
|
|
273
|
+
return {};
|
|
274
|
+
const y = wt(x, r, await (l.isRTL == null ? void 0 : l.isRTL(a.floating)));
|
|
275
|
+
if (c !== x)
|
|
276
|
+
return {
|
|
277
|
+
reset: {
|
|
278
|
+
placement: g[0]
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
const b = [h[L(x)], h[y[0]], h[y[1]]], v = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
|
|
282
|
+
placement: x,
|
|
283
|
+
overflows: b
|
|
284
|
+
}], N = g[w + 1];
|
|
285
|
+
if (N)
|
|
286
|
+
return {
|
|
287
|
+
data: {
|
|
288
|
+
index: w + 1,
|
|
289
|
+
overflows: v
|
|
290
|
+
},
|
|
291
|
+
reset: {
|
|
292
|
+
placement: N
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
const F = v.map((A) => {
|
|
296
|
+
const P = E(A.placement);
|
|
297
|
+
return [A.placement, P && u ? (
|
|
298
|
+
// Check along the mainAxis and main crossAxis side.
|
|
299
|
+
A.overflows.slice(0, 2).reduce((T, z) => T + z, 0)
|
|
300
|
+
) : (
|
|
301
|
+
// Check only the mainAxis.
|
|
302
|
+
A.overflows[0]
|
|
303
|
+
), A.overflows];
|
|
304
|
+
}).sort((A, P) => A[1] - P[1]), X = ((i = F.filter((A) => A[2].slice(
|
|
305
|
+
0,
|
|
306
|
+
// Aligned placements should not check their opposite crossAxis
|
|
307
|
+
// side.
|
|
308
|
+
E(A[0]) ? 2 : 3
|
|
309
|
+
).every((P) => P <= 0))[0]) == null ? void 0 : i[0]) || F[0][0];
|
|
310
|
+
return X !== c ? {
|
|
311
|
+
data: {
|
|
312
|
+
index: w + 1,
|
|
313
|
+
overflows: v
|
|
314
|
+
},
|
|
315
|
+
reset: {
|
|
316
|
+
placement: X
|
|
317
|
+
}
|
|
318
|
+
} : {};
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
}, $t = function(t) {
|
|
322
|
+
return t === void 0 && (t = {}), {
|
|
323
|
+
name: "flip",
|
|
324
|
+
options: t,
|
|
325
|
+
async fn(e) {
|
|
326
|
+
var o, n;
|
|
327
|
+
const {
|
|
328
|
+
placement: i,
|
|
329
|
+
middlewareData: r,
|
|
330
|
+
rects: s,
|
|
331
|
+
initialPlacement: c,
|
|
332
|
+
platform: l,
|
|
333
|
+
elements: a
|
|
334
|
+
} = e, {
|
|
335
|
+
mainAxis: u = !0,
|
|
336
|
+
crossAxis: f = !0,
|
|
337
|
+
fallbackPlacements: m,
|
|
338
|
+
fallbackStrategy: d = "bestFit",
|
|
339
|
+
fallbackAxisSideDirection: p = "none",
|
|
340
|
+
flipAlignment: g = !0,
|
|
341
|
+
...h
|
|
342
|
+
} = K(t, e);
|
|
343
|
+
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
344
|
+
return {};
|
|
345
|
+
const w = L(i), x = L(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), b = m || (x || !g ? [Q(c)] : Dt(c));
|
|
346
|
+
!m && p !== "none" && b.push(...Bt(c, g, p, y));
|
|
347
|
+
const v = [c, ...b], N = await it(e, h), F = [];
|
|
348
|
+
let V = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
349
|
+
if (u && F.push(N[w]), f) {
|
|
350
|
+
const T = wt(i, s, y);
|
|
351
|
+
F.push(N[T[0]], N[T[1]]);
|
|
352
|
+
}
|
|
353
|
+
if (V = [...V, {
|
|
354
|
+
placement: i,
|
|
355
|
+
overflows: F
|
|
356
|
+
}], !F.every((T) => T <= 0)) {
|
|
357
|
+
var X, A;
|
|
358
|
+
const T = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, z = v[T];
|
|
359
|
+
if (z)
|
|
360
|
+
return {
|
|
361
|
+
data: {
|
|
362
|
+
index: T,
|
|
363
|
+
overflows: V
|
|
364
|
+
},
|
|
365
|
+
reset: {
|
|
366
|
+
placement: z
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
let j = (A = V.filter((W) => W.overflows[0] <= 0).sort((W, M) => W.overflows[1] - M.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
370
|
+
if (!j)
|
|
371
|
+
switch (d) {
|
|
372
|
+
case "bestFit": {
|
|
373
|
+
var P;
|
|
374
|
+
const W = (P = V.map((M) => [M.placement, M.overflows.filter((Y) => Y > 0).reduce((Y, Et) => Y + Et, 0)]).sort((M, Y) => M[1] - Y[1])[0]) == null ? void 0 : P[0];
|
|
375
|
+
W && (j = W);
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
case "initialPlacement":
|
|
379
|
+
j = c;
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
if (i !== j)
|
|
383
|
+
return {
|
|
384
|
+
reset: {
|
|
385
|
+
placement: j
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
return {};
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
async function Ht(t, e) {
|
|
394
|
+
const {
|
|
395
|
+
placement: o,
|
|
396
|
+
platform: n,
|
|
397
|
+
elements: i
|
|
398
|
+
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = L(o), c = E(o), l = Z(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, u = r && l ? -1 : 1, f = K(e, t);
|
|
399
|
+
let {
|
|
400
|
+
mainAxis: m,
|
|
401
|
+
crossAxis: d,
|
|
402
|
+
alignmentAxis: p
|
|
403
|
+
} = typeof f == "number" ? {
|
|
404
|
+
mainAxis: f,
|
|
405
|
+
crossAxis: 0,
|
|
406
|
+
alignmentAxis: null
|
|
407
|
+
} : {
|
|
408
|
+
mainAxis: 0,
|
|
409
|
+
crossAxis: 0,
|
|
410
|
+
alignmentAxis: null,
|
|
411
|
+
...f
|
|
412
|
+
};
|
|
413
|
+
return c && typeof p == "number" && (d = c === "end" ? p * -1 : p), l ? {
|
|
414
|
+
x: d * u,
|
|
415
|
+
y: m * a
|
|
416
|
+
} : {
|
|
417
|
+
x: m * a,
|
|
418
|
+
y: d * u
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
const se = function(t) {
|
|
422
|
+
return {
|
|
423
|
+
name: "offset",
|
|
424
|
+
options: t,
|
|
425
|
+
async fn(e) {
|
|
426
|
+
var o, n;
|
|
427
|
+
const {
|
|
428
|
+
x: i,
|
|
429
|
+
y: r,
|
|
430
|
+
placement: s,
|
|
431
|
+
middlewareData: c
|
|
432
|
+
} = e, l = await Ht(e, t);
|
|
433
|
+
return s === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
|
|
434
|
+
x: i + l.x,
|
|
435
|
+
y: r + l.y,
|
|
436
|
+
data: {
|
|
437
|
+
...l,
|
|
438
|
+
placement: s
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
}, _t = function(t) {
|
|
444
|
+
return t === void 0 && (t = {}), {
|
|
445
|
+
name: "shift",
|
|
446
|
+
options: t,
|
|
447
|
+
async fn(e) {
|
|
448
|
+
const {
|
|
449
|
+
x: o,
|
|
450
|
+
y: n,
|
|
451
|
+
placement: i
|
|
452
|
+
} = e, {
|
|
453
|
+
mainAxis: r = !0,
|
|
454
|
+
crossAxis: s = !1,
|
|
455
|
+
limiter: c = {
|
|
456
|
+
fn: (h) => {
|
|
457
|
+
let {
|
|
458
|
+
x: w,
|
|
459
|
+
y: x
|
|
460
|
+
} = h;
|
|
461
|
+
return {
|
|
462
|
+
x: w,
|
|
463
|
+
y: x
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
...l
|
|
468
|
+
} = K(t, e), a = {
|
|
469
|
+
x: o,
|
|
470
|
+
y: n
|
|
471
|
+
}, u = await it(e, l), f = Z(L(i)), m = pt(f);
|
|
472
|
+
let d = a[m], p = a[f];
|
|
473
|
+
if (r) {
|
|
474
|
+
const h = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", x = d + u[h], y = d - u[w];
|
|
475
|
+
d = at(x, d, y);
|
|
476
|
+
}
|
|
477
|
+
if (s) {
|
|
478
|
+
const h = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", x = p + u[h], y = p - u[w];
|
|
479
|
+
p = at(x, p, y);
|
|
480
|
+
}
|
|
481
|
+
const g = c.fn({
|
|
482
|
+
...e,
|
|
483
|
+
[m]: d,
|
|
484
|
+
[f]: p
|
|
485
|
+
});
|
|
486
|
+
return {
|
|
487
|
+
...g,
|
|
488
|
+
data: {
|
|
489
|
+
x: g.x - o,
|
|
490
|
+
y: g.y - n
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
function k(t) {
|
|
497
|
+
return xt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
498
|
+
}
|
|
499
|
+
function C(t) {
|
|
500
|
+
var e;
|
|
501
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
502
|
+
}
|
|
503
|
+
function B(t) {
|
|
504
|
+
var e;
|
|
505
|
+
return (e = (xt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
506
|
+
}
|
|
507
|
+
function xt(t) {
|
|
508
|
+
return t instanceof Node || t instanceof C(t).Node;
|
|
509
|
+
}
|
|
510
|
+
function S(t) {
|
|
511
|
+
return t instanceof Element || t instanceof C(t).Element;
|
|
512
|
+
}
|
|
513
|
+
function R(t) {
|
|
514
|
+
return t instanceof HTMLElement || t instanceof C(t).HTMLElement;
|
|
515
|
+
}
|
|
516
|
+
function ut(t) {
|
|
517
|
+
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
|
|
518
|
+
}
|
|
519
|
+
function q(t) {
|
|
520
|
+
const {
|
|
521
|
+
overflow: e,
|
|
522
|
+
overflowX: o,
|
|
523
|
+
overflowY: n,
|
|
524
|
+
display: i
|
|
525
|
+
} = O(t);
|
|
526
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
|
|
527
|
+
}
|
|
528
|
+
function Xt(t) {
|
|
529
|
+
return ["table", "td", "th"].includes(k(t));
|
|
530
|
+
}
|
|
531
|
+
function st(t) {
|
|
532
|
+
const e = rt(), o = O(t);
|
|
533
|
+
return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
|
|
534
|
+
}
|
|
535
|
+
function jt(t) {
|
|
536
|
+
let e = _(t);
|
|
537
|
+
for (; R(e) && !tt(e); ) {
|
|
538
|
+
if (st(e))
|
|
539
|
+
return e;
|
|
540
|
+
e = _(e);
|
|
541
|
+
}
|
|
542
|
+
return null;
|
|
543
|
+
}
|
|
544
|
+
function rt() {
|
|
545
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
546
|
+
}
|
|
547
|
+
function tt(t) {
|
|
548
|
+
return ["html", "body", "#document"].includes(k(t));
|
|
549
|
+
}
|
|
550
|
+
function O(t) {
|
|
551
|
+
return C(t).getComputedStyle(t);
|
|
552
|
+
}
|
|
553
|
+
function et(t) {
|
|
554
|
+
return S(t) ? {
|
|
555
|
+
scrollLeft: t.scrollLeft,
|
|
556
|
+
scrollTop: t.scrollTop
|
|
557
|
+
} : {
|
|
558
|
+
scrollLeft: t.pageXOffset,
|
|
559
|
+
scrollTop: t.pageYOffset
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
function _(t) {
|
|
563
|
+
if (k(t) === "html")
|
|
564
|
+
return t;
|
|
565
|
+
const e = (
|
|
566
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
567
|
+
t.assignedSlot || // DOM Element detected.
|
|
568
|
+
t.parentNode || // ShadowRoot detected.
|
|
569
|
+
ut(t) && t.host || // Fallback.
|
|
570
|
+
B(t)
|
|
571
|
+
);
|
|
572
|
+
return ut(e) ? e.host : e;
|
|
573
|
+
}
|
|
574
|
+
function yt(t) {
|
|
575
|
+
const e = _(t);
|
|
576
|
+
return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : R(e) && q(e) ? e : yt(e);
|
|
577
|
+
}
|
|
578
|
+
function ot(t, e, o) {
|
|
579
|
+
var n;
|
|
580
|
+
e === void 0 && (e = []), o === void 0 && (o = !0);
|
|
581
|
+
const i = yt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
|
|
582
|
+
return r ? e.concat(s, s.visualViewport || [], q(i) ? i : [], s.frameElement && o ? ot(s.frameElement) : []) : e.concat(i, ot(i, [], o));
|
|
583
|
+
}
|
|
584
|
+
function vt(t) {
|
|
585
|
+
const e = O(t);
|
|
586
|
+
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
587
|
+
const i = R(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = G(o) !== r || G(n) !== s;
|
|
588
|
+
return c && (o = r, n = s), {
|
|
589
|
+
width: o,
|
|
590
|
+
height: n,
|
|
591
|
+
$: c
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
function bt(t) {
|
|
595
|
+
return S(t) ? t : t.contextElement;
|
|
596
|
+
}
|
|
597
|
+
function H(t) {
|
|
598
|
+
const e = bt(t);
|
|
599
|
+
if (!R(e))
|
|
600
|
+
return D(1);
|
|
601
|
+
const o = e.getBoundingClientRect(), {
|
|
602
|
+
width: n,
|
|
603
|
+
height: i,
|
|
604
|
+
$: r
|
|
605
|
+
} = vt(e);
|
|
606
|
+
let s = (r ? G(o.width) : o.width) / n, c = (r ? G(o.height) : o.height) / i;
|
|
607
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
608
|
+
x: s,
|
|
609
|
+
y: c
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
const Yt = /* @__PURE__ */ D(0);
|
|
613
|
+
function At(t) {
|
|
614
|
+
const e = C(t);
|
|
615
|
+
return !rt() || !e.visualViewport ? Yt : {
|
|
616
|
+
x: e.visualViewport.offsetLeft,
|
|
617
|
+
y: e.visualViewport.offsetTop
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
function It(t, e, o) {
|
|
621
|
+
return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
|
|
622
|
+
}
|
|
623
|
+
function I(t, e, o, n) {
|
|
624
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
625
|
+
const i = t.getBoundingClientRect(), r = bt(t);
|
|
626
|
+
let s = D(1);
|
|
627
|
+
e && (n ? S(n) && (s = H(n)) : s = H(t));
|
|
628
|
+
const c = It(r, o, n) ? At(r) : D(0);
|
|
629
|
+
let l = (i.left + c.x) / s.x, a = (i.top + c.y) / s.y, u = i.width / s.x, f = i.height / s.y;
|
|
630
|
+
if (r) {
|
|
631
|
+
const m = C(r), d = n && S(n) ? C(n) : n;
|
|
632
|
+
let p = m, g = p.frameElement;
|
|
633
|
+
for (; g && n && d !== p; ) {
|
|
634
|
+
const h = H(g), w = g.getBoundingClientRect(), x = O(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
|
|
635
|
+
l *= h.x, a *= h.y, u *= h.x, f *= h.y, l += y, a += b, p = C(g), g = p.frameElement;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
return U({
|
|
639
|
+
width: u,
|
|
640
|
+
height: f,
|
|
641
|
+
x: l,
|
|
642
|
+
y: a
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
const Kt = [":popover-open", ":modal"];
|
|
646
|
+
function Ct(t) {
|
|
647
|
+
return Kt.some((e) => {
|
|
648
|
+
try {
|
|
649
|
+
return t.matches(e);
|
|
650
|
+
} catch {
|
|
651
|
+
return !1;
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
function qt(t) {
|
|
656
|
+
let {
|
|
657
|
+
elements: e,
|
|
658
|
+
rect: o,
|
|
659
|
+
offsetParent: n,
|
|
660
|
+
strategy: i
|
|
661
|
+
} = t;
|
|
662
|
+
const r = i === "fixed", s = B(n), c = e ? Ct(e.floating) : !1;
|
|
663
|
+
if (n === s || c && r)
|
|
664
|
+
return o;
|
|
665
|
+
let l = {
|
|
666
|
+
scrollLeft: 0,
|
|
667
|
+
scrollTop: 0
|
|
668
|
+
}, a = D(1);
|
|
669
|
+
const u = D(0), f = R(n);
|
|
670
|
+
if ((f || !f && !r) && ((k(n) !== "body" || q(s)) && (l = et(n)), R(n))) {
|
|
671
|
+
const m = I(n);
|
|
672
|
+
a = H(n), u.x = m.x + n.clientLeft, u.y = m.y + n.clientTop;
|
|
673
|
+
}
|
|
674
|
+
return {
|
|
675
|
+
width: o.width * a.x,
|
|
676
|
+
height: o.height * a.y,
|
|
677
|
+
x: o.x * a.x - l.scrollLeft * a.x + u.x,
|
|
678
|
+
y: o.y * a.y - l.scrollTop * a.y + u.y
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function zt(t) {
|
|
682
|
+
return Array.from(t.getClientRects());
|
|
683
|
+
}
|
|
684
|
+
function Ot(t) {
|
|
685
|
+
return I(B(t)).left + et(t).scrollLeft;
|
|
686
|
+
}
|
|
687
|
+
function Gt(t) {
|
|
688
|
+
const e = B(t), o = et(t), n = t.ownerDocument.body, i = $(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = $(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
689
|
+
let s = -o.scrollLeft + Ot(t);
|
|
690
|
+
const c = -o.scrollTop;
|
|
691
|
+
return O(n).direction === "rtl" && (s += $(e.clientWidth, n.clientWidth) - i), {
|
|
692
|
+
width: i,
|
|
693
|
+
height: r,
|
|
694
|
+
x: s,
|
|
695
|
+
y: c
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function Jt(t, e) {
|
|
699
|
+
const o = C(t), n = B(t), i = o.visualViewport;
|
|
700
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
701
|
+
if (i) {
|
|
702
|
+
r = i.width, s = i.height;
|
|
703
|
+
const a = rt();
|
|
704
|
+
(!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
705
|
+
}
|
|
706
|
+
return {
|
|
707
|
+
width: r,
|
|
708
|
+
height: s,
|
|
709
|
+
x: c,
|
|
710
|
+
y: l
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
function Qt(t, e) {
|
|
714
|
+
const o = I(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = R(t) ? H(t) : D(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, a = n * r.y;
|
|
715
|
+
return {
|
|
716
|
+
width: s,
|
|
717
|
+
height: c,
|
|
718
|
+
x: l,
|
|
719
|
+
y: a
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
function dt(t, e, o) {
|
|
723
|
+
let n;
|
|
724
|
+
if (e === "viewport")
|
|
725
|
+
n = Jt(t, o);
|
|
726
|
+
else if (e === "document")
|
|
727
|
+
n = Gt(B(t));
|
|
728
|
+
else if (S(e))
|
|
729
|
+
n = Qt(e, o);
|
|
730
|
+
else {
|
|
731
|
+
const i = At(t);
|
|
732
|
+
n = {
|
|
733
|
+
...e,
|
|
734
|
+
x: e.x - i.x,
|
|
735
|
+
y: e.y - i.y
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
return U(n);
|
|
739
|
+
}
|
|
740
|
+
function Rt(t, e) {
|
|
741
|
+
const o = _(t);
|
|
742
|
+
return o === e || !S(o) || tt(o) ? !1 : O(o).position === "fixed" || Rt(o, e);
|
|
743
|
+
}
|
|
744
|
+
function Ut(t, e) {
|
|
745
|
+
const o = e.get(t);
|
|
746
|
+
if (o)
|
|
747
|
+
return o;
|
|
748
|
+
let n = ot(t, [], !1).filter((c) => S(c) && k(c) !== "body"), i = null;
|
|
749
|
+
const r = O(t).position === "fixed";
|
|
750
|
+
let s = r ? _(t) : t;
|
|
751
|
+
for (; S(s) && !tt(s); ) {
|
|
752
|
+
const c = O(s), l = st(s);
|
|
753
|
+
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || q(s) && !l && Rt(t, s)) ? n = n.filter((u) => u !== s) : i = c, s = _(s);
|
|
754
|
+
}
|
|
755
|
+
return e.set(t, n), n;
|
|
756
|
+
}
|
|
757
|
+
function Zt(t) {
|
|
758
|
+
let {
|
|
759
|
+
element: e,
|
|
760
|
+
boundary: o,
|
|
761
|
+
rootBoundary: n,
|
|
762
|
+
strategy: i
|
|
763
|
+
} = t;
|
|
764
|
+
const s = [...o === "clippingAncestors" ? Ut(e, this._c) : [].concat(o), n], c = s[0], l = s.reduce((a, u) => {
|
|
765
|
+
const f = dt(e, u, i);
|
|
766
|
+
return a.top = $(f.top, a.top), a.right = nt(f.right, a.right), a.bottom = nt(f.bottom, a.bottom), a.left = $(f.left, a.left), a;
|
|
767
|
+
}, dt(e, c, i));
|
|
768
|
+
return {
|
|
769
|
+
width: l.right - l.left,
|
|
770
|
+
height: l.bottom - l.top,
|
|
771
|
+
x: l.left,
|
|
772
|
+
y: l.top
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
function te(t) {
|
|
776
|
+
const {
|
|
777
|
+
width: e,
|
|
778
|
+
height: o
|
|
779
|
+
} = vt(t);
|
|
780
|
+
return {
|
|
781
|
+
width: e,
|
|
782
|
+
height: o
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function ee(t, e, o) {
|
|
786
|
+
const n = R(e), i = B(e), r = o === "fixed", s = I(t, !0, r, e);
|
|
787
|
+
let c = {
|
|
788
|
+
scrollLeft: 0,
|
|
789
|
+
scrollTop: 0
|
|
790
|
+
};
|
|
791
|
+
const l = D(0);
|
|
792
|
+
if (n || !n && !r)
|
|
793
|
+
if ((k(e) !== "body" || q(i)) && (c = et(e)), n) {
|
|
794
|
+
const f = I(e, !0, r, e);
|
|
795
|
+
l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
|
|
796
|
+
} else i && (l.x = Ot(i));
|
|
797
|
+
const a = s.left + c.scrollLeft - l.x, u = s.top + c.scrollTop - l.y;
|
|
798
|
+
return {
|
|
799
|
+
x: a,
|
|
800
|
+
y: u,
|
|
801
|
+
width: s.width,
|
|
802
|
+
height: s.height
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
function mt(t, e) {
|
|
806
|
+
return !R(t) || O(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
807
|
+
}
|
|
808
|
+
function Tt(t, e) {
|
|
809
|
+
const o = C(t);
|
|
810
|
+
if (!R(t) || Ct(t))
|
|
811
|
+
return o;
|
|
812
|
+
let n = mt(t, e);
|
|
813
|
+
for (; n && Xt(n) && O(n).position === "static"; )
|
|
814
|
+
n = mt(n, e);
|
|
815
|
+
return n && (k(n) === "html" || k(n) === "body" && O(n).position === "static" && !st(n)) ? o : n || jt(t) || o;
|
|
816
|
+
}
|
|
817
|
+
const ne = async function(t) {
|
|
818
|
+
const e = this.getOffsetParent || Tt, o = this.getDimensions;
|
|
819
|
+
return {
|
|
820
|
+
reference: ee(t.reference, await e(t.floating), t.strategy),
|
|
821
|
+
floating: {
|
|
822
|
+
x: 0,
|
|
823
|
+
y: 0,
|
|
824
|
+
...await o(t.floating)
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
function oe(t) {
|
|
829
|
+
return O(t).direction === "rtl";
|
|
830
|
+
}
|
|
831
|
+
const ie = {
|
|
832
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qt,
|
|
833
|
+
getDocumentElement: B,
|
|
834
|
+
getClippingRect: Zt,
|
|
835
|
+
getOffsetParent: Tt,
|
|
836
|
+
getElementRects: ne,
|
|
837
|
+
getClientRects: zt,
|
|
838
|
+
getDimensions: te,
|
|
839
|
+
getScale: H,
|
|
840
|
+
isElement: S,
|
|
841
|
+
isRTL: oe
|
|
842
|
+
}, re = Mt, ce = _t, le = $t, ae = (t, e, o) => {
|
|
843
|
+
const n = /* @__PURE__ */ new Map(), i = {
|
|
844
|
+
platform: ie,
|
|
845
|
+
...o
|
|
846
|
+
}, r = {
|
|
847
|
+
...i.platform,
|
|
848
|
+
_c: n
|
|
849
|
+
};
|
|
850
|
+
return Vt(t, e, {
|
|
851
|
+
...i,
|
|
852
|
+
platform: r
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
export {
|
|
856
|
+
re as a,
|
|
857
|
+
ae as c,
|
|
858
|
+
le as f,
|
|
859
|
+
se as o,
|
|
860
|
+
ce as s
|
|
861
|
+
};
|