@spear-ai/spectral 1.3.56 → 1.3.57

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.
@@ -2,21 +2,22 @@ import "./styles/main.css";
2
2
  import * as R from "react";
3
3
  import { useLayoutEffect as Ae } from "react";
4
4
  import * as Re from "react-dom";
5
- import { P as Rt, g as yt, c as Se, b as Yt, i as Ce } from "./index-DfFzqLW6.js";
5
+ import { P as At, c as Ce, a as Yt, h as Pe, u as $t } from "./index-CA7haECj.js";
6
6
  import { jsx as j } from "react/jsx-runtime";
7
- const Oe = ["top", "right", "bottom", "left"], Z = Math.min, W = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
7
+ import { u as Oe } from "./index-Cb7rjMhE.js";
8
+ const Se = ["top", "right", "bottom", "left"], Z = Math.min, W = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
8
9
  x: t,
9
10
  y: t
10
- }), Pe = {
11
+ }), Ee = {
11
12
  left: "right",
12
13
  right: "left",
13
14
  bottom: "top",
14
15
  top: "bottom"
15
- }, Ee = {
16
+ }, Le = {
16
17
  start: "end",
17
18
  end: "start"
18
19
  };
19
- function vt(t, e, n) {
20
+ function yt(t, e, n) {
20
21
  return W(t, Z(e, n));
21
22
  }
22
23
  function q(t, e) {
@@ -28,54 +29,54 @@ function U(t) {
28
29
  function tt(t) {
29
30
  return t.split("-")[1];
30
31
  }
31
- function St(t) {
32
+ function Rt(t) {
32
33
  return t === "x" ? "y" : "x";
33
34
  }
34
35
  function Ct(t) {
35
36
  return t === "y" ? "height" : "width";
36
37
  }
37
- const Le = /* @__PURE__ */ new Set(["top", "bottom"]);
38
- function V(t) {
39
- return Le.has(U(t)) ? "y" : "x";
38
+ const De = /* @__PURE__ */ new Set(["top", "bottom"]);
39
+ function z(t) {
40
+ return De.has(U(t)) ? "y" : "x";
40
41
  }
41
- function Ot(t) {
42
- return St(V(t));
42
+ function Pt(t) {
43
+ return Rt(z(t));
43
44
  }
44
- function De(t, e, n) {
45
+ function Me(t, e, n) {
45
46
  n === void 0 && (n = !1);
46
- const o = tt(t), r = Ot(t), i = Ct(r);
47
+ const o = tt(t), r = Pt(t), i = Ct(r);
47
48
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
48
49
  return e.reference[i] > e.floating[i] && (s = ft(s)), [s, ft(s)];
49
50
  }
50
- function Me(t) {
51
+ function Te(t) {
51
52
  const e = ft(t);
52
- return [bt(t), e, bt(e)];
53
+ return [vt(t), e, vt(e)];
53
54
  }
54
- function bt(t) {
55
- return t.replace(/start|end/g, (e) => Ee[e]);
55
+ function vt(t) {
56
+ return t.replace(/start|end/g, (e) => Le[e]);
56
57
  }
57
- const kt = ["left", "right"], Ft = ["right", "left"], Te = ["top", "bottom"], $e = ["bottom", "top"];
58
- function ke(t, e, n) {
58
+ const kt = ["left", "right"], Ft = ["right", "left"], $e = ["top", "bottom"], ke = ["bottom", "top"];
59
+ function Fe(t, e, n) {
59
60
  switch (t) {
60
61
  case "top":
61
62
  case "bottom":
62
63
  return n ? e ? Ft : kt : e ? kt : Ft;
63
64
  case "left":
64
65
  case "right":
65
- return e ? Te : $e;
66
+ return e ? $e : ke;
66
67
  default:
67
68
  return [];
68
69
  }
69
70
  }
70
- function Fe(t, e, n, o) {
71
+ function Ne(t, e, n, o) {
71
72
  const r = tt(t);
72
- let i = ke(U(t), n === "start", o);
73
- return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(bt)))), i;
73
+ let i = Fe(U(t), n === "start", o);
74
+ return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(vt)))), i;
74
75
  }
75
76
  function ft(t) {
76
- return t.replace(/left|right|bottom|top/g, (e) => Pe[e]);
77
+ return t.replace(/left|right|bottom|top/g, (e) => Ee[e]);
77
78
  }
78
- function Ne(t) {
79
+ function We(t) {
79
80
  return {
80
81
  top: 0,
81
82
  right: 0,
@@ -85,7 +86,7 @@ function Ne(t) {
85
86
  };
86
87
  }
87
88
  function jt(t) {
88
- return typeof t != "number" ? Ne(t) : {
89
+ return typeof t != "number" ? We(t) : {
89
90
  top: t,
90
91
  right: t,
91
92
  bottom: t,
@@ -115,7 +116,7 @@ function Nt(t, e, n) {
115
116
  reference: o,
116
117
  floating: r
117
118
  } = t;
118
- const i = V(e), s = Ot(e), c = Ct(s), l = U(e), a = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, h = o[c] / 2 - r[c] / 2;
119
+ const i = z(e), s = Pt(e), c = Ct(s), l = U(e), a = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
119
120
  let d;
120
121
  switch (l) {
121
122
  case "top":
@@ -150,15 +151,15 @@ function Nt(t, e, n) {
150
151
  }
151
152
  switch (tt(e)) {
152
153
  case "start":
153
- d[s] -= h * (n && a ? -1 : 1);
154
+ d[s] -= p * (n && a ? -1 : 1);
154
155
  break;
155
156
  case "end":
156
- d[s] += h * (n && a ? -1 : 1);
157
+ d[s] += p * (n && a ? -1 : 1);
157
158
  break;
158
159
  }
159
160
  return d;
160
161
  }
161
- const We = async (t, e, n) => {
162
+ const He = async (t, e, n) => {
162
163
  const {
163
164
  placement: o = "bottom",
164
165
  strategy: r = "absolute",
@@ -172,12 +173,12 @@ const We = async (t, e, n) => {
172
173
  }), {
173
174
  x: f,
174
175
  y: u
175
- } = Nt(a, o, l), h = o, d = {}, p = 0;
176
- for (let m = 0; m < c.length; m++) {
176
+ } = Nt(a, o, l), p = o, d = {}, m = 0;
177
+ for (let h = 0; h < c.length; h++) {
177
178
  const {
178
179
  name: w,
179
180
  fn: g
180
- } = c[m], {
181
+ } = c[h], {
181
182
  x,
182
183
  y: b,
183
184
  data: y,
@@ -186,7 +187,7 @@ const We = async (t, e, n) => {
186
187
  x: f,
187
188
  y: u,
188
189
  initialPlacement: o,
189
- placement: h,
190
+ placement: p,
190
191
  strategy: r,
191
192
  middlewareData: d,
192
193
  rects: a,
@@ -202,19 +203,19 @@ const We = async (t, e, n) => {
202
203
  ...d[w],
203
204
  ...y
204
205
  }
205
- }, v && p <= 50 && (p++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
206
+ }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (p = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
206
207
  reference: t,
207
208
  floating: e,
208
209
  strategy: r
209
210
  }) : v.rects), {
210
211
  x: f,
211
212
  y: u
212
- } = Nt(a, h, l)), m = -1);
213
+ } = Nt(a, p, l)), h = -1);
213
214
  }
214
215
  return {
215
216
  x: f,
216
217
  y: u,
217
- placement: h,
218
+ placement: p,
218
219
  strategy: r,
219
220
  middlewareData: d
220
221
  };
@@ -233,9 +234,9 @@ async function ot(t, e) {
233
234
  boundary: a = "clippingAncestors",
234
235
  rootBoundary: f = "viewport",
235
236
  elementContext: u = "floating",
236
- altBoundary: h = !1,
237
+ altBoundary: p = !1,
237
238
  padding: d = 0
238
- } = q(e, t), p = jt(d), w = c[h ? u === "floating" ? "reference" : "floating" : u], g = ut(await i.getClippingRect({
239
+ } = q(e, t), m = jt(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = ut(await i.getClippingRect({
239
240
  element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
240
241
  boundary: a,
241
242
  rootBoundary: f,
@@ -258,13 +259,13 @@ async function ot(t, e) {
258
259
  strategy: l
259
260
  }) : x);
260
261
  return {
261
- top: (g.top - v.top + p.top) / y.y,
262
- bottom: (v.bottom - g.bottom + p.bottom) / y.y,
263
- left: (g.left - v.left + p.left) / y.x,
264
- right: (v.right - g.right + p.right) / y.x
262
+ top: (g.top - v.top + m.top) / y.y,
263
+ bottom: (v.bottom - g.bottom + m.bottom) / y.y,
264
+ left: (g.left - v.left + m.left) / y.x,
265
+ right: (v.right - g.right + m.right) / y.x
265
266
  };
266
267
  }
267
- const He = (t) => ({
268
+ const _e = (t) => ({
268
269
  name: "arrow",
269
270
  options: t,
270
271
  async fn(e) {
@@ -282,15 +283,15 @@ const He = (t) => ({
282
283
  } = q(t, e) || {};
283
284
  if (a == null)
284
285
  return {};
285
- const u = jt(f), h = {
286
+ const u = jt(f), p = {
286
287
  x: n,
287
288
  y: o
288
- }, d = Ot(r), p = Ct(d), m = await s.getDimensions(a), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", y = i.reference[p] + i.reference[d] - h[d] - i.floating[p], v = h[d] - i.reference[d], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
289
- let S = C ? C[b] : 0;
290
- (!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[p]);
291
- const M = y / 2 - v / 2, F = S / 2 - m[p] / 2 - 1, D = Z(u[g], F), $ = Z(u[x], F), k = D, P = S - m[p] - $, O = S / 2 - m[p] / 2 + M, N = vt(k, O, P), E = !l.arrow && tt(r) != null && O !== N && i.reference[p] / 2 - (O < k ? D : $) - m[p] / 2 < 0, L = E ? O < k ? O - k : O - P : 0;
289
+ }, d = Pt(r), m = Ct(d), h = await s.getDimensions(a), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", y = i.reference[m] + i.reference[d] - p[d] - i.floating[m], v = p[d] - i.reference[d], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
290
+ let C = P ? P[b] : 0;
291
+ (!C || !await (s.isElement == null ? void 0 : s.isElement(P))) && (C = c.floating[b] || i.floating[m]);
292
+ const M = y / 2 - v / 2, F = C / 2 - h[m] / 2 - 1, D = Z(u[g], F), $ = Z(u[x], F), k = D, S = C - h[m] - $, O = C / 2 - h[m] / 2 + M, N = yt(k, O, S), E = !l.arrow && tt(r) != null && O !== N && i.reference[m] / 2 - (O < k ? D : $) - h[m] / 2 < 0, L = E ? O < k ? O - k : O - S : 0;
292
293
  return {
293
- [d]: h[d] + L,
294
+ [d]: p[d] + L,
294
295
  data: {
295
296
  [d]: N,
296
297
  centerOffset: O - N - L,
@@ -301,7 +302,7 @@ const He = (t) => ({
301
302
  reset: E
302
303
  };
303
304
  }
304
- }), _e = function(t) {
305
+ }), Be = function(t) {
305
306
  return t === void 0 && (t = {}), {
306
307
  name: "flip",
307
308
  options: t,
@@ -317,20 +318,20 @@ const He = (t) => ({
317
318
  } = e, {
318
319
  mainAxis: f = !0,
319
320
  crossAxis: u = !0,
320
- fallbackPlacements: h,
321
+ fallbackPlacements: p,
321
322
  fallbackStrategy: d = "bestFit",
322
- fallbackAxisSideDirection: p = "none",
323
- flipAlignment: m = !0,
323
+ fallbackAxisSideDirection: m = "none",
324
+ flipAlignment: h = !0,
324
325
  ...w
325
326
  } = q(t, e);
326
327
  if ((n = i.arrow) != null && n.alignmentOffset)
327
328
  return {};
328
- const g = U(r), x = V(c), b = U(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = h || (b || !m ? [ft(c)] : Me(c)), C = p !== "none";
329
- !h && C && v.push(...Fe(c, m, p, y));
330
- const S = [c, ...v], M = await ot(e, w), F = [];
329
+ const g = U(r), x = z(c), b = U(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = p || (b || !h ? [ft(c)] : Te(c)), P = m !== "none";
330
+ !p && P && v.push(...Ne(c, h, m, y));
331
+ const C = [c, ...v], M = await ot(e, w), F = [];
331
332
  let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
332
333
  if (f && F.push(M[g]), u) {
333
- const O = De(r, s, y);
334
+ const O = Me(r, s, y);
334
335
  F.push(M[O[0]], M[O[1]]);
335
336
  }
336
337
  if (D = [...D, {
@@ -338,10 +339,10 @@ const He = (t) => ({
338
339
  overflows: F
339
340
  }], !F.every((O) => O <= 0)) {
340
341
  var $, k;
341
- const O = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, N = S[O];
342
- if (N && (!(u === "alignment" ? x !== V(N) : !1) || // We leave the current main axis only if every placement on that axis
342
+ const O = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, N = C[O];
343
+ if (N && (!(u === "alignment" ? x !== z(N) : !1) || // We leave the current main axis only if every placement on that axis
343
344
  // overflows the main axis.
344
- D.every((A) => V(A.placement) === x ? A.overflows[0] > 0 : !0)))
345
+ D.every((A) => z(A.placement) === x ? A.overflows[0] > 0 : !0)))
345
346
  return {
346
347
  data: {
347
348
  index: O,
@@ -355,16 +356,16 @@ const He = (t) => ({
355
356
  if (!E)
356
357
  switch (d) {
357
358
  case "bestFit": {
358
- var P;
359
- const L = (P = D.filter((A) => {
360
- if (C) {
361
- const T = V(A.placement);
359
+ var S;
360
+ const L = (S = D.filter((A) => {
361
+ if (P) {
362
+ const T = z(A.placement);
362
363
  return T === x || // Create a bias to the `y` side axis due to horizontal
363
364
  // reading directions favoring greater width.
364
365
  T === "y";
365
366
  }
366
367
  return !0;
367
- }).map((A) => [A.placement, A.overflows.filter((T) => T > 0).reduce((T, B) => T + B, 0)]).sort((A, T) => A[1] - T[1])[0]) == null ? void 0 : P[0];
368
+ }).map((A) => [A.placement, A.overflows.filter((T) => T > 0).reduce((T, V) => T + V, 0)]).sort((A, T) => A[1] - T[1])[0]) == null ? void 0 : S[0];
368
369
  L && (E = L);
369
370
  break;
370
371
  }
@@ -392,9 +393,9 @@ function Wt(t, e) {
392
393
  };
393
394
  }
394
395
  function Ht(t) {
395
- return Oe.some((e) => t[e] >= 0);
396
+ return Se.some((e) => t[e] >= 0);
396
397
  }
397
- const ze = function(t) {
398
+ const Ve = function(t) {
398
399
  return t === void 0 && (t = {}), {
399
400
  name: "hide",
400
401
  options: t,
@@ -436,16 +437,16 @@ const ze = function(t) {
436
437
  }
437
438
  };
438
439
  }, qt = /* @__PURE__ */ new Set(["left", "top"]);
439
- async function Be(t, e) {
440
+ async function ze(t, e) {
440
441
  const {
441
442
  placement: n,
442
443
  platform: o,
443
444
  elements: r
444
- } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = U(n), c = tt(n), l = V(n) === "y", a = qt.has(s) ? -1 : 1, f = i && l ? -1 : 1, u = q(e, t);
445
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = U(n), c = tt(n), l = z(n) === "y", a = qt.has(s) ? -1 : 1, f = i && l ? -1 : 1, u = q(e, t);
445
446
  let {
446
- mainAxis: h,
447
+ mainAxis: p,
447
448
  crossAxis: d,
448
- alignmentAxis: p
449
+ alignmentAxis: m
449
450
  } = typeof u == "number" ? {
450
451
  mainAxis: u,
451
452
  crossAxis: 0,
@@ -455,15 +456,15 @@ async function Be(t, e) {
455
456
  crossAxis: u.crossAxis || 0,
456
457
  alignmentAxis: u.alignmentAxis
457
458
  };
458
- return c && typeof p == "number" && (d = c === "end" ? p * -1 : p), l ? {
459
+ return c && typeof m == "number" && (d = c === "end" ? m * -1 : m), l ? {
459
460
  x: d * f,
460
- y: h * a
461
+ y: p * a
461
462
  } : {
462
- x: h * a,
463
+ x: p * a,
463
464
  y: d * f
464
465
  };
465
466
  }
466
- const Ve = function(t) {
467
+ const Ie = function(t) {
467
468
  return t === void 0 && (t = 0), {
468
469
  name: "offset",
469
470
  options: t,
@@ -474,7 +475,7 @@ const Ve = function(t) {
474
475
  y: i,
475
476
  placement: s,
476
477
  middlewareData: c
477
- } = e, l = await Be(e, t);
478
+ } = e, l = await ze(e, t);
478
479
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
479
480
  x: r + l.x,
480
481
  y: i + l.y,
@@ -485,7 +486,7 @@ const Ve = function(t) {
485
486
  };
486
487
  }
487
488
  };
488
- }, Ie = function(t) {
489
+ }, Xe = function(t) {
489
490
  return t === void 0 && (t = {}), {
490
491
  name: "shift",
491
492
  options: t,
@@ -513,35 +514,35 @@ const Ve = function(t) {
513
514
  } = q(t, e), a = {
514
515
  x: n,
515
516
  y: o
516
- }, f = await ot(e, l), u = V(U(r)), h = St(u);
517
- let d = a[h], p = a[u];
517
+ }, f = await ot(e, l), u = z(U(r)), p = Rt(u);
518
+ let d = a[p], m = a[u];
518
519
  if (i) {
519
- const w = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right", x = d + f[w], b = d - f[g];
520
- d = vt(x, d, b);
520
+ const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = d + f[w], b = d - f[g];
521
+ d = yt(x, d, b);
521
522
  }
522
523
  if (s) {
523
- const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = p + f[w], b = p - f[g];
524
- p = vt(x, p, b);
524
+ const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = m + f[w], b = m - f[g];
525
+ m = yt(x, m, b);
525
526
  }
526
- const m = c.fn({
527
+ const h = c.fn({
527
528
  ...e,
528
- [h]: d,
529
- [u]: p
529
+ [p]: d,
530
+ [u]: m
530
531
  });
531
532
  return {
532
- ...m,
533
+ ...h,
533
534
  data: {
534
- x: m.x - n,
535
- y: m.y - o,
535
+ x: h.x - n,
536
+ y: h.y - o,
536
537
  enabled: {
537
- [h]: i,
538
+ [p]: i,
538
539
  [u]: s
539
540
  }
540
541
  }
541
542
  };
542
543
  }
543
544
  };
544
- }, Xe = function(t) {
545
+ }, Ye = function(t) {
545
546
  return t === void 0 && (t = {}), {
546
547
  options: t,
547
548
  fn(e) {
@@ -558,32 +559,32 @@ const Ve = function(t) {
558
559
  } = q(t, e), f = {
559
560
  x: n,
560
561
  y: o
561
- }, u = V(r), h = St(u);
562
- let d = f[h], p = f[u];
563
- const m = q(c, e), w = typeof m == "number" ? {
564
- mainAxis: m,
562
+ }, u = z(r), p = Rt(u);
563
+ let d = f[p], m = f[u];
564
+ const h = q(c, e), w = typeof h == "number" ? {
565
+ mainAxis: h,
565
566
  crossAxis: 0
566
567
  } : {
567
568
  mainAxis: 0,
568
569
  crossAxis: 0,
569
- ...m
570
+ ...h
570
571
  };
571
572
  if (l) {
572
- const b = h === "y" ? "height" : "width", y = i.reference[h] - i.floating[b] + w.mainAxis, v = i.reference[h] + i.reference[b] - w.mainAxis;
573
+ const b = p === "y" ? "height" : "width", y = i.reference[p] - i.floating[b] + w.mainAxis, v = i.reference[p] + i.reference[b] - w.mainAxis;
573
574
  d < y ? d = y : d > v && (d = v);
574
575
  }
575
576
  if (a) {
576
577
  var g, x;
577
- const b = h === "y" ? "width" : "height", y = qt.has(U(r)), v = i.reference[u] - i.floating[b] + (y && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (y ? 0 : w.crossAxis), C = i.reference[u] + i.reference[b] + (y ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (y ? w.crossAxis : 0);
578
- p < v ? p = v : p > C && (p = C);
578
+ const b = p === "y" ? "width" : "height", y = qt.has(U(r)), v = i.reference[u] - i.floating[b] + (y && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (y ? 0 : w.crossAxis), P = i.reference[u] + i.reference[b] + (y ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (y ? w.crossAxis : 0);
579
+ m < v ? m = v : m > P && (m = P);
579
580
  }
580
581
  return {
581
- [h]: d,
582
- [u]: p
582
+ [p]: d,
583
+ [u]: m
583
584
  };
584
585
  }
585
586
  };
586
- }, Ye = function(t) {
587
+ }, je = function(t) {
587
588
  return t === void 0 && (t = {}), {
588
589
  name: "size",
589
590
  options: t,
@@ -598,25 +599,25 @@ const Ve = function(t) {
598
599
  apply: l = () => {
599
600
  },
600
601
  ...a
601
- } = q(t, e), f = await ot(e, a), u = U(r), h = tt(r), d = V(r) === "y", {
602
- width: p,
603
- height: m
602
+ } = q(t, e), f = await ot(e, a), u = U(r), p = tt(r), d = z(r) === "y", {
603
+ width: m,
604
+ height: h
604
605
  } = i.floating;
605
606
  let w, g;
606
- u === "top" || u === "bottom" ? (w = u, g = h === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = h === "end" ? "top" : "bottom");
607
- const x = m - f.top - f.bottom, b = p - f.left - f.right, y = Z(m - f[w], x), v = Z(p - f[g], b), C = !e.middlewareData.shift;
608
- let S = y, M = v;
609
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (M = b), (o = e.middlewareData.shift) != null && o.enabled.y && (S = x), C && !h) {
610
- const D = W(f.left, 0), $ = W(f.right, 0), k = W(f.top, 0), P = W(f.bottom, 0);
611
- d ? M = p - 2 * (D !== 0 || $ !== 0 ? D + $ : W(f.left, f.right)) : S = m - 2 * (k !== 0 || P !== 0 ? k + P : W(f.top, f.bottom));
607
+ 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");
608
+ const x = h - f.top - f.bottom, b = m - f.left - f.right, y = Z(h - f[w], x), v = Z(m - f[g], b), P = !e.middlewareData.shift;
609
+ let C = y, M = v;
610
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (M = b), (o = e.middlewareData.shift) != null && o.enabled.y && (C = x), P && !p) {
611
+ const D = W(f.left, 0), $ = W(f.right, 0), k = W(f.top, 0), S = W(f.bottom, 0);
612
+ d ? M = m - 2 * (D !== 0 || $ !== 0 ? D + $ : W(f.left, f.right)) : C = h - 2 * (k !== 0 || S !== 0 ? k + S : W(f.top, f.bottom));
612
613
  }
613
614
  await l({
614
615
  ...e,
615
616
  availableWidth: M,
616
- availableHeight: S
617
+ availableHeight: C
617
618
  });
618
619
  const F = await s.getDimensions(c.floating);
619
- return p !== F.width || m !== F.height ? {
620
+ return m !== F.width || h !== F.height ? {
620
621
  reset: {
621
622
  rects: !0
622
623
  }
@@ -624,7 +625,7 @@ const Ve = function(t) {
624
625
  }
625
626
  };
626
627
  };
627
- function pt() {
628
+ function mt() {
628
629
  return typeof window < "u";
629
630
  }
630
631
  function et(t) {
@@ -639,34 +640,34 @@ function Y(t) {
639
640
  return (e = (Ut(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
640
641
  }
641
642
  function Ut(t) {
642
- return pt() ? t instanceof Node || t instanceof H(t).Node : !1;
643
+ return mt() ? t instanceof Node || t instanceof H(t).Node : !1;
643
644
  }
644
645
  function _(t) {
645
- return pt() ? t instanceof Element || t instanceof H(t).Element : !1;
646
+ return mt() ? t instanceof Element || t instanceof H(t).Element : !1;
646
647
  }
647
648
  function X(t) {
648
- return pt() ? t instanceof HTMLElement || t instanceof H(t).HTMLElement : !1;
649
+ return mt() ? t instanceof HTMLElement || t instanceof H(t).HTMLElement : !1;
649
650
  }
650
651
  function _t(t) {
651
- return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof H(t).ShadowRoot;
652
+ return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof H(t).ShadowRoot;
652
653
  }
653
- const je = /* @__PURE__ */ new Set(["inline", "contents"]);
654
+ const qe = /* @__PURE__ */ new Set(["inline", "contents"]);
654
655
  function it(t) {
655
656
  const {
656
657
  overflow: e,
657
658
  overflowX: n,
658
659
  overflowY: o,
659
660
  display: r
660
- } = z(t);
661
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !je.has(r);
661
+ } = B(t);
662
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !qe.has(r);
662
663
  }
663
- const qe = /* @__PURE__ */ new Set(["table", "td", "th"]);
664
- function Ue(t) {
665
- return qe.has(et(t));
664
+ const Ue = /* @__PURE__ */ new Set(["table", "td", "th"]);
665
+ function Ze(t) {
666
+ return Ue.has(et(t));
666
667
  }
667
- const Ze = [":popover-open", ":modal"];
668
- function ht(t) {
669
- return Ze.some((e) => {
668
+ const Ke = [":popover-open", ":modal"];
669
+ function pt(t) {
670
+ return Ke.some((e) => {
670
671
  try {
671
672
  return t.matches(e);
672
673
  } catch {
@@ -674,33 +675,33 @@ function ht(t) {
674
675
  }
675
676
  });
676
677
  }
677
- const Ke = ["transform", "translate", "scale", "rotate", "perspective"], Ge = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Je = ["paint", "layout", "strict", "content"];
678
- function Pt(t) {
679
- const e = Et(), n = _(t) ? z(t) : t;
680
- 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));
678
+ const Ge = ["transform", "translate", "scale", "rotate", "perspective"], Je = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Qe = ["paint", "layout", "strict", "content"];
679
+ function Ot(t) {
680
+ const e = St(), n = _(t) ? B(t) : t;
681
+ return Ge.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) || Je.some((o) => (n.willChange || "").includes(o)) || Qe.some((o) => (n.contain || "").includes(o));
681
682
  }
682
- function Qe(t) {
683
+ function tn(t) {
683
684
  let e = K(t);
684
685
  for (; X(e) && !Q(e); ) {
685
- if (Pt(e))
686
+ if (Ot(e))
686
687
  return e;
687
- if (ht(e))
688
+ if (pt(e))
688
689
  return null;
689
690
  e = K(e);
690
691
  }
691
692
  return null;
692
693
  }
693
- function Et() {
694
+ function St() {
694
695
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
695
696
  }
696
- const tn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
697
+ const en = /* @__PURE__ */ new Set(["html", "body", "#document"]);
697
698
  function Q(t) {
698
- return tn.has(et(t));
699
+ return en.has(et(t));
699
700
  }
700
- function z(t) {
701
+ function B(t) {
701
702
  return H(t).getComputedStyle(t);
702
703
  }
703
- function mt(t) {
704
+ function ht(t) {
704
705
  return _(t) ? {
705
706
  scrollLeft: t.scrollLeft,
706
707
  scrollTop: t.scrollTop
@@ -730,16 +731,16 @@ function rt(t, e, n) {
730
731
  e === void 0 && (e = []), n === void 0 && (n = !0);
731
732
  const r = Zt(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = H(r);
732
733
  if (i) {
733
- const c = At(s);
734
+ const c = bt(s);
734
735
  return e.concat(s, s.visualViewport || [], it(r) ? r : [], c && n ? rt(c) : []);
735
736
  }
736
737
  return e.concat(r, rt(r, [], n));
737
738
  }
738
- function At(t) {
739
+ function bt(t) {
739
740
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
740
741
  }
741
742
  function Kt(t) {
742
- const e = z(t);
743
+ const e = B(t);
743
744
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
744
745
  const r = X(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = at(n) !== i || at(o) !== s;
745
746
  return c && (n = i, o = s), {
@@ -748,11 +749,11 @@ function Kt(t) {
748
749
  $: c
749
750
  };
750
751
  }
751
- function Lt(t) {
752
+ function Et(t) {
752
753
  return _(t) ? t : t.contextElement;
753
754
  }
754
755
  function J(t) {
755
- const e = Lt(t);
756
+ const e = Et(t);
756
757
  if (!X(e))
757
758
  return I(1);
758
759
  const n = e.getBoundingClientRect(), {
@@ -766,30 +767,30 @@ function J(t) {
766
767
  y: c
767
768
  };
768
769
  }
769
- const en = /* @__PURE__ */ I(0);
770
+ const nn = /* @__PURE__ */ I(0);
770
771
  function Gt(t) {
771
772
  const e = H(t);
772
- return !Et() || !e.visualViewport ? en : {
773
+ return !St() || !e.visualViewport ? nn : {
773
774
  x: e.visualViewport.offsetLeft,
774
775
  y: e.visualViewport.offsetTop
775
776
  };
776
777
  }
777
- function nn(t, e, n) {
778
+ function on(t, e, n) {
778
779
  return e === void 0 && (e = !1), !n || e && n !== H(t) ? !1 : e;
779
780
  }
780
781
  function G(t, e, n, o) {
781
782
  e === void 0 && (e = !1), n === void 0 && (n = !1);
782
- const r = t.getBoundingClientRect(), i = Lt(t);
783
+ const r = t.getBoundingClientRect(), i = Et(t);
783
784
  let s = I(1);
784
785
  e && (o ? _(o) && (s = J(o)) : s = J(t));
785
- const c = nn(i, n, o) ? Gt(i) : I(0);
786
+ const c = on(i, n, o) ? Gt(i) : I(0);
786
787
  let l = (r.left + c.x) / s.x, a = (r.top + c.y) / s.y, f = r.width / s.x, u = r.height / s.y;
787
788
  if (i) {
788
- const h = H(i), d = o && _(o) ? H(o) : o;
789
- let p = h, m = At(p);
790
- for (; m && o && d !== p; ) {
791
- const w = J(m), g = m.getBoundingClientRect(), x = z(m), b = g.left + (m.clientLeft + parseFloat(x.paddingLeft)) * w.x, y = g.top + (m.clientTop + parseFloat(x.paddingTop)) * w.y;
792
- l *= w.x, a *= w.y, f *= w.x, u *= w.y, l += b, a += y, p = H(m), m = At(p);
789
+ const p = H(i), d = o && _(o) ? H(o) : o;
790
+ let m = p, h = bt(m);
791
+ for (; h && o && d !== m; ) {
792
+ const w = J(h), g = h.getBoundingClientRect(), x = B(h), b = g.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, y = g.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
793
+ l *= w.x, a *= w.y, f *= w.x, u *= w.y, l += b, a += y, m = H(h), h = bt(m);
793
794
  }
794
795
  }
795
796
  return ut({
@@ -800,7 +801,7 @@ function G(t, e, n, o) {
800
801
  });
801
802
  }
802
803
  function gt(t, e) {
803
- const n = mt(t).scrollLeft;
804
+ const n = ht(t).scrollLeft;
804
805
  return e ? e.left + n : G(Y(t)).left + n;
805
806
  }
806
807
  function Jt(t, e) {
@@ -810,14 +811,14 @@ function Jt(t, e) {
810
811
  y: r
811
812
  };
812
813
  }
813
- function on(t) {
814
+ function rn(t) {
814
815
  let {
815
816
  elements: e,
816
817
  rect: n,
817
818
  offsetParent: o,
818
819
  strategy: r
819
820
  } = t;
820
- const i = r === "fixed", s = Y(o), c = e ? ht(e.floating) : !1;
821
+ const i = r === "fixed", s = Y(o), c = e ? pt(e.floating) : !1;
821
822
  if (o === s || c && i)
822
823
  return n;
823
824
  let l = {
@@ -825,46 +826,46 @@ function on(t) {
825
826
  scrollTop: 0
826
827
  }, a = I(1);
827
828
  const f = I(0), u = X(o);
828
- if ((u || !u && !i) && ((et(o) !== "body" || it(s)) && (l = mt(o)), X(o))) {
829
+ if ((u || !u && !i) && ((et(o) !== "body" || it(s)) && (l = ht(o)), X(o))) {
829
830
  const d = G(o);
830
831
  a = J(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
831
832
  }
832
- const h = s && !u && !i ? Jt(s, l) : I(0);
833
+ const p = s && !u && !i ? Jt(s, l) : I(0);
833
834
  return {
834
835
  width: n.width * a.x,
835
836
  height: n.height * a.y,
836
- x: n.x * a.x - l.scrollLeft * a.x + f.x + h.x,
837
- y: n.y * a.y - l.scrollTop * a.y + f.y + h.y
837
+ x: n.x * a.x - l.scrollLeft * a.x + f.x + p.x,
838
+ y: n.y * a.y - l.scrollTop * a.y + f.y + p.y
838
839
  };
839
840
  }
840
- function rn(t) {
841
+ function sn(t) {
841
842
  return Array.from(t.getClientRects());
842
843
  }
843
- function sn(t) {
844
- const e = Y(t), n = mt(t), o = t.ownerDocument.body, r = W(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = W(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
844
+ function cn(t) {
845
+ const e = Y(t), n = ht(t), o = t.ownerDocument.body, r = W(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = W(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
845
846
  let s = -n.scrollLeft + gt(t);
846
847
  const c = -n.scrollTop;
847
- return z(o).direction === "rtl" && (s += W(e.clientWidth, o.clientWidth) - r), {
848
+ return B(o).direction === "rtl" && (s += W(e.clientWidth, o.clientWidth) - r), {
848
849
  width: r,
849
850
  height: i,
850
851
  x: s,
851
852
  y: c
852
853
  };
853
854
  }
854
- const zt = 25;
855
- function cn(t, e) {
855
+ const Bt = 25;
856
+ function ln(t, e) {
856
857
  const n = H(t), o = Y(t), r = n.visualViewport;
857
858
  let i = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
858
859
  if (r) {
859
860
  i = r.width, s = r.height;
860
- const f = Et();
861
+ const f = St();
861
862
  (!f || f && e === "fixed") && (c = r.offsetLeft, l = r.offsetTop);
862
863
  }
863
864
  const a = gt(o);
864
865
  if (a <= 0) {
865
- const f = o.ownerDocument, u = f.body, h = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, p = Math.abs(o.clientWidth - u.clientWidth - d);
866
- p <= zt && (i -= p);
867
- } else a <= zt && (i += a);
866
+ const f = o.ownerDocument, u = f.body, p = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, m = Math.abs(o.clientWidth - u.clientWidth - d);
867
+ m <= Bt && (i -= m);
868
+ } else a <= Bt && (i += a);
868
869
  return {
869
870
  width: i,
870
871
  height: s,
@@ -872,8 +873,8 @@ function cn(t, e) {
872
873
  y: l
873
874
  };
874
875
  }
875
- const ln = /* @__PURE__ */ new Set(["absolute", "fixed"]);
876
- function an(t, e) {
876
+ const an = /* @__PURE__ */ new Set(["absolute", "fixed"]);
877
+ function fn(t, e) {
877
878
  const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = X(t) ? J(t) : I(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, l = r * i.x, a = o * i.y;
878
879
  return {
879
880
  width: s,
@@ -882,14 +883,14 @@ function an(t, e) {
882
883
  y: a
883
884
  };
884
885
  }
885
- function Bt(t, e, n) {
886
+ function Vt(t, e, n) {
886
887
  let o;
887
888
  if (e === "viewport")
888
- o = cn(t, n);
889
+ o = ln(t, n);
889
890
  else if (e === "document")
890
- o = sn(Y(t));
891
+ o = cn(Y(t));
891
892
  else if (_(e))
892
- o = an(e, n);
893
+ o = fn(e, n);
893
894
  else {
894
895
  const r = Gt(t);
895
896
  o = {
@@ -903,32 +904,32 @@ function Bt(t, e, n) {
903
904
  }
904
905
  function Qt(t, e) {
905
906
  const n = K(t);
906
- return n === e || !_(n) || Q(n) ? !1 : z(n).position === "fixed" || Qt(n, e);
907
+ return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" || Qt(n, e);
907
908
  }
908
- function fn(t, e) {
909
+ function un(t, e) {
909
910
  const n = e.get(t);
910
911
  if (n)
911
912
  return n;
912
913
  let o = rt(t, [], !1).filter((c) => _(c) && et(c) !== "body"), r = null;
913
- const i = z(t).position === "fixed";
914
+ const i = B(t).position === "fixed";
914
915
  let s = i ? K(t) : t;
915
916
  for (; _(s) && !Q(s); ) {
916
- const c = z(s), l = Pt(s);
917
- !l && c.position === "fixed" && (r = null), (i ? !l && !r : !l && c.position === "static" && !!r && ln.has(r.position) || it(s) && !l && Qt(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = K(s);
917
+ const c = B(s), l = Ot(s);
918
+ !l && c.position === "fixed" && (r = null), (i ? !l && !r : !l && c.position === "static" && !!r && an.has(r.position) || it(s) && !l && Qt(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = K(s);
918
919
  }
919
920
  return e.set(t, o), o;
920
921
  }
921
- function un(t) {
922
+ function dn(t) {
922
923
  let {
923
924
  element: e,
924
925
  boundary: n,
925
926
  rootBoundary: o,
926
927
  strategy: r
927
928
  } = t;
928
- const s = [...n === "clippingAncestors" ? ht(e) ? [] : fn(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, f) => {
929
- const u = Bt(e, f, r);
929
+ const s = [...n === "clippingAncestors" ? pt(e) ? [] : un(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, f) => {
930
+ const u = Vt(e, f, r);
930
931
  return a.top = W(u.top, a.top), a.right = Z(u.right, a.right), a.bottom = Z(u.bottom, a.bottom), a.left = W(u.left, a.left), a;
931
- }, Bt(e, c, r));
932
+ }, Vt(e, c, r));
932
933
  return {
933
934
  width: l.right - l.left,
934
935
  height: l.bottom - l.top,
@@ -936,7 +937,7 @@ function un(t) {
936
937
  y: l.top
937
938
  };
938
939
  }
939
- function dn(t) {
940
+ function mn(t) {
940
941
  const {
941
942
  width: e,
942
943
  height: n
@@ -957,24 +958,24 @@ function pn(t, e, n) {
957
958
  l.x = gt(r);
958
959
  }
959
960
  if (o || !o && !i)
960
- if ((et(e) !== "body" || it(r)) && (c = mt(e)), o) {
961
+ if ((et(e) !== "body" || it(r)) && (c = ht(e)), o) {
961
962
  const d = G(e, !0, i, e);
962
963
  l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
963
964
  } else r && a();
964
965
  i && !o && r && a();
965
- const f = r && !o && !i ? Jt(r, c) : I(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
966
+ const f = r && !o && !i ? Jt(r, c) : I(0), u = s.left + c.scrollLeft - l.x - f.x, p = s.top + c.scrollTop - l.y - f.y;
966
967
  return {
967
968
  x: u,
968
- y: h,
969
+ y: p,
969
970
  width: s.width,
970
971
  height: s.height
971
972
  };
972
973
  }
973
974
  function wt(t) {
974
- return z(t).position === "static";
975
+ return B(t).position === "static";
975
976
  }
976
- function Vt(t, e) {
977
- if (!X(t) || z(t).position === "fixed")
977
+ function zt(t, e) {
978
+ if (!X(t) || B(t).position === "fixed")
978
979
  return null;
979
980
  if (e)
980
981
  return e(t);
@@ -983,7 +984,7 @@ function Vt(t, e) {
983
984
  }
984
985
  function te(t, e) {
985
986
  const n = H(t);
986
- if (ht(t))
987
+ if (pt(t))
987
988
  return n;
988
989
  if (!X(t)) {
989
990
  let r = K(t);
@@ -994,10 +995,10 @@ function te(t, e) {
994
995
  }
995
996
  return n;
996
997
  }
997
- let o = Vt(t, e);
998
- for (; o && Ue(o) && wt(o); )
999
- o = Vt(o, e);
1000
- return o && Q(o) && wt(o) && !Pt(o) ? n : o || Qe(t) || n;
998
+ let o = zt(t, e);
999
+ for (; o && Ze(o) && wt(o); )
1000
+ o = zt(o, e);
1001
+ return o && Q(o) && wt(o) && !Ot(o) ? n : o || tn(t) || n;
1001
1002
  }
1002
1003
  const hn = async function(t) {
1003
1004
  const e = this.getOffsetParent || te, n = this.getDimensions, o = await n(t.floating);
@@ -1011,25 +1012,25 @@ const hn = async function(t) {
1011
1012
  }
1012
1013
  };
1013
1014
  };
1014
- function mn(t) {
1015
- return z(t).direction === "rtl";
1015
+ function gn(t) {
1016
+ return B(t).direction === "rtl";
1016
1017
  }
1017
- const gn = {
1018
- convertOffsetParentRelativeRectToViewportRelativeRect: on,
1018
+ const wn = {
1019
+ convertOffsetParentRelativeRectToViewportRelativeRect: rn,
1019
1020
  getDocumentElement: Y,
1020
- getClippingRect: un,
1021
+ getClippingRect: dn,
1021
1022
  getOffsetParent: te,
1022
1023
  getElementRects: hn,
1023
- getClientRects: rn,
1024
- getDimensions: dn,
1024
+ getClientRects: sn,
1025
+ getDimensions: mn,
1025
1026
  getScale: J,
1026
1027
  isElement: _,
1027
- isRTL: mn
1028
+ isRTL: gn
1028
1029
  };
1029
1030
  function ee(t, e) {
1030
1031
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1031
1032
  }
1032
- function wn(t, e) {
1033
+ function xn(t, e) {
1033
1034
  let n = null, o;
1034
1035
  const r = Y(t);
1035
1036
  function i() {
@@ -1041,26 +1042,26 @@ function wn(t, e) {
1041
1042
  const a = t.getBoundingClientRect(), {
1042
1043
  left: f,
1043
1044
  top: u,
1044
- width: h,
1045
+ width: p,
1045
1046
  height: d
1046
1047
  } = a;
1047
- if (c || e(), !h || !d)
1048
+ if (c || e(), !p || !d)
1048
1049
  return;
1049
- const p = ct(u), m = ct(r.clientWidth - (f + h)), w = ct(r.clientHeight - (u + d)), g = ct(f), b = {
1050
- rootMargin: -p + "px " + -m + "px " + -w + "px " + -g + "px",
1050
+ const m = ct(u), h = ct(r.clientWidth - (f + p)), w = ct(r.clientHeight - (u + d)), g = ct(f), b = {
1051
+ rootMargin: -m + "px " + -h + "px " + -w + "px " + -g + "px",
1051
1052
  threshold: W(0, Z(1, l)) || 1
1052
1053
  };
1053
1054
  let y = !0;
1054
- function v(C) {
1055
- const S = C[0].intersectionRatio;
1056
- if (S !== l) {
1055
+ function v(P) {
1056
+ const C = P[0].intersectionRatio;
1057
+ if (C !== l) {
1057
1058
  if (!y)
1058
1059
  return s();
1059
- S ? s(!1, S) : o = setTimeout(() => {
1060
+ C ? s(!1, C) : o = setTimeout(() => {
1060
1061
  s(!1, 1e-7);
1061
1062
  }, 1e3);
1062
1063
  }
1063
- S === 1 && !ee(a, t.getBoundingClientRect()) && s(), y = !1;
1064
+ C === 1 && !ee(a, t.getBoundingClientRect()) && s(), y = !1;
1064
1065
  }
1065
1066
  try {
1066
1067
  n = new IntersectionObserver(v, {
@@ -1075,7 +1076,7 @@ function wn(t, e) {
1075
1076
  }
1076
1077
  return s(!0), i;
1077
1078
  }
1078
- function xn(t, e, n, o) {
1079
+ function yn(t, e, n, o) {
1079
1080
  o === void 0 && (o = {});
1080
1081
  const {
1081
1082
  ancestorScroll: r = !0,
@@ -1083,49 +1084,49 @@ function xn(t, e, n, o) {
1083
1084
  elementResize: s = typeof ResizeObserver == "function",
1084
1085
  layoutShift: c = typeof IntersectionObserver == "function",
1085
1086
  animationFrame: l = !1
1086
- } = o, a = Lt(t), f = r || i ? [...a ? rt(a) : [], ...rt(e)] : [];
1087
+ } = o, a = Et(t), f = r || i ? [...a ? rt(a) : [], ...rt(e)] : [];
1087
1088
  f.forEach((g) => {
1088
1089
  r && g.addEventListener("scroll", n, {
1089
1090
  passive: !0
1090
1091
  }), i && g.addEventListener("resize", n);
1091
1092
  });
1092
- const u = a && c ? wn(a, n) : null;
1093
- let h = -1, d = null;
1093
+ const u = a && c ? xn(a, n) : null;
1094
+ let p = -1, d = null;
1094
1095
  s && (d = new ResizeObserver((g) => {
1095
1096
  let [x] = g;
1096
- x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
1097
+ x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1097
1098
  var b;
1098
1099
  (b = d) == null || b.observe(e);
1099
1100
  })), n();
1100
1101
  }), a && !l && d.observe(a), d.observe(e));
1101
- let p, m = l ? G(t) : null;
1102
+ let m, h = l ? G(t) : null;
1102
1103
  l && w();
1103
1104
  function w() {
1104
1105
  const g = G(t);
1105
- m && !ee(m, g) && n(), m = g, p = requestAnimationFrame(w);
1106
+ h && !ee(h, g) && n(), h = g, m = requestAnimationFrame(w);
1106
1107
  }
1107
1108
  return n(), () => {
1108
1109
  var g;
1109
1110
  f.forEach((x) => {
1110
1111
  r && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
1111
- }), u?.(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(p);
1112
+ }), u?.(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(m);
1112
1113
  };
1113
1114
  }
1114
- const yn = Ve, vn = Ie, bn = _e, An = Ye, Rn = ze, It = He, Sn = Xe, Cn = (t, e, n) => {
1115
+ const vn = Ie, bn = Xe, An = Be, Rn = je, Cn = Ve, It = _e, Pn = Ye, On = (t, e, n) => {
1115
1116
  const o = /* @__PURE__ */ new Map(), r = {
1116
- platform: gn,
1117
+ platform: wn,
1117
1118
  ...n
1118
1119
  }, i = {
1119
1120
  ...r.platform,
1120
1121
  _c: o
1121
1122
  };
1122
- return We(t, e, {
1123
+ return He(t, e, {
1123
1124
  ...r,
1124
1125
  platform: i
1125
1126
  });
1126
1127
  };
1127
- var On = typeof document < "u", Pn = function() {
1128
- }, lt = On ? Ae : Pn;
1128
+ var Sn = typeof document < "u", En = function() {
1129
+ }, lt = Sn ? Ae : En;
1129
1130
  function dt(t, e) {
1130
1131
  if (t === e)
1131
1132
  return !0;
@@ -1169,7 +1170,7 @@ function xt(t) {
1169
1170
  e.current = t;
1170
1171
  }), e;
1171
1172
  }
1172
- function En(t) {
1173
+ function Ln(t) {
1173
1174
  t === void 0 && (t = {});
1174
1175
  const {
1175
1176
  placement: e = "bottom",
@@ -1190,22 +1191,22 @@ function En(t) {
1190
1191
  placement: e,
1191
1192
  middlewareData: {},
1192
1193
  isPositioned: !1
1193
- }), [h, d] = R.useState(o);
1194
- dt(h, o) || d(o);
1195
- const [p, m] = R.useState(null), [w, g] = R.useState(null), x = R.useCallback((A) => {
1196
- A !== C.current && (C.current = A, m(A));
1194
+ }), [p, d] = R.useState(o);
1195
+ dt(p, o) || d(o);
1196
+ const [m, h] = R.useState(null), [w, g] = R.useState(null), x = R.useCallback((A) => {
1197
+ A !== P.current && (P.current = A, h(A));
1197
1198
  }, []), b = R.useCallback((A) => {
1198
- A !== S.current && (S.current = A, g(A));
1199
- }, []), y = i || p, v = s || w, C = R.useRef(null), S = R.useRef(null), M = R.useRef(f), F = l != null, D = xt(l), $ = xt(r), k = xt(a), P = R.useCallback(() => {
1200
- if (!C.current || !S.current)
1199
+ A !== C.current && (C.current = A, g(A));
1200
+ }, []), y = i || m, v = s || w, P = R.useRef(null), C = R.useRef(null), M = R.useRef(f), F = l != null, D = xt(l), $ = xt(r), k = xt(a), S = R.useCallback(() => {
1201
+ if (!P.current || !C.current)
1201
1202
  return;
1202
1203
  const A = {
1203
1204
  placement: e,
1204
1205
  strategy: n,
1205
- middleware: h
1206
+ middleware: p
1206
1207
  };
1207
- $.current && (A.platform = $.current), Cn(C.current, S.current, A).then((T) => {
1208
- const B = {
1208
+ $.current && (A.platform = $.current), On(P.current, C.current, A).then((T) => {
1209
+ const V = {
1209
1210
  ...T,
1210
1211
  // The floating element's position may be recomputed while it's closed
1211
1212
  // but still mounted (such as when transitioning out). To ensure
@@ -1213,11 +1214,11 @@ function En(t) {
1213
1214
  // setting it to `true` when `open === false` (must be specified).
1214
1215
  isPositioned: k.current !== !1
1215
1216
  };
1216
- O.current && !dt(M.current, B) && (M.current = B, Re.flushSync(() => {
1217
- u(B);
1217
+ O.current && !dt(M.current, V) && (M.current = V, Re.flushSync(() => {
1218
+ u(V);
1218
1219
  }));
1219
1220
  });
1220
- }, [h, e, n, $, k]);
1221
+ }, [p, e, n, $, k]);
1221
1222
  lt(() => {
1222
1223
  a === !1 && M.current.isPositioned && (M.current.isPositioned = !1, u((A) => ({
1223
1224
  ...A,
@@ -1228,15 +1229,15 @@ function En(t) {
1228
1229
  lt(() => (O.current = !0, () => {
1229
1230
  O.current = !1;
1230
1231
  }), []), lt(() => {
1231
- if (y && (C.current = y), v && (S.current = v), y && v) {
1232
+ if (y && (P.current = y), v && (C.current = v), y && v) {
1232
1233
  if (D.current)
1233
- return D.current(y, v, P);
1234
- P();
1234
+ return D.current(y, v, S);
1235
+ S();
1235
1236
  }
1236
- }, [y, v, P, D, F]);
1237
+ }, [y, v, S, D, F]);
1237
1238
  const N = R.useMemo(() => ({
1238
- reference: C,
1239
- floating: S,
1239
+ reference: P,
1240
+ floating: C,
1240
1241
  setReference: x,
1241
1242
  setFloating: b
1242
1243
  }), [x, b]), E = R.useMemo(() => ({
@@ -1250,28 +1251,28 @@ function En(t) {
1250
1251
  };
1251
1252
  if (!E.floating)
1252
1253
  return A;
1253
- const T = Xt(E.floating, f.x), B = Xt(E.floating, f.y);
1254
+ const T = Xt(E.floating, f.x), V = Xt(E.floating, f.y);
1254
1255
  return c ? {
1255
1256
  ...A,
1256
- transform: "translate(" + T + "px, " + B + "px)",
1257
+ transform: "translate(" + T + "px, " + V + "px)",
1257
1258
  ...ne(E.floating) >= 1.5 && {
1258
1259
  willChange: "transform"
1259
1260
  }
1260
1261
  } : {
1261
1262
  position: n,
1262
1263
  left: T,
1263
- top: B
1264
+ top: V
1264
1265
  };
1265
1266
  }, [n, c, E.floating, f.x, f.y]);
1266
1267
  return R.useMemo(() => ({
1267
1268
  ...f,
1268
- update: P,
1269
+ update: S,
1269
1270
  refs: N,
1270
1271
  elements: E,
1271
1272
  floatingStyles: L
1272
- }), [f, P, N, E, L]);
1273
+ }), [f, S, N, E, L]);
1273
1274
  }
1274
- const Ln = (t) => {
1275
+ const Dn = (t) => {
1275
1276
  function e(n) {
1276
1277
  return {}.hasOwnProperty.call(n, "current");
1277
1278
  }
@@ -1292,17 +1293,14 @@ const Ln = (t) => {
1292
1293
  }).fn(n) : {};
1293
1294
  }
1294
1295
  };
1295
- }, Dn = (t, e) => ({
1296
- ...yn(t),
1297
- options: [t, e]
1298
- }), Mn = (t, e) => ({
1296
+ }, Mn = (t, e) => ({
1299
1297
  ...vn(t),
1300
1298
  options: [t, e]
1301
1299
  }), Tn = (t, e) => ({
1302
- ...Sn(t),
1300
+ ...bn(t),
1303
1301
  options: [t, e]
1304
1302
  }), $n = (t, e) => ({
1305
- ...bn(t),
1303
+ ...Pn(t),
1306
1304
  options: [t, e]
1307
1305
  }), kn = (t, e) => ({
1308
1306
  ...An(t),
@@ -1311,13 +1309,16 @@ const Ln = (t) => {
1311
1309
  ...Rn(t),
1312
1310
  options: [t, e]
1313
1311
  }), Nn = (t, e) => ({
1314
- ...Ln(t),
1312
+ ...Cn(t),
1313
+ options: [t, e]
1314
+ }), Wn = (t, e) => ({
1315
+ ...Dn(t),
1315
1316
  options: [t, e]
1316
1317
  });
1317
- var Wn = "Arrow", oe = R.forwardRef((t, e) => {
1318
+ var Hn = "Arrow", oe = R.forwardRef((t, e) => {
1318
1319
  const { children: n, width: o = 10, height: r = 5, ...i } = t;
1319
1320
  return /* @__PURE__ */ j(
1320
- Rt.svg,
1321
+ At.svg,
1321
1322
  {
1322
1323
  ...i,
1323
1324
  ref: e,
@@ -1329,46 +1330,23 @@ var Wn = "Arrow", oe = R.forwardRef((t, e) => {
1329
1330
  }
1330
1331
  );
1331
1332
  });
1332
- oe.displayName = Wn;
1333
- var Hn = oe;
1334
- function _n(t) {
1335
- const [e, n] = R.useState(void 0);
1336
- return yt(() => {
1337
- if (t) {
1338
- n({ width: t.offsetWidth, height: t.offsetHeight });
1339
- const o = new ResizeObserver((r) => {
1340
- if (!Array.isArray(r) || !r.length)
1341
- return;
1342
- const i = r[0];
1343
- let s, c;
1344
- if ("borderBoxSize" in i) {
1345
- const l = i.borderBoxSize, a = Array.isArray(l) ? l[0] : l;
1346
- s = a.inlineSize, c = a.blockSize;
1347
- } else
1348
- s = t.offsetWidth, c = t.offsetHeight;
1349
- n({ width: s, height: c });
1350
- });
1351
- return o.observe(t, { box: "border-box" }), () => o.unobserve(t);
1352
- } else
1353
- n(void 0);
1354
- }, [t]), e;
1355
- }
1356
- var Dt = "Popper", [re, Zn] = Se(Dt), [zn, ie] = re(Dt), se = (t) => {
1333
+ oe.displayName = Hn;
1334
+ var _n = oe, Lt = "Popper", [re, Kn] = Ce(Lt), [Bn, ie] = re(Lt), se = (t) => {
1357
1335
  const { __scopePopper: e, children: n } = t, [o, r] = R.useState(null);
1358
- return /* @__PURE__ */ j(zn, { scope: e, anchor: o, onAnchorChange: r, children: n });
1336
+ return /* @__PURE__ */ j(Bn, { scope: e, anchor: o, onAnchorChange: r, children: n });
1359
1337
  };
1360
- se.displayName = Dt;
1338
+ se.displayName = Lt;
1361
1339
  var ce = "PopperAnchor", le = R.forwardRef(
1362
1340
  (t, e) => {
1363
1341
  const { __scopePopper: n, virtualRef: o, ...r } = t, i = ie(ce, n), s = R.useRef(null), c = Yt(e, s), l = R.useRef(null);
1364
1342
  return R.useEffect(() => {
1365
1343
  const a = l.current;
1366
1344
  l.current = o?.current || s.current, a !== l.current && i.onAnchorChange(l.current);
1367
- }), o ? null : /* @__PURE__ */ j(Rt.div, { ...r, ref: c });
1345
+ }), o ? null : /* @__PURE__ */ j(At.div, { ...r, ref: c });
1368
1346
  }
1369
1347
  );
1370
1348
  le.displayName = ce;
1371
- var Mt = "PopperContent", [Bn, Vn] = re(Mt), ae = R.forwardRef(
1349
+ var Dt = "PopperContent", [Vn, zn] = re(Dt), ae = R.forwardRef(
1372
1350
  (t, e) => {
1373
1351
  const {
1374
1352
  __scopePopper: n,
@@ -1381,51 +1359,51 @@ var Mt = "PopperContent", [Bn, Vn] = re(Mt), ae = R.forwardRef(
1381
1359
  collisionBoundary: a = [],
1382
1360
  collisionPadding: f = 0,
1383
1361
  sticky: u = "partial",
1384
- hideWhenDetached: h = !1,
1362
+ hideWhenDetached: p = !1,
1385
1363
  updatePositionStrategy: d = "optimized",
1386
- onPlaced: p,
1387
- ...m
1388
- } = t, w = ie(Mt, n), [g, x] = R.useState(null), b = Yt(e, (nt) => x(nt)), [y, v] = R.useState(null), C = _n(y), S = C?.width ?? 0, M = C?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(a) ? a : [a], k = $.length > 0, P = {
1364
+ onPlaced: m,
1365
+ ...h
1366
+ } = t, w = ie(Dt, n), [g, x] = R.useState(null), b = Yt(e, (nt) => x(nt)), [y, v] = R.useState(null), P = Oe(y), C = P?.width ?? 0, M = P?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(a) ? a : [a], k = $.length > 0, S = {
1389
1367
  padding: D,
1390
1368
  boundary: $.filter(Xn),
1391
1369
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1392
1370
  altBoundary: k
1393
- }, { refs: O, floatingStyles: N, placement: E, isPositioned: L, middlewareData: A } = En({
1371
+ }, { refs: O, floatingStyles: N, placement: E, isPositioned: L, middlewareData: A } = Ln({
1394
1372
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1395
1373
  strategy: "fixed",
1396
1374
  placement: F,
1397
- whileElementsMounted: (...nt) => xn(...nt, {
1375
+ whileElementsMounted: (...nt) => yn(...nt, {
1398
1376
  animationFrame: d === "always"
1399
1377
  }),
1400
1378
  elements: {
1401
1379
  reference: w.anchor
1402
1380
  },
1403
1381
  middleware: [
1404
- Dn({ mainAxis: r + M, alignmentAxis: s }),
1405
- l && Mn({
1382
+ Mn({ mainAxis: r + M, alignmentAxis: s }),
1383
+ l && Tn({
1406
1384
  mainAxis: !0,
1407
1385
  crossAxis: !1,
1408
- limiter: u === "partial" ? Tn() : void 0,
1409
- ...P
1386
+ limiter: u === "partial" ? $n() : void 0,
1387
+ ...S
1410
1388
  }),
1411
- l && $n({ ...P }),
1412
- kn({
1413
- ...P,
1414
- apply: ({ elements: nt, rects: $t, availableWidth: xe, availableHeight: ye }) => {
1415
- const { width: ve, height: be } = $t.reference, st = nt.floating.style;
1389
+ l && kn({ ...S }),
1390
+ Fn({
1391
+ ...S,
1392
+ apply: ({ elements: nt, rects: Tt, availableWidth: xe, availableHeight: ye }) => {
1393
+ const { width: ve, height: be } = Tt.reference, st = nt.floating.style;
1416
1394
  st.setProperty("--radix-popper-available-width", `${xe}px`), st.setProperty("--radix-popper-available-height", `${ye}px`), st.setProperty("--radix-popper-anchor-width", `${ve}px`), st.setProperty("--radix-popper-anchor-height", `${be}px`);
1417
1395
  }
1418
1396
  }),
1419
- y && Nn({ element: y, padding: c }),
1420
- Yn({ arrowWidth: S, arrowHeight: M }),
1421
- h && Fn({ strategy: "referenceHidden", ...P })
1397
+ y && Wn({ element: y, padding: c }),
1398
+ Yn({ arrowWidth: C, arrowHeight: M }),
1399
+ p && Nn({ strategy: "referenceHidden", ...S })
1422
1400
  ]
1423
- }), [T, B] = de(E), Tt = Ce(p);
1424
- yt(() => {
1425
- L && Tt?.();
1426
- }, [L, Tt]);
1427
- const pe = A.arrow?.x, he = A.arrow?.y, me = A.arrow?.centerOffset !== 0, [ge, we] = R.useState();
1428
- return yt(() => {
1401
+ }), [T, V] = de(E), Mt = Pe(m);
1402
+ $t(() => {
1403
+ L && Mt?.();
1404
+ }, [L, Mt]);
1405
+ const me = A.arrow?.x, pe = A.arrow?.y, he = A.arrow?.centerOffset !== 0, [ge, we] = R.useState();
1406
+ return $t(() => {
1429
1407
  g && we(window.getComputedStyle(g).zIndex);
1430
1408
  }, [g]), /* @__PURE__ */ j(
1431
1409
  "div",
@@ -1452,23 +1430,23 @@ var Mt = "PopperContent", [Bn, Vn] = re(Mt), ae = R.forwardRef(
1452
1430
  },
1453
1431
  dir: t.dir,
1454
1432
  children: /* @__PURE__ */ j(
1455
- Bn,
1433
+ Vn,
1456
1434
  {
1457
1435
  scope: n,
1458
1436
  placedSide: T,
1459
1437
  onArrowChange: v,
1460
- arrowX: pe,
1461
- arrowY: he,
1462
- shouldHideArrow: me,
1438
+ arrowX: me,
1439
+ arrowY: pe,
1440
+ shouldHideArrow: he,
1463
1441
  children: /* @__PURE__ */ j(
1464
- Rt.div,
1442
+ At.div,
1465
1443
  {
1466
1444
  "data-side": T,
1467
- "data-align": B,
1468
- ...m,
1445
+ "data-align": V,
1446
+ ...h,
1469
1447
  ref: b,
1470
1448
  style: {
1471
- ...m.style,
1449
+ ...h.style,
1472
1450
  // if the PopperContent hasn't been placed yet (not all measurements done)
1473
1451
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
1474
1452
  animation: L ? void 0 : "none"
@@ -1481,14 +1459,14 @@ var Mt = "PopperContent", [Bn, Vn] = re(Mt), ae = R.forwardRef(
1481
1459
  );
1482
1460
  }
1483
1461
  );
1484
- ae.displayName = Mt;
1462
+ ae.displayName = Dt;
1485
1463
  var fe = "PopperArrow", In = {
1486
1464
  top: "bottom",
1487
1465
  right: "left",
1488
1466
  bottom: "top",
1489
1467
  left: "right"
1490
1468
  }, ue = R.forwardRef(function(e, n) {
1491
- const { __scopePopper: o, ...r } = e, i = Vn(fe, o), s = In[i.placedSide];
1469
+ const { __scopePopper: o, ...r } = e, i = zn(fe, o), s = In[i.placedSide];
1492
1470
  return (
1493
1471
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1494
1472
  // doesn't report size as we'd expect on SVG elements.
@@ -1517,7 +1495,7 @@ var fe = "PopperArrow", In = {
1517
1495
  visibility: i.shouldHideArrow ? "hidden" : void 0
1518
1496
  },
1519
1497
  children: /* @__PURE__ */ j(
1520
- Hn,
1498
+ _n,
1521
1499
  {
1522
1500
  ...r,
1523
1501
  ref: n,
@@ -1540,20 +1518,20 @@ var Yn = (t) => ({
1540
1518
  name: "transformOrigin",
1541
1519
  options: t,
1542
1520
  fn(e) {
1543
- const { placement: n, rects: o, middlewareData: r } = e, s = r.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, l = s ? 0 : t.arrowHeight, [a, f] = de(n), u = { start: "0%", center: "50%", end: "100%" }[f], h = (r.arrow?.x ?? 0) + c / 2, d = (r.arrow?.y ?? 0) + l / 2;
1544
- let p = "", m = "";
1545
- return a === "bottom" ? (p = s ? u : `${h}px`, m = `${-l}px`) : a === "top" ? (p = s ? u : `${h}px`, m = `${o.floating.height + l}px`) : a === "right" ? (p = `${-l}px`, m = s ? u : `${d}px`) : a === "left" && (p = `${o.floating.width + l}px`, m = s ? u : `${d}px`), { data: { x: p, y: m } };
1521
+ const { placement: n, rects: o, middlewareData: r } = e, s = r.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, l = s ? 0 : t.arrowHeight, [a, f] = de(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (r.arrow?.x ?? 0) + c / 2, d = (r.arrow?.y ?? 0) + l / 2;
1522
+ let m = "", h = "";
1523
+ return a === "bottom" ? (m = s ? u : `${p}px`, h = `${-l}px`) : a === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + l}px`) : a === "right" ? (m = `${-l}px`, h = s ? u : `${d}px`) : a === "left" && (m = `${o.floating.width + l}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
1546
1524
  }
1547
1525
  });
1548
1526
  function de(t) {
1549
1527
  const [e, n = "center"] = t.split("-");
1550
1528
  return [e, n];
1551
1529
  }
1552
- var Kn = se, Gn = le, Jn = ae, Qn = ue;
1530
+ var Gn = se, Jn = le, Qn = ae, to = ue;
1553
1531
  export {
1554
- Qn as A,
1555
- Jn as C,
1556
- Kn as R,
1557
- Gn as a,
1558
- Zn as c
1532
+ to as A,
1533
+ Qn as C,
1534
+ Gn as R,
1535
+ Jn as a,
1536
+ Kn as c
1559
1537
  };