bitboss-ui 0.2.52 → 0.2.54

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.
Files changed (142) hide show
  1. package/dist/index101.js +2 -2
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +3 -3
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index125.js +1 -1
  12. package/dist/index126.js +1 -1
  13. package/dist/index127.js +1 -1
  14. package/dist/index131.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +9 -9
  17. package/dist/index19.js +3 -3
  18. package/dist/index197.js +5 -2
  19. package/dist/index197.js.map +1 -1
  20. package/dist/index198.js +16 -4
  21. package/dist/index198.js.map +1 -1
  22. package/dist/index199.js +16 -3
  23. package/dist/index199.js.map +1 -1
  24. package/dist/index200.js +19 -35
  25. package/dist/index200.js.map +1 -1
  26. package/dist/index201.js +20 -6
  27. package/dist/index201.js.map +1 -1
  28. package/dist/index202.js +29 -3
  29. package/dist/index202.js.map +1 -1
  30. package/dist/index203.js +8 -3
  31. package/dist/index203.js.map +1 -1
  32. package/dist/index204.js +2 -368
  33. package/dist/index204.js.map +1 -1
  34. package/dist/index205.js +3 -134
  35. package/dist/index205.js.map +1 -1
  36. package/dist/index206.js +35 -5
  37. package/dist/index206.js.map +1 -1
  38. package/dist/index207.js +6 -19
  39. package/dist/index207.js.map +1 -1
  40. package/dist/index208.js +2 -2
  41. package/dist/index208.js.map +1 -1
  42. package/dist/index209.js +4 -2
  43. package/dist/index209.js.map +1 -1
  44. package/dist/index21.js +2 -2
  45. package/dist/index210.js +226 -165
  46. package/dist/index210.js.map +1 -1
  47. package/dist/index211.js +368 -23
  48. package/dist/index211.js.map +1 -1
  49. package/dist/index212.js +126 -365
  50. package/dist/index212.js.map +1 -1
  51. package/dist/index213.js +2 -10
  52. package/dist/index213.js.map +1 -1
  53. package/dist/index214.js +174 -2
  54. package/dist/index214.js.map +1 -1
  55. package/dist/index215.js +23 -2
  56. package/dist/index215.js.map +1 -1
  57. package/dist/index216.js +363 -225
  58. package/dist/index216.js.map +1 -1
  59. package/dist/index217.js +10 -16
  60. package/dist/index217.js.map +1 -1
  61. package/dist/index218.js +2 -16
  62. package/dist/index218.js.map +1 -1
  63. package/dist/index219.js +3 -20
  64. package/dist/index219.js.map +1 -1
  65. package/dist/index220.js +3 -29
  66. package/dist/index220.js.map +1 -1
  67. package/dist/index221.js +2 -8
  68. package/dist/index221.js.map +1 -1
  69. package/dist/index223.js +4 -4
  70. package/dist/index224.js +79 -6
  71. package/dist/index224.js.map +1 -1
  72. package/dist/index225.js +6 -17
  73. package/dist/index225.js.map +1 -1
  74. package/dist/index226.js +17 -4
  75. package/dist/index226.js.map +1 -1
  76. package/dist/index227.js +294 -78
  77. package/dist/index227.js.map +1 -1
  78. package/dist/index228.js +5 -434
  79. package/dist/index228.js.map +1 -1
  80. package/dist/index229.js +2 -89
  81. package/dist/index229.js.map +1 -1
  82. package/dist/index230.js +2 -200
  83. package/dist/index230.js.map +1 -1
  84. package/dist/index231.js +2 -2
  85. package/dist/index231.js.map +1 -1
  86. package/dist/index232.js +2 -224
  87. package/dist/index232.js.map +1 -1
  88. package/dist/index233.js +2 -258
  89. package/dist/index233.js.map +1 -1
  90. package/dist/index234.js +2 -6
  91. package/dist/index234.js.map +1 -1
  92. package/dist/index235.js +2 -2
  93. package/dist/index235.js.map +1 -1
  94. package/dist/index236.js +431 -291
  95. package/dist/index236.js.map +1 -1
  96. package/dist/index237.js +89 -2
  97. package/dist/index237.js.map +1 -1
  98. package/dist/index238.js +4 -2
  99. package/dist/index238.js.map +1 -1
  100. package/dist/index239.js +199 -116
  101. package/dist/index239.js.map +1 -1
  102. package/dist/index240.js +5 -106
  103. package/dist/index240.js.map +1 -1
  104. package/dist/index241.js +61 -152
  105. package/dist/index241.js.map +1 -1
  106. package/dist/index242.js +162 -1
  107. package/dist/index242.js.map +1 -1
  108. package/dist/index243.js +1 -71
  109. package/dist/index243.js.map +1 -1
  110. package/dist/index244.js +2 -5
  111. package/dist/index244.js.map +1 -1
  112. package/dist/index245.js +2 -15
  113. package/dist/index245.js.map +1 -1
  114. package/dist/index246.js +117 -2
  115. package/dist/index246.js.map +1 -1
  116. package/dist/index247.js +106 -2
  117. package/dist/index247.js.map +1 -1
  118. package/dist/index248.js +224 -2
  119. package/dist/index248.js.map +1 -1
  120. package/dist/index249.js +258 -2
  121. package/dist/index249.js.map +1 -1
  122. package/dist/index25.js +2 -2
  123. package/dist/index250.js +15 -2
  124. package/dist/index250.js.map +1 -1
  125. package/dist/index254.js +1 -1
  126. package/dist/index255.js +2 -2
  127. package/dist/index29.js +3 -3
  128. package/dist/index31.js +123 -123
  129. package/dist/index31.js.map +1 -1
  130. package/dist/index33.js +1 -1
  131. package/dist/index35.js +2 -2
  132. package/dist/index47.js +1 -1
  133. package/dist/index49.js +1 -1
  134. package/dist/index65.js +3 -3
  135. package/dist/index69.js +13 -13
  136. package/dist/index69.js.map +1 -1
  137. package/dist/index72.js +1 -1
  138. package/dist/index75.js +1 -1
  139. package/dist/index77.js +1 -1
  140. package/dist/index79.js +3 -3
  141. package/dist/style.css +1 -1
  142. package/package.json +1 -1
package/dist/index216.js CHANGED
@@ -1,238 +1,376 @@
1
- import { commonjsGlobal as f, getDefaultExportFromCjs as $ } from "./index234.js";
2
- var D = "Expected a function", O = "__lodash_hash_undefined__", j = 1 / 0, F = "[object Function]", N = "[object GeneratorFunction]", H = "[object Symbol]", G = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, R = /^\w*$/, A = /^\./, M = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, K = /[\\^$.*+?()[\]{}|]/g, L = /\\(\\)?/g, z = /^\[object .+?Constructor\]$/, U = typeof f == "object" && f && f.Object === Object && f, q = typeof self == "object" && self && self.Object === Object && self, d = U || q || Function("return this")();
3
- function J(t, e) {
4
- return t == null ? void 0 : t[e];
5
- }
6
- function V(t) {
7
- var e = !1;
8
- if (t != null && typeof t.toString != "function")
9
- try {
10
- e = !!(t + "");
11
- } catch {
12
- }
13
- return e;
14
- }
15
- var X = Array.prototype, Y = Function.prototype, w = Object.prototype, l = d["__core-js_shared__"], m = function() {
16
- var t = /[^.]+$/.exec(l && l.keys && l.keys.IE_PROTO || "");
17
- return t ? "Symbol(src)_1." + t : "";
18
- }(), x = Y.toString, _ = w.hasOwnProperty, P = w.toString, B = RegExp(
19
- "^" + x.call(_).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
20
- ), C = d.Symbol, Q = X.splice, W = T(d, "Map"), u = T(Object, "create"), v = C ? C.prototype : void 0, S = v ? v.toString : void 0;
21
- function a(t) {
22
- var e = -1, r = t ? t.length : 0;
23
- for (this.clear(); ++e < r; ) {
24
- var n = t[e];
25
- this.set(n[0], n[1]);
1
+ import { evaluate as j, getSide as M, getOppositePlacement as G, getExpandedPlacements as J, getOppositeAxisPlacements as K, getAlignmentSides as N, getAlignment as F, getSideAxis as Y, clamp as B, getAlignmentAxis as z, getPaddingObject as H, rectToClientRect as $, getOppositeAxis as Q, getAxisLength as I, min as X } from "./index246.js";
2
+ function _(o, i, m) {
3
+ let {
4
+ reference: n,
5
+ floating: r
6
+ } = o;
7
+ const e = Y(i), l = z(i), a = I(l), g = M(i), x = e === "y", d = n.x + n.width / 2 - r.width / 2, c = n.y + n.height / 2 - r.height / 2, f = n[a] / 2 - r[a] / 2;
8
+ let t;
9
+ switch (g) {
10
+ case "top":
11
+ t = {
12
+ x: d,
13
+ y: n.y - r.height
14
+ };
15
+ break;
16
+ case "bottom":
17
+ t = {
18
+ x: d,
19
+ y: n.y + n.height
20
+ };
21
+ break;
22
+ case "right":
23
+ t = {
24
+ x: n.x + n.width,
25
+ y: c
26
+ };
27
+ break;
28
+ case "left":
29
+ t = {
30
+ x: n.x - r.width,
31
+ y: c
32
+ };
33
+ break;
34
+ default:
35
+ t = {
36
+ x: n.x,
37
+ y: n.y
38
+ };
26
39
  }
27
- }
28
- function Z() {
29
- this.__data__ = u ? u(null) : {};
30
- }
31
- function k(t) {
32
- return this.has(t) && delete this.__data__[t];
33
- }
34
- function tt(t) {
35
- var e = this.__data__;
36
- if (u) {
37
- var r = e[t];
38
- return r === O ? void 0 : r;
40
+ switch (F(i)) {
41
+ case "start":
42
+ t[l] -= f * (m && x ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ t[l] += f * (m && x ? -1 : 1);
46
+ break;
39
47
  }
40
- return _.call(e, t) ? e[t] : void 0;
41
- }
42
- function et(t) {
43
- var e = this.__data__;
44
- return u ? e[t] !== void 0 : _.call(e, t);
45
- }
46
- function rt(t, e) {
47
- var r = this.__data__;
48
- return r[t] = u && e === void 0 ? O : e, this;
49
- }
50
- a.prototype.clear = Z;
51
- a.prototype.delete = k;
52
- a.prototype.get = tt;
53
- a.prototype.has = et;
54
- a.prototype.set = rt;
55
- function i(t) {
56
- var e = -1, r = t ? t.length : 0;
57
- for (this.clear(); ++e < r; ) {
58
- var n = t[e];
59
- this.set(n[0], n[1]);
48
+ return t;
49
+ }
50
+ const tt = async (o, i, m) => {
51
+ const {
52
+ placement: n = "bottom",
53
+ strategy: r = "absolute",
54
+ middleware: e = [],
55
+ platform: l
56
+ } = m, a = e.filter(Boolean), g = await (l.isRTL == null ? void 0 : l.isRTL(i));
57
+ let x = await l.getElementRects({
58
+ reference: o,
59
+ floating: i,
60
+ strategy: r
61
+ }), {
62
+ x: d,
63
+ y: c
64
+ } = _(x, n, g), f = n, t = {}, s = 0;
65
+ for (let w = 0; w < a.length; w++) {
66
+ const {
67
+ name: u,
68
+ fn: p
69
+ } = a[w], {
70
+ x: h,
71
+ y,
72
+ data: P,
73
+ reset: v
74
+ } = await p({
75
+ x: d,
76
+ y: c,
77
+ initialPlacement: n,
78
+ placement: f,
79
+ strategy: r,
80
+ middlewareData: t,
81
+ rects: x,
82
+ platform: l,
83
+ elements: {
84
+ reference: o,
85
+ floating: i
86
+ }
87
+ });
88
+ d = h ?? d, c = y ?? c, t = {
89
+ ...t,
90
+ [u]: {
91
+ ...t[u],
92
+ ...P
93
+ }
94
+ }, v && s <= 50 && (s++, typeof v == "object" && (v.placement && (f = v.placement), v.rects && (x = v.rects === !0 ? await l.getElementRects({
95
+ reference: o,
96
+ floating: i,
97
+ strategy: r
98
+ }) : v.rects), {
99
+ x: d,
100
+ y: c
101
+ } = _(x, f, g)), w = -1);
60
102
  }
103
+ return {
104
+ x: d,
105
+ y: c,
106
+ placement: f,
107
+ strategy: r,
108
+ middlewareData: t
109
+ };
110
+ };
111
+ async function W(o, i) {
112
+ var m;
113
+ i === void 0 && (i = {});
114
+ const {
115
+ x: n,
116
+ y: r,
117
+ platform: e,
118
+ rects: l,
119
+ elements: a,
120
+ strategy: g
121
+ } = o, {
122
+ boundary: x = "clippingAncestors",
123
+ rootBoundary: d = "viewport",
124
+ elementContext: c = "floating",
125
+ altBoundary: f = !1,
126
+ padding: t = 0
127
+ } = j(i, o), s = H(t), u = a[f ? c === "floating" ? "reference" : "floating" : c], p = $(await e.getClippingRect({
128
+ element: (m = await (e.isElement == null ? void 0 : e.isElement(u))) == null || m ? u : u.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(a.floating)),
129
+ boundary: x,
130
+ rootBoundary: d,
131
+ strategy: g
132
+ })), h = c === "floating" ? {
133
+ ...l.floating,
134
+ x: n,
135
+ y: r
136
+ } : l.reference, y = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(a.floating)), P = await (e.isElement == null ? void 0 : e.isElement(y)) ? await (e.getScale == null ? void 0 : e.getScale(y)) || {
137
+ x: 1,
138
+ y: 1
139
+ } : {
140
+ x: 1,
141
+ y: 1
142
+ }, v = $(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
143
+ elements: a,
144
+ rect: h,
145
+ offsetParent: y,
146
+ strategy: g
147
+ }) : h);
148
+ return {
149
+ top: (p.top - v.top + s.top) / P.y,
150
+ bottom: (v.bottom - p.bottom + s.bottom) / P.y,
151
+ left: (p.left - v.left + s.left) / P.x,
152
+ right: (v.right - p.right + s.right) / P.x
153
+ };
61
154
  }
62
- function nt() {
63
- this.__data__ = [];
64
- }
65
- function at(t) {
66
- var e = this.__data__, r = h(e, t);
67
- if (r < 0)
68
- return !1;
69
- var n = e.length - 1;
70
- return r == n ? e.pop() : Q.call(e, r, 1), !0;
71
- }
72
- function ot(t) {
73
- var e = this.__data__, r = h(e, t);
74
- return r < 0 ? void 0 : e[r][1];
75
- }
76
- function it(t) {
77
- return h(this.__data__, t) > -1;
78
- }
79
- function ct(t, e) {
80
- var r = this.__data__, n = h(r, t);
81
- return n < 0 ? r.push([t, e]) : r[n][1] = e, this;
82
- }
83
- i.prototype.clear = nt;
84
- i.prototype.delete = at;
85
- i.prototype.get = ot;
86
- i.prototype.has = it;
87
- i.prototype.set = ct;
88
- function o(t) {
89
- var e = -1, r = t ? t.length : 0;
90
- for (this.clear(); ++e < r; ) {
91
- var n = t[e];
92
- this.set(n[0], n[1]);
155
+ const et = (o) => ({
156
+ name: "arrow",
157
+ options: o,
158
+ async fn(i) {
159
+ const {
160
+ x: m,
161
+ y: n,
162
+ placement: r,
163
+ rects: e,
164
+ platform: l,
165
+ elements: a,
166
+ middlewareData: g
167
+ } = i, {
168
+ element: x,
169
+ padding: d = 0
170
+ } = j(o, i) || {};
171
+ if (x == null)
172
+ return {};
173
+ const c = H(d), f = {
174
+ x: m,
175
+ y: n
176
+ }, t = z(r), s = I(t), w = await l.getDimensions(x), u = t === "y", p = u ? "top" : "left", h = u ? "bottom" : "right", y = u ? "clientHeight" : "clientWidth", P = e.reference[s] + e.reference[t] - f[t] - e.floating[s], v = f[t] - e.reference[t], D = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(x));
177
+ let O = D ? D[y] : 0;
178
+ (!O || !await (l.isElement == null ? void 0 : l.isElement(D))) && (O = a.floating[y] || e.floating[s]);
179
+ const E = P / 2 - v / 2, S = O / 2 - w[s] / 2 - 1, T = X(c[p], S), L = X(c[h], S), b = T, V = O - w[s] - L, A = O / 2 - w[s] / 2 + E, R = B(b, A, V), k = !g.arrow && F(r) != null && A !== R && e.reference[s] / 2 - (A < b ? T : L) - w[s] / 2 < 0, C = k ? A < b ? A - b : A - V : 0;
180
+ return {
181
+ [t]: f[t] + C,
182
+ data: {
183
+ [t]: R,
184
+ centerOffset: A - R - C,
185
+ ...k && {
186
+ alignmentOffset: C
187
+ }
188
+ },
189
+ reset: k
190
+ };
93
191
  }
94
- }
95
- function st() {
96
- this.__data__ = {
97
- hash: new a(),
98
- map: new (W || i)(),
99
- string: new a()
192
+ }), nt = function(o) {
193
+ return o === void 0 && (o = {}), {
194
+ name: "flip",
195
+ options: o,
196
+ async fn(i) {
197
+ var m, n;
198
+ const {
199
+ placement: r,
200
+ middlewareData: e,
201
+ rects: l,
202
+ initialPlacement: a,
203
+ platform: g,
204
+ elements: x
205
+ } = i, {
206
+ mainAxis: d = !0,
207
+ crossAxis: c = !0,
208
+ fallbackPlacements: f,
209
+ fallbackStrategy: t = "bestFit",
210
+ fallbackAxisSideDirection: s = "none",
211
+ flipAlignment: w = !0,
212
+ ...u
213
+ } = j(o, i);
214
+ if ((m = e.arrow) != null && m.alignmentOffset)
215
+ return {};
216
+ const p = M(r), h = M(a) === a, y = await (g.isRTL == null ? void 0 : g.isRTL(x.floating)), P = f || (h || !w ? [G(a)] : J(a));
217
+ !f && s !== "none" && P.push(...K(a, w, s, y));
218
+ const v = [a, ...P], D = await W(i, u), O = [];
219
+ let E = ((n = e.flip) == null ? void 0 : n.overflows) || [];
220
+ if (d && O.push(D[p]), c) {
221
+ const b = N(r, l, y);
222
+ O.push(D[b[0]], D[b[1]]);
223
+ }
224
+ if (E = [...E, {
225
+ placement: r,
226
+ overflows: O
227
+ }], !O.every((b) => b <= 0)) {
228
+ var S, T;
229
+ const b = (((S = e.flip) == null ? void 0 : S.index) || 0) + 1, V = v[b];
230
+ if (V)
231
+ return {
232
+ data: {
233
+ index: b,
234
+ overflows: E
235
+ },
236
+ reset: {
237
+ placement: V
238
+ }
239
+ };
240
+ let A = (T = E.filter((R) => R.overflows[0] <= 0).sort((R, k) => R.overflows[1] - k.overflows[1])[0]) == null ? void 0 : T.placement;
241
+ if (!A)
242
+ switch (t) {
243
+ case "bestFit": {
244
+ var L;
245
+ const R = (L = E.map((k) => [k.placement, k.overflows.filter((C) => C > 0).reduce((C, q) => C + q, 0)]).sort((k, C) => k[1] - C[1])[0]) == null ? void 0 : L[0];
246
+ R && (A = R);
247
+ break;
248
+ }
249
+ case "initialPlacement":
250
+ A = a;
251
+ break;
252
+ }
253
+ if (r !== A)
254
+ return {
255
+ reset: {
256
+ placement: A
257
+ }
258
+ };
259
+ }
260
+ return {};
261
+ }
262
+ };
263
+ };
264
+ async function U(o, i) {
265
+ const {
266
+ placement: m,
267
+ platform: n,
268
+ elements: r
269
+ } = o, e = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), l = M(m), a = F(m), g = Y(m) === "y", x = ["left", "top"].includes(l) ? -1 : 1, d = e && g ? -1 : 1, c = j(i, o);
270
+ let {
271
+ mainAxis: f,
272
+ crossAxis: t,
273
+ alignmentAxis: s
274
+ } = typeof c == "number" ? {
275
+ mainAxis: c,
276
+ crossAxis: 0,
277
+ alignmentAxis: null
278
+ } : {
279
+ mainAxis: 0,
280
+ crossAxis: 0,
281
+ alignmentAxis: null,
282
+ ...c
283
+ };
284
+ return a && typeof s == "number" && (t = a === "end" ? s * -1 : s), g ? {
285
+ x: t * d,
286
+ y: f * x
287
+ } : {
288
+ x: f * x,
289
+ y: t * d
100
290
  };
101
291
  }
102
- function ut(t) {
103
- return p(this, t).delete(t);
104
- }
105
- function ft(t) {
106
- return p(this, t).get(t);
107
- }
108
- function ht(t) {
109
- return p(this, t).has(t);
110
- }
111
- function pt(t, e) {
112
- return p(this, t).set(t, e), this;
113
- }
114
- o.prototype.clear = st;
115
- o.prototype.delete = ut;
116
- o.prototype.get = ft;
117
- o.prototype.has = ht;
118
- o.prototype.set = pt;
119
- function h(t, e) {
120
- for (var r = t.length; r--; )
121
- if (Ot(t[r][0], e))
122
- return r;
123
- return -1;
124
- }
125
- function lt(t, e) {
126
- e = gt(e, t) ? [e] : yt(e);
127
- for (var r = 0, n = e.length; t != null && r < n; )
128
- t = t[vt(e[r++])];
129
- return r && r == n ? t : void 0;
130
- }
131
- function dt(t) {
132
- if (!E(t) || mt(t))
133
- return !1;
134
- var e = jt(t) || V(t) ? B : z;
135
- return e.test(St(t));
136
- }
137
- function _t(t) {
138
- if (typeof t == "string")
139
- return t;
140
- if (g(t))
141
- return S ? S.call(t) : "";
142
- var e = t + "";
143
- return e == "0" && 1 / t == -j ? "-0" : e;
144
- }
145
- function yt(t) {
146
- return I(t) ? t : Ct(t);
147
- }
148
- function p(t, e) {
149
- var r = t.__data__;
150
- return bt(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
151
- }
152
- function T(t, e) {
153
- var r = J(t, e);
154
- return dt(r) ? r : void 0;
155
- }
156
- function gt(t, e) {
157
- if (I(t))
158
- return !1;
159
- var r = typeof t;
160
- return r == "number" || r == "symbol" || r == "boolean" || t == null || g(t) ? !0 : R.test(t) || !G.test(t) || e != null && t in Object(e);
161
- }
162
- function bt(t) {
163
- var e = typeof t;
164
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
165
- }
166
- function mt(t) {
167
- return !!m && m in t;
168
- }
169
- var Ct = y(function(t) {
170
- t = xt(t);
171
- var e = [];
172
- return A.test(t) && e.push(""), t.replace(M, function(r, n, c, s) {
173
- e.push(c ? s.replace(L, "$1") : n || r);
174
- }), e;
175
- });
176
- function vt(t) {
177
- if (typeof t == "string" || g(t))
178
- return t;
179
- var e = t + "";
180
- return e == "0" && 1 / t == -j ? "-0" : e;
181
- }
182
- function St(t) {
183
- if (t != null) {
184
- try {
185
- return x.call(t);
186
- } catch {
292
+ const it = function(o) {
293
+ return o === void 0 && (o = 0), {
294
+ name: "offset",
295
+ options: o,
296
+ async fn(i) {
297
+ var m, n;
298
+ const {
299
+ x: r,
300
+ y: e,
301
+ placement: l,
302
+ middlewareData: a
303
+ } = i, g = await U(i, o);
304
+ return l === ((m = a.offset) == null ? void 0 : m.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
305
+ x: r + g.x,
306
+ y: e + g.y,
307
+ data: {
308
+ ...g,
309
+ placement: l
310
+ }
311
+ };
187
312
  }
188
- try {
189
- return t + "";
190
- } catch {
313
+ };
314
+ }, ot = function(o) {
315
+ return o === void 0 && (o = {}), {
316
+ name: "shift",
317
+ options: o,
318
+ async fn(i) {
319
+ const {
320
+ x: m,
321
+ y: n,
322
+ placement: r
323
+ } = i, {
324
+ mainAxis: e = !0,
325
+ crossAxis: l = !1,
326
+ limiter: a = {
327
+ fn: (u) => {
328
+ let {
329
+ x: p,
330
+ y: h
331
+ } = u;
332
+ return {
333
+ x: p,
334
+ y: h
335
+ };
336
+ }
337
+ },
338
+ ...g
339
+ } = j(o, i), x = {
340
+ x: m,
341
+ y: n
342
+ }, d = await W(i, g), c = Y(M(r)), f = Q(c);
343
+ let t = x[f], s = x[c];
344
+ if (e) {
345
+ const u = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", h = t + d[u], y = t - d[p];
346
+ t = B(h, t, y);
347
+ }
348
+ if (l) {
349
+ const u = c === "y" ? "top" : "left", p = c === "y" ? "bottom" : "right", h = s + d[u], y = s - d[p];
350
+ s = B(h, s, y);
351
+ }
352
+ const w = a.fn({
353
+ ...i,
354
+ [f]: t,
355
+ [c]: s
356
+ });
357
+ return {
358
+ ...w,
359
+ data: {
360
+ x: w.x - m,
361
+ y: w.y - n
362
+ }
363
+ };
191
364
  }
192
- }
193
- return "";
194
- }
195
- function y(t, e) {
196
- if (typeof t != "function" || e && typeof e != "function")
197
- throw new TypeError(D);
198
- var r = function() {
199
- var n = arguments, c = e ? e.apply(this, n) : n[0], s = r.cache;
200
- if (s.has(c))
201
- return s.get(c);
202
- var b = t.apply(this, n);
203
- return r.cache = s.set(c, b), b;
204
365
  };
205
- return r.cache = new (y.Cache || o)(), r;
206
- }
207
- y.Cache = o;
208
- function Ot(t, e) {
209
- return t === e || t !== t && e !== e;
210
- }
211
- var I = Array.isArray;
212
- function jt(t) {
213
- var e = E(t) ? P.call(t) : "";
214
- return e == F || e == N;
215
- }
216
- function E(t) {
217
- var e = typeof t;
218
- return !!t && (e == "object" || e == "function");
219
- }
220
- function wt(t) {
221
- return !!t && typeof t == "object";
222
- }
223
- function g(t) {
224
- return typeof t == "symbol" || wt(t) && P.call(t) == H;
225
- }
226
- function xt(t) {
227
- return t == null ? "" : _t(t);
228
- }
229
- function Pt(t, e, r) {
230
- var n = t == null ? void 0 : lt(t, e);
231
- return n === void 0 ? r : n;
232
- }
233
- var Tt = Pt;
234
- const Et = /* @__PURE__ */ $(Tt);
366
+ };
235
367
  export {
236
- Et as default
368
+ et as arrow,
369
+ tt as computePosition,
370
+ W as detectOverflow,
371
+ nt as flip,
372
+ it as offset,
373
+ $ as rectToClientRect,
374
+ ot as shift
237
375
  };
238
376
  //# sourceMappingURL=index216.js.map