bitboss-ui 0.2.7 → 0.2.8

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 (132) hide show
  1. package/dist/index101.js +3 -3
  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 +4 -4
  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/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index128.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +9 -9
  17. package/dist/index19.js +59 -59
  18. package/dist/index19.js.map +1 -1
  19. package/dist/index195.js +2 -3
  20. package/dist/index195.js.map +1 -1
  21. package/dist/index196.js +2 -35
  22. package/dist/index196.js.map +1 -1
  23. package/dist/index197.js +4 -6
  24. package/dist/index197.js.map +1 -1
  25. package/dist/index198.js +3 -2
  26. package/dist/index198.js.map +1 -1
  27. package/dist/index199.js +35 -2
  28. package/dist/index199.js.map +1 -1
  29. package/dist/index200.js +6 -4
  30. package/dist/index200.js.map +1 -1
  31. package/dist/index201.js +324 -208
  32. package/dist/index201.js.map +1 -1
  33. package/dist/index202.js +131 -348
  34. package/dist/index202.js.map +1 -1
  35. package/dist/index203.js +5 -134
  36. package/dist/index203.js.map +1 -1
  37. package/dist/index204.js +19 -5
  38. package/dist/index204.js.map +1 -1
  39. package/dist/index205.js +2 -19
  40. package/dist/index205.js.map +1 -1
  41. package/dist/index206.js +2 -2
  42. package/dist/index206.js.map +1 -1
  43. package/dist/index207.js +186 -2
  44. package/dist/index207.js.map +1 -1
  45. package/dist/index208.js +23 -186
  46. package/dist/index208.js.map +1 -1
  47. package/dist/index209.js +369 -23
  48. package/dist/index209.js.map +1 -1
  49. package/dist/index21.js +2 -2
  50. package/dist/index210.js +3 -369
  51. package/dist/index210.js.map +1 -1
  52. package/dist/index211.js +3 -16
  53. package/dist/index211.js.map +1 -1
  54. package/dist/index212.js +235 -16
  55. package/dist/index212.js.map +1 -1
  56. package/dist/index213.js +2 -20
  57. package/dist/index213.js.map +1 -1
  58. package/dist/index214.js +10 -29
  59. package/dist/index214.js.map +1 -1
  60. package/dist/index215.js +2 -8
  61. package/dist/index215.js.map +1 -1
  62. package/dist/index216.js +16 -3
  63. package/dist/index216.js.map +1 -1
  64. package/dist/index217.js +16 -3
  65. package/dist/index217.js.map +1 -1
  66. package/dist/index218.js +20 -2
  67. package/dist/index218.js.map +1 -1
  68. package/dist/index219.js +29 -2
  69. package/dist/index219.js.map +1 -1
  70. package/dist/index220.js +8 -10
  71. package/dist/index220.js.map +1 -1
  72. package/dist/index222.js +4 -4
  73. package/dist/index223.js +1 -1
  74. package/dist/index225.js +1 -1
  75. package/dist/index226.js +3 -434
  76. package/dist/index226.js.map +1 -1
  77. package/dist/index227.js +428 -82
  78. package/dist/index227.js.map +1 -1
  79. package/dist/index228.js +89 -2
  80. package/dist/index228.js.map +1 -1
  81. package/dist/index229.js +6 -200
  82. package/dist/index229.js.map +1 -1
  83. package/dist/index23.js +1 -1
  84. package/dist/index230.js +2 -4
  85. package/dist/index230.js.map +1 -1
  86. package/dist/index231.js +294 -5
  87. package/dist/index231.js.map +1 -1
  88. package/dist/index232.js +2 -2
  89. package/dist/index233.js +2 -295
  90. package/dist/index233.js.map +1 -1
  91. package/dist/index234.js +117 -2
  92. package/dist/index234.js.map +1 -1
  93. package/dist/index235.js +106 -2
  94. package/dist/index235.js.map +1 -1
  95. package/dist/index236.js +199 -116
  96. package/dist/index236.js.map +1 -1
  97. package/dist/index237.js +2 -106
  98. package/dist/index237.js.map +1 -1
  99. package/dist/index238.js +2 -2
  100. package/dist/index238.js.map +1 -1
  101. package/dist/index239.js +69 -2
  102. package/dist/index239.js.map +1 -1
  103. package/dist/index240.js +162 -2
  104. package/dist/index240.js.map +1 -1
  105. package/dist/index241.js +2 -2
  106. package/dist/index242.js +1 -1
  107. package/dist/index243.js +1 -1
  108. package/dist/index244.js +2 -162
  109. package/dist/index244.js.map +1 -1
  110. package/dist/index245.js +2 -2
  111. package/dist/index246.js +2 -69
  112. package/dist/index246.js.map +1 -1
  113. package/dist/index247.js +2 -2
  114. package/dist/index247.js.map +1 -1
  115. package/dist/index248.js +1 -1
  116. package/dist/index25.js +2 -2
  117. package/dist/index252.js +1 -1
  118. package/dist/index253.js +2 -2
  119. package/dist/index29.js +3 -3
  120. package/dist/index31.js +6 -6
  121. package/dist/index33.js +2 -2
  122. package/dist/index35.js +2 -2
  123. package/dist/index47.js +1 -1
  124. package/dist/index49.js +1 -1
  125. package/dist/index65.js +3 -3
  126. package/dist/index72.js +1 -1
  127. package/dist/index75.js +34 -34
  128. package/dist/index75.js.map +1 -1
  129. package/dist/index79.js +3 -3
  130. package/dist/index81.js +1 -1
  131. package/dist/style.css +1 -1
  132. package/package.json +1 -1
package/dist/index201.js CHANGED
@@ -1,238 +1,354 @@
1
- import { commonjsGlobal as f, getDefaultExportFromCjs as $ } from "./index231.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]);
26
- }
1
+ import { computePosition as Z } from "./index209.js";
2
+ import { arrow as Ct, detectOverflow as Et, flip as Ot, offset as Tt, shift as Lt } from "./index209.js";
3
+ import { createCoords as x, rectToClientRect as U, round as A, max as T, min as H, floor as B } from "./index234.js";
4
+ import { getOverflowAncestors as I, isElement as y, getWindow as E, getComputedStyle as m, getDocumentElement as b, isHTMLElement as v, isWebKit as _, getNodeName as F, isOverflowElement as z, getNodeScroll as N, isTableElement as P, isContainingBlock as K, getContainingBlock as tt, getParentNode as V, isLastTraversableNode as X } from "./index235.js";
5
+ function j(t) {
6
+ const e = m(t);
7
+ let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
8
+ const n = v(t), c = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, r = A(o) !== c || A(i) !== s;
9
+ return r && (o = c, i = s), {
10
+ width: o,
11
+ height: i,
12
+ $: r
13
+ };
14
+ }
15
+ function M(t) {
16
+ return y(t) ? t : t.contextElement;
17
+ }
18
+ function L(t) {
19
+ const e = M(t);
20
+ if (!v(e))
21
+ return x(1);
22
+ const o = e.getBoundingClientRect(), {
23
+ width: i,
24
+ height: n,
25
+ $: c
26
+ } = j(e);
27
+ let s = (c ? A(o.width) : o.width) / i, r = (c ? A(o.height) : o.height) / n;
28
+ return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
29
+ x: s,
30
+ y: r
31
+ };
27
32
  }
28
- function Z() {
29
- this.__data__ = u ? u(null) : {};
33
+ const et = /* @__PURE__ */ x(0);
34
+ function G(t) {
35
+ const e = E(t);
36
+ return !_() || !e.visualViewport ? et : {
37
+ x: e.visualViewport.offsetLeft,
38
+ y: e.visualViewport.offsetTop
39
+ };
30
40
  }
31
- function k(t) {
32
- return this.has(t) && delete this.__data__[t];
41
+ function ot(t, e, o) {
42
+ return e === void 0 && (e = !1), !o || e && o !== E(t) ? !1 : e;
43
+ }
44
+ function O(t, e, o, i) {
45
+ e === void 0 && (e = !1), o === void 0 && (o = !1);
46
+ const n = t.getBoundingClientRect(), c = M(t);
47
+ let s = x(1);
48
+ e && (i ? y(i) && (s = L(i)) : s = L(t));
49
+ const r = ot(c, o, i) ? G(c) : x(0);
50
+ let l = (n.left + r.x) / s.x, f = (n.top + r.y) / s.y, p = n.width / s.x, d = n.height / s.y;
51
+ if (c) {
52
+ const w = E(c), a = i && y(i) ? E(i) : i;
53
+ let g = w.frameElement;
54
+ for (; g && i && a !== w; ) {
55
+ const h = L(g), R = g.getBoundingClientRect(), u = m(g), C = R.left + (g.clientLeft + parseFloat(u.paddingLeft)) * h.x, W = R.top + (g.clientTop + parseFloat(u.paddingTop)) * h.y;
56
+ l *= h.x, f *= h.y, p *= h.x, d *= h.y, l += C, f += W, g = E(g).frameElement;
57
+ }
58
+ }
59
+ return U({
60
+ width: p,
61
+ height: d,
62
+ x: l,
63
+ y: f
64
+ });
33
65
  }
34
- function tt(t) {
35
- var e = this.__data__;
36
- if (u) {
37
- var r = e[t];
38
- return r === O ? void 0 : r;
66
+ function it(t) {
67
+ let {
68
+ rect: e,
69
+ offsetParent: o,
70
+ strategy: i
71
+ } = t;
72
+ const n = v(o), c = b(o);
73
+ if (o === c)
74
+ return e;
75
+ let s = {
76
+ scrollLeft: 0,
77
+ scrollTop: 0
78
+ }, r = x(1);
79
+ const l = x(0);
80
+ if ((n || !n && i !== "fixed") && ((F(o) !== "body" || z(c)) && (s = N(o)), v(o))) {
81
+ const f = O(o);
82
+ r = L(o), l.x = f.x + o.clientLeft, l.y = f.y + o.clientTop;
39
83
  }
40
- return _.call(e, t) ? e[t] : void 0;
84
+ return {
85
+ width: e.width * r.x,
86
+ height: e.height * r.y,
87
+ x: e.x * r.x - s.scrollLeft * r.x + l.x,
88
+ y: e.y * r.y - s.scrollTop * r.y + l.y
89
+ };
41
90
  }
42
- function et(t) {
43
- var e = this.__data__;
44
- return u ? e[t] !== void 0 : _.call(e, t);
91
+ function nt(t) {
92
+ return Array.from(t.getClientRects());
93
+ }
94
+ function J(t) {
95
+ return O(b(t)).left + N(t).scrollLeft;
96
+ }
97
+ function st(t) {
98
+ const e = b(t), o = N(t), i = t.ownerDocument.body, n = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
99
+ let s = -o.scrollLeft + J(t);
100
+ const r = -o.scrollTop;
101
+ return m(i).direction === "rtl" && (s += T(e.clientWidth, i.clientWidth) - n), {
102
+ width: n,
103
+ height: c,
104
+ x: s,
105
+ y: r
106
+ };
45
107
  }
46
108
  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]);
109
+ const o = E(t), i = b(t), n = o.visualViewport;
110
+ let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
111
+ if (n) {
112
+ c = n.width, s = n.height;
113
+ const f = _();
114
+ (!f || f && e === "fixed") && (r = n.offsetLeft, l = n.offsetTop);
60
115
  }
116
+ return {
117
+ width: c,
118
+ height: s,
119
+ x: r,
120
+ y: l
121
+ };
61
122
  }
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;
123
+ function ct(t, e) {
124
+ const o = O(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, c = v(t) ? L(t) : x(1), s = t.clientWidth * c.x, r = t.clientHeight * c.y, l = n * c.x, f = i * c.y;
125
+ return {
126
+ width: s,
127
+ height: r,
128
+ x: l,
129
+ y: f
130
+ };
71
131
  }
72
- function ot(t) {
73
- var e = this.__data__, r = h(e, t);
74
- return r < 0 ? void 0 : e[r][1];
132
+ function k(t, e, o) {
133
+ let i;
134
+ if (e === "viewport")
135
+ i = rt(t, o);
136
+ else if (e === "document")
137
+ i = st(b(t));
138
+ else if (y(e))
139
+ i = ct(e, o);
140
+ else {
141
+ const n = G(t);
142
+ i = {
143
+ ...e,
144
+ x: e.x - n.x,
145
+ y: e.y - n.y
146
+ };
147
+ }
148
+ return U(i);
75
149
  }
76
- function it(t) {
77
- return h(this.__data__, t) > -1;
150
+ function Q(t, e) {
151
+ const o = V(t);
152
+ return o === e || !y(o) || X(o) ? !1 : m(o).position === "fixed" || Q(o, e);
78
153
  }
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]);
154
+ function lt(t, e) {
155
+ const o = e.get(t);
156
+ if (o)
157
+ return o;
158
+ let i = I(t, [], !1).filter((r) => y(r) && F(r) !== "body"), n = null;
159
+ const c = m(t).position === "fixed";
160
+ let s = c ? V(t) : t;
161
+ for (; y(s) && !X(s); ) {
162
+ const r = m(s), l = K(s);
163
+ !l && r.position === "fixed" && (n = null), (c ? !l && !n : !l && r.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || z(s) && !l && Q(t, s)) ? i = i.filter((p) => p !== s) : n = r, s = V(s);
93
164
  }
165
+ return e.set(t, i), i;
94
166
  }
95
- function st() {
96
- this.__data__ = {
97
- hash: new a(),
98
- map: new (W || i)(),
99
- string: new a()
167
+ function ft(t) {
168
+ let {
169
+ element: e,
170
+ boundary: o,
171
+ rootBoundary: i,
172
+ strategy: n
173
+ } = t;
174
+ const s = [...o === "clippingAncestors" ? lt(e, this._c) : [].concat(o), i], r = s[0], l = s.reduce((f, p) => {
175
+ const d = k(e, p, n);
176
+ return f.top = T(d.top, f.top), f.right = H(d.right, f.right), f.bottom = H(d.bottom, f.bottom), f.left = T(d.left, f.left), f;
177
+ }, k(e, r, n));
178
+ return {
179
+ width: l.right - l.left,
180
+ height: l.bottom - l.top,
181
+ x: l.left,
182
+ y: l.top
100
183
  };
101
184
  }
102
185
  function ut(t) {
103
- return p(this, t).delete(t);
104
- }
105
- function ft(t) {
106
- return p(this, t).get(t);
186
+ return j(t);
107
187
  }
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;
188
+ function ht(t, e, o) {
189
+ const i = v(e), n = b(e), c = o === "fixed", s = O(t, !0, c, e);
190
+ let r = {
191
+ scrollLeft: 0,
192
+ scrollTop: 0
193
+ };
194
+ const l = x(0);
195
+ if (i || !i && !c)
196
+ if ((F(e) !== "body" || z(n)) && (r = N(e)), i) {
197
+ const f = O(e, !0, c, e);
198
+ l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
199
+ } else
200
+ n && (l.x = J(n));
201
+ return {
202
+ x: s.left + r.scrollLeft - l.x,
203
+ y: s.top + r.scrollTop - l.y,
204
+ width: s.width,
205
+ height: s.height
206
+ };
130
207
  }
208
+ function q(t, e) {
209
+ return !v(t) || m(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
210
+ }
211
+ function Y(t, e) {
212
+ const o = E(t);
213
+ if (!v(t))
214
+ return o;
215
+ let i = q(t, e);
216
+ for (; i && P(i) && m(i).position === "static"; )
217
+ i = q(i, e);
218
+ return i && (F(i) === "html" || F(i) === "body" && m(i).position === "static" && !K(i)) ? o : i || tt(t) || o;
219
+ }
220
+ const at = async function(t) {
221
+ let {
222
+ reference: e,
223
+ floating: o,
224
+ strategy: i
225
+ } = t;
226
+ const n = this.getOffsetParent || Y, c = this.getDimensions;
227
+ return {
228
+ reference: ht(e, await n(o), i),
229
+ floating: {
230
+ x: 0,
231
+ y: 0,
232
+ ...await c(o)
233
+ }
234
+ };
235
+ };
131
236
  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 {
237
+ return m(t).direction === "rtl";
238
+ }
239
+ const gt = {
240
+ convertOffsetParentRelativeRectToViewportRelativeRect: it,
241
+ getDocumentElement: b,
242
+ getClippingRect: ft,
243
+ getOffsetParent: Y,
244
+ getElementRects: at,
245
+ getClientRects: nt,
246
+ getDimensions: ut,
247
+ getScale: L,
248
+ isElement: y,
249
+ isRTL: dt
250
+ };
251
+ function pt(t, e) {
252
+ let o = null, i;
253
+ const n = b(t);
254
+ function c() {
255
+ clearTimeout(i), o && o.disconnect(), o = null;
256
+ }
257
+ function s(r, l) {
258
+ r === void 0 && (r = !1), l === void 0 && (l = 1), c();
259
+ const {
260
+ left: f,
261
+ top: p,
262
+ width: d,
263
+ height: w
264
+ } = t.getBoundingClientRect();
265
+ if (r || e(), !d || !w)
266
+ return;
267
+ const a = B(p), g = B(n.clientWidth - (f + d)), h = B(n.clientHeight - (p + w)), R = B(f), C = {
268
+ rootMargin: -a + "px " + -g + "px " + -h + "px " + -R + "px",
269
+ threshold: T(0, H(1, l)) || 1
270
+ };
271
+ let W = !0;
272
+ function S($) {
273
+ const D = $[0].intersectionRatio;
274
+ if (D !== l) {
275
+ if (!W)
276
+ return s();
277
+ D ? s(!1, D) : i = setTimeout(() => {
278
+ s(!1, 1e-7);
279
+ }, 100);
280
+ }
281
+ W = !1;
187
282
  }
188
283
  try {
189
- return t + "";
284
+ o = new IntersectionObserver(S, {
285
+ ...C,
286
+ // Handle <iframe>s
287
+ root: n.ownerDocument
288
+ });
190
289
  } catch {
290
+ o = new IntersectionObserver(S, C);
191
291
  }
292
+ o.observe(t);
293
+ }
294
+ return s(!0), c;
295
+ }
296
+ function yt(t, e, o, i) {
297
+ i === void 0 && (i = {});
298
+ const {
299
+ ancestorScroll: n = !0,
300
+ ancestorResize: c = !0,
301
+ elementResize: s = typeof ResizeObserver == "function",
302
+ layoutShift: r = typeof IntersectionObserver == "function",
303
+ animationFrame: l = !1
304
+ } = i, f = M(t), p = n || c ? [...f ? I(f) : [], ...I(e)] : [];
305
+ p.forEach((u) => {
306
+ n && u.addEventListener("scroll", o, {
307
+ passive: !0
308
+ }), c && u.addEventListener("resize", o);
309
+ });
310
+ const d = f && r ? pt(f, o) : null;
311
+ let w = -1, a = null;
312
+ s && (a = new ResizeObserver((u) => {
313
+ let [C] = u;
314
+ C && C.target === f && a && (a.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
315
+ a && a.observe(e);
316
+ })), o();
317
+ }), f && !l && a.observe(f), a.observe(e));
318
+ let g, h = l ? O(t) : null;
319
+ l && R();
320
+ function R() {
321
+ const u = O(t);
322
+ h && (u.x !== h.x || u.y !== h.y || u.width !== h.width || u.height !== h.height) && o(), h = u, g = requestAnimationFrame(R);
192
323
  }
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;
324
+ return o(), () => {
325
+ p.forEach((u) => {
326
+ n && u.removeEventListener("scroll", o), c && u.removeEventListener("resize", o);
327
+ }), d && d(), a && a.disconnect(), a = null, l && cancelAnimationFrame(g);
204
328
  };
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
329
  }
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);
330
+ const vt = (t, e, o) => {
331
+ const i = /* @__PURE__ */ new Map(), n = {
332
+ platform: gt,
333
+ ...o
334
+ }, c = {
335
+ ...n.platform,
336
+ _c: i
337
+ };
338
+ return Z(t, e, {
339
+ ...n,
340
+ platform: c
341
+ });
342
+ };
235
343
  export {
236
- Et as default
344
+ Ct as arrow,
345
+ yt as autoUpdate,
346
+ vt as computePosition,
347
+ Et as detectOverflow,
348
+ Ot as flip,
349
+ I as getOverflowAncestors,
350
+ Tt as offset,
351
+ gt as platform,
352
+ Lt as shift
237
353
  };
238
354
  //# sourceMappingURL=index201.js.map