@arcadeai/design-system 0.7.3 → 0.7.5
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/components/index.js +109 -108
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/avatar.js +200 -82
- package/dist/components/ui/atoms/breadcrumb.js +25 -37
- package/dist/components/ui/atoms/chart.js +115 -10378
- package/dist/components/ui/atoms/command.js +158 -168
- package/dist/components/ui/atoms/dialog.js +30 -29
- package/dist/components/ui/atoms/dropdown-menu.js +153 -162
- package/dist/components/ui/atoms/form.js +57 -250
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/index.js +109 -108
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/resizable.js +359 -372
- package/dist/components/ui/atoms/select.js +101 -110
- package/dist/components/ui/atoms/sheet.js +24 -23
- package/dist/components/ui/atoms/sidebar.js +80 -89
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/index.js +109 -108
- package/dist/{index-f0YS5Ufh.js → index-PlrlSrPo.js} +266 -259
- package/dist/{index-DLfXSskr.js → index-toVHZ337.js} +49 -61
- package/dist/main.js +109 -108
- package/package.json +4 -3
- package/dist/check-B5h1DvDs.js +0 -11
- package/dist/chevron-down-DmZMdOiC.js +0 -11
- package/dist/chevron-right-BYYHEJjK.js +0 -11
- package/dist/createLucideIcon-XRdN60yz.js +0 -94
- package/dist/index-CJFGOBPb.js +0 -122
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as R from "react";
|
|
2
|
-
import { useLayoutEffect as
|
|
3
|
-
import * as
|
|
2
|
+
import { useLayoutEffect as Ae } from "react";
|
|
3
|
+
import * as be from "react-dom";
|
|
4
4
|
import { P as At } from "./index-CpDnqHCm.js";
|
|
5
5
|
import { jsx as X } from "react/jsx-runtime";
|
|
6
|
-
import { u as
|
|
7
|
-
import { c as
|
|
8
|
-
import { u as
|
|
6
|
+
import { u as Yt } from "./index-5Bhkapwi.js";
|
|
7
|
+
import { c as Re } from "./index-DFZozV_h.js";
|
|
8
|
+
import { u as Pe } from "./index-0ioNhtNM.js";
|
|
9
9
|
import { u as $t } from "./index-CCKe-Mpx.js";
|
|
10
|
-
import { u as
|
|
11
|
-
const
|
|
10
|
+
import { u as Oe } from "./index-BGQepRFJ.js";
|
|
11
|
+
const Ce = ["top", "right", "bottom", "left"], Z = Math.min, H = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
|
|
12
12
|
x: t,
|
|
13
13
|
y: t
|
|
14
|
-
}),
|
|
14
|
+
}), Se = {
|
|
15
15
|
left: "right",
|
|
16
16
|
right: "left",
|
|
17
17
|
bottom: "top",
|
|
18
18
|
top: "bottom"
|
|
19
|
-
},
|
|
19
|
+
}, Ee = {
|
|
20
20
|
start: "end",
|
|
21
21
|
end: "start"
|
|
22
22
|
};
|
|
@@ -38,47 +38,48 @@ function bt(t) {
|
|
|
38
38
|
function Rt(t) {
|
|
39
39
|
return t === "y" ? "height" : "width";
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const De = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
42
|
+
function z(t) {
|
|
43
|
+
return De.has(U(t)) ? "y" : "x";
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
return bt(
|
|
45
|
+
function Pt(t) {
|
|
46
|
+
return bt(z(t));
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function Le(t, e, n) {
|
|
48
49
|
n === void 0 && (n = !1);
|
|
49
|
-
const o = tt(t), i =
|
|
50
|
+
const o = tt(t), i = Pt(t), r = Rt(i);
|
|
50
51
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
51
52
|
return e.reference[r] > e.floating[r] && (s = ft(s)), [s, ft(s)];
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function Te(t) {
|
|
54
55
|
const e = ft(t);
|
|
55
56
|
return [yt(t), e, yt(e)];
|
|
56
57
|
}
|
|
57
58
|
function yt(t) {
|
|
58
|
-
return t.replace(/start|end/g, (e) =>
|
|
59
|
+
return t.replace(/start|end/g, (e) => Ee[e]);
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
const kt = ["left", "right"], Nt = ["right", "left"], Me = ["top", "bottom"], $e = ["bottom", "top"];
|
|
62
|
+
function ke(t, e, n) {
|
|
62
63
|
switch (t) {
|
|
63
64
|
case "top":
|
|
64
65
|
case "bottom":
|
|
65
|
-
return n ? e ?
|
|
66
|
+
return n ? e ? Nt : kt : e ? kt : Nt;
|
|
66
67
|
case "left":
|
|
67
68
|
case "right":
|
|
68
|
-
return e ?
|
|
69
|
+
return e ? Me : $e;
|
|
69
70
|
default:
|
|
70
71
|
return [];
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function Ne(t, e, n, o) {
|
|
74
75
|
const i = tt(t);
|
|
75
|
-
let r =
|
|
76
|
+
let r = ke(U(t), n === "start", o);
|
|
76
77
|
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(yt)))), r;
|
|
77
78
|
}
|
|
78
79
|
function ft(t) {
|
|
79
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
80
|
+
return t.replace(/left|right|bottom|top/g, (e) => Se[e]);
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function Fe(t) {
|
|
82
83
|
return {
|
|
83
84
|
top: 0,
|
|
84
85
|
right: 0,
|
|
@@ -87,8 +88,8 @@ function Le(t) {
|
|
|
87
88
|
...t
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
return typeof t != "number" ?
|
|
91
|
+
function jt(t) {
|
|
92
|
+
return typeof t != "number" ? Fe(t) : {
|
|
92
93
|
top: t,
|
|
93
94
|
right: t,
|
|
94
95
|
bottom: t,
|
|
@@ -113,12 +114,12 @@ function ut(t) {
|
|
|
113
114
|
y: n
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
+
function Ft(t, e, n) {
|
|
117
118
|
let {
|
|
118
119
|
reference: o,
|
|
119
120
|
floating: i
|
|
120
121
|
} = t;
|
|
121
|
-
const r =
|
|
122
|
+
const r = z(e), s = Pt(e), c = Rt(s), a = U(e), l = r === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[c] / 2 - i[c] / 2;
|
|
122
123
|
let d;
|
|
123
124
|
switch (a) {
|
|
124
125
|
case "top":
|
|
@@ -161,7 +162,7 @@ function kt(t, e, n) {
|
|
|
161
162
|
}
|
|
162
163
|
return d;
|
|
163
164
|
}
|
|
164
|
-
const
|
|
165
|
+
const He = async (t, e, n) => {
|
|
165
166
|
const {
|
|
166
167
|
placement: o = "bottom",
|
|
167
168
|
strategy: i = "absolute",
|
|
@@ -175,7 +176,7 @@ const Te = async (t, e, n) => {
|
|
|
175
176
|
}), {
|
|
176
177
|
x: f,
|
|
177
178
|
y: u
|
|
178
|
-
} =
|
|
179
|
+
} = Ft(l, o, a), p = o, d = {}, m = 0;
|
|
179
180
|
for (let h = 0; h < c.length; h++) {
|
|
180
181
|
const {
|
|
181
182
|
name: w,
|
|
@@ -212,7 +213,7 @@ const Te = async (t, e, n) => {
|
|
|
212
213
|
}) : v.rects), {
|
|
213
214
|
x: f,
|
|
214
215
|
y: u
|
|
215
|
-
} =
|
|
216
|
+
} = Ft(l, p, a)), h = -1);
|
|
216
217
|
}
|
|
217
218
|
return {
|
|
218
219
|
x: f,
|
|
@@ -238,7 +239,7 @@ async function ot(t, e) {
|
|
|
238
239
|
elementContext: u = "floating",
|
|
239
240
|
altBoundary: p = !1,
|
|
240
241
|
padding: d = 0
|
|
241
|
-
} = q(e, t), m =
|
|
242
|
+
} = q(e, t), m = jt(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = ut(await r.getClippingRect({
|
|
242
243
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
243
244
|
boundary: l,
|
|
244
245
|
rootBoundary: f,
|
|
@@ -267,7 +268,7 @@ async function ot(t, e) {
|
|
|
267
268
|
right: (v.right - g.right + m.right) / y.x
|
|
268
269
|
};
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
+
const We = (t) => ({
|
|
271
272
|
name: "arrow",
|
|
272
273
|
options: t,
|
|
273
274
|
async fn(e) {
|
|
@@ -285,18 +286,18 @@ const Me = (t) => ({
|
|
|
285
286
|
} = q(t, e) || {};
|
|
286
287
|
if (l == null)
|
|
287
288
|
return {};
|
|
288
|
-
const u =
|
|
289
|
+
const u = jt(f), p = {
|
|
289
290
|
x: n,
|
|
290
291
|
y: o
|
|
291
|
-
}, d =
|
|
292
|
-
let
|
|
293
|
-
(!
|
|
294
|
-
const T = y / 2 - v / 2,
|
|
292
|
+
}, d = Pt(i), m = Rt(d), h = await s.getDimensions(l), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", A = w ? "clientHeight" : "clientWidth", y = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
293
|
+
let P = O ? O[A] : 0;
|
|
294
|
+
(!P || !await (s.isElement == null ? void 0 : s.isElement(O))) && (P = c.floating[A] || r.floating[m]);
|
|
295
|
+
const T = y / 2 - v / 2, N = P / 2 - h[m] / 2 - 1, L = Z(u[g], N), $ = Z(u[x], N), k = L, S = P - h[m] - $, C = P / 2 - h[m] / 2 + T, F = xt(k, C, S), E = !a.arrow && tt(i) != null && C !== F && r.reference[m] / 2 - (C < k ? L : $) - h[m] / 2 < 0, D = E ? C < k ? C - k : C - S : 0;
|
|
295
296
|
return {
|
|
296
297
|
[d]: p[d] + D,
|
|
297
298
|
data: {
|
|
298
|
-
[d]:
|
|
299
|
-
centerOffset:
|
|
299
|
+
[d]: F,
|
|
300
|
+
centerOffset: C - F - D,
|
|
300
301
|
...E && {
|
|
301
302
|
alignmentOffset: D
|
|
302
303
|
}
|
|
@@ -304,7 +305,7 @@ const Me = (t) => ({
|
|
|
304
305
|
reset: E
|
|
305
306
|
};
|
|
306
307
|
}
|
|
307
|
-
}),
|
|
308
|
+
}), _e = function(t) {
|
|
308
309
|
return t === void 0 && (t = {}), {
|
|
309
310
|
name: "flip",
|
|
310
311
|
options: t,
|
|
@@ -328,30 +329,30 @@ const Me = (t) => ({
|
|
|
328
329
|
} = q(t, e);
|
|
329
330
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
330
331
|
return {};
|
|
331
|
-
const g = U(i), x =
|
|
332
|
-
!p && O && v.push(...
|
|
333
|
-
const
|
|
332
|
+
const g = U(i), x = z(c), A = U(c) === c, y = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = p || (A || !h ? [ft(c)] : Te(c)), O = m !== "none";
|
|
333
|
+
!p && O && v.push(...Ne(c, h, m, y));
|
|
334
|
+
const P = [c, ...v], T = await ot(e, w), N = [];
|
|
334
335
|
let L = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
335
|
-
if (f &&
|
|
336
|
-
const
|
|
337
|
-
|
|
336
|
+
if (f && N.push(T[g]), u) {
|
|
337
|
+
const C = Le(i, s, y);
|
|
338
|
+
N.push(T[C[0]], T[C[1]]);
|
|
338
339
|
}
|
|
339
340
|
if (L = [...L, {
|
|
340
341
|
placement: i,
|
|
341
|
-
overflows:
|
|
342
|
-
}], !
|
|
342
|
+
overflows: N
|
|
343
|
+
}], !N.every((C) => C <= 0)) {
|
|
343
344
|
var $, k;
|
|
344
|
-
const
|
|
345
|
-
if (
|
|
345
|
+
const C = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1, F = P[C];
|
|
346
|
+
if (F && (!(u === "alignment" ? x !== z(F) : !1) || // We leave the current main axis only if every placement on that axis
|
|
346
347
|
// overflows the main axis.
|
|
347
|
-
L.every((b) => b.overflows[0] > 0 &&
|
|
348
|
+
L.every((b) => b.overflows[0] > 0 && z(b.placement) === x)))
|
|
348
349
|
return {
|
|
349
350
|
data: {
|
|
350
|
-
index:
|
|
351
|
+
index: C,
|
|
351
352
|
overflows: L
|
|
352
353
|
},
|
|
353
354
|
reset: {
|
|
354
|
-
placement:
|
|
355
|
+
placement: F
|
|
355
356
|
}
|
|
356
357
|
};
|
|
357
358
|
let E = (k = L.filter((D) => D.overflows[0] <= 0).sort((D, b) => D.overflows[1] - b.overflows[1])[0]) == null ? void 0 : k.placement;
|
|
@@ -361,13 +362,13 @@ const Me = (t) => ({
|
|
|
361
362
|
var S;
|
|
362
363
|
const D = (S = L.filter((b) => {
|
|
363
364
|
if (O) {
|
|
364
|
-
const M =
|
|
365
|
+
const M = z(b.placement);
|
|
365
366
|
return M === x || // Create a bias to the `y` side axis due to horizontal
|
|
366
367
|
// reading directions favoring greater width.
|
|
367
368
|
M === "y";
|
|
368
369
|
}
|
|
369
370
|
return !0;
|
|
370
|
-
}).map((b) => [b.placement, b.overflows.filter((M) => M > 0).reduce((M,
|
|
371
|
+
}).map((b) => [b.placement, b.overflows.filter((M) => M > 0).reduce((M, V) => M + V, 0)]).sort((b, M) => b[1] - M[1])[0]) == null ? void 0 : S[0];
|
|
371
372
|
D && (E = D);
|
|
372
373
|
break;
|
|
373
374
|
}
|
|
@@ -386,7 +387,7 @@ const Me = (t) => ({
|
|
|
386
387
|
}
|
|
387
388
|
};
|
|
388
389
|
};
|
|
389
|
-
function
|
|
390
|
+
function Ht(t, e) {
|
|
390
391
|
return {
|
|
391
392
|
top: t.top - e.height,
|
|
392
393
|
right: t.right - e.width,
|
|
@@ -394,10 +395,10 @@ function Ft(t, e) {
|
|
|
394
395
|
left: t.left - e.width
|
|
395
396
|
};
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
-
return
|
|
398
|
+
function Wt(t) {
|
|
399
|
+
return Ce.some((e) => t[e] >= 0);
|
|
399
400
|
}
|
|
400
|
-
const
|
|
401
|
+
const Be = function(t) {
|
|
401
402
|
return t === void 0 && (t = {}), {
|
|
402
403
|
name: "hide",
|
|
403
404
|
options: t,
|
|
@@ -413,11 +414,11 @@ const ke = function(t) {
|
|
|
413
414
|
const r = await ot(e, {
|
|
414
415
|
...i,
|
|
415
416
|
elementContext: "reference"
|
|
416
|
-
}), s =
|
|
417
|
+
}), s = Ht(r, n.reference);
|
|
417
418
|
return {
|
|
418
419
|
data: {
|
|
419
420
|
referenceHiddenOffsets: s,
|
|
420
|
-
referenceHidden:
|
|
421
|
+
referenceHidden: Wt(s)
|
|
421
422
|
}
|
|
422
423
|
};
|
|
423
424
|
}
|
|
@@ -425,11 +426,11 @@ const ke = function(t) {
|
|
|
425
426
|
const r = await ot(e, {
|
|
426
427
|
...i,
|
|
427
428
|
altBoundary: !0
|
|
428
|
-
}), s =
|
|
429
|
+
}), s = Ht(r, n.floating);
|
|
429
430
|
return {
|
|
430
431
|
data: {
|
|
431
432
|
escapedOffsets: s,
|
|
432
|
-
escaped:
|
|
433
|
+
escaped: Wt(s)
|
|
433
434
|
}
|
|
434
435
|
};
|
|
435
436
|
}
|
|
@@ -438,13 +439,13 @@ const ke = function(t) {
|
|
|
438
439
|
}
|
|
439
440
|
}
|
|
440
441
|
};
|
|
441
|
-
};
|
|
442
|
-
async function
|
|
442
|
+
}, Xt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
443
|
+
async function Ve(t, e) {
|
|
443
444
|
const {
|
|
444
445
|
placement: n,
|
|
445
446
|
platform: o,
|
|
446
447
|
elements: i
|
|
447
|
-
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), c = tt(n), a =
|
|
448
|
+
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), c = tt(n), a = z(n) === "y", l = Xt.has(s) ? -1 : 1, f = r && a ? -1 : 1, u = q(e, t);
|
|
448
449
|
let {
|
|
449
450
|
mainAxis: p,
|
|
450
451
|
crossAxis: d,
|
|
@@ -466,7 +467,7 @@ async function Fe(t, e) {
|
|
|
466
467
|
y: d * f
|
|
467
468
|
};
|
|
468
469
|
}
|
|
469
|
-
const
|
|
470
|
+
const ze = function(t) {
|
|
470
471
|
return t === void 0 && (t = 0), {
|
|
471
472
|
name: "offset",
|
|
472
473
|
options: t,
|
|
@@ -477,7 +478,7 @@ const Ne = function(t) {
|
|
|
477
478
|
y: r,
|
|
478
479
|
placement: s,
|
|
479
480
|
middlewareData: c
|
|
480
|
-
} = e, a = await
|
|
481
|
+
} = e, a = await Ve(e, t);
|
|
481
482
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
482
483
|
x: i + a.x,
|
|
483
484
|
y: r + a.y,
|
|
@@ -488,7 +489,7 @@ const Ne = function(t) {
|
|
|
488
489
|
};
|
|
489
490
|
}
|
|
490
491
|
};
|
|
491
|
-
},
|
|
492
|
+
}, Ie = function(t) {
|
|
492
493
|
return t === void 0 && (t = {}), {
|
|
493
494
|
name: "shift",
|
|
494
495
|
options: t,
|
|
@@ -516,7 +517,7 @@ const Ne = function(t) {
|
|
|
516
517
|
} = q(t, e), l = {
|
|
517
518
|
x: n,
|
|
518
519
|
y: o
|
|
519
|
-
}, f = await ot(e, a), u =
|
|
520
|
+
}, f = await ot(e, a), u = z(U(i)), p = bt(u);
|
|
520
521
|
let d = l[p], m = l[u];
|
|
521
522
|
if (r) {
|
|
522
523
|
const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = d + f[w], A = d - f[g];
|
|
@@ -544,7 +545,7 @@ const Ne = function(t) {
|
|
|
544
545
|
};
|
|
545
546
|
}
|
|
546
547
|
};
|
|
547
|
-
},
|
|
548
|
+
}, Ye = function(t) {
|
|
548
549
|
return t === void 0 && (t = {}), {
|
|
549
550
|
options: t,
|
|
550
551
|
fn(e) {
|
|
@@ -561,7 +562,7 @@ const Ne = function(t) {
|
|
|
561
562
|
} = q(t, e), f = {
|
|
562
563
|
x: n,
|
|
563
564
|
y: o
|
|
564
|
-
}, u =
|
|
565
|
+
}, u = z(i), p = bt(u);
|
|
565
566
|
let d = f[p], m = f[u];
|
|
566
567
|
const h = q(c, e), w = typeof h == "number" ? {
|
|
567
568
|
mainAxis: h,
|
|
@@ -577,7 +578,7 @@ const Ne = function(t) {
|
|
|
577
578
|
}
|
|
578
579
|
if (l) {
|
|
579
580
|
var g, x;
|
|
580
|
-
const A = p === "y" ? "width" : "height", y =
|
|
581
|
+
const A = p === "y" ? "width" : "height", y = Xt.has(U(i)), v = r.reference[u] - r.floating[A] + (y && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (y ? 0 : w.crossAxis), O = r.reference[u] + r.reference[A] + (y ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (y ? w.crossAxis : 0);
|
|
581
582
|
m < v ? m = v : m > O && (m = O);
|
|
582
583
|
}
|
|
583
584
|
return {
|
|
@@ -586,7 +587,7 @@ const Ne = function(t) {
|
|
|
586
587
|
};
|
|
587
588
|
}
|
|
588
589
|
};
|
|
589
|
-
},
|
|
590
|
+
}, je = function(t) {
|
|
590
591
|
return t === void 0 && (t = {}), {
|
|
591
592
|
name: "size",
|
|
592
593
|
options: t,
|
|
@@ -601,25 +602,25 @@ const Ne = function(t) {
|
|
|
601
602
|
apply: a = () => {
|
|
602
603
|
},
|
|
603
604
|
...l
|
|
604
|
-
} = q(t, e), f = await ot(e, l), u = U(i), p = tt(i), d =
|
|
605
|
+
} = q(t, e), f = await ot(e, l), u = U(i), p = tt(i), d = z(i) === "y", {
|
|
605
606
|
width: m,
|
|
606
607
|
height: h
|
|
607
608
|
} = r.floating;
|
|
608
609
|
let w, g;
|
|
609
610
|
u === "top" || u === "bottom" ? (w = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
|
|
610
611
|
const x = h - f.top - f.bottom, A = m - f.left - f.right, y = Z(h - f[w], x), v = Z(m - f[g], A), O = !e.middlewareData.shift;
|
|
611
|
-
let
|
|
612
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (T = A), (o = e.middlewareData.shift) != null && o.enabled.y && (
|
|
612
|
+
let P = y, T = v;
|
|
613
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (T = A), (o = e.middlewareData.shift) != null && o.enabled.y && (P = x), O && !p) {
|
|
613
614
|
const L = H(f.left, 0), $ = H(f.right, 0), k = H(f.top, 0), S = H(f.bottom, 0);
|
|
614
|
-
d ? T = m - 2 * (L !== 0 || $ !== 0 ? L + $ : H(f.left, f.right)) :
|
|
615
|
+
d ? T = m - 2 * (L !== 0 || $ !== 0 ? L + $ : H(f.left, f.right)) : P = h - 2 * (k !== 0 || S !== 0 ? k + S : H(f.top, f.bottom));
|
|
615
616
|
}
|
|
616
617
|
await a({
|
|
617
618
|
...e,
|
|
618
619
|
availableWidth: T,
|
|
619
|
-
availableHeight:
|
|
620
|
+
availableHeight: P
|
|
620
621
|
});
|
|
621
|
-
const
|
|
622
|
-
return m !==
|
|
622
|
+
const N = await s.getDimensions(c.floating);
|
|
623
|
+
return m !== N.width || h !== N.height ? {
|
|
623
624
|
reset: {
|
|
624
625
|
rects: !0
|
|
625
626
|
}
|
|
@@ -631,7 +632,7 @@ function mt() {
|
|
|
631
632
|
return typeof window < "u";
|
|
632
633
|
}
|
|
633
634
|
function et(t) {
|
|
634
|
-
return
|
|
635
|
+
return qt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
635
636
|
}
|
|
636
637
|
function W(t) {
|
|
637
638
|
var e;
|
|
@@ -639,9 +640,9 @@ function W(t) {
|
|
|
639
640
|
}
|
|
640
641
|
function j(t) {
|
|
641
642
|
var e;
|
|
642
|
-
return (e = (
|
|
643
|
+
return (e = (qt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function qt(t) {
|
|
645
646
|
return mt() ? t instanceof Node || t instanceof W(t).Node : !1;
|
|
646
647
|
}
|
|
647
648
|
function _(t) {
|
|
@@ -650,9 +651,10 @@ function _(t) {
|
|
|
650
651
|
function Y(t) {
|
|
651
652
|
return mt() ? t instanceof HTMLElement || t instanceof W(t).HTMLElement : !1;
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function _t(t) {
|
|
654
655
|
return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof W(t).ShadowRoot;
|
|
655
656
|
}
|
|
657
|
+
const Xe = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
656
658
|
function rt(t) {
|
|
657
659
|
const {
|
|
658
660
|
overflow: e,
|
|
@@ -660,13 +662,15 @@ function rt(t) {
|
|
|
660
662
|
overflowY: o,
|
|
661
663
|
display: i
|
|
662
664
|
} = B(t);
|
|
663
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !
|
|
665
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Xe.has(i);
|
|
664
666
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
+
const qe = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
668
|
+
function Ue(t) {
|
|
669
|
+
return qe.has(et(t));
|
|
667
670
|
}
|
|
671
|
+
const Ze = [":popover-open", ":modal"];
|
|
668
672
|
function pt(t) {
|
|
669
|
-
return
|
|
673
|
+
return Ze.some((e) => {
|
|
670
674
|
try {
|
|
671
675
|
return t.matches(e);
|
|
672
676
|
} catch {
|
|
@@ -674,11 +678,12 @@ function pt(t) {
|
|
|
674
678
|
}
|
|
675
679
|
});
|
|
676
680
|
}
|
|
681
|
+
const Ke = ["transform", "translate", "scale", "rotate", "perspective"], Ge = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Je = ["paint", "layout", "strict", "content"];
|
|
677
682
|
function Ot(t) {
|
|
678
|
-
const e =
|
|
679
|
-
return
|
|
683
|
+
const e = Ct(), n = _(t) ? B(t) : t;
|
|
684
|
+
return Ke.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ge.some((o) => (n.willChange || "").includes(o)) || Je.some((o) => (n.contain || "").includes(o));
|
|
680
685
|
}
|
|
681
|
-
function
|
|
686
|
+
function Qe(t) {
|
|
682
687
|
let e = K(t);
|
|
683
688
|
for (; Y(e) && !Q(e); ) {
|
|
684
689
|
if (Ot(e))
|
|
@@ -689,11 +694,12 @@ function ze(t) {
|
|
|
689
694
|
}
|
|
690
695
|
return null;
|
|
691
696
|
}
|
|
692
|
-
function
|
|
697
|
+
function Ct() {
|
|
693
698
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
694
699
|
}
|
|
700
|
+
const tn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
695
701
|
function Q(t) {
|
|
696
|
-
return
|
|
702
|
+
return tn.has(et(t));
|
|
697
703
|
}
|
|
698
704
|
function B(t) {
|
|
699
705
|
return W(t).getComputedStyle(t);
|
|
@@ -714,19 +720,19 @@ function K(t) {
|
|
|
714
720
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
715
721
|
t.assignedSlot || // DOM Element detected.
|
|
716
722
|
t.parentNode || // ShadowRoot detected.
|
|
717
|
-
|
|
723
|
+
_t(t) && t.host || // Fallback.
|
|
718
724
|
j(t)
|
|
719
725
|
);
|
|
720
|
-
return
|
|
726
|
+
return _t(e) ? e.host : e;
|
|
721
727
|
}
|
|
722
|
-
function
|
|
728
|
+
function Ut(t) {
|
|
723
729
|
const e = K(t);
|
|
724
|
-
return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && rt(e) ? e :
|
|
730
|
+
return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && rt(e) ? e : Ut(e);
|
|
725
731
|
}
|
|
726
732
|
function it(t, e, n) {
|
|
727
733
|
var o;
|
|
728
734
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
729
|
-
const i =
|
|
735
|
+
const i = Ut(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(i);
|
|
730
736
|
if (r) {
|
|
731
737
|
const c = vt(s);
|
|
732
738
|
return e.concat(s, s.visualViewport || [], rt(i) ? i : [], c && n ? it(c) : []);
|
|
@@ -736,7 +742,7 @@ function it(t, e, n) {
|
|
|
736
742
|
function vt(t) {
|
|
737
743
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
738
744
|
}
|
|
739
|
-
function
|
|
745
|
+
function Zt(t) {
|
|
740
746
|
const e = B(t);
|
|
741
747
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
742
748
|
const i = Y(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = at(n) !== r || at(o) !== s;
|
|
@@ -757,22 +763,22 @@ function J(t) {
|
|
|
757
763
|
width: o,
|
|
758
764
|
height: i,
|
|
759
765
|
$: r
|
|
760
|
-
} =
|
|
766
|
+
} = Zt(e);
|
|
761
767
|
let s = (r ? at(n.width) : n.width) / o, c = (r ? at(n.height) : n.height) / i;
|
|
762
768
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
763
769
|
x: s,
|
|
764
770
|
y: c
|
|
765
771
|
};
|
|
766
772
|
}
|
|
767
|
-
const
|
|
768
|
-
function
|
|
773
|
+
const en = /* @__PURE__ */ I(0);
|
|
774
|
+
function Kt(t) {
|
|
769
775
|
const e = W(t);
|
|
770
|
-
return !
|
|
776
|
+
return !Ct() || !e.visualViewport ? en : {
|
|
771
777
|
x: e.visualViewport.offsetLeft,
|
|
772
778
|
y: e.visualViewport.offsetTop
|
|
773
779
|
};
|
|
774
780
|
}
|
|
775
|
-
function
|
|
781
|
+
function nn(t, e, n) {
|
|
776
782
|
return e === void 0 && (e = !1), !n || e && n !== W(t) ? !1 : e;
|
|
777
783
|
}
|
|
778
784
|
function G(t, e, n, o) {
|
|
@@ -780,7 +786,7 @@ function G(t, e, n, o) {
|
|
|
780
786
|
const i = t.getBoundingClientRect(), r = St(t);
|
|
781
787
|
let s = I(1);
|
|
782
788
|
e && (o ? _(o) && (s = J(o)) : s = J(t));
|
|
783
|
-
const c =
|
|
789
|
+
const c = nn(r, n, o) ? Kt(r) : I(0);
|
|
784
790
|
let a = (i.left + c.x) / s.x, l = (i.top + c.y) / s.y, f = i.width / s.x, u = i.height / s.y;
|
|
785
791
|
if (r) {
|
|
786
792
|
const p = W(r), d = o && _(o) ? W(o) : o;
|
|
@@ -801,7 +807,7 @@ function Et(t, e) {
|
|
|
801
807
|
const n = ht(t).scrollLeft;
|
|
802
808
|
return e ? e.left + n : G(j(t)).left + n;
|
|
803
809
|
}
|
|
804
|
-
function
|
|
810
|
+
function Gt(t, e, n) {
|
|
805
811
|
n === void 0 && (n = !1);
|
|
806
812
|
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
807
813
|
// RTL <body> scrollbar.
|
|
@@ -812,7 +818,7 @@ function Ut(t, e, n) {
|
|
|
812
818
|
y: r
|
|
813
819
|
};
|
|
814
820
|
}
|
|
815
|
-
function
|
|
821
|
+
function on(t) {
|
|
816
822
|
let {
|
|
817
823
|
elements: e,
|
|
818
824
|
rect: n,
|
|
@@ -831,7 +837,7 @@ function Ye(t) {
|
|
|
831
837
|
const d = G(o);
|
|
832
838
|
l = J(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
|
|
833
839
|
}
|
|
834
|
-
const p = s && !u && !r ?
|
|
840
|
+
const p = s && !u && !r ? Gt(s, a, !0) : I(0);
|
|
835
841
|
return {
|
|
836
842
|
width: n.width * l.x,
|
|
837
843
|
height: n.height * l.y,
|
|
@@ -839,10 +845,10 @@ function Ye(t) {
|
|
|
839
845
|
y: n.y * l.y - a.scrollTop * l.y + f.y + p.y
|
|
840
846
|
};
|
|
841
847
|
}
|
|
842
|
-
function
|
|
848
|
+
function rn(t) {
|
|
843
849
|
return Array.from(t.getClientRects());
|
|
844
850
|
}
|
|
845
|
-
function
|
|
851
|
+
function sn(t) {
|
|
846
852
|
const e = j(t), n = ht(t), o = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
847
853
|
let s = -n.scrollLeft + Et(t);
|
|
848
854
|
const c = -n.scrollTop;
|
|
@@ -853,12 +859,12 @@ function Xe(t) {
|
|
|
853
859
|
y: c
|
|
854
860
|
};
|
|
855
861
|
}
|
|
856
|
-
function
|
|
862
|
+
function cn(t, e) {
|
|
857
863
|
const n = W(t), o = j(t), i = n.visualViewport;
|
|
858
864
|
let r = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
|
|
859
865
|
if (i) {
|
|
860
866
|
r = i.width, s = i.height;
|
|
861
|
-
const l =
|
|
867
|
+
const l = Ct();
|
|
862
868
|
(!l || l && e === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
|
|
863
869
|
}
|
|
864
870
|
return {
|
|
@@ -868,7 +874,8 @@ function qe(t, e) {
|
|
|
868
874
|
y: a
|
|
869
875
|
};
|
|
870
876
|
}
|
|
871
|
-
|
|
877
|
+
const ln = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
878
|
+
function an(t, e) {
|
|
872
879
|
const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = Y(t) ? J(t) : I(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, a = i * r.x, l = o * r.y;
|
|
873
880
|
return {
|
|
874
881
|
width: s,
|
|
@@ -877,16 +884,16 @@ function Ue(t, e) {
|
|
|
877
884
|
y: l
|
|
878
885
|
};
|
|
879
886
|
}
|
|
880
|
-
function
|
|
887
|
+
function Bt(t, e, n) {
|
|
881
888
|
let o;
|
|
882
889
|
if (e === "viewport")
|
|
883
|
-
o =
|
|
890
|
+
o = cn(t, n);
|
|
884
891
|
else if (e === "document")
|
|
885
|
-
o =
|
|
892
|
+
o = sn(j(t));
|
|
886
893
|
else if (_(e))
|
|
887
|
-
o =
|
|
894
|
+
o = an(e, n);
|
|
888
895
|
else {
|
|
889
|
-
const i =
|
|
896
|
+
const i = Kt(t);
|
|
890
897
|
o = {
|
|
891
898
|
x: e.x - i.x,
|
|
892
899
|
y: e.y - i.y,
|
|
@@ -896,11 +903,11 @@ function Wt(t, e, n) {
|
|
|
896
903
|
}
|
|
897
904
|
return ut(o);
|
|
898
905
|
}
|
|
899
|
-
function
|
|
906
|
+
function Jt(t, e) {
|
|
900
907
|
const n = K(t);
|
|
901
|
-
return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" ||
|
|
908
|
+
return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" || Jt(n, e);
|
|
902
909
|
}
|
|
903
|
-
function
|
|
910
|
+
function fn(t, e) {
|
|
904
911
|
const n = e.get(t);
|
|
905
912
|
if (n)
|
|
906
913
|
return n;
|
|
@@ -909,21 +916,21 @@ function Ze(t, e) {
|
|
|
909
916
|
let s = r ? K(t) : t;
|
|
910
917
|
for (; _(s) && !Q(s); ) {
|
|
911
918
|
const c = B(s), a = Ot(s);
|
|
912
|
-
!a && c.position === "fixed" && (i = null), (r ? !a && !i : !a && c.position === "static" && !!i &&
|
|
919
|
+
!a && c.position === "fixed" && (i = null), (r ? !a && !i : !a && c.position === "static" && !!i && ln.has(i.position) || rt(s) && !a && Jt(t, s)) ? o = o.filter((f) => f !== s) : i = c, s = K(s);
|
|
913
920
|
}
|
|
914
921
|
return e.set(t, o), o;
|
|
915
922
|
}
|
|
916
|
-
function
|
|
923
|
+
function un(t) {
|
|
917
924
|
let {
|
|
918
925
|
element: e,
|
|
919
926
|
boundary: n,
|
|
920
927
|
rootBoundary: o,
|
|
921
928
|
strategy: i
|
|
922
929
|
} = t;
|
|
923
|
-
const s = [...n === "clippingAncestors" ? pt(e) ? [] :
|
|
924
|
-
const u =
|
|
930
|
+
const s = [...n === "clippingAncestors" ? pt(e) ? [] : fn(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
|
|
931
|
+
const u = Bt(e, f, i);
|
|
925
932
|
return l.top = H(u.top, l.top), l.right = Z(u.right, l.right), l.bottom = Z(u.bottom, l.bottom), l.left = H(u.left, l.left), l;
|
|
926
|
-
},
|
|
933
|
+
}, Bt(e, c, i));
|
|
927
934
|
return {
|
|
928
935
|
width: a.right - a.left,
|
|
929
936
|
height: a.bottom - a.top,
|
|
@@ -931,17 +938,17 @@ function Ke(t) {
|
|
|
931
938
|
y: a.top
|
|
932
939
|
};
|
|
933
940
|
}
|
|
934
|
-
function
|
|
941
|
+
function dn(t) {
|
|
935
942
|
const {
|
|
936
943
|
width: e,
|
|
937
944
|
height: n
|
|
938
|
-
} =
|
|
945
|
+
} = Zt(t);
|
|
939
946
|
return {
|
|
940
947
|
width: e,
|
|
941
948
|
height: n
|
|
942
949
|
};
|
|
943
950
|
}
|
|
944
|
-
function
|
|
951
|
+
function mn(t, e, n) {
|
|
945
952
|
const o = Y(e), i = j(e), r = n === "fixed", s = G(t, !0, r, e);
|
|
946
953
|
let c = {
|
|
947
954
|
scrollLeft: 0,
|
|
@@ -957,7 +964,7 @@ function Je(t, e, n) {
|
|
|
957
964
|
a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
|
|
958
965
|
} else i && l();
|
|
959
966
|
r && !o && i && l();
|
|
960
|
-
const f = i && !o && !r ?
|
|
967
|
+
const f = i && !o && !r ? Gt(i, c) : I(0), u = s.left + c.scrollLeft - a.x - f.x, p = s.top + c.scrollTop - a.y - f.y;
|
|
961
968
|
return {
|
|
962
969
|
x: u,
|
|
963
970
|
y: p,
|
|
@@ -968,7 +975,7 @@ function Je(t, e, n) {
|
|
|
968
975
|
function gt(t) {
|
|
969
976
|
return B(t).position === "static";
|
|
970
977
|
}
|
|
971
|
-
function
|
|
978
|
+
function Vt(t, e) {
|
|
972
979
|
if (!Y(t) || B(t).position === "fixed")
|
|
973
980
|
return null;
|
|
974
981
|
if (e)
|
|
@@ -976,7 +983,7 @@ function _t(t, e) {
|
|
|
976
983
|
let n = t.offsetParent;
|
|
977
984
|
return j(t) === n && (n = n.ownerDocument.body), n;
|
|
978
985
|
}
|
|
979
|
-
function
|
|
986
|
+
function Qt(t, e) {
|
|
980
987
|
const n = W(t);
|
|
981
988
|
if (pt(t))
|
|
982
989
|
return n;
|
|
@@ -989,15 +996,15 @@ function Kt(t, e) {
|
|
|
989
996
|
}
|
|
990
997
|
return n;
|
|
991
998
|
}
|
|
992
|
-
let o =
|
|
993
|
-
for (; o &&
|
|
994
|
-
o =
|
|
995
|
-
return o && Q(o) && gt(o) && !Ot(o) ? n : o ||
|
|
999
|
+
let o = Vt(t, e);
|
|
1000
|
+
for (; o && Ue(o) && gt(o); )
|
|
1001
|
+
o = Vt(o, e);
|
|
1002
|
+
return o && Q(o) && gt(o) && !Ot(o) ? n : o || Qe(t) || n;
|
|
996
1003
|
}
|
|
997
|
-
const
|
|
998
|
-
const e = this.getOffsetParent ||
|
|
1004
|
+
const pn = async function(t) {
|
|
1005
|
+
const e = this.getOffsetParent || Qt, n = this.getDimensions, o = await n(t.floating);
|
|
999
1006
|
return {
|
|
1000
|
-
reference:
|
|
1007
|
+
reference: mn(t.reference, await e(t.floating), t.strategy),
|
|
1001
1008
|
floating: {
|
|
1002
1009
|
x: 0,
|
|
1003
1010
|
y: 0,
|
|
@@ -1006,25 +1013,25 @@ const Qe = async function(t) {
|
|
|
1006
1013
|
}
|
|
1007
1014
|
};
|
|
1008
1015
|
};
|
|
1009
|
-
function
|
|
1016
|
+
function hn(t) {
|
|
1010
1017
|
return B(t).direction === "rtl";
|
|
1011
1018
|
}
|
|
1012
|
-
const
|
|
1013
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1019
|
+
const gn = {
|
|
1020
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: on,
|
|
1014
1021
|
getDocumentElement: j,
|
|
1015
|
-
getClippingRect:
|
|
1016
|
-
getOffsetParent:
|
|
1017
|
-
getElementRects:
|
|
1018
|
-
getClientRects:
|
|
1019
|
-
getDimensions:
|
|
1022
|
+
getClippingRect: un,
|
|
1023
|
+
getOffsetParent: Qt,
|
|
1024
|
+
getElementRects: pn,
|
|
1025
|
+
getClientRects: rn,
|
|
1026
|
+
getDimensions: dn,
|
|
1020
1027
|
getScale: J,
|
|
1021
1028
|
isElement: _,
|
|
1022
|
-
isRTL:
|
|
1029
|
+
isRTL: hn
|
|
1023
1030
|
};
|
|
1024
|
-
function
|
|
1031
|
+
function te(t, e) {
|
|
1025
1032
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
1026
1033
|
}
|
|
1027
|
-
function
|
|
1034
|
+
function wn(t, e) {
|
|
1028
1035
|
let n = null, o;
|
|
1029
1036
|
const i = j(t);
|
|
1030
1037
|
function r() {
|
|
@@ -1047,15 +1054,15 @@ function nn(t, e) {
|
|
|
1047
1054
|
};
|
|
1048
1055
|
let y = !0;
|
|
1049
1056
|
function v(O) {
|
|
1050
|
-
const
|
|
1051
|
-
if (
|
|
1057
|
+
const P = O[0].intersectionRatio;
|
|
1058
|
+
if (P !== a) {
|
|
1052
1059
|
if (!y)
|
|
1053
1060
|
return s();
|
|
1054
|
-
|
|
1061
|
+
P ? s(!1, P) : o = setTimeout(() => {
|
|
1055
1062
|
s(!1, 1e-7);
|
|
1056
1063
|
}, 1e3);
|
|
1057
1064
|
}
|
|
1058
|
-
|
|
1065
|
+
P === 1 && !te(l, t.getBoundingClientRect()) && s(), y = !1;
|
|
1059
1066
|
}
|
|
1060
1067
|
try {
|
|
1061
1068
|
n = new IntersectionObserver(v, {
|
|
@@ -1070,7 +1077,7 @@ function nn(t, e) {
|
|
|
1070
1077
|
}
|
|
1071
1078
|
return s(!0), r;
|
|
1072
1079
|
}
|
|
1073
|
-
function
|
|
1080
|
+
function xn(t, e, n, o) {
|
|
1074
1081
|
o === void 0 && (o = {});
|
|
1075
1082
|
const {
|
|
1076
1083
|
ancestorScroll: i = !0,
|
|
@@ -1084,7 +1091,7 @@ function on(t, e, n, o) {
|
|
|
1084
1091
|
passive: !0
|
|
1085
1092
|
}), r && g.addEventListener("resize", n);
|
|
1086
1093
|
});
|
|
1087
|
-
const u = l && c ?
|
|
1094
|
+
const u = l && c ? wn(l, n) : null;
|
|
1088
1095
|
let p = -1, d = null;
|
|
1089
1096
|
s && (d = new ResizeObserver((g) => {
|
|
1090
1097
|
let [x] = g;
|
|
@@ -1097,7 +1104,7 @@ function on(t, e, n, o) {
|
|
|
1097
1104
|
a && w();
|
|
1098
1105
|
function w() {
|
|
1099
1106
|
const g = G(t);
|
|
1100
|
-
h && !
|
|
1107
|
+
h && !te(h, g) && n(), h = g, m = requestAnimationFrame(w);
|
|
1101
1108
|
}
|
|
1102
1109
|
return n(), () => {
|
|
1103
1110
|
var g;
|
|
@@ -1106,21 +1113,21 @@ function on(t, e, n, o) {
|
|
|
1106
1113
|
}), u?.(), (g = d) == null || g.disconnect(), d = null, a && cancelAnimationFrame(m);
|
|
1107
1114
|
};
|
|
1108
1115
|
}
|
|
1109
|
-
const
|
|
1116
|
+
const yn = ze, vn = Ie, An = _e, bn = je, Rn = Be, zt = We, Pn = Ye, On = (t, e, n) => {
|
|
1110
1117
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1111
|
-
platform:
|
|
1118
|
+
platform: gn,
|
|
1112
1119
|
...n
|
|
1113
1120
|
}, r = {
|
|
1114
1121
|
...i.platform,
|
|
1115
1122
|
_c: o
|
|
1116
1123
|
};
|
|
1117
|
-
return
|
|
1124
|
+
return He(t, e, {
|
|
1118
1125
|
...i,
|
|
1119
1126
|
platform: r
|
|
1120
1127
|
});
|
|
1121
1128
|
};
|
|
1122
|
-
var
|
|
1123
|
-
}, lt =
|
|
1129
|
+
var Cn = typeof document < "u", Sn = function() {
|
|
1130
|
+
}, lt = Cn ? Ae : Sn;
|
|
1124
1131
|
function dt(t, e) {
|
|
1125
1132
|
if (t === e)
|
|
1126
1133
|
return !0;
|
|
@@ -1151,11 +1158,11 @@ function dt(t, e) {
|
|
|
1151
1158
|
}
|
|
1152
1159
|
return t !== t && e !== e;
|
|
1153
1160
|
}
|
|
1154
|
-
function
|
|
1161
|
+
function ee(t) {
|
|
1155
1162
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1156
1163
|
}
|
|
1157
|
-
function
|
|
1158
|
-
const n =
|
|
1164
|
+
function It(t, e) {
|
|
1165
|
+
const n = ee(t);
|
|
1159
1166
|
return Math.round(e * n) / n;
|
|
1160
1167
|
}
|
|
1161
1168
|
function wt(t) {
|
|
@@ -1164,7 +1171,7 @@ function wt(t) {
|
|
|
1164
1171
|
e.current = t;
|
|
1165
1172
|
}), e;
|
|
1166
1173
|
}
|
|
1167
|
-
function
|
|
1174
|
+
function En(t) {
|
|
1168
1175
|
t === void 0 && (t = {});
|
|
1169
1176
|
const {
|
|
1170
1177
|
placement: e = "bottom",
|
|
@@ -1190,17 +1197,17 @@ function pn(t) {
|
|
|
1190
1197
|
const [m, h] = R.useState(null), [w, g] = R.useState(null), x = R.useCallback((b) => {
|
|
1191
1198
|
b !== O.current && (O.current = b, h(b));
|
|
1192
1199
|
}, []), A = R.useCallback((b) => {
|
|
1193
|
-
b !==
|
|
1194
|
-
}, []), y = r || m, v = s || w, O = R.useRef(null),
|
|
1195
|
-
if (!O.current || !
|
|
1200
|
+
b !== P.current && (P.current = b, g(b));
|
|
1201
|
+
}, []), y = r || m, v = s || w, O = R.useRef(null), P = R.useRef(null), T = R.useRef(f), N = a != null, L = wt(a), $ = wt(i), k = wt(l), S = R.useCallback(() => {
|
|
1202
|
+
if (!O.current || !P.current)
|
|
1196
1203
|
return;
|
|
1197
1204
|
const b = {
|
|
1198
1205
|
placement: e,
|
|
1199
1206
|
strategy: n,
|
|
1200
1207
|
middleware: p
|
|
1201
1208
|
};
|
|
1202
|
-
$.current && (b.platform = $.current),
|
|
1203
|
-
const
|
|
1209
|
+
$.current && (b.platform = $.current), On(O.current, P.current, b).then((M) => {
|
|
1210
|
+
const V = {
|
|
1204
1211
|
...M,
|
|
1205
1212
|
// The floating element's position may be recomputed while it's closed
|
|
1206
1213
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -1208,8 +1215,8 @@ function pn(t) {
|
|
|
1208
1215
|
// setting it to `true` when `open === false` (must be specified).
|
|
1209
1216
|
isPositioned: k.current !== !1
|
|
1210
1217
|
};
|
|
1211
|
-
|
|
1212
|
-
u(
|
|
1218
|
+
C.current && !dt(T.current, V) && (T.current = V, be.flushSync(() => {
|
|
1219
|
+
u(V);
|
|
1213
1220
|
}));
|
|
1214
1221
|
});
|
|
1215
1222
|
}, [p, e, n, $, k]);
|
|
@@ -1219,19 +1226,19 @@ function pn(t) {
|
|
|
1219
1226
|
isPositioned: !1
|
|
1220
1227
|
})));
|
|
1221
1228
|
}, [l]);
|
|
1222
|
-
const
|
|
1223
|
-
lt(() => (
|
|
1224
|
-
|
|
1229
|
+
const C = R.useRef(!1);
|
|
1230
|
+
lt(() => (C.current = !0, () => {
|
|
1231
|
+
C.current = !1;
|
|
1225
1232
|
}), []), lt(() => {
|
|
1226
|
-
if (y && (O.current = y), v && (
|
|
1233
|
+
if (y && (O.current = y), v && (P.current = v), y && v) {
|
|
1227
1234
|
if (L.current)
|
|
1228
1235
|
return L.current(y, v, S);
|
|
1229
1236
|
S();
|
|
1230
1237
|
}
|
|
1231
|
-
}, [y, v, S, L,
|
|
1232
|
-
const
|
|
1238
|
+
}, [y, v, S, L, N]);
|
|
1239
|
+
const F = R.useMemo(() => ({
|
|
1233
1240
|
reference: O,
|
|
1234
|
-
floating:
|
|
1241
|
+
floating: P,
|
|
1235
1242
|
setReference: x,
|
|
1236
1243
|
setFloating: A
|
|
1237
1244
|
}), [x, A]), E = R.useMemo(() => ({
|
|
@@ -1245,28 +1252,28 @@ function pn(t) {
|
|
|
1245
1252
|
};
|
|
1246
1253
|
if (!E.floating)
|
|
1247
1254
|
return b;
|
|
1248
|
-
const M =
|
|
1255
|
+
const M = It(E.floating, f.x), V = It(E.floating, f.y);
|
|
1249
1256
|
return c ? {
|
|
1250
1257
|
...b,
|
|
1251
|
-
transform: "translate(" + M + "px, " +
|
|
1252
|
-
...
|
|
1258
|
+
transform: "translate(" + M + "px, " + V + "px)",
|
|
1259
|
+
...ee(E.floating) >= 1.5 && {
|
|
1253
1260
|
willChange: "transform"
|
|
1254
1261
|
}
|
|
1255
1262
|
} : {
|
|
1256
1263
|
position: n,
|
|
1257
1264
|
left: M,
|
|
1258
|
-
top:
|
|
1265
|
+
top: V
|
|
1259
1266
|
};
|
|
1260
1267
|
}, [n, c, E.floating, f.x, f.y]);
|
|
1261
1268
|
return R.useMemo(() => ({
|
|
1262
1269
|
...f,
|
|
1263
1270
|
update: S,
|
|
1264
|
-
refs:
|
|
1271
|
+
refs: F,
|
|
1265
1272
|
elements: E,
|
|
1266
1273
|
floatingStyles: D
|
|
1267
|
-
}), [f, S,
|
|
1274
|
+
}), [f, S, F, E, D]);
|
|
1268
1275
|
}
|
|
1269
|
-
const
|
|
1276
|
+
const Dn = (t) => {
|
|
1270
1277
|
function e(n) {
|
|
1271
1278
|
return {}.hasOwnProperty.call(n, "current");
|
|
1272
1279
|
}
|
|
@@ -1278,38 +1285,38 @@ const hn = (t) => {
|
|
|
1278
1285
|
element: o,
|
|
1279
1286
|
padding: i
|
|
1280
1287
|
} = typeof t == "function" ? t(n) : t;
|
|
1281
|
-
return o && e(o) ? o.current != null ?
|
|
1288
|
+
return o && e(o) ? o.current != null ? zt({
|
|
1282
1289
|
element: o.current,
|
|
1283
1290
|
padding: i
|
|
1284
|
-
}).fn(n) : {} : o ?
|
|
1291
|
+
}).fn(n) : {} : o ? zt({
|
|
1285
1292
|
element: o,
|
|
1286
1293
|
padding: i
|
|
1287
1294
|
}).fn(n) : {};
|
|
1288
1295
|
}
|
|
1289
1296
|
};
|
|
1290
|
-
},
|
|
1291
|
-
...
|
|
1297
|
+
}, Ln = (t, e) => ({
|
|
1298
|
+
...yn(t),
|
|
1292
1299
|
options: [t, e]
|
|
1293
|
-
}),
|
|
1294
|
-
...
|
|
1300
|
+
}), Tn = (t, e) => ({
|
|
1301
|
+
...vn(t),
|
|
1295
1302
|
options: [t, e]
|
|
1296
|
-
}),
|
|
1297
|
-
...
|
|
1303
|
+
}), Mn = (t, e) => ({
|
|
1304
|
+
...Pn(t),
|
|
1298
1305
|
options: [t, e]
|
|
1299
|
-
}),
|
|
1300
|
-
...
|
|
1306
|
+
}), $n = (t, e) => ({
|
|
1307
|
+
...An(t),
|
|
1301
1308
|
options: [t, e]
|
|
1302
|
-
}),
|
|
1303
|
-
...
|
|
1309
|
+
}), kn = (t, e) => ({
|
|
1310
|
+
...bn(t),
|
|
1304
1311
|
options: [t, e]
|
|
1305
|
-
}),
|
|
1306
|
-
...
|
|
1312
|
+
}), Nn = (t, e) => ({
|
|
1313
|
+
...Rn(t),
|
|
1307
1314
|
options: [t, e]
|
|
1308
|
-
}),
|
|
1309
|
-
...
|
|
1315
|
+
}), Fn = (t, e) => ({
|
|
1316
|
+
...Dn(t),
|
|
1310
1317
|
options: [t, e]
|
|
1311
1318
|
});
|
|
1312
|
-
var
|
|
1319
|
+
var Hn = "Arrow", ne = R.forwardRef((t, e) => {
|
|
1313
1320
|
const { children: n, width: o = 10, height: i = 5, ...r } = t;
|
|
1314
1321
|
return /* @__PURE__ */ X(
|
|
1315
1322
|
At.svg,
|
|
@@ -1324,22 +1331,22 @@ var Rn = "Arrow", Qt = R.forwardRef((t, e) => {
|
|
|
1324
1331
|
}
|
|
1325
1332
|
);
|
|
1326
1333
|
});
|
|
1327
|
-
|
|
1328
|
-
var
|
|
1334
|
+
ne.displayName = Hn;
|
|
1335
|
+
var Wn = ne, Dt = "Popper", [oe, Qn] = Re(Dt), [_n, ie] = oe(Dt), re = (t) => {
|
|
1329
1336
|
const { __scopePopper: e, children: n } = t, [o, i] = R.useState(null);
|
|
1330
|
-
return /* @__PURE__ */ X(
|
|
1337
|
+
return /* @__PURE__ */ X(_n, { scope: e, anchor: o, onAnchorChange: i, children: n });
|
|
1331
1338
|
};
|
|
1332
|
-
|
|
1333
|
-
var
|
|
1339
|
+
re.displayName = Dt;
|
|
1340
|
+
var se = "PopperAnchor", ce = R.forwardRef(
|
|
1334
1341
|
(t, e) => {
|
|
1335
|
-
const { __scopePopper: n, virtualRef: o, ...i } = t, r =
|
|
1342
|
+
const { __scopePopper: n, virtualRef: o, ...i } = t, r = ie(se, n), s = R.useRef(null), c = Yt(e, s);
|
|
1336
1343
|
return R.useEffect(() => {
|
|
1337
1344
|
r.onAnchorChange(o?.current || s.current);
|
|
1338
1345
|
}), o ? null : /* @__PURE__ */ X(At.div, { ...i, ref: c });
|
|
1339
1346
|
}
|
|
1340
1347
|
);
|
|
1341
|
-
|
|
1342
|
-
var Lt = "PopperContent", [
|
|
1348
|
+
ce.displayName = se;
|
|
1349
|
+
var Lt = "PopperContent", [Bn, Vn] = oe(Lt), le = R.forwardRef(
|
|
1343
1350
|
(t, e) => {
|
|
1344
1351
|
const {
|
|
1345
1352
|
__scopePopper: n,
|
|
@@ -1356,59 +1363,59 @@ var Lt = "PopperContent", [Pn, Sn] = te(Lt), re = R.forwardRef(
|
|
|
1356
1363
|
updatePositionStrategy: d = "optimized",
|
|
1357
1364
|
onPlaced: m,
|
|
1358
1365
|
...h
|
|
1359
|
-
} = t, w =
|
|
1366
|
+
} = t, w = ie(Lt, n), [g, x] = R.useState(null), A = Yt(e, (nt) => x(nt)), [y, v] = R.useState(null), O = Oe(y), P = O?.width ?? 0, T = O?.height ?? 0, N = o + (r !== "center" ? "-" + r : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(l) ? l : [l], k = $.length > 0, S = {
|
|
1360
1367
|
padding: L,
|
|
1361
|
-
boundary: $.filter(
|
|
1368
|
+
boundary: $.filter(In),
|
|
1362
1369
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1363
1370
|
altBoundary: k
|
|
1364
|
-
}, { refs:
|
|
1371
|
+
}, { refs: C, floatingStyles: F, placement: E, isPositioned: D, middlewareData: b } = En({
|
|
1365
1372
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1366
1373
|
strategy: "fixed",
|
|
1367
|
-
placement:
|
|
1368
|
-
whileElementsMounted: (...nt) =>
|
|
1374
|
+
placement: N,
|
|
1375
|
+
whileElementsMounted: (...nt) => xn(...nt, {
|
|
1369
1376
|
animationFrame: d === "always"
|
|
1370
1377
|
}),
|
|
1371
1378
|
elements: {
|
|
1372
1379
|
reference: w.anchor
|
|
1373
1380
|
},
|
|
1374
1381
|
middleware: [
|
|
1375
|
-
|
|
1376
|
-
a &&
|
|
1382
|
+
Ln({ mainAxis: i + T, alignmentAxis: s }),
|
|
1383
|
+
a && Tn({
|
|
1377
1384
|
mainAxis: !0,
|
|
1378
1385
|
crossAxis: !1,
|
|
1379
|
-
limiter: u === "partial" ?
|
|
1386
|
+
limiter: u === "partial" ? Mn() : void 0,
|
|
1380
1387
|
...S
|
|
1381
1388
|
}),
|
|
1382
|
-
a &&
|
|
1383
|
-
|
|
1389
|
+
a && $n({ ...S }),
|
|
1390
|
+
kn({
|
|
1384
1391
|
...S,
|
|
1385
|
-
apply: ({ elements: nt, rects: Mt, availableWidth:
|
|
1386
|
-
const { width:
|
|
1387
|
-
st.setProperty("--radix-popper-available-width", `${
|
|
1392
|
+
apply: ({ elements: nt, rects: Mt, availableWidth: we, availableHeight: xe }) => {
|
|
1393
|
+
const { width: ye, height: ve } = Mt.reference, st = nt.floating.style;
|
|
1394
|
+
st.setProperty("--radix-popper-available-width", `${we}px`), st.setProperty("--radix-popper-available-height", `${xe}px`), st.setProperty("--radix-popper-anchor-width", `${ye}px`), st.setProperty("--radix-popper-anchor-height", `${ve}px`);
|
|
1388
1395
|
}
|
|
1389
1396
|
}),
|
|
1390
|
-
y &&
|
|
1391
|
-
|
|
1392
|
-
p &&
|
|
1397
|
+
y && Fn({ element: y, padding: c }),
|
|
1398
|
+
Yn({ arrowWidth: P, arrowHeight: T }),
|
|
1399
|
+
p && Nn({ strategy: "referenceHidden", ...S })
|
|
1393
1400
|
]
|
|
1394
|
-
}), [M,
|
|
1401
|
+
}), [M, V] = ue(E), Tt = Pe(m);
|
|
1395
1402
|
$t(() => {
|
|
1396
1403
|
D && Tt?.();
|
|
1397
1404
|
}, [D, Tt]);
|
|
1398
|
-
const
|
|
1405
|
+
const de = b.arrow?.x, me = b.arrow?.y, pe = b.arrow?.centerOffset !== 0, [he, ge] = R.useState();
|
|
1399
1406
|
return $t(() => {
|
|
1400
|
-
g &&
|
|
1407
|
+
g && ge(window.getComputedStyle(g).zIndex);
|
|
1401
1408
|
}, [g]), /* @__PURE__ */ X(
|
|
1402
1409
|
"div",
|
|
1403
1410
|
{
|
|
1404
|
-
ref:
|
|
1411
|
+
ref: C.setFloating,
|
|
1405
1412
|
"data-radix-popper-content-wrapper": "",
|
|
1406
1413
|
style: {
|
|
1407
|
-
...
|
|
1408
|
-
transform: D ?
|
|
1414
|
+
...F,
|
|
1415
|
+
transform: D ? F.transform : "translate(0, -200%)",
|
|
1409
1416
|
// keep off the page when measuring
|
|
1410
1417
|
minWidth: "max-content",
|
|
1411
|
-
zIndex:
|
|
1418
|
+
zIndex: he,
|
|
1412
1419
|
"--radix-popper-transform-origin": [
|
|
1413
1420
|
b.transformOrigin?.x,
|
|
1414
1421
|
b.transformOrigin?.y
|
|
@@ -1423,19 +1430,19 @@ var Lt = "PopperContent", [Pn, Sn] = te(Lt), re = R.forwardRef(
|
|
|
1423
1430
|
},
|
|
1424
1431
|
dir: t.dir,
|
|
1425
1432
|
children: /* @__PURE__ */ X(
|
|
1426
|
-
|
|
1433
|
+
Bn,
|
|
1427
1434
|
{
|
|
1428
1435
|
scope: n,
|
|
1429
1436
|
placedSide: M,
|
|
1430
1437
|
onArrowChange: v,
|
|
1431
|
-
arrowX:
|
|
1432
|
-
arrowY:
|
|
1433
|
-
shouldHideArrow:
|
|
1438
|
+
arrowX: de,
|
|
1439
|
+
arrowY: me,
|
|
1440
|
+
shouldHideArrow: pe,
|
|
1434
1441
|
children: /* @__PURE__ */ X(
|
|
1435
1442
|
At.div,
|
|
1436
1443
|
{
|
|
1437
1444
|
"data-side": M,
|
|
1438
|
-
"data-align":
|
|
1445
|
+
"data-align": V,
|
|
1439
1446
|
...h,
|
|
1440
1447
|
ref: A,
|
|
1441
1448
|
style: {
|
|
@@ -1452,14 +1459,14 @@ var Lt = "PopperContent", [Pn, Sn] = te(Lt), re = R.forwardRef(
|
|
|
1452
1459
|
);
|
|
1453
1460
|
}
|
|
1454
1461
|
);
|
|
1455
|
-
|
|
1456
|
-
var
|
|
1462
|
+
le.displayName = Lt;
|
|
1463
|
+
var ae = "PopperArrow", zn = {
|
|
1457
1464
|
top: "bottom",
|
|
1458
1465
|
right: "left",
|
|
1459
1466
|
bottom: "top",
|
|
1460
1467
|
left: "right"
|
|
1461
|
-
},
|
|
1462
|
-
const { __scopePopper: o, ...i } = e, r =
|
|
1468
|
+
}, fe = R.forwardRef(function(e, n) {
|
|
1469
|
+
const { __scopePopper: o, ...i } = e, r = Vn(ae, o), s = zn[r.placedSide];
|
|
1463
1470
|
return (
|
|
1464
1471
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1465
1472
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -1488,7 +1495,7 @@ var se = "PopperArrow", En = {
|
|
|
1488
1495
|
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
1489
1496
|
},
|
|
1490
1497
|
children: /* @__PURE__ */ X(
|
|
1491
|
-
|
|
1498
|
+
Wn,
|
|
1492
1499
|
{
|
|
1493
1500
|
...i,
|
|
1494
1501
|
ref: n,
|
|
@@ -1503,28 +1510,28 @@ var se = "PopperArrow", En = {
|
|
|
1503
1510
|
)
|
|
1504
1511
|
);
|
|
1505
1512
|
});
|
|
1506
|
-
|
|
1507
|
-
function
|
|
1513
|
+
fe.displayName = ae;
|
|
1514
|
+
function In(t) {
|
|
1508
1515
|
return t !== null;
|
|
1509
1516
|
}
|
|
1510
|
-
var
|
|
1517
|
+
var Yn = (t) => ({
|
|
1511
1518
|
name: "transformOrigin",
|
|
1512
1519
|
options: t,
|
|
1513
1520
|
fn(e) {
|
|
1514
|
-
const { placement: n, rects: o, middlewareData: i } = e, s = i.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, a = s ? 0 : t.arrowHeight, [l, f] =
|
|
1521
|
+
const { placement: n, rects: o, middlewareData: i } = e, s = i.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, a = s ? 0 : t.arrowHeight, [l, f] = ue(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (i.arrow?.x ?? 0) + c / 2, d = (i.arrow?.y ?? 0) + a / 2;
|
|
1515
1522
|
let m = "", h = "";
|
|
1516
1523
|
return l === "bottom" ? (m = s ? u : `${p}px`, h = `${-a}px`) : l === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + a}px`) : l === "right" ? (m = `${-a}px`, h = s ? u : `${d}px`) : l === "left" && (m = `${o.floating.width + a}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
|
|
1517
1524
|
}
|
|
1518
1525
|
});
|
|
1519
|
-
function
|
|
1526
|
+
function ue(t) {
|
|
1520
1527
|
const [e, n = "center"] = t.split("-");
|
|
1521
1528
|
return [e, n];
|
|
1522
1529
|
}
|
|
1523
|
-
var
|
|
1530
|
+
var to = re, eo = ce, no = le, oo = fe;
|
|
1524
1531
|
export {
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1532
|
+
eo as A,
|
|
1533
|
+
no as C,
|
|
1534
|
+
to as R,
|
|
1535
|
+
oo as a,
|
|
1536
|
+
Qn as c
|
|
1530
1537
|
};
|