@thednp/shorty 2.0.11 → 2.0.13
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 +0 -3
- package/dist/chunk-CP6mxX4N.js +27 -0
- package/dist/index.d.ts +2232 -0
- package/dist/index.js +2382 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +31 -24
- package/dist/shorty.cjs +0 -2
- package/dist/shorty.cjs.map +0 -1
- package/dist/shorty.d.ts +0 -2145
- package/dist/shorty.js +0 -2
- package/dist/shorty.js.map +0 -1
- package/dist/shorty.mjs +0 -641
- package/dist/shorty.mjs.map +0 -1
package/dist/shorty.mjs
DELETED
|
@@ -1,641 +0,0 @@
|
|
|
1
|
-
const Ce = "2.0.11", Me = "aria-checked", De = "aria-description", Le = "aria-describedby", Oe = "aria-expanded", xe = "aria-haspopup", X = "aria-hidden", ze = "aria-label", Ie = "aria-labelledby", Pe = "aria-modal", Fe = "aria-pressed", Be = "aria-selected", Ve = "aria-valuemin", He = "aria-valuemax", Ue = "aria-valuenow", We = "aria-valuetext", Y = "abort", tt = "beforeunload", et = "blur", nt = "change", ot = "contextmenu", U = "DOMContentLoaded", st = "DOMMouseScroll", rt = "error", ct = "focus", at = "focusin", it = "focusout", ut = "gesturechange", lt = "gestureend", dt = "gesturestart", ft = "keydown", pt = "keypress", gt = "keyup", mt = "load", vt = "click", bt = "dblclick", Et = "mousedown", ht = "mouseup", yt = "hover", wt = "mouseenter", At = "mouseleave", St = "mousein", kt = "mouseout", Nt = "mouseover", Tt = "mousemove", Ct = "mousewheel", Mt = "move", Dt = "orientationchange", Lt = "pointercancel", Ot = "pointerdown", xt = "pointerleave", zt = "pointermove", It = "pointerup", Pt = "readystatechange", Ft = "reset", Bt = "resize", Vt = "select", Ht = "selectend", Ut = "selectstart", Wt = "scroll", Rt = "submit", Qt = "touchstart", jt = "touchmove", Kt = "touchcancel", qt = "touchend", Gt = "unload", Re = {
|
|
2
|
-
DOMContentLoaded: U,
|
|
3
|
-
DOMMouseScroll: st,
|
|
4
|
-
abort: Y,
|
|
5
|
-
beforeunload: tt,
|
|
6
|
-
blur: et,
|
|
7
|
-
change: nt,
|
|
8
|
-
click: vt,
|
|
9
|
-
contextmenu: ot,
|
|
10
|
-
dblclick: bt,
|
|
11
|
-
error: rt,
|
|
12
|
-
focus: ct,
|
|
13
|
-
focusin: at,
|
|
14
|
-
focusout: it,
|
|
15
|
-
gesturechange: ut,
|
|
16
|
-
gestureend: lt,
|
|
17
|
-
gesturestart: dt,
|
|
18
|
-
hover: yt,
|
|
19
|
-
keydown: ft,
|
|
20
|
-
keypress: pt,
|
|
21
|
-
keyup: gt,
|
|
22
|
-
load: mt,
|
|
23
|
-
mousedown: Et,
|
|
24
|
-
mousemove: Tt,
|
|
25
|
-
mousein: St,
|
|
26
|
-
mouseout: kt,
|
|
27
|
-
mouseenter: wt,
|
|
28
|
-
mouseleave: At,
|
|
29
|
-
mouseover: Nt,
|
|
30
|
-
mouseup: ht,
|
|
31
|
-
mousewheel: Ct,
|
|
32
|
-
move: Mt,
|
|
33
|
-
orientationchange: Dt,
|
|
34
|
-
pointercancel: Lt,
|
|
35
|
-
pointerdown: Ot,
|
|
36
|
-
pointerleave: xt,
|
|
37
|
-
pointermove: zt,
|
|
38
|
-
pointerup: It,
|
|
39
|
-
readystatechange: Pt,
|
|
40
|
-
reset: Ft,
|
|
41
|
-
resize: Bt,
|
|
42
|
-
scroll: Wt,
|
|
43
|
-
select: Vt,
|
|
44
|
-
selectend: Ht,
|
|
45
|
-
selectstart: Ut,
|
|
46
|
-
submit: Rt,
|
|
47
|
-
touchcancel: Kt,
|
|
48
|
-
touchend: qt,
|
|
49
|
-
touchmove: jt,
|
|
50
|
-
touchstart: Qt,
|
|
51
|
-
unload: Gt
|
|
52
|
-
}, Qe = "drag", je = "dragstart", Ke = "dragenter", qe = "dragleave", Ge = "dragover", Ze = "dragend", _e = "loadstart", $e = {
|
|
53
|
-
start: "mousedown",
|
|
54
|
-
end: "mouseup",
|
|
55
|
-
move: "mousemove",
|
|
56
|
-
cancel: "mouseleave"
|
|
57
|
-
}, Je = { down: "mousedown", up: "mouseup" }, Xe = "onmouseleave" in document ? ["mouseenter", "mouseleave"] : ["mouseover", "mouseout"], Ye = {
|
|
58
|
-
start: "touchstart",
|
|
59
|
-
end: "touchend",
|
|
60
|
-
move: "touchmove",
|
|
61
|
-
cancel: "touchcancel"
|
|
62
|
-
}, tn = { in: "focusin", out: "focusout" }, Zt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]', en = {
|
|
63
|
-
Backspace: "Backspace",
|
|
64
|
-
Tab: "Tab",
|
|
65
|
-
Enter: "Enter",
|
|
66
|
-
Shift: "Shift",
|
|
67
|
-
Control: "Control",
|
|
68
|
-
Alt: "Alt",
|
|
69
|
-
Pause: "Pause",
|
|
70
|
-
CapsLock: "CapsLock",
|
|
71
|
-
Escape: "Escape",
|
|
72
|
-
Scape: "Space",
|
|
73
|
-
ArrowLeft: "ArrowLeft",
|
|
74
|
-
ArrowUp: "ArrowUp",
|
|
75
|
-
ArrowRight: "ArrowRight",
|
|
76
|
-
ArrowDown: "ArrowDown",
|
|
77
|
-
Insert: "Insert",
|
|
78
|
-
Delete: "Delete",
|
|
79
|
-
Meta: "Meta",
|
|
80
|
-
ContextMenu: "ContextMenu",
|
|
81
|
-
ScrollLock: "ScrollLock"
|
|
82
|
-
}, nn = "Alt", on = "ArrowDown", sn = "ArrowUp", rn = "ArrowLeft", cn = "ArrowRight", an = "Backspace", un = "CapsLock", ln = "Control", dn = "Delete", fn = "Enter", pn = "NumpadEnter", gn = "Escape", mn = "Insert", vn = "Meta", bn = "Pause", En = "ScrollLock", hn = "Shift", yn = "Space", wn = "Tab", _t = "animationDuration", $t = "animationDelay", W = "animationName", C = "animationend", Jt = "transitionDuration", Xt = "transitionDelay", M = "transitionend", R = "transitionProperty", An = "addEventListener", Sn = "removeEventListener", kn = {
|
|
83
|
-
linear: "linear",
|
|
84
|
-
easingSinusoidalIn: "cubic-bezier(0.47,0,0.745,0.715)",
|
|
85
|
-
easingSinusoidalOut: "cubic-bezier(0.39,0.575,0.565,1)",
|
|
86
|
-
easingSinusoidalInOut: "cubic-bezier(0.445,0.05,0.55,0.95)",
|
|
87
|
-
easingQuadraticIn: "cubic-bezier(0.550,0.085,0.680,0.530)",
|
|
88
|
-
easingQuadraticOut: "cubic-bezier(0.250,0.460,0.450,0.940)",
|
|
89
|
-
easingQuadraticInOut: "cubic-bezier(0.455,0.030,0.515,0.955)",
|
|
90
|
-
easingCubicIn: "cubic-bezier(0.55,0.055,0.675,0.19)",
|
|
91
|
-
easingCubicOut: "cubic-bezier(0.215,0.61,0.355,1)",
|
|
92
|
-
easingCubicInOut: "cubic-bezier(0.645,0.045,0.355,1)",
|
|
93
|
-
easingQuarticIn: "cubic-bezier(0.895,0.03,0.685,0.22)",
|
|
94
|
-
easingQuarticOut: "cubic-bezier(0.165,0.84,0.44,1)",
|
|
95
|
-
easingQuarticInOut: "cubic-bezier(0.77,0,0.175,1)",
|
|
96
|
-
easingQuinticIn: "cubic-bezier(0.755,0.05,0.855,0.06)",
|
|
97
|
-
easingQuinticOut: "cubic-bezier(0.23,1,0.32,1)",
|
|
98
|
-
easingQuinticInOut: "cubic-bezier(0.86,0,0.07,1)",
|
|
99
|
-
easingExponentialIn: "cubic-bezier(0.95,0.05,0.795,0.035)",
|
|
100
|
-
easingExponentialOut: "cubic-bezier(0.19,1,0.22,1)",
|
|
101
|
-
easingExponentialInOut: "cubic-bezier(1,0,0,1)",
|
|
102
|
-
easingCircularIn: "cubic-bezier(0.6,0.04,0.98,0.335)",
|
|
103
|
-
easingCircularOut: "cubic-bezier(0.075,0.82,0.165,1)",
|
|
104
|
-
easingCircularInOut: "cubic-bezier(0.785,0.135,0.15,0.86)",
|
|
105
|
-
easingBackIn: "cubic-bezier(0.6,-0.28,0.735,0.045)",
|
|
106
|
-
easingBackOut: "cubic-bezier(0.175,0.885,0.32,1.275)",
|
|
107
|
-
easingBackInOut: "cubic-bezier(0.68,-0.55,0.265,1.55)"
|
|
108
|
-
}, Nn = "offsetHeight", Tn = "offsetWidth", Cn = "scrollHeight", Mn = "scrollWidth", Dn = "tabindex", Ln = navigator.userAgentData, { userAgent: Yt } = navigator, On = Yt, xn = () => {
|
|
109
|
-
const t = /iPhone|iPad|iPod|Android/i;
|
|
110
|
-
return navigator?.userAgentData?.brands.some(
|
|
111
|
-
(e) => t.test(e.brand)
|
|
112
|
-
) || t.test(navigator?.userAgent) || !1;
|
|
113
|
-
}, zn = () => {
|
|
114
|
-
const t = /(iPhone|iPod|iPad)/;
|
|
115
|
-
return navigator?.userAgentData?.brands.some(
|
|
116
|
-
(e) => t.test(e.brand)
|
|
117
|
-
) || t.test(
|
|
118
|
-
navigator?.userAgent
|
|
119
|
-
) || !1;
|
|
120
|
-
}, In = () => navigator?.userAgent?.includes("Firefox") || !1, te = () => typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none"), Pn = () => ["webkitPerspective", "perspective"].some((t) => t in document.head.style), ee = () => {
|
|
121
|
-
}, Q = (t, e, n, o) => {
|
|
122
|
-
const s = o || !1;
|
|
123
|
-
t.addEventListener(
|
|
124
|
-
e,
|
|
125
|
-
n,
|
|
126
|
-
s
|
|
127
|
-
);
|
|
128
|
-
}, j = (t, e, n, o) => {
|
|
129
|
-
const s = o || !1;
|
|
130
|
-
t.removeEventListener(
|
|
131
|
-
e,
|
|
132
|
-
n,
|
|
133
|
-
s
|
|
134
|
-
);
|
|
135
|
-
}, ne = (t, e, n, o) => {
|
|
136
|
-
const s = (r) => {
|
|
137
|
-
(r.target === t || r.currentTarget === t) && (n.apply(t, [r]), j(t, e, s, o));
|
|
138
|
-
};
|
|
139
|
-
Q(t, e, s, o);
|
|
140
|
-
}, Fn = () => {
|
|
141
|
-
let t = !1;
|
|
142
|
-
try {
|
|
143
|
-
const e = Object.defineProperty({}, "passive", {
|
|
144
|
-
get: () => (t = !0, t)
|
|
145
|
-
});
|
|
146
|
-
ne(document, U, ee, e);
|
|
147
|
-
} catch {
|
|
148
|
-
}
|
|
149
|
-
return t;
|
|
150
|
-
}, Bn = () => ["webkitTransform", "transform"].some((t) => t in document.head.style), Vn = () => "ontouchstart" in window || "msMaxTouchPoints" in navigator, Hn = () => ["webkitAnimation", "animation"].some((t) => t in document.head.style), Un = () => ["webkitTransition", "transition"].some((t) => t in document.head.style), K = (t, e) => t.getAttribute(e), Wn = (t, e, n) => e.getAttributeNS(t, n), oe = (t, e) => t.hasAttribute(e), Rn = (t, e, n) => e.hasAttributeNS(t, n), Qn = (t, e, n) => t.setAttribute(e, n), jn = (t, e, n, o) => e.setAttributeNS(t, n, o), Kn = (t, e) => t.removeAttribute(e), qn = (t, e, n) => e.removeAttributeNS(t, n), Gn = (t, ...e) => {
|
|
151
|
-
t.classList.add(...e);
|
|
152
|
-
}, Zn = (t, ...e) => {
|
|
153
|
-
t.classList.remove(...e);
|
|
154
|
-
}, _n = (t, e) => t.classList.contains(e), { body: $n } = document, { documentElement: Jn } = document, { head: Xn } = document, Yn = (t) => Array.from(t), v = (t) => t != null && typeof t == "object" || !1, u = (t) => v(t) && typeof t.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(
|
|
155
|
-
(e) => t.nodeType === e
|
|
156
|
-
) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {
|
|
157
|
-
data: E,
|
|
158
|
-
set: (t, e, n) => {
|
|
159
|
-
if (!i(t)) return;
|
|
160
|
-
E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);
|
|
161
|
-
},
|
|
162
|
-
getAllFor: (t) => E.get(t) || null,
|
|
163
|
-
get: (t, e) => {
|
|
164
|
-
if (!i(t) || !e) return null;
|
|
165
|
-
const n = L.getAllFor(e);
|
|
166
|
-
return t && n && n.get(t) || null;
|
|
167
|
-
},
|
|
168
|
-
remove: (t, e) => {
|
|
169
|
-
const n = L.getAllFor(e);
|
|
170
|
-
!n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));
|
|
171
|
-
}
|
|
172
|
-
}, to = (t, e) => L.get(t, e), eo = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), P = (t) => t?.trim().replace(
|
|
173
|
-
/(?:^\w|[A-Z]|\b\w)/g,
|
|
174
|
-
(e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()
|
|
175
|
-
).replace(/\s+/g, ""), N = (t) => typeof t == "string" || !1, q = (t) => v(t) && t.constructor.name === "Window" || !1, G = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => G(t) ? t : u(t) ? t.ownerDocument : q(t) ? t.document : globalThis.document, T = (t, ...e) => Object.assign(t, ...e), se = (t) => {
|
|
176
|
-
if (!t) return;
|
|
177
|
-
if (N(t))
|
|
178
|
-
return d().createElement(t);
|
|
179
|
-
const { tagName: e } = t, n = se(e);
|
|
180
|
-
if (!n) return;
|
|
181
|
-
const o = { ...t };
|
|
182
|
-
return delete o.tagName, T(n, o);
|
|
183
|
-
}, re = (t, e) => {
|
|
184
|
-
if (!t || !e) return;
|
|
185
|
-
if (N(e))
|
|
186
|
-
return d().createElementNS(t, e);
|
|
187
|
-
const { tagName: n } = e, o = re(t, n);
|
|
188
|
-
if (!o) return;
|
|
189
|
-
const s = { ...e };
|
|
190
|
-
return delete s.tagName, T(o, s);
|
|
191
|
-
}, Z = (t, e) => t.dispatchEvent(e), no = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {
|
|
192
|
-
const o = getComputedStyle(t, n), s = e.replace("webkit", "Webkit").replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
193
|
-
return o.getPropertyValue(s);
|
|
194
|
-
}, ce = (t) => {
|
|
195
|
-
const e = f(t, W), n = f(t, $t), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
196
|
-
return Number.isNaN(s) ? 0 : s;
|
|
197
|
-
}, ae = (t) => {
|
|
198
|
-
const e = f(t, W), n = f(t, _t), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
199
|
-
return Number.isNaN(s) ? 0 : s;
|
|
200
|
-
}, oo = (t, e) => {
|
|
201
|
-
let n = 0;
|
|
202
|
-
const o = new Event(C), s = ae(t), r = ce(t);
|
|
203
|
-
if (s) {
|
|
204
|
-
const a = (l) => {
|
|
205
|
-
l.target === t && (e.apply(t, [l]), t.removeEventListener(C, a), n = 1);
|
|
206
|
-
};
|
|
207
|
-
t.addEventListener(C, a), setTimeout(() => {
|
|
208
|
-
n || Z(t, o);
|
|
209
|
-
}, s + r + 17);
|
|
210
|
-
} else
|
|
211
|
-
e.apply(t, [o]);
|
|
212
|
-
}, ie = (t) => {
|
|
213
|
-
const e = f(t, R), n = f(t, Xt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
214
|
-
return Number.isNaN(s) ? 0 : s;
|
|
215
|
-
}, ue = (t) => {
|
|
216
|
-
const e = f(t, R), n = f(t, Jt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
217
|
-
return Number.isNaN(s) ? 0 : s;
|
|
218
|
-
}, so = (t, e) => {
|
|
219
|
-
let n = 0;
|
|
220
|
-
const o = new Event(M), s = ue(t), r = ie(t);
|
|
221
|
-
if (s) {
|
|
222
|
-
const a = (l) => {
|
|
223
|
-
l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);
|
|
224
|
-
};
|
|
225
|
-
t.addEventListener(M, a), setTimeout(() => {
|
|
226
|
-
n || Z(t, o);
|
|
227
|
-
}, s + r + 17);
|
|
228
|
-
} else
|
|
229
|
-
e.apply(t, [o]);
|
|
230
|
-
}, ro = (t) => Float32Array.from(Array.from(t)), co = (t) => Float64Array.from(Array.from(t)), ao = (t, e) => t.focus(e), io = (t) => t?.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\s+/g, "-").toLowerCase(), F = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), uo = (t, e, n, o) => {
|
|
231
|
-
if (!i(t)) return e;
|
|
232
|
-
const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = "title";
|
|
233
|
-
return S(r).forEach(([c, g]) => {
|
|
234
|
-
const A = o && typeof c == "string" && c.includes(o) ? P(c.replace(o, "")) : P(c);
|
|
235
|
-
l[A] = F(g);
|
|
236
|
-
}), S(s).forEach(([c, g]) => {
|
|
237
|
-
s[c] = F(g);
|
|
238
|
-
}), S(e).forEach(([c, g]) => {
|
|
239
|
-
c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? K(t, p) : g;
|
|
240
|
-
}), a;
|
|
241
|
-
}, lo = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), fo = (t) => Object.keys(t), po = (t) => Object.values(t), go = (t) => Object.fromEntries(t), mo = (t, e) => {
|
|
242
|
-
const n = new CustomEvent(t, {
|
|
243
|
-
cancelable: !0,
|
|
244
|
-
bubbles: !0
|
|
245
|
-
});
|
|
246
|
-
return v(e) && T(n, e), n;
|
|
247
|
-
}, vo = { passive: !0 }, bo = (t) => t.offsetHeight, Eo = (t, e) => {
|
|
248
|
-
S(e).forEach(([n, o]) => {
|
|
249
|
-
if (o && N(n) && n.includes("--"))
|
|
250
|
-
t.style.setProperty(n, o);
|
|
251
|
-
else {
|
|
252
|
-
const s = {};
|
|
253
|
-
s[n] = o, T(t.style, s);
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
}, O = (t) => v(t) && t.constructor.name === "Map" || !1, le = (t) => typeof t == "number" || !1, m = /* @__PURE__ */ new Map(), ho = {
|
|
257
|
-
set: (t, e, n, o) => {
|
|
258
|
-
i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));
|
|
259
|
-
},
|
|
260
|
-
get: (t, e) => {
|
|
261
|
-
if (!i(t)) return null;
|
|
262
|
-
const n = m.get(t);
|
|
263
|
-
return e && n && O(n) ? n.get(e) || null : le(n) ? n : null;
|
|
264
|
-
},
|
|
265
|
-
clear: (t, e) => {
|
|
266
|
-
if (!i(t)) return;
|
|
267
|
-
const n = m.get(t);
|
|
268
|
-
e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));
|
|
269
|
-
}
|
|
270
|
-
}, yo = (t) => t.toLowerCase(), wo = (t) => t.toUpperCase(), de = (t, e) => (u(e) ? e : d()).querySelectorAll(t), z = /* @__PURE__ */ new Map();
|
|
271
|
-
function _(t) {
|
|
272
|
-
const { shiftKey: e, code: n } = t, o = d(this), s = [
|
|
273
|
-
...de(Zt, this)
|
|
274
|
-
].filter(
|
|
275
|
-
(l) => !oe(l, "disabled") && !K(l, X)
|
|
276
|
-
);
|
|
277
|
-
if (!s.length) return;
|
|
278
|
-
const r = s[0], a = s[s.length - 1];
|
|
279
|
-
n === "Tab" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));
|
|
280
|
-
}
|
|
281
|
-
const I = (t) => z.has(t) === !0, fe = (t) => {
|
|
282
|
-
I(t) || (Q(t, "keydown", _), z.set(t, !0));
|
|
283
|
-
}, pe = (t) => {
|
|
284
|
-
I(t) && (j(t, "keydown", _), z.delete(t));
|
|
285
|
-
}, Ao = (t) => {
|
|
286
|
-
I(t) ? pe(t) : fe(t);
|
|
287
|
-
}, b = (t) => i(t) && "offsetWidth" in t || !1, y = (t, e) => {
|
|
288
|
-
const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();
|
|
289
|
-
let p = 1, c = 1;
|
|
290
|
-
if (e && b(t)) {
|
|
291
|
-
const { offsetWidth: g, offsetHeight: A } = t;
|
|
292
|
-
p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;
|
|
293
|
-
}
|
|
294
|
-
return {
|
|
295
|
-
width: n / p,
|
|
296
|
-
height: o / c,
|
|
297
|
-
top: s / c,
|
|
298
|
-
right: r / p,
|
|
299
|
-
bottom: a / c,
|
|
300
|
-
left: l / p,
|
|
301
|
-
x: l / p,
|
|
302
|
-
y: s / c
|
|
303
|
-
};
|
|
304
|
-
}, So = (t) => d(t).body, w = (t) => d(t).documentElement, ko = (t) => d(t).head, ge = (t) => u(t) ? (t.nodeName || "").toLowerCase() : "#document", No = (t) => {
|
|
305
|
-
const e = q(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;
|
|
306
|
-
return { x: n, y: o };
|
|
307
|
-
}, me = (t) => u(t) && t.constructor.name === "ShadowRoot" || !1, k = (t) => t.nodeName === "HTML" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || me(t) && t.host || w(t), ve = (t) => t ? G(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, be = (t) => u(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, Ee = (t, e) => t.matches(e), D = (t) => f(t, "position") === "static", he = (t) => f(t, "position") === "fixed", $ = (t) => [":popover-open", ":modal"].some((e) => {
|
|
308
|
-
try {
|
|
309
|
-
return Ee(t, e);
|
|
310
|
-
} catch {
|
|
311
|
-
return !1;
|
|
312
|
-
}
|
|
313
|
-
}), J = (t) => {
|
|
314
|
-
const e = te(), n = i(t) ? getComputedStyle(t) : t;
|
|
315
|
-
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some(
|
|
316
|
-
(o) => (n.willChange || "").includes(o)
|
|
317
|
-
) || ["paint", "layout", "strict", "content"].some(
|
|
318
|
-
(o) => (n.contain || "").includes(o)
|
|
319
|
-
);
|
|
320
|
-
}, ye = (t) => {
|
|
321
|
-
let e = k(t);
|
|
322
|
-
for (; i(e) && !x(e); ) {
|
|
323
|
-
if (J(e))
|
|
324
|
-
return e;
|
|
325
|
-
if ($(e))
|
|
326
|
-
return null;
|
|
327
|
-
e = k(e);
|
|
328
|
-
}
|
|
329
|
-
return null;
|
|
330
|
-
}, x = (t) => ["html", "body", "#document"].includes(ge(t)), B = (t) => {
|
|
331
|
-
if (!b(t) || he(t))
|
|
332
|
-
return null;
|
|
333
|
-
let e = t.offsetParent;
|
|
334
|
-
return w(t) === e && (e = e.ownerDocument.body), e;
|
|
335
|
-
}, To = (t) => {
|
|
336
|
-
const e = ve(t);
|
|
337
|
-
if (!u(t) || $(t))
|
|
338
|
-
return e;
|
|
339
|
-
if (!b(t)) {
|
|
340
|
-
let o = k(t);
|
|
341
|
-
for (; o && !x(o); ) {
|
|
342
|
-
if (i(o) && !D(o))
|
|
343
|
-
return o;
|
|
344
|
-
o = k(o);
|
|
345
|
-
}
|
|
346
|
-
return e;
|
|
347
|
-
}
|
|
348
|
-
let n = B(t);
|
|
349
|
-
for (; n && be(n) && D(n); )
|
|
350
|
-
n = B(n);
|
|
351
|
-
return n && x(n) && D(n) && !J(n) ? e : n || ye(t) || e;
|
|
352
|
-
}, we = (t) => {
|
|
353
|
-
if (!b(t)) return !1;
|
|
354
|
-
const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;
|
|
355
|
-
return Math.round(e) !== o || Math.round(n) !== s;
|
|
356
|
-
}, Co = (t, e, n) => {
|
|
357
|
-
const o = b(e), s = y(
|
|
358
|
-
t,
|
|
359
|
-
o && we(e)
|
|
360
|
-
), r = { x: 0, y: 0 };
|
|
361
|
-
if (o) {
|
|
362
|
-
const a = y(e, !0);
|
|
363
|
-
r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;
|
|
364
|
-
}
|
|
365
|
-
return {
|
|
366
|
-
x: s.left + n.x - r.x,
|
|
367
|
-
y: s.top + n.y - r.y,
|
|
368
|
-
width: s.width,
|
|
369
|
-
height: s.height
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
let V = 0, H = 0;
|
|
373
|
-
const h = /* @__PURE__ */ new Map(), Ae = (t, e) => {
|
|
374
|
-
let n = e ? V : H;
|
|
375
|
-
if (e) {
|
|
376
|
-
const o = Ae(t), s = h.get(o) || /* @__PURE__ */ new Map();
|
|
377
|
-
h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), V += 1) : n = s.get(e);
|
|
378
|
-
} else {
|
|
379
|
-
const o = t.id || t;
|
|
380
|
-
h.has(o) ? n = h.get(o) : (h.set(o, n), H += 1);
|
|
381
|
-
}
|
|
382
|
-
return n;
|
|
383
|
-
}, Se = (t) => Array.isArray(t) || !1, Mo = (t) => u(t) && t.nodeName === "CANVAS" || !1, ke = (t) => b(t) && !!t.shadowRoot || !1, Do = (t) => {
|
|
384
|
-
if (!u(t)) return !1;
|
|
385
|
-
const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);
|
|
386
|
-
return e <= o && n >= 0;
|
|
387
|
-
}, Lo = (t) => {
|
|
388
|
-
if (!i(t)) return !1;
|
|
389
|
-
const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);
|
|
390
|
-
return o >= 0 && s >= 0 && r <= n && a <= e;
|
|
391
|
-
}, Oo = (t) => Se(t) && t.every(i) || !1, xo = (t) => typeof t == "function" || !1, zo = (t) => v(t) && t.constructor.name === "HTMLCollection" || !1, Io = (t) => b(t) && t.tagName === "IMG" || !1, Po = (t) => {
|
|
392
|
-
if (!N(t)) return !1;
|
|
393
|
-
try {
|
|
394
|
-
JSON.parse(t);
|
|
395
|
-
} catch {
|
|
396
|
-
return !1;
|
|
397
|
-
}
|
|
398
|
-
return !0;
|
|
399
|
-
}, Fo = (t) => v(t) && t.constructor.name === "WeakMap" || !1, Bo = (t) => u(t) && ["SVG", "Image", "Video", "Canvas"].some(
|
|
400
|
-
(e) => t.constructor.name.includes(e)
|
|
401
|
-
) || !1, Vo = (t) => v(t) && t.constructor.name === "NodeList" || !1, Ho = (t) => w(t).dir === "rtl", Uo = (t) => u(t) && t.constructor.name.includes("SVG") || !1, Ne = (t, e) => !t || !e ? null : t.closest(e) || Ne(t.getRootNode().host, e) || null, Wo = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), Te = (t, e) => (u(e) ? e : d()).getElementsByTagName(
|
|
402
|
-
t
|
|
403
|
-
), Ro = (t) => [...Te("*", t)].filter(ke), Qo = (t, e) => d(e).getElementById(t), jo = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(
|
|
404
|
-
t
|
|
405
|
-
);
|
|
406
|
-
export {
|
|
407
|
-
Yn as ArrayFrom,
|
|
408
|
-
U as DOMContentLoadedEvent,
|
|
409
|
-
st as DOMMouseScrollEvent,
|
|
410
|
-
L as Data,
|
|
411
|
-
ro as Float32ArrayFrom,
|
|
412
|
-
co as Float64ArrayFrom,
|
|
413
|
-
T as ObjectAssign,
|
|
414
|
-
S as ObjectEntries,
|
|
415
|
-
go as ObjectFromEntries,
|
|
416
|
-
lo as ObjectHasOwn,
|
|
417
|
-
fo as ObjectKeys,
|
|
418
|
-
po as ObjectValues,
|
|
419
|
-
ho as Timer,
|
|
420
|
-
Y as abortEvent,
|
|
421
|
-
Gn as addClass,
|
|
422
|
-
An as addEventListener,
|
|
423
|
-
fe as addFocusTrap,
|
|
424
|
-
$t as animationDelay,
|
|
425
|
-
_t as animationDuration,
|
|
426
|
-
C as animationEndEvent,
|
|
427
|
-
W as animationName,
|
|
428
|
-
Me as ariaChecked,
|
|
429
|
-
Le as ariaDescribedBy,
|
|
430
|
-
De as ariaDescription,
|
|
431
|
-
Oe as ariaExpanded,
|
|
432
|
-
xe as ariaHasPopup,
|
|
433
|
-
X as ariaHidden,
|
|
434
|
-
ze as ariaLabel,
|
|
435
|
-
Ie as ariaLabelledBy,
|
|
436
|
-
Pe as ariaModal,
|
|
437
|
-
Fe as ariaPressed,
|
|
438
|
-
Be as ariaSelected,
|
|
439
|
-
He as ariaValueMax,
|
|
440
|
-
Ve as ariaValueMin,
|
|
441
|
-
Ue as ariaValueNow,
|
|
442
|
-
We as ariaValueText,
|
|
443
|
-
tt as beforeunloadEvent,
|
|
444
|
-
kn as bezierEasings,
|
|
445
|
-
et as blurEvent,
|
|
446
|
-
P as camelCase,
|
|
447
|
-
eo as capitalize,
|
|
448
|
-
nt as changeEvent,
|
|
449
|
-
Ne as closest,
|
|
450
|
-
ot as contextmenuEvent,
|
|
451
|
-
mo as createCustomEvent,
|
|
452
|
-
se as createElement,
|
|
453
|
-
re as createElementNS,
|
|
454
|
-
Z as dispatchEvent,
|
|
455
|
-
no as distinct,
|
|
456
|
-
$n as documentBody,
|
|
457
|
-
Jn as documentElement,
|
|
458
|
-
Xn as documentHead,
|
|
459
|
-
Qe as dragEvent,
|
|
460
|
-
Ze as dragendEvent,
|
|
461
|
-
Ke as dragenterEvent,
|
|
462
|
-
qe as dragleaveEvent,
|
|
463
|
-
Ge as dragoverEvent,
|
|
464
|
-
je as dragstartEvent,
|
|
465
|
-
oo as emulateAnimationEnd,
|
|
466
|
-
so as emulateTransitionEnd,
|
|
467
|
-
rt as errorEvent,
|
|
468
|
-
ao as focus,
|
|
469
|
-
ct as focusEvent,
|
|
470
|
-
tn as focusEvents,
|
|
471
|
-
Zt as focusableSelector,
|
|
472
|
-
at as focusinEvent,
|
|
473
|
-
it as focusoutEvent,
|
|
474
|
-
ut as gesturechangeEvent,
|
|
475
|
-
lt as gestureendEvent,
|
|
476
|
-
dt as gesturestartEvent,
|
|
477
|
-
K as getAttribute,
|
|
478
|
-
Wn as getAttributeNS,
|
|
479
|
-
y as getBoundingClientRect,
|
|
480
|
-
Ro as getCustomElements,
|
|
481
|
-
d as getDocument,
|
|
482
|
-
So as getDocumentBody,
|
|
483
|
-
w as getDocumentElement,
|
|
484
|
-
ko as getDocumentHead,
|
|
485
|
-
ce as getElementAnimationDelay,
|
|
486
|
-
ae as getElementAnimationDuration,
|
|
487
|
-
Qo as getElementById,
|
|
488
|
-
f as getElementStyle,
|
|
489
|
-
ie as getElementTransitionDelay,
|
|
490
|
-
ue as getElementTransitionDuration,
|
|
491
|
-
jo as getElementsByClassName,
|
|
492
|
-
Te as getElementsByTagName,
|
|
493
|
-
to as getInstance,
|
|
494
|
-
ge as getNodeName,
|
|
495
|
-
No as getNodeScroll,
|
|
496
|
-
To as getOffsetParent,
|
|
497
|
-
k as getParentNode,
|
|
498
|
-
Co as getRectRelativeToOffsetParent,
|
|
499
|
-
Ae as getUID,
|
|
500
|
-
ve as getWindow,
|
|
501
|
-
_ as handleKeyboardNavigation,
|
|
502
|
-
oe as hasAttribute,
|
|
503
|
-
Rn as hasAttributeNS,
|
|
504
|
-
_n as hasClass,
|
|
505
|
-
I as hasFocusTrap,
|
|
506
|
-
zn as isApple,
|
|
507
|
-
Se as isArray,
|
|
508
|
-
Mo as isCanvas,
|
|
509
|
-
ke as isCustomElement,
|
|
510
|
-
G as isDocument,
|
|
511
|
-
i as isElement,
|
|
512
|
-
Do as isElementInScrollRange,
|
|
513
|
-
Lo as isElementInViewport,
|
|
514
|
-
Oo as isElementsArray,
|
|
515
|
-
In as isFirefox,
|
|
516
|
-
xo as isFunction,
|
|
517
|
-
zo as isHTMLCollection,
|
|
518
|
-
b as isHTMLElement,
|
|
519
|
-
Io as isHTMLImageElement,
|
|
520
|
-
Po as isJSON,
|
|
521
|
-
O as isMap,
|
|
522
|
-
Bo as isMedia,
|
|
523
|
-
xn as isMobile,
|
|
524
|
-
u as isNode,
|
|
525
|
-
Vo as isNodeList,
|
|
526
|
-
le as isNumber,
|
|
527
|
-
v as isObject,
|
|
528
|
-
Ho as isRTL,
|
|
529
|
-
Uo as isSVGElement,
|
|
530
|
-
we as isScaledElement,
|
|
531
|
-
me as isShadowRoot,
|
|
532
|
-
N as isString,
|
|
533
|
-
be as isTableElement,
|
|
534
|
-
Fo as isWeakMap,
|
|
535
|
-
te as isWebKit,
|
|
536
|
-
q as isWindow,
|
|
537
|
-
io as kebabCase,
|
|
538
|
-
nn as keyAlt,
|
|
539
|
-
on as keyArrowDown,
|
|
540
|
-
rn as keyArrowLeft,
|
|
541
|
-
cn as keyArrowRight,
|
|
542
|
-
sn as keyArrowUp,
|
|
543
|
-
an as keyBackspace,
|
|
544
|
-
un as keyCapsLock,
|
|
545
|
-
ln as keyControl,
|
|
546
|
-
dn as keyDelete,
|
|
547
|
-
fn as keyEnter,
|
|
548
|
-
gn as keyEscape,
|
|
549
|
-
mn as keyInsert,
|
|
550
|
-
vn as keyMeta,
|
|
551
|
-
pn as keyNumpadEnter,
|
|
552
|
-
bn as keyPause,
|
|
553
|
-
En as keyScrollLock,
|
|
554
|
-
hn as keyShift,
|
|
555
|
-
yn as keySpace,
|
|
556
|
-
wn as keyTab,
|
|
557
|
-
en as keyboardEventKeys,
|
|
558
|
-
ft as keydownEvent,
|
|
559
|
-
pt as keypressEvent,
|
|
560
|
-
gt as keyupEvent,
|
|
561
|
-
mt as loadEvent,
|
|
562
|
-
_e as loadstartEvent,
|
|
563
|
-
Ee as matches,
|
|
564
|
-
Je as mouseClickEvents,
|
|
565
|
-
Xe as mouseHoverEvents,
|
|
566
|
-
$e as mouseSwipeEvents,
|
|
567
|
-
vt as mouseclickEvent,
|
|
568
|
-
bt as mousedblclickEvent,
|
|
569
|
-
Et as mousedownEvent,
|
|
570
|
-
wt as mouseenterEvent,
|
|
571
|
-
yt as mousehoverEvent,
|
|
572
|
-
St as mouseinEvent,
|
|
573
|
-
At as mouseleaveEvent,
|
|
574
|
-
Tt as mousemoveEvent,
|
|
575
|
-
kt as mouseoutEvent,
|
|
576
|
-
Nt as mouseoverEvent,
|
|
577
|
-
ht as mouseupEvent,
|
|
578
|
-
Ct as mousewheelEvent,
|
|
579
|
-
Mt as moveEvent,
|
|
580
|
-
Re as nativeEvents,
|
|
581
|
-
ee as noop,
|
|
582
|
-
uo as normalizeOptions,
|
|
583
|
-
F as normalizeValue,
|
|
584
|
-
j as off,
|
|
585
|
-
Nn as offsetHeight,
|
|
586
|
-
Tn as offsetWidth,
|
|
587
|
-
Q as on,
|
|
588
|
-
ne as one,
|
|
589
|
-
Dt as orientationchangeEvent,
|
|
590
|
-
vo as passiveHandler,
|
|
591
|
-
Lt as pointercancelEvent,
|
|
592
|
-
Ot as pointerdownEvent,
|
|
593
|
-
xt as pointerleaveEvent,
|
|
594
|
-
zt as pointermoveEvent,
|
|
595
|
-
It as pointerupEvent,
|
|
596
|
-
Wo as querySelector,
|
|
597
|
-
de as querySelectorAll,
|
|
598
|
-
Pt as readystatechangeEvent,
|
|
599
|
-
bo as reflow,
|
|
600
|
-
Kn as removeAttribute,
|
|
601
|
-
qn as removeAttributeNS,
|
|
602
|
-
Zn as removeClass,
|
|
603
|
-
Sn as removeEventListener,
|
|
604
|
-
pe as removeFocusTrap,
|
|
605
|
-
Ft as resetEvent,
|
|
606
|
-
Bt as resizeEvent,
|
|
607
|
-
Wt as scrollEvent,
|
|
608
|
-
Cn as scrollHeight,
|
|
609
|
-
Mn as scrollWidth,
|
|
610
|
-
Vt as selectEvent,
|
|
611
|
-
Ht as selectendEvent,
|
|
612
|
-
Ut as selectstartEvent,
|
|
613
|
-
Qn as setAttribute,
|
|
614
|
-
jn as setAttributeNS,
|
|
615
|
-
Eo as setElementStyle,
|
|
616
|
-
Rt as submitEvent,
|
|
617
|
-
Pn as support3DTransform,
|
|
618
|
-
Hn as supportAnimation,
|
|
619
|
-
Fn as supportPassive,
|
|
620
|
-
Vn as supportTouch,
|
|
621
|
-
Bn as supportTransform,
|
|
622
|
-
Un as supportTransition,
|
|
623
|
-
Dn as tabindex,
|
|
624
|
-
yo as toLowerCase,
|
|
625
|
-
wo as toUpperCase,
|
|
626
|
-
Ao as toggleFocusTrap,
|
|
627
|
-
Ye as touchEvents,
|
|
628
|
-
Kt as touchcancelEvent,
|
|
629
|
-
qt as touchendEvent,
|
|
630
|
-
jt as touchmoveEvent,
|
|
631
|
-
Qt as touchstartEvent,
|
|
632
|
-
Xt as transitionDelay,
|
|
633
|
-
Jt as transitionDuration,
|
|
634
|
-
M as transitionEndEvent,
|
|
635
|
-
R as transitionProperty,
|
|
636
|
-
Gt as unloadEvent,
|
|
637
|
-
On as userAgent,
|
|
638
|
-
Ln as userAgentData,
|
|
639
|
-
Ce as version
|
|
640
|
-
};
|
|
641
|
-
//# sourceMappingURL=shorty.mjs.map
|