@caspeco/casper-ui-library 9.0.2 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/icon/icons/calendar-icon.d.ts +2 -0
- package/dist/components/icon/icons/calendar-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/calendar-icon.js +8 -0
- package/dist/components/icon/icons/cart-icon.js +1 -1
- package/dist/components/icon/icons/closed-icon.d.ts +2 -0
- package/dist/components/icon/icons/closed-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/closed-icon.js +8 -0
- package/dist/components/icon/icons/comment-add-icon.d.ts +2 -0
- package/dist/components/icon/icons/comment-add-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/comment-add-icon.js +8 -0
- package/dist/components/icon/icons/comment-icon.js +1 -1
- package/dist/components/icon/icons/deliverect-icon.d.ts +2 -0
- package/dist/components/icon/icons/deliverect-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/deliverect-icon.js +8 -0
- package/dist/components/icon/icons/door-closed-icon.d.ts +2 -0
- package/dist/components/icon/icons/door-closed-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/door-closed-icon.js +8 -0
- package/dist/components/icon/icons/door-open-icon.d.ts +2 -0
- package/dist/components/icon/icons/door-open-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/door-open-icon.js +8 -0
- package/dist/components/icon/icons/failed-print-icon.d.ts +2 -0
- package/dist/components/icon/icons/failed-print-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/failed-print-icon.js +8 -0
- package/dist/components/icon/icons/index.d.ts +27 -4
- package/dist/components/icon/icons/index.d.ts.map +1 -1
- package/dist/components/icon/icons/key-command-icon.d.ts +2 -0
- package/dist/components/icon/icons/key-command-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/key-command-icon.js +8 -0
- package/dist/components/icon/icons/key-enter-icon.d.ts +2 -0
- package/dist/components/icon/icons/key-enter-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/key-enter-icon.js +8 -0
- package/dist/components/icon/icons/key-option-icon.d.ts +2 -0
- package/dist/components/icon/icons/key-option-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/key-option-icon.js +8 -0
- package/dist/components/icon/icons/message-add-icon.d.ts +2 -0
- package/dist/components/icon/icons/message-add-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/message-add-icon.js +8 -0
- package/dist/components/icon/icons/message-icon.js +1 -1
- package/dist/components/icon/icons/message-lines-icon.d.ts +2 -0
- package/dist/components/icon/icons/message-lines-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/message-lines-icon.js +8 -0
- package/dist/components/icon/icons/module-home-icon.js +1 -1
- package/dist/components/icon/icons/no-cart-icon.d.ts +2 -0
- package/dist/components/icon/icons/no-cart-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/no-cart-icon.js +8 -0
- package/dist/components/icon/icons/note-icon.d.ts +2 -0
- package/dist/components/icon/icons/note-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/note-icon.js +8 -0
- package/dist/components/icon/icons/product-my-pages-icon.d.ts +2 -0
- package/dist/components/icon/icons/product-my-pages-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/product-my-pages-icon.js +8 -0
- package/dist/components/icon/icons/puck-icon.d.ts +2 -0
- package/dist/components/icon/icons/puck-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/puck-icon.js +8 -0
- package/dist/components/icon/icons/redo-icon.d.ts +2 -0
- package/dist/components/icon/icons/redo-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/redo-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-hide-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-hide-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-hide-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-left-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-left-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-left-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-right-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-right-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-right-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-show-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-show-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-show-icon.js +8 -0
- package/dist/components/icon/icons/swatch-icon.d.ts +2 -0
- package/dist/components/icon/icons/swatch-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/swatch-icon.js +8 -0
- package/dist/components/icon/icons/trivec-icon.d.ts +2 -0
- package/dist/components/icon/icons/trivec-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/trivec-icon.js +9 -0
- package/dist/components/icon/icons/waste-icon.d.ts +2 -0
- package/dist/components/icon/icons/waste-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/waste-icon.js +8 -0
- package/dist/components/table/table-toolbar-settings.d.ts +15 -1
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +71 -44
- package/dist/components/table/table-toolbar-settings.spec.d.ts +2 -0
- package/dist/components/table/table-toolbar-settings.spec.d.ts.map +1 -0
- package/dist/components/table/table.constants.d.ts +2 -0
- package/dist/components/table/table.constants.d.ts.map +1 -0
- package/dist/components/table/table.constants.js +4 -0
- package/dist/components/table/translations.d.ts +14 -0
- package/dist/components/table/translations.d.ts.map +1 -1
- package/dist/components/table/translations.js +12 -0
- package/dist/index.js +727 -681
- package/dist/node_modules/@dnd-kit/abstract/index.js +502 -442
- package/dist/node_modules/@dnd-kit/dom/index.js +817 -779
- package/dist/node_modules/@dnd-kit/dom/sortable.js +260 -262
- package/dist/node_modules/@dnd-kit/dom/utilities.js +470 -463
- package/dist/node_modules/@dnd-kit/react/hooks.js +26 -26
- package/dist/node_modules/@dnd-kit/react/index.js +8 -1
- package/dist/node_modules/@dnd-kit/react/sortable.js +45 -46
- package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +11 -11
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +85 -73
- package/package.json +20 -18
- package/dist/components/icon/icons/tablet-icon.d.ts +0 -2
- package/dist/components/icon/icons/tablet-icon.d.ts.map +0 -1
- package/dist/components/icon/icons/tablet-icon.js +0 -8
|
@@ -1,109 +1,108 @@
|
|
|
1
1
|
import { Rectangle as it } from "../geometry/dist/index.js";
|
|
2
|
-
var
|
|
2
|
+
var gt = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
|
-
},
|
|
4
|
+
}, st = (t, e, n) => e.has(t) || gt("Cannot " + n), u = (t, e, n) => (st(t, e, "read from private field"), e.get(t)), _ = (t, e, n) => e.has(t) ? gt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), R = (t, e, n, i) => (st(t, e, "write to private field"), e.set(t, n), n), yt = (t, e, n) => (st(t, e, "access private method"), n);
|
|
5
5
|
function q(t) {
|
|
6
6
|
return t ? t instanceof KeyframeEffect ? !0 : "getKeyframes" in t && typeof t.getKeyframes == "function" : !1;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return null;
|
|
8
|
+
function Ct(t, e) {
|
|
9
|
+
const n = t.getAnimations();
|
|
10
|
+
let i = null;
|
|
11
|
+
for (const o of n) {
|
|
12
|
+
if (o.playState !== "running") continue;
|
|
13
|
+
const { effect: s } = o, l = (q(s) ? s.getKeyframes() : []).filter(e);
|
|
14
|
+
l.length > 0 && (i = [l[l.length - 1], o]);
|
|
15
|
+
}
|
|
16
|
+
return i;
|
|
18
17
|
}
|
|
19
18
|
function j(t) {
|
|
20
|
-
const { width:
|
|
21
|
-
return { width:
|
|
19
|
+
const { width: e, height: n, top: i, left: o, bottom: s, right: r } = t.getBoundingClientRect();
|
|
20
|
+
return { width: e, height: n, top: i, left: o, bottom: s, right: r };
|
|
22
21
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
|
|
22
|
+
function ot(t) {
|
|
23
|
+
const e = Object.prototype.toString.call(t);
|
|
24
|
+
return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
25
|
+
e === "[object global]";
|
|
27
26
|
}
|
|
28
27
|
function X(t) {
|
|
29
28
|
return "nodeType" in t;
|
|
30
29
|
}
|
|
31
30
|
function E(t) {
|
|
32
|
-
var
|
|
33
|
-
return t ?
|
|
31
|
+
var e, n, i;
|
|
32
|
+
return t ? ot(t) ? t : X(t) ? "defaultView" in t ? (e = t.defaultView) != null ? e : window : (i = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? i : window : window : window;
|
|
34
33
|
}
|
|
35
|
-
function
|
|
36
|
-
const { Document:
|
|
37
|
-
return t instanceof
|
|
34
|
+
function mt(t) {
|
|
35
|
+
const { Document: e } = E(t);
|
|
36
|
+
return t instanceof e || "nodeType" in t && t.nodeType === Node.DOCUMENT_NODE;
|
|
38
37
|
}
|
|
39
|
-
function
|
|
40
|
-
return !t ||
|
|
38
|
+
function C(t) {
|
|
39
|
+
return !t || ot(t) ? !1 : t instanceof E(t).HTMLElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("html");
|
|
41
40
|
}
|
|
42
|
-
function
|
|
41
|
+
function wt(t) {
|
|
43
42
|
return t instanceof E(t).SVGElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("svg");
|
|
44
43
|
}
|
|
45
44
|
function rt(t) {
|
|
46
|
-
return t ?
|
|
45
|
+
return t ? ot(t) ? t.document : X(t) ? mt(t) ? t : C(t) || wt(t) ? t.ownerDocument : document : document : document;
|
|
47
46
|
}
|
|
48
|
-
function
|
|
49
|
-
var
|
|
50
|
-
const { documentElement: s } = rt(t), r = E(t).visualViewport,
|
|
47
|
+
function Nt(t) {
|
|
48
|
+
var e, n, i, o;
|
|
49
|
+
const { documentElement: s } = rt(t), r = E(t).visualViewport, l = (e = r?.width) != null ? e : s.clientWidth, c = (n = r?.height) != null ? n : s.clientHeight, a = (i = r?.offsetTop) != null ? i : 0, f = (o = r?.offsetLeft) != null ? o : 0;
|
|
51
50
|
return {
|
|
52
51
|
top: a,
|
|
53
|
-
left:
|
|
54
|
-
right:
|
|
55
|
-
bottom: a +
|
|
56
|
-
width:
|
|
57
|
-
height:
|
|
52
|
+
left: f,
|
|
53
|
+
right: f + l,
|
|
54
|
+
bottom: a + c,
|
|
55
|
+
width: l,
|
|
56
|
+
height: c
|
|
58
57
|
};
|
|
59
58
|
}
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
59
|
+
function Lt(t, e) {
|
|
60
|
+
if (Pt(t) && t.open === !1)
|
|
62
61
|
return !1;
|
|
63
|
-
const { overflow:
|
|
64
|
-
return
|
|
62
|
+
const { overflow: n, overflowX: i, overflowY: o } = getComputedStyle(t);
|
|
63
|
+
return n === "visible" && i === "visible" && o === "visible";
|
|
65
64
|
}
|
|
66
|
-
function
|
|
65
|
+
function Pt(t) {
|
|
67
66
|
return t.tagName === "DETAILS";
|
|
68
67
|
}
|
|
69
|
-
function
|
|
70
|
-
var i, o, s, r,
|
|
71
|
-
let
|
|
72
|
-
const { ownerDocument: a } = t,
|
|
68
|
+
function B(t, e = t.getBoundingClientRect(), n = 0) {
|
|
69
|
+
var i, o, s, r, l;
|
|
70
|
+
let c = e;
|
|
71
|
+
const { ownerDocument: a } = t, f = (i = a.defaultView) != null ? i : window;
|
|
73
72
|
let h = t.parentElement;
|
|
74
73
|
for (; h && h !== a.documentElement; ) {
|
|
75
|
-
if (!
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
top: Math.max(
|
|
79
|
-
right: Math.min(
|
|
80
|
-
bottom: Math.min(
|
|
81
|
-
left: Math.max(
|
|
74
|
+
if (!Lt(h)) {
|
|
75
|
+
const y = h.getBoundingClientRect(), M = n * (y.bottom - y.top), g = n * (y.right - y.left), G = n * (y.bottom - y.top), J = n * (y.right - y.left);
|
|
76
|
+
c = {
|
|
77
|
+
top: Math.max(c.top, y.top - M),
|
|
78
|
+
right: Math.min(c.right, y.right + g),
|
|
79
|
+
bottom: Math.min(c.bottom, y.bottom + G),
|
|
80
|
+
left: Math.max(c.left, y.left - J),
|
|
82
81
|
width: 0,
|
|
83
82
|
// Will be calculated next
|
|
84
83
|
height: 0
|
|
85
84
|
// Will be calculated next
|
|
86
|
-
},
|
|
85
|
+
}, c.width = c.right - c.left, c.height = c.bottom - c.top;
|
|
87
86
|
}
|
|
88
87
|
h = h.parentElement;
|
|
89
88
|
}
|
|
90
|
-
const v =
|
|
91
|
-
return
|
|
92
|
-
top: Math.max(
|
|
89
|
+
const v = f.visualViewport, m = (o = v?.offsetTop) != null ? o : 0, w = (s = v?.offsetLeft) != null ? s : 0, d = (r = v?.width) != null ? r : f.innerWidth, x = (l = v?.height) != null ? l : f.innerHeight, b = n * x, p = n * d;
|
|
90
|
+
return c = {
|
|
91
|
+
top: Math.max(c.top, m - b),
|
|
93
92
|
right: Math.min(
|
|
94
|
-
|
|
93
|
+
c.right,
|
|
95
94
|
w + d + p
|
|
96
95
|
),
|
|
97
96
|
bottom: Math.min(
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
c.bottom,
|
|
98
|
+
m + x + b
|
|
100
99
|
),
|
|
101
|
-
left: Math.max(
|
|
100
|
+
left: Math.max(c.left, w - p),
|
|
102
101
|
width: 0,
|
|
103
102
|
// Will be calculated next
|
|
104
103
|
height: 0
|
|
105
104
|
// Will be calculated next
|
|
106
|
-
},
|
|
105
|
+
}, c.width = c.right - c.left, c.height = c.bottom - c.top, c.width < 0 && (c.width = 0), c.height < 0 && (c.height = 0), c;
|
|
107
106
|
}
|
|
108
107
|
function ye(t) {
|
|
109
108
|
return {
|
|
@@ -111,50 +110,50 @@ function ye(t) {
|
|
|
111
110
|
y: t.clientY
|
|
112
111
|
};
|
|
113
112
|
}
|
|
114
|
-
var
|
|
115
|
-
function at(t = document,
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
const
|
|
113
|
+
var bt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
114
|
+
function at(t = document, e = /* @__PURE__ */ new Set()) {
|
|
115
|
+
if (e.has(t)) return [];
|
|
116
|
+
e.add(t);
|
|
117
|
+
const n = [t];
|
|
119
118
|
for (const i of Array.from(
|
|
120
119
|
t.querySelectorAll("iframe, frame")
|
|
121
120
|
))
|
|
122
121
|
try {
|
|
123
122
|
const o = i.contentDocument;
|
|
124
|
-
o && !
|
|
123
|
+
o && !e.has(o) && n.push(...at(o, e));
|
|
125
124
|
} catch {
|
|
126
125
|
}
|
|
127
126
|
try {
|
|
128
127
|
const i = t.defaultView;
|
|
129
128
|
if (i && i !== window.top) {
|
|
130
129
|
const o = i.parent;
|
|
131
|
-
o && o.document && o.document !== t &&
|
|
130
|
+
o && o.document && o.document !== t && n.push(...at(o.document, e));
|
|
132
131
|
}
|
|
133
132
|
} catch {
|
|
134
133
|
}
|
|
135
|
-
return
|
|
134
|
+
return n;
|
|
136
135
|
}
|
|
137
|
-
function
|
|
136
|
+
function xt() {
|
|
138
137
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
139
138
|
}
|
|
140
139
|
function me() {
|
|
141
|
-
var t,
|
|
142
|
-
const
|
|
140
|
+
var t, e;
|
|
141
|
+
const n = xt() ? window.visualViewport : null;
|
|
143
142
|
return {
|
|
144
|
-
x: (t =
|
|
145
|
-
y: (
|
|
143
|
+
x: (t = n?.offsetLeft) != null ? t : 0,
|
|
144
|
+
y: (e = n?.offsetTop) != null ? e : 0
|
|
146
145
|
};
|
|
147
146
|
}
|
|
148
|
-
function
|
|
147
|
+
function Tt(t) {
|
|
149
148
|
return !t || !X(t) ? !1 : t instanceof E(t).ShadowRoot;
|
|
150
149
|
}
|
|
151
150
|
function we(t) {
|
|
152
151
|
if (t && X(t)) {
|
|
153
|
-
let
|
|
154
|
-
if (
|
|
155
|
-
return
|
|
156
|
-
if (
|
|
157
|
-
return
|
|
152
|
+
let e = t.getRootNode();
|
|
153
|
+
if (Tt(e))
|
|
154
|
+
return e;
|
|
155
|
+
if (e instanceof Document)
|
|
156
|
+
return e;
|
|
158
157
|
}
|
|
159
158
|
return rt(t);
|
|
160
159
|
}
|
|
@@ -162,36 +161,36 @@ function be(t) {
|
|
|
162
161
|
return t.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
163
162
|
}
|
|
164
163
|
function xe(t) {
|
|
165
|
-
const
|
|
166
|
-
return Array.from(
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
const
|
|
170
|
-
|
|
164
|
+
const e = "input, textarea, select, canvas, [contenteditable]", n = t.cloneNode(!0), i = Array.from(t.querySelectorAll(e));
|
|
165
|
+
return Array.from(n.querySelectorAll(e)).forEach((s, r) => {
|
|
166
|
+
const l = i[r];
|
|
167
|
+
if (ft(s) && ft(l) && (s.type !== "file" && (s.value = l.value), s.type === "radio" && s.name && (s.name = `Cloned__${s.name}`)), ut(s) && ut(l) && l.width > 0 && l.height > 0) {
|
|
168
|
+
const c = s.getContext("2d");
|
|
169
|
+
c?.drawImage(l, 0, 0);
|
|
171
170
|
}
|
|
172
|
-
}),
|
|
171
|
+
}), n;
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function ft(t) {
|
|
175
174
|
return "value" in t;
|
|
176
175
|
}
|
|
177
|
-
function
|
|
176
|
+
function ut(t) {
|
|
178
177
|
return t.tagName === "CANVAS";
|
|
179
178
|
}
|
|
180
|
-
function
|
|
181
|
-
const i = t.elementFromPoint(
|
|
182
|
-
if (
|
|
179
|
+
function Ft(t, { x: e, y: n }) {
|
|
180
|
+
const i = t.elementFromPoint(e, n);
|
|
181
|
+
if (Ot(i)) {
|
|
183
182
|
const { contentDocument: o } = i;
|
|
184
183
|
if (o) {
|
|
185
184
|
const { left: s, top: r } = i.getBoundingClientRect();
|
|
186
|
-
return
|
|
187
|
-
x:
|
|
188
|
-
y:
|
|
185
|
+
return Ft(o, {
|
|
186
|
+
x: e - s,
|
|
187
|
+
y: n - r
|
|
189
188
|
});
|
|
190
189
|
}
|
|
191
190
|
}
|
|
192
191
|
return i;
|
|
193
192
|
}
|
|
194
|
-
function
|
|
193
|
+
function Ot(t) {
|
|
195
194
|
return t?.tagName === "IFRAME";
|
|
196
195
|
}
|
|
197
196
|
var Te = /* @__PURE__ */ new WeakMap();
|
|
@@ -209,236 +208,239 @@ var Re = class {
|
|
|
209
208
|
constructor() {
|
|
210
209
|
this.entries = /* @__PURE__ */ new Set(), this.clear = () => {
|
|
211
210
|
for (const t of this.entries) {
|
|
212
|
-
const [
|
|
213
|
-
|
|
211
|
+
const [e, { type: n, listener: i, options: o }] = t;
|
|
212
|
+
e.removeEventListener(n, i, o);
|
|
214
213
|
}
|
|
215
214
|
this.entries.clear();
|
|
216
215
|
};
|
|
217
216
|
}
|
|
218
|
-
bind(t,
|
|
219
|
-
const
|
|
220
|
-
for (const
|
|
221
|
-
for (const
|
|
222
|
-
const { type: c, listener:
|
|
223
|
-
|
|
217
|
+
bind(t, e) {
|
|
218
|
+
const n = Array.isArray(t) ? t : [t], i = Array.isArray(e) ? e : [e], o = [];
|
|
219
|
+
for (const r of n)
|
|
220
|
+
for (const l of i) {
|
|
221
|
+
const { type: c, listener: a, options: f } = l, h = [r, l];
|
|
222
|
+
r.addEventListener(c, a, f), this.entries.add(h), o.push(h);
|
|
224
223
|
}
|
|
224
|
+
const s = this.entries;
|
|
225
225
|
return function() {
|
|
226
|
-
for (const
|
|
227
|
-
|
|
226
|
+
for (const l of o) {
|
|
227
|
+
const [c, { type: a, listener: f, options: h }] = l;
|
|
228
|
+
c.removeEventListener(a, f, h), s.delete(l);
|
|
229
|
+
}
|
|
228
230
|
};
|
|
229
231
|
}
|
|
230
232
|
};
|
|
231
233
|
function H(t) {
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
return
|
|
234
|
+
const e = t?.ownerDocument.defaultView;
|
|
235
|
+
if (e && e.self !== e.parent)
|
|
236
|
+
return e.frameElement;
|
|
235
237
|
}
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
for (;
|
|
240
|
-
|
|
241
|
-
return
|
|
238
|
+
function It(t) {
|
|
239
|
+
const e = /* @__PURE__ */ new Set();
|
|
240
|
+
let n = H(t);
|
|
241
|
+
for (; n; )
|
|
242
|
+
e.add(n), n = H(n);
|
|
243
|
+
return e;
|
|
242
244
|
}
|
|
243
|
-
function
|
|
244
|
-
const
|
|
245
|
-
return () => clearTimeout(
|
|
245
|
+
function Xt(t, e) {
|
|
246
|
+
const n = setTimeout(t, e);
|
|
247
|
+
return () => clearTimeout(n);
|
|
246
248
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
+
function _t(t, e) {
|
|
250
|
+
const n = () => performance.now();
|
|
249
251
|
let i, o;
|
|
250
252
|
return function(...s) {
|
|
251
253
|
const r = this;
|
|
252
|
-
o ? (i?.(), i =
|
|
254
|
+
o ? (i?.(), i = Xt(
|
|
253
255
|
() => {
|
|
254
|
-
t.apply(r, s), o =
|
|
256
|
+
t.apply(r, s), o = n();
|
|
255
257
|
},
|
|
256
|
-
|
|
257
|
-
)) : (t.apply(r, s), o =
|
|
258
|
+
e - (n() - o)
|
|
259
|
+
)) : (t.apply(r, s), o = n());
|
|
258
260
|
};
|
|
259
261
|
}
|
|
260
|
-
function
|
|
261
|
-
return t ===
|
|
262
|
+
function Vt(t, e) {
|
|
263
|
+
return t === e ? !0 : !t || !e ? !1 : t.top == e.top && t.left == e.left && t.right == e.right && t.bottom == e.bottom;
|
|
262
264
|
}
|
|
263
|
-
function Yt(t,
|
|
264
|
-
const { width:
|
|
265
|
+
function Yt(t, e = t.getBoundingClientRect()) {
|
|
266
|
+
const { width: n, height: i } = B(
|
|
265
267
|
t,
|
|
266
|
-
|
|
268
|
+
e
|
|
267
269
|
);
|
|
268
|
-
return
|
|
270
|
+
return n > 0 && i > 0;
|
|
269
271
|
}
|
|
270
|
-
var
|
|
272
|
+
var Dt = bt ? ResizeObserver : class {
|
|
271
273
|
observe() {
|
|
272
274
|
}
|
|
273
275
|
unobserve() {
|
|
274
276
|
}
|
|
275
277
|
disconnect() {
|
|
276
278
|
}
|
|
277
|
-
},
|
|
279
|
+
}, D, zt = class extends Dt {
|
|
278
280
|
constructor(t) {
|
|
279
|
-
super((
|
|
280
|
-
if (!
|
|
281
|
-
R(this,
|
|
281
|
+
super((e) => {
|
|
282
|
+
if (!u(this, D)) {
|
|
283
|
+
R(this, D, !0);
|
|
282
284
|
return;
|
|
283
285
|
}
|
|
284
|
-
t(
|
|
285
|
-
}), _(this,
|
|
286
|
+
t(e, this);
|
|
287
|
+
}), _(this, D, !1);
|
|
286
288
|
}
|
|
287
289
|
};
|
|
288
|
-
|
|
289
|
-
var ht = Array.from({ length: 100 }, (t,
|
|
290
|
-
constructor(t,
|
|
290
|
+
D = /* @__PURE__ */ new WeakMap();
|
|
291
|
+
var ht = Array.from({ length: 100 }, (t, e) => e / 100), Rt = 75, k, $, S, A, N, T, O, L, K, Mt, Et, St = class {
|
|
292
|
+
constructor(t, e, n = {
|
|
291
293
|
debug: !1,
|
|
292
294
|
skipInitial: !1
|
|
293
295
|
}) {
|
|
294
|
-
this.element = t, this.callback =
|
|
295
|
-
var s, r,
|
|
296
|
-
R(this,
|
|
297
|
-
}, _(this,
|
|
298
|
-
var s, r,
|
|
299
|
-
const { element:
|
|
300
|
-
if ((s =
|
|
296
|
+
this.element = t, this.callback = e, _(this, K), this.disconnect = () => {
|
|
297
|
+
var s, r, l;
|
|
298
|
+
R(this, O, !0), (s = u(this, S)) == null || s.disconnect(), (r = u(this, A)) == null || r.disconnect(), u(this, N).disconnect(), (l = u(this, T)) == null || l.remove();
|
|
299
|
+
}, _(this, k, !0), _(this, $), _(this, S), _(this, A), _(this, N), _(this, T), _(this, O, !1), _(this, L, _t(() => {
|
|
300
|
+
var s, r, l;
|
|
301
|
+
const { element: c } = this;
|
|
302
|
+
if ((s = u(this, A)) == null || s.disconnect(), u(this, O) || !u(this, k) || !c.isConnected)
|
|
301
303
|
return;
|
|
302
|
-
const a = (r =
|
|
303
|
-
this.boundingClientRect = v, R(this,
|
|
304
|
+
const a = (r = c.ownerDocument) != null ? r : document, { innerHeight: f, innerWidth: h } = (l = a.defaultView) != null ? l : window, v = c.getBoundingClientRect(), m = B(c, v), { top: w, left: d, bottom: x, right: b } = m, p = -Math.floor(w), y = -Math.floor(d), M = -Math.floor(h - b), g = -Math.floor(f - x), G = `${p}px ${M}px ${g}px ${y}px`;
|
|
305
|
+
this.boundingClientRect = v, R(this, A, new IntersectionObserver(
|
|
304
306
|
(J) => {
|
|
305
|
-
const [Q] = J, { intersectionRect:
|
|
307
|
+
const [Q] = J, { intersectionRect: Wt } = Q;
|
|
306
308
|
(Q.intersectionRatio !== 1 ? Q.intersectionRatio : it.intersectionRatio(
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
)) !== 1 &&
|
|
309
|
+
Wt,
|
|
310
|
+
B(c)
|
|
311
|
+
)) !== 1 && u(this, L).call(this);
|
|
310
312
|
},
|
|
311
313
|
{
|
|
312
314
|
threshold: ht,
|
|
313
315
|
rootMargin: G,
|
|
314
316
|
root: a
|
|
315
317
|
}
|
|
316
|
-
)),
|
|
317
|
-
},
|
|
318
|
+
)), u(this, A).observe(c), yt(this, K, Mt).call(this);
|
|
319
|
+
}, Rt)), this.boundingClientRect = t.getBoundingClientRect(), R(this, k, Yt(t, this.boundingClientRect));
|
|
318
320
|
let i = !0;
|
|
319
321
|
this.callback = (s) => {
|
|
320
|
-
i && (i = !1,
|
|
322
|
+
i && (i = !1, n.skipInitial) || e(s);
|
|
321
323
|
};
|
|
322
324
|
const o = t.ownerDocument;
|
|
323
|
-
|
|
325
|
+
n?.debug && (R(this, T, document.createElement("div")), u(this, T).style.background = "rgba(0,0,0,0.15)", u(this, T).style.position = "fixed", u(this, T).style.pointerEvents = "none", o.body.appendChild(u(this, T))), R(this, N, new IntersectionObserver(
|
|
324
326
|
(s) => {
|
|
325
|
-
var r,
|
|
326
|
-
const
|
|
327
|
-
R(this,
|
|
327
|
+
var r, l;
|
|
328
|
+
const c = s[s.length - 1], { boundingClientRect: a, isIntersecting: f } = c, { width: h, height: v } = a, m = u(this, k);
|
|
329
|
+
R(this, k, f), !(!h && !v) && (m && !f ? ((r = u(this, A)) == null || r.disconnect(), this.callback(null), (l = u(this, S)) == null || l.disconnect(), R(this, S, void 0), u(this, T) && (u(this, T).style.visibility = "hidden")) : u(this, L).call(this), f && !u(this, S) && (R(this, S, new zt(u(this, L))), u(this, S).observe(t)));
|
|
328
330
|
},
|
|
329
331
|
{
|
|
330
332
|
threshold: ht,
|
|
331
333
|
root: o
|
|
332
334
|
}
|
|
333
|
-
)),
|
|
335
|
+
)), u(this, k) && !n.skipInitial && this.callback(this.boundingClientRect), u(this, N).observe(t);
|
|
334
336
|
}
|
|
335
337
|
};
|
|
336
|
-
|
|
338
|
+
k = /* @__PURE__ */ new WeakMap();
|
|
337
339
|
$ = /* @__PURE__ */ new WeakMap();
|
|
338
340
|
S = /* @__PURE__ */ new WeakMap();
|
|
339
|
-
|
|
340
|
-
|
|
341
|
+
A = /* @__PURE__ */ new WeakMap();
|
|
342
|
+
N = /* @__PURE__ */ new WeakMap();
|
|
341
343
|
T = /* @__PURE__ */ new WeakMap();
|
|
342
|
-
|
|
343
|
-
|
|
344
|
+
O = /* @__PURE__ */ new WeakMap();
|
|
345
|
+
L = /* @__PURE__ */ new WeakMap();
|
|
344
346
|
K = /* @__PURE__ */ new WeakSet();
|
|
345
|
-
Rt = function() {
|
|
346
|
-
f(this, F) || (gt(this, K, Mt).call(this), !Xt(this.boundingClientRect, f(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
|
|
347
|
-
};
|
|
348
347
|
Mt = function() {
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
u(this, O) || (yt(this, K, Et).call(this), !Vt(this.boundingClientRect, u(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
|
|
349
|
+
};
|
|
350
|
+
Et = function() {
|
|
351
|
+
if (u(this, T)) {
|
|
352
|
+
const { top: t, left: e, width: n, height: i } = B(
|
|
351
353
|
this.element
|
|
352
354
|
);
|
|
353
|
-
|
|
355
|
+
u(this, T).style.overflow = "hidden", u(this, T).style.visibility = "visible", u(this, T).style.top = `${Math.floor(t)}px`, u(this, T).style.left = `${Math.floor(e)}px`, u(this, T).style.width = `${Math.floor(n)}px`, u(this, T).style.height = `${Math.floor(i)}px`;
|
|
354
356
|
}
|
|
355
357
|
};
|
|
356
|
-
var
|
|
357
|
-
function Bt(t,
|
|
358
|
-
let
|
|
359
|
-
return
|
|
358
|
+
var V = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
359
|
+
function Bt(t, e) {
|
|
360
|
+
let n = V.get(t);
|
|
361
|
+
return n || (n = { disconnect: new St(
|
|
360
362
|
t,
|
|
361
363
|
(o) => {
|
|
362
|
-
const s =
|
|
364
|
+
const s = V.get(t);
|
|
363
365
|
s && s.callbacks.forEach((r) => r(o));
|
|
364
366
|
},
|
|
365
367
|
{ skipInitial: !0 }
|
|
366
|
-
).disconnect, callbacks: /* @__PURE__ */ new Set() }),
|
|
367
|
-
|
|
368
|
+
).disconnect, callbacks: /* @__PURE__ */ new Set() }), n.callbacks.add(e), V.set(t, n), () => {
|
|
369
|
+
n.callbacks.delete(e), n.callbacks.size === 0 && (V.delete(t), n.disconnect());
|
|
368
370
|
};
|
|
369
371
|
}
|
|
370
|
-
function
|
|
371
|
-
const
|
|
372
|
+
function Ht(t, e) {
|
|
373
|
+
const n = /* @__PURE__ */ new Set();
|
|
372
374
|
for (const i of t) {
|
|
373
|
-
const o = Bt(i,
|
|
374
|
-
|
|
375
|
+
const o = Bt(i, e);
|
|
376
|
+
n.add(o);
|
|
375
377
|
}
|
|
376
|
-
return () =>
|
|
378
|
+
return () => n.forEach((i) => i());
|
|
377
379
|
}
|
|
378
|
-
function
|
|
379
|
-
var
|
|
380
|
+
function $t(t, e) {
|
|
381
|
+
var n;
|
|
380
382
|
const i = t.ownerDocument;
|
|
381
|
-
if (!
|
|
382
|
-
const r = new AbortController(),
|
|
383
|
+
if (!Y.has(i)) {
|
|
384
|
+
const r = new AbortController(), l = /* @__PURE__ */ new Set();
|
|
383
385
|
document.addEventListener(
|
|
384
386
|
"scroll",
|
|
385
|
-
(
|
|
387
|
+
(c) => l.forEach((a) => a(c)),
|
|
386
388
|
{
|
|
387
389
|
capture: !0,
|
|
388
390
|
passive: !0,
|
|
389
391
|
signal: r.signal
|
|
390
392
|
}
|
|
391
|
-
),
|
|
393
|
+
), Y.set(i, { disconnect: () => r.abort(), listeners: l });
|
|
392
394
|
}
|
|
393
|
-
const { listeners: o, disconnect: s } = (
|
|
395
|
+
const { listeners: o, disconnect: s } = (n = Y.get(i)) != null ? n : {};
|
|
394
396
|
return !o || !s ? () => {
|
|
395
|
-
} : (o.add(
|
|
396
|
-
o.delete(
|
|
397
|
+
} : (o.add(e), () => {
|
|
398
|
+
o.delete(e), o.size === 0 && (s(), Y.delete(i));
|
|
397
399
|
});
|
|
398
400
|
}
|
|
399
|
-
var
|
|
400
|
-
constructor(t,
|
|
401
|
-
this.callback =
|
|
402
|
-
if (!
|
|
403
|
-
for (const
|
|
404
|
-
if (r.target.contains(
|
|
405
|
-
this.callback(
|
|
401
|
+
var P, F, z, et, Ee = class {
|
|
402
|
+
constructor(t, e, n) {
|
|
403
|
+
this.callback = e, _(this, P), _(this, F, !1), _(this, z), _(this, et, _t((r) => {
|
|
404
|
+
if (!u(this, F) && r.target && "contains" in r.target && typeof r.target.contains == "function") {
|
|
405
|
+
for (const l of u(this, z))
|
|
406
|
+
if (r.target.contains(l)) {
|
|
407
|
+
this.callback(u(this, P).boundingClientRect);
|
|
406
408
|
break;
|
|
407
409
|
}
|
|
408
410
|
}
|
|
409
|
-
},
|
|
410
|
-
const i =
|
|
411
|
-
R(this,
|
|
412
|
-
|
|
411
|
+
}, Rt));
|
|
412
|
+
const i = It(t), o = Ht(i, e), s = $t(t, u(this, et));
|
|
413
|
+
R(this, z, i), R(this, P, new St(t, e, n)), this.disconnect = () => {
|
|
414
|
+
u(this, F) || (R(this, F, !0), o(), s(), u(this, P).disconnect());
|
|
413
415
|
};
|
|
414
416
|
}
|
|
415
417
|
};
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
418
|
+
P = /* @__PURE__ */ new WeakMap();
|
|
419
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
420
|
+
z = /* @__PURE__ */ new WeakMap();
|
|
419
421
|
et = /* @__PURE__ */ new WeakMap();
|
|
420
|
-
function
|
|
422
|
+
function Kt(t) {
|
|
421
423
|
return "showPopover" in t && "hidePopover" in t && typeof t.showPopover == "function" && typeof t.hidePopover == "function";
|
|
422
424
|
}
|
|
423
425
|
function Se(t) {
|
|
424
426
|
try {
|
|
425
|
-
|
|
427
|
+
Kt(t) && t.isConnected && t.hasAttribute("popover") && // This selector can throw an error in browsers that don't support it
|
|
426
428
|
!t.matches(":popover-open") && t.showPopover();
|
|
427
429
|
} catch {
|
|
428
430
|
}
|
|
429
431
|
}
|
|
430
432
|
function dt(t) {
|
|
431
|
-
return !
|
|
433
|
+
return !bt || !t ? !1 : t === rt(t).scrollingElement;
|
|
432
434
|
}
|
|
433
|
-
function
|
|
434
|
-
var
|
|
435
|
-
const i = E(t), o = dt(t) ?
|
|
436
|
-
height: (
|
|
437
|
-
width: (
|
|
435
|
+
function kt(t) {
|
|
436
|
+
var e, n;
|
|
437
|
+
const i = E(t), o = dt(t) ? Nt(t) : j(t), s = i.visualViewport, r = dt(t) ? {
|
|
438
|
+
height: (e = s?.height) != null ? e : i.innerHeight,
|
|
439
|
+
width: (n = s?.width) != null ? n : i.innerWidth
|
|
438
440
|
} : {
|
|
439
441
|
height: t.clientHeight,
|
|
440
442
|
width: t.clientWidth
|
|
441
|
-
},
|
|
443
|
+
}, l = {
|
|
442
444
|
current: {
|
|
443
445
|
x: t.scrollLeft,
|
|
444
446
|
y: t.scrollTop
|
|
@@ -447,157 +449,153 @@ function St(t) {
|
|
|
447
449
|
x: t.scrollWidth - r.width,
|
|
448
450
|
y: t.scrollHeight - r.height
|
|
449
451
|
}
|
|
450
|
-
},
|
|
452
|
+
}, c = l.current.y <= 0, a = l.current.x <= 0, f = l.current.y >= l.max.y, h = l.current.x >= l.max.x;
|
|
451
453
|
return {
|
|
452
454
|
rect: o,
|
|
453
|
-
position:
|
|
454
|
-
isTop:
|
|
455
|
+
position: l,
|
|
456
|
+
isTop: c,
|
|
455
457
|
isLeft: a,
|
|
456
|
-
isBottom:
|
|
458
|
+
isBottom: f,
|
|
457
459
|
isRight: h
|
|
458
460
|
};
|
|
459
461
|
}
|
|
460
|
-
function ke(t,
|
|
461
|
-
const { isTop:
|
|
462
|
+
function ke(t, e) {
|
|
463
|
+
const { isTop: n, isBottom: i, isLeft: o, isRight: s, position: r } = kt(t), { x: l, y: c } = e ?? { x: 0, y: 0 }, a = !n && r.current.y + c > 0, f = !i && r.current.y + c < r.max.y, h = !o && r.current.x + l > 0, v = !s && r.current.x + l < r.max.x;
|
|
462
464
|
return {
|
|
463
465
|
top: a,
|
|
464
|
-
bottom:
|
|
466
|
+
bottom: f,
|
|
465
467
|
left: h,
|
|
466
468
|
right: v,
|
|
467
469
|
x: h || v,
|
|
468
|
-
y: a ||
|
|
470
|
+
y: a || f
|
|
469
471
|
};
|
|
470
472
|
}
|
|
471
|
-
var
|
|
473
|
+
var lt = class {
|
|
472
474
|
constructor(t) {
|
|
473
475
|
this.scheduler = t, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
|
|
474
|
-
const { tasks:
|
|
476
|
+
const { tasks: e, resolvers: n } = this;
|
|
475
477
|
this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
|
|
476
|
-
for (const i of n)
|
|
477
|
-
i();
|
|
478
478
|
for (const i of e)
|
|
479
479
|
i();
|
|
480
|
+
for (const i of n)
|
|
481
|
+
i();
|
|
480
482
|
};
|
|
481
483
|
}
|
|
482
484
|
schedule(t) {
|
|
483
|
-
return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((
|
|
485
|
+
return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((e) => this.resolvers.add(e));
|
|
484
486
|
}
|
|
485
|
-
}, Ae = new
|
|
487
|
+
}, Ae = new lt((t) => {
|
|
486
488
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : t();
|
|
487
|
-
}),
|
|
488
|
-
function
|
|
489
|
-
if (!
|
|
490
|
-
let
|
|
491
|
-
return
|
|
489
|
+
}), Ut = new lt((t) => setTimeout(t, 50)), U = /* @__PURE__ */ new Map(), qt = U.clear.bind(U);
|
|
490
|
+
function W(t, e = !1) {
|
|
491
|
+
if (!e) return pt(t);
|
|
492
|
+
let n = U.get(t);
|
|
493
|
+
return n || (n = pt(t), U.set(t, n), Ut.schedule(qt), n);
|
|
492
494
|
}
|
|
493
495
|
function pt(t) {
|
|
494
496
|
return E(t).getComputedStyle(t);
|
|
495
497
|
}
|
|
496
|
-
function
|
|
497
|
-
return
|
|
498
|
+
function jt(t, e = W(t, !0)) {
|
|
499
|
+
return e.position === "fixed" || e.position === "sticky";
|
|
498
500
|
}
|
|
499
|
-
function
|
|
500
|
-
const
|
|
501
|
+
function Gt(t, e = W(t, !0)) {
|
|
502
|
+
const n = /(auto|scroll|overlay)/;
|
|
501
503
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
502
|
-
const s =
|
|
503
|
-
return typeof s == "string" ?
|
|
504
|
+
const s = e[o];
|
|
505
|
+
return typeof s == "string" ? n.test(s) : !1;
|
|
504
506
|
});
|
|
505
507
|
}
|
|
506
|
-
var
|
|
508
|
+
var Jt = {
|
|
507
509
|
excludeElement: !0,
|
|
508
510
|
escapeShadowDOM: !0
|
|
509
511
|
};
|
|
510
|
-
function
|
|
511
|
-
const { limit:
|
|
512
|
-
function r(
|
|
513
|
-
if (
|
|
512
|
+
function Qt(t, e = Jt) {
|
|
513
|
+
const { limit: n, excludeElement: i, escapeShadowDOM: o } = e, s = /* @__PURE__ */ new Set();
|
|
514
|
+
function r(l) {
|
|
515
|
+
if (n != null && s.size >= n || !l)
|
|
514
516
|
return s;
|
|
515
|
-
if (
|
|
516
|
-
return s.add(
|
|
517
|
-
if (o &&
|
|
518
|
-
return r(
|
|
519
|
-
if (!
|
|
520
|
-
return
|
|
521
|
-
if (s.has(
|
|
517
|
+
if (mt(l) && l.scrollingElement != null && !s.has(l.scrollingElement))
|
|
518
|
+
return s.add(l.scrollingElement), s;
|
|
519
|
+
if (o && Tt(l))
|
|
520
|
+
return r(l.host);
|
|
521
|
+
if (!C(l))
|
|
522
|
+
return wt(l) ? r(l.parentElement) : s;
|
|
523
|
+
if (s.has(l))
|
|
522
524
|
return s;
|
|
523
|
-
const
|
|
524
|
-
if (i &&
|
|
525
|
-
const { scrollingElement: a } =
|
|
525
|
+
const c = W(l, !0);
|
|
526
|
+
if (i && l === t || Gt(l, c) && s.add(l), jt(l, c)) {
|
|
527
|
+
const { scrollingElement: a } = l.ownerDocument;
|
|
526
528
|
return a && s.add(a), s;
|
|
527
529
|
}
|
|
528
|
-
return r(
|
|
530
|
+
return r(l.parentNode);
|
|
529
531
|
}
|
|
530
532
|
return t ? r(t) : s;
|
|
531
533
|
}
|
|
532
|
-
function
|
|
533
|
-
const
|
|
534
|
-
return n ?? null;
|
|
535
|
-
}
|
|
536
|
-
function kt(t, n = window.frameElement) {
|
|
537
|
-
const e = {
|
|
534
|
+
function At(t, e = window.frameElement) {
|
|
535
|
+
const n = {
|
|
538
536
|
x: 0,
|
|
539
537
|
y: 0,
|
|
540
538
|
scaleX: 1,
|
|
541
539
|
scaleY: 1
|
|
542
540
|
};
|
|
543
|
-
if (!t) return
|
|
541
|
+
if (!t) return n;
|
|
544
542
|
let i = H(t);
|
|
545
543
|
for (; i; ) {
|
|
546
|
-
if (i ===
|
|
547
|
-
return
|
|
544
|
+
if (i === e)
|
|
545
|
+
return n;
|
|
548
546
|
const o = j(i), { x: s, y: r } = Zt(i, o);
|
|
549
|
-
|
|
547
|
+
n.x = n.x + o.left, n.y = n.y + o.top, n.scaleX = n.scaleX * s, n.scaleY = n.scaleY * r, i = H(i);
|
|
550
548
|
}
|
|
551
|
-
return
|
|
549
|
+
return n;
|
|
552
550
|
}
|
|
553
|
-
function Zt(t,
|
|
554
|
-
const
|
|
555
|
-
if (
|
|
551
|
+
function Zt(t, e = j(t)) {
|
|
552
|
+
const n = Math.round(e.width), i = Math.round(e.height);
|
|
553
|
+
if (C(t))
|
|
556
554
|
return {
|
|
557
|
-
x:
|
|
555
|
+
x: n / t.offsetWidth,
|
|
558
556
|
y: i / t.offsetHeight
|
|
559
557
|
};
|
|
560
|
-
const o =
|
|
558
|
+
const o = W(t, !0);
|
|
561
559
|
return {
|
|
562
|
-
x: (parseFloat(o.width) ||
|
|
560
|
+
x: (parseFloat(o.width) || n) / n,
|
|
563
561
|
y: (parseFloat(o.height) || i) / i
|
|
564
562
|
};
|
|
565
563
|
}
|
|
566
564
|
function te(t) {
|
|
567
565
|
if (t === "none")
|
|
568
566
|
return null;
|
|
569
|
-
const
|
|
570
|
-
return isNaN(
|
|
571
|
-
x: isNaN(
|
|
572
|
-
y: isNaN(i) ?
|
|
567
|
+
const e = t.split(" "), n = parseFloat(e[0]), i = parseFloat(e[1]);
|
|
568
|
+
return isNaN(n) && isNaN(i) ? null : {
|
|
569
|
+
x: isNaN(n) ? i : n,
|
|
570
|
+
y: isNaN(i) ? n : i
|
|
573
571
|
};
|
|
574
572
|
}
|
|
575
573
|
function nt(t) {
|
|
576
574
|
if (t === "none")
|
|
577
575
|
return null;
|
|
578
|
-
const [
|
|
576
|
+
const [e, n, i = "0"] = t.split(" "), o = { x: parseFloat(e), y: parseFloat(n), z: parseInt(i, 10) };
|
|
579
577
|
return isNaN(o.x) && isNaN(o.y) ? null : {
|
|
580
578
|
x: isNaN(o.x) ? 0 : o.x,
|
|
581
579
|
y: isNaN(o.y) ? 0 : o.y,
|
|
582
580
|
z: isNaN(o.z) ? 0 : o.z
|
|
583
581
|
};
|
|
584
582
|
}
|
|
585
|
-
function
|
|
586
|
-
var
|
|
587
|
-
const { scale:
|
|
588
|
-
if (!d && !
|
|
583
|
+
function ct(t) {
|
|
584
|
+
var e, n, i, o, s, r, l, c, a;
|
|
585
|
+
const { scale: f, transform: h, translate: v } = t, m = te(f), w = nt(v), d = ee(h);
|
|
586
|
+
if (!d && !m && !w)
|
|
589
587
|
return null;
|
|
590
588
|
const x = {
|
|
591
|
-
x: (
|
|
592
|
-
y: (
|
|
589
|
+
x: (e = m?.x) != null ? e : 1,
|
|
590
|
+
y: (n = m?.y) != null ? n : 1
|
|
593
591
|
}, b = {
|
|
594
592
|
x: (i = w?.x) != null ? i : 0,
|
|
595
593
|
y: (o = w?.y) != null ? o : 0
|
|
596
594
|
}, p = {
|
|
597
595
|
x: (s = d?.x) != null ? s : 0,
|
|
598
596
|
y: (r = d?.y) != null ? r : 0,
|
|
599
|
-
scaleX: (
|
|
600
|
-
scaleY: (
|
|
597
|
+
scaleX: (l = d?.scaleX) != null ? l : 1,
|
|
598
|
+
scaleY: (c = d?.scaleY) != null ? c : 1
|
|
601
599
|
};
|
|
602
600
|
return {
|
|
603
601
|
x: b.x + p.x,
|
|
@@ -609,20 +607,20 @@ function lt(t) {
|
|
|
609
607
|
}
|
|
610
608
|
function ee(t) {
|
|
611
609
|
if (t.startsWith("matrix3d(")) {
|
|
612
|
-
const
|
|
610
|
+
const e = t.slice(9, -1).split(/, /);
|
|
613
611
|
return {
|
|
614
|
-
x: +
|
|
615
|
-
y: +
|
|
616
|
-
scaleX: +
|
|
617
|
-
scaleY: +
|
|
612
|
+
x: +e[12],
|
|
613
|
+
y: +e[13],
|
|
614
|
+
scaleX: +e[0],
|
|
615
|
+
scaleY: +e[5]
|
|
618
616
|
};
|
|
619
617
|
} else if (t.startsWith("matrix(")) {
|
|
620
|
-
const
|
|
618
|
+
const e = t.slice(7, -1).split(/, /);
|
|
621
619
|
return {
|
|
622
|
-
x: +
|
|
623
|
-
y: +
|
|
624
|
-
scaleX: +
|
|
625
|
-
scaleY: +
|
|
620
|
+
x: +e[4],
|
|
621
|
+
y: +e[5],
|
|
622
|
+
scaleX: +e[0],
|
|
623
|
+
scaleY: +e[3]
|
|
626
624
|
};
|
|
627
625
|
}
|
|
628
626
|
return null;
|
|
@@ -630,88 +628,108 @@ function ee(t) {
|
|
|
630
628
|
var ne = /* @__PURE__ */ ((t) => (t[t.Idle = 0] = "Idle", t[t.Forward = 1] = "Forward", t[t.Reverse = -1] = "Reverse", t))(ne || {}), ie = {
|
|
631
629
|
x: 0.2,
|
|
632
630
|
y: 0.2
|
|
633
|
-
},
|
|
631
|
+
}, se = {
|
|
634
632
|
x: 10,
|
|
635
633
|
y: 10
|
|
636
634
|
};
|
|
637
|
-
function We(t,
|
|
638
|
-
const { x: r, y:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
),
|
|
635
|
+
function We(t, e, n, i = 25, o = ie, s = se) {
|
|
636
|
+
const { x: r, y: l } = e, { rect: c, isTop: a, isBottom: f, isLeft: h, isRight: v } = kt(t), m = At(t), w = W(t, !0), d = ct(w), x = d !== null ? d?.scaleX < 0 : !1, b = d !== null ? d?.scaleY < 0 : !1, p = new it(
|
|
637
|
+
c.left * m.scaleX + m.x,
|
|
638
|
+
c.top * m.scaleY + m.y,
|
|
639
|
+
c.width * m.scaleX,
|
|
640
|
+
c.height * m.scaleY
|
|
641
|
+
), y = {
|
|
644
642
|
x: 0,
|
|
645
643
|
y: 0
|
|
646
644
|
/* Idle */
|
|
647
645
|
}, M = {
|
|
648
646
|
x: 0,
|
|
649
647
|
y: 0
|
|
650
|
-
},
|
|
648
|
+
}, g = {
|
|
651
649
|
height: p.height * o.y,
|
|
652
650
|
width: p.width * o.x
|
|
653
651
|
};
|
|
654
|
-
return (!a || b && !
|
|
655
|
-
(p.top +
|
|
656
|
-
)) : (!
|
|
657
|
-
(p.bottom -
|
|
658
|
-
)), (!v || x && !h) && r >= p.right -
|
|
659
|
-
(p.right -
|
|
660
|
-
)) : (!h || x && !v) && r <= p.left +
|
|
661
|
-
(p.left +
|
|
652
|
+
return g.height > 0 && (!a || b && !f) && l <= p.top + g.height && n?.y !== 1 && r >= p.left - s.x && r <= p.right + s.x ? (y.y = b ? 1 : -1, M.y = i * Math.abs(
|
|
653
|
+
(p.top + g.height - l) / g.height
|
|
654
|
+
)) : g.height > 0 && (!f || b && !a) && l >= p.bottom - g.height && n?.y !== -1 && r >= p.left - s.x && r <= p.right + s.x && (y.y = b ? -1 : 1, M.y = i * Math.abs(
|
|
655
|
+
(p.bottom - g.height - l) / g.height
|
|
656
|
+
)), g.width > 0 && (!v || x && !h) && r >= p.right - g.width && n?.x !== -1 && l >= p.top - s.y && l <= p.bottom + s.y ? (y.x = x ? -1 : 1, M.x = i * Math.abs(
|
|
657
|
+
(p.right - g.width - r) / g.width
|
|
658
|
+
)) : g.width > 0 && (!h || x && !v) && r <= p.left + g.width && n?.x !== 1 && l >= p.top - s.y && l <= p.bottom + s.y && (y.x = x ? 1 : -1, M.x = i * Math.abs(
|
|
659
|
+
(p.left + g.width - r) / g.width
|
|
662
660
|
)), {
|
|
663
|
-
direction:
|
|
661
|
+
direction: y,
|
|
664
662
|
speed: M
|
|
665
663
|
};
|
|
666
664
|
}
|
|
667
|
-
function
|
|
668
|
-
|
|
669
|
-
}
|
|
670
|
-
function Ce(t, n = !1) {
|
|
671
|
-
if (se(t)) {
|
|
672
|
-
t.scrollIntoViewIfNeeded(n);
|
|
665
|
+
function Ce(t, { block: e = "nearest", inline: n = "nearest" } = {}) {
|
|
666
|
+
if (!C(t))
|
|
673
667
|
return;
|
|
668
|
+
const i = Qt(t), o = [];
|
|
669
|
+
for (const s of i) {
|
|
670
|
+
if (!C(s))
|
|
671
|
+
continue;
|
|
672
|
+
const { top: r, left: l } = oe(t, s);
|
|
673
|
+
let c = r, a = l;
|
|
674
|
+
for (const f of o)
|
|
675
|
+
c -= f.scrollTop, a -= f.scrollLeft;
|
|
676
|
+
if (e !== "none") {
|
|
677
|
+
const f = c < s.scrollTop, h = c + t.offsetHeight > s.scrollTop + s.clientHeight;
|
|
678
|
+
f !== h && (e === "center" ? s.scrollTop = c - s.clientHeight / 2 + t.offsetHeight / 2 : f ? s.scrollTop = c : s.scrollTop = c + t.offsetHeight - s.clientHeight);
|
|
679
|
+
}
|
|
680
|
+
if (n !== "none") {
|
|
681
|
+
const f = a < s.scrollLeft, h = a + t.offsetWidth > s.scrollLeft + s.clientWidth;
|
|
682
|
+
f !== h && (n === "center" ? s.scrollLeft = a - s.clientWidth / 2 + t.offsetWidth / 2 : f ? s.scrollLeft = a : s.scrollLeft = a + t.offsetWidth - s.clientWidth);
|
|
683
|
+
}
|
|
684
|
+
o.push(s);
|
|
674
685
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
i
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
function
|
|
688
|
-
const
|
|
686
|
+
}
|
|
687
|
+
function vt(t) {
|
|
688
|
+
let e = 0, n = 0, i = t;
|
|
689
|
+
for (; i; ) {
|
|
690
|
+
e += i.offsetTop, n += i.offsetLeft;
|
|
691
|
+
const o = i.offsetParent;
|
|
692
|
+
if (!C(o))
|
|
693
|
+
break;
|
|
694
|
+
e += o.clientTop, n += o.clientLeft, i = o;
|
|
695
|
+
}
|
|
696
|
+
return { top: e, left: n };
|
|
697
|
+
}
|
|
698
|
+
function oe(t, e) {
|
|
699
|
+
const n = vt(t), i = vt(e);
|
|
700
|
+
return {
|
|
701
|
+
top: n.top - i.top - e.clientTop,
|
|
702
|
+
left: n.left - i.left - e.clientLeft
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
function re(t, e, n) {
|
|
706
|
+
const { scaleX: i, scaleY: o, x: s, y: r } = e, l = t.left + s + (1 - i) * parseFloat(n), c = t.top + r + (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), a = i ? t.width * i : t.width, f = o ? t.height * o : t.height;
|
|
689
707
|
return {
|
|
690
708
|
width: a,
|
|
691
|
-
height:
|
|
692
|
-
top:
|
|
693
|
-
right:
|
|
694
|
-
bottom:
|
|
695
|
-
left:
|
|
709
|
+
height: f,
|
|
710
|
+
top: c,
|
|
711
|
+
right: l + a,
|
|
712
|
+
bottom: c + f,
|
|
713
|
+
left: l
|
|
696
714
|
};
|
|
697
715
|
}
|
|
698
|
-
function
|
|
699
|
-
const { scaleX: i, scaleY: o, x: s, y: r } =
|
|
716
|
+
function le(t, e, n) {
|
|
717
|
+
const { scaleX: i, scaleY: o, x: s, y: r } = e, l = t.left - s - (1 - i) * parseFloat(n), c = t.top - r - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), a = i ? t.width / i : t.width, f = o ? t.height / o : t.height;
|
|
700
718
|
return {
|
|
701
719
|
width: a,
|
|
702
|
-
height:
|
|
703
|
-
top:
|
|
704
|
-
right:
|
|
705
|
-
bottom:
|
|
706
|
-
left:
|
|
720
|
+
height: f,
|
|
721
|
+
top: c,
|
|
722
|
+
right: l + a,
|
|
723
|
+
bottom: c + f,
|
|
724
|
+
left: l
|
|
707
725
|
};
|
|
708
726
|
}
|
|
709
|
-
function
|
|
710
|
-
return t.animate(
|
|
727
|
+
function Ne({ element: t, keyframes: e, options: n }) {
|
|
728
|
+
return t.animate(e, n).finished;
|
|
711
729
|
}
|
|
712
|
-
function
|
|
713
|
-
if (
|
|
714
|
-
const i =
|
|
730
|
+
function Le(t, e = W(t).translate, n = !0) {
|
|
731
|
+
if (n) {
|
|
732
|
+
const i = Ct(
|
|
715
733
|
t,
|
|
716
734
|
(o) => "translate" in o
|
|
717
735
|
);
|
|
@@ -724,33 +742,33 @@ function Ne(t, n = k(t).translate, e = !0) {
|
|
|
724
742
|
}
|
|
725
743
|
}
|
|
726
744
|
}
|
|
727
|
-
if (
|
|
728
|
-
const i = nt(
|
|
745
|
+
if (e) {
|
|
746
|
+
const i = nt(e);
|
|
729
747
|
if (i)
|
|
730
748
|
return i;
|
|
731
749
|
}
|
|
732
750
|
return { x: 0, y: 0, z: 0 };
|
|
733
751
|
}
|
|
734
|
-
var
|
|
735
|
-
function
|
|
736
|
-
const
|
|
737
|
-
let
|
|
738
|
-
if (
|
|
739
|
-
|
|
740
|
-
const i =
|
|
752
|
+
var ce = new lt((t) => setTimeout(t, 0)), I = /* @__PURE__ */ new Map(), ae = I.clear.bind(I);
|
|
753
|
+
function fe(t) {
|
|
754
|
+
const e = t.ownerDocument;
|
|
755
|
+
let n = I.get(e);
|
|
756
|
+
if (n) return n;
|
|
757
|
+
n = e.getAnimations(), I.set(e, n), ce.schedule(ae);
|
|
758
|
+
const i = n.filter(
|
|
741
759
|
(o) => q(o.effect) && o.effect.target === t
|
|
742
760
|
);
|
|
743
|
-
return
|
|
761
|
+
return I.set(t, i), n;
|
|
744
762
|
}
|
|
745
|
-
function
|
|
746
|
-
const
|
|
763
|
+
function ue(t, e) {
|
|
764
|
+
const n = fe(t).filter((i) => {
|
|
747
765
|
var o, s;
|
|
748
766
|
if (q(i.effect)) {
|
|
749
767
|
const { target: r } = i.effect;
|
|
750
|
-
if ((s = r && ((o =
|
|
751
|
-
return i.effect.getKeyframes().some((
|
|
752
|
-
for (const a of
|
|
753
|
-
if (
|
|
768
|
+
if ((s = r && ((o = e.isValidTarget) == null ? void 0 : o.call(e, r))) != null ? s : !0)
|
|
769
|
+
return i.effect.getKeyframes().some((c) => {
|
|
770
|
+
for (const a of e.properties)
|
|
771
|
+
if (c[a]) return !0;
|
|
754
772
|
});
|
|
755
773
|
}
|
|
756
774
|
}).map((i) => {
|
|
@@ -760,71 +778,61 @@ function fe(t, n) {
|
|
|
760
778
|
i.currentTime = s;
|
|
761
779
|
};
|
|
762
780
|
});
|
|
763
|
-
if (
|
|
764
|
-
return () =>
|
|
781
|
+
if (n.length > 0)
|
|
782
|
+
return () => n.forEach((i) => i?.());
|
|
765
783
|
}
|
|
766
|
-
var
|
|
767
|
-
constructor(t,
|
|
768
|
-
var
|
|
784
|
+
var Pe = class extends it {
|
|
785
|
+
constructor(t, e = {}) {
|
|
786
|
+
var n, i, o, s;
|
|
769
787
|
const {
|
|
770
|
-
frameTransform: r =
|
|
771
|
-
ignoreTransforms:
|
|
772
|
-
getBoundingClientRect:
|
|
773
|
-
} =
|
|
788
|
+
frameTransform: r = At(t),
|
|
789
|
+
ignoreTransforms: l,
|
|
790
|
+
getBoundingClientRect: c = j
|
|
791
|
+
} = e, a = ue(t, {
|
|
774
792
|
properties: ["transform", "translate", "scale", "width", "height"],
|
|
775
|
-
isValidTarget: (
|
|
776
|
-
}),
|
|
777
|
-
let { top: h, left: v, width:
|
|
778
|
-
const x =
|
|
779
|
-
x: (
|
|
793
|
+
isValidTarget: (g) => (g !== t || xt()) && g.contains(t)
|
|
794
|
+
}), f = c(t);
|
|
795
|
+
let { top: h, left: v, width: m, height: w } = f, d;
|
|
796
|
+
const x = W(t), b = ct(x), p = {
|
|
797
|
+
x: (n = b?.scaleX) != null ? n : 1,
|
|
780
798
|
y: (i = b?.scaleY) != null ? i : 1
|
|
781
|
-
},
|
|
782
|
-
a?.(), b && (d =
|
|
783
|
-
|
|
799
|
+
}, y = he(t, x);
|
|
800
|
+
a?.(), b && (d = le(
|
|
801
|
+
f,
|
|
784
802
|
b,
|
|
785
803
|
x.transformOrigin
|
|
786
|
-
), (
|
|
804
|
+
), (l || y) && (h = d.top, v = d.left, m = d.width, w = d.height));
|
|
787
805
|
const M = {
|
|
788
|
-
width: (o = d?.width) != null ? o :
|
|
806
|
+
width: (o = d?.width) != null ? o : m,
|
|
789
807
|
height: (s = d?.height) != null ? s : w
|
|
790
808
|
};
|
|
791
|
-
if (
|
|
792
|
-
const
|
|
809
|
+
if (y && !l && d) {
|
|
810
|
+
const g = re(
|
|
793
811
|
d,
|
|
794
|
-
|
|
812
|
+
y,
|
|
795
813
|
x.transformOrigin
|
|
796
814
|
);
|
|
797
|
-
h =
|
|
815
|
+
h = g.top, v = g.left, m = g.width, w = g.height, p.x = y.scaleX, p.y = y.scaleY;
|
|
798
816
|
}
|
|
799
|
-
r && (
|
|
817
|
+
r && (l || (v *= r.scaleX, m *= r.scaleX, h *= r.scaleY, w *= r.scaleY), v += r.x, h += r.y), super(v, h, m, w), this.scale = p, this.intrinsicWidth = M.width, this.intrinsicHeight = M.height;
|
|
800
818
|
}
|
|
801
819
|
};
|
|
802
|
-
function he(t,
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
let o =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
if (l || a || u) {
|
|
813
|
-
const h = lt({
|
|
814
|
-
transform: typeof l == "string" && l ? l : n.transform,
|
|
815
|
-
translate: typeof a == "string" && a ? a : n.translate,
|
|
816
|
-
scale: typeof u == "string" && u ? u : n.scale
|
|
817
|
-
});
|
|
818
|
-
h && (o = o ? {
|
|
819
|
-
x: o.x + h.x,
|
|
820
|
-
y: o.y + h.y,
|
|
821
|
-
z: (e = o.z) != null ? e : h.z,
|
|
822
|
-
scaleX: o.scaleX * h.scaleX,
|
|
823
|
-
scaleY: o.scaleY * h.scaleY
|
|
824
|
-
} : h);
|
|
825
|
-
}
|
|
820
|
+
function he(t, e) {
|
|
821
|
+
const n = t.getAnimations();
|
|
822
|
+
if (!n.length) return null;
|
|
823
|
+
let i, o, s, r = !1;
|
|
824
|
+
for (const l of n) {
|
|
825
|
+
if (l.playState !== "running") continue;
|
|
826
|
+
const c = q(l.effect) ? l.effect.getKeyframes() : [], a = c[c.length - 1];
|
|
827
|
+
if (!a) continue;
|
|
828
|
+
const { transform: f, translate: h, scale: v } = a;
|
|
829
|
+
typeof f == "string" && f && (i = f, r = !0), typeof h == "string" && h && (o = h, r = !0), typeof v == "string" && v && (s = v, r = !0);
|
|
826
830
|
}
|
|
827
|
-
return
|
|
831
|
+
return r ? ct({
|
|
832
|
+
transform: i ?? e.transform,
|
|
833
|
+
translate: o ?? e.translate,
|
|
834
|
+
scale: s ?? e.scale
|
|
835
|
+
}) : null;
|
|
828
836
|
}
|
|
829
837
|
function Z(t) {
|
|
830
838
|
return "style" in t && typeof t.style == "object" && t.style !== null && "setProperty" in t.style && "removeProperty" in t.style && typeof t.style.setProperty == "function" && typeof t.style.removeProperty == "function";
|
|
@@ -833,30 +841,30 @@ var Fe = class {
|
|
|
833
841
|
constructor(t) {
|
|
834
842
|
this.element = t, this.initial = /* @__PURE__ */ new Map();
|
|
835
843
|
}
|
|
836
|
-
set(t,
|
|
837
|
-
const { element:
|
|
838
|
-
if (Z(
|
|
844
|
+
set(t, e = "") {
|
|
845
|
+
const { element: n } = this;
|
|
846
|
+
if (Z(n))
|
|
839
847
|
for (const [i, o] of Object.entries(t)) {
|
|
840
|
-
const s = `${
|
|
841
|
-
this.initial.has(s) || this.initial.set(s,
|
|
848
|
+
const s = `${e}${i}`;
|
|
849
|
+
this.initial.has(s) || this.initial.set(s, n.style.getPropertyValue(s)), n.style.setProperty(
|
|
842
850
|
s,
|
|
843
851
|
typeof o == "string" ? o : `${o}px`
|
|
844
852
|
);
|
|
845
853
|
}
|
|
846
854
|
}
|
|
847
|
-
remove(t,
|
|
848
|
-
const { element:
|
|
849
|
-
if (Z(
|
|
855
|
+
remove(t, e = "") {
|
|
856
|
+
const { element: n } = this;
|
|
857
|
+
if (Z(n))
|
|
850
858
|
for (const i of t) {
|
|
851
|
-
const o = `${
|
|
852
|
-
|
|
859
|
+
const o = `${e}${i}`;
|
|
860
|
+
n.style.removeProperty(o);
|
|
853
861
|
}
|
|
854
862
|
}
|
|
855
863
|
reset() {
|
|
856
864
|
const { element: t } = this;
|
|
857
865
|
if (Z(t)) {
|
|
858
|
-
for (const [
|
|
859
|
-
t.style.setProperty(
|
|
866
|
+
for (const [e, n] of this.initial)
|
|
867
|
+
t.style.setProperty(e, n);
|
|
860
868
|
t.getAttribute("style") === "" && t.removeAttribute("style");
|
|
861
869
|
}
|
|
862
870
|
}
|
|
@@ -864,80 +872,79 @@ var Fe = class {
|
|
|
864
872
|
function de(t) {
|
|
865
873
|
return t ? t instanceof E(t).Element || X(t) && t.nodeType === Node.ELEMENT_NODE : !1;
|
|
866
874
|
}
|
|
867
|
-
function
|
|
875
|
+
function Oe(t) {
|
|
868
876
|
if (!t) return !1;
|
|
869
|
-
const { KeyboardEvent:
|
|
870
|
-
return t instanceof
|
|
877
|
+
const { KeyboardEvent: e } = E(t.target);
|
|
878
|
+
return t instanceof e;
|
|
871
879
|
}
|
|
872
|
-
function
|
|
880
|
+
function Ie(t) {
|
|
873
881
|
if (!t) return !1;
|
|
874
|
-
const { PointerEvent:
|
|
875
|
-
return t instanceof
|
|
882
|
+
const { PointerEvent: e } = E(t.target);
|
|
883
|
+
return t instanceof e;
|
|
876
884
|
}
|
|
877
885
|
function Xe(t) {
|
|
878
886
|
if (!de(t)) return !1;
|
|
879
|
-
const { tagName:
|
|
880
|
-
return
|
|
887
|
+
const { tagName: e } = t;
|
|
888
|
+
return e === "INPUT" || e === "TEXTAREA" || pe(t);
|
|
881
889
|
}
|
|
882
890
|
function pe(t) {
|
|
883
891
|
return t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false";
|
|
884
892
|
}
|
|
885
893
|
var tt = {};
|
|
886
|
-
function
|
|
887
|
-
const
|
|
888
|
-
return tt[t] =
|
|
894
|
+
function Ve(t) {
|
|
895
|
+
const e = tt[t] == null ? 0 : tt[t] + 1;
|
|
896
|
+
return tt[t] = e, `${t}-${e}`;
|
|
889
897
|
}
|
|
890
898
|
export {
|
|
891
|
-
|
|
899
|
+
Pe as DOMRectangle,
|
|
892
900
|
Re as Listeners,
|
|
893
901
|
Ee as PositionObserver,
|
|
894
902
|
Te as ProxiedElements,
|
|
895
903
|
zt as ResizeNotifier,
|
|
896
|
-
|
|
904
|
+
lt as Scheduler,
|
|
897
905
|
ne as ScrollDirection,
|
|
898
906
|
Fe as Styles,
|
|
899
|
-
|
|
907
|
+
Ne as animateTransform,
|
|
900
908
|
ke as canScroll,
|
|
901
|
-
|
|
909
|
+
bt as canUseDOM,
|
|
902
910
|
xe as cloneElement,
|
|
903
|
-
|
|
911
|
+
Le as computeTranslate,
|
|
904
912
|
We as detectScrollIntent,
|
|
905
|
-
|
|
913
|
+
Ve as generateUniqueId,
|
|
906
914
|
j as getBoundingRectangle,
|
|
907
|
-
|
|
915
|
+
W as getComputedStyles,
|
|
908
916
|
rt as getDocument,
|
|
909
917
|
at as getDocuments,
|
|
910
|
-
|
|
918
|
+
Ft as getElementFromPoint,
|
|
911
919
|
ye as getEventCoordinates,
|
|
912
|
-
|
|
913
|
-
Qt as getFirstScrollableAncestor,
|
|
920
|
+
Ct as getFinalKeyframe,
|
|
914
921
|
me as getFixedPositionOffset,
|
|
915
922
|
H as getFrameElement,
|
|
916
|
-
|
|
923
|
+
At as getFrameTransform,
|
|
917
924
|
we as getRoot,
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
925
|
+
Qt as getScrollableAncestors,
|
|
926
|
+
Nt as getViewportBoundingRectangle,
|
|
927
|
+
B as getVisibleBoundingRectangle,
|
|
921
928
|
E as getWindow,
|
|
922
|
-
|
|
923
|
-
|
|
929
|
+
le as inverseTransform,
|
|
930
|
+
mt as isDocument,
|
|
924
931
|
dt as isDocumentScrollingElement,
|
|
925
932
|
de as isElement,
|
|
926
|
-
|
|
933
|
+
C as isHTMLElement,
|
|
927
934
|
_e as isInteractiveElement,
|
|
928
|
-
|
|
935
|
+
Oe as isKeyboardEvent,
|
|
929
936
|
q as isKeyframeEffect,
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
937
|
+
Ie as isPointerEvent,
|
|
938
|
+
xt as isSafari,
|
|
939
|
+
Tt as isShadowRoot,
|
|
933
940
|
Xe as isTextInput,
|
|
934
|
-
|
|
941
|
+
ct as parseTransform,
|
|
935
942
|
nt as parseTranslate,
|
|
936
943
|
be as prefersReducedMotion,
|
|
937
944
|
Ae as scheduler,
|
|
938
945
|
Ce as scrollIntoViewIfNeeded,
|
|
939
946
|
Se as showPopover,
|
|
940
|
-
|
|
947
|
+
Kt as supportsPopover,
|
|
941
948
|
Z as supportsStyle,
|
|
942
|
-
|
|
949
|
+
Xt as timeout
|
|
943
950
|
};
|