@wastedondestiny/destiny-library 1.2.1 → 1.2.3
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/dist/destiny-library.js +84 -88
- package/dist/destiny-library.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/destiny-library.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as SA, ref as H, onMounted as qA, nextTick as NB, onBeforeUnmount as GB, openBlock as O, createElementBlock as b, createElementVNode as h, normalizeClass as CA, toDisplayString as
|
|
1
|
+
import { defineComponent as SA, ref as H, onMounted as qA, nextTick as NB, onBeforeUnmount as GB, openBlock as O, createElementBlock as b, createElementVNode as h, normalizeClass as CA, toDisplayString as iA, normalizeStyle as hB, renderSlot as FA, withDirectives as RB, vShow as LB, watch as eg, unref as Bg, reactive as BC, h as mA, getCurrentInstance as CC, shallowRef as IC, onUnmounted as QC, isRef as VA, isReactive as fg, isVNode as EC, createApp as yg, createBlock as gA, mergeProps as MC, createSlots as wC, withCtx as n, createCommentVNode as DA, normalizeProps as DC, guardReactiveProps as iC, createTextVNode as X, Fragment as xg, createVNode as Pg, Teleport as oC, withModifiers as FC } from "vue";
|
|
2
2
|
const UC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPg0KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzAwMDAwMCIgZD0ibTE5MiAzODQgMzIwIDM4NCAzMjAtMzg0eiIvPjwvc3ZnPg==", YC = { class: "overflow-hidden" }, cC = { class: "text-xs font-bold text-zinc-900" }, GE = /* @__PURE__ */ SA({
|
|
3
3
|
__name: "Collapsible",
|
|
4
4
|
props: {
|
|
@@ -33,7 +33,7 @@ const UC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idX
|
|
|
33
33
|
class: CA(["border-b-2 border-black/25 mt-2 mb-1 flex justify-between items-center opacity-90", { "cursor-pointer hover:opacity-100 hover:border-black/50": !A.noInteract }]),
|
|
34
34
|
onClick: w
|
|
35
35
|
}, [
|
|
36
|
-
h("span", cC,
|
|
36
|
+
h("span", cC, iA(A.name), 1),
|
|
37
37
|
h("img", {
|
|
38
38
|
src: UC,
|
|
39
39
|
class: CA(["h-4 w-4 transition-transform duration-350 opacity-75", { "-rotate-180": A.open }])
|
|
@@ -45,7 +45,7 @@ const UC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idX
|
|
|
45
45
|
ref: B,
|
|
46
46
|
style: hB([{ "transition-property": "max-height", "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)" }, { "transition-duration": C.value && !I.value ? "300ms" : "0", "max-height": !C.value || A.open ? "var(--max-height)" : "0" }])
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
FA(D.$slots, "default")
|
|
49
49
|
], 4)
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
@@ -94,7 +94,7 @@ const hC = /* @__PURE__ */ h("img", { src: NC }, null, -1), RC = [
|
|
|
94
94
|
"-mt-8 mr-6 drop-shadow-[-10px_0_8px_rgba(0,0,0,0.04)_-4px_0_3px_rgba(0,0,0,0.1)]": A.side
|
|
95
95
|
}])
|
|
96
96
|
}, [
|
|
97
|
-
|
|
97
|
+
FA(C.$slots, "default")
|
|
98
98
|
], 6), [
|
|
99
99
|
[LB, g.value]
|
|
100
100
|
])
|
|
@@ -124,7 +124,7 @@ function lC(A, g) {
|
|
|
124
124
|
h("div", tC, [
|
|
125
125
|
KC,
|
|
126
126
|
h("div", sC, [
|
|
127
|
-
|
|
127
|
+
FA(A.$slots, "default")
|
|
128
128
|
]),
|
|
129
129
|
h("button", {
|
|
130
130
|
type: "button",
|
|
@@ -145,7 +145,7 @@ var z = "top", v = "bottom", $ = "right", q = "left", Zg = "auto", Eg = [z, v, $
|
|
|
145
145
|
}, []), jB = /* @__PURE__ */ [].concat(Eg, [Zg]).reduce(function(A, g) {
|
|
146
146
|
return A.concat([g, g + "-" + ZA, g + "-" + Cg]);
|
|
147
147
|
}, []), yC = "beforeRead", xC = "read", OC = "afterRead", VC = "beforeMain", HC = "main", mC = "afterMain", ZC = "beforeWrite", pC = "write", rC = "afterWrite", WC = [yC, xC, OC, VC, HC, mC, ZC, pC, rC];
|
|
148
|
-
function
|
|
148
|
+
function YA(A) {
|
|
149
149
|
return A ? (A.nodeName || "").toLowerCase() : null;
|
|
150
150
|
}
|
|
151
151
|
function QA(A) {
|
|
@@ -175,7 +175,7 @@ function dC(A) {
|
|
|
175
175
|
var g = A.state;
|
|
176
176
|
Object.keys(g.elements).forEach(function(B) {
|
|
177
177
|
var C = g.styles[B] || {}, I = g.attributes[B] || {}, E = g.elements[B];
|
|
178
|
-
!P(E) || !
|
|
178
|
+
!P(E) || !YA(E) || (Object.assign(E.style, C), Object.keys(I).forEach(function(M) {
|
|
179
179
|
var w = I[M];
|
|
180
180
|
w === !1 ? E.removeAttribute(M) : E.setAttribute(M, w === !0 ? "" : w);
|
|
181
181
|
}));
|
|
@@ -199,7 +199,7 @@ function zC(A) {
|
|
|
199
199
|
var I = g.elements[C], E = g.attributes[C] || {}, M = Object.keys(g.styles.hasOwnProperty(C) ? g.styles[C] : B[C]), w = M.reduce(function(D, F) {
|
|
200
200
|
return D[F] = "", D;
|
|
201
201
|
}, {});
|
|
202
|
-
!P(I) || !
|
|
202
|
+
!P(I) || !YA(I) || (Object.assign(I.style, w), Object.keys(E).forEach(function(D) {
|
|
203
203
|
I.removeAttribute(D);
|
|
204
204
|
}));
|
|
205
205
|
});
|
|
@@ -213,7 +213,7 @@ var TB = {
|
|
|
213
213
|
effect: zC,
|
|
214
214
|
requires: ["computeStyles"]
|
|
215
215
|
};
|
|
216
|
-
function
|
|
216
|
+
function UA(A) {
|
|
217
217
|
return A.split("-")[0];
|
|
218
218
|
}
|
|
219
219
|
var lA = Math.max, ag = Math.min, rA = Math.round;
|
|
@@ -258,11 +258,11 @@ function nB(A, g) {
|
|
|
258
258
|
}
|
|
259
259
|
return !1;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function cA(A) {
|
|
262
262
|
return QA(A).getComputedStyle(A);
|
|
263
263
|
}
|
|
264
264
|
function qC(A) {
|
|
265
|
-
return ["table", "td", "th"].indexOf(
|
|
265
|
+
return ["table", "td", "th"].indexOf(YA(A)) >= 0;
|
|
266
266
|
}
|
|
267
267
|
function eA(A) {
|
|
268
268
|
return ((pA(A) ? A.ownerDocument : (
|
|
@@ -271,7 +271,7 @@ function eA(A) {
|
|
|
271
271
|
)) || window.document).documentElement;
|
|
272
272
|
}
|
|
273
273
|
function Kg(A) {
|
|
274
|
-
return
|
|
274
|
+
return YA(A) === "html" ? A : (
|
|
275
275
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
276
276
|
// $FlowFixMe[incompatible-return]
|
|
277
277
|
// $FlowFixMe[prop-missing]
|
|
@@ -284,17 +284,17 @@ function Kg(A) {
|
|
|
284
284
|
}
|
|
285
285
|
function $g(A) {
|
|
286
286
|
return !P(A) || // https://github.com/popperjs/popper-core/issues/837
|
|
287
|
-
|
|
287
|
+
cA(A).position === "fixed" ? null : A.offsetParent;
|
|
288
288
|
}
|
|
289
289
|
function XC(A) {
|
|
290
290
|
var g = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, B = navigator.userAgent.indexOf("Trident") !== -1;
|
|
291
291
|
if (B && P(A)) {
|
|
292
|
-
var C =
|
|
292
|
+
var C = cA(A);
|
|
293
293
|
if (C.position === "fixed")
|
|
294
294
|
return null;
|
|
295
295
|
}
|
|
296
|
-
for (var I = Kg(A); P(I) && ["html", "body"].indexOf(
|
|
297
|
-
var E =
|
|
296
|
+
for (var I = Kg(A); P(I) && ["html", "body"].indexOf(YA(I)) < 0; ) {
|
|
297
|
+
var E = cA(I);
|
|
298
298
|
if (E.transform !== "none" || E.perspective !== "none" || E.contain === "paint" || ["transform", "perspective"].indexOf(E.willChange) !== -1 || g && E.willChange === "filter" || g && E.filter && E.filter !== "none")
|
|
299
299
|
return I;
|
|
300
300
|
I = I.parentNode;
|
|
@@ -302,9 +302,9 @@ function XC(A) {
|
|
|
302
302
|
return null;
|
|
303
303
|
}
|
|
304
304
|
function Mg(A) {
|
|
305
|
-
for (var g = QA(A), B = $g(A); B && qC(B) &&
|
|
305
|
+
for (var g = QA(A), B = $g(A); B && qC(B) && cA(B).position === "static"; )
|
|
306
306
|
B = $g(B);
|
|
307
|
-
return B && (
|
|
307
|
+
return B && (YA(B) === "html" || YA(B) === "body" && cA(B).position === "static") ? g : B || XC(A) || g;
|
|
308
308
|
}
|
|
309
309
|
function rg(A) {
|
|
310
310
|
return ["top", "bottom"].indexOf(A) >= 0 ? "x" : "y";
|
|
@@ -338,7 +338,7 @@ var fC = function(g, B) {
|
|
|
338
338
|
})) : g, yB(typeof g != "number" ? g : xB(g, Eg));
|
|
339
339
|
};
|
|
340
340
|
function PC(A) {
|
|
341
|
-
var g, B = A.state, C = A.name, I = A.options, E = B.elements.arrow, M = B.modifiersData.popperOffsets, w =
|
|
341
|
+
var g, B = A.state, C = A.name, I = A.options, E = B.elements.arrow, M = B.modifiersData.popperOffsets, w = UA(B.placement), D = rg(w), F = [q, $].indexOf(w) >= 0, o = F ? "height" : "width";
|
|
342
342
|
if (!(!E || !M)) {
|
|
343
343
|
var a = fC(I.padding, B), t = pg(E), e = D === "y" ? z : q, N = D === "y" ? v : $, L = B.rects.reference[o] + B.rects.reference[D] - M[D] - B.rects.popper[o], K = M[D] - B.rects.reference[D], c = Mg(E), s = c ? D === "y" ? c.clientHeight || 0 : c.clientWidth || 0 : 0, j = L / 2 - K / 2, Q = a[e], R = s - t[o] - a[N], U = s / 2 - t[o] / 2 + j, Y = Ag(Q, U, R), G = D;
|
|
344
344
|
B.modifiersData[C] = (g = {}, g[G] = Y, g.centerOffset = Y - U, g);
|
|
@@ -377,7 +377,7 @@ function _g(A) {
|
|
|
377
377
|
var g, B = A.popper, C = A.popperRect, I = A.placement, E = A.variation, M = A.offsets, w = A.position, D = A.gpuAcceleration, F = A.adaptive, o = A.roundOffsets, a = A.isFixed, t = o === !0 ? AI(M) : typeof o == "function" ? o(M) : M, e = t.x, N = e === void 0 ? 0 : e, L = t.y, K = L === void 0 ? 0 : L, c = M.hasOwnProperty("x"), s = M.hasOwnProperty("y"), j = q, Q = z, R = window;
|
|
378
378
|
if (F) {
|
|
379
379
|
var U = Mg(B), Y = "clientHeight", G = "clientWidth";
|
|
380
|
-
if (U === QA(B) && (U = eA(B),
|
|
380
|
+
if (U === QA(B) && (U = eA(B), cA(U).position !== "static" && w === "absolute" && (Y = "scrollHeight", G = "scrollWidth")), U = U, I === z || (I === q || I === $) && E === Cg) {
|
|
381
381
|
Q = v;
|
|
382
382
|
var l = a && R.visualViewport ? R.visualViewport.height : (
|
|
383
383
|
// $FlowFixMe[prop-missing]
|
|
@@ -405,7 +405,7 @@ function _g(A) {
|
|
|
405
405
|
}
|
|
406
406
|
function gI(A) {
|
|
407
407
|
var g = A.state, B = A.options, C = B.gpuAcceleration, I = C === void 0 ? !0 : C, E = B.adaptive, M = E === void 0 ? !0 : E, w = B.roundOffsets, D = w === void 0 ? !0 : w, F = {
|
|
408
|
-
placement:
|
|
408
|
+
placement: UA(g.placement),
|
|
409
409
|
variation: dA(g.placement),
|
|
410
410
|
popper: g.elements.popper,
|
|
411
411
|
popperRect: g.rects.popper,
|
|
@@ -494,7 +494,7 @@ function MI(A) {
|
|
|
494
494
|
}
|
|
495
495
|
function wI(A) {
|
|
496
496
|
var g, B = eA(A), C = Wg(A), I = (g = A.ownerDocument) == null ? void 0 : g.body, E = lA(B.scrollWidth, B.clientWidth, I ? I.scrollWidth : 0, I ? I.clientWidth : 0), M = lA(B.scrollHeight, B.clientHeight, I ? I.scrollHeight : 0, I ? I.clientHeight : 0), w = -C.scrollLeft + dg(A), D = -C.scrollTop;
|
|
497
|
-
return
|
|
497
|
+
return cA(I || B).direction === "rtl" && (w += lA(B.clientWidth, I ? I.clientWidth : 0) - E), {
|
|
498
498
|
width: E,
|
|
499
499
|
height: M,
|
|
500
500
|
x: w,
|
|
@@ -502,11 +502,11 @@ function wI(A) {
|
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
function zg(A) {
|
|
505
|
-
var g =
|
|
505
|
+
var g = cA(A), B = g.overflow, C = g.overflowX, I = g.overflowY;
|
|
506
506
|
return /auto|scroll|overlay|hidden/.test(B + I + C);
|
|
507
507
|
}
|
|
508
508
|
function OB(A) {
|
|
509
|
-
return ["html", "body", "#document"].indexOf(
|
|
509
|
+
return ["html", "body", "#document"].indexOf(YA(A)) >= 0 ? A.ownerDocument.body : P(A) && zg(A) ? A : OB(Kg(A));
|
|
510
510
|
}
|
|
511
511
|
function gg(A, g) {
|
|
512
512
|
var B;
|
|
@@ -533,9 +533,9 @@ function gB(A, g) {
|
|
|
533
533
|
return g === JB ? Og(MI(A)) : pA(g) ? DI(g) : Og(wI(eA(A)));
|
|
534
534
|
}
|
|
535
535
|
function iI(A) {
|
|
536
|
-
var g = gg(Kg(A)), B = ["absolute", "fixed"].indexOf(
|
|
536
|
+
var g = gg(Kg(A)), B = ["absolute", "fixed"].indexOf(cA(A).position) >= 0, C = B && P(A) ? Mg(A) : A;
|
|
537
537
|
return pA(C) ? g.filter(function(I) {
|
|
538
|
-
return pA(I) && nB(I, C) &&
|
|
538
|
+
return pA(I) && nB(I, C) && YA(I) !== "body" && (B ? cA(I).position !== "static" : !0);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
541
|
function oI(A, g, B) {
|
|
@@ -546,7 +546,7 @@ function oI(A, g, B) {
|
|
|
546
546
|
return M.width = M.right - M.left, M.height = M.bottom - M.top, M.x = M.left, M.y = M.top, M;
|
|
547
547
|
}
|
|
548
548
|
function VB(A) {
|
|
549
|
-
var g = A.reference, B = A.element, C = A.placement, I = C ?
|
|
549
|
+
var g = A.reference, B = A.element, C = A.placement, I = C ? UA(C) : null, E = C ? dA(C) : null, M = g.x + g.width / 2 - B.width / 2, w = g.y + g.height / 2 - B.height / 2, D;
|
|
550
550
|
switch (I) {
|
|
551
551
|
case z:
|
|
552
552
|
D = {
|
|
@@ -628,14 +628,14 @@ function FI(A, g) {
|
|
|
628
628
|
boundary: I,
|
|
629
629
|
rootBoundary: E,
|
|
630
630
|
padding: M
|
|
631
|
-
})[
|
|
631
|
+
})[UA(L)], N;
|
|
632
632
|
}, {});
|
|
633
633
|
return Object.keys(e).sort(function(N, L) {
|
|
634
634
|
return e[N] - e[L];
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
function UI(A) {
|
|
638
|
-
if (
|
|
638
|
+
if (UA(A) === Zg)
|
|
639
639
|
return [];
|
|
640
640
|
var g = Sg(A);
|
|
641
641
|
return [AB(A), g, AB(g)];
|
|
@@ -643,8 +643,8 @@ function UI(A) {
|
|
|
643
643
|
function YI(A) {
|
|
644
644
|
var g = A.state, B = A.options, C = A.name;
|
|
645
645
|
if (!g.modifiersData[C]._skip) {
|
|
646
|
-
for (var I = B.mainAxis, E = I === void 0 ? !0 : I, M = B.altAxis, w = M === void 0 ? !0 : M, D = B.fallbackPlacements, F = B.padding, o = B.boundary, a = B.rootBoundary, t = B.altBoundary, e = B.flipVariations, N = e === void 0 ? !0 : e, L = B.allowedAutoPlacements, K = g.options.placement, c =
|
|
647
|
-
return
|
|
646
|
+
for (var I = B.mainAxis, E = I === void 0 ? !0 : I, M = B.altAxis, w = M === void 0 ? !0 : M, D = B.fallbackPlacements, F = B.padding, o = B.boundary, a = B.rootBoundary, t = B.altBoundary, e = B.flipVariations, N = e === void 0 ? !0 : e, L = B.allowedAutoPlacements, K = g.options.placement, c = UA(K), s = c === K, j = D || (s || !N ? [Sg(K)] : UI(K)), Q = [K].concat(j).reduce(function(NA, AA) {
|
|
647
|
+
return NA.concat(UA(AA) === Zg ? FI(g, {
|
|
648
648
|
placement: AA,
|
|
649
649
|
boundary: o,
|
|
650
650
|
rootBoundary: a,
|
|
@@ -653,7 +653,7 @@ function YI(A) {
|
|
|
653
653
|
allowedAutoPlacements: L
|
|
654
654
|
}) : AA);
|
|
655
655
|
}, []), R = g.rects.reference, U = g.rects.popper, Y = /* @__PURE__ */ new Map(), G = !0, l = Q[0], x = 0; x < Q.length; x++) {
|
|
656
|
-
var V = Q[x], y =
|
|
656
|
+
var V = Q[x], y = UA(V), m = dA(V) === ZA, d = [z, v].indexOf(y) >= 0, _ = d ? "width" : "height", p = Ig(g, {
|
|
657
657
|
placement: V,
|
|
658
658
|
boundary: o,
|
|
659
659
|
rootBoundary: a,
|
|
@@ -662,8 +662,8 @@ function YI(A) {
|
|
|
662
662
|
}), r = d ? m ? $ : q : m ? v : z;
|
|
663
663
|
R[_] > U[_] && (r = Sg(r));
|
|
664
664
|
var Z = Sg(r), EA = [];
|
|
665
|
-
if (E && EA.push(p[y] <= 0), w && EA.push(p[r] <= 0, p[Z] <= 0), EA.every(function(
|
|
666
|
-
return
|
|
665
|
+
if (E && EA.push(p[y] <= 0), w && EA.push(p[r] <= 0, p[Z] <= 0), EA.every(function(NA) {
|
|
666
|
+
return NA;
|
|
667
667
|
})) {
|
|
668
668
|
l = V, G = !1;
|
|
669
669
|
break;
|
|
@@ -672,15 +672,15 @@ function YI(A) {
|
|
|
672
672
|
}
|
|
673
673
|
if (G)
|
|
674
674
|
for (var MA = N ? 3 : 1, aA = function(AA) {
|
|
675
|
-
var
|
|
676
|
-
var
|
|
677
|
-
if (
|
|
678
|
-
return
|
|
675
|
+
var GA = Q.find(function(nA) {
|
|
676
|
+
var hA = Y.get(nA);
|
|
677
|
+
if (hA)
|
|
678
|
+
return hA.slice(0, AA).every(function(uA) {
|
|
679
679
|
return uA;
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
|
-
if (
|
|
683
|
-
return l =
|
|
682
|
+
if (GA)
|
|
683
|
+
return l = GA, "break";
|
|
684
684
|
}, wA = MA; wA > 0; wA--) {
|
|
685
685
|
var tA = aA(wA);
|
|
686
686
|
if (tA === "break")
|
|
@@ -739,7 +739,7 @@ var GI = {
|
|
|
739
739
|
fn: NI
|
|
740
740
|
};
|
|
741
741
|
function hI(A, g, B) {
|
|
742
|
-
var C =
|
|
742
|
+
var C = UA(A), I = [q, z].indexOf(C) >= 0 ? -1 : 1, E = typeof B == "function" ? B(Object.assign({}, g, {
|
|
743
743
|
placement: A
|
|
744
744
|
})) : B, M = E[0], w = E[1];
|
|
745
745
|
return M = M || 0, w = (w || 0) * I, [q, $].indexOf(C) >= 0 ? {
|
|
@@ -788,7 +788,7 @@ function aI(A) {
|
|
|
788
788
|
rootBoundary: F,
|
|
789
789
|
padding: a,
|
|
790
790
|
altBoundary: o
|
|
791
|
-
}), c =
|
|
791
|
+
}), c = UA(g.placement), s = dA(g.placement), j = !s, Q = rg(c), R = eI(Q), U = g.modifiersData.popperOffsets, Y = g.rects.reference, G = g.rects.popper, l = typeof L == "function" ? L(Object.assign({}, g.rects, {
|
|
792
792
|
placement: g.placement
|
|
793
793
|
})) : L, x = typeof l == "number" ? {
|
|
794
794
|
mainAxis: l,
|
|
@@ -802,15 +802,15 @@ function aI(A) {
|
|
|
802
802
|
};
|
|
803
803
|
if (U) {
|
|
804
804
|
if (E) {
|
|
805
|
-
var m, d = Q === "y" ? z : q, _ = Q === "y" ? v : $, p = Q === "y" ? "height" : "width", r = U[Q], Z = r + K[d], EA = r - K[_], MA = e ? -G[p] / 2 : 0, aA = s === ZA ? Y[p] : G[p], wA = s === ZA ? -G[p] : -Y[p], tA = g.elements.arrow,
|
|
805
|
+
var m, d = Q === "y" ? z : q, _ = Q === "y" ? v : $, p = Q === "y" ? "height" : "width", r = U[Q], Z = r + K[d], EA = r - K[_], MA = e ? -G[p] / 2 : 0, aA = s === ZA ? Y[p] : G[p], wA = s === ZA ? -G[p] : -Y[p], tA = g.elements.arrow, NA = e && tA ? pg(tA) : {
|
|
806
806
|
width: 0,
|
|
807
807
|
height: 0
|
|
808
|
-
}, AA = g.modifiersData["arrow#persistent"] ? g.modifiersData["arrow#persistent"].padding : uB(),
|
|
808
|
+
}, AA = g.modifiersData["arrow#persistent"] ? g.modifiersData["arrow#persistent"].padding : uB(), GA = AA[d], nA = AA[_], hA = Ag(0, Y[p], NA[p]), uA = j ? Y[p] / 2 - MA - hA - GA - x.mainAxis : aA - hA - GA - x.mainAxis, LA = j ? -Y[p] / 2 + MA + hA + nA + x.mainAxis : wA + hA + nA + x.mainAxis, yA = g.elements.arrow && Mg(g.elements.arrow), wg = yA ? Q === "y" ? yA.clientTop || 0 : yA.clientLeft || 0 : 0, XA = (m = V == null ? void 0 : V[Q]) != null ? m : 0, Dg = r + uA - XA - wg, ig = r + LA - XA, bA = Ag(e ? ag(Z, Dg) : Z, r, e ? lA(EA, ig) : EA);
|
|
809
809
|
U[Q] = bA, y[Q] = bA - r;
|
|
810
810
|
}
|
|
811
811
|
if (w) {
|
|
812
|
-
var fA, og = Q === "x" ? z : q, Fg = Q === "x" ? v : $,
|
|
813
|
-
U[R] = Ng, y[R] = Ng -
|
|
812
|
+
var fA, og = Q === "x" ? z : q, Fg = Q === "x" ? v : $, RA = U[R], kA = R === "y" ? "height" : "width", PA = RA + K[og], KA = RA - K[Fg], vA = [z, q].indexOf(c) !== -1, Ug = (fA = V == null ? void 0 : V[R]) != null ? fA : 0, Yg = vA ? PA : RA - Y[kA] - G[kA] - Ug + x.altAxis, cg = vA ? RA + Y[kA] + G[kA] - Ug - x.altAxis : KA, Ng = e && vA ? bC(Yg, RA, cg) : Ag(e ? Yg : PA, RA, e ? cg : KA);
|
|
813
|
+
U[R] = Ng, y[R] = Ng - RA;
|
|
814
814
|
}
|
|
815
815
|
g.modifiersData[C] = y;
|
|
816
816
|
}
|
|
@@ -844,7 +844,7 @@ function jI(A, g, B) {
|
|
|
844
844
|
x: 0,
|
|
845
845
|
y: 0
|
|
846
846
|
};
|
|
847
|
-
return (C || !C && !B) && ((
|
|
847
|
+
return (C || !C && !B) && ((YA(g) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
848
848
|
zg(E)) && (w = sI(g)), P(g) ? (D = WA(g, !0), D.x += g.clientLeft, D.y += g.clientTop) : E && (D.x = dg(E))), {
|
|
849
849
|
x: M.left + w.scrollLeft - D.x,
|
|
850
850
|
y: M.top + w.scrollTop - D.y,
|
|
@@ -1134,15 +1134,15 @@ function DB(A, g) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
return !1;
|
|
1136
1136
|
}
|
|
1137
|
-
var
|
|
1137
|
+
var oA = {
|
|
1138
1138
|
isTouch: !1
|
|
1139
1139
|
}, iB = 0;
|
|
1140
1140
|
function zI() {
|
|
1141
|
-
|
|
1141
|
+
oA.isTouch || (oA.isTouch = !0, window.performance && document.addEventListener("mousemove", qB));
|
|
1142
1142
|
}
|
|
1143
1143
|
function qB() {
|
|
1144
1144
|
var A = performance.now();
|
|
1145
|
-
A - iB < 20 && (
|
|
1145
|
+
A - iB < 20 && (oA.isTouch = !1, document.removeEventListener("mousemove", qB)), iB = A;
|
|
1146
1146
|
}
|
|
1147
1147
|
function qI() {
|
|
1148
1148
|
var A = document.activeElement;
|
|
@@ -1376,7 +1376,7 @@ function CQ(A, g) {
|
|
|
1376
1376
|
return tg(U);
|
|
1377
1377
|
}
|
|
1378
1378
|
function p(i) {
|
|
1379
|
-
return Q.state.isMounted && !Q.state.isVisible ||
|
|
1379
|
+
return Q.state.isMounted && !Q.state.isVisible || oA.isTouch || o && o.type === "focus" ? 0 : lg(Q.props.delay, i ? 0 : 1, IA.delay);
|
|
1380
1380
|
}
|
|
1381
1381
|
function r(i) {
|
|
1382
1382
|
i === void 0 && (i = !1), U.style.pointerEvents = Q.props.interactive && !i ? "" : "none", U.style.zIndex = "" + Q.props.zIndex;
|
|
@@ -1418,42 +1418,42 @@ function CQ(A, g) {
|
|
|
1418
1418
|
});
|
|
1419
1419
|
}
|
|
1420
1420
|
function wA(i) {
|
|
1421
|
-
if (!(
|
|
1421
|
+
if (!(oA.isTouch && (D || i.type === "mousedown"))) {
|
|
1422
1422
|
var k = i.composedPath && i.composedPath()[0] || i.target;
|
|
1423
1423
|
if (!(Q.props.interactive && DB(U, k))) {
|
|
1424
1424
|
if (jA(Q.props.triggerTarget || A).some(function(J) {
|
|
1425
1425
|
return DB(J, k);
|
|
1426
1426
|
})) {
|
|
1427
|
-
if (
|
|
1427
|
+
if (oA.isTouch || Q.state.isVisible && Q.props.trigger.indexOf("click") >= 0)
|
|
1428
1428
|
return;
|
|
1429
1429
|
} else
|
|
1430
1430
|
Z("onClickOutside", [Q, i]);
|
|
1431
1431
|
Q.props.hideOnClick === !0 && (Q.clearDelayTimeouts(), Q.hide(), w = !0, setTimeout(function() {
|
|
1432
1432
|
w = !1;
|
|
1433
|
-
}), Q.state.isMounted ||
|
|
1433
|
+
}), Q.state.isMounted || GA());
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
function tA() {
|
|
1438
1438
|
D = !0;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function NA() {
|
|
1441
1441
|
D = !1;
|
|
1442
1442
|
}
|
|
1443
1443
|
function AA() {
|
|
1444
1444
|
var i = d();
|
|
1445
|
-
i.addEventListener("mousedown", wA, !0), i.addEventListener("touchend", wA, JA), i.addEventListener("touchstart",
|
|
1445
|
+
i.addEventListener("mousedown", wA, !0), i.addEventListener("touchend", wA, JA), i.addEventListener("touchstart", NA, JA), i.addEventListener("touchmove", tA, JA);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function GA() {
|
|
1448
1448
|
var i = d();
|
|
1449
|
-
i.removeEventListener("mousedown", wA, !0), i.removeEventListener("touchend", wA, JA), i.removeEventListener("touchstart",
|
|
1449
|
+
i.removeEventListener("mousedown", wA, !0), i.removeEventListener("touchend", wA, JA), i.removeEventListener("touchstart", NA, JA), i.removeEventListener("touchmove", tA, JA);
|
|
1450
1450
|
}
|
|
1451
1451
|
function nA(i, k) {
|
|
1452
1452
|
uA(i, function() {
|
|
1453
1453
|
!Q.state.isVisible && U.parentNode && U.parentNode.contains(U) && k();
|
|
1454
1454
|
});
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function hA(i, k) {
|
|
1457
1457
|
uA(i, k);
|
|
1458
1458
|
}
|
|
1459
1459
|
function uA(i, k) {
|
|
@@ -1540,7 +1540,7 @@ function CQ(A, g) {
|
|
|
1540
1540
|
Q.props.trigger.indexOf("focusin") < 0 && i.target !== m() || Q.props.interactive && i.relatedTarget && U.contains(i.relatedTarget) || KA(i);
|
|
1541
1541
|
}
|
|
1542
1542
|
function fA(i) {
|
|
1543
|
-
return
|
|
1543
|
+
return oA.isTouch ? V() !== i.type.indexOf("touch") >= 0 : !1;
|
|
1544
1544
|
}
|
|
1545
1545
|
function og() {
|
|
1546
1546
|
Fg();
|
|
@@ -1602,7 +1602,7 @@ function CQ(A, g) {
|
|
|
1602
1602
|
function Fg() {
|
|
1603
1603
|
Q.popperInstance && (Q.popperInstance.destroy(), Q.popperInstance = null);
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function RA() {
|
|
1606
1606
|
var i = Q.props.appendTo, k, J = m();
|
|
1607
1607
|
Q.props.interactive && i === rB || i === "parent" ? k = J.parentNode : k = WB(i, [J]), k.contains(U) || k.appendChild(U), Q.state.isMounted = !0, og();
|
|
1608
1608
|
}
|
|
@@ -1612,13 +1612,13 @@ function CQ(A, g) {
|
|
|
1612
1612
|
function PA(i) {
|
|
1613
1613
|
Q.clearDelayTimeouts(), i && Z("onTrigger", [Q, i]), AA();
|
|
1614
1614
|
var k = p(!0), J = x(), u = J[0], T = J[1];
|
|
1615
|
-
|
|
1615
|
+
oA.isTouch && u === "hold" && T && (k = T), k ? C = setTimeout(function() {
|
|
1616
1616
|
Q.show();
|
|
1617
1617
|
}, k) : Q.show();
|
|
1618
1618
|
}
|
|
1619
1619
|
function KA(i) {
|
|
1620
1620
|
if (Q.clearDelayTimeouts(), Z("onUntrigger", [Q, i]), !Q.state.isVisible) {
|
|
1621
|
-
|
|
1621
|
+
GA();
|
|
1622
1622
|
return;
|
|
1623
1623
|
}
|
|
1624
1624
|
if (!(Q.props.trigger.indexOf("mouseenter") >= 0 && Q.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(i.type) >= 0 && M)) {
|
|
@@ -1658,7 +1658,7 @@ function CQ(A, g) {
|
|
|
1658
1658
|
});
|
|
1659
1659
|
}
|
|
1660
1660
|
function PB() {
|
|
1661
|
-
var i = Q.state.isVisible, k = Q.state.isDestroyed, J = !Q.state.isEnabled, u =
|
|
1661
|
+
var i = Q.state.isVisible, k = Q.state.isDestroyed, J = !Q.state.isEnabled, u = oA.isTouch && !Q.props.touch, T = lg(Q.props.duration, 0, IA.duration);
|
|
1662
1662
|
if (!(i || k || J || u) && !m().hasAttribute("disabled") && (Z("onShow", [Q], !1), Q.props.onShow(Q) !== !1)) {
|
|
1663
1663
|
if (Q.state.isVisible = !0, y() && (U.style.visibility = "visible"), r(), AA(), Q.state.isMounted || (U.style.transition = "none"), y()) {
|
|
1664
1664
|
var W = _(), f = W.box, xA = W.content;
|
|
@@ -1671,17 +1671,17 @@ function CQ(A, g) {
|
|
|
1671
1671
|
var Jg = _(), Gg = Jg.box, OA = Jg.content;
|
|
1672
1672
|
Tg([Gg, OA], T), Qg([Gg, OA], "visible");
|
|
1673
1673
|
}
|
|
1674
|
-
EA(), MA(), MB(ug, Q), (sA = Q.popperInstance) == null || sA.forceUpdate(), Z("onMount", [Q]), Q.props.animation && y() &&
|
|
1674
|
+
EA(), MA(), MB(ug, Q), (sA = Q.popperInstance) == null || sA.forceUpdate(), Z("onMount", [Q]), Q.props.animation && y() && hA(T, function() {
|
|
1675
1675
|
Q.state.isShown = !0, Z("onShown", [Q]);
|
|
1676
1676
|
});
|
|
1677
1677
|
}
|
|
1678
|
-
},
|
|
1678
|
+
}, RA();
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
function vB() {
|
|
1682
1682
|
var i = !Q.state.isVisible, k = Q.state.isDestroyed, J = !Q.state.isEnabled, u = lg(Q.props.duration, 1, IA.duration);
|
|
1683
1683
|
if (!(i || k || J) && (Z("onHide", [Q], !1), Q.props.onHide(Q) !== !1)) {
|
|
1684
|
-
if (Q.state.isVisible = !1, Q.state.isShown = !1, F = !1, M = !1, y() && (U.style.visibility = "hidden"), aA(),
|
|
1684
|
+
if (Q.state.isVisible = !1, Q.state.isShown = !1, F = !1, M = !1, y() && (U.style.visibility = "hidden"), aA(), GA(), r(!0), y()) {
|
|
1685
1685
|
var T = _(), W = T.box, f = T.content;
|
|
1686
1686
|
Q.props.animation && (Tg([W, f], u), Qg([W, f], "hidden"));
|
|
1687
1687
|
}
|
|
@@ -1716,7 +1716,7 @@ function S(A, g) {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
S.defaultProps = IA;
|
|
1718
1718
|
S.setDefaultProps = _I;
|
|
1719
|
-
S.currentInput =
|
|
1719
|
+
S.currentInput = oA;
|
|
1720
1720
|
var IQ = Object.assign({}, TB, {
|
|
1721
1721
|
effect: function(g) {
|
|
1722
1722
|
var B = g.state, C = {
|
|
@@ -2415,7 +2415,7 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2415
2415
|
interactive: !!A.url
|
|
2416
2416
|
}), wC({
|
|
2417
2417
|
default: n(() => [
|
|
2418
|
-
|
|
2418
|
+
FA(g.$slots, "default")
|
|
2419
2419
|
]),
|
|
2420
2420
|
_: 2
|
|
2421
2421
|
}, [
|
|
@@ -2427,10 +2427,10 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2427
2427
|
key: 0,
|
|
2428
2428
|
class: CA(["float-left inline-flex items-center justify-center flex-shrink-0 w-8 h-8 p-1 mr-4 rounded-3xl", { "bg-yellow-200": A.warning, "bg-green-300": !A.warning }])
|
|
2429
2429
|
}, [
|
|
2430
|
-
|
|
2430
|
+
FA(g.$slots, "icon")
|
|
2431
2431
|
], 2)) : DA("", !0),
|
|
2432
2432
|
h("div", eQ, [
|
|
2433
|
-
|
|
2433
|
+
FA(g.$slots, "content", DC(iC({ hide: C })))
|
|
2434
2434
|
]),
|
|
2435
2435
|
aQ
|
|
2436
2436
|
])
|
|
@@ -2608,10 +2608,10 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2608
2608
|
}, null, 8, uQ)
|
|
2609
2609
|
]),
|
|
2610
2610
|
content: n(() => [
|
|
2611
|
-
X("This member is a patron: " +
|
|
2611
|
+
X("This member is a patron: " + iA(A.supporting.name) + " (" + iA(A.supporting.tier) + ")", 1)
|
|
2612
2612
|
]),
|
|
2613
2613
|
default: n(() => [
|
|
2614
|
-
h("span", nQ,
|
|
2614
|
+
h("span", nQ, iA(A.supporting.tier), 1)
|
|
2615
2615
|
]),
|
|
2616
2616
|
_: 1
|
|
2617
2617
|
}, 8, ["no-interact"])) : DA("", !0),
|
|
@@ -2643,8 +2643,8 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2643
2643
|
target: "_blank",
|
|
2644
2644
|
href: A.parallel.url
|
|
2645
2645
|
}, [
|
|
2646
|
-
h("strong", ZQ,
|
|
2647
|
-
h("p", pQ,
|
|
2646
|
+
h("strong", ZQ, iA(A.parallel.name), 1),
|
|
2647
|
+
h("p", pQ, iA(A.parallel.description || A.parallel.name), 1)
|
|
2648
2648
|
], 8, mQ)
|
|
2649
2649
|
]),
|
|
2650
2650
|
default: n(() => [
|
|
@@ -2653,7 +2653,7 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2653
2653
|
target: "_blank",
|
|
2654
2654
|
href: A.parallel.url
|
|
2655
2655
|
}, [
|
|
2656
|
-
h("span", VQ,
|
|
2656
|
+
h("span", VQ, iA(A.parallel.name), 1)
|
|
2657
2657
|
], 8, OQ)
|
|
2658
2658
|
]),
|
|
2659
2659
|
_: 1
|
|
@@ -2679,11 +2679,7 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2679
2679
|
target: "_blank",
|
|
2680
2680
|
href: "https://discord.wastedondestiny.com",
|
|
2681
2681
|
class: "block sm:inline opacity-75 hover:opacity-100"
|
|
2682
|
-
}, "Support", -1), QE = /* @__PURE__ */ h("span", { class: "hidden sm:inline" }, " | ", -1), EE = /* @__PURE__ */ h("
|
|
2683
|
-
target: "_blank",
|
|
2684
|
-
href: "/privacy",
|
|
2685
|
-
class: "block sm:inline opacity-75 hover:opacity-100"
|
|
2686
|
-
}, "Privacy", -1), ME = /* @__PURE__ */ h("span", { class: "hidden sm:inline" }, " | ", -1), wE = {
|
|
2682
|
+
}, "Support", -1), QE = /* @__PURE__ */ h("span", { class: "hidden sm:inline" }, " | ", -1), EE = { class: "peer" }, ME = /* @__PURE__ */ h("span", { class: "hidden sm:inline peer-empty:hidden" }, " | ", -1), wE = {
|
|
2687
2683
|
key: 0,
|
|
2688
2684
|
href: "#top",
|
|
2689
2685
|
class: "block sm:inline opacity-75 hover:opacity-100 !decoration-1 !decoration-dotted"
|
|
@@ -2748,8 +2744,8 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2748
2744
|
])
|
|
2749
2745
|
], 64)),
|
|
2750
2746
|
h("footer", PQ, [
|
|
2751
|
-
|
|
2752
|
-
h("span", null, "© François (binarmorker) Allard " +
|
|
2747
|
+
FA(M.$slots, "default", {}, () => [
|
|
2748
|
+
h("span", null, "© François (binarmorker) Allard " + iA((/* @__PURE__ */ new Date()).getFullYear()), 1)
|
|
2753
2749
|
]),
|
|
2754
2750
|
vQ,
|
|
2755
2751
|
Pg(BA, null, {
|
|
@@ -2774,11 +2770,11 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2774
2770
|
CE,
|
|
2775
2771
|
IE,
|
|
2776
2772
|
QE,
|
|
2777
|
-
|
|
2778
|
-
|
|
2773
|
+
h("span", EE, [
|
|
2774
|
+
FA(M.$slots, "privacy")
|
|
2779
2775
|
]),
|
|
2780
2776
|
ME,
|
|
2781
|
-
A.about ? (O(), b("a", wE, "Return to top")) : A.patreon ? (O(), b("a", DE, "Return to
|
|
2777
|
+
A.about ? (O(), b("a", wE, "Return to top")) : A.patreon ? (O(), b("a", DE, "Return to " + iA(A.name), 1)) : (O(), b("a", iE, "About " + iA(A.name), 1))
|
|
2782
2778
|
])
|
|
2783
2779
|
], 64));
|
|
2784
2780
|
}
|
|
@@ -2797,7 +2793,7 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2797
2793
|
}
|
|
2798
2794
|
return (I, E) => (O(), b(xg, null, [
|
|
2799
2795
|
h("button", { onClick: B }, [
|
|
2800
|
-
|
|
2796
|
+
FA(I.$slots, "default")
|
|
2801
2797
|
]),
|
|
2802
2798
|
(O(), gA(oC, { to: "body" }, [
|
|
2803
2799
|
RB(h("div", {
|
|
@@ -2811,7 +2807,7 @@ const SQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2811
2807
|
}, "×"),
|
|
2812
2808
|
h("div", UE, [
|
|
2813
2809
|
h("div", YE, [
|
|
2814
|
-
|
|
2810
|
+
FA(I.$slots, "content")
|
|
2815
2811
|
])
|
|
2816
2812
|
])
|
|
2817
2813
|
])
|